]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
guile: Add support for Guile 2.2.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
68cf161c
LC
12020-07-20 Ludovic Courtès <ludo@gnu.org>
2 Doug Evans <dje@google.com>
3
4 PR gdb/21104
5 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7 USING_GUILE_BEFORE_2_2.
8 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
9 Change type to 'scm_t_port_type *'.
10 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
11 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
12 parameter and honor it. Update callers.
13 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
14 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
15 functions.
16 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
17 USING_GUILE_BEFORE_2_2.
18 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
19 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
20 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
21 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
22 and 'SCM_PORT_TYPE'.
23 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
24 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
25 (gdbscm_memory_port_read, gdbscm_memory_port_write)
26 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
27 [!USING_GUILE_BEFORE_2_2]: New functions.
28 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
29 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
30 'gdbscm_memory_port_read'.
31 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
32 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
33 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
34 function.
35 (ioscm_init_memory_port): Remove.
36 (ioscm_init_memory_port_stream): New function
37 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
38 function.
39 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
40 Return scm_from_uint (0).
41 (gdbscm_set_memory_port_read_buffer_size_x)
42 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
43 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
44 Return scm_from_uint (0).
45 (gdbscm_set_memory_port_write_buffer_size_x)
46 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
47 * configure.ac (try_guile_versions): Add "guile-2.2".
48 * configure: Regenerate.
49 * NEWS: Add entry.
50
aee91db3
TT
512020-07-18 Tom Tromey <tom@tromey.com>
52
53 * linux-nat.c (linux_multi_process): Remove.
54 (linux_nat_target::supports_multi_process): Return true.
55
0e267416
AB
562020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * arch/riscv.c (riscv_tdesc_cache): Change map type.
59 (riscv_lookup_target_description): Return pointer out of
60 unique_ptr.
61 * target-descriptions.c (allocate_target_description): Add
62 comment.
63 (target_desc_deleter::operator()): Likewise.
64 * target-descriptions.h (struct target_desc_deleter): Moved to
65 gdbsupport/tdesc.h.
66 (target_desc_up): Likewise.
67
f80c8ec4
TT
682020-07-17 Tom Tromey <tromey@adacore.com>
69
70 * linux-nat.c (linux_nat_target::supports_non_stop)
71 (linux_nat_target::always_non_stop_p): Use "true".
72 (linux_nat_target::supports_disable_randomization): Use "true" and
73 "false".
74
d0ce17d8
CT
752020-07-16 Caroline Tice <cmtice@google.com>
76
77 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
78 (RNGLIST_HEADER_SIZE64): New constant definition.
79 (struct dwop_section_names): Add rnglists_dwo.
80 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
81 (struct loclist_header): Rename to 'loclists_rnglists_header'.
82 (struct dwo_sections): Add rnglists field.
83 (read_attribut_reprocess): Add tag parameter.
84 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
85 (cu_debug_rnglists_section): New function (decl & definition).
86 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
87 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
88 die whose range is being checked; get rnglist section from
89 cu_debug_rnglists_section, to get from either objfile or dwo file as
90 appropriate. Add cases for DW_RLE_base_addressx,
91 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
92 the base address to DW_RLE_offset_pairs (not to all ranges), moving
93 test inside if-condition and updating complaint message.
94 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
95 dwarf2_rnglists_process.
96 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
97 dwarf2_ranges_process.
98 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
99 need_ranges_base and update comment appropriately. Also pass die tag
100 to dwarf2_ranges_read.
101 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
102 need_ranges_base and update comment appropriately. Also pass die tag
103 to dwarf2_ranges_process.
104 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
105 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
106 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
107 need_ranges_base and update comment appropriately. Also pass die tag
108 to read_attribute_reprocess and dwarf2_ranges_read.
109 (read_loclist_header): Rename function to read_loclists_rnglists_header,
110 and update function comment appropriately.
111 (read_loclist_index): Call read_loclists_rnglists_header instead of
112 read_loclist_header.
113 (read_rnglist_index): New function.
114 (read_attribute_reprocess): Add tag parameter. Add code for
115 DW_FORM_rnglistx, passing tag to read_rnglist_index.
116 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
117
3dcc261c
AB
1182020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
119
120 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
121 being resolved.
122
ccb9eba6
AB
1232020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * arch-utils.c (show_architecture): Update formatting of messages.
126
cf88be68
SM
1272020-07-12 Simon Marchi <simon.marchi@efficios.com>
128
129 * gdbtypes.h (struct type) <bounds>: Handle array and string
130 types.
131 * ada-lang.c (assign_aggregate): Use type::bounds on
132 array/string type.
133 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
134 * c-varobj.c (c_number_of_children): Likewise.
135 (c_describe_child): Likewise.
136 * eval.c (evaluate_subexp_for_sizeof): Likewise.
137 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
138 (f_type_print_base): Likewise.
139 * f-valprint.c (f77_array_offset_tbl): Likewise.
140 (f77_get_upperbound): Likewise.
141 (f77_print_array_1): Likewise.
142 * guile/scm-type.c (gdbscm_type_range): Likewise.
143 * m2-typeprint.c (m2_array): Likewise.
144 (m2_is_long_set_of_type): Likewise.
145 * m2-valprint.c (get_long_set_bounds): Likewise.
146 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
147 * python/py-type.c (typy_range): Likewise.
148 * rust-lang.c (rust_internal_print_type): Likewise.
149 * type-stack.c (type_stack::follow_types): Likewise.
150 * valarith.c (value_subscripted_rvalue): Likewise.
151 * valops.c (value_cast): Likewise.
152
509971ae
SM
1532020-07-12 Simon Marchi <simon.marchi@efficios.com>
154
155 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
156 callers to use the equivalent accessor methods.
157
107406b7
SM
1582020-07-12 Simon Marchi <simon.marchi@efficios.com>
159
160 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
161 (struct type) <bit_stride>: New method.
162 (TYPE_BIT_STRIDE): Remove.
163 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
164
bb789949
SM
1652020-07-12 Simon Marchi <simon.marchi@efficios.com>
166
167 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
168 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
169 callers to use the equivalent accessor methods instead.
170
39498edb
SM
1712020-07-12 Simon Marchi <simon.marchi@efficios.com>
172
173 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
174 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
175 callers to use the equivalent accessor methods instead.
176
3b606f38
SM
1772020-07-12 Simon Marchi <simon.marchi@efficios.com>
178
179 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
180 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
181 to use dynamic_prop::kind.
182
064d9cb9
SM
1832020-07-12 Simon Marchi <simon.marchi@efficios.com>
184
185 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
186 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
187 to get the bound property's kind and check against
188 PROP_UNDEFINED.
189
5537ddd0
SM
1902020-07-12 Simon Marchi <simon.marchi@efficios.com>
191
192 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
193 all callers to use type::range_bounds followed by
194 dynamic_prop::{low,high}.
195
8c2e4e06
SM
1962020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
197
198 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
199 const_val, set_const_val, baton, set_locexpr, set_loclist,
200 set_addr_offset, variant_parts, set_variant_parts,
201 original_type, set_original_type>: New methods.
202 <kind>: Rename to...
203 <m_kind>: ... this. Update all users to use the new methods
204 instead.
205 <data>: Rename to...
206 <m_data>: ... this. Update all users to use the new methods
207 instead.
208
7c6f2712
SM
2092020-07-12 Simon Marchi <simon.marchi@efficios.com>
210
211 * gdbtypes.c (get_discrete_bounds): Return failure if
212 the range type's bounds are not both defined and constant
213 values.
214 (get_array_bounds): Update comment. Remove undefined bound check.
215
599088e3
SM
2162020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
219 the type::bounds method directly.
220
c4dfcb36
SM
2212020-07-12 Simon Marchi <simon.marchi@efficios.com>
222
223 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
224 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
225 are used to set the range type's bounds to use set_bounds.
226
0a278aa7
PW
2272020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
228
229 * exec.c (_initialize_exec): Update exec-file-mismatch help.
230
cce20f10
PA
2312020-07-10 Pedro Alves <pedro@palves.net>
232
233 * gdbthread.h (inferior_ref): Define.
234 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
235 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
236 * thread.c
237 (scoped_restore_current_thread::restore):
238 Adjust to gdb::ref_ptr.
239 (scoped_restore_current_thread::~scoped_restore_current_thread):
240 Remove manual decref handling.
241 (scoped_restore_current_thread::scoped_restore_current_thread):
242 Adjust to use
243 inferior_ref::new_reference/thread_info_ref::new_reference.
244 Incref the thread before calling get_frame_id instead of after.
245 Let TARGET_CLOSE_ERROR propagate.
246
6d7aa592
PA
2472020-07-10 Pedro Alves <pedro@palves.net>
248
249 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
250 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
251 NOT_AVAILABLE_ERROR.
252 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
253 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
254
b3e3a4c1
SM
2552020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
256 Pedro Alves <pedro@palves.net>
257
258 PR gdb/26199
259 * infrun.c (threads_are_resumed_pending_p): Delete.
260 (do_target_wait): Remove threads_are_executing and
261 threads_are_resumed_pending_p checks from the inferior_matches
262 lambda. Update comments.
263
d6cc5d98
PA
2642020-07-10 Pedro Alves <pedro@palves.net>
265
266 PR gdb/26199
267 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
268 executing threads.
269
7d3badc6
PA
2702020-07-10 Pedro Alves <pedro@palves.net>
271
272 PR gdb/26199
273 * infrun.c (handle_no_resumed): Handle multiple targets.
274
42bd97a6
PA
2752020-07-10 Pedro Alves <pedro@palves.net>
276
277 PR gdb/26199
278 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
279 target_is_async_p.
280
43667cc6
PA
2812020-07-10 Pedro Alves <pedro@palves.net>
282
283 PR gdb/26199
284 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
285 threads, not all threads.
286
96118d11
PA
2872020-07-10 Pedro Alves <pedro@palves.net>
288
289 PR gdb/26199
290 * remote.c (remote_target::open_1): Pass remote target pointer as
291 data to create_async_event_handler.
292 (remote_async_inferior_event_handler): Mark async event handler
293 before returning if the remote target still has either pending
294 events or unacknowledged notifications.
295
54904d81
JB
2962020-07-10 John Baldwin <jhb@FreeBSD.org>
297
298 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
299 declaration.
300 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
301 function.
302
f37e5866
JB
3032020-07-09 John Baldwin <jhb@FreeBSD.org>
304
305 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
306 inferior_ptid.
307
fc238d4a
JB
3082020-07-09 John Baldwin <jhb@FreeBSD.org>
309
310 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
311 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
312 AT_FREEBSD_PS_STRINGS.
313
6e2469ff
HD
3142020-07-08 Hannes Domani <ssbssa@yahoo.de>
315
316 * auto-load.c (auto_load_objfile_script_1): Convert drive part
317 of debugfile path on Windows.
318
d1076c41
JB
3192020-07-08 John Baldwin <jhb@FreeBSD.org>
320
321 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
322 argument to 'data'.
323
15f3b077
TT
3242020-07-08 Tom Tromey <tromey@adacore.com>
325
326 * ada-lang.c (ada_exception_message_1): Use read_memory.
327
9fc501fd
AB
3282020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
329
330 PR python/22748
331 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
332 special handling for inline frames.
333 * findvar.c (value_of_register_lazy): Skip inline frames when
334 creating lazy register values.
335 * frame.c (frame_id_computed_p): Delete definition.
336 * frame.h (frame_id_computed_p): Delete declaration.
337
64cb3757
AB
3382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
339
340 * NEWS: Mention additions to Python API.
341 * python/py-arch.c (archpy_register_groups): New function.
342 (arch_object_methods): Add 'register_groups' method.
343 * python/py-registers.c (reggroup_iterator_object): New struct.
344 (reggroup_object): New struct.
345 (gdbpy_new_reggroup): New function.
346 (gdbpy_reggroup_to_string): New function.
347 (gdbpy_reggroup_name): New function.
348 (gdbpy_reggroup_iter): New function.
349 (gdbpy_reggroup_iter_next): New function.
350 (gdbpy_new_reggroup_iterator): New function
351 (gdbpy_initialize_registers): Register new types.
352 (reggroup_iterator_object_type): Define new Python type.
353 (gdbpy_reggroup_getset): New static global.
354 (reggroup_object_type): Define new Python type.
355 * python/python-internal.h
356
0f767f94
AB
3572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
360 * python/py-arch.c (archpy_registers): New function.
361 (arch_object_methods): Add 'registers' method.
362 * python/py-registers.c: New file.
363 * python/python-internal.h
364 (gdbpy_new_register_descriptor_iterator): Declare.
365 (gdbpy_initialize_registers): Declare.
366 * python/python.c (do_start_initialization): Call
367 gdbpy_initialize_registers.
368 * NEWS: Mention additions to the Python API.
369
87dbc774
AB
3702020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
371
372 * NEWS: Mention new Python API method.
373 * python/py-unwind.c (pending_framepy_architecture): New function.
374 (pending_frame_object_methods): Add architecture method.
375
3bc98c0c
AB
3762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
377
378 * gdbarch.c: Regenerate.
379 * gdbarch.h: Regenerate.
380 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
381 (gdbarch_data): Use internal_error for the case where
382 deprecated_set_gdbarch_data was originally needed.
383 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
384 and use passed in obstack.
385 (libunwind_frame_set_descr): Should no longer get back NULL from
386 gdbarch_data.
387 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
388 type.
389 * user-regs.c (user_regs_init): Update parameters, and use passed
390 in obstack.
391 (user_reg_add): Should no longer get back NULL from gdbarch_data.
392 (_initialize_user_regs): Register as a pre-init gdbarch data type.
393
d8cc8af6
TV
3942020-07-06 Tom de Vries <tdevries@suse.de>
395
396 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
397 End-Of-Sequence in lte_is_less_than.
398 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
399 "gdb: Don't reorder line table entries too much when sorting".
400
947f7597
TV
4012020-07-06 Tom de Vries <tdevries@suse.de>
402
403 PR tui/26205
404 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
405
1e7c1b22
TV
4062020-07-05 Tom de Vries <tdevries@suse.de>
407
408 PR build/26187
409 * inferior.h (struct infcall_suspend_state_deleter): If available, use
410 std::uncaught_exceptions instead of deprecated
411 std::uncaught_exception.
412
a36158ec
SM
4132020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
414
415 * macroexp.h (macro_stringify): Return
416 gdb::unique_xmalloc_ptr<char>.
417 * macroexp.c (macro_stringify): Likewise.
418 * macrotab.c (fixup_definition): Update.
419
14d960c8
SM
4202020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
421
422 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
423 (lex_one_token): Update.
424 * macroexp.c (struct macro_buffer) <release>: Return
425 gdb::unique_xmalloc_ptr<char>.
426 (macro_stringify): Update.
427 (macro_expand): Update.
428 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
429 * macroexp.h (macro_expand_next): Likewise.
430
211d5b1c
SM
4312020-07-02 Simon Marchi <simon.marchi@efficios.com>
432
433 * macroexp.h (macro_lookup_ftype): Remove.
434 (macro_expand, macro_expand_once, macro_expand_next): Remove
435 lookup function parameters, add scope parameter.
436 * macroexp.c (scan, substitute_args, expand, maybe_expand,
437 macro_expand, macro_expand_once, macro_expand_next): Likewise.
438 * macroscope.h (standard_macro_lookup): Change parameter type
439 to macro_scope.
440 * macroscope.c (standard_macro_lookup): Likewise.
441 * c-exp.y (lex_one_token): Update.
442 * macrocmd.c (macro_expand_command): Likewise.
443 (macro_expand_once_command): Likewise.
444
b1a35af2
SM
4452020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * inf-loop.c (inferior_event_handler): Remove client_data param.
448 * inf-loop.h (inferior_event_handler): Likewise.
449 * infcmd.c (step_1): Adjust.
450 * infrun.c (proceed): Adjust.
451 (fetch_inferior_event): Remove client_data param.
452 (infrun_async_inferior_event_handler): Adjust.
453 * infrun.h (fetch_inferior_event): Remove `void *` param.
454 * linux-nat.c (handle_target_event): Adjust.
455 * record-btrace.c (record_btrace_handle_async_inferior_event):
456 Adjust.
457 * record-full.c (record_full_async_inferior_event_handler):
458 Adjust.
459 * remote.c (remote_async_inferior_event_handler): Adjust.
460
1cdf9e33
TT
4612020-07-01 Tom Tromey <tom@tromey.com>
462
463 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
464 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
465
32c1e210
TT
4662020-07-01 Tom Tromey <tom@tromey.com>
467
468 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
469 tui_gen_win_info.
470 (tui_win_info::make_window): Merge with
471 tui_gen_win_info::make_window.
472 (tui_win_info::make_visible): Move from tui_gen_win_info.
473 * tui/tui-win.c (tui_win_info::max_width): Move from
474 tui_gen_win_info.
475 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
476 type.
477 <window_factory>: Likewise.
478 * tui/tui-layout.c (tui_win_info::resize): Move from
479 tui_gen_win_info.
480 (make_standard_window): Change return type.
481 (get_locator_window, tui_get_window_by_name): Likewise.
482 (tui_layout_window::apply): Remove a cast.
483 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
484 (struct tui_win_info): Merge with tui_gen_win_info.
485 (struct tui_gen_win_info): Remove.
486
a30cb6da
TT
4872020-07-01 Tom Tromey <tom@tromey.com>
488
489 * tui/tui-stack.h (struct tui_locator_window): Derive from
490 tui_win_info.
491 <do_scroll_horizontal, do_scroll_vertical>: New methods.
492 <can_box>: New method.
493
1eb2161f
TT
4942020-07-01 Tom Tromey <tom@tromey.com>
495
496 * tui/tui-stack.h (struct tui_locator_window): Remove body.
497
7134f2eb
TT
4982020-07-01 Tom Tromey <tom@tromey.com>
499
500 * tui/tui-regs.c (tui_data_window::display_registers_from)
501 (tui_data_window::display_registers_from)
502 (tui_data_window::first_data_item_displayed)
503 (tui_data_window::delete_data_content_windows): Update.
504 (tui_data_window::refresh_window, tui_data_window::no_refresh):
505 Remove.
506 (tui_data_window::check_register_values): Update.
507 (tui_data_item_window::rerender): Add parameters. Update.
508 (tui_data_item_window::refresh_window): Remove.
509 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
510 virtual.
511 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
512 tui_gen_win_info.
513 <refresh_window, max_height, min_height>: Remove.
514 <rerender>: Add parameters.
515 <x, y, visible>: New members.
516 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
517 <m_item_width>: New member.
518
22b7b041
TT
5192020-07-01 Tom Tromey <tom@tromey.com>
520
521 * tui/tui-regs.c (tui_data_window::show_register_group)
522 (tui_data_window::check_register_values): Update.
523 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
524 from item_no.
525
c9753adb
TT
5262020-07-01 Tom Tromey <tom@tromey.com>
527
528 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
529 useless "if".
530
9ab26b4a
TT
5312020-07-01 Tom Tromey <tom@tromey.com>
532
533 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
534 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
535
e555083f
TT
5362020-07-01 Tom Tromey <tom@tromey.com>
537
538 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
539 * tui/tui-winsource.h (enum tui_line_or_address_kind)
540 (struct tui_line_or_address): Move from tui-data.h.
541 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
542 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
543 (tui_cmd_window, tui_source_window_base, tui_source_window)
544 (tui_disasm_window): Don't declare.
545 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
546 to tui-winsource.h.
547 (SINGLE_KEY): Move to tui-stack.c.
548
7a02bab7
TT
5492020-07-01 Tom Tromey <tom@tromey.com>
550
551 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
552 std::string.
553 * tui/tui-regs.c (class tab_expansion_file): New.
554 (tab_expansion_file::write): New method.
555 (tui_register_format): Change return type. Use
556 tab_expansion_file.
557 (tui_get_register, tui_data_window::display_registers_from)
558 (tui_data_item_window::rerender): Update.
559 * tui/tui-io.h (tui_expand_tabs): Don't declare.
560 * tui/tui-io.c (tui_expand_tabs): Remove.
561
ea68593b
TT
5622020-07-01 Tom Tromey <tom@tromey.com>
563
564 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
565
a8caed5d
FS
5662020-07-01 Fangrui Song <maskray@google.com>
567
568 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
569
9cdf9820
AKS
5702020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
571
572 * dwarf2/read.c (set_die_type): Removed conditions to restrict
573 forms for DW_AT_associated and DW_AT_allocated attributes,
574 which is already checked in function attr_to_dynamic_prop.
575
a1520ad8
TT
5762020-06-30 Tom Tromey <tromey@adacore.com>
577
578 * dwarf2/read.c (quirk_rust_enum): Correctly call
579 alloc_rust_variant for default-less enum.
580
5ac58899
TT
5812020-06-30 Tom Tromey <tromey@adacore.com>
582
583 PR build/26183:
584 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
585 gdb::to_string.
586
19b187a9
SM
5872020-06-29 Simon Marchi <simon.marchi@efficios.com>
588
589 * gdbarch.sh (displaced_step_copy_insn): Update doc.
590 * gdbarch.h: Re-generate.
591
cd4c4c07
TT
5922020-06-28 Tom Tromey <tom@tromey.com>
593
594 * command.h (cmd_types): Remove.
595 (cmd_type): Don't declare.
596 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
597 typedef.
598 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
599 * cli/cli-decode.c (cmd_type): Remove.
600
05779d57
PA
6012020-06-27 Pedro Alves <palves@redhat.com>
602
603 * fork-child.c (prefork_hook): Adjust.
604 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
605 Delete.
606 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
607 * inferior.c (inferior::set_tty, inferior::tty): New methods.
608 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
609 Remove declarations.
610 (struct inferior) <set_tty, tty>: New methods.
611 (struct inferior) <terminal>: Rename to ...
612 (struct inferior) <m_terminal>: ... this and make private.
613 * main.c (captured_main_1): Adjust.
614 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
615 (mi_cmd_inferior_tty_show): Adjust.
616 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
617 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
618
1776e3e5
NA
6192020-06-26 Nick Alcock <nick.alcock@oracle.com>
620
621 * configure.ac: Add --enable-libctf: handle --disable-static
622 properly.
623 * acinclude.m4: sinclude ../config/enable.m4.
624 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
625 (LIBCTF): Substitute in.
626 (CTF_DEPS): New, likewise.
627 (CLIBS): libctf needs symbols from libbfd: move earlier.
628 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
629 flags.
630 * ctfread.c: Surround in ENABLE_LIBCTF.
631 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
632 * configure: Regenerate.
633 * config.in: Likewise.
634
58373b80
SM
6352020-06-25 Simon Marchi <simon.marchi@efficios.com>
636
637 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
638
277474ee
SM
6392020-06-25 Simon Marchi <simon.marchi@efficios.com>
640
641 * inferior.h (struct inferior) <terminal>: Change type to
642 gdb::unique_xmalloc_ptr<char>.
643 * inferior.c (inferior::~inferior): Don't free inf->terminal.
644 * infcmd.c (set_inferior_io_terminal): Don't free terminal
645 field, adjust to unique pointer.
646 (get_inferior_io_terminal): Adjust to unique pointer.
647
6d74da72
AB
6482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
649
650 * riscv-tdep.c (riscv_print_registers_info): Loop over all
651 registers, not just the known core set of registers.
652
2e52d038
AB
6532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
654
655 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
656 fflags, frm, and fcsr registers.
657 (riscv_register_reggroup_p): Remove unknown CSRs from save and
658 restore groups.
659 (riscv_tdesc_unknown_reg): New function.
660 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
661 tdesc_use_registers.
662 * riscv-tdep.h (struct gdbarch_tdep): Add
663 unknown_csrs_first_regnum, unknown_csrs_count,
664 duplicate_fflags_regnum, duplicate_frm_regnum, and
665 duplicate_fcsr_regnum fields.
666
be64fd07
AB
6672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * target-descriptions.c (tdesc_use_registers): Add new parameter a
670 callback, use the callback (when not null) to help number unknown
671 registers.
672 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
673 (tdesc_use_registers): Add extra parameter to declaration.
674
3b9fce96
AB
6752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
678 in the file.
679 (class riscv_pending_register_alias): Likewise.
680 (riscv_register_feature::register_info): Change 'required_p' field
681 to 'required', and change its type. Add 'check' member function.
682 (riscv_register_feature::register_info::check): Define new member
683 function.
684 (riscv_xreg_feature): Change initialisation of 'required' field.
685 (riscv_freg_feature): Likewise.
686 (riscv_virtual_feature): Likewise.
687 (riscv_csr_feature): Likewise.
688 (riscv_check_tdesc_feature): Take extra parameter, the csr
689 tdesc_feature, rewrite the function to use the new
690 riscv_register_feature::register_info::check function.
691 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
692
865bad26
AB
6932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
694
695 * features/Makefile: Remove all references to the deleted files
696 below.
697 * features/riscv/32bit-csr.c: Deleted.
698 * features/riscv/32bit-csr.xml: Deleted.
699 * features/riscv/64bit-csr.c: Deleted.
700 * features/riscv/64bit-csr.xml: Deleted.
701 * features/riscv/rebuild-csr-xml.sh: Deleted.
702
ed69cbc8
AB
7032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
706 whitespace error for declaration of names member variable.
707 (struct riscv_register_feature): Add new prefer_first_name member
708 variable, and fix whitespace error in declaration of registers.
709 (riscv_xreg_feature): Initialize prefer_first_name field.
710 (riscv_freg_feature): Likewise.
711 (riscv_virtual_feature): Likewise.
712 (riscv_csr_feature): Likewise.
713 (riscv_register_name): Expand on comments. Remove register name
714 modifications for CSR and virtual registers.
715
4445e8f5
AB
7162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
719 errors.
720
767a879e
AB
7212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
724 riscv-opc.h.
725 (class riscv_pending_register_alias): New class.
726 (riscv_check_tdesc_feature): Take vector of pending aliases and
727 populate it as appropriate.
728 (riscv_setup_register_aliases): Delete.
729 (riscv_gdbarch_init): Create vector of pending aliases and pass it
730 to riscv_check_tdesc_feature in all cases. Use the vector to
731 create the register aliases.
732
bb6e55f3
RO
7332020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
734
735 * sol2-tdep.c (sol2_static_transform_name): Remove.
736 (sol2_init_abi): Don't register it.
737 * gdbarch.sh (static_transform_name): Remove.
738 * gdbarch.c, gdbarch.h: Regenerate.
739
740 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
741 gdbarch_static_transform_name.
742 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
743 * stabsread.c (define_symbol) <'X'>: Remove.
744 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
745 handling.
746 <'V'>: Likewise.
747 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
748 <'S'>: Remove call to gdbarch_static_transform_name.
749
c6d36836
RO
7502020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
751
752 * procfs.c (procfs_pre_trace): New function.
753 (procfs_target::create_inferior): Pass it to fork_inferior.
754
a7e6196b
RO
7552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
756
757 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
758 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
759 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
760 sol2-tdep.o, sparc-sol2-tdep.o.
761 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
762 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
763 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
764 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
765
d412e696
RO
7662020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
767
768 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
769 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
770 Call sol2_init_abi.
771 Remove calls to set_gdbarch_skip_solib_resolver,
772 set_gdbarch_core_pid_to_str.
773 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
774 (i386_sol2_static_transform_name): Remove.
775 (i386_sol2_init_abi): Call sol2_init_abi.
776 Remove calls to set_gdbarch_sofun_address_maybe_missing,
777 set_gdbarch_static_transform_name,
778 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
779 Use sol2_sigtramp_p.
780 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
781 (sol2_sigtramp_p): New function.
782 (sol2_static_transform_name): New function.
783 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
784 (sol2_init_abi): New function.
785 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
786 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
787 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
788 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
789 (sparc_sol2_static_transform_name): Remove.
790 (sparc32_sol2_init_abi): Call sol2_init_abi.
791 Remove calls to set_gdbarch_sofun_address_maybe_missing,
792 set_gdbarch_static_transform_name,
793 set_gdbarch_skip_solib_resolver,
794 set_gdbarch_core_pid_to_str.
795 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
796 (sparc_sol2_static_transform_name): Remove
797 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
798 call sol2_sigtramp_p.
799 (sparc64_sol2_init_abi): Call sol2_init_abi.
800 Remove calls to set_gdbarch_sofun_address_maybe_missing,
801 set_gdbarch_static_transform_name,
802 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
803
a8654e7d
PW
8042020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
805
806 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
807 * exec.c (validate_exec_file): If from_tty, set both
808 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
809 * symfile.c (symbol_file_add_with_addrs): if always_confirm
810 and from_tty, unconditionally ask a confirmation.
811
caa7fd04
AB
8122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * target-descriptions.c (tdesc_architecture_name): Protect against
815 NULL pointer dereference.
816 (maint_print_xml_tdesc_cmd): New function.
817 (_initialize_target_descriptions): Register new 'maint print
818 xml-tdesc' command and give it the filename completer.
819 * NEWS: Mention new 'maint print xml-tdesc' command.
820
fbf42f4e
AB
8212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
822
823 * target-descriptions.c (class tdesc_compatible_info): New class.
824 (struct target_desc): Change type of compatible vector.
825 (tdesc_compatible_p): Update for change in type of
826 target_desc::compatible.
827 (tdesc_compatible_info_list): New function.
828 (tdesc_compatible_info_arch_name): New function.
829 (tdesc_add_compatible): Update for change in type of
830 target_desc::compatible.
831 (print_c_tdesc::visit_pre): Likewise.
832
20821f4e
AB
8332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
834
835 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
836 whitespace to underscore.
837 (maint_print_c_tdesc_cmd): Use fake filename for target
838 descriptions that came from the target.
839 (_initialize_target_descriptions): Add filename command completion
840 for 'maint print c-tdesc'.
841
1fb5ee62
SM
8422020-06-23 Simon Marchi <simon.marchi@efficios.com>
843
844 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
845 lines.
846
fc3ecb3e
SM
8472020-06-23 Simon Marchi <simon.marchi@efficios.com>
848
849 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
850 lines.
851 (dwarf2_find_location_expression): Likewise.
852 (call_site_parameter_matches): Likewise.
853 (dwarf2_compile_expr_to_ax): Likewise.
854 (disassemble_dwarf_expression): Likewise.
855 (loclist_describe_location): Likewise.
856
236ef034
PA
8572020-06-23 Pedro Alves <palves@redhat.com>
858
859 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
860 progspace-and-thread.h. Include scoped-mock-context.h instead.
861 (register_to_value_test): Use scoped_mock_context.
862 * regcache.c: Include "scoped-mock-context.h".
863 (cooked_read_test): Don't error out if a target is already pushed.
864 Use scoped_mock_context. Adjust.
865 * scoped-mock-context.h: New file.
866
39e7ecca
AB
8672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
870 initializer.
871 (ada_language::is_string_type_p): New member function.
872 * c-lang.c (c_language_data): Delete la_is_string_type_p
873 initializer.
874 (cplus_language_data): Likewise.
875 (asm_language_data): Likewise.
876 (minimal_language_data): Likewise.
877 * d-lang.c (d_language_data): Likewise.
878 * f-lang.c (f_is_string_type_p): Delete function, implementation
879 moved to f_language::is_string_type_p.
880 (f_language_data): Delete la_is_string_type_p initializer.
881 (f_language::is_string_type_p): New member function,
882 implementation from f_is_string_type_p.
883 * go-lang.c (go_is_string_type_p): Delete function, implementation
884 moved to go_language::is_string_type_p.
885 (go_language_data): Delete la_is_string_type_p initializer.
886 (go_language::is_string_type_p): New member function,
887 implementation from go_is_string_type_p.
888 * language.c (language_defn::is_string_type_p): Define new member
889 function.
890 (default_is_string_type_p): Make static, add comment copied from
891 header file.
892 (unknown_language_data): Delete la_is_string_type_p initializer.
893 (unknown_language::is_string_type_p): New member function.
894 (auto_language_data): Delete la_is_string_type_p initializer.
895 (auto_language::is_string_type_p): New member function.
896 * language.h (language_data): Delete la_is_string_type_p field.
897 (language_defn::is_string_type_p): Declare new function.
898 (default_is_string_type_p): Delete desclaration, move comment to
899 definition.
900 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
901 moved to m2_language::is_string_type_p.
902 (m2_language_data): Delete la_is_string_type_p initializer.
903 (m2_language::is_string_type_p): New member function,
904 implementation from m2_is_string_type_p.
905 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
906 initializer.
907 * opencl-lang.c (opencl_language_data): Likewise.
908 * p-lang.c (pascal_is_string_type_p): Delete function,
909 implementation moved to pascal_language::is_string_type_p.
910 (pascal_language_data): Delete la_is_string_type_p initializer.
911 (pascal_language::is_string_type_p): New member function,
912 implementation from pascal_is_string_type_p.
913 * rust-lang.c (rust_is_string_type_p): Delete function,
914 implementation moved to rust_language::is_string_type_p.
915 (rust_language_data): Delete la_is_string_type_p initializer.
916 (rust_language::is_string_type_p): New member function,
917 implementation from rust_is_string_type_p.
918 * valprint.c (val_print_scalar_or_string_type_p): Update call to
919 is_string_type_p.
920
4ffc13fb
AB
9212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
922
923 * ada-lang.c (ada_language_data): Delete la_print_typedef
924 initializer.
925 (ada_language::print_typedef): New member function.
926 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
927 (cplus_language_data): Likewise.
928 (asm_language_data): Likewise.
929 (minimal_language_data): Likewise.
930 * d-lang.c (d_language_data): Likewise.
931 * f-lang.c (f_language_data): Likewise.
932 (f_language::print_typedef): New member function.
933 * go-lang.c (go_language_data): Delete la_print_typedef
934 initializer.
935 * language.c (language_defn::print_typedef): Define member
936 function.
937 (unknown_language_data): Delete la_print_typedef initializer.
938 (unknown_language::print_typedef): New member function.
939 (auto_language_data): Delete la_print_typedef initializer.
940 (auto_language::print_typedef): New member function.
941 * language.h (language_data): Delete la_print_typedef field.
942 (language_defn::print_typedef): Declare new member function.
943 (LA_PRINT_TYPEDEF): Update call to print_typedef.
944 (default_print_typedef): Delete declaration.
945 * m2-lang.c (m2_language_data): Delete la_print_typedef
946 initializer.
947 (m2_language::print_typedef): New member function.
948 * objc-lang.c (objc_language_data): Delete la_print_typedef
949 initializer.
950 * opencl-lang.c (opencl_language_data): Likewise.
951 * p-lang.c (pascal_language_data): Likewise.
952 (pascal_language::print_typedef): New member function.
953 * rust-lang.c (rust_print_typedef): Delete function,
954 implementation moved to rust_language::print_typedef.
955 (rust_language): Delete la_print_typedef initializer.
956 (rust_language::print_typedef): New member function,
957 implementation from rust_print_typedef.
958 * typeprint.c (default_print_typedef): Delete.
959
d711ee67
AB
9602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
961
962 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
963 (ada_language::printstr): New member function.
964 * c-lang.c (c_language_data): Delete la_printstr initializer.
965 (cplus_language_data): Likewise.
966 (asm_language_data): Likewise.
967 (minimal_language_data): Likewise.
968 * d-lang.c (d_language_data): Likewise.
969 * f-lang.c (f_printstr): Rename to f_language::printstr.
970 (f_language_data): Delete la_printstr initializer.
971 (f_language::printstr): New member function, implementation from
972 f_printstr.
973 * go-lang.c (go_language_data): Delete la_printstr initializer.
974 * language.c (language_defn::printstr): Define new member
975 function.
976 (unk_lang_printstr): Delete.
977 (unknown_language_data): Delete la_printstr initializer.
978 (unknown_language::printstr): New member function.
979 (auto_language_data): Delete la_printstr initializer.
980 (auto_language::printstr): New member function.
981 * language.h (language_data): Delete la_printstr field.
982 (language_defn::printstr): Declare new member function.
983 (LA_PRINT_STRING): Update call to printstr.
984 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
985 (m2_language_data): Delete la_printstr initializer.
986 (m2_language::printstr): New member function, implementation from
987 m2_printstr.
988 * objc-lang.c (objc_language_data): Delete la_printstr
989 initializer.
990 * opencl-lang.c (opencl_language_data): Likewise.
991 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
992 (pascal_language_data): Delete la_printstr initializer.
993 (pascal_language::printstr): New member function, implementation
994 from pascal_printstr.
995 * p-lang.h (pascal_printstr): Delete declaration.
996 * rust-lang.c (rust_printstr): Update header comment.
997 (rust_language_data): Delete la_printstr initializer.
998 (rust_language::printstr): New member function.
999
52b50f2c
AB
10002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1003 (ada_language::printchar): New member function.
1004 * c-lang.c (c_language_data): Delete la_printchar initializer.
1005 (cplus_language_data): Likewise.
1006 (asm_language_data): Likewise.
1007 (minimal_language_data): Likewise.
1008 * d-lang.c (d_language_data): Likewise.
1009 * f-lang.c (f_printchar): Rename to f_language::printchar.
1010 (f_language_data): Delete la_printchar initializer.
1011 (f_language::printchar): New member function, implementation from
1012 f_printchar.
1013 * go-lang.c (go_language_data): Delete la_printchar initializer.
1014 * language.c (unk_lang_printchar): Delete.
1015 (language_defn::printchar): Define new member function.
1016 (unknown_language_data): Delete la_printchar initializer.
1017 (unknown_language::printchar): New member function.
1018 (auto_language_data): Delete la_printchar initializer.
1019 (auto_language::printchar): New member function.
1020 * language.h (language_data): Delete la_printchar field.
1021 (language_defn::printchar): Declare new member function.
1022 (LA_PRINT_CHAR): Update call to printchar.
1023 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1024 (m2_language::printchar): New member function.
1025 * objc-lang.c (objc_language_data): Delete la_printchar
1026 initializer.
1027 * opencl-lang.c (opencl_language_data): Likewise.
1028 * p-lang.c (pascal_language_data): Delete la_printchar
1029 initializer.
1030 (pascal_language::printchar): New member function.
1031 * rust-lang.c (rust_printchar): Rename to
1032 rust_language::printchar.
1033 (rust_language_data): Delete la_printchar initializer.
1034 (rust_language::printchar): New member function, implementation
1035 from rust_printchar.
1036
ec8cec5b
AB
10372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1038
1039 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1040 (ada_language_data): Delete la_emitchar initializer.
1041 (ada_language::emitchar): New member function, implementation from
1042 emit_char.
1043 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1044 (cplus_language_data): Likewise.
1045 (asm_language_data): Likewise.
1046 (minimal_language_data): Likewise.
1047 * d-lang.c (d_language_data): Likewise.
1048 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1049 (f_language_data): Delete la_emitchar initializer.
1050 (f_language::emitchar): New member function, implementation from
1051 f_emit_char.
1052 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1053 * language.c (unk_lang_emit_char): Delete.
1054 (language_defn::emitchar): New member function definition.
1055 (unknown_language_data): Delete la_emitchar initializer.
1056 (unknown_language::emitchar): New member function.
1057 (auto_language_data): Delete la_emitchar initializer.
1058 (auto_language::emitchar): New member function.
1059 * language.h (language_data): Delete la_emitchar field.
1060 (language_defn::emitchar): New member field declaration.
1061 (LA_EMIT_CHAR): Update call to emitchar.
1062 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1063 (m2_language_data): Delete la_emitchar initializer.
1064 (m2_language::emitchar): New member function, implementation from
1065 m2_emit_char.
1066 * objc-lang.c (objc_language_data): Delete la_emitchar
1067 initializer.
1068 * opencl-lang.c (opencl_language_data): Likewise.
1069 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1070 (pascal_language_data): Delete la_emitchar initializer.
1071 (pascal_language::emitchar): New member function, implementation
1072 from pascal_emit_char.
1073 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1074 (rust_language_data): Delete la_emitchar initializer.
1075 (rust_language::emitchar): New member function, implementation
1076 from rust_emitchar.
1077
1bf9c363
AB
10782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1079
1080 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1081 (ada_language_data): Delete la_post_parser initializer.
1082 (ada_language::post_parser): New member function.
1083 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1084 (cplus_language_data): Likewise.
1085 (asm_language_data): Likewise.
1086 (minimal_language_data): Likewise.
1087 * d-lang.c (d_language_data): Likewise.
1088 * f-lang.c (f_language_data): Likewise.
1089 * go-lang.c (go_language_data): Likewise.
1090 * language.c (unknown_language_data): Likewise.
1091 (auto_language_data): Likewise.
1092 * language.h (language_data): Delete la_post_parser field.
1093 (language_defn::post_parser): New member function.
1094 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1095 * objc-lang.c (objc_language_data): Likewise.
1096 * opencl-lang.c (opencl_language_data): Likewise.
1097 * p-lang.c (pascal_language_data): Likewise.
1098 * parse.c (parse_exp_in_context): Update call to post_parser.
1099 (null_post_parser): Delete definition.
1100 * parser-defs.h (null_post_parser): Delete declaration.
1101 * rust-lang.c (rust_language_data): Delete la_post_parser
1102 initializer.
1103
87afa652
AB
11042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * ada-lang.c (parse): Rename to ada_language::parser.
1107 (ada_language_data): Delete la_parser initializer.
1108 (ada_language::parser): New member function, implementation from
1109 parse.
1110 * c-lang.c (c_language_data): Delete la_parser initializer.
1111 (cplus_language_data): Likewise.
1112 (asm_language_data): Likewise.
1113 (minimal_language_data): Likewise.
1114 * d-lang.c (d_language_data): Likewise.
1115 (d_language::parser): New member function.
1116 * f-lang.c (f_language_data): Delete la_parser initializer.
1117 (f_language::parser): New member function.
1118 * go-lang.c (go_language_data): Delete la_parser initializer.
1119 (go_language::parser): New member function.
1120 * language.c (unk_lang_parser): Delete.
1121 (language_defn::parser): Define new member function.
1122 (unknown_language_data): Delete la_parser initializer.
1123 (unknown_language::parser): New member function.
1124 (auto_language_data): Delete la_parser initializer.
1125 (auto_language::parser): New member function.
1126 * language.h (language_data): Delete la_parser field.
1127 (language_defn::parser): Declare new member function.
1128 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1129 (m2_language::parser): New member function.
1130 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1131 * opencl-lang.c (opencl_language_data): Likewise.
1132 * p-lang.c (pascal_language_data): Likewise.
1133 (pascal_language::parser): New member function.
1134 * parse.c (parse_exp_in_context): Update call to parser.
1135 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1136 (rust_language::parser): New member function.
1137
37825800
AB
11382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1139
1140 * top.c (print_gdb_configuration): Print --with-python-libdir
1141 configuration value.
1142
5b860c93
PW
11432020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1144
1145 * NEWS: Mention change to the alias command.
1146
cf00cd6f
PW
11472020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1148
1149 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1150 (alias_command_completer)
1151 (make_alias_options_def_group): New functions.
1152 (alias_opts, alias_option_defs): New struct and array.
1153 (alias_usage_error): Update usage.
1154 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1155 Use option framework.
1156 (_initialize_cli_cmds): Update alias command help.
1157 Update aliases command help.
1158 (show_user):
1159 Add NULL for new default_args lookup_cmd argument.
1160 (valid_command_p): Rename to validate_aliased_command.
1161 Add NULL for new default_args lookup_cmd argument. Verify that the
1162 aliased_command has no default args.
1163 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1164 (lookup_cmd_1, lookup_cmd): New argument default_args.
1165 (add_alias_cmd):
1166 Add NULL for new default_args lookup_cmd argument.
1167 (print_help_for_command): Show default args under the layout
1168 alias some_alias = some_aliased_cmd some_alias_default_arg.
1169 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1170 xfree default_args in destructor.
1171 * cli/cli-script.c (process_next_line, do_define_command):
1172 Add NULL for new default_args lookup_cmd argument.
1173 * command.h: Declare new default_args argument in lookup_cmd
1174 and lookup_cmd_1.
1175 * completer.c (complete_line_internal_1):
1176 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1177 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1178 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1179 Likewise.
1180 * infcmd.c (_initialize_infcmd): Likewise.
1181 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1182 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1183 * python/py-param.c (add_setshow_generic): Likewise.
1184 * remote.c (_initialize_remote): Likewise.
1185 * top.c (execute_command): Prepend default_args if command has some.
1186 (set_verbose):
1187 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1188 * tracepoint.c (validate_actionline, encode_actions_1):
1189 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1190
bd920864
TBA
11912020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1192
1193 * jit.c (jit_read_descriptor): Use bool as the return type.
1194 (jit_breakpoint_re_set_internal): Use bool as the return type.
1195 Invert the return value logic; return true if the jit breakpoint
1196 has been successfully initialized.
1197 (jit_inferior_init): Update the call to
1198 jit_breakpoint_re_set_internal.
1199
f8098322
PA
12002020-06-22 Pedro Alves <palves@redhat.com>
1201
1202 PR gdb/25939
1203 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1204 Use the current inferior instead. Don't return
1205 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1206 wait again.
1207 * sol-thread.c (sol_thread_target::wait): Don't reference
1208 inferior_ptid.
1209 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1210 (sol_update_thread_list_callback): Use the current inferior's pid
1211 instead of inferior_ptid.
1212
196535a6
RO
12132020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1214
1215 * procfs.c: Cleanup many comments.
1216
1217 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1218 (AFTER_WATCHFLAG): Replace by value.
1219
1220 (MAIN_PROC_NAME_FORMAT): Inline ...
1221 (create_procinfo): ... here.
1222
1223 (procfs_debug_inferior): Remove SYS_exec handling.
1224 (syscall_is_exec): Likewise.
1225 (procfs_set_exec_trap): Likewise.
1226
1227 (syscall_is_lwp_exit): Inline in callers.
1228 (syscall_is_exit): Likewise.
1229 (syscall_is_exec): Likewise.
1230 (syscall_is_lwp_create): Likewise.
1231
1232 (invalidate_cache): Remove #if 0 code.
1233
1234 (make_signal_thread_runnable): Remove.
1235 (procfs_target::resume): Remove #if 0 code.
1236
cf6f3e86
RO
12372020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1238
1239 PR gdb/25939
1240 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1241 call ...
1242 (procfs_target::create_inferior): ... here.
1243
48e9cc84
PW
12442020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1245
1246 * exec.c (validate_exec_file): Ensure the build-id is up to
1247 date by calling reopen_exec_file (that checks file timestamp
1248 to decide to re-read the file).
1249
3922b302
PA
12502020-06-18 Pedro Alves <palves@redhat.com>
1251
1252 PR gdb/25412
1253 * gdbthread.h (delete_thread, delete_thread_silent)
1254 (find_thread_ptid): Update comments.
1255 * thread.c (current_thread_): New global.
1256 (is_current_thread): Move higher, and reimplement.
1257 (inferior_thread): Reimplement.
1258 (set_thread_exited): Use bool. Add assertions.
1259 (add_thread_silent): Simplify thread-reuse handling by always
1260 calling delete_thread.
1261 (delete_thread): Remove intro comment.
1262 (find_thread_ptid): Skip exited threads.
1263 (switch_to_thread_no_regs): Write to current_thread_.
1264 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1265 INFERIOR_PTID. Clear current_thread_.
1266
6dbdab44
PA
12672020-06-18 Pedro Alves <palves@redhat.com>
1268
1269 * aix-thread.c (pd_update): Use switch_to_thread.
1270
2da4b788
PA
12712020-06-18 Pedro Alves <palves@redhat.com>
1272
1273 * ravenscar-thread.c (ravenscar_thread_target): Update.
1274 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1275 (ravenscar_thread_target::add_active_thread): ... this. Don't
1276 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1277 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1278
50838d1b
PA
12792020-06-18 Pedro Alves <palves@redhat.com>
1280
1281 * nat/windows-nat.c (current_windows_thread): Remove.
1282 * nat/windows-nat.h (current_windows_thread): Remove.
1283 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1284 Adjust.
1285 (display_selectors): Adjust to fetch the current
1286 windows_thread_info based on inferior_ptid.
1287 (fake_create_process): No longer write to current_windows_thread.
1288 (windows_nat_target::get_windows_debug_event):
1289 Don't set inferior_ptid or current_windows_thread.
1290 (windows_nat_target::wait): Adjust to not rely on
1291 current_windows_thread.
1292 (do_initial_windows_stuff): Now a method of windows_nat_target.
1293 Switch to the last_ptid thread.
1294 (windows_nat_target::attach): Adjust.
1295 (windows_nat_target::detach): Use switch_to_no_thread instead of
1296 writing to inferior_ptid directly.
1297 (windows_nat_target::create_inferior): Adjust.
1298
31ce04e9
PA
12992020-06-18 Pedro Alves <palves@redhat.com>
1300
1301 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1302
1ee1a363
PA
13032020-06-18 Pedro Alves <palves@redhat.com>
1304
1305 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1306 after creating it, instead of writing to inferior_ptid. Don't
1307 write to inferior_ptid.
1308
6d350754
PA
13092020-06-18 Pedro Alves <palves@redhat.com>
1310
1311 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1312
5d971d48
PA
13132020-06-18 Pedro Alves <palves@redhat.com>
1314
1315 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1316 it, instead of writing to inferior_ptid.
1317
86e57d1b
PA
13182020-06-18 Pedro Alves <palves@redhat.com>
1319
1320 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1321 to inferior_ptid.
1322
f2e1c129
PA
13232020-06-18 Pedro Alves <palves@redhat.com>
1324
1325 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1326 instead of writing to inferior_ptid directly.
1327
60db1b85
PA
13282020-06-18 Pedro Alves <palves@redhat.com>
1329
1330 * corelow.c (core_target::close): Use switch_to_no_thread instead
1331 of writing to inferior_ptid directly.
1332 (add_to_thread_list, core_target_open): Use switch_to_thread
1333 instead of writing to inferior_ptid directly.
1334
fe7d6a8d
PA
13352020-06-18 Pedro Alves <palves@redhat.com>
1336
1337 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1338 inferior_ptid.
1339 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1340 inferior_ptid.
1341 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1342 inferior_ptid directly.
1343 (darwin_nat_target::init_thread_list): Switch to thread, instead
1344 of writing to inferior_ptid.
1345 (darwin_nat_target::attach): Don't write to inferior_ptid.
1346 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1347
975f8708
PA
13482020-06-18 Pedro Alves <palves@redhat.com>
1349
1350 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1351 thread.
1352 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1353 Instead use switch_to_thread.
1354 (gnu_nat_target::detach): Use switch_to_no_thread
1355 instead of writing to inferior_ptid directly. Used passed-in
1356 inferior instead of looking up the inferior by pid.
1357
1a204730
PA
13582020-06-18 Pedro Alves <palves@redhat.com>
1359
1360 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1361 inferior_ptid.
1362
ebe84f23
PA
13632020-06-18 Pedro Alves <palves@redhat.com>
1364
1365 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1366 inferior_ptid.
1367 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1368 thread.
1369 (nto_procfs_target::detach): Avoid referencing
1370 inferior_ptid. Use switch_to_no_thread instead of writing to
1371 inferior_ptid directly.
1372 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1373 instead of writing to inferior_ptid directly.
1374 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1375 to thread.
1376
191f02e5
PA
13772020-06-18 Pedro Alves <palves@redhat.com>
1378
1379 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1380 after creating it, instead of writing to inferior_ptid.
1381 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1382 to inferior_ptid directly.
1383 (gdbsim_target::wait): Don't write to inferior_ptid.
1384
0ac55310
PA
13852020-06-18 Pedro Alves <palves@redhat.com>
1386
1387 * remote.c (remote_target::remote_notice_new_inferior): Use
1388 switch_to_thread instead of writing to inferior_ptid directly.
1389 (remote_target::add_current_inferior_and_thread): Use
1390 switch_to_no_thread instead of writing to inferior_ptid directly.
1391 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1392 and switch_to_thread instead of using set_current_inferior or
1393 writing to inferior_ptid directly.
1394
5233f39b
PA
13952020-06-18 Pedro Alves <palves@redhat.com>
1396
1397 * tracectf.c (ctf_target_open): Switch to added thread instead of
1398 writing to inferior_ptid directly.
1399 (ctf_target::close): Use switch_to_no_thread instead of writing to
1400 inferior_ptid directly.
1401
087e161b
PA
14022020-06-18 Pedro Alves <palves@redhat.com>
1403
1404 * tracefile-tfile.c (tfile_target_open): Don't write to
1405 inferior_ptid directly, instead switch to added thread.
1406 (tfile_target::close): Use switch_to_no_thread instead of writing
1407 to inferior_ptid directly.
1408
7fb43e53
PA
14092020-06-18 Pedro Alves <palves@redhat.com>
1410
1411 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1412 (procfs_target::detach): Use switch_to_no_thread
1413 instead of writing to inferior_ptid directly.
1414 (do_attach): Change return type to void. Switch to the added
1415 thread.
1416 (procfs_target::create_inferior): Switch to the added thread.
1417 (procfs_do_thread_registers): Don't write to inferior_ptid.
1418
18493a00
PA
14192020-06-18 Pedro Alves <palves@redhat.com>
1420
1421 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1422 of writing to inferior_ptid.
1423 (scoped_restore_exited_inferior): Delete.
1424 (handle_vfork_child_exec_or_exit): Simplify using
1425 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1426 instead of writing to inferior_ptid.
1427 (THREAD_STOPPED_BY): Delete.
1428 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1429 (thread_stopped_by_hw_breakpoint): Delete.
1430 (save_waitstatus): Use
1431 scoped_restore_current_thread+switch_to_thread, and call
1432 target_stopped_by_watchpoint instead of
1433 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1434 instead of thread_stopped_by_sw_breakpoint, and
1435 target_stopped_by_hw_breakpoint instead of
1436 thread_stopped_by_hw_breakpoint.
1437 (handle_inferior_event)
1438 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1439 inferior_ptid directly, nor
1440 set_current_inferior/set_current_program_space. Use
1441 switch_to_thread / switch_to_inferior_no_thread instead.
1442
a0776b13
PA
14432020-06-18 Pedro Alves <palves@redhat.com>
1444
1445 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1446 instead of writing to inferior_ptid.
1447
6155c136
PA
14482020-06-18 Pedro Alves <palves@redhat.com>
1449
1450 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1451 added thread.
1452 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1453 to the added thread.
1454 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1455 instead of writing to inferior_ptid.
1456
c5316fc6
PA
14572020-06-18 Pedro Alves <palves@redhat.com>
1458
1459 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1460 (register_to_value_test): Mock a program_space too. Heap-allocate
1461 the address space. Don't write to inferior_ptid. Use
1462 switch_to_thread instead.
1463
8df01799
PA
14642020-06-18 Pedro Alves <palves@redhat.com>
1465
1466 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1467 Delete.
1468 (find_signalled_thread()): New, factored out from
1469 linux_make_corefile_notes and adjusted to handle exited threads.
1470 (linux_make_corefile_notes): Adjust to use the new
1471 find_signalled_thread.
1472
41792d68
PA
14732020-06-18 Pedro Alves <palves@redhat.com>
1474
1475 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1476 of saving/restoring inferior_ptid.
1477
612f258a
TT
14782020-06-17 Tom Tromey <tom@tromey.com>
1479
1480 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1481 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1482 declare.
1483 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1484
efb763a5
SM
14852020-06-15 Simon Marchi <simon.marchi@efficios.com>
1486
1487 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1488 of partial symtabs.
1489
2951f6c0
SM
14902020-06-17 Simon Marchi <simon.marchi@efficios.com>
1491
1492 * regformats/reg-arm.dat: Remove.
1493 * regformats/reg-bfin.dat: Remove.
1494 * regformats/reg-cris.dat: Remove.
1495 * regformats/reg-crisv32.dat: Remove.
1496 * regformats/reg-m32r.dat: Remove.
1497 * regformats/reg-tilegx.dat: Remove.
1498 * regformats/reg-tilegx32.dat: Remove.
1499
7d458ea5
SM
15002020-06-17 Simon Marchi <simon.marchi@efficios.com>
1501
1502 * features/Makefile (WHICH): Remove arm files.
1503 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1504 * regformats/arm/arm-with-neon.dat: Remove.
1505 * regformats/arm/arm-with-vfpv2.dat: Remove.
1506 * regformats/arm/arm-with-vfpv3.dat: Remove.
1507
3af96c0d
SM
15082020-06-17 Simon Marchi <simon.marchi@efficios.com>
1509
1510 * features/Makefile (XMLTOC): Remove rx.xml.
1511
b25e22fd
PA
15122020-06-17 Pedro Alves <palves@redhat.com>
1513
1514 * gdbthread.h (thread_control_state) <trap_expected> Update
1515 comments.
1516
a78a19b1
AB
15172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1520 ada_language::lookup_symbol_nonlocal.
1521 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1522 (ada_language::lookup_symbol_nonlocal): New member function,
1523 implementation from ada_lookup_symbol_nonlocal.
1524 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1525 initializer.
1526 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1527 initializer.
1528 (cplus_language::lookup_symbol_nonlocal): New member function.
1529 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1530 (minimal_language_data) Likewise.
1531 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1532 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1533 initializer.
1534 (d_language::lookup_symbol_nonlocal): New member function.
1535 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1536 initializer.
1537 (f_language::lookup_symbol_nonlocal): New member function.
1538 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1539 initializer.
1540 * language.c (unknown_language_data): Likewise.
1541 (auto_language_data): Likewise.
1542 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1543 field.
1544 (language_defn::lookup_symbol_nonlocal): New member function.
1545 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1546 initializer.
1547 * objc-lang.c (objc_language_data): Likewise.
1548 * opencl-lang.c (opencl_language_data): Likewise.
1549 * p-lang.c (pascal_language_data): Likewise.
1550 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1551 rust_language::lookup_symbol_nonlocal.
1552 (rust_language_data): Delete la_lookup_symbol_nonlocal
1553 initializer.
1554 (rust_language::lookup_symbol_nonlocal): New member function,
1555 implementation from rust_lookup_symbol_nonlocal.
1556 * symtab.c (lookup_symbol_aux): Update call to
1557 lookup_symbol_nonlocal.
1558 (basic_lookup_symbol_nonlocal): Rename to...
1559 (language_defn::lookup_symbol_nonlocal): ...this, and update
1560 header comment. Remove language_defn parameter, and replace with
1561 uses of `this'.
1562 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1563
ebe2334e
AB
15642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1565
1566 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1567 initializer.
1568 (ada_language::value_print_inner): New member function.
1569 * c-lang.c (c_language_data): Delete la_value_print_inner
1570 initializer.
1571 (cplus_language_data): Likewise.
1572 (asm_language_data): Likewise.
1573 (minimal_language_data): Likewise.
1574 * d-lang.c (d_language_data): Likewise.
1575 (d_language::value_print_inner): New member function.
1576 * f-lang.c (f_language_data): Delete la_value_print_inner
1577 initializer.
1578 (f_language::value_print_inner): New member function.
1579 * f-lang.h (f_value_print_innner): Rename to...
1580 (f_value_print_inner): ...this (note spelling of 'inner').
1581 * f-valprint.c (f_value_print_innner): Rename to...
1582 (f_value_print_inner): ...this (note spelling of 'inner').
1583 * go-lang.c (go_language_data): Delete la_value_print_inner
1584 initializer.
1585 (go_language::value_print_inner): New member function.
1586 * language.c (language_defn::value_print_inner): Define new member
1587 function.
1588 (unk_lang_value_print_inner): Delete.
1589 (unknown_language_data): Delete la_value_print_inner initializer.
1590 (unknown_language::value_print_inner): New member function.
1591 (auto_language_data): Delete la_value_print_inner initializer.
1592 (auto_language::value_print_inner): New member function.
1593 * language.h (language_data): Delete la_value_print_inner field.
1594 (language_defn::value_print_inner): Delcare new member function.
1595 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1596 initializer.
1597 (m2_language::value_print_inner): New member function.
1598 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1599 initializer.
1600 * opencl-lang.c (opencl_language_data): Likewise.
1601 * p-lang.c (pascal_language_data): Likewise.
1602 (pascal_language::value_print_inner): New member function.
1603 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1604 initializer.
1605 (rust_language::value_print_inner): New member function.
1606 * valprint.c (do_val_print): Update call to value_print_inner.
1607
a1d1fa3e
AB
16082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1609
1610 * ada-lang.c (ada_language_data): Delete la_value_print
1611 initializer.
1612 (ada_language::value_print): New member function.
1613 * c-lang.c (c_language_data): Delete la_value_print initializer.
1614 (cplus_language_data): Likewise.
1615 (asm_language_data): Likewise.
1616 (minimal_language_data): Likewise.
1617 * d-lang.c (d_language_data): Likewise.
1618 * f-lang.c (f_language_data): Likewise.
1619 * go-lang.c (go_language_data): Likewise.
1620 * language.c (unk_lang_value_print): Delete.
1621 (language_defn::value_print): Define new member function.
1622 (unknown_language_data): Delete la_value_print initializer.
1623 (unknown_language::value_print): New member function.
1624 (auto_language_data): Delete la_value_print initializer.
1625 (auto_language::value_print): New member function.
1626 * language.h (language_data): Delete la_value_print field.
1627 (language_defn::value_print): Declare new member function.
1628 (LA_VALUE_PRINT): Update call to value_print.
1629 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1630 * objc-lang.c (objc_language_data): Likewise.
1631 * opencl-lang.c (opencl_language_data): Likewise.
1632 * p-lang.c (pascal_language_data): Likewise.
1633 (pascal_language::value_print): New member function.
1634 * rust-lang.c (rust_language_data): Delete la_value_print
1635 initializer.
1636
f16a9f57
AB
16372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1638
1639 * ada-lang.c (ada_watch_location_expression): Rename to
1640 ada_language::watch_location_expression.
1641 (ada_language_data): Delete la_watch_location_expression
1642 initializer.
1643 (ada_language::watch_location_expression): New member function,
1644 implementation from ada_watch_location_expression.
1645 * breakpoint.c (watch_command_1): Update call to
1646 watch_location_expression.
1647 * c-lang.c (c_watch_location_expression): Rename to
1648 language_defn::watch_location_expression.
1649 (c_language_data): Delete la_watch_location_expression
1650 initializer.
1651 (cplus_language_data): Likewise.
1652 (asm_language_data): Likewise.
1653 (minimal_language_data): Likewise.
1654 * c-lang.h (c_watch_location_expression): Delete declaration.
1655 * d-lang.c (d_language_data): Delete la_watch_location_expression
1656 initializer.
1657 * f-lang.c (f_language_data): Likewise.
1658 * go-lang.c (go_language_data): Likewise.
1659 * language.c (language_defn::watch_location_expression): Member
1660 function implementation from c_watch_location_expression.
1661 (unknown_language_data): Delete la_watch_location_expression
1662 initializer.
1663 (auto_language_data): Likewise.
1664 * language.h (language_data): Delete la_watch_location_expression
1665 field.
1666 (language_defn::watch_location_expression): Declare new member
1667 function.
1668 * m2-lang.c (m2_language_data): Delete
1669 la_watch_location_expression initializer.
1670 * objc-lang.c (objc_language_data): Likewise.
1671 * opencl-lang.c (opencl_language_data): Likewise.
1672 * p-lang.c (pascal_language_data): Likewise.
1673 * rust-lang.c (rust_watch_location_expression): Rename to
1674 rust_language::watch_location_expression.
1675 (rust_language_data): Delete la_watch_location_expression
1676 initializer.
1677 (rust_language::watch_location_expression): New member function,
1678 implementation from rust_watch_location_expression.
1679
7e56227d
AB
16802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1683 ada_language::collect_symbol_completion_matches.
1684 (ada_language_data): Delete la_collect_symbol_completion_matches
1685 initializer.
1686 (ada_language::collect_symbol_completion_matches): New member
1687 function, implementation from
1688 ada_collect_symbol_completion_matches.
1689 * c-lang.c (c_language_data): Delete
1690 la_collect_symbol_completion_matches initializer.
1691 (cplus_language_data): Likewise.
1692 (asm_language_data): Likewise.
1693 (minimal_language_data): Likewise.
1694 * d-lang.c (d_language_data): Likewise.
1695 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1696 f_language::collect_symbol_completion_matches.
1697 (f_language_data): Delete la_collect_symbol_completion_matches
1698 initializer.
1699 (f_language::collect_symbol_completion_matches) New member
1700 function, implementation from f_collect_symbol_completion_matches.
1701 * go-lang.c (go_language_data): Delete
1702 la_collect_symbol_completion_matches initializer.
1703 * language.c (unknown_language_data): Likewise.
1704 (auto_language_data): Likewise.
1705 * language.h (language_data): Delete
1706 la_collect_symbol_completion_matches field.
1707 (language_defn::collect_symbol_completion_matches): New member
1708 function.
1709 * m2-lang.c (m2_language_data): Delete
1710 la_collect_symbol_completion_matches initializer.
1711 * objc-lang.c (objc_language_data): Likewise.
1712 * opencl-lang.c (opencl_language_data): Likewise.
1713 * p-lang.c (pascal_language_data): Likewise.
1714 * rust-lang.c (rust_language_data): Likewise.
1715 * symtab.c (default_collect_symbol_completion_matches): Delete.
1716 (collect_symbol_completion_matches): Update call to
1717 collect_symbol_completion_matches.
1718 (collect_symbol_completion_matches_type): Likewise.
1719 * symtab.h (default_collect_symbol_completion_matches): Delete
1720 declaration.
1721
53fc67f8
AB
17222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1723
1724 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1725 (ada_language_data): Delete la_word_break_characters initializer.
1726 (ada_language::word_break_characters): New member function.
1727 * c-lang.c (c_language_data): Delete la_word_break_characters
1728 initializer.
1729 (cplus_language_data): Likewise.
1730 (asm_language_data): Likewise.
1731 (minimal_language_data): Likewise.
1732 * completer.c: Update global comment.
1733 (advance_to_expression_complete_word_point): Update call to
1734 word_break_characters.
1735 (complete_files_symbols): Likewise.
1736 (complete_line_internal_1): Likewise.
1737 (default_completer_handle_brkchars): Likewise.
1738 (skip_quoted_chars): Likewise.
1739 * d-lang.c (d_language_data): Delete la_word_break_characters
1740 initializer.
1741 * f-lang.c (f_word_break_characters): Delete.
1742 (f_language_data): Delete la_word_break_characters initializer.
1743 (f_language::word_break_characters): New member function.
1744 * go-lang.c (go_language_data): Delete la_word_break_characters
1745 initializer.
1746 * language.c (unknown_language_data): Likewise.
1747 (auto_language_data): Likewise.
1748 * language.h (default_word_break_characters): Move declaration to
1749 earlier in the file.
1750 (language_data): Delete la_word_break_characters field.
1751 (language_defn::word_break_characters): New member function.
1752 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1753 initializer.
1754 * objc-lang.c (objc_language_data): Likewise.
1755 * opencl-lang.c (opencl_language_data): Likewise.
1756 * p-lang.c (pascal_language_data): Likewise.
1757 * rust-lang.c (rust_language_data): Likewise.
1758
c9debfb9
AB
17592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1760
1761 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1762 (ada_language_data): Delete la_get_symbol_name_matcher
1763 initializer.
1764 (language_defn::get_symbol_name_matcher_inner): New member
1765 function.
1766 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1767 initializer.
1768 (cplus_language_data): Likewise.
1769 (cplus_language::get_symbol_name_matcher_inner): New member
1770 function.
1771 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1772 (minimal_language_data): Likewise.
1773 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1774 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1775 initializer.
1776 * dictionary.c (iter_match_first_hashed): Update call to
1777 get_symbol_name_matcher.
1778 (iter_match_next_hashed): Likewise.
1779 (iter_match_next_linear): Likewise.
1780 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1781 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1782 initializer.
1783 (f_language::get_symbol_name_matcher_inner): New member function.
1784 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1785 initializer.
1786 * language.c (default_symbol_name_matcher): Update header comment,
1787 make static.
1788 (language_defn::get_symbol_name_matcher): New definition.
1789 (language_defn::get_symbol_name_matcher_inner): Likewise.
1790 (get_symbol_name_matcher): Delete.
1791 (unknown_language_data): Delete la_get_symbol_name_matcher
1792 initializer.
1793 (auto_language_data): Likewise.
1794 * language.h (language_data): Delete la_get_symbol_name_matcher
1795 field.
1796 (language_defn::get_symbol_name_matcher): New member function.
1797 (language_defn::get_symbol_name_matcher_inner): Likewise.
1798 (default_symbol_name_matcher): Delete declaration.
1799 * linespec.c (find_methods): Update call to
1800 get_symbol_name_matcher.
1801 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1802 initializer.
1803 * minsyms.c (lookup_minimal_symbol): Update call to
1804 get_symbol_name_matcher.
1805 (iterate_over_minimal_symbols): Likewise.
1806 * objc-lang.c (objc_language_data): Delete
1807 la_get_symbol_name_matcher initializer.
1808 * opencl-lang.c (opencl_language_data): Likewise.
1809 * p-lang.c (pascal_language_data): Likewise.
1810 * psymtab.c (psymbol_name_matches): Update call to
1811 get_symbol_name_matcher.
1812 * rust-lang.c (rust_language_data): Delete
1813 la_get_symbol_name_matcher initializer.
1814 * symtab.c (symbol_matches_search_name): Update call to
1815 get_symbol_name_matcher.
1816 (compare_symbol_name): Likewise.
1817
9a49ad8c
AB
18182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 * ada-lang.c (ada_language_data): Delete la_compute_program
1821 initializer.
1822 * c-lang.c (c_language_data): Likewise.
1823 (c_language::compute_program): New member function.
1824 (cplus_language_data): Delete la_compute_program initializer.
1825 (cplus_language::compute_program): New member function.
1826 (asm_language_data): Delete la_compute_program initializer.
1827 (minimal_language_data): Likewise.
1828 * c-lang.h (c_compute_program): Update comment.
1829 (cplus_compute_program): Likewise.
1830 * compile/compile-c-support.c (c_compute_program): Likewise.
1831 (cplus_compute_program): Likewise.
1832 * compile/compile.c (compile_to_object): Update call to
1833 la_compute_program.
1834 * d-lang.c (d_language_data): Delete la_compute_program
1835 initializer.
1836 * f-lang.c (f_language_data): Likewise.
1837 * go-lang.c (go_language_data): Likewise.
1838 * language.c (unknown_language_data): Likewise.
1839 (auto_language_data): Likewise.
1840 * language.h (language_data): Delete la_compute_program field.
1841 (language_defn::compute_program): New member function.
1842 * m2-lang.c (m2_language_data): Delete la_compute_program
1843 initializer.
1844 * objc-lang.c (objc_language_data): Likewise.
1845 * opencl-lang.c (opencl_language_data): Likewise.
1846 * p-lang.c (pascal_language_data): Likewise.
1847 * rust-lang.c (rust_language_data): Likewise.
1848
eff93b4d
AB
18492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * ada-lang.c (ada_language_data) Delete
1852 la_class_name_from_physname initializer.
1853 * c-lang.c (c_language_data): Likewise.
1854 (cplus_language_data): Likewise.
1855 (cplus_language::class_name_from_physname): New member function.
1856 (asm_language_data): Delete la_class_name_from_physname
1857 initializer.
1858 (minimal_language_data): Likewise.
1859 * d-lang.c (d_language_data): Likewise.
1860 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1861 method on language_defn class.
1862 (guess_full_die_structure_name): Likewise.
1863 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1864 initializer.
1865 * go-lang.c (go_language_data): Likewise.
1866 * language.c (language_class_name_from_physname): Delete.
1867 (unk_lang_class_name): Delete.
1868 (unknown_language_data): Delete la_class_name_from_physname
1869 initializer.
1870 (auto_language_data): Likewise.
1871 * language.h (language_data): Delete la_class_name_from_physname
1872 field.
1873 (language_defn::class_name_from_physname): New function.
1874 (language_class_name_from_physname): Delete declaration.
1875 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1876 initializer.
1877 * objc-lang.c (objc_language_data): Likewise.
1878 * opencl-lang.c (opencl_language_data): Likewise.
1879 * p-lang.c (pascal_language_data): Likewise.
1880 * rust-lang.c (rust_language_data): Likewise.
1881
de543742
TT
18822020-06-16 Tom Tromey <tom@tromey.com>
1883
1884 * tui/tui-data.h (STATUS_NAME): New macro.
1885 * tui/tui-layout.c (tui_remove_some_windows)
1886 (initialize_known_windows, tui_register_window)
1887 (tui_layout_split::remove_windows, initialize_layouts)
1888 (tui_new_layout_command): Don't use hard-coded window names.
1889
a350efd4
TT
18902020-06-16 Tom Tromey <tom@tromey.com>
1891
1892 PR tui/25348:
1893 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1894 tui_initialize_readline. Only run once. Call rl_initialize.
1895 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1896 tui_initialize_readline.
1897 * tui/tui-io.c (tui_setup_io): Call
1898 tui_ensure_readline_initialized.
1899 * tui/tui-interp.c (tui_interp::init): Update.
1900
39ec0490
TT
19012020-06-16 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1904 Also preserve the status window.
1905
d2d1ea20
TT
19062020-06-16 Tom Tromey <tom@tromey.com>
1907
1908 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1909 where m_window==nullptr.
1910
66920317
TT
19112020-06-15 Tom Tromey <tromey@adacore.com>
1912
1913 * windows-nat.c (windows_nat::handle_output_debug_string):
1914 Update.
1915 (windows_nat::handle_ms_vc_exception): Update.
1916 * target.h (target_read_string): Change API.
1917 * target.c (target_read_string): Change API.
1918 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1919 Update.
1920 * solib-frv.c (frv_current_sos): Update.
1921 * solib-dsbt.c (dsbt_current_sos): Update.
1922 * solib-darwin.c (darwin_current_sos): Update.
1923 * linux-thread-db.c (inferior_has_bug): Update.
1924 * expprint.c (print_subexp_standard): Update.
1925 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1926 (ada_exception_message_1): Update.
1927
a5d871dd
TT
19282020-06-15 Tom Tromey <tromey@adacore.com>
1929
1930 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1931
670e35fa
TT
19322020-06-15 Tom Tromey <tromey@adacore.com>
1933
1934 * valprint.c (read_string): Update comment.
1935 * target.c (MIN): Remove.
1936 (target_read_string): Rewrite.
1937
f5272a3b
TT
19382020-06-15 Tom Tromey <tromey@adacore.com>
1939
1940 * corefile.c (read_memory_string): Remove.
1941 * ada-valprint.c (ada_value_print_ptr): Update.
1942 * ada-lang.h (ada_tag_name): Change return type.
1943 * ada-lang.c (type_from_tag): Update.
1944 (ada_tag_name_from_tsd): Change return type. Use
1945 target_read_string.
1946 (ada_tag_name): Likewise.
1947 * gdbcore.h (read_memory_string): Don't declare.
1948
2c074f49
HD
19492020-06-14 Hannes Domani <ssbssa@yahoo.de>
1950
1951 * symtab.c (rbreak_command): Ignore Windows drive colon.
1952
6a17d503
SM
19532020-06-12 Simon Marchi <simon.marchi@efficios.com>
1954
1955 * NEWS: Mention removed GDBserver host support.
1956
453c733f
NC
19572020-06-12 Nelson Chu <nelson.chu@sifive.com>
1958
1959 * features/riscv/rebuild-csr-xml.sh: Updated.
1960
2b4e6a3f
TT
19612020-06-11 Tom Tromey <tom@tromey.com>
1962
1963 PR gdb/18318:
1964 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1965
4412332f
JG
19662020-06-09 Jonny Grant <jg@jguk.org>
19672020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1968
1969 * main.c (captured_main_1): Don't print new line after help.
1970 (print_gdb_help): add mailing list and IRC channel information
1971 to --help. Add new lines between items in the footer. Remove
1972 quotes around bug url.
1973
2f33032a
KS
19742020-06-11 Keith Seitz <keiths@redhat.com>
1975
1976 PR gdb/21356
1977 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1978 Resolve typedefs for type length calculations.
1979
7ab96794
TV
19802020-06-10 Tom de Vries <tdevries@suse.de>
1981
1982 PR ada/24713
1983 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1984 (write_psymbols): Enable .gdb_index for ada.
1985 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1986 ada.
1987
e5f3ece2
TV
19882020-06-10 Tom de Vries <tdevries@suse.de>
1989
1990 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1991 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1992 namei" instead of "const char *name" argument.
1993 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1994 dw2_symtab_iter_init.
1995
940da03e
SM
19962020-06-08 Simon Marchi <simon.marchi@efficios.com>
1997
1998 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1999 to use type::field and field::type instead.
2000
b6cdac4b
SM
20012020-06-08 Simon Marchi <simon.marchi@efficios.com>
2002
2003 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2004 to use field::type instead.
2005
5d14b6e5
SM
20062020-06-08 Simon Marchi <simon.marchi@efficios.com>
2007
2008 * gdbtypes.h (struct field) <type, set_type>: New methods.
2009 Rename `type` field to...
2010 <m_type>: ... this. Change references throughout to use type or
2011 set_type methods.
2012 (FIELD_TYPE): Use field::type. Change call sites that modify
2013 the field's type to use field::set_type instead.
2014
3d967001
SM
20152020-06-08 Simon Marchi <simon.marchi@efficios.com>
2016
2017 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2018 to use type::index_type instead.
2019
262abc0d
SM
20202020-06-08 Simon Marchi <simon.marchi@efficios.com>
2021
2022 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2023 methods.
2024 (TYPE_INDEX_TYPE): Use type::index_type.
2025 * gdbtypes.c (create_array_type_with_stride): Likewise.
2026
82836c92
TT
20272020-06-07 Tom Tromey <tom@tromey.com>
2028
2029 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2030 parameter.
2031 (generic_value_print): Update.
2032
940dace9
AB
20332020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2034
2035 Revert commit 982a38f60b0.
2036 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2037
982a38f6
AB
20382020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2039
2040 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2041 avoid use after free.
2042
82f06518
TV
20432020-06-05 Tom de Vries <tdevries@suse.de>
2044
2045 * NEWS: Fix typos.
2046
f8c41851
SM
20472020-06-04 Simon Marchi <simon.marchi@efficios.com>
2048
2049 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2050 the per_bfd object.
2051 (dwarf2_read_debug_names): Likewise.
2052 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2053 object when re-using a per_bfd object with an index.
2054
f9b5d5ea
TV
20552020-06-03 Tom de Vries <tdevries@suse.de>
2056
2057 PR symtab/26046
2058 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2059 children for C++.
2060 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2061 DW_TAG_subprogram.
2062
f6eee2d0
AB
20632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2064
2065 * ada-lang.c (ada_language_data): Delete skip_trampoline
2066 initializer.
2067 * c-lang.c (c_language_data): Likewise.
2068 (cplus_language_data): Likewise.
2069 (cplus_language::skip_trampoline): New member function.
2070 (asm_language_data): Delete skip_trampoline initializer.
2071 (minimal_language_data): Likewise.
2072 * d-lang.c (d_language_data): Likewise.
2073 * f-lang.c (f_language_data): Likewise.
2074 * go-lang.c (go_language_data): Likewise.
2075 * language.c (unk_lang_trampoline): Delete function.
2076 (skip_language_trampoline): Update.
2077 (unknown_language_data): Delete skip_trampoline initializer.
2078 (auto_language_data): Likewise.
2079 * language.h (language_data): Delete skip_trampoline field.
2080 (language_defn::skip_trampoline): New function.
2081 * m2-lang.c (m2_language_data): Delete skip_trampoline
2082 initializer.
2083 * objc-lang.c (objc_skip_trampoline): Delete function, move
2084 implementation to objc_language::skip_trampoline.
2085 (objc_language_data): Delete skip_trampoline initializer.
2086 (objc_language::skip_trampoline): New member function with
2087 implementation from objc_skip_trampoline.
2088 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2089 initializer.
2090 * p-lang.c (pascal_language_data): Likewise.
2091 * rust-lang.c (rust_language_data): Likewise.
2092
0a50df5d
AB
20932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2094
2095 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2096 (ada_language::demangle): New member function.
2097 * c-lang.c (c_language_data): Delete la_demangle initializer.
2098 (cplus_language_data): Delete la_demangle initializer.
2099 (cplus_language::demangle): New member function.
2100 (asm_language_data): Delete la_demangle initializer.
2101 (minimal_language_data): Delete la_demangle initializer.
2102 * d-lang.c (d_language_data): Delete la_demangle initializer.
2103 (d_language::demangle): New member function.
2104 * f-lang.c (f_language_data): Delete la_demangle initializer.
2105 (f_language::demangle): New member function.
2106 * go-lang.c (go_language_data): Delete la_demangle initializer.
2107 (go_language::demangle): New member function.
2108 * language.c (language_demangle): Update.
2109 (unk_lang_demangle): Delete.
2110 (unknown_language_data): Delete la_demangle initializer.
2111 (unknown_language::demangle): New member function.
2112 (auto_language_data): Delete la_demangle initializer.
2113 (auto_language::demangle): New member function.
2114 * language.h (language_data): Delete la_demangle field.
2115 (language_defn::demangle): New function.
2116 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2117 * objc-lang.c (objc_language_data): Delete la_demangle
2118 initializer.
2119 (objc_language::demangle): New member function.
2120 * opencl-lang.c (opencl_language_data): Delete la_demangle
2121 initializer.
2122 * p-lang.c (pascal_language_data): Likewise.
2123 * rust-lang.c (rust_language_data): Likewise.
2124 (rust_language::demangle): New member function.
2125
fbfb0a46
AB
21262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2127
2128 * ada-lang.c (ada_language_data): Delete la_print_type
2129 initializer.
2130 (ada_language::print_type): New member function.
2131 * c-lang.c (c_language_data): Delete la_print_type initializer.
2132 (c_language::print_type): New member function.
2133 (cplus_language_data): Delete la_print_type initializer.
2134 (cplus_language::print_type): New member function.
2135 (asm_language_data): Delete la_print_type initializer.
2136 (asm_language::print_type): New member function.
2137 (minimal_language_data): Delete la_print_type initializer.
2138 (minimal_language::print_type): New member function.
2139 * d-lang.c (d_language_data): Delete la_print_type initializer.
2140 (d_language::print_type): New member function.
2141 * f-lang.c (f_language_data): Delete la_print_type initializer.
2142 (f_language::print_type): New member function.
2143 * go-lang.c (go_language_data): Delete la_print_type initializer.
2144 (go_language::print_type): New member function.
2145 * language.c (unk_lang_print_type): Delete.
2146 (unknown_language_data): Delete la_print_type initializer.
2147 (unknown_language::print_type): New member function.
2148 (auto_language_data): Delete la_print_type initializer.
2149 (auto_language::print_type): New member function.
2150 * language.h (language_data): Delete la_print_type field.
2151 (language_defn::print_type): New function.
2152 (LA_PRINT_TYPE): Update.
2153 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2154 (m2_language::print_type): New member function.
2155 * objc-lang.c (objc_language_data): Delete la_print_type
2156 initializer.
2157 (objc_language::print_type): New member function.
2158 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2159 to opencl_language::print_type.
2160 (opencl_language_data): Delete la_print_type initializer.
2161 (opencl_language::print_type): New member function, implementation
2162 from opencl_print_type.
2163 * p-lang.c (pascal_language_data): Delete la_print_type
2164 initializer.
2165 (pascal_language::print_type): New member function.
2166 * rust-lang.c (rust_print_type): Delete, implementation moved to
2167 rust_language::print_type.
2168 (rust_language_data): Delete la_print_type initializer.
2169 (rust_language::print_type): New member function, implementation
2170 from rust_print_type.
2171
6f827019
AB
21722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2173
2174 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2175 implementation moves to...
2176 (ada_language::sniff_from_mangled_name): ...here. Update return
2177 type.
2178 (ada_language_data): Delete la_sniff_from_mangled_name
2179 initializer.
2180 * c-lang.c (c_language_data): Likewise.
2181 (cplus_language_data): Likewise.
2182 (cplus_language::sniff_from_mangled_name): New member function,
2183 implementation taken from gdb_sniff_from_mangled_name.
2184 (asm_language_data): Delete la_sniff_from_mangled_name
2185 initializer.
2186 (minimal_language_data): Likewise.
2187 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2188 implementation moves to cplus_language::sniff_from_mangled_name.
2189 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2190 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2191 moves to...
2192 (d_language::sniff_from_mangled_name): ...here.
2193 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2194 * f-lang.c (f_language_data): Likewise.
2195 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2196 moves to...
2197 (go_language::sniff_from_mangled_name): ...here.
2198 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2199 * language.c (language_sniff_from_mangled_name): Delete.
2200 (unknown_language_data): Delete la_sniff_from_mangled_name
2201 initializer.
2202 (auto_language_data): Likewise.
2203 * language.h (language_data): Delete la_sniff_from_mangled_name
2204 field.
2205 (language_defn::sniff_from_mangled_name): New function.
2206 (language_sniff_from_mangled_name): Delete declaration.
2207 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2208 field.
2209 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2210 implementation moves to...
2211 (objc_language::sniff_from_mangled_name): ...here.
2212 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2213 * opencl-lang.c (opencl_language_data): Likewise.
2214 * p-lang.c (pascal_language_data): Likewise.
2215 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2216 implementation moves to...
2217 (rust_language::sniff_from_mangled_name): ...here.
2218 (rust_language_data): Delete la_sniff_from_mangled_name
2219 initializer.
2220 * symtab.c (symbol_find_demangled_name): Call
2221 sniff_from_mangled_name member function.
2222
fb8006fd
AB
22232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2226 initializer.
2227 * c-lang.c (c_language_data): Likewise.
2228 (cplus_language_data): Likewise.
2229 (cplus_language::search_name_hash): New member function.
2230 (asm_language_data): Delete la_search_name_hash initializer.
2231 (minimal_language_data): Likewise.
2232 * d-lang.c (d_language_data): Likewise.
2233 * dictionary.c (default_search_name_hash): Rename to...
2234 (language_defn::search_name_hash): ...this.
2235 * f-lang.c (f_language_data): Likewise.
2236 (f_language::search_name_hash): New member function.
2237 * go-lang.c (go_language_data): Delete la_search_name_hash
2238 initializer.
2239 * language.c (unknown_language_data): Likewise.
2240 (auto_language_data): Likewise.
2241 * language.h (struct language_data): Delete la_search_name_hash
2242 field.
2243 (language_defn::search_name_hash): Declare new member function.
2244 (default_search_name_hash): Delete declaration.
2245 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2246 initializer.
2247 * objc-lang.c (objc_language_data): Likewise.
2248 * opencl-lang.c (opencl_language_data): Likewise.
2249 * p-lang.c (pascal_language_data): Likewise.
2250 * rust-lang.c (rust_language_data): Likewise.
2251 * symtab.c (search_name_hash): Update call.
2252
8e25bafe
AB
22532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2254
2255 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2256 initializer.
2257 * c-lang.c (class compile_instance): Declare.
2258 (c_language_data): Delete la_get_compile_instance initializer.
2259 (c_language::get_compile_instance): New member function.
2260 (cplus_language_data): Delete la_get_compile_instance initializer.
2261 (cplus_language::get_compile_instance): New member function.
2262 (asm_language_data): Delete la_get_compile_instance initializer.
2263 (minimal_language_data): Likewise.
2264 * c-lang.h (c_get_compile_context): Update comment.
2265 (cplus_get_compile_context): Update comment.
2266 * compile/compile.c (compile_to_object): Update calls, don't rely
2267 on function pointer being NULL.
2268 * d-lang.c (d_language_data): Delete la_get_compile_instance
2269 initializer.
2270 * f-lang.c (f_language_data): Likewise.
2271 * go-lang.c (go_language_data): Likewise.
2272 * language.c (unknown_language_data): Likewise.
2273 (auto_language_data): Likewise.
2274 * language.h (language_data): Delete la_get_compile_instance field.
2275 (language_defn::get_compile_instance): New member function.
2276 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2277 initializer.
2278 * objc-lang.c (objc_language_data): Likewise.
2279 * opencl-lang.c (opencl_language_data): Likewise.
2280 * p-lang.c (pascal_language_data): Likewise.
2281 * rust-lang.c (rust_language_data): Likewise.
2282
4009ee92
AB
22832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2284
2285 * ada-lang.c (ada_add_all_symbols): Update comment.
2286 (ada_iterate_over_symbols): Delete, move implementation to...
2287 (ada_language::iterate_over_symbols): ...here, a new member
2288 function, rewrite to use range based for loop.
2289 (ada_language_data): Delete la_iterate_over_symbols initializer.
2290 * c-lang.c (c_language_data): Likewise.
2291 (cplus_language_data): Likewise.
2292 (asm_language_data): Likewise.
2293 (minimal_language_data): Likewise.
2294 * d-lang.c (d_language_data): Likewise.
2295 * f-lang.c (f_language_data): Likewise.
2296 * go-lang.c (go_language_data): Likewise.
2297 * language.c (unknown_language_data): Likewise.
2298 (auto_language_data): Likewise.
2299 * language.h (language_data): Delete la_iterate_over_symbols field.
2300 (language_defn::iterate_over_symbols): New member function.
2301 (LA_ITERATE_OVER_SYMBOLS): Update.
2302 * linespec.c (iterate_over_all_matching_symtabs): Update.
2303 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2304 initializer.
2305 * objc-lang.c (objc_language_data): Likewise.
2306 * opencl-lang.c (opencl_language_data): Likewise.
2307 * p-lang.c (pascal_language_data): Likewise.
2308 * rust-lang.c (rust_language_data): Likewise.
2309
54f4ca46
AB
23102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * ada-lang.c (ada_language_data): Delete
2313 la_lookup_transparent_type initializer.
2314 * c-lang.c (c_language_data): Likewise.
2315 (cplus_language_data): Likewise.
2316 (cplus_language::lookup_transparent_type): New member function.
2317 (asm_language_data): Delete la_lookup_transparent_type
2318 initializer.
2319 (minimal_language_data): Likewise.
2320 * d-lang.c (d_language_data): Likewise.
2321 * f-lang.c (f_language_data): Likewise.
2322 * go-lang.c (go_language_data): Likewise.
2323 * language.c (unknown_language_data): Likewise.
2324 (auto_language_data): Likewise.
2325 * language.h (struct language_data): Delete
2326 la_lookup_transparent_type field.
2327 (language_defn::lookup_transparent_type): New member function.
2328 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2329 initializer.
2330 * objc-lang.c (objc_language_data): Likewise.
2331 * opencl-lang.c (opencl_language_data): Likewise.
2332 * p-lang.c (pascal_language_data): Likewise.
2333 * rust-lang.c (rust_language_data): Likewise.
2334 * symtab.c (symbol_matches_domain): Update call.
2335
1fb314aa
AB
23362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2337
2338 * ada-lang.c (ada_language_arch_info): Delete function, move
2339 implementation to...
2340 (ada_language::language_arch_info): ...here, a new member
2341 function.
2342 (ada_language_data): Delete la_language_arch_info.
2343 * c-lang.c (c_language_data): Likewise.
2344 (c_language::language_arch_info): New member function.
2345 (cplus_language_arch_info): Delete function, move
2346 implementation to...
2347 (cplus_language::language_arch_info): ...here, a new member
2348 function.
2349 (cplus_language_data): Delete la_language_arch_info.
2350 (asm_language_data): Likewise.
2351 (asm_language::language_arch_info): New member function.
2352 (minimal_language_data): Delete la_language_arch_info.
2353 (minimal_language::language_arch_info): New member function.
2354 * d-lang.c (d_language_arch_info): Delete function, move
2355 implementation to...
2356 (d_language::language_arch_info): ...here, a new member
2357 function.
2358 (d_language_data): Delete la_language_arch_info.
2359 * f-lang.c (f_language_arch_info): Delete function, move
2360 implementation to...
2361 (f_language::language_arch_info): ...here, a new member
2362 function.
2363 (f_language_data): Delete la_language_arch_info.
2364 * go-lang.c (go_language_arch_info): Delete function, move
2365 implementation to...
2366 (go_language::language_arch_info): ...here, a new member
2367 function.
2368 (go_language_data): Delete la_language_arch_info.
2369 * language.c (unknown_language_data): Likewise.
2370 (unknown_language::language_arch_info): New member function.
2371 (auto_language_data): Delete la_language_arch_info.
2372 (auto_language::language_arch_info): New member function.
2373 (language_gdbarch_post_init): Update call to
2374 la_language_arch_info.
2375 * language.h (language_data): Delete la_language_arch_info
2376 function pointer.
2377 (language_defn::language_arch_info): New function.
2378 * m2-lang.c (m2_language_arch_info): Delete function, move
2379 implementation to...
2380 (m2_language::language_arch_info): ...here, a new member
2381 function.
2382 (m2_language_data): Delete la_language_arch_info.
2383 * objc-lang.c (objc_language_arch_info): Delete function, move
2384 implementation to...
2385 (objc_language::language_arch_info): ...here, a new member
2386 function.
2387 (objc_language_data): Delete la_language_arch_info.
2388 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2389 implementation to...
2390 (opencl_language::language_arch_info): ...here, a new member
2391 function.
2392 (opencl_language_data): Delete la_language_arch_info.
2393 * p-lang.c (pascal_language_arch_info): Delete function, move
2394 implementation to...
2395 (pascal_language::language_arch_info): ...here, a new member
2396 function.
2397 (pascal_language_data): Delete la_language_arch_info.
2398 * rust-lang.c (rust_language_arch_info): Delete function, move
2399 implementation to...
2400 (rust_language::language_arch_info): ...here, a new member
2401 function.
2402 (rust_language_data): Delete la_language_arch_info.
2403
48448202
AB
24042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2405
2406 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2407 initializer.
2408 * c-lang.c (c_language_data): Likewise.
2409 (cplus_language_data): Likewise.
2410 (cplus_language::pass_by_reference_info): New method.
2411 (asm_language_data): Delete la_pass_by_reference initializer.
2412 (minimal_language_data): Likewise.
2413 * cp-abi.c (cp_pass_by_reference): Remove use of
2414 default_pass_by_reference.
2415 * d-lang.c (d_language_data): Likewise.
2416 * f-lang.c (f_language_data): Likewise.
2417 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2418 default_pass_by_reference.
2419 * go-lang.c (go_language_data): Likewise.
2420 * language.c (language_pass_by_reference): Update.
2421 (default_pass_by_reference): Delete.
2422 (unknown_language_data): Delete la_pass_by_reference
2423 initializer.
2424 (auto_language_data): Likewise.
2425 * language.h (struct language_data): Delete la_pass_by_reference
2426 field.
2427 (language_defn::pass_by_reference_info): New member function.
2428 (default_pass_by_reference): Delete declaration.
2429 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2430 initializer.
2431 * objc-lang.c (objc_language_data): Likewise.
2432 * opencl-lang.c (opencl_language_data): Likewise.
2433 * p-lang.c (pascal_language_data): Likewise.
2434 * rust-lang.c (rust_language_data): Likewise.
2435
15e5fd35
AB
24362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2437
2438 * ada-lang.c (ada_read_var_value): Delete function, move
2439 implementation to...
2440 (ada_language::read_var_value): ...here.
2441 (ada_language_data): Delete la_read_var_value initializer.
2442 * c-lang.c (c_language_data): Likewise.
2443 (cplus_language_data): Likewise.
2444 (minimal_language_data): Likewise.
2445 * d-lang.c (d_language_data): Likewise.
2446 * f-lang.c (f_language_data): Likewise.
2447 * findvar.c (default_read_var_value): Rename to...
2448 (language_defn::read_var_value): ...this.
2449 * findvar.c (read_var_value): Update header comment, and change to
2450 call member function instead of function pointer.
2451 * go-lang.c (go_language_data): Likewise.
2452 * language.c (unknown_language_data): Delete la_read_var_value
2453 initializer.
2454 (auto_language_data): Likewise.
2455 * language.h (struct language_data): Delete la_read_var_value
2456 field.
2457 (language_defn::read_var_value): New member function.
2458 (default_read_var_value): Delete declaration.
2459 * m2-lang.c (m2_language_data): Delete la_read_var_value
2460 initializer.
2461 * objc-lang.c (objc_language_data): Likewise.
2462 * opencl-lang.c (opencl_language_data): Likewise.
2463 * p-lang.c (pascal_language_data): Likewise.
2464 * rust-lang.c (rust_language_data): Likewise.
2465 * value.h (default_read_var_value): Delete declaration.
2466
5bd40f2a
AB
24672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2468
2469 * ada-lang.c (ada_print_array_index): Delete function, move
2470 implementation to...
2471 (ada_language::print_array_index): ...here.
2472 (ada_language_data): Delete la_print_array_index initializer.
2473 * c-lang.c (c_language_data): Likewise.
2474 (cplus_language_data): Likewise.
2475 (minimal_language_data): Likewise.
2476 * d-lang.c (d_language_data): Likewise.
2477 * f-lang.c (f_language_data): Likewise.
2478 * go-lang.c (go_language_data): Likewise.
2479 * language.c (default_print_array_index): Delete function, move
2480 implementation to...
2481 (language_defn::print_array_index): ...here.
2482 (unknown_language_data): Delete la_print_array_index initializer.
2483 (auto_language_data): Likewise.
2484 * language.h (struct language_data): Delete la_print_array_index
2485 field.
2486 (language_defn::print_array_index): New member function.
2487 (LA_PRINT_ARRAY_INDEX): Update.
2488 (default_print_array_index): Delete declaration.
2489 * m2-lang.c (m2_language_data): Delete la_print_array_index
2490 initializer.
2491 * objc-lang.c (objc_language_data): Likewise.
2492 * opencl-lang.c (opencl_language_data): Likewise.
2493 * p-lang.c (pascal_language_data): Likewise.
2494 * rust-lang.c (rust_language_data): Likewise.
2495
0874fd07
AB
24962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * gdb/ada-lang.c (ada_language_defn): Convert to...
2499 (ada_language_data): ...this.
2500 (class ada_language): New class.
2501 (ada_language_defn): New static global.
2502 * gdb/c-lang.c (c_language_defn): Convert to...
2503 (c_language_data): ...this.
2504 (class c_language): New class.
2505 (c_language_defn): New static global.
2506 (cplus_language_defn): Convert to...
2507 (cplus_language_data): ...this.
2508 (class cplus_language): New class.
2509 (cplus_language_defn): New static global.
2510 (asm_language_defn): Convert to...
2511 (asm_language_data): ...this.
2512 (class asm_language): New class.
2513 (asm_language_defn): New static global.
2514 (minimal_language_defn): Convert to...
2515 (minimal_language_data): ...this.
2516 (class minimal_language): New class.
2517 (minimal_language_defn): New static global.
2518 * gdb/d-lang.c (d_language_defn): Convert to...
2519 (d_language_data): ...this.
2520 (class d_language): New class.
2521 (d_language_defn): New static global.
2522 * gdb/f-lang.c (f_language_defn): Convert to...
2523 (f_language_data): ...this.
2524 (class f_language): New class.
2525 (f_language_defn): New static global.
2526 * gdb/go-lang.c (go_language_defn): Convert to...
2527 (go_language_data): ...this.
2528 (class go_language): New class.
2529 (go_language_defn): New static global.
2530 * gdb/language.c (unknown_language_defn): Remove declaration.
2531 (current_language): Initialize to nullptr, real initialization is
2532 moved to _initialize_language.
2533 (languages): Delete global.
2534 (language_defn::languages): Define.
2535 (set_language_command): Use language_defn::languages.
2536 (set_language): Likewise.
2537 (range_error): Likewise.
2538 (language_enum): Likewise.
2539 (language_def): Likewise.
2540 (add_set_language_command): Use language_def::languages for the
2541 language list, and language_def to lookup language pointers.
2542 (skip_language_trampoline): Use language_defn::languages.
2543 (unknown_language_defn): Convert to...
2544 (unknown_language_data): ...this.
2545 (class unknown_language): New class.
2546 (unknown_language_defn): New static global.
2547 (auto_language_defn): Convert to...
2548 (auto_language_data): ...this.
2549 (class auto_language): New class.
2550 (auto_language_defn): New static global.
2551 (language_gdbarch_post_init): Use language_defn::languages.
2552 (_initialize_language): Initialize current_language.
2553 * gdb/language.h (struct language_defn): Rename to...
2554 (struct language_data): ...this.
2555 (struct language_defn): New.
2556 (auto_language_defn): Delete.
2557 (unknown_language_defn): Delete.
2558 (minimal_language_defn): Delete.
2559 (ada_language_defn): Delete.
2560 (asm_language_defn): Delete.
2561 (c_language_defn): Delete.
2562 (cplus_language_defn): Delete.
2563 (d_language_defn): Delete.
2564 (f_language_defn): Delete.
2565 (go_language_defn): Delete.
2566 (m2_language_defn): Delete.
2567 (objc_language_defn): Delete.
2568 (opencl_language_defn): Delete.
2569 (pascal_language_defn): Delete.
2570 (rust_language_defn): Delete.
2571 * gdb/m2-lang.c (m2_language_defn): Convert to...
2572 (m2_language_data): ...this.
2573 (class m2_language): New class.
2574 (m2_language_defn): New static global.
2575 * gdb/objc-lang.c (objc_language_defn): Convert to...
2576 (objc_language_data): ...this.
2577 (class objc_language): New class.
2578 (objc_language_defn): New static global.
2579 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2580 (opencl_language_data): ...this.
2581 (class opencl_language): New class.
2582 (opencl_language_defn): New static global.
2583 * gdb/p-lang.c (pascal_language_defn): Convert to...
2584 (pascal_language_data): ...this.
2585 (class pascal_language): New class.
2586 (pascal_language_defn): New static global.
2587 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2588 language pointer, update comment format.
2589 * gdb/rust-lang.c (rust_language_defn): Convert to...
2590 (rust_language_data): ...this.
2591 (class rust_language): New class.
2592 (rust_language_defn): New static global.
2593
1313c56e
AB
25942020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2595
2596 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2597 member variable.
2598 <m_stmt_at_address>: New member variable.
2599 (lnp_state_machine::record_line): Don't record some lines, update
2600 tracking of is_stmt at the same address.
2601 (lnp_state_machine::lnp_state_machine): Initialise new member
2602 variables.
2603
b7ed9f3d
ST
26042020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2605
2606 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2607 "-include gnu-nat-mig.h".
2608 * gnu-nat-mig.h: New file.
2609 * gnu-nat.c: Include "gnu-nat-mig.h".
2610 (exc_server, msg_reply_server, notify_server,
2611 process_reply_server): Remove declarations.
2612
14a8ad62
ST
26132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2614
2615 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2616 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2617 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2618 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2619 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2620 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2621 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2622 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2623 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2624 to gnu_nat_target class.
2625 * gnu-nat.c: Likewise.
2626 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2627 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2628 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2629 object.
2630 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2631 instead of `gnu_target'.
2632
0af5e106
ST
26332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2634
2635 * i386-gnu-tdep.c: Include "gdbcore.h"
2636 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2637 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2638 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2639 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2640 i386_gnu_sigcontext_addr): New functions
2641 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2642 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2643 tdep.
2644
078f2fc9
ST
26452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2646
2647 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2648 before fork_inferior call. Avoid calling it if target_is_pushed returns
2649 true.
2650
53dff92c
ST
26512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2652
2653 * gnu-nat.h (gnu_target): New variable declaration.
2654 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2655 gnu_target.
2656 * gnu-nat.c (gnu_target): New variable.
2657 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2658 add_thread_silent, and add_thread calls.
2659 (gnu_nat_target::create_inferior): Pass gnu_target to
2660 add_thread_silent, thread_change_ptid call.
2661 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2662 call.
2663
5a8b8627
ST
26642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2665
2666 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2667 (gnu_nat_target::find_memory_regions): Remove unused
2668 `old_address' variable.
2669
366f550a
ST
26702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2671
2672 * gnu-nat.c: Include "gdbarch.h".
2673
f14871bf
ST
26742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2675
2676 * reply_mig_hack.awk (Error return): Cast function through
2677 void *, to bypass compiler function call check.
2678
c6887cfb
ST
26792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2680
2681 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2682 $(srcdir)/reply_mig_hack.awk.
2683
6930bffe
ST
26842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2685
2686 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2687
112c22ed
JG
26882020-05-30 Jonny Grant <jg@jguk.org>
2689
2690 * configure.ac (ACX_BUGURL): change bug URL to https.
2691
f68f85b5
PA
26922020-05-30 Pedro Alves <palves@redhat.com>
2693
2694 * cp-support.c (replace_typedefs_template): New.
2695 (replace_typedefs_qualified_name): Handle
2696 DEMANGLE_COMPONENT_TEMPLATE.
2697
976ca316
SM
26982020-05-29 Simon Marchi <simon.marchi@efficios.com>
2699
2700 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2701 dwarf2/index-cache.h, dwarf2/index-write.c,
2702 dwarf2/index-write.h, dwarf2/line-header.c,
2703 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2704 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2705 variables and fields from `dwarf2_per_objfile` to just
2706 `per_objfile` throughout.
2707
989ade05
SM
27082020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2709
2710 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2711 <push_dwarf_reg_entry_value>: Add comment.
2712
c47bae85
KB
27132020-05-28 Kevin Buettner <kevinb@redhat.com>
2714 Keith Seitz <keiths@redhat.com>
2715
2716 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2717 instead of PyEval_ReleaseLock.
2718 (class gdbpy_gil): Move to earlier in file.
2719 (finalize_python): Set gdb_python_initialized.
2720 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2721 when not initialized.
2722
44486dcf
SM
27232020-05-28 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2726 <push_dwarf_reg_entry_value>: Remove assert. Override
2727 per_objfile with caller_per_objfile.
2728
f030440d
TV
27292020-05-28 Tom de Vries <tdevries@suse.de>
2730
2731 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2732 PR gold/15646 workaround to symbol kind "type".
2733
f0fbb768
TT
27342020-05-27 Tom Tromey <tromey@adacore.com>
2735
2736 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2737
af0b2a3e
TT
27382020-05-27 Tom Tromey <tromey@adacore.com>
2739
2740 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2741 Use htab_find_with_hash.
2742 <add_abbrev>: Remove "abbrev_number" parameter.
2743 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2744 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2745 (hash_abbrev): Add comment.
2746 (abbrev_table::lookup_abbrev): Move to header file.
2747 (abbrev_table::read): Update.
2748
7d00ffec
TT
27492020-05-27 Tom Tromey <tromey@adacore.com>
2750
2751 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2752 method.
2753 <canonical_name>: New member.
2754 <raw_name>: Rename from "name".
2755 (partial_die_info): Initialize canonical_name.
2756 (scan_partial_symbols): Check raw_name.
2757 (partial_die_parent_scope, partial_die_full_name)
2758 (add_partial_symbol, add_partial_subprogram)
2759 (add_partial_enumeration, load_partial_dies): Use "name" method.
2760 (partial_die_info::name): New method.
2761 (partial_die_info::read, guess_partial_die_structure_name)
2762 (partial_die_info::fixup): Update.
2763
697bba18
TT
27642020-05-27 Tom Tromey <tromey@adacore.com>
2765
2766 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2767 <get_ref_die_offset>: Inline.
2768 <get_ref_die_offset_complaint>: New method.
2769 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2770 (attribute::get_ref_die_offset_complaint): Rename from
2771 get_ref_die_offset. Just issue complaint.
2772
c17ace43
HD
27732020-05-27 Hannes Domani <ssbssa@yahoo.de>
2774
2775 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2776
96445f0b
HD
27772020-05-27 Hannes Domani <ssbssa@yahoo.de>
2778
2779 * exec.c (exec_file_attach): Use errno value of first openp failure.
2780
ac637ec3
HD
27812020-05-27 Hannes Domani <ssbssa@yahoo.de>
2782
2783 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2784 Don't close thread handle.
2785
17ee85fc
TT
27862020-05-27 Tom Tromey <tom@tromey.com>
2787 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2790 shared_ptr.
2791 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2792 member.
2793 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2794 dwarf2_per_bfd_objfile_data_key>: New globals.
2795 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2796 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2797 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2798 shared.
2799 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2800 short-circuit when sharing.
2801 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2802 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2803
39b16f87
SM
28042020-05-27 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2807 to...
2808 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2809 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2810
fcf23d5b
SM
28112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2814 build_name_components, find_name_components_bounds>:
2815 Add per_objfile parameter.
2816 (struct mapped_index) <symbol_name_at>: Likewise.
2817 (struct mapped_debug_names): Remove constructor.
2818 <dwarf2_per_objfile>: Remove field.
2819 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2820 (mapped_index_base::find_name_components_bounds,
2821 mapped_index_base::build_name_components,
2822 dw2_expand_symtabs_matching_symbol): Likewise.
2823 (class mock_mapped_index) <symbol_name_at>: Likewise.
2824 (check_match): Likewise.
2825 (check_find_bounds_finds): Likewise.
2826 (test_mapped_index_find_name_component_bounds): Update.
2827 (CHECK_MATCH): Update.
2828 (dw2_expand_symtabs_matching): Update.
2829 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2830 per_objfile parameter.
2831 <find_vec_in_debug_names>: Likewise.
2832 <m_per_objfile>: New field.
2833 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2834 parameter.
2835 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2836 (dw2_debug_names_iterator::next): Update.
2837 (dw2_debug_names_lookup_symbol): Update.
2838 (dw2_debug_names_expand_symtabs_for_function): Update.
2839 (dw2_debug_names_map_matching_symbols): Update.
2840 (dw2_debug_names_expand_symtabs_matching): Update.
2841 (dwarf2_read_debug_names): Update.
2842
7188ed02
SM
28432020-05-27 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2846 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2847 move to dwarf2_per_objfile.
2848 <read_in_chain>: Remove.
2849 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2850 remove_all_cus, age_comp_units>: New methods.
2851 <m_dwarf2_cus>: New member.
2852 (struct dwarf2_per_cu_data) <cu>: Remove.
2853 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2854 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2855 moved to methods of dwarf2_per_objfile.
2856 (dwarf2_clear_marks): Remove.
2857 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2858 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2859 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2860 (dwarf2_per_objfile::remove_all_cus): New.
2861 (class free_cached_comp_units) <~free_cached_comp_units>:
2862 Update.
2863 (load_cu): Update.
2864 (dw2_do_instantiate_symtab): Adjust.
2865 (fill_in_sig_entry_from_dwo_entry): Adjust.
2866 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2867 (cutu_reader::cutu_reader): Likewise.
2868 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2869 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2870 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2871 and dwarf2_per_objfile::age_comp_units.
2872 (load_partial_comp_unit): Update.
2873 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2874 (process_queue): Likewise.
2875 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2876 backlink.
2877 (dwarf2_read_addr_index): Likewise.
2878 (follow_die_offset): Likewise.
2879 (dwarf2_fetch_die_loc_sect_off): Likewise.
2880 (dwarf2_fetch_constant_bytes): Likewise.
2881 (dwarf2_fetch_die_type_sect_off): Likewise.
2882 (follow_die_sig_1): Likewise.
2883 (load_full_type_unit): Likewise.
2884 (read_signatured_type): Likewise.
2885 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2886 (dwarf2_cu::~dwarf2_cu): Remove.
2887 (dwarf2_per_objfile::get_cu): New.
2888 (dwarf2_per_objfile::set_cu): New.
2889 (age_cached_comp_units): Rename to...
2890 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2891 to std::unordered_map.
2892 (free_one_cached_comp_unit): Rename to...
2893 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2894 to std::unordered_map.
2895 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2896 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2897 a dwarf2_per_objfile in data.
2898 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2899 (dwarf2_clear_marks): Remove.
2900
2e671100
SM
29012020-05-27 Simon Marchi <simon.marchi@efficios.com>
2902
2903 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2904 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2905 (init_tu_and_read_dwo_dies): Likewise.
2906 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2907 (cutu_reader::cutu_reader): Likewise.
2908 (load_partial_comp_unit): Likewise.
2909 (process_psymtab_comp_unit): Update.
2910 (build_type_psymtabs_1): Update.
2911 (process_skeletonless_type_unit): Update.
2912 (load_full_comp_unit): Update.
2913 (find_partial_die): Update.
2914 (dwarf2_read_addr_index): Update.
2915 (read_signatured_type): Update.
2916
2e6a9f79
SM
29172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2918
2919 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2920 m_header_read_in>: New fields.
2921 <get_header>: New method.
2922 * dwarf2/read.c (per_cu_header_read_in): Remove.
2923 (dwarf2_per_cu_data::get_header): New.
2924 (dwarf2_per_cu_data::addr_size): Update.
2925 (dwarf2_per_cu_data::offset_size): Update.
2926 (dwarf2_per_cu_data::ref_addr_size): Update.
2927
1b555f17
SM
29282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2929
2930 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2931 (dw2_do_instantiate_symtab): Update.
2932 (queue_and_load_all_dwo_tus): Change parameter from
2933 dwarf2_per_cu_data to dwarf2_cu.
2934 (dwarf2_fetch_die_loc_sect_off): Update.
2935 (dwarf2_fetch_constant_bytes): Update.
2936 (dwarf2_fetch_die_type_sect_off): Update.
2937
8fc0b21d
SM
29382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2939
2940 * dwarf2/read.c (process_full_comp_unit,
2941 process_full_type_unit): Remove per_cu, per_objfile paramters.
2942 Add dwarf2_cu parameter.
2943 (process_queue): Update.
2944
168c9250
SM
29452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2946
2947 * dwarf2/read.c (create_cu_from_index_list): Replace
2948 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2949 (create_cus_from_index_list): Likewise.
2950 (create_cus_from_index): Likewise.
2951 (create_signatured_type_table_from_index): Likewise.
2952 (create_cus_from_debug_names_list): Likewise.
2953 (create_cus_from_debug_names): Likewise.
2954 (dwarf2_read_gdb_index): Update.
2955 (dwarf2_read_debug_names): Update.
2956
e286671b
TT
29572020-05-27 Tom Tromey <tom@tromey.com>
2958 Simon Marchi <simon.marchi@efficios.com>
2959
2960 * dwarf2/read.h (struct dwarf2_per_objfile)
2961 <get_type_for_signatured_type, set_type_for_signatured_type>:
2962 New methods.
2963 <m_type_map>: New member.
2964 (struct signatured_type) <type>: Remove.
2965 * dwarf2/read.c
2966 (dwarf2_per_objfile::get_type_for_signatured_type,
2967 dwarf2_per_objfile::set_type_for_signatured_type): New.
2968 (get_signatured_type): Use new methods.
2969
8adb8487
TT
29702020-05-27 Tom Tromey <tom@tromey.com>
2971 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2974 (struct dwarf2_per_objfile) <type_units>: New member.
2975 <get_type_unit_group_unshareable>: New method.
2976 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2977 num_symtabs, symtabs>: Remove; move to
2978 type_unit_group_unshareable.
2979 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2980 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2981 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2982
127bbf4b
SM
29832020-05-27 Simon Marchi <simon.marchi@efficios.com>
2984
2985 * dwarf2/read.h (struct dwarf2_per_cu_data):
2986 <dwarf2_per_objfile>: Remove.
2987 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2988 dwarf2_per_objfile.
2989 (create_signatured_type_table_from_index): Likewise.
2990 (create_signatured_type_table_from_debug_names): Likewise.
2991 (create_debug_type_hash_table): Likewise.
2992 (fill_in_sig_entry_from_dwo_entry): Likewise.
2993 (create_type_unit_group): Likewise.
2994 (read_comp_units_from_section): Likewise.
2995 (create_cus_hash_table): Likewise.
2996
f6e649dd
SM
29972020-05-27 Simon Marchi <simon.marchi@efficios.com>
2998
2999 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3000 dwarf2_per_cu_data::dwarf2_per_objfile.
3001 (compute_compunit_symtab_includes): Likewise.
3002 (dwarf2_cu::start_symtab): Likewise.
3003
aa66c379
SM
30042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3005
3006 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3007 parameter.
3008 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3009 (read_namespace_alias): Update.
3010 (lookup_die_type): Update.
3011 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3012 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3013 Update.
3014 (disassemble_dwarf_expression): Update.
3015
120ce1b5
SM
30162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * dwarf2/read.h (struct dwarf2_queue_item): Add
3019 dwarf2_per_objfile parameter, assign new parameter.
3020 <per_objfile>: New field.
3021 * dwarf2/read.c (free_one_cached_comp_unit): Add
3022 dwarf2_per_objfile parameter.
3023 (queue_comp_unit): Likewise.
3024 (dw2_do_instantiate_symtab): Update.
3025 (process_psymtab_comp_unit): Update.
3026 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3027 (process_imported_unit_die): Update.
3028 (queue_and_load_dwo_tu): Update.
3029 (follow_die_offset): Update.
3030 (follow_die_sig_1): Update.
3031
9f47c707
SM
30322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3033
3034 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3035 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3036 (read_call_site_scope): Assign per_objfile.
3037 (dwarf2_per_cu_data::objfile): Remove.
3038 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3039 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3040 dwarf2_per_objfile parameter.
3041 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3042 dwarf2_per_objfile parameter.
3043 (dwarf_expr_reg_to_entry_parameter): Add output
3044 dwarf2_per_objfile parameter.
3045 (locexpr_get_frame_base): Update.
3046 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3047 <push_dwarf_reg_entry_value>: Update.
3048 <call_site_to_target_addr>: Update.
3049 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3050 parameter.
3051 (value_of_dwarf_reg_entry): Update.
3052 (rw_pieced_value): Update.
3053 (indirect_synthetic_pointer): Update.
3054 (dwarf2_evaluate_property): Update.
3055 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3056 parameter.
3057 (locexpr_read_variable): Update.
3058 (locexpr_get_symbol_read_needs): Update.
3059 (loclist_read_variable): Update.
3060
14095eb3
SM
30612020-05-27 Simon Marchi <simon.marchi@efficios.com>
3062
3063 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3064 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3065 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3066 parameter.
3067 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3068 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3069 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3070 parameter.
3071 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3072 sect_variable_value): Add dwarf2_per_objfile parameter.
3073 (class dwarf_evaluate_loc_desc) <dwarf_call,
3074 dwarf_variable_value>: Update.
3075 (fetch_const_value_from_synthetic_pointer): Add
3076 dwarf2_per_objfile parameter.
3077 (fetch_const_value_from_synthetic_pointer): Update.
3078 (coerced_pieced_ref): Update.
3079 (class symbol_needs_eval_context) <dwarf_call,
3080 dwarf_variable_value>: Update.
3081 (dwarf2_compile_expr_to_ax): Update.
3082
3c3cd3d4
SM
30832020-05-27 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3086 parameter.
3087 (dwarf2_evaluate_loc_desc_full): Update.
3088
82ca3f51
SM
30892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3092 parameter.
3093 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3094 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3095 dwarf2_per_objfile parameter.
3096 (decode_debug_loc_dwo_addresses): Likewise.
3097 (dwarf2_find_location_expression): Update.
3098 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3099 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3100 parameter.
3101 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3102 parameter.
3103 (locexpr_describe_location_1): Likewise.
3104 (locexpr_describe_location): Update.
3105
4b167ea1
SM
31062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3107
3108 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3109 Remove.
3110 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3111 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3112 (dwarf2_compile_property_to_c): Update.
3113 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3114 use text offset from objfile.
3115 (locexpr_tracepoint_var_ref): Update.
3116 (locexpr_generate_c_location): Update.
3117 (loclist_describe_location): Update.
3118 (loclist_tracepoint_var_ref): Update.
3119 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3120 dwarf2_per_objfile parameter.
3121 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3122 use text offset from objfile.
3123 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3124
89b07335
SM
31252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3126
3127 * dwarf2/expr.h (struct dwarf_expr_context)
3128 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3129 <offset>: Remove.
3130 <per_objfile>: New member.
3131 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3132 dwarf2_per_objfile parameter. Don't set offset, set
3133 per_objfile.
3134 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3135 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3136 a dwarf2_per_objfile object instead of an offset.
3137 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3138 constructor.
3139 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3140 to dwarf2_expr_executor constructor. Don't set offset.
3141 (dwarf2_fetch_cfa_info): Update.
3142 (struct dwarf2_frame_cache) <text_offset>: Remove.
3143 <per_objfile>: New field.
3144 (dwarf2_frame_cache): Update.
3145 (dwarf2_frame_prev_register): Update.
3146 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3147 <dwarf_evaluate_loc_desc>: Add constructor.
3148 (dwarf2_evaluate_loc_desc_full): Update.
3149 (dwarf2_locexpr_baton_eval): Update.
3150 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3151 Add constructor.
3152 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3153
293e7e51
SM
31542020-05-27 Simon Marchi <simon.marchi@efficios.com>
3155
3156 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3157 addr_sized_int_type>: Move to dwarf2_cu.
3158 <int_type>: Move to dwarf2_per_objfile.
3159 (struct dwarf2_per_objfile) <int_type>: Move here.
3160 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3161 addr_sized_int_type>: Move here.
3162 (read_func_scope): Update.
3163 (read_array_type): Update.
3164 (read_tag_string_type): Update.
3165 (attr_to_dynamic_prop): Update.
3166 (dwarf2_per_cu_data::int_type): Rename to...
3167 (dwarf2_per_objfile::int_type): ... this.
3168 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3169 (dwarf2_cu::addr_sized_int_type): ... this.
3170 (read_subrange_type): Update.
3171 (dwarf2_per_cu_data::addr_type): Rename to...
3172 (dwarf2_cu::addr_type): ... this.
3173 (set_die_type): Update.
3174
64874a40
SM
31752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3176
3177 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3178 data through per_cu->cu.
3179
4ab09049
SM
31802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3181
3182 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3183 dwarf2_per_cu_data parameter fo dwarf2_cu.
3184 (lookup_dwo_type_unit): Likewise.
3185 (read_cutu_die_from_dwo): Likewise.
3186 (lookup_dwo_unit): Likewise.
3187 (open_and_init_dwo_file): Likewise.
3188 (lookup_dwo_cutu): Likewise.
3189 (lookup_dwo_comp_unit): Likewise.
3190 (lookup_dwo_type_unit): Likewise.
3191 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3192 (cutu_reader::cutu_reader): Update.
3193
47b14e86
SM
31942020-05-27 Simon Marchi <simon.marchi@efficios.com>
3195
3196 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3197 parameter.
3198 (process_full_type_unit): Likewise.
3199 (process_queue): Update.
3200
43182c09
SM
32012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3202
3203 * dwarf2/read.c (recursively_compute_inclusions): Add
3204 dwarf2_per_objfile parameter.
3205 (compute_compunit_symtab_includes): Likewise.
3206 (process_cu_includes): Update.
3207
7aa104c4
SM
32082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3209
3210 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3211 parameter.
3212 (create_type_unit_group): Update.
3213 (process_psymtab_comp_unit_reader): Update.
3214 (build_type_psymtabs_reader): Update.
3215
e3beb21d
SM
32162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3217
3218 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3219 object through m_this_cu->cu.
3220
d460f660
SM
32212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3222
3223 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3224 the info parameter.
3225 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3226
ab432490
SM
32272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3228
3229 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3230 per_objfile parameter.
3231 (load_full_type_unit): Add per_objfile parameter.
3232 (read_signatured_type): Likewise.
3233 (load_full_comp_unit): Likewise.
3234 (load_cu): Likewise.
3235 (dw2_do_instantiate_symtab): Likewise.
3236 (dw2_get_file_names): Likewise.
3237 (dw2_map_symtabs_matching_filename): Update.
3238 (dw_expand_symtabs_matching_file_matcher): Update.
3239 (dw2_map_symbol_filenames): Update.
3240 (process_psymtab_comp_unit): Add per_objfile parameter.
3241 (build_type_psymtabs_1): Update.
3242 (process_skeletonless_type_unit): Update.
3243 (dwarf2_build_psymtabs_hard): Update.
3244 (load_partial_comp_unit): Add per_objfile parameter.
3245 (scan_partial_symbols): Update.
3246 (load_full_comp_unit): Add per_objfile parameter.
3247 (process_imported_unit_die): Update.
3248 (create_cus_hash_table): Update.
3249 (find_partial_die): Update.
3250 (dwarf2_read_addr_index): Update.
3251 (follow_die_offset): Update.
3252 (dwarf2_fetch_die_loc_sect_off): Update.
3253 (dwarf2_fetch_constant_bytes): Update.
3254 (dwarf2_fetch_die_type_sect_off): Update.
3255 (follow_die_sig_1): Update.
3256 (load_full_type_unit): Add per_objfile parameter.
3257 (read_signatured_type): Likewise.
3258
313bad1b
SM
32592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3260
3261 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3262 of objfile_name.
3263
c3699833
SM
32642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3265
3266 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3267 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3268 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3269 field.
3270 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3271 (create_cus_from_index): Update.
3272 (dwarf2_read_gdb_index): Update.
3273 (create_cus_from_debug_names): Update.
3274 (dwarf2_read_debug_names): Update.
3275 (get_abbrev_section_for_cu): Update.
3276 (create_all_comp_units): Update.
3277 (read_attribute_value): Update.
3278 (get_debug_line_section): Update.
3279 * dwarf2/index-cache.c (index_cache::store): Update.
3280 * dwarf2/index-write.c (save_gdb_index_command): Update.
3281 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3282
1859c670
SM
32832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3284
3285 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3286 member.
3287 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3288 dwarf2_per_cu_data::per_bfd.
3289 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3290 (create_type_unit_group): Likewise.
3291 (queue_comp_unit): Remove reference to
3292 per_cu->dwarf2_per_objfile.
3293 (maybe_queue_comp_unit): Likewise.
3294 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3295 (create_cus_hash_table): Assign new field.
3296
5e22e966
SM
32972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3298
3299 * dwarf2/read.c: Replace
3300 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3301 dwarf2_cu->per_objfile throughout.
3302
97a1449a
SM
33032020-05-27 Simon Marchi <simon.marchi@efficios.com>
3304
3305 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3306 parameter, don't use per_cu->dwarf2_per_objfile.
3307 (dw2_instantiate_symtab): Likewise.
3308 (dw2_find_last_source_symtab): Update.
3309 (dw2_map_expand_apply): Update.
3310 (dw2_lookup_symbol): Update.
3311 (dw2_expand_symtabs_for_function): Update.
3312 (dw2_expand_all_symtabs): Update.
3313 (dw2_expand_symtabs_with_fullname): Update.
3314 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3315 don't use per_cu->dwarf2_per_objfile.
3316 (dw2_expand_marked_cus): Update.
3317 (dw2_find_pc_sect_compunit_symtab): Update.
3318 (dw2_debug_names_lookup_symbol): Update.
3319 (dw2_debug_names_expand_symtabs_for_function): Update.
3320 (dw2_debug_names_map_matching_symbols): Update.
3321 (dwarf2_psymtab::expand_psymtab): Update.
3322
9e021579
SM
33232020-05-27 Simon Marchi <simon.marchi@efficios.com>
3324
3325 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3326 <per_objfile>: New member.
3327 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3328 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3329 call to dwarf2_cu.
3330 (cutu_reader::cutu_reader): Update.
3331 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3332
ae090bdb
SM
33332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3334
3335 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3336 struct dwarf2_per_objfile.
3337 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3338 dwarf2_per_bfd.
3339 * dwarf2/read.c (set_die_type): Update.
3340 (get_die_type_at_offset): Update.
3341
af758d11
SM
33422020-05-27 Tom Tromey <tom@tromey.com>
3343 Simon Marchi <simon.marchi@efficios.com>
3344
3345 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3346 method.
3347 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3348 get_symtab, set_symtab>: New methods.
3349 <m_symtabs>: New field.
3350 (struct dwarf2_psymtab): Derive from partial_symtab.
3351 <readin_p, get_compunit_symtab>: Declare methods.
3352 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3353 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3354 New methods.
3355 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3356 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3357 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3358 (dw2_symtab_iter_next, dw2_print_stats)
3359 (dw2_expand_symtabs_with_fullname)
3360 (dw2_expand_symtabs_matching_one)
3361 (dw_expand_symtabs_matching_file_matcher)
3362 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3363 (dw2_debug_names_iterator::next)
3364 (dw2_debug_names_map_matching_symbols)
3365 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3366 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3367 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3368 New methods.
3369 (get_compunit_symtab, process_full_comp_unit)
3370 (process_full_type_unit): Update.
3371 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3372
5989a64e
SM
33732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3374
3375 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3376 then introduce a new dwarf2_per_objfile type.
3377 <read_line_string>: Move to the new dwarf2_per_objfile type.
3378 <objfile>: Likewise.
3379 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3380 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3381 dwarf2_per_objfile->per_bfd.
3382 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3383 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3384 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3385 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3386 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3387 (dwarf2_per_objfile::locate_sections): Rename to...
3388 (dwarf2_per_bfd::locate_sections): ... this.
3389 (dwarf2_per_objfile::get_cutu): Rename to...
3390 (dwarf2_per_bfd::get_cutu): ... this.
3391 (dwarf2_per_objfile::get_cu): Rename to...
3392 (dwarf2_per_bfd::get_cu): ... this.
3393 (dwarf2_per_objfile::get_tu): Rename to...
3394 (dwarf2_per_bfd::get_tu): ... this.
3395 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3396 (dwarf2_per_bfd::allocate_per_cu): ... this.
3397 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3398 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3399 (get_gdb_index_contents_ftype): Change parameter from
3400 dwarf2_per_objfile to dwarf2_per_bfd.
3401 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3402 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3403
a50264ba
TT
34042020-05-27 Tom Tromey <tom@tromey.com>
3405 Simon Marchi <simon.marchi@efficios.com>
3406
3407 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3408 (allocate_piece_closure): Set "per_objfile" member.
3409 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3410 (locexpr_describe_location, loclist_describe_location): Use new
3411 member.
3412 * dwarf2/read.c (read_call_site_scope)
3413 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3414 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3415 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3416 handle_data_member_location): Set per_objfile member.
3417 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3418 member.
3419 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3420
d3473f0c
TT
34212020-05-27 Tom Tromey <tom@tromey.com>
3422
3423 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3424 allocate_signatured_type>: Declare new methods.
3425 <m_num_psymtabs>: New member.
3426 (struct dwarf2_per_cu_data) <index>: New member.
3427 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3428 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3429 (create_cu_from_index_list): Use allocate_per_cu.
3430 (create_signatured_type_table_from_index)
3431 (create_signatured_type_table_from_debug_names)
3432 (create_debug_type_hash_table, add_type_unit)
3433 (read_comp_units_from_section): Use allocate_signatured_type.
3434
5717c425
TT
34352020-05-27 Tom Tromey <tom@tromey.com>
3436
3437 * psymtab.c (partial_map_expand_apply)
3438 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3439 (psym_lookup_global_symbol_language)
3440 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3441 (psym_print_stats, psym_expand_symtabs_for_function)
3442 (psym_map_symbol_filenames, psym_map_matching_symbols)
3443 (psym_expand_symtabs_matching)
3444 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3445 (maintenance_check_psymtabs): Update.
3446 * psympriv.h (struct partial_symtab) <readin_p,
3447 get_compunit_symtab>: Add objfile parameter.
3448 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3449 Likewise.
3450 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3451 get_compunit_symtab>: Likewise.
3452 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3453
45940949
TT
34542020-05-27 Tom Tromey <tom@tromey.com>
3455
3456 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3457 member.
3458 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3459 (create_cu_from_index_list)
3460 (create_signatured_type_table_from_index)
3461 (create_signatured_type_table_from_debug_names)
3462 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3463 (dwarf2_create_include_psymtab)
3464 (create_debug_type_hash_table, add_type_unit)
3465 (create_type_unit_group, read_comp_units_from_section)
3466 (dwarf2_compute_name, create_cus_hash_table)
3467 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3468 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3469 obstack.
3470 (dw2_get_real_path): Likewise. Change argument to
3471 dwarf2_per_objfile.
3472
f8c6d152
LM
34732020-05-27 Luis Machado <luis.machado@linaro.org>
3474
3475 PR tdep/26000
3476 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3477 for ldrd (immediate).
3478
e98d2e6d
PW
34792020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3480
3481 * command.h: Add comment giving the name of class_tui.
3482 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3483 create the fake command for the help for class_tui.
3484
53a47a3e
TT
34852020-05-26 Tom Tromey <tromey@adacore.com>
3486
3487 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3488 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3489 (val_atr): New function.
3490 (value_val_atr): Use it.
3491 * ada-valprint.c (print_optional_low_bound): Change low bound
3492 handling for enums.
3493 (val_print_packed_array_elements): Don't call discrete_position.
3494 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3495 discrete_position for enum types.
3496 * language.c (default_print_array_index): Change type.
3497 * language.h (struct language_defn) <la_print_array_index>: Add
3498 index_type parameter, change type of index_value.
3499 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3500 (default_print_array_index): Update.
3501 * valprint.c (maybe_print_array_index): Don't call
3502 value_from_longest. Update.
3503 (value_print_array_elements): Don't call discrete_position.
3504
0bc2354b
TT
35052020-05-26 Tom Tromey <tromey@adacore.com>
3506
3507 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3508 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3509
1218a4bf
CDA
35102020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3511
3512 PR gdb/13519
3513 * avr-tdep.c (avr_integer_to_address): Return data or code
3514 address accordingly to the second 'type' argument of the
3515 function.
3516
92651b1d
MW
35172020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3518
3519 * infcmd.c, inferior.h: (construct_inferior_arguments):
3520 Moved function from here to gdbsupport/common-inferior.{h,cc}
3521
0a4f5f8c
TT
35222020-05-23 Tom Tromey <tom@tromey.com>
3523
3524 Revert commit eca1f90c:
3525 * NEWS: Remove entry for completion styling.
3526 * completer.c (_rl_completion_prefix_display_length): Move
3527 declaration later.
3528 (gdb_fnprint): Revert.
3529 (gdb_display_match_list_1): Likewise.
3530 * cli/cli-style.c (completion_prefix_style)
3531 (completion_difference_style, completion_suffix_style): Remove.
3532 (_initialize_cli_style): Revert.
3533 * cli/cli-style.h (completion_prefix_style)
3534 (completion_difference_style, completion_suffix_style): Don't
3535 declare.
3536
e08bd6c5
PA
35372020-05-24 Pedro Alves <palves@redhat.com>
3538
3539 * symtab.c (completion_list_add_name): Return boolean indication
3540 of whether the symbol matched.
3541 (completion_list_add_symbol): Don't try to remove C++ aliases if
3542 the symbol didn't match in the first place.
3543 * symtab.h (completion_list_add_name): Return bool.
3544
ceacbf6e
SM
35452020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3546
3547 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3548 type::field.
3549
26f16254
JB
35502020-05-23 Joel Brobecker <brobecker@adacore.com>
3551
3552 GDB 9.2 released.
3553
eca1f90c
TT
35542020-05-23 Tom Tromey <tom@tromey.com>
3555
3556 * NEWS: Add entry for completion styling.
3557 * completer.c (_rl_completion_prefix_display_length): Move
3558 declaration earlier.
3559 (gdb_fnprint): Use completion_style.
3560 (gdb_display_match_list_1): Likewise.
3561 * cli/cli-style.c (completion_prefix_style)
3562 (completion_difference_style, completion_suffix_style): New
3563 globals.
3564 (_initialize_cli_style): Register new globals.
3565 * cli/cli-style.h (completion_prefix_style)
3566 (completion_difference_style, completion_suffix_style): Declare.
3567
51e2cfa2
PA
35682020-05-23 Pedro Alves <palves@redhat.com>
3569
3570 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3571 (parse_escape): Use ISDIGIT instead of isdigit.
3572 (puts_debug): Use gdb_isprint instead of isprint.
3573 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3574 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3575 ISSPACE instead of isspace.
3576 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3577 instead of isspace.
3578 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3579 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3580 instead of isxdigit and ISDIGIT instead of isdigit.
3581
80fc5e77
SM
35822020-05-22 Simon Marchi <simon.marchi@efficios.com>
3583
3584 * gdbtypes.h (struct type) <field>: New method.
3585 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3586 or type::field.
3587
3cabb6b0
SM
35882020-05-22 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3591 (TYPE_FIELDS): Use type::fields. Change all call sites that
3592 modify the propery to use type::set_fields instead.
3593
1f704f76
SM
35942020-05-22 Simon Marchi <simon.marchi@efficios.com>
3595
3596 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3597 type::num_fields instead.
3598
5e33d5f4
SM
35992020-05-22 Simon Marchi <simon.marchi@efficios.com>
3600
3601 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3602 methods.
3603 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3604 that modify the number of fields to use type::set_num_fields
3605 instead.
3606
9392ebb3
TT
36072020-05-22 Tom Tromey <tromey@adacore.com>
3608
3609 * compile/compile-object-load.h (munmap_list_free): Don't
3610 declare.
3611
7c13f4e8
AB
36122020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3613
3614 * annotate.c (annotate_source_line): Update return type, add call
3615 to update current symtab and line.
3616 * annotate.h (annotate_source_line): Update return type, and
3617 extend header comment.
3618 * source.c (info_line_command): Check annotation_level before
3619 calling annotate_source_line.
3620 * stack.c (print_frame_info): If calling annotate_source_line
3621 returns true, then don't print any other source line information.
3622
aa370940
SM
36232020-05-21 Simon Marchi <simon.marchi@efficios.com>
3624
3625 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3626
84d53fa9
SM
36272020-05-21 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * coffread.c (patch_type): Remove NULL check before xfree.
3630 * corefile.c (set_gnutarget): Likewise.
3631 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3632 * exec.c (build_section_table): Likewise.
3633 * remote.c (remote_target::pass_signals): Likewise.
3634 * utils.c (n_spaces): Likewise.
3635 * cli/cli-script.c (document_command): Likewise.
3636 * i386-windows-tdep.c (core_process_module_section): Likewise.
3637 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3638
9d428aae
SM
36392020-05-20 Simon Marchi <simon.marchi@efficios.com>
3640
3641 * symfile.c (reread_symbols): Clear objfile's section_offsets
3642 vector and section indices, re-compute them by calling
3643 sym_offsets.
3644
250106a7
TT
36452020-05-20 Tom Tromey <tromey@adacore.com>
3646
3647 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3648 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3649
9a0bacfb
TV
36502020-05-20 Tom de Vries <tdevries@suse.de>
3651
3652 PR symtab/25833
3653 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3654
7b958a48
AM
36552020-05-20 Alan Modra <amodra@gmail.com>
3656
3657 PR 25993
3658 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3659 bfd_set_filename.
3660 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3661 passed to bfd_set_filename.
3662 * symfile-mem.c (add_vsyscall_page): Likewise for string
3663 passed to symbol_file_add_from_memory.
3664 (symbol_file_add_from_memory): Make name param a const char* and
3665 don't strdup.
3666
c7e97679
AM
36672020-05-20 Alan Modra <amodra@gmail.com>
3668
3669 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3670 rather than accessing bfd->filename directly.
3671 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3672 and use bfd_section_name.
3673 * dwarf2/frame.c (decode_frame_entry): Likewise.
3674 * exec.c (exec_set_section_address): Likewise.
3675 * solib-aix.c (solib_aix_bfd_open): Likewise.
3676 * stap-probe.c (get_stap_base_address): Likewise.
3677 * symfile.c (reread_symbols): Likewise.
3678
563c591b
TT
36792020-05-19 Tom Tromey <tromey@adacore.com>
3680
3681 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3682
f408d82c
SM
36832020-05-19 Simon Marchi <simon.marchi@efficios.com>
3684
3685 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3686
98c59b52
PA
36872020-05-19 Pedro Alves <palves@redhat.com>
3688
3689 * NEWS (set exec-file-mismatch): Adjust entry.
3690 * exec.c: Include "build-id.h".
3691 (validate_exec_file): Try to match build IDs instead of filenames.
3692 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3693 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3694 and pass down 'warn_if_slow'.
3695 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3696 gdb_bfd_open_closure to pass it down.
3697 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3698
4111f652
PA
36992020-05-19 Pedro Alves <palves@redhat.com>
3700
3701 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3702 * target.c (target_fileio_open_1): Rename to target_fileio_open
3703 and make extern. Use bool.
3704 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3705 (target_fileio_read_alloc_1): Adjust.
3706 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3707 (target_fileio_open_warn_if_slow): Delete declaration.
3708
ad80db5b
PA
37092020-05-19 Pedro Alves <palves@redhat.com>
3710
3711 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3712 Adjust all callers.
3713
1d6ce4d3
YS
37142020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3715
3716 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3717 whether disp is negative.
3718
9005fbbb
SM
37192020-05-19 Simon Marchi <simon.marchi@efficios.com>
3720
3721 * symfile.h (struct symfile_segment_data)
3722 <~symfile_segment_data>: Remove.
3723 <segment_info>: Change to std::vector.
3724 * symfile.c (default_symfile_segments): Update.
3725 * elfread.c (elf_symfile_segments): Update.
3726
68b888ff
SM
37272020-05-19 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3730 <segments>: New.
3731 <segment_bases, segment_sizes>: Remove.
3732 * symfile.c (default_symfile_segments): Update.
3733 * elfread.c (elf_symfile_segments): Update.
3734 * remote.c (remote_target::get_offsets): Update.
3735 * solib-target.c (solib_target_relocate_section_addresses):
3736 Update.
3737
62982abd
SM
37382020-05-19 Simon Marchi <simon.marchi@efficios.com>
3739
3740 * symfile.h (struct symfile_segment_data): Initialize fields.
3741 <~symfile_segment_data>: Add.
3742 (symfile_segment_data_up): New.
3743 (struct sym_fns) <sym_segments>: Return a
3744 symfile_segment_data_up.
3745 (default_symfile_segments): Return a symfile_segment_data_up.
3746 (free_symfile_segment_data): Remove.
3747 (get_symfile_segment_data): Return a symfile_segment_data_up.
3748 * symfile.c (default_symfile_segments): Likewise.
3749 (get_symfile_segment_data): Likewise.
3750 (free_symfile_segment_data): Remove.
3751 (symfile_find_segment_sections): Update.
3752 * elfread.c (elf_symfile_segments): Return a
3753 symfile_segment_data_up.
3754 * remote.c (remote_target::get_offsets): Update.
3755 * solib-target.c (solib_target_relocate_section_addresses):
3756 Update.
3757 * symfile-debug.c (debug_sym_segments): Return a
3758 symfile_segment_data_up.
3759
7f204339
RO
37602020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3761
e52a0f1b
RO
3762 PR build/25981
3763 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3764 Hardcode register numbers.
3765
7f204339
RO
3766 PR build/25981
3767 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3768 procfs_find_LDT_entry): Remove.
3769 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3770 procfs_find_LDT_entry): Remove.
3771 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3772 Remove.
3773
7f32a4d5
PA
37742020-05-17 Pedro Alves <palves@redhat.com>
3775 Andrew Burgess <andrew.burgess@embecosm.com>
3776 Keno Fischer <keno@juliacomputing.com>
3777
3778 PR gdb/25741
3779 * breakpoint.c (build_target_condition_list): Update comments.
3780 (build_target_command_list): Update comments and skip matching
3781 locations.
3782 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3783 a separate function. Simplify "set breakpoint auto-hw off"
3784 handling.
3785 (insert_breakpoints): Update comment.
3786 (tracepoint_locations_match): New parameter. For breakpoints,
3787 compare location types too, if the caller wants to.
3788 (handle_automatic_hardware_breakpoints): New functions.
3789 (bp_location_is_less_than): Also sort by location type and
3790 hardware breakpoint length.
3791 (update_global_location_list): Handle "set breakpoint auto-hw on"
3792 here.
3793 (update_breakpoint_locations): Ask breakpoint_locations_match to
3794 ignore location types.
3795
7d93a1e0
SM
37962020-05-16 Simon Marchi <simon.marchi@efficios.com>
3797
3798 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3799 type::name instead.
3800
d0e39ea2
SM
38012020-05-16 Simon Marchi <simon.marchi@efficios.com>
3802
3803 * gdbtypes.h (struct type) <name, set_name>: New methods.
3804 (TYPE_CODE): Use type::name. Change all call sites used to set
3805 the name to use type::set_name instead.
3806
2dab0c7b
TT
38072020-05-16 Tom Tromey <tom@tromey.com>
3808
3809 * top.c (quit_force): Update.
3810 * infrun.c (handle_no_resumed): Update.
3811 * top.h (all_uis): New function.
3812 (ALL_UIS): Remove.
3813
59f7bd8d
SM
38142020-05-16 Simon Marchi <simon.marchi@efficios.com>
3815
3816 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3817
9bf058f0
PA
38182020-05-16 Pedro Alves <palves@redhat.com>
3819
3820 * ia64-linux-nat.c
3821 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3822 Declare method.
3823 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3824
8f86ae1a
SM
38252020-05-15 Simon Marchi <simon.marchi@efficios.com>
3826
3827 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3828 (sparc64_adi_info): Likewise.
3829
d6bc0792
TT
38302020-05-15 Tom Tromey <tom@tromey.com>
3831
3832 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3833 block_objfile.
3834 (lookup_objfile_from_block): Remove.
3835 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3836 (lookup_global_symbol): Use block_objfile.
3837 * symtab.h (lookup_objfile_from_block): Don't declare.
3838 * printcmd.c (clear_dangling_display_expressions): Use
3839 block_objfile.
3840 * parse.c (operator_check_standard): Use block_objfile.
3841
8c14c3a3
TT
38422020-05-15 Tom Tromey <tom@tromey.com>
3843
3844 * language.c (language_alloc_type_symbol): Set
3845 SYMBOL_SECTION.
3846 * symtab.c (initialize_objfile_symbol): Remove.
3847 (allocate_symbol): Remove.
3848 (allocate_template_symbol): Remove.
3849 * dwarf2/read.c (fixup_go_packaging): Use "new".
3850 (new_symbol): Use "new".
3851 (read_variable): Don't call initialize_objfile_symbol. Use
3852 "new".
3853 (read_func_scope): Use "new".
3854 * xcoffread.c (process_xcoff_symbol): Don't call
3855 initialize_objfile_symbol.
3856 (SYMBOL_DUP): Remove.
3857 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3858 "new".
3859 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3860 (allocate_template_symbol): Don't declare.
3861 (struct symbol): Add copy constructor. Change defaults.
3862 * jit.c (finalize_symtab): Use "new".
3863 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3864 Use "new".
3865 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3866 (common_block_end): Use "new".
3867 * mdebugread.c (parse_symbol): Use "new".
3868 (new_symbol): Likewise.
3869
5b4a1a8d
PW
38702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3871
3872 * NEWS: Mention changes to help and apropos.
3873
57b4f16e
PW
38742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3875
3876 * command.h (enum command_class): Improve comments, document
3877 that class_alias is for user-defined aliases, give the class
3878 name for each class, remove unused class_xdb.
3879 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3880 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3881 by a precise class.
3882 * infcmd.c (_initialize_infcmd): Likewise.
3883 * reverse.c (_initialize_reverse): Likewise.
3884 * stack.c (_initialize_stack): Likewise.
3885 * symfile.c (_initialize_symfile): Likewise.
3886 * tracepoint.c (_initialize_tracepoint): Likewise.
3887
7c05caf7
PW
38882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3889
3890 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3891 when their aliased command is traversed.
3892 (help_cmd): Add fput_command_names_styled call to
3893 output command name and aliases when command has an alias.
3894
3b3aaacb
PW
38952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3896
3897 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3898 * cli/cli-decode.c (help_cmd_list): Declare as static,
3899 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3900 a command together with the command.
3901 (fput_command_name_styled, fput_command_names_styled): New functions.
3902 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3903 fput_command_name_styled.
3904 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3905 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3906
7aa1b46f
PW
39072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3908
3909 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3910 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3911 * command.h (cmd_show_list): Likewise.
3912 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3913 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3914
89bcba74
PW
39152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3916
3917 * unittests/command-def-selftests.c (traverse_command_structure):
3918 Verify all commands of a list have the same prefix command and
3919 that only the top cmdlist commands have a null prefix.
3920
3f4d92eb
PW
39212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3922
3923 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3924 as prefix, not one of its aliases.
3925 (set_cmd_prefix): Remove.
3926 (do_add_cmd): Centralize the setting of the prefix of a command, when
3927 command is defined after its full chain of prefix commands.
3928 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3929 (add_setshow_cmd_full): Likewise.
3930 (update_prefix_field_of_prefixed_commands): New function.
3931 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3932 update_prefix_field_of_prefixed_commands.
3933 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3934 addresses of remote_set_cmdlist and remote_show_cmdlist given
3935 as argument, not the address of an argument.
3936 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3937 * gdb/remote.c (_initialize_remote): Likewise.
3938
0605465f
PW
39392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3940
3941 * cli/cli-cmds.c (alias_command): Check for an existing alias
3942 using lookup_cmd_composition, as valid_command_p is too strict
3943 and forbids aliases that are the prefix of an existing alias
3944 or command.
3945 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3946 command is properly recognised as a valid command.
3947
58e6ac70
PW
39482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3949
3950 * unittests/help-doc-selftests.c: Rename to
3951 unittests/command-def-selftests.c
3952 * unittests/command-def-selftests.c (help_doc_tests): Update some
3953 comments.
3954 (command_structure_tests, traverse_command_structure): New namespace
3955 and function.
3956 (command_structure_invariants_tests): New function.
3957 (_initialize_command_def_selftests) Renamed from
3958 _initialize_help_doc_selftests, register command_structure_invariants
3959 selftest.
3960
a7b9ceb8
PW
39612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3962
3963 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3964 an alias of 'show'.
3965
b2188a06
JB
39662020-05-15 Joel Brobecker <brobecker@adacore.com>
3967
3968 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3969 ada_is_fixed_point_type. Update all callers.
3970 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3971 all callers.
3972 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3973 Update all callers.
3974 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3975 print_fixed_point_type. Update all callers.
3976 * ada-valprint.c (ada_value_print_num): Replace call to
3977 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3978
a51951c2
KB
39792020-05-14 Kevin Buettner <kevinb@redhat.com>
3980
3981 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3982 processors.
3983 (cpu_supports_bts): Add CV_AMD case.
3984
29d6859f
LM
39852020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3986 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * infrun.c (stop_all_threads): Collect multiple wait events at
3989 each pass.
3990
78134374
SM
39912020-05-14 Simon Marchi <simon.marchi@efficios.com>
3992
3993 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3994 type::code instead.
3995
67607e24
SM
39962020-05-14 Simon Marchi <simon.marchi@efficios.com>
3997
3998 * gdbtypes.h (struct type) <code, set_code>: New methods.
3999 (TYPE_CODE): Use type::code. Change all call sites used to set
4000 the code to use type::set_code instead.
4001
a05575d3
TBA
40022020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4003 Tom de Vries <tdevries@suse.de>
4004 Pedro Alves <palves@redhat.com>
4005
4006 PR threads/25478
4007 * infrun.c (stop_all_threads): Do NOT ignore
4008 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4009 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4010 received.
4011 (handle_no_resumed): Remove code handling a live inferior with no
4012 threads.
4013 * remote.c (has_single_non_exited_thread): New.
4014 (remote_target::update_thread_list): Do not delete a thread if is
4015 the last thread of the process.
4016 * thread.c (thread_select): Call delete_exited_threads instead of
4017 prune_threads.
4018
6ad82919
TBA
40192020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4020
4021 * infrun.c (stop_all_threads): Enable/disable thread events of all
4022 targets. Move a debug message denoting the end of the function
4023 into the SCOPED_EXIT block.
4024
d890404b
TBA
40252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4026
4027 * process-stratum-target.h: Include <set>.
4028 (all_non_exited_process_targets, switch_to_target_no_thread): New
4029 function declarations.
4030 * process-stratum-target.c (all_non_exited_process_targets)
4031 (switch_to_target_no_thread): New function implementations.
4032
293b3ebc
TBA
40332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4034
4035 * infrun.c (handle_inferior_event): Extract out a piece of code
4036 into...
4037 (mark_non_executing_threads): ...this new function.
4038
7ca9b62a
TBA
40392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4040
4041 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4042 use.
4043
fc75c28b
TBA
40442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4045
4046 * regcache.c (regcache_read_pc_protected): New function
4047 implementation that returns 0 if the PC cannot read via
4048 'regcache_read_pc'.
4049 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4050 instead of 'regcache_read_pc'.
4051 (keep_going_pass_signal): Ditto.
4052
a89febbd
TT
40532020-05-13 Tom Tromey <tromey@adacore.com>
4054
4055 * ada-lang.c (align_value): Remove.
4056 (ada_template_to_fixed_record_type_1): Use align_up.
4057
f7e23710
TBA
40582020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4059
4060 * async-event.c: Update the copyright year.
4061 * async-event.h: Update the copyright year.
4062
02ff80c2
SM
40632020-05-12 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * objfiles.h (is_addr_in_objfile,
4066 shared_objfile_contains_address_p): Return bool.
4067 * objfile.c (is_addr_in_objfile,
4068 shared_objfile_contains_address_p): Return bool.
4069
4fd6c7e8
TT
40702020-05-11 Tom Tromey <tromey@adacore.com>
4071
4072 * cli/cli-cmds.c (info_command): Restore.
4073 (_initialize_cli_cmds): Use add_prefix_command for "info".
4074 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4075
5eb68a39
TT
40762020-05-11 Tom Tromey <tromey@adacore.com>
4077
4078 * ada-lang.c (ada_value_primitive_field): Now public.
4079 * ada-lang.h (ada_value_primitive_field): Declare.
4080 * ada-valprint.c (print_field_values): Use
4081 ada_value_primitive_field for wrapper fields.
4082
7666722f
TV
40832020-05-11 Tom de Vries <tdevries@suse.de>
4084
4085 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4086 MODULE_DOMAIN.
4087
3ee6bb11
TV
40882020-05-11 Tom de Vries <tdevries@suse.de>
4089
4090 PR symtab/25941
4091 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4092 with length 0, if not gdb-produced.
4093 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4094
43434996
TV
40952020-05-09 Tom de Vries <tdevries@suse.de>
4096
4097 PR gdb/25955
4098 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4099 calculation.
4100
2f78cffc
TT
41012020-05-09 Tom Tromey <tom@tromey.com>
4102
4103 * top.c (server_command): Now bool.
4104 * top.h (server_command): Now bool.
4105
4f7bc5ed
TT
41062020-05-08 Tom Tromey <tromey@adacore.com>
4107
4108 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4109 already being processed.
4110
8be4b118
TT
41112020-05-08 Tom Tromey <tom@tromey.com>
4112
4113 * printcmd.c (struct display) <next>: Remove.
4114 <display>: New constructor.
4115 <exp_string>: Now a std::string.
4116 <enabled_p>: Now a bool.
4117 (display_number): Move definition earlier.
4118 (displays): Rename from display_chain. Now a std::vector.
4119 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4120 (display_command): Update.
4121 (do_one_display, disable_display)
4122 (enable_disable_display_command, do_enable_disable_display):
4123 Update.
4124 (free_display): Remove.
4125 (clear_displays): Rewrite.
4126 (delete_display): Update.
4127 (map_display_numbers): Use function_view. Remove "data"
4128 parameter. Update.
4129 (do_delete_display): Remove.
4130 (undisplay_command): Update.
4131 (do_one_display, do_displays, disable_display)
4132 (info_display_command): Update.
4133 (do_enable_disable_display): Remove.
4134 (enable_disable_display_command)
4135 (clear_dangling_display_expressions): Update.
4136
94c93c35
TT
41372020-05-08 Tom Tromey <tom@tromey.com>
4138
4139 * symtab.c (set_symbol_cache_size)
4140 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4141 (maintenance_print_symbol_cache_statistics): Update.
4142 * symmisc.c (print_symbol_bcache_statistics)
4143 (print_objfile_statistics, maintenance_print_objfiles)
4144 (maintenance_info_symtabs, maintenance_check_symtabs)
4145 (maintenance_expand_symtabs, maintenance_info_line_tables):
4146 Update.
4147 * symfile-debug.c (set_debug_symfile): Update.
4148 * source.c (forget_cached_source_info): Update.
4149 * python/python.c (gdbpy_progspaces): Update.
4150 * psymtab.c (maintenance_info_psymtabs): Update.
4151 * probe.c (parse_probes): Update.
4152 * linespec.c (iterate_over_all_matching_symtabs)
4153 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4154 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4155 * exec.c (exec_target::close): Update.
4156 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4157 * breakpoint.c (print_one_breakpoint_location)
4158 (create_longjmp_master_breakpoint)
4159 (create_std_terminate_master_breakpoint): Update.
4160 * progspace.c (program_spaces): Now a std::vector.
4161 (maybe_new_address_space): Update.
4162 (add_program_space): Remove.
4163 (program_space::program_space): Update.
4164 (remove_program_space): Update.
4165 (number_of_program_spaces): Remove.
4166 (print_program_space, update_address_spaces): Update.
4167 * progspace.h (program_spaces): Change type.
4168 (ALL_PSPACES): Remove.
4169 (number_of_program_spaces): Don't declare.
4170 (struct program_space) <next>: Remove.
4171
a1fd1ac9
TT
41722020-05-08 Tom Tromey <tom@tromey.com>
4173
4174 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4175 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4176 (enable_break): Update.
4177 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4178 (frv_fdpic_find_canonical_descriptor): Update.
4179 (frv_fetch_objfile_link_map): Update.
4180 * progspace.c (program_space::free_all_objfiles): Update.
4181 (program_space::solibs): New method.
4182 * progspace.h (struct program_space) <solibs>: New method.
4183 * solist.h (master_so_list): Don't declare.
4184 (ALL_SO_LIBS): Remove.
4185 * solib.h (so_list_head): Remove.
4186 (update_solib_list): Update comment.
4187 * solib.c (master_so_list): Remove.
4188 (solib_used, update_solib_list, solib_add)
4189 (info_sharedlibrary_command, clear_solib)
4190 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4191
38eae084
TT
41922020-05-08 Tom Tromey <tom@tromey.com>
4193
4194 * extension.c (extension_languages): Now a std::array.
4195 (ALL_EXTENSION_LANGUAGES): Remove.
4196 (get_ext_lang_defn, get_ext_lang_of_file)
4197 (eval_ext_lang_from_control_command): Update.
4198 (finish_ext_lang_initialization)
4199 (auto_load_ext_lang_scripts_for_objfile)
4200 (ext_lang_type_printers::ext_lang_type_printers)
4201 (apply_ext_lang_type_printers)
4202 (ext_lang_type_printers::~ext_lang_type_printers)
4203 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4204 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4205 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4206 (get_matching_xmethod_workers, ext_lang_colorize)
4207 (ext_lang_before_prompt): Update.
4208 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4209
596dc4ad
TT
42102020-05-08 Tom Tromey <tom@tromey.com>
4211
4212 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4213 overload.
4214 <swap_string, m_string>: Remove.
4215 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4216 Update.
4217 * stabsread.c (define_symbol, read_type): Update.
4218 * linespec.c (find_linespec_symbols): Update.
4219 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4220 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4221 * dbxread.c (read_dbx_symtab): Update.
4222 * cp-support.h (cp_canonicalize_string_full)
4223 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4224 Return unique_xmalloc_ptr.
4225 * cp-support.c (inspect_type): Update.
4226 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4227 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4228 Likewise.
4229 * c-typeprint.c (print_name_maybe_canonical): Update.
4230 * break-catch-throw.c (check_status_exception_catchpoint):
4231 Update.
4232
bf4cb9be
TV
42332020-05-08 Tom de Vries <tdevries@suse.de>
4234
4235 * infrun.c (follow_fork): Copy current_line and current_symtab to
4236 child thread.
4237
a1b68f28
SM
42382020-05-07 Simon Marchi <simon.marchi@efficios.com>
4239
4240 * async-event.c (struct async_signal_handler, struct
4241 async_event_handler): Reformat, remove typedef.
4242
98d48915
SM
42432020-05-07 Simon Marchi <simon.marchi@efficios.com>
4244
4245 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4246 access thistype->main_type->dyn_prop_list directly.
4247
7aa91313
SM
42482020-05-07 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4251 (remove_dyn_prop): Remove. Update all users to use
4252 type::remove_dyn_prop.
4253 * gdbtypes.c (remove_dyn_prop): Rename to...
4254 (type::remove_dyn_prop): ... this.
4255
5c54719c
SM
42562020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4257
4258 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4259 (add_dyn_prop): Remove. Update all users to use
4260 type::add_dyn_prop.
4261 * gdbtypes.c (add_dyn_prop): Rename to...
4262 (type::add_dyn_prop): ... this.
4263
24e99c6c
SM
42642020-05-07 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4267 (get_dyn_prop): Remove. Update all users to use
4268 type::dyn_prop.
4269 * gdbtypes.c (get_dyn_prop): Rename to...
4270 (type::dyn_prop): ... this.
4271
0d4bf016
SM
42722020-05-06 Simon Marchi <simon.marchi@efficios.com>
4273
4274 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4275
ac4a4f1c
SM
42762020-05-06 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4279 instruction, skip it if it's there.
4280
a3bbacc1
SM
42812020-05-05 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4284
c3236f84
SM
42852020-05-04 Simon Marchi <simon.marchi@efficios.com>
4286
4287 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4288 * gdbtypes.c (recursive_dump_type): Remove use of
4289 TYPE_INCOMPLETE.
4290
3b6acaee
TT
42912020-05-03 Tom Tromey <tom@tromey.com>
4292
4293 * breakpoint.c (catch_command, tcatch_command): Remove.
4294 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4295 add_show_prefix_cmd.
4296 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4297 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4298 Remove.
4299 (add_internal_problem_command): Use add_basic_prefix_cmd,
4300 add_show_prefix_cmd.
4301 * mips-tdep.c (set_mipsfpu_command): Remove.
4302 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4303 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4304 (_initialize_index_cache): Use add_basic_prefix_cmd.
4305 * memattr.c (dummy_cmd): Remove.
4306 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4307 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4308 (_initialize_tui_win): Use add_basic_prefix_cmd,
4309 add_show_prefix_cmd.
4310 * cli/cli-logging.c (set_logging_command): Remove.
4311 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4312 add_show_prefix_cmd.
4313 (show_logging_command): Remove.
4314 * target.c (target_command): Remove.
4315 (add_target): Use add_basic_prefix_cmd.
4316
a51119cd
HD
43172020-05-02 Hannes Domani <ssbssa@yahoo.de>
4318
4319 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4320
652fc23a 43212020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4322
652fc23a
PW
4323 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4324 info_command.
4325
117539e6
KR
43262020-04-30 Kamil Rytarowski <n54@gmx.com>
4327
4328 * nbsd-nat.c (nbsd_enable_proc_events)
4329 (nbsd_nat_target::post_startup_inferior): Add.
4330 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4331 (nbsd_nat_target::update_thread_list): Rewrite.
4332 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4333 "PTRACE_LWP_CREATE".
4334 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4335
102e38eb 43362020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4337
102e38eb
PW
4338 * stack.c (_initialize_stack): Remove duplicated creation
4339 of "frame" command and "f" alias.
4340
ee9d1e5f
HD
43412020-04-30 Hannes Domani <ssbssa@yahoo.de>
4342
4343 PR gdb/18706
4344 * gdbtypes.c (check_typedef): Calculate size of array of
4345 stubbed type.
4346
627c7fb8
HD
43472020-04-30 Hannes Domani <ssbssa@yahoo.de>
4348
4349 PR gdb/15559
4350 * i386-tdep.c (i386_push_dummy_call): Call
4351 i386_thiscall_push_dummy_call.
4352 (i386_thiscall_push_dummy_call): New function.
4353 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4354 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4355 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4356
ffc2844e
SM
43572020-04-29 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * gdbarch.sh (do_read): Add shellcheck disable directive for
4360 warning SC2162.
4361
1207375d
SM
43622020-04-29 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4365 "referenced but not assigned" warning.
4366
9fdb2916
SM
43672020-04-29 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * gdbarch.sh: Remove code that sets fallbackdefault.
4370
759cea5e
SM
43712020-04-29 Simon Marchi <simon.marchi@efficios.com>
4372
4373 * gdbarch.sh: Use shell operators && and || instead of
4374 -a and -o.
4375
cb02ab24
SM
43762020-04-29 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * gdbarch.sh: Use $(...) instead of `...`.
4379
a6fc5ffc
SM
43802020-04-29 Simon Marchi <simon.marchi@efficios.com>
4381
4382 * gdbarch.sh: Use double quotes around variables.
4383
8d113d13
SM
43842020-04-29 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * gdbarch.sh: Use %s with printf, instead of variables in the
4387 format string.
4388
ed6acedd
TT
43892020-04-29 Tom Tromey <tromey@adacore.com>
4390
4391 PR ada/25875:
4392 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4393 type fields here.
4394 (read_enumeration_type): Call
4395 update_enumeration_type_from_children later. Update comments.
4396 (process_enumeration_scope): Don't create type fields.
4397
b68b1b58
KR
43982020-04-29 Kamil Rytarowski <n54@gmx.com>
4399
4400 * nbsd-tdep.c: Include "xml-syscall.h".
4401 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4402
f94b2e03
KR
44032020-04-29 Kamil Rytarowski <n54@gmx.com>
4404
4405 * nbsd-nat.c: Include "sys/wait.h".
4406 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4407 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4408 (nbsd_nat_target::remove_exec_catchpoint)
4409 (nbsd_nat_target::set_syscall_catchpoint): Add.
4410 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4411 (nbsd_nat_target::insert_exec_catchpoint)
4412 (nbsd_nat_target::remove_exec_catchpoint)
4413 (nbsd_nat_target::set_syscall_catchpoint): Add.
4414 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4415 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4416 `nbsd_get_syscall_number'.
4417
fc49bc72
TT
44182020-04-29 Tom Tromey <tom@tromey.com>
4419
4420 * stack.c (print_block_frame_labels): Remove.
4421
d642b692
HD
44222020-04-29 Hannes Domani <ssbssa@yahoo.de>
4423
4424 PR gdb/17320
4425 * ada-valprint.c (val_print_packed_array_elements): Move array
4426 end bracket to new line.
4427 (ada_val_print_string): Remove extra spaces before first array
4428 element.
4429 * c-valprint.c (c_value_print_array): Likewise.
4430 * m2-valprint.c (m2_print_array_contents): Likewise.
4431 (m2_value_print_inner): Likewise.
4432 * p-valprint.c (pascal_value_print_inner): Likewise.
4433 * valprint.c (generic_val_print_array): Likewise.
4434 (value_print_array_elements): Move first array element and array
4435 end bracket to new line.
4436
ea90f227
TV
44372020-04-29 Tom de Vries <tdevries@suse.de>
4438
4439 PR symtab/25889
4440 * linespec.c (find_method): Fix ix calculation.
4441
4498ef4f
KR
44422020-04-28 Kamil Rytarowski <n54@gmx.com>
4443
4444 * syscalls/update-netbsd.sh: New file.
4445 * syscalls/netbsd.xml: Regenerate.
4446 * data-directory/Makefile.in: Register `netbsd.xml' in
4447 `SYSCALLS_FILES'.
4448
a55e30b5
SM
44492020-04-28 Simon Marchi <simon.marchi@efficios.com>
4450
4451 * syscalls/update-freebsd.sh: Add double quotes.
4452
2b2fbab8
TT
44532020-04-28 Tom Tromey <tom@tromey.com>
4454
4455 * NEWS: Update.
4456 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4457 (cmdpy_init): Allow class_tui.
4458
a65189c9
TV
44592020-04-28 Mark Williams <mark@myosotissp.com>
4460
4461 PR gdb/24480
4462 * dwarf2read.c: Add missing assingments to list_in_scope when
4463 start_symtab was already called.
4464
1b95cdb7
SM
44652020-04-28 Simon Marchi <simon.marchi@efficios.com>
4466
4467 PR gdb/25881
4468 * dwarf2/read.c (offset_map_type): Use
4469 gdb:hash_enum<sect_offset> as hash function.
4470
15cd93d0
TV
44712020-04-28 Tom de Vries <tdevries@suse.de>
4472
4473 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4474 with DW_AT_signature.
4475
1eb39914
SM
44762020-04-27 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * configure.ac: Remove check for fs_base/gs_base in
4479 user_regs_struct.
4480 * configure: Re-generate.
4481 * config.in: Re-generate.
4482 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4483 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4484 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4485
991a3e2e
LM
44862020-04-27 Luis Machado <luis.machado@linaro.org>
4487
4488 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4489 problematic inline frame unwinding situation.
4490 * frame.c (frame_id_computed_p): New function.
4491 * frame.h (frame_id_computed_p): New prototype.
4492
361ba0e8
TT
44932020-04-26 Tom Tromey <tom@tromey.com>
4494
4495 * command.h (enum command_class) <class_pseudo>: Remove.
4496
bc3609fd
PW
44972020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4498
4499 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4500 and whitespace.
4501
b9771db7
KR
45022020-04-25 Kamil Rytarowski <n54@gmx.com>
4503
ec16513e
SM
4504 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4505 `PT_GET_PROCESS_STATE' block.
b9771db7 4506
7151c1af
TT
45072020-04-24 Tom Tromey <tom@tromey.com>
4508
4509 * symtab.h (symbol_get_demangled_name): Don't declare.
4510 * symtab.c (symbol_get_demangled_name): Remove.
4511 (general_symbol_info::natural_name)
4512 (general_symbol_info::demangled_name): Update.
4513
906bb4c5
TT
45142020-04-24 Tom Tromey <tom@tromey.com>
4515
4516 PR rust/25025:
4517 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4518
bcfe6157
TT
45192020-04-24 Tom Tromey <tom@tromey.com>
4520
4521 PR symtab/12707:
4522 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4523 exists.
4524 (new_symbol): Likewise.
4525 * compile/compile-object-load.c (get_out_value_type): Use
4526 symbol_matches_search_name.
4527
f049a313
TT
45282020-04-24 Tom Tromey <tom@tromey.com>
4529
4530 * dwarf2/read.c (add_partial_symbol): Do not call
4531 compute_and_set_names.
4532
76e288d1
TT
45332020-04-24 Tom Tromey <tom@tromey.com>
4534
4535 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4536 overload.
4537
2467f4f6
TT
45382020-04-24 Tom Tromey <tom@tromey.com>
4539
4540 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4541 (add_psymbol_to_list): New overload. Make old overload call new
4542 one.
4543 * psympriv.h (add_psymbol_to_list): New overload.
4544
e61108c9
TT
45452020-04-24 Tom Tromey <tom@tromey.com>
4546
4547 * dwarf2/read.c (partial_die_info::read) <case
4548 DW_AT_linkage_name>: Use value_as_string.
4549 (dwarf2_string_attr): Use value_as_string.
4550 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4551 method.
4552 * dwarf2/attribute.c (attribute::value_as_string): New method.
4553
8c87a452
TT
45542020-04-24 Tom Tromey <tom@tromey.com>
4555
4556 * symtab.c (general_symbol_info::natural_name)
4557 (general_symbol_info::demangled_name): Check for language_rust.
4558
787de330
TT
45592020-04-24 Tom Tromey <tom@tromey.com>
4560
4561 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4562 (dwarf2_physname): ... from here.
4563 (partial_die_info::read): Add Rust "{" hack.
4564
ff985671
TT
45652020-04-24 Tom Tromey <tom@tromey.com>
4566
4567 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4568 method.
4569 (symbol_set_demangled_name): Don't declare.
4570 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4571 symbol_set_demangled_name.
4572 (general_symbol_info::set_language)
4573 (general_symbol_info::compute_and_set_names): Update.
4574 * minsyms.c (minimal_symbol_reader::install): Update.
4575 * dwarf2/read.c (new_symbol): Update.
4576
1acda803
TT
45772020-04-24 Tom Tromey <tromey@adacore.com>
4578
4579 PR python/23662:
4580 * python/py-type.c (convert_field): Handle
4581 FIELD_LOC_KIND_DWARF_BLOCK.
4582 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4583 (typy_get_dynamic): Nw function.
4584 (type_object_getset): Add "dynamic".
4585 * NEWS: Add entry.
4586
d656f129
TT
45872020-04-24 Tom Tromey <tromey@adacore.com>
4588
4589 * ada-typeprint.c (print_choices, print_variant_part)
4590 (print_record_field_types_dynamic): New functions.
4591 (print_record_field_types): Use print_record_field_types_dynamic.
4592
7d79de9a
TT
45932020-04-24 Tom Tromey <tromey@adacore.com>
4594
4595 * dwarf2/read.c (handle_data_member_location): New overload.
4596 (dwarf2_add_field): Use it.
4597 (decode_locdesc): Add "computed" parameter. Update comment.
4598 * gdbtypes.c (is_dynamic_type_internal): Also look for
4599 FIELD_LOC_KIND_DWARF_BLOCK.
4600 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4601 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4602 virtual base classes.
4603 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4604 FIELD_LOC_KIND_DWARF_BLOCK.
4605
f8e89861
TT
46062020-04-24 Tom Tromey <tromey@adacore.com>
4607
4608 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4609 * gdbtypes.c (is_dynamic_type_internal): Check
4610 TYPE_HAS_DYNAMIC_LENGTH.
4611 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4612 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4613 New macros.
4614 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4615 constant.
4616
9c6a1327
TT
46172020-04-24 Tom Tromey <tromey@adacore.com>
4618
4619 * dwarf2/read.c (struct variant_field): Rewrite.
4620 (struct variant_part_builder): New.
4621 (struct nextfield): Remove "variant" field. Add "offset".
4622 (struct field_info): Add "current_variant_part" and
4623 "variant_parts".
4624 (alloc_discriminant_info): Remove.
4625 (alloc_rust_variant): New function.
4626 (quirk_rust_enum): Update.
4627 (dwarf2_add_field): Set "offset" member. Don't handle
4628 DW_TAG_variant_part.
4629 (offset_map_type): New typedef.
4630 (convert_variant_range, create_one_variant)
4631 (create_one_variant_part, create_variant_parts)
4632 (add_variant_property): New functions.
4633 (dwarf2_attach_fields_to_type): Call add_variant_property.
4634 (read_structure_type): Don't handle DW_TAG_variant_part.
4635 (handle_variant_part, handle_variant): New functions.
4636 (handle_struct_member_die): Use them.
4637 (process_structure_scope): Don't handle variant parts.
4638 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4639 (struct discriminant_info): Remove.
4640 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4641 (struct main_type) <flag_discriminated_union>: Remove.
4642 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4643 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4644 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4645 Update.
4646 * valops.c (value_union_variant): Remove.
4647 * value.h (value_union_variant): Don't declare.
4648
b249d2c2
TT
46492020-04-24 Tom Tromey <tromey@adacore.com>
4650
4651 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4652 (ada_value_primitive_packed_val): Update.
4653 * ada-valprint.c (ada_value_print_1): Update.
4654 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4655 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4656 just an address. Use evaluate_for_locexpr_baton.
4657 (dwarf2_evaluate_property): Update.
4658 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4659 array_view.
4660 * findvar.c (default_read_var_value): Update.
4661 * gdbtypes.c (compute_variant_fields_inner)
4662 (resolve_dynamic_type_internal): Update.
4663 (resolve_dynamic_type): Change type of valaddr parameter.
4664 * gdbtypes.h (resolve_dynamic_type): Update.
4665 * valarith.c (value_subscripted_rvalue): Update.
4666 * value.c (value_from_contents_and_address): Update.
4667
61122aa9
TT
46682020-04-24 Tom Tromey <tromey@adacore.com>
4669
4670 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4671 "push_initial_value" parameter.
4672 (dwarf2_evaluate_property): Likewise.
4673 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4674
ef83a141
TT
46752020-04-24 Tom Tromey <tromey@adacore.com>
4676
4677 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4678 (variant::matches, compute_variant_fields_recurse)
4679 (compute_variant_fields_inner, compute_variant_fields): New
4680 functions.
4681 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4682 Use resolved_type after type is made.
4683 (operator==): Add new cases.
4684 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4685 (struct discriminant_range, struct variant, struct variant_part):
4686 New.
4687 (union dynamic_prop_data) <variant_parts, original_type>: New
4688 members.
4689 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4690 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4691 constants.
4692 * value.c (unpack_bits_as_long): Now public.
4693 * value.h (unpack_bits_as_long): Declare.
4694
675127ec
TT
46952020-04-24 Tom Tromey <tromey@adacore.com>
4696
4697 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4698 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4699
9852ceef
HD
47002020-04-24 Hannes Domani <ssbssa@yahoo.de>
4701
4702 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4703
7632c6ce
KR
47042020-04-24 Kamil Rytarowski <n54@gmx.com>
4705
4706 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4707 (remove_fork_catchpoint, post_startup_inferior)
4708 (post_attach): Move...
4709 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4710 (remove_fork_catchpoint, post_startup_inferior)
4711 (post_attach): ...here.
4712 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4713 (remove_fork_catchpoint, post_startup_inferior)
4714 (post_attach): Move...
4715 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4716 (remove_fork_catchpoint, post_startup_inferior)
4717 (post_attach): ...here.
4718
7be2bb4f
TT
47192020-04-24 Tom Tromey <tromey@adacore.com>
4720
4721 * nat/windows-nat.h (struct windows_thread_info)
4722 <pc_adjusted>: New member.
4723 * windows-nat.c (windows_fetch_one_register): Check
4724 pc_adjusted.
4725 (windows_nat_target::get_windows_debug_event)
4726 (windows_nat_target::wait): Set pc_adjusted.
4727
f80cb3b4
TV
47282020-04-24 Tom de Vries <tdevries@suse.de>
4729
4730 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4731 Run gdb-add-index inside temp dir.
4732
29514b87
TT
47332020-04-23 Tom Tromey <tromey@adacore.com>
4734
4735 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4736 in loop.
4737
5939967b
LM
47382020-04-23 Luis Machado <luis.machado@linaro.org>
4739
4740 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4741 get_frame_register instead of gdbarch_unwind_pc.
4742
70bc38f5
TV
47432020-04-23 Tom de Vries <tdevries@suse.de>
4744
4745 * symtab.c (lookup_global_symbol): Prefer def over decl.
4746
de82891c
TV
47472020-04-23 Tom de Vries <tdevries@suse.de>
4748
4749 PR symtab/25807
4750 * block.c (best_symbol, better_symbol): Promote to external.
4751 * block.h (best_symbol, better_symbol): Declare.
4752 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4753 decl.
4754
ecc6c606
TT
47552020-04-23 Tom Tromey <tromey@adacore.com>
4756
4757 PR ada/25837:
4758 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4759 "const char *", not a "const std::string &".
4760 <name_and_matcher::operator==>: Update.
4761 * unittests/lookup_name_info-selftests.c: Change type of
4762 "result".
4763
740480b8
TT
47642020-04-23 Tom Tromey <tom@tromey.com>
4765
4766 * inferior.h (iterate_over_inferiors): Don't declare.
4767 * inferior.c (iterate_over_inferiors): Remove.
4768 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4769 Remove.
4770 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4771 use iterate_over_inferiors.
4772 (darwin_resume_inferior_it)
4773 (struct resume_inferior_threads_param)
4774 (darwin_resume_inferior_threads_it): Remove.
4775 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4776
ae3ab1f0
TV
47772020-04-23 Tom de Vries <tdevries@suse.de>
4778
4779 * blockframe.c (find_pc_partial_function): Use
4780 find_pc_sect_compunit_symtab rather than
4781 objfile->sf->qf->find_pc_sect_compunit_symtab.
4782
317d2668
TV
47832020-04-22 Tom de Vries <tdevries@suse.de>
4784
4785 PR symtab/25764
4786 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4787 in psymtabs.
4788
eea9e357
TV
47892020-04-22 Tom de Vries <tdevries@suse.de>
4790
4791 PR symtab/25801
4792 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4793 symtabs.
4794
3d5afab3
TV
47952020-04-22 Tom de Vries <tdevries@suse.de>
4796
4797 PR symtab/25700
4798 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4799 CU if already created.
4800
d43b7a2d
TBA
48012020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4802
4803 * infrun.c (displaced_step_fixup): Switch to the event_thread
4804 before calling displaced_step_restore, not after.
4805
d89edf9b
MM
48062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4807
4808 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4809 its inferior is not recorded by us.
4810 (record_btrace_target_open): Replace call to
4811 all_non_exited_threads () with call to current_inferior
4812 ()->non_exited_threads ().
4813 (record_btrace_target::stop_recording): Likewise.
4814 (record_btrace_target::close): Likewise.
4815 (record_btrace_target::wait): Likewise.
4816 (record_btrace_target::record_stop_replaying): Likewise.
4817
5897fd49
MM
48182020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4819
4820 * btrace.c (btrace_enable): Throw an error on double enables and
4821 when enabling recording fails.
4822 (btrace_disable): Throw an error if the thread is not recorded.
4823
1a476b6d
MM
48242020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4825
4826 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4827 request if we do not have a thread_info.
4828
4778a5f8
TV
48292020-04-21 Tom de Vries <tdevries@suse.de>
4830
4831 PR gdb/25471
4832 * thread.c
4833 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4834 exception in get_frame_id.
4835
0fa7617d
TT
48362020-04-20 Tom Tromey <tromey@adacore.com>
4837
4838 * python/python.c (struct gdbpy_event): Mark move constructor as
4839 noexcept.
4840 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4841 constructor as noexcept.
4842 * completer.h (struct completion_result): Mark move constructor as
4843 noexcept.
4844 * completer.c (completion_result::completion_result): Use
4845 initialization style. Don't call reset_match_list.
4846
ad23bda0
MS
48472020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4848
4849 * MAINTAINERS (Write After Approval): Add myself.
4850
45e1f031
TT
48512020-04-18 Tom Tromey <tom@tromey.com>
4852
4853 * windows-tdep.c (init_w32_command_list)
4854 (w32_prefix_command_valid): Restore.
4855 (_initialize_windows_tdep): Call init_w32_command_list.
4856
08feed99
TT
48572020-04-18 Tom Tromey <tom@tromey.com>
4858
4859 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4860 * value.c (value_fn_field): Update.
4861 * valops.c (find_function_in_inferior)
4862 (value_allocate_space_in_inferior): Update.
4863 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4864 Update.
4865 * tui/tui-source.c (tui_source_window::set_contents): Update.
4866 * symtab.c (lookup_global_or_static_symbol)
4867 (find_function_start_sal_1, skip_prologue_sal)
4868 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4869 * symmisc.c (dump_msymbols, dump_symtab_1)
4870 (maintenance_print_one_line_table): Update.
4871 * symfile.c (init_entry_point_info, section_is_mapped)
4872 (list_overlays_command, simple_read_overlay_table)
4873 (simple_overlay_update_1): Update.
4874 * stap-probe.c (handle_stap_probe): Update.
4875 * stabsread.c (dbx_init_float_type, define_symbol)
4876 (read_one_struct_field, read_enum_type, read_range_type): Update.
4877 * source.c (info_line_command): Update.
4878 * python/python.c (gdbpy_source_objfile_script)
4879 (gdbpy_execute_objfile_script): Update.
4880 * python/py-type.c (save_objfile_types): Update.
4881 * python/py-objfile.c (py_free_objfile): Update.
4882 * python/py-inferior.c (python_new_objfile): Update.
4883 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4884 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4885 (maintenance_check_psymtabs): Update.
4886 * printcmd.c (info_address_command): Update.
4887 * objfiles.h (struct objfile) <arch>: New method, from
4888 get_objfile_arch.
4889 (get_objfile_arch): Don't declare.
4890 * objfiles.c (get_objfile_arch): Remove.
4891 (filter_overlapping_sections): Update.
4892 * minsyms.c (msymbol_is_function): Update.
4893 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4894 (output_nondebug_symbol): Update.
4895 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4896 (mdebug_expand_psymtab): Update.
4897 * machoread.c (macho_add_oso_symfile): Update.
4898 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4899 Update.
4900 * linux-fork.c (checkpoint_command): Update.
4901 * linespec.c (convert_linespec_to_sals): Update.
4902 * jit.c (finalize_symtab): Update.
4903 * infrun.c (insert_exception_resume_from_probe): Update.
4904 * ia64-tdep.c (ia64_find_unwind_table): Update.
4905 * hppa-tdep.c (internalize_unwinds): Update.
4906 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4907 Update.
4908 * gcore.c (call_target_sbrk): Update.
4909 * elfread.c (record_minimal_symbol, elf_symtab_read)
4910 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4911 (elf_gnu_ifunc_resolve_by_got): Update.
4912 * dwarf2/read.c (create_addrmap_from_index)
4913 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4914 (read_debug_names_from_section)
4915 (process_psymtab_comp_unit_reader, add_partial_symbol)
4916 (add_partial_subprogram, process_full_comp_unit)
4917 (read_file_scope, read_func_scope, read_lexical_block_scope)
4918 (read_call_site_scope, dwarf2_ranges_read)
4919 (dwarf2_record_block_ranges, dwarf2_add_field)
4920 (mark_common_block_symbol_computed, read_tag_pointer_type)
4921 (read_tag_string_type, dwarf2_init_float_type)
4922 (dwarf2_init_complex_target_type, read_base_type)
4923 (partial_die_info::read, partial_die_info::read)
4924 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4925 (dwarf2_fetch_die_loc_sect_off): Update.
4926 * dwarf2/loc.c (dwarf2_find_location_expression)
4927 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4928 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4929 (dwarf2_loc_desc_get_symbol_read_needs)
4930 (locexpr_describe_location_piece, locexpr_describe_location_1)
4931 (loclist_describe_location): Update.
4932 * dwarf2/index-write.c (write_debug_names): Update.
4933 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4934 * dtrace-probe.c (dtrace_process_dof): Update.
4935 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4936 (process_one_symbol): Update.
4937 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4938 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4939 (coff_read_enum_type): Update.
4940 * cli/cli-cmds.c (edit_command, list_command): Update.
4941 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4942 * breakpoint.c (create_overlay_event_breakpoint)
4943 (create_longjmp_master_breakpoint)
4944 (create_std_terminate_master_breakpoint)
4945 (create_exception_master_breakpoint, get_sal_arch): Update.
4946 * block.c (block_gdbarch): Update.
4947 * annotate.c (annotate_source_line): Update.
4948
0743fc83
TT
49492020-04-17 Tom Tromey <tromey@adacore.com>
4950
4951 * auto-load.c (show_auto_load_cmd): Remove.
4952 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4953 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4954 (maintenance_print_arc_command): Remove.
4955 * tui/tui-win.c (tui_command): Remove.
4956 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4957 * tui/tui-layout.c (tui_layout_command): Remove.
4958 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4959 * python/python.c (user_set_python, user_show_python): Remove.
4960 (_initialize_python): Use add_basic_prefix_cmd,
4961 add_show_prefix_cmd.
4962 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4963 (install_gdb_commands): Use add_basic_prefix_cmd,
4964 add_show_prefix_cmd.
4965 (info_guile_command): Remove.
4966 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4967 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4968 add_show_prefix_cmd.
4969 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4970 Remove do_set and do_show parameters.
4971 * cli/cli-style.c (set_style, show_style): Remove.
4972 (_initialize_cli_style): Use add_basic_prefix_cmd,
4973 add_show_prefix_cmd.
4974 (cli_style_option::add_setshow_commands): Remove do_set and
4975 do_show parameters.
4976 (cli_style_option::add_setshow_commands): Use
4977 add_basic_prefix_cmd, add_show_prefix_cmd.
4978 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4979 (set_style_name): Remove.
4980 * cli/cli-dump.c (dump_command, append_command): Remove.
4981 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4982 (tekhex_dump_command, binary_dump_command)
4983 (binary_append_command): Remove.
4984 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4985 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4986 (init_w32_command_list): Remove; move into ...
4987 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4988 * valprint.c (set_print, show_print, set_print_raw)
4989 (show_print_raw): Remove.
4990 (_initialize_valprint): Use add_basic_prefix_cmd,
4991 add_show_prefix_cmd.
4992 * typeprint.c (set_print_type, show_print_type): Remove.
4993 (_initialize_typeprint): Use add_basic_prefix_cmd,
4994 add_show_prefix_cmd.
4995 * record.c (set_record_command, show_record_command): Remove.
4996 (_initialize_record): Use add_basic_prefix_cmd,
4997 add_show_prefix_cmd.
4998 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4999 add_show_prefix_cmd.
5000 (info_command, show_command, set_debug, show_debug): Remove.
5001 * top.h (set_history, show_history): Don't declare.
5002 * top.c (set_history, show_history): Remove.
5003 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5004 (unset_tdesc_cmd): Remove.
5005 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5006 add_show_prefix_cmd.
5007 * symtab.c (info_module_command): Remove.
5008 (_initialize_symtab): Use add_basic_prefix_cmd.
5009 * symfile.c (overlay_command): Remove.
5010 (_initialize_symfile): Use add_basic_prefix_cmd.
5011 * sparc64-tdep.c (info_adi_command): Remove.
5012 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5013 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5014 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5015 add_show_prefix_cmd.
5016 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5017 (_initialize_serial): Use add_basic_prefix_cmd,
5018 add_show_prefix_cmd.
5019 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5020 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5021 add_show_prefix_cmd.
5022 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5023 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5024 add_show_prefix_cmd.
5025 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5026 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5027 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5028 add_show_prefix_cmd.
5029 * remote.c (remote_command, set_remote_cmd): Remove.
5030 (_initialize_remote): Use add_basic_prefix_cmd.
5031 * record-full.c (set_record_full_command)
5032 (show_record_full_command): Remove.
5033 (_initialize_record_full): Use add_basic_prefix_cmd,
5034 add_show_prefix_cmd.
5035 * record-btrace.c (cmd_set_record_btrace)
5036 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5037 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5038 (cmd_show_record_btrace_pt): Remove.
5039 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5040 add_show_prefix_cmd.
5041 * ravenscar-thread.c (set_ravenscar_command)
5042 (show_ravenscar_command): Remove.
5043 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5044 add_show_prefix_cmd.
5045 * mips-tdep.c (show_mips_command, set_mips_command)
5046 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5047 add_show_prefix_cmd.
5048 * maint.c (maintenance_command, maintenance_info_command)
5049 (maintenance_check_command, maintenance_print_command)
5050 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5051 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5052 add_show_prefix_cmd.
5053 (show_per_command_cmd): Remove.
5054 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5055 Remove.
5056 (maintenance_show_test_settings_cmd): Remove.
5057 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5058 add_show_prefix_cmd.
5059 * maint-test-options.c (maintenance_test_options_command):
5060 Remove.
5061 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5062 * macrocmd.c (macro_command): Remove
5063 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5064 * language.c (set_check, show_check): Remove.
5065 (_initialize_language): Use add_basic_prefix_cmd,
5066 add_show_prefix_cmd.
5067 * infcmd.c (unset_command): Remove.
5068 (_initialize_infcmd): Use add_basic_prefix_cmd.
5069 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5070 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5071 add_show_prefix_cmd.
5072 * go32-nat.c (go32_info_dos_command): Remove.
5073 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5074 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5075 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5076 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5077 (_initialize_frame): Use add_basic_prefix_cmd,
5078 add_show_prefix_cmd.
5079 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5080 (_initialize_dcache): Use add_basic_prefix_cmd,
5081 add_show_prefix_cmd.
5082 * cp-support.c (maint_cplus_command): Remove.
5083 (_initialize_cp_support): Use add_basic_prefix_cmd.
5084 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5085 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5086 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5087 add_basic_prefix_cmd, add_show_prefix_cmd.
5088 * breakpoint.c (save_command): Remove.
5089 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5090 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5091 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5092 add_show_prefix_cmd.
5093 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5094 (set_ada_command, show_ada_command): Remove.
5095 (_initialize_ada_language): Use add_basic_prefix_cmd,
5096 add_show_prefix_cmd.
5097 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5098
3557f442
KR
50992020-04-16 Kamil Rytarowski <n54@gmx.com>
5100
5101 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5102 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5103
16197208
SM
51042020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5105
5106 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5107 warning messages.
5108
00ac85d3
SM
51092020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5110
5111 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5112 import table is not at beginning of .idata section.
5113
381ce63f
PA
51142020-04-16 Pedro Alves <palves@redhat.com>
5115
5116 * inferior.c (delete_inferior): Use delete operator directly
5117 instead of delete_program_space.
5118 * progspace.c (add_program_space): New, factored out from
5119 program_space::program_space.
5120 (remove_program_space): New, factored out from
5121 delete_program_space.
5122 (program_space::program_space): Remove intro comment. Rewrite.
5123 (program_space::~program_space): Remove intro comment. Call
5124 remove_program_space.
5125 (delete_program_space): Delete.
5126 * progspace.h (program_space::program_space): Make explicit. Move
5127 intro comment here, adjusted.
5128 (program_space::~program_space): Move intro comment here,
5129 adjusted.
5130 (delete_program_space): Remove.
5131
a010605f
TT
51322020-04-16 Tom Tromey <tromey@adacore.com>
5133
5134 * windows-nat.c (windows_nat::handle_access_violation): New
5135 function.
5136 * nat/windows-nat.h (handle_access_violation): Declare.
5137 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5138 windows-nat.c. Call handle_access_violation.
5139
efba5c23
TV
51402020-04-16 Tom de Vries <tdevries@suse.de>
5141
5142 PR symtab/25791
5143 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5144 CUs without psymtab.
5145
97ed802d
KB
51462020-04-16 Kevin Buettner <kevinb@redhat.com>
5147
5148 * python/python.c (do_start_initialization): Don't call
5149 PyEval_InitThreads for Python 3.9 and beyond.
5150
c7d64809
KR
51512020-04-15 Kamil Rytarowski <n54@gmx.com>
5152
5153 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5154 thread functions.
5155 (obsd_nat_target::wait): Likewise.
5156
ce127a96
TT
51572020-04-15 Tom Tromey <tromey@adacore.com>
5158
5159 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5160 (DEBUG_EXCEPT): Use debug_printf.
5161
99f1bc6a
AB
51622020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5163
5164 * completer.c (class completion_tracker::completion_hash_entry)
5165 <hash_name>: New member function.
5166 (completion_tracker::discard_completions): New callback to hash a
5167 completion_hash_entry, pass this to htab_create_alloc.
5168
a0e9b532
JT
51692016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5170
5171 * windows-nat.c (windows_make_so): Warn rather than stopping with
5172 an error if realpath() fails.
5173
06ca5dd4
KR
51742020-04-14 Kamil Rytarowski <n54@gmx.com>
5175
5176 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5177 (nbsd_nat_target::info_proc): Add do_status.
5178
194d088f
TV
51792020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5180 Tom de Vries <tdevries@suse.de>
5181
5182 PR symtab/25718
5183 * psympriv.h (struct partial_symtab::read_symtab)
5184 (struct partial_symtab::expand_psymtab)
5185 (struct partial_symtab::read_dependencies): Update comments.
5186 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5187 read_symtab for includer.
5188 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5189 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5190 (struct dwarf2_include_psymtab::m_readin): Remove.
5191 (struct dwarf2_include_psymtab::includer): New member function.
5192 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5193
c1a66c06
TV
51942020-04-14 Tom de Vries <tdevries@suse.de>
5195
5196 PR symtab/25720
5197 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5198 with NULL symbol_matcher and lookup_name.
5199 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5200 and lookup_name.
5201 * dwarf2/read.c (dw2_expand_symtabs_matching)
5202 (dw2_debug_names_expand_symtabs_matching): Same.
5203 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5204 Make lookup_name a pointer. Update comment.
5205 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5206 lookup_name being a pointer.
5207 * symfile.c (expand_symtabs_matching): Same.
5208 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5209 * linespec.c (iterate_over_all_matching_symtabs): Same.
5210
400b5eca
TT
52112020-04-13 Tom Tromey <tom@tromey.com>
5212
5213 * run-on-main-thread.c: Update include.
5214 * unittests/main-thread-selftests.c: Update include.
5215 * tui/tui-win.c: Update include.
5216 * tui/tui-io.c: Update include.
5217 * tui/tui-interp.c: Update include.
5218 * tui/tui-hooks.c: Update include.
5219 * top.h: Update include.
5220 * top.c: Update include.
5221 * ser-base.c: Update include.
5222 * remote.c: Update include.
5223 * remote-notif.c: Update include.
5224 * remote-fileio.c: Update include.
5225 * record-full.c: Update include.
5226 * record-btrace.c: Update include.
5227 * python/python.c: Update include.
5228 * posix-hdep.c: Update include.
5229 * mingw-hdep.c: Update include.
5230 * mi/mi-main.c: Update include.
5231 * mi/mi-interp.c: Update include.
5232 * main.c: Update include.
5233 * linux-nat.c: Update include.
5234 * interps.c: Update include.
5235 * infrun.c: Update include.
5236 * inf-loop.c: Update include.
5237 * event-top.c: Update include.
5238 * event-loop.c: Move to ../gdbsupport/.
5239 * event-loop.h: Move to ../gdbsupport/.
5240 * async-event.h: Update include.
5241 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5242
93b54c8e
TT
52432020-04-13 Tom Tromey <tom@tromey.com>
5244
5245 * tui/tui-win.c: Include async-event.h.
5246 * remote.c: Include async-event.h.
5247 * remote-notif.c: Include async-event.h.
5248 * record-full.c: Include async-event.h.
5249 * record-btrace.c: Include async-event.h.
5250 * infrun.c: Include async-event.h.
5251 * event-top.c: Include async-event.h.
5252 * event-loop.h: Move some declarations to async-event.h.
5253 * event-loop.c: Don't include ser-event.h or top.h. Move some
5254 code to async-event.c.
5255 * async-event.h: New file.
5256 * async-event.c: New file.
5257 * Makefile.in (COMMON_SFILES): Add async-event.c.
5258 (HFILES_NO_SRCDIR): Add async-event.h.
5259
c1cd3163
TT
52602020-04-13 Tom Tromey <tom@tromey.com>
5261
5262 * utils.c (flush_streams): New function.
5263 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5264
29f2bf4f
TT
52652020-04-13 Tom Tromey <tom@tromey.com>
5266
5267 * event-loop.c (handle_file_event): Use warning, not
5268 printf_unfiltered.
5269
98029d02
TT
52702020-04-13 Tom Tromey <tom@tromey.com>
5271
5272 * event-loop.c: Include <chrono>.
5273
06cc9596
TT
52742020-04-13 Tom Tromey <tom@tromey.com>
5275
5276 * gdb_select.h: Move to ../gdbsupport/.
5277 * event-loop.c: Update include path.
5278 * top.c: Update include path.
5279 * ser-base.c: Update include path.
5280 * ui-file.c: Update include path.
5281 * ser-tcp.c: Update include path.
5282 * guile/scm-ports.c: Update include path.
5283 * posix-hdep.c: Update include path.
5284 * ser-unix.c: Update include path.
5285 * gdb_usleep.c: Update include path.
5286 * mingw-hdep.c: Update include path.
5287 * inflow.c: Update include path.
5288 * infrun.c: Update include path.
5289 * event-top.c: Update include path.
5290
8ae8e197
TT
52912020-04-13 Tom Tromey <tom@tromey.com>
5292
5293 * configure: Rebuild.
5294 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5295
58cf28e8
TT
52962020-04-13 Tom Tromey <tom@tromey.com>
5297
5298 * event-loop.h (start_event_loop): Don't declare.
5299 * event-loop.c (start_event_loop): Move...
5300 * main.c (start_event_loop): ...here. Now static.
5301
b7f999ae
SDJ
53022020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5303
5304 * MAINTAINERS: Update my email address.
5305
1085dfd4
KR
53062020-04-12 Kamil Rytarowski <n54@gmx.com>
5307
5308 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5309 IP_ALL.
5310
49d1d1f5
KR
53112020-04-12 Kamil Rytarowski <n54@gmx.com>
5312
5313 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5314 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5315
b4848d2a
KR
53162020-04-12 Kamil Rytarowski <n54@gmx.com>
5317
5318 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5319 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5320
51c133d5
KR
53212020-04-12 Kamil Rytarowski <n54@gmx.com>
5322
5323 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5324
54b8cbd0
KR
53252020-04-11 Kamil Rytarowski <n54@gmx.com>
5326
5327 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5328 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5329 (nbsd_nat_target::info_proc): New functions.
5330 * nbsd-nat.c (kinfo_get_vmmap): New function.
5331 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5332 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5333 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5334 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5335 functions.
5336 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5337 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5338 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5339 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5340 (KINFO_VME_FLAG_GROWS_DOWN): New.
5341
cf83625d
AS
53422020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5343
5344 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5345 bit shift.
5346
0c4311ab
TT
53472020-04-10 Tom Tromey <tromey@adacore.com>
5348
5349 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5350
3e65b3e9
TT
53512020-04-10 Tom Tromey <tromey@adacore.com>
5352
5353 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5354 separate debug files.
5355
13302e95
HD
53562020-04-10 Hannes Domani <ssbssa@yahoo.de>
5357
5358 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5359 Move to...
5360 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5361 ... here.
5362 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5363 Check for STATUS_WX86_BREAKPOINT.
5364 (windows_nat_target::wait): Same.
5365
bdfc1e8a
TV
53662020-04-10 Tom de Vries <tdevries@suse.de>
5367
5368 PR cli/25808
5369 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5370
f4460aec
SM
53712020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5372
5373 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5374 (Write After Approval): Remove Tom de Vries.
5375
a25198bb
BE
53762020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5377
5378 revert partially:
5379 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5380
aac66a4c
SM
5381 * buildsym.c (record_line): Fix undefined behavior and preserve
5382 lines at eof.
a25198bb 5383
206c98a6
KR
53842020-04-09 Kamil Rytarowski <n54@gmx.com>
5385
5386 * auxv.h (svr4_auxv_parse): New.
5387 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5388 and generic_auxv_parse.
5389 (svr4_auxv_parse): Add.
5390 * obsd-tdep.c: Include "auxv.h".
5391 (obsd_auxv_parse): Remove.
5392 (obsd_init_abi): Remove comment.
5393 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5394 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5395 * nbsd-tdep.c: Include "auxv.h".
5396 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5397
71fbdbaf
TT
53982020-04-08 Tom Tromey <tromey@adacore.com>
5399
5400 * nat/windows-nat.h (last_wait_event): Don't declare.
5401 (wait_for_debug_event): Update comment.
5402 * nat/windows-nat.c (last_wait_event): Now static.
5403
2c1d95e8
TT
54042020-04-08 Tom Tromey <tromey@adacore.com>
5405
5406 * windows-nat.c (wait_for_debug_event): Move to
5407 nat/windows-nat.c.
5408 * nat/windows-nat.h (wait_for_debug_event): Declare.
5409 * nat/windows-nat.c (wait_for_debug_event): Move from
5410 windows-nat.c. No longer static.
5411
d2977bc4
TT
54122020-04-08 Tom Tromey <tromey@adacore.com>
5413
5414 * windows-nat.c (get_windows_debug_event): Use
5415 fetch_pending_stop.
5416 * nat/windows-nat.h (fetch_pending_stop): Declare.
5417 * nat/windows-nat.c (fetch_pending_stop): New function.
5418
e758e19c
TT
54192020-04-08 Tom Tromey <tromey@adacore.com>
5420
5421 * windows-nat.c (windows_continue): Use matching_pending_stop and
5422 continue_last_debug_event.
5423 * nat/windows-nat.h (matching_pending_stop)
5424 (continue_last_debug_event): Declare.
5425 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5426 (matching_pending_stop, continue_last_debug_event): New
5427 functions.
5428
8d30e395
TT
54292020-04-08 Tom Tromey <tromey@adacore.com>
5430
5431 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5432 (handle_exception_result): Move to nat/windows-nat.h.
5433 (DEBUG_EXCEPTION_SIMPLE): Remove.
5434 (windows_nat::handle_ms_vc_exception): New function.
5435 (handle_exception): Move to nat/windows-nat.c.
5436 (get_windows_debug_event): Update.
5437 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5438 nat/windows-nat.c.
5439 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5440 (handle_exception_result): Move from windows-nat.c.
5441 (handle_exception): Declare.
5442 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5443 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5444 windows-nat.c.
5445
29de418d
TT
54462020-04-08 Tom Tromey <tromey@adacore.com>
5447
5448 * windows-nat.c (exception_count, event_count): Remove.
5449 (handle_exception, get_windows_debug_event)
5450 (do_initial_windows_stuff): Update.
5451
a816ba18
TT
54522020-04-08 Tom Tromey <tromey@adacore.com>
5453
5454 * windows-nat.c (windows_nat::handle_load_dll)
5455 (windows_nat::handle_unload_dll): Rename. No longer static.
5456 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5457 Declare.
5458
a00caa12
TT
54592020-04-08 Tom Tromey <tromey@adacore.com>
5460
5461 * complaints.h (stop_whining): Declare at top-level.
5462 (complaint): Don't declare stop_whining.
5463
d41b524f
TT
54642020-04-08 Tom Tromey <tromey@adacore.com>
5465
5466 * windows-nat.c (windows_nat::handle_output_debug_string):
5467 Rename. No longer static.
5468 * nat/windows-nat.h (handle_output_debug_string): Declare.
5469
3c76026d
TT
54702020-04-08 Tom Tromey <tromey@adacore.com>
5471
5472 * windows-nat.c (current_process_handle, current_process_id)
5473 (main_thread_id, last_sig, current_event, last_wait_event)
5474 (current_windows_thread, desired_stop_thread_id, pending_stops)
5475 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5476 (display_selectors, fake_create_process)
5477 (get_windows_debug_event): Update.
5478 * nat/windows-nat.h (current_process_handle, current_process_id)
5479 (main_thread_id, last_sig, current_event, last_wait_event)
5480 (current_windows_thread, desired_stop_thread_id, pending_stops)
5481 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5482 * nat/windows-nat.c (current_process_handle, current_process_id)
5483 (main_thread_id, last_sig, current_event, last_wait_event)
5484 (current_windows_thread, desired_stop_thread_id, pending_stops)
5485 (siginfo_er): New globals. Move from windows-nat.c.
5486
9d8679cc
TT
54872020-04-08 Tom Tromey <tromey@adacore.com>
5488
5489 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5490 (handle_load_dll): Update.
5491 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5492
28688adf
TT
54932020-04-08 Tom Tromey <tromey@adacore.com>
5494
5495 * windows-nat.c (enum thread_disposition_type): Move to
5496 nat/windows-nat.h.
5497 (windows_nat::thread_rec): Rename from thread_rec. No longer
5498 static.
5499 (windows_add_thread, windows_nat_target::fetch_registers)
5500 (windows_nat_target::store_registers, handle_exception)
5501 (windows_nat_target::resume, get_windows_debug_event)
5502 (windows_nat_target::get_tib_address)
5503 (windows_nat_target::thread_name)
5504 (windows_nat_target::thread_alive): Update.
5505 * nat/windows-nat.h (enum thread_disposition_type): Move from
5506 windows-nat.c.
5507 (thread_rec): Declare.
5508
4834dad0
TT
55092020-04-08 Tom Tromey <tromey@adacore.com>
5510
5511 * windows-nat.c: Add "using namespace".
5512 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5513 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5514
65bafd5b
TT
55152020-04-08 Tom Tromey <tromey@adacore.com>
5516
5517 * nat/windows-nat.h (struct windows_thread_info): Declare
5518 destructor.
5519 * nat/windows-nat.c (~windows_thread_info): New.
5520
0a4afda3
TT
55212020-04-08 Tom Tromey <tromey@adacore.com>
5522
5523 PR gdb/22992
5524 * windows-nat.c (current_event): Update comment.
5525 (last_wait_event, desired_stop_thread_id): New globals.
5526 (struct pending_stop): New.
5527 (pending_stops): New global.
5528 (windows_nat_target) <stopped_by_sw_breakpoint>
5529 <supports_stopped_by_sw_breakpoint>: New methods.
5530 (windows_fetch_one_register): Add assertions. Adjust PC.
5531 (windows_continue): Handle pending stops. Suspend other threads
5532 when stepping. Use last_wait_event
5533 (wait_for_debug_event): New function.
5534 (get_windows_debug_event): Use wait_for_debug_event. Handle
5535 pending stops. Queue spurious stops.
5536 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5537 (windows_nat_target::kill): Use wait_for_debug_event.
5538 * nat/windows-nat.h (struct windows_thread_info)
5539 <stopped_at_software_breakpoint>: New field.
5540 * nat/windows-nat.c (windows_thread_info::resume): Clear
5541 stopped_at_software_breakpoint.
5542
8e61ebec
TT
55432020-04-08 Tom Tromey <tromey@adacore.com>
5544
5545 * windows-nat.c (enum thread_disposition_type): New.
5546 (thread_rec): Replace "get_context" parameter with "disposition";
5547 change type.
5548 (windows_add_thread, windows_nat_target::fetch_registers)
5549 (windows_nat_target::store_registers, handle_exception)
5550 (windows_nat_target::resume, get_windows_debug_event)
5551 (windows_nat_target::get_tib_address)
5552 (windows_nat_target::thread_name)
5553 (windows_nat_target::thread_alive): Update.
5554
98a03287
TT
55552020-04-08 Tom Tromey <tromey@adacore.com>
5556
5557 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5558 (windows_continue): Use windows_continue::resume.
5559 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5560 resume>: Declare new methods.
5561 * nat/windows-nat.c: New file.
5562 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5563
7c7411bc
TT
55642020-04-08 Tom Tromey <tromey@adacore.com>
5565
5566 * windows-nat.c (windows_add_thread, windows_delete_thread)
5567 (windows_nat_target::fetch_registers)
5568 (windows_nat_target::store_registers, fake_create_process)
5569 (windows_nat_target::resume, windows_nat_target::resume)
5570 (get_windows_debug_event, windows_nat_target::wait)
5571 (windows_nat_target::pid_to_str)
5572 (windows_nat_target::get_tib_address)
5573 (windows_nat_target::get_ada_task_ptid)
5574 (windows_nat_target::thread_name)
5575 (windows_nat_target::thread_alive): Use lwp, not tid.
5576
2950fdf7
TT
55772020-04-08 Tom Tromey <tromey@adacore.com>
5578
5579 * windows-nat.c (handle_exception)
5580 (windows_nat_target::thread_name): Update.
5581 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5582 <name>: Now unique_xmalloc_ptr.
5583
62fe396b
TT
55842020-04-08 Tom Tromey <tromey@adacore.com>
5585
5586 * windows-nat.c (thread_rec)
5587 (windows_nat_target::fetch_registers): Update.
5588 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5589 Update comment.
5590 <debug_registers_changed, reload_context>: Now bool.
5591
e9534bd2
TT
55922020-04-08 Tom Tromey <tromey@adacore.com>
5593
5594 * windows-nat.c (windows_add_thread): Use new.
5595 (windows_init_thread_list, windows_delete_thread): Use delete.
5596 (get_windows_debug_event): Update.
5597 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5598 destructor, and initializers.
5599
ae1f8880
TT
56002020-04-08 Tom Tromey <tromey@adacore.com>
5601
5602 * windows-nat.c (struct windows_thread_info): Remove.
5603 * nat/windows-nat.h: New file.
5604
55a1e039
TT
56052020-04-08 Tom Tromey <tromey@adacore.com>
5606
5607 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5608 (thread_rec, windows_add_thread, windows_delete_thread)
5609 (windows_continue): Update.
5610
93366324
TT
56112020-04-08 Tom Tromey <tromey@adacore.com>
5612
5613 * windows-nat.c (struct windows_thread_info): Remove typedef.
5614 (thread_head): Remove.
5615 (thread_list): New global.
5616 (thread_rec, windows_add_thread, windows_init_thread_list)
5617 (windows_delete_thread, windows_continue): Update.
5618
0f2265e2
SM
56192020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5620
5621 * windows-tdep.h (windows_init_abi): Add comment.
5622 (cygwin_init_abi): New declaration.
5623 * windows-tdep.c: Split signal enumeration in two, one for
5624 Windows and one for Cygwin.
5625 (windows_gdb_signal_to_target): Only deal with signal of the
5626 Windows OS ABI.
5627 (cygwin_gdb_signal_to_target): New function.
5628 (windows_init_abi): Rename to windows_init_abi_common, don't set
5629 gdb_signal_to_target gdbarch method. Add new new function with
5630 this name.
5631 (cygwin_init_abi): New function.
5632 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5633 comment. Don't call windows_init_abi.
5634 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5635 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5636 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5637 i386_windows_init_abi_common, don't call windows_init_abi. Add
5638 a new function of this name.
5639 (i386_cygwin_init_abi): New function.
5640 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5641 OS ABI Cygwin.
5642
3810f182
SM
56432020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5644
5645 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5646 parameter.c.
5647 (dwarf2_read_gdb_index): Update.
5648
063f8e80
KR
56492020-04-07 Kamil Rytarowski <n54@gmx.com>
5650
5651 * nbsd-tdep.c: Include "objfiles.h".
5652 (nbsd_skip_solib_resolver): New.
5653 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5654
85a9510c 56552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5656
5657 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5658 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5659 with DW_LLE_base_addressx are being emitted in DWARFv5.
5660 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5661 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5662 unsigned integer.
5663
9fc3eaae 56642020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5665
5666 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5667 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5668 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5669 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5670 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5671 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5672 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5673
5674
41144253 56752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5676
5677 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5678 (read_loclist_index): New function definition.
5679 (lookup_loclist_base): New function definition.
5680 (read_loclist_header): New function definition.
5681 (dwarf2_cu): Add loclist_base and loclist_header field.
5682 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5683 (read_full_die_1): Read the value of DW_AT_loclists_base.
5684 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5685 (read_attribute_value): Handle DW_FORM_loclistx.
5686 (skip_one_die): Handle DW_FORM_loclistx.
5687 (loclist_header): New structure declaration.
5688 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5689
9f4e76a4
SM
56902020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5691
5692 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5693 constructor. Remove `addr` parameter from other constructor and
5694 add `per_cu` parameter.
5695 * dwarf2/read.c (create_partial_symtab): Update.
5696
25c11aca
TV
56972020-04-07 Tom de Vries <tdevries@suse.de>
5698
5699 PR symtab/25796
5700 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5701 (partial_die_info::fixup): Inherit has_const_value.
5702
5707e24b
TV
57032020-04-07 Tom de Vries <tdevries@suse.de>
5704
5705 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5706 symbols without address.
5707
05f00e22
KR
57082020-04-06 Kamil Rytarowski <n54@gmx.com>
5709
5710 * nbsd-nat.h (struct thread_info): Add forward declaration.
5711 (nbsd_nat_target::thread_alive): Add.
5712 (nbsd_nat_target::thread_name): Likewise.
5713 (nbsd_nat_target::update_thread_list): Likewise.
5714 (update_thread_list::post_attach): Likewise.
5715 (post_attach::pid_to_str): Likewise.
5716 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5717 (nbsd_thread_lister): Add.
5718 (nbsd_nat_target::thread_alive): Likewise.
5719 (nbsd_nat_target::thread_name): Likewise.
5720 (nbsd_add_threads): Likewise.
5721 (update_thread_list::post_attach): Likewise.
5722 (nbsd_nat_target::update_thread_list): Likewise.
5723 (post_attach::pid_to_str): Likewise.
5724
6ee448cc
TT
57252020-04-06 Tom Tromey <tromey@adacore.com>
5726
5727 * ada-valprint.c (print_variant_part): Extract the variant field.
5728 (print_field_values): Use the field as the outer value when
5729 recursing.
5730
dea34e8c
TT
57312020-04-06 Tom Tromey <tromey@adacore.com>
5732
5733 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5734 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5735 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5736 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5737 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5738
93689ce9
TT
57392020-04-06 Tom Tromey <tromey@adacore.com>
5740
5741 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5742 TYPE_CODE_ERROR.
5743
79743962
KR
57442020-04-06 Kamil Rytarowski <n54@gmx.com>
5745
5746 * nbsd-tdep.c: Include "gdbarch.h".
5747 Define enum with NetBSD signal numbers.
5748 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5749 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5750 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5751 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5752 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5753 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5754 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5755 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5756 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5757 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5758 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5759 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5760
9e7c9a03
HD
57612020-04-03 Hannes Domani <ssbssa@yahoo.de>
5762
5763 PR gdb/25325
5764 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5765
d9e49b61
TT
57662020-04-03 Tom Tromey <tromey@adacore.com>
5767
5768 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5769 Read constant block.
5770
e0fc5c3f
SM
57712020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5772
5773 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5774 (gdb_bfd_get_full_section_contents): New declaration.
5775 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5776 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5777 gdb_bfd_get_full_section_contents.
5778
e2ff18a0
SM
57792020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5780
5781 * exec.c (build_section_table): Replace internal_error with
5782 gdb_assert.
5783 (section_table_xfer_memory_partial): Likewise.
5784 * mdebugread.c (parse_partial_symbols): Likewise.
5785 * psymtab.c (lookup_partial_symbol): Likewise.
5786 * utils.c (wrap_here): Likewise.
5787
0830d301
TT
57882020-04-02 Tom Tromey <tromey@adacore.com>
5789
5790 * f-lang.c (build_fortran_types): Use arch_type to initialize
5791 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5792
e7da7f8f
TT
57932020-04-02 Tom Tromey <tromey@adacore.com>
5794
5795 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5796 of attributes.
5797
c90d28ac
AB
57982020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5799 Bernd Edlinger <bernd.edlinger@hotmail.de>
5800 Tom Tromey <tromey@adacore.com>
5801
5802 * buildsym.c (buildsym_compunit::record_line): Remove
5803 deduplication code.
5804
1aa98955
TV
58052020-04-02 Tom de Vries <tdevries@suse.de>
5806
5807 PR ada/24671
5808 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5809
d3214198
TV
58102020-04-02 Tom de Vries <tdevries@suse.de>
5811
5812 * dwarf2/read.c (dwarf2_gdb_index_functions,
5813 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5814 NULL.
5815 * psymtab.c (psym_lookup_global_symbol_language): New function.
5816 (psym_functions): Init psym_lookup_global_symbol_language with
5817 psym_lookup_global_symbol_language.
5818 * symfile-debug.c (debug_sym_quick_functions): Init
5819 lookup_global_symbol_language with NULL.
5820 * symfile.c (set_initial_language): Remove fixme comment.
5821 * symfile.h (struct quick_symbol_functions): Add
5822 lookup_global_symbol_language.
5823 * symtab.c (find_quick_global_symbol_language): New function.
5824 (find_main_name): Use find_quick_global_symbol_language.
5825
2836752f
SM
58262020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5827
5828 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5829
64dc2d4b
BE
58302020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5831
5832 * buildsym.c (record_line): Fix undefined behavior and preserve
5833 lines at eof.
5834
bbe3dc41
BE
58352020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5836
5837 * buildsym.c (record_line): Fix the resizing condition.
5838
6b4a335b
TT
58392020-04-01 Tom Tromey <tom@tromey.com>
5840
5841 * value.h (value_literal_complex): Add comment.
5842 * valops.c (value_literal_complex): Refer to value.h.
5843
3638a098
TT
58442020-04-01 Tom Tromey <tom@tromey.com>
5845
5846 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5847 (scalar_type): New rule, from typebase.
5848 (typebase): Use scalar_type. Recognize complex types.
5849 (field_name): Handle FLOAT_KEYWORD.
5850 (ident_tokens): Add _Complex and __complex__.
5851
c34e8714
TT
58522020-04-01 Tom Tromey <tom@tromey.com>
5853
5854 PR exp/25299:
5855 * valarith.c (promotion_type, complex_binop): New functions.
5856 (scalar_binop): Handle complex numbers. Use promotion_type.
5857 (value_pos, value_neg, value_complement): Handle complex numbers.
5858
fa649bb7
TT
58592020-04-01 Tom Tromey <tom@tromey.com>
5860
5861 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5862 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5863 (parse_number): Handle complex numbers.
5864
981c08ce
TT
58652020-04-01 Tom Tromey <tom@tromey.com>
5866
5867 * c-valprint.c (c_decorations): Change complex suffix to "i".
5868
4c99290d
TT
58692020-04-01 Tom Tromey <tom@tromey.com>
5870
5871 * valprint.c (generic_value_print_complex): Use accessors.
5872 * value.h (value_real_part, value_imaginary_part): Declare.
5873 * valops.c (value_real_part, value_imaginary_part): New
5874 functions.
5875 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5876
5b930b45
TT
58772020-04-01 Tom Tromey <tom@tromey.com>
5878
5879 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5880 (read_range_type): Update.
5881 * mdebugread.c (basic_type): Update.
5882 * go-lang.c (build_go_types): Use init_complex_type.
5883 * gdbtypes.h (struct main_type) <complex_type>: New member.
5884 (init_complex_type): Update.
5885 (arch_complex_type): Don't declare.
5886 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5887 Make name if none given. Use alloc_type_copy. Look for cached
5888 complex type.
5889 (arch_complex_type): Remove.
5890 (gdbtypes_post_init): Use init_complex_type.
5891 * f-lang.c (build_fortran_types): Use init_complex_type.
5892 * dwarf2/read.c (read_base_type): Update.
5893 * d-lang.c (build_d_types): Use init_complex_type.
5894 * ctfread.c (read_base_type): Update.
5895
53cccef1
TBA
58962020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5897
5898 * infrun.c (stop_all_threads): Update assertion, plus when
5899 stopping threads, take into account that we might be trying
5900 to stop an all-stop target.
5901 (stop_waiting): Call 'stop_all_threads' if there exists a
5902 non-stop target.
5903
a0714d30
TBA
59042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5905
5906 * target.h (exists_non_stop_target): New function declaration.
5907 * target.c (exists_non_stop_target): New function.
5908
60e22c1e
HD
59092020-04-01 Hannes Domani <ssbssa@yahoo.de>
5910
5911 PR gdb/24789
5912 * eval.c (is_integral_or_integral_reference): New function.
5913 (evaluate_subexp_standard): Allow integer references in
5914 pointer arithmetic.
5915
e139a727
TBA
59162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5917
5918 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5919 check for no ptid in the stop reply when the target is non-stop.
5920
e0802d59
TT
59212020-04-01 Tom Tromey <tromey@adacore.com>
5922
5923 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5924 "name" parameter to rvalue reference. Initialize m_name_holder.
5925 <lookup_name_info>: New overloads.
5926 <name>: Return gdb::string_view.
5927 <c_str>: New method.
5928 <make_ignore_params>: Update.
5929 <search_name_hash>: Update.
5930 <language_lookup_name>: Return const char *.
5931 <m_name>: Change type.
5932 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5933 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5934 (lookup_name_info::match_any): Update.
5935 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5936 Update.
5937 * minsyms.c (linkage_name_str): Update.
5938 * language.c (default_symbol_name_matcher): Update.
5939 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5940 Update.
5941 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5942 (ada_lookup_name_info::ada_lookup_name_info): Update.
5943 (literal_symbol_name_matcher): Update.
5944
8c072cb6
TT
59452020-04-01 Tom Tromey <tromey@adacore.com>
5946
5947 * psymtab.c (psymtab_search_name): Remove function.
5948 (psym_lookup_symbol): Create search name and lookup name here.
5949 (lookup_partial_symbol): Remove "name" parameter; add
5950 lookup_name.
5951 (psym_expand_symtabs_for_function): Update.
5952
6f29a534
TT
59532020-03-31 Joel Jones <joelkevinjones@gmail.com>
5954
5955 PR tui/25597:
5956 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5957
af62665e
TT
59582020-03-31 Tom Tromey <tromey@adacore.com>
5959
5960 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5961 memcpy.
5962
d1a89da5
NC
59632020-03-30 Nelson Chu <nelson.chu@sifive.com>
5964
5965 * features/riscv/32bit-csr.xml: Regenerated.
5966 * features/riscv/64bit-csr.xml: Regenerated.
5967
d8af9068
TT
59682020-03-30 Tom Tromey <tromey@adacore.com>
5969
5970 * ada-valprint.c (print_variant_part): Update.
5971 * ada-lang.h (ada_which_variant_applies): Update.
5972 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5973 outer_valaddr parameters; replace with "outer" value parameter.
5974 (to_fixed_variant_branch_type): Update.
5975
227c0bf4
PFC
59762020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5977
5978 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5979 <list>. Remove inclusion of observable.h.
5980 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5981 (struct arch_lwp_info): New struct.
5982 (class ppc_linux_dreg_interface): New class.
5983 (struct ppc_linux_process_info): New struct.
5984 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5985 <low_new_clone, low_forget_process, low_prepare_to_resume>
5986 <copy_thread_dreg_state, mark_thread_stale>
5987 <mark_debug_registers_changed, register_hw_breakpoint>
5988 <clear_hw_breakpoint, register_wp, clear_wp>
5989 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5990 <num_memory_accesses, get_trigger_type>
5991 <create_watchpoint_request, hwdebug_point_cmp>
5992 <init_arch_lwp_info, get_arch_lwp_info>
5993 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5994 methods.
5995 <struct ptid_hash>: New inner struct.
5996 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5997 members.
5998 (saved_dabr_value, hwdebug_info, max_slots_number)
5999 (struct hw_break_tuple, struct thread_points, ppc_threads)
6000 (have_ptrace_hwdebug_interface)
6001 (hwdebug_find_thread_points_by_tid)
6002 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6003 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6004 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6005 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6006 use m_dreg_interface.
6007 (hwdebug_point_cmp): Change to...
6008 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6009 reference arguments instead of pointers.
6010 (ppc_linux_nat_target::ranged_break_num_registers): Use
6011 m_dreg_interface.
6012 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6013 m_dreg_interface. Call register_hw_breakpoint.
6014 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6015 m_dreg_interface. Call clear_hw_breakpoint.
6016 (get_trigger_type): Change to...
6017 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6018 comment.
6019 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6020 use m_dreg_interface. Call register_hw_breakpoint.
6021 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6022 use m_dreg_interface. Call clear_hw_breakpoint.
6023 (can_use_watchpoint_cond_accel): Change to...
6024 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6025 method. Update comment, use m_dreg_interface and
6026 m_process_info.
6027 (calculate_dvc): Change to...
6028 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6029 m_dreg_interface.
6030 (num_memory_accesses): Change to...
6031 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6032 (check_condition): Change to...
6033 (ppc_linux_nat_target::check_condition): ...this method.
6034 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6035 comment, use m_dreg_interface.
6036 (create_watchpoint_request): Change to...
6037 (ppc_linux_nat_target::create_watchpoint_request): ...this
6038 method. Use m_dreg_interface.
6039 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6040 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6041 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6042 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6043 (ppc_linux_nat_target::low_forget_process)
6044 (ppc_linux_nat_target::low_new_fork)
6045 (ppc_linux_nat_target::low_new_clone)
6046 (ppc_linux_nat_target::low_delete_thread)
6047 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6048 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6049 only call mark_thread_stale.
6050 (ppc_linux_thread_exit): Remove.
6051 (ppc_linux_nat_target::stopped_data_address): Change to...
6052 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6053 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6054 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6055 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6056 comment. Call low_stopped_data_address.
6057 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6058 m_dreg_interface.
6059 (ppc_linux_nat_target::masked_watch_num_registers): Use
6060 m_dreg_interface.
6061 (ppc_linux_nat_target::copy_thread_dreg_state)
6062 (ppc_linux_nat_target::mark_thread_stale)
6063 (ppc_linux_nat_target::mark_debug_registers_changed)
6064 (ppc_linux_nat_target::register_hw_breakpoint)
6065 (ppc_linux_nat_target::clear_hw_breakpoint)
6066 (ppc_linux_nat_target::register_wp)
6067 (ppc_linux_nat_target::clear_wp)
6068 (ppc_linux_nat_target::init_arch_lwp_info)
6069 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6070 (_initialize_ppc_linux_nat): Remove observer callback.
6071
4db10d8f
PFC
60722020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6073
6074 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6075 (ppc_linux_nat_target::auxv_parse)
6076 (ppc_linux_nat_target::read_description)
6077 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6078 Move up.
6079
1310c1b0
PFC
60802020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6081
6082 * linux-nat.h (low_new_clone): New method.
6083 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6084
69b037c3
SM
60852020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6086
6087 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6088 (dbx_expand_psymtab): ... this.
6089 (start_psymtab): Update.
6090 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6091 (mdebug_expand_psymtab): ... this.
6092 (parse_partial_symbols): Update.
6093 (new_psymtab): Update.
6094 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6095 (xcoff_expand_psymtab): ... this.
6096 (xcoff_start_psymtab): Update.
6097
48993951
SM
60982020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6099
6100 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6101 <expand_dependencies>: ... this.
6102 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6103 (partial_symtab::expand_dependencies): ... this.
6104 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6105 Update.
6106 (dwarf2_psymtab::expand_psymtab): Update.
6107 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6108 * mdebugread.c (psymtab_to_symtab_1): Update.
6109 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6110
3ad83046
SM
61112020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6112
6113 * psympriv.h (discard_psymtab): Remove.
6114 * dbxread.c (dbx_end_psymtab): Update.
6115 * xcoffread.c (xcoff_end_psymtab): Update.
6116
4d1b9ab6
TT
61172020-03-28 Tom Tromey <tom@tromey.com>
6118
6119 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6120 comment.
6121
f1749218
TT
61222020-03-28 Tom Tromey <tom@tromey.com>
6123
6124 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6125
ebea7626
HD
61262020-03-27 Hannes Domani <ssbssa@yahoo.de>
6127
6128 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6129
a879b4d5
JB
61302020-03-26 John Baldwin <jhb@FreeBSD.org>
6131
6132 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6133
0826b30a
TT
61342020-03-26 Tom Tromey <tom@tromey.com>
6135
6136 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6137 (mark_common_block_symbol_computed, read_tag_string_type)
6138 (attr_to_dynamic_prop, read_subrange_type): Update.
6139 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6140 to be methods on struct attribute.
6141 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6142 (read_call_site_scope, partial_die_info::read)
6143 (partial_die_info::read, lookup_die_type, follow_die_ref):
6144 Update.
6145 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6146 from dwarf2_get_ref_die_offset.
6147 (attribute::constant_value): New method, from
6148 dwarf2_get_attr_constant_value.
6149 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6150 Declare method.
6151 <constant_value>: New method.
6152
2b2558bf
TT
61532020-03-26 Tom Tromey <tom@tromey.com>
6154
6155 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6156 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6157 (dwarf_type_encoding_name): Move to stringify.c.
6158 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6159 * dwarf2/stringify.c: New file.
6160 * dwarf2/stringify.h: New file.
6161
eeb64781
TT
61622020-03-26 Tom Tromey <tom@tromey.com>
6163
6164 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6165 Rewrite.
6166
a39fdb41
TT
61672020-03-26 Tom Tromey <tom@tromey.com>
6168
6169 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6170 methods.
6171 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6172 (lookup_ranges_base): Likewise.
6173 (read_cutu_die_from_dwo, read_full_die_1): Update.
6174
436c571c
TT
61752020-03-26 Tom Tromey <tom@tromey.com>
6176
6177 * dwarf2/read.c (read_import_statement, read_file_scope)
6178 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6179 (read_lexical_block_scope, read_call_site_scope)
6180 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6181 (handle_struct_member_die, process_structure_scope)
6182 (update_enumeration_type_from_children)
6183 (process_enumeration_scope, read_array_type, read_common_block)
6184 (read_namespace, read_module, read_subroutine_type): Update.
6185 (sibling_die): Remove.
6186
052c8bb8
TT
61872020-03-26 Tom Tromey <tom@tromey.com>
6188
6189 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6190 (build_type_psymtabs_reader, read_structure_type)
6191 (read_enumeration_type, read_full_die_1): Update.
6192 (dwarf2_attr_no_follow): Move to die.h.
6193 * dwarf2/die.h (struct die_info) <attr>: New method.
6194
2b24b6e4
TT
61952020-03-26 Tom Tromey <tom@tromey.com>
6196
6197 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6198 <base_address>: Now an optional.
6199 (dwarf2_find_base_address, dwarf2_rnglists_process)
6200 (dwarf2_ranges_process, fill_in_loclist_baton)
6201 (dwarf2_symbol_mark_computed): Update.
6202
c2d50fd0
TT
62032020-03-26 Tom Tromey <tom@tromey.com>
6204
6205 * dwarf2/read.c (struct die_info): Move to die.h.
6206 * dwarf2/die.h: New file.
6207
0df7ad3a
TT
62082020-03-26 Tom Tromey <tom@tromey.com>
6209
6210 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6211 * dwarf2/read.c
6212 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6213 Move to line-header.c.
6214 (read_checked_initial_length_and_offset, read_formatted_entries):
6215 Likewise.
6216 (dwarf_decode_line_header): Split into two.
6217 * dwarf2/line-header.c
6218 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6219 Move from read.c.
6220 (read_checked_initial_length_and_offset, read_formatted_entries):
6221 Likewise.
6222 (dwarf_decode_line_header): New function, split from read.c.
6223
86c0bb4c
TT
62242020-03-26 Tom Tromey <tom@tromey.com>
6225
6226 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6227 Declare method.
6228 * dwarf2/read.c (read_attribute_value): Update.
6229 (dwarf2_per_objfile::read_line_string): Rename from
6230 read_indirect_line_string.
6231 (read_formatted_entries): Update.
6232
2ef46c2f
TT
62332020-03-26 Tom Tromey <tom@tromey.com>
6234
6235 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6236 variable.
6237
4f9c1eda
TT
62382020-03-26 Tom Tromey <tom@tromey.com>
6239
6240 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6241 const.
6242 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6243 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6244 parameter const.
6245
5a0e026f
TT
62462020-03-26 Tom Tromey <tom@tromey.com>
6247
6248 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6249 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6250 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6251 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6252
8844c11b
TT
62532020-03-26 Tom Tromey <tom@tromey.com>
6254
6255 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6256 file_names_size, file_full_name, file_file_name>: Use const.
6257 <file_name_at, file_names>: Add const overload.
6258 * dwarf2/line-header.c (line_header::file_file_name)
6259 (line_header::file_full_name): Update.
6260
c90ec28a
TT
62612020-03-26 Tom Tromey <tom@tromey.com>
6262
6263 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6264 (macro_start_file, consume_improper_spaces)
6265 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6266 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6267 (dwarf_decode_macros): Move to macro.c.
6268 * dwarf2/macro.c: New file.
6269 * dwarf2/macro.h: New file.
6270 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6271
4f44ae6c
TT
62722020-03-26 Tom Tromey <tom@tromey.com>
6273
6274 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6275 method.
6276 * dwarf2/section.c: New method. From
6277 read_indirect_string_at_offset_from.
6278 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6279 (read_indirect_string_at_offset_from): Move to section.c.
6280 (read_indirect_string_at_offset): Rewrite.
6281 (read_indirect_line_string_at_offset): Remove.
6282 (read_indirect_string, read_indirect_line_string)
6283 (dwarf_decode_macro_bytes): Update.
6284
a0194fa8
TT
62852020-03-26 Tom Tromey <tom@tromey.com>
6286
6287 * dwarf2/section.h (struct dwarf2_section_info)
6288 <overload_complaint>: Declare.
6289 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6290 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6291 Rename from dwarf2_section_buffer_overflow_complaint.
6292 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6293 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6294
3d27bbdb
TT
62952020-03-26 Tom Tromey <tom@tromey.com>
6296
6297 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6298 Declare.
6299 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6300 Move from read.c.
6301 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6302 to section.c.
6303
9eac9650
TT
63042020-03-26 Tom Tromey <tom@tromey.com>
6305
6306 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6307
bf80d710
TT
63082020-03-26 Tom Tromey <tom@tromey.com>
6309
6310 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6311 "builder".
6312 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6313 parameter.
6314 (dwarf_decode_macros): Update.
6315
0314b390
TT
63162020-03-26 Tom Tromey <tom@tromey.com>
6317
6318 * dwarf2/read.c (read_attribute_value): Update.
6319 (read_indirect_string_from_dwz): Move to dwz.c; change into
6320 method.
6321 (dwarf_decode_macro_bytes): Update.
6322 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6323 * dwarf2/dwz.c: New file.
6324 * Makefile.in (COMMON_SFILES): Add dwz.c.
6325
9fda78b6
TT
63262020-03-26 Tom Tromey <tom@tromey.com>
6327
6328 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6329 * dwarf2/read.c: Add include.
6330 * dwarf2/index-write.c: Add include.
6331 * dwarf2/index-cache.c: Add include.
6332 * dwarf2/dwz.h: New file.
6333
33aa3c10
TT
63342020-03-25 Tom Tromey <tom@tromey.com>
6335
6336 * compile/compile-object-load.c (get_out_value_type): Mention
6337 correct symbol name in error message.
6338
d503b685
HD
63392020-03-25 Hannes Domani <ssbssa@yahoo.de>
6340
6341 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6342
7b1eff95
TV
63432020-03-25 Tom de Vries <tdevries@suse.de>
6344
6345 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6346 * symmisc.c (dump_symtab_1): Print user and includes fields.
6347 (maintenance_info_symtabs): Same.
6348
dd895392
AB
63492020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6350
6351 PR gdb/25534
6352 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6353 (riscv_regcache_cooked_write): New function.
6354 (riscv_push_dummy_call): Use new function.
6355 (riscv_return_value): Likewise.
6356
5ab2fbf1
SM
63572020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6358
6359 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6360 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6361 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6362 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6363 * infrun.c (follow_fork): Likewise.
6364 (follow_fork_inferior): Likewise.
6365 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6366 * linux-nat.h (class linux_nat_target): Likewise.
6367 * remote.c (class remote_target) <follow_fork>: Likewise.
6368 (remote_target::follow_fork): Likewise.
6369 * target-delegates.c: Re-generate.
6370 * target.c (default_follow_fork): Likewise.
6371 (target_follow_fork): Likewise.
6372 * target.h (struct target_ops) <follow_fork>: Likewise.
6373 (target_follow_fork): Likewise.
6374
a64fafb5
TV
63752020-03-24 Tom de Vries <tdevries@suse.de>
6376
6377 * psymtab.c (maintenance_info_psymtabs): Print user field.
6378
fe26d3a3
TT
63792020-03-20 Tom Tromey <tromey@adacore.com>
6380
6381 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6382 const.
6383 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6384 const.
6385
c884cc46
SM
63862020-03-20 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * ptrace.m4: Don't check for ptrace declaration.
6389 * config.in: Re-generate.
6390 * configure: Re-generate.
6391 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6392 not defined.
6393
1ff700c2
KR
63942020-03-20 Kamil Rytarowski <n54@gmx.com>
6395
6396 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6397 `PTRACE_TYPE_RET'.
6398 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6399 * sparc-nat.c (gdb_ptrace): Likewise.
6400 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6401
f7d4f0b1
TT
64022020-03-20 Tom Tromey <tromey@adacore.com>
6403
6404 * c-exp.y (lex_one_token): Fix assert.
6405
f67210ff
TT
64062020-03-20 Tom Tromey <tromey@adacore.com>
6407
6408 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6409 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6410 strncpy call.
6411
1773be9e
TT
64122020-03-20 Tom Tromey <tromey@adacore.com>
6413
6414 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6415
70304be9
TT
64162020-03-20 Tom Tromey <tromey@adacore.com>
6417
6418 * ada-valprint.c (print_variant_part): Remove parameters; switch
6419 to value-based API.
6420 (print_field_values): Likewise.
6421 (ada_val_print_struct_union): Likewise.
6422 (ada_value_print_1): Update.
6423
9faa006d
KR
64242020-03-20 Kamil Rytarowski <n54@gmx.com>
6425
6426 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6427 nbsd_nat_target instead of inf_ptrace_target.
6428 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6429 nbsd_nat_target.
6430
4a90f062
KR
64312020-03-20 Kamil Rytarowski <n54@gmx.com>
6432
6433 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6434 it to the ptrace call.
6435 * (store_registers): Likewise.
6436
64372020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6438
6439 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6440 it to the ptrace call.
6441 * (store_registers): Likewise.
6442
2d07da27
LM
64432020-03-19 Luis Machado <luis.machado@linaro.org>
6444
6445 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6446 valid, fetch vg value from ptrace.
6447
f09db380
KR
64482020-03-19 Kamil Rytarowski <n54@gmx.com>
6449 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6450 * inf-ptrace.c: Likewise.
6451 * (gdb_ptrace): Add.
6452 * (inf_ptrace_target::resume): Update.
6453 * (inf_ptrace_target::xfer_partial): Likewise.
6454 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6455 * (inf_ptrace_peek_poke): Update.
6456
fcc7376e
KR
64572020-03-19 Kamil Rytarowski <n54@gmx.com>
6458
6459 * x86-bsd-nat.c (gdb_ptrace): New.
6460 * (x86bsd_dr_set): Add new argument `ptid'.
6461 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6462 x86bsd_dr_set_addr): Update.
6463
cada5fc9
AB
64642020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * remote.c (remote_target::process_stop_reply): Handle events for
6467 all threads differently.
6468
19a2740f
AB
64692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6470
6471 * completer.c (completion_tracker::remove_completion): Define new
6472 function.
6473 * completer.h (completion_tracker::remove_completion): Declare new
6474 function.
6475 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6476 when adding a C++ function symbol.
6477
724fd9ba
AB
64782020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6479
6480 * completer.c (completion_tracker::completion_hash_entry): Define
6481 new class.
6482 (advance_to_filename_complete_word_point): Call
6483 recompute_lowest_common_denominator.
6484 (completion_tracker::completion_tracker): Call discard_completions
6485 to setup the hash table.
6486 (completion_tracker::discard_completions): Allow for being called
6487 from the constructor, pass new equal function, and element deleter
6488 when constructing the hash table. Initialise new class member
6489 variables.
6490 (completion_tracker::maybe_add_completion): Remove use of
6491 m_entries_vec, and store more information into m_entries_hash.
6492 (completion_tracker::recompute_lcd_visitor): New function, most
6493 content taken from...
6494 (completion_tracker::recompute_lowest_common_denominator):
6495 ...here, this now just visits each item in the hash calling the
6496 above visitor.
6497 (completion_tracker::build_completion_result): Remove use of
6498 m_entries_vec, call recompute_lowest_common_denominator.
6499 * completer.h (completion_tracker::have_completions): Remove use
6500 of m_entries_vec.
6501 (completion_tracker::completion_hash_entry): Declare new class.
6502 (completion_tracker::recompute_lowest_common_denominator): Change
6503 function signature.
6504 (completion_tracker::recompute_lcd_visitor): Declare new function.
6505 (completion_tracker::m_entries_vec): Delete.
6506 (completion_tracker::m_entries_hash): Initialize to NULL.
6507 (completion_tracker::m_lowest_common_denominator_valid): New
6508 member variable.
6509 (completion_tracker::m_lowest_common_denominator_max_length): New
6510 member variable.
6511
5a82b8a1
KR
65122020-03-17 Kamil Rytarowski <n54@gmx.com>
6513
6514 * regformats/regdef.h: Put reg in gdb namespace.
6515
fb516a69
KR
65162020-03-17 Kamil Rytarowski <n54@gmx.com>
6517
6518 * i386-bsd-nat.c (gdb_ptrace): New.
6519 * (i386bsd_fetch_inferior_registers,
6520 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6521 * (i386bsd_fetch_inferior_registers,
6522 i386bsd_store_inferior_registers) Use gdb_ptrace.
6523
1c0aa1fb
KR
65242020-03-17 Kamil Rytarowski <n54@gmx.com>
6525
6526 * amd64-bsd-nat.c (gdb_ptrace): New.
6527 * (amd64bsd_fetch_inferior_registers,
6528 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6529 * (amd64bsd_fetch_inferior_registers,
6530 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6531
5ccd2fb7
KR
65322020-03-17 Kamil Rytarowski <n54@gmx.com>
6533
6534 * user-regs.c (user_reg::read): Rename to...
6535 (user_reg::xread): ...this.
6536 * (append_user_reg): Rename argument `read' to `xread'.
6537 * (user_reg_add_builtin): Likewise.
6538 * (user_reg_add): Likewise.
6539 * (value_of_user_reg): Likewise.
6540
2108a63a
KR
65412020-03-17 Kamil Rytarowski <n54@gmx.com>
6542
6543 * sparc-nat.c (gdb_ptrace): New.
6544 * sparc-nat.c (sparc_fetch_inferior_registers)
6545 (sparc_store_inferior_registers) Remove obsolete comment.
6546 * sparc-nat.c (sparc_fetch_inferior_registers)
6547 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6548 * sparc-nat.c (sparc_fetch_inferior_registers)
6549 (sparc_store_inferior_registers) Use gdb_ptrace.
6550
a225c9a8
KR
65512020-03-17 Kamil Rytarowski <n54@gmx.com>
6552
6553 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6554 it to the ptrace call.
6555 * sh-nbsd-nat.c (store_registers): Likewise.
6556
98097623
KR
65572020-03-17 Kamil Rytarowski <n54@gmx.com>
6558
6559 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6560 nbsd_nat_target instead of inf_ptrace_target.
6561 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6562 nbsd_nat_target.
6563
9e38d619
KR
65642020-03-17 Kamil Rytarowski <n54@gmx.com>
6565
6566 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6567
a2ecbe9f
KR
65682020-03-17 Kamil Rytarowski <n54@gmx.com>
6569
6570 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6571 <sys/sysctl.h>.
6572 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6573
58990295
TV
65742020-03-17 Tom de Vries <tdevries@suse.de>
6575
6576 PR gdb/23710
6577 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6578 fields.
6579 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6580 fields.
6581 (process_imported_unit_die): Skip import of c++ CUs.
6582
771dd3a8
TT
65832020-03-16 Tom Tromey <tom@tromey.com>
6584
6585 * p-valprint.c (pascal_object_print_value): Initialize
6586 base_value.
6587
817a7585
AK
65882020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6589 Shahab Vahedi <shahab@synopsys.com>
6590
6591 * Makefile.in: Add arch/arc.o
6592 * configure.tgt: Likewise.
6593 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6594 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6595 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6596 * arc-tdep.h (arc_read_description): Add proto type.
6597 * arch/arc.c: New file.
6598 * arch/arc.h: Likewise.
6599 * features/Makefile: Replace old target descriptions with new.
6600 * features/arc-arcompact.c: Remove.
6601 * features/arc-arcompact.xml: Likewise.
6602 * features/arc-v2.c: Likewise
6603 * features/arc-v2.xml: Likewise
6604 * features/arc/aux-arcompact.xml: New file.
6605 * features/arc/aux-v2.xml: Likewise.
6606 * features/arc/core-arcompact.xml: Likewise.
6607 * features/arc/core-v2.xml: Likewise.
6608 * features/arc/aux-arcompact.c: Generate.
6609 * features/arc/aux-v2.c: Likewise.
6610 * features/arc/core-arcompact.c: Likewise.
6611 * features/arc/core-v2.c: Likewise.
6612 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6613
67430cd0
TT
66142020-03-16 Tom Tromey <tromey@adacore.com>
6615
6616 PR gdb/25663:
6617 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6618 putting value into bcache.
6619
30efb6c7
SM
66202020-03-16 Simon Marchi <simon.marchi@efficios.com>
6621
6622 PR gdb/21500
6623 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6624 to...
6625 (amd64_windows_init_abi_common): ... this. Don't set size of
6626 long type.
6627 (amd64_windows_init_abi): New function.
6628 (amd64_cygwin_init_abi): New function.
6629 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6630 the Cygwin OS ABI.
6631 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6632 comment.
6633
8db52437
SM
66342020-03-16 Simon Marchi <simon.marchi@efficios.com>
6635
6636 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6637 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6638 (pe_import_directory_entry): New struct type.
6639 (is_linked_with_cygwin_dll): New function.
6640 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6641 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6642 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6643
5982a56a
SM
66442020-03-16 Simon Marchi <simon.marchi@efficios.com>
6645
6646 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6647 i386_cygwin_core_osabi_sniffer.
6648
7a1998df
SM
66492020-03-16 Simon Marchi <simon.marchi@efficios.com>
6650
6651 * i386-cygwin-tdep.c: Rename to...
6652 * i386-windows-tdep.c: ... this.
6653 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6654 i386-windows-tdep.c.
6655 * configure.tgt: Likewise.
6656
053205cc
SM
66572020-03-16 Simon Marchi <simon.marchi@efficios.com>
6658
6659 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6660 * osabi.c (gdb_osabi_names): Add "Windows".
6661 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6662 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6663 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6664 i386_cygwin_osabi_sniffer.
6665 (_initialize_i386_cygwin_tdep): Register OS ABI
6666 GDB_OSABI_WINDOWS for i386.
6667 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6668 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6669 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6670 for x86-64.
6671 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6672 when the target matches '*-*-mingw*'.
6673
fe4b2ee6
SM
66742020-03-16 Simon Marchi <simon.marchi@efficios.com>
6675
6676 * defs.h (enum gdb_osabi): Move to...
6677 * osabi.h (enum gdb_osabi): ... here.
6678 * gdbarch.sh: Include osabi.h in gdbarch.h.
6679 * gdbarch.h: Re-generate.
6680
cb9b645d
SM
66812020-03-16 Simon Marchi <simon.marchi@efficios.com>
6682
6683 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6684 function.
6685 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6686
3293bbaf
TT
66872020-03-14 Tom Tromey <tom@tromey.com>
6688
6689 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6690 for C++.
6691 (c_type_print_modifier): Likewise. Add "language" parameter.
6692 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6693 (c_type_print_base_1): Update.
6694 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6695 constants.
6696 * type-stack.c (type_stack::insert): Handle tp_atomic and
6697 tp_restrict.
6698 (type_stack::follow_type_instance_flags): Likewise.
6699 (type_stack::follow_types): Likewise. Merge type-following code.
6700 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6701 (space_identifier, cv_with_space_id)
6702 (const_or_volatile_or_space_identifier_noopt)
6703 (const_or_volatile_or_space_identifier): Remove.
6704 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6705 rules.
6706 (ptr_operator, typebase): Update.
6707 (enum token_flag) <FLAG_C>: New constant.
6708 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6709 "_Atomic".
6710 (lex_one_token): Handle FLAG_C.
6711
154151a6
KR
67122020-03-14 Kamil Rytarowski <n54@gmx.com>
6713
6714 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6715 it to the ptrace call.
6716 * m68k-bsd-nat.c (store_registers): Likewise.
6717
bc107784
KR
67182020-03-14 Kamil Rytarowski <n54@gmx.com>
6719
6720 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6721 gdb_byte *.
6722 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6723 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6724 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6725
01a80117
KR
67262020-03-14 Kamil Rytarowski <n54@gmx.com>
6727
6728 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6729 nbsd_nat_target instead of inf_ptrace_target.
6730 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6731 nbsd_nat_target.
6732
f90280ca
KR
67332020-03-14 Kamil Rytarowski <n54@gmx.com>
6734
6735 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6736 register_t.
6737
6def66f1
KR
67382020-03-14 Kamil Rytarowski <n54@gmx.com>
6739
6740 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6741 it to the ptrace call.
6742 * alpha-bsd-nat.c (store_registers): Likewise.
6743
66eaca97
KR
67442020-03-14 Kamil Rytarowski <n54@gmx.com>
6745
6746 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6747 includes.
6748 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6749 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6750 fill_fpregset): Likewise.
6751
4fed520b
KR
67522020-03-14 Kamil Rytarowski <n54@gmx.com>
6753
6754 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6755 nbsd_nat_target instead of inf_ptrace_target.
6756 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6757 nbsd_nat_target.
6758
2190cf06
KR
67592020-03-14 Kamil Rytarowski <n54@gmx.com>
6760
6761 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6762 register_t.
6763
75c56d3d
KR
67642020-03-14 Kamil Rytarowski <n54@gmx.com>
6765
6766 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6767 it to the ptrace call.
6768 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6769 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6770 * arm-nbsd-nat.c (store_register): Likewise.
6771 * arm-nbsd-nat.c (store_regs): Likewise.
6772 * arm-nbsd-nat.c (store_fp_register): Likewise.
6773 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6774
6018d381
KR
67752020-03-14 Kamil Rytarowski <n54@gmx.com>
6776
6777 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6778 nbsd_nat_target instead of inf_ptrace_target.
6779 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6780 nbsd_nat_target.
6781
013f99f0
KR
67822020-03-14 Kamil Rytarowski <n54@gmx.com>
6783
6784 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6785 it to the ptrace call.
6786 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6787
12753073
KR
67882020-03-14 Kamil Rytarowski <n54@gmx.com>
6789
6227b330
KR
6790 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6791 it to the ptrace call.
6792 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6793
67942020-03-14 Kamil Rytarowski <n54@gmx.com>
6795
6796 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6797 gdb_byte *.
12753073
KR
6798 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6799
d5be5fa4
KR
68002020-03-14 Kamil Rytarowski <n54@gmx.com>
6801
6802 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6803 instead of inf_ptrace_target.
6804 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6805 nbsd_nat_target.
6806
8110f842
KR
68072020-03-14 Kamil Rytarowski <n54@gmx.com>
6808
6809 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6810 register_t.
6811
52feded7
KR
68122020-03-14 Kamil Rytarowski <n54@gmx.com>
6813
6814 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6815 register_t.
6816
25567eee
KR
68172020-03-14 Kamil Rytarowski <n54@gmx.com>
6818
6819 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6820 register_t.
6821
426a9c18
TT
68222020-03-13 Tom Tromey <tom@tromey.com>
6823
6824 * value.h (val_print): Don't declare.
6825 * valprint.h (val_print_array_elements)
6826 (val_print_scalar_formatted, generic_val_print): Don't declare.
6827 * valprint.c (generic_val_print_array): Take a struct value.
6828 (generic_val_print_ptr, generic_val_print_memberptr)
6829 (generic_val_print_bool, generic_val_print_int)
6830 (generic_val_print_char, generic_val_print_complex)
6831 (generic_val_print): Remove.
6832 (generic_value_print): Update.
6833 (do_val_print): Remove unused parameters. Don't call
6834 la_val_print.
6835 (val_print): Remove.
6836 (common_val_print): Update. Don't call value_check_printable.
6837 (val_print_scalar_formatted, val_print_array_elements): Remove.
6838 * rust-lang.c (rust_val_print): Remove.
6839 (rust_language_defn): Update.
6840 * p-valprint.c (pascal_val_print): Remove.
6841 (pascal_value_print_inner): Update.
6842 (pascal_object_print_val_fields, pascal_object_print_val):
6843 Remove.
6844 (pascal_object_print_static_field): Update.
6845 * p-lang.h (pascal_val_print): Don't declare.
6846 * p-lang.c (pascal_language_defn): Update.
6847 * opencl-lang.c (opencl_language_defn): Update.
6848 * objc-lang.c (objc_language_defn): Update.
6849 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6850 * m2-lang.h (m2_val_print): Don't declare.
6851 * m2-lang.c (m2_language_defn): Update.
6852 * language.h (struct language_defn) <la_val_print>: Remove.
6853 * language.c (unk_lang_value_print_inner): Rename. Change
6854 argument types.
6855 (unknown_language_defn, auto_language_defn): Update.
6856 * go-valprint.c (go_val_print): Remove.
6857 * go-lang.h (go_val_print): Don't declare.
6858 * go-lang.c (go_language_defn): Update.
6859 * f-valprint.c (f_val_print): Remove.
6860 * f-lang.h (f_value_print): Don't declare.
6861 * f-lang.c (f_language_defn): Update.
6862 * d-valprint.c (d_val_print): Remove.
6863 * d-lang.h (d_value_print): Don't declare.
6864 * d-lang.c (d_language_defn): Update.
6865 * cp-valprint.c (cp_print_value_fields)
6866 (cp_print_value_fields_rtti, cp_print_value): Remove.
6867 (cp_print_static_field): Update.
6868 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6869 (c_val_print_struct, c_val_print_union, c_val_print_int)
6870 (c_val_print_memberptr, c_val_print): Remove.
6871 * c-lang.h (c_val_print_array, cp_print_value_fields)
6872 (cp_print_value_fields_rtti): Don't declare.
6873 * c-lang.c (c_language_defn, cplus_language_defn)
6874 (asm_language_defn, minimal_language_defn): Update.
6875 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6876 (ada_val_print_enum): Take a struct value.
6877 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6878 (ada_val_print): Remove.
6879 (ada_value_print_1): Update.
6880 (printable_val_type): Remove.
6881 * ada-lang.h (ada_val_print): Don't declare.
6882 * ada-lang.c (ada_language_defn): Update.
6883
42331a1e
TT
68842020-03-13 Tom Tromey <tom@tromey.com>
6885
6886 * valprint.c (do_val_print): Update.
6887 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6888 a struct value.
6889 (value_to_value_object_no_release): Declare.
6890 * python/py-value.c (value_to_value_object_no_release): New
6891 function.
6892 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6893 struct value.
6894 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6895 function.
6896 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6897 a struct value.
6898 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6899 Declare.
6900 (gdbscm_apply_val_pretty_printer): Take a struct value.
6901 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6902 value.
6903 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6904 value.
6905 * extension-priv.h (struct extension_language_ops)
6906 <apply_val_pretty_printer>: Take a struct value.
6907 * cp-valprint.c (cp_print_value): Create a struct value.
6908 (cp_print_value): Update.
6909
3a916a97
TT
69102020-03-13 Tom Tromey <tom@tromey.com>
6911
6912 * ada-valprint.c (print_field_values): Call common_val_print.
6913
b59eac37
TT
69142020-03-13 Tom Tromey <tom@tromey.com>
6915
6916 * ada-valprint.c (val_print_packed_array_elements): Remove
6917 bitoffset and val parameters. Call common_val_print.
6918 (ada_val_print_string): Remove offset, address, and original_value
6919 parameters.
6920 (ada_val_print_array): Update.
6921 (ada_value_print_array): New function.
6922 (ada_value_print_1): Call it.
6923
03371129
TT
69242020-03-13 Tom Tromey <tom@tromey.com>
6925
6926 * ada-valprint.c (ada_value_print): Use common_val_print.
6927
2e088f8b
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6931
39ef85a8
TT
69322020-03-13 Tom Tromey <tom@tromey.com>
6933
6934 * ada-valprint.c (ada_value_print_num): New function.
6935 (ada_value_print_1): Use it.
6936
b9fa6e07
TT
69372020-03-13 Tom Tromey <tom@tromey.com>
6938
6939 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6940
416595d6
TT
69412020-03-13 Tom Tromey <tom@tromey.com>
6942
6943 * ada-valprint.c (ada_value_print_ptr): New function.
6944 (ada_value_print_1): Use it.
6945
5b5e15ec
TT
69462020-03-13 Tom Tromey <tom@tromey.com>
6947
6948 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6949 call common_val_print.
6950 (ada_val_print_1): Update.
6951 (ada_value_print_1): New function.
6952 (ada_value_print_inner): Rewrite.
6953
fbf54e75
TT
69542020-03-13 Tom Tromey <tom@tromey.com>
6955
6956 * cp-valprint.c (cp_print_value_fields): Update.
6957 (cp_print_value): New function.
6958
64b653ca
TT
69592020-03-13 Tom Tromey <tom@tromey.com>
6960
6961 * m2-valprint.c (m2_value_print_inner): Use
6962 cp_print_value_fields.
6963 * cp-valprint.c (cp_print_value_fields): New function.
6964 * c-valprint.c (c_value_print_struct): New function.
6965 (c_value_print_inner): Use c_value_print_struct.
6966 * c-lang.h (cp_print_value_fields): Declare.
6967
6999f067
TT
69682020-03-13 Tom Tromey <tom@tromey.com>
6969
6970 * c-valprint.c (c_value_print_array): New function.
6971 (c_value_print_inner): Use it.
6972
ce80b8bd
TT
69732020-03-13 Tom Tromey <tom@tromey.com>
6974
6975 * c-valprint.c (c_value_print_memberptr): New function.
6976 (c_value_print_inner): Use it.
6977
2faac269
TT
69782020-03-13 Tom Tromey <tom@tromey.com>
6979
6980 * c-valprint.c (c_value_print_int): New function.
6981 (c_value_print_inner): Use it.
6982
da3e2c29
TT
69832020-03-13 Tom Tromey <tom@tromey.com>
6984
6985 * c-valprint.c (c_value_print_ptr): New function.
6986 (c_value_print_inner): Use it.
6987
50836231
TT
69882020-03-13 Tom Tromey <tom@tromey.com>
6989
6990 * c-valprint.c (c_value_print_inner): Rewrite.
6991
4f412b6e
TT
69922020-03-13 Tom Tromey <tom@tromey.com>
6993
6994 * valprint.c (generic_value_print_complex): New function.
6995 (generic_value_print): Use it.
6996
f5354008
TT
69972020-03-13 Tom Tromey <tom@tromey.com>
6998
6999 * valprint.c (generic_val_print_float): Don't call
7000 val_print_scalar_formatted.
7001 (generic_val_print, generic_value_print): Update.
7002
3eec3b05
TT
70032020-03-13 Tom Tromey <tom@tromey.com>
7004
7005 * valprint.c (generic_value_print_char): New function
7006 (generic_value_print): Use it.
7007
fdddfccb
TT
70082020-03-13 Tom Tromey <tom@tromey.com>
7009
7010 * valprint.c (generic_value_print_int): New function.
7011 (generic_value_print): Use it.
7012
6dde7521
TT
70132020-03-13 Tom Tromey <tom@tromey.com>
7014
7015 * valprint.c (generic_value_print_bool): New function.
7016 (generic_value_print): Use it.
7017
4112d2e6
TT
70182020-03-13 Tom Tromey <tom@tromey.com>
7019
7020 * valprint.c (generic_val_print_func): Simplify.
7021 (generic_val_print, generic_value_print): Update.
7022
65786af6
TT
70232020-03-13 Tom Tromey <tom@tromey.com>
7024
7025 * valprint.c (generic_val_print_flags): Remove.
7026 (generic_val_print, generic_value_print): Update.
7027 (val_print_type_code_flags): Add original_value parameter.
7028
40f3ce18
TT
70292020-03-13 Tom Tromey <tom@tromey.com>
7030
7031 * valprint.c (generic_val_print): Update.
7032 (generic_value_print): Update.
7033 * valprint.c (generic_val_print_enum): Don't call
7034 val_print_scalar_formatted.
7035
2a5b130b
TT
70362020-03-13 Tom Tromey <tom@tromey.com>
7037
7038 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7039 * valprint.c (generic_value_print_ptr): New function.
7040
abc66ce9
TT
70412020-03-13 Tom Tromey <tom@tromey.com>
7042
7043 * valprint.c (generic_value_print): Rewrite.
7044
07a32858
TT
70452020-03-13 Tom Tromey <tom@tromey.com>
7046
7047 * p-valprint.c (pascal_object_print_value_fields)
7048 (pascal_object_print_value): New functions.
7049
64d64d3a
TT
70502020-03-13 Tom Tromey <tom@tromey.com>
7051
7052 * p-valprint.c (pascal_value_print_inner): Rewrite.
7053
6a95a1f5
TT
70542020-03-13 Tom Tromey <tom@tromey.com>
7055
7056 * f-valprint.c (f_value_print_innner): Rewrite.
7057
59fcdac6
TT
70582020-03-13 Tom Tromey <tom@tromey.com>
7059
7060 * m2-valprint.c (m2_print_unbounded_array): New overload.
7061 (m2_print_unbounded_array): Update.
7062 (m2_print_array_contents): Take a struct value.
7063 (m2_value_print_inner): Rewrite.
7064
d133c3e1
TT
70652020-03-13 Tom Tromey <tom@tromey.com>
7066
7067 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7068 (d_value_print_inner): New function.
7069 * d-lang.h (d_value_print_inner): Declare.
7070 * d-lang.c (d_language_defn): Use d_value_print_inner.
7071
23b0f06b
TT
70722020-03-13 Tom Tromey <tom@tromey.com>
7073
7074 * go-valprint.c (go_value_print_inner): New function.
7075 * go-lang.h (go_value_print_inner): Declare.
7076 * go-lang.c (go_language_defn): Use go_value_print_inner.
7077
5f56f7cb
TT
70782020-03-13 Tom Tromey <tom@tromey.com>
7079
7080 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7081 API.
7082 (rust_val_print): Rewrite.
7083 (rust_value_print_inner): New function, from rust_val_print.
7084 (rust_language_defn): Use rust_value_print_inner.
7085
26792ee0
TT
70862020-03-13 Tom Tromey <tom@tromey.com>
7087
7088 * ada-valprint.c (ada_value_print_inner): New function.
7089 * ada-lang.h (ada_value_print_inner): Declare.
7090 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7091
24051bbe
TT
70922020-03-13 Tom Tromey <tom@tromey.com>
7093
7094 * f-valprint.c (f_value_print_innner): New function.
7095 * f-lang.h (f_value_print_innner): Declare.
7096 * f-lang.c (f_language_defn): Use f_value_print_innner.
7097
c0941be6
TT
70982020-03-13 Tom Tromey <tom@tromey.com>
7099
7100 * p-valprint.c (pascal_value_print_inner): New function.
7101 * p-lang.h (pascal_value_print_inner): Declare.
7102 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7103
62c4663d
TT
71042020-03-13 Tom Tromey <tom@tromey.com>
7105
7106 * m2-valprint.c (m2_value_print_inner): New function.
7107 * m2-lang.h (m2_value_print_inner): Declare.
7108 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7109
62182190
TT
71102020-03-13 Tom Tromey <tom@tromey.com>
7111
7112 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7113 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7114 * c-valprint.c (c_value_print_inner): New function.
7115 * c-lang.h (c_value_print_inner): Declare.
7116 * c-lang.c (c_language_defn, cplus_language_defn)
7117 (asm_language_defn, minimal_language_defn): Use
7118 c_value_print_inner.
7119
1e592a8a
TT
71202020-03-13 Tom Tromey <tom@tromey.com>
7121
7122 * p-valprint.c (pascal_object_print_value_fields): Now static.
7123 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7124
7fe471e9
TT
71252020-03-13 Tom Tromey <tom@tromey.com>
7126
7127 * c-valprint.c (c_val_print_array): Simplify.
7128
d121c6ce
TT
71292020-03-13 Tom Tromey <tom@tromey.com>
7130
7131 * valprint.c (value_print_array_elements): New function.
7132 * valprint.h (value_print_array_elements): Declare.
7133
4dba70ee
TT
71342020-03-13 Tom Tromey <tom@tromey.com>
7135
7136 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7137 * mips-tdep.c (mips_print_register): Use
7138 value_print_scalar_formatted.
7139
4f9ae810
TT
71402020-03-13 Tom Tromey <tom@tromey.com>
7141
7142 * valprint.h (value_print_scalar_formatted): Declare.
7143 * valprint.c (value_print_scalar_formatted): New function.
7144
156bfec9
TT
71452020-03-13 Tom Tromey <tom@tromey.com>
7146
7147 * valprint.h (generic_value_print): Declare.
7148 * valprint.c (generic_value_print): New function.
7149
2b4e573d
TT
71502020-03-13 Tom Tromey <tom@tromey.com>
7151
7152 * valprint.c (do_val_print): Call la_value_print_inner, if
7153 available.
7154 * rust-lang.c (rust_language_defn): Update.
7155 * p-lang.c (pascal_language_defn): Update.
7156 * opencl-lang.c (opencl_language_defn): Update.
7157 * objc-lang.c (objc_language_defn): Update.
7158 * m2-lang.c (m2_language_defn): Update.
7159 * language.h (struct language_defn) <la_value_print_inner>: New
7160 member.
7161 * language.c (unknown_language_defn, auto_language_defn): Update.
7162 * go-lang.c (go_language_defn): Update.
7163 * f-lang.c (f_language_defn): Update.
7164 * d-lang.c (d_language_defn): Update.
7165 * c-lang.c (c_language_defn, cplus_language_defn)
7166 (asm_language_defn, minimal_language_defn): Update.
7167 * ada-lang.c (ada_language_defn): Update.
7168
a1f6a07c
TT
71692020-03-13 Tom Tromey <tom@tromey.com>
7170
7171 * c-valprint.c (c_value_print): Use common_val_print.
7172
410cf315
TT
71732020-03-13 Tom Tromey <tom@tromey.com>
7174
7175 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7176
72a45c93
TT
71772020-03-13 Tom Tromey <tom@tromey.com>
7178
7179 * f-valprint.c (f77_print_array_1, f_val_print): Use
7180 common_val_print.
7181
040f66bd
TT
71822020-03-13 Tom Tromey <tom@tromey.com>
7183
7184 * riscv-tdep.c (riscv_print_one_register_info): Use
7185 common_val_print.
7186
a6e05a6c
TT
71872020-03-13 Tom Tromey <tom@tromey.com>
7188
7189 * mi/mi-main.c (output_register): Use common_val_print.
7190
3444c526
TT
71912020-03-13 Tom Tromey <tom@tromey.com>
7192
7193 * infcmd.c (default_print_one_register_info): Use
7194 common_val_print.
7195
c2a44efe
TT
71962020-03-13 Tom Tromey <tom@tromey.com>
7197
7198 * valprint.h (common_val_print_checked): Declare.
7199 * valprint.c (common_val_print_checked): New function.
7200 * stack.c (print_frame_arg): Use common_val_print_checked.
7201
b0c26e99
TT
72022020-03-13 Tom Tromey <tom@tromey.com>
7203
7204 * valprint.c (do_val_print): New function, from val_print.
7205 (val_print): Use do_val_print.
7206 (common_val_print): Use do_val_print.
7207
ce3acbe9
TT
72082020-03-13 Tom Tromey <tom@tromey.com>
7209
7210 * valprint.c (value_print): Use scoped_value_mark.
7211
96c7f873
TV
72122020-03-13 Tom de Vries <tdevries@suse.de>
7213
7214 PR symtab/25646
7215 * psymtab.c (partial_symtab::partial_symtab): Don't set
7216 globals_offset and statics_offset. Push element onto
7217 current_global_psymbols and current_static_psymbols stacks.
7218 (concat): New function.
7219 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7220 element from current_global_psymbols and current_static_psymbols
7221 stacks. Concat popped elements to global_psymbols and
7222 static_symbols.
7223 (add_psymbol_to_list): Use current_global_psymbols and
7224 current_static_psymbols stacks.
7225 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7226 current_static_psymbols fields.
7227
6ba0a321
CB
72282020-03-12 Christian Biesinger <cbiesinger@google.com>
7229
7230 * corelow.c (sniff_core_bfd): Remove.
7231 (class core_target) <m_core_vec>: Remove.
7232 (core_target::core_target): Update.
7233 (core_file_fns): Remove.
7234 (deprecated_add_core_fns): Remove.
7235 (default_core_sniffer): Remove.
7236 (sniff_core_bfd): Remove.
7237 (default_check_format): Remove.
7238 (gdb_check_format): Remove.
7239 (core_target_open): Update.
7240 (core_target::get_core_register_section): Update.
7241 (get_core_registers_cb): Update.
7242 (core_target::fetch_registers): Update.
7243 * gdbcore.h (struct core_fns): Remove.
7244 (deprecated_add_core_fns): Remove.
7245 (default_core_sniffer): Remove.
7246 (default_check_format): Remove.
7247
227031b2
TT
72482020-03-12 Tom Tromey <tom@tromey.com>
7249
7250 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7251 CORE_ADDR.
7252 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7253
53807e9f
TT
72542020-03-12 Tom Tromey <tom@tromey.com>
7255
7256 * remote.c (remote_target::download_tracepoint)
7257 (remote_target::enable_tracepoint)
7258 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7259 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7260 sprintf_vma.
7261
64f25102
TT
72622020-03-12 Tom Tromey <tom@tromey.com>
7263
7264 * symfile-mem.c: Update CORE_ADDR size assert.
7265
272cd5a3
SM
72662020-03-12 Simon Marchi <simon.marchi@efficios.com>
7267
7268 * selftest.m4: Move to gdbsupport/.
7269 * acinclude.m4: Update path to selftest.m4.
7270
74cd3f9d
SM
72712020-03-12 Simon Marchi <simon.marchi@efficios.com>
7272
7273 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7274 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7275 gdbarch-selfselftests.c and selftest-arch.c.
7276 (SUBDIR_UNITTESTS_OBS): Rename to...
7277 (SELFTESTS_OBS): ... this.
7278 (COMMON_SFILES): Remove disasm-selftests.c and
7279 gdbarch-selftests.c.
7280 * configure.ac: Don't add selftest-arch.{c,o} to
7281 CONFIG_{SRCS,OBS}.
7282 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7283 preprocessor conditions.
7284
db6878ac
SM
72852020-03-12 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * configure.ac: Don't source bfd/development.sh.
7288 * selftest.m4: Modify comment.
7289 * configure: Re-generate.
7290
4d696a5c
SM
72912020-03-12 Simon Marchi <simon.marchi@efficios.com>
7292
7293 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7294 not "true" or "false".
7295 * configure: Re-generate.
7296
8dd8e1c7
CB
72972020-03-12 Christian Biesinger <cbiesinger@google.com>
7298
7299 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7300 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7301 renamed to arm_nbsd_supply_gregset.
7302 (fetch_register): Update to call arm_nbsd_supply_gregset.
7303 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7304 (arm_netbsd_nat_target::fetch_registers): Update.
7305 (fetch_elfcore_registers): Removed.
7306 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7307 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7308 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7309 not require NetBSD system headers.
7310 (arm_nbsd_regset): New struct.
7311 (arm_nbsd_iterate_over_regset_sections): New function.
7312 (arm_netbsd_init_abi_common): Updated to call
7313 set_gdbarch_iterate_over_regset_sections.
7314 * arm-nbsd-tdep.h: New file.
7315
dd69bf7a
KB
73162020-03-11 Kevin Buettner <kevinb@redhat.com>
7317
7318 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7319 recursion.
7320
a0761e34
SM
73212020-03-11 Simon Marchi <simon.marchi@efficios.com>
7322
7323 * configure: Re-generate.
7324
e7a82140
TT
73252020-03-11 Tom Tromey <tromey@adacore.com>
7326
7327 * ada-typeprint.c (print_choices): Fix comment.
7328
dcc050c8
AB
73292020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7330
7331 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7332 previous item in the list, when the list has no items.
7333
1c33af77
TV
73342020-03-11 Tom de Vries <tdevries@suse.de>
7335
7336 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7337 PROP_LOCLIST handling code.
7338
8c95582d
AB
73392020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7340
7341 * buildsym-legacy.c (record_line): Pass extra parameter to
7342 record_line.
7343 * buildsym.c (buildsym_compunit::record_line): Take an extra
7344 parameter, reduce duplication in the line table, and record the
7345 is_stmt flag in the line table.
7346 * buildsym.h (buildsym_compunit::record_line): Add extra
7347 parameter.
7348 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7349 non-statement lines.
7350 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7351 this to the symtab builder.
7352 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7353 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7354 through to dwarf_record_line_1.
7355 * infrun.c (process_event_stop_test): When stepping, don't stop at
7356 a non-statement instruction, and only refresh the step info when
7357 we land in the middle of a line's range. Also add an extra
7358 comment.
7359 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7360 field.
7361 * record-btrace.c (btrace_find_line_range): Only record lines
7362 marked as is-statement.
7363 * stack.c (frame_show_address): Show the frame address if we are
7364 in a non-statement sal.
7365 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7366 (maintenance_print_one_line_table): Print a header for the is_stmt
7367 column, and include is_stmt information in the output.
7368 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7369 preference to non-statements.
7370 (find_pcs_for_symtab_line): Prefer is-statement entries.
7371 (find_line_common): Likewise.
7372 * symtab.h (struct linetable_entry): Add is_stmt field.
7373 (struct symtab_and_line): Likewise.
7374 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7375 arranging the line table.
7376
e4003a34
TV
73772020-03-07 Tom de Vries <tdevries@suse.de>
7378
7379 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7380 DIE.
7381
e8932576
TT
73822020-03-07 Tom Tromey <tom@tromey.com>
7383
7384 * valops.c (value_literal_complex): Remove obsolete comment.
7385 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7386 comment.
7387
29734269
SM
73882020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7389
7390 * infrun.h: Forward-declare thread_info.
7391 (set_step_info): Add thread_info parameter, add doc.
7392 * infrun.c (set_step_info): Add thread_info parameter, move doc
7393 to header.
7394 * infrun.c (process_event_stop_test): Pass thread to
7395 set_step_info call.
7396 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7397 set_step_info.
7398 (prepare_one_step): Add thread_info parameter, pass it to
7399 set_step_frame and prepare_one_step (recursive) call.
7400 (step_1): Pass thread to prepare_one_step call.
7401 (step_command_fsm::should_stop): Pass thread to
7402 prepare_one_step.
7403 (until_next_fsm): Pass thread to set_step_frame call.
7404 (finish_command): Pass thread to set_step_info call.
7405
b7d64b29
HD
74062020-03-06 Hannes Domani <ssbssa@yahoo.de>
7407
7408 * windows-tdep.c (windows_solib_create_inferior_hook):
7409 Check if inferior is running.
7410
09f2921c
TV
74112020-03-06 Tom de Vries <tdevries@suse.de>
7412
7413 * NEWS: Fix "the the".
7414 * ctfread.c: Same.
7415
fd760e79
TV
74162020-03-06 Tom de Vries <tdevries@suse.de>
7417
7418 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7419
20ea4a60
AB
74202020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7421
7422 * .dir-locals.el: Add a comment referencing the other copies of
7423 this file.
7424
0afbabf0
JB
74252020-03-05 John Baldwin <jhb@FreeBSD.org>
7426
7427 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7428 psargs.
7429
842806cb
TBA
74302020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7431
7432 * .gitattributes: New file.
7433
be1e3d3e
TT
74342020-03-04 Tom Tromey <tom@tromey.com>
7435
7436 * symmisc.c (print_symbol_bcache_statistics)
7437 (print_objfile_statistics): Update.
7438 * symfile.c (allocate_symtab): Use intern.
7439 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7440 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7441 macro_cache>: Remove.
7442 <string_cache>: New member.
7443 (struct objfile) <intern>: New methods.
7444 * elfread.c (elf_symtab_read): Use intern.
7445 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7446 (dwarf2_compute_name, dwarf2_physname)
7447 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7448 names.
7449 (guess_partial_die_structure_name): Update.
7450 (partial_die_info::fixup): Intern name.
7451 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7452 name.
7453 (dwarf2_name): Intern name. Update.
7454 * buildsym.c (buildsym_compunit::get_macro_table): Use
7455 string_cache.
7456
4e7625fd
TT
74572020-03-04 Tom Tromey <tom@tromey.com>
7458
7459 * jit.c (bfd_open_from_target_memory): Make "target" const.
7460 * corefile.c (gnutarget): Now const.
7461 * gdbcore.h (gnutarget): Now const.
7462
46f9f931
HD
74632020-03-04 Hannes Domani <ssbssa@yahoo.de>
7464
7465 * NEWS: Mention support for WOW64 processes.
7466 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7467 (amd64_windows_segment_register_p): Remove static.
7468 (_initialize_amd64_windows_nat): Update.
7469 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7470 * i386-windows-nat.c (context_offset): Update.
7471 (i386_mappings): Rename and remove static.
7472 (i386_windows_segment_register_p): Remove static.
7473 (_initialize_i386_windows_nat): Update.
7474 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7475 (STATUS_WX86_SINGLE_STEP): New macro.
7476 (EnumProcessModulesEx): New macro.
7477 (Wow64SuspendThread): New macro.
7478 (Wow64GetThreadContext): New macro.
7479 (Wow64SetThreadContext): New macro.
7480 (Wow64GetThreadSelectorEntry): New macro.
7481 (windows_set_context_register_offsets): Add static.
7482 (windows_set_segment_register_p): Likewise.
7483 (windows_add_thread): Adapt for WOW64 processes.
7484 (windows_fetch_one_register): Likewise.
7485 (windows_nat_target::fetch_registers): Likewise.
7486 (windows_store_one_register): Likewise.
7487 (display_selector): Likewise.
7488 (display_selectors): Likewise.
7489 (handle_exception): Likewise.
7490 (windows_continue): Likewise.
7491 (windows_nat_target::resume): Likewise.
7492 (windows_add_all_dlls): Likewise.
7493 (do_initial_windows_stuff): Likewise.
7494 (windows_nat_target::attach): Likewise.
7495 (windows_get_exec_module_filename): Likewise.
7496 (windows_nat_target::create_inferior): Likewise.
7497 (windows_xfer_siginfo): Likewise.
7498 (_initialize_loadable): Initialize Wow64SuspendThread,
7499 Wow64GetThreadContext, Wow64SetThreadContext,
7500 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7501 * windows-nat.h (windows_set_context_register_offsets):
7502 Remove declaration.
7503 (windows_set_segment_register_p): Likewise.
7504 (i386_windows_segment_register_p): Add declaration.
7505 (amd64_windows_segment_register_p): Likewise.
7506
440cf44e
LM
75072020-03-04 Luis Machado <luis.machado@linaro.org>
7508
7509 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7510 in "info registers" for AArch64/ARM.
7511
7512 The change caused "info registers" to not print GPR's.
7513
7514 gdb/ChangeLog:
7515
7516 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7517
7518 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7519 when reg->group is empty and reggroup is not.
7520
1009d92f
TT
75212020-03-03 Tom Tromey <tromey@adacore.com>
7522
7523 * dwarf2/frame.c (struct dwarf2_frame_cache)
7524 <checked_tailcall_bottom, entry_cfa_sp_offset,
7525 entry_cfa_sp_offset_p>: Remove members.
7526 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7527 (dwarf2_frame_prev_register): Don't call
7528 dwarf2_tailcall_sniffer_first.
7529 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7530 * frame-unwind.c (add_unwinder): New fuction.
7531 (frame_unwind_init): Use it. Add tailcall unwinder.
7532
5e5d66b6
AB
75332020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7534 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7535
7536 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7537 value should be printed as true.
7538
584cf46d
HD
75392020-03-03 Hannes Domani <ssbssa@yahoo.de>
7540
7541 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7542 (windows_init_abi): Set and use windows_so_ops.
7543
7b973adc
SDJ
75442020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7545
7546 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7547 when verifying if dealing with a convenience variable.
7548
bb7b70ab
LM
75492020-03-03 Luis Machado <luis.machado@linaro.org>
7550
7551 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7552
9822cb57
SM
75532020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7554
7555 * infrun.c (gdbarch_supports_displaced_stepping): New.
7556 (use_displaced_stepping): Break up conditions in smaller pieces.
7557 Use gdbarch_supports_displaced_stepping.
7558 (displaced_step_prepare_throw): Use
7559 gdbarch_supports_displaced_stepping.
7560
63e163f2
AB
75612020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7562
7563 * NEWS: Mention new behaviour of the history filename.
7564 * top.c (write_history_p): Add comment.
7565 (show_write_history_p): Add header comment, give a different
7566 message when history writing is on, but the history filename is
7567 empty.
7568 (history_filename): Add comment.
7569 (history_filename_empty): New function.
7570 (show_history_filename): Add header comment, give a different
7571 message when the filename is empty.
7572 (init_history): Compare history_filename against nullptr, and only
7573 read history if the filename is not empty.
7574 (set_history_filename): Add header comment, and only make
7575 non-empty filenames absolute.
7576 (init_main): Make the filename argument to 'set history filename'
7577 optional.
7578
81b86b97
CB
75792020-03-02 Christian Biesinger <cbiesinger@google.com>
7580
7581 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7582 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7583 (fetch_fp_register): Update.
7584 (fetch_fp_regs): Update.
7585 (store_fp_register): Update.
7586 (store_fp_regs): Update.
7587 (arm_netbsd_nat_target::read_description): New function.
7588 (fetch_elfcore_registers): Update.
7589
24ed6739
AB
75902020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7591
7592 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7593 general_thread if the stop reply is missing a thread-id.
7594 (remote_target::process_stop_reply): Use the first non-exited
7595 thread if the target didn't pass a thread-id.
7596 * infrun.c (do_target_wait): Move call to
7597 switch_to_inferior_no_thread to ....
7598 (do_target_wait_1): ... here.
7599
a84bb2a0
JT
76002020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7601
7602 * debuginfod-support.c: Include defs.h first.
7603
658dadf0
TV
76042020-02-28 Tom de Vries <tdevries@suse.de>
7605
7606 * symfile.c (set_initial_language): Use default language for lookup.
7607
4ebe4877
SM
76082020-02-28 Simon Marchi <simon.marchi@efficios.com>
7609
7610 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7611 reader variable, pass `this` to read_cutu_die_from_dwo.
7612
e5da1139
AM
76132020-02-27 Aaron Merey <amerey@redhat.com>
7614
7615 * source.c (open_source_file): Check for nullptr when computing
7616 srcpath.
7617
317f7127
TT
76182020-02-27 Tom Tromey <tromey@adacore.com>
7619
7620 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7621 member.
7622 (dwarf2_add_field): Don't update nfields.
7623 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7624
3104d9ee
AB
76252020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7626
7627 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7628 abs.
7629
b83470bf
TT
76302020-02-26 Tom Tromey <tom@tromey.com>
7631
7632 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7633 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7634 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7635 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7636 per_cu_data.
7637
edfe0a0c
TT
76382020-02-26 Tom Tromey <tom@tromey.com>
7639
7640 * dwarf2/index-write.c (psym_index_map): Change type.
7641 (add_address_entry_worker, write_one_signatured_type)
7642 (recursively_count_psymbols, recursively_write_psymbols)
7643 (class debug_names, psyms_seen_size, write_gdbindex)
7644 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7645
0d79cdc4
AM
76462020-02-26 Aaron Merey <amerey@redhat.com>
7647
7648 * Makefile.in: Handle optional debuginfod support.
7649 * NEWS: Update.
7650 * README: Add --with-debuginfod summary.
7651 * config.in: Regenerate.
7652 * configure: Regenerate.
7653 * configure.ac: Handle optional debuginfod support.
7654 * debuginfod-support.c: debuginfod helper functions.
7655 * debuginfod-support.h: Ditto.
7656 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7657 summary.
7658 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7659 when a dwz file cannot be found.
7660 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7661 debuginfo file cannot be found.
7662 * source.c (open_source_file): Query debuginfod servers when a
7663 source file cannot be found.
7664 * top.c (print_gdb_configuration): Include
7665 --{with,without}-debuginfod in the output.
7666
b65ce565
JG
76672020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7668
7669 * thread.c (thr_try_catch_cmd): Print thread name.
7670
d4c9a4f8
SM
76712020-02-26 Simon Marchi <simon.marchi@efficios.com>
7672
7673 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7674 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7675 dwarf2_fetch_die_type_sect_off): Move to...
7676 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7677 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7678 dwarf2_fetch_die_type_sect_off): ... here.
7679 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7680 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7681 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7682
0dce4280
TV
76832020-02-26 Tom de Vries <tdevries@suse.de>
7684
7685 PR gdb/25603
7686 * symfile.c (set_initial_language): Exit-early if
7687 language_mode == language_mode_manual.
7688
450a1bfc
SM
76892020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7690
7691 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7692 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7693 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7694
9e80cfa1
AB
76952020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7696
7697 * gdbtypes.c (create_array_type_with_stride): Handle negative
7698 array strides.
7699 * valarith.c (value_subscripted_rvalue): Likewise.
7700
09624f1f
LM
77012020-02-25 Luis Machado <luis.machado@linaro.org>
7702
7703 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7704
8cb5117c
SM
77052020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7706
7707 * loc.h (dwarf2_get_die_type): Move to...
7708 * read.h (dwarf2_get_die_type): ... here.
7709 * read.c (dwarf2_get_die_type): Move doc to header.
7710
c325c44e
JB
77112020-02-25 Joel Brobecker <brobecker@adacore.com>
7712
7713 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7714 'gnulib/Makefile.in' to the list.
7715
4ac93832
TT
77162020-02-24 Tom Tromey <tom@tromey.com>
7717
7718 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7719 Remove.
7720 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7721 XOBNEWVEC.
7722
197400e8
TT
77232020-02-24 Tom Tromey <tom@tromey.com>
7724
7725 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7726 New method.
7727 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7728 (dw2_do_instantiate_symtab, dw2_get_file_names)
7729 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7730
76935768
TT
77312020-02-24 Tom Tromey <tom@tromey.com>
7732
7733 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7734 make_scoped_restore.
7735 (dwarf2_psymtab::read_symtab): Don't clear
7736 reading_partial_symbols.
7737
a88ef40d
TV
77382020-02-24 Tom de Vries <tdevries@suse.de>
7739
7740 PR gdb/25592
7741 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7742
c9af6521
TV
77432020-02-24 Tom de Vries <tdevries@suse.de>
7744
7745 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7746 commands layout next/prev/regs.
7747
5707a07a
TT
77482020-02-22 Tom Tromey <tom@tromey.com>
7749
7750 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7751 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7752
3b0fb49e
TT
77532020-02-22 Tom Tromey <tom@tromey.com>
7754
7755 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7756
283be8bf
TT
77572020-02-22 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7760 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7761 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7762 * tui/tui.c (_initialize_tui): Add usage text.
7763
ca793b96
TT
77642020-02-22 Tom Tromey <tom@tromey.com>
7765
7766 * tui/tui-win.c (tui_set_focus_command)
7767 (tui_set_win_height_command): Use error_no_arg.
7768 (_initialize_tui_win): Update help text.
7769 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7770
432b5c40
TT
77712020-02-22 Tom Tromey <tom@tromey.com>
7772
7773 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7774 * tui/tui-disasm.h (struct tui_disasm_window)
7775 <display_start_addr>: Declare.
7776 * tui/tui-source.h (struct tui_source_window)
7777 <display_start_addr>: Declare.
7778 * tui/tui-winsource.h (struct tui_source_window_base)
7779 <show_source_line, display_start_addr>: New methods.
7780 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7781 Rename and move to protected section.
7782 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7783 (tui_source_window_base::do_erase_source_content): Update.
7784 (tui_source_window_base::show_source_line): Now a method.
7785 (tui_source_window_base::show_source_content)
7786 (tui_source_window_base::tui_source_window_base)
7787 (tui_source_window_base::rerender)
7788 (tui_source_window_base::refill)
7789 (tui_source_window_base::do_scroll_horizontal)
7790 (tui_source_window_base::set_is_exec_point_at)
7791 (tui_source_window_base::update_breakpoint_info)
7792 (tui_source_window_base::update_exec_info): Update.
7793 * tui/tui-source.c (tui_source_window::set_contents)
7794 (tui_source_window::showing_source_p)
7795 (tui_source_window::do_scroll_vertical)
7796 (tui_source_window::location_matches_p)
7797 (tui_source_window::line_is_displayed): Update.
7798 (tui_source_window::display_start_addr): New method.
7799 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7800 (tui_disasm_window::do_scroll_vertical)
7801 (tui_disasm_window::location_matches_p): Update.
7802 (tui_disasm_window::display_start_addr): New method.
7803
01b1af32
TT
78042020-02-22 Tom Tromey <tom@tromey.com>
7805
7806 * NEWS: Add entry for gdb.register_window_type.
7807 * tui/tui-layout.h (window_factory): New typedef.
7808 (tui_register_window): Declare.
7809 * tui/tui-layout.c (saved_tui_windows): New global.
7810 (tui_apply_current_layout): Use it.
7811 (tui_register_window): New function.
7812 * python/python.c (do_start_initialization): Call
7813 gdbpy_initialize_tui.
7814 (python_GdbMethods): Add "register_window_type" function.
7815 * python/python-internal.h (gdbpy_register_tui_window)
7816 (gdbpy_initialize_tui): Declare.
7817 * python/py-tui.c: New file.
7818 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7819
fc96d20b
TT
78202020-02-22 Tom Tromey <tom@tromey.com>
7821
7822 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7823
935c78c0
TT
78242020-02-22 Tom Tromey <tom@tromey.com>
7825
7826 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7827 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7828 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7829 (tui_set_win_focus_to): Move from tui-win.c.
7830
0240c8f1
TT
78312020-02-22 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7834 functions.
7835 (known_window_types): New global.
7836 (tui_get_window_by_name): Reimplement.
7837 (initialize_known_windows): New function.
7838 (validate_window_name): Rewrite.
7839 (_initialize_tui_layout): Call initialize_known_windows.
7840
fdb01f0c
TT
78412020-02-22 Tom Tromey <tom@tromey.com>
7842
7843 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7844 Remove constants.
7845 * tui/tui-winsource.h (struct tui_source_window_base)
7846 <tui_source_window_base>: Remove parameter.
7847 * tui/tui-winsource.c
7848 (tui_source_window_base::tui_source_window_base): Remove
7849 parameter.
7850 (tui_source_window_base::refill): Update.
7851 * tui/tui-stack.h (struct tui_locator_window)
7852 <tui_locator_window>: Update.
7853 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7854 Default the constructor.
7855 * tui/tui-regs.h (struct tui_data_item_window)
7856 <tui_data_item_window>: Default the constructor.
7857 (struct tui_data_window) <tui_data_window>: Likewise.
7858 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7859 Default the constructor.
7860 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7861 Default the constructor.
7862 <type>: Remove.
7863 (struct tui_win_info) <tui_win_info>: Default the constructor.
7864 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7865 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7866 Default the constructor.
7867
865a5aec
TT
78682020-02-22 Tom Tromey <tom@tromey.com>
7869
7870 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7871 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7872 * tui/tui-win.c (tui_resize_all): Don't call
7873 tui_delete_invisible_windows.
7874 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7875 done.
7876 (tui_set_layout): Update.
7877 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7878 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7879 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7880
e098d18c
TT
78812020-02-22 Tom Tromey <tom@tromey.com>
7882
7883 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7884 correctly.
7885
eb9c8874
TT
78862020-02-22 Tom Tromey <tom@tromey.com>
7887
7888 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7889
7eed1a8e
TT
78902020-02-22 Tom Tromey <tom@tromey.com>
7891
7892 * tui/tui-winsource.h (struct tui_source_window_iterator)
7893 <inner_iterator>: New etytypedef.
7894 <tui_source_window_iterator>: Take "end" parameter.
7895 <tui_source_window_iterator>: Take iterator.
7896 <operator*, advance>: Update.
7897 <m_iter>: Change type.
7898 <m_end>: New field.
7899 (struct tui_source_windows) <begin, end>: Update.
7900 * tui/tui-layout.c (tui_windows): New global.
7901 (tui_apply_current_layout): Clear tui_windows.
7902 (tui_layout_window::apply): Update tui_windows.
7903 * tui/tui-data.h (tui_windows): Declare.
7904 (all_tui_windows): Now inline function.
7905 (class tui_window_iterator, struct all_tui_windows): Remove.
7906
7c043ba6
TT
79072020-02-22 Tom Tromey <tom@tromey.com>
7908
7909 PR tui/17850:
7910 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7911 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7912 "height" argument.
7913 (class tui_layout_window) <get_sizes>: Likewise.
7914 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7915 argument.
7916 <get_sizes>: Add "height" argument.
7917 <m_vertical>: New field.
7918 * tui/tui-layout.c (tui_layout_split::clone): Update.
7919 (tui_layout_split::get_sizes): Add "height" argument.
7920 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7921 (tui_new_layout_command): Parse "-horizontal".
7922 (_initialize_tui_layout): Update help string.
7923 (tui_layout_split::specification): Add "-horizontal" when needed.
7924 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7925 argument.
7926 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7927 New methods.
7928
6bc56648
TT
79292020-02-22 Tom Tromey <tom@tromey.com>
7930
7931 * tui/tui-layout.h (enum tui_adjust_result): New.
7932 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7933 (class tui_layout_window) <adjust_size>: Return
7934 tui_adjust_result. Rewrite.
7935 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7936 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7937
c22fef7e
TT
79382020-02-22 Tom Tromey <tom@tromey.com>
7939
7940 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7941 parameter and return types.
7942 (class tui_layout_base) <specification>: Add "depth".
7943 (class tui_layout_window) <specification>: Add "depth".
7944 (class tui_layout_split) <specification>: Add "depth".
7945 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7946 and return types.
7947 (tui_new_layout_command): Parse sub-layouts.
7948 (_initialize_tui_layout): Update help string.
7949 (tui_layout_window::specification): Add "depth".
7950 (add_layout_command): Update.
7951
ee325b61
TT
79522020-02-22 Tom Tromey <tom@tromey.com>
7953
7954 * NEWS: Add "tui new-layout" item.
7955 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7956 Add new-layout command to help text.
7957 (validate_window_name): New function.
7958 (tui_new_layout_command): New function.
7959 (_initialize_tui_layout): Register "new-layout".
7960 (tui_layout_window::specification): New method.
7961 (tui_layout_window::specification): New method.
7962 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7963 method.
7964 (class tui_layout_window) <specification>: New method.
7965 (class tui_layout_split) <specification>: New method.
7966
416eb92d
TT
79672020-02-22 Tom Tromey <tom@tromey.com>
7968
7969 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7970 * tui/tui-win.c (window_name_completer): Update comment.
7971 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7972 Declare method.
7973 (class tui_layout_window) <replace_window>: Likewise.
7974 (class tui_layout_split) <replace_window>: Likewise.
7975 (tui_set_layout): Don't declare.
7976 (tui_set_initial_layout): Declare function.
7977 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7978 (asm_regs_layout): New globals.
7979 (tui_current_layout, show_layout): Remove.
7980 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7981 (find_layout, tui_apply_layout): New function.
7982 (layout_completer): Remove.
7983 (tui_next_layout): Reimplement.
7984 (tui_next_layout_command): New function.
7985 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7986 (tui_regs_layout): Reimplement.
7987 (tui_regs_layout_command): New function.
7988 (extract_display_start_addr): Rewrite.
7989 (next_layout, prev_layout): Remove.
7990 (tui_layout_window::replace_window): New method.
7991 (tui_layout_split::replace_window): New method.
7992 (destroy_layout): New function.
7993 (layout_list): New global.
7994 (add_layout_command): New function.
7995 (initialize_layouts): Update.
7996 (tui_layout_command): New function.
7997 (_initialize_tui_layout): Install "layout" commands.
7998 * tui/tui-data.h (enum tui_layout_type): Remove.
7999 (tui_current_layout): Don't declare.
8000
0dbc2fc7
TT
80012020-02-22 Tom Tromey <tom@tromey.com>
8002
8003 * tui/tui-regs.c (tui_reg_layout): Remove.
8004 (tui_reg_command): Use tui_regs_layout.
8005 * tui/tui-layout.h (tui_reg_command): Declare.
8006 * tui/tui-layout.c (tui_reg_command): New function.
8007
5afe342e
TT
80082020-02-22 Tom Tromey <tom@tromey.com>
8009
8010 * tui/tui.c (tui_rl_delete_other_windows): Call
8011 tui_remove_some_windows.
8012 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8013 Declare method.
8014 (class tui_layout_window) <remove_windows>: New method.
8015 (class tui_layout_split) <remove_windows>: Declare.
8016 (tui_remove_some_windows): Declare.
8017 * tui/tui-layout.c (tui_remove_some_windows): New function.
8018 (tui_layout_split::remove_windows): New method.
8019
427326a8
TT
80202020-02-22 Tom Tromey <tom@tromey.com>
8021
8022 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8023 * tui/tui-layout.h (tui_next_layout): Declare.
8024 * tui/tui-layout.c (tui_next_layout): New function.
8025
3fe12b6d
TT
80262020-02-22 Tom Tromey <tom@tromey.com>
8027
8028 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8029 correct coordinates.
8030
59b8b5d2
TT
80312020-02-22 Tom Tromey <tom@tromey.com>
8032
8033 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8034 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8035 DATA_WIN case.
8036
2a3d458b
TT
80372020-02-22 Tom Tromey <tom@tromey.com>
8038
8039 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8040 TUI_DISASM_WIN, not tui_win_list.
8041
3f0cbb04
TT
80422020-02-22 Tom Tromey <tom@tromey.com>
8043
8044 * valprint.c (generic_val_print_enum_1)
8045 (val_print_type_code_flags): Style member names.
8046 * rust-lang.c (val_print_struct, rust_print_enum)
8047 (rust_print_struct_def, rust_internal_print_type): Style member
8048 names.
8049 * p-valprint.c (pascal_object_print_value_fields): Style member
8050 names. Only call fprintf_symbol_filtered for static members.
8051 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8052 * f-valprint.c (f_val_print): Style member names.
8053 * f-typeprint.c (f_type_print_base): Style member names.
8054 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8055 call fprintf_symbol_filtered for static members.
8056 (cp_print_class_member): Style member names.
8057 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8058 member names.
8059 * ada-valprint.c (ada_print_scalar): Style enum names.
8060 (ada_val_print_enum): Likewise.
8061 * ada-typeprint.c (print_enum_type): Style enum names.
8062
d4d947ae
TT
80632020-02-21 Tom Tromey <tom@tromey.com>
8064
8065 * psympriv.h (struct partial_symtab): Update comment.
8066
e94e944b
TT
80672020-02-21 Tom Tromey <tromey@adacore.com>
8068
8069 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8070 type is CORE_ADDR.
8071
1eb73179
TV
80722020-02-21 Tom de Vries <tdevries@suse.de>
8073
8074 PR gdb/25534
8075 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8076 if dependencies[i]->user != NULL.
8077
4f180d53
AT
80782020-02-21 Ali Tamur <tamur@google.com>
8079
8080 * dwarf2/read.c (dwarf2_name): Add null check.
8081
22b6cd70
TT
80822020-02-20 Tom Tromey <tom@tromey.com>
8083
8084 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8085 ">=", in binary search.
8086 (dwarf2_find_containing_comp_unit): New overload.
8087 (run_test): New self-test.
8088 (_initialize_dwarf2_read): Register new test.
8089
bd0cf5a6
NC
80902020-02-20 Nelson Chu <nelson.chu@sifive.com>
8091
8092 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8093 * riscv-tdep.h: Likewise.
8094 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8095 rv32-only CSR.
8096 * features/riscv/64bit-csr.xml: Regenerated.
8097
3f702acd
SDJ
80982020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8099 Tom Tromey <tom@tromey.com>
8100
8101 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8102 of 'fputc_unfiltered'.
8103 (putchar_unfiltered): Call 'fputc_unfiltered'.
8104 (fputc_unfiltered): Call 'fputs_unfiltered'.
8105
d13c7322
AB
81062020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8107
8108 * config.in: Regenerate.
8109 * configure: Regenerate.
8110 * configure.ac: Add --with-python-libdir option.
8111 * main.c: Use WITH_PYTHON_LIBDIR.
8112
869d8950
TT
81132020-02-19 Tom Tromey <tom@tromey.com>
8114
8115 * symtab.c (general_symbol_info::compute_and_set_names): Use
8116 obstack_strndup. Simplify call to symbol_set_demangled_name.
8117
298e9637
SM
81182020-02-19 Simon Marchi <simon.marchi@efficios.com>
8119
8120 * dwarf2/read.c (allocate_signatured_type_table,
8121 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8122 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8123 Remove objfile parameter, update all callers.
8124
08410482
DE
81252020-02-19 Doug Evans <dje@google.com>
8126
8127 PR rust/25535
8128 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8129 rust_enum_variant calculation.
8130
dfdeeca1
TT
81312020-02-19 Tom Tromey <tromey@adacore.com>
8132
8133 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8134
2ef5453b
TT
81352020-02-19 Tom Tromey <tromey@adacore.com>
8136
8137 * ada-lang.c (cache_symbol): Use obstack_strdup.
8138
9f1528a1
AB
81392020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8140
8141 * configure: Regenerate.
8142
d3c22fa8
TT
81432020-02-19 Tom Tromey <tromey@adacore.com>
8144
8145 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8146 NULL check.
8147
bf84f706
MR
81482020-02-19 Maciej W. Rozycki <macro@wdc.com>
8149
8150 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8151
d1c9b20f
AB
81522020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8153
8154 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8155 if GDBSERVER is not defined.
8156 (riscv_tdesc_cache): Likewise, also store const target_desc.
8157 (STATIC_IN_GDB): Define.
8158 (riscv_create_target_description): Update declaration with
8159 STATIC_IN_GDB.
8160 (riscv_lookup_target_description): New function, only define if
8161 GDBSERVER is not defined.
8162 * arch/riscv.h (riscv_create_target_description): Declare only
8163 when GDBSERVER is defined.
8164 (riscv_lookup_target_description): New declaration when GDBSERVER
8165 is not defined.
8166 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8167 (riscv_linux_read_features): ...this, and return
8168 riscv_gdbarch_features instead of target_desc.
8169 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8170 (riscv_linux_read_description): Rename to...
8171 (riscv_linux_read_features): ...this.
8172 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8173 Update to use riscv_gdbarch_features and
8174 riscv_lookup_target_description.
8175 * riscv-tdep.c (riscv_find_default_target_description): Use
8176 riscv_lookup_target_description instead of
8177 riscv_create_target_description.
8178
373d7ac0
SM
81792020-02-18 Simon Marchi <simon.marchi@efficios.com>
8180
8181 * valprint.c (generic_val_print_enum_1): When printing a flag
8182 enum with value 0 and there is no enumerator with value 0, print
8183 just "0" instead of "(unknown: 0x0)".
8184
b29a2df0
SM
81852020-02-18 Simon Marchi <simon.marchi@efficios.com>
8186
8187 * valprint.c (generic_val_print_enum_1): Print unknown part of
8188 flag enum in hex.
8189
6740f0cc
SM
81902020-02-18 Simon Marchi <simon.marchi@efficios.com>
8191
8192 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8193 flag enums to contain duplicate enumerators.
8194 * valprint.c (generic_val_print_enum_1): Update comment.
8195
edd45eb0
SM
81962020-02-18 Simon Marchi <simon.marchi@efficios.com>
8197
8198 * dwarf2/read.c: Include "count-one-bits.h".
8199 (update_enumeration_type_from_children): If an enumerator has
8200 multiple bits set, don't treat the enumeration as a "flag enum".
8201 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8202 of flag enums have 0 or 1 bit set.
8203
6d0cf446
BE
82042020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8205
8206 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8207 conversion.
8208 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8209 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8210 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8211 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8212 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8213
7001c1b7
SM
82142020-02-18 Simon Marchi <simon.marchi@efficios.com>
8215
8216 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8217
fdb61c6c
SM
82182020-02-14 Simon Marchi <simon.marchi@efficios.com>
8219
8220 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8221 displaced_step_closure_up.
8222 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8223 (struct displaced_step_closure_up):
8224 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8225 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8226 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8227 Likewise.
8228 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8229 * gdbarch.c, gdbarch.h: Re-generate.
8230 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8231 displaced_step_closure_up.
8232 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8233 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8234 * infrun.h (displaced_step_closure_up): New type alias.
8235 (struct displaced_step_inferior_state) <step_closure>: Change
8236 type to displaced_step_closure_up.
8237 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8238 displaced_step_closure_up.
8239 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8240
a4a38eb4
TT
82412020-02-14 Tom Tromey <tom@tromey.com>
8242
8243 * minidebug.c (gnu_debug_key): New global.
8244 (find_separate_debug_file_in_section): Use it.
8245
e8217e61
SM
82462020-02-14 Simon Marchi <simon.marchi@efficios.com>
8247
8248 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8249 std::unique_ptr.
8250 * gdbarch.c: Re-generate.
8251 * gdbarch.h: Re-generate.
8252 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8253 change.
8254 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8255 type to std::unique_ptr.
8256 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8257 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8258 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8259 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8260 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8261 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8262 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8263 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8264 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8265
d8d83535
SM
82662020-02-14 Simon Marchi <simon.marchi@efficios.com>
8267
8268 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8269 std::unique_ptr.
8270 (displaced_step_clear): Rename to...
8271 (displaced_step_reset): ... this. Just call displaced->reset ().
8272 (displaced_step_clear_cleanup): Rename to...
8273 (displaced_step_reset_cleanup): ... this.
8274 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8275 (displaced_step_fixup): Likewise.
8276 (resume_1): Likewise.
8277 (handle_inferior_event): Restore child's memory before calling
8278 displaced_step_fixup on the parent.
8279 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8280 to std::unique_ptr.
8281 <step_closure>: Change type to std::unique_ptr.
8282
5f661e03
SM
82832020-02-14 Simon Marchi <simon.marchi@efficios.com>
8284
8285 * arm-tdep.c: Include count-one-bits.h.
8286 (cleanup_block_store_pc): Use count_one_bits.
8287 (cleanup_block_load_pc): Use count_one_bits.
8288 (arm_copy_block_xfer): Use count_one_bits.
8289 (thumb2_copy_block_xfer): Use count_one_bits.
8290 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8291 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8292 (thumb_get_next_pcs_raw): Use count_one_bits.
8293 (arm_get_next_pcs_raw): Use count_one_bits_l.
8294 * arch/arm.c (bitcount): Remove.
8295 * arch/arm.h (bitcount): Remove.
8296
8084e579
TT
82972020-02-14 Tom Tromey <tromey@adacore.com>
8298
8299 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8300 Update.
8301 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8302 * dwarf2/loc.c (call_site_find_chain_1): Return
8303 unique_xmalloc_ptr.
8304 (call_site_find_chain): Likewise.
8305
258bf0ee
RB
83062020-02-14 Richard Biener <rguenther@suse.de>
8307
8308 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8309 on expression with division operators.
8310
f98a8458
AKS
83112020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8312
8313 * MAINTAINERS (Write After Approval): Adding myself.
8314
d1437c0e
TT
83152020-02-12 Tom Tromey <tom@tromey.com>
8316
8317 * event-loop.c (event_data, gdb_event, event_handler_func):
8318 Remove.
8319
3d4560f7
TT
83202020-02-12 Tom Tromey <tom@tromey.com>
8321
8322 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8323 (dwarf2_frame_objfile_data): Add comment.
8324 (find_comp_unit, set_comp_unit): New functions.
8325 (dwarf2_frame_find_fde): Use find_comp_unit.
8326 (dwarf2_build_frame_info): Use set_comp_unit.
8327
21982304
TT
83282020-02-12 Tom Tromey <tom@tromey.com>
8329
8330 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8331 (comp_unit): Don't initialize objfile.
8332 (execute_cfa_program): Add text_offset parameter.
8333 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8334 (dwarf2_frame_cache): Update.
8335 (dwarf2_build_frame_info): Don't set "objfile" member.
8336
4debb237
TT
83372020-02-12 Tom Tromey <tom@tromey.com>
8338
8339 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8340 (decode_frame_entry): Likewise.
8341 (dwarf2_build_frame_info): Update.
8342
0d404d44
TT
83432020-02-12 Tom Tromey <tom@tromey.com>
8344
8345 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8346 (decode_frame_entry_1): Use the comp_unit obstack.
8347
a7a3ae5c
TT
83482020-02-12 Tom Tromey <tom@tromey.com>
8349
8350 * dwarf2/frame.c (struct comp_unit): Add initializers and
8351 constructor.
8352 (dwarf2_frame_objfile_data): Store a comp_unit.
8353 (dwarf2_frame_find_fde): Update.
8354 (dwarf2_build_frame_info): Use "new".
8355
a9d65418
TT
83562020-02-12 Tom Tromey <tom@tromey.com>
8357
8358 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8359 (dwarf2_fde_table): Typedef for std::vector.
8360 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8361 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8362 (decode_frame_entry): Update.
8363 (dwarf2_build_frame_info): Use "new".
8364
7559c217
CB
83652020-02-12 Christian Biesinger <cbiesinger@google.com>
8366
8367 * arm-tdep.c (arm_gdbarch_init): Update.
8368 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8369 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8370 have_neon, is_m>: Change to bool.
8371
aeefc73c
CB
83722020-02-12 Christian Biesinger <cbiesinger@google.com>
8373
8374 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8375
d27b8e5f
TT
83762020-02-12 Tom Tromey <tom@tromey.com>
8377
8378 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8379
cd5900f3
HD
83802020-02-12 Hannes Domani <ssbssa@yahoo.de>
8381
8382 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8383 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8384
f056b22b
TT
83852020-02-11 Tom Tromey <tom@tromey.com>
8386
8387 * psymtab.h: Update comment.
8388
f92ff6b5
TT
83892020-02-11 Tom Tromey <tom@tromey.com>
8390
8391 * gdb_obstack.h (struct auto_obstack): Use
8392 DISABLE_COPY_AND_ASSIGN.
8393
3fd6912b
TT
83942020-02-11 Tom Tromey <tom@tromey.com>
8395
8396 * dwarf2/frame.h (struct objfile): Don't forward declare.
8397
69ed9b74
CB
83982020-02-11 Christian Biesinger <cbiesinger@google.com>
8399
8400 * cris-tdep.c (cris_supply_gregset): Change signature to match
8401 what struct regset expects.
8402 (cris_regset): New struct.
8403 (fetch_core_registers): Remove.
8404 (cris_iterate_over_regset_sections): New function.
8405 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8406 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8407
bda874f6
CB
84082020-02-11 Christian Biesinger <cbiesinger@google.com>
8409
8410 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8411 registers.
8412
754e1564
CB
84132020-02-11 Christian Biesinger <cbiesinger@google.com>
8414
8415 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8416
8ddd8e0e
SM
84172020-02-11 Simon Marchi <simon.marchi@efficios.com>
8418
8419 * configure: Re-generate.
8420
898e7f60
SM
84212020-02-11 Simon Marchi <simon.marchi@efficios.com>
8422
8423 * configure: Re-generate.
8424
58df732b
SM
84252020-02-11 Simon Marchi <simon.marchi@efficios.com>
8426
8427 * acinclude: Update warning.m4 path.
8428 * warning.m4: Move to gdbsupport.
8429
da5bd37e
TT
84302020-02-11 Tom Tromey <tromey@adacore.com>
8431
8432 * remote.c (remote_console_output): Update.
8433 * printcmd.c (printf_command): Update.
8434 * event-loop.c (gdb_wait_for_event): Update.
8435 * linux-nat.c (sigchld_handler): Update.
8436 * remote-sim.c (gdb_os_write_stdout): Update.
8437 (gdb_os_flush_stdout): Update.
8438 (gdb_os_flush_stderr): Update.
8439 (gdb_os_write_stderr): Update.
8440 * exceptions.c (print_exception): Update.
8441 * remote-fileio.c (remote_fileio_func_read): Update.
8442 (remote_fileio_func_write): Update.
8443 * tui/tui.c (tui_enable): Update.
8444 * tui/tui-interp.c (tui_interp::init): Update.
8445 * utils.c (init_page_info): Update.
8446 (putchar_unfiltered, fputc_unfiltered): Update.
8447 (gdb_flush): Update.
8448 (emit_style_escape): Update.
8449 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8450 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8451 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8452 (stderr_file::write): Update.
8453 (stderr_file::puts): Update.
8454 * ui-file.h (ui_file_isatty, ui_file_write)
8455 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8456 (ui_file_puts): Don't declare.
8457
85f0dd3c
TV
84582020-02-10 Tom de Vries <tdevries@suse.de>
8459
8460 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8461 sentinel to char *.
8462
2e927613
TV
84632020-02-09 Tom de Vries <tdevries@suse.de>
8464
8465 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8466 filename if it matches "<artificial>".
8467
6bafc845
HD
84682020-02-09 Hannes Domani <ssbssa@yahoo.de>
8469
8470 * windows-tdep.c (struct enum_value_name): New struct.
8471 (create_enum): New function.
8472 (windows_get_siginfo_type): Create and use enum types.
8473
7928d571
HD
84742020-02-09 Hannes Domani <ssbssa@yahoo.de>
8475
8476 * NEWS: Mention $_siginfo support for Windows.
8477 * windows-nat.c (handle_exception): Set siginfo_er.
8478 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8479 (windows_xfer_siginfo): New function.
8480 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8481 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8482 (init_windows_gdbarch_data): New function.
8483 (get_windows_gdbarch_data): New function.
8484 (windows_get_siginfo_type): New function.
8485 (windows_init_abi): Register windows_get_siginfo_type.
8486 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8487
6751ebae
TT
84882020-02-08 Tom Tromey <tom@tromey.com>
8489
8490 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8491 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8492 <keep>: Declare method.
8493 <m_keep>: Remove member.
8494 <~cutu_reader>: Remove.
8495 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8496 (cutu_reader::cutu_reader): Update.
8497 (cutu_reader::keep): Rename from ~cutu_reader.
8498 (process_psymtab_comp_unit, build_type_psymtabs_1)
8499 (process_skeletonless_type_unit, load_partial_comp_unit)
8500 (load_full_comp_unit, dwarf2_read_addr_index)
8501 (read_signatured_type): Update.
8502
135f5437
TT
85032020-02-08 Tom Tromey <tom@tromey.com>
8504
8505 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8506 "want_partial_unit" parameter.
8507 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8508 Inline check for DW_TAG_partial_unit.
8509 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8510
9f66ff1c
TT
85112020-02-08 Tom Tromey <tom@tromey.com>
8512
8513 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8514 read.c.
8515 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8516 read.c.
8517
c8a7a66f
TT
85182020-02-08 Tom Tromey <tom@tromey.com>
8519
8520 * dwarf2/read.c (read_address): Move to comp-unit.c.
8521 (dwarf2_rnglists_process, dwarf2_ranges_process)
8522 (read_attribute_value, dwarf_decode_lines_1)
8523 (var_decode_location, decode_locdesc): Update.
8524 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8525 read.c. Remove "cu" parameter.
8526 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8527 method.
8528
8266302d
TT
85292020-02-08 Tom Tromey <tom@tromey.com>
8530
8531 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8532 (read_indirect_line_string): Update.
8533 * dwarf2/comp-unit.c (read_offset): Remove.
8534 (read_comp_unit_head): Update.
8535 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8536 method.
8537 (read_offset): Don't declare.
8538
4057dfde
TT
85392020-02-08 Tom Tromey <tom@tromey.com>
8540
8541 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8542 * dwarf2/read.c (struct comp_unit_head): Move to
8543 dwarf2/comp-unit.h.
8544 (enum class rcuh_kind): Move to comp-unit.h.
8545 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8546 (read_comp_unit_head, error_check_comp_unit_head)
8547 (read_and_check_comp_unit_head): Move to comp-unit.c.
8548 (read_offset, dwarf_unit_type_name): Likewise.
8549 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8550 (cutu_reader::cutu_reader, read_call_site_scope)
8551 (find_partial_die, follow_die_offset): Update.
8552 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8553
24aa364d
TT
85542020-02-08 Tom Tromey <tom@tromey.com>
8555
8556 * dwarf2/read.c (read_offset_1): Move to leb.c.
8557 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8558 (dwarf_decode_macro_bytes): Update.
8559 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8560 * dwarf2/leb.h (read_offset): Declare.
8561
2c7d5afc
TT
85622020-02-08 Tom Tromey <tom@tromey.com>
8563
8564 * dwarf2/read.c (dwarf2_section_size): Remove.
8565 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8566 Update.
8567 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8568
4075cb26
TT
85692020-02-08 Tom Tromey <tom@tromey.com>
8570
8571 * dwarf2/read.c (read_initial_length): Move to leb.c.
8572 * dwarf2/leb.h (read_initial_length): Declare.
8573 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8574 handle_nonstd parameter.
8575 * dwarf2/frame.c (read_initial_length): Remove.
8576 (decode_frame_entry_1): Update.
8577
09ba997f
TT
85782020-02-08 Tom Tromey <tom@tromey.com>
8579
8580 * dwarf2/loc.c (dwarf2_find_location_expression)
8581 (dwarf_evaluate_loc_desc::get_tls_address)
8582 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8583 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8584 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8585 (dwarf2_compile_property_to_c)
8586 (dwarf2_loc_desc_get_symbol_read_needs)
8587 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8588 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8589 (loclist_describe_location, loclist_tracepoint_var_ref)
8590 (loclist_generate_c_location): Update.
8591 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8592 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8593 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8594 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8595 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8596 (dwarf2_per_cu_data::addr_size)
8597 (dwarf2_per_cu_data::ref_addr_size)
8598 (dwarf2_per_cu_data::text_offset)
8599 (dwarf2_per_cu_data::addr_type): Now methods.
8600 (per_cu_header_read_in): Make per_cu "const".
8601 (dwarf2_version): Remove.
8602 (dwarf2_per_cu_data::int_type): Now a method.
8603 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8604 (set_die_type, read_array_type, read_subrange_index_type)
8605 (read_tag_string_type, read_subrange_type): Update.
8606 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8607 offset_size, ref_addr_size, text_offset, addr_type, version,
8608 objfile, int_type, addr_sized_int_type>: Declare methods.
8609
96c738c0
TT
86102020-02-08 Tom Tromey <tom@tromey.com>
8611
8612 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8613 Move earlier.
8614
8fdd972c
TT
86152020-02-08 Tom Tromey <tom@tromey.com>
8616
8617 * dwarf2/read.h (dwarf_line_debug): Declare.
8618 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8619 * dwarf2/read.c: Move line_header code to new files.
8620 (dwarf_line_debug): No longer static.
8621 * dwarf2/line-header.c: New file.
8622 * dwarf2/line-header.h: New file.
8623
03075812
TT
86242020-02-08 Tom Tromey <tom@tromey.com>
8625
8626 * dwarf2/read.c (struct line_header) <file_full_name,
8627 file_file_name>: Return unique_xmalloc_ptr.
8628 (line_header::file_file_name): Update.
8629 (line_header::file_full_name): Update.
8630 (dw2_get_file_names_reader): Update.
8631 (macro_start_file): Update.
8632
bb822404
TT
86332020-02-08 Tom Tromey <tom@tromey.com>
8634
8635 * dwarf2/read.c (struct line_header) <file_full_name,
8636 file_file_name>: Declare methods.
8637 (dw2_get_file_names_reader): Update.
8638 (file_file_name): Now a method.
8639 (file_full_name): Likewise.
8640 (macro_start_file): Update.
8641
009b64fc
TT
86422020-02-08 Tom Tromey <tom@tromey.com>
8643
8644 * dwarf2/read.c (dwarf_always_disassemble)
8645 (show_dwarf_always_disassemble): Move to loc.c.
8646 (_initialize_dwarf2_read): Move "always-disassemble" registration
8647 to loc.c.
8648 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8649 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8650 static.
8651 (show_dwarf_always_disassemble): Move from read.c.
8652 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8653
5895093f
TT
86542020-02-08 Tom Tromey <tom@tromey.com>
8655
8656 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8657 (create_quick_file_names_table): Return htab_up.
8658 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8659 Update.
8660 * dwarf2/read.h (struct dwarf2_per_objfile)
8661 <quick_file_names_table>: Now htab_up.
8662
b3b32279
TT
86632020-02-08 Tom Tromey <tom@tromey.com>
8664
8665 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8666
1d33d811
TT
86672020-02-08 Tom Tromey <tom@tromey.com>
8668
8669 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8670 Rewrite.
8671 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8672 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8673 (abbrev_table::abbrev_table): No longer inline.
8674 (ABBREV_HASH_SIZE): Remove.
8675 (abbrev_table::m_abbrevs): Now an htab_up.
8676
86de1d91
TT
86772020-02-08 Tom Tromey <tom@tromey.com>
8678
8679 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8680 (cutu_reader): Update.
8681 (build_type_psymtabs_1): Update.
8682 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8683 (abbrev_table::alloc_abbrev): Update.
8684 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8685 (abbrev_table::read): New static method, renamed from
8686 abbrev_table_read_table.
8687 (abbrev_table::alloc_abbrev)
8688 (abbrev_table::add_abbrev): Now private.
8689 (abbrev_table::abbrev_table): Now private.
8690 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8691
0335378b
TT
86922020-02-08 Tom Tromey <tom@tromey.com>
8693
8694 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8695 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8696 htab_up.
8697
48b490f2
TT
86982020-02-08 Tom Tromey <tom@tromey.com>
8699
8700 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8701 htab_up.
8702 (lookup_dwo_unit_in_dwp): Update.
8703 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8704 on obstack.
8705
bc68fb19
TT
87062020-02-08 Tom Tromey <tom@tromey.com>
8707
8708 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8709 obstack.
8710
d15acc42
TT
87112020-02-08 Tom Tromey <tom@tromey.com>
8712
8713 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8714 line_header_hash.
8715 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8716 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8717 Change type to htab_up.
8718
eaa5fa8b
TT
87192020-02-08 Tom Tromey <tom@tromey.com>
8720
8721 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8722 htab_up. Don't allocate on obstack.
8723 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8724 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8725 Change type to htab_up.
8726
b0b6a987
TT
87272020-02-08 Tom Tromey <tom@tromey.com>
8728
8729 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8730 Change type to htab_up.
8731 * dwarf2/read.c (create_signatured_type_table_from_index)
8732 (create_signatured_type_table_from_debug_names)
8733 (create_all_type_units, add_type_unit)
8734 (lookup_dwo_signatured_type, lookup_signatured_type)
8735 (process_skeletonless_type_unit): Update.
8736 (create_debug_type_hash_table, create_debug_types_hash_table):
8737 Change type of types_htab.
8738 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8739 htab_up. Don't allocate on obstack.
8740 (create_cus_hash_table): Change type of cus_htab parameter.
8741 (struct dwo_file) <cus, tus>: Now htab_up.
8742 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8743 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8744 (queue_and_load_all_dwo_tus): Update.
8745 * dwarf2/index-write.c (write_gdbindex): Update.
8746 (write_debug_names): Update.
8747
39856def
TT
87482020-02-08 Tom Tromey <tom@tromey.com>
8749
8750 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8751 dwarf2/read.c. Remove "next" member. Add constructor ntad
8752 destructor.
8753 (struct dwarf2_per_objfile) <queue>: New member.
8754 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8755 dwarf2/read.h.
8756 (dwarf2_queue, dwarf2_queue_tail): Remove.
8757 (class dwarf2_queue_guard): Add parameter to constructor. Use
8758 DISABLE_COPY_AND_ASSIGN.
8759 <m_per_objfile>: New member.
8760 <~dwarf2_queue_guard>: Rewrite.
8761 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8762 Update.
8763 (~dwarf2_queue_item): New.
8764
3e225074
TT
87652020-02-08 Tom Tromey <tom@tromey.com>
8766
8767 * dwarf2/read.c (struct die_info) <has_children>: New member.
8768 (dw2_get_file_names_reader): Remove has_children.
8769 (dw2_get_file_names): Update.
8770 (read_cutu_die_from_dwo): Remove has_children.
8771 (cutu_reader::init_tu_and_read_dwo_dies)
8772 (cutu_reader::cutu_reader): Update.
8773 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8774 Remove has_children.
8775 (build_type_psymtabs_1, process_skeletonless_type_unit)
8776 (load_partial_comp_unit, load_full_comp_unit): Update.
8777 (create_dwo_cu_reader): Remove has_children.
8778 (create_cus_hash_table, read_die_and_children): Update.
8779 (read_full_die_1,read_full_die): Remove has_children.
8780 (read_signatured_type): Update.
8781 (class cutu_reader) <has_children>: Remove.
8782
82ca8957
TT
87832020-02-08 Tom Tromey <tom@tromey.com>
8784
8785 * dwarf2/expr.c: Rename from dwarf2expr.c.
8786 * dwarf2/expr.h: Rename from dwarf2expr.h.
8787 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8788 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8789 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8790 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8791 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8792 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8793 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8794 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8795 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8796 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8797 * dwarf2/loc.c: Rename from dwarf2loc.c.
8798 * dwarf2/loc.h: Rename from dwarf2loc.h.
8799 * dwarf2/read.c: Rename from dwarf2read.c.
8800 * dwarf2/read.h: Rename from dwarf2read.h.
8801 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8802 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8803 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8804 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8805 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8806 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8807 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8808 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8809 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8810 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8811 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8812 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8813 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8814 Update.
8815 * Makefile.in (COMMON_SFILES): Update.
8816 (HFILES_NO_SRCDIR): Update.
8817
9e35d499
TT
88182020-02-08 Tom Tromey <tom@tromey.com>
8819
8820 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8821 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8822
1eba2311
TT
88232020-02-08 Tom Tromey <tom@tromey.com>
8824
8825 * dwarf2read.h (struct die_info): Don't declare.
8826
e41c2da2
TT
88272020-02-08 Tom Tromey <tom@tromey.com>
8828
8829 * dwarf2read.h (die_info_ptr): Remove typedef.
8830
4fc6c0d5
TT
88312020-02-08 Tom Tromey <tom@tromey.com>
8832
8833 * dwarf2read.c (read_call_site_scope)
8834 (handle_data_member_location, dwarf2_add_member_fn)
8835 (mark_common_block_symbol_computed, read_common_block)
8836 (attr_to_dynamic_prop, partial_die_info::read)
8837 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8838 (dwarf2_symbol_mark_computed, set_die_type): Update.
8839 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8840 method.
8841 (attr_form_is_block): Don't declare.
8842 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8843
cd6c91b4
TT
88442020-02-08 Tom Tromey <tom@tromey.com>
8845
8846 * dwarf2read.c (dwarf2_find_base_address, )
8847 (read_call_site_scope, rust_containing_type)
8848 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8849 (handle_data_member_location, dwarf2_add_member_fn)
8850 (get_alignment, read_structure_type, process_structure_scope)
8851 (mark_common_block_symbol_computed, read_common_block)
8852 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8853 (partial_die_info::read, read_attribute_value, new_symbol)
8854 (lookup_die_type, dwarf2_get_ref_die_offset)
8855 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8856 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8857 (dwarf2_symbol_mark_computed): Update.
8858 * dwarf2/attribute.h (struct attribute) <value_as_address,
8859 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8860 methods.
8861 (value_as_address, attr_form_is_section_offset)
8862 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8863 * dwarf2/attribute.c (attribute::value_as_address)
8864 (attribute::form_is_section_offset, attribute::form_is_constant)
8865 (attribute::form_is_ref): Now methods.
8866
162dce55
TT
88672020-02-08 Tom Tromey <tom@tromey.com>
8868
8869 * dwarf2read.c (struct attribute, DW_STRING)
8870 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8871 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8872 (attr_form_is_block, attr_form_is_section_offset)
8873 (attr_form_is_constant, attr_form_is_ref): Move.
8874 * dwarf2/attribute.h: New file.
8875 * dwarf2/attribute.c: New file, from dwarf2read.c.
8876 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8877
3054dd54
TT
88782020-02-08 Tom Tromey <tom@tromey.com>
8879
8880 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8881 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8882 Move.
8883 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8884 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8885 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8886 abbrev.c.
8887 * dwarf2/abbrev.h: New file.
8888 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8889 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8890
96b79293
TT
88912020-02-08 Tom Tromey <tom@tromey.com>
8892
8893 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8894 (dwarf2_section_size, dwarf2_get_section_info)
8895 (create_signatured_type_table_from_debug_names)
8896 (create_addrmap_from_aranges, read_debug_names_from_section)
8897 (get_gdb_index_contents_from_section, read_comp_unit_head)
8898 (error_check_comp_unit_head, read_abbrev_offset)
8899 (create_debug_type_hash_table, init_cu_die_reader)
8900 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8901 (read_comp_units_from_section, create_cus_hash_table)
8902 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8903 (create_dwp_v2_section, dwarf2_rnglists_process)
8904 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8905 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8906 (read_indirect_string_from_dwz, read_addr_index_1)
8907 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8908 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8909 (fill_in_loclist_baton): Update.
8910 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8911 get_containing_section, get_bfd_owner, get_bfd_section,
8912 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8913 (dwarf2_read_section, get_section_name, get_section_file_name)
8914 (get_containing_section, get_section_bfd_owner)
8915 (get_section_bfd_section, get_section_name, get_section_file_name)
8916 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8917 declare.
8918 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8919 (dwarf2_section_info::get_bfd_owner)
8920 (dwarf2_section_info::get_bfd_section)
8921 (dwarf2_section_info::get_name)
8922 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8923 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8924 (dwarf2_section_info::read): Now methods.
8925 * dwarf-index-write.c (class debug_names): Update.
8926
2c86cff9
TT
89272020-02-08 Tom Tromey <tom@tromey.com>
8928
8929 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8930 Move to dwarf2/section.h.
8931 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8932 (get_section_bfd_section, get_section_name)
8933 (get_section_file_name, get_section_id, get_section_flags)
8934 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8935 dwarf2/section.c.
8936 * dwarf2/section.h: New file.
8937 * dwarf2/section.c: New file, from dwarf2read.c.
8938 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8939
f4382c45
TT
89402020-02-08 Tom Tromey <tom@tromey.com>
8941
8942 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8943 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8944 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8945 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8946 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8947 * dwarf2/leb.h: New file, from dwarf2read.c.
8948 * dwarf2/leb.c: New file, from dwarf2read.c.
8949 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8950 Remove.
8951 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8952 (COMMON_SFILES): Add dwarf2/leb.c.
8953
01840b7a
JB
89542020-02-08 Joel Brobecker <brobecker@adacore.com>
8955
8956 GDB 9.1 released.
8957
dfcb27e4
IB
89582020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8959
8960 PR gdb/25190:
aac66a4c
SM
8961 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8962 * gdb/remote.c (remote_console_output): Update.
8963 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8964 (ui_file_puts): ...this.
8965 * gdb/ui-file.h (ui_file_puts): Add declaration.
8966 * gdb/utils.c (emit_style_escape): Update.
8967 (flush_wrap_buffer): Update.
8968 (fputs_maybe_filtered): Update.
8969 (fputs_unfiltered): Add function.
dfcb27e4 8970
faa17681
IB
89712020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8972
aac66a4c
SM
8973 * gdb/event-loop.c (gdb_wait_for_event): Update.
8974 * gdb/printcmd.c (printf_command): Update.
8975 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8976 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8977 (gdb_os_flush_stderr): Update.
8978 * gdb/remote.c (remote_console_output): Update.
8979 * gdb/ui-file.c (gdb_flush): Rename to...
8980 (ui_file_flush): ...this.
8981 (stderr_file::write): Update.
8982 (stderr_file::puts): Update.
8983 * gdb/ui-file.h (gdb_flush): Rename to...
8984 (ui_file_flush): ...this.
8985 * gdb/utils.c (gdb_flush): Add function.
8986 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8987
5abbbe1d
TT
89882020-02-07 Tom Tromey <tromey@adacore.com>
8989
8990 PR breakpoints/24915:
8991 * source.c (find_and_open_source): Do not check basenames_may_differ.
8992
919adfe8
TT
89932020-02-07 Tom Tromey <tom@tromey.com>
8994
8995 * README: Update gdbserver documentation.
8996 * gdbserver: Move to top level.
8997 * configure.tgt (build_gdbserver): Remove.
8998 * configure.ac: Remove --enable-gdbserver.
8999 * configure: Rebuild.
9000 * Makefile.in (distclean): Don't mention gdbserver.
9001
1d5d29e7
SV
90022020-02-06 Shahab Vahedi <shahab@synopsys.com>
9003
9004 * source-cache.c (source_cache::ensure): Surround
9005 get_plain_source_lines with a try/catch.
9006 (source_cache::get_line_charpos): Get rid of try/catch
9007 and only check for the return value of "ensure".
9008 * tui/tui-source.c (tui_source_window::set_contents):
9009 Simplify "nlines" calculation.
9010
6eb1129c
SV
90112020-02-06 Shahab Vahedi <shahab@synopsys.com>
9012
9013 * MAINTAINERS (Write After Approval): Add myself.
9014
c6a42d11
CB
90152020-02-05 Christian Biesinger <cbiesinger@google.com>
9016
9017 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9018 function call.
9019
c8ecdda6
CB
90202020-02-05 Christian Biesinger <cbiesinger@google.com>
9021
9022 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9023
f6480e70
MR
90242020-02-05 Maciej W. Rozycki <macro@wdc.com>
9025
9026 * nat/riscv-linux-tdesc.h: New file.
9027 * nat/riscv-linux-tdesc.c: New file, taking code from...
9028 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9029 ... here.
9030 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9031 NATDEPFILES.
9032
dcc9fbc6
AB
90332020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9034
9035 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9036 we don't set the fake simulator ptid to the null_ptid.
9037
719546c4
SM
90382020-02-03 Simon Marchi <simon.marchi@efficios.com>
9039
9040 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9041 * gdbthread.h (class thread_info) <resumed>: Likewise.
9042 * infrun.c (resume_1): Likewise.
9043 (proceed): Likewise.
9044 (infrun_thread_stop_requested): Likewise.
9045 (stop_all_threads): Likewise.
9046 (handle_inferior_event): Likewise.
9047 (restart_threads): Likewise.
9048 (finish_step_over): Likewise.
9049 (keep_going_stepped_thread): Likewise.
9050 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9051 (linux_handle_extended_wait): Likewise.
9052 * record-btrace.c (get_thread_current_frame_id): Likewise.
9053 * record-full.c (record_full_wait_1): Likewise.
9054 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9055 * target.c (target_resume): Likewise.
9056 * thread.c (set_running_thread): Likewise.
9057
e409c542
AKS
90582020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9059
9060 * f-valprint.c (f77_print_array_1): Changed datatype of index
9061 variable to LONGEST from int to enable it to contain bound
9062 values correctly.
9063
ee98c0da
MR
90642020-02-03 Maciej W. Rozycki <macro@wdc.com>
9065
9066 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9067 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9068 offsets according to FLEN determined.
9069 (riscv_linux_nat_target::read_description): Determine FLEN
9070 dynamically.
9071 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9072 according to FLEN determined.
9073 (riscv_linux_nat_target::store_registers): Likewise.
9074
aa66aac4
SV
90752020-02-01 Shahab Vahedi <shahab@synopsys.com>
9076
9077 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9078 when reg->group is empty and reggroup is not.
9079
fd9faca8
TT
90802020-01-31 Tom Tromey <tromey@adacore.com>
9081
9082 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9083 Call beneath target's mourn_inferior after unpushing.
9084
42330a68
AB
90852020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9086
9087 PR tui/9765
9088 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9089 have enough lines to fill the screen, still return the lowest
9090 address we found.
9091
7a27a45b
AB
90922020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9095 '-', '<', and '>' commands.
9096
c47f70e2
PA
90972020-01-29 Pedro Alves <palves@redhat.com>
9098 Sergio Durigan Junior <sergiodj@redhat.com>
9099
9100 * infcmd.c (construct_inferior_arguments): Assert that
9101 'argc' is greater than 0.
9102
5133a315
LM
91032020-01-29 Luis Machado <luis.machado@linaro.org>
9104
9105 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9106 (BRK_INSN_MASK): Define to 0xd4200000.
9107 (aarch64_program_breakpoint_here_p): New function.
9108 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9109 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9110 breakpoint.c.
9111 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9112 breakpoint.h
9113 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9114 call gdbarch_program_breakpoint_here_p.
9115 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9116 default_program_breakpoint_here_p, changed return type to bool and
9117 simplified.
9118 * breakpoint.h (program_breakpoint_here): Moved prototype to
9119 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9120 return type to bool.
9121 * gdbarch.c: Regenerate.
9122 * gdbarch.h: Regenerate.
9123 * gdbarch.sh (program_breakpoint_here_p): New method.
9124 * infrun.c (handle_signal_stop): Call
9125 gdbarch_program_breakpoint_here_p.
9126
168f8c6b
TT
91272020-01-26 Tom Tromey <tom@tromey.com>
9128
9129 * ctfread.c (struct ctf_fp_info): Reindent.
9130 (_initialize_ctfread): Remove.
9131
128a391f
TT
91322020-01-26 Tom Tromey <tom@tromey.com>
9133
9134 * psymtab.c (partial_map_expand_apply)
9135 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9136 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9137 (psym_print_stats, psym_expand_symtabs_for_function)
9138 (psym_map_symbol_filenames, psym_map_matching_symbols)
9139 (psym_expand_symtabs_matching)
9140 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9141 (maintenance_check_psymtabs): Use new methods.
9142 * psympriv.h (struct partial_symtab) <readin_p,
9143 get_compunit_symtab>: New methods.
9144 <readin, compunit_symtab>: Remove members.
9145 (struct standard_psymtab): New.
9146 (struct legacy_psymtab): Derive from standard_psymtab.
9147 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9148 standard_psymtab.
9149 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9150
0494dbec
TT
91512020-01-26 Tom Tromey <tom@tromey.com>
9152
9153 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9154 read_dependencies. Add assert.
9155 * psymtab.c (partial_symtab::read_dependencies): New method.
9156 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9157 method.
9158 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9159 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9160 read_dependencies.
9161 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9162 Add assert.
9163
8566b89b
TT
91642020-01-26 Tom Tromey <tom@tromey.com>
9165
9166 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9167 Call expand_psymtab.
9168 (xcoff_read_symtab): Call expand_psymtab.
9169 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9170 legacy_expand_psymtab.
9171 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9172 method.
9173 (struct legacy_psymtab) <expand_psymtab>: Implement.
9174 <legacy_expand_psymtab>: New member.
9175 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9176 (parse_partial_symbols): Set legacy_expand_psymtab.
9177 (psymtab_to_symtab_1): Change argument order. Call
9178 expand_psymtab.
9179 (new_psymtab): Set legacy_expand_psymtab.
9180 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9181 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9182 expand_psymtab.
9183 (dwarf2_psymtab::expand_psymtab): Rename from
9184 psymtab_to_symtab_1. Call expand_psymtab.
9185 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9186 (dbx_end_psymtab): Likewise.
9187 (dbx_psymtab_to_symtab_1): Change argument order. Call
9188 expand_psymtab.
9189 (dbx_read_symtab): Call expand_psymtab.
9190 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9191 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9192 (ctf_psymtab::read_symtab): Call expand_psymtab.
9193
077cbab2
TT
91942020-01-26 Tom Tromey <tom@tromey.com>
9195
9196 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9197 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9198 messages.
9199 * mdebugread.c (mdebug_read_symtab): Remove prints.
9200 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9201 assert.
9202 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9203
891813be
TT
92042020-01-26 Tom Tromey <tom@tromey.com>
9205
9206 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9207 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9208 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9209 legacy_symtab.
9210 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9211 * psymtab.c (psymtab_to_symtab): Call method.
9212 (dump_psymtab): Update.
9213 * psympriv.h (struct partial_symtab): Add virtual destructor.
9214 <read_symtab>: New method.
9215 (struct legacy_symtab): New.
9216 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9217 (struct pst_map) <pst>: Now a legacy_psymtab.
9218 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9219 (new_psymtab): Use legacy_psymtab.
9220 * dwarf2read.h (struct dwarf2_psymtab): New.
9221 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9222 * dwarf2read.c (dwarf2_create_include_psymtab)
9223 (dwarf2_build_include_psymtabs, create_type_unit_group)
9224 (create_partial_symtab, process_psymtab_comp_unit_reader)
9225 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9226 (set_partial_user): Use dwarf2_psymtab.
9227 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9228 (psymtab_to_symtab_1, process_full_comp_unit)
9229 (process_full_type_unit, dwarf2_ranges_read)
9230 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9231 (dwarf_decode_lines): Use dwarf2_psymtab.
9232 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9233 (add_address_entry_worker, write_one_signatured_type)
9234 (recursively_count_psymbols, recursively_write_psymbols)
9235 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9236 (write_debug_names): Likewise.
9237 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9238 <pst>: Now a legacy_psymtab.
9239 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9240 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9241 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9242 * ctfread.c (struct ctf_psymtab): New.
9243 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9244 ctf_psymtab.
9245 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9246 (create_partial_symtab): Return a ctf_psymtab.
9247 (scan_partial_symbols): Update.
9248
c3693a1d
TT
92492020-01-26 Tom Tromey <tom@tromey.com>
9250
9251 * xcoffread.c (xcoff_start_psymtab): Use new.
9252 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9253 renamed from start_psymtab_common.
9254 * psympriv.h (struct partial_symtab): Add new constructor.
9255 (start_psymtab_common): Don't declare.
9256 * mdebugread.c (parse_partial_symbols): Use new.
9257 * dwarf2read.c (create_partial_symtab): Use new.
9258 * dbxread.c (start_psymtab): Use new.
9259 * ctfread.c (create_partial_symtab): Use new.
9260
32caafd0
TT
92612020-01-26 Tom Tromey <tom@tromey.com>
9262
9263 * xcoffread.c (xcoff_end_psymtab): Use new.
9264 * psymtab.c (start_psymtab_common): Use new.
9265 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9266 Update.
9267 * psympriv.h (struct partial_symtab): Add parameters to
9268 constructor. Don't inline.
9269 (allocate_psymtab): Don't declare.
9270 * mdebugread.c (new_psymtab): Use new.
9271 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9272 * dbxread.c (dbx_end_psymtab): Use new.
9273
abaa2f23
TT
92742020-01-26 Tom Tromey <tom@tromey.com>
9275
9276 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9277 allocate_psymtab. Update documentation.
9278 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9279 allocate_psymtab. Do not use new.
9280 (allocate_psymtab): Use new. Update.
9281
6d94535f
TT
92822020-01-26 Tom Tromey <tom@tromey.com>
9283
9284 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9285 * psymtab.c (psym_print_stats): Update.
9286 * psympriv.h (struct partial_symtab) <readin,
9287 psymtabs_addrmap_supported, anonymous>: Now bool.
9288 * mdebugread.c (psymtab_to_symtab_1): Update.
9289 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9290 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9291 (process_full_comp_unit, process_full_type_unit): Update.
9292 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9293 * ctfread.c (psymtab_to_symtab): Update.
9294
6f17252b
TT
92952020-01-26 Tom Tromey <tom@tromey.com>
9296
9297 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9298 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9299 * psymtab.c (psymtab_storage): Delete psymtabs.
9300 (psymtab_storage::allocate_psymtab): Use new.
9301 (psymtab_storage::discard_psymtab): Use delete.
9302 * psympriv.h (struct partial_symtab): Add constructor and
9303 initializers.
9304
f6f1cebc
TT
93052020-01-26 Tom Tromey <tom@tromey.com>
9306
9307 * machoread.c: Do not include psympriv.h.
9308
e47e48f6
PW
93092020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9310
9311 * NEWS: Mention the new option and the set/show commands.
9312
a2fedca9
PW
93132020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9314
9315 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9316 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9317 (validate_exec_file): New variables, enums, functions.
9318 (exec_file_locate_attach, print_section_info): Style the filenames.
9319 (_initialize_exec): Install show_exec_file_mismatch_command and
9320 set_exec_file_mismatch_command.
9321 * gdbcore.h (validate_exec_file): Declare.
9322 * infcmd.c (attach_command): Call validate_exec_file.
9323 * remote.c ( remote_target::remote_add_inferior): Likewise.
9324
7ffa82e1
AB
93252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9326
9327 * frame.c (find_frame_sal): Move call to get_next_frame into more
9328 inner scope.
9329 * inline-frame.c (inilne_state) <inline_state>: Update argument
9330 types.
9331 (inilne_state) <skipped_symbol>: Rename to...
9332 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9333 (skip_inline_frames): Build vector of skipped symbols and use this
9334 to reate the inline_state.
9335 (inline_skipped_symbol): Add a comment and some assertions, fetch
9336 skipped symbol from the list.
9337
3d92a3e3
AB
93382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9339
9340 * buildsym.c (lte_is_less_than): Delete.
9341 (buildsym_compunit::end_symtab_with_blockvector): Create local
9342 lambda function to sort line table entries, and use
9343 std::stable_sort instead of std::sort.
9344 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9345 markers when looking for a previous line.
9346
94a72be7
AB
93472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9348
9349 * dwarf2read.c (lnp_state_machine::record_line): Include
9350 end_sequence parameter in debug print out. Record the line if we
9351 are at an end_sequence marker even if it's not the start of a
9352 statement.
9353 * symmisc.c (maintenance_print_one_line_table): Print end of
9354 sequence markers with 'END' not '0'.
9355
53af73bf
PA
93562020-01-24 Pedro Alves <palves@redhat.com>
9357
9358 PR gdb/25410
9359 * thread.c (scoped_restore_current_thread::restore): Use
9360 switch_to_inferior_no_thread.
9361 * exec.c: Include "progspace-and-thread.h".
9362 (add_target_sections, remove_target_sections):
9363 scoped_restore_current_pspace_and_thread instead of
9364 scoped_restore_current_thread.
9365 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9366 and aspace to the inferior before calling clone_program_space.
9367 Remove stale comment.
9368
3050c6f4
CB
93692020-01-24 Christian Biesinger <cbiesinger@google.com>
9370
9371 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9372 (arm_netbsd_nat_target::fetch_registers): ...this.
9373 (arm_nbsd_nat_target::store_registers): Rename to...
9374 (arm_netbsd_nat_target::store_registers): ...this.
9375
73685c7e
CB
93762020-01-24 Christian Biesinger <cbiesinger@google.com>
9377
9378 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9379 register_t.
9380
89203d40
CB
93812020-01-24 Christian Biesinger <cbiesinger@google.com>
9382
9383 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9384 Update comment.
9385 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9386 Likewise.
9387 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9388 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9389 the correct replacement (iterate_over_regset_sections).
9390 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9391 Update comment.
9392
1ba1ac88
AB
93932020-01-24 Graham Markall <graham.markall@embecosm.com>
9394
9395 PR gdb/23718
9396 * gdb/python/python.c (execute_gdb_command): Call
9397 async_enable_stdin in catch block.
9398
f3364a6d
AB
93992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9400
9401 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9402 SWITCH_THRU_ALL_UIS.
9403
733d0a67
AB
94042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9405
9406 PR tui/9765
9407 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9408 comment, add extra parameter, and update to store previous symbol
9409 when appropriate.
9410 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9411 add extra parameter.
9412 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9413 remove unneeded parameter, add try/catch around gdb_print_insn,
9414 rewrite to add items to asm_lines vector.
9415 (tui_find_backward_disassembly_start_address): New function.
9416 (tui_find_disassembly_address): Updated throughout.
9417 (tui_disasm_window::set_contents): Update for changes to
9418 tui_disassemble.
9419 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9420 number of lines to scroll.
9421
b3b3bada
SM
94222020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9423
9424 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9425 (SECT_OFF_DATA): Likewise.
9426 (SECT_OFF_RODATA): Likewise.
9427 (SECT_OFF_TEXT): Likewise.
9428 (SECT_OFF_BSS): Likewise.
9429 (struct objfile) <text_section_offset, data_section_offset>: New
9430 methods.
9431 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9432 objfile::text_section_offset.
9433 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9434 * coffread.c (coff_symtab_read): Likewise.
9435 (enter_linenos): Likewise.
9436 (process_coff_symbol): Likewise.
9437 * ctfread.c (get_objfile_text_range): Likewise.
9438 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9439 Use objfile::data_section_offset.
9440 * dwarf2-frame.c (execute_cfa_program): Use
9441 objfile::text_section_offset.
9442 (dwarf2_frame_find_fde): Likewise.
9443 * dwarf2read.c (create_addrmap_from_index): Likewise.
9444 (create_addrmap_from_aranges): Likewise.
9445 (dw2_find_pc_sect_compunit_symtab): Likewise.
9446 (process_psymtab_comp_unit_reader): Likewise.
9447 (add_partial_symbol): Likewise.
9448 (add_partial_subprogram): Likewise.
9449 (process_full_comp_unit): Likewise.
9450 (read_file_scope): Likewise.
9451 (read_func_scope): Likewise.
9452 (read_lexical_block_scope): Likewise.
9453 (read_call_site_scope): Likewise.
9454 (dwarf2_rnglists_process): Likewise.
9455 (dwarf2_ranges_process): Likewise.
9456 (dwarf2_ranges_read): Likewise.
9457 (dwarf_decode_lines_1): Likewise.
9458 (new_symbol): Likewise.
9459 (dwarf2_fetch_die_loc_sect_off): Likewise.
9460 (dwarf2_per_cu_text_offset): Likewise.
9461 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9462 * hppa-tdep.c (read_unwind_info): Likewise.
9463 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9464 * psympriv.h (struct partial_symtab): Likewise.
9465 * psymtab.c (find_pc_sect_psymtab): Likewise.
9466 * solib-svr4.c (enable_break): Likewise.
9467 * stap-probe.c (relocate_address): Use
9468 objfile::data_section_offset.
9469 * xcoffread.c (enter_line_range): Use
9470 objfile::text_section_offset.
9471 (read_xcoff_symtab): Likewise.
9472
ab53f382
SM
94732020-01-23 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9476 declaration to narrower scopes.
9477
e7eee665
SM
94782020-01-23 Simon Marchi <simon.marchi@efficios.com>
9479
9480 * darwin-nat.h (struct darwin_exception_msg, enum
9481 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9482 Move up.
9483 (class darwin_nat_target) <wait_1, check_new_threads,
9484 decode_exception_message, decode_message, stop_inferior,
9485 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9486 * darwin-nat.c (darwin_check_new_threads): Rename to...
9487 (darwin_nat_target::check_new_threads): ... this.
9488 (darwin_suspend_inferior_it): Remove.
9489 (darwin_decode_exception_message): Rename to...
9490 (darwin_nat_target::decode_exception_message): ... this.
9491 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9492 (darwin_decode_message): Rename to...
9493 (darwin_nat_target::decode_message): ... this.
9494 (cancel_breakpoint): Rename to...
9495 (darwin_nat_target::cancel_breakpoint): ... this.
9496 (darwin_wait): Rename to...
9497 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9498 instead of iterate_over_inferiors.
9499 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9500 (darwin_stop_inferior): Rename to...
9501 (darwin_nat_target::stop_inferior): ... this.
9502 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9503 (darwin_init_thread_list): Rename to...
9504 (darwin_nat_target::init_thread_list): ... this.
9505 (darwin_ptrace_him): Rename to...
9506 (darwin_nat_target::ptrace_him): ... this.
9507 (darwin_nat_target::create_inferior): Pass lambda function to
9508 fork_inferior.
9509 (darwin_nat_target::detach): Call stop_inferior instead of
9510 darwin_stop_inferior.
9511 * fork-inferior.h (fork_inferior): Change init_trace_fun
9512 parameter to gdb::function_view.
9513 * fork-inferior.c (fork_inferior): Likewise.
9514
c162ed3e
HD
95152020-01-23 Hannes Domani <ssbssa@yahoo.de>
9516
9517 * i386-cygwin-tdep.c (core_process_module_section): Update.
9518 * windows-nat.c (struct lm_info_windows): Add text_offset.
9519 (windows_xfer_shared_libraries): Update.
9520 * windows-tdep.c (windows_xfer_shared_library):
9521 Add text_offset_cached argument.
9522 * windows-tdep.h (windows_xfer_shared_library): Update.
9523
a1237872
SM
95242020-01-21 Simon Marchi <simon.marchi@efficios.com>
9525
9526 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9527
b3ee6dd9
SM
95282020-01-21 Simon Marchi <simon.marchi@efficios.com>
9529
9530 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9531 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9532 replace with range-based for.
9533 (gdbsim_interrupt_inferior): Remove.
9534 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9535 with a range-based for. Inline code from
9536 gdbsim_interrupt_inferior.
9537
f9fac3c8
SM
95382020-01-21 Simon Marchi <simon.marchi@efficios.com>
9539
9540 * infrun.c (proceed): Fix indentation.
9541
f6474de9
TT
95422020-01-21 Tom Tromey <tromey@adacore.com>
9543
9544 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9545 * python/python.c (python_extension_ops): Update.
9546 (gdbpy_colorize): New function.
9547 * python/lib/gdb/__init__.py (colorize): New function.
9548 * extension.h (ext_lang_colorize): Declare.
9549 * extension.c (ext_lang_colorize): New function.
9550 * extension-priv.h (struct extension_language_ops) <colorize>: New
9551 member.
9552 * cli/cli-style.c (_initialize_cli_style): Update help text.
9553
f0c702d4
LM
95542020-01-21 Luis Machado <luis.machado@linaro.org>
9555
9556 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9557 <cond>: Change type to bool.
9558 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9559 (aarch64_displaced_step_cb): Likewise.
9560 (aarch64_displaced_step_tb): Likewise.
9561
1ab139e5
LM
95622020-01-21 Luis Machado <luis.machado@linaro.org>
9563
9564 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9565 output.
9566
0c271889
LM
95672020-01-21 Luis Machado <luis.machado@linaro.org>
9568
9569 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9570 <pc_adjust>: Adjust the documentation.
9571 (aarch64_displaced_step_fixup): Check if PC really moved before
9572 adjusting it.
9573
4d89c1c7
TT
95742020-01-19 Tom Tromey <tom@tromey.com>
9575
9576 * disasm.c (~gdb_disassembler): New destructor.
9577 (gdb_buffered_insn_length): Call disassemble_free_target.
9578 * disasm.h (class gdb_disassembler): Declare destructor. Use
9579 DISABLE_COPY_AND_ASSIGN.
9580
c0ab21c2
TT
95812020-01-19 Tom Tromey <tom@tromey.com>
9582
9583 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9584 (die_reader_func_ftype): Remove.
9585 (cutu_reader): New class.
9586 (dw2_get_file_names_reader): Remove "data" parameter.
9587 (dw2_get_file_names): Use cutu_reader.
9588 (create_debug_type_hash_table): Update.
9589 (read_cutu_die_from_dwo): Update comment.
9590 (lookup_dwo_unit): Add dwo_name parameter.
9591 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9592 die_reader_func_ftype and data parameters.
9593 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9594 Remove die_reader_func_ftype and data parameters.
9595 (~cutu_reader): New; from init_cutu_and_read_dies.
9596 (cutu_reader::cutu_reader): Rename from
9597 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9598 and data parameters.
9599 (init_cutu_and_read_dies_simple): Remove.
9600 (struct process_psymtab_comp_unit_data): Remove.
9601 (process_psymtab_comp_unit_reader): Remove data parameter; add
9602 want_partial_unit and pretend_language parameters.
9603 (process_psymtab_comp_unit): Use cutu_reader.
9604 (build_type_psymtabs_reader): Remove data parameter.
9605 (build_type_psymtabs_1): Use cutu_reader.
9606 (process_skeletonless_type_unit): Likewise.
9607 (load_partial_comp_unit_reader): Remove.
9608 (load_partial_comp_unit): Use cutu_reader.
9609 (load_full_comp_unit_reader): Remove.
9610 (load_full_comp_unit): Use cutu_reader.
9611 (struct create_dwo_cu_data): Remove.
9612 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9613 dwo_unit parameters.
9614 (create_cus_hash_table): Use cutu_reader.
9615 (struct dwarf2_read_addr_index_data): Remove.
9616 (dwarf2_read_addr_index_reader): Remove.
9617 (dwarf2_read_addr_index): Use cutu_reader.
9618 (read_signatured_type_reader): Remove.
9619 (read_signatured_type): Use cutu_reader.
9620
45bbae5c
TT
96212020-01-19 Tom Tromey <tom@tromey.com>
9622
9623 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9624 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9625 (tui_wrefresh): Declare.
9626 * tui/tui-wingeneral.c (suppress_output): New global.
9627 (tui_suppress_output, ~tui_suppress_output): New constructor and
9628 destructor.
9629 (tui_wrefresh): New function.
9630 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9631 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9632 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9633 method.
9634 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9635 tui_wrefresh.
9636 (tui_data_window::no_refresh): New method.
9637 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9638 (tui_reg_command): Use tui_suppress_output
9639 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9640 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9641 method.
9642 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9643
4f13c1c0
TT
96442020-01-19 Tom Tromey <tom@tromey.com>
9645
9646 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9647 Handle case where symtab is null.
9648
fa47e446
SM
96492020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9650
9651 * linux-fork.c (one_fork_p): Simplify.
9652
26f42329
SM
96532020-01-17 Simon Marchi <simon.marchi@efficios.com>
9654
9655 * top.c (struct qt_args): Remove.
9656 (kill_or_detach): Change return type to void, replace `void *`
9657 parameter with a proper one.
9658 (print_inferior_quit_action): Likewise.
9659 (quit_confirm): Use range-based for loop to iterate over inferiors.
9660 (quit_force): Likewise.
9661
a9ac81b1
SM
96622020-01-17 Simon Marchi <simon.marchi@efficios.com>
9663
9664 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9665 `void *` parameter with proper parameters.
9666 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9667 (print_one_inferior): Change return type to void, replace `void *`
9668 parameter with proper parameters.
9669 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9670 inferiors.
9671 (get_other_inferior): Remove.
9672 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9673 inferiors.
9674
788eca49
SM
96752020-01-17 Simon Marchi <simon.marchi@efficios.com>
9676
9677 * mi/mi-interp.c (report_initial_inferior): Remove.
9678 (mi_interp::init): Use range-based for to iterate over inferiors.
9679
d9bc85b6
SM
96802020-01-17 Simon Marchi <simon.marchi@efficios.com>
9681
9682 * python/py-inferior.c (build_inferior_list): Remove.
9683 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9684
40c94099
CB
96852020-01-16 Christian Biesinger <cbiesinger@google.com>
9686
9687 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9688 (btrace_stitch_trace): Likewise.
9689 * charset.c (intermediate_encoding): Likewise (vaild).
9690 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9691 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9692 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9693
e0cdfe3c
HD
96942020-01-16 Hannes Domani <ssbssa@yahoo.de>
9695
9696 * windows-tdep.c (windows_get_tlb_type):
9697 Add rtl_user_process_parameters type.
9698
790f1718 96992020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9700 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9701
9702 PR build/24805
9703 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9704 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9705 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9706 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9707 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9708 (ps_plog): Redeclare exported functions with default visibility.
9709
3112ed97
NA
97102020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9711
9712 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9713 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9714
8dc3273e
SM
97152020-01-15 Simon Marchi <simon.marchi@efficios.com>
9716
9717 * infcmd.c (post_create_inferior): Use get_thread_regcache
9718 instead of get_current_regcache.
9719
ff47f4f0
TT
97202020-01-14 Tom Tromey <tom@tromey.com>
9721
9722 PR symtab/12535:
9723 * python/python.c (gdbpy_decode_line): Treat empty string the same
9724 as no argument.
9725
975f45b7
TT
97262020-01-14 Tom Tromey <tom@tromey.com>
9727
9728 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9729
25e57356
TT
97302020-01-14 Tom Tromey <tom@tromey.com>
9731
9732 * nat/linux-btrace.c: Don't include <config.h>.
9733 * nat/linux-ptrace.c: Don't include <config.h>.
9734 * nat/x86-linux-dregs.c: Don't include <config.h>.
9735
05ea2a05
TT
97362020-01-14 Tom Tromey <tom@tromey.com>
9737
9738 * configure: Rebuild.
9739 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9740
01027315
TT
97412020-01-14 Tom Tromey <tom@tromey.com>
9742
9743 * nat/x86-linux-dregs.c: Include configh.h.
9744 * nat/linux-ptrace.c: Include configh.h.
9745 * nat/linux-btrace.c: Include configh.h.
9746 * defs.h: Include config.h, bfd.h.
9747 * configure.ac: Don't source common.host.
9748 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9749 * configure: Rebuild.
9750 * acinclude.m4: Update path.
9751 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9752 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9753 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9754 (CLIBS): Add LIBSUPPORT.
9755 (CDEPS): Likewise.
9756 (COMMON_SFILES): Remove gdbsupport files.
9757 (HFILES_NO_SRCDIR): Likewise.
9758 (stamp-version): Update path to create-version.sh.
9759 (ALLDEPFILES): Remove gdbsupport files.
9760
b2ceabe8
TT
97612020-01-14 Tom Tromey <tom@tromey.com>
9762
9763 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9764 USE_WIN32API when needed.
9765 * configure.ac (USE_WIN32API): Don't define.
9766 (WIN32LIBS): Use WIN32APILIBS.
9767 * configure: Rebuild.
9768
25c51f71
TT
97692020-01-14 Tom Tromey <tom@tromey.com>
9770
9771 * configure: Rebuild.
9772 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9773
717c684d
BE
97742020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9775
9776 * skip.c (skip_function_command): Make skip w/o arguments use the
9777 name of the inlined function if pc is inside any inlined function.
9778
7da6a5b9
LM
97792020-01-14 Luis Machado <luis.machado@linaro.org>
9780
9781 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9782 * infrun.c (resume_1): Likewise.
9783 (handle_inferior_event): Remove stale comment.
9784 * linux-nat.c (linux_nat_target::resume): Update comments.
9785 (save_stop_reason): Likewise.
9786 (linux_nat_filter_event): Likewise.
9787 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9788
44e4c775
AB
97892020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9790
9791 * elfread.c (record_minimal_symbol): Set section index to 0 for
9792 non-allocatable sections.
9793
18a8505e
AT
9794
97952020-01-13 Ali Tamur <tamur@google.com>
9796
9797 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9798 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9799 to gdb::optional. Update comments.
9800 (dwo_file): Update comments.
9801 (read_attribute): Update API to take an additional out parameter,
9802 need_reprocess. This is used to mark attributes that need other
9803 attributes (e.g. str_offsets_base) for correct computation which may not
9804 have been read yet.
9805 (read_attribute_reprocess): New function declaration.
9806 (read_addr_index): Likewise.
9807 (read_dwo_str_index): Likewise.
9808 (read_stub_str_index): Likewise.
9809 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9810 (lookup_addr_base): New function definition.
9811 (lookup_ranges_base): Likewise.
9812 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9813 lookup_ranges_base.
9814 (init_cutu_and_read_dies): Update comments.
9815 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9816 unit. This is used to inherit parent's str_offsets_base and addr_base.
9817 Update comments.
9818 (init_cutu_and_read_dies_simple): Reflect API changes.
9819 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9820 (create_cus_hash_table): Change API to take parent compile unit.
9821 Reflect API changes.
9822 (open_and_init_dwo_file): Reflect API changes.
9823 (dwarf2_get_pc_bounds): Update comments.
9824 (dwarf2_record_block_ranges): Likewise.
9825 (read_full_die_1): Change implementation to reprocess attributes that
9826 need str_offsets_base and addr_base.
9827 (partial_die_info::read): Likewise.
9828 (read_attribute_reprocess): New function definition.
9829 (read_attribute_value): Change API to take an additional out parameter,
9830 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9831 when a non-dwo compile unit has index based attributes.
9832 (read_attribute): Reflect API changes.
9833 (read_addr_index_1): Reflect API changes. Update comments.
9834 (dwarf2_read_addr_index_data): Reflect API changes.
9835 (dwarf2_read_addr_index): Likewise.
9836 (read_str_index): Change API and implementation. This becomes a helper
9837 to be used by the new string index related methods. Update error
9838 message and comments.
9839 (read_dwo_str_index): New function definition.
9840 (read_stub_str_index): Likewise.
9841 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9842 * symfile.h (dwarf2_debug_sections): Likewise.
9843 * xcoffread.c (dwarf2_debug_sections): Likewise.
9844
0cac9354
SM
98452020-01-13 Simon Marchi <simon.marchi@efficios.com>
9846
9847 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9848 core_reg_sect type to gdb_byte *.
9849 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9850 * cris-tdep.c (fetch_core_registers): Likewise.
9851 * corelow.c (core_target::get_core_register_section): Change
9852 type of `contents` to gdb::byte_vector.
9853
9a6d629c
AB
98542020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9855
9856 * tui/tui-wingeneral.c (box_win): Position the title in the center
9857 of the border.
9858
d8b2f9e3
SM
98592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9860
9861 * corelow.c (core_target::get_core_register_section): Use
9862 std::vector instead of alloca.
9863
bb564c58
SM
98642020-01-13 Simon Marchi <simon.marchi@efficios.com>
9865
9866 * warning.m4: Add -Wmissing-declarations to build_warnings.
9867 * configure: Re-generate.
9868
6b366111
SM
98692020-01-13 Simon Marchi <simon.marchi@efficios.com>
9870
9871 * python/python.c (init__gdb_module): Add declaration.
9872
6c265988
SM
98732020-01-13 Simon Marchi <simon.marchi@efficios.com>
9874
9875 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9876 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9877 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9878 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9879 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9880 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9881 * ada-exp.y (_initialize_ada_exp): Add declaration.
9882 * ada-lang.c (_initialize_ada_language): Add declaration.
9883 * ada-tasks.c (_initialize_tasks): Add declaration.
9884 * agent.c (_initialize_agent): Add declaration.
9885 * aix-thread.c (_initialize_aix_thread): Add declaration.
9886 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9887 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9888 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9889 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9890 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9891 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9892 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9893 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9894 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9895 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9896 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9897 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9898 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9899 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9900 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9901 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9902 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9903 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9904 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9905 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9906 * annotate.c (_initialize_annotate): Add declaration.
9907 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9908 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9909 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9910 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9911 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9912 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9913 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9914 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9915 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9916 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9917 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9918 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9919 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9920 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9921 * auto-load.c (_initialize_auto_load): Add declaration.
9922 * auxv.c (_initialize_auxv): Add declaration.
9923 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9924 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9925 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9926 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9927 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9928 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9929 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9930 * breakpoint.c (_initialize_breakpoint): Add declaration.
9931 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9932 * btrace.c (_initialize_btrace): Add declaration.
9933 * charset.c (_initialize_charset): Add declaration.
9934 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9935 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9936 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9937 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9938 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9939 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9940 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9941 * coffread.c (_initialize_coffread): Add declaration.
9942 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9943 * compile/compile.c (_initialize_compile): Add declaration.
9944 * complaints.c (_initialize_complaints): Add declaration.
9945 * completer.c (_initialize_completer): Add declaration.
9946 * copying.c (_initialize_copying): Add declaration.
9947 * corefile.c (_initialize_core): Add declaration.
9948 * corelow.c (_initialize_corelow): Add declaration.
9949 * cp-abi.c (_initialize_cp_abi): Add declaration.
9950 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9951 * cp-support.c (_initialize_cp_support): Add declaration.
9952 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9953 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9954 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9955 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9956 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9957 * ctfread.c (_initialize_ctfread): Add declaration.
9958 * d-lang.c (_initialize_d_language): Add declaration.
9959 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9960 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9961 * dbxread.c (_initialize_dbxread): Add declaration.
9962 * dcache.c (_initialize_dcache): Add declaration.
9963 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9964 * disasm.c (_initialize_disasm): Add declaration.
9965 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9966 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9967 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9968 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9969 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9970 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9971 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9972 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9973 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9974 * elfread.c (_initialize_elfread): Add declaration.
9975 * exec.c (_initialize_exec): Add declaration.
9976 * extension.c (_initialize_extension): Add declaration.
9977 * f-lang.c (_initialize_f_language): Add declaration.
9978 * f-valprint.c (_initialize_f_valprint): Add declaration.
9979 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9980 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9981 * filesystem.c (_initialize_filesystem): Add declaration.
9982 * findcmd.c (_initialize_mem_search): Add declaration.
9983 * findvar.c (_initialize_findvar): Add declaration.
9984 * fork-child.c (_initialize_fork_child): Add declaration.
9985 * frame-base.c (_initialize_frame_base): Add declaration.
9986 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9987 * frame.c (_initialize_frame): Add declaration.
9988 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9989 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9990 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9991 * gcore.c (_initialize_gcore): Add declaration.
9992 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9993 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9994 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9995 * gdbarch.c (_initialize_gdbarch): Add declaration.
9996 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9997 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9998 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9999 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10000 * go-lang.c (_initialize_go_language): Add declaration.
10001 * go32-nat.c (_initialize_go32_nat): Add declaration.
10002 * guile/guile.c (_initialize_guile): Add declaration.
10003 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10004 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10005 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10006 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10007 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10008 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10009 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10010 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10011 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10012 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10013 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10014 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10015 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10016 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10017 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10018 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10019 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10020 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10021 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10022 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10023 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10024 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10025 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10026 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10027 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10028 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10029 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10030 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10031 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10032 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10033 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10034 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10035 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10036 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10037 * infcall.c (_initialize_infcall): Add declaration.
10038 * infcmd.c (_initialize_infcmd): Add declaration.
10039 * inflow.c (_initialize_inflow): Add declaration.
10040 * infrun.c (_initialize_infrun): Add declaration.
10041 * interps.c (_initialize_interpreter): Add declaration.
10042 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10043 * jit.c (_initialize_jit): Add declaration.
10044 * language.c (_initialize_language): Add declaration.
10045 * linux-fork.c (_initialize_linux_fork): Add declaration.
10046 * linux-nat.c (_initialize_linux_nat): Add declaration.
10047 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10048 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10049 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10050 * m2-lang.c (_initialize_m2_language): Add declaration.
10051 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10052 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10053 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10054 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10055 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10056 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10057 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10058 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10059 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10060 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10061 * machoread.c (_initialize_machoread): Add declaration.
10062 * macrocmd.c (_initialize_macrocmd): Add declaration.
10063 * macroscope.c (_initialize_macroscope): Add declaration.
10064 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10065 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10066 * maint.c (_initialize_maint_cmds): Add declaration.
10067 * mdebugread.c (_initialize_mdebugread): Add declaration.
10068 * memattr.c (_initialize_mem): Add declaration.
10069 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10070 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10071 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10072 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10073 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10074 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10075 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10076 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10077 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10078 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10079 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10080 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10081 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10082 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10083 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10084 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10085 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10086 * mipsread.c (_initialize_mipsread): Add declaration.
10087 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10088 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10089 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10090 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10091 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10092 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10093 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10094 * nto-procfs.c (_initialize_procfs): Add declaration.
10095 * objc-lang.c (_initialize_objc_language): Add declaration.
10096 * observable.c (_initialize_observer): Add declaration.
10097 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10098 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10099 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10100 * osabi.c (_initialize_gdb_osabi): Add declaration.
10101 * osdata.c (_initialize_osdata): Add declaration.
10102 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10103 * parse.c (_initialize_parse): Add declaration.
10104 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10105 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10106 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10107 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10108 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10109 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10110 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10111 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10112 * printcmd.c (_initialize_printcmd): Add declaration.
10113 * probe.c (_initialize_probe): Add declaration.
10114 * proc-api.c (_initialize_proc_api): Add declaration.
10115 * proc-events.c (_initialize_proc_events): Add declaration.
10116 * proc-service.c (_initialize_proc_service): Add declaration.
10117 * procfs.c (_initialize_procfs): Add declaration.
10118 * producer.c (_initialize_producer): Add declaration.
10119 * psymtab.c (_initialize_psymtab): Add declaration.
10120 * python/python.c (_initialize_python): Add declaration.
10121 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10122 * record-btrace.c (_initialize_record_btrace): Add declaration.
10123 * record-full.c (_initialize_record_full): Add declaration.
10124 * record.c (_initialize_record): Add declaration.
10125 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10126 * regcache.c (_initialize_regcache): Add declaration.
10127 * reggroups.c (_initialize_reggroup): Add declaration.
10128 * remote-notif.c (_initialize_notif): Add declaration.
10129 * remote-sim.c (_initialize_remote_sim): Add declaration.
10130 * remote.c (_initialize_remote): Add declaration.
10131 * reverse.c (_initialize_reverse): Add declaration.
10132 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10133 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10134 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10135 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10136 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10137 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10138 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10139 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10140 Add declaration.
10141 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10142 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10143 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10144 * rust-exp.y (_initialize_rust_exp): Add declaration.
10145 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10146 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10147 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10148 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10149 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10150 * score-tdep.c (_initialize_score_tdep): Add declaration.
10151 * ser-go32.c (_initialize_ser_dos): Add declaration.
10152 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10153 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10154 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10155 * ser-uds.c (_initialize_ser_socket): Add declaration.
10156 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10157 * serial.c (_initialize_serial): Add declaration.
10158 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10159 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10160 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10161 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10162 * skip.c (_initialize_step_skip): Add declaration.
10163 * sol-thread.c (_initialize_sol_thread): Add declaration.
10164 * solib-aix.c (_initialize_solib_aix): Add declaration.
10165 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10166 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10167 * solib-frv.c (_initialize_frv_solib): Add declaration.
10168 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10169 * solib-target.c (_initialize_solib_target): Add declaration.
10170 * solib.c (_initialize_solib): Add declaration.
10171 * source-cache.c (_initialize_source_cache): Add declaration.
10172 * source.c (_initialize_source): Add declaration.
10173 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10174 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10175 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10176 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10177 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10178 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10179 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10180 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10181 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10182 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10183 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10184 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10185 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10186 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10187 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10188 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10189 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10190 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10191 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10192 * stabsread.c (_initialize_stabsread): Add declaration.
10193 * stack.c (_initialize_stack): Add declaration.
10194 * stap-probe.c (_initialize_stap_probe): Add declaration.
10195 * std-regs.c (_initialize_frame_reg): Add declaration.
10196 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10197 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10198 * symfile.c (_initialize_symfile): Add declaration.
10199 * symmisc.c (_initialize_symmisc): Add declaration.
10200 * symtab.c (_initialize_symtab): Add declaration.
10201 * target.c (_initialize_target): Add declaration.
10202 * target-connection.c (_initialize_target_connection): Add
10203 declaration.
10204 * target-dcache.c (_initialize_target_dcache): Add declaration.
10205 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10206 * thread.c (_initialize_thread): Add declaration.
10207 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10208 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10209 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10210 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10211 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10212 * tracectf.c (_initialize_ctf): Add declaration.
10213 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10214 * tracefile.c (_initialize_tracefile): Add declaration.
10215 * tracepoint.c (_initialize_tracepoint): Add declaration.
10216 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10217 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10218 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10219 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10220 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10221 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10222 * tui/tui.c (_initialize_tui): Add declaration.
10223 * typeprint.c (_initialize_typeprint): Add declaration.
10224 * ui-style.c (_initialize_ui_style): Add declaration.
10225 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10226 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10227 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10228 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10229 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10230 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10231 * unittests/filtered_iterator-selftests.c
10232 (_initialize_filtered_iterator_selftests): Add declaration.
10233 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10234 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10235 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10236 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10237 * unittests/main-thread-selftests.c
10238 (_initialize_main_thread_selftests): Add declaration.
10239 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10240 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10241 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10242 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10243 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10244 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10245 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10246 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10247 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10248 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10249 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10250 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10251 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10252 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10253 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10254 declaration.
10255 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10256 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10257 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10258 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10259 * user-regs.c (_initialize_user_regs): Add declaration.
10260 * utils.c (_initialize_utils): Add declaration.
10261 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10262 * valops.c (_initialize_valops): Add declaration.
10263 * valprint.c (_initialize_valprint): Add declaration.
10264 * value.c (_initialize_values): Add declaration.
10265 * varobj.c (_initialize_varobj): Add declaration.
10266 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10267 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10268 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10269 * windows-nat.c (_initialize_windows_nat): Add declaration.
10270 (_initialize_check_for_gdb_ini): Add declaration.
10271 (_initialize_loadable): Add declaration.
10272 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10273 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10274 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10275 * xcoffread.c (_initialize_xcoffread): Add declaration.
10276 * xml-support.c (_initialize_xml_support): Add declaration.
10277 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10278 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10279 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10280 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10281
e2de1eec
SM
102822020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10283
10284 * regformats/regdat.sh: Generate declaration for init function.
10285
e0037b4c
SM
102862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10287
10288 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10289 up.
10290 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10291 close_one_inferior>: New methods.
10292 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10293 pass down target to find_inferior_pid.
10294 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10295 Pass down target to find_inferior_ptid.
10296 (gdbsim_target::create_inferior): Pass down target to
10297 add_thread_silent.
10298 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10299 target down to find_inferior_ptid and switch_to_thread.
10300 (gdbsim_target::close): Update to call close_one_inferior.
10301 (struct resume_data): Remove.
10302 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10303 directly, rather than through a void pointer.
10304 (gdbsim_target::resume): Update to call resume_one_inferior.
10305
58920b5b
SM
103062020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10307
10308 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10309
4ec89149
PA
103102020-01-12 Pedro Alves <palves@redhat.com>
10311
10312 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10313 directly for the current inferior instead of
10314 discard_all_inferiors.
10315 (discard_all_inferiors): Delete.
10316
7c392d1d
TT
103172020-01-11 Tom Tromey <tom@tromey.com>
10318
10319 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10320 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10321 deprecated_safe_get_selected_frame.
10322
d9ebdab7
TBA
103232020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10324
10325 * inferior.c (print_inferior): Switch inferior before printing it.
10326
f3c469b9
PA
103272020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10328 Pedro Alves <palves@redhat.com>
10329
10330 * progspace-and-thread.c (switch_to_program_space_and_thread):
10331 Assert there's an inferior for PSPACE. Use
10332 switch_to_inferior_no_thread to switch the inferior too.
10333 * progspace.c (program_space::~program_space): Call
10334 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10335 (program_space::free_all_objfiles): Don't call clear_symtab_users
10336 here.
10337 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10338
65c574f6
PA
103392020-01-10 Pedro Alves <palves@redhat.com>
10340
10341 * NEWS: Mention multi-target debugging, "info connections", and
10342 "add-inferior -no-connection".
10343
2f4fcf00
PA
103442020-01-10 Pedro Alves <palves@redhat.com>
10345
10346 * infrun.c: Include "target-connection.h".
10347 (check_multi_target_resumption): New.
10348 (proceed): Call it.
10349 * target-connection.c (make_target_connection_string): Make
10350 extern.
10351 * target-connection.h (make_target_connection_string): Declare.
10352
121b3efd
PA
103532020-01-10 Pedro Alves <palves@redhat.com>
10354
10355 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10356 * inferior.c (uiout_field_connection): New function.
10357 (print_inferior): Add new "connection-id" column.
10358 (add_inferior_command): Show connection number/string of added
10359 inferior.
10360 * process-stratum-target.h
10361 (process_stratum_target::connection_string): New virtual method.
10362 (process_stratum_target::connection_number): New field.
10363 * remote.c (remote_target::connection_string): New override.
10364 * target-connection.c: New file.
10365 * target-connection.h: New file.
10366 * target.c (decref_target): Remove process_stratum targets from
10367 the connection list.
10368 (target_stack::push): Add process_stratum targets to the
10369 connection list.
10370
4f837581
PA
103712020-01-10 Pedro Alves <palves@redhat.com>
10372
10373 Revert:
10374 2016-04-12 Pedro Alves <palves@redhat.com>
10375 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10376 Remove references to name.
10377 * serial.h (struct serial) <name>: Delete.
10378
f4ec508e
PA
103792020-01-10 Pedro Alves <palves@redhat.com>
10380
10381 * gdbarch-selftests.c (register_to_value_test): Remove "target
10382 already pushed" check.
10383
5b6d1e4f
PA
103842020-01-10 Pedro Alves <palves@redhat.com>
10385 John Baldwin <jhb@FreeBSD.org>
10386
10387 * aarch64-linux-nat.c
10388 (aarch64_linux_nat_target::thread_architecture): Adjust.
10389 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10390 (task_command_1): Likewise.
10391 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10392 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10393 (aix_thread_target::store_registers)
10394 (aix_thread_target::thread_alive): Adjust.
10395 * amd64-fbsd-tdep.c: Include "inferior.h".
10396 (amd64fbsd_get_thread_local_address): Pass down target.
10397 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10398 thread's gdbarch instead of target_gdbarch.
10399 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10400 get_last_target_status.
10401 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10402 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10403 inferiors.
10404 (update_inserted_breakpoint_locations): Skip if inferiors with no
10405 execution.
10406 (update_global_location_list): When handling moribund locations,
10407 find representative inferior for location's pspace, and use thread
10408 count of its process_stratum target.
10409 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10410 * bsd-uthread.c (bsd_uthread_target::wait): Use
10411 as_process_stratum_target and adjust thread_change_ptid and
10412 add_thread calls.
10413 (bsd_uthread_target::update_thread_list): Use
10414 as_process_stratum_target and adjust find_thread_ptid,
10415 thread_change_ptid and add_thread calls.
10416 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10417 find_thread_ptid call.
10418 * corelow.c (add_to_thread_list): Adjust add_thread call.
10419 (core_target_open): Adjust add_thread_silent and thread_count
10420 calls.
10421 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10422 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10423 * event-top.c (async_disconnect): Pop targets from all inferiors.
10424 * exec.c (add_target_sections): Push exec target on all inferiors
10425 sharing the program space.
10426 (remove_target_sections): Remove the exec target from all
10427 inferiors sharing the program space.
10428 (exec_on_vfork): New.
10429 * exec.h (exec_on_vfork): Declare.
10430 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10431 Pass it down.
10432 (fbsd_nat_target::update_thread_list): Adjust.
10433 (fbsd_nat_target::resume): Adjust.
10434 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10435 down.
10436 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10437 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10438 get_thread_arch_regcache call.
10439 * fork-child.c (gdb_startup_inferior): Pass target down to
10440 startup_inferior and set_executing.
10441 * gdbthread.h (struct process_stratum_target): Forward declare.
10442 (add_thread, add_thread_silent, add_thread_with_info)
10443 (in_thread_list): Add process_stratum_target parameter.
10444 (find_thread_ptid(inferior*, ptid_t)): New overload.
10445 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10446 parameter.
10447 (all_threads()): Delete overload.
10448 (all_threads, all_non_exited_threads): Add process_stratum_target
10449 parameter.
10450 (all_threads_safe): Use brace initialization.
10451 (thread_count): Add process_stratum_target parameter.
10452 (set_resumed, set_running, set_stop_requested, set_executing)
10453 (threads_are_executing, finish_thread_state): Add
10454 process_stratum_target parameter.
10455 (switch_to_thread): Use is_current_thread.
10456 * i386-fbsd-tdep.c: Include "inferior.h".
10457 (i386fbsd_get_thread_local_address): Pass down target.
10458 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10459 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10460 have_inferiors check.
10461 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10462 (inf_ptrace_target::attach): Adjust.
10463 * infcall.c (run_inferior_call): Adjust.
10464 * infcmd.c (run_command_1): Pass target to
10465 scoped_finish_thread_state.
10466 (proceed_thread_callback): Skip inferiors with no execution.
10467 (continue_command): Rename 'all_threads' local to avoid hiding
10468 'all_threads' function. Adjust get_last_target_status call.
10469 (prepare_one_step): Adjust set_running call.
10470 (signal_command): Use user_visible_resume_target. Compare thread
10471 pointers instead of inferior_ptid.
10472 (info_program_command): Adjust to pass down target.
10473 (attach_command): Mark target's 'thread_executing' flag.
10474 (stop_current_target_threads_ns): New, factored out from ...
10475 (interrupt_target_1): ... this. Switch inferior before making
10476 target calls.
10477 * inferior-iter.h
10478 (struct all_inferiors_iterator, struct all_inferiors_range)
10479 (struct all_inferiors_safe_range)
10480 (struct all_non_exited_inferiors_range): Filter on
10481 process_stratum_target too. Remove explicit.
10482 * inferior.c (inferior::inferior): Push dummy target on target
10483 stack.
10484 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10485 Add process_stratum_target parameter, and pass it down.
10486 (have_live_inferiors): Adjust.
10487 (switch_to_inferior_and_push_target): New.
10488 (add_inferior_command, clone_inferior_command): Handle
10489 "-no-connection" parameter. Use
10490 switch_to_inferior_and_push_target.
10491 (_initialize_inferior): Mention "-no-connection" option in
10492 the help of "add-inferior" and "clone-inferior" commands.
10493 * inferior.h: Include "process-stratum-target.h".
10494 (interrupt_target_1): Use bool.
10495 (struct inferior) <push_target, unpush_target, target_is_pushed,
10496 find_target_beneath, top_target, process_target, target_at,
10497 m_stack>: New.
10498 (discard_all_inferiors): Delete.
10499 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10500 (all_inferiors, all_non_exited_inferiors): Add
10501 process_stratum_target parameter.
10502 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10503 (target_last_proc_target): New global.
10504 (follow_fork_inferior): Push target on new inferior. Pass target
10505 to add_thread_silent. Call exec_on_vfork. Handle target's
10506 reference count.
10507 (follow_fork): Adjust get_last_target_status call. Also consider
10508 target.
10509 (follow_exec): Push target on new inferior.
10510 (struct execution_control_state) <target>: New field.
10511 (user_visible_resume_target): New.
10512 (do_target_resume): Call target_async.
10513 (resume_1): Set target's threads_executing flag. Consider resume
10514 target.
10515 (commit_resume_all_targets): New.
10516 (proceed): Also consider resume target. Skip threads of inferiors
10517 with no execution. Commit resumtion in all targets.
10518 (start_remote): Pass current inferior to wait_for_inferior.
10519 (infrun_thread_stop_requested): Consider target as well. Pass
10520 thread_info pointer to clear_inline_frame_state instead of ptid.
10521 (infrun_thread_thread_exit): Consider target as well.
10522 (random_pending_event_thread): New inferior parameter. Use it.
10523 (do_target_wait): Rename to ...
10524 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10525 down.
10526 (threads_are_resumed_pending_p, do_target_wait): New.
10527 (prepare_for_detach): Adjust calls.
10528 (wait_for_inferior): New inferior parameter. Handle it. Use
10529 do_target_wait_1 instead of do_target_wait.
10530 (fetch_inferior_event): Adjust. Switch to representative
10531 inferior. Pass target down.
10532 (set_last_target_status): Add process_stratum_target parameter.
10533 Save target in global.
10534 (get_last_target_status): Add process_stratum_target parameter and
10535 handle it.
10536 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10537 (context_switch): Check inferior_ptid == null_ptid before calling
10538 inferior_thread().
10539 (get_inferior_stop_soon): Pass down target.
10540 (wait_one): Rename to ...
10541 (poll_one_curr_target): ... this.
10542 (struct wait_one_event): New.
10543 (wait_one): New.
10544 (stop_all_threads): Adjust.
10545 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10546 event's target.
10547 (switch_back_to_stepped_thread): Also consider target.
10548 (print_stop_event): Update.
10549 (normal_stop): Update. Also consider the resume target.
10550 * infrun.h (wait_for_inferior): Remove declaration.
10551 (user_visible_resume_target): New declaration.
10552 (get_last_target_status, set_last_target_status): New
10553 process_stratum_target parameter.
10554 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10555 process_stratum_target parameter, and use it.
10556 (clear_inline_frame_state (thread_info*)): New.
10557 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10558 process_stratum_target parameter.
10559 (clear_inline_frame_state (thread_info*)): Declare.
10560 * linux-fork.c (delete_checkpoint_command): Pass target down to
10561 find_thread_ptid.
10562 (checkpoint_command): Adjust.
10563 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10564 instead of just tweaking inferior_ptid.
10565 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10566 (exit_lwp): Pass target down to find_thread_ptid.
10567 (attach_proc_task_lwp_callback): Pass target down to
10568 add_thread/set_running/set_executing.
10569 (linux_nat_target::attach): Pass target down to
10570 thread_change_ptid.
10571 (get_detach_signal): Pass target down to find_thread_ptid.
10572 Consider last target status's target.
10573 (linux_resume_one_lwp_throw, resume_lwp)
10574 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10575 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10576 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10577 (linux_nat_target::async_wait_fd): New.
10578 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10579 target down.
10580 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10581 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10582 * linux-thread-db.c (struct thread_db_info::process_target): New
10583 field.
10584 (add_thread_db_info): Save target.
10585 (get_thread_db_info): New process_stratum_target parameter. Also
10586 match target.
10587 (delete_thread_db_info): New process_stratum_target parameter.
10588 Also match target.
10589 (thread_from_lwp): Adjust to pass down target.
10590 (thread_db_notice_clone): Pass down target.
10591 (check_thread_db_callback): Pass down target.
10592 (try_thread_db_load_1): Always push the thread_db target.
10593 (try_thread_db_load, record_thread): Pass target down.
10594 (thread_db_target::detach): Pass target down. Always unpush the
10595 thread_db target.
10596 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10597 target down. Always unpush the thread_db target.
10598 (find_new_threads_callback, thread_db_find_new_threads_2)
10599 (thread_db_target::update_thread_list): Pass target down.
10600 (thread_db_target::pid_to_str): Pass current inferior down.
10601 (thread_db_target::get_thread_local_address): Pass target down.
10602 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10603 target down.
10604 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10605 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10606 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10607 (procfs_init_inferior): Rename to ...
10608 (procfs_target::procfs_init_inferior): ... this and adjust.
10609 (procfs_target::create_inferior, procfs_notice_thread)
10610 (procfs_do_thread_registers): Adjust.
10611 * ppc-fbsd-tdep.c: Include "inferior.h".
10612 (ppcfbsd_get_thread_local_address): Pass down target.
10613 * proc-service.c (ps_xfer_memory): Switch current inferior and
10614 program space as well.
10615 (get_ps_regcache): Pass target down.
10616 * process-stratum-target.c
10617 (process_stratum_target::thread_address_space)
10618 (process_stratum_target::thread_architecture): Pass target down.
10619 * process-stratum-target.h
10620 (process_stratum_target::threads_executing): New field.
10621 (as_process_stratum_target): New.
10622 * ravenscar-thread.c
10623 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10624 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10625 down.
10626 * record-btrace.c (record_btrace_target::info_record): Adjust.
10627 (record_btrace_target::record_method)
10628 (record_btrace_target::record_is_replaying)
10629 (record_btrace_target::fetch_registers)
10630 (get_thread_current_frame_id, record_btrace_target::resume)
10631 (record_btrace_target::wait, record_btrace_target::stop): Pass
10632 target down.
10633 * record-full.c (record_full_wait_1): Switch to event thread.
10634 Pass target down.
10635 * regcache.c (regcache::regcache)
10636 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10637 process_stratum_target parameter and handle it.
10638 (current_thread_target): New global.
10639 (get_thread_regcache): Add process_stratum_target parameter and
10640 handle it. Switch inferior before calling target method.
10641 (get_thread_regcache): Pass target down.
10642 (get_thread_regcache_for_ptid): Pass target down.
10643 (registers_changed_ptid): Add process_stratum_target parameter and
10644 handle it.
10645 (registers_changed_thread, registers_changed): Pass target down.
10646 (test_get_thread_arch_aspace_regcache): New.
10647 (current_regcache_test): Define a couple local test_target_ops
10648 instances and use them for testing.
10649 (readwrite_regcache): Pass process_stratum_target parameter.
10650 (cooked_read_test, cooked_write_test): Pass mock_target down.
10651 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10652 (get_thread_arch_aspace_regcache): Add process_stratum_target
10653 parameter.
10654 (regcache::target): New method.
10655 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10656 (regcache::registers_changed_ptid): Add process_stratum_target
10657 parameter.
10658 (regcache::m_target): New field.
10659 (registers_changed_ptid): Add process_stratum_target parameter.
10660 * remote.c (remote_state::supports_vCont_probed): New field.
10661 (remote_target::async_wait_fd): New method.
10662 (remote_unpush_and_throw): Add remote_target parameter.
10663 (get_current_remote_target): Adjust.
10664 (remote_target::remote_add_inferior): Push target.
10665 (remote_target::remote_add_thread)
10666 (remote_target::remote_notice_new_inferior)
10667 (get_remote_thread_info): Pass target down.
10668 (remote_target::update_thread_list): Skip threads of inferiors
10669 bound to other targets. (remote_target::close): Don't discard
10670 inferiors. (remote_target::add_current_inferior_and_thread)
10671 (remote_target::process_initial_stop_replies)
10672 (remote_target::start_remote)
10673 (remote_target::remote_serial_quit_handler): Pass down target.
10674 (remote_target::remote_unpush_target): New remote_target
10675 parameter. Unpush the target from all inferiors.
10676 (remote_target::remote_unpush_and_throw): New remote_target
10677 parameter. Pass it down.
10678 (remote_target::open_1): Check whether the current inferior has
10679 execution instead of checking whether any inferior is live. Pass
10680 target down.
10681 (remote_target::remote_detach_1): Pass down target. Use
10682 remote_unpush_target.
10683 (extended_remote_target::attach): Pass down target.
10684 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10685 (remote_target::append_resumption): Pass down target.
10686 (remote_target::append_pending_thread_resumptions)
10687 (remote_target::remote_resume_with_hc, remote_target::resume)
10688 (remote_target::commit_resume): Pass down target.
10689 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10690 (remote_target::interrupt_query)
10691 (remote_target::remove_new_fork_children)
10692 (remote_target::check_pending_events_prevent_wildcard_vcont)
10693 (remote_target::remote_parse_stop_reply)
10694 (remote_target::process_stop_reply): Pass down target.
10695 (first_remote_resumed_thread): New remote_target parameter. Pass
10696 it down.
10697 (remote_target::wait_as): Pass down target.
10698 (unpush_and_perror): New remote_target parameter. Pass it down.
10699 (remote_target::readchar, remote_target::remote_serial_write)
10700 (remote_target::getpkt_or_notif_sane_1)
10701 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10702 down target.
10703 (remote_target::mourn_inferior): Pass down target. Use
10704 remote_unpush_target.
10705 (remote_target::core_of_thread)
10706 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10707 (remote_target::pid_to_exec_file)
10708 (remote_target::thread_handle_to_thread_info): Pass down target.
10709 (remote_target::async_wait_fd): New.
10710 * riscv-fbsd-tdep.c: Include "inferior.h".
10711 (riscv_fbsd_get_thread_local_address): Pass down target.
10712 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10713 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10714 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10715 Adjust.
10716 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10717 * solib-svr4.c (enable_break): Pass down target.
10718 * spu-multiarch.c (parse_spufs_run): Pass down target.
10719 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10720 * target-delegates.c: Regenerate.
10721 * target.c (g_target_stack): Delete.
10722 (current_top_target): Return the current inferior's top target.
10723 (target_has_execution_1): Refer to the passed-in inferior's top
10724 target.
10725 (target_supports_terminal_ours): Check whether the initial
10726 inferior was already created.
10727 (decref_target): New.
10728 (target_stack::push): Incref/decref the target.
10729 (push_target, push_target, unpush_target): Adjust.
10730 (target_stack::unpush): Defref target.
10731 (target_is_pushed): Return bool. Adjust to refer to the current
10732 inferior's target stack.
10733 (dispose_inferior): Delete, and inline parts ...
10734 (target_preopen): ... here. Only dispose of the current inferior.
10735 (target_detach): Hold strong target reference while detaching.
10736 Pass target down.
10737 (target_thread_name): Add assertion.
10738 (target_resume): Pass down target.
10739 (target_ops::beneath, find_target_at): Adjust to refer to the
10740 current inferior's target stack.
10741 (get_dummy_target): New.
10742 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10743 has a thread running.
10744 (initialize_targets): Rename to ...
10745 (_initialize_target): ... this.
10746 * target.h: Include "gdbsupport/refcounted-object.h".
10747 (struct target_ops): Inherit refcounted_object.
10748 (target_ops::shortname, target_ops::longname): Make const.
10749 (target_ops::async_wait_fd): New method.
10750 (decref_target): Declare.
10751 (struct target_ops_ref_policy): New.
10752 (target_ops_ref): New typedef.
10753 (get_dummy_target): Declare function.
10754 (target_is_pushed): Return bool.
10755 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10756 (all_matching_threads_iterator::all_matching_threads_iterator):
10757 Handle filter target.
10758 * thread-iter.h (struct all_matching_threads_iterator, struct
10759 all_matching_threads_range, class all_non_exited_threads_range):
10760 Filter by target too. Remove explicit.
10761 * thread.c (threads_executing): Delete.
10762 (inferior_thread): Pass down current inferior.
10763 (clear_thread_inferior_resources): Pass down thread pointer
10764 instead of ptid_t.
10765 (add_thread_silent, add_thread_with_info, add_thread): Add
10766 process_stratum_target parameter. Use it for thread and inferior
10767 searches.
10768 (is_current_thread): New.
10769 (thread_info::deletable): Use it.
10770 (find_thread_ptid, thread_count, in_thread_list)
10771 (thread_change_ptid, set_resumed, set_running): New
10772 process_stratum_target parameter. Pass it down.
10773 (set_executing): New process_stratum_target parameter. Pass it
10774 down. Adjust reference to 'threads_executing'.
10775 (threads_are_executing): New process_stratum_target parameter.
10776 Adjust reference to 'threads_executing'.
10777 (set_stop_requested, finish_thread_state): New
10778 process_stratum_target parameter. Pass it down.
10779 (switch_to_thread): Also match inferior.
10780 (switch_to_thread): New process_stratum_target parameter. Pass it
10781 down.
10782 (update_threads_executing): Reimplement.
10783 * top.c (quit_force): Pop targets from all inferior.
10784 (gdb_init): Don't call initialize_targets.
10785 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10786 Declare.
10787 (windows_add_thread, windows_delete_thread): Adjust.
10788 (get_windows_debug_event): Rename to ...
10789 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10790 * tracefile-tfile.c (tfile_target_open): Pass down target.
10791 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10792 Forward declare.
10793 (switch_to_thread): Add process_stratum_target parameter.
10794 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10795 parameter. Use it.
10796 (mi_on_resume): Pass target down.
10797 * nat/fork-inferior.c (startup_inferior): Add
10798 process_stratum_target parameter. Pass it down.
10799 * nat/fork-inferior.h (startup_inferior): Add
10800 process_stratum_target parameter.
10801 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10802
75c6c844
PA
108032020-01-10 Pedro Alves <palves@redhat.com>
10804
10805 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10806 directly. Instead find the first thread in the thread list and
10807 use switch_to_thread.
10808
78f2c40a
PA
108092020-01-10 Pedro Alves <palves@redhat.com>
10810
10811 * remote.c (remote_target::remote_add_inferior): Don't bind a
10812 process to the current inferior if the current inferior is already
10813 bound to a process.
10814
e7af6c70
TBA
108152020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10816 Pedro Alves <palves@redhat.com>
10817
10818 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10819 If no process is specified, return null_ptid instead of
10820 inferior_ptid.
10821 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10822 TARGET_WAITKIND_SIGNALLED with no pid.
10823
31ba933e
PA
108242020-01-10 Pedro Alves <palves@redhat.com>
10825
10826 * remote.c (first_remote_resumed_thread): New.
10827 (remote_target::wait_as): Use it as default event_ptid instead of
10828 inferior_ptid.
10829
735fc2ca
PA
108302020-01-10 Pedro Alves <palves@redhat.com>
10831
10832 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10833
c17e02e1
PA
108342020-01-10 Pedro Alves <palves@redhat.com>
10835
10836 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10837 not -1.
10838
ab1ddbcf
PA
108392020-01-10 Pedro Alves <palves@redhat.com>
10840
10841 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10842 ptid to get_last_target_status.
10843 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10844 ptid to get_last_target_status.
10845 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10846 get_last_target_status.
10847 (info_program_command): Don't pass a target_waitstatus to
10848 get_last_target_status.
10849 * infrun.c (init_wait_for_inferior): Use
10850 nullify_last_target_wait_ptid.
10851 (get_last_target_status): Handle nullptr arguments.
10852 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10853 (print_stop_event): Don't pass a ptid to get_last_target_status.
10854 (normal_stop): Don't pass a ptid to get_last_target_status.
10855 * infrun.h (get_last_target_status, set_last_target_status): Move
10856 comments here and update.
10857 (nullify_last_target_wait_ptid): Declare.
10858 * linux-fork.c (fork_load_infrun_state): Remove local extern
10859 declaration of nullify_last_target_wait_ptid.
10860 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10861 to get_last_target_status.
10862
f3f8ece4
PA
108632020-01-10 Pedro Alves <palves@redhat.com>
10864
10865 * gdbthread.h (scoped_restore_current_thread)
10866 <dont_restore, restore, m_dont_restore>: Declare.
10867 * thread.c (thread_alive): Add assertion. Return bool.
10868 (switch_to_thread_if_alive): New.
10869 (prune_threads): Switch inferior/thread.
10870 (print_thread_info_1): Switch thread before calling target methods.
10871 (scoped_restore_current_thread::restore): New, factored out from
10872 ...
10873 (scoped_restore_current_thread::~scoped_restore_current_thread):
10874 ... this.
10875 (scoped_restore_current_thread::scoped_restore_current_thread):
10876 Add assertion.
10877 (thread_apply_all_command, thread_select): Use
10878 switch_to_thread_if_alive.
10879 * infrun.c (proceed, restart_threads, handle_signal_stop)
10880 (switch_back_to_stepped_thread): Switch current thread before
10881 calling target methods.
10882
db2d40f7
PA
108832020-01-10 Pedro Alves <palves@redhat.com>
10884
10885 * inferior.c (switch_to_inferior_no_thread): New function,
10886 factored out from ...
10887 (inferior_command): ... here.
10888 * inferior.h (switch_to_inferior_no_thread): Declare.
10889 * mi/mi-main.c (run_one_inferior): Use
10890 switch_to_inferior_no_thread.
10891
bd420a2d
PA
108922020-01-10 Pedro Alves <palves@redhat.com>
10893
10894 * infcmd.c (kill_command): Remove dead code.
10895
ddf5db90
PA
108962020-01-10 Pedro Alves <palves@redhat.com>
10897
10898 * remote.c (remote_target::mourn_inferior): No longer check
10899 whether the target is running.
10900
5018ce90
PA
109012020-01-10 Pedro Alves <palves@redhat.com>
10902
10903 * corelow.c (core_target::has_execution): Change parameter type to
10904 inferior pointer.
10905 * inferior.c (number_of_live_inferiors): Use
10906 inferior::has_execution instead of target_has_execution_1.
10907 * inferior.h (inferior::has_execution): New.
10908 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10909 inferior::has_execution instead of target_has_execution_1.
10910 * process-stratum-target.c
10911 (process_stratum_target::has_execution): Change parameter type to
10912 inferior pointer. Check the inferior's PID instead of
10913 inferior_ptid.
10914 * process-stratum-target.h
10915 (process_stratum_target::has_execution): Change parameter type to
10916 inferior pointer.
10917 * record-full.c (record_full_core_target::has_execution): Change
10918 parameter type to inferior pointer.
10919 * target.c (target_has_execution_1): Change parameter type to
10920 inferior pointer.
10921 (target_has_execution_current): Adjust.
10922 * target.h (target_ops::has_execution): Change parameter type to
10923 inferior pointer.
10924 (target_has_execution_1): Change parameter type to inferior
10925 pointer. Change return type to bool.
10926 * tracefile.h (tracefile_target::has_execution): Change parameter
10927 type to inferior pointer.
10928
74375d18
PA
109292020-01-10 Pedro Alves <palves@redhat.com>
10930
10931 * exceptions.c (print_flush): Remove current_top_target() check.
10932
acdf84a6
PA
109332020-01-10 Pedro Alves <palves@redhat.com>
10934
10935 * remote.c (show_remote_exec_file): Show the current inferior's
10936 exec-file instead of the command variable's value.
10937
ec506636
PA
109382020-01-10 Pedro Alves <palves@redhat.com>
10939
10940 * record-full.c (record_full_resume_ptid): New global.
10941 (record_full_target::resume): Set it.
10942 (record_full_wait_1): Use record_full_resume_ptid instead of
10943 inferior_ptid.
10944
873657b9
PA
109452020-01-10 Pedro Alves <palves@redhat.com>
10946
10947 * gdbthread.h (scoped_restore_current_thread)
10948 <dont_restore, restore, m_dont_restore>: Declare.
10949 * thread.c (thread_alive): Add assertion. Return bool.
10950 (switch_to_thread_if_alive): New.
10951 (prune_threads): Switch inferior/thread.
10952 (print_thread_info_1): Switch thread before calling target methods.
10953 (scoped_restore_current_thread::restore): New, factored out from
10954 ...
10955 (scoped_restore_current_thread::~scoped_restore_current_thread):
10956 ... this.
10957 (scoped_restore_current_thread::scoped_restore_current_thread):
10958 Add assertion.
10959 (thread_apply_all_command, thread_select): Use
10960 switch_to_thread_if_alive.
10961
7f0ae84c
GB
109622020-01-10 George Barrett <bob@bob131.so>
10963
10964 * stap-probe.c (stap_modify_semaphore): Don't check for null
10965 semaphores.
10966 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10967 for null semaphores.
10968
f5a7c406
AB
109692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10970
10971 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10972 all source windows, and maintain horizontal scroll status while
10973 doing so.
10974
9ae6bf64
TT
109752020-01-09 Tom Tromey <tom@tromey.com>
10976
10977 PR tui/18932:
10978 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10979 update_source_window, not print_source_lines.
10980
b2efe70c
AB
109812020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10982
10983 * tui/tui.c (tui_enable): Register tui hooks after calling
10984 tui_display_main.
10985
5f23a082
CB
109862020-01-09 Christian Biesinger <cbiesinger@google.com>
10987
10988 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10989
3061113b
SM
109902020-01-08 Simon Marchi <simon.marchi@efficios.com>
10991
10992 * thread.c (print_thread_info_1): Fix indentation.
10993
57d75002
CB
109942020-01-09 Christian Biesinger <cbiesinger@google.com>
10995
10996 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10997 unique_xmalloc_ptr outside the if to always free the demangled name.
10998
6a053cb1
TT
109992020-01-08 Tom Tromey <tromey@adacore.com>
11000
11001 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11002 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11003 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11004 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11005 Remove.
11006 (section_offsets): New typedef.
11007 * symtab.c (fixup_section, get_msymbol_address): Update.
11008 * symmisc.c (dump_msymbols): Update.
11009 * symfile.h (relative_addr_info_to_section_offsets)
11010 (symfile_map_offsets_to_segments): Update.
11011 * symfile.c (build_section_addr_info_from_objfile)
11012 (init_objfile_sect_indices): Update.
11013 (struct place_section_arg): Change type of "offsets".
11014 (place_section): Update.
11015 (relative_addr_info_to_section_offsets): Change type of
11016 "section_offsets". Remove "num_sections" parameter.
11017 (default_symfile_offsets, syms_from_objfile_1)
11018 (set_objfile_default_section_offset): Update.
11019 (reread_symbols): No need to preserve section offsets by hand.
11020 (symfile_map_offsets_to_segments): Change type of "offsets".
11021 * stap-probe.c (relocate_address): Update.
11022 * stabsread.h (process_one_symbol): Update.
11023 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11024 (solib_target_relocate_section_addresses): Update.
11025 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11026 Update.
11027 * solib-frv.c (frv_relocate_main_executable): Update.
11028 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11029 * solib-aix.c (solib_aix_get_section_offsets): Change return
11030 type.
11031 (solib_aix_solib_create_inferior_hook): Update.
11032 * remote.c (remote_target::get_offsets): Update.
11033 * psymtab.c (find_pc_sect_psymtab): Update.
11034 * psympriv.h (struct partial_symbol) <address, text_low,
11035 text_high>: Update.
11036 * objfiles.h (obj_section_offset): Update.
11037 (struct objfile) <section_offsets>: Change type.
11038 <num_sections>: Remove.
11039 (objfile_relocate): Update.
11040 * objfiles.c (entry_point_address_query): Update
11041 (relocate_one_symbol): Change type of "section_offsets".
11042 (objfile_relocate1, objfile_relocate1): Change type of
11043 "new_offsets".
11044 (objfile_rebase1): Update.
11045 * mipsread.c (mipscoff_symfile_read): Update.
11046 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11047 parameter.
11048 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11049 (parse_external, psymtab_to_symtab_1): Update.
11050 * machoread.c (macho_symfile_offsets): Update.
11051 * ia64-tdep.c (ia64_find_unwind_table): Update.
11052 * hppa-tdep.c (read_unwind_info): Update.
11053 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11054 * dwarf2read.c (create_addrmap_from_index)
11055 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11056 (process_psymtab_comp_unit_reader, add_partial_symbol)
11057 (add_partial_subprogram, process_full_comp_unit)
11058 (read_file_scope, read_func_scope, read_lexical_block_scope)
11059 (read_call_site_scope, dwarf2_rnglists_process)
11060 (dwarf2_ranges_process, dwarf2_ranges_read)
11061 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11062 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11063 Update.
11064 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11065 Update.
11066 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11067 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11068 (process_one_symbol): Change type of "section_offsets".
11069 * ctfread.c (get_objfile_text_range): Update.
11070 * coffread.c (coff_symtab_read, enter_linenos)
11071 (process_coff_symbol): Update.
11072 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11073 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11074
456e800a
TT
110752020-01-08 Tom Tromey <tromey@adacore.com>
11076
11077 * dwarf2read.c (parse_macro_definition): Use std::string.
11078 (parse_macro_definition): Likewise.
11079
6dfa2fc2
TT
110802020-01-08 Tom Tromey <tromey@adacore.com>
11081
11082 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11083 (ATTR_ALLOC_CHUNK): Remove.
11084
421d1616
TT
110852020-01-08 Tom Tromey <tromey@adacore.com>
11086
11087 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11088
43816ebc
TT
110892020-01-08 Tom Tromey <tromey@adacore.com>
11090
11091 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11092 (dwarf2_compute_name, open_dwo_file): Likewise.
11093 (process_enumeration_scope): Use std::vector.
11094 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11095 (partial_die_info::fixup, dwarf2_start_subfile)
11096 (guess_full_die_structure_name, dwarf2_name): Likewise.
11097 (determine_prefix): Update.
11098 (guess_full_die_structure_name): Make return type const.
11099 (partial_die_full_name): Return unique_xmalloc_ptr.
11100 (DW_FIELD_ALLOC_CHUNK): Remove.
11101
4212d509
TT
111022020-01-07 Tom Tromey <tromey@adacore.com>
11103
11104 PR build/24937:
11105 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11106
06a6207a
JT
111072020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11108
11109 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11110
153d79c4
AB
111112020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11112
11113 * stack.c (print_frame_info): Move disassemble_next_line code
11114 inside source_print block.
11115
66182876
EZ
111162020-01-06 Eli Zaretskii <eliz@gnu.org>
11117
11118 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11119 gdb/signals.h, as we are now using native signal symbols.
11120
cbfa8581
SV
111212020-01-06 Shahab Vahedi <shahab@synopsys.com>
11122
11123 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11124 overflow by an early check of content vs threshold.
aac66a4c 11125 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11126 Likewise.
11127
3f602821
EZ
111282020-01-06 Eli Zaretskii <eliz@gnu.org>
11129
11130 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11131
a08c904d
JT
111322020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11133
11134 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11135 export table if no section contains it's RVA.
11136
89a65580
EZ
111372020-01-06 Eli Zaretskii <eliz@gnu.org>
11138
11139 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11140
8b7fcda2
HD
111412020-01-06 Hannes Domani <ssbssa@yahoo.de>
11142
11143 * source.c (print_source_lines_base): Set last_line_listed.
11144
a61b4f69
SV
111452020-01-06 Shahab Vahedi <shahab@synopsys.com>
11146
11147 * tui/tui-disasm.c: Remove trailing spaces.
11148
559e7e50
EZ
111492020-01-06 Eli Zaretskii <eliz@gnu.org>
11150 Pedro Alves <palves@redhat.com>
11151
11152 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11153 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11154 (windows_gdb_signal_to_target): New function, uses the above
11155 enumeration to convert GDB internal signal codes to equivalent
11156 Windows codes.
11157 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11158 * windows-nat.c: Include "gdb_wait.h".
11159 (get_windows_debug_event): Extract the fatal exception from the
11160 exit status and convert to the equivalent Posix signal number.
11161 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11162 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11163 * gdbsupport/gdb_wait.c: New file, implements
11164 windows_status_to_termsig.
11165 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11166 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11167
f2302a34
AB
111682020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11169
11170 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11171 show_layout.
11172
6a5206eb
LM
111732020-01-05 Luis Machado <luis.machado@linaro.org>
11174
11175 * aarch64-linux-nat.c
11176 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11177 and bfd_mach_aarch64.
11178
6ec1d75e
PW
111792020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11180
11181 * ui-file.c (stdio_file::can_emit_style_escape)
11182 (tee_file::can_emit_style_escape): Ensure style is used also on
11183 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11184 to gdb_stdout.
11185 * main.c (set_gdb_data_directory): Use file style to output the
11186 warning that the given pathname is not a directory.
11187 * top.c (show_history_filename, gdb_safe_append_history)
11188 (show_gdb_datadir): Use file style.
11189
44f81a76
HD
111902020-01-03 Hannes Domani <ssbssa@yahoo.de>
11191
11192 * solib-target.c (struct lm_info_target):
11193 Change offsets to be a unique_xmalloc_ptr.
11194 (solib_target_relocate_section_addresses): Update.
11195
25057eb0
HD
111962020-01-03 Hannes Domani <ssbssa@yahoo.de>
11197
11198 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11199
6e2118f5
BE
112002020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11201
11202 * MAINTAINERS (Write After Approval): Add myself.
11203
8133c7dc
LM
112042020-01-02 Luis Machado <luis.machado@linaro.org>
11205
11206 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11207 Cell BE architecture.
11208 * target.h (struct target_ops) <thread_architecture>: Likewise.
11209
48189bec
HD
112102020-01-01 Hannes Domani <ssbssa@yahoo.de>
11211
11212 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11213
ead1063b
HD
112142020-01-01 Hannes Domani <ssbssa@yahoo.de>
11215
11216 * MAINTAINERS (Write After Approval): Add myself.
11217
e5d78223
JB
112182020-01-01 Joel Brobecker <brobecker@adacore.com>
11219
11220 * gdbarch.sh: Update copyright year range of generated files.
11221
b811d2c2
JB
112222020-01-01 Joel Brobecker <brobecker@adacore.com>
11223
11224 Update copyright year range in all GDB files.
11225
5f4def5c
JB
112262020-01-01 Joel Brobecker <brobecker@adacore.com>
11227
11228 * copyright.py: Convert to Python 3.
11229
51fd4002
JB
112302020-01-01 Joel Brobecker <brobecker@adacore.com>
11231
11232 * copyright.py: Adapt after move of gnulib directory from gdb
11233 directory to toplevel directory.
11234
5fb651f2
JB
112352020-01-01 Joel Brobecker <brobecker@adacore.com>
11236
11237 * copyright.py (main): Exit if run from the wrong directory.
11238
5dd8bf88
JB
112392020-01-01 Joel Brobecker <brobecker@adacore.com>
11240
11241 * top.c (print_gdb_version): Change copyright year to 2020.
11242
9f71dacb 112432020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11244
9f71dacb 11245 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11246
9f71dacb 11247For older changes see ChangeLog-2019.
c906108c
SS
11248\f
11249Local Variables:
11250mode: change-log
11251left-margin: 8
11252fill-column: 74
11253version-control: never
57da7796 11254coding: utf-8
c906108c 11255End: