]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: handle undefined properties in ada_discrete_type_{low,high}_bound
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d1fd641e
SM
12020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2
3 PR ada/26235
4 * gdbtypes.c (ada_discrete_type_low_bound,
5 ada_discrete_type_high_bound): Handle undefined bounds.
6
1de14d77
KR
72020-07-21 Kamil Rytarowski <n54@gmx.com>
8
9 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
10 declaration.
11 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
12 function.
13
ed810cc7
JB
142020-07-20 John Baldwin <jhb@FreeBSD.org>
15
16 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
17 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
18 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
19 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
20 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
21 method.
22
ae5369e7
LC
232020-07-20 Ludovic Courtès <ludo@gnu.org>
24
25 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
26 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
27 which are deprecated in Guile 3.0.
28 * configure.ac (try_guile_versions): Add "guile-3.0".
29 * configure (try_guile_versions): Regenerate.
30 * NEWS: Update entry.
31
68cf161c
LC
322020-07-20 Ludovic Courtès <ludo@gnu.org>
33 Doug Evans <dje@google.com>
34
35 PR gdb/21104
36 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
37 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
38 USING_GUILE_BEFORE_2_2.
39 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
40 Change type to 'scm_t_port_type *'.
41 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
42 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
43 parameter and honor it. Update callers.
44 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
45 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
46 functions.
47 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
48 USING_GUILE_BEFORE_2_2.
49 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
50 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
51 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
52 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
53 and 'SCM_PORT_TYPE'.
54 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
55 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
56 (gdbscm_memory_port_read, gdbscm_memory_port_write)
57 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
58 [!USING_GUILE_BEFORE_2_2]: New functions.
59 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
60 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
61 'gdbscm_memory_port_read'.
62 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
63 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
64 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
65 function.
66 (ioscm_init_memory_port): Remove.
67 (ioscm_init_memory_port_stream): New function
68 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
69 function.
70 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
71 Return scm_from_uint (0).
72 (gdbscm_set_memory_port_read_buffer_size_x)
73 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
74 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
75 Return scm_from_uint (0).
76 (gdbscm_set_memory_port_write_buffer_size_x)
77 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
78 * configure.ac (try_guile_versions): Add "guile-2.2".
79 * configure: Regenerate.
80 * NEWS: Add entry.
81
aee91db3
TT
822020-07-18 Tom Tromey <tom@tromey.com>
83
84 * linux-nat.c (linux_multi_process): Remove.
85 (linux_nat_target::supports_multi_process): Return true.
86
0e267416
AB
872020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
88
89 * arch/riscv.c (riscv_tdesc_cache): Change map type.
90 (riscv_lookup_target_description): Return pointer out of
91 unique_ptr.
92 * target-descriptions.c (allocate_target_description): Add
93 comment.
94 (target_desc_deleter::operator()): Likewise.
95 * target-descriptions.h (struct target_desc_deleter): Moved to
96 gdbsupport/tdesc.h.
97 (target_desc_up): Likewise.
98
f80c8ec4
TT
992020-07-17 Tom Tromey <tromey@adacore.com>
100
101 * linux-nat.c (linux_nat_target::supports_non_stop)
102 (linux_nat_target::always_non_stop_p): Use "true".
103 (linux_nat_target::supports_disable_randomization): Use "true" and
104 "false".
105
d0ce17d8
CT
1062020-07-16 Caroline Tice <cmtice@google.com>
107
108 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
109 (RNGLIST_HEADER_SIZE64): New constant definition.
110 (struct dwop_section_names): Add rnglists_dwo.
111 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
112 (struct loclist_header): Rename to 'loclists_rnglists_header'.
113 (struct dwo_sections): Add rnglists field.
114 (read_attribut_reprocess): Add tag parameter.
115 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
116 (cu_debug_rnglists_section): New function (decl & definition).
117 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
118 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
119 die whose range is being checked; get rnglist section from
120 cu_debug_rnglists_section, to get from either objfile or dwo file as
121 appropriate. Add cases for DW_RLE_base_addressx,
122 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
123 the base address to DW_RLE_offset_pairs (not to all ranges), moving
124 test inside if-condition and updating complaint message.
125 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
126 dwarf2_rnglists_process.
127 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
128 dwarf2_ranges_process.
129 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
130 need_ranges_base and update comment appropriately. Also pass die tag
131 to dwarf2_ranges_read.
132 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
133 need_ranges_base and update comment appropriately. Also pass die tag
134 to dwarf2_ranges_process.
135 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
136 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
137 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
138 need_ranges_base and update comment appropriately. Also pass die tag
139 to read_attribute_reprocess and dwarf2_ranges_read.
140 (read_loclist_header): Rename function to read_loclists_rnglists_header,
141 and update function comment appropriately.
142 (read_loclist_index): Call read_loclists_rnglists_header instead of
143 read_loclist_header.
144 (read_rnglist_index): New function.
145 (read_attribute_reprocess): Add tag parameter. Add code for
146 DW_FORM_rnglistx, passing tag to read_rnglist_index.
147 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
148
3dcc261c
AB
1492020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
150
151 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
152 being resolved.
153
ccb9eba6
AB
1542020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
155
156 * arch-utils.c (show_architecture): Update formatting of messages.
157
cf88be68
SM
1582020-07-12 Simon Marchi <simon.marchi@efficios.com>
159
160 * gdbtypes.h (struct type) <bounds>: Handle array and string
161 types.
162 * ada-lang.c (assign_aggregate): Use type::bounds on
163 array/string type.
164 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
165 * c-varobj.c (c_number_of_children): Likewise.
166 (c_describe_child): Likewise.
167 * eval.c (evaluate_subexp_for_sizeof): Likewise.
168 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
169 (f_type_print_base): Likewise.
170 * f-valprint.c (f77_array_offset_tbl): Likewise.
171 (f77_get_upperbound): Likewise.
172 (f77_print_array_1): Likewise.
173 * guile/scm-type.c (gdbscm_type_range): Likewise.
174 * m2-typeprint.c (m2_array): Likewise.
175 (m2_is_long_set_of_type): Likewise.
176 * m2-valprint.c (get_long_set_bounds): Likewise.
177 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
178 * python/py-type.c (typy_range): Likewise.
179 * rust-lang.c (rust_internal_print_type): Likewise.
180 * type-stack.c (type_stack::follow_types): Likewise.
181 * valarith.c (value_subscripted_rvalue): Likewise.
182 * valops.c (value_cast): Likewise.
183
509971ae
SM
1842020-07-12 Simon Marchi <simon.marchi@efficios.com>
185
186 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
187 callers to use the equivalent accessor methods.
188
107406b7
SM
1892020-07-12 Simon Marchi <simon.marchi@efficios.com>
190
191 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
192 (struct type) <bit_stride>: New method.
193 (TYPE_BIT_STRIDE): Remove.
194 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
195
bb789949
SM
1962020-07-12 Simon Marchi <simon.marchi@efficios.com>
197
198 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
199 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
200 callers to use the equivalent accessor methods instead.
201
39498edb
SM
2022020-07-12 Simon Marchi <simon.marchi@efficios.com>
203
204 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
205 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
206 callers to use the equivalent accessor methods instead.
207
3b606f38
SM
2082020-07-12 Simon Marchi <simon.marchi@efficios.com>
209
210 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
211 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
212 to use dynamic_prop::kind.
213
064d9cb9
SM
2142020-07-12 Simon Marchi <simon.marchi@efficios.com>
215
216 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
217 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
218 to get the bound property's kind and check against
219 PROP_UNDEFINED.
220
5537ddd0
SM
2212020-07-12 Simon Marchi <simon.marchi@efficios.com>
222
223 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
224 all callers to use type::range_bounds followed by
225 dynamic_prop::{low,high}.
226
8c2e4e06
SM
2272020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
228
229 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
230 const_val, set_const_val, baton, set_locexpr, set_loclist,
231 set_addr_offset, variant_parts, set_variant_parts,
232 original_type, set_original_type>: New methods.
233 <kind>: Rename to...
234 <m_kind>: ... this. Update all users to use the new methods
235 instead.
236 <data>: Rename to...
237 <m_data>: ... this. Update all users to use the new methods
238 instead.
239
7c6f2712
SM
2402020-07-12 Simon Marchi <simon.marchi@efficios.com>
241
242 * gdbtypes.c (get_discrete_bounds): Return failure if
243 the range type's bounds are not both defined and constant
244 values.
245 (get_array_bounds): Update comment. Remove undefined bound check.
246
599088e3
SM
2472020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
248
249 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
250 the type::bounds method directly.
251
c4dfcb36
SM
2522020-07-12 Simon Marchi <simon.marchi@efficios.com>
253
254 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
255 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
256 are used to set the range type's bounds to use set_bounds.
257
0a278aa7
PW
2582020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
259
260 * exec.c (_initialize_exec): Update exec-file-mismatch help.
261
cce20f10
PA
2622020-07-10 Pedro Alves <pedro@palves.net>
263
264 * gdbthread.h (inferior_ref): Define.
265 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
266 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
267 * thread.c
268 (scoped_restore_current_thread::restore):
269 Adjust to gdb::ref_ptr.
270 (scoped_restore_current_thread::~scoped_restore_current_thread):
271 Remove manual decref handling.
272 (scoped_restore_current_thread::scoped_restore_current_thread):
273 Adjust to use
274 inferior_ref::new_reference/thread_info_ref::new_reference.
275 Incref the thread before calling get_frame_id instead of after.
276 Let TARGET_CLOSE_ERROR propagate.
277
6d7aa592
PA
2782020-07-10 Pedro Alves <pedro@palves.net>
279
280 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
281 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
282 NOT_AVAILABLE_ERROR.
283 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
284 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
285
b3e3a4c1
SM
2862020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
287 Pedro Alves <pedro@palves.net>
288
289 PR gdb/26199
290 * infrun.c (threads_are_resumed_pending_p): Delete.
291 (do_target_wait): Remove threads_are_executing and
292 threads_are_resumed_pending_p checks from the inferior_matches
293 lambda. Update comments.
294
d6cc5d98
PA
2952020-07-10 Pedro Alves <pedro@palves.net>
296
297 PR gdb/26199
298 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
299 executing threads.
300
7d3badc6
PA
3012020-07-10 Pedro Alves <pedro@palves.net>
302
303 PR gdb/26199
304 * infrun.c (handle_no_resumed): Handle multiple targets.
305
42bd97a6
PA
3062020-07-10 Pedro Alves <pedro@palves.net>
307
308 PR gdb/26199
309 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
310 target_is_async_p.
311
43667cc6
PA
3122020-07-10 Pedro Alves <pedro@palves.net>
313
314 PR gdb/26199
315 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
316 threads, not all threads.
317
96118d11
PA
3182020-07-10 Pedro Alves <pedro@palves.net>
319
320 PR gdb/26199
321 * remote.c (remote_target::open_1): Pass remote target pointer as
322 data to create_async_event_handler.
323 (remote_async_inferior_event_handler): Mark async event handler
324 before returning if the remote target still has either pending
325 events or unacknowledged notifications.
326
54904d81
JB
3272020-07-10 John Baldwin <jhb@FreeBSD.org>
328
329 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
330 declaration.
331 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
332 function.
333
f37e5866
JB
3342020-07-09 John Baldwin <jhb@FreeBSD.org>
335
336 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
337 inferior_ptid.
338
fc238d4a
JB
3392020-07-09 John Baldwin <jhb@FreeBSD.org>
340
341 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
342 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
343 AT_FREEBSD_PS_STRINGS.
344
6e2469ff
HD
3452020-07-08 Hannes Domani <ssbssa@yahoo.de>
346
347 * auto-load.c (auto_load_objfile_script_1): Convert drive part
348 of debugfile path on Windows.
349
d1076c41
JB
3502020-07-08 John Baldwin <jhb@FreeBSD.org>
351
352 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
353 argument to 'data'.
354
15f3b077
TT
3552020-07-08 Tom Tromey <tromey@adacore.com>
356
357 * ada-lang.c (ada_exception_message_1): Use read_memory.
358
9fc501fd
AB
3592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 PR python/22748
362 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
363 special handling for inline frames.
364 * findvar.c (value_of_register_lazy): Skip inline frames when
365 creating lazy register values.
366 * frame.c (frame_id_computed_p): Delete definition.
367 * frame.h (frame_id_computed_p): Delete declaration.
368
64cb3757
AB
3692020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
370
371 * NEWS: Mention additions to Python API.
372 * python/py-arch.c (archpy_register_groups): New function.
373 (arch_object_methods): Add 'register_groups' method.
374 * python/py-registers.c (reggroup_iterator_object): New struct.
375 (reggroup_object): New struct.
376 (gdbpy_new_reggroup): New function.
377 (gdbpy_reggroup_to_string): New function.
378 (gdbpy_reggroup_name): New function.
379 (gdbpy_reggroup_iter): New function.
380 (gdbpy_reggroup_iter_next): New function.
381 (gdbpy_new_reggroup_iterator): New function
382 (gdbpy_initialize_registers): Register new types.
383 (reggroup_iterator_object_type): Define new Python type.
384 (gdbpy_reggroup_getset): New static global.
385 (reggroup_object_type): Define new Python type.
386 * python/python-internal.h
387
0f767f94
AB
3882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
389
390 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
391 * python/py-arch.c (archpy_registers): New function.
392 (arch_object_methods): Add 'registers' method.
393 * python/py-registers.c: New file.
394 * python/python-internal.h
395 (gdbpy_new_register_descriptor_iterator): Declare.
396 (gdbpy_initialize_registers): Declare.
397 * python/python.c (do_start_initialization): Call
398 gdbpy_initialize_registers.
399 * NEWS: Mention additions to the Python API.
400
87dbc774
AB
4012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * NEWS: Mention new Python API method.
404 * python/py-unwind.c (pending_framepy_architecture): New function.
405 (pending_frame_object_methods): Add architecture method.
406
3bc98c0c
AB
4072020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * gdbarch.c: Regenerate.
410 * gdbarch.h: Regenerate.
411 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
412 (gdbarch_data): Use internal_error for the case where
413 deprecated_set_gdbarch_data was originally needed.
414 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
415 and use passed in obstack.
416 (libunwind_frame_set_descr): Should no longer get back NULL from
417 gdbarch_data.
418 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
419 type.
420 * user-regs.c (user_regs_init): Update parameters, and use passed
421 in obstack.
422 (user_reg_add): Should no longer get back NULL from gdbarch_data.
423 (_initialize_user_regs): Register as a pre-init gdbarch data type.
424
d8cc8af6
TV
4252020-07-06 Tom de Vries <tdevries@suse.de>
426
427 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
428 End-Of-Sequence in lte_is_less_than.
429 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
430 "gdb: Don't reorder line table entries too much when sorting".
431
947f7597
TV
4322020-07-06 Tom de Vries <tdevries@suse.de>
433
434 PR tui/26205
435 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
436
1e7c1b22
TV
4372020-07-05 Tom de Vries <tdevries@suse.de>
438
439 PR build/26187
440 * inferior.h (struct infcall_suspend_state_deleter): If available, use
441 std::uncaught_exceptions instead of deprecated
442 std::uncaught_exception.
443
a36158ec
SM
4442020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
445
446 * macroexp.h (macro_stringify): Return
447 gdb::unique_xmalloc_ptr<char>.
448 * macroexp.c (macro_stringify): Likewise.
449 * macrotab.c (fixup_definition): Update.
450
14d960c8
SM
4512020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
452
453 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
454 (lex_one_token): Update.
455 * macroexp.c (struct macro_buffer) <release>: Return
456 gdb::unique_xmalloc_ptr<char>.
457 (macro_stringify): Update.
458 (macro_expand): Update.
459 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
460 * macroexp.h (macro_expand_next): Likewise.
461
211d5b1c
SM
4622020-07-02 Simon Marchi <simon.marchi@efficios.com>
463
464 * macroexp.h (macro_lookup_ftype): Remove.
465 (macro_expand, macro_expand_once, macro_expand_next): Remove
466 lookup function parameters, add scope parameter.
467 * macroexp.c (scan, substitute_args, expand, maybe_expand,
468 macro_expand, macro_expand_once, macro_expand_next): Likewise.
469 * macroscope.h (standard_macro_lookup): Change parameter type
470 to macro_scope.
471 * macroscope.c (standard_macro_lookup): Likewise.
472 * c-exp.y (lex_one_token): Update.
473 * macrocmd.c (macro_expand_command): Likewise.
474 (macro_expand_once_command): Likewise.
475
b1a35af2
SM
4762020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
477
478 * inf-loop.c (inferior_event_handler): Remove client_data param.
479 * inf-loop.h (inferior_event_handler): Likewise.
480 * infcmd.c (step_1): Adjust.
481 * infrun.c (proceed): Adjust.
482 (fetch_inferior_event): Remove client_data param.
483 (infrun_async_inferior_event_handler): Adjust.
484 * infrun.h (fetch_inferior_event): Remove `void *` param.
485 * linux-nat.c (handle_target_event): Adjust.
486 * record-btrace.c (record_btrace_handle_async_inferior_event):
487 Adjust.
488 * record-full.c (record_full_async_inferior_event_handler):
489 Adjust.
490 * remote.c (remote_async_inferior_event_handler): Adjust.
491
1cdf9e33
TT
4922020-07-01 Tom Tromey <tom@tromey.com>
493
494 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
495 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
496
32c1e210
TT
4972020-07-01 Tom Tromey <tom@tromey.com>
498
499 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
500 tui_gen_win_info.
501 (tui_win_info::make_window): Merge with
502 tui_gen_win_info::make_window.
503 (tui_win_info::make_visible): Move from tui_gen_win_info.
504 * tui/tui-win.c (tui_win_info::max_width): Move from
505 tui_gen_win_info.
506 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
507 type.
508 <window_factory>: Likewise.
509 * tui/tui-layout.c (tui_win_info::resize): Move from
510 tui_gen_win_info.
511 (make_standard_window): Change return type.
512 (get_locator_window, tui_get_window_by_name): Likewise.
513 (tui_layout_window::apply): Remove a cast.
514 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
515 (struct tui_win_info): Merge with tui_gen_win_info.
516 (struct tui_gen_win_info): Remove.
517
a30cb6da
TT
5182020-07-01 Tom Tromey <tom@tromey.com>
519
520 * tui/tui-stack.h (struct tui_locator_window): Derive from
521 tui_win_info.
522 <do_scroll_horizontal, do_scroll_vertical>: New methods.
523 <can_box>: New method.
524
1eb2161f
TT
5252020-07-01 Tom Tromey <tom@tromey.com>
526
527 * tui/tui-stack.h (struct tui_locator_window): Remove body.
528
7134f2eb
TT
5292020-07-01 Tom Tromey <tom@tromey.com>
530
531 * tui/tui-regs.c (tui_data_window::display_registers_from)
532 (tui_data_window::display_registers_from)
533 (tui_data_window::first_data_item_displayed)
534 (tui_data_window::delete_data_content_windows): Update.
535 (tui_data_window::refresh_window, tui_data_window::no_refresh):
536 Remove.
537 (tui_data_window::check_register_values): Update.
538 (tui_data_item_window::rerender): Add parameters. Update.
539 (tui_data_item_window::refresh_window): Remove.
540 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
541 virtual.
542 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
543 tui_gen_win_info.
544 <refresh_window, max_height, min_height>: Remove.
545 <rerender>: Add parameters.
546 <x, y, visible>: New members.
547 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
548 <m_item_width>: New member.
549
22b7b041
TT
5502020-07-01 Tom Tromey <tom@tromey.com>
551
552 * tui/tui-regs.c (tui_data_window::show_register_group)
553 (tui_data_window::check_register_values): Update.
554 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
555 from item_no.
556
c9753adb
TT
5572020-07-01 Tom Tromey <tom@tromey.com>
558
559 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
560 useless "if".
561
9ab26b4a
TT
5622020-07-01 Tom Tromey <tom@tromey.com>
563
564 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
565 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
566
e555083f
TT
5672020-07-01 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
570 * tui/tui-winsource.h (enum tui_line_or_address_kind)
571 (struct tui_line_or_address): Move from tui-data.h.
572 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
573 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
574 (tui_cmd_window, tui_source_window_base, tui_source_window)
575 (tui_disasm_window): Don't declare.
576 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
577 to tui-winsource.h.
578 (SINGLE_KEY): Move to tui-stack.c.
579
7a02bab7
TT
5802020-07-01 Tom Tromey <tom@tromey.com>
581
582 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
583 std::string.
584 * tui/tui-regs.c (class tab_expansion_file): New.
585 (tab_expansion_file::write): New method.
586 (tui_register_format): Change return type. Use
587 tab_expansion_file.
588 (tui_get_register, tui_data_window::display_registers_from)
589 (tui_data_item_window::rerender): Update.
590 * tui/tui-io.h (tui_expand_tabs): Don't declare.
591 * tui/tui-io.c (tui_expand_tabs): Remove.
592
ea68593b
TT
5932020-07-01 Tom Tromey <tom@tromey.com>
594
595 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
596
a8caed5d
FS
5972020-07-01 Fangrui Song <maskray@google.com>
598
599 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
600
9cdf9820
AKS
6012020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
602
603 * dwarf2/read.c (set_die_type): Removed conditions to restrict
604 forms for DW_AT_associated and DW_AT_allocated attributes,
605 which is already checked in function attr_to_dynamic_prop.
606
a1520ad8
TT
6072020-06-30 Tom Tromey <tromey@adacore.com>
608
609 * dwarf2/read.c (quirk_rust_enum): Correctly call
610 alloc_rust_variant for default-less enum.
611
5ac58899
TT
6122020-06-30 Tom Tromey <tromey@adacore.com>
613
614 PR build/26183:
615 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
616 gdb::to_string.
617
19b187a9
SM
6182020-06-29 Simon Marchi <simon.marchi@efficios.com>
619
620 * gdbarch.sh (displaced_step_copy_insn): Update doc.
621 * gdbarch.h: Re-generate.
622
cd4c4c07
TT
6232020-06-28 Tom Tromey <tom@tromey.com>
624
625 * command.h (cmd_types): Remove.
626 (cmd_type): Don't declare.
627 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
628 typedef.
629 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
630 * cli/cli-decode.c (cmd_type): Remove.
631
05779d57
PA
6322020-06-27 Pedro Alves <palves@redhat.com>
633
634 * fork-child.c (prefork_hook): Adjust.
635 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
636 Delete.
637 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
638 * inferior.c (inferior::set_tty, inferior::tty): New methods.
639 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
640 Remove declarations.
641 (struct inferior) <set_tty, tty>: New methods.
642 (struct inferior) <terminal>: Rename to ...
643 (struct inferior) <m_terminal>: ... this and make private.
644 * main.c (captured_main_1): Adjust.
645 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
646 (mi_cmd_inferior_tty_show): Adjust.
647 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
648 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
649
1776e3e5
NA
6502020-06-26 Nick Alcock <nick.alcock@oracle.com>
651
652 * configure.ac: Add --enable-libctf: handle --disable-static
653 properly.
654 * acinclude.m4: sinclude ../config/enable.m4.
655 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
656 (LIBCTF): Substitute in.
657 (CTF_DEPS): New, likewise.
658 (CLIBS): libctf needs symbols from libbfd: move earlier.
659 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
660 flags.
661 * ctfread.c: Surround in ENABLE_LIBCTF.
662 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
663 * configure: Regenerate.
664 * config.in: Likewise.
665
58373b80
SM
6662020-06-25 Simon Marchi <simon.marchi@efficios.com>
667
668 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
669
277474ee
SM
6702020-06-25 Simon Marchi <simon.marchi@efficios.com>
671
672 * inferior.h (struct inferior) <terminal>: Change type to
673 gdb::unique_xmalloc_ptr<char>.
674 * inferior.c (inferior::~inferior): Don't free inf->terminal.
675 * infcmd.c (set_inferior_io_terminal): Don't free terminal
676 field, adjust to unique pointer.
677 (get_inferior_io_terminal): Adjust to unique pointer.
678
6d74da72
AB
6792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 * riscv-tdep.c (riscv_print_registers_info): Loop over all
682 registers, not just the known core set of registers.
683
2e52d038
AB
6842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
687 fflags, frm, and fcsr registers.
688 (riscv_register_reggroup_p): Remove unknown CSRs from save and
689 restore groups.
690 (riscv_tdesc_unknown_reg): New function.
691 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
692 tdesc_use_registers.
693 * riscv-tdep.h (struct gdbarch_tdep): Add
694 unknown_csrs_first_regnum, unknown_csrs_count,
695 duplicate_fflags_regnum, duplicate_frm_regnum, and
696 duplicate_fcsr_regnum fields.
697
be64fd07
AB
6982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
699
700 * target-descriptions.c (tdesc_use_registers): Add new parameter a
701 callback, use the callback (when not null) to help number unknown
702 registers.
703 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
704 (tdesc_use_registers): Add extra parameter to declaration.
705
3b9fce96
AB
7062020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
709 in the file.
710 (class riscv_pending_register_alias): Likewise.
711 (riscv_register_feature::register_info): Change 'required_p' field
712 to 'required', and change its type. Add 'check' member function.
713 (riscv_register_feature::register_info::check): Define new member
714 function.
715 (riscv_xreg_feature): Change initialisation of 'required' field.
716 (riscv_freg_feature): Likewise.
717 (riscv_virtual_feature): Likewise.
718 (riscv_csr_feature): Likewise.
719 (riscv_check_tdesc_feature): Take extra parameter, the csr
720 tdesc_feature, rewrite the function to use the new
721 riscv_register_feature::register_info::check function.
722 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
723
865bad26
AB
7242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
725
726 * features/Makefile: Remove all references to the deleted files
727 below.
728 * features/riscv/32bit-csr.c: Deleted.
729 * features/riscv/32bit-csr.xml: Deleted.
730 * features/riscv/64bit-csr.c: Deleted.
731 * features/riscv/64bit-csr.xml: Deleted.
732 * features/riscv/rebuild-csr-xml.sh: Deleted.
733
ed69cbc8
AB
7342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
737 whitespace error for declaration of names member variable.
738 (struct riscv_register_feature): Add new prefer_first_name member
739 variable, and fix whitespace error in declaration of registers.
740 (riscv_xreg_feature): Initialize prefer_first_name field.
741 (riscv_freg_feature): Likewise.
742 (riscv_virtual_feature): Likewise.
743 (riscv_csr_feature): Likewise.
744 (riscv_register_name): Expand on comments. Remove register name
745 modifications for CSR and virtual registers.
746
4445e8f5
AB
7472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
748
749 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
750 errors.
751
767a879e
AB
7522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
753
754 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
755 riscv-opc.h.
756 (class riscv_pending_register_alias): New class.
757 (riscv_check_tdesc_feature): Take vector of pending aliases and
758 populate it as appropriate.
759 (riscv_setup_register_aliases): Delete.
760 (riscv_gdbarch_init): Create vector of pending aliases and pass it
761 to riscv_check_tdesc_feature in all cases. Use the vector to
762 create the register aliases.
763
bb6e55f3
RO
7642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
765
766 * sol2-tdep.c (sol2_static_transform_name): Remove.
767 (sol2_init_abi): Don't register it.
768 * gdbarch.sh (static_transform_name): Remove.
769 * gdbarch.c, gdbarch.h: Regenerate.
770
771 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
772 gdbarch_static_transform_name.
773 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
774 * stabsread.c (define_symbol) <'X'>: Remove.
775 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
776 handling.
777 <'V'>: Likewise.
778 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
779 <'S'>: Remove call to gdbarch_static_transform_name.
780
c6d36836
RO
7812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
782
783 * procfs.c (procfs_pre_trace): New function.
784 (procfs_target::create_inferior): Pass it to fork_inferior.
785
a7e6196b
RO
7862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
787
788 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
789 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
790 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
791 sol2-tdep.o, sparc-sol2-tdep.o.
792 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
793 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
794 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
795 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
796
d412e696
RO
7972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
798
799 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
800 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
801 Call sol2_init_abi.
802 Remove calls to set_gdbarch_skip_solib_resolver,
803 set_gdbarch_core_pid_to_str.
804 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
805 (i386_sol2_static_transform_name): Remove.
806 (i386_sol2_init_abi): Call sol2_init_abi.
807 Remove calls to set_gdbarch_sofun_address_maybe_missing,
808 set_gdbarch_static_transform_name,
809 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
810 Use sol2_sigtramp_p.
811 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
812 (sol2_sigtramp_p): New function.
813 (sol2_static_transform_name): New function.
814 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
815 (sol2_init_abi): New function.
816 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
817 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
818 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
819 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
820 (sparc_sol2_static_transform_name): Remove.
821 (sparc32_sol2_init_abi): Call sol2_init_abi.
822 Remove calls to set_gdbarch_sofun_address_maybe_missing,
823 set_gdbarch_static_transform_name,
824 set_gdbarch_skip_solib_resolver,
825 set_gdbarch_core_pid_to_str.
826 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
827 (sparc_sol2_static_transform_name): Remove
828 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
829 call sol2_sigtramp_p.
830 (sparc64_sol2_init_abi): Call sol2_init_abi.
831 Remove calls to set_gdbarch_sofun_address_maybe_missing,
832 set_gdbarch_static_transform_name,
833 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
834
a8654e7d
PW
8352020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
836
837 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
838 * exec.c (validate_exec_file): If from_tty, set both
839 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
840 * symfile.c (symbol_file_add_with_addrs): if always_confirm
841 and from_tty, unconditionally ask a confirmation.
842
caa7fd04
AB
8432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
844
845 * target-descriptions.c (tdesc_architecture_name): Protect against
846 NULL pointer dereference.
847 (maint_print_xml_tdesc_cmd): New function.
848 (_initialize_target_descriptions): Register new 'maint print
849 xml-tdesc' command and give it the filename completer.
850 * NEWS: Mention new 'maint print xml-tdesc' command.
851
fbf42f4e
AB
8522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
853
854 * target-descriptions.c (class tdesc_compatible_info): New class.
855 (struct target_desc): Change type of compatible vector.
856 (tdesc_compatible_p): Update for change in type of
857 target_desc::compatible.
858 (tdesc_compatible_info_list): New function.
859 (tdesc_compatible_info_arch_name): New function.
860 (tdesc_add_compatible): Update for change in type of
861 target_desc::compatible.
862 (print_c_tdesc::visit_pre): Likewise.
863
20821f4e
AB
8642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
867 whitespace to underscore.
868 (maint_print_c_tdesc_cmd): Use fake filename for target
869 descriptions that came from the target.
870 (_initialize_target_descriptions): Add filename command completion
871 for 'maint print c-tdesc'.
872
1fb5ee62
SM
8732020-06-23 Simon Marchi <simon.marchi@efficios.com>
874
875 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
876 lines.
877
fc3ecb3e
SM
8782020-06-23 Simon Marchi <simon.marchi@efficios.com>
879
880 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
881 lines.
882 (dwarf2_find_location_expression): Likewise.
883 (call_site_parameter_matches): Likewise.
884 (dwarf2_compile_expr_to_ax): Likewise.
885 (disassemble_dwarf_expression): Likewise.
886 (loclist_describe_location): Likewise.
887
236ef034
PA
8882020-06-23 Pedro Alves <palves@redhat.com>
889
890 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
891 progspace-and-thread.h. Include scoped-mock-context.h instead.
892 (register_to_value_test): Use scoped_mock_context.
893 * regcache.c: Include "scoped-mock-context.h".
894 (cooked_read_test): Don't error out if a target is already pushed.
895 Use scoped_mock_context. Adjust.
896 * scoped-mock-context.h: New file.
897
39e7ecca
AB
8982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
899
900 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
901 initializer.
902 (ada_language::is_string_type_p): New member function.
903 * c-lang.c (c_language_data): Delete la_is_string_type_p
904 initializer.
905 (cplus_language_data): Likewise.
906 (asm_language_data): Likewise.
907 (minimal_language_data): Likewise.
908 * d-lang.c (d_language_data): Likewise.
909 * f-lang.c (f_is_string_type_p): Delete function, implementation
910 moved to f_language::is_string_type_p.
911 (f_language_data): Delete la_is_string_type_p initializer.
912 (f_language::is_string_type_p): New member function,
913 implementation from f_is_string_type_p.
914 * go-lang.c (go_is_string_type_p): Delete function, implementation
915 moved to go_language::is_string_type_p.
916 (go_language_data): Delete la_is_string_type_p initializer.
917 (go_language::is_string_type_p): New member function,
918 implementation from go_is_string_type_p.
919 * language.c (language_defn::is_string_type_p): Define new member
920 function.
921 (default_is_string_type_p): Make static, add comment copied from
922 header file.
923 (unknown_language_data): Delete la_is_string_type_p initializer.
924 (unknown_language::is_string_type_p): New member function.
925 (auto_language_data): Delete la_is_string_type_p initializer.
926 (auto_language::is_string_type_p): New member function.
927 * language.h (language_data): Delete la_is_string_type_p field.
928 (language_defn::is_string_type_p): Declare new function.
929 (default_is_string_type_p): Delete desclaration, move comment to
930 definition.
931 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
932 moved to m2_language::is_string_type_p.
933 (m2_language_data): Delete la_is_string_type_p initializer.
934 (m2_language::is_string_type_p): New member function,
935 implementation from m2_is_string_type_p.
936 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
937 initializer.
938 * opencl-lang.c (opencl_language_data): Likewise.
939 * p-lang.c (pascal_is_string_type_p): Delete function,
940 implementation moved to pascal_language::is_string_type_p.
941 (pascal_language_data): Delete la_is_string_type_p initializer.
942 (pascal_language::is_string_type_p): New member function,
943 implementation from pascal_is_string_type_p.
944 * rust-lang.c (rust_is_string_type_p): Delete function,
945 implementation moved to rust_language::is_string_type_p.
946 (rust_language_data): Delete la_is_string_type_p initializer.
947 (rust_language::is_string_type_p): New member function,
948 implementation from rust_is_string_type_p.
949 * valprint.c (val_print_scalar_or_string_type_p): Update call to
950 is_string_type_p.
951
4ffc13fb
AB
9522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * ada-lang.c (ada_language_data): Delete la_print_typedef
955 initializer.
956 (ada_language::print_typedef): New member function.
957 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
958 (cplus_language_data): Likewise.
959 (asm_language_data): Likewise.
960 (minimal_language_data): Likewise.
961 * d-lang.c (d_language_data): Likewise.
962 * f-lang.c (f_language_data): Likewise.
963 (f_language::print_typedef): New member function.
964 * go-lang.c (go_language_data): Delete la_print_typedef
965 initializer.
966 * language.c (language_defn::print_typedef): Define member
967 function.
968 (unknown_language_data): Delete la_print_typedef initializer.
969 (unknown_language::print_typedef): New member function.
970 (auto_language_data): Delete la_print_typedef initializer.
971 (auto_language::print_typedef): New member function.
972 * language.h (language_data): Delete la_print_typedef field.
973 (language_defn::print_typedef): Declare new member function.
974 (LA_PRINT_TYPEDEF): Update call to print_typedef.
975 (default_print_typedef): Delete declaration.
976 * m2-lang.c (m2_language_data): Delete la_print_typedef
977 initializer.
978 (m2_language::print_typedef): New member function.
979 * objc-lang.c (objc_language_data): Delete la_print_typedef
980 initializer.
981 * opencl-lang.c (opencl_language_data): Likewise.
982 * p-lang.c (pascal_language_data): Likewise.
983 (pascal_language::print_typedef): New member function.
984 * rust-lang.c (rust_print_typedef): Delete function,
985 implementation moved to rust_language::print_typedef.
986 (rust_language): Delete la_print_typedef initializer.
987 (rust_language::print_typedef): New member function,
988 implementation from rust_print_typedef.
989 * typeprint.c (default_print_typedef): Delete.
990
d711ee67
AB
9912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
992
993 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
994 (ada_language::printstr): New member function.
995 * c-lang.c (c_language_data): Delete la_printstr initializer.
996 (cplus_language_data): Likewise.
997 (asm_language_data): Likewise.
998 (minimal_language_data): Likewise.
999 * d-lang.c (d_language_data): Likewise.
1000 * f-lang.c (f_printstr): Rename to f_language::printstr.
1001 (f_language_data): Delete la_printstr initializer.
1002 (f_language::printstr): New member function, implementation from
1003 f_printstr.
1004 * go-lang.c (go_language_data): Delete la_printstr initializer.
1005 * language.c (language_defn::printstr): Define new member
1006 function.
1007 (unk_lang_printstr): Delete.
1008 (unknown_language_data): Delete la_printstr initializer.
1009 (unknown_language::printstr): New member function.
1010 (auto_language_data): Delete la_printstr initializer.
1011 (auto_language::printstr): New member function.
1012 * language.h (language_data): Delete la_printstr field.
1013 (language_defn::printstr): Declare new member function.
1014 (LA_PRINT_STRING): Update call to printstr.
1015 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1016 (m2_language_data): Delete la_printstr initializer.
1017 (m2_language::printstr): New member function, implementation from
1018 m2_printstr.
1019 * objc-lang.c (objc_language_data): Delete la_printstr
1020 initializer.
1021 * opencl-lang.c (opencl_language_data): Likewise.
1022 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1023 (pascal_language_data): Delete la_printstr initializer.
1024 (pascal_language::printstr): New member function, implementation
1025 from pascal_printstr.
1026 * p-lang.h (pascal_printstr): Delete declaration.
1027 * rust-lang.c (rust_printstr): Update header comment.
1028 (rust_language_data): Delete la_printstr initializer.
1029 (rust_language::printstr): New member function.
1030
52b50f2c
AB
10312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1032
1033 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1034 (ada_language::printchar): New member function.
1035 * c-lang.c (c_language_data): Delete la_printchar initializer.
1036 (cplus_language_data): Likewise.
1037 (asm_language_data): Likewise.
1038 (minimal_language_data): Likewise.
1039 * d-lang.c (d_language_data): Likewise.
1040 * f-lang.c (f_printchar): Rename to f_language::printchar.
1041 (f_language_data): Delete la_printchar initializer.
1042 (f_language::printchar): New member function, implementation from
1043 f_printchar.
1044 * go-lang.c (go_language_data): Delete la_printchar initializer.
1045 * language.c (unk_lang_printchar): Delete.
1046 (language_defn::printchar): Define new member function.
1047 (unknown_language_data): Delete la_printchar initializer.
1048 (unknown_language::printchar): New member function.
1049 (auto_language_data): Delete la_printchar initializer.
1050 (auto_language::printchar): New member function.
1051 * language.h (language_data): Delete la_printchar field.
1052 (language_defn::printchar): Declare new member function.
1053 (LA_PRINT_CHAR): Update call to printchar.
1054 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1055 (m2_language::printchar): New member function.
1056 * objc-lang.c (objc_language_data): Delete la_printchar
1057 initializer.
1058 * opencl-lang.c (opencl_language_data): Likewise.
1059 * p-lang.c (pascal_language_data): Delete la_printchar
1060 initializer.
1061 (pascal_language::printchar): New member function.
1062 * rust-lang.c (rust_printchar): Rename to
1063 rust_language::printchar.
1064 (rust_language_data): Delete la_printchar initializer.
1065 (rust_language::printchar): New member function, implementation
1066 from rust_printchar.
1067
ec8cec5b
AB
10682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1071 (ada_language_data): Delete la_emitchar initializer.
1072 (ada_language::emitchar): New member function, implementation from
1073 emit_char.
1074 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1075 (cplus_language_data): Likewise.
1076 (asm_language_data): Likewise.
1077 (minimal_language_data): Likewise.
1078 * d-lang.c (d_language_data): Likewise.
1079 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1080 (f_language_data): Delete la_emitchar initializer.
1081 (f_language::emitchar): New member function, implementation from
1082 f_emit_char.
1083 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1084 * language.c (unk_lang_emit_char): Delete.
1085 (language_defn::emitchar): New member function definition.
1086 (unknown_language_data): Delete la_emitchar initializer.
1087 (unknown_language::emitchar): New member function.
1088 (auto_language_data): Delete la_emitchar initializer.
1089 (auto_language::emitchar): New member function.
1090 * language.h (language_data): Delete la_emitchar field.
1091 (language_defn::emitchar): New member field declaration.
1092 (LA_EMIT_CHAR): Update call to emitchar.
1093 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1094 (m2_language_data): Delete la_emitchar initializer.
1095 (m2_language::emitchar): New member function, implementation from
1096 m2_emit_char.
1097 * objc-lang.c (objc_language_data): Delete la_emitchar
1098 initializer.
1099 * opencl-lang.c (opencl_language_data): Likewise.
1100 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1101 (pascal_language_data): Delete la_emitchar initializer.
1102 (pascal_language::emitchar): New member function, implementation
1103 from pascal_emit_char.
1104 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1105 (rust_language_data): Delete la_emitchar initializer.
1106 (rust_language::emitchar): New member function, implementation
1107 from rust_emitchar.
1108
1bf9c363
AB
11092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1110
1111 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1112 (ada_language_data): Delete la_post_parser initializer.
1113 (ada_language::post_parser): New member function.
1114 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1115 (cplus_language_data): Likewise.
1116 (asm_language_data): Likewise.
1117 (minimal_language_data): Likewise.
1118 * d-lang.c (d_language_data): Likewise.
1119 * f-lang.c (f_language_data): Likewise.
1120 * go-lang.c (go_language_data): Likewise.
1121 * language.c (unknown_language_data): Likewise.
1122 (auto_language_data): Likewise.
1123 * language.h (language_data): Delete la_post_parser field.
1124 (language_defn::post_parser): New member function.
1125 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1126 * objc-lang.c (objc_language_data): Likewise.
1127 * opencl-lang.c (opencl_language_data): Likewise.
1128 * p-lang.c (pascal_language_data): Likewise.
1129 * parse.c (parse_exp_in_context): Update call to post_parser.
1130 (null_post_parser): Delete definition.
1131 * parser-defs.h (null_post_parser): Delete declaration.
1132 * rust-lang.c (rust_language_data): Delete la_post_parser
1133 initializer.
1134
87afa652
AB
11352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * ada-lang.c (parse): Rename to ada_language::parser.
1138 (ada_language_data): Delete la_parser initializer.
1139 (ada_language::parser): New member function, implementation from
1140 parse.
1141 * c-lang.c (c_language_data): Delete la_parser initializer.
1142 (cplus_language_data): Likewise.
1143 (asm_language_data): Likewise.
1144 (minimal_language_data): Likewise.
1145 * d-lang.c (d_language_data): Likewise.
1146 (d_language::parser): New member function.
1147 * f-lang.c (f_language_data): Delete la_parser initializer.
1148 (f_language::parser): New member function.
1149 * go-lang.c (go_language_data): Delete la_parser initializer.
1150 (go_language::parser): New member function.
1151 * language.c (unk_lang_parser): Delete.
1152 (language_defn::parser): Define new member function.
1153 (unknown_language_data): Delete la_parser initializer.
1154 (unknown_language::parser): New member function.
1155 (auto_language_data): Delete la_parser initializer.
1156 (auto_language::parser): New member function.
1157 * language.h (language_data): Delete la_parser field.
1158 (language_defn::parser): Declare new member function.
1159 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1160 (m2_language::parser): New member function.
1161 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1162 * opencl-lang.c (opencl_language_data): Likewise.
1163 * p-lang.c (pascal_language_data): Likewise.
1164 (pascal_language::parser): New member function.
1165 * parse.c (parse_exp_in_context): Update call to parser.
1166 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1167 (rust_language::parser): New member function.
1168
37825800
AB
11692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1170
1171 * top.c (print_gdb_configuration): Print --with-python-libdir
1172 configuration value.
1173
5b860c93
PW
11742020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1175
1176 * NEWS: Mention change to the alias command.
1177
cf00cd6f
PW
11782020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1179
1180 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1181 (alias_command_completer)
1182 (make_alias_options_def_group): New functions.
1183 (alias_opts, alias_option_defs): New struct and array.
1184 (alias_usage_error): Update usage.
1185 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1186 Use option framework.
1187 (_initialize_cli_cmds): Update alias command help.
1188 Update aliases command help.
1189 (show_user):
1190 Add NULL for new default_args lookup_cmd argument.
1191 (valid_command_p): Rename to validate_aliased_command.
1192 Add NULL for new default_args lookup_cmd argument. Verify that the
1193 aliased_command has no default args.
1194 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1195 (lookup_cmd_1, lookup_cmd): New argument default_args.
1196 (add_alias_cmd):
1197 Add NULL for new default_args lookup_cmd argument.
1198 (print_help_for_command): Show default args under the layout
1199 alias some_alias = some_aliased_cmd some_alias_default_arg.
1200 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1201 xfree default_args in destructor.
1202 * cli/cli-script.c (process_next_line, do_define_command):
1203 Add NULL for new default_args lookup_cmd argument.
1204 * command.h: Declare new default_args argument in lookup_cmd
1205 and lookup_cmd_1.
1206 * completer.c (complete_line_internal_1):
1207 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1208 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1209 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1210 Likewise.
1211 * infcmd.c (_initialize_infcmd): Likewise.
1212 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1213 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1214 * python/py-param.c (add_setshow_generic): Likewise.
1215 * remote.c (_initialize_remote): Likewise.
1216 * top.c (execute_command): Prepend default_args if command has some.
1217 (set_verbose):
1218 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1219 * tracepoint.c (validate_actionline, encode_actions_1):
1220 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1221
bd920864
TBA
12222020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1223
1224 * jit.c (jit_read_descriptor): Use bool as the return type.
1225 (jit_breakpoint_re_set_internal): Use bool as the return type.
1226 Invert the return value logic; return true if the jit breakpoint
1227 has been successfully initialized.
1228 (jit_inferior_init): Update the call to
1229 jit_breakpoint_re_set_internal.
1230
f8098322
PA
12312020-06-22 Pedro Alves <palves@redhat.com>
1232
1233 PR gdb/25939
1234 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1235 Use the current inferior instead. Don't return
1236 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1237 wait again.
1238 * sol-thread.c (sol_thread_target::wait): Don't reference
1239 inferior_ptid.
1240 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1241 (sol_update_thread_list_callback): Use the current inferior's pid
1242 instead of inferior_ptid.
1243
196535a6
RO
12442020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1245
1246 * procfs.c: Cleanup many comments.
1247
1248 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1249 (AFTER_WATCHFLAG): Replace by value.
1250
1251 (MAIN_PROC_NAME_FORMAT): Inline ...
1252 (create_procinfo): ... here.
1253
1254 (procfs_debug_inferior): Remove SYS_exec handling.
1255 (syscall_is_exec): Likewise.
1256 (procfs_set_exec_trap): Likewise.
1257
1258 (syscall_is_lwp_exit): Inline in callers.
1259 (syscall_is_exit): Likewise.
1260 (syscall_is_exec): Likewise.
1261 (syscall_is_lwp_create): Likewise.
1262
1263 (invalidate_cache): Remove #if 0 code.
1264
1265 (make_signal_thread_runnable): Remove.
1266 (procfs_target::resume): Remove #if 0 code.
1267
cf6f3e86
RO
12682020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1269
1270 PR gdb/25939
1271 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1272 call ...
1273 (procfs_target::create_inferior): ... here.
1274
48e9cc84
PW
12752020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1276
1277 * exec.c (validate_exec_file): Ensure the build-id is up to
1278 date by calling reopen_exec_file (that checks file timestamp
1279 to decide to re-read the file).
1280
3922b302
PA
12812020-06-18 Pedro Alves <palves@redhat.com>
1282
1283 PR gdb/25412
1284 * gdbthread.h (delete_thread, delete_thread_silent)
1285 (find_thread_ptid): Update comments.
1286 * thread.c (current_thread_): New global.
1287 (is_current_thread): Move higher, and reimplement.
1288 (inferior_thread): Reimplement.
1289 (set_thread_exited): Use bool. Add assertions.
1290 (add_thread_silent): Simplify thread-reuse handling by always
1291 calling delete_thread.
1292 (delete_thread): Remove intro comment.
1293 (find_thread_ptid): Skip exited threads.
1294 (switch_to_thread_no_regs): Write to current_thread_.
1295 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1296 INFERIOR_PTID. Clear current_thread_.
1297
6dbdab44
PA
12982020-06-18 Pedro Alves <palves@redhat.com>
1299
1300 * aix-thread.c (pd_update): Use switch_to_thread.
1301
2da4b788
PA
13022020-06-18 Pedro Alves <palves@redhat.com>
1303
1304 * ravenscar-thread.c (ravenscar_thread_target): Update.
1305 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1306 (ravenscar_thread_target::add_active_thread): ... this. Don't
1307 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1308 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1309
50838d1b
PA
13102020-06-18 Pedro Alves <palves@redhat.com>
1311
1312 * nat/windows-nat.c (current_windows_thread): Remove.
1313 * nat/windows-nat.h (current_windows_thread): Remove.
1314 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1315 Adjust.
1316 (display_selectors): Adjust to fetch the current
1317 windows_thread_info based on inferior_ptid.
1318 (fake_create_process): No longer write to current_windows_thread.
1319 (windows_nat_target::get_windows_debug_event):
1320 Don't set inferior_ptid or current_windows_thread.
1321 (windows_nat_target::wait): Adjust to not rely on
1322 current_windows_thread.
1323 (do_initial_windows_stuff): Now a method of windows_nat_target.
1324 Switch to the last_ptid thread.
1325 (windows_nat_target::attach): Adjust.
1326 (windows_nat_target::detach): Use switch_to_no_thread instead of
1327 writing to inferior_ptid directly.
1328 (windows_nat_target::create_inferior): Adjust.
1329
31ce04e9
PA
13302020-06-18 Pedro Alves <palves@redhat.com>
1331
1332 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1333
1ee1a363
PA
13342020-06-18 Pedro Alves <palves@redhat.com>
1335
1336 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1337 after creating it, instead of writing to inferior_ptid. Don't
1338 write to inferior_ptid.
1339
6d350754
PA
13402020-06-18 Pedro Alves <palves@redhat.com>
1341
1342 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1343
5d971d48
PA
13442020-06-18 Pedro Alves <palves@redhat.com>
1345
1346 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1347 it, instead of writing to inferior_ptid.
1348
86e57d1b
PA
13492020-06-18 Pedro Alves <palves@redhat.com>
1350
1351 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1352 to inferior_ptid.
1353
f2e1c129
PA
13542020-06-18 Pedro Alves <palves@redhat.com>
1355
1356 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1357 instead of writing to inferior_ptid directly.
1358
60db1b85
PA
13592020-06-18 Pedro Alves <palves@redhat.com>
1360
1361 * corelow.c (core_target::close): Use switch_to_no_thread instead
1362 of writing to inferior_ptid directly.
1363 (add_to_thread_list, core_target_open): Use switch_to_thread
1364 instead of writing to inferior_ptid directly.
1365
fe7d6a8d
PA
13662020-06-18 Pedro Alves <palves@redhat.com>
1367
1368 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1369 inferior_ptid.
1370 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1371 inferior_ptid.
1372 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1373 inferior_ptid directly.
1374 (darwin_nat_target::init_thread_list): Switch to thread, instead
1375 of writing to inferior_ptid.
1376 (darwin_nat_target::attach): Don't write to inferior_ptid.
1377 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1378
975f8708
PA
13792020-06-18 Pedro Alves <palves@redhat.com>
1380
1381 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1382 thread.
1383 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1384 Instead use switch_to_thread.
1385 (gnu_nat_target::detach): Use switch_to_no_thread
1386 instead of writing to inferior_ptid directly. Used passed-in
1387 inferior instead of looking up the inferior by pid.
1388
1a204730
PA
13892020-06-18 Pedro Alves <palves@redhat.com>
1390
1391 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1392 inferior_ptid.
1393
ebe84f23
PA
13942020-06-18 Pedro Alves <palves@redhat.com>
1395
1396 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1397 inferior_ptid.
1398 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1399 thread.
1400 (nto_procfs_target::detach): Avoid referencing
1401 inferior_ptid. Use switch_to_no_thread instead of writing to
1402 inferior_ptid directly.
1403 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1404 instead of writing to inferior_ptid directly.
1405 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1406 to thread.
1407
191f02e5
PA
14082020-06-18 Pedro Alves <palves@redhat.com>
1409
1410 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1411 after creating it, instead of writing to inferior_ptid.
1412 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1413 to inferior_ptid directly.
1414 (gdbsim_target::wait): Don't write to inferior_ptid.
1415
0ac55310
PA
14162020-06-18 Pedro Alves <palves@redhat.com>
1417
1418 * remote.c (remote_target::remote_notice_new_inferior): Use
1419 switch_to_thread instead of writing to inferior_ptid directly.
1420 (remote_target::add_current_inferior_and_thread): Use
1421 switch_to_no_thread instead of writing to inferior_ptid directly.
1422 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1423 and switch_to_thread instead of using set_current_inferior or
1424 writing to inferior_ptid directly.
1425
5233f39b
PA
14262020-06-18 Pedro Alves <palves@redhat.com>
1427
1428 * tracectf.c (ctf_target_open): Switch to added thread instead of
1429 writing to inferior_ptid directly.
1430 (ctf_target::close): Use switch_to_no_thread instead of writing to
1431 inferior_ptid directly.
1432
087e161b
PA
14332020-06-18 Pedro Alves <palves@redhat.com>
1434
1435 * tracefile-tfile.c (tfile_target_open): Don't write to
1436 inferior_ptid directly, instead switch to added thread.
1437 (tfile_target::close): Use switch_to_no_thread instead of writing
1438 to inferior_ptid directly.
1439
7fb43e53
PA
14402020-06-18 Pedro Alves <palves@redhat.com>
1441
1442 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1443 (procfs_target::detach): Use switch_to_no_thread
1444 instead of writing to inferior_ptid directly.
1445 (do_attach): Change return type to void. Switch to the added
1446 thread.
1447 (procfs_target::create_inferior): Switch to the added thread.
1448 (procfs_do_thread_registers): Don't write to inferior_ptid.
1449
18493a00
PA
14502020-06-18 Pedro Alves <palves@redhat.com>
1451
1452 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1453 of writing to inferior_ptid.
1454 (scoped_restore_exited_inferior): Delete.
1455 (handle_vfork_child_exec_or_exit): Simplify using
1456 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1457 instead of writing to inferior_ptid.
1458 (THREAD_STOPPED_BY): Delete.
1459 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1460 (thread_stopped_by_hw_breakpoint): Delete.
1461 (save_waitstatus): Use
1462 scoped_restore_current_thread+switch_to_thread, and call
1463 target_stopped_by_watchpoint instead of
1464 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1465 instead of thread_stopped_by_sw_breakpoint, and
1466 target_stopped_by_hw_breakpoint instead of
1467 thread_stopped_by_hw_breakpoint.
1468 (handle_inferior_event)
1469 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1470 inferior_ptid directly, nor
1471 set_current_inferior/set_current_program_space. Use
1472 switch_to_thread / switch_to_inferior_no_thread instead.
1473
a0776b13
PA
14742020-06-18 Pedro Alves <palves@redhat.com>
1475
1476 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1477 instead of writing to inferior_ptid.
1478
6155c136
PA
14792020-06-18 Pedro Alves <palves@redhat.com>
1480
1481 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1482 added thread.
1483 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1484 to the added thread.
1485 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1486 instead of writing to inferior_ptid.
1487
c5316fc6
PA
14882020-06-18 Pedro Alves <palves@redhat.com>
1489
1490 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1491 (register_to_value_test): Mock a program_space too. Heap-allocate
1492 the address space. Don't write to inferior_ptid. Use
1493 switch_to_thread instead.
1494
8df01799
PA
14952020-06-18 Pedro Alves <palves@redhat.com>
1496
1497 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1498 Delete.
1499 (find_signalled_thread()): New, factored out from
1500 linux_make_corefile_notes and adjusted to handle exited threads.
1501 (linux_make_corefile_notes): Adjust to use the new
1502 find_signalled_thread.
1503
41792d68
PA
15042020-06-18 Pedro Alves <palves@redhat.com>
1505
1506 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1507 of saving/restoring inferior_ptid.
1508
612f258a
TT
15092020-06-17 Tom Tromey <tom@tromey.com>
1510
1511 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1512 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1513 declare.
1514 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1515
efb763a5
SM
15162020-06-15 Simon Marchi <simon.marchi@efficios.com>
1517
1518 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1519 of partial symtabs.
1520
2951f6c0
SM
15212020-06-17 Simon Marchi <simon.marchi@efficios.com>
1522
1523 * regformats/reg-arm.dat: Remove.
1524 * regformats/reg-bfin.dat: Remove.
1525 * regformats/reg-cris.dat: Remove.
1526 * regformats/reg-crisv32.dat: Remove.
1527 * regformats/reg-m32r.dat: Remove.
1528 * regformats/reg-tilegx.dat: Remove.
1529 * regformats/reg-tilegx32.dat: Remove.
1530
7d458ea5
SM
15312020-06-17 Simon Marchi <simon.marchi@efficios.com>
1532
1533 * features/Makefile (WHICH): Remove arm files.
1534 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1535 * regformats/arm/arm-with-neon.dat: Remove.
1536 * regformats/arm/arm-with-vfpv2.dat: Remove.
1537 * regformats/arm/arm-with-vfpv3.dat: Remove.
1538
3af96c0d
SM
15392020-06-17 Simon Marchi <simon.marchi@efficios.com>
1540
1541 * features/Makefile (XMLTOC): Remove rx.xml.
1542
b25e22fd
PA
15432020-06-17 Pedro Alves <palves@redhat.com>
1544
1545 * gdbthread.h (thread_control_state) <trap_expected> Update
1546 comments.
1547
a78a19b1
AB
15482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1549
1550 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1551 ada_language::lookup_symbol_nonlocal.
1552 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1553 (ada_language::lookup_symbol_nonlocal): New member function,
1554 implementation from ada_lookup_symbol_nonlocal.
1555 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1556 initializer.
1557 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1558 initializer.
1559 (cplus_language::lookup_symbol_nonlocal): New member function.
1560 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1561 (minimal_language_data) Likewise.
1562 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1563 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1564 initializer.
1565 (d_language::lookup_symbol_nonlocal): New member function.
1566 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1567 initializer.
1568 (f_language::lookup_symbol_nonlocal): New member function.
1569 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1570 initializer.
1571 * language.c (unknown_language_data): Likewise.
1572 (auto_language_data): Likewise.
1573 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1574 field.
1575 (language_defn::lookup_symbol_nonlocal): New member function.
1576 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1577 initializer.
1578 * objc-lang.c (objc_language_data): Likewise.
1579 * opencl-lang.c (opencl_language_data): Likewise.
1580 * p-lang.c (pascal_language_data): Likewise.
1581 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1582 rust_language::lookup_symbol_nonlocal.
1583 (rust_language_data): Delete la_lookup_symbol_nonlocal
1584 initializer.
1585 (rust_language::lookup_symbol_nonlocal): New member function,
1586 implementation from rust_lookup_symbol_nonlocal.
1587 * symtab.c (lookup_symbol_aux): Update call to
1588 lookup_symbol_nonlocal.
1589 (basic_lookup_symbol_nonlocal): Rename to...
1590 (language_defn::lookup_symbol_nonlocal): ...this, and update
1591 header comment. Remove language_defn parameter, and replace with
1592 uses of `this'.
1593 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1594
ebe2334e
AB
15952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1598 initializer.
1599 (ada_language::value_print_inner): New member function.
1600 * c-lang.c (c_language_data): Delete la_value_print_inner
1601 initializer.
1602 (cplus_language_data): Likewise.
1603 (asm_language_data): Likewise.
1604 (minimal_language_data): Likewise.
1605 * d-lang.c (d_language_data): Likewise.
1606 (d_language::value_print_inner): New member function.
1607 * f-lang.c (f_language_data): Delete la_value_print_inner
1608 initializer.
1609 (f_language::value_print_inner): New member function.
1610 * f-lang.h (f_value_print_innner): Rename to...
1611 (f_value_print_inner): ...this (note spelling of 'inner').
1612 * f-valprint.c (f_value_print_innner): Rename to...
1613 (f_value_print_inner): ...this (note spelling of 'inner').
1614 * go-lang.c (go_language_data): Delete la_value_print_inner
1615 initializer.
1616 (go_language::value_print_inner): New member function.
1617 * language.c (language_defn::value_print_inner): Define new member
1618 function.
1619 (unk_lang_value_print_inner): Delete.
1620 (unknown_language_data): Delete la_value_print_inner initializer.
1621 (unknown_language::value_print_inner): New member function.
1622 (auto_language_data): Delete la_value_print_inner initializer.
1623 (auto_language::value_print_inner): New member function.
1624 * language.h (language_data): Delete la_value_print_inner field.
1625 (language_defn::value_print_inner): Delcare new member function.
1626 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1627 initializer.
1628 (m2_language::value_print_inner): New member function.
1629 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1630 initializer.
1631 * opencl-lang.c (opencl_language_data): Likewise.
1632 * p-lang.c (pascal_language_data): Likewise.
1633 (pascal_language::value_print_inner): New member function.
1634 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1635 initializer.
1636 (rust_language::value_print_inner): New member function.
1637 * valprint.c (do_val_print): Update call to value_print_inner.
1638
a1d1fa3e
AB
16392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1640
1641 * ada-lang.c (ada_language_data): Delete la_value_print
1642 initializer.
1643 (ada_language::value_print): New member function.
1644 * c-lang.c (c_language_data): Delete la_value_print initializer.
1645 (cplus_language_data): Likewise.
1646 (asm_language_data): Likewise.
1647 (minimal_language_data): Likewise.
1648 * d-lang.c (d_language_data): Likewise.
1649 * f-lang.c (f_language_data): Likewise.
1650 * go-lang.c (go_language_data): Likewise.
1651 * language.c (unk_lang_value_print): Delete.
1652 (language_defn::value_print): Define new member function.
1653 (unknown_language_data): Delete la_value_print initializer.
1654 (unknown_language::value_print): New member function.
1655 (auto_language_data): Delete la_value_print initializer.
1656 (auto_language::value_print): New member function.
1657 * language.h (language_data): Delete la_value_print field.
1658 (language_defn::value_print): Declare new member function.
1659 (LA_VALUE_PRINT): Update call to value_print.
1660 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1661 * objc-lang.c (objc_language_data): Likewise.
1662 * opencl-lang.c (opencl_language_data): Likewise.
1663 * p-lang.c (pascal_language_data): Likewise.
1664 (pascal_language::value_print): New member function.
1665 * rust-lang.c (rust_language_data): Delete la_value_print
1666 initializer.
1667
f16a9f57
AB
16682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1669
1670 * ada-lang.c (ada_watch_location_expression): Rename to
1671 ada_language::watch_location_expression.
1672 (ada_language_data): Delete la_watch_location_expression
1673 initializer.
1674 (ada_language::watch_location_expression): New member function,
1675 implementation from ada_watch_location_expression.
1676 * breakpoint.c (watch_command_1): Update call to
1677 watch_location_expression.
1678 * c-lang.c (c_watch_location_expression): Rename to
1679 language_defn::watch_location_expression.
1680 (c_language_data): Delete la_watch_location_expression
1681 initializer.
1682 (cplus_language_data): Likewise.
1683 (asm_language_data): Likewise.
1684 (minimal_language_data): Likewise.
1685 * c-lang.h (c_watch_location_expression): Delete declaration.
1686 * d-lang.c (d_language_data): Delete la_watch_location_expression
1687 initializer.
1688 * f-lang.c (f_language_data): Likewise.
1689 * go-lang.c (go_language_data): Likewise.
1690 * language.c (language_defn::watch_location_expression): Member
1691 function implementation from c_watch_location_expression.
1692 (unknown_language_data): Delete la_watch_location_expression
1693 initializer.
1694 (auto_language_data): Likewise.
1695 * language.h (language_data): Delete la_watch_location_expression
1696 field.
1697 (language_defn::watch_location_expression): Declare new member
1698 function.
1699 * m2-lang.c (m2_language_data): Delete
1700 la_watch_location_expression initializer.
1701 * objc-lang.c (objc_language_data): Likewise.
1702 * opencl-lang.c (opencl_language_data): Likewise.
1703 * p-lang.c (pascal_language_data): Likewise.
1704 * rust-lang.c (rust_watch_location_expression): Rename to
1705 rust_language::watch_location_expression.
1706 (rust_language_data): Delete la_watch_location_expression
1707 initializer.
1708 (rust_language::watch_location_expression): New member function,
1709 implementation from rust_watch_location_expression.
1710
7e56227d
AB
17112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1714 ada_language::collect_symbol_completion_matches.
1715 (ada_language_data): Delete la_collect_symbol_completion_matches
1716 initializer.
1717 (ada_language::collect_symbol_completion_matches): New member
1718 function, implementation from
1719 ada_collect_symbol_completion_matches.
1720 * c-lang.c (c_language_data): Delete
1721 la_collect_symbol_completion_matches initializer.
1722 (cplus_language_data): Likewise.
1723 (asm_language_data): Likewise.
1724 (minimal_language_data): Likewise.
1725 * d-lang.c (d_language_data): Likewise.
1726 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1727 f_language::collect_symbol_completion_matches.
1728 (f_language_data): Delete la_collect_symbol_completion_matches
1729 initializer.
1730 (f_language::collect_symbol_completion_matches) New member
1731 function, implementation from f_collect_symbol_completion_matches.
1732 * go-lang.c (go_language_data): Delete
1733 la_collect_symbol_completion_matches initializer.
1734 * language.c (unknown_language_data): Likewise.
1735 (auto_language_data): Likewise.
1736 * language.h (language_data): Delete
1737 la_collect_symbol_completion_matches field.
1738 (language_defn::collect_symbol_completion_matches): New member
1739 function.
1740 * m2-lang.c (m2_language_data): Delete
1741 la_collect_symbol_completion_matches initializer.
1742 * objc-lang.c (objc_language_data): Likewise.
1743 * opencl-lang.c (opencl_language_data): Likewise.
1744 * p-lang.c (pascal_language_data): Likewise.
1745 * rust-lang.c (rust_language_data): Likewise.
1746 * symtab.c (default_collect_symbol_completion_matches): Delete.
1747 (collect_symbol_completion_matches): Update call to
1748 collect_symbol_completion_matches.
1749 (collect_symbol_completion_matches_type): Likewise.
1750 * symtab.h (default_collect_symbol_completion_matches): Delete
1751 declaration.
1752
53fc67f8
AB
17532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1754
1755 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1756 (ada_language_data): Delete la_word_break_characters initializer.
1757 (ada_language::word_break_characters): New member function.
1758 * c-lang.c (c_language_data): Delete la_word_break_characters
1759 initializer.
1760 (cplus_language_data): Likewise.
1761 (asm_language_data): Likewise.
1762 (minimal_language_data): Likewise.
1763 * completer.c: Update global comment.
1764 (advance_to_expression_complete_word_point): Update call to
1765 word_break_characters.
1766 (complete_files_symbols): Likewise.
1767 (complete_line_internal_1): Likewise.
1768 (default_completer_handle_brkchars): Likewise.
1769 (skip_quoted_chars): Likewise.
1770 * d-lang.c (d_language_data): Delete la_word_break_characters
1771 initializer.
1772 * f-lang.c (f_word_break_characters): Delete.
1773 (f_language_data): Delete la_word_break_characters initializer.
1774 (f_language::word_break_characters): New member function.
1775 * go-lang.c (go_language_data): Delete la_word_break_characters
1776 initializer.
1777 * language.c (unknown_language_data): Likewise.
1778 (auto_language_data): Likewise.
1779 * language.h (default_word_break_characters): Move declaration to
1780 earlier in the file.
1781 (language_data): Delete la_word_break_characters field.
1782 (language_defn::word_break_characters): New member function.
1783 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1784 initializer.
1785 * objc-lang.c (objc_language_data): Likewise.
1786 * opencl-lang.c (opencl_language_data): Likewise.
1787 * p-lang.c (pascal_language_data): Likewise.
1788 * rust-lang.c (rust_language_data): Likewise.
1789
c9debfb9
AB
17902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1791
1792 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1793 (ada_language_data): Delete la_get_symbol_name_matcher
1794 initializer.
1795 (language_defn::get_symbol_name_matcher_inner): New member
1796 function.
1797 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1798 initializer.
1799 (cplus_language_data): Likewise.
1800 (cplus_language::get_symbol_name_matcher_inner): New member
1801 function.
1802 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1803 (minimal_language_data): Likewise.
1804 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1805 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1806 initializer.
1807 * dictionary.c (iter_match_first_hashed): Update call to
1808 get_symbol_name_matcher.
1809 (iter_match_next_hashed): Likewise.
1810 (iter_match_next_linear): Likewise.
1811 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1812 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1813 initializer.
1814 (f_language::get_symbol_name_matcher_inner): New member function.
1815 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1816 initializer.
1817 * language.c (default_symbol_name_matcher): Update header comment,
1818 make static.
1819 (language_defn::get_symbol_name_matcher): New definition.
1820 (language_defn::get_symbol_name_matcher_inner): Likewise.
1821 (get_symbol_name_matcher): Delete.
1822 (unknown_language_data): Delete la_get_symbol_name_matcher
1823 initializer.
1824 (auto_language_data): Likewise.
1825 * language.h (language_data): Delete la_get_symbol_name_matcher
1826 field.
1827 (language_defn::get_symbol_name_matcher): New member function.
1828 (language_defn::get_symbol_name_matcher_inner): Likewise.
1829 (default_symbol_name_matcher): Delete declaration.
1830 * linespec.c (find_methods): Update call to
1831 get_symbol_name_matcher.
1832 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1833 initializer.
1834 * minsyms.c (lookup_minimal_symbol): Update call to
1835 get_symbol_name_matcher.
1836 (iterate_over_minimal_symbols): Likewise.
1837 * objc-lang.c (objc_language_data): Delete
1838 la_get_symbol_name_matcher initializer.
1839 * opencl-lang.c (opencl_language_data): Likewise.
1840 * p-lang.c (pascal_language_data): Likewise.
1841 * psymtab.c (psymbol_name_matches): Update call to
1842 get_symbol_name_matcher.
1843 * rust-lang.c (rust_language_data): Delete
1844 la_get_symbol_name_matcher initializer.
1845 * symtab.c (symbol_matches_search_name): Update call to
1846 get_symbol_name_matcher.
1847 (compare_symbol_name): Likewise.
1848
9a49ad8c
AB
18492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * ada-lang.c (ada_language_data): Delete la_compute_program
1852 initializer.
1853 * c-lang.c (c_language_data): Likewise.
1854 (c_language::compute_program): New member function.
1855 (cplus_language_data): Delete la_compute_program initializer.
1856 (cplus_language::compute_program): New member function.
1857 (asm_language_data): Delete la_compute_program initializer.
1858 (minimal_language_data): Likewise.
1859 * c-lang.h (c_compute_program): Update comment.
1860 (cplus_compute_program): Likewise.
1861 * compile/compile-c-support.c (c_compute_program): Likewise.
1862 (cplus_compute_program): Likewise.
1863 * compile/compile.c (compile_to_object): Update call to
1864 la_compute_program.
1865 * d-lang.c (d_language_data): Delete la_compute_program
1866 initializer.
1867 * f-lang.c (f_language_data): Likewise.
1868 * go-lang.c (go_language_data): Likewise.
1869 * language.c (unknown_language_data): Likewise.
1870 (auto_language_data): Likewise.
1871 * language.h (language_data): Delete la_compute_program field.
1872 (language_defn::compute_program): New member function.
1873 * m2-lang.c (m2_language_data): Delete la_compute_program
1874 initializer.
1875 * objc-lang.c (objc_language_data): Likewise.
1876 * opencl-lang.c (opencl_language_data): Likewise.
1877 * p-lang.c (pascal_language_data): Likewise.
1878 * rust-lang.c (rust_language_data): Likewise.
1879
eff93b4d
AB
18802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1881
1882 * ada-lang.c (ada_language_data) Delete
1883 la_class_name_from_physname initializer.
1884 * c-lang.c (c_language_data): Likewise.
1885 (cplus_language_data): Likewise.
1886 (cplus_language::class_name_from_physname): New member function.
1887 (asm_language_data): Delete la_class_name_from_physname
1888 initializer.
1889 (minimal_language_data): Likewise.
1890 * d-lang.c (d_language_data): Likewise.
1891 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1892 method on language_defn class.
1893 (guess_full_die_structure_name): Likewise.
1894 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1895 initializer.
1896 * go-lang.c (go_language_data): Likewise.
1897 * language.c (language_class_name_from_physname): Delete.
1898 (unk_lang_class_name): Delete.
1899 (unknown_language_data): Delete la_class_name_from_physname
1900 initializer.
1901 (auto_language_data): Likewise.
1902 * language.h (language_data): Delete la_class_name_from_physname
1903 field.
1904 (language_defn::class_name_from_physname): New function.
1905 (language_class_name_from_physname): Delete declaration.
1906 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1907 initializer.
1908 * objc-lang.c (objc_language_data): Likewise.
1909 * opencl-lang.c (opencl_language_data): Likewise.
1910 * p-lang.c (pascal_language_data): Likewise.
1911 * rust-lang.c (rust_language_data): Likewise.
1912
de543742
TT
19132020-06-16 Tom Tromey <tom@tromey.com>
1914
1915 * tui/tui-data.h (STATUS_NAME): New macro.
1916 * tui/tui-layout.c (tui_remove_some_windows)
1917 (initialize_known_windows, tui_register_window)
1918 (tui_layout_split::remove_windows, initialize_layouts)
1919 (tui_new_layout_command): Don't use hard-coded window names.
1920
a350efd4
TT
19212020-06-16 Tom Tromey <tom@tromey.com>
1922
1923 PR tui/25348:
1924 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1925 tui_initialize_readline. Only run once. Call rl_initialize.
1926 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1927 tui_initialize_readline.
1928 * tui/tui-io.c (tui_setup_io): Call
1929 tui_ensure_readline_initialized.
1930 * tui/tui-interp.c (tui_interp::init): Update.
1931
39ec0490
TT
19322020-06-16 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1935 Also preserve the status window.
1936
d2d1ea20
TT
19372020-06-16 Tom Tromey <tom@tromey.com>
1938
1939 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1940 where m_window==nullptr.
1941
66920317
TT
19422020-06-15 Tom Tromey <tromey@adacore.com>
1943
1944 * windows-nat.c (windows_nat::handle_output_debug_string):
1945 Update.
1946 (windows_nat::handle_ms_vc_exception): Update.
1947 * target.h (target_read_string): Change API.
1948 * target.c (target_read_string): Change API.
1949 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1950 Update.
1951 * solib-frv.c (frv_current_sos): Update.
1952 * solib-dsbt.c (dsbt_current_sos): Update.
1953 * solib-darwin.c (darwin_current_sos): Update.
1954 * linux-thread-db.c (inferior_has_bug): Update.
1955 * expprint.c (print_subexp_standard): Update.
1956 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1957 (ada_exception_message_1): Update.
1958
a5d871dd
TT
19592020-06-15 Tom Tromey <tromey@adacore.com>
1960
1961 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1962
670e35fa
TT
19632020-06-15 Tom Tromey <tromey@adacore.com>
1964
1965 * valprint.c (read_string): Update comment.
1966 * target.c (MIN): Remove.
1967 (target_read_string): Rewrite.
1968
f5272a3b
TT
19692020-06-15 Tom Tromey <tromey@adacore.com>
1970
1971 * corefile.c (read_memory_string): Remove.
1972 * ada-valprint.c (ada_value_print_ptr): Update.
1973 * ada-lang.h (ada_tag_name): Change return type.
1974 * ada-lang.c (type_from_tag): Update.
1975 (ada_tag_name_from_tsd): Change return type. Use
1976 target_read_string.
1977 (ada_tag_name): Likewise.
1978 * gdbcore.h (read_memory_string): Don't declare.
1979
2c074f49
HD
19802020-06-14 Hannes Domani <ssbssa@yahoo.de>
1981
1982 * symtab.c (rbreak_command): Ignore Windows drive colon.
1983
6a17d503
SM
19842020-06-12 Simon Marchi <simon.marchi@efficios.com>
1985
1986 * NEWS: Mention removed GDBserver host support.
1987
453c733f
NC
19882020-06-12 Nelson Chu <nelson.chu@sifive.com>
1989
1990 * features/riscv/rebuild-csr-xml.sh: Updated.
1991
2b4e6a3f
TT
19922020-06-11 Tom Tromey <tom@tromey.com>
1993
1994 PR gdb/18318:
1995 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1996
4412332f
JG
19972020-06-09 Jonny Grant <jg@jguk.org>
19982020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1999
2000 * main.c (captured_main_1): Don't print new line after help.
2001 (print_gdb_help): add mailing list and IRC channel information
2002 to --help. Add new lines between items in the footer. Remove
2003 quotes around bug url.
2004
2f33032a
KS
20052020-06-11 Keith Seitz <keiths@redhat.com>
2006
2007 PR gdb/21356
2008 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2009 Resolve typedefs for type length calculations.
2010
7ab96794
TV
20112020-06-10 Tom de Vries <tdevries@suse.de>
2012
2013 PR ada/24713
2014 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2015 (write_psymbols): Enable .gdb_index for ada.
2016 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2017 ada.
2018
e5f3ece2
TV
20192020-06-10 Tom de Vries <tdevries@suse.de>
2020
2021 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2022 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2023 namei" instead of "const char *name" argument.
2024 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2025 dw2_symtab_iter_init.
2026
940da03e
SM
20272020-06-08 Simon Marchi <simon.marchi@efficios.com>
2028
2029 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2030 to use type::field and field::type instead.
2031
b6cdac4b
SM
20322020-06-08 Simon Marchi <simon.marchi@efficios.com>
2033
2034 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2035 to use field::type instead.
2036
5d14b6e5
SM
20372020-06-08 Simon Marchi <simon.marchi@efficios.com>
2038
2039 * gdbtypes.h (struct field) <type, set_type>: New methods.
2040 Rename `type` field to...
2041 <m_type>: ... this. Change references throughout to use type or
2042 set_type methods.
2043 (FIELD_TYPE): Use field::type. Change call sites that modify
2044 the field's type to use field::set_type instead.
2045
3d967001
SM
20462020-06-08 Simon Marchi <simon.marchi@efficios.com>
2047
2048 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2049 to use type::index_type instead.
2050
262abc0d
SM
20512020-06-08 Simon Marchi <simon.marchi@efficios.com>
2052
2053 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2054 methods.
2055 (TYPE_INDEX_TYPE): Use type::index_type.
2056 * gdbtypes.c (create_array_type_with_stride): Likewise.
2057
82836c92
TT
20582020-06-07 Tom Tromey <tom@tromey.com>
2059
2060 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2061 parameter.
2062 (generic_value_print): Update.
2063
940dace9
AB
20642020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2065
2066 Revert commit 982a38f60b0.
2067 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2068
982a38f6
AB
20692020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2072 avoid use after free.
2073
82f06518
TV
20742020-06-05 Tom de Vries <tdevries@suse.de>
2075
2076 * NEWS: Fix typos.
2077
f8c41851
SM
20782020-06-04 Simon Marchi <simon.marchi@efficios.com>
2079
2080 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2081 the per_bfd object.
2082 (dwarf2_read_debug_names): Likewise.
2083 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2084 object when re-using a per_bfd object with an index.
2085
f9b5d5ea
TV
20862020-06-03 Tom de Vries <tdevries@suse.de>
2087
2088 PR symtab/26046
2089 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2090 children for C++.
2091 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2092 DW_TAG_subprogram.
2093
f6eee2d0
AB
20942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * ada-lang.c (ada_language_data): Delete skip_trampoline
2097 initializer.
2098 * c-lang.c (c_language_data): Likewise.
2099 (cplus_language_data): Likewise.
2100 (cplus_language::skip_trampoline): New member function.
2101 (asm_language_data): Delete skip_trampoline initializer.
2102 (minimal_language_data): Likewise.
2103 * d-lang.c (d_language_data): Likewise.
2104 * f-lang.c (f_language_data): Likewise.
2105 * go-lang.c (go_language_data): Likewise.
2106 * language.c (unk_lang_trampoline): Delete function.
2107 (skip_language_trampoline): Update.
2108 (unknown_language_data): Delete skip_trampoline initializer.
2109 (auto_language_data): Likewise.
2110 * language.h (language_data): Delete skip_trampoline field.
2111 (language_defn::skip_trampoline): New function.
2112 * m2-lang.c (m2_language_data): Delete skip_trampoline
2113 initializer.
2114 * objc-lang.c (objc_skip_trampoline): Delete function, move
2115 implementation to objc_language::skip_trampoline.
2116 (objc_language_data): Delete skip_trampoline initializer.
2117 (objc_language::skip_trampoline): New member function with
2118 implementation from objc_skip_trampoline.
2119 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2120 initializer.
2121 * p-lang.c (pascal_language_data): Likewise.
2122 * rust-lang.c (rust_language_data): Likewise.
2123
0a50df5d
AB
21242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2127 (ada_language::demangle): New member function.
2128 * c-lang.c (c_language_data): Delete la_demangle initializer.
2129 (cplus_language_data): Delete la_demangle initializer.
2130 (cplus_language::demangle): New member function.
2131 (asm_language_data): Delete la_demangle initializer.
2132 (minimal_language_data): Delete la_demangle initializer.
2133 * d-lang.c (d_language_data): Delete la_demangle initializer.
2134 (d_language::demangle): New member function.
2135 * f-lang.c (f_language_data): Delete la_demangle initializer.
2136 (f_language::demangle): New member function.
2137 * go-lang.c (go_language_data): Delete la_demangle initializer.
2138 (go_language::demangle): New member function.
2139 * language.c (language_demangle): Update.
2140 (unk_lang_demangle): Delete.
2141 (unknown_language_data): Delete la_demangle initializer.
2142 (unknown_language::demangle): New member function.
2143 (auto_language_data): Delete la_demangle initializer.
2144 (auto_language::demangle): New member function.
2145 * language.h (language_data): Delete la_demangle field.
2146 (language_defn::demangle): New function.
2147 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2148 * objc-lang.c (objc_language_data): Delete la_demangle
2149 initializer.
2150 (objc_language::demangle): New member function.
2151 * opencl-lang.c (opencl_language_data): Delete la_demangle
2152 initializer.
2153 * p-lang.c (pascal_language_data): Likewise.
2154 * rust-lang.c (rust_language_data): Likewise.
2155 (rust_language::demangle): New member function.
2156
fbfb0a46
AB
21572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * ada-lang.c (ada_language_data): Delete la_print_type
2160 initializer.
2161 (ada_language::print_type): New member function.
2162 * c-lang.c (c_language_data): Delete la_print_type initializer.
2163 (c_language::print_type): New member function.
2164 (cplus_language_data): Delete la_print_type initializer.
2165 (cplus_language::print_type): New member function.
2166 (asm_language_data): Delete la_print_type initializer.
2167 (asm_language::print_type): New member function.
2168 (minimal_language_data): Delete la_print_type initializer.
2169 (minimal_language::print_type): New member function.
2170 * d-lang.c (d_language_data): Delete la_print_type initializer.
2171 (d_language::print_type): New member function.
2172 * f-lang.c (f_language_data): Delete la_print_type initializer.
2173 (f_language::print_type): New member function.
2174 * go-lang.c (go_language_data): Delete la_print_type initializer.
2175 (go_language::print_type): New member function.
2176 * language.c (unk_lang_print_type): Delete.
2177 (unknown_language_data): Delete la_print_type initializer.
2178 (unknown_language::print_type): New member function.
2179 (auto_language_data): Delete la_print_type initializer.
2180 (auto_language::print_type): New member function.
2181 * language.h (language_data): Delete la_print_type field.
2182 (language_defn::print_type): New function.
2183 (LA_PRINT_TYPE): Update.
2184 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2185 (m2_language::print_type): New member function.
2186 * objc-lang.c (objc_language_data): Delete la_print_type
2187 initializer.
2188 (objc_language::print_type): New member function.
2189 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2190 to opencl_language::print_type.
2191 (opencl_language_data): Delete la_print_type initializer.
2192 (opencl_language::print_type): New member function, implementation
2193 from opencl_print_type.
2194 * p-lang.c (pascal_language_data): Delete la_print_type
2195 initializer.
2196 (pascal_language::print_type): New member function.
2197 * rust-lang.c (rust_print_type): Delete, implementation moved to
2198 rust_language::print_type.
2199 (rust_language_data): Delete la_print_type initializer.
2200 (rust_language::print_type): New member function, implementation
2201 from rust_print_type.
2202
6f827019
AB
22032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2204
2205 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2206 implementation moves to...
2207 (ada_language::sniff_from_mangled_name): ...here. Update return
2208 type.
2209 (ada_language_data): Delete la_sniff_from_mangled_name
2210 initializer.
2211 * c-lang.c (c_language_data): Likewise.
2212 (cplus_language_data): Likewise.
2213 (cplus_language::sniff_from_mangled_name): New member function,
2214 implementation taken from gdb_sniff_from_mangled_name.
2215 (asm_language_data): Delete la_sniff_from_mangled_name
2216 initializer.
2217 (minimal_language_data): Likewise.
2218 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2219 implementation moves to cplus_language::sniff_from_mangled_name.
2220 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2221 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2222 moves to...
2223 (d_language::sniff_from_mangled_name): ...here.
2224 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2225 * f-lang.c (f_language_data): Likewise.
2226 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2227 moves to...
2228 (go_language::sniff_from_mangled_name): ...here.
2229 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2230 * language.c (language_sniff_from_mangled_name): Delete.
2231 (unknown_language_data): Delete la_sniff_from_mangled_name
2232 initializer.
2233 (auto_language_data): Likewise.
2234 * language.h (language_data): Delete la_sniff_from_mangled_name
2235 field.
2236 (language_defn::sniff_from_mangled_name): New function.
2237 (language_sniff_from_mangled_name): Delete declaration.
2238 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2239 field.
2240 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2241 implementation moves to...
2242 (objc_language::sniff_from_mangled_name): ...here.
2243 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2244 * opencl-lang.c (opencl_language_data): Likewise.
2245 * p-lang.c (pascal_language_data): Likewise.
2246 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2247 implementation moves to...
2248 (rust_language::sniff_from_mangled_name): ...here.
2249 (rust_language_data): Delete la_sniff_from_mangled_name
2250 initializer.
2251 * symtab.c (symbol_find_demangled_name): Call
2252 sniff_from_mangled_name member function.
2253
fb8006fd
AB
22542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2255
2256 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2257 initializer.
2258 * c-lang.c (c_language_data): Likewise.
2259 (cplus_language_data): Likewise.
2260 (cplus_language::search_name_hash): New member function.
2261 (asm_language_data): Delete la_search_name_hash initializer.
2262 (minimal_language_data): Likewise.
2263 * d-lang.c (d_language_data): Likewise.
2264 * dictionary.c (default_search_name_hash): Rename to...
2265 (language_defn::search_name_hash): ...this.
2266 * f-lang.c (f_language_data): Likewise.
2267 (f_language::search_name_hash): New member function.
2268 * go-lang.c (go_language_data): Delete la_search_name_hash
2269 initializer.
2270 * language.c (unknown_language_data): Likewise.
2271 (auto_language_data): Likewise.
2272 * language.h (struct language_data): Delete la_search_name_hash
2273 field.
2274 (language_defn::search_name_hash): Declare new member function.
2275 (default_search_name_hash): Delete declaration.
2276 * m2-lang.c (m2_language_data): Delete la_search_name_hash
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 * symtab.c (search_name_hash): Update call.
2283
8e25bafe
AB
22842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2285
2286 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2287 initializer.
2288 * c-lang.c (class compile_instance): Declare.
2289 (c_language_data): Delete la_get_compile_instance initializer.
2290 (c_language::get_compile_instance): New member function.
2291 (cplus_language_data): Delete la_get_compile_instance initializer.
2292 (cplus_language::get_compile_instance): New member function.
2293 (asm_language_data): Delete la_get_compile_instance initializer.
2294 (minimal_language_data): Likewise.
2295 * c-lang.h (c_get_compile_context): Update comment.
2296 (cplus_get_compile_context): Update comment.
2297 * compile/compile.c (compile_to_object): Update calls, don't rely
2298 on function pointer being NULL.
2299 * d-lang.c (d_language_data): Delete la_get_compile_instance
2300 initializer.
2301 * f-lang.c (f_language_data): Likewise.
2302 * go-lang.c (go_language_data): Likewise.
2303 * language.c (unknown_language_data): Likewise.
2304 (auto_language_data): Likewise.
2305 * language.h (language_data): Delete la_get_compile_instance field.
2306 (language_defn::get_compile_instance): New member function.
2307 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2308 initializer.
2309 * objc-lang.c (objc_language_data): Likewise.
2310 * opencl-lang.c (opencl_language_data): Likewise.
2311 * p-lang.c (pascal_language_data): Likewise.
2312 * rust-lang.c (rust_language_data): Likewise.
2313
4009ee92
AB
23142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * ada-lang.c (ada_add_all_symbols): Update comment.
2317 (ada_iterate_over_symbols): Delete, move implementation to...
2318 (ada_language::iterate_over_symbols): ...here, a new member
2319 function, rewrite to use range based for loop.
2320 (ada_language_data): Delete la_iterate_over_symbols initializer.
2321 * c-lang.c (c_language_data): Likewise.
2322 (cplus_language_data): Likewise.
2323 (asm_language_data): Likewise.
2324 (minimal_language_data): Likewise.
2325 * d-lang.c (d_language_data): Likewise.
2326 * f-lang.c (f_language_data): Likewise.
2327 * go-lang.c (go_language_data): Likewise.
2328 * language.c (unknown_language_data): Likewise.
2329 (auto_language_data): Likewise.
2330 * language.h (language_data): Delete la_iterate_over_symbols field.
2331 (language_defn::iterate_over_symbols): New member function.
2332 (LA_ITERATE_OVER_SYMBOLS): Update.
2333 * linespec.c (iterate_over_all_matching_symtabs): Update.
2334 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2335 initializer.
2336 * objc-lang.c (objc_language_data): Likewise.
2337 * opencl-lang.c (opencl_language_data): Likewise.
2338 * p-lang.c (pascal_language_data): Likewise.
2339 * rust-lang.c (rust_language_data): Likewise.
2340
54f4ca46
AB
23412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2342
2343 * ada-lang.c (ada_language_data): Delete
2344 la_lookup_transparent_type initializer.
2345 * c-lang.c (c_language_data): Likewise.
2346 (cplus_language_data): Likewise.
2347 (cplus_language::lookup_transparent_type): New member function.
2348 (asm_language_data): Delete la_lookup_transparent_type
2349 initializer.
2350 (minimal_language_data): Likewise.
2351 * d-lang.c (d_language_data): Likewise.
2352 * f-lang.c (f_language_data): Likewise.
2353 * go-lang.c (go_language_data): Likewise.
2354 * language.c (unknown_language_data): Likewise.
2355 (auto_language_data): Likewise.
2356 * language.h (struct language_data): Delete
2357 la_lookup_transparent_type field.
2358 (language_defn::lookup_transparent_type): New member function.
2359 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2360 initializer.
2361 * objc-lang.c (objc_language_data): Likewise.
2362 * opencl-lang.c (opencl_language_data): Likewise.
2363 * p-lang.c (pascal_language_data): Likewise.
2364 * rust-lang.c (rust_language_data): Likewise.
2365 * symtab.c (symbol_matches_domain): Update call.
2366
1fb314aa
AB
23672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * ada-lang.c (ada_language_arch_info): Delete function, move
2370 implementation to...
2371 (ada_language::language_arch_info): ...here, a new member
2372 function.
2373 (ada_language_data): Delete la_language_arch_info.
2374 * c-lang.c (c_language_data): Likewise.
2375 (c_language::language_arch_info): New member function.
2376 (cplus_language_arch_info): Delete function, move
2377 implementation to...
2378 (cplus_language::language_arch_info): ...here, a new member
2379 function.
2380 (cplus_language_data): Delete la_language_arch_info.
2381 (asm_language_data): Likewise.
2382 (asm_language::language_arch_info): New member function.
2383 (minimal_language_data): Delete la_language_arch_info.
2384 (minimal_language::language_arch_info): New member function.
2385 * d-lang.c (d_language_arch_info): Delete function, move
2386 implementation to...
2387 (d_language::language_arch_info): ...here, a new member
2388 function.
2389 (d_language_data): Delete la_language_arch_info.
2390 * f-lang.c (f_language_arch_info): Delete function, move
2391 implementation to...
2392 (f_language::language_arch_info): ...here, a new member
2393 function.
2394 (f_language_data): Delete la_language_arch_info.
2395 * go-lang.c (go_language_arch_info): Delete function, move
2396 implementation to...
2397 (go_language::language_arch_info): ...here, a new member
2398 function.
2399 (go_language_data): Delete la_language_arch_info.
2400 * language.c (unknown_language_data): Likewise.
2401 (unknown_language::language_arch_info): New member function.
2402 (auto_language_data): Delete la_language_arch_info.
2403 (auto_language::language_arch_info): New member function.
2404 (language_gdbarch_post_init): Update call to
2405 la_language_arch_info.
2406 * language.h (language_data): Delete la_language_arch_info
2407 function pointer.
2408 (language_defn::language_arch_info): New function.
2409 * m2-lang.c (m2_language_arch_info): Delete function, move
2410 implementation to...
2411 (m2_language::language_arch_info): ...here, a new member
2412 function.
2413 (m2_language_data): Delete la_language_arch_info.
2414 * objc-lang.c (objc_language_arch_info): Delete function, move
2415 implementation to...
2416 (objc_language::language_arch_info): ...here, a new member
2417 function.
2418 (objc_language_data): Delete la_language_arch_info.
2419 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2420 implementation to...
2421 (opencl_language::language_arch_info): ...here, a new member
2422 function.
2423 (opencl_language_data): Delete la_language_arch_info.
2424 * p-lang.c (pascal_language_arch_info): Delete function, move
2425 implementation to...
2426 (pascal_language::language_arch_info): ...here, a new member
2427 function.
2428 (pascal_language_data): Delete la_language_arch_info.
2429 * rust-lang.c (rust_language_arch_info): Delete function, move
2430 implementation to...
2431 (rust_language::language_arch_info): ...here, a new member
2432 function.
2433 (rust_language_data): Delete la_language_arch_info.
2434
48448202
AB
24352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2436
2437 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2438 initializer.
2439 * c-lang.c (c_language_data): Likewise.
2440 (cplus_language_data): Likewise.
2441 (cplus_language::pass_by_reference_info): New method.
2442 (asm_language_data): Delete la_pass_by_reference initializer.
2443 (minimal_language_data): Likewise.
2444 * cp-abi.c (cp_pass_by_reference): Remove use of
2445 default_pass_by_reference.
2446 * d-lang.c (d_language_data): Likewise.
2447 * f-lang.c (f_language_data): Likewise.
2448 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2449 default_pass_by_reference.
2450 * go-lang.c (go_language_data): Likewise.
2451 * language.c (language_pass_by_reference): Update.
2452 (default_pass_by_reference): Delete.
2453 (unknown_language_data): Delete la_pass_by_reference
2454 initializer.
2455 (auto_language_data): Likewise.
2456 * language.h (struct language_data): Delete la_pass_by_reference
2457 field.
2458 (language_defn::pass_by_reference_info): New member function.
2459 (default_pass_by_reference): Delete declaration.
2460 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2461 initializer.
2462 * objc-lang.c (objc_language_data): Likewise.
2463 * opencl-lang.c (opencl_language_data): Likewise.
2464 * p-lang.c (pascal_language_data): Likewise.
2465 * rust-lang.c (rust_language_data): Likewise.
2466
15e5fd35
AB
24672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2468
2469 * ada-lang.c (ada_read_var_value): Delete function, move
2470 implementation to...
2471 (ada_language::read_var_value): ...here.
2472 (ada_language_data): Delete la_read_var_value 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 * findvar.c (default_read_var_value): Rename to...
2479 (language_defn::read_var_value): ...this.
2480 * findvar.c (read_var_value): Update header comment, and change to
2481 call member function instead of function pointer.
2482 * go-lang.c (go_language_data): Likewise.
2483 * language.c (unknown_language_data): Delete la_read_var_value
2484 initializer.
2485 (auto_language_data): Likewise.
2486 * language.h (struct language_data): Delete la_read_var_value
2487 field.
2488 (language_defn::read_var_value): New member function.
2489 (default_read_var_value): Delete declaration.
2490 * m2-lang.c (m2_language_data): Delete la_read_var_value
2491 initializer.
2492 * objc-lang.c (objc_language_data): Likewise.
2493 * opencl-lang.c (opencl_language_data): Likewise.
2494 * p-lang.c (pascal_language_data): Likewise.
2495 * rust-lang.c (rust_language_data): Likewise.
2496 * value.h (default_read_var_value): Delete declaration.
2497
5bd40f2a
AB
24982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * ada-lang.c (ada_print_array_index): Delete function, move
2501 implementation to...
2502 (ada_language::print_array_index): ...here.
2503 (ada_language_data): Delete la_print_array_index initializer.
2504 * c-lang.c (c_language_data): Likewise.
2505 (cplus_language_data): Likewise.
2506 (minimal_language_data): Likewise.
2507 * d-lang.c (d_language_data): Likewise.
2508 * f-lang.c (f_language_data): Likewise.
2509 * go-lang.c (go_language_data): Likewise.
2510 * language.c (default_print_array_index): Delete function, move
2511 implementation to...
2512 (language_defn::print_array_index): ...here.
2513 (unknown_language_data): Delete la_print_array_index initializer.
2514 (auto_language_data): Likewise.
2515 * language.h (struct language_data): Delete la_print_array_index
2516 field.
2517 (language_defn::print_array_index): New member function.
2518 (LA_PRINT_ARRAY_INDEX): Update.
2519 (default_print_array_index): Delete declaration.
2520 * m2-lang.c (m2_language_data): Delete la_print_array_index
2521 initializer.
2522 * objc-lang.c (objc_language_data): Likewise.
2523 * opencl-lang.c (opencl_language_data): Likewise.
2524 * p-lang.c (pascal_language_data): Likewise.
2525 * rust-lang.c (rust_language_data): Likewise.
2526
0874fd07
AB
25272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * gdb/ada-lang.c (ada_language_defn): Convert to...
2530 (ada_language_data): ...this.
2531 (class ada_language): New class.
2532 (ada_language_defn): New static global.
2533 * gdb/c-lang.c (c_language_defn): Convert to...
2534 (c_language_data): ...this.
2535 (class c_language): New class.
2536 (c_language_defn): New static global.
2537 (cplus_language_defn): Convert to...
2538 (cplus_language_data): ...this.
2539 (class cplus_language): New class.
2540 (cplus_language_defn): New static global.
2541 (asm_language_defn): Convert to...
2542 (asm_language_data): ...this.
2543 (class asm_language): New class.
2544 (asm_language_defn): New static global.
2545 (minimal_language_defn): Convert to...
2546 (minimal_language_data): ...this.
2547 (class minimal_language): New class.
2548 (minimal_language_defn): New static global.
2549 * gdb/d-lang.c (d_language_defn): Convert to...
2550 (d_language_data): ...this.
2551 (class d_language): New class.
2552 (d_language_defn): New static global.
2553 * gdb/f-lang.c (f_language_defn): Convert to...
2554 (f_language_data): ...this.
2555 (class f_language): New class.
2556 (f_language_defn): New static global.
2557 * gdb/go-lang.c (go_language_defn): Convert to...
2558 (go_language_data): ...this.
2559 (class go_language): New class.
2560 (go_language_defn): New static global.
2561 * gdb/language.c (unknown_language_defn): Remove declaration.
2562 (current_language): Initialize to nullptr, real initialization is
2563 moved to _initialize_language.
2564 (languages): Delete global.
2565 (language_defn::languages): Define.
2566 (set_language_command): Use language_defn::languages.
2567 (set_language): Likewise.
2568 (range_error): Likewise.
2569 (language_enum): Likewise.
2570 (language_def): Likewise.
2571 (add_set_language_command): Use language_def::languages for the
2572 language list, and language_def to lookup language pointers.
2573 (skip_language_trampoline): Use language_defn::languages.
2574 (unknown_language_defn): Convert to...
2575 (unknown_language_data): ...this.
2576 (class unknown_language): New class.
2577 (unknown_language_defn): New static global.
2578 (auto_language_defn): Convert to...
2579 (auto_language_data): ...this.
2580 (class auto_language): New class.
2581 (auto_language_defn): New static global.
2582 (language_gdbarch_post_init): Use language_defn::languages.
2583 (_initialize_language): Initialize current_language.
2584 * gdb/language.h (struct language_defn): Rename to...
2585 (struct language_data): ...this.
2586 (struct language_defn): New.
2587 (auto_language_defn): Delete.
2588 (unknown_language_defn): Delete.
2589 (minimal_language_defn): Delete.
2590 (ada_language_defn): Delete.
2591 (asm_language_defn): Delete.
2592 (c_language_defn): Delete.
2593 (cplus_language_defn): Delete.
2594 (d_language_defn): Delete.
2595 (f_language_defn): Delete.
2596 (go_language_defn): Delete.
2597 (m2_language_defn): Delete.
2598 (objc_language_defn): Delete.
2599 (opencl_language_defn): Delete.
2600 (pascal_language_defn): Delete.
2601 (rust_language_defn): Delete.
2602 * gdb/m2-lang.c (m2_language_defn): Convert to...
2603 (m2_language_data): ...this.
2604 (class m2_language): New class.
2605 (m2_language_defn): New static global.
2606 * gdb/objc-lang.c (objc_language_defn): Convert to...
2607 (objc_language_data): ...this.
2608 (class objc_language): New class.
2609 (objc_language_defn): New static global.
2610 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2611 (opencl_language_data): ...this.
2612 (class opencl_language): New class.
2613 (opencl_language_defn): New static global.
2614 * gdb/p-lang.c (pascal_language_defn): Convert to...
2615 (pascal_language_data): ...this.
2616 (class pascal_language): New class.
2617 (pascal_language_defn): New static global.
2618 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2619 language pointer, update comment format.
2620 * gdb/rust-lang.c (rust_language_defn): Convert to...
2621 (rust_language_data): ...this.
2622 (class rust_language): New class.
2623 (rust_language_defn): New static global.
2624
1313c56e
AB
26252020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2628 member variable.
2629 <m_stmt_at_address>: New member variable.
2630 (lnp_state_machine::record_line): Don't record some lines, update
2631 tracking of is_stmt at the same address.
2632 (lnp_state_machine::lnp_state_machine): Initialise new member
2633 variables.
2634
b7ed9f3d
ST
26352020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2636
2637 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2638 "-include gnu-nat-mig.h".
2639 * gnu-nat-mig.h: New file.
2640 * gnu-nat.c: Include "gnu-nat-mig.h".
2641 (exc_server, msg_reply_server, notify_server,
2642 process_reply_server): Remove declarations.
2643
14a8ad62
ST
26442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2645
2646 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2647 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2648 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2649 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2650 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2651 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2652 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2653 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2654 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2655 to gnu_nat_target class.
2656 * gnu-nat.c: Likewise.
2657 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2658 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2659 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2660 object.
2661 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2662 instead of `gnu_target'.
2663
0af5e106
ST
26642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2665
2666 * i386-gnu-tdep.c: Include "gdbcore.h"
2667 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2668 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2669 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2670 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2671 i386_gnu_sigcontext_addr): New functions
2672 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2673 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2674 tdep.
2675
078f2fc9
ST
26762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2677
2678 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2679 before fork_inferior call. Avoid calling it if target_is_pushed returns
2680 true.
2681
53dff92c
ST
26822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2683
2684 * gnu-nat.h (gnu_target): New variable declaration.
2685 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2686 gnu_target.
2687 * gnu-nat.c (gnu_target): New variable.
2688 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2689 add_thread_silent, and add_thread calls.
2690 (gnu_nat_target::create_inferior): Pass gnu_target to
2691 add_thread_silent, thread_change_ptid call.
2692 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2693 call.
2694
5a8b8627
ST
26952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2696
2697 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2698 (gnu_nat_target::find_memory_regions): Remove unused
2699 `old_address' variable.
2700
366f550a
ST
27012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2702
2703 * gnu-nat.c: Include "gdbarch.h".
2704
f14871bf
ST
27052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2706
2707 * reply_mig_hack.awk (Error return): Cast function through
2708 void *, to bypass compiler function call check.
2709
c6887cfb
ST
27102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2711
2712 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2713 $(srcdir)/reply_mig_hack.awk.
2714
6930bffe
ST
27152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2716
2717 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2718
112c22ed
JG
27192020-05-30 Jonny Grant <jg@jguk.org>
2720
2721 * configure.ac (ACX_BUGURL): change bug URL to https.
2722
f68f85b5
PA
27232020-05-30 Pedro Alves <palves@redhat.com>
2724
2725 * cp-support.c (replace_typedefs_template): New.
2726 (replace_typedefs_qualified_name): Handle
2727 DEMANGLE_COMPONENT_TEMPLATE.
2728
976ca316
SM
27292020-05-29 Simon Marchi <simon.marchi@efficios.com>
2730
2731 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2732 dwarf2/index-cache.h, dwarf2/index-write.c,
2733 dwarf2/index-write.h, dwarf2/line-header.c,
2734 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2735 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2736 variables and fields from `dwarf2_per_objfile` to just
2737 `per_objfile` throughout.
2738
989ade05
SM
27392020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2740
2741 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2742 <push_dwarf_reg_entry_value>: Add comment.
2743
c47bae85
KB
27442020-05-28 Kevin Buettner <kevinb@redhat.com>
2745 Keith Seitz <keiths@redhat.com>
2746
2747 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2748 instead of PyEval_ReleaseLock.
2749 (class gdbpy_gil): Move to earlier in file.
2750 (finalize_python): Set gdb_python_initialized.
2751 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2752 when not initialized.
2753
44486dcf
SM
27542020-05-28 Simon Marchi <simon.marchi@efficios.com>
2755
2756 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2757 <push_dwarf_reg_entry_value>: Remove assert. Override
2758 per_objfile with caller_per_objfile.
2759
f030440d
TV
27602020-05-28 Tom de Vries <tdevries@suse.de>
2761
2762 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2763 PR gold/15646 workaround to symbol kind "type".
2764
f0fbb768
TT
27652020-05-27 Tom Tromey <tromey@adacore.com>
2766
2767 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2768
af0b2a3e
TT
27692020-05-27 Tom Tromey <tromey@adacore.com>
2770
2771 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2772 Use htab_find_with_hash.
2773 <add_abbrev>: Remove "abbrev_number" parameter.
2774 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2775 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2776 (hash_abbrev): Add comment.
2777 (abbrev_table::lookup_abbrev): Move to header file.
2778 (abbrev_table::read): Update.
2779
7d00ffec
TT
27802020-05-27 Tom Tromey <tromey@adacore.com>
2781
2782 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2783 method.
2784 <canonical_name>: New member.
2785 <raw_name>: Rename from "name".
2786 (partial_die_info): Initialize canonical_name.
2787 (scan_partial_symbols): Check raw_name.
2788 (partial_die_parent_scope, partial_die_full_name)
2789 (add_partial_symbol, add_partial_subprogram)
2790 (add_partial_enumeration, load_partial_dies): Use "name" method.
2791 (partial_die_info::name): New method.
2792 (partial_die_info::read, guess_partial_die_structure_name)
2793 (partial_die_info::fixup): Update.
2794
697bba18
TT
27952020-05-27 Tom Tromey <tromey@adacore.com>
2796
2797 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2798 <get_ref_die_offset>: Inline.
2799 <get_ref_die_offset_complaint>: New method.
2800 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2801 (attribute::get_ref_die_offset_complaint): Rename from
2802 get_ref_die_offset. Just issue complaint.
2803
c17ace43
HD
28042020-05-27 Hannes Domani <ssbssa@yahoo.de>
2805
2806 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2807
96445f0b
HD
28082020-05-27 Hannes Domani <ssbssa@yahoo.de>
2809
2810 * exec.c (exec_file_attach): Use errno value of first openp failure.
2811
ac637ec3
HD
28122020-05-27 Hannes Domani <ssbssa@yahoo.de>
2813
2814 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2815 Don't close thread handle.
2816
17ee85fc
TT
28172020-05-27 Tom Tromey <tom@tromey.com>
2818 Simon Marchi <simon.marchi@efficios.com>
2819
2820 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2821 shared_ptr.
2822 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2823 member.
2824 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2825 dwarf2_per_bfd_objfile_data_key>: New globals.
2826 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2827 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2828 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2829 shared.
2830 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2831 short-circuit when sharing.
2832 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2833 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2834
39b16f87
SM
28352020-05-27 Simon Marchi <simon.marchi@efficios.com>
2836
2837 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2838 to...
2839 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2840 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2841
fcf23d5b
SM
28422020-05-27 Simon Marchi <simon.marchi@efficios.com>
2843
2844 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2845 build_name_components, find_name_components_bounds>:
2846 Add per_objfile parameter.
2847 (struct mapped_index) <symbol_name_at>: Likewise.
2848 (struct mapped_debug_names): Remove constructor.
2849 <dwarf2_per_objfile>: Remove field.
2850 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2851 (mapped_index_base::find_name_components_bounds,
2852 mapped_index_base::build_name_components,
2853 dw2_expand_symtabs_matching_symbol): Likewise.
2854 (class mock_mapped_index) <symbol_name_at>: Likewise.
2855 (check_match): Likewise.
2856 (check_find_bounds_finds): Likewise.
2857 (test_mapped_index_find_name_component_bounds): Update.
2858 (CHECK_MATCH): Update.
2859 (dw2_expand_symtabs_matching): Update.
2860 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2861 per_objfile parameter.
2862 <find_vec_in_debug_names>: Likewise.
2863 <m_per_objfile>: New field.
2864 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2865 parameter.
2866 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2867 (dw2_debug_names_iterator::next): Update.
2868 (dw2_debug_names_lookup_symbol): Update.
2869 (dw2_debug_names_expand_symtabs_for_function): Update.
2870 (dw2_debug_names_map_matching_symbols): Update.
2871 (dw2_debug_names_expand_symtabs_matching): Update.
2872 (dwarf2_read_debug_names): Update.
2873
7188ed02
SM
28742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2877 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2878 move to dwarf2_per_objfile.
2879 <read_in_chain>: Remove.
2880 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2881 remove_all_cus, age_comp_units>: New methods.
2882 <m_dwarf2_cus>: New member.
2883 (struct dwarf2_per_cu_data) <cu>: Remove.
2884 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2885 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2886 moved to methods of dwarf2_per_objfile.
2887 (dwarf2_clear_marks): Remove.
2888 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2889 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2890 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2891 (dwarf2_per_objfile::remove_all_cus): New.
2892 (class free_cached_comp_units) <~free_cached_comp_units>:
2893 Update.
2894 (load_cu): Update.
2895 (dw2_do_instantiate_symtab): Adjust.
2896 (fill_in_sig_entry_from_dwo_entry): Adjust.
2897 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2898 (cutu_reader::cutu_reader): Likewise.
2899 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2900 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2901 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2902 and dwarf2_per_objfile::age_comp_units.
2903 (load_partial_comp_unit): Update.
2904 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2905 (process_queue): Likewise.
2906 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2907 backlink.
2908 (dwarf2_read_addr_index): Likewise.
2909 (follow_die_offset): Likewise.
2910 (dwarf2_fetch_die_loc_sect_off): Likewise.
2911 (dwarf2_fetch_constant_bytes): Likewise.
2912 (dwarf2_fetch_die_type_sect_off): Likewise.
2913 (follow_die_sig_1): Likewise.
2914 (load_full_type_unit): Likewise.
2915 (read_signatured_type): Likewise.
2916 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2917 (dwarf2_cu::~dwarf2_cu): Remove.
2918 (dwarf2_per_objfile::get_cu): New.
2919 (dwarf2_per_objfile::set_cu): New.
2920 (age_cached_comp_units): Rename to...
2921 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2922 to std::unordered_map.
2923 (free_one_cached_comp_unit): Rename to...
2924 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2925 to std::unordered_map.
2926 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2927 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2928 a dwarf2_per_objfile in data.
2929 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2930 (dwarf2_clear_marks): Remove.
2931
2e671100
SM
29322020-05-27 Simon Marchi <simon.marchi@efficios.com>
2933
2934 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2935 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2936 (init_tu_and_read_dwo_dies): Likewise.
2937 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2938 (cutu_reader::cutu_reader): Likewise.
2939 (load_partial_comp_unit): Likewise.
2940 (process_psymtab_comp_unit): Update.
2941 (build_type_psymtabs_1): Update.
2942 (process_skeletonless_type_unit): Update.
2943 (load_full_comp_unit): Update.
2944 (find_partial_die): Update.
2945 (dwarf2_read_addr_index): Update.
2946 (read_signatured_type): Update.
2947
2e6a9f79
SM
29482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2949
2950 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2951 m_header_read_in>: New fields.
2952 <get_header>: New method.
2953 * dwarf2/read.c (per_cu_header_read_in): Remove.
2954 (dwarf2_per_cu_data::get_header): New.
2955 (dwarf2_per_cu_data::addr_size): Update.
2956 (dwarf2_per_cu_data::offset_size): Update.
2957 (dwarf2_per_cu_data::ref_addr_size): Update.
2958
1b555f17
SM
29592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2960
2961 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2962 (dw2_do_instantiate_symtab): Update.
2963 (queue_and_load_all_dwo_tus): Change parameter from
2964 dwarf2_per_cu_data to dwarf2_cu.
2965 (dwarf2_fetch_die_loc_sect_off): Update.
2966 (dwarf2_fetch_constant_bytes): Update.
2967 (dwarf2_fetch_die_type_sect_off): Update.
2968
8fc0b21d
SM
29692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2970
2971 * dwarf2/read.c (process_full_comp_unit,
2972 process_full_type_unit): Remove per_cu, per_objfile paramters.
2973 Add dwarf2_cu parameter.
2974 (process_queue): Update.
2975
168c9250
SM
29762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2977
2978 * dwarf2/read.c (create_cu_from_index_list): Replace
2979 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2980 (create_cus_from_index_list): Likewise.
2981 (create_cus_from_index): Likewise.
2982 (create_signatured_type_table_from_index): Likewise.
2983 (create_cus_from_debug_names_list): Likewise.
2984 (create_cus_from_debug_names): Likewise.
2985 (dwarf2_read_gdb_index): Update.
2986 (dwarf2_read_debug_names): Update.
2987
e286671b
TT
29882020-05-27 Tom Tromey <tom@tromey.com>
2989 Simon Marchi <simon.marchi@efficios.com>
2990
2991 * dwarf2/read.h (struct dwarf2_per_objfile)
2992 <get_type_for_signatured_type, set_type_for_signatured_type>:
2993 New methods.
2994 <m_type_map>: New member.
2995 (struct signatured_type) <type>: Remove.
2996 * dwarf2/read.c
2997 (dwarf2_per_objfile::get_type_for_signatured_type,
2998 dwarf2_per_objfile::set_type_for_signatured_type): New.
2999 (get_signatured_type): Use new methods.
3000
8adb8487
TT
30012020-05-27 Tom Tromey <tom@tromey.com>
3002 Simon Marchi <simon.marchi@efficios.com>
3003
3004 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3005 (struct dwarf2_per_objfile) <type_units>: New member.
3006 <get_type_unit_group_unshareable>: New method.
3007 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3008 num_symtabs, symtabs>: Remove; move to
3009 type_unit_group_unshareable.
3010 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3011 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3012 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3013
127bbf4b
SM
30142020-05-27 Simon Marchi <simon.marchi@efficios.com>
3015
3016 * dwarf2/read.h (struct dwarf2_per_cu_data):
3017 <dwarf2_per_objfile>: Remove.
3018 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3019 dwarf2_per_objfile.
3020 (create_signatured_type_table_from_index): Likewise.
3021 (create_signatured_type_table_from_debug_names): Likewise.
3022 (create_debug_type_hash_table): Likewise.
3023 (fill_in_sig_entry_from_dwo_entry): Likewise.
3024 (create_type_unit_group): Likewise.
3025 (read_comp_units_from_section): Likewise.
3026 (create_cus_hash_table): Likewise.
3027
f6e649dd
SM
30282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3031 dwarf2_per_cu_data::dwarf2_per_objfile.
3032 (compute_compunit_symtab_includes): Likewise.
3033 (dwarf2_cu::start_symtab): Likewise.
3034
aa66c379
SM
30352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3036
3037 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3038 parameter.
3039 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3040 (read_namespace_alias): Update.
3041 (lookup_die_type): Update.
3042 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3043 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3044 Update.
3045 (disassemble_dwarf_expression): Update.
3046
120ce1b5
SM
30472020-05-27 Simon Marchi <simon.marchi@efficios.com>
3048
3049 * dwarf2/read.h (struct dwarf2_queue_item): Add
3050 dwarf2_per_objfile parameter, assign new parameter.
3051 <per_objfile>: New field.
3052 * dwarf2/read.c (free_one_cached_comp_unit): Add
3053 dwarf2_per_objfile parameter.
3054 (queue_comp_unit): Likewise.
3055 (dw2_do_instantiate_symtab): Update.
3056 (process_psymtab_comp_unit): Update.
3057 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3058 (process_imported_unit_die): Update.
3059 (queue_and_load_dwo_tu): Update.
3060 (follow_die_offset): Update.
3061 (follow_die_sig_1): Update.
3062
9f47c707
SM
30632020-05-27 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3066 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3067 (read_call_site_scope): Assign per_objfile.
3068 (dwarf2_per_cu_data::objfile): Remove.
3069 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3070 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3071 dwarf2_per_objfile parameter.
3072 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3073 dwarf2_per_objfile parameter.
3074 (dwarf_expr_reg_to_entry_parameter): Add output
3075 dwarf2_per_objfile parameter.
3076 (locexpr_get_frame_base): Update.
3077 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3078 <push_dwarf_reg_entry_value>: Update.
3079 <call_site_to_target_addr>: Update.
3080 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3081 parameter.
3082 (value_of_dwarf_reg_entry): Update.
3083 (rw_pieced_value): Update.
3084 (indirect_synthetic_pointer): Update.
3085 (dwarf2_evaluate_property): Update.
3086 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3087 parameter.
3088 (locexpr_read_variable): Update.
3089 (locexpr_get_symbol_read_needs): Update.
3090 (loclist_read_variable): Update.
3091
14095eb3
SM
30922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3093
3094 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3095 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3096 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3097 parameter.
3098 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3099 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3100 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3101 parameter.
3102 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3103 sect_variable_value): Add dwarf2_per_objfile parameter.
3104 (class dwarf_evaluate_loc_desc) <dwarf_call,
3105 dwarf_variable_value>: Update.
3106 (fetch_const_value_from_synthetic_pointer): Add
3107 dwarf2_per_objfile parameter.
3108 (fetch_const_value_from_synthetic_pointer): Update.
3109 (coerced_pieced_ref): Update.
3110 (class symbol_needs_eval_context) <dwarf_call,
3111 dwarf_variable_value>: Update.
3112 (dwarf2_compile_expr_to_ax): Update.
3113
3c3cd3d4
SM
31142020-05-27 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3117 parameter.
3118 (dwarf2_evaluate_loc_desc_full): Update.
3119
82ca3f51
SM
31202020-05-27 Simon Marchi <simon.marchi@efficios.com>
3121
3122 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3123 parameter.
3124 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3125 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3126 dwarf2_per_objfile parameter.
3127 (decode_debug_loc_dwo_addresses): Likewise.
3128 (dwarf2_find_location_expression): Update.
3129 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3130 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3131 parameter.
3132 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3133 parameter.
3134 (locexpr_describe_location_1): Likewise.
3135 (locexpr_describe_location): Update.
3136
4b167ea1
SM
31372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3138
3139 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3140 Remove.
3141 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3142 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3143 (dwarf2_compile_property_to_c): Update.
3144 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3145 use text offset from objfile.
3146 (locexpr_tracepoint_var_ref): Update.
3147 (locexpr_generate_c_location): Update.
3148 (loclist_describe_location): Update.
3149 (loclist_tracepoint_var_ref): Update.
3150 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3151 dwarf2_per_objfile parameter.
3152 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3153 use text offset from objfile.
3154 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3155
89b07335
SM
31562020-05-27 Simon Marchi <simon.marchi@efficios.com>
3157
3158 * dwarf2/expr.h (struct dwarf_expr_context)
3159 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3160 <offset>: Remove.
3161 <per_objfile>: New member.
3162 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3163 dwarf2_per_objfile parameter. Don't set offset, set
3164 per_objfile.
3165 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3166 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3167 a dwarf2_per_objfile object instead of an offset.
3168 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3169 constructor.
3170 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3171 to dwarf2_expr_executor constructor. Don't set offset.
3172 (dwarf2_fetch_cfa_info): Update.
3173 (struct dwarf2_frame_cache) <text_offset>: Remove.
3174 <per_objfile>: New field.
3175 (dwarf2_frame_cache): Update.
3176 (dwarf2_frame_prev_register): Update.
3177 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3178 <dwarf_evaluate_loc_desc>: Add constructor.
3179 (dwarf2_evaluate_loc_desc_full): Update.
3180 (dwarf2_locexpr_baton_eval): Update.
3181 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3182 Add constructor.
3183 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3184
293e7e51
SM
31852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3188 addr_sized_int_type>: Move to dwarf2_cu.
3189 <int_type>: Move to dwarf2_per_objfile.
3190 (struct dwarf2_per_objfile) <int_type>: Move here.
3191 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3192 addr_sized_int_type>: Move here.
3193 (read_func_scope): Update.
3194 (read_array_type): Update.
3195 (read_tag_string_type): Update.
3196 (attr_to_dynamic_prop): Update.
3197 (dwarf2_per_cu_data::int_type): Rename to...
3198 (dwarf2_per_objfile::int_type): ... this.
3199 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3200 (dwarf2_cu::addr_sized_int_type): ... this.
3201 (read_subrange_type): Update.
3202 (dwarf2_per_cu_data::addr_type): Rename to...
3203 (dwarf2_cu::addr_type): ... this.
3204 (set_die_type): Update.
3205
64874a40
SM
32062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3207
3208 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3209 data through per_cu->cu.
3210
4ab09049
SM
32112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3212
3213 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3214 dwarf2_per_cu_data parameter fo dwarf2_cu.
3215 (lookup_dwo_type_unit): Likewise.
3216 (read_cutu_die_from_dwo): Likewise.
3217 (lookup_dwo_unit): Likewise.
3218 (open_and_init_dwo_file): Likewise.
3219 (lookup_dwo_cutu): Likewise.
3220 (lookup_dwo_comp_unit): Likewise.
3221 (lookup_dwo_type_unit): Likewise.
3222 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3223 (cutu_reader::cutu_reader): Update.
3224
47b14e86
SM
32252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3226
3227 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3228 parameter.
3229 (process_full_type_unit): Likewise.
3230 (process_queue): Update.
3231
43182c09
SM
32322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3233
3234 * dwarf2/read.c (recursively_compute_inclusions): Add
3235 dwarf2_per_objfile parameter.
3236 (compute_compunit_symtab_includes): Likewise.
3237 (process_cu_includes): Update.
3238
7aa104c4
SM
32392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3240
3241 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3242 parameter.
3243 (create_type_unit_group): Update.
3244 (process_psymtab_comp_unit_reader): Update.
3245 (build_type_psymtabs_reader): Update.
3246
e3beb21d
SM
32472020-05-27 Simon Marchi <simon.marchi@efficios.com>
3248
3249 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3250 object through m_this_cu->cu.
3251
d460f660
SM
32522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3253
3254 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3255 the info parameter.
3256 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3257
ab432490
SM
32582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3259
3260 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3261 per_objfile parameter.
3262 (load_full_type_unit): Add per_objfile parameter.
3263 (read_signatured_type): Likewise.
3264 (load_full_comp_unit): Likewise.
3265 (load_cu): Likewise.
3266 (dw2_do_instantiate_symtab): Likewise.
3267 (dw2_get_file_names): Likewise.
3268 (dw2_map_symtabs_matching_filename): Update.
3269 (dw_expand_symtabs_matching_file_matcher): Update.
3270 (dw2_map_symbol_filenames): Update.
3271 (process_psymtab_comp_unit): Add per_objfile parameter.
3272 (build_type_psymtabs_1): Update.
3273 (process_skeletonless_type_unit): Update.
3274 (dwarf2_build_psymtabs_hard): Update.
3275 (load_partial_comp_unit): Add per_objfile parameter.
3276 (scan_partial_symbols): Update.
3277 (load_full_comp_unit): Add per_objfile parameter.
3278 (process_imported_unit_die): Update.
3279 (create_cus_hash_table): Update.
3280 (find_partial_die): Update.
3281 (dwarf2_read_addr_index): Update.
3282 (follow_die_offset): Update.
3283 (dwarf2_fetch_die_loc_sect_off): Update.
3284 (dwarf2_fetch_constant_bytes): Update.
3285 (dwarf2_fetch_die_type_sect_off): Update.
3286 (follow_die_sig_1): Update.
3287 (load_full_type_unit): Add per_objfile parameter.
3288 (read_signatured_type): Likewise.
3289
313bad1b
SM
32902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3291
3292 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3293 of objfile_name.
3294
c3699833
SM
32952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3296
3297 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3298 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3299 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3300 field.
3301 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3302 (create_cus_from_index): Update.
3303 (dwarf2_read_gdb_index): Update.
3304 (create_cus_from_debug_names): Update.
3305 (dwarf2_read_debug_names): Update.
3306 (get_abbrev_section_for_cu): Update.
3307 (create_all_comp_units): Update.
3308 (read_attribute_value): Update.
3309 (get_debug_line_section): Update.
3310 * dwarf2/index-cache.c (index_cache::store): Update.
3311 * dwarf2/index-write.c (save_gdb_index_command): Update.
3312 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3313
1859c670
SM
33142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3315
3316 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3317 member.
3318 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3319 dwarf2_per_cu_data::per_bfd.
3320 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3321 (create_type_unit_group): Likewise.
3322 (queue_comp_unit): Remove reference to
3323 per_cu->dwarf2_per_objfile.
3324 (maybe_queue_comp_unit): Likewise.
3325 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3326 (create_cus_hash_table): Assign new field.
3327
5e22e966
SM
33282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3329
3330 * dwarf2/read.c: Replace
3331 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3332 dwarf2_cu->per_objfile throughout.
3333
97a1449a
SM
33342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3335
3336 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3337 parameter, don't use per_cu->dwarf2_per_objfile.
3338 (dw2_instantiate_symtab): Likewise.
3339 (dw2_find_last_source_symtab): Update.
3340 (dw2_map_expand_apply): Update.
3341 (dw2_lookup_symbol): Update.
3342 (dw2_expand_symtabs_for_function): Update.
3343 (dw2_expand_all_symtabs): Update.
3344 (dw2_expand_symtabs_with_fullname): Update.
3345 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3346 don't use per_cu->dwarf2_per_objfile.
3347 (dw2_expand_marked_cus): Update.
3348 (dw2_find_pc_sect_compunit_symtab): Update.
3349 (dw2_debug_names_lookup_symbol): Update.
3350 (dw2_debug_names_expand_symtabs_for_function): Update.
3351 (dw2_debug_names_map_matching_symbols): Update.
3352 (dwarf2_psymtab::expand_psymtab): Update.
3353
9e021579
SM
33542020-05-27 Simon Marchi <simon.marchi@efficios.com>
3355
3356 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3357 <per_objfile>: New member.
3358 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3359 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3360 call to dwarf2_cu.
3361 (cutu_reader::cutu_reader): Update.
3362 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3363
ae090bdb
SM
33642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3365
3366 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3367 struct dwarf2_per_objfile.
3368 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3369 dwarf2_per_bfd.
3370 * dwarf2/read.c (set_die_type): Update.
3371 (get_die_type_at_offset): Update.
3372
af758d11
SM
33732020-05-27 Tom Tromey <tom@tromey.com>
3374 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3377 method.
3378 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3379 get_symtab, set_symtab>: New methods.
3380 <m_symtabs>: New field.
3381 (struct dwarf2_psymtab): Derive from partial_symtab.
3382 <readin_p, get_compunit_symtab>: Declare methods.
3383 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3384 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3385 New methods.
3386 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3387 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3388 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3389 (dw2_symtab_iter_next, dw2_print_stats)
3390 (dw2_expand_symtabs_with_fullname)
3391 (dw2_expand_symtabs_matching_one)
3392 (dw_expand_symtabs_matching_file_matcher)
3393 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3394 (dw2_debug_names_iterator::next)
3395 (dw2_debug_names_map_matching_symbols)
3396 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3397 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3398 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3399 New methods.
3400 (get_compunit_symtab, process_full_comp_unit)
3401 (process_full_type_unit): Update.
3402 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3403
5989a64e
SM
34042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3407 then introduce a new dwarf2_per_objfile type.
3408 <read_line_string>: Move to the new dwarf2_per_objfile type.
3409 <objfile>: Likewise.
3410 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3411 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3412 dwarf2_per_objfile->per_bfd.
3413 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3414 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3415 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3416 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3417 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3418 (dwarf2_per_objfile::locate_sections): Rename to...
3419 (dwarf2_per_bfd::locate_sections): ... this.
3420 (dwarf2_per_objfile::get_cutu): Rename to...
3421 (dwarf2_per_bfd::get_cutu): ... this.
3422 (dwarf2_per_objfile::get_cu): Rename to...
3423 (dwarf2_per_bfd::get_cu): ... this.
3424 (dwarf2_per_objfile::get_tu): Rename to...
3425 (dwarf2_per_bfd::get_tu): ... this.
3426 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3427 (dwarf2_per_bfd::allocate_per_cu): ... this.
3428 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3429 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3430 (get_gdb_index_contents_ftype): Change parameter from
3431 dwarf2_per_objfile to dwarf2_per_bfd.
3432 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3433 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3434
a50264ba
TT
34352020-05-27 Tom Tromey <tom@tromey.com>
3436 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3439 (allocate_piece_closure): Set "per_objfile" member.
3440 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3441 (locexpr_describe_location, loclist_describe_location): Use new
3442 member.
3443 * dwarf2/read.c (read_call_site_scope)
3444 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3445 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3446 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3447 handle_data_member_location): Set per_objfile member.
3448 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3449 member.
3450 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3451
d3473f0c
TT
34522020-05-27 Tom Tromey <tom@tromey.com>
3453
3454 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3455 allocate_signatured_type>: Declare new methods.
3456 <m_num_psymtabs>: New member.
3457 (struct dwarf2_per_cu_data) <index>: New member.
3458 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3459 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3460 (create_cu_from_index_list): Use allocate_per_cu.
3461 (create_signatured_type_table_from_index)
3462 (create_signatured_type_table_from_debug_names)
3463 (create_debug_type_hash_table, add_type_unit)
3464 (read_comp_units_from_section): Use allocate_signatured_type.
3465
5717c425
TT
34662020-05-27 Tom Tromey <tom@tromey.com>
3467
3468 * psymtab.c (partial_map_expand_apply)
3469 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3470 (psym_lookup_global_symbol_language)
3471 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3472 (psym_print_stats, psym_expand_symtabs_for_function)
3473 (psym_map_symbol_filenames, psym_map_matching_symbols)
3474 (psym_expand_symtabs_matching)
3475 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3476 (maintenance_check_psymtabs): Update.
3477 * psympriv.h (struct partial_symtab) <readin_p,
3478 get_compunit_symtab>: Add objfile parameter.
3479 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3480 Likewise.
3481 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3482 get_compunit_symtab>: Likewise.
3483 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3484
45940949
TT
34852020-05-27 Tom Tromey <tom@tromey.com>
3486
3487 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3488 member.
3489 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3490 (create_cu_from_index_list)
3491 (create_signatured_type_table_from_index)
3492 (create_signatured_type_table_from_debug_names)
3493 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3494 (dwarf2_create_include_psymtab)
3495 (create_debug_type_hash_table, add_type_unit)
3496 (create_type_unit_group, read_comp_units_from_section)
3497 (dwarf2_compute_name, create_cus_hash_table)
3498 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3499 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3500 obstack.
3501 (dw2_get_real_path): Likewise. Change argument to
3502 dwarf2_per_objfile.
3503
f8c6d152
LM
35042020-05-27 Luis Machado <luis.machado@linaro.org>
3505
3506 PR tdep/26000
3507 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3508 for ldrd (immediate).
3509
e98d2e6d
PW
35102020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3511
3512 * command.h: Add comment giving the name of class_tui.
3513 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3514 create the fake command for the help for class_tui.
3515
53a47a3e
TT
35162020-05-26 Tom Tromey <tromey@adacore.com>
3517
3518 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3519 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3520 (val_atr): New function.
3521 (value_val_atr): Use it.
3522 * ada-valprint.c (print_optional_low_bound): Change low bound
3523 handling for enums.
3524 (val_print_packed_array_elements): Don't call discrete_position.
3525 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3526 discrete_position for enum types.
3527 * language.c (default_print_array_index): Change type.
3528 * language.h (struct language_defn) <la_print_array_index>: Add
3529 index_type parameter, change type of index_value.
3530 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3531 (default_print_array_index): Update.
3532 * valprint.c (maybe_print_array_index): Don't call
3533 value_from_longest. Update.
3534 (value_print_array_elements): Don't call discrete_position.
3535
0bc2354b
TT
35362020-05-26 Tom Tromey <tromey@adacore.com>
3537
3538 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3539 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3540
1218a4bf
CDA
35412020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3542
3543 PR gdb/13519
3544 * avr-tdep.c (avr_integer_to_address): Return data or code
3545 address accordingly to the second 'type' argument of the
3546 function.
3547
92651b1d
MW
35482020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3549
3550 * infcmd.c, inferior.h: (construct_inferior_arguments):
3551 Moved function from here to gdbsupport/common-inferior.{h,cc}
3552
0a4f5f8c
TT
35532020-05-23 Tom Tromey <tom@tromey.com>
3554
3555 Revert commit eca1f90c:
3556 * NEWS: Remove entry for completion styling.
3557 * completer.c (_rl_completion_prefix_display_length): Move
3558 declaration later.
3559 (gdb_fnprint): Revert.
3560 (gdb_display_match_list_1): Likewise.
3561 * cli/cli-style.c (completion_prefix_style)
3562 (completion_difference_style, completion_suffix_style): Remove.
3563 (_initialize_cli_style): Revert.
3564 * cli/cli-style.h (completion_prefix_style)
3565 (completion_difference_style, completion_suffix_style): Don't
3566 declare.
3567
e08bd6c5
PA
35682020-05-24 Pedro Alves <palves@redhat.com>
3569
3570 * symtab.c (completion_list_add_name): Return boolean indication
3571 of whether the symbol matched.
3572 (completion_list_add_symbol): Don't try to remove C++ aliases if
3573 the symbol didn't match in the first place.
3574 * symtab.h (completion_list_add_name): Return bool.
3575
ceacbf6e
SM
35762020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3577
3578 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3579 type::field.
3580
26f16254
JB
35812020-05-23 Joel Brobecker <brobecker@adacore.com>
3582
3583 GDB 9.2 released.
3584
eca1f90c
TT
35852020-05-23 Tom Tromey <tom@tromey.com>
3586
3587 * NEWS: Add entry for completion styling.
3588 * completer.c (_rl_completion_prefix_display_length): Move
3589 declaration earlier.
3590 (gdb_fnprint): Use completion_style.
3591 (gdb_display_match_list_1): Likewise.
3592 * cli/cli-style.c (completion_prefix_style)
3593 (completion_difference_style, completion_suffix_style): New
3594 globals.
3595 (_initialize_cli_style): Register new globals.
3596 * cli/cli-style.h (completion_prefix_style)
3597 (completion_difference_style, completion_suffix_style): Declare.
3598
51e2cfa2
PA
35992020-05-23 Pedro Alves <palves@redhat.com>
3600
3601 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3602 (parse_escape): Use ISDIGIT instead of isdigit.
3603 (puts_debug): Use gdb_isprint instead of isprint.
3604 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3605 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3606 ISSPACE instead of isspace.
3607 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3608 instead of isspace.
3609 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3610 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3611 instead of isxdigit and ISDIGIT instead of isdigit.
3612
80fc5e77
SM
36132020-05-22 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * gdbtypes.h (struct type) <field>: New method.
3616 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3617 or type::field.
3618
3cabb6b0
SM
36192020-05-22 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3622 (TYPE_FIELDS): Use type::fields. Change all call sites that
3623 modify the propery to use type::set_fields instead.
3624
1f704f76
SM
36252020-05-22 Simon Marchi <simon.marchi@efficios.com>
3626
3627 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3628 type::num_fields instead.
3629
5e33d5f4
SM
36302020-05-22 Simon Marchi <simon.marchi@efficios.com>
3631
3632 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3633 methods.
3634 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3635 that modify the number of fields to use type::set_num_fields
3636 instead.
3637
9392ebb3
TT
36382020-05-22 Tom Tromey <tromey@adacore.com>
3639
3640 * compile/compile-object-load.h (munmap_list_free): Don't
3641 declare.
3642
7c13f4e8
AB
36432020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * annotate.c (annotate_source_line): Update return type, add call
3646 to update current symtab and line.
3647 * annotate.h (annotate_source_line): Update return type, and
3648 extend header comment.
3649 * source.c (info_line_command): Check annotation_level before
3650 calling annotate_source_line.
3651 * stack.c (print_frame_info): If calling annotate_source_line
3652 returns true, then don't print any other source line information.
3653
aa370940
SM
36542020-05-21 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3657
84d53fa9
SM
36582020-05-21 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * coffread.c (patch_type): Remove NULL check before xfree.
3661 * corefile.c (set_gnutarget): Likewise.
3662 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3663 * exec.c (build_section_table): Likewise.
3664 * remote.c (remote_target::pass_signals): Likewise.
3665 * utils.c (n_spaces): Likewise.
3666 * cli/cli-script.c (document_command): Likewise.
3667 * i386-windows-tdep.c (core_process_module_section): Likewise.
3668 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3669
9d428aae
SM
36702020-05-20 Simon Marchi <simon.marchi@efficios.com>
3671
3672 * symfile.c (reread_symbols): Clear objfile's section_offsets
3673 vector and section indices, re-compute them by calling
3674 sym_offsets.
3675
250106a7
TT
36762020-05-20 Tom Tromey <tromey@adacore.com>
3677
3678 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3679 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3680
9a0bacfb
TV
36812020-05-20 Tom de Vries <tdevries@suse.de>
3682
3683 PR symtab/25833
3684 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3685
7b958a48
AM
36862020-05-20 Alan Modra <amodra@gmail.com>
3687
3688 PR 25993
3689 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3690 bfd_set_filename.
3691 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3692 passed to bfd_set_filename.
3693 * symfile-mem.c (add_vsyscall_page): Likewise for string
3694 passed to symbol_file_add_from_memory.
3695 (symbol_file_add_from_memory): Make name param a const char* and
3696 don't strdup.
3697
c7e97679
AM
36982020-05-20 Alan Modra <amodra@gmail.com>
3699
3700 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3701 rather than accessing bfd->filename directly.
3702 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3703 and use bfd_section_name.
3704 * dwarf2/frame.c (decode_frame_entry): Likewise.
3705 * exec.c (exec_set_section_address): Likewise.
3706 * solib-aix.c (solib_aix_bfd_open): Likewise.
3707 * stap-probe.c (get_stap_base_address): Likewise.
3708 * symfile.c (reread_symbols): Likewise.
3709
563c591b
TT
37102020-05-19 Tom Tromey <tromey@adacore.com>
3711
3712 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3713
f408d82c
SM
37142020-05-19 Simon Marchi <simon.marchi@efficios.com>
3715
3716 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3717
98c59b52
PA
37182020-05-19 Pedro Alves <palves@redhat.com>
3719
3720 * NEWS (set exec-file-mismatch): Adjust entry.
3721 * exec.c: Include "build-id.h".
3722 (validate_exec_file): Try to match build IDs instead of filenames.
3723 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3724 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3725 and pass down 'warn_if_slow'.
3726 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3727 gdb_bfd_open_closure to pass it down.
3728 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3729
4111f652
PA
37302020-05-19 Pedro Alves <palves@redhat.com>
3731
3732 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3733 * target.c (target_fileio_open_1): Rename to target_fileio_open
3734 and make extern. Use bool.
3735 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3736 (target_fileio_read_alloc_1): Adjust.
3737 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3738 (target_fileio_open_warn_if_slow): Delete declaration.
3739
ad80db5b
PA
37402020-05-19 Pedro Alves <palves@redhat.com>
3741
3742 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3743 Adjust all callers.
3744
1d6ce4d3
YS
37452020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3746
3747 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3748 whether disp is negative.
3749
9005fbbb
SM
37502020-05-19 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * symfile.h (struct symfile_segment_data)
3753 <~symfile_segment_data>: Remove.
3754 <segment_info>: Change to std::vector.
3755 * symfile.c (default_symfile_segments): Update.
3756 * elfread.c (elf_symfile_segments): Update.
3757
68b888ff
SM
37582020-05-19 Simon Marchi <simon.marchi@efficios.com>
3759
3760 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3761 <segments>: New.
3762 <segment_bases, segment_sizes>: Remove.
3763 * symfile.c (default_symfile_segments): Update.
3764 * elfread.c (elf_symfile_segments): Update.
3765 * remote.c (remote_target::get_offsets): Update.
3766 * solib-target.c (solib_target_relocate_section_addresses):
3767 Update.
3768
62982abd
SM
37692020-05-19 Simon Marchi <simon.marchi@efficios.com>
3770
3771 * symfile.h (struct symfile_segment_data): Initialize fields.
3772 <~symfile_segment_data>: Add.
3773 (symfile_segment_data_up): New.
3774 (struct sym_fns) <sym_segments>: Return a
3775 symfile_segment_data_up.
3776 (default_symfile_segments): Return a symfile_segment_data_up.
3777 (free_symfile_segment_data): Remove.
3778 (get_symfile_segment_data): Return a symfile_segment_data_up.
3779 * symfile.c (default_symfile_segments): Likewise.
3780 (get_symfile_segment_data): Likewise.
3781 (free_symfile_segment_data): Remove.
3782 (symfile_find_segment_sections): Update.
3783 * elfread.c (elf_symfile_segments): Return a
3784 symfile_segment_data_up.
3785 * remote.c (remote_target::get_offsets): Update.
3786 * solib-target.c (solib_target_relocate_section_addresses):
3787 Update.
3788 * symfile-debug.c (debug_sym_segments): Return a
3789 symfile_segment_data_up.
3790
7f204339
RO
37912020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3792
e52a0f1b
RO
3793 PR build/25981
3794 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3795 Hardcode register numbers.
3796
7f204339
RO
3797 PR build/25981
3798 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3799 procfs_find_LDT_entry): Remove.
3800 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3801 procfs_find_LDT_entry): Remove.
3802 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3803 Remove.
3804
7f32a4d5
PA
38052020-05-17 Pedro Alves <palves@redhat.com>
3806 Andrew Burgess <andrew.burgess@embecosm.com>
3807 Keno Fischer <keno@juliacomputing.com>
3808
3809 PR gdb/25741
3810 * breakpoint.c (build_target_condition_list): Update comments.
3811 (build_target_command_list): Update comments and skip matching
3812 locations.
3813 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3814 a separate function. Simplify "set breakpoint auto-hw off"
3815 handling.
3816 (insert_breakpoints): Update comment.
3817 (tracepoint_locations_match): New parameter. For breakpoints,
3818 compare location types too, if the caller wants to.
3819 (handle_automatic_hardware_breakpoints): New functions.
3820 (bp_location_is_less_than): Also sort by location type and
3821 hardware breakpoint length.
3822 (update_global_location_list): Handle "set breakpoint auto-hw on"
3823 here.
3824 (update_breakpoint_locations): Ask breakpoint_locations_match to
3825 ignore location types.
3826
7d93a1e0
SM
38272020-05-16 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3830 type::name instead.
3831
d0e39ea2
SM
38322020-05-16 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * gdbtypes.h (struct type) <name, set_name>: New methods.
3835 (TYPE_CODE): Use type::name. Change all call sites used to set
3836 the name to use type::set_name instead.
3837
2dab0c7b
TT
38382020-05-16 Tom Tromey <tom@tromey.com>
3839
3840 * top.c (quit_force): Update.
3841 * infrun.c (handle_no_resumed): Update.
3842 * top.h (all_uis): New function.
3843 (ALL_UIS): Remove.
3844
59f7bd8d
SM
38452020-05-16 Simon Marchi <simon.marchi@efficios.com>
3846
3847 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3848
9bf058f0
PA
38492020-05-16 Pedro Alves <palves@redhat.com>
3850
3851 * ia64-linux-nat.c
3852 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3853 Declare method.
3854 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3855
8f86ae1a
SM
38562020-05-15 Simon Marchi <simon.marchi@efficios.com>
3857
3858 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3859 (sparc64_adi_info): Likewise.
3860
d6bc0792
TT
38612020-05-15 Tom Tromey <tom@tromey.com>
3862
3863 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3864 block_objfile.
3865 (lookup_objfile_from_block): Remove.
3866 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3867 (lookup_global_symbol): Use block_objfile.
3868 * symtab.h (lookup_objfile_from_block): Don't declare.
3869 * printcmd.c (clear_dangling_display_expressions): Use
3870 block_objfile.
3871 * parse.c (operator_check_standard): Use block_objfile.
3872
8c14c3a3
TT
38732020-05-15 Tom Tromey <tom@tromey.com>
3874
3875 * language.c (language_alloc_type_symbol): Set
3876 SYMBOL_SECTION.
3877 * symtab.c (initialize_objfile_symbol): Remove.
3878 (allocate_symbol): Remove.
3879 (allocate_template_symbol): Remove.
3880 * dwarf2/read.c (fixup_go_packaging): Use "new".
3881 (new_symbol): Use "new".
3882 (read_variable): Don't call initialize_objfile_symbol. Use
3883 "new".
3884 (read_func_scope): Use "new".
3885 * xcoffread.c (process_xcoff_symbol): Don't call
3886 initialize_objfile_symbol.
3887 (SYMBOL_DUP): Remove.
3888 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3889 "new".
3890 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3891 (allocate_template_symbol): Don't declare.
3892 (struct symbol): Add copy constructor. Change defaults.
3893 * jit.c (finalize_symtab): Use "new".
3894 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3895 Use "new".
3896 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3897 (common_block_end): Use "new".
3898 * mdebugread.c (parse_symbol): Use "new".
3899 (new_symbol): Likewise.
3900
5b4a1a8d
PW
39012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3902
3903 * NEWS: Mention changes to help and apropos.
3904
57b4f16e
PW
39052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3906
3907 * command.h (enum command_class): Improve comments, document
3908 that class_alias is for user-defined aliases, give the class
3909 name for each class, remove unused class_xdb.
3910 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3911 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3912 by a precise class.
3913 * infcmd.c (_initialize_infcmd): Likewise.
3914 * reverse.c (_initialize_reverse): Likewise.
3915 * stack.c (_initialize_stack): Likewise.
3916 * symfile.c (_initialize_symfile): Likewise.
3917 * tracepoint.c (_initialize_tracepoint): Likewise.
3918
7c05caf7
PW
39192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3920
3921 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3922 when their aliased command is traversed.
3923 (help_cmd): Add fput_command_names_styled call to
3924 output command name and aliases when command has an alias.
3925
3b3aaacb
PW
39262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3927
3928 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3929 * cli/cli-decode.c (help_cmd_list): Declare as static,
3930 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3931 a command together with the command.
3932 (fput_command_name_styled, fput_command_names_styled): New functions.
3933 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3934 fput_command_name_styled.
3935 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3936 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3937
7aa1b46f
PW
39382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3939
3940 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3941 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3942 * command.h (cmd_show_list): Likewise.
3943 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3944 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3945
89bcba74
PW
39462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3947
3948 * unittests/command-def-selftests.c (traverse_command_structure):
3949 Verify all commands of a list have the same prefix command and
3950 that only the top cmdlist commands have a null prefix.
3951
3f4d92eb
PW
39522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3953
3954 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3955 as prefix, not one of its aliases.
3956 (set_cmd_prefix): Remove.
3957 (do_add_cmd): Centralize the setting of the prefix of a command, when
3958 command is defined after its full chain of prefix commands.
3959 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3960 (add_setshow_cmd_full): Likewise.
3961 (update_prefix_field_of_prefixed_commands): New function.
3962 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3963 update_prefix_field_of_prefixed_commands.
3964 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3965 addresses of remote_set_cmdlist and remote_show_cmdlist given
3966 as argument, not the address of an argument.
3967 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3968 * gdb/remote.c (_initialize_remote): Likewise.
3969
0605465f
PW
39702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3971
3972 * cli/cli-cmds.c (alias_command): Check for an existing alias
3973 using lookup_cmd_composition, as valid_command_p is too strict
3974 and forbids aliases that are the prefix of an existing alias
3975 or command.
3976 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3977 command is properly recognised as a valid command.
3978
58e6ac70
PW
39792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3980
3981 * unittests/help-doc-selftests.c: Rename to
3982 unittests/command-def-selftests.c
3983 * unittests/command-def-selftests.c (help_doc_tests): Update some
3984 comments.
3985 (command_structure_tests, traverse_command_structure): New namespace
3986 and function.
3987 (command_structure_invariants_tests): New function.
3988 (_initialize_command_def_selftests) Renamed from
3989 _initialize_help_doc_selftests, register command_structure_invariants
3990 selftest.
3991
a7b9ceb8
PW
39922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3993
3994 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3995 an alias of 'show'.
3996
b2188a06
JB
39972020-05-15 Joel Brobecker <brobecker@adacore.com>
3998
3999 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4000 ada_is_fixed_point_type. Update all callers.
4001 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4002 all callers.
4003 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4004 Update all callers.
4005 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4006 print_fixed_point_type. Update all callers.
4007 * ada-valprint.c (ada_value_print_num): Replace call to
4008 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4009
a51951c2
KB
40102020-05-14 Kevin Buettner <kevinb@redhat.com>
4011
4012 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4013 processors.
4014 (cpu_supports_bts): Add CV_AMD case.
4015
29d6859f
LM
40162020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4017 Simon Marchi <simon.marchi@efficios.com>
4018
4019 * infrun.c (stop_all_threads): Collect multiple wait events at
4020 each pass.
4021
78134374
SM
40222020-05-14 Simon Marchi <simon.marchi@efficios.com>
4023
4024 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4025 type::code instead.
4026
67607e24
SM
40272020-05-14 Simon Marchi <simon.marchi@efficios.com>
4028
4029 * gdbtypes.h (struct type) <code, set_code>: New methods.
4030 (TYPE_CODE): Use type::code. Change all call sites used to set
4031 the code to use type::set_code instead.
4032
a05575d3
TBA
40332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4034 Tom de Vries <tdevries@suse.de>
4035 Pedro Alves <palves@redhat.com>
4036
4037 PR threads/25478
4038 * infrun.c (stop_all_threads): Do NOT ignore
4039 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4040 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4041 received.
4042 (handle_no_resumed): Remove code handling a live inferior with no
4043 threads.
4044 * remote.c (has_single_non_exited_thread): New.
4045 (remote_target::update_thread_list): Do not delete a thread if is
4046 the last thread of the process.
4047 * thread.c (thread_select): Call delete_exited_threads instead of
4048 prune_threads.
4049
6ad82919
TBA
40502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4051
4052 * infrun.c (stop_all_threads): Enable/disable thread events of all
4053 targets. Move a debug message denoting the end of the function
4054 into the SCOPED_EXIT block.
4055
d890404b
TBA
40562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4057
4058 * process-stratum-target.h: Include <set>.
4059 (all_non_exited_process_targets, switch_to_target_no_thread): New
4060 function declarations.
4061 * process-stratum-target.c (all_non_exited_process_targets)
4062 (switch_to_target_no_thread): New function implementations.
4063
293b3ebc
TBA
40642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4065
4066 * infrun.c (handle_inferior_event): Extract out a piece of code
4067 into...
4068 (mark_non_executing_threads): ...this new function.
4069
7ca9b62a
TBA
40702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4071
4072 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4073 use.
4074
fc75c28b
TBA
40752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4076
4077 * regcache.c (regcache_read_pc_protected): New function
4078 implementation that returns 0 if the PC cannot read via
4079 'regcache_read_pc'.
4080 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4081 instead of 'regcache_read_pc'.
4082 (keep_going_pass_signal): Ditto.
4083
a89febbd
TT
40842020-05-13 Tom Tromey <tromey@adacore.com>
4085
4086 * ada-lang.c (align_value): Remove.
4087 (ada_template_to_fixed_record_type_1): Use align_up.
4088
f7e23710
TBA
40892020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4090
4091 * async-event.c: Update the copyright year.
4092 * async-event.h: Update the copyright year.
4093
02ff80c2
SM
40942020-05-12 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * objfiles.h (is_addr_in_objfile,
4097 shared_objfile_contains_address_p): Return bool.
4098 * objfile.c (is_addr_in_objfile,
4099 shared_objfile_contains_address_p): Return bool.
4100
4fd6c7e8
TT
41012020-05-11 Tom Tromey <tromey@adacore.com>
4102
4103 * cli/cli-cmds.c (info_command): Restore.
4104 (_initialize_cli_cmds): Use add_prefix_command for "info".
4105 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4106
5eb68a39
TT
41072020-05-11 Tom Tromey <tromey@adacore.com>
4108
4109 * ada-lang.c (ada_value_primitive_field): Now public.
4110 * ada-lang.h (ada_value_primitive_field): Declare.
4111 * ada-valprint.c (print_field_values): Use
4112 ada_value_primitive_field for wrapper fields.
4113
7666722f
TV
41142020-05-11 Tom de Vries <tdevries@suse.de>
4115
4116 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4117 MODULE_DOMAIN.
4118
3ee6bb11
TV
41192020-05-11 Tom de Vries <tdevries@suse.de>
4120
4121 PR symtab/25941
4122 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4123 with length 0, if not gdb-produced.
4124 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4125
43434996
TV
41262020-05-09 Tom de Vries <tdevries@suse.de>
4127
4128 PR gdb/25955
4129 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4130 calculation.
4131
2f78cffc
TT
41322020-05-09 Tom Tromey <tom@tromey.com>
4133
4134 * top.c (server_command): Now bool.
4135 * top.h (server_command): Now bool.
4136
4f7bc5ed
TT
41372020-05-08 Tom Tromey <tromey@adacore.com>
4138
4139 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4140 already being processed.
4141
8be4b118
TT
41422020-05-08 Tom Tromey <tom@tromey.com>
4143
4144 * printcmd.c (struct display) <next>: Remove.
4145 <display>: New constructor.
4146 <exp_string>: Now a std::string.
4147 <enabled_p>: Now a bool.
4148 (display_number): Move definition earlier.
4149 (displays): Rename from display_chain. Now a std::vector.
4150 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4151 (display_command): Update.
4152 (do_one_display, disable_display)
4153 (enable_disable_display_command, do_enable_disable_display):
4154 Update.
4155 (free_display): Remove.
4156 (clear_displays): Rewrite.
4157 (delete_display): Update.
4158 (map_display_numbers): Use function_view. Remove "data"
4159 parameter. Update.
4160 (do_delete_display): Remove.
4161 (undisplay_command): Update.
4162 (do_one_display, do_displays, disable_display)
4163 (info_display_command): Update.
4164 (do_enable_disable_display): Remove.
4165 (enable_disable_display_command)
4166 (clear_dangling_display_expressions): Update.
4167
94c93c35
TT
41682020-05-08 Tom Tromey <tom@tromey.com>
4169
4170 * symtab.c (set_symbol_cache_size)
4171 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4172 (maintenance_print_symbol_cache_statistics): Update.
4173 * symmisc.c (print_symbol_bcache_statistics)
4174 (print_objfile_statistics, maintenance_print_objfiles)
4175 (maintenance_info_symtabs, maintenance_check_symtabs)
4176 (maintenance_expand_symtabs, maintenance_info_line_tables):
4177 Update.
4178 * symfile-debug.c (set_debug_symfile): Update.
4179 * source.c (forget_cached_source_info): Update.
4180 * python/python.c (gdbpy_progspaces): Update.
4181 * psymtab.c (maintenance_info_psymtabs): Update.
4182 * probe.c (parse_probes): Update.
4183 * linespec.c (iterate_over_all_matching_symtabs)
4184 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4185 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4186 * exec.c (exec_target::close): Update.
4187 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4188 * breakpoint.c (print_one_breakpoint_location)
4189 (create_longjmp_master_breakpoint)
4190 (create_std_terminate_master_breakpoint): Update.
4191 * progspace.c (program_spaces): Now a std::vector.
4192 (maybe_new_address_space): Update.
4193 (add_program_space): Remove.
4194 (program_space::program_space): Update.
4195 (remove_program_space): Update.
4196 (number_of_program_spaces): Remove.
4197 (print_program_space, update_address_spaces): Update.
4198 * progspace.h (program_spaces): Change type.
4199 (ALL_PSPACES): Remove.
4200 (number_of_program_spaces): Don't declare.
4201 (struct program_space) <next>: Remove.
4202
a1fd1ac9
TT
42032020-05-08 Tom Tromey <tom@tromey.com>
4204
4205 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4206 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4207 (enable_break): Update.
4208 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4209 (frv_fdpic_find_canonical_descriptor): Update.
4210 (frv_fetch_objfile_link_map): Update.
4211 * progspace.c (program_space::free_all_objfiles): Update.
4212 (program_space::solibs): New method.
4213 * progspace.h (struct program_space) <solibs>: New method.
4214 * solist.h (master_so_list): Don't declare.
4215 (ALL_SO_LIBS): Remove.
4216 * solib.h (so_list_head): Remove.
4217 (update_solib_list): Update comment.
4218 * solib.c (master_so_list): Remove.
4219 (solib_used, update_solib_list, solib_add)
4220 (info_sharedlibrary_command, clear_solib)
4221 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4222
38eae084
TT
42232020-05-08 Tom Tromey <tom@tromey.com>
4224
4225 * extension.c (extension_languages): Now a std::array.
4226 (ALL_EXTENSION_LANGUAGES): Remove.
4227 (get_ext_lang_defn, get_ext_lang_of_file)
4228 (eval_ext_lang_from_control_command): Update.
4229 (finish_ext_lang_initialization)
4230 (auto_load_ext_lang_scripts_for_objfile)
4231 (ext_lang_type_printers::ext_lang_type_printers)
4232 (apply_ext_lang_type_printers)
4233 (ext_lang_type_printers::~ext_lang_type_printers)
4234 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4235 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4236 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4237 (get_matching_xmethod_workers, ext_lang_colorize)
4238 (ext_lang_before_prompt): Update.
4239 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4240
596dc4ad
TT
42412020-05-08 Tom Tromey <tom@tromey.com>
4242
4243 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4244 overload.
4245 <swap_string, m_string>: Remove.
4246 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4247 Update.
4248 * stabsread.c (define_symbol, read_type): Update.
4249 * linespec.c (find_linespec_symbols): Update.
4250 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4251 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4252 * dbxread.c (read_dbx_symtab): Update.
4253 * cp-support.h (cp_canonicalize_string_full)
4254 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4255 Return unique_xmalloc_ptr.
4256 * cp-support.c (inspect_type): Update.
4257 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4258 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4259 Likewise.
4260 * c-typeprint.c (print_name_maybe_canonical): Update.
4261 * break-catch-throw.c (check_status_exception_catchpoint):
4262 Update.
4263
bf4cb9be
TV
42642020-05-08 Tom de Vries <tdevries@suse.de>
4265
4266 * infrun.c (follow_fork): Copy current_line and current_symtab to
4267 child thread.
4268
a1b68f28
SM
42692020-05-07 Simon Marchi <simon.marchi@efficios.com>
4270
4271 * async-event.c (struct async_signal_handler, struct
4272 async_event_handler): Reformat, remove typedef.
4273
98d48915
SM
42742020-05-07 Simon Marchi <simon.marchi@efficios.com>
4275
4276 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4277 access thistype->main_type->dyn_prop_list directly.
4278
7aa91313
SM
42792020-05-07 Simon Marchi <simon.marchi@efficios.com>
4280
4281 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4282 (remove_dyn_prop): Remove. Update all users to use
4283 type::remove_dyn_prop.
4284 * gdbtypes.c (remove_dyn_prop): Rename to...
4285 (type::remove_dyn_prop): ... this.
4286
5c54719c
SM
42872020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4288
4289 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4290 (add_dyn_prop): Remove. Update all users to use
4291 type::add_dyn_prop.
4292 * gdbtypes.c (add_dyn_prop): Rename to...
4293 (type::add_dyn_prop): ... this.
4294
24e99c6c
SM
42952020-05-07 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4298 (get_dyn_prop): Remove. Update all users to use
4299 type::dyn_prop.
4300 * gdbtypes.c (get_dyn_prop): Rename to...
4301 (type::dyn_prop): ... this.
4302
0d4bf016
SM
43032020-05-06 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4306
ac4a4f1c
SM
43072020-05-06 Simon Marchi <simon.marchi@efficios.com>
4308
4309 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4310 instruction, skip it if it's there.
4311
a3bbacc1
SM
43122020-05-05 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4315
c3236f84
SM
43162020-05-04 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4319 * gdbtypes.c (recursive_dump_type): Remove use of
4320 TYPE_INCOMPLETE.
4321
3b6acaee
TT
43222020-05-03 Tom Tromey <tom@tromey.com>
4323
4324 * breakpoint.c (catch_command, tcatch_command): Remove.
4325 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4326 add_show_prefix_cmd.
4327 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4328 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4329 Remove.
4330 (add_internal_problem_command): Use add_basic_prefix_cmd,
4331 add_show_prefix_cmd.
4332 * mips-tdep.c (set_mipsfpu_command): Remove.
4333 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4334 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4335 (_initialize_index_cache): Use add_basic_prefix_cmd.
4336 * memattr.c (dummy_cmd): Remove.
4337 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4338 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4339 (_initialize_tui_win): Use add_basic_prefix_cmd,
4340 add_show_prefix_cmd.
4341 * cli/cli-logging.c (set_logging_command): Remove.
4342 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4343 add_show_prefix_cmd.
4344 (show_logging_command): Remove.
4345 * target.c (target_command): Remove.
4346 (add_target): Use add_basic_prefix_cmd.
4347
a51119cd
HD
43482020-05-02 Hannes Domani <ssbssa@yahoo.de>
4349
4350 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4351
652fc23a 43522020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4353
652fc23a
PW
4354 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4355 info_command.
4356
117539e6
KR
43572020-04-30 Kamil Rytarowski <n54@gmx.com>
4358
4359 * nbsd-nat.c (nbsd_enable_proc_events)
4360 (nbsd_nat_target::post_startup_inferior): Add.
4361 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4362 (nbsd_nat_target::update_thread_list): Rewrite.
4363 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4364 "PTRACE_LWP_CREATE".
4365 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4366
102e38eb 43672020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4368
102e38eb
PW
4369 * stack.c (_initialize_stack): Remove duplicated creation
4370 of "frame" command and "f" alias.
4371
ee9d1e5f
HD
43722020-04-30 Hannes Domani <ssbssa@yahoo.de>
4373
4374 PR gdb/18706
4375 * gdbtypes.c (check_typedef): Calculate size of array of
4376 stubbed type.
4377
627c7fb8
HD
43782020-04-30 Hannes Domani <ssbssa@yahoo.de>
4379
4380 PR gdb/15559
4381 * i386-tdep.c (i386_push_dummy_call): Call
4382 i386_thiscall_push_dummy_call.
4383 (i386_thiscall_push_dummy_call): New function.
4384 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4385 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4386 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4387
ffc2844e
SM
43882020-04-29 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * gdbarch.sh (do_read): Add shellcheck disable directive for
4391 warning SC2162.
4392
1207375d
SM
43932020-04-29 Simon Marchi <simon.marchi@efficios.com>
4394
4395 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4396 "referenced but not assigned" warning.
4397
9fdb2916
SM
43982020-04-29 Simon Marchi <simon.marchi@efficios.com>
4399
4400 * gdbarch.sh: Remove code that sets fallbackdefault.
4401
759cea5e
SM
44022020-04-29 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * gdbarch.sh: Use shell operators && and || instead of
4405 -a and -o.
4406
cb02ab24
SM
44072020-04-29 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * gdbarch.sh: Use $(...) instead of `...`.
4410
a6fc5ffc
SM
44112020-04-29 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * gdbarch.sh: Use double quotes around variables.
4414
8d113d13
SM
44152020-04-29 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * gdbarch.sh: Use %s with printf, instead of variables in the
4418 format string.
4419
ed6acedd
TT
44202020-04-29 Tom Tromey <tromey@adacore.com>
4421
4422 PR ada/25875:
4423 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4424 type fields here.
4425 (read_enumeration_type): Call
4426 update_enumeration_type_from_children later. Update comments.
4427 (process_enumeration_scope): Don't create type fields.
4428
b68b1b58
KR
44292020-04-29 Kamil Rytarowski <n54@gmx.com>
4430
4431 * nbsd-tdep.c: Include "xml-syscall.h".
4432 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4433
f94b2e03
KR
44342020-04-29 Kamil Rytarowski <n54@gmx.com>
4435
4436 * nbsd-nat.c: Include "sys/wait.h".
4437 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4438 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4439 (nbsd_nat_target::remove_exec_catchpoint)
4440 (nbsd_nat_target::set_syscall_catchpoint): Add.
4441 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4442 (nbsd_nat_target::insert_exec_catchpoint)
4443 (nbsd_nat_target::remove_exec_catchpoint)
4444 (nbsd_nat_target::set_syscall_catchpoint): Add.
4445 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4446 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4447 `nbsd_get_syscall_number'.
4448
fc49bc72
TT
44492020-04-29 Tom Tromey <tom@tromey.com>
4450
4451 * stack.c (print_block_frame_labels): Remove.
4452
d642b692
HD
44532020-04-29 Hannes Domani <ssbssa@yahoo.de>
4454
4455 PR gdb/17320
4456 * ada-valprint.c (val_print_packed_array_elements): Move array
4457 end bracket to new line.
4458 (ada_val_print_string): Remove extra spaces before first array
4459 element.
4460 * c-valprint.c (c_value_print_array): Likewise.
4461 * m2-valprint.c (m2_print_array_contents): Likewise.
4462 (m2_value_print_inner): Likewise.
4463 * p-valprint.c (pascal_value_print_inner): Likewise.
4464 * valprint.c (generic_val_print_array): Likewise.
4465 (value_print_array_elements): Move first array element and array
4466 end bracket to new line.
4467
ea90f227
TV
44682020-04-29 Tom de Vries <tdevries@suse.de>
4469
4470 PR symtab/25889
4471 * linespec.c (find_method): Fix ix calculation.
4472
4498ef4f
KR
44732020-04-28 Kamil Rytarowski <n54@gmx.com>
4474
4475 * syscalls/update-netbsd.sh: New file.
4476 * syscalls/netbsd.xml: Regenerate.
4477 * data-directory/Makefile.in: Register `netbsd.xml' in
4478 `SYSCALLS_FILES'.
4479
a55e30b5
SM
44802020-04-28 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * syscalls/update-freebsd.sh: Add double quotes.
4483
2b2fbab8
TT
44842020-04-28 Tom Tromey <tom@tromey.com>
4485
4486 * NEWS: Update.
4487 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4488 (cmdpy_init): Allow class_tui.
4489
a65189c9
TV
44902020-04-28 Mark Williams <mark@myosotissp.com>
4491
4492 PR gdb/24480
4493 * dwarf2read.c: Add missing assingments to list_in_scope when
4494 start_symtab was already called.
4495
1b95cdb7
SM
44962020-04-28 Simon Marchi <simon.marchi@efficios.com>
4497
4498 PR gdb/25881
4499 * dwarf2/read.c (offset_map_type): Use
4500 gdb:hash_enum<sect_offset> as hash function.
4501
15cd93d0
TV
45022020-04-28 Tom de Vries <tdevries@suse.de>
4503
4504 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4505 with DW_AT_signature.
4506
1eb39914
SM
45072020-04-27 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * configure.ac: Remove check for fs_base/gs_base in
4510 user_regs_struct.
4511 * configure: Re-generate.
4512 * config.in: Re-generate.
4513 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4514 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4515 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4516
991a3e2e
LM
45172020-04-27 Luis Machado <luis.machado@linaro.org>
4518
4519 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4520 problematic inline frame unwinding situation.
4521 * frame.c (frame_id_computed_p): New function.
4522 * frame.h (frame_id_computed_p): New prototype.
4523
361ba0e8
TT
45242020-04-26 Tom Tromey <tom@tromey.com>
4525
4526 * command.h (enum command_class) <class_pseudo>: Remove.
4527
bc3609fd
PW
45282020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4529
4530 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4531 and whitespace.
4532
b9771db7
KR
45332020-04-25 Kamil Rytarowski <n54@gmx.com>
4534
ec16513e
SM
4535 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4536 `PT_GET_PROCESS_STATE' block.
b9771db7 4537
7151c1af
TT
45382020-04-24 Tom Tromey <tom@tromey.com>
4539
4540 * symtab.h (symbol_get_demangled_name): Don't declare.
4541 * symtab.c (symbol_get_demangled_name): Remove.
4542 (general_symbol_info::natural_name)
4543 (general_symbol_info::demangled_name): Update.
4544
906bb4c5
TT
45452020-04-24 Tom Tromey <tom@tromey.com>
4546
4547 PR rust/25025:
4548 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4549
bcfe6157
TT
45502020-04-24 Tom Tromey <tom@tromey.com>
4551
4552 PR symtab/12707:
4553 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4554 exists.
4555 (new_symbol): Likewise.
4556 * compile/compile-object-load.c (get_out_value_type): Use
4557 symbol_matches_search_name.
4558
f049a313
TT
45592020-04-24 Tom Tromey <tom@tromey.com>
4560
4561 * dwarf2/read.c (add_partial_symbol): Do not call
4562 compute_and_set_names.
4563
76e288d1
TT
45642020-04-24 Tom Tromey <tom@tromey.com>
4565
4566 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4567 overload.
4568
2467f4f6
TT
45692020-04-24 Tom Tromey <tom@tromey.com>
4570
4571 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4572 (add_psymbol_to_list): New overload. Make old overload call new
4573 one.
4574 * psympriv.h (add_psymbol_to_list): New overload.
4575
e61108c9
TT
45762020-04-24 Tom Tromey <tom@tromey.com>
4577
4578 * dwarf2/read.c (partial_die_info::read) <case
4579 DW_AT_linkage_name>: Use value_as_string.
4580 (dwarf2_string_attr): Use value_as_string.
4581 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4582 method.
4583 * dwarf2/attribute.c (attribute::value_as_string): New method.
4584
8c87a452
TT
45852020-04-24 Tom Tromey <tom@tromey.com>
4586
4587 * symtab.c (general_symbol_info::natural_name)
4588 (general_symbol_info::demangled_name): Check for language_rust.
4589
787de330
TT
45902020-04-24 Tom Tromey <tom@tromey.com>
4591
4592 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4593 (dwarf2_physname): ... from here.
4594 (partial_die_info::read): Add Rust "{" hack.
4595
ff985671
TT
45962020-04-24 Tom Tromey <tom@tromey.com>
4597
4598 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4599 method.
4600 (symbol_set_demangled_name): Don't declare.
4601 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4602 symbol_set_demangled_name.
4603 (general_symbol_info::set_language)
4604 (general_symbol_info::compute_and_set_names): Update.
4605 * minsyms.c (minimal_symbol_reader::install): Update.
4606 * dwarf2/read.c (new_symbol): Update.
4607
1acda803
TT
46082020-04-24 Tom Tromey <tromey@adacore.com>
4609
4610 PR python/23662:
4611 * python/py-type.c (convert_field): Handle
4612 FIELD_LOC_KIND_DWARF_BLOCK.
4613 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4614 (typy_get_dynamic): Nw function.
4615 (type_object_getset): Add "dynamic".
4616 * NEWS: Add entry.
4617
d656f129
TT
46182020-04-24 Tom Tromey <tromey@adacore.com>
4619
4620 * ada-typeprint.c (print_choices, print_variant_part)
4621 (print_record_field_types_dynamic): New functions.
4622 (print_record_field_types): Use print_record_field_types_dynamic.
4623
7d79de9a
TT
46242020-04-24 Tom Tromey <tromey@adacore.com>
4625
4626 * dwarf2/read.c (handle_data_member_location): New overload.
4627 (dwarf2_add_field): Use it.
4628 (decode_locdesc): Add "computed" parameter. Update comment.
4629 * gdbtypes.c (is_dynamic_type_internal): Also look for
4630 FIELD_LOC_KIND_DWARF_BLOCK.
4631 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4632 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4633 virtual base classes.
4634 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4635 FIELD_LOC_KIND_DWARF_BLOCK.
4636
f8e89861
TT
46372020-04-24 Tom Tromey <tromey@adacore.com>
4638
4639 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4640 * gdbtypes.c (is_dynamic_type_internal): Check
4641 TYPE_HAS_DYNAMIC_LENGTH.
4642 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4643 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4644 New macros.
4645 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4646 constant.
4647
9c6a1327
TT
46482020-04-24 Tom Tromey <tromey@adacore.com>
4649
4650 * dwarf2/read.c (struct variant_field): Rewrite.
4651 (struct variant_part_builder): New.
4652 (struct nextfield): Remove "variant" field. Add "offset".
4653 (struct field_info): Add "current_variant_part" and
4654 "variant_parts".
4655 (alloc_discriminant_info): Remove.
4656 (alloc_rust_variant): New function.
4657 (quirk_rust_enum): Update.
4658 (dwarf2_add_field): Set "offset" member. Don't handle
4659 DW_TAG_variant_part.
4660 (offset_map_type): New typedef.
4661 (convert_variant_range, create_one_variant)
4662 (create_one_variant_part, create_variant_parts)
4663 (add_variant_property): New functions.
4664 (dwarf2_attach_fields_to_type): Call add_variant_property.
4665 (read_structure_type): Don't handle DW_TAG_variant_part.
4666 (handle_variant_part, handle_variant): New functions.
4667 (handle_struct_member_die): Use them.
4668 (process_structure_scope): Don't handle variant parts.
4669 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4670 (struct discriminant_info): Remove.
4671 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4672 (struct main_type) <flag_discriminated_union>: Remove.
4673 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4674 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4675 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4676 Update.
4677 * valops.c (value_union_variant): Remove.
4678 * value.h (value_union_variant): Don't declare.
4679
b249d2c2
TT
46802020-04-24 Tom Tromey <tromey@adacore.com>
4681
4682 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4683 (ada_value_primitive_packed_val): Update.
4684 * ada-valprint.c (ada_value_print_1): Update.
4685 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4686 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4687 just an address. Use evaluate_for_locexpr_baton.
4688 (dwarf2_evaluate_property): Update.
4689 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4690 array_view.
4691 * findvar.c (default_read_var_value): Update.
4692 * gdbtypes.c (compute_variant_fields_inner)
4693 (resolve_dynamic_type_internal): Update.
4694 (resolve_dynamic_type): Change type of valaddr parameter.
4695 * gdbtypes.h (resolve_dynamic_type): Update.
4696 * valarith.c (value_subscripted_rvalue): Update.
4697 * value.c (value_from_contents_and_address): Update.
4698
61122aa9
TT
46992020-04-24 Tom Tromey <tromey@adacore.com>
4700
4701 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4702 "push_initial_value" parameter.
4703 (dwarf2_evaluate_property): Likewise.
4704 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4705
ef83a141
TT
47062020-04-24 Tom Tromey <tromey@adacore.com>
4707
4708 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4709 (variant::matches, compute_variant_fields_recurse)
4710 (compute_variant_fields_inner, compute_variant_fields): New
4711 functions.
4712 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4713 Use resolved_type after type is made.
4714 (operator==): Add new cases.
4715 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4716 (struct discriminant_range, struct variant, struct variant_part):
4717 New.
4718 (union dynamic_prop_data) <variant_parts, original_type>: New
4719 members.
4720 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4721 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4722 constants.
4723 * value.c (unpack_bits_as_long): Now public.
4724 * value.h (unpack_bits_as_long): Declare.
4725
675127ec
TT
47262020-04-24 Tom Tromey <tromey@adacore.com>
4727
4728 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4729 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4730
9852ceef
HD
47312020-04-24 Hannes Domani <ssbssa@yahoo.de>
4732
4733 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4734
7632c6ce
KR
47352020-04-24 Kamil Rytarowski <n54@gmx.com>
4736
4737 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4738 (remove_fork_catchpoint, post_startup_inferior)
4739 (post_attach): Move...
4740 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4741 (remove_fork_catchpoint, post_startup_inferior)
4742 (post_attach): ...here.
4743 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4744 (remove_fork_catchpoint, post_startup_inferior)
4745 (post_attach): Move...
4746 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4747 (remove_fork_catchpoint, post_startup_inferior)
4748 (post_attach): ...here.
4749
7be2bb4f
TT
47502020-04-24 Tom Tromey <tromey@adacore.com>
4751
4752 * nat/windows-nat.h (struct windows_thread_info)
4753 <pc_adjusted>: New member.
4754 * windows-nat.c (windows_fetch_one_register): Check
4755 pc_adjusted.
4756 (windows_nat_target::get_windows_debug_event)
4757 (windows_nat_target::wait): Set pc_adjusted.
4758
f80cb3b4
TV
47592020-04-24 Tom de Vries <tdevries@suse.de>
4760
4761 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4762 Run gdb-add-index inside temp dir.
4763
29514b87
TT
47642020-04-23 Tom Tromey <tromey@adacore.com>
4765
4766 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4767 in loop.
4768
5939967b
LM
47692020-04-23 Luis Machado <luis.machado@linaro.org>
4770
4771 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4772 get_frame_register instead of gdbarch_unwind_pc.
4773
70bc38f5
TV
47742020-04-23 Tom de Vries <tdevries@suse.de>
4775
4776 * symtab.c (lookup_global_symbol): Prefer def over decl.
4777
de82891c
TV
47782020-04-23 Tom de Vries <tdevries@suse.de>
4779
4780 PR symtab/25807
4781 * block.c (best_symbol, better_symbol): Promote to external.
4782 * block.h (best_symbol, better_symbol): Declare.
4783 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4784 decl.
4785
ecc6c606
TT
47862020-04-23 Tom Tromey <tromey@adacore.com>
4787
4788 PR ada/25837:
4789 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4790 "const char *", not a "const std::string &".
4791 <name_and_matcher::operator==>: Update.
4792 * unittests/lookup_name_info-selftests.c: Change type of
4793 "result".
4794
740480b8
TT
47952020-04-23 Tom Tromey <tom@tromey.com>
4796
4797 * inferior.h (iterate_over_inferiors): Don't declare.
4798 * inferior.c (iterate_over_inferiors): Remove.
4799 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4800 Remove.
4801 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4802 use iterate_over_inferiors.
4803 (darwin_resume_inferior_it)
4804 (struct resume_inferior_threads_param)
4805 (darwin_resume_inferior_threads_it): Remove.
4806 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4807
ae3ab1f0
TV
48082020-04-23 Tom de Vries <tdevries@suse.de>
4809
4810 * blockframe.c (find_pc_partial_function): Use
4811 find_pc_sect_compunit_symtab rather than
4812 objfile->sf->qf->find_pc_sect_compunit_symtab.
4813
317d2668
TV
48142020-04-22 Tom de Vries <tdevries@suse.de>
4815
4816 PR symtab/25764
4817 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4818 in psymtabs.
4819
eea9e357
TV
48202020-04-22 Tom de Vries <tdevries@suse.de>
4821
4822 PR symtab/25801
4823 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4824 symtabs.
4825
3d5afab3
TV
48262020-04-22 Tom de Vries <tdevries@suse.de>
4827
4828 PR symtab/25700
4829 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4830 CU if already created.
4831
d43b7a2d
TBA
48322020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4833
4834 * infrun.c (displaced_step_fixup): Switch to the event_thread
4835 before calling displaced_step_restore, not after.
4836
d89edf9b
MM
48372020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4838
4839 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4840 its inferior is not recorded by us.
4841 (record_btrace_target_open): Replace call to
4842 all_non_exited_threads () with call to current_inferior
4843 ()->non_exited_threads ().
4844 (record_btrace_target::stop_recording): Likewise.
4845 (record_btrace_target::close): Likewise.
4846 (record_btrace_target::wait): Likewise.
4847 (record_btrace_target::record_stop_replaying): Likewise.
4848
5897fd49
MM
48492020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4850
4851 * btrace.c (btrace_enable): Throw an error on double enables and
4852 when enabling recording fails.
4853 (btrace_disable): Throw an error if the thread is not recorded.
4854
1a476b6d
MM
48552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4856
4857 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4858 request if we do not have a thread_info.
4859
4778a5f8
TV
48602020-04-21 Tom de Vries <tdevries@suse.de>
4861
4862 PR gdb/25471
4863 * thread.c
4864 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4865 exception in get_frame_id.
4866
0fa7617d
TT
48672020-04-20 Tom Tromey <tromey@adacore.com>
4868
4869 * python/python.c (struct gdbpy_event): Mark move constructor as
4870 noexcept.
4871 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4872 constructor as noexcept.
4873 * completer.h (struct completion_result): Mark move constructor as
4874 noexcept.
4875 * completer.c (completion_result::completion_result): Use
4876 initialization style. Don't call reset_match_list.
4877
ad23bda0
MS
48782020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4879
4880 * MAINTAINERS (Write After Approval): Add myself.
4881
45e1f031
TT
48822020-04-18 Tom Tromey <tom@tromey.com>
4883
4884 * windows-tdep.c (init_w32_command_list)
4885 (w32_prefix_command_valid): Restore.
4886 (_initialize_windows_tdep): Call init_w32_command_list.
4887
08feed99
TT
48882020-04-18 Tom Tromey <tom@tromey.com>
4889
4890 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4891 * value.c (value_fn_field): Update.
4892 * valops.c (find_function_in_inferior)
4893 (value_allocate_space_in_inferior): Update.
4894 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4895 Update.
4896 * tui/tui-source.c (tui_source_window::set_contents): Update.
4897 * symtab.c (lookup_global_or_static_symbol)
4898 (find_function_start_sal_1, skip_prologue_sal)
4899 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4900 * symmisc.c (dump_msymbols, dump_symtab_1)
4901 (maintenance_print_one_line_table): Update.
4902 * symfile.c (init_entry_point_info, section_is_mapped)
4903 (list_overlays_command, simple_read_overlay_table)
4904 (simple_overlay_update_1): Update.
4905 * stap-probe.c (handle_stap_probe): Update.
4906 * stabsread.c (dbx_init_float_type, define_symbol)
4907 (read_one_struct_field, read_enum_type, read_range_type): Update.
4908 * source.c (info_line_command): Update.
4909 * python/python.c (gdbpy_source_objfile_script)
4910 (gdbpy_execute_objfile_script): Update.
4911 * python/py-type.c (save_objfile_types): Update.
4912 * python/py-objfile.c (py_free_objfile): Update.
4913 * python/py-inferior.c (python_new_objfile): Update.
4914 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4915 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4916 (maintenance_check_psymtabs): Update.
4917 * printcmd.c (info_address_command): Update.
4918 * objfiles.h (struct objfile) <arch>: New method, from
4919 get_objfile_arch.
4920 (get_objfile_arch): Don't declare.
4921 * objfiles.c (get_objfile_arch): Remove.
4922 (filter_overlapping_sections): Update.
4923 * minsyms.c (msymbol_is_function): Update.
4924 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4925 (output_nondebug_symbol): Update.
4926 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4927 (mdebug_expand_psymtab): Update.
4928 * machoread.c (macho_add_oso_symfile): Update.
4929 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4930 Update.
4931 * linux-fork.c (checkpoint_command): Update.
4932 * linespec.c (convert_linespec_to_sals): Update.
4933 * jit.c (finalize_symtab): Update.
4934 * infrun.c (insert_exception_resume_from_probe): Update.
4935 * ia64-tdep.c (ia64_find_unwind_table): Update.
4936 * hppa-tdep.c (internalize_unwinds): Update.
4937 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4938 Update.
4939 * gcore.c (call_target_sbrk): Update.
4940 * elfread.c (record_minimal_symbol, elf_symtab_read)
4941 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4942 (elf_gnu_ifunc_resolve_by_got): Update.
4943 * dwarf2/read.c (create_addrmap_from_index)
4944 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4945 (read_debug_names_from_section)
4946 (process_psymtab_comp_unit_reader, add_partial_symbol)
4947 (add_partial_subprogram, process_full_comp_unit)
4948 (read_file_scope, read_func_scope, read_lexical_block_scope)
4949 (read_call_site_scope, dwarf2_ranges_read)
4950 (dwarf2_record_block_ranges, dwarf2_add_field)
4951 (mark_common_block_symbol_computed, read_tag_pointer_type)
4952 (read_tag_string_type, dwarf2_init_float_type)
4953 (dwarf2_init_complex_target_type, read_base_type)
4954 (partial_die_info::read, partial_die_info::read)
4955 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4956 (dwarf2_fetch_die_loc_sect_off): Update.
4957 * dwarf2/loc.c (dwarf2_find_location_expression)
4958 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4959 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4960 (dwarf2_loc_desc_get_symbol_read_needs)
4961 (locexpr_describe_location_piece, locexpr_describe_location_1)
4962 (loclist_describe_location): Update.
4963 * dwarf2/index-write.c (write_debug_names): Update.
4964 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4965 * dtrace-probe.c (dtrace_process_dof): Update.
4966 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4967 (process_one_symbol): Update.
4968 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4969 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4970 (coff_read_enum_type): Update.
4971 * cli/cli-cmds.c (edit_command, list_command): Update.
4972 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4973 * breakpoint.c (create_overlay_event_breakpoint)
4974 (create_longjmp_master_breakpoint)
4975 (create_std_terminate_master_breakpoint)
4976 (create_exception_master_breakpoint, get_sal_arch): Update.
4977 * block.c (block_gdbarch): Update.
4978 * annotate.c (annotate_source_line): Update.
4979
0743fc83
TT
49802020-04-17 Tom Tromey <tromey@adacore.com>
4981
4982 * auto-load.c (show_auto_load_cmd): Remove.
4983 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4984 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4985 (maintenance_print_arc_command): Remove.
4986 * tui/tui-win.c (tui_command): Remove.
4987 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4988 * tui/tui-layout.c (tui_layout_command): Remove.
4989 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4990 * python/python.c (user_set_python, user_show_python): Remove.
4991 (_initialize_python): Use add_basic_prefix_cmd,
4992 add_show_prefix_cmd.
4993 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4994 (install_gdb_commands): Use add_basic_prefix_cmd,
4995 add_show_prefix_cmd.
4996 (info_guile_command): Remove.
4997 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4998 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4999 add_show_prefix_cmd.
5000 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5001 Remove do_set and do_show parameters.
5002 * cli/cli-style.c (set_style, show_style): Remove.
5003 (_initialize_cli_style): Use add_basic_prefix_cmd,
5004 add_show_prefix_cmd.
5005 (cli_style_option::add_setshow_commands): Remove do_set and
5006 do_show parameters.
5007 (cli_style_option::add_setshow_commands): Use
5008 add_basic_prefix_cmd, add_show_prefix_cmd.
5009 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5010 (set_style_name): Remove.
5011 * cli/cli-dump.c (dump_command, append_command): Remove.
5012 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5013 (tekhex_dump_command, binary_dump_command)
5014 (binary_append_command): Remove.
5015 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5016 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5017 (init_w32_command_list): Remove; move into ...
5018 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5019 * valprint.c (set_print, show_print, set_print_raw)
5020 (show_print_raw): Remove.
5021 (_initialize_valprint): Use add_basic_prefix_cmd,
5022 add_show_prefix_cmd.
5023 * typeprint.c (set_print_type, show_print_type): Remove.
5024 (_initialize_typeprint): Use add_basic_prefix_cmd,
5025 add_show_prefix_cmd.
5026 * record.c (set_record_command, show_record_command): Remove.
5027 (_initialize_record): Use add_basic_prefix_cmd,
5028 add_show_prefix_cmd.
5029 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5030 add_show_prefix_cmd.
5031 (info_command, show_command, set_debug, show_debug): Remove.
5032 * top.h (set_history, show_history): Don't declare.
5033 * top.c (set_history, show_history): Remove.
5034 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5035 (unset_tdesc_cmd): Remove.
5036 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5037 add_show_prefix_cmd.
5038 * symtab.c (info_module_command): Remove.
5039 (_initialize_symtab): Use add_basic_prefix_cmd.
5040 * symfile.c (overlay_command): Remove.
5041 (_initialize_symfile): Use add_basic_prefix_cmd.
5042 * sparc64-tdep.c (info_adi_command): Remove.
5043 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5044 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5045 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5046 add_show_prefix_cmd.
5047 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5048 (_initialize_serial): Use add_basic_prefix_cmd,
5049 add_show_prefix_cmd.
5050 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5051 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5052 add_show_prefix_cmd.
5053 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5054 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5055 add_show_prefix_cmd.
5056 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5057 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5058 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5059 add_show_prefix_cmd.
5060 * remote.c (remote_command, set_remote_cmd): Remove.
5061 (_initialize_remote): Use add_basic_prefix_cmd.
5062 * record-full.c (set_record_full_command)
5063 (show_record_full_command): Remove.
5064 (_initialize_record_full): Use add_basic_prefix_cmd,
5065 add_show_prefix_cmd.
5066 * record-btrace.c (cmd_set_record_btrace)
5067 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5068 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5069 (cmd_show_record_btrace_pt): Remove.
5070 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5071 add_show_prefix_cmd.
5072 * ravenscar-thread.c (set_ravenscar_command)
5073 (show_ravenscar_command): Remove.
5074 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5075 add_show_prefix_cmd.
5076 * mips-tdep.c (show_mips_command, set_mips_command)
5077 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5078 add_show_prefix_cmd.
5079 * maint.c (maintenance_command, maintenance_info_command)
5080 (maintenance_check_command, maintenance_print_command)
5081 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5082 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5083 add_show_prefix_cmd.
5084 (show_per_command_cmd): Remove.
5085 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5086 Remove.
5087 (maintenance_show_test_settings_cmd): Remove.
5088 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5089 add_show_prefix_cmd.
5090 * maint-test-options.c (maintenance_test_options_command):
5091 Remove.
5092 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5093 * macrocmd.c (macro_command): Remove
5094 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5095 * language.c (set_check, show_check): Remove.
5096 (_initialize_language): Use add_basic_prefix_cmd,
5097 add_show_prefix_cmd.
5098 * infcmd.c (unset_command): Remove.
5099 (_initialize_infcmd): Use add_basic_prefix_cmd.
5100 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5101 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5102 add_show_prefix_cmd.
5103 * go32-nat.c (go32_info_dos_command): Remove.
5104 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5105 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5106 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5107 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5108 (_initialize_frame): Use add_basic_prefix_cmd,
5109 add_show_prefix_cmd.
5110 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5111 (_initialize_dcache): Use add_basic_prefix_cmd,
5112 add_show_prefix_cmd.
5113 * cp-support.c (maint_cplus_command): Remove.
5114 (_initialize_cp_support): Use add_basic_prefix_cmd.
5115 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5116 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5117 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5118 add_basic_prefix_cmd, add_show_prefix_cmd.
5119 * breakpoint.c (save_command): Remove.
5120 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5121 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5122 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5123 add_show_prefix_cmd.
5124 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5125 (set_ada_command, show_ada_command): Remove.
5126 (_initialize_ada_language): Use add_basic_prefix_cmd,
5127 add_show_prefix_cmd.
5128 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5129
3557f442
KR
51302020-04-16 Kamil Rytarowski <n54@gmx.com>
5131
5132 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5133 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5134
16197208
SM
51352020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5136
5137 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5138 warning messages.
5139
00ac85d3
SM
51402020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5141
5142 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5143 import table is not at beginning of .idata section.
5144
381ce63f
PA
51452020-04-16 Pedro Alves <palves@redhat.com>
5146
5147 * inferior.c (delete_inferior): Use delete operator directly
5148 instead of delete_program_space.
5149 * progspace.c (add_program_space): New, factored out from
5150 program_space::program_space.
5151 (remove_program_space): New, factored out from
5152 delete_program_space.
5153 (program_space::program_space): Remove intro comment. Rewrite.
5154 (program_space::~program_space): Remove intro comment. Call
5155 remove_program_space.
5156 (delete_program_space): Delete.
5157 * progspace.h (program_space::program_space): Make explicit. Move
5158 intro comment here, adjusted.
5159 (program_space::~program_space): Move intro comment here,
5160 adjusted.
5161 (delete_program_space): Remove.
5162
a010605f
TT
51632020-04-16 Tom Tromey <tromey@adacore.com>
5164
5165 * windows-nat.c (windows_nat::handle_access_violation): New
5166 function.
5167 * nat/windows-nat.h (handle_access_violation): Declare.
5168 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5169 windows-nat.c. Call handle_access_violation.
5170
efba5c23
TV
51712020-04-16 Tom de Vries <tdevries@suse.de>
5172
5173 PR symtab/25791
5174 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5175 CUs without psymtab.
5176
97ed802d
KB
51772020-04-16 Kevin Buettner <kevinb@redhat.com>
5178
5179 * python/python.c (do_start_initialization): Don't call
5180 PyEval_InitThreads for Python 3.9 and beyond.
5181
c7d64809
KR
51822020-04-15 Kamil Rytarowski <n54@gmx.com>
5183
5184 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5185 thread functions.
5186 (obsd_nat_target::wait): Likewise.
5187
ce127a96
TT
51882020-04-15 Tom Tromey <tromey@adacore.com>
5189
5190 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5191 (DEBUG_EXCEPT): Use debug_printf.
5192
99f1bc6a
AB
51932020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5194
5195 * completer.c (class completion_tracker::completion_hash_entry)
5196 <hash_name>: New member function.
5197 (completion_tracker::discard_completions): New callback to hash a
5198 completion_hash_entry, pass this to htab_create_alloc.
5199
a0e9b532
JT
52002016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5201
5202 * windows-nat.c (windows_make_so): Warn rather than stopping with
5203 an error if realpath() fails.
5204
06ca5dd4
KR
52052020-04-14 Kamil Rytarowski <n54@gmx.com>
5206
5207 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5208 (nbsd_nat_target::info_proc): Add do_status.
5209
194d088f
TV
52102020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5211 Tom de Vries <tdevries@suse.de>
5212
5213 PR symtab/25718
5214 * psympriv.h (struct partial_symtab::read_symtab)
5215 (struct partial_symtab::expand_psymtab)
5216 (struct partial_symtab::read_dependencies): Update comments.
5217 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5218 read_symtab for includer.
5219 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5220 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5221 (struct dwarf2_include_psymtab::m_readin): Remove.
5222 (struct dwarf2_include_psymtab::includer): New member function.
5223 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5224
c1a66c06
TV
52252020-04-14 Tom de Vries <tdevries@suse.de>
5226
5227 PR symtab/25720
5228 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5229 with NULL symbol_matcher and lookup_name.
5230 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5231 and lookup_name.
5232 * dwarf2/read.c (dw2_expand_symtabs_matching)
5233 (dw2_debug_names_expand_symtabs_matching): Same.
5234 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5235 Make lookup_name a pointer. Update comment.
5236 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5237 lookup_name being a pointer.
5238 * symfile.c (expand_symtabs_matching): Same.
5239 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5240 * linespec.c (iterate_over_all_matching_symtabs): Same.
5241
400b5eca
TT
52422020-04-13 Tom Tromey <tom@tromey.com>
5243
5244 * run-on-main-thread.c: Update include.
5245 * unittests/main-thread-selftests.c: Update include.
5246 * tui/tui-win.c: Update include.
5247 * tui/tui-io.c: Update include.
5248 * tui/tui-interp.c: Update include.
5249 * tui/tui-hooks.c: Update include.
5250 * top.h: Update include.
5251 * top.c: Update include.
5252 * ser-base.c: Update include.
5253 * remote.c: Update include.
5254 * remote-notif.c: Update include.
5255 * remote-fileio.c: Update include.
5256 * record-full.c: Update include.
5257 * record-btrace.c: Update include.
5258 * python/python.c: Update include.
5259 * posix-hdep.c: Update include.
5260 * mingw-hdep.c: Update include.
5261 * mi/mi-main.c: Update include.
5262 * mi/mi-interp.c: Update include.
5263 * main.c: Update include.
5264 * linux-nat.c: Update include.
5265 * interps.c: Update include.
5266 * infrun.c: Update include.
5267 * inf-loop.c: Update include.
5268 * event-top.c: Update include.
5269 * event-loop.c: Move to ../gdbsupport/.
5270 * event-loop.h: Move to ../gdbsupport/.
5271 * async-event.h: Update include.
5272 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5273
93b54c8e
TT
52742020-04-13 Tom Tromey <tom@tromey.com>
5275
5276 * tui/tui-win.c: Include async-event.h.
5277 * remote.c: Include async-event.h.
5278 * remote-notif.c: Include async-event.h.
5279 * record-full.c: Include async-event.h.
5280 * record-btrace.c: Include async-event.h.
5281 * infrun.c: Include async-event.h.
5282 * event-top.c: Include async-event.h.
5283 * event-loop.h: Move some declarations to async-event.h.
5284 * event-loop.c: Don't include ser-event.h or top.h. Move some
5285 code to async-event.c.
5286 * async-event.h: New file.
5287 * async-event.c: New file.
5288 * Makefile.in (COMMON_SFILES): Add async-event.c.
5289 (HFILES_NO_SRCDIR): Add async-event.h.
5290
c1cd3163
TT
52912020-04-13 Tom Tromey <tom@tromey.com>
5292
5293 * utils.c (flush_streams): New function.
5294 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5295
29f2bf4f
TT
52962020-04-13 Tom Tromey <tom@tromey.com>
5297
5298 * event-loop.c (handle_file_event): Use warning, not
5299 printf_unfiltered.
5300
98029d02
TT
53012020-04-13 Tom Tromey <tom@tromey.com>
5302
5303 * event-loop.c: Include <chrono>.
5304
06cc9596
TT
53052020-04-13 Tom Tromey <tom@tromey.com>
5306
5307 * gdb_select.h: Move to ../gdbsupport/.
5308 * event-loop.c: Update include path.
5309 * top.c: Update include path.
5310 * ser-base.c: Update include path.
5311 * ui-file.c: Update include path.
5312 * ser-tcp.c: Update include path.
5313 * guile/scm-ports.c: Update include path.
5314 * posix-hdep.c: Update include path.
5315 * ser-unix.c: Update include path.
5316 * gdb_usleep.c: Update include path.
5317 * mingw-hdep.c: Update include path.
5318 * inflow.c: Update include path.
5319 * infrun.c: Update include path.
5320 * event-top.c: Update include path.
5321
8ae8e197
TT
53222020-04-13 Tom Tromey <tom@tromey.com>
5323
5324 * configure: Rebuild.
5325 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5326
58cf28e8
TT
53272020-04-13 Tom Tromey <tom@tromey.com>
5328
5329 * event-loop.h (start_event_loop): Don't declare.
5330 * event-loop.c (start_event_loop): Move...
5331 * main.c (start_event_loop): ...here. Now static.
5332
b7f999ae
SDJ
53332020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5334
5335 * MAINTAINERS: Update my email address.
5336
1085dfd4
KR
53372020-04-12 Kamil Rytarowski <n54@gmx.com>
5338
5339 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5340 IP_ALL.
5341
49d1d1f5
KR
53422020-04-12 Kamil Rytarowski <n54@gmx.com>
5343
5344 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5345 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5346
b4848d2a
KR
53472020-04-12 Kamil Rytarowski <n54@gmx.com>
5348
5349 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5350 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5351
51c133d5
KR
53522020-04-12 Kamil Rytarowski <n54@gmx.com>
5353
5354 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5355
54b8cbd0
KR
53562020-04-11 Kamil Rytarowski <n54@gmx.com>
5357
5358 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5359 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5360 (nbsd_nat_target::info_proc): New functions.
5361 * nbsd-nat.c (kinfo_get_vmmap): New function.
5362 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5363 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5364 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5365 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5366 functions.
5367 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5368 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5369 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5370 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5371 (KINFO_VME_FLAG_GROWS_DOWN): New.
5372
cf83625d
AS
53732020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5374
5375 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5376 bit shift.
5377
0c4311ab
TT
53782020-04-10 Tom Tromey <tromey@adacore.com>
5379
5380 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5381
3e65b3e9
TT
53822020-04-10 Tom Tromey <tromey@adacore.com>
5383
5384 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5385 separate debug files.
5386
13302e95
HD
53872020-04-10 Hannes Domani <ssbssa@yahoo.de>
5388
5389 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5390 Move to...
5391 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5392 ... here.
5393 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5394 Check for STATUS_WX86_BREAKPOINT.
5395 (windows_nat_target::wait): Same.
5396
bdfc1e8a
TV
53972020-04-10 Tom de Vries <tdevries@suse.de>
5398
5399 PR cli/25808
5400 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5401
f4460aec
SM
54022020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5403
5404 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5405 (Write After Approval): Remove Tom de Vries.
5406
a25198bb
BE
54072020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5408
5409 revert partially:
5410 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5411
aac66a4c
SM
5412 * buildsym.c (record_line): Fix undefined behavior and preserve
5413 lines at eof.
a25198bb 5414
206c98a6
KR
54152020-04-09 Kamil Rytarowski <n54@gmx.com>
5416
5417 * auxv.h (svr4_auxv_parse): New.
5418 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5419 and generic_auxv_parse.
5420 (svr4_auxv_parse): Add.
5421 * obsd-tdep.c: Include "auxv.h".
5422 (obsd_auxv_parse): Remove.
5423 (obsd_init_abi): Remove comment.
5424 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5425 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5426 * nbsd-tdep.c: Include "auxv.h".
5427 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5428
71fbdbaf
TT
54292020-04-08 Tom Tromey <tromey@adacore.com>
5430
5431 * nat/windows-nat.h (last_wait_event): Don't declare.
5432 (wait_for_debug_event): Update comment.
5433 * nat/windows-nat.c (last_wait_event): Now static.
5434
2c1d95e8
TT
54352020-04-08 Tom Tromey <tromey@adacore.com>
5436
5437 * windows-nat.c (wait_for_debug_event): Move to
5438 nat/windows-nat.c.
5439 * nat/windows-nat.h (wait_for_debug_event): Declare.
5440 * nat/windows-nat.c (wait_for_debug_event): Move from
5441 windows-nat.c. No longer static.
5442
d2977bc4
TT
54432020-04-08 Tom Tromey <tromey@adacore.com>
5444
5445 * windows-nat.c (get_windows_debug_event): Use
5446 fetch_pending_stop.
5447 * nat/windows-nat.h (fetch_pending_stop): Declare.
5448 * nat/windows-nat.c (fetch_pending_stop): New function.
5449
e758e19c
TT
54502020-04-08 Tom Tromey <tromey@adacore.com>
5451
5452 * windows-nat.c (windows_continue): Use matching_pending_stop and
5453 continue_last_debug_event.
5454 * nat/windows-nat.h (matching_pending_stop)
5455 (continue_last_debug_event): Declare.
5456 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5457 (matching_pending_stop, continue_last_debug_event): New
5458 functions.
5459
8d30e395
TT
54602020-04-08 Tom Tromey <tromey@adacore.com>
5461
5462 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5463 (handle_exception_result): Move to nat/windows-nat.h.
5464 (DEBUG_EXCEPTION_SIMPLE): Remove.
5465 (windows_nat::handle_ms_vc_exception): New function.
5466 (handle_exception): Move to nat/windows-nat.c.
5467 (get_windows_debug_event): Update.
5468 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5469 nat/windows-nat.c.
5470 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5471 (handle_exception_result): Move from windows-nat.c.
5472 (handle_exception): Declare.
5473 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5474 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5475 windows-nat.c.
5476
29de418d
TT
54772020-04-08 Tom Tromey <tromey@adacore.com>
5478
5479 * windows-nat.c (exception_count, event_count): Remove.
5480 (handle_exception, get_windows_debug_event)
5481 (do_initial_windows_stuff): Update.
5482
a816ba18
TT
54832020-04-08 Tom Tromey <tromey@adacore.com>
5484
5485 * windows-nat.c (windows_nat::handle_load_dll)
5486 (windows_nat::handle_unload_dll): Rename. No longer static.
5487 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5488 Declare.
5489
a00caa12
TT
54902020-04-08 Tom Tromey <tromey@adacore.com>
5491
5492 * complaints.h (stop_whining): Declare at top-level.
5493 (complaint): Don't declare stop_whining.
5494
d41b524f
TT
54952020-04-08 Tom Tromey <tromey@adacore.com>
5496
5497 * windows-nat.c (windows_nat::handle_output_debug_string):
5498 Rename. No longer static.
5499 * nat/windows-nat.h (handle_output_debug_string): Declare.
5500
3c76026d
TT
55012020-04-08 Tom Tromey <tromey@adacore.com>
5502
5503 * windows-nat.c (current_process_handle, current_process_id)
5504 (main_thread_id, last_sig, current_event, last_wait_event)
5505 (current_windows_thread, desired_stop_thread_id, pending_stops)
5506 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5507 (display_selectors, fake_create_process)
5508 (get_windows_debug_event): Update.
5509 * nat/windows-nat.h (current_process_handle, current_process_id)
5510 (main_thread_id, last_sig, current_event, last_wait_event)
5511 (current_windows_thread, desired_stop_thread_id, pending_stops)
5512 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5513 * nat/windows-nat.c (current_process_handle, current_process_id)
5514 (main_thread_id, last_sig, current_event, last_wait_event)
5515 (current_windows_thread, desired_stop_thread_id, pending_stops)
5516 (siginfo_er): New globals. Move from windows-nat.c.
5517
9d8679cc
TT
55182020-04-08 Tom Tromey <tromey@adacore.com>
5519
5520 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5521 (handle_load_dll): Update.
5522 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5523
28688adf
TT
55242020-04-08 Tom Tromey <tromey@adacore.com>
5525
5526 * windows-nat.c (enum thread_disposition_type): Move to
5527 nat/windows-nat.h.
5528 (windows_nat::thread_rec): Rename from thread_rec. No longer
5529 static.
5530 (windows_add_thread, windows_nat_target::fetch_registers)
5531 (windows_nat_target::store_registers, handle_exception)
5532 (windows_nat_target::resume, get_windows_debug_event)
5533 (windows_nat_target::get_tib_address)
5534 (windows_nat_target::thread_name)
5535 (windows_nat_target::thread_alive): Update.
5536 * nat/windows-nat.h (enum thread_disposition_type): Move from
5537 windows-nat.c.
5538 (thread_rec): Declare.
5539
4834dad0
TT
55402020-04-08 Tom Tromey <tromey@adacore.com>
5541
5542 * windows-nat.c: Add "using namespace".
5543 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5544 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5545
65bafd5b
TT
55462020-04-08 Tom Tromey <tromey@adacore.com>
5547
5548 * nat/windows-nat.h (struct windows_thread_info): Declare
5549 destructor.
5550 * nat/windows-nat.c (~windows_thread_info): New.
5551
0a4afda3
TT
55522020-04-08 Tom Tromey <tromey@adacore.com>
5553
5554 PR gdb/22992
5555 * windows-nat.c (current_event): Update comment.
5556 (last_wait_event, desired_stop_thread_id): New globals.
5557 (struct pending_stop): New.
5558 (pending_stops): New global.
5559 (windows_nat_target) <stopped_by_sw_breakpoint>
5560 <supports_stopped_by_sw_breakpoint>: New methods.
5561 (windows_fetch_one_register): Add assertions. Adjust PC.
5562 (windows_continue): Handle pending stops. Suspend other threads
5563 when stepping. Use last_wait_event
5564 (wait_for_debug_event): New function.
5565 (get_windows_debug_event): Use wait_for_debug_event. Handle
5566 pending stops. Queue spurious stops.
5567 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5568 (windows_nat_target::kill): Use wait_for_debug_event.
5569 * nat/windows-nat.h (struct windows_thread_info)
5570 <stopped_at_software_breakpoint>: New field.
5571 * nat/windows-nat.c (windows_thread_info::resume): Clear
5572 stopped_at_software_breakpoint.
5573
8e61ebec
TT
55742020-04-08 Tom Tromey <tromey@adacore.com>
5575
5576 * windows-nat.c (enum thread_disposition_type): New.
5577 (thread_rec): Replace "get_context" parameter with "disposition";
5578 change type.
5579 (windows_add_thread, windows_nat_target::fetch_registers)
5580 (windows_nat_target::store_registers, handle_exception)
5581 (windows_nat_target::resume, get_windows_debug_event)
5582 (windows_nat_target::get_tib_address)
5583 (windows_nat_target::thread_name)
5584 (windows_nat_target::thread_alive): Update.
5585
98a03287
TT
55862020-04-08 Tom Tromey <tromey@adacore.com>
5587
5588 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5589 (windows_continue): Use windows_continue::resume.
5590 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5591 resume>: Declare new methods.
5592 * nat/windows-nat.c: New file.
5593 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5594
7c7411bc
TT
55952020-04-08 Tom Tromey <tromey@adacore.com>
5596
5597 * windows-nat.c (windows_add_thread, windows_delete_thread)
5598 (windows_nat_target::fetch_registers)
5599 (windows_nat_target::store_registers, fake_create_process)
5600 (windows_nat_target::resume, windows_nat_target::resume)
5601 (get_windows_debug_event, windows_nat_target::wait)
5602 (windows_nat_target::pid_to_str)
5603 (windows_nat_target::get_tib_address)
5604 (windows_nat_target::get_ada_task_ptid)
5605 (windows_nat_target::thread_name)
5606 (windows_nat_target::thread_alive): Use lwp, not tid.
5607
2950fdf7
TT
56082020-04-08 Tom Tromey <tromey@adacore.com>
5609
5610 * windows-nat.c (handle_exception)
5611 (windows_nat_target::thread_name): Update.
5612 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5613 <name>: Now unique_xmalloc_ptr.
5614
62fe396b
TT
56152020-04-08 Tom Tromey <tromey@adacore.com>
5616
5617 * windows-nat.c (thread_rec)
5618 (windows_nat_target::fetch_registers): Update.
5619 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5620 Update comment.
5621 <debug_registers_changed, reload_context>: Now bool.
5622
e9534bd2
TT
56232020-04-08 Tom Tromey <tromey@adacore.com>
5624
5625 * windows-nat.c (windows_add_thread): Use new.
5626 (windows_init_thread_list, windows_delete_thread): Use delete.
5627 (get_windows_debug_event): Update.
5628 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5629 destructor, and initializers.
5630
ae1f8880
TT
56312020-04-08 Tom Tromey <tromey@adacore.com>
5632
5633 * windows-nat.c (struct windows_thread_info): Remove.
5634 * nat/windows-nat.h: New file.
5635
55a1e039
TT
56362020-04-08 Tom Tromey <tromey@adacore.com>
5637
5638 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5639 (thread_rec, windows_add_thread, windows_delete_thread)
5640 (windows_continue): Update.
5641
93366324
TT
56422020-04-08 Tom Tromey <tromey@adacore.com>
5643
5644 * windows-nat.c (struct windows_thread_info): Remove typedef.
5645 (thread_head): Remove.
5646 (thread_list): New global.
5647 (thread_rec, windows_add_thread, windows_init_thread_list)
5648 (windows_delete_thread, windows_continue): Update.
5649
0f2265e2
SM
56502020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5651
5652 * windows-tdep.h (windows_init_abi): Add comment.
5653 (cygwin_init_abi): New declaration.
5654 * windows-tdep.c: Split signal enumeration in two, one for
5655 Windows and one for Cygwin.
5656 (windows_gdb_signal_to_target): Only deal with signal of the
5657 Windows OS ABI.
5658 (cygwin_gdb_signal_to_target): New function.
5659 (windows_init_abi): Rename to windows_init_abi_common, don't set
5660 gdb_signal_to_target gdbarch method. Add new new function with
5661 this name.
5662 (cygwin_init_abi): New function.
5663 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5664 comment. Don't call windows_init_abi.
5665 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5666 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5667 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5668 i386_windows_init_abi_common, don't call windows_init_abi. Add
5669 a new function of this name.
5670 (i386_cygwin_init_abi): New function.
5671 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5672 OS ABI Cygwin.
5673
3810f182
SM
56742020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5675
5676 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5677 parameter.c.
5678 (dwarf2_read_gdb_index): Update.
5679
063f8e80
KR
56802020-04-07 Kamil Rytarowski <n54@gmx.com>
5681
5682 * nbsd-tdep.c: Include "objfiles.h".
5683 (nbsd_skip_solib_resolver): New.
5684 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5685
85a9510c 56862020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5687
5688 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5689 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5690 with DW_LLE_base_addressx are being emitted in DWARFv5.
5691 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5692 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5693 unsigned integer.
5694
9fc3eaae 56952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5696
5697 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5698 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5699 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5700 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5701 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5702 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5703 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5704
5705
41144253 57062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5707
5708 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5709 (read_loclist_index): New function definition.
5710 (lookup_loclist_base): New function definition.
5711 (read_loclist_header): New function definition.
5712 (dwarf2_cu): Add loclist_base and loclist_header field.
5713 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5714 (read_full_die_1): Read the value of DW_AT_loclists_base.
5715 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5716 (read_attribute_value): Handle DW_FORM_loclistx.
5717 (skip_one_die): Handle DW_FORM_loclistx.
5718 (loclist_header): New structure declaration.
5719 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5720
9f4e76a4
SM
57212020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5722
5723 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5724 constructor. Remove `addr` parameter from other constructor and
5725 add `per_cu` parameter.
5726 * dwarf2/read.c (create_partial_symtab): Update.
5727
25c11aca
TV
57282020-04-07 Tom de Vries <tdevries@suse.de>
5729
5730 PR symtab/25796
5731 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5732 (partial_die_info::fixup): Inherit has_const_value.
5733
5707e24b
TV
57342020-04-07 Tom de Vries <tdevries@suse.de>
5735
5736 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5737 symbols without address.
5738
05f00e22
KR
57392020-04-06 Kamil Rytarowski <n54@gmx.com>
5740
5741 * nbsd-nat.h (struct thread_info): Add forward declaration.
5742 (nbsd_nat_target::thread_alive): Add.
5743 (nbsd_nat_target::thread_name): Likewise.
5744 (nbsd_nat_target::update_thread_list): Likewise.
5745 (update_thread_list::post_attach): Likewise.
5746 (post_attach::pid_to_str): Likewise.
5747 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5748 (nbsd_thread_lister): Add.
5749 (nbsd_nat_target::thread_alive): Likewise.
5750 (nbsd_nat_target::thread_name): Likewise.
5751 (nbsd_add_threads): Likewise.
5752 (update_thread_list::post_attach): Likewise.
5753 (nbsd_nat_target::update_thread_list): Likewise.
5754 (post_attach::pid_to_str): Likewise.
5755
6ee448cc
TT
57562020-04-06 Tom Tromey <tromey@adacore.com>
5757
5758 * ada-valprint.c (print_variant_part): Extract the variant field.
5759 (print_field_values): Use the field as the outer value when
5760 recursing.
5761
dea34e8c
TT
57622020-04-06 Tom Tromey <tromey@adacore.com>
5763
5764 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5765 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5766 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5767 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5768 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5769
93689ce9
TT
57702020-04-06 Tom Tromey <tromey@adacore.com>
5771
5772 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5773 TYPE_CODE_ERROR.
5774
79743962
KR
57752020-04-06 Kamil Rytarowski <n54@gmx.com>
5776
5777 * nbsd-tdep.c: Include "gdbarch.h".
5778 Define enum with NetBSD signal numbers.
5779 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5780 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5781 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5782 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5783 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5784 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5785 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5786 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5787 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5788 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5789 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5790 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5791
9e7c9a03
HD
57922020-04-03 Hannes Domani <ssbssa@yahoo.de>
5793
5794 PR gdb/25325
5795 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5796
d9e49b61
TT
57972020-04-03 Tom Tromey <tromey@adacore.com>
5798
5799 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5800 Read constant block.
5801
e0fc5c3f
SM
58022020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5803
5804 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5805 (gdb_bfd_get_full_section_contents): New declaration.
5806 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5807 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5808 gdb_bfd_get_full_section_contents.
5809
e2ff18a0
SM
58102020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5811
5812 * exec.c (build_section_table): Replace internal_error with
5813 gdb_assert.
5814 (section_table_xfer_memory_partial): Likewise.
5815 * mdebugread.c (parse_partial_symbols): Likewise.
5816 * psymtab.c (lookup_partial_symbol): Likewise.
5817 * utils.c (wrap_here): Likewise.
5818
0830d301
TT
58192020-04-02 Tom Tromey <tromey@adacore.com>
5820
5821 * f-lang.c (build_fortran_types): Use arch_type to initialize
5822 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5823
e7da7f8f
TT
58242020-04-02 Tom Tromey <tromey@adacore.com>
5825
5826 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5827 of attributes.
5828
c90d28ac
AB
58292020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5830 Bernd Edlinger <bernd.edlinger@hotmail.de>
5831 Tom Tromey <tromey@adacore.com>
5832
5833 * buildsym.c (buildsym_compunit::record_line): Remove
5834 deduplication code.
5835
1aa98955
TV
58362020-04-02 Tom de Vries <tdevries@suse.de>
5837
5838 PR ada/24671
5839 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5840
d3214198
TV
58412020-04-02 Tom de Vries <tdevries@suse.de>
5842
5843 * dwarf2/read.c (dwarf2_gdb_index_functions,
5844 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5845 NULL.
5846 * psymtab.c (psym_lookup_global_symbol_language): New function.
5847 (psym_functions): Init psym_lookup_global_symbol_language with
5848 psym_lookup_global_symbol_language.
5849 * symfile-debug.c (debug_sym_quick_functions): Init
5850 lookup_global_symbol_language with NULL.
5851 * symfile.c (set_initial_language): Remove fixme comment.
5852 * symfile.h (struct quick_symbol_functions): Add
5853 lookup_global_symbol_language.
5854 * symtab.c (find_quick_global_symbol_language): New function.
5855 (find_main_name): Use find_quick_global_symbol_language.
5856
2836752f
SM
58572020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5860
64dc2d4b
BE
58612020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5862
5863 * buildsym.c (record_line): Fix undefined behavior and preserve
5864 lines at eof.
5865
bbe3dc41
BE
58662020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5867
5868 * buildsym.c (record_line): Fix the resizing condition.
5869
6b4a335b
TT
58702020-04-01 Tom Tromey <tom@tromey.com>
5871
5872 * value.h (value_literal_complex): Add comment.
5873 * valops.c (value_literal_complex): Refer to value.h.
5874
3638a098
TT
58752020-04-01 Tom Tromey <tom@tromey.com>
5876
5877 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5878 (scalar_type): New rule, from typebase.
5879 (typebase): Use scalar_type. Recognize complex types.
5880 (field_name): Handle FLOAT_KEYWORD.
5881 (ident_tokens): Add _Complex and __complex__.
5882
c34e8714
TT
58832020-04-01 Tom Tromey <tom@tromey.com>
5884
5885 PR exp/25299:
5886 * valarith.c (promotion_type, complex_binop): New functions.
5887 (scalar_binop): Handle complex numbers. Use promotion_type.
5888 (value_pos, value_neg, value_complement): Handle complex numbers.
5889
fa649bb7
TT
58902020-04-01 Tom Tromey <tom@tromey.com>
5891
5892 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5893 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5894 (parse_number): Handle complex numbers.
5895
981c08ce
TT
58962020-04-01 Tom Tromey <tom@tromey.com>
5897
5898 * c-valprint.c (c_decorations): Change complex suffix to "i".
5899
4c99290d
TT
59002020-04-01 Tom Tromey <tom@tromey.com>
5901
5902 * valprint.c (generic_value_print_complex): Use accessors.
5903 * value.h (value_real_part, value_imaginary_part): Declare.
5904 * valops.c (value_real_part, value_imaginary_part): New
5905 functions.
5906 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5907
5b930b45
TT
59082020-04-01 Tom Tromey <tom@tromey.com>
5909
5910 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5911 (read_range_type): Update.
5912 * mdebugread.c (basic_type): Update.
5913 * go-lang.c (build_go_types): Use init_complex_type.
5914 * gdbtypes.h (struct main_type) <complex_type>: New member.
5915 (init_complex_type): Update.
5916 (arch_complex_type): Don't declare.
5917 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5918 Make name if none given. Use alloc_type_copy. Look for cached
5919 complex type.
5920 (arch_complex_type): Remove.
5921 (gdbtypes_post_init): Use init_complex_type.
5922 * f-lang.c (build_fortran_types): Use init_complex_type.
5923 * dwarf2/read.c (read_base_type): Update.
5924 * d-lang.c (build_d_types): Use init_complex_type.
5925 * ctfread.c (read_base_type): Update.
5926
53cccef1
TBA
59272020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5928
5929 * infrun.c (stop_all_threads): Update assertion, plus when
5930 stopping threads, take into account that we might be trying
5931 to stop an all-stop target.
5932 (stop_waiting): Call 'stop_all_threads' if there exists a
5933 non-stop target.
5934
a0714d30
TBA
59352020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5936
5937 * target.h (exists_non_stop_target): New function declaration.
5938 * target.c (exists_non_stop_target): New function.
5939
60e22c1e
HD
59402020-04-01 Hannes Domani <ssbssa@yahoo.de>
5941
5942 PR gdb/24789
5943 * eval.c (is_integral_or_integral_reference): New function.
5944 (evaluate_subexp_standard): Allow integer references in
5945 pointer arithmetic.
5946
e139a727
TBA
59472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5948
5949 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5950 check for no ptid in the stop reply when the target is non-stop.
5951
e0802d59
TT
59522020-04-01 Tom Tromey <tromey@adacore.com>
5953
5954 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5955 "name" parameter to rvalue reference. Initialize m_name_holder.
5956 <lookup_name_info>: New overloads.
5957 <name>: Return gdb::string_view.
5958 <c_str>: New method.
5959 <make_ignore_params>: Update.
5960 <search_name_hash>: Update.
5961 <language_lookup_name>: Return const char *.
5962 <m_name>: Change type.
5963 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5964 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5965 (lookup_name_info::match_any): Update.
5966 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5967 Update.
5968 * minsyms.c (linkage_name_str): Update.
5969 * language.c (default_symbol_name_matcher): Update.
5970 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5971 Update.
5972 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5973 (ada_lookup_name_info::ada_lookup_name_info): Update.
5974 (literal_symbol_name_matcher): Update.
5975
8c072cb6
TT
59762020-04-01 Tom Tromey <tromey@adacore.com>
5977
5978 * psymtab.c (psymtab_search_name): Remove function.
5979 (psym_lookup_symbol): Create search name and lookup name here.
5980 (lookup_partial_symbol): Remove "name" parameter; add
5981 lookup_name.
5982 (psym_expand_symtabs_for_function): Update.
5983
6f29a534
TT
59842020-03-31 Joel Jones <joelkevinjones@gmail.com>
5985
5986 PR tui/25597:
5987 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5988
af62665e
TT
59892020-03-31 Tom Tromey <tromey@adacore.com>
5990
5991 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5992 memcpy.
5993
d1a89da5
NC
59942020-03-30 Nelson Chu <nelson.chu@sifive.com>
5995
5996 * features/riscv/32bit-csr.xml: Regenerated.
5997 * features/riscv/64bit-csr.xml: Regenerated.
5998
d8af9068
TT
59992020-03-30 Tom Tromey <tromey@adacore.com>
6000
6001 * ada-valprint.c (print_variant_part): Update.
6002 * ada-lang.h (ada_which_variant_applies): Update.
6003 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6004 outer_valaddr parameters; replace with "outer" value parameter.
6005 (to_fixed_variant_branch_type): Update.
6006
227c0bf4
PFC
60072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6008
6009 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6010 <list>. Remove inclusion of observable.h.
6011 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6012 (struct arch_lwp_info): New struct.
6013 (class ppc_linux_dreg_interface): New class.
6014 (struct ppc_linux_process_info): New struct.
6015 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6016 <low_new_clone, low_forget_process, low_prepare_to_resume>
6017 <copy_thread_dreg_state, mark_thread_stale>
6018 <mark_debug_registers_changed, register_hw_breakpoint>
6019 <clear_hw_breakpoint, register_wp, clear_wp>
6020 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6021 <num_memory_accesses, get_trigger_type>
6022 <create_watchpoint_request, hwdebug_point_cmp>
6023 <init_arch_lwp_info, get_arch_lwp_info>
6024 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6025 methods.
6026 <struct ptid_hash>: New inner struct.
6027 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6028 members.
6029 (saved_dabr_value, hwdebug_info, max_slots_number)
6030 (struct hw_break_tuple, struct thread_points, ppc_threads)
6031 (have_ptrace_hwdebug_interface)
6032 (hwdebug_find_thread_points_by_tid)
6033 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6034 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6035 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6036 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6037 use m_dreg_interface.
6038 (hwdebug_point_cmp): Change to...
6039 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6040 reference arguments instead of pointers.
6041 (ppc_linux_nat_target::ranged_break_num_registers): Use
6042 m_dreg_interface.
6043 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6044 m_dreg_interface. Call register_hw_breakpoint.
6045 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6046 m_dreg_interface. Call clear_hw_breakpoint.
6047 (get_trigger_type): Change to...
6048 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6049 comment.
6050 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6051 use m_dreg_interface. Call register_hw_breakpoint.
6052 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6053 use m_dreg_interface. Call clear_hw_breakpoint.
6054 (can_use_watchpoint_cond_accel): Change to...
6055 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6056 method. Update comment, use m_dreg_interface and
6057 m_process_info.
6058 (calculate_dvc): Change to...
6059 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6060 m_dreg_interface.
6061 (num_memory_accesses): Change to...
6062 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6063 (check_condition): Change to...
6064 (ppc_linux_nat_target::check_condition): ...this method.
6065 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6066 comment, use m_dreg_interface.
6067 (create_watchpoint_request): Change to...
6068 (ppc_linux_nat_target::create_watchpoint_request): ...this
6069 method. Use m_dreg_interface.
6070 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6071 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6072 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6073 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6074 (ppc_linux_nat_target::low_forget_process)
6075 (ppc_linux_nat_target::low_new_fork)
6076 (ppc_linux_nat_target::low_new_clone)
6077 (ppc_linux_nat_target::low_delete_thread)
6078 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6079 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6080 only call mark_thread_stale.
6081 (ppc_linux_thread_exit): Remove.
6082 (ppc_linux_nat_target::stopped_data_address): Change to...
6083 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6084 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6085 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6086 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6087 comment. Call low_stopped_data_address.
6088 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6089 m_dreg_interface.
6090 (ppc_linux_nat_target::masked_watch_num_registers): Use
6091 m_dreg_interface.
6092 (ppc_linux_nat_target::copy_thread_dreg_state)
6093 (ppc_linux_nat_target::mark_thread_stale)
6094 (ppc_linux_nat_target::mark_debug_registers_changed)
6095 (ppc_linux_nat_target::register_hw_breakpoint)
6096 (ppc_linux_nat_target::clear_hw_breakpoint)
6097 (ppc_linux_nat_target::register_wp)
6098 (ppc_linux_nat_target::clear_wp)
6099 (ppc_linux_nat_target::init_arch_lwp_info)
6100 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6101 (_initialize_ppc_linux_nat): Remove observer callback.
6102
4db10d8f
PFC
61032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6104
6105 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6106 (ppc_linux_nat_target::auxv_parse)
6107 (ppc_linux_nat_target::read_description)
6108 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6109 Move up.
6110
1310c1b0
PFC
61112020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6112
6113 * linux-nat.h (low_new_clone): New method.
6114 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6115
69b037c3
SM
61162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6117
6118 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6119 (dbx_expand_psymtab): ... this.
6120 (start_psymtab): Update.
6121 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6122 (mdebug_expand_psymtab): ... this.
6123 (parse_partial_symbols): Update.
6124 (new_psymtab): Update.
6125 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6126 (xcoff_expand_psymtab): ... this.
6127 (xcoff_start_psymtab): Update.
6128
48993951
SM
61292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6130
6131 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6132 <expand_dependencies>: ... this.
6133 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6134 (partial_symtab::expand_dependencies): ... this.
6135 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6136 Update.
6137 (dwarf2_psymtab::expand_psymtab): Update.
6138 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6139 * mdebugread.c (psymtab_to_symtab_1): Update.
6140 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6141
3ad83046
SM
61422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6143
6144 * psympriv.h (discard_psymtab): Remove.
6145 * dbxread.c (dbx_end_psymtab): Update.
6146 * xcoffread.c (xcoff_end_psymtab): Update.
6147
4d1b9ab6
TT
61482020-03-28 Tom Tromey <tom@tromey.com>
6149
6150 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6151 comment.
6152
f1749218
TT
61532020-03-28 Tom Tromey <tom@tromey.com>
6154
6155 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6156
ebea7626
HD
61572020-03-27 Hannes Domani <ssbssa@yahoo.de>
6158
6159 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6160
a879b4d5
JB
61612020-03-26 John Baldwin <jhb@FreeBSD.org>
6162
6163 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6164
0826b30a
TT
61652020-03-26 Tom Tromey <tom@tromey.com>
6166
6167 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6168 (mark_common_block_symbol_computed, read_tag_string_type)
6169 (attr_to_dynamic_prop, read_subrange_type): Update.
6170 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6171 to be methods on struct attribute.
6172 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6173 (read_call_site_scope, partial_die_info::read)
6174 (partial_die_info::read, lookup_die_type, follow_die_ref):
6175 Update.
6176 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6177 from dwarf2_get_ref_die_offset.
6178 (attribute::constant_value): New method, from
6179 dwarf2_get_attr_constant_value.
6180 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6181 Declare method.
6182 <constant_value>: New method.
6183
2b2558bf
TT
61842020-03-26 Tom Tromey <tom@tromey.com>
6185
6186 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6187 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6188 (dwarf_type_encoding_name): Move to stringify.c.
6189 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6190 * dwarf2/stringify.c: New file.
6191 * dwarf2/stringify.h: New file.
6192
eeb64781
TT
61932020-03-26 Tom Tromey <tom@tromey.com>
6194
6195 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6196 Rewrite.
6197
a39fdb41
TT
61982020-03-26 Tom Tromey <tom@tromey.com>
6199
6200 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6201 methods.
6202 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6203 (lookup_ranges_base): Likewise.
6204 (read_cutu_die_from_dwo, read_full_die_1): Update.
6205
436c571c
TT
62062020-03-26 Tom Tromey <tom@tromey.com>
6207
6208 * dwarf2/read.c (read_import_statement, read_file_scope)
6209 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6210 (read_lexical_block_scope, read_call_site_scope)
6211 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6212 (handle_struct_member_die, process_structure_scope)
6213 (update_enumeration_type_from_children)
6214 (process_enumeration_scope, read_array_type, read_common_block)
6215 (read_namespace, read_module, read_subroutine_type): Update.
6216 (sibling_die): Remove.
6217
052c8bb8
TT
62182020-03-26 Tom Tromey <tom@tromey.com>
6219
6220 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6221 (build_type_psymtabs_reader, read_structure_type)
6222 (read_enumeration_type, read_full_die_1): Update.
6223 (dwarf2_attr_no_follow): Move to die.h.
6224 * dwarf2/die.h (struct die_info) <attr>: New method.
6225
2b24b6e4
TT
62262020-03-26 Tom Tromey <tom@tromey.com>
6227
6228 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6229 <base_address>: Now an optional.
6230 (dwarf2_find_base_address, dwarf2_rnglists_process)
6231 (dwarf2_ranges_process, fill_in_loclist_baton)
6232 (dwarf2_symbol_mark_computed): Update.
6233
c2d50fd0
TT
62342020-03-26 Tom Tromey <tom@tromey.com>
6235
6236 * dwarf2/read.c (struct die_info): Move to die.h.
6237 * dwarf2/die.h: New file.
6238
0df7ad3a
TT
62392020-03-26 Tom Tromey <tom@tromey.com>
6240
6241 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6242 * dwarf2/read.c
6243 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6244 Move to line-header.c.
6245 (read_checked_initial_length_and_offset, read_formatted_entries):
6246 Likewise.
6247 (dwarf_decode_line_header): Split into two.
6248 * dwarf2/line-header.c
6249 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6250 Move from read.c.
6251 (read_checked_initial_length_and_offset, read_formatted_entries):
6252 Likewise.
6253 (dwarf_decode_line_header): New function, split from read.c.
6254
86c0bb4c
TT
62552020-03-26 Tom Tromey <tom@tromey.com>
6256
6257 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6258 Declare method.
6259 * dwarf2/read.c (read_attribute_value): Update.
6260 (dwarf2_per_objfile::read_line_string): Rename from
6261 read_indirect_line_string.
6262 (read_formatted_entries): Update.
6263
2ef46c2f
TT
62642020-03-26 Tom Tromey <tom@tromey.com>
6265
6266 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6267 variable.
6268
4f9c1eda
TT
62692020-03-26 Tom Tromey <tom@tromey.com>
6270
6271 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6272 const.
6273 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6274 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6275 parameter const.
6276
5a0e026f
TT
62772020-03-26 Tom Tromey <tom@tromey.com>
6278
6279 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6280 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6281 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6282 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6283
8844c11b
TT
62842020-03-26 Tom Tromey <tom@tromey.com>
6285
6286 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6287 file_names_size, file_full_name, file_file_name>: Use const.
6288 <file_name_at, file_names>: Add const overload.
6289 * dwarf2/line-header.c (line_header::file_file_name)
6290 (line_header::file_full_name): Update.
6291
c90ec28a
TT
62922020-03-26 Tom Tromey <tom@tromey.com>
6293
6294 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6295 (macro_start_file, consume_improper_spaces)
6296 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6297 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6298 (dwarf_decode_macros): Move to macro.c.
6299 * dwarf2/macro.c: New file.
6300 * dwarf2/macro.h: New file.
6301 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6302
4f44ae6c
TT
63032020-03-26 Tom Tromey <tom@tromey.com>
6304
6305 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6306 method.
6307 * dwarf2/section.c: New method. From
6308 read_indirect_string_at_offset_from.
6309 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6310 (read_indirect_string_at_offset_from): Move to section.c.
6311 (read_indirect_string_at_offset): Rewrite.
6312 (read_indirect_line_string_at_offset): Remove.
6313 (read_indirect_string, read_indirect_line_string)
6314 (dwarf_decode_macro_bytes): Update.
6315
a0194fa8
TT
63162020-03-26 Tom Tromey <tom@tromey.com>
6317
6318 * dwarf2/section.h (struct dwarf2_section_info)
6319 <overload_complaint>: Declare.
6320 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6321 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6322 Rename from dwarf2_section_buffer_overflow_complaint.
6323 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6324 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6325
3d27bbdb
TT
63262020-03-26 Tom Tromey <tom@tromey.com>
6327
6328 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6329 Declare.
6330 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6331 Move from read.c.
6332 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6333 to section.c.
6334
9eac9650
TT
63352020-03-26 Tom Tromey <tom@tromey.com>
6336
6337 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6338
bf80d710
TT
63392020-03-26 Tom Tromey <tom@tromey.com>
6340
6341 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6342 "builder".
6343 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6344 parameter.
6345 (dwarf_decode_macros): Update.
6346
0314b390
TT
63472020-03-26 Tom Tromey <tom@tromey.com>
6348
6349 * dwarf2/read.c (read_attribute_value): Update.
6350 (read_indirect_string_from_dwz): Move to dwz.c; change into
6351 method.
6352 (dwarf_decode_macro_bytes): Update.
6353 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6354 * dwarf2/dwz.c: New file.
6355 * Makefile.in (COMMON_SFILES): Add dwz.c.
6356
9fda78b6
TT
63572020-03-26 Tom Tromey <tom@tromey.com>
6358
6359 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6360 * dwarf2/read.c: Add include.
6361 * dwarf2/index-write.c: Add include.
6362 * dwarf2/index-cache.c: Add include.
6363 * dwarf2/dwz.h: New file.
6364
33aa3c10
TT
63652020-03-25 Tom Tromey <tom@tromey.com>
6366
6367 * compile/compile-object-load.c (get_out_value_type): Mention
6368 correct symbol name in error message.
6369
d503b685
HD
63702020-03-25 Hannes Domani <ssbssa@yahoo.de>
6371
6372 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6373
7b1eff95
TV
63742020-03-25 Tom de Vries <tdevries@suse.de>
6375
6376 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6377 * symmisc.c (dump_symtab_1): Print user and includes fields.
6378 (maintenance_info_symtabs): Same.
6379
dd895392
AB
63802020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6381
6382 PR gdb/25534
6383 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6384 (riscv_regcache_cooked_write): New function.
6385 (riscv_push_dummy_call): Use new function.
6386 (riscv_return_value): Likewise.
6387
5ab2fbf1
SM
63882020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6389
6390 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6391 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6392 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6393 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6394 * infrun.c (follow_fork): Likewise.
6395 (follow_fork_inferior): Likewise.
6396 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6397 * linux-nat.h (class linux_nat_target): Likewise.
6398 * remote.c (class remote_target) <follow_fork>: Likewise.
6399 (remote_target::follow_fork): Likewise.
6400 * target-delegates.c: Re-generate.
6401 * target.c (default_follow_fork): Likewise.
6402 (target_follow_fork): Likewise.
6403 * target.h (struct target_ops) <follow_fork>: Likewise.
6404 (target_follow_fork): Likewise.
6405
a64fafb5
TV
64062020-03-24 Tom de Vries <tdevries@suse.de>
6407
6408 * psymtab.c (maintenance_info_psymtabs): Print user field.
6409
fe26d3a3
TT
64102020-03-20 Tom Tromey <tromey@adacore.com>
6411
6412 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6413 const.
6414 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6415 const.
6416
c884cc46
SM
64172020-03-20 Simon Marchi <simon.marchi@efficios.com>
6418
6419 * ptrace.m4: Don't check for ptrace declaration.
6420 * config.in: Re-generate.
6421 * configure: Re-generate.
6422 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6423 not defined.
6424
1ff700c2
KR
64252020-03-20 Kamil Rytarowski <n54@gmx.com>
6426
6427 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6428 `PTRACE_TYPE_RET'.
6429 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6430 * sparc-nat.c (gdb_ptrace): Likewise.
6431 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6432
f7d4f0b1
TT
64332020-03-20 Tom Tromey <tromey@adacore.com>
6434
6435 * c-exp.y (lex_one_token): Fix assert.
6436
f67210ff
TT
64372020-03-20 Tom Tromey <tromey@adacore.com>
6438
6439 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6440 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6441 strncpy call.
6442
1773be9e
TT
64432020-03-20 Tom Tromey <tromey@adacore.com>
6444
6445 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6446
70304be9
TT
64472020-03-20 Tom Tromey <tromey@adacore.com>
6448
6449 * ada-valprint.c (print_variant_part): Remove parameters; switch
6450 to value-based API.
6451 (print_field_values): Likewise.
6452 (ada_val_print_struct_union): Likewise.
6453 (ada_value_print_1): Update.
6454
9faa006d
KR
64552020-03-20 Kamil Rytarowski <n54@gmx.com>
6456
6457 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6458 nbsd_nat_target instead of inf_ptrace_target.
6459 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6460 nbsd_nat_target.
6461
4a90f062
KR
64622020-03-20 Kamil Rytarowski <n54@gmx.com>
6463
6464 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6465 it to the ptrace call.
6466 * (store_registers): Likewise.
6467
64682020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6469
6470 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6471 it to the ptrace call.
6472 * (store_registers): Likewise.
6473
2d07da27
LM
64742020-03-19 Luis Machado <luis.machado@linaro.org>
6475
6476 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6477 valid, fetch vg value from ptrace.
6478
f09db380
KR
64792020-03-19 Kamil Rytarowski <n54@gmx.com>
6480 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6481 * inf-ptrace.c: Likewise.
6482 * (gdb_ptrace): Add.
6483 * (inf_ptrace_target::resume): Update.
6484 * (inf_ptrace_target::xfer_partial): Likewise.
6485 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6486 * (inf_ptrace_peek_poke): Update.
6487
fcc7376e
KR
64882020-03-19 Kamil Rytarowski <n54@gmx.com>
6489
6490 * x86-bsd-nat.c (gdb_ptrace): New.
6491 * (x86bsd_dr_set): Add new argument `ptid'.
6492 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6493 x86bsd_dr_set_addr): Update.
6494
cada5fc9
AB
64952020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6496
6497 * remote.c (remote_target::process_stop_reply): Handle events for
6498 all threads differently.
6499
19a2740f
AB
65002020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6501
6502 * completer.c (completion_tracker::remove_completion): Define new
6503 function.
6504 * completer.h (completion_tracker::remove_completion): Declare new
6505 function.
6506 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6507 when adding a C++ function symbol.
6508
724fd9ba
AB
65092020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 * completer.c (completion_tracker::completion_hash_entry): Define
6512 new class.
6513 (advance_to_filename_complete_word_point): Call
6514 recompute_lowest_common_denominator.
6515 (completion_tracker::completion_tracker): Call discard_completions
6516 to setup the hash table.
6517 (completion_tracker::discard_completions): Allow for being called
6518 from the constructor, pass new equal function, and element deleter
6519 when constructing the hash table. Initialise new class member
6520 variables.
6521 (completion_tracker::maybe_add_completion): Remove use of
6522 m_entries_vec, and store more information into m_entries_hash.
6523 (completion_tracker::recompute_lcd_visitor): New function, most
6524 content taken from...
6525 (completion_tracker::recompute_lowest_common_denominator):
6526 ...here, this now just visits each item in the hash calling the
6527 above visitor.
6528 (completion_tracker::build_completion_result): Remove use of
6529 m_entries_vec, call recompute_lowest_common_denominator.
6530 * completer.h (completion_tracker::have_completions): Remove use
6531 of m_entries_vec.
6532 (completion_tracker::completion_hash_entry): Declare new class.
6533 (completion_tracker::recompute_lowest_common_denominator): Change
6534 function signature.
6535 (completion_tracker::recompute_lcd_visitor): Declare new function.
6536 (completion_tracker::m_entries_vec): Delete.
6537 (completion_tracker::m_entries_hash): Initialize to NULL.
6538 (completion_tracker::m_lowest_common_denominator_valid): New
6539 member variable.
6540 (completion_tracker::m_lowest_common_denominator_max_length): New
6541 member variable.
6542
5a82b8a1
KR
65432020-03-17 Kamil Rytarowski <n54@gmx.com>
6544
6545 * regformats/regdef.h: Put reg in gdb namespace.
6546
fb516a69
KR
65472020-03-17 Kamil Rytarowski <n54@gmx.com>
6548
6549 * i386-bsd-nat.c (gdb_ptrace): New.
6550 * (i386bsd_fetch_inferior_registers,
6551 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6552 * (i386bsd_fetch_inferior_registers,
6553 i386bsd_store_inferior_registers) Use gdb_ptrace.
6554
1c0aa1fb
KR
65552020-03-17 Kamil Rytarowski <n54@gmx.com>
6556
6557 * amd64-bsd-nat.c (gdb_ptrace): New.
6558 * (amd64bsd_fetch_inferior_registers,
6559 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6560 * (amd64bsd_fetch_inferior_registers,
6561 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6562
5ccd2fb7
KR
65632020-03-17 Kamil Rytarowski <n54@gmx.com>
6564
6565 * user-regs.c (user_reg::read): Rename to...
6566 (user_reg::xread): ...this.
6567 * (append_user_reg): Rename argument `read' to `xread'.
6568 * (user_reg_add_builtin): Likewise.
6569 * (user_reg_add): Likewise.
6570 * (value_of_user_reg): Likewise.
6571
2108a63a
KR
65722020-03-17 Kamil Rytarowski <n54@gmx.com>
6573
6574 * sparc-nat.c (gdb_ptrace): New.
6575 * sparc-nat.c (sparc_fetch_inferior_registers)
6576 (sparc_store_inferior_registers) Remove obsolete comment.
6577 * sparc-nat.c (sparc_fetch_inferior_registers)
6578 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6579 * sparc-nat.c (sparc_fetch_inferior_registers)
6580 (sparc_store_inferior_registers) Use gdb_ptrace.
6581
a225c9a8
KR
65822020-03-17 Kamil Rytarowski <n54@gmx.com>
6583
6584 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6585 it to the ptrace call.
6586 * sh-nbsd-nat.c (store_registers): Likewise.
6587
98097623
KR
65882020-03-17 Kamil Rytarowski <n54@gmx.com>
6589
6590 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6591 nbsd_nat_target instead of inf_ptrace_target.
6592 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6593 nbsd_nat_target.
6594
9e38d619
KR
65952020-03-17 Kamil Rytarowski <n54@gmx.com>
6596
6597 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6598
a2ecbe9f
KR
65992020-03-17 Kamil Rytarowski <n54@gmx.com>
6600
6601 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6602 <sys/sysctl.h>.
6603 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6604
58990295
TV
66052020-03-17 Tom de Vries <tdevries@suse.de>
6606
6607 PR gdb/23710
6608 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6609 fields.
6610 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6611 fields.
6612 (process_imported_unit_die): Skip import of c++ CUs.
6613
771dd3a8
TT
66142020-03-16 Tom Tromey <tom@tromey.com>
6615
6616 * p-valprint.c (pascal_object_print_value): Initialize
6617 base_value.
6618
817a7585
AK
66192020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6620 Shahab Vahedi <shahab@synopsys.com>
6621
6622 * Makefile.in: Add arch/arc.o
6623 * configure.tgt: Likewise.
6624 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6625 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6626 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6627 * arc-tdep.h (arc_read_description): Add proto type.
6628 * arch/arc.c: New file.
6629 * arch/arc.h: Likewise.
6630 * features/Makefile: Replace old target descriptions with new.
6631 * features/arc-arcompact.c: Remove.
6632 * features/arc-arcompact.xml: Likewise.
6633 * features/arc-v2.c: Likewise
6634 * features/arc-v2.xml: Likewise
6635 * features/arc/aux-arcompact.xml: New file.
6636 * features/arc/aux-v2.xml: Likewise.
6637 * features/arc/core-arcompact.xml: Likewise.
6638 * features/arc/core-v2.xml: Likewise.
6639 * features/arc/aux-arcompact.c: Generate.
6640 * features/arc/aux-v2.c: Likewise.
6641 * features/arc/core-arcompact.c: Likewise.
6642 * features/arc/core-v2.c: Likewise.
6643 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6644
67430cd0
TT
66452020-03-16 Tom Tromey <tromey@adacore.com>
6646
6647 PR gdb/25663:
6648 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6649 putting value into bcache.
6650
30efb6c7
SM
66512020-03-16 Simon Marchi <simon.marchi@efficios.com>
6652
6653 PR gdb/21500
6654 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6655 to...
6656 (amd64_windows_init_abi_common): ... this. Don't set size of
6657 long type.
6658 (amd64_windows_init_abi): New function.
6659 (amd64_cygwin_init_abi): New function.
6660 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6661 the Cygwin OS ABI.
6662 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6663 comment.
6664
8db52437
SM
66652020-03-16 Simon Marchi <simon.marchi@efficios.com>
6666
6667 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6668 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6669 (pe_import_directory_entry): New struct type.
6670 (is_linked_with_cygwin_dll): New function.
6671 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6672 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6673 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6674
5982a56a
SM
66752020-03-16 Simon Marchi <simon.marchi@efficios.com>
6676
6677 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6678 i386_cygwin_core_osabi_sniffer.
6679
7a1998df
SM
66802020-03-16 Simon Marchi <simon.marchi@efficios.com>
6681
6682 * i386-cygwin-tdep.c: Rename to...
6683 * i386-windows-tdep.c: ... this.
6684 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6685 i386-windows-tdep.c.
6686 * configure.tgt: Likewise.
6687
053205cc
SM
66882020-03-16 Simon Marchi <simon.marchi@efficios.com>
6689
6690 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6691 * osabi.c (gdb_osabi_names): Add "Windows".
6692 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6693 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6694 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6695 i386_cygwin_osabi_sniffer.
6696 (_initialize_i386_cygwin_tdep): Register OS ABI
6697 GDB_OSABI_WINDOWS for i386.
6698 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6699 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6700 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6701 for x86-64.
6702 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6703 when the target matches '*-*-mingw*'.
6704
fe4b2ee6
SM
67052020-03-16 Simon Marchi <simon.marchi@efficios.com>
6706
6707 * defs.h (enum gdb_osabi): Move to...
6708 * osabi.h (enum gdb_osabi): ... here.
6709 * gdbarch.sh: Include osabi.h in gdbarch.h.
6710 * gdbarch.h: Re-generate.
6711
cb9b645d
SM
67122020-03-16 Simon Marchi <simon.marchi@efficios.com>
6713
6714 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6715 function.
6716 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6717
3293bbaf
TT
67182020-03-14 Tom Tromey <tom@tromey.com>
6719
6720 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6721 for C++.
6722 (c_type_print_modifier): Likewise. Add "language" parameter.
6723 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6724 (c_type_print_base_1): Update.
6725 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6726 constants.
6727 * type-stack.c (type_stack::insert): Handle tp_atomic and
6728 tp_restrict.
6729 (type_stack::follow_type_instance_flags): Likewise.
6730 (type_stack::follow_types): Likewise. Merge type-following code.
6731 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6732 (space_identifier, cv_with_space_id)
6733 (const_or_volatile_or_space_identifier_noopt)
6734 (const_or_volatile_or_space_identifier): Remove.
6735 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6736 rules.
6737 (ptr_operator, typebase): Update.
6738 (enum token_flag) <FLAG_C>: New constant.
6739 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6740 "_Atomic".
6741 (lex_one_token): Handle FLAG_C.
6742
154151a6
KR
67432020-03-14 Kamil Rytarowski <n54@gmx.com>
6744
6745 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6746 it to the ptrace call.
6747 * m68k-bsd-nat.c (store_registers): Likewise.
6748
bc107784
KR
67492020-03-14 Kamil Rytarowski <n54@gmx.com>
6750
6751 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6752 gdb_byte *.
6753 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6754 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6755 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6756
01a80117
KR
67572020-03-14 Kamil Rytarowski <n54@gmx.com>
6758
6759 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6760 nbsd_nat_target instead of inf_ptrace_target.
6761 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6762 nbsd_nat_target.
6763
f90280ca
KR
67642020-03-14 Kamil Rytarowski <n54@gmx.com>
6765
6766 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6767 register_t.
6768
6def66f1
KR
67692020-03-14 Kamil Rytarowski <n54@gmx.com>
6770
6771 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6772 it to the ptrace call.
6773 * alpha-bsd-nat.c (store_registers): Likewise.
6774
66eaca97
KR
67752020-03-14 Kamil Rytarowski <n54@gmx.com>
6776
6777 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6778 includes.
6779 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6780 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6781 fill_fpregset): Likewise.
6782
4fed520b
KR
67832020-03-14 Kamil Rytarowski <n54@gmx.com>
6784
6785 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6786 nbsd_nat_target instead of inf_ptrace_target.
6787 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6788 nbsd_nat_target.
6789
2190cf06
KR
67902020-03-14 Kamil Rytarowski <n54@gmx.com>
6791
6792 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6793 register_t.
6794
75c56d3d
KR
67952020-03-14 Kamil Rytarowski <n54@gmx.com>
6796
6797 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6798 it to the ptrace call.
6799 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6800 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6801 * arm-nbsd-nat.c (store_register): Likewise.
6802 * arm-nbsd-nat.c (store_regs): Likewise.
6803 * arm-nbsd-nat.c (store_fp_register): Likewise.
6804 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6805
6018d381
KR
68062020-03-14 Kamil Rytarowski <n54@gmx.com>
6807
6808 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6809 nbsd_nat_target instead of inf_ptrace_target.
6810 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6811 nbsd_nat_target.
6812
013f99f0
KR
68132020-03-14 Kamil Rytarowski <n54@gmx.com>
6814
6815 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6816 it to the ptrace call.
6817 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6818
12753073
KR
68192020-03-14 Kamil Rytarowski <n54@gmx.com>
6820
6227b330
KR
6821 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6822 it to the ptrace call.
6823 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6824
68252020-03-14 Kamil Rytarowski <n54@gmx.com>
6826
6827 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6828 gdb_byte *.
12753073
KR
6829 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6830
d5be5fa4
KR
68312020-03-14 Kamil Rytarowski <n54@gmx.com>
6832
6833 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6834 instead of inf_ptrace_target.
6835 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6836 nbsd_nat_target.
6837
8110f842
KR
68382020-03-14 Kamil Rytarowski <n54@gmx.com>
6839
6840 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6841 register_t.
6842
52feded7
KR
68432020-03-14 Kamil Rytarowski <n54@gmx.com>
6844
6845 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6846 register_t.
6847
25567eee
KR
68482020-03-14 Kamil Rytarowski <n54@gmx.com>
6849
6850 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6851 register_t.
6852
426a9c18
TT
68532020-03-13 Tom Tromey <tom@tromey.com>
6854
6855 * value.h (val_print): Don't declare.
6856 * valprint.h (val_print_array_elements)
6857 (val_print_scalar_formatted, generic_val_print): Don't declare.
6858 * valprint.c (generic_val_print_array): Take a struct value.
6859 (generic_val_print_ptr, generic_val_print_memberptr)
6860 (generic_val_print_bool, generic_val_print_int)
6861 (generic_val_print_char, generic_val_print_complex)
6862 (generic_val_print): Remove.
6863 (generic_value_print): Update.
6864 (do_val_print): Remove unused parameters. Don't call
6865 la_val_print.
6866 (val_print): Remove.
6867 (common_val_print): Update. Don't call value_check_printable.
6868 (val_print_scalar_formatted, val_print_array_elements): Remove.
6869 * rust-lang.c (rust_val_print): Remove.
6870 (rust_language_defn): Update.
6871 * p-valprint.c (pascal_val_print): Remove.
6872 (pascal_value_print_inner): Update.
6873 (pascal_object_print_val_fields, pascal_object_print_val):
6874 Remove.
6875 (pascal_object_print_static_field): Update.
6876 * p-lang.h (pascal_val_print): Don't declare.
6877 * p-lang.c (pascal_language_defn): Update.
6878 * opencl-lang.c (opencl_language_defn): Update.
6879 * objc-lang.c (objc_language_defn): Update.
6880 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6881 * m2-lang.h (m2_val_print): Don't declare.
6882 * m2-lang.c (m2_language_defn): Update.
6883 * language.h (struct language_defn) <la_val_print>: Remove.
6884 * language.c (unk_lang_value_print_inner): Rename. Change
6885 argument types.
6886 (unknown_language_defn, auto_language_defn): Update.
6887 * go-valprint.c (go_val_print): Remove.
6888 * go-lang.h (go_val_print): Don't declare.
6889 * go-lang.c (go_language_defn): Update.
6890 * f-valprint.c (f_val_print): Remove.
6891 * f-lang.h (f_value_print): Don't declare.
6892 * f-lang.c (f_language_defn): Update.
6893 * d-valprint.c (d_val_print): Remove.
6894 * d-lang.h (d_value_print): Don't declare.
6895 * d-lang.c (d_language_defn): Update.
6896 * cp-valprint.c (cp_print_value_fields)
6897 (cp_print_value_fields_rtti, cp_print_value): Remove.
6898 (cp_print_static_field): Update.
6899 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6900 (c_val_print_struct, c_val_print_union, c_val_print_int)
6901 (c_val_print_memberptr, c_val_print): Remove.
6902 * c-lang.h (c_val_print_array, cp_print_value_fields)
6903 (cp_print_value_fields_rtti): Don't declare.
6904 * c-lang.c (c_language_defn, cplus_language_defn)
6905 (asm_language_defn, minimal_language_defn): Update.
6906 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6907 (ada_val_print_enum): Take a struct value.
6908 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6909 (ada_val_print): Remove.
6910 (ada_value_print_1): Update.
6911 (printable_val_type): Remove.
6912 * ada-lang.h (ada_val_print): Don't declare.
6913 * ada-lang.c (ada_language_defn): Update.
6914
42331a1e
TT
69152020-03-13 Tom Tromey <tom@tromey.com>
6916
6917 * valprint.c (do_val_print): Update.
6918 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6919 a struct value.
6920 (value_to_value_object_no_release): Declare.
6921 * python/py-value.c (value_to_value_object_no_release): New
6922 function.
6923 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6924 struct value.
6925 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6926 function.
6927 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6928 a struct value.
6929 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6930 Declare.
6931 (gdbscm_apply_val_pretty_printer): Take a struct value.
6932 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6933 value.
6934 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6935 value.
6936 * extension-priv.h (struct extension_language_ops)
6937 <apply_val_pretty_printer>: Take a struct value.
6938 * cp-valprint.c (cp_print_value): Create a struct value.
6939 (cp_print_value): Update.
6940
3a916a97
TT
69412020-03-13 Tom Tromey <tom@tromey.com>
6942
6943 * ada-valprint.c (print_field_values): Call common_val_print.
6944
b59eac37
TT
69452020-03-13 Tom Tromey <tom@tromey.com>
6946
6947 * ada-valprint.c (val_print_packed_array_elements): Remove
6948 bitoffset and val parameters. Call common_val_print.
6949 (ada_val_print_string): Remove offset, address, and original_value
6950 parameters.
6951 (ada_val_print_array): Update.
6952 (ada_value_print_array): New function.
6953 (ada_value_print_1): Call it.
6954
03371129
TT
69552020-03-13 Tom Tromey <tom@tromey.com>
6956
6957 * ada-valprint.c (ada_value_print): Use common_val_print.
6958
2e088f8b
TT
69592020-03-13 Tom Tromey <tom@tromey.com>
6960
6961 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6962
39ef85a8
TT
69632020-03-13 Tom Tromey <tom@tromey.com>
6964
6965 * ada-valprint.c (ada_value_print_num): New function.
6966 (ada_value_print_1): Use it.
6967
b9fa6e07
TT
69682020-03-13 Tom Tromey <tom@tromey.com>
6969
6970 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6971
416595d6
TT
69722020-03-13 Tom Tromey <tom@tromey.com>
6973
6974 * ada-valprint.c (ada_value_print_ptr): New function.
6975 (ada_value_print_1): Use it.
6976
5b5e15ec
TT
69772020-03-13 Tom Tromey <tom@tromey.com>
6978
6979 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6980 call common_val_print.
6981 (ada_val_print_1): Update.
6982 (ada_value_print_1): New function.
6983 (ada_value_print_inner): Rewrite.
6984
fbf54e75
TT
69852020-03-13 Tom Tromey <tom@tromey.com>
6986
6987 * cp-valprint.c (cp_print_value_fields): Update.
6988 (cp_print_value): New function.
6989
64b653ca
TT
69902020-03-13 Tom Tromey <tom@tromey.com>
6991
6992 * m2-valprint.c (m2_value_print_inner): Use
6993 cp_print_value_fields.
6994 * cp-valprint.c (cp_print_value_fields): New function.
6995 * c-valprint.c (c_value_print_struct): New function.
6996 (c_value_print_inner): Use c_value_print_struct.
6997 * c-lang.h (cp_print_value_fields): Declare.
6998
6999f067
TT
69992020-03-13 Tom Tromey <tom@tromey.com>
7000
7001 * c-valprint.c (c_value_print_array): New function.
7002 (c_value_print_inner): Use it.
7003
ce80b8bd
TT
70042020-03-13 Tom Tromey <tom@tromey.com>
7005
7006 * c-valprint.c (c_value_print_memberptr): New function.
7007 (c_value_print_inner): Use it.
7008
2faac269
TT
70092020-03-13 Tom Tromey <tom@tromey.com>
7010
7011 * c-valprint.c (c_value_print_int): New function.
7012 (c_value_print_inner): Use it.
7013
da3e2c29
TT
70142020-03-13 Tom Tromey <tom@tromey.com>
7015
7016 * c-valprint.c (c_value_print_ptr): New function.
7017 (c_value_print_inner): Use it.
7018
50836231
TT
70192020-03-13 Tom Tromey <tom@tromey.com>
7020
7021 * c-valprint.c (c_value_print_inner): Rewrite.
7022
4f412b6e
TT
70232020-03-13 Tom Tromey <tom@tromey.com>
7024
7025 * valprint.c (generic_value_print_complex): New function.
7026 (generic_value_print): Use it.
7027
f5354008
TT
70282020-03-13 Tom Tromey <tom@tromey.com>
7029
7030 * valprint.c (generic_val_print_float): Don't call
7031 val_print_scalar_formatted.
7032 (generic_val_print, generic_value_print): Update.
7033
3eec3b05
TT
70342020-03-13 Tom Tromey <tom@tromey.com>
7035
7036 * valprint.c (generic_value_print_char): New function
7037 (generic_value_print): Use it.
7038
fdddfccb
TT
70392020-03-13 Tom Tromey <tom@tromey.com>
7040
7041 * valprint.c (generic_value_print_int): New function.
7042 (generic_value_print): Use it.
7043
6dde7521
TT
70442020-03-13 Tom Tromey <tom@tromey.com>
7045
7046 * valprint.c (generic_value_print_bool): New function.
7047 (generic_value_print): Use it.
7048
4112d2e6
TT
70492020-03-13 Tom Tromey <tom@tromey.com>
7050
7051 * valprint.c (generic_val_print_func): Simplify.
7052 (generic_val_print, generic_value_print): Update.
7053
65786af6
TT
70542020-03-13 Tom Tromey <tom@tromey.com>
7055
7056 * valprint.c (generic_val_print_flags): Remove.
7057 (generic_val_print, generic_value_print): Update.
7058 (val_print_type_code_flags): Add original_value parameter.
7059
40f3ce18
TT
70602020-03-13 Tom Tromey <tom@tromey.com>
7061
7062 * valprint.c (generic_val_print): Update.
7063 (generic_value_print): Update.
7064 * valprint.c (generic_val_print_enum): Don't call
7065 val_print_scalar_formatted.
7066
2a5b130b
TT
70672020-03-13 Tom Tromey <tom@tromey.com>
7068
7069 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7070 * valprint.c (generic_value_print_ptr): New function.
7071
abc66ce9
TT
70722020-03-13 Tom Tromey <tom@tromey.com>
7073
7074 * valprint.c (generic_value_print): Rewrite.
7075
07a32858
TT
70762020-03-13 Tom Tromey <tom@tromey.com>
7077
7078 * p-valprint.c (pascal_object_print_value_fields)
7079 (pascal_object_print_value): New functions.
7080
64d64d3a
TT
70812020-03-13 Tom Tromey <tom@tromey.com>
7082
7083 * p-valprint.c (pascal_value_print_inner): Rewrite.
7084
6a95a1f5
TT
70852020-03-13 Tom Tromey <tom@tromey.com>
7086
7087 * f-valprint.c (f_value_print_innner): Rewrite.
7088
59fcdac6
TT
70892020-03-13 Tom Tromey <tom@tromey.com>
7090
7091 * m2-valprint.c (m2_print_unbounded_array): New overload.
7092 (m2_print_unbounded_array): Update.
7093 (m2_print_array_contents): Take a struct value.
7094 (m2_value_print_inner): Rewrite.
7095
d133c3e1
TT
70962020-03-13 Tom Tromey <tom@tromey.com>
7097
7098 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7099 (d_value_print_inner): New function.
7100 * d-lang.h (d_value_print_inner): Declare.
7101 * d-lang.c (d_language_defn): Use d_value_print_inner.
7102
23b0f06b
TT
71032020-03-13 Tom Tromey <tom@tromey.com>
7104
7105 * go-valprint.c (go_value_print_inner): New function.
7106 * go-lang.h (go_value_print_inner): Declare.
7107 * go-lang.c (go_language_defn): Use go_value_print_inner.
7108
5f56f7cb
TT
71092020-03-13 Tom Tromey <tom@tromey.com>
7110
7111 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7112 API.
7113 (rust_val_print): Rewrite.
7114 (rust_value_print_inner): New function, from rust_val_print.
7115 (rust_language_defn): Use rust_value_print_inner.
7116
26792ee0
TT
71172020-03-13 Tom Tromey <tom@tromey.com>
7118
7119 * ada-valprint.c (ada_value_print_inner): New function.
7120 * ada-lang.h (ada_value_print_inner): Declare.
7121 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7122
24051bbe
TT
71232020-03-13 Tom Tromey <tom@tromey.com>
7124
7125 * f-valprint.c (f_value_print_innner): New function.
7126 * f-lang.h (f_value_print_innner): Declare.
7127 * f-lang.c (f_language_defn): Use f_value_print_innner.
7128
c0941be6
TT
71292020-03-13 Tom Tromey <tom@tromey.com>
7130
7131 * p-valprint.c (pascal_value_print_inner): New function.
7132 * p-lang.h (pascal_value_print_inner): Declare.
7133 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7134
62c4663d
TT
71352020-03-13 Tom Tromey <tom@tromey.com>
7136
7137 * m2-valprint.c (m2_value_print_inner): New function.
7138 * m2-lang.h (m2_value_print_inner): Declare.
7139 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7140
62182190
TT
71412020-03-13 Tom Tromey <tom@tromey.com>
7142
7143 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7144 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7145 * c-valprint.c (c_value_print_inner): New function.
7146 * c-lang.h (c_value_print_inner): Declare.
7147 * c-lang.c (c_language_defn, cplus_language_defn)
7148 (asm_language_defn, minimal_language_defn): Use
7149 c_value_print_inner.
7150
1e592a8a
TT
71512020-03-13 Tom Tromey <tom@tromey.com>
7152
7153 * p-valprint.c (pascal_object_print_value_fields): Now static.
7154 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7155
7fe471e9
TT
71562020-03-13 Tom Tromey <tom@tromey.com>
7157
7158 * c-valprint.c (c_val_print_array): Simplify.
7159
d121c6ce
TT
71602020-03-13 Tom Tromey <tom@tromey.com>
7161
7162 * valprint.c (value_print_array_elements): New function.
7163 * valprint.h (value_print_array_elements): Declare.
7164
4dba70ee
TT
71652020-03-13 Tom Tromey <tom@tromey.com>
7166
7167 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7168 * mips-tdep.c (mips_print_register): Use
7169 value_print_scalar_formatted.
7170
4f9ae810
TT
71712020-03-13 Tom Tromey <tom@tromey.com>
7172
7173 * valprint.h (value_print_scalar_formatted): Declare.
7174 * valprint.c (value_print_scalar_formatted): New function.
7175
156bfec9
TT
71762020-03-13 Tom Tromey <tom@tromey.com>
7177
7178 * valprint.h (generic_value_print): Declare.
7179 * valprint.c (generic_value_print): New function.
7180
2b4e573d
TT
71812020-03-13 Tom Tromey <tom@tromey.com>
7182
7183 * valprint.c (do_val_print): Call la_value_print_inner, if
7184 available.
7185 * rust-lang.c (rust_language_defn): Update.
7186 * p-lang.c (pascal_language_defn): Update.
7187 * opencl-lang.c (opencl_language_defn): Update.
7188 * objc-lang.c (objc_language_defn): Update.
7189 * m2-lang.c (m2_language_defn): Update.
7190 * language.h (struct language_defn) <la_value_print_inner>: New
7191 member.
7192 * language.c (unknown_language_defn, auto_language_defn): Update.
7193 * go-lang.c (go_language_defn): Update.
7194 * f-lang.c (f_language_defn): Update.
7195 * d-lang.c (d_language_defn): Update.
7196 * c-lang.c (c_language_defn, cplus_language_defn)
7197 (asm_language_defn, minimal_language_defn): Update.
7198 * ada-lang.c (ada_language_defn): Update.
7199
a1f6a07c
TT
72002020-03-13 Tom Tromey <tom@tromey.com>
7201
7202 * c-valprint.c (c_value_print): Use common_val_print.
7203
410cf315
TT
72042020-03-13 Tom Tromey <tom@tromey.com>
7205
7206 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7207
72a45c93
TT
72082020-03-13 Tom Tromey <tom@tromey.com>
7209
7210 * f-valprint.c (f77_print_array_1, f_val_print): Use
7211 common_val_print.
7212
040f66bd
TT
72132020-03-13 Tom Tromey <tom@tromey.com>
7214
7215 * riscv-tdep.c (riscv_print_one_register_info): Use
7216 common_val_print.
7217
a6e05a6c
TT
72182020-03-13 Tom Tromey <tom@tromey.com>
7219
7220 * mi/mi-main.c (output_register): Use common_val_print.
7221
3444c526
TT
72222020-03-13 Tom Tromey <tom@tromey.com>
7223
7224 * infcmd.c (default_print_one_register_info): Use
7225 common_val_print.
7226
c2a44efe
TT
72272020-03-13 Tom Tromey <tom@tromey.com>
7228
7229 * valprint.h (common_val_print_checked): Declare.
7230 * valprint.c (common_val_print_checked): New function.
7231 * stack.c (print_frame_arg): Use common_val_print_checked.
7232
b0c26e99
TT
72332020-03-13 Tom Tromey <tom@tromey.com>
7234
7235 * valprint.c (do_val_print): New function, from val_print.
7236 (val_print): Use do_val_print.
7237 (common_val_print): Use do_val_print.
7238
ce3acbe9
TT
72392020-03-13 Tom Tromey <tom@tromey.com>
7240
7241 * valprint.c (value_print): Use scoped_value_mark.
7242
96c7f873
TV
72432020-03-13 Tom de Vries <tdevries@suse.de>
7244
7245 PR symtab/25646
7246 * psymtab.c (partial_symtab::partial_symtab): Don't set
7247 globals_offset and statics_offset. Push element onto
7248 current_global_psymbols and current_static_psymbols stacks.
7249 (concat): New function.
7250 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7251 element from current_global_psymbols and current_static_psymbols
7252 stacks. Concat popped elements to global_psymbols and
7253 static_symbols.
7254 (add_psymbol_to_list): Use current_global_psymbols and
7255 current_static_psymbols stacks.
7256 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7257 current_static_psymbols fields.
7258
6ba0a321
CB
72592020-03-12 Christian Biesinger <cbiesinger@google.com>
7260
7261 * corelow.c (sniff_core_bfd): Remove.
7262 (class core_target) <m_core_vec>: Remove.
7263 (core_target::core_target): Update.
7264 (core_file_fns): Remove.
7265 (deprecated_add_core_fns): Remove.
7266 (default_core_sniffer): Remove.
7267 (sniff_core_bfd): Remove.
7268 (default_check_format): Remove.
7269 (gdb_check_format): Remove.
7270 (core_target_open): Update.
7271 (core_target::get_core_register_section): Update.
7272 (get_core_registers_cb): Update.
7273 (core_target::fetch_registers): Update.
7274 * gdbcore.h (struct core_fns): Remove.
7275 (deprecated_add_core_fns): Remove.
7276 (default_core_sniffer): Remove.
7277 (default_check_format): Remove.
7278
227031b2
TT
72792020-03-12 Tom Tromey <tom@tromey.com>
7280
7281 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7282 CORE_ADDR.
7283 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7284
53807e9f
TT
72852020-03-12 Tom Tromey <tom@tromey.com>
7286
7287 * remote.c (remote_target::download_tracepoint)
7288 (remote_target::enable_tracepoint)
7289 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7290 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7291 sprintf_vma.
7292
64f25102
TT
72932020-03-12 Tom Tromey <tom@tromey.com>
7294
7295 * symfile-mem.c: Update CORE_ADDR size assert.
7296
272cd5a3
SM
72972020-03-12 Simon Marchi <simon.marchi@efficios.com>
7298
7299 * selftest.m4: Move to gdbsupport/.
7300 * acinclude.m4: Update path to selftest.m4.
7301
74cd3f9d
SM
73022020-03-12 Simon Marchi <simon.marchi@efficios.com>
7303
7304 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7305 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7306 gdbarch-selfselftests.c and selftest-arch.c.
7307 (SUBDIR_UNITTESTS_OBS): Rename to...
7308 (SELFTESTS_OBS): ... this.
7309 (COMMON_SFILES): Remove disasm-selftests.c and
7310 gdbarch-selftests.c.
7311 * configure.ac: Don't add selftest-arch.{c,o} to
7312 CONFIG_{SRCS,OBS}.
7313 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7314 preprocessor conditions.
7315
db6878ac
SM
73162020-03-12 Simon Marchi <simon.marchi@efficios.com>
7317
7318 * configure.ac: Don't source bfd/development.sh.
7319 * selftest.m4: Modify comment.
7320 * configure: Re-generate.
7321
4d696a5c
SM
73222020-03-12 Simon Marchi <simon.marchi@efficios.com>
7323
7324 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7325 not "true" or "false".
7326 * configure: Re-generate.
7327
8dd8e1c7
CB
73282020-03-12 Christian Biesinger <cbiesinger@google.com>
7329
7330 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7331 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7332 renamed to arm_nbsd_supply_gregset.
7333 (fetch_register): Update to call arm_nbsd_supply_gregset.
7334 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7335 (arm_netbsd_nat_target::fetch_registers): Update.
7336 (fetch_elfcore_registers): Removed.
7337 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7338 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7339 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7340 not require NetBSD system headers.
7341 (arm_nbsd_regset): New struct.
7342 (arm_nbsd_iterate_over_regset_sections): New function.
7343 (arm_netbsd_init_abi_common): Updated to call
7344 set_gdbarch_iterate_over_regset_sections.
7345 * arm-nbsd-tdep.h: New file.
7346
dd69bf7a
KB
73472020-03-11 Kevin Buettner <kevinb@redhat.com>
7348
7349 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7350 recursion.
7351
a0761e34
SM
73522020-03-11 Simon Marchi <simon.marchi@efficios.com>
7353
7354 * configure: Re-generate.
7355
e7a82140
TT
73562020-03-11 Tom Tromey <tromey@adacore.com>
7357
7358 * ada-typeprint.c (print_choices): Fix comment.
7359
dcc050c8
AB
73602020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7363 previous item in the list, when the list has no items.
7364
1c33af77
TV
73652020-03-11 Tom de Vries <tdevries@suse.de>
7366
7367 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7368 PROP_LOCLIST handling code.
7369
8c95582d
AB
73702020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7371
7372 * buildsym-legacy.c (record_line): Pass extra parameter to
7373 record_line.
7374 * buildsym.c (buildsym_compunit::record_line): Take an extra
7375 parameter, reduce duplication in the line table, and record the
7376 is_stmt flag in the line table.
7377 * buildsym.h (buildsym_compunit::record_line): Add extra
7378 parameter.
7379 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7380 non-statement lines.
7381 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7382 this to the symtab builder.
7383 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7384 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7385 through to dwarf_record_line_1.
7386 * infrun.c (process_event_stop_test): When stepping, don't stop at
7387 a non-statement instruction, and only refresh the step info when
7388 we land in the middle of a line's range. Also add an extra
7389 comment.
7390 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7391 field.
7392 * record-btrace.c (btrace_find_line_range): Only record lines
7393 marked as is-statement.
7394 * stack.c (frame_show_address): Show the frame address if we are
7395 in a non-statement sal.
7396 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7397 (maintenance_print_one_line_table): Print a header for the is_stmt
7398 column, and include is_stmt information in the output.
7399 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7400 preference to non-statements.
7401 (find_pcs_for_symtab_line): Prefer is-statement entries.
7402 (find_line_common): Likewise.
7403 * symtab.h (struct linetable_entry): Add is_stmt field.
7404 (struct symtab_and_line): Likewise.
7405 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7406 arranging the line table.
7407
e4003a34
TV
74082020-03-07 Tom de Vries <tdevries@suse.de>
7409
7410 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7411 DIE.
7412
e8932576
TT
74132020-03-07 Tom Tromey <tom@tromey.com>
7414
7415 * valops.c (value_literal_complex): Remove obsolete comment.
7416 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7417 comment.
7418
29734269
SM
74192020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7420
7421 * infrun.h: Forward-declare thread_info.
7422 (set_step_info): Add thread_info parameter, add doc.
7423 * infrun.c (set_step_info): Add thread_info parameter, move doc
7424 to header.
7425 * infrun.c (process_event_stop_test): Pass thread to
7426 set_step_info call.
7427 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7428 set_step_info.
7429 (prepare_one_step): Add thread_info parameter, pass it to
7430 set_step_frame and prepare_one_step (recursive) call.
7431 (step_1): Pass thread to prepare_one_step call.
7432 (step_command_fsm::should_stop): Pass thread to
7433 prepare_one_step.
7434 (until_next_fsm): Pass thread to set_step_frame call.
7435 (finish_command): Pass thread to set_step_info call.
7436
b7d64b29
HD
74372020-03-06 Hannes Domani <ssbssa@yahoo.de>
7438
7439 * windows-tdep.c (windows_solib_create_inferior_hook):
7440 Check if inferior is running.
7441
09f2921c
TV
74422020-03-06 Tom de Vries <tdevries@suse.de>
7443
7444 * NEWS: Fix "the the".
7445 * ctfread.c: Same.
7446
fd760e79
TV
74472020-03-06 Tom de Vries <tdevries@suse.de>
7448
7449 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7450
20ea4a60
AB
74512020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7452
7453 * .dir-locals.el: Add a comment referencing the other copies of
7454 this file.
7455
0afbabf0
JB
74562020-03-05 John Baldwin <jhb@FreeBSD.org>
7457
7458 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7459 psargs.
7460
842806cb
TBA
74612020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7462
7463 * .gitattributes: New file.
7464
be1e3d3e
TT
74652020-03-04 Tom Tromey <tom@tromey.com>
7466
7467 * symmisc.c (print_symbol_bcache_statistics)
7468 (print_objfile_statistics): Update.
7469 * symfile.c (allocate_symtab): Use intern.
7470 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7471 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7472 macro_cache>: Remove.
7473 <string_cache>: New member.
7474 (struct objfile) <intern>: New methods.
7475 * elfread.c (elf_symtab_read): Use intern.
7476 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7477 (dwarf2_compute_name, dwarf2_physname)
7478 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7479 names.
7480 (guess_partial_die_structure_name): Update.
7481 (partial_die_info::fixup): Intern name.
7482 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7483 name.
7484 (dwarf2_name): Intern name. Update.
7485 * buildsym.c (buildsym_compunit::get_macro_table): Use
7486 string_cache.
7487
4e7625fd
TT
74882020-03-04 Tom Tromey <tom@tromey.com>
7489
7490 * jit.c (bfd_open_from_target_memory): Make "target" const.
7491 * corefile.c (gnutarget): Now const.
7492 * gdbcore.h (gnutarget): Now const.
7493
46f9f931
HD
74942020-03-04 Hannes Domani <ssbssa@yahoo.de>
7495
7496 * NEWS: Mention support for WOW64 processes.
7497 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7498 (amd64_windows_segment_register_p): Remove static.
7499 (_initialize_amd64_windows_nat): Update.
7500 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7501 * i386-windows-nat.c (context_offset): Update.
7502 (i386_mappings): Rename and remove static.
7503 (i386_windows_segment_register_p): Remove static.
7504 (_initialize_i386_windows_nat): Update.
7505 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7506 (STATUS_WX86_SINGLE_STEP): New macro.
7507 (EnumProcessModulesEx): New macro.
7508 (Wow64SuspendThread): New macro.
7509 (Wow64GetThreadContext): New macro.
7510 (Wow64SetThreadContext): New macro.
7511 (Wow64GetThreadSelectorEntry): New macro.
7512 (windows_set_context_register_offsets): Add static.
7513 (windows_set_segment_register_p): Likewise.
7514 (windows_add_thread): Adapt for WOW64 processes.
7515 (windows_fetch_one_register): Likewise.
7516 (windows_nat_target::fetch_registers): Likewise.
7517 (windows_store_one_register): Likewise.
7518 (display_selector): Likewise.
7519 (display_selectors): Likewise.
7520 (handle_exception): Likewise.
7521 (windows_continue): Likewise.
7522 (windows_nat_target::resume): Likewise.
7523 (windows_add_all_dlls): Likewise.
7524 (do_initial_windows_stuff): Likewise.
7525 (windows_nat_target::attach): Likewise.
7526 (windows_get_exec_module_filename): Likewise.
7527 (windows_nat_target::create_inferior): Likewise.
7528 (windows_xfer_siginfo): Likewise.
7529 (_initialize_loadable): Initialize Wow64SuspendThread,
7530 Wow64GetThreadContext, Wow64SetThreadContext,
7531 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7532 * windows-nat.h (windows_set_context_register_offsets):
7533 Remove declaration.
7534 (windows_set_segment_register_p): Likewise.
7535 (i386_windows_segment_register_p): Add declaration.
7536 (amd64_windows_segment_register_p): Likewise.
7537
440cf44e
LM
75382020-03-04 Luis Machado <luis.machado@linaro.org>
7539
7540 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7541 in "info registers" for AArch64/ARM.
7542
7543 The change caused "info registers" to not print GPR's.
7544
7545 gdb/ChangeLog:
7546
7547 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7548
7549 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7550 when reg->group is empty and reggroup is not.
7551
1009d92f
TT
75522020-03-03 Tom Tromey <tromey@adacore.com>
7553
7554 * dwarf2/frame.c (struct dwarf2_frame_cache)
7555 <checked_tailcall_bottom, entry_cfa_sp_offset,
7556 entry_cfa_sp_offset_p>: Remove members.
7557 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7558 (dwarf2_frame_prev_register): Don't call
7559 dwarf2_tailcall_sniffer_first.
7560 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7561 * frame-unwind.c (add_unwinder): New fuction.
7562 (frame_unwind_init): Use it. Add tailcall unwinder.
7563
5e5d66b6
AB
75642020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7565 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7566
7567 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7568 value should be printed as true.
7569
584cf46d
HD
75702020-03-03 Hannes Domani <ssbssa@yahoo.de>
7571
7572 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7573 (windows_init_abi): Set and use windows_so_ops.
7574
7b973adc
SDJ
75752020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7576
7577 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7578 when verifying if dealing with a convenience variable.
7579
bb7b70ab
LM
75802020-03-03 Luis Machado <luis.machado@linaro.org>
7581
7582 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7583
9822cb57
SM
75842020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7585
7586 * infrun.c (gdbarch_supports_displaced_stepping): New.
7587 (use_displaced_stepping): Break up conditions in smaller pieces.
7588 Use gdbarch_supports_displaced_stepping.
7589 (displaced_step_prepare_throw): Use
7590 gdbarch_supports_displaced_stepping.
7591
63e163f2
AB
75922020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7593
7594 * NEWS: Mention new behaviour of the history filename.
7595 * top.c (write_history_p): Add comment.
7596 (show_write_history_p): Add header comment, give a different
7597 message when history writing is on, but the history filename is
7598 empty.
7599 (history_filename): Add comment.
7600 (history_filename_empty): New function.
7601 (show_history_filename): Add header comment, give a different
7602 message when the filename is empty.
7603 (init_history): Compare history_filename against nullptr, and only
7604 read history if the filename is not empty.
7605 (set_history_filename): Add header comment, and only make
7606 non-empty filenames absolute.
7607 (init_main): Make the filename argument to 'set history filename'
7608 optional.
7609
81b86b97
CB
76102020-03-02 Christian Biesinger <cbiesinger@google.com>
7611
7612 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7613 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7614 (fetch_fp_register): Update.
7615 (fetch_fp_regs): Update.
7616 (store_fp_register): Update.
7617 (store_fp_regs): Update.
7618 (arm_netbsd_nat_target::read_description): New function.
7619 (fetch_elfcore_registers): Update.
7620
24ed6739
AB
76212020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7622
7623 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7624 general_thread if the stop reply is missing a thread-id.
7625 (remote_target::process_stop_reply): Use the first non-exited
7626 thread if the target didn't pass a thread-id.
7627 * infrun.c (do_target_wait): Move call to
7628 switch_to_inferior_no_thread to ....
7629 (do_target_wait_1): ... here.
7630
a84bb2a0
JT
76312020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7632
7633 * debuginfod-support.c: Include defs.h first.
7634
658dadf0
TV
76352020-02-28 Tom de Vries <tdevries@suse.de>
7636
7637 * symfile.c (set_initial_language): Use default language for lookup.
7638
4ebe4877
SM
76392020-02-28 Simon Marchi <simon.marchi@efficios.com>
7640
7641 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7642 reader variable, pass `this` to read_cutu_die_from_dwo.
7643
e5da1139
AM
76442020-02-27 Aaron Merey <amerey@redhat.com>
7645
7646 * source.c (open_source_file): Check for nullptr when computing
7647 srcpath.
7648
317f7127
TT
76492020-02-27 Tom Tromey <tromey@adacore.com>
7650
7651 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7652 member.
7653 (dwarf2_add_field): Don't update nfields.
7654 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7655
3104d9ee
AB
76562020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7657
7658 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7659 abs.
7660
b83470bf
TT
76612020-02-26 Tom Tromey <tom@tromey.com>
7662
7663 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7664 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7665 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7666 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7667 per_cu_data.
7668
edfe0a0c
TT
76692020-02-26 Tom Tromey <tom@tromey.com>
7670
7671 * dwarf2/index-write.c (psym_index_map): Change type.
7672 (add_address_entry_worker, write_one_signatured_type)
7673 (recursively_count_psymbols, recursively_write_psymbols)
7674 (class debug_names, psyms_seen_size, write_gdbindex)
7675 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7676
0d79cdc4
AM
76772020-02-26 Aaron Merey <amerey@redhat.com>
7678
7679 * Makefile.in: Handle optional debuginfod support.
7680 * NEWS: Update.
7681 * README: Add --with-debuginfod summary.
7682 * config.in: Regenerate.
7683 * configure: Regenerate.
7684 * configure.ac: Handle optional debuginfod support.
7685 * debuginfod-support.c: debuginfod helper functions.
7686 * debuginfod-support.h: Ditto.
7687 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7688 summary.
7689 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7690 when a dwz file cannot be found.
7691 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7692 debuginfo file cannot be found.
7693 * source.c (open_source_file): Query debuginfod servers when a
7694 source file cannot be found.
7695 * top.c (print_gdb_configuration): Include
7696 --{with,without}-debuginfod in the output.
7697
b65ce565
JG
76982020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7699
7700 * thread.c (thr_try_catch_cmd): Print thread name.
7701
d4c9a4f8
SM
77022020-02-26 Simon Marchi <simon.marchi@efficios.com>
7703
7704 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7705 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7706 dwarf2_fetch_die_type_sect_off): Move to...
7707 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7708 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7709 dwarf2_fetch_die_type_sect_off): ... here.
7710 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7711 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7712 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7713
0dce4280
TV
77142020-02-26 Tom de Vries <tdevries@suse.de>
7715
7716 PR gdb/25603
7717 * symfile.c (set_initial_language): Exit-early if
7718 language_mode == language_mode_manual.
7719
450a1bfc
SM
77202020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7721
7722 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7723 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7724 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7725
9e80cfa1
AB
77262020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7727
7728 * gdbtypes.c (create_array_type_with_stride): Handle negative
7729 array strides.
7730 * valarith.c (value_subscripted_rvalue): Likewise.
7731
09624f1f
LM
77322020-02-25 Luis Machado <luis.machado@linaro.org>
7733
7734 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7735
8cb5117c
SM
77362020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7737
7738 * loc.h (dwarf2_get_die_type): Move to...
7739 * read.h (dwarf2_get_die_type): ... here.
7740 * read.c (dwarf2_get_die_type): Move doc to header.
7741
c325c44e
JB
77422020-02-25 Joel Brobecker <brobecker@adacore.com>
7743
7744 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7745 'gnulib/Makefile.in' to the list.
7746
4ac93832
TT
77472020-02-24 Tom Tromey <tom@tromey.com>
7748
7749 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7750 Remove.
7751 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7752 XOBNEWVEC.
7753
197400e8
TT
77542020-02-24 Tom Tromey <tom@tromey.com>
7755
7756 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7757 New method.
7758 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7759 (dw2_do_instantiate_symtab, dw2_get_file_names)
7760 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7761
76935768
TT
77622020-02-24 Tom Tromey <tom@tromey.com>
7763
7764 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7765 make_scoped_restore.
7766 (dwarf2_psymtab::read_symtab): Don't clear
7767 reading_partial_symbols.
7768
a88ef40d
TV
77692020-02-24 Tom de Vries <tdevries@suse.de>
7770
7771 PR gdb/25592
7772 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7773
c9af6521
TV
77742020-02-24 Tom de Vries <tdevries@suse.de>
7775
7776 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7777 commands layout next/prev/regs.
7778
5707a07a
TT
77792020-02-22 Tom Tromey <tom@tromey.com>
7780
7781 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7782 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7783
3b0fb49e
TT
77842020-02-22 Tom Tromey <tom@tromey.com>
7785
7786 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7787
283be8bf
TT
77882020-02-22 Tom Tromey <tom@tromey.com>
7789
7790 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7791 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7792 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7793 * tui/tui.c (_initialize_tui): Add usage text.
7794
ca793b96
TT
77952020-02-22 Tom Tromey <tom@tromey.com>
7796
7797 * tui/tui-win.c (tui_set_focus_command)
7798 (tui_set_win_height_command): Use error_no_arg.
7799 (_initialize_tui_win): Update help text.
7800 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7801
432b5c40
TT
78022020-02-22 Tom Tromey <tom@tromey.com>
7803
7804 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7805 * tui/tui-disasm.h (struct tui_disasm_window)
7806 <display_start_addr>: Declare.
7807 * tui/tui-source.h (struct tui_source_window)
7808 <display_start_addr>: Declare.
7809 * tui/tui-winsource.h (struct tui_source_window_base)
7810 <show_source_line, display_start_addr>: New methods.
7811 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7812 Rename and move to protected section.
7813 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7814 (tui_source_window_base::do_erase_source_content): Update.
7815 (tui_source_window_base::show_source_line): Now a method.
7816 (tui_source_window_base::show_source_content)
7817 (tui_source_window_base::tui_source_window_base)
7818 (tui_source_window_base::rerender)
7819 (tui_source_window_base::refill)
7820 (tui_source_window_base::do_scroll_horizontal)
7821 (tui_source_window_base::set_is_exec_point_at)
7822 (tui_source_window_base::update_breakpoint_info)
7823 (tui_source_window_base::update_exec_info): Update.
7824 * tui/tui-source.c (tui_source_window::set_contents)
7825 (tui_source_window::showing_source_p)
7826 (tui_source_window::do_scroll_vertical)
7827 (tui_source_window::location_matches_p)
7828 (tui_source_window::line_is_displayed): Update.
7829 (tui_source_window::display_start_addr): New method.
7830 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7831 (tui_disasm_window::do_scroll_vertical)
7832 (tui_disasm_window::location_matches_p): Update.
7833 (tui_disasm_window::display_start_addr): New method.
7834
01b1af32
TT
78352020-02-22 Tom Tromey <tom@tromey.com>
7836
7837 * NEWS: Add entry for gdb.register_window_type.
7838 * tui/tui-layout.h (window_factory): New typedef.
7839 (tui_register_window): Declare.
7840 * tui/tui-layout.c (saved_tui_windows): New global.
7841 (tui_apply_current_layout): Use it.
7842 (tui_register_window): New function.
7843 * python/python.c (do_start_initialization): Call
7844 gdbpy_initialize_tui.
7845 (python_GdbMethods): Add "register_window_type" function.
7846 * python/python-internal.h (gdbpy_register_tui_window)
7847 (gdbpy_initialize_tui): Declare.
7848 * python/py-tui.c: New file.
7849 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7850
fc96d20b
TT
78512020-02-22 Tom Tromey <tom@tromey.com>
7852
7853 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7854
935c78c0
TT
78552020-02-22 Tom Tromey <tom@tromey.com>
7856
7857 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7858 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7859 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7860 (tui_set_win_focus_to): Move from tui-win.c.
7861
0240c8f1
TT
78622020-02-22 Tom Tromey <tom@tromey.com>
7863
7864 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7865 functions.
7866 (known_window_types): New global.
7867 (tui_get_window_by_name): Reimplement.
7868 (initialize_known_windows): New function.
7869 (validate_window_name): Rewrite.
7870 (_initialize_tui_layout): Call initialize_known_windows.
7871
fdb01f0c
TT
78722020-02-22 Tom Tromey <tom@tromey.com>
7873
7874 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7875 Remove constants.
7876 * tui/tui-winsource.h (struct tui_source_window_base)
7877 <tui_source_window_base>: Remove parameter.
7878 * tui/tui-winsource.c
7879 (tui_source_window_base::tui_source_window_base): Remove
7880 parameter.
7881 (tui_source_window_base::refill): Update.
7882 * tui/tui-stack.h (struct tui_locator_window)
7883 <tui_locator_window>: Update.
7884 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7885 Default the constructor.
7886 * tui/tui-regs.h (struct tui_data_item_window)
7887 <tui_data_item_window>: Default the constructor.
7888 (struct tui_data_window) <tui_data_window>: Likewise.
7889 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7890 Default the constructor.
7891 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7892 Default the constructor.
7893 <type>: Remove.
7894 (struct tui_win_info) <tui_win_info>: Default the constructor.
7895 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7896 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7897 Default the constructor.
7898
865a5aec
TT
78992020-02-22 Tom Tromey <tom@tromey.com>
7900
7901 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7902 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7903 * tui/tui-win.c (tui_resize_all): Don't call
7904 tui_delete_invisible_windows.
7905 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7906 done.
7907 (tui_set_layout): Update.
7908 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7909 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7910 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7911
e098d18c
TT
79122020-02-22 Tom Tromey <tom@tromey.com>
7913
7914 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7915 correctly.
7916
eb9c8874
TT
79172020-02-22 Tom Tromey <tom@tromey.com>
7918
7919 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7920
7eed1a8e
TT
79212020-02-22 Tom Tromey <tom@tromey.com>
7922
7923 * tui/tui-winsource.h (struct tui_source_window_iterator)
7924 <inner_iterator>: New etytypedef.
7925 <tui_source_window_iterator>: Take "end" parameter.
7926 <tui_source_window_iterator>: Take iterator.
7927 <operator*, advance>: Update.
7928 <m_iter>: Change type.
7929 <m_end>: New field.
7930 (struct tui_source_windows) <begin, end>: Update.
7931 * tui/tui-layout.c (tui_windows): New global.
7932 (tui_apply_current_layout): Clear tui_windows.
7933 (tui_layout_window::apply): Update tui_windows.
7934 * tui/tui-data.h (tui_windows): Declare.
7935 (all_tui_windows): Now inline function.
7936 (class tui_window_iterator, struct all_tui_windows): Remove.
7937
7c043ba6
TT
79382020-02-22 Tom Tromey <tom@tromey.com>
7939
7940 PR tui/17850:
7941 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7942 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7943 "height" argument.
7944 (class tui_layout_window) <get_sizes>: Likewise.
7945 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7946 argument.
7947 <get_sizes>: Add "height" argument.
7948 <m_vertical>: New field.
7949 * tui/tui-layout.c (tui_layout_split::clone): Update.
7950 (tui_layout_split::get_sizes): Add "height" argument.
7951 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7952 (tui_new_layout_command): Parse "-horizontal".
7953 (_initialize_tui_layout): Update help string.
7954 (tui_layout_split::specification): Add "-horizontal" when needed.
7955 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7956 argument.
7957 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7958 New methods.
7959
6bc56648
TT
79602020-02-22 Tom Tromey <tom@tromey.com>
7961
7962 * tui/tui-layout.h (enum tui_adjust_result): New.
7963 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7964 (class tui_layout_window) <adjust_size>: Return
7965 tui_adjust_result. Rewrite.
7966 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7967 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7968
c22fef7e
TT
79692020-02-22 Tom Tromey <tom@tromey.com>
7970
7971 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7972 parameter and return types.
7973 (class tui_layout_base) <specification>: Add "depth".
7974 (class tui_layout_window) <specification>: Add "depth".
7975 (class tui_layout_split) <specification>: Add "depth".
7976 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7977 and return types.
7978 (tui_new_layout_command): Parse sub-layouts.
7979 (_initialize_tui_layout): Update help string.
7980 (tui_layout_window::specification): Add "depth".
7981 (add_layout_command): Update.
7982
ee325b61
TT
79832020-02-22 Tom Tromey <tom@tromey.com>
7984
7985 * NEWS: Add "tui new-layout" item.
7986 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7987 Add new-layout command to help text.
7988 (validate_window_name): New function.
7989 (tui_new_layout_command): New function.
7990 (_initialize_tui_layout): Register "new-layout".
7991 (tui_layout_window::specification): New method.
7992 (tui_layout_window::specification): New method.
7993 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7994 method.
7995 (class tui_layout_window) <specification>: New method.
7996 (class tui_layout_split) <specification>: New method.
7997
416eb92d
TT
79982020-02-22 Tom Tromey <tom@tromey.com>
7999
8000 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8001 * tui/tui-win.c (window_name_completer): Update comment.
8002 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8003 Declare method.
8004 (class tui_layout_window) <replace_window>: Likewise.
8005 (class tui_layout_split) <replace_window>: Likewise.
8006 (tui_set_layout): Don't declare.
8007 (tui_set_initial_layout): Declare function.
8008 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8009 (asm_regs_layout): New globals.
8010 (tui_current_layout, show_layout): Remove.
8011 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8012 (find_layout, tui_apply_layout): New function.
8013 (layout_completer): Remove.
8014 (tui_next_layout): Reimplement.
8015 (tui_next_layout_command): New function.
8016 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8017 (tui_regs_layout): Reimplement.
8018 (tui_regs_layout_command): New function.
8019 (extract_display_start_addr): Rewrite.
8020 (next_layout, prev_layout): Remove.
8021 (tui_layout_window::replace_window): New method.
8022 (tui_layout_split::replace_window): New method.
8023 (destroy_layout): New function.
8024 (layout_list): New global.
8025 (add_layout_command): New function.
8026 (initialize_layouts): Update.
8027 (tui_layout_command): New function.
8028 (_initialize_tui_layout): Install "layout" commands.
8029 * tui/tui-data.h (enum tui_layout_type): Remove.
8030 (tui_current_layout): Don't declare.
8031
0dbc2fc7
TT
80322020-02-22 Tom Tromey <tom@tromey.com>
8033
8034 * tui/tui-regs.c (tui_reg_layout): Remove.
8035 (tui_reg_command): Use tui_regs_layout.
8036 * tui/tui-layout.h (tui_reg_command): Declare.
8037 * tui/tui-layout.c (tui_reg_command): New function.
8038
5afe342e
TT
80392020-02-22 Tom Tromey <tom@tromey.com>
8040
8041 * tui/tui.c (tui_rl_delete_other_windows): Call
8042 tui_remove_some_windows.
8043 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8044 Declare method.
8045 (class tui_layout_window) <remove_windows>: New method.
8046 (class tui_layout_split) <remove_windows>: Declare.
8047 (tui_remove_some_windows): Declare.
8048 * tui/tui-layout.c (tui_remove_some_windows): New function.
8049 (tui_layout_split::remove_windows): New method.
8050
427326a8
TT
80512020-02-22 Tom Tromey <tom@tromey.com>
8052
8053 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8054 * tui/tui-layout.h (tui_next_layout): Declare.
8055 * tui/tui-layout.c (tui_next_layout): New function.
8056
3fe12b6d
TT
80572020-02-22 Tom Tromey <tom@tromey.com>
8058
8059 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8060 correct coordinates.
8061
59b8b5d2
TT
80622020-02-22 Tom Tromey <tom@tromey.com>
8063
8064 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8065 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8066 DATA_WIN case.
8067
2a3d458b
TT
80682020-02-22 Tom Tromey <tom@tromey.com>
8069
8070 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8071 TUI_DISASM_WIN, not tui_win_list.
8072
3f0cbb04
TT
80732020-02-22 Tom Tromey <tom@tromey.com>
8074
8075 * valprint.c (generic_val_print_enum_1)
8076 (val_print_type_code_flags): Style member names.
8077 * rust-lang.c (val_print_struct, rust_print_enum)
8078 (rust_print_struct_def, rust_internal_print_type): Style member
8079 names.
8080 * p-valprint.c (pascal_object_print_value_fields): Style member
8081 names. Only call fprintf_symbol_filtered for static members.
8082 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8083 * f-valprint.c (f_val_print): Style member names.
8084 * f-typeprint.c (f_type_print_base): Style member names.
8085 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8086 call fprintf_symbol_filtered for static members.
8087 (cp_print_class_member): Style member names.
8088 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8089 member names.
8090 * ada-valprint.c (ada_print_scalar): Style enum names.
8091 (ada_val_print_enum): Likewise.
8092 * ada-typeprint.c (print_enum_type): Style enum names.
8093
d4d947ae
TT
80942020-02-21 Tom Tromey <tom@tromey.com>
8095
8096 * psympriv.h (struct partial_symtab): Update comment.
8097
e94e944b
TT
80982020-02-21 Tom Tromey <tromey@adacore.com>
8099
8100 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8101 type is CORE_ADDR.
8102
1eb73179
TV
81032020-02-21 Tom de Vries <tdevries@suse.de>
8104
8105 PR gdb/25534
8106 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8107 if dependencies[i]->user != NULL.
8108
4f180d53
AT
81092020-02-21 Ali Tamur <tamur@google.com>
8110
8111 * dwarf2/read.c (dwarf2_name): Add null check.
8112
22b6cd70
TT
81132020-02-20 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8116 ">=", in binary search.
8117 (dwarf2_find_containing_comp_unit): New overload.
8118 (run_test): New self-test.
8119 (_initialize_dwarf2_read): Register new test.
8120
bd0cf5a6
NC
81212020-02-20 Nelson Chu <nelson.chu@sifive.com>
8122
8123 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8124 * riscv-tdep.h: Likewise.
8125 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8126 rv32-only CSR.
8127 * features/riscv/64bit-csr.xml: Regenerated.
8128
3f702acd
SDJ
81292020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8130 Tom Tromey <tom@tromey.com>
8131
8132 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8133 of 'fputc_unfiltered'.
8134 (putchar_unfiltered): Call 'fputc_unfiltered'.
8135 (fputc_unfiltered): Call 'fputs_unfiltered'.
8136
d13c7322
AB
81372020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8138
8139 * config.in: Regenerate.
8140 * configure: Regenerate.
8141 * configure.ac: Add --with-python-libdir option.
8142 * main.c: Use WITH_PYTHON_LIBDIR.
8143
869d8950
TT
81442020-02-19 Tom Tromey <tom@tromey.com>
8145
8146 * symtab.c (general_symbol_info::compute_and_set_names): Use
8147 obstack_strndup. Simplify call to symbol_set_demangled_name.
8148
298e9637
SM
81492020-02-19 Simon Marchi <simon.marchi@efficios.com>
8150
8151 * dwarf2/read.c (allocate_signatured_type_table,
8152 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8153 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8154 Remove objfile parameter, update all callers.
8155
08410482
DE
81562020-02-19 Doug Evans <dje@google.com>
8157
8158 PR rust/25535
8159 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8160 rust_enum_variant calculation.
8161
dfdeeca1
TT
81622020-02-19 Tom Tromey <tromey@adacore.com>
8163
8164 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8165
2ef5453b
TT
81662020-02-19 Tom Tromey <tromey@adacore.com>
8167
8168 * ada-lang.c (cache_symbol): Use obstack_strdup.
8169
9f1528a1
AB
81702020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8171
8172 * configure: Regenerate.
8173
d3c22fa8
TT
81742020-02-19 Tom Tromey <tromey@adacore.com>
8175
8176 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8177 NULL check.
8178
bf84f706
MR
81792020-02-19 Maciej W. Rozycki <macro@wdc.com>
8180
8181 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8182
d1c9b20f
AB
81832020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8184
8185 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8186 if GDBSERVER is not defined.
8187 (riscv_tdesc_cache): Likewise, also store const target_desc.
8188 (STATIC_IN_GDB): Define.
8189 (riscv_create_target_description): Update declaration with
8190 STATIC_IN_GDB.
8191 (riscv_lookup_target_description): New function, only define if
8192 GDBSERVER is not defined.
8193 * arch/riscv.h (riscv_create_target_description): Declare only
8194 when GDBSERVER is defined.
8195 (riscv_lookup_target_description): New declaration when GDBSERVER
8196 is not defined.
8197 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8198 (riscv_linux_read_features): ...this, and return
8199 riscv_gdbarch_features instead of target_desc.
8200 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8201 (riscv_linux_read_description): Rename to...
8202 (riscv_linux_read_features): ...this.
8203 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8204 Update to use riscv_gdbarch_features and
8205 riscv_lookup_target_description.
8206 * riscv-tdep.c (riscv_find_default_target_description): Use
8207 riscv_lookup_target_description instead of
8208 riscv_create_target_description.
8209
373d7ac0
SM
82102020-02-18 Simon Marchi <simon.marchi@efficios.com>
8211
8212 * valprint.c (generic_val_print_enum_1): When printing a flag
8213 enum with value 0 and there is no enumerator with value 0, print
8214 just "0" instead of "(unknown: 0x0)".
8215
b29a2df0
SM
82162020-02-18 Simon Marchi <simon.marchi@efficios.com>
8217
8218 * valprint.c (generic_val_print_enum_1): Print unknown part of
8219 flag enum in hex.
8220
6740f0cc
SM
82212020-02-18 Simon Marchi <simon.marchi@efficios.com>
8222
8223 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8224 flag enums to contain duplicate enumerators.
8225 * valprint.c (generic_val_print_enum_1): Update comment.
8226
edd45eb0
SM
82272020-02-18 Simon Marchi <simon.marchi@efficios.com>
8228
8229 * dwarf2/read.c: Include "count-one-bits.h".
8230 (update_enumeration_type_from_children): If an enumerator has
8231 multiple bits set, don't treat the enumeration as a "flag enum".
8232 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8233 of flag enums have 0 or 1 bit set.
8234
6d0cf446
BE
82352020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8236
8237 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8238 conversion.
8239 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8240 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8241 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8242 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8243 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8244
7001c1b7
SM
82452020-02-18 Simon Marchi <simon.marchi@efficios.com>
8246
8247 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8248
fdb61c6c
SM
82492020-02-14 Simon Marchi <simon.marchi@efficios.com>
8250
8251 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8252 displaced_step_closure_up.
8253 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8254 (struct displaced_step_closure_up):
8255 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8256 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8257 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8258 Likewise.
8259 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8260 * gdbarch.c, gdbarch.h: Re-generate.
8261 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8262 displaced_step_closure_up.
8263 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8264 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8265 * infrun.h (displaced_step_closure_up): New type alias.
8266 (struct displaced_step_inferior_state) <step_closure>: Change
8267 type to displaced_step_closure_up.
8268 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8269 displaced_step_closure_up.
8270 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8271
a4a38eb4
TT
82722020-02-14 Tom Tromey <tom@tromey.com>
8273
8274 * minidebug.c (gnu_debug_key): New global.
8275 (find_separate_debug_file_in_section): Use it.
8276
e8217e61
SM
82772020-02-14 Simon Marchi <simon.marchi@efficios.com>
8278
8279 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8280 std::unique_ptr.
8281 * gdbarch.c: Re-generate.
8282 * gdbarch.h: Re-generate.
8283 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8284 change.
8285 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8286 type to std::unique_ptr.
8287 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8288 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8289 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8290 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8291 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8292 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8293 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8294 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8295 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8296
d8d83535
SM
82972020-02-14 Simon Marchi <simon.marchi@efficios.com>
8298
8299 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8300 std::unique_ptr.
8301 (displaced_step_clear): Rename to...
8302 (displaced_step_reset): ... this. Just call displaced->reset ().
8303 (displaced_step_clear_cleanup): Rename to...
8304 (displaced_step_reset_cleanup): ... this.
8305 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8306 (displaced_step_fixup): Likewise.
8307 (resume_1): Likewise.
8308 (handle_inferior_event): Restore child's memory before calling
8309 displaced_step_fixup on the parent.
8310 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8311 to std::unique_ptr.
8312 <step_closure>: Change type to std::unique_ptr.
8313
5f661e03
SM
83142020-02-14 Simon Marchi <simon.marchi@efficios.com>
8315
8316 * arm-tdep.c: Include count-one-bits.h.
8317 (cleanup_block_store_pc): Use count_one_bits.
8318 (cleanup_block_load_pc): Use count_one_bits.
8319 (arm_copy_block_xfer): Use count_one_bits.
8320 (thumb2_copy_block_xfer): Use count_one_bits.
8321 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8322 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8323 (thumb_get_next_pcs_raw): Use count_one_bits.
8324 (arm_get_next_pcs_raw): Use count_one_bits_l.
8325 * arch/arm.c (bitcount): Remove.
8326 * arch/arm.h (bitcount): Remove.
8327
8084e579
TT
83282020-02-14 Tom Tromey <tromey@adacore.com>
8329
8330 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8331 Update.
8332 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8333 * dwarf2/loc.c (call_site_find_chain_1): Return
8334 unique_xmalloc_ptr.
8335 (call_site_find_chain): Likewise.
8336
258bf0ee
RB
83372020-02-14 Richard Biener <rguenther@suse.de>
8338
8339 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8340 on expression with division operators.
8341
f98a8458
AKS
83422020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8343
8344 * MAINTAINERS (Write After Approval): Adding myself.
8345
d1437c0e
TT
83462020-02-12 Tom Tromey <tom@tromey.com>
8347
8348 * event-loop.c (event_data, gdb_event, event_handler_func):
8349 Remove.
8350
3d4560f7
TT
83512020-02-12 Tom Tromey <tom@tromey.com>
8352
8353 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8354 (dwarf2_frame_objfile_data): Add comment.
8355 (find_comp_unit, set_comp_unit): New functions.
8356 (dwarf2_frame_find_fde): Use find_comp_unit.
8357 (dwarf2_build_frame_info): Use set_comp_unit.
8358
21982304
TT
83592020-02-12 Tom Tromey <tom@tromey.com>
8360
8361 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8362 (comp_unit): Don't initialize objfile.
8363 (execute_cfa_program): Add text_offset parameter.
8364 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8365 (dwarf2_frame_cache): Update.
8366 (dwarf2_build_frame_info): Don't set "objfile" member.
8367
4debb237
TT
83682020-02-12 Tom Tromey <tom@tromey.com>
8369
8370 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8371 (decode_frame_entry): Likewise.
8372 (dwarf2_build_frame_info): Update.
8373
0d404d44
TT
83742020-02-12 Tom Tromey <tom@tromey.com>
8375
8376 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8377 (decode_frame_entry_1): Use the comp_unit obstack.
8378
a7a3ae5c
TT
83792020-02-12 Tom Tromey <tom@tromey.com>
8380
8381 * dwarf2/frame.c (struct comp_unit): Add initializers and
8382 constructor.
8383 (dwarf2_frame_objfile_data): Store a comp_unit.
8384 (dwarf2_frame_find_fde): Update.
8385 (dwarf2_build_frame_info): Use "new".
8386
a9d65418
TT
83872020-02-12 Tom Tromey <tom@tromey.com>
8388
8389 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8390 (dwarf2_fde_table): Typedef for std::vector.
8391 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8392 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8393 (decode_frame_entry): Update.
8394 (dwarf2_build_frame_info): Use "new".
8395
7559c217
CB
83962020-02-12 Christian Biesinger <cbiesinger@google.com>
8397
8398 * arm-tdep.c (arm_gdbarch_init): Update.
8399 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8400 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8401 have_neon, is_m>: Change to bool.
8402
aeefc73c
CB
84032020-02-12 Christian Biesinger <cbiesinger@google.com>
8404
8405 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8406
d27b8e5f
TT
84072020-02-12 Tom Tromey <tom@tromey.com>
8408
8409 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8410
cd5900f3
HD
84112020-02-12 Hannes Domani <ssbssa@yahoo.de>
8412
8413 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8414 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8415
f056b22b
TT
84162020-02-11 Tom Tromey <tom@tromey.com>
8417
8418 * psymtab.h: Update comment.
8419
f92ff6b5
TT
84202020-02-11 Tom Tromey <tom@tromey.com>
8421
8422 * gdb_obstack.h (struct auto_obstack): Use
8423 DISABLE_COPY_AND_ASSIGN.
8424
3fd6912b
TT
84252020-02-11 Tom Tromey <tom@tromey.com>
8426
8427 * dwarf2/frame.h (struct objfile): Don't forward declare.
8428
69ed9b74
CB
84292020-02-11 Christian Biesinger <cbiesinger@google.com>
8430
8431 * cris-tdep.c (cris_supply_gregset): Change signature to match
8432 what struct regset expects.
8433 (cris_regset): New struct.
8434 (fetch_core_registers): Remove.
8435 (cris_iterate_over_regset_sections): New function.
8436 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8437 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8438
bda874f6
CB
84392020-02-11 Christian Biesinger <cbiesinger@google.com>
8440
8441 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8442 registers.
8443
754e1564
CB
84442020-02-11 Christian Biesinger <cbiesinger@google.com>
8445
8446 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8447
8ddd8e0e
SM
84482020-02-11 Simon Marchi <simon.marchi@efficios.com>
8449
8450 * configure: Re-generate.
8451
898e7f60
SM
84522020-02-11 Simon Marchi <simon.marchi@efficios.com>
8453
8454 * configure: Re-generate.
8455
58df732b
SM
84562020-02-11 Simon Marchi <simon.marchi@efficios.com>
8457
8458 * acinclude: Update warning.m4 path.
8459 * warning.m4: Move to gdbsupport.
8460
da5bd37e
TT
84612020-02-11 Tom Tromey <tromey@adacore.com>
8462
8463 * remote.c (remote_console_output): Update.
8464 * printcmd.c (printf_command): Update.
8465 * event-loop.c (gdb_wait_for_event): Update.
8466 * linux-nat.c (sigchld_handler): Update.
8467 * remote-sim.c (gdb_os_write_stdout): Update.
8468 (gdb_os_flush_stdout): Update.
8469 (gdb_os_flush_stderr): Update.
8470 (gdb_os_write_stderr): Update.
8471 * exceptions.c (print_exception): Update.
8472 * remote-fileio.c (remote_fileio_func_read): Update.
8473 (remote_fileio_func_write): Update.
8474 * tui/tui.c (tui_enable): Update.
8475 * tui/tui-interp.c (tui_interp::init): Update.
8476 * utils.c (init_page_info): Update.
8477 (putchar_unfiltered, fputc_unfiltered): Update.
8478 (gdb_flush): Update.
8479 (emit_style_escape): Update.
8480 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8481 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8482 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8483 (stderr_file::write): Update.
8484 (stderr_file::puts): Update.
8485 * ui-file.h (ui_file_isatty, ui_file_write)
8486 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8487 (ui_file_puts): Don't declare.
8488
85f0dd3c
TV
84892020-02-10 Tom de Vries <tdevries@suse.de>
8490
8491 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8492 sentinel to char *.
8493
2e927613
TV
84942020-02-09 Tom de Vries <tdevries@suse.de>
8495
8496 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8497 filename if it matches "<artificial>".
8498
6bafc845
HD
84992020-02-09 Hannes Domani <ssbssa@yahoo.de>
8500
8501 * windows-tdep.c (struct enum_value_name): New struct.
8502 (create_enum): New function.
8503 (windows_get_siginfo_type): Create and use enum types.
8504
7928d571
HD
85052020-02-09 Hannes Domani <ssbssa@yahoo.de>
8506
8507 * NEWS: Mention $_siginfo support for Windows.
8508 * windows-nat.c (handle_exception): Set siginfo_er.
8509 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8510 (windows_xfer_siginfo): New function.
8511 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8512 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8513 (init_windows_gdbarch_data): New function.
8514 (get_windows_gdbarch_data): New function.
8515 (windows_get_siginfo_type): New function.
8516 (windows_init_abi): Register windows_get_siginfo_type.
8517 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8518
6751ebae
TT
85192020-02-08 Tom Tromey <tom@tromey.com>
8520
8521 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8522 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8523 <keep>: Declare method.
8524 <m_keep>: Remove member.
8525 <~cutu_reader>: Remove.
8526 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8527 (cutu_reader::cutu_reader): Update.
8528 (cutu_reader::keep): Rename from ~cutu_reader.
8529 (process_psymtab_comp_unit, build_type_psymtabs_1)
8530 (process_skeletonless_type_unit, load_partial_comp_unit)
8531 (load_full_comp_unit, dwarf2_read_addr_index)
8532 (read_signatured_type): Update.
8533
135f5437
TT
85342020-02-08 Tom Tromey <tom@tromey.com>
8535
8536 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8537 "want_partial_unit" parameter.
8538 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8539 Inline check for DW_TAG_partial_unit.
8540 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8541
9f66ff1c
TT
85422020-02-08 Tom Tromey <tom@tromey.com>
8543
8544 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8545 read.c.
8546 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8547 read.c.
8548
c8a7a66f
TT
85492020-02-08 Tom Tromey <tom@tromey.com>
8550
8551 * dwarf2/read.c (read_address): Move to comp-unit.c.
8552 (dwarf2_rnglists_process, dwarf2_ranges_process)
8553 (read_attribute_value, dwarf_decode_lines_1)
8554 (var_decode_location, decode_locdesc): Update.
8555 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8556 read.c. Remove "cu" parameter.
8557 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8558 method.
8559
8266302d
TT
85602020-02-08 Tom Tromey <tom@tromey.com>
8561
8562 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8563 (read_indirect_line_string): Update.
8564 * dwarf2/comp-unit.c (read_offset): Remove.
8565 (read_comp_unit_head): Update.
8566 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8567 method.
8568 (read_offset): Don't declare.
8569
4057dfde
TT
85702020-02-08 Tom Tromey <tom@tromey.com>
8571
8572 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8573 * dwarf2/read.c (struct comp_unit_head): Move to
8574 dwarf2/comp-unit.h.
8575 (enum class rcuh_kind): Move to comp-unit.h.
8576 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8577 (read_comp_unit_head, error_check_comp_unit_head)
8578 (read_and_check_comp_unit_head): Move to comp-unit.c.
8579 (read_offset, dwarf_unit_type_name): Likewise.
8580 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8581 (cutu_reader::cutu_reader, read_call_site_scope)
8582 (find_partial_die, follow_die_offset): Update.
8583 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8584
24aa364d
TT
85852020-02-08 Tom Tromey <tom@tromey.com>
8586
8587 * dwarf2/read.c (read_offset_1): Move to leb.c.
8588 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8589 (dwarf_decode_macro_bytes): Update.
8590 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8591 * dwarf2/leb.h (read_offset): Declare.
8592
2c7d5afc
TT
85932020-02-08 Tom Tromey <tom@tromey.com>
8594
8595 * dwarf2/read.c (dwarf2_section_size): Remove.
8596 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8597 Update.
8598 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8599
4075cb26
TT
86002020-02-08 Tom Tromey <tom@tromey.com>
8601
8602 * dwarf2/read.c (read_initial_length): Move to leb.c.
8603 * dwarf2/leb.h (read_initial_length): Declare.
8604 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8605 handle_nonstd parameter.
8606 * dwarf2/frame.c (read_initial_length): Remove.
8607 (decode_frame_entry_1): Update.
8608
09ba997f
TT
86092020-02-08 Tom Tromey <tom@tromey.com>
8610
8611 * dwarf2/loc.c (dwarf2_find_location_expression)
8612 (dwarf_evaluate_loc_desc::get_tls_address)
8613 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8614 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8615 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8616 (dwarf2_compile_property_to_c)
8617 (dwarf2_loc_desc_get_symbol_read_needs)
8618 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8619 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8620 (loclist_describe_location, loclist_tracepoint_var_ref)
8621 (loclist_generate_c_location): Update.
8622 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8623 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8624 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8625 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8626 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8627 (dwarf2_per_cu_data::addr_size)
8628 (dwarf2_per_cu_data::ref_addr_size)
8629 (dwarf2_per_cu_data::text_offset)
8630 (dwarf2_per_cu_data::addr_type): Now methods.
8631 (per_cu_header_read_in): Make per_cu "const".
8632 (dwarf2_version): Remove.
8633 (dwarf2_per_cu_data::int_type): Now a method.
8634 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8635 (set_die_type, read_array_type, read_subrange_index_type)
8636 (read_tag_string_type, read_subrange_type): Update.
8637 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8638 offset_size, ref_addr_size, text_offset, addr_type, version,
8639 objfile, int_type, addr_sized_int_type>: Declare methods.
8640
96c738c0
TT
86412020-02-08 Tom Tromey <tom@tromey.com>
8642
8643 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8644 Move earlier.
8645
8fdd972c
TT
86462020-02-08 Tom Tromey <tom@tromey.com>
8647
8648 * dwarf2/read.h (dwarf_line_debug): Declare.
8649 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8650 * dwarf2/read.c: Move line_header code to new files.
8651 (dwarf_line_debug): No longer static.
8652 * dwarf2/line-header.c: New file.
8653 * dwarf2/line-header.h: New file.
8654
03075812
TT
86552020-02-08 Tom Tromey <tom@tromey.com>
8656
8657 * dwarf2/read.c (struct line_header) <file_full_name,
8658 file_file_name>: Return unique_xmalloc_ptr.
8659 (line_header::file_file_name): Update.
8660 (line_header::file_full_name): Update.
8661 (dw2_get_file_names_reader): Update.
8662 (macro_start_file): Update.
8663
bb822404
TT
86642020-02-08 Tom Tromey <tom@tromey.com>
8665
8666 * dwarf2/read.c (struct line_header) <file_full_name,
8667 file_file_name>: Declare methods.
8668 (dw2_get_file_names_reader): Update.
8669 (file_file_name): Now a method.
8670 (file_full_name): Likewise.
8671 (macro_start_file): Update.
8672
009b64fc
TT
86732020-02-08 Tom Tromey <tom@tromey.com>
8674
8675 * dwarf2/read.c (dwarf_always_disassemble)
8676 (show_dwarf_always_disassemble): Move to loc.c.
8677 (_initialize_dwarf2_read): Move "always-disassemble" registration
8678 to loc.c.
8679 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8680 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8681 static.
8682 (show_dwarf_always_disassemble): Move from read.c.
8683 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8684
5895093f
TT
86852020-02-08 Tom Tromey <tom@tromey.com>
8686
8687 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8688 (create_quick_file_names_table): Return htab_up.
8689 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8690 Update.
8691 * dwarf2/read.h (struct dwarf2_per_objfile)
8692 <quick_file_names_table>: Now htab_up.
8693
b3b32279
TT
86942020-02-08 Tom Tromey <tom@tromey.com>
8695
8696 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8697
1d33d811
TT
86982020-02-08 Tom Tromey <tom@tromey.com>
8699
8700 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8701 Rewrite.
8702 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8703 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8704 (abbrev_table::abbrev_table): No longer inline.
8705 (ABBREV_HASH_SIZE): Remove.
8706 (abbrev_table::m_abbrevs): Now an htab_up.
8707
86de1d91
TT
87082020-02-08 Tom Tromey <tom@tromey.com>
8709
8710 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8711 (cutu_reader): Update.
8712 (build_type_psymtabs_1): Update.
8713 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8714 (abbrev_table::alloc_abbrev): Update.
8715 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8716 (abbrev_table::read): New static method, renamed from
8717 abbrev_table_read_table.
8718 (abbrev_table::alloc_abbrev)
8719 (abbrev_table::add_abbrev): Now private.
8720 (abbrev_table::abbrev_table): Now private.
8721 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8722
0335378b
TT
87232020-02-08 Tom Tromey <tom@tromey.com>
8724
8725 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8726 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8727 htab_up.
8728
48b490f2
TT
87292020-02-08 Tom Tromey <tom@tromey.com>
8730
8731 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8732 htab_up.
8733 (lookup_dwo_unit_in_dwp): Update.
8734 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8735 on obstack.
8736
bc68fb19
TT
87372020-02-08 Tom Tromey <tom@tromey.com>
8738
8739 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8740 obstack.
8741
d15acc42
TT
87422020-02-08 Tom Tromey <tom@tromey.com>
8743
8744 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8745 line_header_hash.
8746 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8747 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8748 Change type to htab_up.
8749
eaa5fa8b
TT
87502020-02-08 Tom Tromey <tom@tromey.com>
8751
8752 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8753 htab_up. Don't allocate on obstack.
8754 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8755 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8756 Change type to htab_up.
8757
b0b6a987
TT
87582020-02-08 Tom Tromey <tom@tromey.com>
8759
8760 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8761 Change type to htab_up.
8762 * dwarf2/read.c (create_signatured_type_table_from_index)
8763 (create_signatured_type_table_from_debug_names)
8764 (create_all_type_units, add_type_unit)
8765 (lookup_dwo_signatured_type, lookup_signatured_type)
8766 (process_skeletonless_type_unit): Update.
8767 (create_debug_type_hash_table, create_debug_types_hash_table):
8768 Change type of types_htab.
8769 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8770 htab_up. Don't allocate on obstack.
8771 (create_cus_hash_table): Change type of cus_htab parameter.
8772 (struct dwo_file) <cus, tus>: Now htab_up.
8773 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8774 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8775 (queue_and_load_all_dwo_tus): Update.
8776 * dwarf2/index-write.c (write_gdbindex): Update.
8777 (write_debug_names): Update.
8778
39856def
TT
87792020-02-08 Tom Tromey <tom@tromey.com>
8780
8781 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8782 dwarf2/read.c. Remove "next" member. Add constructor ntad
8783 destructor.
8784 (struct dwarf2_per_objfile) <queue>: New member.
8785 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8786 dwarf2/read.h.
8787 (dwarf2_queue, dwarf2_queue_tail): Remove.
8788 (class dwarf2_queue_guard): Add parameter to constructor. Use
8789 DISABLE_COPY_AND_ASSIGN.
8790 <m_per_objfile>: New member.
8791 <~dwarf2_queue_guard>: Rewrite.
8792 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8793 Update.
8794 (~dwarf2_queue_item): New.
8795
3e225074
TT
87962020-02-08 Tom Tromey <tom@tromey.com>
8797
8798 * dwarf2/read.c (struct die_info) <has_children>: New member.
8799 (dw2_get_file_names_reader): Remove has_children.
8800 (dw2_get_file_names): Update.
8801 (read_cutu_die_from_dwo): Remove has_children.
8802 (cutu_reader::init_tu_and_read_dwo_dies)
8803 (cutu_reader::cutu_reader): Update.
8804 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8805 Remove has_children.
8806 (build_type_psymtabs_1, process_skeletonless_type_unit)
8807 (load_partial_comp_unit, load_full_comp_unit): Update.
8808 (create_dwo_cu_reader): Remove has_children.
8809 (create_cus_hash_table, read_die_and_children): Update.
8810 (read_full_die_1,read_full_die): Remove has_children.
8811 (read_signatured_type): Update.
8812 (class cutu_reader) <has_children>: Remove.
8813
82ca8957
TT
88142020-02-08 Tom Tromey <tom@tromey.com>
8815
8816 * dwarf2/expr.c: Rename from dwarf2expr.c.
8817 * dwarf2/expr.h: Rename from dwarf2expr.h.
8818 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8819 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8820 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8821 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8822 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8823 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8824 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8825 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8826 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8827 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8828 * dwarf2/loc.c: Rename from dwarf2loc.c.
8829 * dwarf2/loc.h: Rename from dwarf2loc.h.
8830 * dwarf2/read.c: Rename from dwarf2read.c.
8831 * dwarf2/read.h: Rename from dwarf2read.h.
8832 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8833 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8834 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8835 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8836 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8837 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8838 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8839 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8840 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8841 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8842 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8843 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8844 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8845 Update.
8846 * Makefile.in (COMMON_SFILES): Update.
8847 (HFILES_NO_SRCDIR): Update.
8848
9e35d499
TT
88492020-02-08 Tom Tromey <tom@tromey.com>
8850
8851 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8852 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8853
1eba2311
TT
88542020-02-08 Tom Tromey <tom@tromey.com>
8855
8856 * dwarf2read.h (struct die_info): Don't declare.
8857
e41c2da2
TT
88582020-02-08 Tom Tromey <tom@tromey.com>
8859
8860 * dwarf2read.h (die_info_ptr): Remove typedef.
8861
4fc6c0d5
TT
88622020-02-08 Tom Tromey <tom@tromey.com>
8863
8864 * dwarf2read.c (read_call_site_scope)
8865 (handle_data_member_location, dwarf2_add_member_fn)
8866 (mark_common_block_symbol_computed, read_common_block)
8867 (attr_to_dynamic_prop, partial_die_info::read)
8868 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8869 (dwarf2_symbol_mark_computed, set_die_type): Update.
8870 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8871 method.
8872 (attr_form_is_block): Don't declare.
8873 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8874
cd6c91b4
TT
88752020-02-08 Tom Tromey <tom@tromey.com>
8876
8877 * dwarf2read.c (dwarf2_find_base_address, )
8878 (read_call_site_scope, rust_containing_type)
8879 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8880 (handle_data_member_location, dwarf2_add_member_fn)
8881 (get_alignment, read_structure_type, process_structure_scope)
8882 (mark_common_block_symbol_computed, read_common_block)
8883 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8884 (partial_die_info::read, read_attribute_value, new_symbol)
8885 (lookup_die_type, dwarf2_get_ref_die_offset)
8886 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8887 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8888 (dwarf2_symbol_mark_computed): Update.
8889 * dwarf2/attribute.h (struct attribute) <value_as_address,
8890 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8891 methods.
8892 (value_as_address, attr_form_is_section_offset)
8893 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8894 * dwarf2/attribute.c (attribute::value_as_address)
8895 (attribute::form_is_section_offset, attribute::form_is_constant)
8896 (attribute::form_is_ref): Now methods.
8897
162dce55
TT
88982020-02-08 Tom Tromey <tom@tromey.com>
8899
8900 * dwarf2read.c (struct attribute, DW_STRING)
8901 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8902 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8903 (attr_form_is_block, attr_form_is_section_offset)
8904 (attr_form_is_constant, attr_form_is_ref): Move.
8905 * dwarf2/attribute.h: New file.
8906 * dwarf2/attribute.c: New file, from dwarf2read.c.
8907 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8908
3054dd54
TT
89092020-02-08 Tom Tromey <tom@tromey.com>
8910
8911 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8912 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8913 Move.
8914 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8915 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8916 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8917 abbrev.c.
8918 * dwarf2/abbrev.h: New file.
8919 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8920 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8921
96b79293
TT
89222020-02-08 Tom Tromey <tom@tromey.com>
8923
8924 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8925 (dwarf2_section_size, dwarf2_get_section_info)
8926 (create_signatured_type_table_from_debug_names)
8927 (create_addrmap_from_aranges, read_debug_names_from_section)
8928 (get_gdb_index_contents_from_section, read_comp_unit_head)
8929 (error_check_comp_unit_head, read_abbrev_offset)
8930 (create_debug_type_hash_table, init_cu_die_reader)
8931 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8932 (read_comp_units_from_section, create_cus_hash_table)
8933 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8934 (create_dwp_v2_section, dwarf2_rnglists_process)
8935 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8936 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8937 (read_indirect_string_from_dwz, read_addr_index_1)
8938 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8939 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8940 (fill_in_loclist_baton): Update.
8941 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8942 get_containing_section, get_bfd_owner, get_bfd_section,
8943 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8944 (dwarf2_read_section, get_section_name, get_section_file_name)
8945 (get_containing_section, get_section_bfd_owner)
8946 (get_section_bfd_section, get_section_name, get_section_file_name)
8947 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8948 declare.
8949 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8950 (dwarf2_section_info::get_bfd_owner)
8951 (dwarf2_section_info::get_bfd_section)
8952 (dwarf2_section_info::get_name)
8953 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8954 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8955 (dwarf2_section_info::read): Now methods.
8956 * dwarf-index-write.c (class debug_names): Update.
8957
2c86cff9
TT
89582020-02-08 Tom Tromey <tom@tromey.com>
8959
8960 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8961 Move to dwarf2/section.h.
8962 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8963 (get_section_bfd_section, get_section_name)
8964 (get_section_file_name, get_section_id, get_section_flags)
8965 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8966 dwarf2/section.c.
8967 * dwarf2/section.h: New file.
8968 * dwarf2/section.c: New file, from dwarf2read.c.
8969 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8970
f4382c45
TT
89712020-02-08 Tom Tromey <tom@tromey.com>
8972
8973 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8974 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8975 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8976 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8977 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8978 * dwarf2/leb.h: New file, from dwarf2read.c.
8979 * dwarf2/leb.c: New file, from dwarf2read.c.
8980 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8981 Remove.
8982 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8983 (COMMON_SFILES): Add dwarf2/leb.c.
8984
01840b7a
JB
89852020-02-08 Joel Brobecker <brobecker@adacore.com>
8986
8987 GDB 9.1 released.
8988
dfcb27e4
IB
89892020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8990
8991 PR gdb/25190:
aac66a4c
SM
8992 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8993 * gdb/remote.c (remote_console_output): Update.
8994 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8995 (ui_file_puts): ...this.
8996 * gdb/ui-file.h (ui_file_puts): Add declaration.
8997 * gdb/utils.c (emit_style_escape): Update.
8998 (flush_wrap_buffer): Update.
8999 (fputs_maybe_filtered): Update.
9000 (fputs_unfiltered): Add function.
dfcb27e4 9001
faa17681
IB
90022020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9003
aac66a4c
SM
9004 * gdb/event-loop.c (gdb_wait_for_event): Update.
9005 * gdb/printcmd.c (printf_command): Update.
9006 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9007 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9008 (gdb_os_flush_stderr): Update.
9009 * gdb/remote.c (remote_console_output): Update.
9010 * gdb/ui-file.c (gdb_flush): Rename to...
9011 (ui_file_flush): ...this.
9012 (stderr_file::write): Update.
9013 (stderr_file::puts): Update.
9014 * gdb/ui-file.h (gdb_flush): Rename to...
9015 (ui_file_flush): ...this.
9016 * gdb/utils.c (gdb_flush): Add function.
9017 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9018
5abbbe1d
TT
90192020-02-07 Tom Tromey <tromey@adacore.com>
9020
9021 PR breakpoints/24915:
9022 * source.c (find_and_open_source): Do not check basenames_may_differ.
9023
919adfe8
TT
90242020-02-07 Tom Tromey <tom@tromey.com>
9025
9026 * README: Update gdbserver documentation.
9027 * gdbserver: Move to top level.
9028 * configure.tgt (build_gdbserver): Remove.
9029 * configure.ac: Remove --enable-gdbserver.
9030 * configure: Rebuild.
9031 * Makefile.in (distclean): Don't mention gdbserver.
9032
1d5d29e7
SV
90332020-02-06 Shahab Vahedi <shahab@synopsys.com>
9034
9035 * source-cache.c (source_cache::ensure): Surround
9036 get_plain_source_lines with a try/catch.
9037 (source_cache::get_line_charpos): Get rid of try/catch
9038 and only check for the return value of "ensure".
9039 * tui/tui-source.c (tui_source_window::set_contents):
9040 Simplify "nlines" calculation.
9041
6eb1129c
SV
90422020-02-06 Shahab Vahedi <shahab@synopsys.com>
9043
9044 * MAINTAINERS (Write After Approval): Add myself.
9045
c6a42d11
CB
90462020-02-05 Christian Biesinger <cbiesinger@google.com>
9047
9048 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9049 function call.
9050
c8ecdda6
CB
90512020-02-05 Christian Biesinger <cbiesinger@google.com>
9052
9053 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9054
f6480e70
MR
90552020-02-05 Maciej W. Rozycki <macro@wdc.com>
9056
9057 * nat/riscv-linux-tdesc.h: New file.
9058 * nat/riscv-linux-tdesc.c: New file, taking code from...
9059 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9060 ... here.
9061 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9062 NATDEPFILES.
9063
dcc9fbc6
AB
90642020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9065
9066 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9067 we don't set the fake simulator ptid to the null_ptid.
9068
719546c4
SM
90692020-02-03 Simon Marchi <simon.marchi@efficios.com>
9070
9071 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9072 * gdbthread.h (class thread_info) <resumed>: Likewise.
9073 * infrun.c (resume_1): Likewise.
9074 (proceed): Likewise.
9075 (infrun_thread_stop_requested): Likewise.
9076 (stop_all_threads): Likewise.
9077 (handle_inferior_event): Likewise.
9078 (restart_threads): Likewise.
9079 (finish_step_over): Likewise.
9080 (keep_going_stepped_thread): Likewise.
9081 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9082 (linux_handle_extended_wait): Likewise.
9083 * record-btrace.c (get_thread_current_frame_id): Likewise.
9084 * record-full.c (record_full_wait_1): Likewise.
9085 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9086 * target.c (target_resume): Likewise.
9087 * thread.c (set_running_thread): Likewise.
9088
e409c542
AKS
90892020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9090
9091 * f-valprint.c (f77_print_array_1): Changed datatype of index
9092 variable to LONGEST from int to enable it to contain bound
9093 values correctly.
9094
ee98c0da
MR
90952020-02-03 Maciej W. Rozycki <macro@wdc.com>
9096
9097 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9098 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9099 offsets according to FLEN determined.
9100 (riscv_linux_nat_target::read_description): Determine FLEN
9101 dynamically.
9102 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9103 according to FLEN determined.
9104 (riscv_linux_nat_target::store_registers): Likewise.
9105
aa66aac4
SV
91062020-02-01 Shahab Vahedi <shahab@synopsys.com>
9107
9108 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9109 when reg->group is empty and reggroup is not.
9110
fd9faca8
TT
91112020-01-31 Tom Tromey <tromey@adacore.com>
9112
9113 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9114 Call beneath target's mourn_inferior after unpushing.
9115
42330a68
AB
91162020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9117
9118 PR tui/9765
9119 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9120 have enough lines to fill the screen, still return the lowest
9121 address we found.
9122
7a27a45b
AB
91232020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9124
9125 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9126 '-', '<', and '>' commands.
9127
c47f70e2
PA
91282020-01-29 Pedro Alves <palves@redhat.com>
9129 Sergio Durigan Junior <sergiodj@redhat.com>
9130
9131 * infcmd.c (construct_inferior_arguments): Assert that
9132 'argc' is greater than 0.
9133
5133a315
LM
91342020-01-29 Luis Machado <luis.machado@linaro.org>
9135
9136 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9137 (BRK_INSN_MASK): Define to 0xd4200000.
9138 (aarch64_program_breakpoint_here_p): New function.
9139 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9140 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9141 breakpoint.c.
9142 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9143 breakpoint.h
9144 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9145 call gdbarch_program_breakpoint_here_p.
9146 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9147 default_program_breakpoint_here_p, changed return type to bool and
9148 simplified.
9149 * breakpoint.h (program_breakpoint_here): Moved prototype to
9150 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9151 return type to bool.
9152 * gdbarch.c: Regenerate.
9153 * gdbarch.h: Regenerate.
9154 * gdbarch.sh (program_breakpoint_here_p): New method.
9155 * infrun.c (handle_signal_stop): Call
9156 gdbarch_program_breakpoint_here_p.
9157
168f8c6b
TT
91582020-01-26 Tom Tromey <tom@tromey.com>
9159
9160 * ctfread.c (struct ctf_fp_info): Reindent.
9161 (_initialize_ctfread): Remove.
9162
128a391f
TT
91632020-01-26 Tom Tromey <tom@tromey.com>
9164
9165 * psymtab.c (partial_map_expand_apply)
9166 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9167 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9168 (psym_print_stats, psym_expand_symtabs_for_function)
9169 (psym_map_symbol_filenames, psym_map_matching_symbols)
9170 (psym_expand_symtabs_matching)
9171 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9172 (maintenance_check_psymtabs): Use new methods.
9173 * psympriv.h (struct partial_symtab) <readin_p,
9174 get_compunit_symtab>: New methods.
9175 <readin, compunit_symtab>: Remove members.
9176 (struct standard_psymtab): New.
9177 (struct legacy_psymtab): Derive from standard_psymtab.
9178 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9179 standard_psymtab.
9180 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9181
0494dbec
TT
91822020-01-26 Tom Tromey <tom@tromey.com>
9183
9184 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9185 read_dependencies. Add assert.
9186 * psymtab.c (partial_symtab::read_dependencies): New method.
9187 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9188 method.
9189 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9190 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9191 read_dependencies.
9192 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9193 Add assert.
9194
8566b89b
TT
91952020-01-26 Tom Tromey <tom@tromey.com>
9196
9197 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9198 Call expand_psymtab.
9199 (xcoff_read_symtab): Call expand_psymtab.
9200 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9201 legacy_expand_psymtab.
9202 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9203 method.
9204 (struct legacy_psymtab) <expand_psymtab>: Implement.
9205 <legacy_expand_psymtab>: New member.
9206 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9207 (parse_partial_symbols): Set legacy_expand_psymtab.
9208 (psymtab_to_symtab_1): Change argument order. Call
9209 expand_psymtab.
9210 (new_psymtab): Set legacy_expand_psymtab.
9211 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9212 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9213 expand_psymtab.
9214 (dwarf2_psymtab::expand_psymtab): Rename from
9215 psymtab_to_symtab_1. Call expand_psymtab.
9216 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9217 (dbx_end_psymtab): Likewise.
9218 (dbx_psymtab_to_symtab_1): Change argument order. Call
9219 expand_psymtab.
9220 (dbx_read_symtab): Call expand_psymtab.
9221 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9222 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9223 (ctf_psymtab::read_symtab): Call expand_psymtab.
9224
077cbab2
TT
92252020-01-26 Tom Tromey <tom@tromey.com>
9226
9227 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9228 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9229 messages.
9230 * mdebugread.c (mdebug_read_symtab): Remove prints.
9231 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9232 assert.
9233 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9234
891813be
TT
92352020-01-26 Tom Tromey <tom@tromey.com>
9236
9237 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9238 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9239 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9240 legacy_symtab.
9241 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9242 * psymtab.c (psymtab_to_symtab): Call method.
9243 (dump_psymtab): Update.
9244 * psympriv.h (struct partial_symtab): Add virtual destructor.
9245 <read_symtab>: New method.
9246 (struct legacy_symtab): New.
9247 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9248 (struct pst_map) <pst>: Now a legacy_psymtab.
9249 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9250 (new_psymtab): Use legacy_psymtab.
9251 * dwarf2read.h (struct dwarf2_psymtab): New.
9252 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9253 * dwarf2read.c (dwarf2_create_include_psymtab)
9254 (dwarf2_build_include_psymtabs, create_type_unit_group)
9255 (create_partial_symtab, process_psymtab_comp_unit_reader)
9256 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9257 (set_partial_user): Use dwarf2_psymtab.
9258 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9259 (psymtab_to_symtab_1, process_full_comp_unit)
9260 (process_full_type_unit, dwarf2_ranges_read)
9261 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9262 (dwarf_decode_lines): Use dwarf2_psymtab.
9263 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9264 (add_address_entry_worker, write_one_signatured_type)
9265 (recursively_count_psymbols, recursively_write_psymbols)
9266 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9267 (write_debug_names): Likewise.
9268 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9269 <pst>: Now a legacy_psymtab.
9270 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9271 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9272 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9273 * ctfread.c (struct ctf_psymtab): New.
9274 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9275 ctf_psymtab.
9276 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9277 (create_partial_symtab): Return a ctf_psymtab.
9278 (scan_partial_symbols): Update.
9279
c3693a1d
TT
92802020-01-26 Tom Tromey <tom@tromey.com>
9281
9282 * xcoffread.c (xcoff_start_psymtab): Use new.
9283 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9284 renamed from start_psymtab_common.
9285 * psympriv.h (struct partial_symtab): Add new constructor.
9286 (start_psymtab_common): Don't declare.
9287 * mdebugread.c (parse_partial_symbols): Use new.
9288 * dwarf2read.c (create_partial_symtab): Use new.
9289 * dbxread.c (start_psymtab): Use new.
9290 * ctfread.c (create_partial_symtab): Use new.
9291
32caafd0
TT
92922020-01-26 Tom Tromey <tom@tromey.com>
9293
9294 * xcoffread.c (xcoff_end_psymtab): Use new.
9295 * psymtab.c (start_psymtab_common): Use new.
9296 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9297 Update.
9298 * psympriv.h (struct partial_symtab): Add parameters to
9299 constructor. Don't inline.
9300 (allocate_psymtab): Don't declare.
9301 * mdebugread.c (new_psymtab): Use new.
9302 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9303 * dbxread.c (dbx_end_psymtab): Use new.
9304
abaa2f23
TT
93052020-01-26 Tom Tromey <tom@tromey.com>
9306
9307 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9308 allocate_psymtab. Update documentation.
9309 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9310 allocate_psymtab. Do not use new.
9311 (allocate_psymtab): Use new. Update.
9312
6d94535f
TT
93132020-01-26 Tom Tromey <tom@tromey.com>
9314
9315 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9316 * psymtab.c (psym_print_stats): Update.
9317 * psympriv.h (struct partial_symtab) <readin,
9318 psymtabs_addrmap_supported, anonymous>: Now bool.
9319 * mdebugread.c (psymtab_to_symtab_1): Update.
9320 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9321 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9322 (process_full_comp_unit, process_full_type_unit): Update.
9323 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9324 * ctfread.c (psymtab_to_symtab): Update.
9325
6f17252b
TT
93262020-01-26 Tom Tromey <tom@tromey.com>
9327
9328 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9329 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9330 * psymtab.c (psymtab_storage): Delete psymtabs.
9331 (psymtab_storage::allocate_psymtab): Use new.
9332 (psymtab_storage::discard_psymtab): Use delete.
9333 * psympriv.h (struct partial_symtab): Add constructor and
9334 initializers.
9335
f6f1cebc
TT
93362020-01-26 Tom Tromey <tom@tromey.com>
9337
9338 * machoread.c: Do not include psympriv.h.
9339
e47e48f6
PW
93402020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9341
9342 * NEWS: Mention the new option and the set/show commands.
9343
a2fedca9
PW
93442020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9345
9346 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9347 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9348 (validate_exec_file): New variables, enums, functions.
9349 (exec_file_locate_attach, print_section_info): Style the filenames.
9350 (_initialize_exec): Install show_exec_file_mismatch_command and
9351 set_exec_file_mismatch_command.
9352 * gdbcore.h (validate_exec_file): Declare.
9353 * infcmd.c (attach_command): Call validate_exec_file.
9354 * remote.c ( remote_target::remote_add_inferior): Likewise.
9355
7ffa82e1
AB
93562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9357
9358 * frame.c (find_frame_sal): Move call to get_next_frame into more
9359 inner scope.
9360 * inline-frame.c (inilne_state) <inline_state>: Update argument
9361 types.
9362 (inilne_state) <skipped_symbol>: Rename to...
9363 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9364 (skip_inline_frames): Build vector of skipped symbols and use this
9365 to reate the inline_state.
9366 (inline_skipped_symbol): Add a comment and some assertions, fetch
9367 skipped symbol from the list.
9368
3d92a3e3
AB
93692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9370
9371 * buildsym.c (lte_is_less_than): Delete.
9372 (buildsym_compunit::end_symtab_with_blockvector): Create local
9373 lambda function to sort line table entries, and use
9374 std::stable_sort instead of std::sort.
9375 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9376 markers when looking for a previous line.
9377
94a72be7
AB
93782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9379
9380 * dwarf2read.c (lnp_state_machine::record_line): Include
9381 end_sequence parameter in debug print out. Record the line if we
9382 are at an end_sequence marker even if it's not the start of a
9383 statement.
9384 * symmisc.c (maintenance_print_one_line_table): Print end of
9385 sequence markers with 'END' not '0'.
9386
53af73bf
PA
93872020-01-24 Pedro Alves <palves@redhat.com>
9388
9389 PR gdb/25410
9390 * thread.c (scoped_restore_current_thread::restore): Use
9391 switch_to_inferior_no_thread.
9392 * exec.c: Include "progspace-and-thread.h".
9393 (add_target_sections, remove_target_sections):
9394 scoped_restore_current_pspace_and_thread instead of
9395 scoped_restore_current_thread.
9396 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9397 and aspace to the inferior before calling clone_program_space.
9398 Remove stale comment.
9399
3050c6f4
CB
94002020-01-24 Christian Biesinger <cbiesinger@google.com>
9401
9402 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9403 (arm_netbsd_nat_target::fetch_registers): ...this.
9404 (arm_nbsd_nat_target::store_registers): Rename to...
9405 (arm_netbsd_nat_target::store_registers): ...this.
9406
73685c7e
CB
94072020-01-24 Christian Biesinger <cbiesinger@google.com>
9408
9409 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9410 register_t.
9411
89203d40
CB
94122020-01-24 Christian Biesinger <cbiesinger@google.com>
9413
9414 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9415 Update comment.
9416 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9417 Likewise.
9418 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9419 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9420 the correct replacement (iterate_over_regset_sections).
9421 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9422 Update comment.
9423
1ba1ac88
AB
94242020-01-24 Graham Markall <graham.markall@embecosm.com>
9425
9426 PR gdb/23718
9427 * gdb/python/python.c (execute_gdb_command): Call
9428 async_enable_stdin in catch block.
9429
f3364a6d
AB
94302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9431
9432 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9433 SWITCH_THRU_ALL_UIS.
9434
733d0a67
AB
94352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9436
9437 PR tui/9765
9438 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9439 comment, add extra parameter, and update to store previous symbol
9440 when appropriate.
9441 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9442 add extra parameter.
9443 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9444 remove unneeded parameter, add try/catch around gdb_print_insn,
9445 rewrite to add items to asm_lines vector.
9446 (tui_find_backward_disassembly_start_address): New function.
9447 (tui_find_disassembly_address): Updated throughout.
9448 (tui_disasm_window::set_contents): Update for changes to
9449 tui_disassemble.
9450 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9451 number of lines to scroll.
9452
b3b3bada
SM
94532020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9454
9455 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9456 (SECT_OFF_DATA): Likewise.
9457 (SECT_OFF_RODATA): Likewise.
9458 (SECT_OFF_TEXT): Likewise.
9459 (SECT_OFF_BSS): Likewise.
9460 (struct objfile) <text_section_offset, data_section_offset>: New
9461 methods.
9462 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9463 objfile::text_section_offset.
9464 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9465 * coffread.c (coff_symtab_read): Likewise.
9466 (enter_linenos): Likewise.
9467 (process_coff_symbol): Likewise.
9468 * ctfread.c (get_objfile_text_range): Likewise.
9469 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9470 Use objfile::data_section_offset.
9471 * dwarf2-frame.c (execute_cfa_program): Use
9472 objfile::text_section_offset.
9473 (dwarf2_frame_find_fde): Likewise.
9474 * dwarf2read.c (create_addrmap_from_index): Likewise.
9475 (create_addrmap_from_aranges): Likewise.
9476 (dw2_find_pc_sect_compunit_symtab): Likewise.
9477 (process_psymtab_comp_unit_reader): Likewise.
9478 (add_partial_symbol): Likewise.
9479 (add_partial_subprogram): Likewise.
9480 (process_full_comp_unit): Likewise.
9481 (read_file_scope): Likewise.
9482 (read_func_scope): Likewise.
9483 (read_lexical_block_scope): Likewise.
9484 (read_call_site_scope): Likewise.
9485 (dwarf2_rnglists_process): Likewise.
9486 (dwarf2_ranges_process): Likewise.
9487 (dwarf2_ranges_read): Likewise.
9488 (dwarf_decode_lines_1): Likewise.
9489 (new_symbol): Likewise.
9490 (dwarf2_fetch_die_loc_sect_off): Likewise.
9491 (dwarf2_per_cu_text_offset): Likewise.
9492 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9493 * hppa-tdep.c (read_unwind_info): Likewise.
9494 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9495 * psympriv.h (struct partial_symtab): Likewise.
9496 * psymtab.c (find_pc_sect_psymtab): Likewise.
9497 * solib-svr4.c (enable_break): Likewise.
9498 * stap-probe.c (relocate_address): Use
9499 objfile::data_section_offset.
9500 * xcoffread.c (enter_line_range): Use
9501 objfile::text_section_offset.
9502 (read_xcoff_symtab): Likewise.
9503
ab53f382
SM
95042020-01-23 Simon Marchi <simon.marchi@efficios.com>
9505
9506 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9507 declaration to narrower scopes.
9508
e7eee665
SM
95092020-01-23 Simon Marchi <simon.marchi@efficios.com>
9510
9511 * darwin-nat.h (struct darwin_exception_msg, enum
9512 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9513 Move up.
9514 (class darwin_nat_target) <wait_1, check_new_threads,
9515 decode_exception_message, decode_message, stop_inferior,
9516 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9517 * darwin-nat.c (darwin_check_new_threads): Rename to...
9518 (darwin_nat_target::check_new_threads): ... this.
9519 (darwin_suspend_inferior_it): Remove.
9520 (darwin_decode_exception_message): Rename to...
9521 (darwin_nat_target::decode_exception_message): ... this.
9522 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9523 (darwin_decode_message): Rename to...
9524 (darwin_nat_target::decode_message): ... this.
9525 (cancel_breakpoint): Rename to...
9526 (darwin_nat_target::cancel_breakpoint): ... this.
9527 (darwin_wait): Rename to...
9528 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9529 instead of iterate_over_inferiors.
9530 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9531 (darwin_stop_inferior): Rename to...
9532 (darwin_nat_target::stop_inferior): ... this.
9533 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9534 (darwin_init_thread_list): Rename to...
9535 (darwin_nat_target::init_thread_list): ... this.
9536 (darwin_ptrace_him): Rename to...
9537 (darwin_nat_target::ptrace_him): ... this.
9538 (darwin_nat_target::create_inferior): Pass lambda function to
9539 fork_inferior.
9540 (darwin_nat_target::detach): Call stop_inferior instead of
9541 darwin_stop_inferior.
9542 * fork-inferior.h (fork_inferior): Change init_trace_fun
9543 parameter to gdb::function_view.
9544 * fork-inferior.c (fork_inferior): Likewise.
9545
c162ed3e
HD
95462020-01-23 Hannes Domani <ssbssa@yahoo.de>
9547
9548 * i386-cygwin-tdep.c (core_process_module_section): Update.
9549 * windows-nat.c (struct lm_info_windows): Add text_offset.
9550 (windows_xfer_shared_libraries): Update.
9551 * windows-tdep.c (windows_xfer_shared_library):
9552 Add text_offset_cached argument.
9553 * windows-tdep.h (windows_xfer_shared_library): Update.
9554
a1237872
SM
95552020-01-21 Simon Marchi <simon.marchi@efficios.com>
9556
9557 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9558
b3ee6dd9
SM
95592020-01-21 Simon Marchi <simon.marchi@efficios.com>
9560
9561 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9562 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9563 replace with range-based for.
9564 (gdbsim_interrupt_inferior): Remove.
9565 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9566 with a range-based for. Inline code from
9567 gdbsim_interrupt_inferior.
9568
f9fac3c8
SM
95692020-01-21 Simon Marchi <simon.marchi@efficios.com>
9570
9571 * infrun.c (proceed): Fix indentation.
9572
f6474de9
TT
95732020-01-21 Tom Tromey <tromey@adacore.com>
9574
9575 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9576 * python/python.c (python_extension_ops): Update.
9577 (gdbpy_colorize): New function.
9578 * python/lib/gdb/__init__.py (colorize): New function.
9579 * extension.h (ext_lang_colorize): Declare.
9580 * extension.c (ext_lang_colorize): New function.
9581 * extension-priv.h (struct extension_language_ops) <colorize>: New
9582 member.
9583 * cli/cli-style.c (_initialize_cli_style): Update help text.
9584
f0c702d4
LM
95852020-01-21 Luis Machado <luis.machado@linaro.org>
9586
9587 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9588 <cond>: Change type to bool.
9589 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9590 (aarch64_displaced_step_cb): Likewise.
9591 (aarch64_displaced_step_tb): Likewise.
9592
1ab139e5
LM
95932020-01-21 Luis Machado <luis.machado@linaro.org>
9594
9595 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9596 output.
9597
0c271889
LM
95982020-01-21 Luis Machado <luis.machado@linaro.org>
9599
9600 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9601 <pc_adjust>: Adjust the documentation.
9602 (aarch64_displaced_step_fixup): Check if PC really moved before
9603 adjusting it.
9604
4d89c1c7
TT
96052020-01-19 Tom Tromey <tom@tromey.com>
9606
9607 * disasm.c (~gdb_disassembler): New destructor.
9608 (gdb_buffered_insn_length): Call disassemble_free_target.
9609 * disasm.h (class gdb_disassembler): Declare destructor. Use
9610 DISABLE_COPY_AND_ASSIGN.
9611
c0ab21c2
TT
96122020-01-19 Tom Tromey <tom@tromey.com>
9613
9614 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9615 (die_reader_func_ftype): Remove.
9616 (cutu_reader): New class.
9617 (dw2_get_file_names_reader): Remove "data" parameter.
9618 (dw2_get_file_names): Use cutu_reader.
9619 (create_debug_type_hash_table): Update.
9620 (read_cutu_die_from_dwo): Update comment.
9621 (lookup_dwo_unit): Add dwo_name parameter.
9622 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9623 die_reader_func_ftype and data parameters.
9624 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9625 Remove die_reader_func_ftype and data parameters.
9626 (~cutu_reader): New; from init_cutu_and_read_dies.
9627 (cutu_reader::cutu_reader): Rename from
9628 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9629 and data parameters.
9630 (init_cutu_and_read_dies_simple): Remove.
9631 (struct process_psymtab_comp_unit_data): Remove.
9632 (process_psymtab_comp_unit_reader): Remove data parameter; add
9633 want_partial_unit and pretend_language parameters.
9634 (process_psymtab_comp_unit): Use cutu_reader.
9635 (build_type_psymtabs_reader): Remove data parameter.
9636 (build_type_psymtabs_1): Use cutu_reader.
9637 (process_skeletonless_type_unit): Likewise.
9638 (load_partial_comp_unit_reader): Remove.
9639 (load_partial_comp_unit): Use cutu_reader.
9640 (load_full_comp_unit_reader): Remove.
9641 (load_full_comp_unit): Use cutu_reader.
9642 (struct create_dwo_cu_data): Remove.
9643 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9644 dwo_unit parameters.
9645 (create_cus_hash_table): Use cutu_reader.
9646 (struct dwarf2_read_addr_index_data): Remove.
9647 (dwarf2_read_addr_index_reader): Remove.
9648 (dwarf2_read_addr_index): Use cutu_reader.
9649 (read_signatured_type_reader): Remove.
9650 (read_signatured_type): Use cutu_reader.
9651
45bbae5c
TT
96522020-01-19 Tom Tromey <tom@tromey.com>
9653
9654 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9655 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9656 (tui_wrefresh): Declare.
9657 * tui/tui-wingeneral.c (suppress_output): New global.
9658 (tui_suppress_output, ~tui_suppress_output): New constructor and
9659 destructor.
9660 (tui_wrefresh): New function.
9661 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9662 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9663 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9664 method.
9665 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9666 tui_wrefresh.
9667 (tui_data_window::no_refresh): New method.
9668 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9669 (tui_reg_command): Use tui_suppress_output
9670 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9671 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9672 method.
9673 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9674
4f13c1c0
TT
96752020-01-19 Tom Tromey <tom@tromey.com>
9676
9677 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9678 Handle case where symtab is null.
9679
fa47e446
SM
96802020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9681
9682 * linux-fork.c (one_fork_p): Simplify.
9683
26f42329
SM
96842020-01-17 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * top.c (struct qt_args): Remove.
9687 (kill_or_detach): Change return type to void, replace `void *`
9688 parameter with a proper one.
9689 (print_inferior_quit_action): Likewise.
9690 (quit_confirm): Use range-based for loop to iterate over inferiors.
9691 (quit_force): Likewise.
9692
a9ac81b1
SM
96932020-01-17 Simon Marchi <simon.marchi@efficios.com>
9694
9695 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9696 `void *` parameter with proper parameters.
9697 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9698 (print_one_inferior): Change return type to void, replace `void *`
9699 parameter with proper parameters.
9700 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9701 inferiors.
9702 (get_other_inferior): Remove.
9703 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9704 inferiors.
9705
788eca49
SM
97062020-01-17 Simon Marchi <simon.marchi@efficios.com>
9707
9708 * mi/mi-interp.c (report_initial_inferior): Remove.
9709 (mi_interp::init): Use range-based for to iterate over inferiors.
9710
d9bc85b6
SM
97112020-01-17 Simon Marchi <simon.marchi@efficios.com>
9712
9713 * python/py-inferior.c (build_inferior_list): Remove.
9714 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9715
40c94099
CB
97162020-01-16 Christian Biesinger <cbiesinger@google.com>
9717
9718 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9719 (btrace_stitch_trace): Likewise.
9720 * charset.c (intermediate_encoding): Likewise (vaild).
9721 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9722 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9723 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9724
e0cdfe3c
HD
97252020-01-16 Hannes Domani <ssbssa@yahoo.de>
9726
9727 * windows-tdep.c (windows_get_tlb_type):
9728 Add rtl_user_process_parameters type.
9729
790f1718 97302020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9731 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9732
9733 PR build/24805
9734 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9735 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9736 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9737 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9738 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9739 (ps_plog): Redeclare exported functions with default visibility.
9740
3112ed97
NA
97412020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9742
9743 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9744 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9745
8dc3273e
SM
97462020-01-15 Simon Marchi <simon.marchi@efficios.com>
9747
9748 * infcmd.c (post_create_inferior): Use get_thread_regcache
9749 instead of get_current_regcache.
9750
ff47f4f0
TT
97512020-01-14 Tom Tromey <tom@tromey.com>
9752
9753 PR symtab/12535:
9754 * python/python.c (gdbpy_decode_line): Treat empty string the same
9755 as no argument.
9756
975f45b7
TT
97572020-01-14 Tom Tromey <tom@tromey.com>
9758
9759 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9760
25e57356
TT
97612020-01-14 Tom Tromey <tom@tromey.com>
9762
9763 * nat/linux-btrace.c: Don't include <config.h>.
9764 * nat/linux-ptrace.c: Don't include <config.h>.
9765 * nat/x86-linux-dregs.c: Don't include <config.h>.
9766
05ea2a05
TT
97672020-01-14 Tom Tromey <tom@tromey.com>
9768
9769 * configure: Rebuild.
9770 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9771
01027315
TT
97722020-01-14 Tom Tromey <tom@tromey.com>
9773
9774 * nat/x86-linux-dregs.c: Include configh.h.
9775 * nat/linux-ptrace.c: Include configh.h.
9776 * nat/linux-btrace.c: Include configh.h.
9777 * defs.h: Include config.h, bfd.h.
9778 * configure.ac: Don't source common.host.
9779 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9780 * configure: Rebuild.
9781 * acinclude.m4: Update path.
9782 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9783 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9784 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9785 (CLIBS): Add LIBSUPPORT.
9786 (CDEPS): Likewise.
9787 (COMMON_SFILES): Remove gdbsupport files.
9788 (HFILES_NO_SRCDIR): Likewise.
9789 (stamp-version): Update path to create-version.sh.
9790 (ALLDEPFILES): Remove gdbsupport files.
9791
b2ceabe8
TT
97922020-01-14 Tom Tromey <tom@tromey.com>
9793
9794 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9795 USE_WIN32API when needed.
9796 * configure.ac (USE_WIN32API): Don't define.
9797 (WIN32LIBS): Use WIN32APILIBS.
9798 * configure: Rebuild.
9799
25c51f71
TT
98002020-01-14 Tom Tromey <tom@tromey.com>
9801
9802 * configure: Rebuild.
9803 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9804
717c684d
BE
98052020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9806
9807 * skip.c (skip_function_command): Make skip w/o arguments use the
9808 name of the inlined function if pc is inside any inlined function.
9809
7da6a5b9
LM
98102020-01-14 Luis Machado <luis.machado@linaro.org>
9811
9812 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9813 * infrun.c (resume_1): Likewise.
9814 (handle_inferior_event): Remove stale comment.
9815 * linux-nat.c (linux_nat_target::resume): Update comments.
9816 (save_stop_reason): Likewise.
9817 (linux_nat_filter_event): Likewise.
9818 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9819
44e4c775
AB
98202020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9821
9822 * elfread.c (record_minimal_symbol): Set section index to 0 for
9823 non-allocatable sections.
9824
18a8505e
AT
9825
98262020-01-13 Ali Tamur <tamur@google.com>
9827
9828 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9829 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9830 to gdb::optional. Update comments.
9831 (dwo_file): Update comments.
9832 (read_attribute): Update API to take an additional out parameter,
9833 need_reprocess. This is used to mark attributes that need other
9834 attributes (e.g. str_offsets_base) for correct computation which may not
9835 have been read yet.
9836 (read_attribute_reprocess): New function declaration.
9837 (read_addr_index): Likewise.
9838 (read_dwo_str_index): Likewise.
9839 (read_stub_str_index): Likewise.
9840 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9841 (lookup_addr_base): New function definition.
9842 (lookup_ranges_base): Likewise.
9843 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9844 lookup_ranges_base.
9845 (init_cutu_and_read_dies): Update comments.
9846 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9847 unit. This is used to inherit parent's str_offsets_base and addr_base.
9848 Update comments.
9849 (init_cutu_and_read_dies_simple): Reflect API changes.
9850 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9851 (create_cus_hash_table): Change API to take parent compile unit.
9852 Reflect API changes.
9853 (open_and_init_dwo_file): Reflect API changes.
9854 (dwarf2_get_pc_bounds): Update comments.
9855 (dwarf2_record_block_ranges): Likewise.
9856 (read_full_die_1): Change implementation to reprocess attributes that
9857 need str_offsets_base and addr_base.
9858 (partial_die_info::read): Likewise.
9859 (read_attribute_reprocess): New function definition.
9860 (read_attribute_value): Change API to take an additional out parameter,
9861 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9862 when a non-dwo compile unit has index based attributes.
9863 (read_attribute): Reflect API changes.
9864 (read_addr_index_1): Reflect API changes. Update comments.
9865 (dwarf2_read_addr_index_data): Reflect API changes.
9866 (dwarf2_read_addr_index): Likewise.
9867 (read_str_index): Change API and implementation. This becomes a helper
9868 to be used by the new string index related methods. Update error
9869 message and comments.
9870 (read_dwo_str_index): New function definition.
9871 (read_stub_str_index): Likewise.
9872 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9873 * symfile.h (dwarf2_debug_sections): Likewise.
9874 * xcoffread.c (dwarf2_debug_sections): Likewise.
9875
0cac9354
SM
98762020-01-13 Simon Marchi <simon.marchi@efficios.com>
9877
9878 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9879 core_reg_sect type to gdb_byte *.
9880 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9881 * cris-tdep.c (fetch_core_registers): Likewise.
9882 * corelow.c (core_target::get_core_register_section): Change
9883 type of `contents` to gdb::byte_vector.
9884
9a6d629c
AB
98852020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9886
9887 * tui/tui-wingeneral.c (box_win): Position the title in the center
9888 of the border.
9889
d8b2f9e3
SM
98902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9891
9892 * corelow.c (core_target::get_core_register_section): Use
9893 std::vector instead of alloca.
9894
bb564c58
SM
98952020-01-13 Simon Marchi <simon.marchi@efficios.com>
9896
9897 * warning.m4: Add -Wmissing-declarations to build_warnings.
9898 * configure: Re-generate.
9899
6b366111
SM
99002020-01-13 Simon Marchi <simon.marchi@efficios.com>
9901
9902 * python/python.c (init__gdb_module): Add declaration.
9903
6c265988
SM
99042020-01-13 Simon Marchi <simon.marchi@efficios.com>
9905
9906 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9907 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9908 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9909 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9910 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9911 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9912 * ada-exp.y (_initialize_ada_exp): Add declaration.
9913 * ada-lang.c (_initialize_ada_language): Add declaration.
9914 * ada-tasks.c (_initialize_tasks): Add declaration.
9915 * agent.c (_initialize_agent): Add declaration.
9916 * aix-thread.c (_initialize_aix_thread): Add declaration.
9917 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9918 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9919 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9920 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9921 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9922 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9923 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9924 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9925 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9926 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9927 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9928 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9929 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9930 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9931 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9932 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9933 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9934 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9935 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9936 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9937 * annotate.c (_initialize_annotate): Add declaration.
9938 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9939 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9940 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9941 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9942 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9943 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9944 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9945 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9946 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9947 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9948 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9949 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9950 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9951 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9952 * auto-load.c (_initialize_auto_load): Add declaration.
9953 * auxv.c (_initialize_auxv): Add declaration.
9954 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9955 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9956 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9957 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9958 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9959 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9960 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9961 * breakpoint.c (_initialize_breakpoint): Add declaration.
9962 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9963 * btrace.c (_initialize_btrace): Add declaration.
9964 * charset.c (_initialize_charset): Add declaration.
9965 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9966 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9967 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9968 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9969 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9970 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9971 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9972 * coffread.c (_initialize_coffread): Add declaration.
9973 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9974 * compile/compile.c (_initialize_compile): Add declaration.
9975 * complaints.c (_initialize_complaints): Add declaration.
9976 * completer.c (_initialize_completer): Add declaration.
9977 * copying.c (_initialize_copying): Add declaration.
9978 * corefile.c (_initialize_core): Add declaration.
9979 * corelow.c (_initialize_corelow): Add declaration.
9980 * cp-abi.c (_initialize_cp_abi): Add declaration.
9981 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9982 * cp-support.c (_initialize_cp_support): Add declaration.
9983 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9984 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9985 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9986 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9987 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9988 * ctfread.c (_initialize_ctfread): Add declaration.
9989 * d-lang.c (_initialize_d_language): Add declaration.
9990 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9991 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9992 * dbxread.c (_initialize_dbxread): Add declaration.
9993 * dcache.c (_initialize_dcache): Add declaration.
9994 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9995 * disasm.c (_initialize_disasm): Add declaration.
9996 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9997 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9998 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9999 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10000 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10001 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10002 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10003 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10004 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10005 * elfread.c (_initialize_elfread): Add declaration.
10006 * exec.c (_initialize_exec): Add declaration.
10007 * extension.c (_initialize_extension): Add declaration.
10008 * f-lang.c (_initialize_f_language): Add declaration.
10009 * f-valprint.c (_initialize_f_valprint): Add declaration.
10010 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10011 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10012 * filesystem.c (_initialize_filesystem): Add declaration.
10013 * findcmd.c (_initialize_mem_search): Add declaration.
10014 * findvar.c (_initialize_findvar): Add declaration.
10015 * fork-child.c (_initialize_fork_child): Add declaration.
10016 * frame-base.c (_initialize_frame_base): Add declaration.
10017 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10018 * frame.c (_initialize_frame): Add declaration.
10019 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10020 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10021 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10022 * gcore.c (_initialize_gcore): Add declaration.
10023 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10024 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10025 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10026 * gdbarch.c (_initialize_gdbarch): Add declaration.
10027 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10028 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10029 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10030 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10031 * go-lang.c (_initialize_go_language): Add declaration.
10032 * go32-nat.c (_initialize_go32_nat): Add declaration.
10033 * guile/guile.c (_initialize_guile): Add declaration.
10034 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10035 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10036 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10037 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10038 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10039 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10040 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10041 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10042 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10043 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10044 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10045 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10046 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10047 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10048 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10049 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10050 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10051 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10052 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10053 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10054 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10055 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10056 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10057 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10058 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10059 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10060 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10061 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10062 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10063 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10064 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10065 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10066 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10067 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10068 * infcall.c (_initialize_infcall): Add declaration.
10069 * infcmd.c (_initialize_infcmd): Add declaration.
10070 * inflow.c (_initialize_inflow): Add declaration.
10071 * infrun.c (_initialize_infrun): Add declaration.
10072 * interps.c (_initialize_interpreter): Add declaration.
10073 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10074 * jit.c (_initialize_jit): Add declaration.
10075 * language.c (_initialize_language): Add declaration.
10076 * linux-fork.c (_initialize_linux_fork): Add declaration.
10077 * linux-nat.c (_initialize_linux_nat): Add declaration.
10078 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10079 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10080 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10081 * m2-lang.c (_initialize_m2_language): Add declaration.
10082 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10083 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10084 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10085 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10086 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10087 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10088 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10089 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10090 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10091 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10092 * machoread.c (_initialize_machoread): Add declaration.
10093 * macrocmd.c (_initialize_macrocmd): Add declaration.
10094 * macroscope.c (_initialize_macroscope): Add declaration.
10095 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10096 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10097 * maint.c (_initialize_maint_cmds): Add declaration.
10098 * mdebugread.c (_initialize_mdebugread): Add declaration.
10099 * memattr.c (_initialize_mem): Add declaration.
10100 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10101 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10102 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10103 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10104 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10105 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10106 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10107 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10108 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10109 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10110 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10111 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10112 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10113 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10114 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10115 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10116 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10117 * mipsread.c (_initialize_mipsread): Add declaration.
10118 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10119 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10120 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10121 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10122 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10123 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10124 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10125 * nto-procfs.c (_initialize_procfs): Add declaration.
10126 * objc-lang.c (_initialize_objc_language): Add declaration.
10127 * observable.c (_initialize_observer): Add declaration.
10128 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10129 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10130 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10131 * osabi.c (_initialize_gdb_osabi): Add declaration.
10132 * osdata.c (_initialize_osdata): Add declaration.
10133 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10134 * parse.c (_initialize_parse): Add declaration.
10135 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10136 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10137 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10138 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10139 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10140 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10141 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10142 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10143 * printcmd.c (_initialize_printcmd): Add declaration.
10144 * probe.c (_initialize_probe): Add declaration.
10145 * proc-api.c (_initialize_proc_api): Add declaration.
10146 * proc-events.c (_initialize_proc_events): Add declaration.
10147 * proc-service.c (_initialize_proc_service): Add declaration.
10148 * procfs.c (_initialize_procfs): Add declaration.
10149 * producer.c (_initialize_producer): Add declaration.
10150 * psymtab.c (_initialize_psymtab): Add declaration.
10151 * python/python.c (_initialize_python): Add declaration.
10152 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10153 * record-btrace.c (_initialize_record_btrace): Add declaration.
10154 * record-full.c (_initialize_record_full): Add declaration.
10155 * record.c (_initialize_record): Add declaration.
10156 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10157 * regcache.c (_initialize_regcache): Add declaration.
10158 * reggroups.c (_initialize_reggroup): Add declaration.
10159 * remote-notif.c (_initialize_notif): Add declaration.
10160 * remote-sim.c (_initialize_remote_sim): Add declaration.
10161 * remote.c (_initialize_remote): Add declaration.
10162 * reverse.c (_initialize_reverse): Add declaration.
10163 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10164 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10165 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10166 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10167 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10168 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10169 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10170 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10171 Add declaration.
10172 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10173 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10174 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10175 * rust-exp.y (_initialize_rust_exp): Add declaration.
10176 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10177 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10178 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10179 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10180 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10181 * score-tdep.c (_initialize_score_tdep): Add declaration.
10182 * ser-go32.c (_initialize_ser_dos): Add declaration.
10183 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10184 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10185 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10186 * ser-uds.c (_initialize_ser_socket): Add declaration.
10187 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10188 * serial.c (_initialize_serial): Add declaration.
10189 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10190 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10191 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10192 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10193 * skip.c (_initialize_step_skip): Add declaration.
10194 * sol-thread.c (_initialize_sol_thread): Add declaration.
10195 * solib-aix.c (_initialize_solib_aix): Add declaration.
10196 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10197 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10198 * solib-frv.c (_initialize_frv_solib): Add declaration.
10199 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10200 * solib-target.c (_initialize_solib_target): Add declaration.
10201 * solib.c (_initialize_solib): Add declaration.
10202 * source-cache.c (_initialize_source_cache): Add declaration.
10203 * source.c (_initialize_source): Add declaration.
10204 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10205 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10206 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10207 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10208 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10209 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10210 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10211 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10212 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10213 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10214 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10215 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10216 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10217 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10218 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10219 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10220 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10221 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10222 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10223 * stabsread.c (_initialize_stabsread): Add declaration.
10224 * stack.c (_initialize_stack): Add declaration.
10225 * stap-probe.c (_initialize_stap_probe): Add declaration.
10226 * std-regs.c (_initialize_frame_reg): Add declaration.
10227 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10228 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10229 * symfile.c (_initialize_symfile): Add declaration.
10230 * symmisc.c (_initialize_symmisc): Add declaration.
10231 * symtab.c (_initialize_symtab): Add declaration.
10232 * target.c (_initialize_target): Add declaration.
10233 * target-connection.c (_initialize_target_connection): Add
10234 declaration.
10235 * target-dcache.c (_initialize_target_dcache): Add declaration.
10236 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10237 * thread.c (_initialize_thread): Add declaration.
10238 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10239 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10240 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10241 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10242 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10243 * tracectf.c (_initialize_ctf): Add declaration.
10244 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10245 * tracefile.c (_initialize_tracefile): Add declaration.
10246 * tracepoint.c (_initialize_tracepoint): Add declaration.
10247 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10248 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10249 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10250 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10251 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10252 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10253 * tui/tui.c (_initialize_tui): Add declaration.
10254 * typeprint.c (_initialize_typeprint): Add declaration.
10255 * ui-style.c (_initialize_ui_style): Add declaration.
10256 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10257 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10258 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10259 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10260 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10261 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10262 * unittests/filtered_iterator-selftests.c
10263 (_initialize_filtered_iterator_selftests): Add declaration.
10264 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10265 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10266 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10267 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10268 * unittests/main-thread-selftests.c
10269 (_initialize_main_thread_selftests): Add declaration.
10270 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10271 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10272 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10273 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10274 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10275 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10276 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10277 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10278 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10279 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10280 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10281 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10282 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10283 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10284 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10285 declaration.
10286 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10287 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10288 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10289 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10290 * user-regs.c (_initialize_user_regs): Add declaration.
10291 * utils.c (_initialize_utils): Add declaration.
10292 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10293 * valops.c (_initialize_valops): Add declaration.
10294 * valprint.c (_initialize_valprint): Add declaration.
10295 * value.c (_initialize_values): Add declaration.
10296 * varobj.c (_initialize_varobj): Add declaration.
10297 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10298 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10299 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10300 * windows-nat.c (_initialize_windows_nat): Add declaration.
10301 (_initialize_check_for_gdb_ini): Add declaration.
10302 (_initialize_loadable): Add declaration.
10303 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10304 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10305 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10306 * xcoffread.c (_initialize_xcoffread): Add declaration.
10307 * xml-support.c (_initialize_xml_support): Add declaration.
10308 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10309 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10310 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10311 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10312
e2de1eec
SM
103132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10314
10315 * regformats/regdat.sh: Generate declaration for init function.
10316
e0037b4c
SM
103172020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10318
10319 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10320 up.
10321 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10322 close_one_inferior>: New methods.
10323 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10324 pass down target to find_inferior_pid.
10325 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10326 Pass down target to find_inferior_ptid.
10327 (gdbsim_target::create_inferior): Pass down target to
10328 add_thread_silent.
10329 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10330 target down to find_inferior_ptid and switch_to_thread.
10331 (gdbsim_target::close): Update to call close_one_inferior.
10332 (struct resume_data): Remove.
10333 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10334 directly, rather than through a void pointer.
10335 (gdbsim_target::resume): Update to call resume_one_inferior.
10336
58920b5b
SM
103372020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10338
10339 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10340
4ec89149
PA
103412020-01-12 Pedro Alves <palves@redhat.com>
10342
10343 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10344 directly for the current inferior instead of
10345 discard_all_inferiors.
10346 (discard_all_inferiors): Delete.
10347
7c392d1d
TT
103482020-01-11 Tom Tromey <tom@tromey.com>
10349
10350 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10351 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10352 deprecated_safe_get_selected_frame.
10353
d9ebdab7
TBA
103542020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10355
10356 * inferior.c (print_inferior): Switch inferior before printing it.
10357
f3c469b9
PA
103582020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10359 Pedro Alves <palves@redhat.com>
10360
10361 * progspace-and-thread.c (switch_to_program_space_and_thread):
10362 Assert there's an inferior for PSPACE. Use
10363 switch_to_inferior_no_thread to switch the inferior too.
10364 * progspace.c (program_space::~program_space): Call
10365 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10366 (program_space::free_all_objfiles): Don't call clear_symtab_users
10367 here.
10368 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10369
65c574f6
PA
103702020-01-10 Pedro Alves <palves@redhat.com>
10371
10372 * NEWS: Mention multi-target debugging, "info connections", and
10373 "add-inferior -no-connection".
10374
2f4fcf00
PA
103752020-01-10 Pedro Alves <palves@redhat.com>
10376
10377 * infrun.c: Include "target-connection.h".
10378 (check_multi_target_resumption): New.
10379 (proceed): Call it.
10380 * target-connection.c (make_target_connection_string): Make
10381 extern.
10382 * target-connection.h (make_target_connection_string): Declare.
10383
121b3efd
PA
103842020-01-10 Pedro Alves <palves@redhat.com>
10385
10386 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10387 * inferior.c (uiout_field_connection): New function.
10388 (print_inferior): Add new "connection-id" column.
10389 (add_inferior_command): Show connection number/string of added
10390 inferior.
10391 * process-stratum-target.h
10392 (process_stratum_target::connection_string): New virtual method.
10393 (process_stratum_target::connection_number): New field.
10394 * remote.c (remote_target::connection_string): New override.
10395 * target-connection.c: New file.
10396 * target-connection.h: New file.
10397 * target.c (decref_target): Remove process_stratum targets from
10398 the connection list.
10399 (target_stack::push): Add process_stratum targets to the
10400 connection list.
10401
4f837581
PA
104022020-01-10 Pedro Alves <palves@redhat.com>
10403
10404 Revert:
10405 2016-04-12 Pedro Alves <palves@redhat.com>
10406 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10407 Remove references to name.
10408 * serial.h (struct serial) <name>: Delete.
10409
f4ec508e
PA
104102020-01-10 Pedro Alves <palves@redhat.com>
10411
10412 * gdbarch-selftests.c (register_to_value_test): Remove "target
10413 already pushed" check.
10414
5b6d1e4f
PA
104152020-01-10 Pedro Alves <palves@redhat.com>
10416 John Baldwin <jhb@FreeBSD.org>
10417
10418 * aarch64-linux-nat.c
10419 (aarch64_linux_nat_target::thread_architecture): Adjust.
10420 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10421 (task_command_1): Likewise.
10422 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10423 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10424 (aix_thread_target::store_registers)
10425 (aix_thread_target::thread_alive): Adjust.
10426 * amd64-fbsd-tdep.c: Include "inferior.h".
10427 (amd64fbsd_get_thread_local_address): Pass down target.
10428 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10429 thread's gdbarch instead of target_gdbarch.
10430 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10431 get_last_target_status.
10432 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10433 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10434 inferiors.
10435 (update_inserted_breakpoint_locations): Skip if inferiors with no
10436 execution.
10437 (update_global_location_list): When handling moribund locations,
10438 find representative inferior for location's pspace, and use thread
10439 count of its process_stratum target.
10440 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10441 * bsd-uthread.c (bsd_uthread_target::wait): Use
10442 as_process_stratum_target and adjust thread_change_ptid and
10443 add_thread calls.
10444 (bsd_uthread_target::update_thread_list): Use
10445 as_process_stratum_target and adjust find_thread_ptid,
10446 thread_change_ptid and add_thread calls.
10447 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10448 find_thread_ptid call.
10449 * corelow.c (add_to_thread_list): Adjust add_thread call.
10450 (core_target_open): Adjust add_thread_silent and thread_count
10451 calls.
10452 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10453 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10454 * event-top.c (async_disconnect): Pop targets from all inferiors.
10455 * exec.c (add_target_sections): Push exec target on all inferiors
10456 sharing the program space.
10457 (remove_target_sections): Remove the exec target from all
10458 inferiors sharing the program space.
10459 (exec_on_vfork): New.
10460 * exec.h (exec_on_vfork): Declare.
10461 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10462 Pass it down.
10463 (fbsd_nat_target::update_thread_list): Adjust.
10464 (fbsd_nat_target::resume): Adjust.
10465 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10466 down.
10467 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10468 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10469 get_thread_arch_regcache call.
10470 * fork-child.c (gdb_startup_inferior): Pass target down to
10471 startup_inferior and set_executing.
10472 * gdbthread.h (struct process_stratum_target): Forward declare.
10473 (add_thread, add_thread_silent, add_thread_with_info)
10474 (in_thread_list): Add process_stratum_target parameter.
10475 (find_thread_ptid(inferior*, ptid_t)): New overload.
10476 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10477 parameter.
10478 (all_threads()): Delete overload.
10479 (all_threads, all_non_exited_threads): Add process_stratum_target
10480 parameter.
10481 (all_threads_safe): Use brace initialization.
10482 (thread_count): Add process_stratum_target parameter.
10483 (set_resumed, set_running, set_stop_requested, set_executing)
10484 (threads_are_executing, finish_thread_state): Add
10485 process_stratum_target parameter.
10486 (switch_to_thread): Use is_current_thread.
10487 * i386-fbsd-tdep.c: Include "inferior.h".
10488 (i386fbsd_get_thread_local_address): Pass down target.
10489 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10490 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10491 have_inferiors check.
10492 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10493 (inf_ptrace_target::attach): Adjust.
10494 * infcall.c (run_inferior_call): Adjust.
10495 * infcmd.c (run_command_1): Pass target to
10496 scoped_finish_thread_state.
10497 (proceed_thread_callback): Skip inferiors with no execution.
10498 (continue_command): Rename 'all_threads' local to avoid hiding
10499 'all_threads' function. Adjust get_last_target_status call.
10500 (prepare_one_step): Adjust set_running call.
10501 (signal_command): Use user_visible_resume_target. Compare thread
10502 pointers instead of inferior_ptid.
10503 (info_program_command): Adjust to pass down target.
10504 (attach_command): Mark target's 'thread_executing' flag.
10505 (stop_current_target_threads_ns): New, factored out from ...
10506 (interrupt_target_1): ... this. Switch inferior before making
10507 target calls.
10508 * inferior-iter.h
10509 (struct all_inferiors_iterator, struct all_inferiors_range)
10510 (struct all_inferiors_safe_range)
10511 (struct all_non_exited_inferiors_range): Filter on
10512 process_stratum_target too. Remove explicit.
10513 * inferior.c (inferior::inferior): Push dummy target on target
10514 stack.
10515 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10516 Add process_stratum_target parameter, and pass it down.
10517 (have_live_inferiors): Adjust.
10518 (switch_to_inferior_and_push_target): New.
10519 (add_inferior_command, clone_inferior_command): Handle
10520 "-no-connection" parameter. Use
10521 switch_to_inferior_and_push_target.
10522 (_initialize_inferior): Mention "-no-connection" option in
10523 the help of "add-inferior" and "clone-inferior" commands.
10524 * inferior.h: Include "process-stratum-target.h".
10525 (interrupt_target_1): Use bool.
10526 (struct inferior) <push_target, unpush_target, target_is_pushed,
10527 find_target_beneath, top_target, process_target, target_at,
10528 m_stack>: New.
10529 (discard_all_inferiors): Delete.
10530 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10531 (all_inferiors, all_non_exited_inferiors): Add
10532 process_stratum_target parameter.
10533 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10534 (target_last_proc_target): New global.
10535 (follow_fork_inferior): Push target on new inferior. Pass target
10536 to add_thread_silent. Call exec_on_vfork. Handle target's
10537 reference count.
10538 (follow_fork): Adjust get_last_target_status call. Also consider
10539 target.
10540 (follow_exec): Push target on new inferior.
10541 (struct execution_control_state) <target>: New field.
10542 (user_visible_resume_target): New.
10543 (do_target_resume): Call target_async.
10544 (resume_1): Set target's threads_executing flag. Consider resume
10545 target.
10546 (commit_resume_all_targets): New.
10547 (proceed): Also consider resume target. Skip threads of inferiors
10548 with no execution. Commit resumtion in all targets.
10549 (start_remote): Pass current inferior to wait_for_inferior.
10550 (infrun_thread_stop_requested): Consider target as well. Pass
10551 thread_info pointer to clear_inline_frame_state instead of ptid.
10552 (infrun_thread_thread_exit): Consider target as well.
10553 (random_pending_event_thread): New inferior parameter. Use it.
10554 (do_target_wait): Rename to ...
10555 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10556 down.
10557 (threads_are_resumed_pending_p, do_target_wait): New.
10558 (prepare_for_detach): Adjust calls.
10559 (wait_for_inferior): New inferior parameter. Handle it. Use
10560 do_target_wait_1 instead of do_target_wait.
10561 (fetch_inferior_event): Adjust. Switch to representative
10562 inferior. Pass target down.
10563 (set_last_target_status): Add process_stratum_target parameter.
10564 Save target in global.
10565 (get_last_target_status): Add process_stratum_target parameter and
10566 handle it.
10567 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10568 (context_switch): Check inferior_ptid == null_ptid before calling
10569 inferior_thread().
10570 (get_inferior_stop_soon): Pass down target.
10571 (wait_one): Rename to ...
10572 (poll_one_curr_target): ... this.
10573 (struct wait_one_event): New.
10574 (wait_one): New.
10575 (stop_all_threads): Adjust.
10576 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10577 event's target.
10578 (switch_back_to_stepped_thread): Also consider target.
10579 (print_stop_event): Update.
10580 (normal_stop): Update. Also consider the resume target.
10581 * infrun.h (wait_for_inferior): Remove declaration.
10582 (user_visible_resume_target): New declaration.
10583 (get_last_target_status, set_last_target_status): New
10584 process_stratum_target parameter.
10585 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10586 process_stratum_target parameter, and use it.
10587 (clear_inline_frame_state (thread_info*)): New.
10588 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10589 process_stratum_target parameter.
10590 (clear_inline_frame_state (thread_info*)): Declare.
10591 * linux-fork.c (delete_checkpoint_command): Pass target down to
10592 find_thread_ptid.
10593 (checkpoint_command): Adjust.
10594 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10595 instead of just tweaking inferior_ptid.
10596 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10597 (exit_lwp): Pass target down to find_thread_ptid.
10598 (attach_proc_task_lwp_callback): Pass target down to
10599 add_thread/set_running/set_executing.
10600 (linux_nat_target::attach): Pass target down to
10601 thread_change_ptid.
10602 (get_detach_signal): Pass target down to find_thread_ptid.
10603 Consider last target status's target.
10604 (linux_resume_one_lwp_throw, resume_lwp)
10605 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10606 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10607 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10608 (linux_nat_target::async_wait_fd): New.
10609 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10610 target down.
10611 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10612 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10613 * linux-thread-db.c (struct thread_db_info::process_target): New
10614 field.
10615 (add_thread_db_info): Save target.
10616 (get_thread_db_info): New process_stratum_target parameter. Also
10617 match target.
10618 (delete_thread_db_info): New process_stratum_target parameter.
10619 Also match target.
10620 (thread_from_lwp): Adjust to pass down target.
10621 (thread_db_notice_clone): Pass down target.
10622 (check_thread_db_callback): Pass down target.
10623 (try_thread_db_load_1): Always push the thread_db target.
10624 (try_thread_db_load, record_thread): Pass target down.
10625 (thread_db_target::detach): Pass target down. Always unpush the
10626 thread_db target.
10627 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10628 target down. Always unpush the thread_db target.
10629 (find_new_threads_callback, thread_db_find_new_threads_2)
10630 (thread_db_target::update_thread_list): Pass target down.
10631 (thread_db_target::pid_to_str): Pass current inferior down.
10632 (thread_db_target::get_thread_local_address): Pass target down.
10633 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10634 target down.
10635 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10636 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10637 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10638 (procfs_init_inferior): Rename to ...
10639 (procfs_target::procfs_init_inferior): ... this and adjust.
10640 (procfs_target::create_inferior, procfs_notice_thread)
10641 (procfs_do_thread_registers): Adjust.
10642 * ppc-fbsd-tdep.c: Include "inferior.h".
10643 (ppcfbsd_get_thread_local_address): Pass down target.
10644 * proc-service.c (ps_xfer_memory): Switch current inferior and
10645 program space as well.
10646 (get_ps_regcache): Pass target down.
10647 * process-stratum-target.c
10648 (process_stratum_target::thread_address_space)
10649 (process_stratum_target::thread_architecture): Pass target down.
10650 * process-stratum-target.h
10651 (process_stratum_target::threads_executing): New field.
10652 (as_process_stratum_target): New.
10653 * ravenscar-thread.c
10654 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10655 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10656 down.
10657 * record-btrace.c (record_btrace_target::info_record): Adjust.
10658 (record_btrace_target::record_method)
10659 (record_btrace_target::record_is_replaying)
10660 (record_btrace_target::fetch_registers)
10661 (get_thread_current_frame_id, record_btrace_target::resume)
10662 (record_btrace_target::wait, record_btrace_target::stop): Pass
10663 target down.
10664 * record-full.c (record_full_wait_1): Switch to event thread.
10665 Pass target down.
10666 * regcache.c (regcache::regcache)
10667 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10668 process_stratum_target parameter and handle it.
10669 (current_thread_target): New global.
10670 (get_thread_regcache): Add process_stratum_target parameter and
10671 handle it. Switch inferior before calling target method.
10672 (get_thread_regcache): Pass target down.
10673 (get_thread_regcache_for_ptid): Pass target down.
10674 (registers_changed_ptid): Add process_stratum_target parameter and
10675 handle it.
10676 (registers_changed_thread, registers_changed): Pass target down.
10677 (test_get_thread_arch_aspace_regcache): New.
10678 (current_regcache_test): Define a couple local test_target_ops
10679 instances and use them for testing.
10680 (readwrite_regcache): Pass process_stratum_target parameter.
10681 (cooked_read_test, cooked_write_test): Pass mock_target down.
10682 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10683 (get_thread_arch_aspace_regcache): Add process_stratum_target
10684 parameter.
10685 (regcache::target): New method.
10686 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10687 (regcache::registers_changed_ptid): Add process_stratum_target
10688 parameter.
10689 (regcache::m_target): New field.
10690 (registers_changed_ptid): Add process_stratum_target parameter.
10691 * remote.c (remote_state::supports_vCont_probed): New field.
10692 (remote_target::async_wait_fd): New method.
10693 (remote_unpush_and_throw): Add remote_target parameter.
10694 (get_current_remote_target): Adjust.
10695 (remote_target::remote_add_inferior): Push target.
10696 (remote_target::remote_add_thread)
10697 (remote_target::remote_notice_new_inferior)
10698 (get_remote_thread_info): Pass target down.
10699 (remote_target::update_thread_list): Skip threads of inferiors
10700 bound to other targets. (remote_target::close): Don't discard
10701 inferiors. (remote_target::add_current_inferior_and_thread)
10702 (remote_target::process_initial_stop_replies)
10703 (remote_target::start_remote)
10704 (remote_target::remote_serial_quit_handler): Pass down target.
10705 (remote_target::remote_unpush_target): New remote_target
10706 parameter. Unpush the target from all inferiors.
10707 (remote_target::remote_unpush_and_throw): New remote_target
10708 parameter. Pass it down.
10709 (remote_target::open_1): Check whether the current inferior has
10710 execution instead of checking whether any inferior is live. Pass
10711 target down.
10712 (remote_target::remote_detach_1): Pass down target. Use
10713 remote_unpush_target.
10714 (extended_remote_target::attach): Pass down target.
10715 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10716 (remote_target::append_resumption): Pass down target.
10717 (remote_target::append_pending_thread_resumptions)
10718 (remote_target::remote_resume_with_hc, remote_target::resume)
10719 (remote_target::commit_resume): Pass down target.
10720 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10721 (remote_target::interrupt_query)
10722 (remote_target::remove_new_fork_children)
10723 (remote_target::check_pending_events_prevent_wildcard_vcont)
10724 (remote_target::remote_parse_stop_reply)
10725 (remote_target::process_stop_reply): Pass down target.
10726 (first_remote_resumed_thread): New remote_target parameter. Pass
10727 it down.
10728 (remote_target::wait_as): Pass down target.
10729 (unpush_and_perror): New remote_target parameter. Pass it down.
10730 (remote_target::readchar, remote_target::remote_serial_write)
10731 (remote_target::getpkt_or_notif_sane_1)
10732 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10733 down target.
10734 (remote_target::mourn_inferior): Pass down target. Use
10735 remote_unpush_target.
10736 (remote_target::core_of_thread)
10737 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10738 (remote_target::pid_to_exec_file)
10739 (remote_target::thread_handle_to_thread_info): Pass down target.
10740 (remote_target::async_wait_fd): New.
10741 * riscv-fbsd-tdep.c: Include "inferior.h".
10742 (riscv_fbsd_get_thread_local_address): Pass down target.
10743 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10744 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10745 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10746 Adjust.
10747 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10748 * solib-svr4.c (enable_break): Pass down target.
10749 * spu-multiarch.c (parse_spufs_run): Pass down target.
10750 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10751 * target-delegates.c: Regenerate.
10752 * target.c (g_target_stack): Delete.
10753 (current_top_target): Return the current inferior's top target.
10754 (target_has_execution_1): Refer to the passed-in inferior's top
10755 target.
10756 (target_supports_terminal_ours): Check whether the initial
10757 inferior was already created.
10758 (decref_target): New.
10759 (target_stack::push): Incref/decref the target.
10760 (push_target, push_target, unpush_target): Adjust.
10761 (target_stack::unpush): Defref target.
10762 (target_is_pushed): Return bool. Adjust to refer to the current
10763 inferior's target stack.
10764 (dispose_inferior): Delete, and inline parts ...
10765 (target_preopen): ... here. Only dispose of the current inferior.
10766 (target_detach): Hold strong target reference while detaching.
10767 Pass target down.
10768 (target_thread_name): Add assertion.
10769 (target_resume): Pass down target.
10770 (target_ops::beneath, find_target_at): Adjust to refer to the
10771 current inferior's target stack.
10772 (get_dummy_target): New.
10773 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10774 has a thread running.
10775 (initialize_targets): Rename to ...
10776 (_initialize_target): ... this.
10777 * target.h: Include "gdbsupport/refcounted-object.h".
10778 (struct target_ops): Inherit refcounted_object.
10779 (target_ops::shortname, target_ops::longname): Make const.
10780 (target_ops::async_wait_fd): New method.
10781 (decref_target): Declare.
10782 (struct target_ops_ref_policy): New.
10783 (target_ops_ref): New typedef.
10784 (get_dummy_target): Declare function.
10785 (target_is_pushed): Return bool.
10786 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10787 (all_matching_threads_iterator::all_matching_threads_iterator):
10788 Handle filter target.
10789 * thread-iter.h (struct all_matching_threads_iterator, struct
10790 all_matching_threads_range, class all_non_exited_threads_range):
10791 Filter by target too. Remove explicit.
10792 * thread.c (threads_executing): Delete.
10793 (inferior_thread): Pass down current inferior.
10794 (clear_thread_inferior_resources): Pass down thread pointer
10795 instead of ptid_t.
10796 (add_thread_silent, add_thread_with_info, add_thread): Add
10797 process_stratum_target parameter. Use it for thread and inferior
10798 searches.
10799 (is_current_thread): New.
10800 (thread_info::deletable): Use it.
10801 (find_thread_ptid, thread_count, in_thread_list)
10802 (thread_change_ptid, set_resumed, set_running): New
10803 process_stratum_target parameter. Pass it down.
10804 (set_executing): New process_stratum_target parameter. Pass it
10805 down. Adjust reference to 'threads_executing'.
10806 (threads_are_executing): New process_stratum_target parameter.
10807 Adjust reference to 'threads_executing'.
10808 (set_stop_requested, finish_thread_state): New
10809 process_stratum_target parameter. Pass it down.
10810 (switch_to_thread): Also match inferior.
10811 (switch_to_thread): New process_stratum_target parameter. Pass it
10812 down.
10813 (update_threads_executing): Reimplement.
10814 * top.c (quit_force): Pop targets from all inferior.
10815 (gdb_init): Don't call initialize_targets.
10816 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10817 Declare.
10818 (windows_add_thread, windows_delete_thread): Adjust.
10819 (get_windows_debug_event): Rename to ...
10820 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10821 * tracefile-tfile.c (tfile_target_open): Pass down target.
10822 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10823 Forward declare.
10824 (switch_to_thread): Add process_stratum_target parameter.
10825 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10826 parameter. Use it.
10827 (mi_on_resume): Pass target down.
10828 * nat/fork-inferior.c (startup_inferior): Add
10829 process_stratum_target parameter. Pass it down.
10830 * nat/fork-inferior.h (startup_inferior): Add
10831 process_stratum_target parameter.
10832 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10833
75c6c844
PA
108342020-01-10 Pedro Alves <palves@redhat.com>
10835
10836 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10837 directly. Instead find the first thread in the thread list and
10838 use switch_to_thread.
10839
78f2c40a
PA
108402020-01-10 Pedro Alves <palves@redhat.com>
10841
10842 * remote.c (remote_target::remote_add_inferior): Don't bind a
10843 process to the current inferior if the current inferior is already
10844 bound to a process.
10845
e7af6c70
TBA
108462020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10847 Pedro Alves <palves@redhat.com>
10848
10849 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10850 If no process is specified, return null_ptid instead of
10851 inferior_ptid.
10852 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10853 TARGET_WAITKIND_SIGNALLED with no pid.
10854
31ba933e
PA
108552020-01-10 Pedro Alves <palves@redhat.com>
10856
10857 * remote.c (first_remote_resumed_thread): New.
10858 (remote_target::wait_as): Use it as default event_ptid instead of
10859 inferior_ptid.
10860
735fc2ca
PA
108612020-01-10 Pedro Alves <palves@redhat.com>
10862
10863 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10864
c17e02e1
PA
108652020-01-10 Pedro Alves <palves@redhat.com>
10866
10867 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10868 not -1.
10869
ab1ddbcf
PA
108702020-01-10 Pedro Alves <palves@redhat.com>
10871
10872 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10873 ptid to get_last_target_status.
10874 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10875 ptid to get_last_target_status.
10876 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10877 get_last_target_status.
10878 (info_program_command): Don't pass a target_waitstatus to
10879 get_last_target_status.
10880 * infrun.c (init_wait_for_inferior): Use
10881 nullify_last_target_wait_ptid.
10882 (get_last_target_status): Handle nullptr arguments.
10883 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10884 (print_stop_event): Don't pass a ptid to get_last_target_status.
10885 (normal_stop): Don't pass a ptid to get_last_target_status.
10886 * infrun.h (get_last_target_status, set_last_target_status): Move
10887 comments here and update.
10888 (nullify_last_target_wait_ptid): Declare.
10889 * linux-fork.c (fork_load_infrun_state): Remove local extern
10890 declaration of nullify_last_target_wait_ptid.
10891 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10892 to get_last_target_status.
10893
f3f8ece4
PA
108942020-01-10 Pedro Alves <palves@redhat.com>
10895
10896 * gdbthread.h (scoped_restore_current_thread)
10897 <dont_restore, restore, m_dont_restore>: Declare.
10898 * thread.c (thread_alive): Add assertion. Return bool.
10899 (switch_to_thread_if_alive): New.
10900 (prune_threads): Switch inferior/thread.
10901 (print_thread_info_1): Switch thread before calling target methods.
10902 (scoped_restore_current_thread::restore): New, factored out from
10903 ...
10904 (scoped_restore_current_thread::~scoped_restore_current_thread):
10905 ... this.
10906 (scoped_restore_current_thread::scoped_restore_current_thread):
10907 Add assertion.
10908 (thread_apply_all_command, thread_select): Use
10909 switch_to_thread_if_alive.
10910 * infrun.c (proceed, restart_threads, handle_signal_stop)
10911 (switch_back_to_stepped_thread): Switch current thread before
10912 calling target methods.
10913
db2d40f7
PA
109142020-01-10 Pedro Alves <palves@redhat.com>
10915
10916 * inferior.c (switch_to_inferior_no_thread): New function,
10917 factored out from ...
10918 (inferior_command): ... here.
10919 * inferior.h (switch_to_inferior_no_thread): Declare.
10920 * mi/mi-main.c (run_one_inferior): Use
10921 switch_to_inferior_no_thread.
10922
bd420a2d
PA
109232020-01-10 Pedro Alves <palves@redhat.com>
10924
10925 * infcmd.c (kill_command): Remove dead code.
10926
ddf5db90
PA
109272020-01-10 Pedro Alves <palves@redhat.com>
10928
10929 * remote.c (remote_target::mourn_inferior): No longer check
10930 whether the target is running.
10931
5018ce90
PA
109322020-01-10 Pedro Alves <palves@redhat.com>
10933
10934 * corelow.c (core_target::has_execution): Change parameter type to
10935 inferior pointer.
10936 * inferior.c (number_of_live_inferiors): Use
10937 inferior::has_execution instead of target_has_execution_1.
10938 * inferior.h (inferior::has_execution): New.
10939 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10940 inferior::has_execution instead of target_has_execution_1.
10941 * process-stratum-target.c
10942 (process_stratum_target::has_execution): Change parameter type to
10943 inferior pointer. Check the inferior's PID instead of
10944 inferior_ptid.
10945 * process-stratum-target.h
10946 (process_stratum_target::has_execution): Change parameter type to
10947 inferior pointer.
10948 * record-full.c (record_full_core_target::has_execution): Change
10949 parameter type to inferior pointer.
10950 * target.c (target_has_execution_1): Change parameter type to
10951 inferior pointer.
10952 (target_has_execution_current): Adjust.
10953 * target.h (target_ops::has_execution): Change parameter type to
10954 inferior pointer.
10955 (target_has_execution_1): Change parameter type to inferior
10956 pointer. Change return type to bool.
10957 * tracefile.h (tracefile_target::has_execution): Change parameter
10958 type to inferior pointer.
10959
74375d18
PA
109602020-01-10 Pedro Alves <palves@redhat.com>
10961
10962 * exceptions.c (print_flush): Remove current_top_target() check.
10963
acdf84a6
PA
109642020-01-10 Pedro Alves <palves@redhat.com>
10965
10966 * remote.c (show_remote_exec_file): Show the current inferior's
10967 exec-file instead of the command variable's value.
10968
ec506636
PA
109692020-01-10 Pedro Alves <palves@redhat.com>
10970
10971 * record-full.c (record_full_resume_ptid): New global.
10972 (record_full_target::resume): Set it.
10973 (record_full_wait_1): Use record_full_resume_ptid instead of
10974 inferior_ptid.
10975
873657b9
PA
109762020-01-10 Pedro Alves <palves@redhat.com>
10977
10978 * gdbthread.h (scoped_restore_current_thread)
10979 <dont_restore, restore, m_dont_restore>: Declare.
10980 * thread.c (thread_alive): Add assertion. Return bool.
10981 (switch_to_thread_if_alive): New.
10982 (prune_threads): Switch inferior/thread.
10983 (print_thread_info_1): Switch thread before calling target methods.
10984 (scoped_restore_current_thread::restore): New, factored out from
10985 ...
10986 (scoped_restore_current_thread::~scoped_restore_current_thread):
10987 ... this.
10988 (scoped_restore_current_thread::scoped_restore_current_thread):
10989 Add assertion.
10990 (thread_apply_all_command, thread_select): Use
10991 switch_to_thread_if_alive.
10992
7f0ae84c
GB
109932020-01-10 George Barrett <bob@bob131.so>
10994
10995 * stap-probe.c (stap_modify_semaphore): Don't check for null
10996 semaphores.
10997 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10998 for null semaphores.
10999
f5a7c406
AB
110002020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11001
11002 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11003 all source windows, and maintain horizontal scroll status while
11004 doing so.
11005
9ae6bf64
TT
110062020-01-09 Tom Tromey <tom@tromey.com>
11007
11008 PR tui/18932:
11009 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11010 update_source_window, not print_source_lines.
11011
b2efe70c
AB
110122020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11013
11014 * tui/tui.c (tui_enable): Register tui hooks after calling
11015 tui_display_main.
11016
5f23a082
CB
110172020-01-09 Christian Biesinger <cbiesinger@google.com>
11018
11019 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11020
3061113b
SM
110212020-01-08 Simon Marchi <simon.marchi@efficios.com>
11022
11023 * thread.c (print_thread_info_1): Fix indentation.
11024
57d75002
CB
110252020-01-09 Christian Biesinger <cbiesinger@google.com>
11026
11027 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11028 unique_xmalloc_ptr outside the if to always free the demangled name.
11029
6a053cb1
TT
110302020-01-08 Tom Tromey <tromey@adacore.com>
11031
11032 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11033 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11034 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11035 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11036 Remove.
11037 (section_offsets): New typedef.
11038 * symtab.c (fixup_section, get_msymbol_address): Update.
11039 * symmisc.c (dump_msymbols): Update.
11040 * symfile.h (relative_addr_info_to_section_offsets)
11041 (symfile_map_offsets_to_segments): Update.
11042 * symfile.c (build_section_addr_info_from_objfile)
11043 (init_objfile_sect_indices): Update.
11044 (struct place_section_arg): Change type of "offsets".
11045 (place_section): Update.
11046 (relative_addr_info_to_section_offsets): Change type of
11047 "section_offsets". Remove "num_sections" parameter.
11048 (default_symfile_offsets, syms_from_objfile_1)
11049 (set_objfile_default_section_offset): Update.
11050 (reread_symbols): No need to preserve section offsets by hand.
11051 (symfile_map_offsets_to_segments): Change type of "offsets".
11052 * stap-probe.c (relocate_address): Update.
11053 * stabsread.h (process_one_symbol): Update.
11054 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11055 (solib_target_relocate_section_addresses): Update.
11056 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11057 Update.
11058 * solib-frv.c (frv_relocate_main_executable): Update.
11059 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11060 * solib-aix.c (solib_aix_get_section_offsets): Change return
11061 type.
11062 (solib_aix_solib_create_inferior_hook): Update.
11063 * remote.c (remote_target::get_offsets): Update.
11064 * psymtab.c (find_pc_sect_psymtab): Update.
11065 * psympriv.h (struct partial_symbol) <address, text_low,
11066 text_high>: Update.
11067 * objfiles.h (obj_section_offset): Update.
11068 (struct objfile) <section_offsets>: Change type.
11069 <num_sections>: Remove.
11070 (objfile_relocate): Update.
11071 * objfiles.c (entry_point_address_query): Update
11072 (relocate_one_symbol): Change type of "section_offsets".
11073 (objfile_relocate1, objfile_relocate1): Change type of
11074 "new_offsets".
11075 (objfile_rebase1): Update.
11076 * mipsread.c (mipscoff_symfile_read): Update.
11077 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11078 parameter.
11079 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11080 (parse_external, psymtab_to_symtab_1): Update.
11081 * machoread.c (macho_symfile_offsets): Update.
11082 * ia64-tdep.c (ia64_find_unwind_table): Update.
11083 * hppa-tdep.c (read_unwind_info): Update.
11084 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11085 * dwarf2read.c (create_addrmap_from_index)
11086 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11087 (process_psymtab_comp_unit_reader, add_partial_symbol)
11088 (add_partial_subprogram, process_full_comp_unit)
11089 (read_file_scope, read_func_scope, read_lexical_block_scope)
11090 (read_call_site_scope, dwarf2_rnglists_process)
11091 (dwarf2_ranges_process, dwarf2_ranges_read)
11092 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11093 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11094 Update.
11095 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11096 Update.
11097 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11098 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11099 (process_one_symbol): Change type of "section_offsets".
11100 * ctfread.c (get_objfile_text_range): Update.
11101 * coffread.c (coff_symtab_read, enter_linenos)
11102 (process_coff_symbol): Update.
11103 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11104 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11105
456e800a
TT
111062020-01-08 Tom Tromey <tromey@adacore.com>
11107
11108 * dwarf2read.c (parse_macro_definition): Use std::string.
11109 (parse_macro_definition): Likewise.
11110
6dfa2fc2
TT
111112020-01-08 Tom Tromey <tromey@adacore.com>
11112
11113 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11114 (ATTR_ALLOC_CHUNK): Remove.
11115
421d1616
TT
111162020-01-08 Tom Tromey <tromey@adacore.com>
11117
11118 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11119
43816ebc
TT
111202020-01-08 Tom Tromey <tromey@adacore.com>
11121
11122 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11123 (dwarf2_compute_name, open_dwo_file): Likewise.
11124 (process_enumeration_scope): Use std::vector.
11125 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11126 (partial_die_info::fixup, dwarf2_start_subfile)
11127 (guess_full_die_structure_name, dwarf2_name): Likewise.
11128 (determine_prefix): Update.
11129 (guess_full_die_structure_name): Make return type const.
11130 (partial_die_full_name): Return unique_xmalloc_ptr.
11131 (DW_FIELD_ALLOC_CHUNK): Remove.
11132
4212d509
TT
111332020-01-07 Tom Tromey <tromey@adacore.com>
11134
11135 PR build/24937:
11136 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11137
06a6207a
JT
111382020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11139
11140 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11141
153d79c4
AB
111422020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11143
11144 * stack.c (print_frame_info): Move disassemble_next_line code
11145 inside source_print block.
11146
66182876
EZ
111472020-01-06 Eli Zaretskii <eliz@gnu.org>
11148
11149 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11150 gdb/signals.h, as we are now using native signal symbols.
11151
cbfa8581
SV
111522020-01-06 Shahab Vahedi <shahab@synopsys.com>
11153
11154 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11155 overflow by an early check of content vs threshold.
aac66a4c 11156 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11157 Likewise.
11158
3f602821
EZ
111592020-01-06 Eli Zaretskii <eliz@gnu.org>
11160
11161 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11162
a08c904d
JT
111632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11164
11165 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11166 export table if no section contains it's RVA.
11167
89a65580
EZ
111682020-01-06 Eli Zaretskii <eliz@gnu.org>
11169
11170 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11171
8b7fcda2
HD
111722020-01-06 Hannes Domani <ssbssa@yahoo.de>
11173
11174 * source.c (print_source_lines_base): Set last_line_listed.
11175
a61b4f69
SV
111762020-01-06 Shahab Vahedi <shahab@synopsys.com>
11177
11178 * tui/tui-disasm.c: Remove trailing spaces.
11179
559e7e50
EZ
111802020-01-06 Eli Zaretskii <eliz@gnu.org>
11181 Pedro Alves <palves@redhat.com>
11182
11183 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11184 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11185 (windows_gdb_signal_to_target): New function, uses the above
11186 enumeration to convert GDB internal signal codes to equivalent
11187 Windows codes.
11188 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11189 * windows-nat.c: Include "gdb_wait.h".
11190 (get_windows_debug_event): Extract the fatal exception from the
11191 exit status and convert to the equivalent Posix signal number.
11192 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11193 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11194 * gdbsupport/gdb_wait.c: New file, implements
11195 windows_status_to_termsig.
11196 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11197 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11198
f2302a34
AB
111992020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11200
11201 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11202 show_layout.
11203
6a5206eb
LM
112042020-01-05 Luis Machado <luis.machado@linaro.org>
11205
11206 * aarch64-linux-nat.c
11207 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11208 and bfd_mach_aarch64.
11209
6ec1d75e
PW
112102020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11211
11212 * ui-file.c (stdio_file::can_emit_style_escape)
11213 (tee_file::can_emit_style_escape): Ensure style is used also on
11214 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11215 to gdb_stdout.
11216 * main.c (set_gdb_data_directory): Use file style to output the
11217 warning that the given pathname is not a directory.
11218 * top.c (show_history_filename, gdb_safe_append_history)
11219 (show_gdb_datadir): Use file style.
11220
44f81a76
HD
112212020-01-03 Hannes Domani <ssbssa@yahoo.de>
11222
11223 * solib-target.c (struct lm_info_target):
11224 Change offsets to be a unique_xmalloc_ptr.
11225 (solib_target_relocate_section_addresses): Update.
11226
25057eb0
HD
112272020-01-03 Hannes Domani <ssbssa@yahoo.de>
11228
11229 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11230
6e2118f5
BE
112312020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11232
11233 * MAINTAINERS (Write After Approval): Add myself.
11234
8133c7dc
LM
112352020-01-02 Luis Machado <luis.machado@linaro.org>
11236
11237 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11238 Cell BE architecture.
11239 * target.h (struct target_ops) <thread_architecture>: Likewise.
11240
48189bec
HD
112412020-01-01 Hannes Domani <ssbssa@yahoo.de>
11242
11243 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11244
ead1063b
HD
112452020-01-01 Hannes Domani <ssbssa@yahoo.de>
11246
11247 * MAINTAINERS (Write After Approval): Add myself.
11248
e5d78223
JB
112492020-01-01 Joel Brobecker <brobecker@adacore.com>
11250
11251 * gdbarch.sh: Update copyright year range of generated files.
11252
b811d2c2
JB
112532020-01-01 Joel Brobecker <brobecker@adacore.com>
11254
11255 Update copyright year range in all GDB files.
11256
5f4def5c
JB
112572020-01-01 Joel Brobecker <brobecker@adacore.com>
11258
11259 * copyright.py: Convert to Python 3.
11260
51fd4002
JB
112612020-01-01 Joel Brobecker <brobecker@adacore.com>
11262
11263 * copyright.py: Adapt after move of gnulib directory from gdb
11264 directory to toplevel directory.
11265
5fb651f2
JB
112662020-01-01 Joel Brobecker <brobecker@adacore.com>
11267
11268 * copyright.py (main): Exit if run from the wrong directory.
11269
5dd8bf88
JB
112702020-01-01 Joel Brobecker <brobecker@adacore.com>
11271
11272 * top.c (print_gdb_version): Change copyright year to 2020.
11273
9f71dacb 112742020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11275
9f71dacb 11276 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11277
9f71dacb 11278For older changes see ChangeLog-2019.
c906108c
SS
11279\f
11280Local Variables:
11281mode: change-log
11282left-margin: 8
11283fill-column: 74
11284version-control: never
57da7796 11285coding: utf-8
c906108c 11286End: