]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb, gdbserver: make stopped_pids global variables static
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
05c309a8
SM
12020-07-21 Simon Marchi <simon.marchi@efficios.com>
2
3 * linux-nat.c (stopped_pids): Make static.
4
d1fd641e
SM
52020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6
7 PR ada/26235
8 * gdbtypes.c (ada_discrete_type_low_bound,
9 ada_discrete_type_high_bound): Handle undefined bounds.
10
1de14d77
KR
112020-07-21 Kamil Rytarowski <n54@gmx.com>
12
13 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
14 declaration.
15 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
16 function.
17
ed810cc7
JB
182020-07-20 John Baldwin <jhb@FreeBSD.org>
19
20 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
21 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
22 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
23 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
24 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
25 method.
26
ae5369e7
LC
272020-07-20 Ludovic Courtès <ludo@gnu.org>
28
29 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
30 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
31 which are deprecated in Guile 3.0.
32 * configure.ac (try_guile_versions): Add "guile-3.0".
33 * configure (try_guile_versions): Regenerate.
34 * NEWS: Update entry.
35
68cf161c
LC
362020-07-20 Ludovic Courtès <ludo@gnu.org>
37 Doug Evans <dje@google.com>
38
39 PR gdb/21104
40 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
41 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
42 USING_GUILE_BEFORE_2_2.
43 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
44 Change type to 'scm_t_port_type *'.
45 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
46 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
47 parameter and honor it. Update callers.
48 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
49 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
50 functions.
51 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
52 USING_GUILE_BEFORE_2_2.
53 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
54 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
55 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
56 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
57 and 'SCM_PORT_TYPE'.
58 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
59 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
60 (gdbscm_memory_port_read, gdbscm_memory_port_write)
61 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
62 [!USING_GUILE_BEFORE_2_2]: New functions.
63 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
64 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
65 'gdbscm_memory_port_read'.
66 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
67 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
68 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
69 function.
70 (ioscm_init_memory_port): Remove.
71 (ioscm_init_memory_port_stream): New function
72 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
73 function.
74 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
75 Return scm_from_uint (0).
76 (gdbscm_set_memory_port_read_buffer_size_x)
77 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
78 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
79 Return scm_from_uint (0).
80 (gdbscm_set_memory_port_write_buffer_size_x)
81 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
82 * configure.ac (try_guile_versions): Add "guile-2.2".
83 * configure: Regenerate.
84 * NEWS: Add entry.
85
aee91db3
TT
862020-07-18 Tom Tromey <tom@tromey.com>
87
88 * linux-nat.c (linux_multi_process): Remove.
89 (linux_nat_target::supports_multi_process): Return true.
90
0e267416
AB
912020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
92
93 * arch/riscv.c (riscv_tdesc_cache): Change map type.
94 (riscv_lookup_target_description): Return pointer out of
95 unique_ptr.
96 * target-descriptions.c (allocate_target_description): Add
97 comment.
98 (target_desc_deleter::operator()): Likewise.
99 * target-descriptions.h (struct target_desc_deleter): Moved to
100 gdbsupport/tdesc.h.
101 (target_desc_up): Likewise.
102
f80c8ec4
TT
1032020-07-17 Tom Tromey <tromey@adacore.com>
104
105 * linux-nat.c (linux_nat_target::supports_non_stop)
106 (linux_nat_target::always_non_stop_p): Use "true".
107 (linux_nat_target::supports_disable_randomization): Use "true" and
108 "false".
109
d0ce17d8
CT
1102020-07-16 Caroline Tice <cmtice@google.com>
111
112 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
113 (RNGLIST_HEADER_SIZE64): New constant definition.
114 (struct dwop_section_names): Add rnglists_dwo.
115 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
116 (struct loclist_header): Rename to 'loclists_rnglists_header'.
117 (struct dwo_sections): Add rnglists field.
118 (read_attribut_reprocess): Add tag parameter.
119 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
120 (cu_debug_rnglists_section): New function (decl & definition).
121 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
122 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
123 die whose range is being checked; get rnglist section from
124 cu_debug_rnglists_section, to get from either objfile or dwo file as
125 appropriate. Add cases for DW_RLE_base_addressx,
126 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
127 the base address to DW_RLE_offset_pairs (not to all ranges), moving
128 test inside if-condition and updating complaint message.
129 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
130 dwarf2_rnglists_process.
131 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
132 dwarf2_ranges_process.
133 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
134 need_ranges_base and update comment appropriately. Also pass die tag
135 to dwarf2_ranges_read.
136 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
137 need_ranges_base and update comment appropriately. Also pass die tag
138 to dwarf2_ranges_process.
139 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
140 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
141 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
142 need_ranges_base and update comment appropriately. Also pass die tag
143 to read_attribute_reprocess and dwarf2_ranges_read.
144 (read_loclist_header): Rename function to read_loclists_rnglists_header,
145 and update function comment appropriately.
146 (read_loclist_index): Call read_loclists_rnglists_header instead of
147 read_loclist_header.
148 (read_rnglist_index): New function.
149 (read_attribute_reprocess): Add tag parameter. Add code for
150 DW_FORM_rnglistx, passing tag to read_rnglist_index.
151 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
152
3dcc261c
AB
1532020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
154
155 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
156 being resolved.
157
ccb9eba6
AB
1582020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
159
160 * arch-utils.c (show_architecture): Update formatting of messages.
161
cf88be68
SM
1622020-07-12 Simon Marchi <simon.marchi@efficios.com>
163
164 * gdbtypes.h (struct type) <bounds>: Handle array and string
165 types.
166 * ada-lang.c (assign_aggregate): Use type::bounds on
167 array/string type.
168 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
169 * c-varobj.c (c_number_of_children): Likewise.
170 (c_describe_child): Likewise.
171 * eval.c (evaluate_subexp_for_sizeof): Likewise.
172 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
173 (f_type_print_base): Likewise.
174 * f-valprint.c (f77_array_offset_tbl): Likewise.
175 (f77_get_upperbound): Likewise.
176 (f77_print_array_1): Likewise.
177 * guile/scm-type.c (gdbscm_type_range): Likewise.
178 * m2-typeprint.c (m2_array): Likewise.
179 (m2_is_long_set_of_type): Likewise.
180 * m2-valprint.c (get_long_set_bounds): Likewise.
181 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
182 * python/py-type.c (typy_range): Likewise.
183 * rust-lang.c (rust_internal_print_type): Likewise.
184 * type-stack.c (type_stack::follow_types): Likewise.
185 * valarith.c (value_subscripted_rvalue): Likewise.
186 * valops.c (value_cast): Likewise.
187
509971ae
SM
1882020-07-12 Simon Marchi <simon.marchi@efficios.com>
189
190 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
191 callers to use the equivalent accessor methods.
192
107406b7
SM
1932020-07-12 Simon Marchi <simon.marchi@efficios.com>
194
195 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
196 (struct type) <bit_stride>: New method.
197 (TYPE_BIT_STRIDE): Remove.
198 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
199
bb789949
SM
2002020-07-12 Simon Marchi <simon.marchi@efficios.com>
201
202 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
203 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
204 callers to use the equivalent accessor methods instead.
205
39498edb
SM
2062020-07-12 Simon Marchi <simon.marchi@efficios.com>
207
208 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
209 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
210 callers to use the equivalent accessor methods instead.
211
3b606f38
SM
2122020-07-12 Simon Marchi <simon.marchi@efficios.com>
213
214 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
215 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
216 to use dynamic_prop::kind.
217
064d9cb9
SM
2182020-07-12 Simon Marchi <simon.marchi@efficios.com>
219
220 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
221 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
222 to get the bound property's kind and check against
223 PROP_UNDEFINED.
224
5537ddd0
SM
2252020-07-12 Simon Marchi <simon.marchi@efficios.com>
226
227 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
228 all callers to use type::range_bounds followed by
229 dynamic_prop::{low,high}.
230
8c2e4e06
SM
2312020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
232
233 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
234 const_val, set_const_val, baton, set_locexpr, set_loclist,
235 set_addr_offset, variant_parts, set_variant_parts,
236 original_type, set_original_type>: New methods.
237 <kind>: Rename to...
238 <m_kind>: ... this. Update all users to use the new methods
239 instead.
240 <data>: Rename to...
241 <m_data>: ... this. Update all users to use the new methods
242 instead.
243
7c6f2712
SM
2442020-07-12 Simon Marchi <simon.marchi@efficios.com>
245
246 * gdbtypes.c (get_discrete_bounds): Return failure if
247 the range type's bounds are not both defined and constant
248 values.
249 (get_array_bounds): Update comment. Remove undefined bound check.
250
599088e3
SM
2512020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
252
253 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
254 the type::bounds method directly.
255
c4dfcb36
SM
2562020-07-12 Simon Marchi <simon.marchi@efficios.com>
257
258 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
259 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
260 are used to set the range type's bounds to use set_bounds.
261
0a278aa7
PW
2622020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
263
264 * exec.c (_initialize_exec): Update exec-file-mismatch help.
265
cce20f10
PA
2662020-07-10 Pedro Alves <pedro@palves.net>
267
268 * gdbthread.h (inferior_ref): Define.
269 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
270 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
271 * thread.c
272 (scoped_restore_current_thread::restore):
273 Adjust to gdb::ref_ptr.
274 (scoped_restore_current_thread::~scoped_restore_current_thread):
275 Remove manual decref handling.
276 (scoped_restore_current_thread::scoped_restore_current_thread):
277 Adjust to use
278 inferior_ref::new_reference/thread_info_ref::new_reference.
279 Incref the thread before calling get_frame_id instead of after.
280 Let TARGET_CLOSE_ERROR propagate.
281
6d7aa592
PA
2822020-07-10 Pedro Alves <pedro@palves.net>
283
284 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
285 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
286 NOT_AVAILABLE_ERROR.
287 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
288 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
289
b3e3a4c1
SM
2902020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
291 Pedro Alves <pedro@palves.net>
292
293 PR gdb/26199
294 * infrun.c (threads_are_resumed_pending_p): Delete.
295 (do_target_wait): Remove threads_are_executing and
296 threads_are_resumed_pending_p checks from the inferior_matches
297 lambda. Update comments.
298
d6cc5d98
PA
2992020-07-10 Pedro Alves <pedro@palves.net>
300
301 PR gdb/26199
302 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
303 executing threads.
304
7d3badc6
PA
3052020-07-10 Pedro Alves <pedro@palves.net>
306
307 PR gdb/26199
308 * infrun.c (handle_no_resumed): Handle multiple targets.
309
42bd97a6
PA
3102020-07-10 Pedro Alves <pedro@palves.net>
311
312 PR gdb/26199
313 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
314 target_is_async_p.
315
43667cc6
PA
3162020-07-10 Pedro Alves <pedro@palves.net>
317
318 PR gdb/26199
319 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
320 threads, not all threads.
321
96118d11
PA
3222020-07-10 Pedro Alves <pedro@palves.net>
323
324 PR gdb/26199
325 * remote.c (remote_target::open_1): Pass remote target pointer as
326 data to create_async_event_handler.
327 (remote_async_inferior_event_handler): Mark async event handler
328 before returning if the remote target still has either pending
329 events or unacknowledged notifications.
330
54904d81
JB
3312020-07-10 John Baldwin <jhb@FreeBSD.org>
332
333 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
334 declaration.
335 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
336 function.
337
f37e5866
JB
3382020-07-09 John Baldwin <jhb@FreeBSD.org>
339
340 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
341 inferior_ptid.
342
fc238d4a
JB
3432020-07-09 John Baldwin <jhb@FreeBSD.org>
344
345 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
346 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
347 AT_FREEBSD_PS_STRINGS.
348
6e2469ff
HD
3492020-07-08 Hannes Domani <ssbssa@yahoo.de>
350
351 * auto-load.c (auto_load_objfile_script_1): Convert drive part
352 of debugfile path on Windows.
353
d1076c41
JB
3542020-07-08 John Baldwin <jhb@FreeBSD.org>
355
356 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
357 argument to 'data'.
358
15f3b077
TT
3592020-07-08 Tom Tromey <tromey@adacore.com>
360
361 * ada-lang.c (ada_exception_message_1): Use read_memory.
362
9fc501fd
AB
3632020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
364
365 PR python/22748
366 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
367 special handling for inline frames.
368 * findvar.c (value_of_register_lazy): Skip inline frames when
369 creating lazy register values.
370 * frame.c (frame_id_computed_p): Delete definition.
371 * frame.h (frame_id_computed_p): Delete declaration.
372
64cb3757
AB
3732020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
374
375 * NEWS: Mention additions to Python API.
376 * python/py-arch.c (archpy_register_groups): New function.
377 (arch_object_methods): Add 'register_groups' method.
378 * python/py-registers.c (reggroup_iterator_object): New struct.
379 (reggroup_object): New struct.
380 (gdbpy_new_reggroup): New function.
381 (gdbpy_reggroup_to_string): New function.
382 (gdbpy_reggroup_name): New function.
383 (gdbpy_reggroup_iter): New function.
384 (gdbpy_reggroup_iter_next): New function.
385 (gdbpy_new_reggroup_iterator): New function
386 (gdbpy_initialize_registers): Register new types.
387 (reggroup_iterator_object_type): Define new Python type.
388 (gdbpy_reggroup_getset): New static global.
389 (reggroup_object_type): Define new Python type.
390 * python/python-internal.h
391
0f767f94
AB
3922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
393
394 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
395 * python/py-arch.c (archpy_registers): New function.
396 (arch_object_methods): Add 'registers' method.
397 * python/py-registers.c: New file.
398 * python/python-internal.h
399 (gdbpy_new_register_descriptor_iterator): Declare.
400 (gdbpy_initialize_registers): Declare.
401 * python/python.c (do_start_initialization): Call
402 gdbpy_initialize_registers.
403 * NEWS: Mention additions to the Python API.
404
87dbc774
AB
4052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
406
407 * NEWS: Mention new Python API method.
408 * python/py-unwind.c (pending_framepy_architecture): New function.
409 (pending_frame_object_methods): Add architecture method.
410
3bc98c0c
AB
4112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
412
413 * gdbarch.c: Regenerate.
414 * gdbarch.h: Regenerate.
415 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
416 (gdbarch_data): Use internal_error for the case where
417 deprecated_set_gdbarch_data was originally needed.
418 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
419 and use passed in obstack.
420 (libunwind_frame_set_descr): Should no longer get back NULL from
421 gdbarch_data.
422 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
423 type.
424 * user-regs.c (user_regs_init): Update parameters, and use passed
425 in obstack.
426 (user_reg_add): Should no longer get back NULL from gdbarch_data.
427 (_initialize_user_regs): Register as a pre-init gdbarch data type.
428
d8cc8af6
TV
4292020-07-06 Tom de Vries <tdevries@suse.de>
430
431 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
432 End-Of-Sequence in lte_is_less_than.
433 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
434 "gdb: Don't reorder line table entries too much when sorting".
435
947f7597
TV
4362020-07-06 Tom de Vries <tdevries@suse.de>
437
438 PR tui/26205
439 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
440
1e7c1b22
TV
4412020-07-05 Tom de Vries <tdevries@suse.de>
442
443 PR build/26187
444 * inferior.h (struct infcall_suspend_state_deleter): If available, use
445 std::uncaught_exceptions instead of deprecated
446 std::uncaught_exception.
447
a36158ec
SM
4482020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * macroexp.h (macro_stringify): Return
451 gdb::unique_xmalloc_ptr<char>.
452 * macroexp.c (macro_stringify): Likewise.
453 * macrotab.c (fixup_definition): Update.
454
14d960c8
SM
4552020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
456
457 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
458 (lex_one_token): Update.
459 * macroexp.c (struct macro_buffer) <release>: Return
460 gdb::unique_xmalloc_ptr<char>.
461 (macro_stringify): Update.
462 (macro_expand): Update.
463 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
464 * macroexp.h (macro_expand_next): Likewise.
465
211d5b1c
SM
4662020-07-02 Simon Marchi <simon.marchi@efficios.com>
467
468 * macroexp.h (macro_lookup_ftype): Remove.
469 (macro_expand, macro_expand_once, macro_expand_next): Remove
470 lookup function parameters, add scope parameter.
471 * macroexp.c (scan, substitute_args, expand, maybe_expand,
472 macro_expand, macro_expand_once, macro_expand_next): Likewise.
473 * macroscope.h (standard_macro_lookup): Change parameter type
474 to macro_scope.
475 * macroscope.c (standard_macro_lookup): Likewise.
476 * c-exp.y (lex_one_token): Update.
477 * macrocmd.c (macro_expand_command): Likewise.
478 (macro_expand_once_command): Likewise.
479
b1a35af2
SM
4802020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * inf-loop.c (inferior_event_handler): Remove client_data param.
483 * inf-loop.h (inferior_event_handler): Likewise.
484 * infcmd.c (step_1): Adjust.
485 * infrun.c (proceed): Adjust.
486 (fetch_inferior_event): Remove client_data param.
487 (infrun_async_inferior_event_handler): Adjust.
488 * infrun.h (fetch_inferior_event): Remove `void *` param.
489 * linux-nat.c (handle_target_event): Adjust.
490 * record-btrace.c (record_btrace_handle_async_inferior_event):
491 Adjust.
492 * record-full.c (record_full_async_inferior_event_handler):
493 Adjust.
494 * remote.c (remote_async_inferior_event_handler): Adjust.
495
1cdf9e33
TT
4962020-07-01 Tom Tromey <tom@tromey.com>
497
498 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
499 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
500
32c1e210
TT
5012020-07-01 Tom Tromey <tom@tromey.com>
502
503 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
504 tui_gen_win_info.
505 (tui_win_info::make_window): Merge with
506 tui_gen_win_info::make_window.
507 (tui_win_info::make_visible): Move from tui_gen_win_info.
508 * tui/tui-win.c (tui_win_info::max_width): Move from
509 tui_gen_win_info.
510 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
511 type.
512 <window_factory>: Likewise.
513 * tui/tui-layout.c (tui_win_info::resize): Move from
514 tui_gen_win_info.
515 (make_standard_window): Change return type.
516 (get_locator_window, tui_get_window_by_name): Likewise.
517 (tui_layout_window::apply): Remove a cast.
518 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
519 (struct tui_win_info): Merge with tui_gen_win_info.
520 (struct tui_gen_win_info): Remove.
521
a30cb6da
TT
5222020-07-01 Tom Tromey <tom@tromey.com>
523
524 * tui/tui-stack.h (struct tui_locator_window): Derive from
525 tui_win_info.
526 <do_scroll_horizontal, do_scroll_vertical>: New methods.
527 <can_box>: New method.
528
1eb2161f
TT
5292020-07-01 Tom Tromey <tom@tromey.com>
530
531 * tui/tui-stack.h (struct tui_locator_window): Remove body.
532
7134f2eb
TT
5332020-07-01 Tom Tromey <tom@tromey.com>
534
535 * tui/tui-regs.c (tui_data_window::display_registers_from)
536 (tui_data_window::display_registers_from)
537 (tui_data_window::first_data_item_displayed)
538 (tui_data_window::delete_data_content_windows): Update.
539 (tui_data_window::refresh_window, tui_data_window::no_refresh):
540 Remove.
541 (tui_data_window::check_register_values): Update.
542 (tui_data_item_window::rerender): Add parameters. Update.
543 (tui_data_item_window::refresh_window): Remove.
544 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
545 virtual.
546 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
547 tui_gen_win_info.
548 <refresh_window, max_height, min_height>: Remove.
549 <rerender>: Add parameters.
550 <x, y, visible>: New members.
551 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
552 <m_item_width>: New member.
553
22b7b041
TT
5542020-07-01 Tom Tromey <tom@tromey.com>
555
556 * tui/tui-regs.c (tui_data_window::show_register_group)
557 (tui_data_window::check_register_values): Update.
558 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
559 from item_no.
560
c9753adb
TT
5612020-07-01 Tom Tromey <tom@tromey.com>
562
563 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
564 useless "if".
565
9ab26b4a
TT
5662020-07-01 Tom Tromey <tom@tromey.com>
567
568 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
569 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
570
e555083f
TT
5712020-07-01 Tom Tromey <tom@tromey.com>
572
573 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
574 * tui/tui-winsource.h (enum tui_line_or_address_kind)
575 (struct tui_line_or_address): Move from tui-data.h.
576 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
577 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
578 (tui_cmd_window, tui_source_window_base, tui_source_window)
579 (tui_disasm_window): Don't declare.
580 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
581 to tui-winsource.h.
582 (SINGLE_KEY): Move to tui-stack.c.
583
7a02bab7
TT
5842020-07-01 Tom Tromey <tom@tromey.com>
585
586 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
587 std::string.
588 * tui/tui-regs.c (class tab_expansion_file): New.
589 (tab_expansion_file::write): New method.
590 (tui_register_format): Change return type. Use
591 tab_expansion_file.
592 (tui_get_register, tui_data_window::display_registers_from)
593 (tui_data_item_window::rerender): Update.
594 * tui/tui-io.h (tui_expand_tabs): Don't declare.
595 * tui/tui-io.c (tui_expand_tabs): Remove.
596
ea68593b
TT
5972020-07-01 Tom Tromey <tom@tromey.com>
598
599 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
600
a8caed5d
FS
6012020-07-01 Fangrui Song <maskray@google.com>
602
603 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
604
9cdf9820
AKS
6052020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
606
607 * dwarf2/read.c (set_die_type): Removed conditions to restrict
608 forms for DW_AT_associated and DW_AT_allocated attributes,
609 which is already checked in function attr_to_dynamic_prop.
610
a1520ad8
TT
6112020-06-30 Tom Tromey <tromey@adacore.com>
612
613 * dwarf2/read.c (quirk_rust_enum): Correctly call
614 alloc_rust_variant for default-less enum.
615
5ac58899
TT
6162020-06-30 Tom Tromey <tromey@adacore.com>
617
618 PR build/26183:
619 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
620 gdb::to_string.
621
19b187a9
SM
6222020-06-29 Simon Marchi <simon.marchi@efficios.com>
623
624 * gdbarch.sh (displaced_step_copy_insn): Update doc.
625 * gdbarch.h: Re-generate.
626
cd4c4c07
TT
6272020-06-28 Tom Tromey <tom@tromey.com>
628
629 * command.h (cmd_types): Remove.
630 (cmd_type): Don't declare.
631 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
632 typedef.
633 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
634 * cli/cli-decode.c (cmd_type): Remove.
635
05779d57
PA
6362020-06-27 Pedro Alves <palves@redhat.com>
637
638 * fork-child.c (prefork_hook): Adjust.
639 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
640 Delete.
641 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
642 * inferior.c (inferior::set_tty, inferior::tty): New methods.
643 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
644 Remove declarations.
645 (struct inferior) <set_tty, tty>: New methods.
646 (struct inferior) <terminal>: Rename to ...
647 (struct inferior) <m_terminal>: ... this and make private.
648 * main.c (captured_main_1): Adjust.
649 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
650 (mi_cmd_inferior_tty_show): Adjust.
651 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
652 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
653
1776e3e5
NA
6542020-06-26 Nick Alcock <nick.alcock@oracle.com>
655
656 * configure.ac: Add --enable-libctf: handle --disable-static
657 properly.
658 * acinclude.m4: sinclude ../config/enable.m4.
659 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
660 (LIBCTF): Substitute in.
661 (CTF_DEPS): New, likewise.
662 (CLIBS): libctf needs symbols from libbfd: move earlier.
663 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
664 flags.
665 * ctfread.c: Surround in ENABLE_LIBCTF.
666 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
667 * configure: Regenerate.
668 * config.in: Likewise.
669
58373b80
SM
6702020-06-25 Simon Marchi <simon.marchi@efficios.com>
671
672 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
673
277474ee
SM
6742020-06-25 Simon Marchi <simon.marchi@efficios.com>
675
676 * inferior.h (struct inferior) <terminal>: Change type to
677 gdb::unique_xmalloc_ptr<char>.
678 * inferior.c (inferior::~inferior): Don't free inf->terminal.
679 * infcmd.c (set_inferior_io_terminal): Don't free terminal
680 field, adjust to unique pointer.
681 (get_inferior_io_terminal): Adjust to unique pointer.
682
6d74da72
AB
6832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
684
685 * riscv-tdep.c (riscv_print_registers_info): Loop over all
686 registers, not just the known core set of registers.
687
2e52d038
AB
6882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
689
690 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
691 fflags, frm, and fcsr registers.
692 (riscv_register_reggroup_p): Remove unknown CSRs from save and
693 restore groups.
694 (riscv_tdesc_unknown_reg): New function.
695 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
696 tdesc_use_registers.
697 * riscv-tdep.h (struct gdbarch_tdep): Add
698 unknown_csrs_first_regnum, unknown_csrs_count,
699 duplicate_fflags_regnum, duplicate_frm_regnum, and
700 duplicate_fcsr_regnum fields.
701
be64fd07
AB
7022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
703
704 * target-descriptions.c (tdesc_use_registers): Add new parameter a
705 callback, use the callback (when not null) to help number unknown
706 registers.
707 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
708 (tdesc_use_registers): Add extra parameter to declaration.
709
3b9fce96
AB
7102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
713 in the file.
714 (class riscv_pending_register_alias): Likewise.
715 (riscv_register_feature::register_info): Change 'required_p' field
716 to 'required', and change its type. Add 'check' member function.
717 (riscv_register_feature::register_info::check): Define new member
718 function.
719 (riscv_xreg_feature): Change initialisation of 'required' field.
720 (riscv_freg_feature): Likewise.
721 (riscv_virtual_feature): Likewise.
722 (riscv_csr_feature): Likewise.
723 (riscv_check_tdesc_feature): Take extra parameter, the csr
724 tdesc_feature, rewrite the function to use the new
725 riscv_register_feature::register_info::check function.
726 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
727
865bad26
AB
7282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
729
730 * features/Makefile: Remove all references to the deleted files
731 below.
732 * features/riscv/32bit-csr.c: Deleted.
733 * features/riscv/32bit-csr.xml: Deleted.
734 * features/riscv/64bit-csr.c: Deleted.
735 * features/riscv/64bit-csr.xml: Deleted.
736 * features/riscv/rebuild-csr-xml.sh: Deleted.
737
ed69cbc8
AB
7382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
741 whitespace error for declaration of names member variable.
742 (struct riscv_register_feature): Add new prefer_first_name member
743 variable, and fix whitespace error in declaration of registers.
744 (riscv_xreg_feature): Initialize prefer_first_name field.
745 (riscv_freg_feature): Likewise.
746 (riscv_virtual_feature): Likewise.
747 (riscv_csr_feature): Likewise.
748 (riscv_register_name): Expand on comments. Remove register name
749 modifications for CSR and virtual registers.
750
4445e8f5
AB
7512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
752
753 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
754 errors.
755
767a879e
AB
7562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
757
758 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
759 riscv-opc.h.
760 (class riscv_pending_register_alias): New class.
761 (riscv_check_tdesc_feature): Take vector of pending aliases and
762 populate it as appropriate.
763 (riscv_setup_register_aliases): Delete.
764 (riscv_gdbarch_init): Create vector of pending aliases and pass it
765 to riscv_check_tdesc_feature in all cases. Use the vector to
766 create the register aliases.
767
bb6e55f3
RO
7682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
769
770 * sol2-tdep.c (sol2_static_transform_name): Remove.
771 (sol2_init_abi): Don't register it.
772 * gdbarch.sh (static_transform_name): Remove.
773 * gdbarch.c, gdbarch.h: Regenerate.
774
775 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
776 gdbarch_static_transform_name.
777 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
778 * stabsread.c (define_symbol) <'X'>: Remove.
779 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
780 handling.
781 <'V'>: Likewise.
782 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
783 <'S'>: Remove call to gdbarch_static_transform_name.
784
c6d36836
RO
7852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
786
787 * procfs.c (procfs_pre_trace): New function.
788 (procfs_target::create_inferior): Pass it to fork_inferior.
789
a7e6196b
RO
7902020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
791
792 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
793 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
794 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
795 sol2-tdep.o, sparc-sol2-tdep.o.
796 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
797 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
798 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
799 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
800
d412e696
RO
8012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
802
803 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
804 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
805 Call sol2_init_abi.
806 Remove calls to set_gdbarch_skip_solib_resolver,
807 set_gdbarch_core_pid_to_str.
808 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
809 (i386_sol2_static_transform_name): Remove.
810 (i386_sol2_init_abi): Call sol2_init_abi.
811 Remove calls to set_gdbarch_sofun_address_maybe_missing,
812 set_gdbarch_static_transform_name,
813 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
814 Use sol2_sigtramp_p.
815 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
816 (sol2_sigtramp_p): New function.
817 (sol2_static_transform_name): New function.
818 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
819 (sol2_init_abi): New function.
820 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
821 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
822 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
823 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
824 (sparc_sol2_static_transform_name): Remove.
825 (sparc32_sol2_init_abi): Call sol2_init_abi.
826 Remove calls to set_gdbarch_sofun_address_maybe_missing,
827 set_gdbarch_static_transform_name,
828 set_gdbarch_skip_solib_resolver,
829 set_gdbarch_core_pid_to_str.
830 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
831 (sparc_sol2_static_transform_name): Remove
832 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
833 call sol2_sigtramp_p.
834 (sparc64_sol2_init_abi): Call sol2_init_abi.
835 Remove calls to set_gdbarch_sofun_address_maybe_missing,
836 set_gdbarch_static_transform_name,
837 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
838
a8654e7d
PW
8392020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
840
841 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
842 * exec.c (validate_exec_file): If from_tty, set both
843 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
844 * symfile.c (symbol_file_add_with_addrs): if always_confirm
845 and from_tty, unconditionally ask a confirmation.
846
caa7fd04
AB
8472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * target-descriptions.c (tdesc_architecture_name): Protect against
850 NULL pointer dereference.
851 (maint_print_xml_tdesc_cmd): New function.
852 (_initialize_target_descriptions): Register new 'maint print
853 xml-tdesc' command and give it the filename completer.
854 * NEWS: Mention new 'maint print xml-tdesc' command.
855
fbf42f4e
AB
8562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * target-descriptions.c (class tdesc_compatible_info): New class.
859 (struct target_desc): Change type of compatible vector.
860 (tdesc_compatible_p): Update for change in type of
861 target_desc::compatible.
862 (tdesc_compatible_info_list): New function.
863 (tdesc_compatible_info_arch_name): New function.
864 (tdesc_add_compatible): Update for change in type of
865 target_desc::compatible.
866 (print_c_tdesc::visit_pre): Likewise.
867
20821f4e
AB
8682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
869
870 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
871 whitespace to underscore.
872 (maint_print_c_tdesc_cmd): Use fake filename for target
873 descriptions that came from the target.
874 (_initialize_target_descriptions): Add filename command completion
875 for 'maint print c-tdesc'.
876
1fb5ee62
SM
8772020-06-23 Simon Marchi <simon.marchi@efficios.com>
878
879 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
880 lines.
881
fc3ecb3e
SM
8822020-06-23 Simon Marchi <simon.marchi@efficios.com>
883
884 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
885 lines.
886 (dwarf2_find_location_expression): Likewise.
887 (call_site_parameter_matches): Likewise.
888 (dwarf2_compile_expr_to_ax): Likewise.
889 (disassemble_dwarf_expression): Likewise.
890 (loclist_describe_location): Likewise.
891
236ef034
PA
8922020-06-23 Pedro Alves <palves@redhat.com>
893
894 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
895 progspace-and-thread.h. Include scoped-mock-context.h instead.
896 (register_to_value_test): Use scoped_mock_context.
897 * regcache.c: Include "scoped-mock-context.h".
898 (cooked_read_test): Don't error out if a target is already pushed.
899 Use scoped_mock_context. Adjust.
900 * scoped-mock-context.h: New file.
901
39e7ecca
AB
9022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
903
904 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
905 initializer.
906 (ada_language::is_string_type_p): New member function.
907 * c-lang.c (c_language_data): Delete la_is_string_type_p
908 initializer.
909 (cplus_language_data): Likewise.
910 (asm_language_data): Likewise.
911 (minimal_language_data): Likewise.
912 * d-lang.c (d_language_data): Likewise.
913 * f-lang.c (f_is_string_type_p): Delete function, implementation
914 moved to f_language::is_string_type_p.
915 (f_language_data): Delete la_is_string_type_p initializer.
916 (f_language::is_string_type_p): New member function,
917 implementation from f_is_string_type_p.
918 * go-lang.c (go_is_string_type_p): Delete function, implementation
919 moved to go_language::is_string_type_p.
920 (go_language_data): Delete la_is_string_type_p initializer.
921 (go_language::is_string_type_p): New member function,
922 implementation from go_is_string_type_p.
923 * language.c (language_defn::is_string_type_p): Define new member
924 function.
925 (default_is_string_type_p): Make static, add comment copied from
926 header file.
927 (unknown_language_data): Delete la_is_string_type_p initializer.
928 (unknown_language::is_string_type_p): New member function.
929 (auto_language_data): Delete la_is_string_type_p initializer.
930 (auto_language::is_string_type_p): New member function.
931 * language.h (language_data): Delete la_is_string_type_p field.
932 (language_defn::is_string_type_p): Declare new function.
933 (default_is_string_type_p): Delete desclaration, move comment to
934 definition.
935 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
936 moved to m2_language::is_string_type_p.
937 (m2_language_data): Delete la_is_string_type_p initializer.
938 (m2_language::is_string_type_p): New member function,
939 implementation from m2_is_string_type_p.
940 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
941 initializer.
942 * opencl-lang.c (opencl_language_data): Likewise.
943 * p-lang.c (pascal_is_string_type_p): Delete function,
944 implementation moved to pascal_language::is_string_type_p.
945 (pascal_language_data): Delete la_is_string_type_p initializer.
946 (pascal_language::is_string_type_p): New member function,
947 implementation from pascal_is_string_type_p.
948 * rust-lang.c (rust_is_string_type_p): Delete function,
949 implementation moved to rust_language::is_string_type_p.
950 (rust_language_data): Delete la_is_string_type_p initializer.
951 (rust_language::is_string_type_p): New member function,
952 implementation from rust_is_string_type_p.
953 * valprint.c (val_print_scalar_or_string_type_p): Update call to
954 is_string_type_p.
955
4ffc13fb
AB
9562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * ada-lang.c (ada_language_data): Delete la_print_typedef
959 initializer.
960 (ada_language::print_typedef): New member function.
961 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
962 (cplus_language_data): Likewise.
963 (asm_language_data): Likewise.
964 (minimal_language_data): Likewise.
965 * d-lang.c (d_language_data): Likewise.
966 * f-lang.c (f_language_data): Likewise.
967 (f_language::print_typedef): New member function.
968 * go-lang.c (go_language_data): Delete la_print_typedef
969 initializer.
970 * language.c (language_defn::print_typedef): Define member
971 function.
972 (unknown_language_data): Delete la_print_typedef initializer.
973 (unknown_language::print_typedef): New member function.
974 (auto_language_data): Delete la_print_typedef initializer.
975 (auto_language::print_typedef): New member function.
976 * language.h (language_data): Delete la_print_typedef field.
977 (language_defn::print_typedef): Declare new member function.
978 (LA_PRINT_TYPEDEF): Update call to print_typedef.
979 (default_print_typedef): Delete declaration.
980 * m2-lang.c (m2_language_data): Delete la_print_typedef
981 initializer.
982 (m2_language::print_typedef): New member function.
983 * objc-lang.c (objc_language_data): Delete la_print_typedef
984 initializer.
985 * opencl-lang.c (opencl_language_data): Likewise.
986 * p-lang.c (pascal_language_data): Likewise.
987 (pascal_language::print_typedef): New member function.
988 * rust-lang.c (rust_print_typedef): Delete function,
989 implementation moved to rust_language::print_typedef.
990 (rust_language): Delete la_print_typedef initializer.
991 (rust_language::print_typedef): New member function,
992 implementation from rust_print_typedef.
993 * typeprint.c (default_print_typedef): Delete.
994
d711ee67
AB
9952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
996
997 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
998 (ada_language::printstr): New member function.
999 * c-lang.c (c_language_data): Delete la_printstr initializer.
1000 (cplus_language_data): Likewise.
1001 (asm_language_data): Likewise.
1002 (minimal_language_data): Likewise.
1003 * d-lang.c (d_language_data): Likewise.
1004 * f-lang.c (f_printstr): Rename to f_language::printstr.
1005 (f_language_data): Delete la_printstr initializer.
1006 (f_language::printstr): New member function, implementation from
1007 f_printstr.
1008 * go-lang.c (go_language_data): Delete la_printstr initializer.
1009 * language.c (language_defn::printstr): Define new member
1010 function.
1011 (unk_lang_printstr): Delete.
1012 (unknown_language_data): Delete la_printstr initializer.
1013 (unknown_language::printstr): New member function.
1014 (auto_language_data): Delete la_printstr initializer.
1015 (auto_language::printstr): New member function.
1016 * language.h (language_data): Delete la_printstr field.
1017 (language_defn::printstr): Declare new member function.
1018 (LA_PRINT_STRING): Update call to printstr.
1019 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1020 (m2_language_data): Delete la_printstr initializer.
1021 (m2_language::printstr): New member function, implementation from
1022 m2_printstr.
1023 * objc-lang.c (objc_language_data): Delete la_printstr
1024 initializer.
1025 * opencl-lang.c (opencl_language_data): Likewise.
1026 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1027 (pascal_language_data): Delete la_printstr initializer.
1028 (pascal_language::printstr): New member function, implementation
1029 from pascal_printstr.
1030 * p-lang.h (pascal_printstr): Delete declaration.
1031 * rust-lang.c (rust_printstr): Update header comment.
1032 (rust_language_data): Delete la_printstr initializer.
1033 (rust_language::printstr): New member function.
1034
52b50f2c
AB
10352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1036
1037 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1038 (ada_language::printchar): New member function.
1039 * c-lang.c (c_language_data): Delete la_printchar initializer.
1040 (cplus_language_data): Likewise.
1041 (asm_language_data): Likewise.
1042 (minimal_language_data): Likewise.
1043 * d-lang.c (d_language_data): Likewise.
1044 * f-lang.c (f_printchar): Rename to f_language::printchar.
1045 (f_language_data): Delete la_printchar initializer.
1046 (f_language::printchar): New member function, implementation from
1047 f_printchar.
1048 * go-lang.c (go_language_data): Delete la_printchar initializer.
1049 * language.c (unk_lang_printchar): Delete.
1050 (language_defn::printchar): Define new member function.
1051 (unknown_language_data): Delete la_printchar initializer.
1052 (unknown_language::printchar): New member function.
1053 (auto_language_data): Delete la_printchar initializer.
1054 (auto_language::printchar): New member function.
1055 * language.h (language_data): Delete la_printchar field.
1056 (language_defn::printchar): Declare new member function.
1057 (LA_PRINT_CHAR): Update call to printchar.
1058 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1059 (m2_language::printchar): New member function.
1060 * objc-lang.c (objc_language_data): Delete la_printchar
1061 initializer.
1062 * opencl-lang.c (opencl_language_data): Likewise.
1063 * p-lang.c (pascal_language_data): Delete la_printchar
1064 initializer.
1065 (pascal_language::printchar): New member function.
1066 * rust-lang.c (rust_printchar): Rename to
1067 rust_language::printchar.
1068 (rust_language_data): Delete la_printchar initializer.
1069 (rust_language::printchar): New member function, implementation
1070 from rust_printchar.
1071
ec8cec5b
AB
10722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1075 (ada_language_data): Delete la_emitchar initializer.
1076 (ada_language::emitchar): New member function, implementation from
1077 emit_char.
1078 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1079 (cplus_language_data): Likewise.
1080 (asm_language_data): Likewise.
1081 (minimal_language_data): Likewise.
1082 * d-lang.c (d_language_data): Likewise.
1083 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1084 (f_language_data): Delete la_emitchar initializer.
1085 (f_language::emitchar): New member function, implementation from
1086 f_emit_char.
1087 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1088 * language.c (unk_lang_emit_char): Delete.
1089 (language_defn::emitchar): New member function definition.
1090 (unknown_language_data): Delete la_emitchar initializer.
1091 (unknown_language::emitchar): New member function.
1092 (auto_language_data): Delete la_emitchar initializer.
1093 (auto_language::emitchar): New member function.
1094 * language.h (language_data): Delete la_emitchar field.
1095 (language_defn::emitchar): New member field declaration.
1096 (LA_EMIT_CHAR): Update call to emitchar.
1097 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1098 (m2_language_data): Delete la_emitchar initializer.
1099 (m2_language::emitchar): New member function, implementation from
1100 m2_emit_char.
1101 * objc-lang.c (objc_language_data): Delete la_emitchar
1102 initializer.
1103 * opencl-lang.c (opencl_language_data): Likewise.
1104 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1105 (pascal_language_data): Delete la_emitchar initializer.
1106 (pascal_language::emitchar): New member function, implementation
1107 from pascal_emit_char.
1108 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1109 (rust_language_data): Delete la_emitchar initializer.
1110 (rust_language::emitchar): New member function, implementation
1111 from rust_emitchar.
1112
1bf9c363
AB
11132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1116 (ada_language_data): Delete la_post_parser initializer.
1117 (ada_language::post_parser): New member function.
1118 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1119 (cplus_language_data): Likewise.
1120 (asm_language_data): Likewise.
1121 (minimal_language_data): Likewise.
1122 * d-lang.c (d_language_data): Likewise.
1123 * f-lang.c (f_language_data): Likewise.
1124 * go-lang.c (go_language_data): Likewise.
1125 * language.c (unknown_language_data): Likewise.
1126 (auto_language_data): Likewise.
1127 * language.h (language_data): Delete la_post_parser field.
1128 (language_defn::post_parser): New member function.
1129 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1130 * objc-lang.c (objc_language_data): Likewise.
1131 * opencl-lang.c (opencl_language_data): Likewise.
1132 * p-lang.c (pascal_language_data): Likewise.
1133 * parse.c (parse_exp_in_context): Update call to post_parser.
1134 (null_post_parser): Delete definition.
1135 * parser-defs.h (null_post_parser): Delete declaration.
1136 * rust-lang.c (rust_language_data): Delete la_post_parser
1137 initializer.
1138
87afa652
AB
11392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1140
1141 * ada-lang.c (parse): Rename to ada_language::parser.
1142 (ada_language_data): Delete la_parser initializer.
1143 (ada_language::parser): New member function, implementation from
1144 parse.
1145 * c-lang.c (c_language_data): Delete la_parser initializer.
1146 (cplus_language_data): Likewise.
1147 (asm_language_data): Likewise.
1148 (minimal_language_data): Likewise.
1149 * d-lang.c (d_language_data): Likewise.
1150 (d_language::parser): New member function.
1151 * f-lang.c (f_language_data): Delete la_parser initializer.
1152 (f_language::parser): New member function.
1153 * go-lang.c (go_language_data): Delete la_parser initializer.
1154 (go_language::parser): New member function.
1155 * language.c (unk_lang_parser): Delete.
1156 (language_defn::parser): Define new member function.
1157 (unknown_language_data): Delete la_parser initializer.
1158 (unknown_language::parser): New member function.
1159 (auto_language_data): Delete la_parser initializer.
1160 (auto_language::parser): New member function.
1161 * language.h (language_data): Delete la_parser field.
1162 (language_defn::parser): Declare new member function.
1163 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1164 (m2_language::parser): New member function.
1165 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1166 * opencl-lang.c (opencl_language_data): Likewise.
1167 * p-lang.c (pascal_language_data): Likewise.
1168 (pascal_language::parser): New member function.
1169 * parse.c (parse_exp_in_context): Update call to parser.
1170 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1171 (rust_language::parser): New member function.
1172
37825800
AB
11732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * top.c (print_gdb_configuration): Print --with-python-libdir
1176 configuration value.
1177
5b860c93
PW
11782020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1179
1180 * NEWS: Mention change to the alias command.
1181
cf00cd6f
PW
11822020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1183
1184 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1185 (alias_command_completer)
1186 (make_alias_options_def_group): New functions.
1187 (alias_opts, alias_option_defs): New struct and array.
1188 (alias_usage_error): Update usage.
1189 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1190 Use option framework.
1191 (_initialize_cli_cmds): Update alias command help.
1192 Update aliases command help.
1193 (show_user):
1194 Add NULL for new default_args lookup_cmd argument.
1195 (valid_command_p): Rename to validate_aliased_command.
1196 Add NULL for new default_args lookup_cmd argument. Verify that the
1197 aliased_command has no default args.
1198 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1199 (lookup_cmd_1, lookup_cmd): New argument default_args.
1200 (add_alias_cmd):
1201 Add NULL for new default_args lookup_cmd argument.
1202 (print_help_for_command): Show default args under the layout
1203 alias some_alias = some_aliased_cmd some_alias_default_arg.
1204 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1205 xfree default_args in destructor.
1206 * cli/cli-script.c (process_next_line, do_define_command):
1207 Add NULL for new default_args lookup_cmd argument.
1208 * command.h: Declare new default_args argument in lookup_cmd
1209 and lookup_cmd_1.
1210 * completer.c (complete_line_internal_1):
1211 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1212 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1213 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1214 Likewise.
1215 * infcmd.c (_initialize_infcmd): Likewise.
1216 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1217 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1218 * python/py-param.c (add_setshow_generic): Likewise.
1219 * remote.c (_initialize_remote): Likewise.
1220 * top.c (execute_command): Prepend default_args if command has some.
1221 (set_verbose):
1222 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1223 * tracepoint.c (validate_actionline, encode_actions_1):
1224 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1225
bd920864
TBA
12262020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1227
1228 * jit.c (jit_read_descriptor): Use bool as the return type.
1229 (jit_breakpoint_re_set_internal): Use bool as the return type.
1230 Invert the return value logic; return true if the jit breakpoint
1231 has been successfully initialized.
1232 (jit_inferior_init): Update the call to
1233 jit_breakpoint_re_set_internal.
1234
f8098322
PA
12352020-06-22 Pedro Alves <palves@redhat.com>
1236
1237 PR gdb/25939
1238 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1239 Use the current inferior instead. Don't return
1240 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1241 wait again.
1242 * sol-thread.c (sol_thread_target::wait): Don't reference
1243 inferior_ptid.
1244 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1245 (sol_update_thread_list_callback): Use the current inferior's pid
1246 instead of inferior_ptid.
1247
196535a6
RO
12482020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1249
1250 * procfs.c: Cleanup many comments.
1251
1252 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1253 (AFTER_WATCHFLAG): Replace by value.
1254
1255 (MAIN_PROC_NAME_FORMAT): Inline ...
1256 (create_procinfo): ... here.
1257
1258 (procfs_debug_inferior): Remove SYS_exec handling.
1259 (syscall_is_exec): Likewise.
1260 (procfs_set_exec_trap): Likewise.
1261
1262 (syscall_is_lwp_exit): Inline in callers.
1263 (syscall_is_exit): Likewise.
1264 (syscall_is_exec): Likewise.
1265 (syscall_is_lwp_create): Likewise.
1266
1267 (invalidate_cache): Remove #if 0 code.
1268
1269 (make_signal_thread_runnable): Remove.
1270 (procfs_target::resume): Remove #if 0 code.
1271
cf6f3e86
RO
12722020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1273
1274 PR gdb/25939
1275 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1276 call ...
1277 (procfs_target::create_inferior): ... here.
1278
48e9cc84
PW
12792020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1280
1281 * exec.c (validate_exec_file): Ensure the build-id is up to
1282 date by calling reopen_exec_file (that checks file timestamp
1283 to decide to re-read the file).
1284
3922b302
PA
12852020-06-18 Pedro Alves <palves@redhat.com>
1286
1287 PR gdb/25412
1288 * gdbthread.h (delete_thread, delete_thread_silent)
1289 (find_thread_ptid): Update comments.
1290 * thread.c (current_thread_): New global.
1291 (is_current_thread): Move higher, and reimplement.
1292 (inferior_thread): Reimplement.
1293 (set_thread_exited): Use bool. Add assertions.
1294 (add_thread_silent): Simplify thread-reuse handling by always
1295 calling delete_thread.
1296 (delete_thread): Remove intro comment.
1297 (find_thread_ptid): Skip exited threads.
1298 (switch_to_thread_no_regs): Write to current_thread_.
1299 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1300 INFERIOR_PTID. Clear current_thread_.
1301
6dbdab44
PA
13022020-06-18 Pedro Alves <palves@redhat.com>
1303
1304 * aix-thread.c (pd_update): Use switch_to_thread.
1305
2da4b788
PA
13062020-06-18 Pedro Alves <palves@redhat.com>
1307
1308 * ravenscar-thread.c (ravenscar_thread_target): Update.
1309 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1310 (ravenscar_thread_target::add_active_thread): ... this. Don't
1311 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1312 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1313
50838d1b
PA
13142020-06-18 Pedro Alves <palves@redhat.com>
1315
1316 * nat/windows-nat.c (current_windows_thread): Remove.
1317 * nat/windows-nat.h (current_windows_thread): Remove.
1318 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1319 Adjust.
1320 (display_selectors): Adjust to fetch the current
1321 windows_thread_info based on inferior_ptid.
1322 (fake_create_process): No longer write to current_windows_thread.
1323 (windows_nat_target::get_windows_debug_event):
1324 Don't set inferior_ptid or current_windows_thread.
1325 (windows_nat_target::wait): Adjust to not rely on
1326 current_windows_thread.
1327 (do_initial_windows_stuff): Now a method of windows_nat_target.
1328 Switch to the last_ptid thread.
1329 (windows_nat_target::attach): Adjust.
1330 (windows_nat_target::detach): Use switch_to_no_thread instead of
1331 writing to inferior_ptid directly.
1332 (windows_nat_target::create_inferior): Adjust.
1333
31ce04e9
PA
13342020-06-18 Pedro Alves <palves@redhat.com>
1335
1336 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1337
1ee1a363
PA
13382020-06-18 Pedro Alves <palves@redhat.com>
1339
1340 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1341 after creating it, instead of writing to inferior_ptid. Don't
1342 write to inferior_ptid.
1343
6d350754
PA
13442020-06-18 Pedro Alves <palves@redhat.com>
1345
1346 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1347
5d971d48
PA
13482020-06-18 Pedro Alves <palves@redhat.com>
1349
1350 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1351 it, instead of writing to inferior_ptid.
1352
86e57d1b
PA
13532020-06-18 Pedro Alves <palves@redhat.com>
1354
1355 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1356 to inferior_ptid.
1357
f2e1c129
PA
13582020-06-18 Pedro Alves <palves@redhat.com>
1359
1360 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1361 instead of writing to inferior_ptid directly.
1362
60db1b85
PA
13632020-06-18 Pedro Alves <palves@redhat.com>
1364
1365 * corelow.c (core_target::close): Use switch_to_no_thread instead
1366 of writing to inferior_ptid directly.
1367 (add_to_thread_list, core_target_open): Use switch_to_thread
1368 instead of writing to inferior_ptid directly.
1369
fe7d6a8d
PA
13702020-06-18 Pedro Alves <palves@redhat.com>
1371
1372 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1373 inferior_ptid.
1374 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1375 inferior_ptid.
1376 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1377 inferior_ptid directly.
1378 (darwin_nat_target::init_thread_list): Switch to thread, instead
1379 of writing to inferior_ptid.
1380 (darwin_nat_target::attach): Don't write to inferior_ptid.
1381 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1382
975f8708
PA
13832020-06-18 Pedro Alves <palves@redhat.com>
1384
1385 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1386 thread.
1387 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1388 Instead use switch_to_thread.
1389 (gnu_nat_target::detach): Use switch_to_no_thread
1390 instead of writing to inferior_ptid directly. Used passed-in
1391 inferior instead of looking up the inferior by pid.
1392
1a204730
PA
13932020-06-18 Pedro Alves <palves@redhat.com>
1394
1395 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1396 inferior_ptid.
1397
ebe84f23
PA
13982020-06-18 Pedro Alves <palves@redhat.com>
1399
1400 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1401 inferior_ptid.
1402 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1403 thread.
1404 (nto_procfs_target::detach): Avoid referencing
1405 inferior_ptid. Use switch_to_no_thread instead of writing to
1406 inferior_ptid directly.
1407 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1408 instead of writing to inferior_ptid directly.
1409 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1410 to thread.
1411
191f02e5
PA
14122020-06-18 Pedro Alves <palves@redhat.com>
1413
1414 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1415 after creating it, instead of writing to inferior_ptid.
1416 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1417 to inferior_ptid directly.
1418 (gdbsim_target::wait): Don't write to inferior_ptid.
1419
0ac55310
PA
14202020-06-18 Pedro Alves <palves@redhat.com>
1421
1422 * remote.c (remote_target::remote_notice_new_inferior): Use
1423 switch_to_thread instead of writing to inferior_ptid directly.
1424 (remote_target::add_current_inferior_and_thread): Use
1425 switch_to_no_thread instead of writing to inferior_ptid directly.
1426 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1427 and switch_to_thread instead of using set_current_inferior or
1428 writing to inferior_ptid directly.
1429
5233f39b
PA
14302020-06-18 Pedro Alves <palves@redhat.com>
1431
1432 * tracectf.c (ctf_target_open): Switch to added thread instead of
1433 writing to inferior_ptid directly.
1434 (ctf_target::close): Use switch_to_no_thread instead of writing to
1435 inferior_ptid directly.
1436
087e161b
PA
14372020-06-18 Pedro Alves <palves@redhat.com>
1438
1439 * tracefile-tfile.c (tfile_target_open): Don't write to
1440 inferior_ptid directly, instead switch to added thread.
1441 (tfile_target::close): Use switch_to_no_thread instead of writing
1442 to inferior_ptid directly.
1443
7fb43e53
PA
14442020-06-18 Pedro Alves <palves@redhat.com>
1445
1446 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1447 (procfs_target::detach): Use switch_to_no_thread
1448 instead of writing to inferior_ptid directly.
1449 (do_attach): Change return type to void. Switch to the added
1450 thread.
1451 (procfs_target::create_inferior): Switch to the added thread.
1452 (procfs_do_thread_registers): Don't write to inferior_ptid.
1453
18493a00
PA
14542020-06-18 Pedro Alves <palves@redhat.com>
1455
1456 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1457 of writing to inferior_ptid.
1458 (scoped_restore_exited_inferior): Delete.
1459 (handle_vfork_child_exec_or_exit): Simplify using
1460 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1461 instead of writing to inferior_ptid.
1462 (THREAD_STOPPED_BY): Delete.
1463 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1464 (thread_stopped_by_hw_breakpoint): Delete.
1465 (save_waitstatus): Use
1466 scoped_restore_current_thread+switch_to_thread, and call
1467 target_stopped_by_watchpoint instead of
1468 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1469 instead of thread_stopped_by_sw_breakpoint, and
1470 target_stopped_by_hw_breakpoint instead of
1471 thread_stopped_by_hw_breakpoint.
1472 (handle_inferior_event)
1473 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1474 inferior_ptid directly, nor
1475 set_current_inferior/set_current_program_space. Use
1476 switch_to_thread / switch_to_inferior_no_thread instead.
1477
a0776b13
PA
14782020-06-18 Pedro Alves <palves@redhat.com>
1479
1480 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1481 instead of writing to inferior_ptid.
1482
6155c136
PA
14832020-06-18 Pedro Alves <palves@redhat.com>
1484
1485 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1486 added thread.
1487 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1488 to the added thread.
1489 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1490 instead of writing to inferior_ptid.
1491
c5316fc6
PA
14922020-06-18 Pedro Alves <palves@redhat.com>
1493
1494 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1495 (register_to_value_test): Mock a program_space too. Heap-allocate
1496 the address space. Don't write to inferior_ptid. Use
1497 switch_to_thread instead.
1498
8df01799
PA
14992020-06-18 Pedro Alves <palves@redhat.com>
1500
1501 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1502 Delete.
1503 (find_signalled_thread()): New, factored out from
1504 linux_make_corefile_notes and adjusted to handle exited threads.
1505 (linux_make_corefile_notes): Adjust to use the new
1506 find_signalled_thread.
1507
41792d68
PA
15082020-06-18 Pedro Alves <palves@redhat.com>
1509
1510 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1511 of saving/restoring inferior_ptid.
1512
612f258a
TT
15132020-06-17 Tom Tromey <tom@tromey.com>
1514
1515 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1516 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1517 declare.
1518 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1519
efb763a5
SM
15202020-06-15 Simon Marchi <simon.marchi@efficios.com>
1521
1522 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1523 of partial symtabs.
1524
2951f6c0
SM
15252020-06-17 Simon Marchi <simon.marchi@efficios.com>
1526
1527 * regformats/reg-arm.dat: Remove.
1528 * regformats/reg-bfin.dat: Remove.
1529 * regformats/reg-cris.dat: Remove.
1530 * regformats/reg-crisv32.dat: Remove.
1531 * regformats/reg-m32r.dat: Remove.
1532 * regformats/reg-tilegx.dat: Remove.
1533 * regformats/reg-tilegx32.dat: Remove.
1534
7d458ea5
SM
15352020-06-17 Simon Marchi <simon.marchi@efficios.com>
1536
1537 * features/Makefile (WHICH): Remove arm files.
1538 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1539 * regformats/arm/arm-with-neon.dat: Remove.
1540 * regformats/arm/arm-with-vfpv2.dat: Remove.
1541 * regformats/arm/arm-with-vfpv3.dat: Remove.
1542
3af96c0d
SM
15432020-06-17 Simon Marchi <simon.marchi@efficios.com>
1544
1545 * features/Makefile (XMLTOC): Remove rx.xml.
1546
b25e22fd
PA
15472020-06-17 Pedro Alves <palves@redhat.com>
1548
1549 * gdbthread.h (thread_control_state) <trap_expected> Update
1550 comments.
1551
a78a19b1
AB
15522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1555 ada_language::lookup_symbol_nonlocal.
1556 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1557 (ada_language::lookup_symbol_nonlocal): New member function,
1558 implementation from ada_lookup_symbol_nonlocal.
1559 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1560 initializer.
1561 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1562 initializer.
1563 (cplus_language::lookup_symbol_nonlocal): New member function.
1564 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1565 (minimal_language_data) Likewise.
1566 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1567 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1568 initializer.
1569 (d_language::lookup_symbol_nonlocal): New member function.
1570 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1571 initializer.
1572 (f_language::lookup_symbol_nonlocal): New member function.
1573 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1574 initializer.
1575 * language.c (unknown_language_data): Likewise.
1576 (auto_language_data): Likewise.
1577 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1578 field.
1579 (language_defn::lookup_symbol_nonlocal): New member function.
1580 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1581 initializer.
1582 * objc-lang.c (objc_language_data): Likewise.
1583 * opencl-lang.c (opencl_language_data): Likewise.
1584 * p-lang.c (pascal_language_data): Likewise.
1585 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1586 rust_language::lookup_symbol_nonlocal.
1587 (rust_language_data): Delete la_lookup_symbol_nonlocal
1588 initializer.
1589 (rust_language::lookup_symbol_nonlocal): New member function,
1590 implementation from rust_lookup_symbol_nonlocal.
1591 * symtab.c (lookup_symbol_aux): Update call to
1592 lookup_symbol_nonlocal.
1593 (basic_lookup_symbol_nonlocal): Rename to...
1594 (language_defn::lookup_symbol_nonlocal): ...this, and update
1595 header comment. Remove language_defn parameter, and replace with
1596 uses of `this'.
1597 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1598
ebe2334e
AB
15992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1600
1601 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1602 initializer.
1603 (ada_language::value_print_inner): New member function.
1604 * c-lang.c (c_language_data): Delete la_value_print_inner
1605 initializer.
1606 (cplus_language_data): Likewise.
1607 (asm_language_data): Likewise.
1608 (minimal_language_data): Likewise.
1609 * d-lang.c (d_language_data): Likewise.
1610 (d_language::value_print_inner): New member function.
1611 * f-lang.c (f_language_data): Delete la_value_print_inner
1612 initializer.
1613 (f_language::value_print_inner): New member function.
1614 * f-lang.h (f_value_print_innner): Rename to...
1615 (f_value_print_inner): ...this (note spelling of 'inner').
1616 * f-valprint.c (f_value_print_innner): Rename to...
1617 (f_value_print_inner): ...this (note spelling of 'inner').
1618 * go-lang.c (go_language_data): Delete la_value_print_inner
1619 initializer.
1620 (go_language::value_print_inner): New member function.
1621 * language.c (language_defn::value_print_inner): Define new member
1622 function.
1623 (unk_lang_value_print_inner): Delete.
1624 (unknown_language_data): Delete la_value_print_inner initializer.
1625 (unknown_language::value_print_inner): New member function.
1626 (auto_language_data): Delete la_value_print_inner initializer.
1627 (auto_language::value_print_inner): New member function.
1628 * language.h (language_data): Delete la_value_print_inner field.
1629 (language_defn::value_print_inner): Delcare new member function.
1630 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1631 initializer.
1632 (m2_language::value_print_inner): New member function.
1633 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1634 initializer.
1635 * opencl-lang.c (opencl_language_data): Likewise.
1636 * p-lang.c (pascal_language_data): Likewise.
1637 (pascal_language::value_print_inner): New member function.
1638 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1639 initializer.
1640 (rust_language::value_print_inner): New member function.
1641 * valprint.c (do_val_print): Update call to value_print_inner.
1642
a1d1fa3e
AB
16432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * ada-lang.c (ada_language_data): Delete la_value_print
1646 initializer.
1647 (ada_language::value_print): New member function.
1648 * c-lang.c (c_language_data): Delete la_value_print initializer.
1649 (cplus_language_data): Likewise.
1650 (asm_language_data): Likewise.
1651 (minimal_language_data): Likewise.
1652 * d-lang.c (d_language_data): Likewise.
1653 * f-lang.c (f_language_data): Likewise.
1654 * go-lang.c (go_language_data): Likewise.
1655 * language.c (unk_lang_value_print): Delete.
1656 (language_defn::value_print): Define new member function.
1657 (unknown_language_data): Delete la_value_print initializer.
1658 (unknown_language::value_print): New member function.
1659 (auto_language_data): Delete la_value_print initializer.
1660 (auto_language::value_print): New member function.
1661 * language.h (language_data): Delete la_value_print field.
1662 (language_defn::value_print): Declare new member function.
1663 (LA_VALUE_PRINT): Update call to value_print.
1664 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1665 * objc-lang.c (objc_language_data): Likewise.
1666 * opencl-lang.c (opencl_language_data): Likewise.
1667 * p-lang.c (pascal_language_data): Likewise.
1668 (pascal_language::value_print): New member function.
1669 * rust-lang.c (rust_language_data): Delete la_value_print
1670 initializer.
1671
f16a9f57
AB
16722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * ada-lang.c (ada_watch_location_expression): Rename to
1675 ada_language::watch_location_expression.
1676 (ada_language_data): Delete la_watch_location_expression
1677 initializer.
1678 (ada_language::watch_location_expression): New member function,
1679 implementation from ada_watch_location_expression.
1680 * breakpoint.c (watch_command_1): Update call to
1681 watch_location_expression.
1682 * c-lang.c (c_watch_location_expression): Rename to
1683 language_defn::watch_location_expression.
1684 (c_language_data): Delete la_watch_location_expression
1685 initializer.
1686 (cplus_language_data): Likewise.
1687 (asm_language_data): Likewise.
1688 (minimal_language_data): Likewise.
1689 * c-lang.h (c_watch_location_expression): Delete declaration.
1690 * d-lang.c (d_language_data): Delete la_watch_location_expression
1691 initializer.
1692 * f-lang.c (f_language_data): Likewise.
1693 * go-lang.c (go_language_data): Likewise.
1694 * language.c (language_defn::watch_location_expression): Member
1695 function implementation from c_watch_location_expression.
1696 (unknown_language_data): Delete la_watch_location_expression
1697 initializer.
1698 (auto_language_data): Likewise.
1699 * language.h (language_data): Delete la_watch_location_expression
1700 field.
1701 (language_defn::watch_location_expression): Declare new member
1702 function.
1703 * m2-lang.c (m2_language_data): Delete
1704 la_watch_location_expression initializer.
1705 * objc-lang.c (objc_language_data): Likewise.
1706 * opencl-lang.c (opencl_language_data): Likewise.
1707 * p-lang.c (pascal_language_data): Likewise.
1708 * rust-lang.c (rust_watch_location_expression): Rename to
1709 rust_language::watch_location_expression.
1710 (rust_language_data): Delete la_watch_location_expression
1711 initializer.
1712 (rust_language::watch_location_expression): New member function,
1713 implementation from rust_watch_location_expression.
1714
7e56227d
AB
17152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1718 ada_language::collect_symbol_completion_matches.
1719 (ada_language_data): Delete la_collect_symbol_completion_matches
1720 initializer.
1721 (ada_language::collect_symbol_completion_matches): New member
1722 function, implementation from
1723 ada_collect_symbol_completion_matches.
1724 * c-lang.c (c_language_data): Delete
1725 la_collect_symbol_completion_matches initializer.
1726 (cplus_language_data): Likewise.
1727 (asm_language_data): Likewise.
1728 (minimal_language_data): Likewise.
1729 * d-lang.c (d_language_data): Likewise.
1730 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1731 f_language::collect_symbol_completion_matches.
1732 (f_language_data): Delete la_collect_symbol_completion_matches
1733 initializer.
1734 (f_language::collect_symbol_completion_matches) New member
1735 function, implementation from f_collect_symbol_completion_matches.
1736 * go-lang.c (go_language_data): Delete
1737 la_collect_symbol_completion_matches initializer.
1738 * language.c (unknown_language_data): Likewise.
1739 (auto_language_data): Likewise.
1740 * language.h (language_data): Delete
1741 la_collect_symbol_completion_matches field.
1742 (language_defn::collect_symbol_completion_matches): New member
1743 function.
1744 * m2-lang.c (m2_language_data): Delete
1745 la_collect_symbol_completion_matches initializer.
1746 * objc-lang.c (objc_language_data): Likewise.
1747 * opencl-lang.c (opencl_language_data): Likewise.
1748 * p-lang.c (pascal_language_data): Likewise.
1749 * rust-lang.c (rust_language_data): Likewise.
1750 * symtab.c (default_collect_symbol_completion_matches): Delete.
1751 (collect_symbol_completion_matches): Update call to
1752 collect_symbol_completion_matches.
1753 (collect_symbol_completion_matches_type): Likewise.
1754 * symtab.h (default_collect_symbol_completion_matches): Delete
1755 declaration.
1756
53fc67f8
AB
17572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1758
1759 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1760 (ada_language_data): Delete la_word_break_characters initializer.
1761 (ada_language::word_break_characters): New member function.
1762 * c-lang.c (c_language_data): Delete la_word_break_characters
1763 initializer.
1764 (cplus_language_data): Likewise.
1765 (asm_language_data): Likewise.
1766 (minimal_language_data): Likewise.
1767 * completer.c: Update global comment.
1768 (advance_to_expression_complete_word_point): Update call to
1769 word_break_characters.
1770 (complete_files_symbols): Likewise.
1771 (complete_line_internal_1): Likewise.
1772 (default_completer_handle_brkchars): Likewise.
1773 (skip_quoted_chars): Likewise.
1774 * d-lang.c (d_language_data): Delete la_word_break_characters
1775 initializer.
1776 * f-lang.c (f_word_break_characters): Delete.
1777 (f_language_data): Delete la_word_break_characters initializer.
1778 (f_language::word_break_characters): New member function.
1779 * go-lang.c (go_language_data): Delete la_word_break_characters
1780 initializer.
1781 * language.c (unknown_language_data): Likewise.
1782 (auto_language_data): Likewise.
1783 * language.h (default_word_break_characters): Move declaration to
1784 earlier in the file.
1785 (language_data): Delete la_word_break_characters field.
1786 (language_defn::word_break_characters): New member function.
1787 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1788 initializer.
1789 * objc-lang.c (objc_language_data): Likewise.
1790 * opencl-lang.c (opencl_language_data): Likewise.
1791 * p-lang.c (pascal_language_data): Likewise.
1792 * rust-lang.c (rust_language_data): Likewise.
1793
c9debfb9
AB
17942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1797 (ada_language_data): Delete la_get_symbol_name_matcher
1798 initializer.
1799 (language_defn::get_symbol_name_matcher_inner): New member
1800 function.
1801 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1802 initializer.
1803 (cplus_language_data): Likewise.
1804 (cplus_language::get_symbol_name_matcher_inner): New member
1805 function.
1806 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1807 (minimal_language_data): Likewise.
1808 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1809 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1810 initializer.
1811 * dictionary.c (iter_match_first_hashed): Update call to
1812 get_symbol_name_matcher.
1813 (iter_match_next_hashed): Likewise.
1814 (iter_match_next_linear): Likewise.
1815 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1816 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1817 initializer.
1818 (f_language::get_symbol_name_matcher_inner): New member function.
1819 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1820 initializer.
1821 * language.c (default_symbol_name_matcher): Update header comment,
1822 make static.
1823 (language_defn::get_symbol_name_matcher): New definition.
1824 (language_defn::get_symbol_name_matcher_inner): Likewise.
1825 (get_symbol_name_matcher): Delete.
1826 (unknown_language_data): Delete la_get_symbol_name_matcher
1827 initializer.
1828 (auto_language_data): Likewise.
1829 * language.h (language_data): Delete la_get_symbol_name_matcher
1830 field.
1831 (language_defn::get_symbol_name_matcher): New member function.
1832 (language_defn::get_symbol_name_matcher_inner): Likewise.
1833 (default_symbol_name_matcher): Delete declaration.
1834 * linespec.c (find_methods): Update call to
1835 get_symbol_name_matcher.
1836 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1837 initializer.
1838 * minsyms.c (lookup_minimal_symbol): Update call to
1839 get_symbol_name_matcher.
1840 (iterate_over_minimal_symbols): Likewise.
1841 * objc-lang.c (objc_language_data): Delete
1842 la_get_symbol_name_matcher initializer.
1843 * opencl-lang.c (opencl_language_data): Likewise.
1844 * p-lang.c (pascal_language_data): Likewise.
1845 * psymtab.c (psymbol_name_matches): Update call to
1846 get_symbol_name_matcher.
1847 * rust-lang.c (rust_language_data): Delete
1848 la_get_symbol_name_matcher initializer.
1849 * symtab.c (symbol_matches_search_name): Update call to
1850 get_symbol_name_matcher.
1851 (compare_symbol_name): Likewise.
1852
9a49ad8c
AB
18532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1854
1855 * ada-lang.c (ada_language_data): Delete la_compute_program
1856 initializer.
1857 * c-lang.c (c_language_data): Likewise.
1858 (c_language::compute_program): New member function.
1859 (cplus_language_data): Delete la_compute_program initializer.
1860 (cplus_language::compute_program): New member function.
1861 (asm_language_data): Delete la_compute_program initializer.
1862 (minimal_language_data): Likewise.
1863 * c-lang.h (c_compute_program): Update comment.
1864 (cplus_compute_program): Likewise.
1865 * compile/compile-c-support.c (c_compute_program): Likewise.
1866 (cplus_compute_program): Likewise.
1867 * compile/compile.c (compile_to_object): Update call to
1868 la_compute_program.
1869 * d-lang.c (d_language_data): Delete la_compute_program
1870 initializer.
1871 * f-lang.c (f_language_data): Likewise.
1872 * go-lang.c (go_language_data): Likewise.
1873 * language.c (unknown_language_data): Likewise.
1874 (auto_language_data): Likewise.
1875 * language.h (language_data): Delete la_compute_program field.
1876 (language_defn::compute_program): New member function.
1877 * m2-lang.c (m2_language_data): Delete la_compute_program
1878 initializer.
1879 * objc-lang.c (objc_language_data): Likewise.
1880 * opencl-lang.c (opencl_language_data): Likewise.
1881 * p-lang.c (pascal_language_data): Likewise.
1882 * rust-lang.c (rust_language_data): Likewise.
1883
eff93b4d
AB
18842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 * ada-lang.c (ada_language_data) Delete
1887 la_class_name_from_physname initializer.
1888 * c-lang.c (c_language_data): Likewise.
1889 (cplus_language_data): Likewise.
1890 (cplus_language::class_name_from_physname): New member function.
1891 (asm_language_data): Delete la_class_name_from_physname
1892 initializer.
1893 (minimal_language_data): Likewise.
1894 * d-lang.c (d_language_data): Likewise.
1895 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1896 method on language_defn class.
1897 (guess_full_die_structure_name): Likewise.
1898 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1899 initializer.
1900 * go-lang.c (go_language_data): Likewise.
1901 * language.c (language_class_name_from_physname): Delete.
1902 (unk_lang_class_name): Delete.
1903 (unknown_language_data): Delete la_class_name_from_physname
1904 initializer.
1905 (auto_language_data): Likewise.
1906 * language.h (language_data): Delete la_class_name_from_physname
1907 field.
1908 (language_defn::class_name_from_physname): New function.
1909 (language_class_name_from_physname): Delete declaration.
1910 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1911 initializer.
1912 * objc-lang.c (objc_language_data): Likewise.
1913 * opencl-lang.c (opencl_language_data): Likewise.
1914 * p-lang.c (pascal_language_data): Likewise.
1915 * rust-lang.c (rust_language_data): Likewise.
1916
de543742
TT
19172020-06-16 Tom Tromey <tom@tromey.com>
1918
1919 * tui/tui-data.h (STATUS_NAME): New macro.
1920 * tui/tui-layout.c (tui_remove_some_windows)
1921 (initialize_known_windows, tui_register_window)
1922 (tui_layout_split::remove_windows, initialize_layouts)
1923 (tui_new_layout_command): Don't use hard-coded window names.
1924
a350efd4
TT
19252020-06-16 Tom Tromey <tom@tromey.com>
1926
1927 PR tui/25348:
1928 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1929 tui_initialize_readline. Only run once. Call rl_initialize.
1930 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1931 tui_initialize_readline.
1932 * tui/tui-io.c (tui_setup_io): Call
1933 tui_ensure_readline_initialized.
1934 * tui/tui-interp.c (tui_interp::init): Update.
1935
39ec0490
TT
19362020-06-16 Tom Tromey <tom@tromey.com>
1937
1938 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1939 Also preserve the status window.
1940
d2d1ea20
TT
19412020-06-16 Tom Tromey <tom@tromey.com>
1942
1943 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1944 where m_window==nullptr.
1945
66920317
TT
19462020-06-15 Tom Tromey <tromey@adacore.com>
1947
1948 * windows-nat.c (windows_nat::handle_output_debug_string):
1949 Update.
1950 (windows_nat::handle_ms_vc_exception): Update.
1951 * target.h (target_read_string): Change API.
1952 * target.c (target_read_string): Change API.
1953 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1954 Update.
1955 * solib-frv.c (frv_current_sos): Update.
1956 * solib-dsbt.c (dsbt_current_sos): Update.
1957 * solib-darwin.c (darwin_current_sos): Update.
1958 * linux-thread-db.c (inferior_has_bug): Update.
1959 * expprint.c (print_subexp_standard): Update.
1960 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1961 (ada_exception_message_1): Update.
1962
a5d871dd
TT
19632020-06-15 Tom Tromey <tromey@adacore.com>
1964
1965 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1966
670e35fa
TT
19672020-06-15 Tom Tromey <tromey@adacore.com>
1968
1969 * valprint.c (read_string): Update comment.
1970 * target.c (MIN): Remove.
1971 (target_read_string): Rewrite.
1972
f5272a3b
TT
19732020-06-15 Tom Tromey <tromey@adacore.com>
1974
1975 * corefile.c (read_memory_string): Remove.
1976 * ada-valprint.c (ada_value_print_ptr): Update.
1977 * ada-lang.h (ada_tag_name): Change return type.
1978 * ada-lang.c (type_from_tag): Update.
1979 (ada_tag_name_from_tsd): Change return type. Use
1980 target_read_string.
1981 (ada_tag_name): Likewise.
1982 * gdbcore.h (read_memory_string): Don't declare.
1983
2c074f49
HD
19842020-06-14 Hannes Domani <ssbssa@yahoo.de>
1985
1986 * symtab.c (rbreak_command): Ignore Windows drive colon.
1987
6a17d503
SM
19882020-06-12 Simon Marchi <simon.marchi@efficios.com>
1989
1990 * NEWS: Mention removed GDBserver host support.
1991
453c733f
NC
19922020-06-12 Nelson Chu <nelson.chu@sifive.com>
1993
1994 * features/riscv/rebuild-csr-xml.sh: Updated.
1995
2b4e6a3f
TT
19962020-06-11 Tom Tromey <tom@tromey.com>
1997
1998 PR gdb/18318:
1999 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2000
4412332f
JG
20012020-06-09 Jonny Grant <jg@jguk.org>
20022020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2003
2004 * main.c (captured_main_1): Don't print new line after help.
2005 (print_gdb_help): add mailing list and IRC channel information
2006 to --help. Add new lines between items in the footer. Remove
2007 quotes around bug url.
2008
2f33032a
KS
20092020-06-11 Keith Seitz <keiths@redhat.com>
2010
2011 PR gdb/21356
2012 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2013 Resolve typedefs for type length calculations.
2014
7ab96794
TV
20152020-06-10 Tom de Vries <tdevries@suse.de>
2016
2017 PR ada/24713
2018 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2019 (write_psymbols): Enable .gdb_index for ada.
2020 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2021 ada.
2022
e5f3ece2
TV
20232020-06-10 Tom de Vries <tdevries@suse.de>
2024
2025 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2026 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2027 namei" instead of "const char *name" argument.
2028 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2029 dw2_symtab_iter_init.
2030
940da03e
SM
20312020-06-08 Simon Marchi <simon.marchi@efficios.com>
2032
2033 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2034 to use type::field and field::type instead.
2035
b6cdac4b
SM
20362020-06-08 Simon Marchi <simon.marchi@efficios.com>
2037
2038 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2039 to use field::type instead.
2040
5d14b6e5
SM
20412020-06-08 Simon Marchi <simon.marchi@efficios.com>
2042
2043 * gdbtypes.h (struct field) <type, set_type>: New methods.
2044 Rename `type` field to...
2045 <m_type>: ... this. Change references throughout to use type or
2046 set_type methods.
2047 (FIELD_TYPE): Use field::type. Change call sites that modify
2048 the field's type to use field::set_type instead.
2049
3d967001
SM
20502020-06-08 Simon Marchi <simon.marchi@efficios.com>
2051
2052 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2053 to use type::index_type instead.
2054
262abc0d
SM
20552020-06-08 Simon Marchi <simon.marchi@efficios.com>
2056
2057 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2058 methods.
2059 (TYPE_INDEX_TYPE): Use type::index_type.
2060 * gdbtypes.c (create_array_type_with_stride): Likewise.
2061
82836c92
TT
20622020-06-07 Tom Tromey <tom@tromey.com>
2063
2064 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2065 parameter.
2066 (generic_value_print): Update.
2067
940dace9
AB
20682020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2069
2070 Revert commit 982a38f60b0.
2071 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2072
982a38f6
AB
20732020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2074
2075 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2076 avoid use after free.
2077
82f06518
TV
20782020-06-05 Tom de Vries <tdevries@suse.de>
2079
2080 * NEWS: Fix typos.
2081
f8c41851
SM
20822020-06-04 Simon Marchi <simon.marchi@efficios.com>
2083
2084 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2085 the per_bfd object.
2086 (dwarf2_read_debug_names): Likewise.
2087 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2088 object when re-using a per_bfd object with an index.
2089
f9b5d5ea
TV
20902020-06-03 Tom de Vries <tdevries@suse.de>
2091
2092 PR symtab/26046
2093 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2094 children for C++.
2095 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2096 DW_TAG_subprogram.
2097
f6eee2d0
AB
20982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2099
2100 * ada-lang.c (ada_language_data): Delete skip_trampoline
2101 initializer.
2102 * c-lang.c (c_language_data): Likewise.
2103 (cplus_language_data): Likewise.
2104 (cplus_language::skip_trampoline): New member function.
2105 (asm_language_data): Delete skip_trampoline initializer.
2106 (minimal_language_data): Likewise.
2107 * d-lang.c (d_language_data): Likewise.
2108 * f-lang.c (f_language_data): Likewise.
2109 * go-lang.c (go_language_data): Likewise.
2110 * language.c (unk_lang_trampoline): Delete function.
2111 (skip_language_trampoline): Update.
2112 (unknown_language_data): Delete skip_trampoline initializer.
2113 (auto_language_data): Likewise.
2114 * language.h (language_data): Delete skip_trampoline field.
2115 (language_defn::skip_trampoline): New function.
2116 * m2-lang.c (m2_language_data): Delete skip_trampoline
2117 initializer.
2118 * objc-lang.c (objc_skip_trampoline): Delete function, move
2119 implementation to objc_language::skip_trampoline.
2120 (objc_language_data): Delete skip_trampoline initializer.
2121 (objc_language::skip_trampoline): New member function with
2122 implementation from objc_skip_trampoline.
2123 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2124 initializer.
2125 * p-lang.c (pascal_language_data): Likewise.
2126 * rust-lang.c (rust_language_data): Likewise.
2127
0a50df5d
AB
21282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2131 (ada_language::demangle): New member function.
2132 * c-lang.c (c_language_data): Delete la_demangle initializer.
2133 (cplus_language_data): Delete la_demangle initializer.
2134 (cplus_language::demangle): New member function.
2135 (asm_language_data): Delete la_demangle initializer.
2136 (minimal_language_data): Delete la_demangle initializer.
2137 * d-lang.c (d_language_data): Delete la_demangle initializer.
2138 (d_language::demangle): New member function.
2139 * f-lang.c (f_language_data): Delete la_demangle initializer.
2140 (f_language::demangle): New member function.
2141 * go-lang.c (go_language_data): Delete la_demangle initializer.
2142 (go_language::demangle): New member function.
2143 * language.c (language_demangle): Update.
2144 (unk_lang_demangle): Delete.
2145 (unknown_language_data): Delete la_demangle initializer.
2146 (unknown_language::demangle): New member function.
2147 (auto_language_data): Delete la_demangle initializer.
2148 (auto_language::demangle): New member function.
2149 * language.h (language_data): Delete la_demangle field.
2150 (language_defn::demangle): New function.
2151 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2152 * objc-lang.c (objc_language_data): Delete la_demangle
2153 initializer.
2154 (objc_language::demangle): New member function.
2155 * opencl-lang.c (opencl_language_data): Delete la_demangle
2156 initializer.
2157 * p-lang.c (pascal_language_data): Likewise.
2158 * rust-lang.c (rust_language_data): Likewise.
2159 (rust_language::demangle): New member function.
2160
fbfb0a46
AB
21612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2162
2163 * ada-lang.c (ada_language_data): Delete la_print_type
2164 initializer.
2165 (ada_language::print_type): New member function.
2166 * c-lang.c (c_language_data): Delete la_print_type initializer.
2167 (c_language::print_type): New member function.
2168 (cplus_language_data): Delete la_print_type initializer.
2169 (cplus_language::print_type): New member function.
2170 (asm_language_data): Delete la_print_type initializer.
2171 (asm_language::print_type): New member function.
2172 (minimal_language_data): Delete la_print_type initializer.
2173 (minimal_language::print_type): New member function.
2174 * d-lang.c (d_language_data): Delete la_print_type initializer.
2175 (d_language::print_type): New member function.
2176 * f-lang.c (f_language_data): Delete la_print_type initializer.
2177 (f_language::print_type): New member function.
2178 * go-lang.c (go_language_data): Delete la_print_type initializer.
2179 (go_language::print_type): New member function.
2180 * language.c (unk_lang_print_type): Delete.
2181 (unknown_language_data): Delete la_print_type initializer.
2182 (unknown_language::print_type): New member function.
2183 (auto_language_data): Delete la_print_type initializer.
2184 (auto_language::print_type): New member function.
2185 * language.h (language_data): Delete la_print_type field.
2186 (language_defn::print_type): New function.
2187 (LA_PRINT_TYPE): Update.
2188 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2189 (m2_language::print_type): New member function.
2190 * objc-lang.c (objc_language_data): Delete la_print_type
2191 initializer.
2192 (objc_language::print_type): New member function.
2193 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2194 to opencl_language::print_type.
2195 (opencl_language_data): Delete la_print_type initializer.
2196 (opencl_language::print_type): New member function, implementation
2197 from opencl_print_type.
2198 * p-lang.c (pascal_language_data): Delete la_print_type
2199 initializer.
2200 (pascal_language::print_type): New member function.
2201 * rust-lang.c (rust_print_type): Delete, implementation moved to
2202 rust_language::print_type.
2203 (rust_language_data): Delete la_print_type initializer.
2204 (rust_language::print_type): New member function, implementation
2205 from rust_print_type.
2206
6f827019
AB
22072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2210 implementation moves to...
2211 (ada_language::sniff_from_mangled_name): ...here. Update return
2212 type.
2213 (ada_language_data): Delete la_sniff_from_mangled_name
2214 initializer.
2215 * c-lang.c (c_language_data): Likewise.
2216 (cplus_language_data): Likewise.
2217 (cplus_language::sniff_from_mangled_name): New member function,
2218 implementation taken from gdb_sniff_from_mangled_name.
2219 (asm_language_data): Delete la_sniff_from_mangled_name
2220 initializer.
2221 (minimal_language_data): Likewise.
2222 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2223 implementation moves to cplus_language::sniff_from_mangled_name.
2224 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2225 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2226 moves to...
2227 (d_language::sniff_from_mangled_name): ...here.
2228 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2229 * f-lang.c (f_language_data): Likewise.
2230 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2231 moves to...
2232 (go_language::sniff_from_mangled_name): ...here.
2233 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2234 * language.c (language_sniff_from_mangled_name): Delete.
2235 (unknown_language_data): Delete la_sniff_from_mangled_name
2236 initializer.
2237 (auto_language_data): Likewise.
2238 * language.h (language_data): Delete la_sniff_from_mangled_name
2239 field.
2240 (language_defn::sniff_from_mangled_name): New function.
2241 (language_sniff_from_mangled_name): Delete declaration.
2242 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2243 field.
2244 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2245 implementation moves to...
2246 (objc_language::sniff_from_mangled_name): ...here.
2247 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2248 * opencl-lang.c (opencl_language_data): Likewise.
2249 * p-lang.c (pascal_language_data): Likewise.
2250 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2251 implementation moves to...
2252 (rust_language::sniff_from_mangled_name): ...here.
2253 (rust_language_data): Delete la_sniff_from_mangled_name
2254 initializer.
2255 * symtab.c (symbol_find_demangled_name): Call
2256 sniff_from_mangled_name member function.
2257
fb8006fd
AB
22582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2259
2260 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2261 initializer.
2262 * c-lang.c (c_language_data): Likewise.
2263 (cplus_language_data): Likewise.
2264 (cplus_language::search_name_hash): New member function.
2265 (asm_language_data): Delete la_search_name_hash initializer.
2266 (minimal_language_data): Likewise.
2267 * d-lang.c (d_language_data): Likewise.
2268 * dictionary.c (default_search_name_hash): Rename to...
2269 (language_defn::search_name_hash): ...this.
2270 * f-lang.c (f_language_data): Likewise.
2271 (f_language::search_name_hash): New member function.
2272 * go-lang.c (go_language_data): Delete la_search_name_hash
2273 initializer.
2274 * language.c (unknown_language_data): Likewise.
2275 (auto_language_data): Likewise.
2276 * language.h (struct language_data): Delete la_search_name_hash
2277 field.
2278 (language_defn::search_name_hash): Declare new member function.
2279 (default_search_name_hash): Delete declaration.
2280 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2281 initializer.
2282 * objc-lang.c (objc_language_data): Likewise.
2283 * opencl-lang.c (opencl_language_data): Likewise.
2284 * p-lang.c (pascal_language_data): Likewise.
2285 * rust-lang.c (rust_language_data): Likewise.
2286 * symtab.c (search_name_hash): Update call.
2287
8e25bafe
AB
22882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2289
2290 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2291 initializer.
2292 * c-lang.c (class compile_instance): Declare.
2293 (c_language_data): Delete la_get_compile_instance initializer.
2294 (c_language::get_compile_instance): New member function.
2295 (cplus_language_data): Delete la_get_compile_instance initializer.
2296 (cplus_language::get_compile_instance): New member function.
2297 (asm_language_data): Delete la_get_compile_instance initializer.
2298 (minimal_language_data): Likewise.
2299 * c-lang.h (c_get_compile_context): Update comment.
2300 (cplus_get_compile_context): Update comment.
2301 * compile/compile.c (compile_to_object): Update calls, don't rely
2302 on function pointer being NULL.
2303 * d-lang.c (d_language_data): Delete la_get_compile_instance
2304 initializer.
2305 * f-lang.c (f_language_data): Likewise.
2306 * go-lang.c (go_language_data): Likewise.
2307 * language.c (unknown_language_data): Likewise.
2308 (auto_language_data): Likewise.
2309 * language.h (language_data): Delete la_get_compile_instance field.
2310 (language_defn::get_compile_instance): New member function.
2311 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2312 initializer.
2313 * objc-lang.c (objc_language_data): Likewise.
2314 * opencl-lang.c (opencl_language_data): Likewise.
2315 * p-lang.c (pascal_language_data): Likewise.
2316 * rust-lang.c (rust_language_data): Likewise.
2317
4009ee92
AB
23182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2319
2320 * ada-lang.c (ada_add_all_symbols): Update comment.
2321 (ada_iterate_over_symbols): Delete, move implementation to...
2322 (ada_language::iterate_over_symbols): ...here, a new member
2323 function, rewrite to use range based for loop.
2324 (ada_language_data): Delete la_iterate_over_symbols initializer.
2325 * c-lang.c (c_language_data): Likewise.
2326 (cplus_language_data): Likewise.
2327 (asm_language_data): Likewise.
2328 (minimal_language_data): Likewise.
2329 * d-lang.c (d_language_data): Likewise.
2330 * f-lang.c (f_language_data): Likewise.
2331 * go-lang.c (go_language_data): Likewise.
2332 * language.c (unknown_language_data): Likewise.
2333 (auto_language_data): Likewise.
2334 * language.h (language_data): Delete la_iterate_over_symbols field.
2335 (language_defn::iterate_over_symbols): New member function.
2336 (LA_ITERATE_OVER_SYMBOLS): Update.
2337 * linespec.c (iterate_over_all_matching_symtabs): Update.
2338 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2339 initializer.
2340 * objc-lang.c (objc_language_data): Likewise.
2341 * opencl-lang.c (opencl_language_data): Likewise.
2342 * p-lang.c (pascal_language_data): Likewise.
2343 * rust-lang.c (rust_language_data): Likewise.
2344
54f4ca46
AB
23452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2346
2347 * ada-lang.c (ada_language_data): Delete
2348 la_lookup_transparent_type initializer.
2349 * c-lang.c (c_language_data): Likewise.
2350 (cplus_language_data): Likewise.
2351 (cplus_language::lookup_transparent_type): New member function.
2352 (asm_language_data): Delete la_lookup_transparent_type
2353 initializer.
2354 (minimal_language_data): Likewise.
2355 * d-lang.c (d_language_data): Likewise.
2356 * f-lang.c (f_language_data): Likewise.
2357 * go-lang.c (go_language_data): Likewise.
2358 * language.c (unknown_language_data): Likewise.
2359 (auto_language_data): Likewise.
2360 * language.h (struct language_data): Delete
2361 la_lookup_transparent_type field.
2362 (language_defn::lookup_transparent_type): New member function.
2363 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2364 initializer.
2365 * objc-lang.c (objc_language_data): Likewise.
2366 * opencl-lang.c (opencl_language_data): Likewise.
2367 * p-lang.c (pascal_language_data): Likewise.
2368 * rust-lang.c (rust_language_data): Likewise.
2369 * symtab.c (symbol_matches_domain): Update call.
2370
1fb314aa
AB
23712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2372
2373 * ada-lang.c (ada_language_arch_info): Delete function, move
2374 implementation to...
2375 (ada_language::language_arch_info): ...here, a new member
2376 function.
2377 (ada_language_data): Delete la_language_arch_info.
2378 * c-lang.c (c_language_data): Likewise.
2379 (c_language::language_arch_info): New member function.
2380 (cplus_language_arch_info): Delete function, move
2381 implementation to...
2382 (cplus_language::language_arch_info): ...here, a new member
2383 function.
2384 (cplus_language_data): Delete la_language_arch_info.
2385 (asm_language_data): Likewise.
2386 (asm_language::language_arch_info): New member function.
2387 (minimal_language_data): Delete la_language_arch_info.
2388 (minimal_language::language_arch_info): New member function.
2389 * d-lang.c (d_language_arch_info): Delete function, move
2390 implementation to...
2391 (d_language::language_arch_info): ...here, a new member
2392 function.
2393 (d_language_data): Delete la_language_arch_info.
2394 * f-lang.c (f_language_arch_info): Delete function, move
2395 implementation to...
2396 (f_language::language_arch_info): ...here, a new member
2397 function.
2398 (f_language_data): Delete la_language_arch_info.
2399 * go-lang.c (go_language_arch_info): Delete function, move
2400 implementation to...
2401 (go_language::language_arch_info): ...here, a new member
2402 function.
2403 (go_language_data): Delete la_language_arch_info.
2404 * language.c (unknown_language_data): Likewise.
2405 (unknown_language::language_arch_info): New member function.
2406 (auto_language_data): Delete la_language_arch_info.
2407 (auto_language::language_arch_info): New member function.
2408 (language_gdbarch_post_init): Update call to
2409 la_language_arch_info.
2410 * language.h (language_data): Delete la_language_arch_info
2411 function pointer.
2412 (language_defn::language_arch_info): New function.
2413 * m2-lang.c (m2_language_arch_info): Delete function, move
2414 implementation to...
2415 (m2_language::language_arch_info): ...here, a new member
2416 function.
2417 (m2_language_data): Delete la_language_arch_info.
2418 * objc-lang.c (objc_language_arch_info): Delete function, move
2419 implementation to...
2420 (objc_language::language_arch_info): ...here, a new member
2421 function.
2422 (objc_language_data): Delete la_language_arch_info.
2423 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2424 implementation to...
2425 (opencl_language::language_arch_info): ...here, a new member
2426 function.
2427 (opencl_language_data): Delete la_language_arch_info.
2428 * p-lang.c (pascal_language_arch_info): Delete function, move
2429 implementation to...
2430 (pascal_language::language_arch_info): ...here, a new member
2431 function.
2432 (pascal_language_data): Delete la_language_arch_info.
2433 * rust-lang.c (rust_language_arch_info): Delete function, move
2434 implementation to...
2435 (rust_language::language_arch_info): ...here, a new member
2436 function.
2437 (rust_language_data): Delete la_language_arch_info.
2438
48448202
AB
24392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2442 initializer.
2443 * c-lang.c (c_language_data): Likewise.
2444 (cplus_language_data): Likewise.
2445 (cplus_language::pass_by_reference_info): New method.
2446 (asm_language_data): Delete la_pass_by_reference initializer.
2447 (minimal_language_data): Likewise.
2448 * cp-abi.c (cp_pass_by_reference): Remove use of
2449 default_pass_by_reference.
2450 * d-lang.c (d_language_data): Likewise.
2451 * f-lang.c (f_language_data): Likewise.
2452 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2453 default_pass_by_reference.
2454 * go-lang.c (go_language_data): Likewise.
2455 * language.c (language_pass_by_reference): Update.
2456 (default_pass_by_reference): Delete.
2457 (unknown_language_data): Delete la_pass_by_reference
2458 initializer.
2459 (auto_language_data): Likewise.
2460 * language.h (struct language_data): Delete la_pass_by_reference
2461 field.
2462 (language_defn::pass_by_reference_info): New member function.
2463 (default_pass_by_reference): Delete declaration.
2464 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2465 initializer.
2466 * objc-lang.c (objc_language_data): Likewise.
2467 * opencl-lang.c (opencl_language_data): Likewise.
2468 * p-lang.c (pascal_language_data): Likewise.
2469 * rust-lang.c (rust_language_data): Likewise.
2470
15e5fd35
AB
24712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * ada-lang.c (ada_read_var_value): Delete function, move
2474 implementation to...
2475 (ada_language::read_var_value): ...here.
2476 (ada_language_data): Delete la_read_var_value initializer.
2477 * c-lang.c (c_language_data): Likewise.
2478 (cplus_language_data): Likewise.
2479 (minimal_language_data): Likewise.
2480 * d-lang.c (d_language_data): Likewise.
2481 * f-lang.c (f_language_data): Likewise.
2482 * findvar.c (default_read_var_value): Rename to...
2483 (language_defn::read_var_value): ...this.
2484 * findvar.c (read_var_value): Update header comment, and change to
2485 call member function instead of function pointer.
2486 * go-lang.c (go_language_data): Likewise.
2487 * language.c (unknown_language_data): Delete la_read_var_value
2488 initializer.
2489 (auto_language_data): Likewise.
2490 * language.h (struct language_data): Delete la_read_var_value
2491 field.
2492 (language_defn::read_var_value): New member function.
2493 (default_read_var_value): Delete declaration.
2494 * m2-lang.c (m2_language_data): Delete la_read_var_value
2495 initializer.
2496 * objc-lang.c (objc_language_data): Likewise.
2497 * opencl-lang.c (opencl_language_data): Likewise.
2498 * p-lang.c (pascal_language_data): Likewise.
2499 * rust-lang.c (rust_language_data): Likewise.
2500 * value.h (default_read_var_value): Delete declaration.
2501
5bd40f2a
AB
25022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2503
2504 * ada-lang.c (ada_print_array_index): Delete function, move
2505 implementation to...
2506 (ada_language::print_array_index): ...here.
2507 (ada_language_data): Delete la_print_array_index initializer.
2508 * c-lang.c (c_language_data): Likewise.
2509 (cplus_language_data): Likewise.
2510 (minimal_language_data): Likewise.
2511 * d-lang.c (d_language_data): Likewise.
2512 * f-lang.c (f_language_data): Likewise.
2513 * go-lang.c (go_language_data): Likewise.
2514 * language.c (default_print_array_index): Delete function, move
2515 implementation to...
2516 (language_defn::print_array_index): ...here.
2517 (unknown_language_data): Delete la_print_array_index initializer.
2518 (auto_language_data): Likewise.
2519 * language.h (struct language_data): Delete la_print_array_index
2520 field.
2521 (language_defn::print_array_index): New member function.
2522 (LA_PRINT_ARRAY_INDEX): Update.
2523 (default_print_array_index): Delete declaration.
2524 * m2-lang.c (m2_language_data): Delete la_print_array_index
2525 initializer.
2526 * objc-lang.c (objc_language_data): Likewise.
2527 * opencl-lang.c (opencl_language_data): Likewise.
2528 * p-lang.c (pascal_language_data): Likewise.
2529 * rust-lang.c (rust_language_data): Likewise.
2530
0874fd07
AB
25312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2532
2533 * gdb/ada-lang.c (ada_language_defn): Convert to...
2534 (ada_language_data): ...this.
2535 (class ada_language): New class.
2536 (ada_language_defn): New static global.
2537 * gdb/c-lang.c (c_language_defn): Convert to...
2538 (c_language_data): ...this.
2539 (class c_language): New class.
2540 (c_language_defn): New static global.
2541 (cplus_language_defn): Convert to...
2542 (cplus_language_data): ...this.
2543 (class cplus_language): New class.
2544 (cplus_language_defn): New static global.
2545 (asm_language_defn): Convert to...
2546 (asm_language_data): ...this.
2547 (class asm_language): New class.
2548 (asm_language_defn): New static global.
2549 (minimal_language_defn): Convert to...
2550 (minimal_language_data): ...this.
2551 (class minimal_language): New class.
2552 (minimal_language_defn): New static global.
2553 * gdb/d-lang.c (d_language_defn): Convert to...
2554 (d_language_data): ...this.
2555 (class d_language): New class.
2556 (d_language_defn): New static global.
2557 * gdb/f-lang.c (f_language_defn): Convert to...
2558 (f_language_data): ...this.
2559 (class f_language): New class.
2560 (f_language_defn): New static global.
2561 * gdb/go-lang.c (go_language_defn): Convert to...
2562 (go_language_data): ...this.
2563 (class go_language): New class.
2564 (go_language_defn): New static global.
2565 * gdb/language.c (unknown_language_defn): Remove declaration.
2566 (current_language): Initialize to nullptr, real initialization is
2567 moved to _initialize_language.
2568 (languages): Delete global.
2569 (language_defn::languages): Define.
2570 (set_language_command): Use language_defn::languages.
2571 (set_language): Likewise.
2572 (range_error): Likewise.
2573 (language_enum): Likewise.
2574 (language_def): Likewise.
2575 (add_set_language_command): Use language_def::languages for the
2576 language list, and language_def to lookup language pointers.
2577 (skip_language_trampoline): Use language_defn::languages.
2578 (unknown_language_defn): Convert to...
2579 (unknown_language_data): ...this.
2580 (class unknown_language): New class.
2581 (unknown_language_defn): New static global.
2582 (auto_language_defn): Convert to...
2583 (auto_language_data): ...this.
2584 (class auto_language): New class.
2585 (auto_language_defn): New static global.
2586 (language_gdbarch_post_init): Use language_defn::languages.
2587 (_initialize_language): Initialize current_language.
2588 * gdb/language.h (struct language_defn): Rename to...
2589 (struct language_data): ...this.
2590 (struct language_defn): New.
2591 (auto_language_defn): Delete.
2592 (unknown_language_defn): Delete.
2593 (minimal_language_defn): Delete.
2594 (ada_language_defn): Delete.
2595 (asm_language_defn): Delete.
2596 (c_language_defn): Delete.
2597 (cplus_language_defn): Delete.
2598 (d_language_defn): Delete.
2599 (f_language_defn): Delete.
2600 (go_language_defn): Delete.
2601 (m2_language_defn): Delete.
2602 (objc_language_defn): Delete.
2603 (opencl_language_defn): Delete.
2604 (pascal_language_defn): Delete.
2605 (rust_language_defn): Delete.
2606 * gdb/m2-lang.c (m2_language_defn): Convert to...
2607 (m2_language_data): ...this.
2608 (class m2_language): New class.
2609 (m2_language_defn): New static global.
2610 * gdb/objc-lang.c (objc_language_defn): Convert to...
2611 (objc_language_data): ...this.
2612 (class objc_language): New class.
2613 (objc_language_defn): New static global.
2614 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2615 (opencl_language_data): ...this.
2616 (class opencl_language): New class.
2617 (opencl_language_defn): New static global.
2618 * gdb/p-lang.c (pascal_language_defn): Convert to...
2619 (pascal_language_data): ...this.
2620 (class pascal_language): New class.
2621 (pascal_language_defn): New static global.
2622 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2623 language pointer, update comment format.
2624 * gdb/rust-lang.c (rust_language_defn): Convert to...
2625 (rust_language_data): ...this.
2626 (class rust_language): New class.
2627 (rust_language_defn): New static global.
2628
1313c56e
AB
26292020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2632 member variable.
2633 <m_stmt_at_address>: New member variable.
2634 (lnp_state_machine::record_line): Don't record some lines, update
2635 tracking of is_stmt at the same address.
2636 (lnp_state_machine::lnp_state_machine): Initialise new member
2637 variables.
2638
b7ed9f3d
ST
26392020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2640
2641 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2642 "-include gnu-nat-mig.h".
2643 * gnu-nat-mig.h: New file.
2644 * gnu-nat.c: Include "gnu-nat-mig.h".
2645 (exc_server, msg_reply_server, notify_server,
2646 process_reply_server): Remove declarations.
2647
14a8ad62
ST
26482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2649
2650 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2651 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2652 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2653 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2654 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2655 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2656 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2657 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2658 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2659 to gnu_nat_target class.
2660 * gnu-nat.c: Likewise.
2661 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2662 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2663 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2664 object.
2665 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2666 instead of `gnu_target'.
2667
0af5e106
ST
26682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2669
2670 * i386-gnu-tdep.c: Include "gdbcore.h"
2671 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2672 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2673 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2674 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2675 i386_gnu_sigcontext_addr): New functions
2676 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2677 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2678 tdep.
2679
078f2fc9
ST
26802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2681
2682 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2683 before fork_inferior call. Avoid calling it if target_is_pushed returns
2684 true.
2685
53dff92c
ST
26862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2687
2688 * gnu-nat.h (gnu_target): New variable declaration.
2689 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2690 gnu_target.
2691 * gnu-nat.c (gnu_target): New variable.
2692 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2693 add_thread_silent, and add_thread calls.
2694 (gnu_nat_target::create_inferior): Pass gnu_target to
2695 add_thread_silent, thread_change_ptid call.
2696 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2697 call.
2698
5a8b8627
ST
26992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2700
2701 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2702 (gnu_nat_target::find_memory_regions): Remove unused
2703 `old_address' variable.
2704
366f550a
ST
27052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2706
2707 * gnu-nat.c: Include "gdbarch.h".
2708
f14871bf
ST
27092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2710
2711 * reply_mig_hack.awk (Error return): Cast function through
2712 void *, to bypass compiler function call check.
2713
c6887cfb
ST
27142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2715
2716 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2717 $(srcdir)/reply_mig_hack.awk.
2718
6930bffe
ST
27192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2720
2721 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2722
112c22ed
JG
27232020-05-30 Jonny Grant <jg@jguk.org>
2724
2725 * configure.ac (ACX_BUGURL): change bug URL to https.
2726
f68f85b5
PA
27272020-05-30 Pedro Alves <palves@redhat.com>
2728
2729 * cp-support.c (replace_typedefs_template): New.
2730 (replace_typedefs_qualified_name): Handle
2731 DEMANGLE_COMPONENT_TEMPLATE.
2732
976ca316
SM
27332020-05-29 Simon Marchi <simon.marchi@efficios.com>
2734
2735 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2736 dwarf2/index-cache.h, dwarf2/index-write.c,
2737 dwarf2/index-write.h, dwarf2/line-header.c,
2738 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2739 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2740 variables and fields from `dwarf2_per_objfile` to just
2741 `per_objfile` throughout.
2742
989ade05
SM
27432020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2744
2745 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2746 <push_dwarf_reg_entry_value>: Add comment.
2747
c47bae85
KB
27482020-05-28 Kevin Buettner <kevinb@redhat.com>
2749 Keith Seitz <keiths@redhat.com>
2750
2751 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2752 instead of PyEval_ReleaseLock.
2753 (class gdbpy_gil): Move to earlier in file.
2754 (finalize_python): Set gdb_python_initialized.
2755 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2756 when not initialized.
2757
44486dcf
SM
27582020-05-28 Simon Marchi <simon.marchi@efficios.com>
2759
2760 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2761 <push_dwarf_reg_entry_value>: Remove assert. Override
2762 per_objfile with caller_per_objfile.
2763
f030440d
TV
27642020-05-28 Tom de Vries <tdevries@suse.de>
2765
2766 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2767 PR gold/15646 workaround to symbol kind "type".
2768
f0fbb768
TT
27692020-05-27 Tom Tromey <tromey@adacore.com>
2770
2771 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2772
af0b2a3e
TT
27732020-05-27 Tom Tromey <tromey@adacore.com>
2774
2775 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2776 Use htab_find_with_hash.
2777 <add_abbrev>: Remove "abbrev_number" parameter.
2778 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2779 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2780 (hash_abbrev): Add comment.
2781 (abbrev_table::lookup_abbrev): Move to header file.
2782 (abbrev_table::read): Update.
2783
7d00ffec
TT
27842020-05-27 Tom Tromey <tromey@adacore.com>
2785
2786 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2787 method.
2788 <canonical_name>: New member.
2789 <raw_name>: Rename from "name".
2790 (partial_die_info): Initialize canonical_name.
2791 (scan_partial_symbols): Check raw_name.
2792 (partial_die_parent_scope, partial_die_full_name)
2793 (add_partial_symbol, add_partial_subprogram)
2794 (add_partial_enumeration, load_partial_dies): Use "name" method.
2795 (partial_die_info::name): New method.
2796 (partial_die_info::read, guess_partial_die_structure_name)
2797 (partial_die_info::fixup): Update.
2798
697bba18
TT
27992020-05-27 Tom Tromey <tromey@adacore.com>
2800
2801 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2802 <get_ref_die_offset>: Inline.
2803 <get_ref_die_offset_complaint>: New method.
2804 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2805 (attribute::get_ref_die_offset_complaint): Rename from
2806 get_ref_die_offset. Just issue complaint.
2807
c17ace43
HD
28082020-05-27 Hannes Domani <ssbssa@yahoo.de>
2809
2810 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2811
96445f0b
HD
28122020-05-27 Hannes Domani <ssbssa@yahoo.de>
2813
2814 * exec.c (exec_file_attach): Use errno value of first openp failure.
2815
ac637ec3
HD
28162020-05-27 Hannes Domani <ssbssa@yahoo.de>
2817
2818 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2819 Don't close thread handle.
2820
17ee85fc
TT
28212020-05-27 Tom Tromey <tom@tromey.com>
2822 Simon Marchi <simon.marchi@efficios.com>
2823
2824 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2825 shared_ptr.
2826 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2827 member.
2828 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2829 dwarf2_per_bfd_objfile_data_key>: New globals.
2830 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2831 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2832 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2833 shared.
2834 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2835 short-circuit when sharing.
2836 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2837 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2838
39b16f87
SM
28392020-05-27 Simon Marchi <simon.marchi@efficios.com>
2840
2841 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2842 to...
2843 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2844 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2845
fcf23d5b
SM
28462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2847
2848 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2849 build_name_components, find_name_components_bounds>:
2850 Add per_objfile parameter.
2851 (struct mapped_index) <symbol_name_at>: Likewise.
2852 (struct mapped_debug_names): Remove constructor.
2853 <dwarf2_per_objfile>: Remove field.
2854 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2855 (mapped_index_base::find_name_components_bounds,
2856 mapped_index_base::build_name_components,
2857 dw2_expand_symtabs_matching_symbol): Likewise.
2858 (class mock_mapped_index) <symbol_name_at>: Likewise.
2859 (check_match): Likewise.
2860 (check_find_bounds_finds): Likewise.
2861 (test_mapped_index_find_name_component_bounds): Update.
2862 (CHECK_MATCH): Update.
2863 (dw2_expand_symtabs_matching): Update.
2864 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2865 per_objfile parameter.
2866 <find_vec_in_debug_names>: Likewise.
2867 <m_per_objfile>: New field.
2868 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2869 parameter.
2870 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2871 (dw2_debug_names_iterator::next): Update.
2872 (dw2_debug_names_lookup_symbol): Update.
2873 (dw2_debug_names_expand_symtabs_for_function): Update.
2874 (dw2_debug_names_map_matching_symbols): Update.
2875 (dw2_debug_names_expand_symtabs_matching): Update.
2876 (dwarf2_read_debug_names): Update.
2877
7188ed02
SM
28782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2879
2880 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2881 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2882 move to dwarf2_per_objfile.
2883 <read_in_chain>: Remove.
2884 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2885 remove_all_cus, age_comp_units>: New methods.
2886 <m_dwarf2_cus>: New member.
2887 (struct dwarf2_per_cu_data) <cu>: Remove.
2888 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2889 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2890 moved to methods of dwarf2_per_objfile.
2891 (dwarf2_clear_marks): Remove.
2892 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2893 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2894 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2895 (dwarf2_per_objfile::remove_all_cus): New.
2896 (class free_cached_comp_units) <~free_cached_comp_units>:
2897 Update.
2898 (load_cu): Update.
2899 (dw2_do_instantiate_symtab): Adjust.
2900 (fill_in_sig_entry_from_dwo_entry): Adjust.
2901 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2902 (cutu_reader::cutu_reader): Likewise.
2903 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2904 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2905 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2906 and dwarf2_per_objfile::age_comp_units.
2907 (load_partial_comp_unit): Update.
2908 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2909 (process_queue): Likewise.
2910 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2911 backlink.
2912 (dwarf2_read_addr_index): Likewise.
2913 (follow_die_offset): Likewise.
2914 (dwarf2_fetch_die_loc_sect_off): Likewise.
2915 (dwarf2_fetch_constant_bytes): Likewise.
2916 (dwarf2_fetch_die_type_sect_off): Likewise.
2917 (follow_die_sig_1): Likewise.
2918 (load_full_type_unit): Likewise.
2919 (read_signatured_type): Likewise.
2920 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2921 (dwarf2_cu::~dwarf2_cu): Remove.
2922 (dwarf2_per_objfile::get_cu): New.
2923 (dwarf2_per_objfile::set_cu): New.
2924 (age_cached_comp_units): Rename to...
2925 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2926 to std::unordered_map.
2927 (free_one_cached_comp_unit): Rename to...
2928 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2929 to std::unordered_map.
2930 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2931 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2932 a dwarf2_per_objfile in data.
2933 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2934 (dwarf2_clear_marks): Remove.
2935
2e671100
SM
29362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2937
2938 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2939 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2940 (init_tu_and_read_dwo_dies): Likewise.
2941 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2942 (cutu_reader::cutu_reader): Likewise.
2943 (load_partial_comp_unit): Likewise.
2944 (process_psymtab_comp_unit): Update.
2945 (build_type_psymtabs_1): Update.
2946 (process_skeletonless_type_unit): Update.
2947 (load_full_comp_unit): Update.
2948 (find_partial_die): Update.
2949 (dwarf2_read_addr_index): Update.
2950 (read_signatured_type): Update.
2951
2e6a9f79
SM
29522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2953
2954 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2955 m_header_read_in>: New fields.
2956 <get_header>: New method.
2957 * dwarf2/read.c (per_cu_header_read_in): Remove.
2958 (dwarf2_per_cu_data::get_header): New.
2959 (dwarf2_per_cu_data::addr_size): Update.
2960 (dwarf2_per_cu_data::offset_size): Update.
2961 (dwarf2_per_cu_data::ref_addr_size): Update.
2962
1b555f17
SM
29632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2964
2965 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2966 (dw2_do_instantiate_symtab): Update.
2967 (queue_and_load_all_dwo_tus): Change parameter from
2968 dwarf2_per_cu_data to dwarf2_cu.
2969 (dwarf2_fetch_die_loc_sect_off): Update.
2970 (dwarf2_fetch_constant_bytes): Update.
2971 (dwarf2_fetch_die_type_sect_off): Update.
2972
8fc0b21d
SM
29732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2974
2975 * dwarf2/read.c (process_full_comp_unit,
2976 process_full_type_unit): Remove per_cu, per_objfile paramters.
2977 Add dwarf2_cu parameter.
2978 (process_queue): Update.
2979
168c9250
SM
29802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2981
2982 * dwarf2/read.c (create_cu_from_index_list): Replace
2983 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2984 (create_cus_from_index_list): Likewise.
2985 (create_cus_from_index): Likewise.
2986 (create_signatured_type_table_from_index): Likewise.
2987 (create_cus_from_debug_names_list): Likewise.
2988 (create_cus_from_debug_names): Likewise.
2989 (dwarf2_read_gdb_index): Update.
2990 (dwarf2_read_debug_names): Update.
2991
e286671b
TT
29922020-05-27 Tom Tromey <tom@tromey.com>
2993 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * dwarf2/read.h (struct dwarf2_per_objfile)
2996 <get_type_for_signatured_type, set_type_for_signatured_type>:
2997 New methods.
2998 <m_type_map>: New member.
2999 (struct signatured_type) <type>: Remove.
3000 * dwarf2/read.c
3001 (dwarf2_per_objfile::get_type_for_signatured_type,
3002 dwarf2_per_objfile::set_type_for_signatured_type): New.
3003 (get_signatured_type): Use new methods.
3004
8adb8487
TT
30052020-05-27 Tom Tromey <tom@tromey.com>
3006 Simon Marchi <simon.marchi@efficios.com>
3007
3008 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3009 (struct dwarf2_per_objfile) <type_units>: New member.
3010 <get_type_unit_group_unshareable>: New method.
3011 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3012 num_symtabs, symtabs>: Remove; move to
3013 type_unit_group_unshareable.
3014 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3015 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3016 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3017
127bbf4b
SM
30182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3019
3020 * dwarf2/read.h (struct dwarf2_per_cu_data):
3021 <dwarf2_per_objfile>: Remove.
3022 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3023 dwarf2_per_objfile.
3024 (create_signatured_type_table_from_index): Likewise.
3025 (create_signatured_type_table_from_debug_names): Likewise.
3026 (create_debug_type_hash_table): Likewise.
3027 (fill_in_sig_entry_from_dwo_entry): Likewise.
3028 (create_type_unit_group): Likewise.
3029 (read_comp_units_from_section): Likewise.
3030 (create_cus_hash_table): Likewise.
3031
f6e649dd
SM
30322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3033
3034 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3035 dwarf2_per_cu_data::dwarf2_per_objfile.
3036 (compute_compunit_symtab_includes): Likewise.
3037 (dwarf2_cu::start_symtab): Likewise.
3038
aa66c379
SM
30392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3040
3041 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3042 parameter.
3043 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3044 (read_namespace_alias): Update.
3045 (lookup_die_type): Update.
3046 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3047 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3048 Update.
3049 (disassemble_dwarf_expression): Update.
3050
120ce1b5
SM
30512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3052
3053 * dwarf2/read.h (struct dwarf2_queue_item): Add
3054 dwarf2_per_objfile parameter, assign new parameter.
3055 <per_objfile>: New field.
3056 * dwarf2/read.c (free_one_cached_comp_unit): Add
3057 dwarf2_per_objfile parameter.
3058 (queue_comp_unit): Likewise.
3059 (dw2_do_instantiate_symtab): Update.
3060 (process_psymtab_comp_unit): Update.
3061 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3062 (process_imported_unit_die): Update.
3063 (queue_and_load_dwo_tu): Update.
3064 (follow_die_offset): Update.
3065 (follow_die_sig_1): Update.
3066
9f47c707
SM
30672020-05-27 Simon Marchi <simon.marchi@efficios.com>
3068
3069 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3070 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3071 (read_call_site_scope): Assign per_objfile.
3072 (dwarf2_per_cu_data::objfile): Remove.
3073 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3074 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3075 dwarf2_per_objfile parameter.
3076 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3077 dwarf2_per_objfile parameter.
3078 (dwarf_expr_reg_to_entry_parameter): Add output
3079 dwarf2_per_objfile parameter.
3080 (locexpr_get_frame_base): Update.
3081 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3082 <push_dwarf_reg_entry_value>: Update.
3083 <call_site_to_target_addr>: Update.
3084 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3085 parameter.
3086 (value_of_dwarf_reg_entry): Update.
3087 (rw_pieced_value): Update.
3088 (indirect_synthetic_pointer): Update.
3089 (dwarf2_evaluate_property): Update.
3090 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3091 parameter.
3092 (locexpr_read_variable): Update.
3093 (locexpr_get_symbol_read_needs): Update.
3094 (loclist_read_variable): Update.
3095
14095eb3
SM
30962020-05-27 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
3103 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3104 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3105 parameter.
3106 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3107 sect_variable_value): Add dwarf2_per_objfile parameter.
3108 (class dwarf_evaluate_loc_desc) <dwarf_call,
3109 dwarf_variable_value>: Update.
3110 (fetch_const_value_from_synthetic_pointer): Add
3111 dwarf2_per_objfile parameter.
3112 (fetch_const_value_from_synthetic_pointer): Update.
3113 (coerced_pieced_ref): Update.
3114 (class symbol_needs_eval_context) <dwarf_call,
3115 dwarf_variable_value>: Update.
3116 (dwarf2_compile_expr_to_ax): Update.
3117
3c3cd3d4
SM
31182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3119
3120 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3121 parameter.
3122 (dwarf2_evaluate_loc_desc_full): Update.
3123
82ca3f51
SM
31242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3125
3126 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3127 parameter.
3128 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3129 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3130 dwarf2_per_objfile parameter.
3131 (decode_debug_loc_dwo_addresses): Likewise.
3132 (dwarf2_find_location_expression): Update.
3133 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3134 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3135 parameter.
3136 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3137 parameter.
3138 (locexpr_describe_location_1): Likewise.
3139 (locexpr_describe_location): Update.
3140
4b167ea1
SM
31412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3142
3143 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3144 Remove.
3145 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3146 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3147 (dwarf2_compile_property_to_c): Update.
3148 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3149 use text offset from objfile.
3150 (locexpr_tracepoint_var_ref): Update.
3151 (locexpr_generate_c_location): Update.
3152 (loclist_describe_location): Update.
3153 (loclist_tracepoint_var_ref): Update.
3154 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3155 dwarf2_per_objfile parameter.
3156 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3157 use text offset from objfile.
3158 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3159
89b07335
SM
31602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3161
3162 * dwarf2/expr.h (struct dwarf_expr_context)
3163 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3164 <offset>: Remove.
3165 <per_objfile>: New member.
3166 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3167 dwarf2_per_objfile parameter. Don't set offset, set
3168 per_objfile.
3169 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3170 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3171 a dwarf2_per_objfile object instead of an offset.
3172 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3173 constructor.
3174 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3175 to dwarf2_expr_executor constructor. Don't set offset.
3176 (dwarf2_fetch_cfa_info): Update.
3177 (struct dwarf2_frame_cache) <text_offset>: Remove.
3178 <per_objfile>: New field.
3179 (dwarf2_frame_cache): Update.
3180 (dwarf2_frame_prev_register): Update.
3181 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3182 <dwarf_evaluate_loc_desc>: Add constructor.
3183 (dwarf2_evaluate_loc_desc_full): Update.
3184 (dwarf2_locexpr_baton_eval): Update.
3185 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3186 Add constructor.
3187 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3188
293e7e51
SM
31892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3190
3191 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3192 addr_sized_int_type>: Move to dwarf2_cu.
3193 <int_type>: Move to dwarf2_per_objfile.
3194 (struct dwarf2_per_objfile) <int_type>: Move here.
3195 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3196 addr_sized_int_type>: Move here.
3197 (read_func_scope): Update.
3198 (read_array_type): Update.
3199 (read_tag_string_type): Update.
3200 (attr_to_dynamic_prop): Update.
3201 (dwarf2_per_cu_data::int_type): Rename to...
3202 (dwarf2_per_objfile::int_type): ... this.
3203 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3204 (dwarf2_cu::addr_sized_int_type): ... this.
3205 (read_subrange_type): Update.
3206 (dwarf2_per_cu_data::addr_type): Rename to...
3207 (dwarf2_cu::addr_type): ... this.
3208 (set_die_type): Update.
3209
64874a40
SM
32102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3211
3212 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3213 data through per_cu->cu.
3214
4ab09049
SM
32152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3216
3217 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3218 dwarf2_per_cu_data parameter fo dwarf2_cu.
3219 (lookup_dwo_type_unit): Likewise.
3220 (read_cutu_die_from_dwo): Likewise.
3221 (lookup_dwo_unit): Likewise.
3222 (open_and_init_dwo_file): Likewise.
3223 (lookup_dwo_cutu): Likewise.
3224 (lookup_dwo_comp_unit): Likewise.
3225 (lookup_dwo_type_unit): Likewise.
3226 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3227 (cutu_reader::cutu_reader): Update.
3228
47b14e86
SM
32292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3230
3231 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3232 parameter.
3233 (process_full_type_unit): Likewise.
3234 (process_queue): Update.
3235
43182c09
SM
32362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3237
3238 * dwarf2/read.c (recursively_compute_inclusions): Add
3239 dwarf2_per_objfile parameter.
3240 (compute_compunit_symtab_includes): Likewise.
3241 (process_cu_includes): Update.
3242
7aa104c4
SM
32432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3244
3245 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3246 parameter.
3247 (create_type_unit_group): Update.
3248 (process_psymtab_comp_unit_reader): Update.
3249 (build_type_psymtabs_reader): Update.
3250
e3beb21d
SM
32512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3252
3253 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3254 object through m_this_cu->cu.
3255
d460f660
SM
32562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3257
3258 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3259 the info parameter.
3260 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3261
ab432490
SM
32622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3263
3264 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3265 per_objfile parameter.
3266 (load_full_type_unit): Add per_objfile parameter.
3267 (read_signatured_type): Likewise.
3268 (load_full_comp_unit): Likewise.
3269 (load_cu): Likewise.
3270 (dw2_do_instantiate_symtab): Likewise.
3271 (dw2_get_file_names): Likewise.
3272 (dw2_map_symtabs_matching_filename): Update.
3273 (dw_expand_symtabs_matching_file_matcher): Update.
3274 (dw2_map_symbol_filenames): Update.
3275 (process_psymtab_comp_unit): Add per_objfile parameter.
3276 (build_type_psymtabs_1): Update.
3277 (process_skeletonless_type_unit): Update.
3278 (dwarf2_build_psymtabs_hard): Update.
3279 (load_partial_comp_unit): Add per_objfile parameter.
3280 (scan_partial_symbols): Update.
3281 (load_full_comp_unit): Add per_objfile parameter.
3282 (process_imported_unit_die): Update.
3283 (create_cus_hash_table): Update.
3284 (find_partial_die): Update.
3285 (dwarf2_read_addr_index): Update.
3286 (follow_die_offset): Update.
3287 (dwarf2_fetch_die_loc_sect_off): Update.
3288 (dwarf2_fetch_constant_bytes): Update.
3289 (dwarf2_fetch_die_type_sect_off): Update.
3290 (follow_die_sig_1): Update.
3291 (load_full_type_unit): Add per_objfile parameter.
3292 (read_signatured_type): Likewise.
3293
313bad1b
SM
32942020-05-27 Simon Marchi <simon.marchi@efficios.com>
3295
3296 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3297 of objfile_name.
3298
c3699833
SM
32992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3300
3301 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3302 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3303 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3304 field.
3305 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3306 (create_cus_from_index): Update.
3307 (dwarf2_read_gdb_index): Update.
3308 (create_cus_from_debug_names): Update.
3309 (dwarf2_read_debug_names): Update.
3310 (get_abbrev_section_for_cu): Update.
3311 (create_all_comp_units): Update.
3312 (read_attribute_value): Update.
3313 (get_debug_line_section): Update.
3314 * dwarf2/index-cache.c (index_cache::store): Update.
3315 * dwarf2/index-write.c (save_gdb_index_command): Update.
3316 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3317
1859c670
SM
33182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3319
3320 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3321 member.
3322 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3323 dwarf2_per_cu_data::per_bfd.
3324 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3325 (create_type_unit_group): Likewise.
3326 (queue_comp_unit): Remove reference to
3327 per_cu->dwarf2_per_objfile.
3328 (maybe_queue_comp_unit): Likewise.
3329 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3330 (create_cus_hash_table): Assign new field.
3331
5e22e966
SM
33322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3333
3334 * dwarf2/read.c: Replace
3335 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3336 dwarf2_cu->per_objfile throughout.
3337
97a1449a
SM
33382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3339
3340 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3341 parameter, don't use per_cu->dwarf2_per_objfile.
3342 (dw2_instantiate_symtab): Likewise.
3343 (dw2_find_last_source_symtab): Update.
3344 (dw2_map_expand_apply): Update.
3345 (dw2_lookup_symbol): Update.
3346 (dw2_expand_symtabs_for_function): Update.
3347 (dw2_expand_all_symtabs): Update.
3348 (dw2_expand_symtabs_with_fullname): Update.
3349 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3350 don't use per_cu->dwarf2_per_objfile.
3351 (dw2_expand_marked_cus): Update.
3352 (dw2_find_pc_sect_compunit_symtab): Update.
3353 (dw2_debug_names_lookup_symbol): Update.
3354 (dw2_debug_names_expand_symtabs_for_function): Update.
3355 (dw2_debug_names_map_matching_symbols): Update.
3356 (dwarf2_psymtab::expand_psymtab): Update.
3357
9e021579
SM
33582020-05-27 Simon Marchi <simon.marchi@efficios.com>
3359
3360 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3361 <per_objfile>: New member.
3362 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3363 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3364 call to dwarf2_cu.
3365 (cutu_reader::cutu_reader): Update.
3366 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3367
ae090bdb
SM
33682020-05-27 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3371 struct dwarf2_per_objfile.
3372 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3373 dwarf2_per_bfd.
3374 * dwarf2/read.c (set_die_type): Update.
3375 (get_die_type_at_offset): Update.
3376
af758d11
SM
33772020-05-27 Tom Tromey <tom@tromey.com>
3378 Simon Marchi <simon.marchi@efficios.com>
3379
3380 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3381 method.
3382 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3383 get_symtab, set_symtab>: New methods.
3384 <m_symtabs>: New field.
3385 (struct dwarf2_psymtab): Derive from partial_symtab.
3386 <readin_p, get_compunit_symtab>: Declare methods.
3387 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3388 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3389 New methods.
3390 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3391 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3392 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3393 (dw2_symtab_iter_next, dw2_print_stats)
3394 (dw2_expand_symtabs_with_fullname)
3395 (dw2_expand_symtabs_matching_one)
3396 (dw_expand_symtabs_matching_file_matcher)
3397 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3398 (dw2_debug_names_iterator::next)
3399 (dw2_debug_names_map_matching_symbols)
3400 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3401 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3402 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3403 New methods.
3404 (get_compunit_symtab, process_full_comp_unit)
3405 (process_full_type_unit): Update.
3406 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3407
5989a64e
SM
34082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3409
3410 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3411 then introduce a new dwarf2_per_objfile type.
3412 <read_line_string>: Move to the new dwarf2_per_objfile type.
3413 <objfile>: Likewise.
3414 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3415 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3416 dwarf2_per_objfile->per_bfd.
3417 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3418 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3419 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3420 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3421 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3422 (dwarf2_per_objfile::locate_sections): Rename to...
3423 (dwarf2_per_bfd::locate_sections): ... this.
3424 (dwarf2_per_objfile::get_cutu): Rename to...
3425 (dwarf2_per_bfd::get_cutu): ... this.
3426 (dwarf2_per_objfile::get_cu): Rename to...
3427 (dwarf2_per_bfd::get_cu): ... this.
3428 (dwarf2_per_objfile::get_tu): Rename to...
3429 (dwarf2_per_bfd::get_tu): ... this.
3430 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3431 (dwarf2_per_bfd::allocate_per_cu): ... this.
3432 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3433 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3434 (get_gdb_index_contents_ftype): Change parameter from
3435 dwarf2_per_objfile to dwarf2_per_bfd.
3436 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3437 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3438
a50264ba
TT
34392020-05-27 Tom Tromey <tom@tromey.com>
3440 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3443 (allocate_piece_closure): Set "per_objfile" member.
3444 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3445 (locexpr_describe_location, loclist_describe_location): Use new
3446 member.
3447 * dwarf2/read.c (read_call_site_scope)
3448 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3449 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3450 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3451 handle_data_member_location): Set per_objfile member.
3452 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3453 member.
3454 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3455
d3473f0c
TT
34562020-05-27 Tom Tromey <tom@tromey.com>
3457
3458 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3459 allocate_signatured_type>: Declare new methods.
3460 <m_num_psymtabs>: New member.
3461 (struct dwarf2_per_cu_data) <index>: New member.
3462 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3463 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3464 (create_cu_from_index_list): Use allocate_per_cu.
3465 (create_signatured_type_table_from_index)
3466 (create_signatured_type_table_from_debug_names)
3467 (create_debug_type_hash_table, add_type_unit)
3468 (read_comp_units_from_section): Use allocate_signatured_type.
3469
5717c425
TT
34702020-05-27 Tom Tromey <tom@tromey.com>
3471
3472 * psymtab.c (partial_map_expand_apply)
3473 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3474 (psym_lookup_global_symbol_language)
3475 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3476 (psym_print_stats, psym_expand_symtabs_for_function)
3477 (psym_map_symbol_filenames, psym_map_matching_symbols)
3478 (psym_expand_symtabs_matching)
3479 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3480 (maintenance_check_psymtabs): Update.
3481 * psympriv.h (struct partial_symtab) <readin_p,
3482 get_compunit_symtab>: Add objfile parameter.
3483 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3484 Likewise.
3485 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3486 get_compunit_symtab>: Likewise.
3487 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3488
45940949
TT
34892020-05-27 Tom Tromey <tom@tromey.com>
3490
3491 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3492 member.
3493 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3494 (create_cu_from_index_list)
3495 (create_signatured_type_table_from_index)
3496 (create_signatured_type_table_from_debug_names)
3497 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3498 (dwarf2_create_include_psymtab)
3499 (create_debug_type_hash_table, add_type_unit)
3500 (create_type_unit_group, read_comp_units_from_section)
3501 (dwarf2_compute_name, create_cus_hash_table)
3502 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3503 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3504 obstack.
3505 (dw2_get_real_path): Likewise. Change argument to
3506 dwarf2_per_objfile.
3507
f8c6d152
LM
35082020-05-27 Luis Machado <luis.machado@linaro.org>
3509
3510 PR tdep/26000
3511 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3512 for ldrd (immediate).
3513
e98d2e6d
PW
35142020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3515
3516 * command.h: Add comment giving the name of class_tui.
3517 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3518 create the fake command for the help for class_tui.
3519
53a47a3e
TT
35202020-05-26 Tom Tromey <tromey@adacore.com>
3521
3522 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3523 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3524 (val_atr): New function.
3525 (value_val_atr): Use it.
3526 * ada-valprint.c (print_optional_low_bound): Change low bound
3527 handling for enums.
3528 (val_print_packed_array_elements): Don't call discrete_position.
3529 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3530 discrete_position for enum types.
3531 * language.c (default_print_array_index): Change type.
3532 * language.h (struct language_defn) <la_print_array_index>: Add
3533 index_type parameter, change type of index_value.
3534 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3535 (default_print_array_index): Update.
3536 * valprint.c (maybe_print_array_index): Don't call
3537 value_from_longest. Update.
3538 (value_print_array_elements): Don't call discrete_position.
3539
0bc2354b
TT
35402020-05-26 Tom Tromey <tromey@adacore.com>
3541
3542 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3543 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3544
1218a4bf
CDA
35452020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3546
3547 PR gdb/13519
3548 * avr-tdep.c (avr_integer_to_address): Return data or code
3549 address accordingly to the second 'type' argument of the
3550 function.
3551
92651b1d
MW
35522020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3553
3554 * infcmd.c, inferior.h: (construct_inferior_arguments):
3555 Moved function from here to gdbsupport/common-inferior.{h,cc}
3556
0a4f5f8c
TT
35572020-05-23 Tom Tromey <tom@tromey.com>
3558
3559 Revert commit eca1f90c:
3560 * NEWS: Remove entry for completion styling.
3561 * completer.c (_rl_completion_prefix_display_length): Move
3562 declaration later.
3563 (gdb_fnprint): Revert.
3564 (gdb_display_match_list_1): Likewise.
3565 * cli/cli-style.c (completion_prefix_style)
3566 (completion_difference_style, completion_suffix_style): Remove.
3567 (_initialize_cli_style): Revert.
3568 * cli/cli-style.h (completion_prefix_style)
3569 (completion_difference_style, completion_suffix_style): Don't
3570 declare.
3571
e08bd6c5
PA
35722020-05-24 Pedro Alves <palves@redhat.com>
3573
3574 * symtab.c (completion_list_add_name): Return boolean indication
3575 of whether the symbol matched.
3576 (completion_list_add_symbol): Don't try to remove C++ aliases if
3577 the symbol didn't match in the first place.
3578 * symtab.h (completion_list_add_name): Return bool.
3579
ceacbf6e
SM
35802020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3581
3582 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3583 type::field.
3584
26f16254
JB
35852020-05-23 Joel Brobecker <brobecker@adacore.com>
3586
3587 GDB 9.2 released.
3588
eca1f90c
TT
35892020-05-23 Tom Tromey <tom@tromey.com>
3590
3591 * NEWS: Add entry for completion styling.
3592 * completer.c (_rl_completion_prefix_display_length): Move
3593 declaration earlier.
3594 (gdb_fnprint): Use completion_style.
3595 (gdb_display_match_list_1): Likewise.
3596 * cli/cli-style.c (completion_prefix_style)
3597 (completion_difference_style, completion_suffix_style): New
3598 globals.
3599 (_initialize_cli_style): Register new globals.
3600 * cli/cli-style.h (completion_prefix_style)
3601 (completion_difference_style, completion_suffix_style): Declare.
3602
51e2cfa2
PA
36032020-05-23 Pedro Alves <palves@redhat.com>
3604
3605 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3606 (parse_escape): Use ISDIGIT instead of isdigit.
3607 (puts_debug): Use gdb_isprint instead of isprint.
3608 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3609 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3610 ISSPACE instead of isspace.
3611 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3612 instead of isspace.
3613 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3614 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3615 instead of isxdigit and ISDIGIT instead of isdigit.
3616
80fc5e77
SM
36172020-05-22 Simon Marchi <simon.marchi@efficios.com>
3618
3619 * gdbtypes.h (struct type) <field>: New method.
3620 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3621 or type::field.
3622
3cabb6b0
SM
36232020-05-22 Simon Marchi <simon.marchi@efficios.com>
3624
3625 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3626 (TYPE_FIELDS): Use type::fields. Change all call sites that
3627 modify the propery to use type::set_fields instead.
3628
1f704f76
SM
36292020-05-22 Simon Marchi <simon.marchi@efficios.com>
3630
3631 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3632 type::num_fields instead.
3633
5e33d5f4
SM
36342020-05-22 Simon Marchi <simon.marchi@efficios.com>
3635
3636 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3637 methods.
3638 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3639 that modify the number of fields to use type::set_num_fields
3640 instead.
3641
9392ebb3
TT
36422020-05-22 Tom Tromey <tromey@adacore.com>
3643
3644 * compile/compile-object-load.h (munmap_list_free): Don't
3645 declare.
3646
7c13f4e8
AB
36472020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3648
3649 * annotate.c (annotate_source_line): Update return type, add call
3650 to update current symtab and line.
3651 * annotate.h (annotate_source_line): Update return type, and
3652 extend header comment.
3653 * source.c (info_line_command): Check annotation_level before
3654 calling annotate_source_line.
3655 * stack.c (print_frame_info): If calling annotate_source_line
3656 returns true, then don't print any other source line information.
3657
aa370940
SM
36582020-05-21 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3661
84d53fa9
SM
36622020-05-21 Simon Marchi <simon.marchi@efficios.com>
3663
3664 * coffread.c (patch_type): Remove NULL check before xfree.
3665 * corefile.c (set_gnutarget): Likewise.
3666 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3667 * exec.c (build_section_table): Likewise.
3668 * remote.c (remote_target::pass_signals): Likewise.
3669 * utils.c (n_spaces): Likewise.
3670 * cli/cli-script.c (document_command): Likewise.
3671 * i386-windows-tdep.c (core_process_module_section): Likewise.
3672 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3673
9d428aae
SM
36742020-05-20 Simon Marchi <simon.marchi@efficios.com>
3675
3676 * symfile.c (reread_symbols): Clear objfile's section_offsets
3677 vector and section indices, re-compute them by calling
3678 sym_offsets.
3679
250106a7
TT
36802020-05-20 Tom Tromey <tromey@adacore.com>
3681
3682 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3683 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3684
9a0bacfb
TV
36852020-05-20 Tom de Vries <tdevries@suse.de>
3686
3687 PR symtab/25833
3688 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3689
7b958a48
AM
36902020-05-20 Alan Modra <amodra@gmail.com>
3691
3692 PR 25993
3693 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3694 bfd_set_filename.
3695 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3696 passed to bfd_set_filename.
3697 * symfile-mem.c (add_vsyscall_page): Likewise for string
3698 passed to symbol_file_add_from_memory.
3699 (symbol_file_add_from_memory): Make name param a const char* and
3700 don't strdup.
3701
c7e97679
AM
37022020-05-20 Alan Modra <amodra@gmail.com>
3703
3704 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3705 rather than accessing bfd->filename directly.
3706 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3707 and use bfd_section_name.
3708 * dwarf2/frame.c (decode_frame_entry): Likewise.
3709 * exec.c (exec_set_section_address): Likewise.
3710 * solib-aix.c (solib_aix_bfd_open): Likewise.
3711 * stap-probe.c (get_stap_base_address): Likewise.
3712 * symfile.c (reread_symbols): Likewise.
3713
563c591b
TT
37142020-05-19 Tom Tromey <tromey@adacore.com>
3715
3716 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3717
f408d82c
SM
37182020-05-19 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3721
98c59b52
PA
37222020-05-19 Pedro Alves <palves@redhat.com>
3723
3724 * NEWS (set exec-file-mismatch): Adjust entry.
3725 * exec.c: Include "build-id.h".
3726 (validate_exec_file): Try to match build IDs instead of filenames.
3727 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3728 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3729 and pass down 'warn_if_slow'.
3730 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3731 gdb_bfd_open_closure to pass it down.
3732 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3733
4111f652
PA
37342020-05-19 Pedro Alves <palves@redhat.com>
3735
3736 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3737 * target.c (target_fileio_open_1): Rename to target_fileio_open
3738 and make extern. Use bool.
3739 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3740 (target_fileio_read_alloc_1): Adjust.
3741 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3742 (target_fileio_open_warn_if_slow): Delete declaration.
3743
ad80db5b
PA
37442020-05-19 Pedro Alves <palves@redhat.com>
3745
3746 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3747 Adjust all callers.
3748
1d6ce4d3
YS
37492020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3750
3751 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3752 whether disp is negative.
3753
9005fbbb
SM
37542020-05-19 Simon Marchi <simon.marchi@efficios.com>
3755
3756 * symfile.h (struct symfile_segment_data)
3757 <~symfile_segment_data>: Remove.
3758 <segment_info>: Change to std::vector.
3759 * symfile.c (default_symfile_segments): Update.
3760 * elfread.c (elf_symfile_segments): Update.
3761
68b888ff
SM
37622020-05-19 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3765 <segments>: New.
3766 <segment_bases, segment_sizes>: Remove.
3767 * symfile.c (default_symfile_segments): Update.
3768 * elfread.c (elf_symfile_segments): Update.
3769 * remote.c (remote_target::get_offsets): Update.
3770 * solib-target.c (solib_target_relocate_section_addresses):
3771 Update.
3772
62982abd
SM
37732020-05-19 Simon Marchi <simon.marchi@efficios.com>
3774
3775 * symfile.h (struct symfile_segment_data): Initialize fields.
3776 <~symfile_segment_data>: Add.
3777 (symfile_segment_data_up): New.
3778 (struct sym_fns) <sym_segments>: Return a
3779 symfile_segment_data_up.
3780 (default_symfile_segments): Return a symfile_segment_data_up.
3781 (free_symfile_segment_data): Remove.
3782 (get_symfile_segment_data): Return a symfile_segment_data_up.
3783 * symfile.c (default_symfile_segments): Likewise.
3784 (get_symfile_segment_data): Likewise.
3785 (free_symfile_segment_data): Remove.
3786 (symfile_find_segment_sections): Update.
3787 * elfread.c (elf_symfile_segments): Return a
3788 symfile_segment_data_up.
3789 * remote.c (remote_target::get_offsets): Update.
3790 * solib-target.c (solib_target_relocate_section_addresses):
3791 Update.
3792 * symfile-debug.c (debug_sym_segments): Return a
3793 symfile_segment_data_up.
3794
7f204339
RO
37952020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3796
e52a0f1b
RO
3797 PR build/25981
3798 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3799 Hardcode register numbers.
3800
7f204339
RO
3801 PR build/25981
3802 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3803 procfs_find_LDT_entry): Remove.
3804 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3805 procfs_find_LDT_entry): Remove.
3806 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3807 Remove.
3808
7f32a4d5
PA
38092020-05-17 Pedro Alves <palves@redhat.com>
3810 Andrew Burgess <andrew.burgess@embecosm.com>
3811 Keno Fischer <keno@juliacomputing.com>
3812
3813 PR gdb/25741
3814 * breakpoint.c (build_target_condition_list): Update comments.
3815 (build_target_command_list): Update comments and skip matching
3816 locations.
3817 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3818 a separate function. Simplify "set breakpoint auto-hw off"
3819 handling.
3820 (insert_breakpoints): Update comment.
3821 (tracepoint_locations_match): New parameter. For breakpoints,
3822 compare location types too, if the caller wants to.
3823 (handle_automatic_hardware_breakpoints): New functions.
3824 (bp_location_is_less_than): Also sort by location type and
3825 hardware breakpoint length.
3826 (update_global_location_list): Handle "set breakpoint auto-hw on"
3827 here.
3828 (update_breakpoint_locations): Ask breakpoint_locations_match to
3829 ignore location types.
3830
7d93a1e0
SM
38312020-05-16 Simon Marchi <simon.marchi@efficios.com>
3832
3833 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3834 type::name instead.
3835
d0e39ea2
SM
38362020-05-16 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * gdbtypes.h (struct type) <name, set_name>: New methods.
3839 (TYPE_CODE): Use type::name. Change all call sites used to set
3840 the name to use type::set_name instead.
3841
2dab0c7b
TT
38422020-05-16 Tom Tromey <tom@tromey.com>
3843
3844 * top.c (quit_force): Update.
3845 * infrun.c (handle_no_resumed): Update.
3846 * top.h (all_uis): New function.
3847 (ALL_UIS): Remove.
3848
59f7bd8d
SM
38492020-05-16 Simon Marchi <simon.marchi@efficios.com>
3850
3851 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3852
9bf058f0
PA
38532020-05-16 Pedro Alves <palves@redhat.com>
3854
3855 * ia64-linux-nat.c
3856 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3857 Declare method.
3858 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3859
8f86ae1a
SM
38602020-05-15 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3863 (sparc64_adi_info): Likewise.
3864
d6bc0792
TT
38652020-05-15 Tom Tromey <tom@tromey.com>
3866
3867 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3868 block_objfile.
3869 (lookup_objfile_from_block): Remove.
3870 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3871 (lookup_global_symbol): Use block_objfile.
3872 * symtab.h (lookup_objfile_from_block): Don't declare.
3873 * printcmd.c (clear_dangling_display_expressions): Use
3874 block_objfile.
3875 * parse.c (operator_check_standard): Use block_objfile.
3876
8c14c3a3
TT
38772020-05-15 Tom Tromey <tom@tromey.com>
3878
3879 * language.c (language_alloc_type_symbol): Set
3880 SYMBOL_SECTION.
3881 * symtab.c (initialize_objfile_symbol): Remove.
3882 (allocate_symbol): Remove.
3883 (allocate_template_symbol): Remove.
3884 * dwarf2/read.c (fixup_go_packaging): Use "new".
3885 (new_symbol): Use "new".
3886 (read_variable): Don't call initialize_objfile_symbol. Use
3887 "new".
3888 (read_func_scope): Use "new".
3889 * xcoffread.c (process_xcoff_symbol): Don't call
3890 initialize_objfile_symbol.
3891 (SYMBOL_DUP): Remove.
3892 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3893 "new".
3894 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3895 (allocate_template_symbol): Don't declare.
3896 (struct symbol): Add copy constructor. Change defaults.
3897 * jit.c (finalize_symtab): Use "new".
3898 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3899 Use "new".
3900 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3901 (common_block_end): Use "new".
3902 * mdebugread.c (parse_symbol): Use "new".
3903 (new_symbol): Likewise.
3904
5b4a1a8d
PW
39052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3906
3907 * NEWS: Mention changes to help and apropos.
3908
57b4f16e
PW
39092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3910
3911 * command.h (enum command_class): Improve comments, document
3912 that class_alias is for user-defined aliases, give the class
3913 name for each class, remove unused class_xdb.
3914 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3915 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3916 by a precise class.
3917 * infcmd.c (_initialize_infcmd): Likewise.
3918 * reverse.c (_initialize_reverse): Likewise.
3919 * stack.c (_initialize_stack): Likewise.
3920 * symfile.c (_initialize_symfile): Likewise.
3921 * tracepoint.c (_initialize_tracepoint): Likewise.
3922
7c05caf7
PW
39232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3924
3925 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3926 when their aliased command is traversed.
3927 (help_cmd): Add fput_command_names_styled call to
3928 output command name and aliases when command has an alias.
3929
3b3aaacb
PW
39302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3931
3932 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3933 * cli/cli-decode.c (help_cmd_list): Declare as static,
3934 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3935 a command together with the command.
3936 (fput_command_name_styled, fput_command_names_styled): New functions.
3937 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3938 fput_command_name_styled.
3939 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3940 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3941
7aa1b46f
PW
39422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3943
3944 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3945 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3946 * command.h (cmd_show_list): Likewise.
3947 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3948 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3949
89bcba74
PW
39502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3951
3952 * unittests/command-def-selftests.c (traverse_command_structure):
3953 Verify all commands of a list have the same prefix command and
3954 that only the top cmdlist commands have a null prefix.
3955
3f4d92eb
PW
39562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3957
3958 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3959 as prefix, not one of its aliases.
3960 (set_cmd_prefix): Remove.
3961 (do_add_cmd): Centralize the setting of the prefix of a command, when
3962 command is defined after its full chain of prefix commands.
3963 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3964 (add_setshow_cmd_full): Likewise.
3965 (update_prefix_field_of_prefixed_commands): New function.
3966 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3967 update_prefix_field_of_prefixed_commands.
3968 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3969 addresses of remote_set_cmdlist and remote_show_cmdlist given
3970 as argument, not the address of an argument.
3971 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3972 * gdb/remote.c (_initialize_remote): Likewise.
3973
0605465f
PW
39742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3975
3976 * cli/cli-cmds.c (alias_command): Check for an existing alias
3977 using lookup_cmd_composition, as valid_command_p is too strict
3978 and forbids aliases that are the prefix of an existing alias
3979 or command.
3980 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3981 command is properly recognised as a valid command.
3982
58e6ac70
PW
39832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3984
3985 * unittests/help-doc-selftests.c: Rename to
3986 unittests/command-def-selftests.c
3987 * unittests/command-def-selftests.c (help_doc_tests): Update some
3988 comments.
3989 (command_structure_tests, traverse_command_structure): New namespace
3990 and function.
3991 (command_structure_invariants_tests): New function.
3992 (_initialize_command_def_selftests) Renamed from
3993 _initialize_help_doc_selftests, register command_structure_invariants
3994 selftest.
3995
a7b9ceb8
PW
39962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3997
3998 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3999 an alias of 'show'.
4000
b2188a06
JB
40012020-05-15 Joel Brobecker <brobecker@adacore.com>
4002
4003 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4004 ada_is_fixed_point_type. Update all callers.
4005 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4006 all callers.
4007 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4008 Update all callers.
4009 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4010 print_fixed_point_type. Update all callers.
4011 * ada-valprint.c (ada_value_print_num): Replace call to
4012 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4013
a51951c2
KB
40142020-05-14 Kevin Buettner <kevinb@redhat.com>
4015
4016 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4017 processors.
4018 (cpu_supports_bts): Add CV_AMD case.
4019
29d6859f
LM
40202020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4021 Simon Marchi <simon.marchi@efficios.com>
4022
4023 * infrun.c (stop_all_threads): Collect multiple wait events at
4024 each pass.
4025
78134374
SM
40262020-05-14 Simon Marchi <simon.marchi@efficios.com>
4027
4028 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4029 type::code instead.
4030
67607e24
SM
40312020-05-14 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * gdbtypes.h (struct type) <code, set_code>: New methods.
4034 (TYPE_CODE): Use type::code. Change all call sites used to set
4035 the code to use type::set_code instead.
4036
a05575d3
TBA
40372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4038 Tom de Vries <tdevries@suse.de>
4039 Pedro Alves <palves@redhat.com>
4040
4041 PR threads/25478
4042 * infrun.c (stop_all_threads): Do NOT ignore
4043 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4044 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4045 received.
4046 (handle_no_resumed): Remove code handling a live inferior with no
4047 threads.
4048 * remote.c (has_single_non_exited_thread): New.
4049 (remote_target::update_thread_list): Do not delete a thread if is
4050 the last thread of the process.
4051 * thread.c (thread_select): Call delete_exited_threads instead of
4052 prune_threads.
4053
6ad82919
TBA
40542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4055
4056 * infrun.c (stop_all_threads): Enable/disable thread events of all
4057 targets. Move a debug message denoting the end of the function
4058 into the SCOPED_EXIT block.
4059
d890404b
TBA
40602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4061
4062 * process-stratum-target.h: Include <set>.
4063 (all_non_exited_process_targets, switch_to_target_no_thread): New
4064 function declarations.
4065 * process-stratum-target.c (all_non_exited_process_targets)
4066 (switch_to_target_no_thread): New function implementations.
4067
293b3ebc
TBA
40682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4069
4070 * infrun.c (handle_inferior_event): Extract out a piece of code
4071 into...
4072 (mark_non_executing_threads): ...this new function.
4073
7ca9b62a
TBA
40742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4075
4076 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4077 use.
4078
fc75c28b
TBA
40792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4080
4081 * regcache.c (regcache_read_pc_protected): New function
4082 implementation that returns 0 if the PC cannot read via
4083 'regcache_read_pc'.
4084 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4085 instead of 'regcache_read_pc'.
4086 (keep_going_pass_signal): Ditto.
4087
a89febbd
TT
40882020-05-13 Tom Tromey <tromey@adacore.com>
4089
4090 * ada-lang.c (align_value): Remove.
4091 (ada_template_to_fixed_record_type_1): Use align_up.
4092
f7e23710
TBA
40932020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4094
4095 * async-event.c: Update the copyright year.
4096 * async-event.h: Update the copyright year.
4097
02ff80c2
SM
40982020-05-12 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * objfiles.h (is_addr_in_objfile,
4101 shared_objfile_contains_address_p): Return bool.
4102 * objfile.c (is_addr_in_objfile,
4103 shared_objfile_contains_address_p): Return bool.
4104
4fd6c7e8
TT
41052020-05-11 Tom Tromey <tromey@adacore.com>
4106
4107 * cli/cli-cmds.c (info_command): Restore.
4108 (_initialize_cli_cmds): Use add_prefix_command for "info".
4109 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4110
5eb68a39
TT
41112020-05-11 Tom Tromey <tromey@adacore.com>
4112
4113 * ada-lang.c (ada_value_primitive_field): Now public.
4114 * ada-lang.h (ada_value_primitive_field): Declare.
4115 * ada-valprint.c (print_field_values): Use
4116 ada_value_primitive_field for wrapper fields.
4117
7666722f
TV
41182020-05-11 Tom de Vries <tdevries@suse.de>
4119
4120 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4121 MODULE_DOMAIN.
4122
3ee6bb11
TV
41232020-05-11 Tom de Vries <tdevries@suse.de>
4124
4125 PR symtab/25941
4126 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4127 with length 0, if not gdb-produced.
4128 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4129
43434996
TV
41302020-05-09 Tom de Vries <tdevries@suse.de>
4131
4132 PR gdb/25955
4133 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4134 calculation.
4135
2f78cffc
TT
41362020-05-09 Tom Tromey <tom@tromey.com>
4137
4138 * top.c (server_command): Now bool.
4139 * top.h (server_command): Now bool.
4140
4f7bc5ed
TT
41412020-05-08 Tom Tromey <tromey@adacore.com>
4142
4143 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4144 already being processed.
4145
8be4b118
TT
41462020-05-08 Tom Tromey <tom@tromey.com>
4147
4148 * printcmd.c (struct display) <next>: Remove.
4149 <display>: New constructor.
4150 <exp_string>: Now a std::string.
4151 <enabled_p>: Now a bool.
4152 (display_number): Move definition earlier.
4153 (displays): Rename from display_chain. Now a std::vector.
4154 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4155 (display_command): Update.
4156 (do_one_display, disable_display)
4157 (enable_disable_display_command, do_enable_disable_display):
4158 Update.
4159 (free_display): Remove.
4160 (clear_displays): Rewrite.
4161 (delete_display): Update.
4162 (map_display_numbers): Use function_view. Remove "data"
4163 parameter. Update.
4164 (do_delete_display): Remove.
4165 (undisplay_command): Update.
4166 (do_one_display, do_displays, disable_display)
4167 (info_display_command): Update.
4168 (do_enable_disable_display): Remove.
4169 (enable_disable_display_command)
4170 (clear_dangling_display_expressions): Update.
4171
94c93c35
TT
41722020-05-08 Tom Tromey <tom@tromey.com>
4173
4174 * symtab.c (set_symbol_cache_size)
4175 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4176 (maintenance_print_symbol_cache_statistics): Update.
4177 * symmisc.c (print_symbol_bcache_statistics)
4178 (print_objfile_statistics, maintenance_print_objfiles)
4179 (maintenance_info_symtabs, maintenance_check_symtabs)
4180 (maintenance_expand_symtabs, maintenance_info_line_tables):
4181 Update.
4182 * symfile-debug.c (set_debug_symfile): Update.
4183 * source.c (forget_cached_source_info): Update.
4184 * python/python.c (gdbpy_progspaces): Update.
4185 * psymtab.c (maintenance_info_psymtabs): Update.
4186 * probe.c (parse_probes): Update.
4187 * linespec.c (iterate_over_all_matching_symtabs)
4188 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4189 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4190 * exec.c (exec_target::close): Update.
4191 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4192 * breakpoint.c (print_one_breakpoint_location)
4193 (create_longjmp_master_breakpoint)
4194 (create_std_terminate_master_breakpoint): Update.
4195 * progspace.c (program_spaces): Now a std::vector.
4196 (maybe_new_address_space): Update.
4197 (add_program_space): Remove.
4198 (program_space::program_space): Update.
4199 (remove_program_space): Update.
4200 (number_of_program_spaces): Remove.
4201 (print_program_space, update_address_spaces): Update.
4202 * progspace.h (program_spaces): Change type.
4203 (ALL_PSPACES): Remove.
4204 (number_of_program_spaces): Don't declare.
4205 (struct program_space) <next>: Remove.
4206
a1fd1ac9
TT
42072020-05-08 Tom Tromey <tom@tromey.com>
4208
4209 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4210 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4211 (enable_break): Update.
4212 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4213 (frv_fdpic_find_canonical_descriptor): Update.
4214 (frv_fetch_objfile_link_map): Update.
4215 * progspace.c (program_space::free_all_objfiles): Update.
4216 (program_space::solibs): New method.
4217 * progspace.h (struct program_space) <solibs>: New method.
4218 * solist.h (master_so_list): Don't declare.
4219 (ALL_SO_LIBS): Remove.
4220 * solib.h (so_list_head): Remove.
4221 (update_solib_list): Update comment.
4222 * solib.c (master_so_list): Remove.
4223 (solib_used, update_solib_list, solib_add)
4224 (info_sharedlibrary_command, clear_solib)
4225 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4226
38eae084
TT
42272020-05-08 Tom Tromey <tom@tromey.com>
4228
4229 * extension.c (extension_languages): Now a std::array.
4230 (ALL_EXTENSION_LANGUAGES): Remove.
4231 (get_ext_lang_defn, get_ext_lang_of_file)
4232 (eval_ext_lang_from_control_command): Update.
4233 (finish_ext_lang_initialization)
4234 (auto_load_ext_lang_scripts_for_objfile)
4235 (ext_lang_type_printers::ext_lang_type_printers)
4236 (apply_ext_lang_type_printers)
4237 (ext_lang_type_printers::~ext_lang_type_printers)
4238 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4239 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4240 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4241 (get_matching_xmethod_workers, ext_lang_colorize)
4242 (ext_lang_before_prompt): Update.
4243 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4244
596dc4ad
TT
42452020-05-08 Tom Tromey <tom@tromey.com>
4246
4247 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4248 overload.
4249 <swap_string, m_string>: Remove.
4250 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4251 Update.
4252 * stabsread.c (define_symbol, read_type): Update.
4253 * linespec.c (find_linespec_symbols): Update.
4254 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4255 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4256 * dbxread.c (read_dbx_symtab): Update.
4257 * cp-support.h (cp_canonicalize_string_full)
4258 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4259 Return unique_xmalloc_ptr.
4260 * cp-support.c (inspect_type): Update.
4261 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4262 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4263 Likewise.
4264 * c-typeprint.c (print_name_maybe_canonical): Update.
4265 * break-catch-throw.c (check_status_exception_catchpoint):
4266 Update.
4267
bf4cb9be
TV
42682020-05-08 Tom de Vries <tdevries@suse.de>
4269
4270 * infrun.c (follow_fork): Copy current_line and current_symtab to
4271 child thread.
4272
a1b68f28
SM
42732020-05-07 Simon Marchi <simon.marchi@efficios.com>
4274
4275 * async-event.c (struct async_signal_handler, struct
4276 async_event_handler): Reformat, remove typedef.
4277
98d48915
SM
42782020-05-07 Simon Marchi <simon.marchi@efficios.com>
4279
4280 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4281 access thistype->main_type->dyn_prop_list directly.
4282
7aa91313
SM
42832020-05-07 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4286 (remove_dyn_prop): Remove. Update all users to use
4287 type::remove_dyn_prop.
4288 * gdbtypes.c (remove_dyn_prop): Rename to...
4289 (type::remove_dyn_prop): ... this.
4290
5c54719c
SM
42912020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4292
4293 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4294 (add_dyn_prop): Remove. Update all users to use
4295 type::add_dyn_prop.
4296 * gdbtypes.c (add_dyn_prop): Rename to...
4297 (type::add_dyn_prop): ... this.
4298
24e99c6c
SM
42992020-05-07 Simon Marchi <simon.marchi@efficios.com>
4300
4301 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4302 (get_dyn_prop): Remove. Update all users to use
4303 type::dyn_prop.
4304 * gdbtypes.c (get_dyn_prop): Rename to...
4305 (type::dyn_prop): ... this.
4306
0d4bf016
SM
43072020-05-06 Simon Marchi <simon.marchi@efficios.com>
4308
4309 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4310
ac4a4f1c
SM
43112020-05-06 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4314 instruction, skip it if it's there.
4315
a3bbacc1
SM
43162020-05-05 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4319
c3236f84
SM
43202020-05-04 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4323 * gdbtypes.c (recursive_dump_type): Remove use of
4324 TYPE_INCOMPLETE.
4325
3b6acaee
TT
43262020-05-03 Tom Tromey <tom@tromey.com>
4327
4328 * breakpoint.c (catch_command, tcatch_command): Remove.
4329 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4330 add_show_prefix_cmd.
4331 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4332 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4333 Remove.
4334 (add_internal_problem_command): Use add_basic_prefix_cmd,
4335 add_show_prefix_cmd.
4336 * mips-tdep.c (set_mipsfpu_command): Remove.
4337 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4338 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4339 (_initialize_index_cache): Use add_basic_prefix_cmd.
4340 * memattr.c (dummy_cmd): Remove.
4341 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4342 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4343 (_initialize_tui_win): Use add_basic_prefix_cmd,
4344 add_show_prefix_cmd.
4345 * cli/cli-logging.c (set_logging_command): Remove.
4346 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4347 add_show_prefix_cmd.
4348 (show_logging_command): Remove.
4349 * target.c (target_command): Remove.
4350 (add_target): Use add_basic_prefix_cmd.
4351
a51119cd
HD
43522020-05-02 Hannes Domani <ssbssa@yahoo.de>
4353
4354 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4355
652fc23a 43562020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4357
652fc23a
PW
4358 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4359 info_command.
4360
117539e6
KR
43612020-04-30 Kamil Rytarowski <n54@gmx.com>
4362
4363 * nbsd-nat.c (nbsd_enable_proc_events)
4364 (nbsd_nat_target::post_startup_inferior): Add.
4365 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4366 (nbsd_nat_target::update_thread_list): Rewrite.
4367 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4368 "PTRACE_LWP_CREATE".
4369 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4370
102e38eb 43712020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4372
102e38eb
PW
4373 * stack.c (_initialize_stack): Remove duplicated creation
4374 of "frame" command and "f" alias.
4375
ee9d1e5f
HD
43762020-04-30 Hannes Domani <ssbssa@yahoo.de>
4377
4378 PR gdb/18706
4379 * gdbtypes.c (check_typedef): Calculate size of array of
4380 stubbed type.
4381
627c7fb8
HD
43822020-04-30 Hannes Domani <ssbssa@yahoo.de>
4383
4384 PR gdb/15559
4385 * i386-tdep.c (i386_push_dummy_call): Call
4386 i386_thiscall_push_dummy_call.
4387 (i386_thiscall_push_dummy_call): New function.
4388 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4389 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4390 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4391
ffc2844e
SM
43922020-04-29 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * gdbarch.sh (do_read): Add shellcheck disable directive for
4395 warning SC2162.
4396
1207375d
SM
43972020-04-29 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4400 "referenced but not assigned" warning.
4401
9fdb2916
SM
44022020-04-29 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * gdbarch.sh: Remove code that sets fallbackdefault.
4405
759cea5e
SM
44062020-04-29 Simon Marchi <simon.marchi@efficios.com>
4407
4408 * gdbarch.sh: Use shell operators && and || instead of
4409 -a and -o.
4410
cb02ab24
SM
44112020-04-29 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * gdbarch.sh: Use $(...) instead of `...`.
4414
a6fc5ffc
SM
44152020-04-29 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * gdbarch.sh: Use double quotes around variables.
4418
8d113d13
SM
44192020-04-29 Simon Marchi <simon.marchi@efficios.com>
4420
4421 * gdbarch.sh: Use %s with printf, instead of variables in the
4422 format string.
4423
ed6acedd
TT
44242020-04-29 Tom Tromey <tromey@adacore.com>
4425
4426 PR ada/25875:
4427 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4428 type fields here.
4429 (read_enumeration_type): Call
4430 update_enumeration_type_from_children later. Update comments.
4431 (process_enumeration_scope): Don't create type fields.
4432
b68b1b58
KR
44332020-04-29 Kamil Rytarowski <n54@gmx.com>
4434
4435 * nbsd-tdep.c: Include "xml-syscall.h".
4436 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4437
f94b2e03
KR
44382020-04-29 Kamil Rytarowski <n54@gmx.com>
4439
4440 * nbsd-nat.c: Include "sys/wait.h".
4441 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4442 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4443 (nbsd_nat_target::remove_exec_catchpoint)
4444 (nbsd_nat_target::set_syscall_catchpoint): Add.
4445 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4446 (nbsd_nat_target::insert_exec_catchpoint)
4447 (nbsd_nat_target::remove_exec_catchpoint)
4448 (nbsd_nat_target::set_syscall_catchpoint): Add.
4449 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4450 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4451 `nbsd_get_syscall_number'.
4452
fc49bc72
TT
44532020-04-29 Tom Tromey <tom@tromey.com>
4454
4455 * stack.c (print_block_frame_labels): Remove.
4456
d642b692
HD
44572020-04-29 Hannes Domani <ssbssa@yahoo.de>
4458
4459 PR gdb/17320
4460 * ada-valprint.c (val_print_packed_array_elements): Move array
4461 end bracket to new line.
4462 (ada_val_print_string): Remove extra spaces before first array
4463 element.
4464 * c-valprint.c (c_value_print_array): Likewise.
4465 * m2-valprint.c (m2_print_array_contents): Likewise.
4466 (m2_value_print_inner): Likewise.
4467 * p-valprint.c (pascal_value_print_inner): Likewise.
4468 * valprint.c (generic_val_print_array): Likewise.
4469 (value_print_array_elements): Move first array element and array
4470 end bracket to new line.
4471
ea90f227
TV
44722020-04-29 Tom de Vries <tdevries@suse.de>
4473
4474 PR symtab/25889
4475 * linespec.c (find_method): Fix ix calculation.
4476
4498ef4f
KR
44772020-04-28 Kamil Rytarowski <n54@gmx.com>
4478
4479 * syscalls/update-netbsd.sh: New file.
4480 * syscalls/netbsd.xml: Regenerate.
4481 * data-directory/Makefile.in: Register `netbsd.xml' in
4482 `SYSCALLS_FILES'.
4483
a55e30b5
SM
44842020-04-28 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * syscalls/update-freebsd.sh: Add double quotes.
4487
2b2fbab8
TT
44882020-04-28 Tom Tromey <tom@tromey.com>
4489
4490 * NEWS: Update.
4491 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4492 (cmdpy_init): Allow class_tui.
4493
a65189c9
TV
44942020-04-28 Mark Williams <mark@myosotissp.com>
4495
4496 PR gdb/24480
4497 * dwarf2read.c: Add missing assingments to list_in_scope when
4498 start_symtab was already called.
4499
1b95cdb7
SM
45002020-04-28 Simon Marchi <simon.marchi@efficios.com>
4501
4502 PR gdb/25881
4503 * dwarf2/read.c (offset_map_type): Use
4504 gdb:hash_enum<sect_offset> as hash function.
4505
15cd93d0
TV
45062020-04-28 Tom de Vries <tdevries@suse.de>
4507
4508 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4509 with DW_AT_signature.
4510
1eb39914
SM
45112020-04-27 Simon Marchi <simon.marchi@efficios.com>
4512
4513 * configure.ac: Remove check for fs_base/gs_base in
4514 user_regs_struct.
4515 * configure: Re-generate.
4516 * config.in: Re-generate.
4517 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4518 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4519 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4520
991a3e2e
LM
45212020-04-27 Luis Machado <luis.machado@linaro.org>
4522
4523 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4524 problematic inline frame unwinding situation.
4525 * frame.c (frame_id_computed_p): New function.
4526 * frame.h (frame_id_computed_p): New prototype.
4527
361ba0e8
TT
45282020-04-26 Tom Tromey <tom@tromey.com>
4529
4530 * command.h (enum command_class) <class_pseudo>: Remove.
4531
bc3609fd
PW
45322020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4533
4534 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4535 and whitespace.
4536
b9771db7
KR
45372020-04-25 Kamil Rytarowski <n54@gmx.com>
4538
ec16513e
SM
4539 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4540 `PT_GET_PROCESS_STATE' block.
b9771db7 4541
7151c1af
TT
45422020-04-24 Tom Tromey <tom@tromey.com>
4543
4544 * symtab.h (symbol_get_demangled_name): Don't declare.
4545 * symtab.c (symbol_get_demangled_name): Remove.
4546 (general_symbol_info::natural_name)
4547 (general_symbol_info::demangled_name): Update.
4548
906bb4c5
TT
45492020-04-24 Tom Tromey <tom@tromey.com>
4550
4551 PR rust/25025:
4552 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4553
bcfe6157
TT
45542020-04-24 Tom Tromey <tom@tromey.com>
4555
4556 PR symtab/12707:
4557 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4558 exists.
4559 (new_symbol): Likewise.
4560 * compile/compile-object-load.c (get_out_value_type): Use
4561 symbol_matches_search_name.
4562
f049a313
TT
45632020-04-24 Tom Tromey <tom@tromey.com>
4564
4565 * dwarf2/read.c (add_partial_symbol): Do not call
4566 compute_and_set_names.
4567
76e288d1
TT
45682020-04-24 Tom Tromey <tom@tromey.com>
4569
4570 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4571 overload.
4572
2467f4f6
TT
45732020-04-24 Tom Tromey <tom@tromey.com>
4574
4575 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4576 (add_psymbol_to_list): New overload. Make old overload call new
4577 one.
4578 * psympriv.h (add_psymbol_to_list): New overload.
4579
e61108c9
TT
45802020-04-24 Tom Tromey <tom@tromey.com>
4581
4582 * dwarf2/read.c (partial_die_info::read) <case
4583 DW_AT_linkage_name>: Use value_as_string.
4584 (dwarf2_string_attr): Use value_as_string.
4585 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4586 method.
4587 * dwarf2/attribute.c (attribute::value_as_string): New method.
4588
8c87a452
TT
45892020-04-24 Tom Tromey <tom@tromey.com>
4590
4591 * symtab.c (general_symbol_info::natural_name)
4592 (general_symbol_info::demangled_name): Check for language_rust.
4593
787de330
TT
45942020-04-24 Tom Tromey <tom@tromey.com>
4595
4596 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4597 (dwarf2_physname): ... from here.
4598 (partial_die_info::read): Add Rust "{" hack.
4599
ff985671
TT
46002020-04-24 Tom Tromey <tom@tromey.com>
4601
4602 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4603 method.
4604 (symbol_set_demangled_name): Don't declare.
4605 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4606 symbol_set_demangled_name.
4607 (general_symbol_info::set_language)
4608 (general_symbol_info::compute_and_set_names): Update.
4609 * minsyms.c (minimal_symbol_reader::install): Update.
4610 * dwarf2/read.c (new_symbol): Update.
4611
1acda803
TT
46122020-04-24 Tom Tromey <tromey@adacore.com>
4613
4614 PR python/23662:
4615 * python/py-type.c (convert_field): Handle
4616 FIELD_LOC_KIND_DWARF_BLOCK.
4617 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4618 (typy_get_dynamic): Nw function.
4619 (type_object_getset): Add "dynamic".
4620 * NEWS: Add entry.
4621
d656f129
TT
46222020-04-24 Tom Tromey <tromey@adacore.com>
4623
4624 * ada-typeprint.c (print_choices, print_variant_part)
4625 (print_record_field_types_dynamic): New functions.
4626 (print_record_field_types): Use print_record_field_types_dynamic.
4627
7d79de9a
TT
46282020-04-24 Tom Tromey <tromey@adacore.com>
4629
4630 * dwarf2/read.c (handle_data_member_location): New overload.
4631 (dwarf2_add_field): Use it.
4632 (decode_locdesc): Add "computed" parameter. Update comment.
4633 * gdbtypes.c (is_dynamic_type_internal): Also look for
4634 FIELD_LOC_KIND_DWARF_BLOCK.
4635 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4636 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4637 virtual base classes.
4638 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4639 FIELD_LOC_KIND_DWARF_BLOCK.
4640
f8e89861
TT
46412020-04-24 Tom Tromey <tromey@adacore.com>
4642
4643 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4644 * gdbtypes.c (is_dynamic_type_internal): Check
4645 TYPE_HAS_DYNAMIC_LENGTH.
4646 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4647 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4648 New macros.
4649 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4650 constant.
4651
9c6a1327
TT
46522020-04-24 Tom Tromey <tromey@adacore.com>
4653
4654 * dwarf2/read.c (struct variant_field): Rewrite.
4655 (struct variant_part_builder): New.
4656 (struct nextfield): Remove "variant" field. Add "offset".
4657 (struct field_info): Add "current_variant_part" and
4658 "variant_parts".
4659 (alloc_discriminant_info): Remove.
4660 (alloc_rust_variant): New function.
4661 (quirk_rust_enum): Update.
4662 (dwarf2_add_field): Set "offset" member. Don't handle
4663 DW_TAG_variant_part.
4664 (offset_map_type): New typedef.
4665 (convert_variant_range, create_one_variant)
4666 (create_one_variant_part, create_variant_parts)
4667 (add_variant_property): New functions.
4668 (dwarf2_attach_fields_to_type): Call add_variant_property.
4669 (read_structure_type): Don't handle DW_TAG_variant_part.
4670 (handle_variant_part, handle_variant): New functions.
4671 (handle_struct_member_die): Use them.
4672 (process_structure_scope): Don't handle variant parts.
4673 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4674 (struct discriminant_info): Remove.
4675 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4676 (struct main_type) <flag_discriminated_union>: Remove.
4677 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4678 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4679 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4680 Update.
4681 * valops.c (value_union_variant): Remove.
4682 * value.h (value_union_variant): Don't declare.
4683
b249d2c2
TT
46842020-04-24 Tom Tromey <tromey@adacore.com>
4685
4686 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4687 (ada_value_primitive_packed_val): Update.
4688 * ada-valprint.c (ada_value_print_1): Update.
4689 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4690 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4691 just an address. Use evaluate_for_locexpr_baton.
4692 (dwarf2_evaluate_property): Update.
4693 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4694 array_view.
4695 * findvar.c (default_read_var_value): Update.
4696 * gdbtypes.c (compute_variant_fields_inner)
4697 (resolve_dynamic_type_internal): Update.
4698 (resolve_dynamic_type): Change type of valaddr parameter.
4699 * gdbtypes.h (resolve_dynamic_type): Update.
4700 * valarith.c (value_subscripted_rvalue): Update.
4701 * value.c (value_from_contents_and_address): Update.
4702
61122aa9
TT
47032020-04-24 Tom Tromey <tromey@adacore.com>
4704
4705 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4706 "push_initial_value" parameter.
4707 (dwarf2_evaluate_property): Likewise.
4708 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4709
ef83a141
TT
47102020-04-24 Tom Tromey <tromey@adacore.com>
4711
4712 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4713 (variant::matches, compute_variant_fields_recurse)
4714 (compute_variant_fields_inner, compute_variant_fields): New
4715 functions.
4716 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4717 Use resolved_type after type is made.
4718 (operator==): Add new cases.
4719 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4720 (struct discriminant_range, struct variant, struct variant_part):
4721 New.
4722 (union dynamic_prop_data) <variant_parts, original_type>: New
4723 members.
4724 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4725 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4726 constants.
4727 * value.c (unpack_bits_as_long): Now public.
4728 * value.h (unpack_bits_as_long): Declare.
4729
675127ec
TT
47302020-04-24 Tom Tromey <tromey@adacore.com>
4731
4732 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4733 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4734
9852ceef
HD
47352020-04-24 Hannes Domani <ssbssa@yahoo.de>
4736
4737 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4738
7632c6ce
KR
47392020-04-24 Kamil Rytarowski <n54@gmx.com>
4740
4741 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4742 (remove_fork_catchpoint, post_startup_inferior)
4743 (post_attach): Move...
4744 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4745 (remove_fork_catchpoint, post_startup_inferior)
4746 (post_attach): ...here.
4747 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4748 (remove_fork_catchpoint, post_startup_inferior)
4749 (post_attach): Move...
4750 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4751 (remove_fork_catchpoint, post_startup_inferior)
4752 (post_attach): ...here.
4753
7be2bb4f
TT
47542020-04-24 Tom Tromey <tromey@adacore.com>
4755
4756 * nat/windows-nat.h (struct windows_thread_info)
4757 <pc_adjusted>: New member.
4758 * windows-nat.c (windows_fetch_one_register): Check
4759 pc_adjusted.
4760 (windows_nat_target::get_windows_debug_event)
4761 (windows_nat_target::wait): Set pc_adjusted.
4762
f80cb3b4
TV
47632020-04-24 Tom de Vries <tdevries@suse.de>
4764
4765 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4766 Run gdb-add-index inside temp dir.
4767
29514b87
TT
47682020-04-23 Tom Tromey <tromey@adacore.com>
4769
4770 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4771 in loop.
4772
5939967b
LM
47732020-04-23 Luis Machado <luis.machado@linaro.org>
4774
4775 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4776 get_frame_register instead of gdbarch_unwind_pc.
4777
70bc38f5
TV
47782020-04-23 Tom de Vries <tdevries@suse.de>
4779
4780 * symtab.c (lookup_global_symbol): Prefer def over decl.
4781
de82891c
TV
47822020-04-23 Tom de Vries <tdevries@suse.de>
4783
4784 PR symtab/25807
4785 * block.c (best_symbol, better_symbol): Promote to external.
4786 * block.h (best_symbol, better_symbol): Declare.
4787 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4788 decl.
4789
ecc6c606
TT
47902020-04-23 Tom Tromey <tromey@adacore.com>
4791
4792 PR ada/25837:
4793 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4794 "const char *", not a "const std::string &".
4795 <name_and_matcher::operator==>: Update.
4796 * unittests/lookup_name_info-selftests.c: Change type of
4797 "result".
4798
740480b8
TT
47992020-04-23 Tom Tromey <tom@tromey.com>
4800
4801 * inferior.h (iterate_over_inferiors): Don't declare.
4802 * inferior.c (iterate_over_inferiors): Remove.
4803 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4804 Remove.
4805 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4806 use iterate_over_inferiors.
4807 (darwin_resume_inferior_it)
4808 (struct resume_inferior_threads_param)
4809 (darwin_resume_inferior_threads_it): Remove.
4810 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4811
ae3ab1f0
TV
48122020-04-23 Tom de Vries <tdevries@suse.de>
4813
4814 * blockframe.c (find_pc_partial_function): Use
4815 find_pc_sect_compunit_symtab rather than
4816 objfile->sf->qf->find_pc_sect_compunit_symtab.
4817
317d2668
TV
48182020-04-22 Tom de Vries <tdevries@suse.de>
4819
4820 PR symtab/25764
4821 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4822 in psymtabs.
4823
eea9e357
TV
48242020-04-22 Tom de Vries <tdevries@suse.de>
4825
4826 PR symtab/25801
4827 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4828 symtabs.
4829
3d5afab3
TV
48302020-04-22 Tom de Vries <tdevries@suse.de>
4831
4832 PR symtab/25700
4833 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4834 CU if already created.
4835
d43b7a2d
TBA
48362020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4837
4838 * infrun.c (displaced_step_fixup): Switch to the event_thread
4839 before calling displaced_step_restore, not after.
4840
d89edf9b
MM
48412020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4842
4843 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4844 its inferior is not recorded by us.
4845 (record_btrace_target_open): Replace call to
4846 all_non_exited_threads () with call to current_inferior
4847 ()->non_exited_threads ().
4848 (record_btrace_target::stop_recording): Likewise.
4849 (record_btrace_target::close): Likewise.
4850 (record_btrace_target::wait): Likewise.
4851 (record_btrace_target::record_stop_replaying): Likewise.
4852
5897fd49
MM
48532020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4854
4855 * btrace.c (btrace_enable): Throw an error on double enables and
4856 when enabling recording fails.
4857 (btrace_disable): Throw an error if the thread is not recorded.
4858
1a476b6d
MM
48592020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4860
4861 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4862 request if we do not have a thread_info.
4863
4778a5f8
TV
48642020-04-21 Tom de Vries <tdevries@suse.de>
4865
4866 PR gdb/25471
4867 * thread.c
4868 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4869 exception in get_frame_id.
4870
0fa7617d
TT
48712020-04-20 Tom Tromey <tromey@adacore.com>
4872
4873 * python/python.c (struct gdbpy_event): Mark move constructor as
4874 noexcept.
4875 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4876 constructor as noexcept.
4877 * completer.h (struct completion_result): Mark move constructor as
4878 noexcept.
4879 * completer.c (completion_result::completion_result): Use
4880 initialization style. Don't call reset_match_list.
4881
ad23bda0
MS
48822020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4883
4884 * MAINTAINERS (Write After Approval): Add myself.
4885
45e1f031
TT
48862020-04-18 Tom Tromey <tom@tromey.com>
4887
4888 * windows-tdep.c (init_w32_command_list)
4889 (w32_prefix_command_valid): Restore.
4890 (_initialize_windows_tdep): Call init_w32_command_list.
4891
08feed99
TT
48922020-04-18 Tom Tromey <tom@tromey.com>
4893
4894 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4895 * value.c (value_fn_field): Update.
4896 * valops.c (find_function_in_inferior)
4897 (value_allocate_space_in_inferior): Update.
4898 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4899 Update.
4900 * tui/tui-source.c (tui_source_window::set_contents): Update.
4901 * symtab.c (lookup_global_or_static_symbol)
4902 (find_function_start_sal_1, skip_prologue_sal)
4903 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4904 * symmisc.c (dump_msymbols, dump_symtab_1)
4905 (maintenance_print_one_line_table): Update.
4906 * symfile.c (init_entry_point_info, section_is_mapped)
4907 (list_overlays_command, simple_read_overlay_table)
4908 (simple_overlay_update_1): Update.
4909 * stap-probe.c (handle_stap_probe): Update.
4910 * stabsread.c (dbx_init_float_type, define_symbol)
4911 (read_one_struct_field, read_enum_type, read_range_type): Update.
4912 * source.c (info_line_command): Update.
4913 * python/python.c (gdbpy_source_objfile_script)
4914 (gdbpy_execute_objfile_script): Update.
4915 * python/py-type.c (save_objfile_types): Update.
4916 * python/py-objfile.c (py_free_objfile): Update.
4917 * python/py-inferior.c (python_new_objfile): Update.
4918 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4919 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4920 (maintenance_check_psymtabs): Update.
4921 * printcmd.c (info_address_command): Update.
4922 * objfiles.h (struct objfile) <arch>: New method, from
4923 get_objfile_arch.
4924 (get_objfile_arch): Don't declare.
4925 * objfiles.c (get_objfile_arch): Remove.
4926 (filter_overlapping_sections): Update.
4927 * minsyms.c (msymbol_is_function): Update.
4928 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4929 (output_nondebug_symbol): Update.
4930 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4931 (mdebug_expand_psymtab): Update.
4932 * machoread.c (macho_add_oso_symfile): Update.
4933 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4934 Update.
4935 * linux-fork.c (checkpoint_command): Update.
4936 * linespec.c (convert_linespec_to_sals): Update.
4937 * jit.c (finalize_symtab): Update.
4938 * infrun.c (insert_exception_resume_from_probe): Update.
4939 * ia64-tdep.c (ia64_find_unwind_table): Update.
4940 * hppa-tdep.c (internalize_unwinds): Update.
4941 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4942 Update.
4943 * gcore.c (call_target_sbrk): Update.
4944 * elfread.c (record_minimal_symbol, elf_symtab_read)
4945 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4946 (elf_gnu_ifunc_resolve_by_got): Update.
4947 * dwarf2/read.c (create_addrmap_from_index)
4948 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4949 (read_debug_names_from_section)
4950 (process_psymtab_comp_unit_reader, add_partial_symbol)
4951 (add_partial_subprogram, process_full_comp_unit)
4952 (read_file_scope, read_func_scope, read_lexical_block_scope)
4953 (read_call_site_scope, dwarf2_ranges_read)
4954 (dwarf2_record_block_ranges, dwarf2_add_field)
4955 (mark_common_block_symbol_computed, read_tag_pointer_type)
4956 (read_tag_string_type, dwarf2_init_float_type)
4957 (dwarf2_init_complex_target_type, read_base_type)
4958 (partial_die_info::read, partial_die_info::read)
4959 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4960 (dwarf2_fetch_die_loc_sect_off): Update.
4961 * dwarf2/loc.c (dwarf2_find_location_expression)
4962 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4963 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4964 (dwarf2_loc_desc_get_symbol_read_needs)
4965 (locexpr_describe_location_piece, locexpr_describe_location_1)
4966 (loclist_describe_location): Update.
4967 * dwarf2/index-write.c (write_debug_names): Update.
4968 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4969 * dtrace-probe.c (dtrace_process_dof): Update.
4970 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4971 (process_one_symbol): Update.
4972 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4973 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4974 (coff_read_enum_type): Update.
4975 * cli/cli-cmds.c (edit_command, list_command): Update.
4976 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4977 * breakpoint.c (create_overlay_event_breakpoint)
4978 (create_longjmp_master_breakpoint)
4979 (create_std_terminate_master_breakpoint)
4980 (create_exception_master_breakpoint, get_sal_arch): Update.
4981 * block.c (block_gdbarch): Update.
4982 * annotate.c (annotate_source_line): Update.
4983
0743fc83
TT
49842020-04-17 Tom Tromey <tromey@adacore.com>
4985
4986 * auto-load.c (show_auto_load_cmd): Remove.
4987 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4988 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4989 (maintenance_print_arc_command): Remove.
4990 * tui/tui-win.c (tui_command): Remove.
4991 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4992 * tui/tui-layout.c (tui_layout_command): Remove.
4993 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4994 * python/python.c (user_set_python, user_show_python): Remove.
4995 (_initialize_python): Use add_basic_prefix_cmd,
4996 add_show_prefix_cmd.
4997 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4998 (install_gdb_commands): Use add_basic_prefix_cmd,
4999 add_show_prefix_cmd.
5000 (info_guile_command): Remove.
5001 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5002 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5003 add_show_prefix_cmd.
5004 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5005 Remove do_set and do_show parameters.
5006 * cli/cli-style.c (set_style, show_style): Remove.
5007 (_initialize_cli_style): Use add_basic_prefix_cmd,
5008 add_show_prefix_cmd.
5009 (cli_style_option::add_setshow_commands): Remove do_set and
5010 do_show parameters.
5011 (cli_style_option::add_setshow_commands): Use
5012 add_basic_prefix_cmd, add_show_prefix_cmd.
5013 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5014 (set_style_name): Remove.
5015 * cli/cli-dump.c (dump_command, append_command): Remove.
5016 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5017 (tekhex_dump_command, binary_dump_command)
5018 (binary_append_command): Remove.
5019 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5020 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5021 (init_w32_command_list): Remove; move into ...
5022 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5023 * valprint.c (set_print, show_print, set_print_raw)
5024 (show_print_raw): Remove.
5025 (_initialize_valprint): Use add_basic_prefix_cmd,
5026 add_show_prefix_cmd.
5027 * typeprint.c (set_print_type, show_print_type): Remove.
5028 (_initialize_typeprint): Use add_basic_prefix_cmd,
5029 add_show_prefix_cmd.
5030 * record.c (set_record_command, show_record_command): Remove.
5031 (_initialize_record): Use add_basic_prefix_cmd,
5032 add_show_prefix_cmd.
5033 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5034 add_show_prefix_cmd.
5035 (info_command, show_command, set_debug, show_debug): Remove.
5036 * top.h (set_history, show_history): Don't declare.
5037 * top.c (set_history, show_history): Remove.
5038 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5039 (unset_tdesc_cmd): Remove.
5040 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5041 add_show_prefix_cmd.
5042 * symtab.c (info_module_command): Remove.
5043 (_initialize_symtab): Use add_basic_prefix_cmd.
5044 * symfile.c (overlay_command): Remove.
5045 (_initialize_symfile): Use add_basic_prefix_cmd.
5046 * sparc64-tdep.c (info_adi_command): Remove.
5047 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5048 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5049 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5050 add_show_prefix_cmd.
5051 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5052 (_initialize_serial): Use add_basic_prefix_cmd,
5053 add_show_prefix_cmd.
5054 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5055 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5056 add_show_prefix_cmd.
5057 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5058 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5059 add_show_prefix_cmd.
5060 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5061 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5062 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5063 add_show_prefix_cmd.
5064 * remote.c (remote_command, set_remote_cmd): Remove.
5065 (_initialize_remote): Use add_basic_prefix_cmd.
5066 * record-full.c (set_record_full_command)
5067 (show_record_full_command): Remove.
5068 (_initialize_record_full): Use add_basic_prefix_cmd,
5069 add_show_prefix_cmd.
5070 * record-btrace.c (cmd_set_record_btrace)
5071 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5072 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5073 (cmd_show_record_btrace_pt): Remove.
5074 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5075 add_show_prefix_cmd.
5076 * ravenscar-thread.c (set_ravenscar_command)
5077 (show_ravenscar_command): Remove.
5078 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5079 add_show_prefix_cmd.
5080 * mips-tdep.c (show_mips_command, set_mips_command)
5081 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5082 add_show_prefix_cmd.
5083 * maint.c (maintenance_command, maintenance_info_command)
5084 (maintenance_check_command, maintenance_print_command)
5085 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5086 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5087 add_show_prefix_cmd.
5088 (show_per_command_cmd): Remove.
5089 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5090 Remove.
5091 (maintenance_show_test_settings_cmd): Remove.
5092 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5093 add_show_prefix_cmd.
5094 * maint-test-options.c (maintenance_test_options_command):
5095 Remove.
5096 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5097 * macrocmd.c (macro_command): Remove
5098 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5099 * language.c (set_check, show_check): Remove.
5100 (_initialize_language): Use add_basic_prefix_cmd,
5101 add_show_prefix_cmd.
5102 * infcmd.c (unset_command): Remove.
5103 (_initialize_infcmd): Use add_basic_prefix_cmd.
5104 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5105 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5106 add_show_prefix_cmd.
5107 * go32-nat.c (go32_info_dos_command): Remove.
5108 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5109 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5110 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5111 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5112 (_initialize_frame): Use add_basic_prefix_cmd,
5113 add_show_prefix_cmd.
5114 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5115 (_initialize_dcache): Use add_basic_prefix_cmd,
5116 add_show_prefix_cmd.
5117 * cp-support.c (maint_cplus_command): Remove.
5118 (_initialize_cp_support): Use add_basic_prefix_cmd.
5119 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5120 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5121 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5122 add_basic_prefix_cmd, add_show_prefix_cmd.
5123 * breakpoint.c (save_command): Remove.
5124 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5125 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5126 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5127 add_show_prefix_cmd.
5128 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5129 (set_ada_command, show_ada_command): Remove.
5130 (_initialize_ada_language): Use add_basic_prefix_cmd,
5131 add_show_prefix_cmd.
5132 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5133
3557f442
KR
51342020-04-16 Kamil Rytarowski <n54@gmx.com>
5135
5136 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5137 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5138
16197208
SM
51392020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5140
5141 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5142 warning messages.
5143
00ac85d3
SM
51442020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5145
5146 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5147 import table is not at beginning of .idata section.
5148
381ce63f
PA
51492020-04-16 Pedro Alves <palves@redhat.com>
5150
5151 * inferior.c (delete_inferior): Use delete operator directly
5152 instead of delete_program_space.
5153 * progspace.c (add_program_space): New, factored out from
5154 program_space::program_space.
5155 (remove_program_space): New, factored out from
5156 delete_program_space.
5157 (program_space::program_space): Remove intro comment. Rewrite.
5158 (program_space::~program_space): Remove intro comment. Call
5159 remove_program_space.
5160 (delete_program_space): Delete.
5161 * progspace.h (program_space::program_space): Make explicit. Move
5162 intro comment here, adjusted.
5163 (program_space::~program_space): Move intro comment here,
5164 adjusted.
5165 (delete_program_space): Remove.
5166
a010605f
TT
51672020-04-16 Tom Tromey <tromey@adacore.com>
5168
5169 * windows-nat.c (windows_nat::handle_access_violation): New
5170 function.
5171 * nat/windows-nat.h (handle_access_violation): Declare.
5172 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5173 windows-nat.c. Call handle_access_violation.
5174
efba5c23
TV
51752020-04-16 Tom de Vries <tdevries@suse.de>
5176
5177 PR symtab/25791
5178 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5179 CUs without psymtab.
5180
97ed802d
KB
51812020-04-16 Kevin Buettner <kevinb@redhat.com>
5182
5183 * python/python.c (do_start_initialization): Don't call
5184 PyEval_InitThreads for Python 3.9 and beyond.
5185
c7d64809
KR
51862020-04-15 Kamil Rytarowski <n54@gmx.com>
5187
5188 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5189 thread functions.
5190 (obsd_nat_target::wait): Likewise.
5191
ce127a96
TT
51922020-04-15 Tom Tromey <tromey@adacore.com>
5193
5194 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5195 (DEBUG_EXCEPT): Use debug_printf.
5196
99f1bc6a
AB
51972020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * completer.c (class completion_tracker::completion_hash_entry)
5200 <hash_name>: New member function.
5201 (completion_tracker::discard_completions): New callback to hash a
5202 completion_hash_entry, pass this to htab_create_alloc.
5203
a0e9b532
JT
52042016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5205
5206 * windows-nat.c (windows_make_so): Warn rather than stopping with
5207 an error if realpath() fails.
5208
06ca5dd4
KR
52092020-04-14 Kamil Rytarowski <n54@gmx.com>
5210
5211 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5212 (nbsd_nat_target::info_proc): Add do_status.
5213
194d088f
TV
52142020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5215 Tom de Vries <tdevries@suse.de>
5216
5217 PR symtab/25718
5218 * psympriv.h (struct partial_symtab::read_symtab)
5219 (struct partial_symtab::expand_psymtab)
5220 (struct partial_symtab::read_dependencies): Update comments.
5221 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5222 read_symtab for includer.
5223 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5224 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5225 (struct dwarf2_include_psymtab::m_readin): Remove.
5226 (struct dwarf2_include_psymtab::includer): New member function.
5227 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5228
c1a66c06
TV
52292020-04-14 Tom de Vries <tdevries@suse.de>
5230
5231 PR symtab/25720
5232 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5233 with NULL symbol_matcher and lookup_name.
5234 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5235 and lookup_name.
5236 * dwarf2/read.c (dw2_expand_symtabs_matching)
5237 (dw2_debug_names_expand_symtabs_matching): Same.
5238 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5239 Make lookup_name a pointer. Update comment.
5240 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5241 lookup_name being a pointer.
5242 * symfile.c (expand_symtabs_matching): Same.
5243 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5244 * linespec.c (iterate_over_all_matching_symtabs): Same.
5245
400b5eca
TT
52462020-04-13 Tom Tromey <tom@tromey.com>
5247
5248 * run-on-main-thread.c: Update include.
5249 * unittests/main-thread-selftests.c: Update include.
5250 * tui/tui-win.c: Update include.
5251 * tui/tui-io.c: Update include.
5252 * tui/tui-interp.c: Update include.
5253 * tui/tui-hooks.c: Update include.
5254 * top.h: Update include.
5255 * top.c: Update include.
5256 * ser-base.c: Update include.
5257 * remote.c: Update include.
5258 * remote-notif.c: Update include.
5259 * remote-fileio.c: Update include.
5260 * record-full.c: Update include.
5261 * record-btrace.c: Update include.
5262 * python/python.c: Update include.
5263 * posix-hdep.c: Update include.
5264 * mingw-hdep.c: Update include.
5265 * mi/mi-main.c: Update include.
5266 * mi/mi-interp.c: Update include.
5267 * main.c: Update include.
5268 * linux-nat.c: Update include.
5269 * interps.c: Update include.
5270 * infrun.c: Update include.
5271 * inf-loop.c: Update include.
5272 * event-top.c: Update include.
5273 * event-loop.c: Move to ../gdbsupport/.
5274 * event-loop.h: Move to ../gdbsupport/.
5275 * async-event.h: Update include.
5276 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5277
93b54c8e
TT
52782020-04-13 Tom Tromey <tom@tromey.com>
5279
5280 * tui/tui-win.c: Include async-event.h.
5281 * remote.c: Include async-event.h.
5282 * remote-notif.c: Include async-event.h.
5283 * record-full.c: Include async-event.h.
5284 * record-btrace.c: Include async-event.h.
5285 * infrun.c: Include async-event.h.
5286 * event-top.c: Include async-event.h.
5287 * event-loop.h: Move some declarations to async-event.h.
5288 * event-loop.c: Don't include ser-event.h or top.h. Move some
5289 code to async-event.c.
5290 * async-event.h: New file.
5291 * async-event.c: New file.
5292 * Makefile.in (COMMON_SFILES): Add async-event.c.
5293 (HFILES_NO_SRCDIR): Add async-event.h.
5294
c1cd3163
TT
52952020-04-13 Tom Tromey <tom@tromey.com>
5296
5297 * utils.c (flush_streams): New function.
5298 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5299
29f2bf4f
TT
53002020-04-13 Tom Tromey <tom@tromey.com>
5301
5302 * event-loop.c (handle_file_event): Use warning, not
5303 printf_unfiltered.
5304
98029d02
TT
53052020-04-13 Tom Tromey <tom@tromey.com>
5306
5307 * event-loop.c: Include <chrono>.
5308
06cc9596
TT
53092020-04-13 Tom Tromey <tom@tromey.com>
5310
5311 * gdb_select.h: Move to ../gdbsupport/.
5312 * event-loop.c: Update include path.
5313 * top.c: Update include path.
5314 * ser-base.c: Update include path.
5315 * ui-file.c: Update include path.
5316 * ser-tcp.c: Update include path.
5317 * guile/scm-ports.c: Update include path.
5318 * posix-hdep.c: Update include path.
5319 * ser-unix.c: Update include path.
5320 * gdb_usleep.c: Update include path.
5321 * mingw-hdep.c: Update include path.
5322 * inflow.c: Update include path.
5323 * infrun.c: Update include path.
5324 * event-top.c: Update include path.
5325
8ae8e197
TT
53262020-04-13 Tom Tromey <tom@tromey.com>
5327
5328 * configure: Rebuild.
5329 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5330
58cf28e8
TT
53312020-04-13 Tom Tromey <tom@tromey.com>
5332
5333 * event-loop.h (start_event_loop): Don't declare.
5334 * event-loop.c (start_event_loop): Move...
5335 * main.c (start_event_loop): ...here. Now static.
5336
b7f999ae
SDJ
53372020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5338
5339 * MAINTAINERS: Update my email address.
5340
1085dfd4
KR
53412020-04-12 Kamil Rytarowski <n54@gmx.com>
5342
5343 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5344 IP_ALL.
5345
49d1d1f5
KR
53462020-04-12 Kamil Rytarowski <n54@gmx.com>
5347
5348 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5349 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5350
b4848d2a
KR
53512020-04-12 Kamil Rytarowski <n54@gmx.com>
5352
5353 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5354 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5355
51c133d5
KR
53562020-04-12 Kamil Rytarowski <n54@gmx.com>
5357
5358 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5359
54b8cbd0
KR
53602020-04-11 Kamil Rytarowski <n54@gmx.com>
5361
5362 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5363 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5364 (nbsd_nat_target::info_proc): New functions.
5365 * nbsd-nat.c (kinfo_get_vmmap): New function.
5366 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5367 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5368 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5369 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5370 functions.
5371 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5372 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5373 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5374 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5375 (KINFO_VME_FLAG_GROWS_DOWN): New.
5376
cf83625d
AS
53772020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5378
5379 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5380 bit shift.
5381
0c4311ab
TT
53822020-04-10 Tom Tromey <tromey@adacore.com>
5383
5384 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5385
3e65b3e9
TT
53862020-04-10 Tom Tromey <tromey@adacore.com>
5387
5388 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5389 separate debug files.
5390
13302e95
HD
53912020-04-10 Hannes Domani <ssbssa@yahoo.de>
5392
5393 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5394 Move to...
5395 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5396 ... here.
5397 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5398 Check for STATUS_WX86_BREAKPOINT.
5399 (windows_nat_target::wait): Same.
5400
bdfc1e8a
TV
54012020-04-10 Tom de Vries <tdevries@suse.de>
5402
5403 PR cli/25808
5404 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5405
f4460aec
SM
54062020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5407
5408 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5409 (Write After Approval): Remove Tom de Vries.
5410
a25198bb
BE
54112020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5412
5413 revert partially:
5414 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5415
aac66a4c
SM
5416 * buildsym.c (record_line): Fix undefined behavior and preserve
5417 lines at eof.
a25198bb 5418
206c98a6
KR
54192020-04-09 Kamil Rytarowski <n54@gmx.com>
5420
5421 * auxv.h (svr4_auxv_parse): New.
5422 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5423 and generic_auxv_parse.
5424 (svr4_auxv_parse): Add.
5425 * obsd-tdep.c: Include "auxv.h".
5426 (obsd_auxv_parse): Remove.
5427 (obsd_init_abi): Remove comment.
5428 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5429 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5430 * nbsd-tdep.c: Include "auxv.h".
5431 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5432
71fbdbaf
TT
54332020-04-08 Tom Tromey <tromey@adacore.com>
5434
5435 * nat/windows-nat.h (last_wait_event): Don't declare.
5436 (wait_for_debug_event): Update comment.
5437 * nat/windows-nat.c (last_wait_event): Now static.
5438
2c1d95e8
TT
54392020-04-08 Tom Tromey <tromey@adacore.com>
5440
5441 * windows-nat.c (wait_for_debug_event): Move to
5442 nat/windows-nat.c.
5443 * nat/windows-nat.h (wait_for_debug_event): Declare.
5444 * nat/windows-nat.c (wait_for_debug_event): Move from
5445 windows-nat.c. No longer static.
5446
d2977bc4
TT
54472020-04-08 Tom Tromey <tromey@adacore.com>
5448
5449 * windows-nat.c (get_windows_debug_event): Use
5450 fetch_pending_stop.
5451 * nat/windows-nat.h (fetch_pending_stop): Declare.
5452 * nat/windows-nat.c (fetch_pending_stop): New function.
5453
e758e19c
TT
54542020-04-08 Tom Tromey <tromey@adacore.com>
5455
5456 * windows-nat.c (windows_continue): Use matching_pending_stop and
5457 continue_last_debug_event.
5458 * nat/windows-nat.h (matching_pending_stop)
5459 (continue_last_debug_event): Declare.
5460 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5461 (matching_pending_stop, continue_last_debug_event): New
5462 functions.
5463
8d30e395
TT
54642020-04-08 Tom Tromey <tromey@adacore.com>
5465
5466 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5467 (handle_exception_result): Move to nat/windows-nat.h.
5468 (DEBUG_EXCEPTION_SIMPLE): Remove.
5469 (windows_nat::handle_ms_vc_exception): New function.
5470 (handle_exception): Move to nat/windows-nat.c.
5471 (get_windows_debug_event): Update.
5472 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5473 nat/windows-nat.c.
5474 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5475 (handle_exception_result): Move from windows-nat.c.
5476 (handle_exception): Declare.
5477 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5478 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5479 windows-nat.c.
5480
29de418d
TT
54812020-04-08 Tom Tromey <tromey@adacore.com>
5482
5483 * windows-nat.c (exception_count, event_count): Remove.
5484 (handle_exception, get_windows_debug_event)
5485 (do_initial_windows_stuff): Update.
5486
a816ba18
TT
54872020-04-08 Tom Tromey <tromey@adacore.com>
5488
5489 * windows-nat.c (windows_nat::handle_load_dll)
5490 (windows_nat::handle_unload_dll): Rename. No longer static.
5491 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5492 Declare.
5493
a00caa12
TT
54942020-04-08 Tom Tromey <tromey@adacore.com>
5495
5496 * complaints.h (stop_whining): Declare at top-level.
5497 (complaint): Don't declare stop_whining.
5498
d41b524f
TT
54992020-04-08 Tom Tromey <tromey@adacore.com>
5500
5501 * windows-nat.c (windows_nat::handle_output_debug_string):
5502 Rename. No longer static.
5503 * nat/windows-nat.h (handle_output_debug_string): Declare.
5504
3c76026d
TT
55052020-04-08 Tom Tromey <tromey@adacore.com>
5506
5507 * windows-nat.c (current_process_handle, current_process_id)
5508 (main_thread_id, last_sig, current_event, last_wait_event)
5509 (current_windows_thread, desired_stop_thread_id, pending_stops)
5510 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5511 (display_selectors, fake_create_process)
5512 (get_windows_debug_event): Update.
5513 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5517 * nat/windows-nat.c (current_process_handle, current_process_id)
5518 (main_thread_id, last_sig, current_event, last_wait_event)
5519 (current_windows_thread, desired_stop_thread_id, pending_stops)
5520 (siginfo_er): New globals. Move from windows-nat.c.
5521
9d8679cc
TT
55222020-04-08 Tom Tromey <tromey@adacore.com>
5523
5524 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5525 (handle_load_dll): Update.
5526 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5527
28688adf
TT
55282020-04-08 Tom Tromey <tromey@adacore.com>
5529
5530 * windows-nat.c (enum thread_disposition_type): Move to
5531 nat/windows-nat.h.
5532 (windows_nat::thread_rec): Rename from thread_rec. No longer
5533 static.
5534 (windows_add_thread, windows_nat_target::fetch_registers)
5535 (windows_nat_target::store_registers, handle_exception)
5536 (windows_nat_target::resume, get_windows_debug_event)
5537 (windows_nat_target::get_tib_address)
5538 (windows_nat_target::thread_name)
5539 (windows_nat_target::thread_alive): Update.
5540 * nat/windows-nat.h (enum thread_disposition_type): Move from
5541 windows-nat.c.
5542 (thread_rec): Declare.
5543
4834dad0
TT
55442020-04-08 Tom Tromey <tromey@adacore.com>
5545
5546 * windows-nat.c: Add "using namespace".
5547 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5548 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5549
65bafd5b
TT
55502020-04-08 Tom Tromey <tromey@adacore.com>
5551
5552 * nat/windows-nat.h (struct windows_thread_info): Declare
5553 destructor.
5554 * nat/windows-nat.c (~windows_thread_info): New.
5555
0a4afda3
TT
55562020-04-08 Tom Tromey <tromey@adacore.com>
5557
5558 PR gdb/22992
5559 * windows-nat.c (current_event): Update comment.
5560 (last_wait_event, desired_stop_thread_id): New globals.
5561 (struct pending_stop): New.
5562 (pending_stops): New global.
5563 (windows_nat_target) <stopped_by_sw_breakpoint>
5564 <supports_stopped_by_sw_breakpoint>: New methods.
5565 (windows_fetch_one_register): Add assertions. Adjust PC.
5566 (windows_continue): Handle pending stops. Suspend other threads
5567 when stepping. Use last_wait_event
5568 (wait_for_debug_event): New function.
5569 (get_windows_debug_event): Use wait_for_debug_event. Handle
5570 pending stops. Queue spurious stops.
5571 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5572 (windows_nat_target::kill): Use wait_for_debug_event.
5573 * nat/windows-nat.h (struct windows_thread_info)
5574 <stopped_at_software_breakpoint>: New field.
5575 * nat/windows-nat.c (windows_thread_info::resume): Clear
5576 stopped_at_software_breakpoint.
5577
8e61ebec
TT
55782020-04-08 Tom Tromey <tromey@adacore.com>
5579
5580 * windows-nat.c (enum thread_disposition_type): New.
5581 (thread_rec): Replace "get_context" parameter with "disposition";
5582 change type.
5583 (windows_add_thread, windows_nat_target::fetch_registers)
5584 (windows_nat_target::store_registers, handle_exception)
5585 (windows_nat_target::resume, get_windows_debug_event)
5586 (windows_nat_target::get_tib_address)
5587 (windows_nat_target::thread_name)
5588 (windows_nat_target::thread_alive): Update.
5589
98a03287
TT
55902020-04-08 Tom Tromey <tromey@adacore.com>
5591
5592 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5593 (windows_continue): Use windows_continue::resume.
5594 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5595 resume>: Declare new methods.
5596 * nat/windows-nat.c: New file.
5597 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5598
7c7411bc
TT
55992020-04-08 Tom Tromey <tromey@adacore.com>
5600
5601 * windows-nat.c (windows_add_thread, windows_delete_thread)
5602 (windows_nat_target::fetch_registers)
5603 (windows_nat_target::store_registers, fake_create_process)
5604 (windows_nat_target::resume, windows_nat_target::resume)
5605 (get_windows_debug_event, windows_nat_target::wait)
5606 (windows_nat_target::pid_to_str)
5607 (windows_nat_target::get_tib_address)
5608 (windows_nat_target::get_ada_task_ptid)
5609 (windows_nat_target::thread_name)
5610 (windows_nat_target::thread_alive): Use lwp, not tid.
5611
2950fdf7
TT
56122020-04-08 Tom Tromey <tromey@adacore.com>
5613
5614 * windows-nat.c (handle_exception)
5615 (windows_nat_target::thread_name): Update.
5616 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5617 <name>: Now unique_xmalloc_ptr.
5618
62fe396b
TT
56192020-04-08 Tom Tromey <tromey@adacore.com>
5620
5621 * windows-nat.c (thread_rec)
5622 (windows_nat_target::fetch_registers): Update.
5623 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5624 Update comment.
5625 <debug_registers_changed, reload_context>: Now bool.
5626
e9534bd2
TT
56272020-04-08 Tom Tromey <tromey@adacore.com>
5628
5629 * windows-nat.c (windows_add_thread): Use new.
5630 (windows_init_thread_list, windows_delete_thread): Use delete.
5631 (get_windows_debug_event): Update.
5632 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5633 destructor, and initializers.
5634
ae1f8880
TT
56352020-04-08 Tom Tromey <tromey@adacore.com>
5636
5637 * windows-nat.c (struct windows_thread_info): Remove.
5638 * nat/windows-nat.h: New file.
5639
55a1e039
TT
56402020-04-08 Tom Tromey <tromey@adacore.com>
5641
5642 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5643 (thread_rec, windows_add_thread, windows_delete_thread)
5644 (windows_continue): Update.
5645
93366324
TT
56462020-04-08 Tom Tromey <tromey@adacore.com>
5647
5648 * windows-nat.c (struct windows_thread_info): Remove typedef.
5649 (thread_head): Remove.
5650 (thread_list): New global.
5651 (thread_rec, windows_add_thread, windows_init_thread_list)
5652 (windows_delete_thread, windows_continue): Update.
5653
0f2265e2
SM
56542020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5655
5656 * windows-tdep.h (windows_init_abi): Add comment.
5657 (cygwin_init_abi): New declaration.
5658 * windows-tdep.c: Split signal enumeration in two, one for
5659 Windows and one for Cygwin.
5660 (windows_gdb_signal_to_target): Only deal with signal of the
5661 Windows OS ABI.
5662 (cygwin_gdb_signal_to_target): New function.
5663 (windows_init_abi): Rename to windows_init_abi_common, don't set
5664 gdb_signal_to_target gdbarch method. Add new new function with
5665 this name.
5666 (cygwin_init_abi): New function.
5667 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5668 comment. Don't call windows_init_abi.
5669 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5670 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5671 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5672 i386_windows_init_abi_common, don't call windows_init_abi. Add
5673 a new function of this name.
5674 (i386_cygwin_init_abi): New function.
5675 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5676 OS ABI Cygwin.
5677
3810f182
SM
56782020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5679
5680 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5681 parameter.c.
5682 (dwarf2_read_gdb_index): Update.
5683
063f8e80
KR
56842020-04-07 Kamil Rytarowski <n54@gmx.com>
5685
5686 * nbsd-tdep.c: Include "objfiles.h".
5687 (nbsd_skip_solib_resolver): New.
5688 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5689
85a9510c 56902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5691
5692 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5693 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5694 with DW_LLE_base_addressx are being emitted in DWARFv5.
5695 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5696 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5697 unsigned integer.
5698
9fc3eaae 56992020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5700
5701 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5702 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5703 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5704 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5705 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5706 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5707 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5708
5709
41144253 57102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5711
5712 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5713 (read_loclist_index): New function definition.
5714 (lookup_loclist_base): New function definition.
5715 (read_loclist_header): New function definition.
5716 (dwarf2_cu): Add loclist_base and loclist_header field.
5717 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5718 (read_full_die_1): Read the value of DW_AT_loclists_base.
5719 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5720 (read_attribute_value): Handle DW_FORM_loclistx.
5721 (skip_one_die): Handle DW_FORM_loclistx.
5722 (loclist_header): New structure declaration.
5723 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5724
9f4e76a4
SM
57252020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5726
5727 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5728 constructor. Remove `addr` parameter from other constructor and
5729 add `per_cu` parameter.
5730 * dwarf2/read.c (create_partial_symtab): Update.
5731
25c11aca
TV
57322020-04-07 Tom de Vries <tdevries@suse.de>
5733
5734 PR symtab/25796
5735 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5736 (partial_die_info::fixup): Inherit has_const_value.
5737
5707e24b
TV
57382020-04-07 Tom de Vries <tdevries@suse.de>
5739
5740 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5741 symbols without address.
5742
05f00e22
KR
57432020-04-06 Kamil Rytarowski <n54@gmx.com>
5744
5745 * nbsd-nat.h (struct thread_info): Add forward declaration.
5746 (nbsd_nat_target::thread_alive): Add.
5747 (nbsd_nat_target::thread_name): Likewise.
5748 (nbsd_nat_target::update_thread_list): Likewise.
5749 (update_thread_list::post_attach): Likewise.
5750 (post_attach::pid_to_str): Likewise.
5751 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5752 (nbsd_thread_lister): Add.
5753 (nbsd_nat_target::thread_alive): Likewise.
5754 (nbsd_nat_target::thread_name): Likewise.
5755 (nbsd_add_threads): Likewise.
5756 (update_thread_list::post_attach): Likewise.
5757 (nbsd_nat_target::update_thread_list): Likewise.
5758 (post_attach::pid_to_str): Likewise.
5759
6ee448cc
TT
57602020-04-06 Tom Tromey <tromey@adacore.com>
5761
5762 * ada-valprint.c (print_variant_part): Extract the variant field.
5763 (print_field_values): Use the field as the outer value when
5764 recursing.
5765
dea34e8c
TT
57662020-04-06 Tom Tromey <tromey@adacore.com>
5767
5768 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5769 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5770 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5771 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5772 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5773
93689ce9
TT
57742020-04-06 Tom Tromey <tromey@adacore.com>
5775
5776 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5777 TYPE_CODE_ERROR.
5778
79743962
KR
57792020-04-06 Kamil Rytarowski <n54@gmx.com>
5780
5781 * nbsd-tdep.c: Include "gdbarch.h".
5782 Define enum with NetBSD signal numbers.
5783 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5784 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5785 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5786 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5787 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5788 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5789 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5790 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5791 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5792 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5793 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5794 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5795
9e7c9a03
HD
57962020-04-03 Hannes Domani <ssbssa@yahoo.de>
5797
5798 PR gdb/25325
5799 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5800
d9e49b61
TT
58012020-04-03 Tom Tromey <tromey@adacore.com>
5802
5803 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5804 Read constant block.
5805
e0fc5c3f
SM
58062020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5807
5808 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5809 (gdb_bfd_get_full_section_contents): New declaration.
5810 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5811 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5812 gdb_bfd_get_full_section_contents.
5813
e2ff18a0
SM
58142020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5815
5816 * exec.c (build_section_table): Replace internal_error with
5817 gdb_assert.
5818 (section_table_xfer_memory_partial): Likewise.
5819 * mdebugread.c (parse_partial_symbols): Likewise.
5820 * psymtab.c (lookup_partial_symbol): Likewise.
5821 * utils.c (wrap_here): Likewise.
5822
0830d301
TT
58232020-04-02 Tom Tromey <tromey@adacore.com>
5824
5825 * f-lang.c (build_fortran_types): Use arch_type to initialize
5826 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5827
e7da7f8f
TT
58282020-04-02 Tom Tromey <tromey@adacore.com>
5829
5830 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5831 of attributes.
5832
c90d28ac
AB
58332020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5834 Bernd Edlinger <bernd.edlinger@hotmail.de>
5835 Tom Tromey <tromey@adacore.com>
5836
5837 * buildsym.c (buildsym_compunit::record_line): Remove
5838 deduplication code.
5839
1aa98955
TV
58402020-04-02 Tom de Vries <tdevries@suse.de>
5841
5842 PR ada/24671
5843 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5844
d3214198
TV
58452020-04-02 Tom de Vries <tdevries@suse.de>
5846
5847 * dwarf2/read.c (dwarf2_gdb_index_functions,
5848 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5849 NULL.
5850 * psymtab.c (psym_lookup_global_symbol_language): New function.
5851 (psym_functions): Init psym_lookup_global_symbol_language with
5852 psym_lookup_global_symbol_language.
5853 * symfile-debug.c (debug_sym_quick_functions): Init
5854 lookup_global_symbol_language with NULL.
5855 * symfile.c (set_initial_language): Remove fixme comment.
5856 * symfile.h (struct quick_symbol_functions): Add
5857 lookup_global_symbol_language.
5858 * symtab.c (find_quick_global_symbol_language): New function.
5859 (find_main_name): Use find_quick_global_symbol_language.
5860
2836752f
SM
58612020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5862
5863 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5864
64dc2d4b
BE
58652020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5866
5867 * buildsym.c (record_line): Fix undefined behavior and preserve
5868 lines at eof.
5869
bbe3dc41
BE
58702020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5871
5872 * buildsym.c (record_line): Fix the resizing condition.
5873
6b4a335b
TT
58742020-04-01 Tom Tromey <tom@tromey.com>
5875
5876 * value.h (value_literal_complex): Add comment.
5877 * valops.c (value_literal_complex): Refer to value.h.
5878
3638a098
TT
58792020-04-01 Tom Tromey <tom@tromey.com>
5880
5881 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5882 (scalar_type): New rule, from typebase.
5883 (typebase): Use scalar_type. Recognize complex types.
5884 (field_name): Handle FLOAT_KEYWORD.
5885 (ident_tokens): Add _Complex and __complex__.
5886
c34e8714
TT
58872020-04-01 Tom Tromey <tom@tromey.com>
5888
5889 PR exp/25299:
5890 * valarith.c (promotion_type, complex_binop): New functions.
5891 (scalar_binop): Handle complex numbers. Use promotion_type.
5892 (value_pos, value_neg, value_complement): Handle complex numbers.
5893
fa649bb7
TT
58942020-04-01 Tom Tromey <tom@tromey.com>
5895
5896 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5897 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5898 (parse_number): Handle complex numbers.
5899
981c08ce
TT
59002020-04-01 Tom Tromey <tom@tromey.com>
5901
5902 * c-valprint.c (c_decorations): Change complex suffix to "i".
5903
4c99290d
TT
59042020-04-01 Tom Tromey <tom@tromey.com>
5905
5906 * valprint.c (generic_value_print_complex): Use accessors.
5907 * value.h (value_real_part, value_imaginary_part): Declare.
5908 * valops.c (value_real_part, value_imaginary_part): New
5909 functions.
5910 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5911
5b930b45
TT
59122020-04-01 Tom Tromey <tom@tromey.com>
5913
5914 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5915 (read_range_type): Update.
5916 * mdebugread.c (basic_type): Update.
5917 * go-lang.c (build_go_types): Use init_complex_type.
5918 * gdbtypes.h (struct main_type) <complex_type>: New member.
5919 (init_complex_type): Update.
5920 (arch_complex_type): Don't declare.
5921 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5922 Make name if none given. Use alloc_type_copy. Look for cached
5923 complex type.
5924 (arch_complex_type): Remove.
5925 (gdbtypes_post_init): Use init_complex_type.
5926 * f-lang.c (build_fortran_types): Use init_complex_type.
5927 * dwarf2/read.c (read_base_type): Update.
5928 * d-lang.c (build_d_types): Use init_complex_type.
5929 * ctfread.c (read_base_type): Update.
5930
53cccef1
TBA
59312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5932
5933 * infrun.c (stop_all_threads): Update assertion, plus when
5934 stopping threads, take into account that we might be trying
5935 to stop an all-stop target.
5936 (stop_waiting): Call 'stop_all_threads' if there exists a
5937 non-stop target.
5938
a0714d30
TBA
59392020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5940
5941 * target.h (exists_non_stop_target): New function declaration.
5942 * target.c (exists_non_stop_target): New function.
5943
60e22c1e
HD
59442020-04-01 Hannes Domani <ssbssa@yahoo.de>
5945
5946 PR gdb/24789
5947 * eval.c (is_integral_or_integral_reference): New function.
5948 (evaluate_subexp_standard): Allow integer references in
5949 pointer arithmetic.
5950
e139a727
TBA
59512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5952
5953 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5954 check for no ptid in the stop reply when the target is non-stop.
5955
e0802d59
TT
59562020-04-01 Tom Tromey <tromey@adacore.com>
5957
5958 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5959 "name" parameter to rvalue reference. Initialize m_name_holder.
5960 <lookup_name_info>: New overloads.
5961 <name>: Return gdb::string_view.
5962 <c_str>: New method.
5963 <make_ignore_params>: Update.
5964 <search_name_hash>: Update.
5965 <language_lookup_name>: Return const char *.
5966 <m_name>: Change type.
5967 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5968 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5969 (lookup_name_info::match_any): Update.
5970 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5971 Update.
5972 * minsyms.c (linkage_name_str): Update.
5973 * language.c (default_symbol_name_matcher): Update.
5974 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5975 Update.
5976 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5977 (ada_lookup_name_info::ada_lookup_name_info): Update.
5978 (literal_symbol_name_matcher): Update.
5979
8c072cb6
TT
59802020-04-01 Tom Tromey <tromey@adacore.com>
5981
5982 * psymtab.c (psymtab_search_name): Remove function.
5983 (psym_lookup_symbol): Create search name and lookup name here.
5984 (lookup_partial_symbol): Remove "name" parameter; add
5985 lookup_name.
5986 (psym_expand_symtabs_for_function): Update.
5987
6f29a534
TT
59882020-03-31 Joel Jones <joelkevinjones@gmail.com>
5989
5990 PR tui/25597:
5991 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5992
af62665e
TT
59932020-03-31 Tom Tromey <tromey@adacore.com>
5994
5995 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5996 memcpy.
5997
d1a89da5
NC
59982020-03-30 Nelson Chu <nelson.chu@sifive.com>
5999
6000 * features/riscv/32bit-csr.xml: Regenerated.
6001 * features/riscv/64bit-csr.xml: Regenerated.
6002
d8af9068
TT
60032020-03-30 Tom Tromey <tromey@adacore.com>
6004
6005 * ada-valprint.c (print_variant_part): Update.
6006 * ada-lang.h (ada_which_variant_applies): Update.
6007 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6008 outer_valaddr parameters; replace with "outer" value parameter.
6009 (to_fixed_variant_branch_type): Update.
6010
227c0bf4
PFC
60112020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6012
6013 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6014 <list>. Remove inclusion of observable.h.
6015 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6016 (struct arch_lwp_info): New struct.
6017 (class ppc_linux_dreg_interface): New class.
6018 (struct ppc_linux_process_info): New struct.
6019 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6020 <low_new_clone, low_forget_process, low_prepare_to_resume>
6021 <copy_thread_dreg_state, mark_thread_stale>
6022 <mark_debug_registers_changed, register_hw_breakpoint>
6023 <clear_hw_breakpoint, register_wp, clear_wp>
6024 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6025 <num_memory_accesses, get_trigger_type>
6026 <create_watchpoint_request, hwdebug_point_cmp>
6027 <init_arch_lwp_info, get_arch_lwp_info>
6028 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6029 methods.
6030 <struct ptid_hash>: New inner struct.
6031 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6032 members.
6033 (saved_dabr_value, hwdebug_info, max_slots_number)
6034 (struct hw_break_tuple, struct thread_points, ppc_threads)
6035 (have_ptrace_hwdebug_interface)
6036 (hwdebug_find_thread_points_by_tid)
6037 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6038 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6039 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6040 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6041 use m_dreg_interface.
6042 (hwdebug_point_cmp): Change to...
6043 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6044 reference arguments instead of pointers.
6045 (ppc_linux_nat_target::ranged_break_num_registers): Use
6046 m_dreg_interface.
6047 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6048 m_dreg_interface. Call register_hw_breakpoint.
6049 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6050 m_dreg_interface. Call clear_hw_breakpoint.
6051 (get_trigger_type): Change to...
6052 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6053 comment.
6054 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6055 use m_dreg_interface. Call register_hw_breakpoint.
6056 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6057 use m_dreg_interface. Call clear_hw_breakpoint.
6058 (can_use_watchpoint_cond_accel): Change to...
6059 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6060 method. Update comment, use m_dreg_interface and
6061 m_process_info.
6062 (calculate_dvc): Change to...
6063 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6064 m_dreg_interface.
6065 (num_memory_accesses): Change to...
6066 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6067 (check_condition): Change to...
6068 (ppc_linux_nat_target::check_condition): ...this method.
6069 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6070 comment, use m_dreg_interface.
6071 (create_watchpoint_request): Change to...
6072 (ppc_linux_nat_target::create_watchpoint_request): ...this
6073 method. Use m_dreg_interface.
6074 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6075 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6076 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6077 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6078 (ppc_linux_nat_target::low_forget_process)
6079 (ppc_linux_nat_target::low_new_fork)
6080 (ppc_linux_nat_target::low_new_clone)
6081 (ppc_linux_nat_target::low_delete_thread)
6082 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6083 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6084 only call mark_thread_stale.
6085 (ppc_linux_thread_exit): Remove.
6086 (ppc_linux_nat_target::stopped_data_address): Change to...
6087 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6088 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6089 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6090 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6091 comment. Call low_stopped_data_address.
6092 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6093 m_dreg_interface.
6094 (ppc_linux_nat_target::masked_watch_num_registers): Use
6095 m_dreg_interface.
6096 (ppc_linux_nat_target::copy_thread_dreg_state)
6097 (ppc_linux_nat_target::mark_thread_stale)
6098 (ppc_linux_nat_target::mark_debug_registers_changed)
6099 (ppc_linux_nat_target::register_hw_breakpoint)
6100 (ppc_linux_nat_target::clear_hw_breakpoint)
6101 (ppc_linux_nat_target::register_wp)
6102 (ppc_linux_nat_target::clear_wp)
6103 (ppc_linux_nat_target::init_arch_lwp_info)
6104 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6105 (_initialize_ppc_linux_nat): Remove observer callback.
6106
4db10d8f
PFC
61072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6108
6109 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6110 (ppc_linux_nat_target::auxv_parse)
6111 (ppc_linux_nat_target::read_description)
6112 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6113 Move up.
6114
1310c1b0
PFC
61152020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6116
6117 * linux-nat.h (low_new_clone): New method.
6118 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6119
69b037c3
SM
61202020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6123 (dbx_expand_psymtab): ... this.
6124 (start_psymtab): Update.
6125 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6126 (mdebug_expand_psymtab): ... this.
6127 (parse_partial_symbols): Update.
6128 (new_psymtab): Update.
6129 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6130 (xcoff_expand_psymtab): ... this.
6131 (xcoff_start_psymtab): Update.
6132
48993951
SM
61332020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6134
6135 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6136 <expand_dependencies>: ... this.
6137 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6138 (partial_symtab::expand_dependencies): ... this.
6139 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6140 Update.
6141 (dwarf2_psymtab::expand_psymtab): Update.
6142 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6143 * mdebugread.c (psymtab_to_symtab_1): Update.
6144 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6145
3ad83046
SM
61462020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6147
6148 * psympriv.h (discard_psymtab): Remove.
6149 * dbxread.c (dbx_end_psymtab): Update.
6150 * xcoffread.c (xcoff_end_psymtab): Update.
6151
4d1b9ab6
TT
61522020-03-28 Tom Tromey <tom@tromey.com>
6153
6154 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6155 comment.
6156
f1749218
TT
61572020-03-28 Tom Tromey <tom@tromey.com>
6158
6159 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6160
ebea7626
HD
61612020-03-27 Hannes Domani <ssbssa@yahoo.de>
6162
6163 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6164
a879b4d5
JB
61652020-03-26 John Baldwin <jhb@FreeBSD.org>
6166
6167 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6168
0826b30a
TT
61692020-03-26 Tom Tromey <tom@tromey.com>
6170
6171 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6172 (mark_common_block_symbol_computed, read_tag_string_type)
6173 (attr_to_dynamic_prop, read_subrange_type): Update.
6174 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6175 to be methods on struct attribute.
6176 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6177 (read_call_site_scope, partial_die_info::read)
6178 (partial_die_info::read, lookup_die_type, follow_die_ref):
6179 Update.
6180 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6181 from dwarf2_get_ref_die_offset.
6182 (attribute::constant_value): New method, from
6183 dwarf2_get_attr_constant_value.
6184 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6185 Declare method.
6186 <constant_value>: New method.
6187
2b2558bf
TT
61882020-03-26 Tom Tromey <tom@tromey.com>
6189
6190 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6191 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6192 (dwarf_type_encoding_name): Move to stringify.c.
6193 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6194 * dwarf2/stringify.c: New file.
6195 * dwarf2/stringify.h: New file.
6196
eeb64781
TT
61972020-03-26 Tom Tromey <tom@tromey.com>
6198
6199 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6200 Rewrite.
6201
a39fdb41
TT
62022020-03-26 Tom Tromey <tom@tromey.com>
6203
6204 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6205 methods.
6206 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6207 (lookup_ranges_base): Likewise.
6208 (read_cutu_die_from_dwo, read_full_die_1): Update.
6209
436c571c
TT
62102020-03-26 Tom Tromey <tom@tromey.com>
6211
6212 * dwarf2/read.c (read_import_statement, read_file_scope)
6213 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6214 (read_lexical_block_scope, read_call_site_scope)
6215 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6216 (handle_struct_member_die, process_structure_scope)
6217 (update_enumeration_type_from_children)
6218 (process_enumeration_scope, read_array_type, read_common_block)
6219 (read_namespace, read_module, read_subroutine_type): Update.
6220 (sibling_die): Remove.
6221
052c8bb8
TT
62222020-03-26 Tom Tromey <tom@tromey.com>
6223
6224 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6225 (build_type_psymtabs_reader, read_structure_type)
6226 (read_enumeration_type, read_full_die_1): Update.
6227 (dwarf2_attr_no_follow): Move to die.h.
6228 * dwarf2/die.h (struct die_info) <attr>: New method.
6229
2b24b6e4
TT
62302020-03-26 Tom Tromey <tom@tromey.com>
6231
6232 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6233 <base_address>: Now an optional.
6234 (dwarf2_find_base_address, dwarf2_rnglists_process)
6235 (dwarf2_ranges_process, fill_in_loclist_baton)
6236 (dwarf2_symbol_mark_computed): Update.
6237
c2d50fd0
TT
62382020-03-26 Tom Tromey <tom@tromey.com>
6239
6240 * dwarf2/read.c (struct die_info): Move to die.h.
6241 * dwarf2/die.h: New file.
6242
0df7ad3a
TT
62432020-03-26 Tom Tromey <tom@tromey.com>
6244
6245 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6246 * dwarf2/read.c
6247 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6248 Move to line-header.c.
6249 (read_checked_initial_length_and_offset, read_formatted_entries):
6250 Likewise.
6251 (dwarf_decode_line_header): Split into two.
6252 * dwarf2/line-header.c
6253 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6254 Move from read.c.
6255 (read_checked_initial_length_and_offset, read_formatted_entries):
6256 Likewise.
6257 (dwarf_decode_line_header): New function, split from read.c.
6258
86c0bb4c
TT
62592020-03-26 Tom Tromey <tom@tromey.com>
6260
6261 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6262 Declare method.
6263 * dwarf2/read.c (read_attribute_value): Update.
6264 (dwarf2_per_objfile::read_line_string): Rename from
6265 read_indirect_line_string.
6266 (read_formatted_entries): Update.
6267
2ef46c2f
TT
62682020-03-26 Tom Tromey <tom@tromey.com>
6269
6270 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6271 variable.
6272
4f9c1eda
TT
62732020-03-26 Tom Tromey <tom@tromey.com>
6274
6275 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6276 const.
6277 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6278 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6279 parameter const.
6280
5a0e026f
TT
62812020-03-26 Tom Tromey <tom@tromey.com>
6282
6283 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6284 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6285 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6286 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6287
8844c11b
TT
62882020-03-26 Tom Tromey <tom@tromey.com>
6289
6290 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6291 file_names_size, file_full_name, file_file_name>: Use const.
6292 <file_name_at, file_names>: Add const overload.
6293 * dwarf2/line-header.c (line_header::file_file_name)
6294 (line_header::file_full_name): Update.
6295
c90ec28a
TT
62962020-03-26 Tom Tromey <tom@tromey.com>
6297
6298 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6299 (macro_start_file, consume_improper_spaces)
6300 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6301 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6302 (dwarf_decode_macros): Move to macro.c.
6303 * dwarf2/macro.c: New file.
6304 * dwarf2/macro.h: New file.
6305 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6306
4f44ae6c
TT
63072020-03-26 Tom Tromey <tom@tromey.com>
6308
6309 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6310 method.
6311 * dwarf2/section.c: New method. From
6312 read_indirect_string_at_offset_from.
6313 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6314 (read_indirect_string_at_offset_from): Move to section.c.
6315 (read_indirect_string_at_offset): Rewrite.
6316 (read_indirect_line_string_at_offset): Remove.
6317 (read_indirect_string, read_indirect_line_string)
6318 (dwarf_decode_macro_bytes): Update.
6319
a0194fa8
TT
63202020-03-26 Tom Tromey <tom@tromey.com>
6321
6322 * dwarf2/section.h (struct dwarf2_section_info)
6323 <overload_complaint>: Declare.
6324 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6325 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6326 Rename from dwarf2_section_buffer_overflow_complaint.
6327 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6328 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6329
3d27bbdb
TT
63302020-03-26 Tom Tromey <tom@tromey.com>
6331
6332 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6333 Declare.
6334 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6335 Move from read.c.
6336 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6337 to section.c.
6338
9eac9650
TT
63392020-03-26 Tom Tromey <tom@tromey.com>
6340
6341 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6342
bf80d710
TT
63432020-03-26 Tom Tromey <tom@tromey.com>
6344
6345 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6346 "builder".
6347 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6348 parameter.
6349 (dwarf_decode_macros): Update.
6350
0314b390
TT
63512020-03-26 Tom Tromey <tom@tromey.com>
6352
6353 * dwarf2/read.c (read_attribute_value): Update.
6354 (read_indirect_string_from_dwz): Move to dwz.c; change into
6355 method.
6356 (dwarf_decode_macro_bytes): Update.
6357 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6358 * dwarf2/dwz.c: New file.
6359 * Makefile.in (COMMON_SFILES): Add dwz.c.
6360
9fda78b6
TT
63612020-03-26 Tom Tromey <tom@tromey.com>
6362
6363 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6364 * dwarf2/read.c: Add include.
6365 * dwarf2/index-write.c: Add include.
6366 * dwarf2/index-cache.c: Add include.
6367 * dwarf2/dwz.h: New file.
6368
33aa3c10
TT
63692020-03-25 Tom Tromey <tom@tromey.com>
6370
6371 * compile/compile-object-load.c (get_out_value_type): Mention
6372 correct symbol name in error message.
6373
d503b685
HD
63742020-03-25 Hannes Domani <ssbssa@yahoo.de>
6375
6376 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6377
7b1eff95
TV
63782020-03-25 Tom de Vries <tdevries@suse.de>
6379
6380 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6381 * symmisc.c (dump_symtab_1): Print user and includes fields.
6382 (maintenance_info_symtabs): Same.
6383
dd895392
AB
63842020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6385
6386 PR gdb/25534
6387 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6388 (riscv_regcache_cooked_write): New function.
6389 (riscv_push_dummy_call): Use new function.
6390 (riscv_return_value): Likewise.
6391
5ab2fbf1
SM
63922020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6393
6394 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6395 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6396 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6397 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6398 * infrun.c (follow_fork): Likewise.
6399 (follow_fork_inferior): Likewise.
6400 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6401 * linux-nat.h (class linux_nat_target): Likewise.
6402 * remote.c (class remote_target) <follow_fork>: Likewise.
6403 (remote_target::follow_fork): Likewise.
6404 * target-delegates.c: Re-generate.
6405 * target.c (default_follow_fork): Likewise.
6406 (target_follow_fork): Likewise.
6407 * target.h (struct target_ops) <follow_fork>: Likewise.
6408 (target_follow_fork): Likewise.
6409
a64fafb5
TV
64102020-03-24 Tom de Vries <tdevries@suse.de>
6411
6412 * psymtab.c (maintenance_info_psymtabs): Print user field.
6413
fe26d3a3
TT
64142020-03-20 Tom Tromey <tromey@adacore.com>
6415
6416 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6417 const.
6418 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6419 const.
6420
c884cc46
SM
64212020-03-20 Simon Marchi <simon.marchi@efficios.com>
6422
6423 * ptrace.m4: Don't check for ptrace declaration.
6424 * config.in: Re-generate.
6425 * configure: Re-generate.
6426 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6427 not defined.
6428
1ff700c2
KR
64292020-03-20 Kamil Rytarowski <n54@gmx.com>
6430
6431 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6432 `PTRACE_TYPE_RET'.
6433 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6434 * sparc-nat.c (gdb_ptrace): Likewise.
6435 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6436
f7d4f0b1
TT
64372020-03-20 Tom Tromey <tromey@adacore.com>
6438
6439 * c-exp.y (lex_one_token): Fix assert.
6440
f67210ff
TT
64412020-03-20 Tom Tromey <tromey@adacore.com>
6442
6443 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6444 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6445 strncpy call.
6446
1773be9e
TT
64472020-03-20 Tom Tromey <tromey@adacore.com>
6448
6449 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6450
70304be9
TT
64512020-03-20 Tom Tromey <tromey@adacore.com>
6452
6453 * ada-valprint.c (print_variant_part): Remove parameters; switch
6454 to value-based API.
6455 (print_field_values): Likewise.
6456 (ada_val_print_struct_union): Likewise.
6457 (ada_value_print_1): Update.
6458
9faa006d
KR
64592020-03-20 Kamil Rytarowski <n54@gmx.com>
6460
6461 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6462 nbsd_nat_target instead of inf_ptrace_target.
6463 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6464 nbsd_nat_target.
6465
4a90f062
KR
64662020-03-20 Kamil Rytarowski <n54@gmx.com>
6467
6468 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6469 it to the ptrace call.
6470 * (store_registers): Likewise.
6471
64722020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6473
6474 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6475 it to the ptrace call.
6476 * (store_registers): Likewise.
6477
2d07da27
LM
64782020-03-19 Luis Machado <luis.machado@linaro.org>
6479
6480 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6481 valid, fetch vg value from ptrace.
6482
f09db380
KR
64832020-03-19 Kamil Rytarowski <n54@gmx.com>
6484 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6485 * inf-ptrace.c: Likewise.
6486 * (gdb_ptrace): Add.
6487 * (inf_ptrace_target::resume): Update.
6488 * (inf_ptrace_target::xfer_partial): Likewise.
6489 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6490 * (inf_ptrace_peek_poke): Update.
6491
fcc7376e
KR
64922020-03-19 Kamil Rytarowski <n54@gmx.com>
6493
6494 * x86-bsd-nat.c (gdb_ptrace): New.
6495 * (x86bsd_dr_set): Add new argument `ptid'.
6496 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6497 x86bsd_dr_set_addr): Update.
6498
cada5fc9
AB
64992020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6500
6501 * remote.c (remote_target::process_stop_reply): Handle events for
6502 all threads differently.
6503
19a2740f
AB
65042020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6505
6506 * completer.c (completion_tracker::remove_completion): Define new
6507 function.
6508 * completer.h (completion_tracker::remove_completion): Declare new
6509 function.
6510 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6511 when adding a C++ function symbol.
6512
724fd9ba
AB
65132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6514
6515 * completer.c (completion_tracker::completion_hash_entry): Define
6516 new class.
6517 (advance_to_filename_complete_word_point): Call
6518 recompute_lowest_common_denominator.
6519 (completion_tracker::completion_tracker): Call discard_completions
6520 to setup the hash table.
6521 (completion_tracker::discard_completions): Allow for being called
6522 from the constructor, pass new equal function, and element deleter
6523 when constructing the hash table. Initialise new class member
6524 variables.
6525 (completion_tracker::maybe_add_completion): Remove use of
6526 m_entries_vec, and store more information into m_entries_hash.
6527 (completion_tracker::recompute_lcd_visitor): New function, most
6528 content taken from...
6529 (completion_tracker::recompute_lowest_common_denominator):
6530 ...here, this now just visits each item in the hash calling the
6531 above visitor.
6532 (completion_tracker::build_completion_result): Remove use of
6533 m_entries_vec, call recompute_lowest_common_denominator.
6534 * completer.h (completion_tracker::have_completions): Remove use
6535 of m_entries_vec.
6536 (completion_tracker::completion_hash_entry): Declare new class.
6537 (completion_tracker::recompute_lowest_common_denominator): Change
6538 function signature.
6539 (completion_tracker::recompute_lcd_visitor): Declare new function.
6540 (completion_tracker::m_entries_vec): Delete.
6541 (completion_tracker::m_entries_hash): Initialize to NULL.
6542 (completion_tracker::m_lowest_common_denominator_valid): New
6543 member variable.
6544 (completion_tracker::m_lowest_common_denominator_max_length): New
6545 member variable.
6546
5a82b8a1
KR
65472020-03-17 Kamil Rytarowski <n54@gmx.com>
6548
6549 * regformats/regdef.h: Put reg in gdb namespace.
6550
fb516a69
KR
65512020-03-17 Kamil Rytarowski <n54@gmx.com>
6552
6553 * i386-bsd-nat.c (gdb_ptrace): New.
6554 * (i386bsd_fetch_inferior_registers,
6555 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6556 * (i386bsd_fetch_inferior_registers,
6557 i386bsd_store_inferior_registers) Use gdb_ptrace.
6558
1c0aa1fb
KR
65592020-03-17 Kamil Rytarowski <n54@gmx.com>
6560
6561 * amd64-bsd-nat.c (gdb_ptrace): New.
6562 * (amd64bsd_fetch_inferior_registers,
6563 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6564 * (amd64bsd_fetch_inferior_registers,
6565 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6566
5ccd2fb7
KR
65672020-03-17 Kamil Rytarowski <n54@gmx.com>
6568
6569 * user-regs.c (user_reg::read): Rename to...
6570 (user_reg::xread): ...this.
6571 * (append_user_reg): Rename argument `read' to `xread'.
6572 * (user_reg_add_builtin): Likewise.
6573 * (user_reg_add): Likewise.
6574 * (value_of_user_reg): Likewise.
6575
2108a63a
KR
65762020-03-17 Kamil Rytarowski <n54@gmx.com>
6577
6578 * sparc-nat.c (gdb_ptrace): New.
6579 * sparc-nat.c (sparc_fetch_inferior_registers)
6580 (sparc_store_inferior_registers) Remove obsolete comment.
6581 * sparc-nat.c (sparc_fetch_inferior_registers)
6582 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6583 * sparc-nat.c (sparc_fetch_inferior_registers)
6584 (sparc_store_inferior_registers) Use gdb_ptrace.
6585
a225c9a8
KR
65862020-03-17 Kamil Rytarowski <n54@gmx.com>
6587
6588 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6589 it to the ptrace call.
6590 * sh-nbsd-nat.c (store_registers): Likewise.
6591
98097623
KR
65922020-03-17 Kamil Rytarowski <n54@gmx.com>
6593
6594 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6595 nbsd_nat_target instead of inf_ptrace_target.
6596 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6597 nbsd_nat_target.
6598
9e38d619
KR
65992020-03-17 Kamil Rytarowski <n54@gmx.com>
6600
6601 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6602
a2ecbe9f
KR
66032020-03-17 Kamil Rytarowski <n54@gmx.com>
6604
6605 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6606 <sys/sysctl.h>.
6607 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6608
58990295
TV
66092020-03-17 Tom de Vries <tdevries@suse.de>
6610
6611 PR gdb/23710
6612 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6613 fields.
6614 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6615 fields.
6616 (process_imported_unit_die): Skip import of c++ CUs.
6617
771dd3a8
TT
66182020-03-16 Tom Tromey <tom@tromey.com>
6619
6620 * p-valprint.c (pascal_object_print_value): Initialize
6621 base_value.
6622
817a7585
AK
66232020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6624 Shahab Vahedi <shahab@synopsys.com>
6625
6626 * Makefile.in: Add arch/arc.o
6627 * configure.tgt: Likewise.
6628 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6629 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6630 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6631 * arc-tdep.h (arc_read_description): Add proto type.
6632 * arch/arc.c: New file.
6633 * arch/arc.h: Likewise.
6634 * features/Makefile: Replace old target descriptions with new.
6635 * features/arc-arcompact.c: Remove.
6636 * features/arc-arcompact.xml: Likewise.
6637 * features/arc-v2.c: Likewise
6638 * features/arc-v2.xml: Likewise
6639 * features/arc/aux-arcompact.xml: New file.
6640 * features/arc/aux-v2.xml: Likewise.
6641 * features/arc/core-arcompact.xml: Likewise.
6642 * features/arc/core-v2.xml: Likewise.
6643 * features/arc/aux-arcompact.c: Generate.
6644 * features/arc/aux-v2.c: Likewise.
6645 * features/arc/core-arcompact.c: Likewise.
6646 * features/arc/core-v2.c: Likewise.
6647 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6648
67430cd0
TT
66492020-03-16 Tom Tromey <tromey@adacore.com>
6650
6651 PR gdb/25663:
6652 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6653 putting value into bcache.
6654
30efb6c7
SM
66552020-03-16 Simon Marchi <simon.marchi@efficios.com>
6656
6657 PR gdb/21500
6658 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6659 to...
6660 (amd64_windows_init_abi_common): ... this. Don't set size of
6661 long type.
6662 (amd64_windows_init_abi): New function.
6663 (amd64_cygwin_init_abi): New function.
6664 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6665 the Cygwin OS ABI.
6666 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6667 comment.
6668
8db52437
SM
66692020-03-16 Simon Marchi <simon.marchi@efficios.com>
6670
6671 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6672 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6673 (pe_import_directory_entry): New struct type.
6674 (is_linked_with_cygwin_dll): New function.
6675 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6676 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6677 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6678
5982a56a
SM
66792020-03-16 Simon Marchi <simon.marchi@efficios.com>
6680
6681 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6682 i386_cygwin_core_osabi_sniffer.
6683
7a1998df
SM
66842020-03-16 Simon Marchi <simon.marchi@efficios.com>
6685
6686 * i386-cygwin-tdep.c: Rename to...
6687 * i386-windows-tdep.c: ... this.
6688 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6689 i386-windows-tdep.c.
6690 * configure.tgt: Likewise.
6691
053205cc
SM
66922020-03-16 Simon Marchi <simon.marchi@efficios.com>
6693
6694 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6695 * osabi.c (gdb_osabi_names): Add "Windows".
6696 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6697 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6698 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6699 i386_cygwin_osabi_sniffer.
6700 (_initialize_i386_cygwin_tdep): Register OS ABI
6701 GDB_OSABI_WINDOWS for i386.
6702 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6703 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6704 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6705 for x86-64.
6706 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6707 when the target matches '*-*-mingw*'.
6708
fe4b2ee6
SM
67092020-03-16 Simon Marchi <simon.marchi@efficios.com>
6710
6711 * defs.h (enum gdb_osabi): Move to...
6712 * osabi.h (enum gdb_osabi): ... here.
6713 * gdbarch.sh: Include osabi.h in gdbarch.h.
6714 * gdbarch.h: Re-generate.
6715
cb9b645d
SM
67162020-03-16 Simon Marchi <simon.marchi@efficios.com>
6717
6718 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6719 function.
6720 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6721
3293bbaf
TT
67222020-03-14 Tom Tromey <tom@tromey.com>
6723
6724 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6725 for C++.
6726 (c_type_print_modifier): Likewise. Add "language" parameter.
6727 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6728 (c_type_print_base_1): Update.
6729 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6730 constants.
6731 * type-stack.c (type_stack::insert): Handle tp_atomic and
6732 tp_restrict.
6733 (type_stack::follow_type_instance_flags): Likewise.
6734 (type_stack::follow_types): Likewise. Merge type-following code.
6735 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6736 (space_identifier, cv_with_space_id)
6737 (const_or_volatile_or_space_identifier_noopt)
6738 (const_or_volatile_or_space_identifier): Remove.
6739 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6740 rules.
6741 (ptr_operator, typebase): Update.
6742 (enum token_flag) <FLAG_C>: New constant.
6743 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6744 "_Atomic".
6745 (lex_one_token): Handle FLAG_C.
6746
154151a6
KR
67472020-03-14 Kamil Rytarowski <n54@gmx.com>
6748
6749 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6750 it to the ptrace call.
6751 * m68k-bsd-nat.c (store_registers): Likewise.
6752
bc107784
KR
67532020-03-14 Kamil Rytarowski <n54@gmx.com>
6754
6755 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6756 gdb_byte *.
6757 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6758 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6759 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6760
01a80117
KR
67612020-03-14 Kamil Rytarowski <n54@gmx.com>
6762
6763 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6764 nbsd_nat_target instead of inf_ptrace_target.
6765 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6766 nbsd_nat_target.
6767
f90280ca
KR
67682020-03-14 Kamil Rytarowski <n54@gmx.com>
6769
6770 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6771 register_t.
6772
6def66f1
KR
67732020-03-14 Kamil Rytarowski <n54@gmx.com>
6774
6775 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6776 it to the ptrace call.
6777 * alpha-bsd-nat.c (store_registers): Likewise.
6778
66eaca97
KR
67792020-03-14 Kamil Rytarowski <n54@gmx.com>
6780
6781 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6782 includes.
6783 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6784 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6785 fill_fpregset): Likewise.
6786
4fed520b
KR
67872020-03-14 Kamil Rytarowski <n54@gmx.com>
6788
6789 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6790 nbsd_nat_target instead of inf_ptrace_target.
6791 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6792 nbsd_nat_target.
6793
2190cf06
KR
67942020-03-14 Kamil Rytarowski <n54@gmx.com>
6795
6796 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6797 register_t.
6798
75c56d3d
KR
67992020-03-14 Kamil Rytarowski <n54@gmx.com>
6800
6801 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6802 it to the ptrace call.
6803 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6804 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6805 * arm-nbsd-nat.c (store_register): Likewise.
6806 * arm-nbsd-nat.c (store_regs): Likewise.
6807 * arm-nbsd-nat.c (store_fp_register): Likewise.
6808 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6809
6018d381
KR
68102020-03-14 Kamil Rytarowski <n54@gmx.com>
6811
6812 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6813 nbsd_nat_target instead of inf_ptrace_target.
6814 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6815 nbsd_nat_target.
6816
013f99f0
KR
68172020-03-14 Kamil Rytarowski <n54@gmx.com>
6818
6819 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6820 it to the ptrace call.
6821 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6822
12753073
KR
68232020-03-14 Kamil Rytarowski <n54@gmx.com>
6824
6227b330
KR
6825 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6826 it to the ptrace call.
6827 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6828
68292020-03-14 Kamil Rytarowski <n54@gmx.com>
6830
6831 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6832 gdb_byte *.
12753073
KR
6833 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6834
d5be5fa4
KR
68352020-03-14 Kamil Rytarowski <n54@gmx.com>
6836
6837 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6838 instead of inf_ptrace_target.
6839 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6840 nbsd_nat_target.
6841
8110f842
KR
68422020-03-14 Kamil Rytarowski <n54@gmx.com>
6843
6844 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6845 register_t.
6846
52feded7
KR
68472020-03-14 Kamil Rytarowski <n54@gmx.com>
6848
6849 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6850 register_t.
6851
25567eee
KR
68522020-03-14 Kamil Rytarowski <n54@gmx.com>
6853
6854 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6855 register_t.
6856
426a9c18
TT
68572020-03-13 Tom Tromey <tom@tromey.com>
6858
6859 * value.h (val_print): Don't declare.
6860 * valprint.h (val_print_array_elements)
6861 (val_print_scalar_formatted, generic_val_print): Don't declare.
6862 * valprint.c (generic_val_print_array): Take a struct value.
6863 (generic_val_print_ptr, generic_val_print_memberptr)
6864 (generic_val_print_bool, generic_val_print_int)
6865 (generic_val_print_char, generic_val_print_complex)
6866 (generic_val_print): Remove.
6867 (generic_value_print): Update.
6868 (do_val_print): Remove unused parameters. Don't call
6869 la_val_print.
6870 (val_print): Remove.
6871 (common_val_print): Update. Don't call value_check_printable.
6872 (val_print_scalar_formatted, val_print_array_elements): Remove.
6873 * rust-lang.c (rust_val_print): Remove.
6874 (rust_language_defn): Update.
6875 * p-valprint.c (pascal_val_print): Remove.
6876 (pascal_value_print_inner): Update.
6877 (pascal_object_print_val_fields, pascal_object_print_val):
6878 Remove.
6879 (pascal_object_print_static_field): Update.
6880 * p-lang.h (pascal_val_print): Don't declare.
6881 * p-lang.c (pascal_language_defn): Update.
6882 * opencl-lang.c (opencl_language_defn): Update.
6883 * objc-lang.c (objc_language_defn): Update.
6884 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6885 * m2-lang.h (m2_val_print): Don't declare.
6886 * m2-lang.c (m2_language_defn): Update.
6887 * language.h (struct language_defn) <la_val_print>: Remove.
6888 * language.c (unk_lang_value_print_inner): Rename. Change
6889 argument types.
6890 (unknown_language_defn, auto_language_defn): Update.
6891 * go-valprint.c (go_val_print): Remove.
6892 * go-lang.h (go_val_print): Don't declare.
6893 * go-lang.c (go_language_defn): Update.
6894 * f-valprint.c (f_val_print): Remove.
6895 * f-lang.h (f_value_print): Don't declare.
6896 * f-lang.c (f_language_defn): Update.
6897 * d-valprint.c (d_val_print): Remove.
6898 * d-lang.h (d_value_print): Don't declare.
6899 * d-lang.c (d_language_defn): Update.
6900 * cp-valprint.c (cp_print_value_fields)
6901 (cp_print_value_fields_rtti, cp_print_value): Remove.
6902 (cp_print_static_field): Update.
6903 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6904 (c_val_print_struct, c_val_print_union, c_val_print_int)
6905 (c_val_print_memberptr, c_val_print): Remove.
6906 * c-lang.h (c_val_print_array, cp_print_value_fields)
6907 (cp_print_value_fields_rtti): Don't declare.
6908 * c-lang.c (c_language_defn, cplus_language_defn)
6909 (asm_language_defn, minimal_language_defn): Update.
6910 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6911 (ada_val_print_enum): Take a struct value.
6912 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6913 (ada_val_print): Remove.
6914 (ada_value_print_1): Update.
6915 (printable_val_type): Remove.
6916 * ada-lang.h (ada_val_print): Don't declare.
6917 * ada-lang.c (ada_language_defn): Update.
6918
42331a1e
TT
69192020-03-13 Tom Tromey <tom@tromey.com>
6920
6921 * valprint.c (do_val_print): Update.
6922 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6923 a struct value.
6924 (value_to_value_object_no_release): Declare.
6925 * python/py-value.c (value_to_value_object_no_release): New
6926 function.
6927 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6928 struct value.
6929 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6930 function.
6931 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6932 a struct value.
6933 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6934 Declare.
6935 (gdbscm_apply_val_pretty_printer): Take a struct value.
6936 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6937 value.
6938 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6939 value.
6940 * extension-priv.h (struct extension_language_ops)
6941 <apply_val_pretty_printer>: Take a struct value.
6942 * cp-valprint.c (cp_print_value): Create a struct value.
6943 (cp_print_value): Update.
6944
3a916a97
TT
69452020-03-13 Tom Tromey <tom@tromey.com>
6946
6947 * ada-valprint.c (print_field_values): Call common_val_print.
6948
b59eac37
TT
69492020-03-13 Tom Tromey <tom@tromey.com>
6950
6951 * ada-valprint.c (val_print_packed_array_elements): Remove
6952 bitoffset and val parameters. Call common_val_print.
6953 (ada_val_print_string): Remove offset, address, and original_value
6954 parameters.
6955 (ada_val_print_array): Update.
6956 (ada_value_print_array): New function.
6957 (ada_value_print_1): Call it.
6958
03371129
TT
69592020-03-13 Tom Tromey <tom@tromey.com>
6960
6961 * ada-valprint.c (ada_value_print): Use common_val_print.
6962
2e088f8b
TT
69632020-03-13 Tom Tromey <tom@tromey.com>
6964
6965 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6966
39ef85a8
TT
69672020-03-13 Tom Tromey <tom@tromey.com>
6968
6969 * ada-valprint.c (ada_value_print_num): New function.
6970 (ada_value_print_1): Use it.
6971
b9fa6e07
TT
69722020-03-13 Tom Tromey <tom@tromey.com>
6973
6974 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6975
416595d6
TT
69762020-03-13 Tom Tromey <tom@tromey.com>
6977
6978 * ada-valprint.c (ada_value_print_ptr): New function.
6979 (ada_value_print_1): Use it.
6980
5b5e15ec
TT
69812020-03-13 Tom Tromey <tom@tromey.com>
6982
6983 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6984 call common_val_print.
6985 (ada_val_print_1): Update.
6986 (ada_value_print_1): New function.
6987 (ada_value_print_inner): Rewrite.
6988
fbf54e75
TT
69892020-03-13 Tom Tromey <tom@tromey.com>
6990
6991 * cp-valprint.c (cp_print_value_fields): Update.
6992 (cp_print_value): New function.
6993
64b653ca
TT
69942020-03-13 Tom Tromey <tom@tromey.com>
6995
6996 * m2-valprint.c (m2_value_print_inner): Use
6997 cp_print_value_fields.
6998 * cp-valprint.c (cp_print_value_fields): New function.
6999 * c-valprint.c (c_value_print_struct): New function.
7000 (c_value_print_inner): Use c_value_print_struct.
7001 * c-lang.h (cp_print_value_fields): Declare.
7002
6999f067
TT
70032020-03-13 Tom Tromey <tom@tromey.com>
7004
7005 * c-valprint.c (c_value_print_array): New function.
7006 (c_value_print_inner): Use it.
7007
ce80b8bd
TT
70082020-03-13 Tom Tromey <tom@tromey.com>
7009
7010 * c-valprint.c (c_value_print_memberptr): New function.
7011 (c_value_print_inner): Use it.
7012
2faac269
TT
70132020-03-13 Tom Tromey <tom@tromey.com>
7014
7015 * c-valprint.c (c_value_print_int): New function.
7016 (c_value_print_inner): Use it.
7017
da3e2c29
TT
70182020-03-13 Tom Tromey <tom@tromey.com>
7019
7020 * c-valprint.c (c_value_print_ptr): New function.
7021 (c_value_print_inner): Use it.
7022
50836231
TT
70232020-03-13 Tom Tromey <tom@tromey.com>
7024
7025 * c-valprint.c (c_value_print_inner): Rewrite.
7026
4f412b6e
TT
70272020-03-13 Tom Tromey <tom@tromey.com>
7028
7029 * valprint.c (generic_value_print_complex): New function.
7030 (generic_value_print): Use it.
7031
f5354008
TT
70322020-03-13 Tom Tromey <tom@tromey.com>
7033
7034 * valprint.c (generic_val_print_float): Don't call
7035 val_print_scalar_formatted.
7036 (generic_val_print, generic_value_print): Update.
7037
3eec3b05
TT
70382020-03-13 Tom Tromey <tom@tromey.com>
7039
7040 * valprint.c (generic_value_print_char): New function
7041 (generic_value_print): Use it.
7042
fdddfccb
TT
70432020-03-13 Tom Tromey <tom@tromey.com>
7044
7045 * valprint.c (generic_value_print_int): New function.
7046 (generic_value_print): Use it.
7047
6dde7521
TT
70482020-03-13 Tom Tromey <tom@tromey.com>
7049
7050 * valprint.c (generic_value_print_bool): New function.
7051 (generic_value_print): Use it.
7052
4112d2e6
TT
70532020-03-13 Tom Tromey <tom@tromey.com>
7054
7055 * valprint.c (generic_val_print_func): Simplify.
7056 (generic_val_print, generic_value_print): Update.
7057
65786af6
TT
70582020-03-13 Tom Tromey <tom@tromey.com>
7059
7060 * valprint.c (generic_val_print_flags): Remove.
7061 (generic_val_print, generic_value_print): Update.
7062 (val_print_type_code_flags): Add original_value parameter.
7063
40f3ce18
TT
70642020-03-13 Tom Tromey <tom@tromey.com>
7065
7066 * valprint.c (generic_val_print): Update.
7067 (generic_value_print): Update.
7068 * valprint.c (generic_val_print_enum): Don't call
7069 val_print_scalar_formatted.
7070
2a5b130b
TT
70712020-03-13 Tom Tromey <tom@tromey.com>
7072
7073 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7074 * valprint.c (generic_value_print_ptr): New function.
7075
abc66ce9
TT
70762020-03-13 Tom Tromey <tom@tromey.com>
7077
7078 * valprint.c (generic_value_print): Rewrite.
7079
07a32858
TT
70802020-03-13 Tom Tromey <tom@tromey.com>
7081
7082 * p-valprint.c (pascal_object_print_value_fields)
7083 (pascal_object_print_value): New functions.
7084
64d64d3a
TT
70852020-03-13 Tom Tromey <tom@tromey.com>
7086
7087 * p-valprint.c (pascal_value_print_inner): Rewrite.
7088
6a95a1f5
TT
70892020-03-13 Tom Tromey <tom@tromey.com>
7090
7091 * f-valprint.c (f_value_print_innner): Rewrite.
7092
59fcdac6
TT
70932020-03-13 Tom Tromey <tom@tromey.com>
7094
7095 * m2-valprint.c (m2_print_unbounded_array): New overload.
7096 (m2_print_unbounded_array): Update.
7097 (m2_print_array_contents): Take a struct value.
7098 (m2_value_print_inner): Rewrite.
7099
d133c3e1
TT
71002020-03-13 Tom Tromey <tom@tromey.com>
7101
7102 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7103 (d_value_print_inner): New function.
7104 * d-lang.h (d_value_print_inner): Declare.
7105 * d-lang.c (d_language_defn): Use d_value_print_inner.
7106
23b0f06b
TT
71072020-03-13 Tom Tromey <tom@tromey.com>
7108
7109 * go-valprint.c (go_value_print_inner): New function.
7110 * go-lang.h (go_value_print_inner): Declare.
7111 * go-lang.c (go_language_defn): Use go_value_print_inner.
7112
5f56f7cb
TT
71132020-03-13 Tom Tromey <tom@tromey.com>
7114
7115 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7116 API.
7117 (rust_val_print): Rewrite.
7118 (rust_value_print_inner): New function, from rust_val_print.
7119 (rust_language_defn): Use rust_value_print_inner.
7120
26792ee0
TT
71212020-03-13 Tom Tromey <tom@tromey.com>
7122
7123 * ada-valprint.c (ada_value_print_inner): New function.
7124 * ada-lang.h (ada_value_print_inner): Declare.
7125 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7126
24051bbe
TT
71272020-03-13 Tom Tromey <tom@tromey.com>
7128
7129 * f-valprint.c (f_value_print_innner): New function.
7130 * f-lang.h (f_value_print_innner): Declare.
7131 * f-lang.c (f_language_defn): Use f_value_print_innner.
7132
c0941be6
TT
71332020-03-13 Tom Tromey <tom@tromey.com>
7134
7135 * p-valprint.c (pascal_value_print_inner): New function.
7136 * p-lang.h (pascal_value_print_inner): Declare.
7137 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7138
62c4663d
TT
71392020-03-13 Tom Tromey <tom@tromey.com>
7140
7141 * m2-valprint.c (m2_value_print_inner): New function.
7142 * m2-lang.h (m2_value_print_inner): Declare.
7143 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7144
62182190
TT
71452020-03-13 Tom Tromey <tom@tromey.com>
7146
7147 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7148 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7149 * c-valprint.c (c_value_print_inner): New function.
7150 * c-lang.h (c_value_print_inner): Declare.
7151 * c-lang.c (c_language_defn, cplus_language_defn)
7152 (asm_language_defn, minimal_language_defn): Use
7153 c_value_print_inner.
7154
1e592a8a
TT
71552020-03-13 Tom Tromey <tom@tromey.com>
7156
7157 * p-valprint.c (pascal_object_print_value_fields): Now static.
7158 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7159
7fe471e9
TT
71602020-03-13 Tom Tromey <tom@tromey.com>
7161
7162 * c-valprint.c (c_val_print_array): Simplify.
7163
d121c6ce
TT
71642020-03-13 Tom Tromey <tom@tromey.com>
7165
7166 * valprint.c (value_print_array_elements): New function.
7167 * valprint.h (value_print_array_elements): Declare.
7168
4dba70ee
TT
71692020-03-13 Tom Tromey <tom@tromey.com>
7170
7171 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7172 * mips-tdep.c (mips_print_register): Use
7173 value_print_scalar_formatted.
7174
4f9ae810
TT
71752020-03-13 Tom Tromey <tom@tromey.com>
7176
7177 * valprint.h (value_print_scalar_formatted): Declare.
7178 * valprint.c (value_print_scalar_formatted): New function.
7179
156bfec9
TT
71802020-03-13 Tom Tromey <tom@tromey.com>
7181
7182 * valprint.h (generic_value_print): Declare.
7183 * valprint.c (generic_value_print): New function.
7184
2b4e573d
TT
71852020-03-13 Tom Tromey <tom@tromey.com>
7186
7187 * valprint.c (do_val_print): Call la_value_print_inner, if
7188 available.
7189 * rust-lang.c (rust_language_defn): Update.
7190 * p-lang.c (pascal_language_defn): Update.
7191 * opencl-lang.c (opencl_language_defn): Update.
7192 * objc-lang.c (objc_language_defn): Update.
7193 * m2-lang.c (m2_language_defn): Update.
7194 * language.h (struct language_defn) <la_value_print_inner>: New
7195 member.
7196 * language.c (unknown_language_defn, auto_language_defn): Update.
7197 * go-lang.c (go_language_defn): Update.
7198 * f-lang.c (f_language_defn): Update.
7199 * d-lang.c (d_language_defn): Update.
7200 * c-lang.c (c_language_defn, cplus_language_defn)
7201 (asm_language_defn, minimal_language_defn): Update.
7202 * ada-lang.c (ada_language_defn): Update.
7203
a1f6a07c
TT
72042020-03-13 Tom Tromey <tom@tromey.com>
7205
7206 * c-valprint.c (c_value_print): Use common_val_print.
7207
410cf315
TT
72082020-03-13 Tom Tromey <tom@tromey.com>
7209
7210 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7211
72a45c93
TT
72122020-03-13 Tom Tromey <tom@tromey.com>
7213
7214 * f-valprint.c (f77_print_array_1, f_val_print): Use
7215 common_val_print.
7216
040f66bd
TT
72172020-03-13 Tom Tromey <tom@tromey.com>
7218
7219 * riscv-tdep.c (riscv_print_one_register_info): Use
7220 common_val_print.
7221
a6e05a6c
TT
72222020-03-13 Tom Tromey <tom@tromey.com>
7223
7224 * mi/mi-main.c (output_register): Use common_val_print.
7225
3444c526
TT
72262020-03-13 Tom Tromey <tom@tromey.com>
7227
7228 * infcmd.c (default_print_one_register_info): Use
7229 common_val_print.
7230
c2a44efe
TT
72312020-03-13 Tom Tromey <tom@tromey.com>
7232
7233 * valprint.h (common_val_print_checked): Declare.
7234 * valprint.c (common_val_print_checked): New function.
7235 * stack.c (print_frame_arg): Use common_val_print_checked.
7236
b0c26e99
TT
72372020-03-13 Tom Tromey <tom@tromey.com>
7238
7239 * valprint.c (do_val_print): New function, from val_print.
7240 (val_print): Use do_val_print.
7241 (common_val_print): Use do_val_print.
7242
ce3acbe9
TT
72432020-03-13 Tom Tromey <tom@tromey.com>
7244
7245 * valprint.c (value_print): Use scoped_value_mark.
7246
96c7f873
TV
72472020-03-13 Tom de Vries <tdevries@suse.de>
7248
7249 PR symtab/25646
7250 * psymtab.c (partial_symtab::partial_symtab): Don't set
7251 globals_offset and statics_offset. Push element onto
7252 current_global_psymbols and current_static_psymbols stacks.
7253 (concat): New function.
7254 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7255 element from current_global_psymbols and current_static_psymbols
7256 stacks. Concat popped elements to global_psymbols and
7257 static_symbols.
7258 (add_psymbol_to_list): Use current_global_psymbols and
7259 current_static_psymbols stacks.
7260 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7261 current_static_psymbols fields.
7262
6ba0a321
CB
72632020-03-12 Christian Biesinger <cbiesinger@google.com>
7264
7265 * corelow.c (sniff_core_bfd): Remove.
7266 (class core_target) <m_core_vec>: Remove.
7267 (core_target::core_target): Update.
7268 (core_file_fns): Remove.
7269 (deprecated_add_core_fns): Remove.
7270 (default_core_sniffer): Remove.
7271 (sniff_core_bfd): Remove.
7272 (default_check_format): Remove.
7273 (gdb_check_format): Remove.
7274 (core_target_open): Update.
7275 (core_target::get_core_register_section): Update.
7276 (get_core_registers_cb): Update.
7277 (core_target::fetch_registers): Update.
7278 * gdbcore.h (struct core_fns): Remove.
7279 (deprecated_add_core_fns): Remove.
7280 (default_core_sniffer): Remove.
7281 (default_check_format): Remove.
7282
227031b2
TT
72832020-03-12 Tom Tromey <tom@tromey.com>
7284
7285 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7286 CORE_ADDR.
7287 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7288
53807e9f
TT
72892020-03-12 Tom Tromey <tom@tromey.com>
7290
7291 * remote.c (remote_target::download_tracepoint)
7292 (remote_target::enable_tracepoint)
7293 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7294 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7295 sprintf_vma.
7296
64f25102
TT
72972020-03-12 Tom Tromey <tom@tromey.com>
7298
7299 * symfile-mem.c: Update CORE_ADDR size assert.
7300
272cd5a3
SM
73012020-03-12 Simon Marchi <simon.marchi@efficios.com>
7302
7303 * selftest.m4: Move to gdbsupport/.
7304 * acinclude.m4: Update path to selftest.m4.
7305
74cd3f9d
SM
73062020-03-12 Simon Marchi <simon.marchi@efficios.com>
7307
7308 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7309 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7310 gdbarch-selfselftests.c and selftest-arch.c.
7311 (SUBDIR_UNITTESTS_OBS): Rename to...
7312 (SELFTESTS_OBS): ... this.
7313 (COMMON_SFILES): Remove disasm-selftests.c and
7314 gdbarch-selftests.c.
7315 * configure.ac: Don't add selftest-arch.{c,o} to
7316 CONFIG_{SRCS,OBS}.
7317 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7318 preprocessor conditions.
7319
db6878ac
SM
73202020-03-12 Simon Marchi <simon.marchi@efficios.com>
7321
7322 * configure.ac: Don't source bfd/development.sh.
7323 * selftest.m4: Modify comment.
7324 * configure: Re-generate.
7325
4d696a5c
SM
73262020-03-12 Simon Marchi <simon.marchi@efficios.com>
7327
7328 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7329 not "true" or "false".
7330 * configure: Re-generate.
7331
8dd8e1c7
CB
73322020-03-12 Christian Biesinger <cbiesinger@google.com>
7333
7334 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7335 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7336 renamed to arm_nbsd_supply_gregset.
7337 (fetch_register): Update to call arm_nbsd_supply_gregset.
7338 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7339 (arm_netbsd_nat_target::fetch_registers): Update.
7340 (fetch_elfcore_registers): Removed.
7341 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7342 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7343 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7344 not require NetBSD system headers.
7345 (arm_nbsd_regset): New struct.
7346 (arm_nbsd_iterate_over_regset_sections): New function.
7347 (arm_netbsd_init_abi_common): Updated to call
7348 set_gdbarch_iterate_over_regset_sections.
7349 * arm-nbsd-tdep.h: New file.
7350
dd69bf7a
KB
73512020-03-11 Kevin Buettner <kevinb@redhat.com>
7352
7353 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7354 recursion.
7355
a0761e34
SM
73562020-03-11 Simon Marchi <simon.marchi@efficios.com>
7357
7358 * configure: Re-generate.
7359
e7a82140
TT
73602020-03-11 Tom Tromey <tromey@adacore.com>
7361
7362 * ada-typeprint.c (print_choices): Fix comment.
7363
dcc050c8
AB
73642020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7365
7366 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7367 previous item in the list, when the list has no items.
7368
1c33af77
TV
73692020-03-11 Tom de Vries <tdevries@suse.de>
7370
7371 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7372 PROP_LOCLIST handling code.
7373
8c95582d
AB
73742020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7375
7376 * buildsym-legacy.c (record_line): Pass extra parameter to
7377 record_line.
7378 * buildsym.c (buildsym_compunit::record_line): Take an extra
7379 parameter, reduce duplication in the line table, and record the
7380 is_stmt flag in the line table.
7381 * buildsym.h (buildsym_compunit::record_line): Add extra
7382 parameter.
7383 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7384 non-statement lines.
7385 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7386 this to the symtab builder.
7387 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7388 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7389 through to dwarf_record_line_1.
7390 * infrun.c (process_event_stop_test): When stepping, don't stop at
7391 a non-statement instruction, and only refresh the step info when
7392 we land in the middle of a line's range. Also add an extra
7393 comment.
7394 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7395 field.
7396 * record-btrace.c (btrace_find_line_range): Only record lines
7397 marked as is-statement.
7398 * stack.c (frame_show_address): Show the frame address if we are
7399 in a non-statement sal.
7400 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7401 (maintenance_print_one_line_table): Print a header for the is_stmt
7402 column, and include is_stmt information in the output.
7403 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7404 preference to non-statements.
7405 (find_pcs_for_symtab_line): Prefer is-statement entries.
7406 (find_line_common): Likewise.
7407 * symtab.h (struct linetable_entry): Add is_stmt field.
7408 (struct symtab_and_line): Likewise.
7409 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7410 arranging the line table.
7411
e4003a34
TV
74122020-03-07 Tom de Vries <tdevries@suse.de>
7413
7414 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7415 DIE.
7416
e8932576
TT
74172020-03-07 Tom Tromey <tom@tromey.com>
7418
7419 * valops.c (value_literal_complex): Remove obsolete comment.
7420 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7421 comment.
7422
29734269
SM
74232020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7424
7425 * infrun.h: Forward-declare thread_info.
7426 (set_step_info): Add thread_info parameter, add doc.
7427 * infrun.c (set_step_info): Add thread_info parameter, move doc
7428 to header.
7429 * infrun.c (process_event_stop_test): Pass thread to
7430 set_step_info call.
7431 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7432 set_step_info.
7433 (prepare_one_step): Add thread_info parameter, pass it to
7434 set_step_frame and prepare_one_step (recursive) call.
7435 (step_1): Pass thread to prepare_one_step call.
7436 (step_command_fsm::should_stop): Pass thread to
7437 prepare_one_step.
7438 (until_next_fsm): Pass thread to set_step_frame call.
7439 (finish_command): Pass thread to set_step_info call.
7440
b7d64b29
HD
74412020-03-06 Hannes Domani <ssbssa@yahoo.de>
7442
7443 * windows-tdep.c (windows_solib_create_inferior_hook):
7444 Check if inferior is running.
7445
09f2921c
TV
74462020-03-06 Tom de Vries <tdevries@suse.de>
7447
7448 * NEWS: Fix "the the".
7449 * ctfread.c: Same.
7450
fd760e79
TV
74512020-03-06 Tom de Vries <tdevries@suse.de>
7452
7453 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7454
20ea4a60
AB
74552020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7456
7457 * .dir-locals.el: Add a comment referencing the other copies of
7458 this file.
7459
0afbabf0
JB
74602020-03-05 John Baldwin <jhb@FreeBSD.org>
7461
7462 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7463 psargs.
7464
842806cb
TBA
74652020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7466
7467 * .gitattributes: New file.
7468
be1e3d3e
TT
74692020-03-04 Tom Tromey <tom@tromey.com>
7470
7471 * symmisc.c (print_symbol_bcache_statistics)
7472 (print_objfile_statistics): Update.
7473 * symfile.c (allocate_symtab): Use intern.
7474 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7475 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7476 macro_cache>: Remove.
7477 <string_cache>: New member.
7478 (struct objfile) <intern>: New methods.
7479 * elfread.c (elf_symtab_read): Use intern.
7480 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7481 (dwarf2_compute_name, dwarf2_physname)
7482 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7483 names.
7484 (guess_partial_die_structure_name): Update.
7485 (partial_die_info::fixup): Intern name.
7486 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7487 name.
7488 (dwarf2_name): Intern name. Update.
7489 * buildsym.c (buildsym_compunit::get_macro_table): Use
7490 string_cache.
7491
4e7625fd
TT
74922020-03-04 Tom Tromey <tom@tromey.com>
7493
7494 * jit.c (bfd_open_from_target_memory): Make "target" const.
7495 * corefile.c (gnutarget): Now const.
7496 * gdbcore.h (gnutarget): Now const.
7497
46f9f931
HD
74982020-03-04 Hannes Domani <ssbssa@yahoo.de>
7499
7500 * NEWS: Mention support for WOW64 processes.
7501 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7502 (amd64_windows_segment_register_p): Remove static.
7503 (_initialize_amd64_windows_nat): Update.
7504 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7505 * i386-windows-nat.c (context_offset): Update.
7506 (i386_mappings): Rename and remove static.
7507 (i386_windows_segment_register_p): Remove static.
7508 (_initialize_i386_windows_nat): Update.
7509 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7510 (STATUS_WX86_SINGLE_STEP): New macro.
7511 (EnumProcessModulesEx): New macro.
7512 (Wow64SuspendThread): New macro.
7513 (Wow64GetThreadContext): New macro.
7514 (Wow64SetThreadContext): New macro.
7515 (Wow64GetThreadSelectorEntry): New macro.
7516 (windows_set_context_register_offsets): Add static.
7517 (windows_set_segment_register_p): Likewise.
7518 (windows_add_thread): Adapt for WOW64 processes.
7519 (windows_fetch_one_register): Likewise.
7520 (windows_nat_target::fetch_registers): Likewise.
7521 (windows_store_one_register): Likewise.
7522 (display_selector): Likewise.
7523 (display_selectors): Likewise.
7524 (handle_exception): Likewise.
7525 (windows_continue): Likewise.
7526 (windows_nat_target::resume): Likewise.
7527 (windows_add_all_dlls): Likewise.
7528 (do_initial_windows_stuff): Likewise.
7529 (windows_nat_target::attach): Likewise.
7530 (windows_get_exec_module_filename): Likewise.
7531 (windows_nat_target::create_inferior): Likewise.
7532 (windows_xfer_siginfo): Likewise.
7533 (_initialize_loadable): Initialize Wow64SuspendThread,
7534 Wow64GetThreadContext, Wow64SetThreadContext,
7535 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7536 * windows-nat.h (windows_set_context_register_offsets):
7537 Remove declaration.
7538 (windows_set_segment_register_p): Likewise.
7539 (i386_windows_segment_register_p): Add declaration.
7540 (amd64_windows_segment_register_p): Likewise.
7541
440cf44e
LM
75422020-03-04 Luis Machado <luis.machado@linaro.org>
7543
7544 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7545 in "info registers" for AArch64/ARM.
7546
7547 The change caused "info registers" to not print GPR's.
7548
7549 gdb/ChangeLog:
7550
7551 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7552
7553 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7554 when reg->group is empty and reggroup is not.
7555
1009d92f
TT
75562020-03-03 Tom Tromey <tromey@adacore.com>
7557
7558 * dwarf2/frame.c (struct dwarf2_frame_cache)
7559 <checked_tailcall_bottom, entry_cfa_sp_offset,
7560 entry_cfa_sp_offset_p>: Remove members.
7561 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7562 (dwarf2_frame_prev_register): Don't call
7563 dwarf2_tailcall_sniffer_first.
7564 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7565 * frame-unwind.c (add_unwinder): New fuction.
7566 (frame_unwind_init): Use it. Add tailcall unwinder.
7567
5e5d66b6
AB
75682020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7569 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7570
7571 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7572 value should be printed as true.
7573
584cf46d
HD
75742020-03-03 Hannes Domani <ssbssa@yahoo.de>
7575
7576 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7577 (windows_init_abi): Set and use windows_so_ops.
7578
7b973adc
SDJ
75792020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7580
7581 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7582 when verifying if dealing with a convenience variable.
7583
bb7b70ab
LM
75842020-03-03 Luis Machado <luis.machado@linaro.org>
7585
7586 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7587
9822cb57
SM
75882020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7589
7590 * infrun.c (gdbarch_supports_displaced_stepping): New.
7591 (use_displaced_stepping): Break up conditions in smaller pieces.
7592 Use gdbarch_supports_displaced_stepping.
7593 (displaced_step_prepare_throw): Use
7594 gdbarch_supports_displaced_stepping.
7595
63e163f2
AB
75962020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7597
7598 * NEWS: Mention new behaviour of the history filename.
7599 * top.c (write_history_p): Add comment.
7600 (show_write_history_p): Add header comment, give a different
7601 message when history writing is on, but the history filename is
7602 empty.
7603 (history_filename): Add comment.
7604 (history_filename_empty): New function.
7605 (show_history_filename): Add header comment, give a different
7606 message when the filename is empty.
7607 (init_history): Compare history_filename against nullptr, and only
7608 read history if the filename is not empty.
7609 (set_history_filename): Add header comment, and only make
7610 non-empty filenames absolute.
7611 (init_main): Make the filename argument to 'set history filename'
7612 optional.
7613
81b86b97
CB
76142020-03-02 Christian Biesinger <cbiesinger@google.com>
7615
7616 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7617 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7618 (fetch_fp_register): Update.
7619 (fetch_fp_regs): Update.
7620 (store_fp_register): Update.
7621 (store_fp_regs): Update.
7622 (arm_netbsd_nat_target::read_description): New function.
7623 (fetch_elfcore_registers): Update.
7624
24ed6739
AB
76252020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7626
7627 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7628 general_thread if the stop reply is missing a thread-id.
7629 (remote_target::process_stop_reply): Use the first non-exited
7630 thread if the target didn't pass a thread-id.
7631 * infrun.c (do_target_wait): Move call to
7632 switch_to_inferior_no_thread to ....
7633 (do_target_wait_1): ... here.
7634
a84bb2a0
JT
76352020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7636
7637 * debuginfod-support.c: Include defs.h first.
7638
658dadf0
TV
76392020-02-28 Tom de Vries <tdevries@suse.de>
7640
7641 * symfile.c (set_initial_language): Use default language for lookup.
7642
4ebe4877
SM
76432020-02-28 Simon Marchi <simon.marchi@efficios.com>
7644
7645 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7646 reader variable, pass `this` to read_cutu_die_from_dwo.
7647
e5da1139
AM
76482020-02-27 Aaron Merey <amerey@redhat.com>
7649
7650 * source.c (open_source_file): Check for nullptr when computing
7651 srcpath.
7652
317f7127
TT
76532020-02-27 Tom Tromey <tromey@adacore.com>
7654
7655 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7656 member.
7657 (dwarf2_add_field): Don't update nfields.
7658 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7659
3104d9ee
AB
76602020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7663 abs.
7664
b83470bf
TT
76652020-02-26 Tom Tromey <tom@tromey.com>
7666
7667 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7668 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7669 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7670 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7671 per_cu_data.
7672
edfe0a0c
TT
76732020-02-26 Tom Tromey <tom@tromey.com>
7674
7675 * dwarf2/index-write.c (psym_index_map): Change type.
7676 (add_address_entry_worker, write_one_signatured_type)
7677 (recursively_count_psymbols, recursively_write_psymbols)
7678 (class debug_names, psyms_seen_size, write_gdbindex)
7679 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7680
0d79cdc4
AM
76812020-02-26 Aaron Merey <amerey@redhat.com>
7682
7683 * Makefile.in: Handle optional debuginfod support.
7684 * NEWS: Update.
7685 * README: Add --with-debuginfod summary.
7686 * config.in: Regenerate.
7687 * configure: Regenerate.
7688 * configure.ac: Handle optional debuginfod support.
7689 * debuginfod-support.c: debuginfod helper functions.
7690 * debuginfod-support.h: Ditto.
7691 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7692 summary.
7693 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7694 when a dwz file cannot be found.
7695 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7696 debuginfo file cannot be found.
7697 * source.c (open_source_file): Query debuginfod servers when a
7698 source file cannot be found.
7699 * top.c (print_gdb_configuration): Include
7700 --{with,without}-debuginfod in the output.
7701
b65ce565
JG
77022020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7703
7704 * thread.c (thr_try_catch_cmd): Print thread name.
7705
d4c9a4f8
SM
77062020-02-26 Simon Marchi <simon.marchi@efficios.com>
7707
7708 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7709 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7710 dwarf2_fetch_die_type_sect_off): Move to...
7711 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7712 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7713 dwarf2_fetch_die_type_sect_off): ... here.
7714 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7715 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7716 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7717
0dce4280
TV
77182020-02-26 Tom de Vries <tdevries@suse.de>
7719
7720 PR gdb/25603
7721 * symfile.c (set_initial_language): Exit-early if
7722 language_mode == language_mode_manual.
7723
450a1bfc
SM
77242020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7725
7726 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7727 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7728 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7729
9e80cfa1
AB
77302020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7731
7732 * gdbtypes.c (create_array_type_with_stride): Handle negative
7733 array strides.
7734 * valarith.c (value_subscripted_rvalue): Likewise.
7735
09624f1f
LM
77362020-02-25 Luis Machado <luis.machado@linaro.org>
7737
7738 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7739
8cb5117c
SM
77402020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7741
7742 * loc.h (dwarf2_get_die_type): Move to...
7743 * read.h (dwarf2_get_die_type): ... here.
7744 * read.c (dwarf2_get_die_type): Move doc to header.
7745
c325c44e
JB
77462020-02-25 Joel Brobecker <brobecker@adacore.com>
7747
7748 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7749 'gnulib/Makefile.in' to the list.
7750
4ac93832
TT
77512020-02-24 Tom Tromey <tom@tromey.com>
7752
7753 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7754 Remove.
7755 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7756 XOBNEWVEC.
7757
197400e8
TT
77582020-02-24 Tom Tromey <tom@tromey.com>
7759
7760 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7761 New method.
7762 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7763 (dw2_do_instantiate_symtab, dw2_get_file_names)
7764 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7765
76935768
TT
77662020-02-24 Tom Tromey <tom@tromey.com>
7767
7768 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7769 make_scoped_restore.
7770 (dwarf2_psymtab::read_symtab): Don't clear
7771 reading_partial_symbols.
7772
a88ef40d
TV
77732020-02-24 Tom de Vries <tdevries@suse.de>
7774
7775 PR gdb/25592
7776 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7777
c9af6521
TV
77782020-02-24 Tom de Vries <tdevries@suse.de>
7779
7780 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7781 commands layout next/prev/regs.
7782
5707a07a
TT
77832020-02-22 Tom Tromey <tom@tromey.com>
7784
7785 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7786 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7787
3b0fb49e
TT
77882020-02-22 Tom Tromey <tom@tromey.com>
7789
7790 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7791
283be8bf
TT
77922020-02-22 Tom Tromey <tom@tromey.com>
7793
7794 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7795 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7796 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7797 * tui/tui.c (_initialize_tui): Add usage text.
7798
ca793b96
TT
77992020-02-22 Tom Tromey <tom@tromey.com>
7800
7801 * tui/tui-win.c (tui_set_focus_command)
7802 (tui_set_win_height_command): Use error_no_arg.
7803 (_initialize_tui_win): Update help text.
7804 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7805
432b5c40
TT
78062020-02-22 Tom Tromey <tom@tromey.com>
7807
7808 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7809 * tui/tui-disasm.h (struct tui_disasm_window)
7810 <display_start_addr>: Declare.
7811 * tui/tui-source.h (struct tui_source_window)
7812 <display_start_addr>: Declare.
7813 * tui/tui-winsource.h (struct tui_source_window_base)
7814 <show_source_line, display_start_addr>: New methods.
7815 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7816 Rename and move to protected section.
7817 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7818 (tui_source_window_base::do_erase_source_content): Update.
7819 (tui_source_window_base::show_source_line): Now a method.
7820 (tui_source_window_base::show_source_content)
7821 (tui_source_window_base::tui_source_window_base)
7822 (tui_source_window_base::rerender)
7823 (tui_source_window_base::refill)
7824 (tui_source_window_base::do_scroll_horizontal)
7825 (tui_source_window_base::set_is_exec_point_at)
7826 (tui_source_window_base::update_breakpoint_info)
7827 (tui_source_window_base::update_exec_info): Update.
7828 * tui/tui-source.c (tui_source_window::set_contents)
7829 (tui_source_window::showing_source_p)
7830 (tui_source_window::do_scroll_vertical)
7831 (tui_source_window::location_matches_p)
7832 (tui_source_window::line_is_displayed): Update.
7833 (tui_source_window::display_start_addr): New method.
7834 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7835 (tui_disasm_window::do_scroll_vertical)
7836 (tui_disasm_window::location_matches_p): Update.
7837 (tui_disasm_window::display_start_addr): New method.
7838
01b1af32
TT
78392020-02-22 Tom Tromey <tom@tromey.com>
7840
7841 * NEWS: Add entry for gdb.register_window_type.
7842 * tui/tui-layout.h (window_factory): New typedef.
7843 (tui_register_window): Declare.
7844 * tui/tui-layout.c (saved_tui_windows): New global.
7845 (tui_apply_current_layout): Use it.
7846 (tui_register_window): New function.
7847 * python/python.c (do_start_initialization): Call
7848 gdbpy_initialize_tui.
7849 (python_GdbMethods): Add "register_window_type" function.
7850 * python/python-internal.h (gdbpy_register_tui_window)
7851 (gdbpy_initialize_tui): Declare.
7852 * python/py-tui.c: New file.
7853 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7854
fc96d20b
TT
78552020-02-22 Tom Tromey <tom@tromey.com>
7856
7857 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7858
935c78c0
TT
78592020-02-22 Tom Tromey <tom@tromey.com>
7860
7861 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7862 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7863 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7864 (tui_set_win_focus_to): Move from tui-win.c.
7865
0240c8f1
TT
78662020-02-22 Tom Tromey <tom@tromey.com>
7867
7868 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7869 functions.
7870 (known_window_types): New global.
7871 (tui_get_window_by_name): Reimplement.
7872 (initialize_known_windows): New function.
7873 (validate_window_name): Rewrite.
7874 (_initialize_tui_layout): Call initialize_known_windows.
7875
fdb01f0c
TT
78762020-02-22 Tom Tromey <tom@tromey.com>
7877
7878 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7879 Remove constants.
7880 * tui/tui-winsource.h (struct tui_source_window_base)
7881 <tui_source_window_base>: Remove parameter.
7882 * tui/tui-winsource.c
7883 (tui_source_window_base::tui_source_window_base): Remove
7884 parameter.
7885 (tui_source_window_base::refill): Update.
7886 * tui/tui-stack.h (struct tui_locator_window)
7887 <tui_locator_window>: Update.
7888 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7889 Default the constructor.
7890 * tui/tui-regs.h (struct tui_data_item_window)
7891 <tui_data_item_window>: Default the constructor.
7892 (struct tui_data_window) <tui_data_window>: Likewise.
7893 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7894 Default the constructor.
7895 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7896 Default the constructor.
7897 <type>: Remove.
7898 (struct tui_win_info) <tui_win_info>: Default the constructor.
7899 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7900 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7901 Default the constructor.
7902
865a5aec
TT
79032020-02-22 Tom Tromey <tom@tromey.com>
7904
7905 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7906 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7907 * tui/tui-win.c (tui_resize_all): Don't call
7908 tui_delete_invisible_windows.
7909 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7910 done.
7911 (tui_set_layout): Update.
7912 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7913 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7914 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7915
e098d18c
TT
79162020-02-22 Tom Tromey <tom@tromey.com>
7917
7918 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7919 correctly.
7920
eb9c8874
TT
79212020-02-22 Tom Tromey <tom@tromey.com>
7922
7923 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7924
7eed1a8e
TT
79252020-02-22 Tom Tromey <tom@tromey.com>
7926
7927 * tui/tui-winsource.h (struct tui_source_window_iterator)
7928 <inner_iterator>: New etytypedef.
7929 <tui_source_window_iterator>: Take "end" parameter.
7930 <tui_source_window_iterator>: Take iterator.
7931 <operator*, advance>: Update.
7932 <m_iter>: Change type.
7933 <m_end>: New field.
7934 (struct tui_source_windows) <begin, end>: Update.
7935 * tui/tui-layout.c (tui_windows): New global.
7936 (tui_apply_current_layout): Clear tui_windows.
7937 (tui_layout_window::apply): Update tui_windows.
7938 * tui/tui-data.h (tui_windows): Declare.
7939 (all_tui_windows): Now inline function.
7940 (class tui_window_iterator, struct all_tui_windows): Remove.
7941
7c043ba6
TT
79422020-02-22 Tom Tromey <tom@tromey.com>
7943
7944 PR tui/17850:
7945 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7946 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7947 "height" argument.
7948 (class tui_layout_window) <get_sizes>: Likewise.
7949 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7950 argument.
7951 <get_sizes>: Add "height" argument.
7952 <m_vertical>: New field.
7953 * tui/tui-layout.c (tui_layout_split::clone): Update.
7954 (tui_layout_split::get_sizes): Add "height" argument.
7955 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7956 (tui_new_layout_command): Parse "-horizontal".
7957 (_initialize_tui_layout): Update help string.
7958 (tui_layout_split::specification): Add "-horizontal" when needed.
7959 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7960 argument.
7961 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7962 New methods.
7963
6bc56648
TT
79642020-02-22 Tom Tromey <tom@tromey.com>
7965
7966 * tui/tui-layout.h (enum tui_adjust_result): New.
7967 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7968 (class tui_layout_window) <adjust_size>: Return
7969 tui_adjust_result. Rewrite.
7970 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7971 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7972
c22fef7e
TT
79732020-02-22 Tom Tromey <tom@tromey.com>
7974
7975 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7976 parameter and return types.
7977 (class tui_layout_base) <specification>: Add "depth".
7978 (class tui_layout_window) <specification>: Add "depth".
7979 (class tui_layout_split) <specification>: Add "depth".
7980 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7981 and return types.
7982 (tui_new_layout_command): Parse sub-layouts.
7983 (_initialize_tui_layout): Update help string.
7984 (tui_layout_window::specification): Add "depth".
7985 (add_layout_command): Update.
7986
ee325b61
TT
79872020-02-22 Tom Tromey <tom@tromey.com>
7988
7989 * NEWS: Add "tui new-layout" item.
7990 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7991 Add new-layout command to help text.
7992 (validate_window_name): New function.
7993 (tui_new_layout_command): New function.
7994 (_initialize_tui_layout): Register "new-layout".
7995 (tui_layout_window::specification): New method.
7996 (tui_layout_window::specification): New method.
7997 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7998 method.
7999 (class tui_layout_window) <specification>: New method.
8000 (class tui_layout_split) <specification>: New method.
8001
416eb92d
TT
80022020-02-22 Tom Tromey <tom@tromey.com>
8003
8004 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8005 * tui/tui-win.c (window_name_completer): Update comment.
8006 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8007 Declare method.
8008 (class tui_layout_window) <replace_window>: Likewise.
8009 (class tui_layout_split) <replace_window>: Likewise.
8010 (tui_set_layout): Don't declare.
8011 (tui_set_initial_layout): Declare function.
8012 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8013 (asm_regs_layout): New globals.
8014 (tui_current_layout, show_layout): Remove.
8015 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8016 (find_layout, tui_apply_layout): New function.
8017 (layout_completer): Remove.
8018 (tui_next_layout): Reimplement.
8019 (tui_next_layout_command): New function.
8020 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8021 (tui_regs_layout): Reimplement.
8022 (tui_regs_layout_command): New function.
8023 (extract_display_start_addr): Rewrite.
8024 (next_layout, prev_layout): Remove.
8025 (tui_layout_window::replace_window): New method.
8026 (tui_layout_split::replace_window): New method.
8027 (destroy_layout): New function.
8028 (layout_list): New global.
8029 (add_layout_command): New function.
8030 (initialize_layouts): Update.
8031 (tui_layout_command): New function.
8032 (_initialize_tui_layout): Install "layout" commands.
8033 * tui/tui-data.h (enum tui_layout_type): Remove.
8034 (tui_current_layout): Don't declare.
8035
0dbc2fc7
TT
80362020-02-22 Tom Tromey <tom@tromey.com>
8037
8038 * tui/tui-regs.c (tui_reg_layout): Remove.
8039 (tui_reg_command): Use tui_regs_layout.
8040 * tui/tui-layout.h (tui_reg_command): Declare.
8041 * tui/tui-layout.c (tui_reg_command): New function.
8042
5afe342e
TT
80432020-02-22 Tom Tromey <tom@tromey.com>
8044
8045 * tui/tui.c (tui_rl_delete_other_windows): Call
8046 tui_remove_some_windows.
8047 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8048 Declare method.
8049 (class tui_layout_window) <remove_windows>: New method.
8050 (class tui_layout_split) <remove_windows>: Declare.
8051 (tui_remove_some_windows): Declare.
8052 * tui/tui-layout.c (tui_remove_some_windows): New function.
8053 (tui_layout_split::remove_windows): New method.
8054
427326a8
TT
80552020-02-22 Tom Tromey <tom@tromey.com>
8056
8057 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8058 * tui/tui-layout.h (tui_next_layout): Declare.
8059 * tui/tui-layout.c (tui_next_layout): New function.
8060
3fe12b6d
TT
80612020-02-22 Tom Tromey <tom@tromey.com>
8062
8063 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8064 correct coordinates.
8065
59b8b5d2
TT
80662020-02-22 Tom Tromey <tom@tromey.com>
8067
8068 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8069 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8070 DATA_WIN case.
8071
2a3d458b
TT
80722020-02-22 Tom Tromey <tom@tromey.com>
8073
8074 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8075 TUI_DISASM_WIN, not tui_win_list.
8076
3f0cbb04
TT
80772020-02-22 Tom Tromey <tom@tromey.com>
8078
8079 * valprint.c (generic_val_print_enum_1)
8080 (val_print_type_code_flags): Style member names.
8081 * rust-lang.c (val_print_struct, rust_print_enum)
8082 (rust_print_struct_def, rust_internal_print_type): Style member
8083 names.
8084 * p-valprint.c (pascal_object_print_value_fields): Style member
8085 names. Only call fprintf_symbol_filtered for static members.
8086 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8087 * f-valprint.c (f_val_print): Style member names.
8088 * f-typeprint.c (f_type_print_base): Style member names.
8089 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8090 call fprintf_symbol_filtered for static members.
8091 (cp_print_class_member): Style member names.
8092 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8093 member names.
8094 * ada-valprint.c (ada_print_scalar): Style enum names.
8095 (ada_val_print_enum): Likewise.
8096 * ada-typeprint.c (print_enum_type): Style enum names.
8097
d4d947ae
TT
80982020-02-21 Tom Tromey <tom@tromey.com>
8099
8100 * psympriv.h (struct partial_symtab): Update comment.
8101
e94e944b
TT
81022020-02-21 Tom Tromey <tromey@adacore.com>
8103
8104 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8105 type is CORE_ADDR.
8106
1eb73179
TV
81072020-02-21 Tom de Vries <tdevries@suse.de>
8108
8109 PR gdb/25534
8110 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8111 if dependencies[i]->user != NULL.
8112
4f180d53
AT
81132020-02-21 Ali Tamur <tamur@google.com>
8114
8115 * dwarf2/read.c (dwarf2_name): Add null check.
8116
22b6cd70
TT
81172020-02-20 Tom Tromey <tom@tromey.com>
8118
8119 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8120 ">=", in binary search.
8121 (dwarf2_find_containing_comp_unit): New overload.
8122 (run_test): New self-test.
8123 (_initialize_dwarf2_read): Register new test.
8124
bd0cf5a6
NC
81252020-02-20 Nelson Chu <nelson.chu@sifive.com>
8126
8127 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8128 * riscv-tdep.h: Likewise.
8129 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8130 rv32-only CSR.
8131 * features/riscv/64bit-csr.xml: Regenerated.
8132
3f702acd
SDJ
81332020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8134 Tom Tromey <tom@tromey.com>
8135
8136 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8137 of 'fputc_unfiltered'.
8138 (putchar_unfiltered): Call 'fputc_unfiltered'.
8139 (fputc_unfiltered): Call 'fputs_unfiltered'.
8140
d13c7322
AB
81412020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8142
8143 * config.in: Regenerate.
8144 * configure: Regenerate.
8145 * configure.ac: Add --with-python-libdir option.
8146 * main.c: Use WITH_PYTHON_LIBDIR.
8147
869d8950
TT
81482020-02-19 Tom Tromey <tom@tromey.com>
8149
8150 * symtab.c (general_symbol_info::compute_and_set_names): Use
8151 obstack_strndup. Simplify call to symbol_set_demangled_name.
8152
298e9637
SM
81532020-02-19 Simon Marchi <simon.marchi@efficios.com>
8154
8155 * dwarf2/read.c (allocate_signatured_type_table,
8156 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8157 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8158 Remove objfile parameter, update all callers.
8159
08410482
DE
81602020-02-19 Doug Evans <dje@google.com>
8161
8162 PR rust/25535
8163 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8164 rust_enum_variant calculation.
8165
dfdeeca1
TT
81662020-02-19 Tom Tromey <tromey@adacore.com>
8167
8168 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8169
2ef5453b
TT
81702020-02-19 Tom Tromey <tromey@adacore.com>
8171
8172 * ada-lang.c (cache_symbol): Use obstack_strdup.
8173
9f1528a1
AB
81742020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8175
8176 * configure: Regenerate.
8177
d3c22fa8
TT
81782020-02-19 Tom Tromey <tromey@adacore.com>
8179
8180 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8181 NULL check.
8182
bf84f706
MR
81832020-02-19 Maciej W. Rozycki <macro@wdc.com>
8184
8185 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8186
d1c9b20f
AB
81872020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8188
8189 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8190 if GDBSERVER is not defined.
8191 (riscv_tdesc_cache): Likewise, also store const target_desc.
8192 (STATIC_IN_GDB): Define.
8193 (riscv_create_target_description): Update declaration with
8194 STATIC_IN_GDB.
8195 (riscv_lookup_target_description): New function, only define if
8196 GDBSERVER is not defined.
8197 * arch/riscv.h (riscv_create_target_description): Declare only
8198 when GDBSERVER is defined.
8199 (riscv_lookup_target_description): New declaration when GDBSERVER
8200 is not defined.
8201 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8202 (riscv_linux_read_features): ...this, and return
8203 riscv_gdbarch_features instead of target_desc.
8204 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8205 (riscv_linux_read_description): Rename to...
8206 (riscv_linux_read_features): ...this.
8207 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8208 Update to use riscv_gdbarch_features and
8209 riscv_lookup_target_description.
8210 * riscv-tdep.c (riscv_find_default_target_description): Use
8211 riscv_lookup_target_description instead of
8212 riscv_create_target_description.
8213
373d7ac0
SM
82142020-02-18 Simon Marchi <simon.marchi@efficios.com>
8215
8216 * valprint.c (generic_val_print_enum_1): When printing a flag
8217 enum with value 0 and there is no enumerator with value 0, print
8218 just "0" instead of "(unknown: 0x0)".
8219
b29a2df0
SM
82202020-02-18 Simon Marchi <simon.marchi@efficios.com>
8221
8222 * valprint.c (generic_val_print_enum_1): Print unknown part of
8223 flag enum in hex.
8224
6740f0cc
SM
82252020-02-18 Simon Marchi <simon.marchi@efficios.com>
8226
8227 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8228 flag enums to contain duplicate enumerators.
8229 * valprint.c (generic_val_print_enum_1): Update comment.
8230
edd45eb0
SM
82312020-02-18 Simon Marchi <simon.marchi@efficios.com>
8232
8233 * dwarf2/read.c: Include "count-one-bits.h".
8234 (update_enumeration_type_from_children): If an enumerator has
8235 multiple bits set, don't treat the enumeration as a "flag enum".
8236 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8237 of flag enums have 0 or 1 bit set.
8238
6d0cf446
BE
82392020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8240
8241 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8242 conversion.
8243 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8244 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8245 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8246 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8247 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8248
7001c1b7
SM
82492020-02-18 Simon Marchi <simon.marchi@efficios.com>
8250
8251 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8252
fdb61c6c
SM
82532020-02-14 Simon Marchi <simon.marchi@efficios.com>
8254
8255 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8256 displaced_step_closure_up.
8257 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8258 (struct displaced_step_closure_up):
8259 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8260 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8261 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8262 Likewise.
8263 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8264 * gdbarch.c, gdbarch.h: Re-generate.
8265 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8266 displaced_step_closure_up.
8267 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8268 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8269 * infrun.h (displaced_step_closure_up): New type alias.
8270 (struct displaced_step_inferior_state) <step_closure>: Change
8271 type to displaced_step_closure_up.
8272 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8273 displaced_step_closure_up.
8274 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8275
a4a38eb4
TT
82762020-02-14 Tom Tromey <tom@tromey.com>
8277
8278 * minidebug.c (gnu_debug_key): New global.
8279 (find_separate_debug_file_in_section): Use it.
8280
e8217e61
SM
82812020-02-14 Simon Marchi <simon.marchi@efficios.com>
8282
8283 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8284 std::unique_ptr.
8285 * gdbarch.c: Re-generate.
8286 * gdbarch.h: Re-generate.
8287 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8288 change.
8289 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8290 type to std::unique_ptr.
8291 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8292 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8293 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8294 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8295 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8296 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8297 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8298 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8299 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8300
d8d83535
SM
83012020-02-14 Simon Marchi <simon.marchi@efficios.com>
8302
8303 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8304 std::unique_ptr.
8305 (displaced_step_clear): Rename to...
8306 (displaced_step_reset): ... this. Just call displaced->reset ().
8307 (displaced_step_clear_cleanup): Rename to...
8308 (displaced_step_reset_cleanup): ... this.
8309 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8310 (displaced_step_fixup): Likewise.
8311 (resume_1): Likewise.
8312 (handle_inferior_event): Restore child's memory before calling
8313 displaced_step_fixup on the parent.
8314 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8315 to std::unique_ptr.
8316 <step_closure>: Change type to std::unique_ptr.
8317
5f661e03
SM
83182020-02-14 Simon Marchi <simon.marchi@efficios.com>
8319
8320 * arm-tdep.c: Include count-one-bits.h.
8321 (cleanup_block_store_pc): Use count_one_bits.
8322 (cleanup_block_load_pc): Use count_one_bits.
8323 (arm_copy_block_xfer): Use count_one_bits.
8324 (thumb2_copy_block_xfer): Use count_one_bits.
8325 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8326 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8327 (thumb_get_next_pcs_raw): Use count_one_bits.
8328 (arm_get_next_pcs_raw): Use count_one_bits_l.
8329 * arch/arm.c (bitcount): Remove.
8330 * arch/arm.h (bitcount): Remove.
8331
8084e579
TT
83322020-02-14 Tom Tromey <tromey@adacore.com>
8333
8334 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8335 Update.
8336 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8337 * dwarf2/loc.c (call_site_find_chain_1): Return
8338 unique_xmalloc_ptr.
8339 (call_site_find_chain): Likewise.
8340
258bf0ee
RB
83412020-02-14 Richard Biener <rguenther@suse.de>
8342
8343 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8344 on expression with division operators.
8345
f98a8458
AKS
83462020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8347
8348 * MAINTAINERS (Write After Approval): Adding myself.
8349
d1437c0e
TT
83502020-02-12 Tom Tromey <tom@tromey.com>
8351
8352 * event-loop.c (event_data, gdb_event, event_handler_func):
8353 Remove.
8354
3d4560f7
TT
83552020-02-12 Tom Tromey <tom@tromey.com>
8356
8357 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8358 (dwarf2_frame_objfile_data): Add comment.
8359 (find_comp_unit, set_comp_unit): New functions.
8360 (dwarf2_frame_find_fde): Use find_comp_unit.
8361 (dwarf2_build_frame_info): Use set_comp_unit.
8362
21982304
TT
83632020-02-12 Tom Tromey <tom@tromey.com>
8364
8365 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8366 (comp_unit): Don't initialize objfile.
8367 (execute_cfa_program): Add text_offset parameter.
8368 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8369 (dwarf2_frame_cache): Update.
8370 (dwarf2_build_frame_info): Don't set "objfile" member.
8371
4debb237
TT
83722020-02-12 Tom Tromey <tom@tromey.com>
8373
8374 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8375 (decode_frame_entry): Likewise.
8376 (dwarf2_build_frame_info): Update.
8377
0d404d44
TT
83782020-02-12 Tom Tromey <tom@tromey.com>
8379
8380 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8381 (decode_frame_entry_1): Use the comp_unit obstack.
8382
a7a3ae5c
TT
83832020-02-12 Tom Tromey <tom@tromey.com>
8384
8385 * dwarf2/frame.c (struct comp_unit): Add initializers and
8386 constructor.
8387 (dwarf2_frame_objfile_data): Store a comp_unit.
8388 (dwarf2_frame_find_fde): Update.
8389 (dwarf2_build_frame_info): Use "new".
8390
a9d65418
TT
83912020-02-12 Tom Tromey <tom@tromey.com>
8392
8393 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8394 (dwarf2_fde_table): Typedef for std::vector.
8395 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8396 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8397 (decode_frame_entry): Update.
8398 (dwarf2_build_frame_info): Use "new".
8399
7559c217
CB
84002020-02-12 Christian Biesinger <cbiesinger@google.com>
8401
8402 * arm-tdep.c (arm_gdbarch_init): Update.
8403 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8404 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8405 have_neon, is_m>: Change to bool.
8406
aeefc73c
CB
84072020-02-12 Christian Biesinger <cbiesinger@google.com>
8408
8409 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8410
d27b8e5f
TT
84112020-02-12 Tom Tromey <tom@tromey.com>
8412
8413 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8414
cd5900f3
HD
84152020-02-12 Hannes Domani <ssbssa@yahoo.de>
8416
8417 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8418 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8419
f056b22b
TT
84202020-02-11 Tom Tromey <tom@tromey.com>
8421
8422 * psymtab.h: Update comment.
8423
f92ff6b5
TT
84242020-02-11 Tom Tromey <tom@tromey.com>
8425
8426 * gdb_obstack.h (struct auto_obstack): Use
8427 DISABLE_COPY_AND_ASSIGN.
8428
3fd6912b
TT
84292020-02-11 Tom Tromey <tom@tromey.com>
8430
8431 * dwarf2/frame.h (struct objfile): Don't forward declare.
8432
69ed9b74
CB
84332020-02-11 Christian Biesinger <cbiesinger@google.com>
8434
8435 * cris-tdep.c (cris_supply_gregset): Change signature to match
8436 what struct regset expects.
8437 (cris_regset): New struct.
8438 (fetch_core_registers): Remove.
8439 (cris_iterate_over_regset_sections): New function.
8440 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8441 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8442
bda874f6
CB
84432020-02-11 Christian Biesinger <cbiesinger@google.com>
8444
8445 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8446 registers.
8447
754e1564
CB
84482020-02-11 Christian Biesinger <cbiesinger@google.com>
8449
8450 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8451
8ddd8e0e
SM
84522020-02-11 Simon Marchi <simon.marchi@efficios.com>
8453
8454 * configure: Re-generate.
8455
898e7f60
SM
84562020-02-11 Simon Marchi <simon.marchi@efficios.com>
8457
8458 * configure: Re-generate.
8459
58df732b
SM
84602020-02-11 Simon Marchi <simon.marchi@efficios.com>
8461
8462 * acinclude: Update warning.m4 path.
8463 * warning.m4: Move to gdbsupport.
8464
da5bd37e
TT
84652020-02-11 Tom Tromey <tromey@adacore.com>
8466
8467 * remote.c (remote_console_output): Update.
8468 * printcmd.c (printf_command): Update.
8469 * event-loop.c (gdb_wait_for_event): Update.
8470 * linux-nat.c (sigchld_handler): Update.
8471 * remote-sim.c (gdb_os_write_stdout): Update.
8472 (gdb_os_flush_stdout): Update.
8473 (gdb_os_flush_stderr): Update.
8474 (gdb_os_write_stderr): Update.
8475 * exceptions.c (print_exception): Update.
8476 * remote-fileio.c (remote_fileio_func_read): Update.
8477 (remote_fileio_func_write): Update.
8478 * tui/tui.c (tui_enable): Update.
8479 * tui/tui-interp.c (tui_interp::init): Update.
8480 * utils.c (init_page_info): Update.
8481 (putchar_unfiltered, fputc_unfiltered): Update.
8482 (gdb_flush): Update.
8483 (emit_style_escape): Update.
8484 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8485 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8486 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8487 (stderr_file::write): Update.
8488 (stderr_file::puts): Update.
8489 * ui-file.h (ui_file_isatty, ui_file_write)
8490 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8491 (ui_file_puts): Don't declare.
8492
85f0dd3c
TV
84932020-02-10 Tom de Vries <tdevries@suse.de>
8494
8495 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8496 sentinel to char *.
8497
2e927613
TV
84982020-02-09 Tom de Vries <tdevries@suse.de>
8499
8500 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8501 filename if it matches "<artificial>".
8502
6bafc845
HD
85032020-02-09 Hannes Domani <ssbssa@yahoo.de>
8504
8505 * windows-tdep.c (struct enum_value_name): New struct.
8506 (create_enum): New function.
8507 (windows_get_siginfo_type): Create and use enum types.
8508
7928d571
HD
85092020-02-09 Hannes Domani <ssbssa@yahoo.de>
8510
8511 * NEWS: Mention $_siginfo support for Windows.
8512 * windows-nat.c (handle_exception): Set siginfo_er.
8513 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8514 (windows_xfer_siginfo): New function.
8515 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8516 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8517 (init_windows_gdbarch_data): New function.
8518 (get_windows_gdbarch_data): New function.
8519 (windows_get_siginfo_type): New function.
8520 (windows_init_abi): Register windows_get_siginfo_type.
8521 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8522
6751ebae
TT
85232020-02-08 Tom Tromey <tom@tromey.com>
8524
8525 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8526 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8527 <keep>: Declare method.
8528 <m_keep>: Remove member.
8529 <~cutu_reader>: Remove.
8530 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8531 (cutu_reader::cutu_reader): Update.
8532 (cutu_reader::keep): Rename from ~cutu_reader.
8533 (process_psymtab_comp_unit, build_type_psymtabs_1)
8534 (process_skeletonless_type_unit, load_partial_comp_unit)
8535 (load_full_comp_unit, dwarf2_read_addr_index)
8536 (read_signatured_type): Update.
8537
135f5437
TT
85382020-02-08 Tom Tromey <tom@tromey.com>
8539
8540 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8541 "want_partial_unit" parameter.
8542 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8543 Inline check for DW_TAG_partial_unit.
8544 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8545
9f66ff1c
TT
85462020-02-08 Tom Tromey <tom@tromey.com>
8547
8548 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8549 read.c.
8550 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8551 read.c.
8552
c8a7a66f
TT
85532020-02-08 Tom Tromey <tom@tromey.com>
8554
8555 * dwarf2/read.c (read_address): Move to comp-unit.c.
8556 (dwarf2_rnglists_process, dwarf2_ranges_process)
8557 (read_attribute_value, dwarf_decode_lines_1)
8558 (var_decode_location, decode_locdesc): Update.
8559 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8560 read.c. Remove "cu" parameter.
8561 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8562 method.
8563
8266302d
TT
85642020-02-08 Tom Tromey <tom@tromey.com>
8565
8566 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8567 (read_indirect_line_string): Update.
8568 * dwarf2/comp-unit.c (read_offset): Remove.
8569 (read_comp_unit_head): Update.
8570 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8571 method.
8572 (read_offset): Don't declare.
8573
4057dfde
TT
85742020-02-08 Tom Tromey <tom@tromey.com>
8575
8576 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8577 * dwarf2/read.c (struct comp_unit_head): Move to
8578 dwarf2/comp-unit.h.
8579 (enum class rcuh_kind): Move to comp-unit.h.
8580 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8581 (read_comp_unit_head, error_check_comp_unit_head)
8582 (read_and_check_comp_unit_head): Move to comp-unit.c.
8583 (read_offset, dwarf_unit_type_name): Likewise.
8584 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8585 (cutu_reader::cutu_reader, read_call_site_scope)
8586 (find_partial_die, follow_die_offset): Update.
8587 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8588
24aa364d
TT
85892020-02-08 Tom Tromey <tom@tromey.com>
8590
8591 * dwarf2/read.c (read_offset_1): Move to leb.c.
8592 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8593 (dwarf_decode_macro_bytes): Update.
8594 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8595 * dwarf2/leb.h (read_offset): Declare.
8596
2c7d5afc
TT
85972020-02-08 Tom Tromey <tom@tromey.com>
8598
8599 * dwarf2/read.c (dwarf2_section_size): Remove.
8600 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8601 Update.
8602 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8603
4075cb26
TT
86042020-02-08 Tom Tromey <tom@tromey.com>
8605
8606 * dwarf2/read.c (read_initial_length): Move to leb.c.
8607 * dwarf2/leb.h (read_initial_length): Declare.
8608 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8609 handle_nonstd parameter.
8610 * dwarf2/frame.c (read_initial_length): Remove.
8611 (decode_frame_entry_1): Update.
8612
09ba997f
TT
86132020-02-08 Tom Tromey <tom@tromey.com>
8614
8615 * dwarf2/loc.c (dwarf2_find_location_expression)
8616 (dwarf_evaluate_loc_desc::get_tls_address)
8617 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8618 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8619 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8620 (dwarf2_compile_property_to_c)
8621 (dwarf2_loc_desc_get_symbol_read_needs)
8622 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8623 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8624 (loclist_describe_location, loclist_tracepoint_var_ref)
8625 (loclist_generate_c_location): Update.
8626 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8627 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8628 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8629 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8630 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8631 (dwarf2_per_cu_data::addr_size)
8632 (dwarf2_per_cu_data::ref_addr_size)
8633 (dwarf2_per_cu_data::text_offset)
8634 (dwarf2_per_cu_data::addr_type): Now methods.
8635 (per_cu_header_read_in): Make per_cu "const".
8636 (dwarf2_version): Remove.
8637 (dwarf2_per_cu_data::int_type): Now a method.
8638 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8639 (set_die_type, read_array_type, read_subrange_index_type)
8640 (read_tag_string_type, read_subrange_type): Update.
8641 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8642 offset_size, ref_addr_size, text_offset, addr_type, version,
8643 objfile, int_type, addr_sized_int_type>: Declare methods.
8644
96c738c0
TT
86452020-02-08 Tom Tromey <tom@tromey.com>
8646
8647 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8648 Move earlier.
8649
8fdd972c
TT
86502020-02-08 Tom Tromey <tom@tromey.com>
8651
8652 * dwarf2/read.h (dwarf_line_debug): Declare.
8653 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8654 * dwarf2/read.c: Move line_header code to new files.
8655 (dwarf_line_debug): No longer static.
8656 * dwarf2/line-header.c: New file.
8657 * dwarf2/line-header.h: New file.
8658
03075812
TT
86592020-02-08 Tom Tromey <tom@tromey.com>
8660
8661 * dwarf2/read.c (struct line_header) <file_full_name,
8662 file_file_name>: Return unique_xmalloc_ptr.
8663 (line_header::file_file_name): Update.
8664 (line_header::file_full_name): Update.
8665 (dw2_get_file_names_reader): Update.
8666 (macro_start_file): Update.
8667
bb822404
TT
86682020-02-08 Tom Tromey <tom@tromey.com>
8669
8670 * dwarf2/read.c (struct line_header) <file_full_name,
8671 file_file_name>: Declare methods.
8672 (dw2_get_file_names_reader): Update.
8673 (file_file_name): Now a method.
8674 (file_full_name): Likewise.
8675 (macro_start_file): Update.
8676
009b64fc
TT
86772020-02-08 Tom Tromey <tom@tromey.com>
8678
8679 * dwarf2/read.c (dwarf_always_disassemble)
8680 (show_dwarf_always_disassemble): Move to loc.c.
8681 (_initialize_dwarf2_read): Move "always-disassemble" registration
8682 to loc.c.
8683 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8684 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8685 static.
8686 (show_dwarf_always_disassemble): Move from read.c.
8687 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8688
5895093f
TT
86892020-02-08 Tom Tromey <tom@tromey.com>
8690
8691 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8692 (create_quick_file_names_table): Return htab_up.
8693 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8694 Update.
8695 * dwarf2/read.h (struct dwarf2_per_objfile)
8696 <quick_file_names_table>: Now htab_up.
8697
b3b32279
TT
86982020-02-08 Tom Tromey <tom@tromey.com>
8699
8700 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8701
1d33d811
TT
87022020-02-08 Tom Tromey <tom@tromey.com>
8703
8704 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8705 Rewrite.
8706 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8707 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8708 (abbrev_table::abbrev_table): No longer inline.
8709 (ABBREV_HASH_SIZE): Remove.
8710 (abbrev_table::m_abbrevs): Now an htab_up.
8711
86de1d91
TT
87122020-02-08 Tom Tromey <tom@tromey.com>
8713
8714 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8715 (cutu_reader): Update.
8716 (build_type_psymtabs_1): Update.
8717 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8718 (abbrev_table::alloc_abbrev): Update.
8719 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8720 (abbrev_table::read): New static method, renamed from
8721 abbrev_table_read_table.
8722 (abbrev_table::alloc_abbrev)
8723 (abbrev_table::add_abbrev): Now private.
8724 (abbrev_table::abbrev_table): Now private.
8725 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8726
0335378b
TT
87272020-02-08 Tom Tromey <tom@tromey.com>
8728
8729 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8730 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8731 htab_up.
8732
48b490f2
TT
87332020-02-08 Tom Tromey <tom@tromey.com>
8734
8735 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8736 htab_up.
8737 (lookup_dwo_unit_in_dwp): Update.
8738 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8739 on obstack.
8740
bc68fb19
TT
87412020-02-08 Tom Tromey <tom@tromey.com>
8742
8743 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8744 obstack.
8745
d15acc42
TT
87462020-02-08 Tom Tromey <tom@tromey.com>
8747
8748 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8749 line_header_hash.
8750 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8751 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8752 Change type to htab_up.
8753
eaa5fa8b
TT
87542020-02-08 Tom Tromey <tom@tromey.com>
8755
8756 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8757 htab_up. Don't allocate on obstack.
8758 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8759 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8760 Change type to htab_up.
8761
b0b6a987
TT
87622020-02-08 Tom Tromey <tom@tromey.com>
8763
8764 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8765 Change type to htab_up.
8766 * dwarf2/read.c (create_signatured_type_table_from_index)
8767 (create_signatured_type_table_from_debug_names)
8768 (create_all_type_units, add_type_unit)
8769 (lookup_dwo_signatured_type, lookup_signatured_type)
8770 (process_skeletonless_type_unit): Update.
8771 (create_debug_type_hash_table, create_debug_types_hash_table):
8772 Change type of types_htab.
8773 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8774 htab_up. Don't allocate on obstack.
8775 (create_cus_hash_table): Change type of cus_htab parameter.
8776 (struct dwo_file) <cus, tus>: Now htab_up.
8777 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8778 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8779 (queue_and_load_all_dwo_tus): Update.
8780 * dwarf2/index-write.c (write_gdbindex): Update.
8781 (write_debug_names): Update.
8782
39856def
TT
87832020-02-08 Tom Tromey <tom@tromey.com>
8784
8785 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8786 dwarf2/read.c. Remove "next" member. Add constructor ntad
8787 destructor.
8788 (struct dwarf2_per_objfile) <queue>: New member.
8789 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8790 dwarf2/read.h.
8791 (dwarf2_queue, dwarf2_queue_tail): Remove.
8792 (class dwarf2_queue_guard): Add parameter to constructor. Use
8793 DISABLE_COPY_AND_ASSIGN.
8794 <m_per_objfile>: New member.
8795 <~dwarf2_queue_guard>: Rewrite.
8796 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8797 Update.
8798 (~dwarf2_queue_item): New.
8799
3e225074
TT
88002020-02-08 Tom Tromey <tom@tromey.com>
8801
8802 * dwarf2/read.c (struct die_info) <has_children>: New member.
8803 (dw2_get_file_names_reader): Remove has_children.
8804 (dw2_get_file_names): Update.
8805 (read_cutu_die_from_dwo): Remove has_children.
8806 (cutu_reader::init_tu_and_read_dwo_dies)
8807 (cutu_reader::cutu_reader): Update.
8808 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8809 Remove has_children.
8810 (build_type_psymtabs_1, process_skeletonless_type_unit)
8811 (load_partial_comp_unit, load_full_comp_unit): Update.
8812 (create_dwo_cu_reader): Remove has_children.
8813 (create_cus_hash_table, read_die_and_children): Update.
8814 (read_full_die_1,read_full_die): Remove has_children.
8815 (read_signatured_type): Update.
8816 (class cutu_reader) <has_children>: Remove.
8817
82ca8957
TT
88182020-02-08 Tom Tromey <tom@tromey.com>
8819
8820 * dwarf2/expr.c: Rename from dwarf2expr.c.
8821 * dwarf2/expr.h: Rename from dwarf2expr.h.
8822 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8823 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8824 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8825 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8826 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8827 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8828 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8829 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8830 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8831 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8832 * dwarf2/loc.c: Rename from dwarf2loc.c.
8833 * dwarf2/loc.h: Rename from dwarf2loc.h.
8834 * dwarf2/read.c: Rename from dwarf2read.c.
8835 * dwarf2/read.h: Rename from dwarf2read.h.
8836 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8837 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8838 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8839 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8840 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8841 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8842 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8843 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8844 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8845 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8846 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8847 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8848 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8849 Update.
8850 * Makefile.in (COMMON_SFILES): Update.
8851 (HFILES_NO_SRCDIR): Update.
8852
9e35d499
TT
88532020-02-08 Tom Tromey <tom@tromey.com>
8854
8855 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8856 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8857
1eba2311
TT
88582020-02-08 Tom Tromey <tom@tromey.com>
8859
8860 * dwarf2read.h (struct die_info): Don't declare.
8861
e41c2da2
TT
88622020-02-08 Tom Tromey <tom@tromey.com>
8863
8864 * dwarf2read.h (die_info_ptr): Remove typedef.
8865
4fc6c0d5
TT
88662020-02-08 Tom Tromey <tom@tromey.com>
8867
8868 * dwarf2read.c (read_call_site_scope)
8869 (handle_data_member_location, dwarf2_add_member_fn)
8870 (mark_common_block_symbol_computed, read_common_block)
8871 (attr_to_dynamic_prop, partial_die_info::read)
8872 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8873 (dwarf2_symbol_mark_computed, set_die_type): Update.
8874 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8875 method.
8876 (attr_form_is_block): Don't declare.
8877 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8878
cd6c91b4
TT
88792020-02-08 Tom Tromey <tom@tromey.com>
8880
8881 * dwarf2read.c (dwarf2_find_base_address, )
8882 (read_call_site_scope, rust_containing_type)
8883 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8884 (handle_data_member_location, dwarf2_add_member_fn)
8885 (get_alignment, read_structure_type, process_structure_scope)
8886 (mark_common_block_symbol_computed, read_common_block)
8887 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8888 (partial_die_info::read, read_attribute_value, new_symbol)
8889 (lookup_die_type, dwarf2_get_ref_die_offset)
8890 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8891 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8892 (dwarf2_symbol_mark_computed): Update.
8893 * dwarf2/attribute.h (struct attribute) <value_as_address,
8894 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8895 methods.
8896 (value_as_address, attr_form_is_section_offset)
8897 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8898 * dwarf2/attribute.c (attribute::value_as_address)
8899 (attribute::form_is_section_offset, attribute::form_is_constant)
8900 (attribute::form_is_ref): Now methods.
8901
162dce55
TT
89022020-02-08 Tom Tromey <tom@tromey.com>
8903
8904 * dwarf2read.c (struct attribute, DW_STRING)
8905 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8906 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8907 (attr_form_is_block, attr_form_is_section_offset)
8908 (attr_form_is_constant, attr_form_is_ref): Move.
8909 * dwarf2/attribute.h: New file.
8910 * dwarf2/attribute.c: New file, from dwarf2read.c.
8911 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8912
3054dd54
TT
89132020-02-08 Tom Tromey <tom@tromey.com>
8914
8915 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8916 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8917 Move.
8918 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8919 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8920 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8921 abbrev.c.
8922 * dwarf2/abbrev.h: New file.
8923 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8924 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8925
96b79293
TT
89262020-02-08 Tom Tromey <tom@tromey.com>
8927
8928 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8929 (dwarf2_section_size, dwarf2_get_section_info)
8930 (create_signatured_type_table_from_debug_names)
8931 (create_addrmap_from_aranges, read_debug_names_from_section)
8932 (get_gdb_index_contents_from_section, read_comp_unit_head)
8933 (error_check_comp_unit_head, read_abbrev_offset)
8934 (create_debug_type_hash_table, init_cu_die_reader)
8935 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8936 (read_comp_units_from_section, create_cus_hash_table)
8937 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8938 (create_dwp_v2_section, dwarf2_rnglists_process)
8939 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8940 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8941 (read_indirect_string_from_dwz, read_addr_index_1)
8942 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8943 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8944 (fill_in_loclist_baton): Update.
8945 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8946 get_containing_section, get_bfd_owner, get_bfd_section,
8947 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8948 (dwarf2_read_section, get_section_name, get_section_file_name)
8949 (get_containing_section, get_section_bfd_owner)
8950 (get_section_bfd_section, get_section_name, get_section_file_name)
8951 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8952 declare.
8953 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8954 (dwarf2_section_info::get_bfd_owner)
8955 (dwarf2_section_info::get_bfd_section)
8956 (dwarf2_section_info::get_name)
8957 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8958 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8959 (dwarf2_section_info::read): Now methods.
8960 * dwarf-index-write.c (class debug_names): Update.
8961
2c86cff9
TT
89622020-02-08 Tom Tromey <tom@tromey.com>
8963
8964 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8965 Move to dwarf2/section.h.
8966 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8967 (get_section_bfd_section, get_section_name)
8968 (get_section_file_name, get_section_id, get_section_flags)
8969 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8970 dwarf2/section.c.
8971 * dwarf2/section.h: New file.
8972 * dwarf2/section.c: New file, from dwarf2read.c.
8973 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8974
f4382c45
TT
89752020-02-08 Tom Tromey <tom@tromey.com>
8976
8977 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8978 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8979 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8980 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8981 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8982 * dwarf2/leb.h: New file, from dwarf2read.c.
8983 * dwarf2/leb.c: New file, from dwarf2read.c.
8984 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8985 Remove.
8986 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8987 (COMMON_SFILES): Add dwarf2/leb.c.
8988
01840b7a
JB
89892020-02-08 Joel Brobecker <brobecker@adacore.com>
8990
8991 GDB 9.1 released.
8992
dfcb27e4
IB
89932020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8994
8995 PR gdb/25190:
aac66a4c
SM
8996 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8997 * gdb/remote.c (remote_console_output): Update.
8998 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8999 (ui_file_puts): ...this.
9000 * gdb/ui-file.h (ui_file_puts): Add declaration.
9001 * gdb/utils.c (emit_style_escape): Update.
9002 (flush_wrap_buffer): Update.
9003 (fputs_maybe_filtered): Update.
9004 (fputs_unfiltered): Add function.
dfcb27e4 9005
faa17681
IB
90062020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9007
aac66a4c
SM
9008 * gdb/event-loop.c (gdb_wait_for_event): Update.
9009 * gdb/printcmd.c (printf_command): Update.
9010 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9011 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9012 (gdb_os_flush_stderr): Update.
9013 * gdb/remote.c (remote_console_output): Update.
9014 * gdb/ui-file.c (gdb_flush): Rename to...
9015 (ui_file_flush): ...this.
9016 (stderr_file::write): Update.
9017 (stderr_file::puts): Update.
9018 * gdb/ui-file.h (gdb_flush): Rename to...
9019 (ui_file_flush): ...this.
9020 * gdb/utils.c (gdb_flush): Add function.
9021 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9022
5abbbe1d
TT
90232020-02-07 Tom Tromey <tromey@adacore.com>
9024
9025 PR breakpoints/24915:
9026 * source.c (find_and_open_source): Do not check basenames_may_differ.
9027
919adfe8
TT
90282020-02-07 Tom Tromey <tom@tromey.com>
9029
9030 * README: Update gdbserver documentation.
9031 * gdbserver: Move to top level.
9032 * configure.tgt (build_gdbserver): Remove.
9033 * configure.ac: Remove --enable-gdbserver.
9034 * configure: Rebuild.
9035 * Makefile.in (distclean): Don't mention gdbserver.
9036
1d5d29e7
SV
90372020-02-06 Shahab Vahedi <shahab@synopsys.com>
9038
9039 * source-cache.c (source_cache::ensure): Surround
9040 get_plain_source_lines with a try/catch.
9041 (source_cache::get_line_charpos): Get rid of try/catch
9042 and only check for the return value of "ensure".
9043 * tui/tui-source.c (tui_source_window::set_contents):
9044 Simplify "nlines" calculation.
9045
6eb1129c
SV
90462020-02-06 Shahab Vahedi <shahab@synopsys.com>
9047
9048 * MAINTAINERS (Write After Approval): Add myself.
9049
c6a42d11
CB
90502020-02-05 Christian Biesinger <cbiesinger@google.com>
9051
9052 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9053 function call.
9054
c8ecdda6
CB
90552020-02-05 Christian Biesinger <cbiesinger@google.com>
9056
9057 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9058
f6480e70
MR
90592020-02-05 Maciej W. Rozycki <macro@wdc.com>
9060
9061 * nat/riscv-linux-tdesc.h: New file.
9062 * nat/riscv-linux-tdesc.c: New file, taking code from...
9063 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9064 ... here.
9065 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9066 NATDEPFILES.
9067
dcc9fbc6
AB
90682020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9069
9070 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9071 we don't set the fake simulator ptid to the null_ptid.
9072
719546c4
SM
90732020-02-03 Simon Marchi <simon.marchi@efficios.com>
9074
9075 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9076 * gdbthread.h (class thread_info) <resumed>: Likewise.
9077 * infrun.c (resume_1): Likewise.
9078 (proceed): Likewise.
9079 (infrun_thread_stop_requested): Likewise.
9080 (stop_all_threads): Likewise.
9081 (handle_inferior_event): Likewise.
9082 (restart_threads): Likewise.
9083 (finish_step_over): Likewise.
9084 (keep_going_stepped_thread): Likewise.
9085 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9086 (linux_handle_extended_wait): Likewise.
9087 * record-btrace.c (get_thread_current_frame_id): Likewise.
9088 * record-full.c (record_full_wait_1): Likewise.
9089 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9090 * target.c (target_resume): Likewise.
9091 * thread.c (set_running_thread): Likewise.
9092
e409c542
AKS
90932020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9094
9095 * f-valprint.c (f77_print_array_1): Changed datatype of index
9096 variable to LONGEST from int to enable it to contain bound
9097 values correctly.
9098
ee98c0da
MR
90992020-02-03 Maciej W. Rozycki <macro@wdc.com>
9100
9101 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9102 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9103 offsets according to FLEN determined.
9104 (riscv_linux_nat_target::read_description): Determine FLEN
9105 dynamically.
9106 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9107 according to FLEN determined.
9108 (riscv_linux_nat_target::store_registers): Likewise.
9109
aa66aac4
SV
91102020-02-01 Shahab Vahedi <shahab@synopsys.com>
9111
9112 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9113 when reg->group is empty and reggroup is not.
9114
fd9faca8
TT
91152020-01-31 Tom Tromey <tromey@adacore.com>
9116
9117 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9118 Call beneath target's mourn_inferior after unpushing.
9119
42330a68
AB
91202020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9121
9122 PR tui/9765
9123 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9124 have enough lines to fill the screen, still return the lowest
9125 address we found.
9126
7a27a45b
AB
91272020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9128
9129 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9130 '-', '<', and '>' commands.
9131
c47f70e2
PA
91322020-01-29 Pedro Alves <palves@redhat.com>
9133 Sergio Durigan Junior <sergiodj@redhat.com>
9134
9135 * infcmd.c (construct_inferior_arguments): Assert that
9136 'argc' is greater than 0.
9137
5133a315
LM
91382020-01-29 Luis Machado <luis.machado@linaro.org>
9139
9140 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9141 (BRK_INSN_MASK): Define to 0xd4200000.
9142 (aarch64_program_breakpoint_here_p): New function.
9143 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9144 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9145 breakpoint.c.
9146 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9147 breakpoint.h
9148 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9149 call gdbarch_program_breakpoint_here_p.
9150 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9151 default_program_breakpoint_here_p, changed return type to bool and
9152 simplified.
9153 * breakpoint.h (program_breakpoint_here): Moved prototype to
9154 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9155 return type to bool.
9156 * gdbarch.c: Regenerate.
9157 * gdbarch.h: Regenerate.
9158 * gdbarch.sh (program_breakpoint_here_p): New method.
9159 * infrun.c (handle_signal_stop): Call
9160 gdbarch_program_breakpoint_here_p.
9161
168f8c6b
TT
91622020-01-26 Tom Tromey <tom@tromey.com>
9163
9164 * ctfread.c (struct ctf_fp_info): Reindent.
9165 (_initialize_ctfread): Remove.
9166
128a391f
TT
91672020-01-26 Tom Tromey <tom@tromey.com>
9168
9169 * psymtab.c (partial_map_expand_apply)
9170 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9171 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9172 (psym_print_stats, psym_expand_symtabs_for_function)
9173 (psym_map_symbol_filenames, psym_map_matching_symbols)
9174 (psym_expand_symtabs_matching)
9175 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9176 (maintenance_check_psymtabs): Use new methods.
9177 * psympriv.h (struct partial_symtab) <readin_p,
9178 get_compunit_symtab>: New methods.
9179 <readin, compunit_symtab>: Remove members.
9180 (struct standard_psymtab): New.
9181 (struct legacy_psymtab): Derive from standard_psymtab.
9182 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9183 standard_psymtab.
9184 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9185
0494dbec
TT
91862020-01-26 Tom Tromey <tom@tromey.com>
9187
9188 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9189 read_dependencies. Add assert.
9190 * psymtab.c (partial_symtab::read_dependencies): New method.
9191 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9192 method.
9193 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9194 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9195 read_dependencies.
9196 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9197 Add assert.
9198
8566b89b
TT
91992020-01-26 Tom Tromey <tom@tromey.com>
9200
9201 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9202 Call expand_psymtab.
9203 (xcoff_read_symtab): Call expand_psymtab.
9204 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9205 legacy_expand_psymtab.
9206 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9207 method.
9208 (struct legacy_psymtab) <expand_psymtab>: Implement.
9209 <legacy_expand_psymtab>: New member.
9210 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9211 (parse_partial_symbols): Set legacy_expand_psymtab.
9212 (psymtab_to_symtab_1): Change argument order. Call
9213 expand_psymtab.
9214 (new_psymtab): Set legacy_expand_psymtab.
9215 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9216 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9217 expand_psymtab.
9218 (dwarf2_psymtab::expand_psymtab): Rename from
9219 psymtab_to_symtab_1. Call expand_psymtab.
9220 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9221 (dbx_end_psymtab): Likewise.
9222 (dbx_psymtab_to_symtab_1): Change argument order. Call
9223 expand_psymtab.
9224 (dbx_read_symtab): Call expand_psymtab.
9225 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9226 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9227 (ctf_psymtab::read_symtab): Call expand_psymtab.
9228
077cbab2
TT
92292020-01-26 Tom Tromey <tom@tromey.com>
9230
9231 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9232 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9233 messages.
9234 * mdebugread.c (mdebug_read_symtab): Remove prints.
9235 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9236 assert.
9237 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9238
891813be
TT
92392020-01-26 Tom Tromey <tom@tromey.com>
9240
9241 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9242 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9243 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9244 legacy_symtab.
9245 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9246 * psymtab.c (psymtab_to_symtab): Call method.
9247 (dump_psymtab): Update.
9248 * psympriv.h (struct partial_symtab): Add virtual destructor.
9249 <read_symtab>: New method.
9250 (struct legacy_symtab): New.
9251 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9252 (struct pst_map) <pst>: Now a legacy_psymtab.
9253 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9254 (new_psymtab): Use legacy_psymtab.
9255 * dwarf2read.h (struct dwarf2_psymtab): New.
9256 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9257 * dwarf2read.c (dwarf2_create_include_psymtab)
9258 (dwarf2_build_include_psymtabs, create_type_unit_group)
9259 (create_partial_symtab, process_psymtab_comp_unit_reader)
9260 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9261 (set_partial_user): Use dwarf2_psymtab.
9262 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9263 (psymtab_to_symtab_1, process_full_comp_unit)
9264 (process_full_type_unit, dwarf2_ranges_read)
9265 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9266 (dwarf_decode_lines): Use dwarf2_psymtab.
9267 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9268 (add_address_entry_worker, write_one_signatured_type)
9269 (recursively_count_psymbols, recursively_write_psymbols)
9270 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9271 (write_debug_names): Likewise.
9272 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9273 <pst>: Now a legacy_psymtab.
9274 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9275 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9276 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9277 * ctfread.c (struct ctf_psymtab): New.
9278 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9279 ctf_psymtab.
9280 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9281 (create_partial_symtab): Return a ctf_psymtab.
9282 (scan_partial_symbols): Update.
9283
c3693a1d
TT
92842020-01-26 Tom Tromey <tom@tromey.com>
9285
9286 * xcoffread.c (xcoff_start_psymtab): Use new.
9287 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9288 renamed from start_psymtab_common.
9289 * psympriv.h (struct partial_symtab): Add new constructor.
9290 (start_psymtab_common): Don't declare.
9291 * mdebugread.c (parse_partial_symbols): Use new.
9292 * dwarf2read.c (create_partial_symtab): Use new.
9293 * dbxread.c (start_psymtab): Use new.
9294 * ctfread.c (create_partial_symtab): Use new.
9295
32caafd0
TT
92962020-01-26 Tom Tromey <tom@tromey.com>
9297
9298 * xcoffread.c (xcoff_end_psymtab): Use new.
9299 * psymtab.c (start_psymtab_common): Use new.
9300 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9301 Update.
9302 * psympriv.h (struct partial_symtab): Add parameters to
9303 constructor. Don't inline.
9304 (allocate_psymtab): Don't declare.
9305 * mdebugread.c (new_psymtab): Use new.
9306 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9307 * dbxread.c (dbx_end_psymtab): Use new.
9308
abaa2f23
TT
93092020-01-26 Tom Tromey <tom@tromey.com>
9310
9311 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9312 allocate_psymtab. Update documentation.
9313 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9314 allocate_psymtab. Do not use new.
9315 (allocate_psymtab): Use new. Update.
9316
6d94535f
TT
93172020-01-26 Tom Tromey <tom@tromey.com>
9318
9319 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9320 * psymtab.c (psym_print_stats): Update.
9321 * psympriv.h (struct partial_symtab) <readin,
9322 psymtabs_addrmap_supported, anonymous>: Now bool.
9323 * mdebugread.c (psymtab_to_symtab_1): Update.
9324 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9325 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9326 (process_full_comp_unit, process_full_type_unit): Update.
9327 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9328 * ctfread.c (psymtab_to_symtab): Update.
9329
6f17252b
TT
93302020-01-26 Tom Tromey <tom@tromey.com>
9331
9332 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9333 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9334 * psymtab.c (psymtab_storage): Delete psymtabs.
9335 (psymtab_storage::allocate_psymtab): Use new.
9336 (psymtab_storage::discard_psymtab): Use delete.
9337 * psympriv.h (struct partial_symtab): Add constructor and
9338 initializers.
9339
f6f1cebc
TT
93402020-01-26 Tom Tromey <tom@tromey.com>
9341
9342 * machoread.c: Do not include psympriv.h.
9343
e47e48f6
PW
93442020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9345
9346 * NEWS: Mention the new option and the set/show commands.
9347
a2fedca9
PW
93482020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9349
9350 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9351 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9352 (validate_exec_file): New variables, enums, functions.
9353 (exec_file_locate_attach, print_section_info): Style the filenames.
9354 (_initialize_exec): Install show_exec_file_mismatch_command and
9355 set_exec_file_mismatch_command.
9356 * gdbcore.h (validate_exec_file): Declare.
9357 * infcmd.c (attach_command): Call validate_exec_file.
9358 * remote.c ( remote_target::remote_add_inferior): Likewise.
9359
7ffa82e1
AB
93602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9361
9362 * frame.c (find_frame_sal): Move call to get_next_frame into more
9363 inner scope.
9364 * inline-frame.c (inilne_state) <inline_state>: Update argument
9365 types.
9366 (inilne_state) <skipped_symbol>: Rename to...
9367 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9368 (skip_inline_frames): Build vector of skipped symbols and use this
9369 to reate the inline_state.
9370 (inline_skipped_symbol): Add a comment and some assertions, fetch
9371 skipped symbol from the list.
9372
3d92a3e3
AB
93732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9374
9375 * buildsym.c (lte_is_less_than): Delete.
9376 (buildsym_compunit::end_symtab_with_blockvector): Create local
9377 lambda function to sort line table entries, and use
9378 std::stable_sort instead of std::sort.
9379 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9380 markers when looking for a previous line.
9381
94a72be7
AB
93822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9383
9384 * dwarf2read.c (lnp_state_machine::record_line): Include
9385 end_sequence parameter in debug print out. Record the line if we
9386 are at an end_sequence marker even if it's not the start of a
9387 statement.
9388 * symmisc.c (maintenance_print_one_line_table): Print end of
9389 sequence markers with 'END' not '0'.
9390
53af73bf
PA
93912020-01-24 Pedro Alves <palves@redhat.com>
9392
9393 PR gdb/25410
9394 * thread.c (scoped_restore_current_thread::restore): Use
9395 switch_to_inferior_no_thread.
9396 * exec.c: Include "progspace-and-thread.h".
9397 (add_target_sections, remove_target_sections):
9398 scoped_restore_current_pspace_and_thread instead of
9399 scoped_restore_current_thread.
9400 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9401 and aspace to the inferior before calling clone_program_space.
9402 Remove stale comment.
9403
3050c6f4
CB
94042020-01-24 Christian Biesinger <cbiesinger@google.com>
9405
9406 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9407 (arm_netbsd_nat_target::fetch_registers): ...this.
9408 (arm_nbsd_nat_target::store_registers): Rename to...
9409 (arm_netbsd_nat_target::store_registers): ...this.
9410
73685c7e
CB
94112020-01-24 Christian Biesinger <cbiesinger@google.com>
9412
9413 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9414 register_t.
9415
89203d40
CB
94162020-01-24 Christian Biesinger <cbiesinger@google.com>
9417
9418 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9419 Update comment.
9420 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9421 Likewise.
9422 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9423 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9424 the correct replacement (iterate_over_regset_sections).
9425 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9426 Update comment.
9427
1ba1ac88
AB
94282020-01-24 Graham Markall <graham.markall@embecosm.com>
9429
9430 PR gdb/23718
9431 * gdb/python/python.c (execute_gdb_command): Call
9432 async_enable_stdin in catch block.
9433
f3364a6d
AB
94342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9435
9436 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9437 SWITCH_THRU_ALL_UIS.
9438
733d0a67
AB
94392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9440
9441 PR tui/9765
9442 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9443 comment, add extra parameter, and update to store previous symbol
9444 when appropriate.
9445 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9446 add extra parameter.
9447 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9448 remove unneeded parameter, add try/catch around gdb_print_insn,
9449 rewrite to add items to asm_lines vector.
9450 (tui_find_backward_disassembly_start_address): New function.
9451 (tui_find_disassembly_address): Updated throughout.
9452 (tui_disasm_window::set_contents): Update for changes to
9453 tui_disassemble.
9454 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9455 number of lines to scroll.
9456
b3b3bada
SM
94572020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9458
9459 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9460 (SECT_OFF_DATA): Likewise.
9461 (SECT_OFF_RODATA): Likewise.
9462 (SECT_OFF_TEXT): Likewise.
9463 (SECT_OFF_BSS): Likewise.
9464 (struct objfile) <text_section_offset, data_section_offset>: New
9465 methods.
9466 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9467 objfile::text_section_offset.
9468 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9469 * coffread.c (coff_symtab_read): Likewise.
9470 (enter_linenos): Likewise.
9471 (process_coff_symbol): Likewise.
9472 * ctfread.c (get_objfile_text_range): Likewise.
9473 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9474 Use objfile::data_section_offset.
9475 * dwarf2-frame.c (execute_cfa_program): Use
9476 objfile::text_section_offset.
9477 (dwarf2_frame_find_fde): Likewise.
9478 * dwarf2read.c (create_addrmap_from_index): Likewise.
9479 (create_addrmap_from_aranges): Likewise.
9480 (dw2_find_pc_sect_compunit_symtab): Likewise.
9481 (process_psymtab_comp_unit_reader): Likewise.
9482 (add_partial_symbol): Likewise.
9483 (add_partial_subprogram): Likewise.
9484 (process_full_comp_unit): Likewise.
9485 (read_file_scope): Likewise.
9486 (read_func_scope): Likewise.
9487 (read_lexical_block_scope): Likewise.
9488 (read_call_site_scope): Likewise.
9489 (dwarf2_rnglists_process): Likewise.
9490 (dwarf2_ranges_process): Likewise.
9491 (dwarf2_ranges_read): Likewise.
9492 (dwarf_decode_lines_1): Likewise.
9493 (new_symbol): Likewise.
9494 (dwarf2_fetch_die_loc_sect_off): Likewise.
9495 (dwarf2_per_cu_text_offset): Likewise.
9496 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9497 * hppa-tdep.c (read_unwind_info): Likewise.
9498 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9499 * psympriv.h (struct partial_symtab): Likewise.
9500 * psymtab.c (find_pc_sect_psymtab): Likewise.
9501 * solib-svr4.c (enable_break): Likewise.
9502 * stap-probe.c (relocate_address): Use
9503 objfile::data_section_offset.
9504 * xcoffread.c (enter_line_range): Use
9505 objfile::text_section_offset.
9506 (read_xcoff_symtab): Likewise.
9507
ab53f382
SM
95082020-01-23 Simon Marchi <simon.marchi@efficios.com>
9509
9510 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9511 declaration to narrower scopes.
9512
e7eee665
SM
95132020-01-23 Simon Marchi <simon.marchi@efficios.com>
9514
9515 * darwin-nat.h (struct darwin_exception_msg, enum
9516 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9517 Move up.
9518 (class darwin_nat_target) <wait_1, check_new_threads,
9519 decode_exception_message, decode_message, stop_inferior,
9520 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9521 * darwin-nat.c (darwin_check_new_threads): Rename to...
9522 (darwin_nat_target::check_new_threads): ... this.
9523 (darwin_suspend_inferior_it): Remove.
9524 (darwin_decode_exception_message): Rename to...
9525 (darwin_nat_target::decode_exception_message): ... this.
9526 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9527 (darwin_decode_message): Rename to...
9528 (darwin_nat_target::decode_message): ... this.
9529 (cancel_breakpoint): Rename to...
9530 (darwin_nat_target::cancel_breakpoint): ... this.
9531 (darwin_wait): Rename to...
9532 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9533 instead of iterate_over_inferiors.
9534 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9535 (darwin_stop_inferior): Rename to...
9536 (darwin_nat_target::stop_inferior): ... this.
9537 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9538 (darwin_init_thread_list): Rename to...
9539 (darwin_nat_target::init_thread_list): ... this.
9540 (darwin_ptrace_him): Rename to...
9541 (darwin_nat_target::ptrace_him): ... this.
9542 (darwin_nat_target::create_inferior): Pass lambda function to
9543 fork_inferior.
9544 (darwin_nat_target::detach): Call stop_inferior instead of
9545 darwin_stop_inferior.
9546 * fork-inferior.h (fork_inferior): Change init_trace_fun
9547 parameter to gdb::function_view.
9548 * fork-inferior.c (fork_inferior): Likewise.
9549
c162ed3e
HD
95502020-01-23 Hannes Domani <ssbssa@yahoo.de>
9551
9552 * i386-cygwin-tdep.c (core_process_module_section): Update.
9553 * windows-nat.c (struct lm_info_windows): Add text_offset.
9554 (windows_xfer_shared_libraries): Update.
9555 * windows-tdep.c (windows_xfer_shared_library):
9556 Add text_offset_cached argument.
9557 * windows-tdep.h (windows_xfer_shared_library): Update.
9558
a1237872
SM
95592020-01-21 Simon Marchi <simon.marchi@efficios.com>
9560
9561 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9562
b3ee6dd9
SM
95632020-01-21 Simon Marchi <simon.marchi@efficios.com>
9564
9565 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9566 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9567 replace with range-based for.
9568 (gdbsim_interrupt_inferior): Remove.
9569 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9570 with a range-based for. Inline code from
9571 gdbsim_interrupt_inferior.
9572
f9fac3c8
SM
95732020-01-21 Simon Marchi <simon.marchi@efficios.com>
9574
9575 * infrun.c (proceed): Fix indentation.
9576
f6474de9
TT
95772020-01-21 Tom Tromey <tromey@adacore.com>
9578
9579 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9580 * python/python.c (python_extension_ops): Update.
9581 (gdbpy_colorize): New function.
9582 * python/lib/gdb/__init__.py (colorize): New function.
9583 * extension.h (ext_lang_colorize): Declare.
9584 * extension.c (ext_lang_colorize): New function.
9585 * extension-priv.h (struct extension_language_ops) <colorize>: New
9586 member.
9587 * cli/cli-style.c (_initialize_cli_style): Update help text.
9588
f0c702d4
LM
95892020-01-21 Luis Machado <luis.machado@linaro.org>
9590
9591 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9592 <cond>: Change type to bool.
9593 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9594 (aarch64_displaced_step_cb): Likewise.
9595 (aarch64_displaced_step_tb): Likewise.
9596
1ab139e5
LM
95972020-01-21 Luis Machado <luis.machado@linaro.org>
9598
9599 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9600 output.
9601
0c271889
LM
96022020-01-21 Luis Machado <luis.machado@linaro.org>
9603
9604 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9605 <pc_adjust>: Adjust the documentation.
9606 (aarch64_displaced_step_fixup): Check if PC really moved before
9607 adjusting it.
9608
4d89c1c7
TT
96092020-01-19 Tom Tromey <tom@tromey.com>
9610
9611 * disasm.c (~gdb_disassembler): New destructor.
9612 (gdb_buffered_insn_length): Call disassemble_free_target.
9613 * disasm.h (class gdb_disassembler): Declare destructor. Use
9614 DISABLE_COPY_AND_ASSIGN.
9615
c0ab21c2
TT
96162020-01-19 Tom Tromey <tom@tromey.com>
9617
9618 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9619 (die_reader_func_ftype): Remove.
9620 (cutu_reader): New class.
9621 (dw2_get_file_names_reader): Remove "data" parameter.
9622 (dw2_get_file_names): Use cutu_reader.
9623 (create_debug_type_hash_table): Update.
9624 (read_cutu_die_from_dwo): Update comment.
9625 (lookup_dwo_unit): Add dwo_name parameter.
9626 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9627 die_reader_func_ftype and data parameters.
9628 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9629 Remove die_reader_func_ftype and data parameters.
9630 (~cutu_reader): New; from init_cutu_and_read_dies.
9631 (cutu_reader::cutu_reader): Rename from
9632 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9633 and data parameters.
9634 (init_cutu_and_read_dies_simple): Remove.
9635 (struct process_psymtab_comp_unit_data): Remove.
9636 (process_psymtab_comp_unit_reader): Remove data parameter; add
9637 want_partial_unit and pretend_language parameters.
9638 (process_psymtab_comp_unit): Use cutu_reader.
9639 (build_type_psymtabs_reader): Remove data parameter.
9640 (build_type_psymtabs_1): Use cutu_reader.
9641 (process_skeletonless_type_unit): Likewise.
9642 (load_partial_comp_unit_reader): Remove.
9643 (load_partial_comp_unit): Use cutu_reader.
9644 (load_full_comp_unit_reader): Remove.
9645 (load_full_comp_unit): Use cutu_reader.
9646 (struct create_dwo_cu_data): Remove.
9647 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9648 dwo_unit parameters.
9649 (create_cus_hash_table): Use cutu_reader.
9650 (struct dwarf2_read_addr_index_data): Remove.
9651 (dwarf2_read_addr_index_reader): Remove.
9652 (dwarf2_read_addr_index): Use cutu_reader.
9653 (read_signatured_type_reader): Remove.
9654 (read_signatured_type): Use cutu_reader.
9655
45bbae5c
TT
96562020-01-19 Tom Tromey <tom@tromey.com>
9657
9658 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9659 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9660 (tui_wrefresh): Declare.
9661 * tui/tui-wingeneral.c (suppress_output): New global.
9662 (tui_suppress_output, ~tui_suppress_output): New constructor and
9663 destructor.
9664 (tui_wrefresh): New function.
9665 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9666 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9667 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9668 method.
9669 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9670 tui_wrefresh.
9671 (tui_data_window::no_refresh): New method.
9672 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9673 (tui_reg_command): Use tui_suppress_output
9674 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9675 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9676 method.
9677 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9678
4f13c1c0
TT
96792020-01-19 Tom Tromey <tom@tromey.com>
9680
9681 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9682 Handle case where symtab is null.
9683
fa47e446
SM
96842020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9685
9686 * linux-fork.c (one_fork_p): Simplify.
9687
26f42329
SM
96882020-01-17 Simon Marchi <simon.marchi@efficios.com>
9689
9690 * top.c (struct qt_args): Remove.
9691 (kill_or_detach): Change return type to void, replace `void *`
9692 parameter with a proper one.
9693 (print_inferior_quit_action): Likewise.
9694 (quit_confirm): Use range-based for loop to iterate over inferiors.
9695 (quit_force): Likewise.
9696
a9ac81b1
SM
96972020-01-17 Simon Marchi <simon.marchi@efficios.com>
9698
9699 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9700 `void *` parameter with proper parameters.
9701 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9702 (print_one_inferior): Change return type to void, replace `void *`
9703 parameter with proper parameters.
9704 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9705 inferiors.
9706 (get_other_inferior): Remove.
9707 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9708 inferiors.
9709
788eca49
SM
97102020-01-17 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * mi/mi-interp.c (report_initial_inferior): Remove.
9713 (mi_interp::init): Use range-based for to iterate over inferiors.
9714
d9bc85b6
SM
97152020-01-17 Simon Marchi <simon.marchi@efficios.com>
9716
9717 * python/py-inferior.c (build_inferior_list): Remove.
9718 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9719
40c94099
CB
97202020-01-16 Christian Biesinger <cbiesinger@google.com>
9721
9722 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9723 (btrace_stitch_trace): Likewise.
9724 * charset.c (intermediate_encoding): Likewise (vaild).
9725 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9726 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9727 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9728
e0cdfe3c
HD
97292020-01-16 Hannes Domani <ssbssa@yahoo.de>
9730
9731 * windows-tdep.c (windows_get_tlb_type):
9732 Add rtl_user_process_parameters type.
9733
790f1718 97342020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9735 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9736
9737 PR build/24805
9738 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9739 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9740 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9741 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9742 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9743 (ps_plog): Redeclare exported functions with default visibility.
9744
3112ed97
NA
97452020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9746
9747 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9748 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9749
8dc3273e
SM
97502020-01-15 Simon Marchi <simon.marchi@efficios.com>
9751
9752 * infcmd.c (post_create_inferior): Use get_thread_regcache
9753 instead of get_current_regcache.
9754
ff47f4f0
TT
97552020-01-14 Tom Tromey <tom@tromey.com>
9756
9757 PR symtab/12535:
9758 * python/python.c (gdbpy_decode_line): Treat empty string the same
9759 as no argument.
9760
975f45b7
TT
97612020-01-14 Tom Tromey <tom@tromey.com>
9762
9763 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9764
25e57356
TT
97652020-01-14 Tom Tromey <tom@tromey.com>
9766
9767 * nat/linux-btrace.c: Don't include <config.h>.
9768 * nat/linux-ptrace.c: Don't include <config.h>.
9769 * nat/x86-linux-dregs.c: Don't include <config.h>.
9770
05ea2a05
TT
97712020-01-14 Tom Tromey <tom@tromey.com>
9772
9773 * configure: Rebuild.
9774 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9775
01027315
TT
97762020-01-14 Tom Tromey <tom@tromey.com>
9777
9778 * nat/x86-linux-dregs.c: Include configh.h.
9779 * nat/linux-ptrace.c: Include configh.h.
9780 * nat/linux-btrace.c: Include configh.h.
9781 * defs.h: Include config.h, bfd.h.
9782 * configure.ac: Don't source common.host.
9783 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9784 * configure: Rebuild.
9785 * acinclude.m4: Update path.
9786 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9787 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9788 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9789 (CLIBS): Add LIBSUPPORT.
9790 (CDEPS): Likewise.
9791 (COMMON_SFILES): Remove gdbsupport files.
9792 (HFILES_NO_SRCDIR): Likewise.
9793 (stamp-version): Update path to create-version.sh.
9794 (ALLDEPFILES): Remove gdbsupport files.
9795
b2ceabe8
TT
97962020-01-14 Tom Tromey <tom@tromey.com>
9797
9798 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9799 USE_WIN32API when needed.
9800 * configure.ac (USE_WIN32API): Don't define.
9801 (WIN32LIBS): Use WIN32APILIBS.
9802 * configure: Rebuild.
9803
25c51f71
TT
98042020-01-14 Tom Tromey <tom@tromey.com>
9805
9806 * configure: Rebuild.
9807 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9808
717c684d
BE
98092020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9810
9811 * skip.c (skip_function_command): Make skip w/o arguments use the
9812 name of the inlined function if pc is inside any inlined function.
9813
7da6a5b9
LM
98142020-01-14 Luis Machado <luis.machado@linaro.org>
9815
9816 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9817 * infrun.c (resume_1): Likewise.
9818 (handle_inferior_event): Remove stale comment.
9819 * linux-nat.c (linux_nat_target::resume): Update comments.
9820 (save_stop_reason): Likewise.
9821 (linux_nat_filter_event): Likewise.
9822 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9823
44e4c775
AB
98242020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9825
9826 * elfread.c (record_minimal_symbol): Set section index to 0 for
9827 non-allocatable sections.
9828
18a8505e
AT
9829
98302020-01-13 Ali Tamur <tamur@google.com>
9831
9832 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9833 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9834 to gdb::optional. Update comments.
9835 (dwo_file): Update comments.
9836 (read_attribute): Update API to take an additional out parameter,
9837 need_reprocess. This is used to mark attributes that need other
9838 attributes (e.g. str_offsets_base) for correct computation which may not
9839 have been read yet.
9840 (read_attribute_reprocess): New function declaration.
9841 (read_addr_index): Likewise.
9842 (read_dwo_str_index): Likewise.
9843 (read_stub_str_index): Likewise.
9844 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9845 (lookup_addr_base): New function definition.
9846 (lookup_ranges_base): Likewise.
9847 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9848 lookup_ranges_base.
9849 (init_cutu_and_read_dies): Update comments.
9850 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9851 unit. This is used to inherit parent's str_offsets_base and addr_base.
9852 Update comments.
9853 (init_cutu_and_read_dies_simple): Reflect API changes.
9854 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9855 (create_cus_hash_table): Change API to take parent compile unit.
9856 Reflect API changes.
9857 (open_and_init_dwo_file): Reflect API changes.
9858 (dwarf2_get_pc_bounds): Update comments.
9859 (dwarf2_record_block_ranges): Likewise.
9860 (read_full_die_1): Change implementation to reprocess attributes that
9861 need str_offsets_base and addr_base.
9862 (partial_die_info::read): Likewise.
9863 (read_attribute_reprocess): New function definition.
9864 (read_attribute_value): Change API to take an additional out parameter,
9865 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9866 when a non-dwo compile unit has index based attributes.
9867 (read_attribute): Reflect API changes.
9868 (read_addr_index_1): Reflect API changes. Update comments.
9869 (dwarf2_read_addr_index_data): Reflect API changes.
9870 (dwarf2_read_addr_index): Likewise.
9871 (read_str_index): Change API and implementation. This becomes a helper
9872 to be used by the new string index related methods. Update error
9873 message and comments.
9874 (read_dwo_str_index): New function definition.
9875 (read_stub_str_index): Likewise.
9876 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9877 * symfile.h (dwarf2_debug_sections): Likewise.
9878 * xcoffread.c (dwarf2_debug_sections): Likewise.
9879
0cac9354
SM
98802020-01-13 Simon Marchi <simon.marchi@efficios.com>
9881
9882 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9883 core_reg_sect type to gdb_byte *.
9884 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9885 * cris-tdep.c (fetch_core_registers): Likewise.
9886 * corelow.c (core_target::get_core_register_section): Change
9887 type of `contents` to gdb::byte_vector.
9888
9a6d629c
AB
98892020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9890
9891 * tui/tui-wingeneral.c (box_win): Position the title in the center
9892 of the border.
9893
d8b2f9e3
SM
98942020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9895
9896 * corelow.c (core_target::get_core_register_section): Use
9897 std::vector instead of alloca.
9898
bb564c58
SM
98992020-01-13 Simon Marchi <simon.marchi@efficios.com>
9900
9901 * warning.m4: Add -Wmissing-declarations to build_warnings.
9902 * configure: Re-generate.
9903
6b366111
SM
99042020-01-13 Simon Marchi <simon.marchi@efficios.com>
9905
9906 * python/python.c (init__gdb_module): Add declaration.
9907
6c265988
SM
99082020-01-13 Simon Marchi <simon.marchi@efficios.com>
9909
9910 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9911 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9912 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9913 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9914 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9915 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9916 * ada-exp.y (_initialize_ada_exp): Add declaration.
9917 * ada-lang.c (_initialize_ada_language): Add declaration.
9918 * ada-tasks.c (_initialize_tasks): Add declaration.
9919 * agent.c (_initialize_agent): Add declaration.
9920 * aix-thread.c (_initialize_aix_thread): Add declaration.
9921 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9922 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9923 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9924 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9925 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9926 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9927 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9928 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9929 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9930 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9931 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9932 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9933 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9934 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9935 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9936 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9937 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9938 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9939 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9940 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9941 * annotate.c (_initialize_annotate): Add declaration.
9942 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9943 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9944 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9945 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9946 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9947 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9948 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9949 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9950 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9951 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9952 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9953 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9954 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9955 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9956 * auto-load.c (_initialize_auto_load): Add declaration.
9957 * auxv.c (_initialize_auxv): Add declaration.
9958 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9959 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9960 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9961 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9962 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9963 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9964 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9965 * breakpoint.c (_initialize_breakpoint): Add declaration.
9966 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9967 * btrace.c (_initialize_btrace): Add declaration.
9968 * charset.c (_initialize_charset): Add declaration.
9969 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9970 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9971 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9972 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9973 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9974 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9975 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9976 * coffread.c (_initialize_coffread): Add declaration.
9977 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9978 * compile/compile.c (_initialize_compile): Add declaration.
9979 * complaints.c (_initialize_complaints): Add declaration.
9980 * completer.c (_initialize_completer): Add declaration.
9981 * copying.c (_initialize_copying): Add declaration.
9982 * corefile.c (_initialize_core): Add declaration.
9983 * corelow.c (_initialize_corelow): Add declaration.
9984 * cp-abi.c (_initialize_cp_abi): Add declaration.
9985 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9986 * cp-support.c (_initialize_cp_support): Add declaration.
9987 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9988 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9989 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9990 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9991 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9992 * ctfread.c (_initialize_ctfread): Add declaration.
9993 * d-lang.c (_initialize_d_language): Add declaration.
9994 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9995 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9996 * dbxread.c (_initialize_dbxread): Add declaration.
9997 * dcache.c (_initialize_dcache): Add declaration.
9998 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9999 * disasm.c (_initialize_disasm): Add declaration.
10000 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10001 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10002 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10003 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10004 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10005 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10006 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10007 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10008 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10009 * elfread.c (_initialize_elfread): Add declaration.
10010 * exec.c (_initialize_exec): Add declaration.
10011 * extension.c (_initialize_extension): Add declaration.
10012 * f-lang.c (_initialize_f_language): Add declaration.
10013 * f-valprint.c (_initialize_f_valprint): Add declaration.
10014 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10015 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10016 * filesystem.c (_initialize_filesystem): Add declaration.
10017 * findcmd.c (_initialize_mem_search): Add declaration.
10018 * findvar.c (_initialize_findvar): Add declaration.
10019 * fork-child.c (_initialize_fork_child): Add declaration.
10020 * frame-base.c (_initialize_frame_base): Add declaration.
10021 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10022 * frame.c (_initialize_frame): Add declaration.
10023 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10024 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10025 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10026 * gcore.c (_initialize_gcore): Add declaration.
10027 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10028 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10029 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10030 * gdbarch.c (_initialize_gdbarch): Add declaration.
10031 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10032 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10033 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10034 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10035 * go-lang.c (_initialize_go_language): Add declaration.
10036 * go32-nat.c (_initialize_go32_nat): Add declaration.
10037 * guile/guile.c (_initialize_guile): Add declaration.
10038 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10039 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10040 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10041 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10042 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10043 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10044 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10045 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10046 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10047 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10048 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10049 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10050 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10051 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10052 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10053 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10054 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10055 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10056 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10057 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10058 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10059 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10060 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10061 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10062 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10063 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10064 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10065 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10066 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10067 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10068 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10069 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10070 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10071 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10072 * infcall.c (_initialize_infcall): Add declaration.
10073 * infcmd.c (_initialize_infcmd): Add declaration.
10074 * inflow.c (_initialize_inflow): Add declaration.
10075 * infrun.c (_initialize_infrun): Add declaration.
10076 * interps.c (_initialize_interpreter): Add declaration.
10077 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10078 * jit.c (_initialize_jit): Add declaration.
10079 * language.c (_initialize_language): Add declaration.
10080 * linux-fork.c (_initialize_linux_fork): Add declaration.
10081 * linux-nat.c (_initialize_linux_nat): Add declaration.
10082 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10083 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10084 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10085 * m2-lang.c (_initialize_m2_language): Add declaration.
10086 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10087 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10088 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10089 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10090 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10091 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10092 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10093 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10094 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10095 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10096 * machoread.c (_initialize_machoread): Add declaration.
10097 * macrocmd.c (_initialize_macrocmd): Add declaration.
10098 * macroscope.c (_initialize_macroscope): Add declaration.
10099 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10100 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10101 * maint.c (_initialize_maint_cmds): Add declaration.
10102 * mdebugread.c (_initialize_mdebugread): Add declaration.
10103 * memattr.c (_initialize_mem): Add declaration.
10104 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10105 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10106 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10107 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10108 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10109 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10110 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10111 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10112 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10113 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10114 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10115 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10116 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10117 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10118 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10119 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10120 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10121 * mipsread.c (_initialize_mipsread): Add declaration.
10122 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10123 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10124 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10125 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10126 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10127 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10128 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10129 * nto-procfs.c (_initialize_procfs): Add declaration.
10130 * objc-lang.c (_initialize_objc_language): Add declaration.
10131 * observable.c (_initialize_observer): Add declaration.
10132 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10133 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10134 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10135 * osabi.c (_initialize_gdb_osabi): Add declaration.
10136 * osdata.c (_initialize_osdata): Add declaration.
10137 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10138 * parse.c (_initialize_parse): Add declaration.
10139 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10140 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10141 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10142 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10143 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10144 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10145 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10146 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10147 * printcmd.c (_initialize_printcmd): Add declaration.
10148 * probe.c (_initialize_probe): Add declaration.
10149 * proc-api.c (_initialize_proc_api): Add declaration.
10150 * proc-events.c (_initialize_proc_events): Add declaration.
10151 * proc-service.c (_initialize_proc_service): Add declaration.
10152 * procfs.c (_initialize_procfs): Add declaration.
10153 * producer.c (_initialize_producer): Add declaration.
10154 * psymtab.c (_initialize_psymtab): Add declaration.
10155 * python/python.c (_initialize_python): Add declaration.
10156 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10157 * record-btrace.c (_initialize_record_btrace): Add declaration.
10158 * record-full.c (_initialize_record_full): Add declaration.
10159 * record.c (_initialize_record): Add declaration.
10160 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10161 * regcache.c (_initialize_regcache): Add declaration.
10162 * reggroups.c (_initialize_reggroup): Add declaration.
10163 * remote-notif.c (_initialize_notif): Add declaration.
10164 * remote-sim.c (_initialize_remote_sim): Add declaration.
10165 * remote.c (_initialize_remote): Add declaration.
10166 * reverse.c (_initialize_reverse): Add declaration.
10167 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10168 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10169 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10170 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10171 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10172 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10173 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10174 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10175 Add declaration.
10176 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10177 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10178 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10179 * rust-exp.y (_initialize_rust_exp): Add declaration.
10180 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10181 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10182 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10183 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10184 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10185 * score-tdep.c (_initialize_score_tdep): Add declaration.
10186 * ser-go32.c (_initialize_ser_dos): Add declaration.
10187 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10188 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10189 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10190 * ser-uds.c (_initialize_ser_socket): Add declaration.
10191 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10192 * serial.c (_initialize_serial): Add declaration.
10193 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10194 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10195 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10196 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10197 * skip.c (_initialize_step_skip): Add declaration.
10198 * sol-thread.c (_initialize_sol_thread): Add declaration.
10199 * solib-aix.c (_initialize_solib_aix): Add declaration.
10200 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10201 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10202 * solib-frv.c (_initialize_frv_solib): Add declaration.
10203 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10204 * solib-target.c (_initialize_solib_target): Add declaration.
10205 * solib.c (_initialize_solib): Add declaration.
10206 * source-cache.c (_initialize_source_cache): Add declaration.
10207 * source.c (_initialize_source): Add declaration.
10208 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10209 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10210 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10211 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10212 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10213 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10214 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10215 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10216 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10217 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10218 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10219 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10220 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10221 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10222 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10223 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10224 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10225 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10226 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10227 * stabsread.c (_initialize_stabsread): Add declaration.
10228 * stack.c (_initialize_stack): Add declaration.
10229 * stap-probe.c (_initialize_stap_probe): Add declaration.
10230 * std-regs.c (_initialize_frame_reg): Add declaration.
10231 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10232 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10233 * symfile.c (_initialize_symfile): Add declaration.
10234 * symmisc.c (_initialize_symmisc): Add declaration.
10235 * symtab.c (_initialize_symtab): Add declaration.
10236 * target.c (_initialize_target): Add declaration.
10237 * target-connection.c (_initialize_target_connection): Add
10238 declaration.
10239 * target-dcache.c (_initialize_target_dcache): Add declaration.
10240 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10241 * thread.c (_initialize_thread): Add declaration.
10242 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10243 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10244 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10245 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10246 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10247 * tracectf.c (_initialize_ctf): Add declaration.
10248 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10249 * tracefile.c (_initialize_tracefile): Add declaration.
10250 * tracepoint.c (_initialize_tracepoint): Add declaration.
10251 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10252 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10253 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10254 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10255 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10256 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10257 * tui/tui.c (_initialize_tui): Add declaration.
10258 * typeprint.c (_initialize_typeprint): Add declaration.
10259 * ui-style.c (_initialize_ui_style): Add declaration.
10260 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10261 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10262 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10263 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10264 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10265 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10266 * unittests/filtered_iterator-selftests.c
10267 (_initialize_filtered_iterator_selftests): Add declaration.
10268 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10269 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10270 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10271 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10272 * unittests/main-thread-selftests.c
10273 (_initialize_main_thread_selftests): Add declaration.
10274 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10275 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10276 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10277 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10278 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10279 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10280 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10281 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10282 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10283 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10284 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10285 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10286 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10287 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10288 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10289 declaration.
10290 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10291 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10292 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10293 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10294 * user-regs.c (_initialize_user_regs): Add declaration.
10295 * utils.c (_initialize_utils): Add declaration.
10296 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10297 * valops.c (_initialize_valops): Add declaration.
10298 * valprint.c (_initialize_valprint): Add declaration.
10299 * value.c (_initialize_values): Add declaration.
10300 * varobj.c (_initialize_varobj): Add declaration.
10301 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10302 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10303 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10304 * windows-nat.c (_initialize_windows_nat): Add declaration.
10305 (_initialize_check_for_gdb_ini): Add declaration.
10306 (_initialize_loadable): Add declaration.
10307 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10308 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10309 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10310 * xcoffread.c (_initialize_xcoffread): Add declaration.
10311 * xml-support.c (_initialize_xml_support): Add declaration.
10312 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10313 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10314 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10315 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10316
e2de1eec
SM
103172020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10318
10319 * regformats/regdat.sh: Generate declaration for init function.
10320
e0037b4c
SM
103212020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10322
10323 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10324 up.
10325 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10326 close_one_inferior>: New methods.
10327 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10328 pass down target to find_inferior_pid.
10329 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10330 Pass down target to find_inferior_ptid.
10331 (gdbsim_target::create_inferior): Pass down target to
10332 add_thread_silent.
10333 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10334 target down to find_inferior_ptid and switch_to_thread.
10335 (gdbsim_target::close): Update to call close_one_inferior.
10336 (struct resume_data): Remove.
10337 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10338 directly, rather than through a void pointer.
10339 (gdbsim_target::resume): Update to call resume_one_inferior.
10340
58920b5b
SM
103412020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10342
10343 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10344
4ec89149
PA
103452020-01-12 Pedro Alves <palves@redhat.com>
10346
10347 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10348 directly for the current inferior instead of
10349 discard_all_inferiors.
10350 (discard_all_inferiors): Delete.
10351
7c392d1d
TT
103522020-01-11 Tom Tromey <tom@tromey.com>
10353
10354 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10355 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10356 deprecated_safe_get_selected_frame.
10357
d9ebdab7
TBA
103582020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10359
10360 * inferior.c (print_inferior): Switch inferior before printing it.
10361
f3c469b9
PA
103622020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10363 Pedro Alves <palves@redhat.com>
10364
10365 * progspace-and-thread.c (switch_to_program_space_and_thread):
10366 Assert there's an inferior for PSPACE. Use
10367 switch_to_inferior_no_thread to switch the inferior too.
10368 * progspace.c (program_space::~program_space): Call
10369 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10370 (program_space::free_all_objfiles): Don't call clear_symtab_users
10371 here.
10372 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10373
65c574f6
PA
103742020-01-10 Pedro Alves <palves@redhat.com>
10375
10376 * NEWS: Mention multi-target debugging, "info connections", and
10377 "add-inferior -no-connection".
10378
2f4fcf00
PA
103792020-01-10 Pedro Alves <palves@redhat.com>
10380
10381 * infrun.c: Include "target-connection.h".
10382 (check_multi_target_resumption): New.
10383 (proceed): Call it.
10384 * target-connection.c (make_target_connection_string): Make
10385 extern.
10386 * target-connection.h (make_target_connection_string): Declare.
10387
121b3efd
PA
103882020-01-10 Pedro Alves <palves@redhat.com>
10389
10390 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10391 * inferior.c (uiout_field_connection): New function.
10392 (print_inferior): Add new "connection-id" column.
10393 (add_inferior_command): Show connection number/string of added
10394 inferior.
10395 * process-stratum-target.h
10396 (process_stratum_target::connection_string): New virtual method.
10397 (process_stratum_target::connection_number): New field.
10398 * remote.c (remote_target::connection_string): New override.
10399 * target-connection.c: New file.
10400 * target-connection.h: New file.
10401 * target.c (decref_target): Remove process_stratum targets from
10402 the connection list.
10403 (target_stack::push): Add process_stratum targets to the
10404 connection list.
10405
4f837581
PA
104062020-01-10 Pedro Alves <palves@redhat.com>
10407
10408 Revert:
10409 2016-04-12 Pedro Alves <palves@redhat.com>
10410 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10411 Remove references to name.
10412 * serial.h (struct serial) <name>: Delete.
10413
f4ec508e
PA
104142020-01-10 Pedro Alves <palves@redhat.com>
10415
10416 * gdbarch-selftests.c (register_to_value_test): Remove "target
10417 already pushed" check.
10418
5b6d1e4f
PA
104192020-01-10 Pedro Alves <palves@redhat.com>
10420 John Baldwin <jhb@FreeBSD.org>
10421
10422 * aarch64-linux-nat.c
10423 (aarch64_linux_nat_target::thread_architecture): Adjust.
10424 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10425 (task_command_1): Likewise.
10426 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10427 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10428 (aix_thread_target::store_registers)
10429 (aix_thread_target::thread_alive): Adjust.
10430 * amd64-fbsd-tdep.c: Include "inferior.h".
10431 (amd64fbsd_get_thread_local_address): Pass down target.
10432 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10433 thread's gdbarch instead of target_gdbarch.
10434 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10435 get_last_target_status.
10436 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10437 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10438 inferiors.
10439 (update_inserted_breakpoint_locations): Skip if inferiors with no
10440 execution.
10441 (update_global_location_list): When handling moribund locations,
10442 find representative inferior for location's pspace, and use thread
10443 count of its process_stratum target.
10444 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10445 * bsd-uthread.c (bsd_uthread_target::wait): Use
10446 as_process_stratum_target and adjust thread_change_ptid and
10447 add_thread calls.
10448 (bsd_uthread_target::update_thread_list): Use
10449 as_process_stratum_target and adjust find_thread_ptid,
10450 thread_change_ptid and add_thread calls.
10451 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10452 find_thread_ptid call.
10453 * corelow.c (add_to_thread_list): Adjust add_thread call.
10454 (core_target_open): Adjust add_thread_silent and thread_count
10455 calls.
10456 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10457 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10458 * event-top.c (async_disconnect): Pop targets from all inferiors.
10459 * exec.c (add_target_sections): Push exec target on all inferiors
10460 sharing the program space.
10461 (remove_target_sections): Remove the exec target from all
10462 inferiors sharing the program space.
10463 (exec_on_vfork): New.
10464 * exec.h (exec_on_vfork): Declare.
10465 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10466 Pass it down.
10467 (fbsd_nat_target::update_thread_list): Adjust.
10468 (fbsd_nat_target::resume): Adjust.
10469 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10470 down.
10471 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10472 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10473 get_thread_arch_regcache call.
10474 * fork-child.c (gdb_startup_inferior): Pass target down to
10475 startup_inferior and set_executing.
10476 * gdbthread.h (struct process_stratum_target): Forward declare.
10477 (add_thread, add_thread_silent, add_thread_with_info)
10478 (in_thread_list): Add process_stratum_target parameter.
10479 (find_thread_ptid(inferior*, ptid_t)): New overload.
10480 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10481 parameter.
10482 (all_threads()): Delete overload.
10483 (all_threads, all_non_exited_threads): Add process_stratum_target
10484 parameter.
10485 (all_threads_safe): Use brace initialization.
10486 (thread_count): Add process_stratum_target parameter.
10487 (set_resumed, set_running, set_stop_requested, set_executing)
10488 (threads_are_executing, finish_thread_state): Add
10489 process_stratum_target parameter.
10490 (switch_to_thread): Use is_current_thread.
10491 * i386-fbsd-tdep.c: Include "inferior.h".
10492 (i386fbsd_get_thread_local_address): Pass down target.
10493 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10494 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10495 have_inferiors check.
10496 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10497 (inf_ptrace_target::attach): Adjust.
10498 * infcall.c (run_inferior_call): Adjust.
10499 * infcmd.c (run_command_1): Pass target to
10500 scoped_finish_thread_state.
10501 (proceed_thread_callback): Skip inferiors with no execution.
10502 (continue_command): Rename 'all_threads' local to avoid hiding
10503 'all_threads' function. Adjust get_last_target_status call.
10504 (prepare_one_step): Adjust set_running call.
10505 (signal_command): Use user_visible_resume_target. Compare thread
10506 pointers instead of inferior_ptid.
10507 (info_program_command): Adjust to pass down target.
10508 (attach_command): Mark target's 'thread_executing' flag.
10509 (stop_current_target_threads_ns): New, factored out from ...
10510 (interrupt_target_1): ... this. Switch inferior before making
10511 target calls.
10512 * inferior-iter.h
10513 (struct all_inferiors_iterator, struct all_inferiors_range)
10514 (struct all_inferiors_safe_range)
10515 (struct all_non_exited_inferiors_range): Filter on
10516 process_stratum_target too. Remove explicit.
10517 * inferior.c (inferior::inferior): Push dummy target on target
10518 stack.
10519 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10520 Add process_stratum_target parameter, and pass it down.
10521 (have_live_inferiors): Adjust.
10522 (switch_to_inferior_and_push_target): New.
10523 (add_inferior_command, clone_inferior_command): Handle
10524 "-no-connection" parameter. Use
10525 switch_to_inferior_and_push_target.
10526 (_initialize_inferior): Mention "-no-connection" option in
10527 the help of "add-inferior" and "clone-inferior" commands.
10528 * inferior.h: Include "process-stratum-target.h".
10529 (interrupt_target_1): Use bool.
10530 (struct inferior) <push_target, unpush_target, target_is_pushed,
10531 find_target_beneath, top_target, process_target, target_at,
10532 m_stack>: New.
10533 (discard_all_inferiors): Delete.
10534 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10535 (all_inferiors, all_non_exited_inferiors): Add
10536 process_stratum_target parameter.
10537 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10538 (target_last_proc_target): New global.
10539 (follow_fork_inferior): Push target on new inferior. Pass target
10540 to add_thread_silent. Call exec_on_vfork. Handle target's
10541 reference count.
10542 (follow_fork): Adjust get_last_target_status call. Also consider
10543 target.
10544 (follow_exec): Push target on new inferior.
10545 (struct execution_control_state) <target>: New field.
10546 (user_visible_resume_target): New.
10547 (do_target_resume): Call target_async.
10548 (resume_1): Set target's threads_executing flag. Consider resume
10549 target.
10550 (commit_resume_all_targets): New.
10551 (proceed): Also consider resume target. Skip threads of inferiors
10552 with no execution. Commit resumtion in all targets.
10553 (start_remote): Pass current inferior to wait_for_inferior.
10554 (infrun_thread_stop_requested): Consider target as well. Pass
10555 thread_info pointer to clear_inline_frame_state instead of ptid.
10556 (infrun_thread_thread_exit): Consider target as well.
10557 (random_pending_event_thread): New inferior parameter. Use it.
10558 (do_target_wait): Rename to ...
10559 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10560 down.
10561 (threads_are_resumed_pending_p, do_target_wait): New.
10562 (prepare_for_detach): Adjust calls.
10563 (wait_for_inferior): New inferior parameter. Handle it. Use
10564 do_target_wait_1 instead of do_target_wait.
10565 (fetch_inferior_event): Adjust. Switch to representative
10566 inferior. Pass target down.
10567 (set_last_target_status): Add process_stratum_target parameter.
10568 Save target in global.
10569 (get_last_target_status): Add process_stratum_target parameter and
10570 handle it.
10571 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10572 (context_switch): Check inferior_ptid == null_ptid before calling
10573 inferior_thread().
10574 (get_inferior_stop_soon): Pass down target.
10575 (wait_one): Rename to ...
10576 (poll_one_curr_target): ... this.
10577 (struct wait_one_event): New.
10578 (wait_one): New.
10579 (stop_all_threads): Adjust.
10580 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10581 event's target.
10582 (switch_back_to_stepped_thread): Also consider target.
10583 (print_stop_event): Update.
10584 (normal_stop): Update. Also consider the resume target.
10585 * infrun.h (wait_for_inferior): Remove declaration.
10586 (user_visible_resume_target): New declaration.
10587 (get_last_target_status, set_last_target_status): New
10588 process_stratum_target parameter.
10589 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10590 process_stratum_target parameter, and use it.
10591 (clear_inline_frame_state (thread_info*)): New.
10592 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10593 process_stratum_target parameter.
10594 (clear_inline_frame_state (thread_info*)): Declare.
10595 * linux-fork.c (delete_checkpoint_command): Pass target down to
10596 find_thread_ptid.
10597 (checkpoint_command): Adjust.
10598 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10599 instead of just tweaking inferior_ptid.
10600 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10601 (exit_lwp): Pass target down to find_thread_ptid.
10602 (attach_proc_task_lwp_callback): Pass target down to
10603 add_thread/set_running/set_executing.
10604 (linux_nat_target::attach): Pass target down to
10605 thread_change_ptid.
10606 (get_detach_signal): Pass target down to find_thread_ptid.
10607 Consider last target status's target.
10608 (linux_resume_one_lwp_throw, resume_lwp)
10609 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10610 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10611 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10612 (linux_nat_target::async_wait_fd): New.
10613 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10614 target down.
10615 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10616 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10617 * linux-thread-db.c (struct thread_db_info::process_target): New
10618 field.
10619 (add_thread_db_info): Save target.
10620 (get_thread_db_info): New process_stratum_target parameter. Also
10621 match target.
10622 (delete_thread_db_info): New process_stratum_target parameter.
10623 Also match target.
10624 (thread_from_lwp): Adjust to pass down target.
10625 (thread_db_notice_clone): Pass down target.
10626 (check_thread_db_callback): Pass down target.
10627 (try_thread_db_load_1): Always push the thread_db target.
10628 (try_thread_db_load, record_thread): Pass target down.
10629 (thread_db_target::detach): Pass target down. Always unpush the
10630 thread_db target.
10631 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10632 target down. Always unpush the thread_db target.
10633 (find_new_threads_callback, thread_db_find_new_threads_2)
10634 (thread_db_target::update_thread_list): Pass target down.
10635 (thread_db_target::pid_to_str): Pass current inferior down.
10636 (thread_db_target::get_thread_local_address): Pass target down.
10637 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10638 target down.
10639 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10640 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10641 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10642 (procfs_init_inferior): Rename to ...
10643 (procfs_target::procfs_init_inferior): ... this and adjust.
10644 (procfs_target::create_inferior, procfs_notice_thread)
10645 (procfs_do_thread_registers): Adjust.
10646 * ppc-fbsd-tdep.c: Include "inferior.h".
10647 (ppcfbsd_get_thread_local_address): Pass down target.
10648 * proc-service.c (ps_xfer_memory): Switch current inferior and
10649 program space as well.
10650 (get_ps_regcache): Pass target down.
10651 * process-stratum-target.c
10652 (process_stratum_target::thread_address_space)
10653 (process_stratum_target::thread_architecture): Pass target down.
10654 * process-stratum-target.h
10655 (process_stratum_target::threads_executing): New field.
10656 (as_process_stratum_target): New.
10657 * ravenscar-thread.c
10658 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10659 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10660 down.
10661 * record-btrace.c (record_btrace_target::info_record): Adjust.
10662 (record_btrace_target::record_method)
10663 (record_btrace_target::record_is_replaying)
10664 (record_btrace_target::fetch_registers)
10665 (get_thread_current_frame_id, record_btrace_target::resume)
10666 (record_btrace_target::wait, record_btrace_target::stop): Pass
10667 target down.
10668 * record-full.c (record_full_wait_1): Switch to event thread.
10669 Pass target down.
10670 * regcache.c (regcache::regcache)
10671 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10672 process_stratum_target parameter and handle it.
10673 (current_thread_target): New global.
10674 (get_thread_regcache): Add process_stratum_target parameter and
10675 handle it. Switch inferior before calling target method.
10676 (get_thread_regcache): Pass target down.
10677 (get_thread_regcache_for_ptid): Pass target down.
10678 (registers_changed_ptid): Add process_stratum_target parameter and
10679 handle it.
10680 (registers_changed_thread, registers_changed): Pass target down.
10681 (test_get_thread_arch_aspace_regcache): New.
10682 (current_regcache_test): Define a couple local test_target_ops
10683 instances and use them for testing.
10684 (readwrite_regcache): Pass process_stratum_target parameter.
10685 (cooked_read_test, cooked_write_test): Pass mock_target down.
10686 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10687 (get_thread_arch_aspace_regcache): Add process_stratum_target
10688 parameter.
10689 (regcache::target): New method.
10690 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10691 (regcache::registers_changed_ptid): Add process_stratum_target
10692 parameter.
10693 (regcache::m_target): New field.
10694 (registers_changed_ptid): Add process_stratum_target parameter.
10695 * remote.c (remote_state::supports_vCont_probed): New field.
10696 (remote_target::async_wait_fd): New method.
10697 (remote_unpush_and_throw): Add remote_target parameter.
10698 (get_current_remote_target): Adjust.
10699 (remote_target::remote_add_inferior): Push target.
10700 (remote_target::remote_add_thread)
10701 (remote_target::remote_notice_new_inferior)
10702 (get_remote_thread_info): Pass target down.
10703 (remote_target::update_thread_list): Skip threads of inferiors
10704 bound to other targets. (remote_target::close): Don't discard
10705 inferiors. (remote_target::add_current_inferior_and_thread)
10706 (remote_target::process_initial_stop_replies)
10707 (remote_target::start_remote)
10708 (remote_target::remote_serial_quit_handler): Pass down target.
10709 (remote_target::remote_unpush_target): New remote_target
10710 parameter. Unpush the target from all inferiors.
10711 (remote_target::remote_unpush_and_throw): New remote_target
10712 parameter. Pass it down.
10713 (remote_target::open_1): Check whether the current inferior has
10714 execution instead of checking whether any inferior is live. Pass
10715 target down.
10716 (remote_target::remote_detach_1): Pass down target. Use
10717 remote_unpush_target.
10718 (extended_remote_target::attach): Pass down target.
10719 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10720 (remote_target::append_resumption): Pass down target.
10721 (remote_target::append_pending_thread_resumptions)
10722 (remote_target::remote_resume_with_hc, remote_target::resume)
10723 (remote_target::commit_resume): Pass down target.
10724 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10725 (remote_target::interrupt_query)
10726 (remote_target::remove_new_fork_children)
10727 (remote_target::check_pending_events_prevent_wildcard_vcont)
10728 (remote_target::remote_parse_stop_reply)
10729 (remote_target::process_stop_reply): Pass down target.
10730 (first_remote_resumed_thread): New remote_target parameter. Pass
10731 it down.
10732 (remote_target::wait_as): Pass down target.
10733 (unpush_and_perror): New remote_target parameter. Pass it down.
10734 (remote_target::readchar, remote_target::remote_serial_write)
10735 (remote_target::getpkt_or_notif_sane_1)
10736 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10737 down target.
10738 (remote_target::mourn_inferior): Pass down target. Use
10739 remote_unpush_target.
10740 (remote_target::core_of_thread)
10741 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10742 (remote_target::pid_to_exec_file)
10743 (remote_target::thread_handle_to_thread_info): Pass down target.
10744 (remote_target::async_wait_fd): New.
10745 * riscv-fbsd-tdep.c: Include "inferior.h".
10746 (riscv_fbsd_get_thread_local_address): Pass down target.
10747 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10748 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10749 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10750 Adjust.
10751 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10752 * solib-svr4.c (enable_break): Pass down target.
10753 * spu-multiarch.c (parse_spufs_run): Pass down target.
10754 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10755 * target-delegates.c: Regenerate.
10756 * target.c (g_target_stack): Delete.
10757 (current_top_target): Return the current inferior's top target.
10758 (target_has_execution_1): Refer to the passed-in inferior's top
10759 target.
10760 (target_supports_terminal_ours): Check whether the initial
10761 inferior was already created.
10762 (decref_target): New.
10763 (target_stack::push): Incref/decref the target.
10764 (push_target, push_target, unpush_target): Adjust.
10765 (target_stack::unpush): Defref target.
10766 (target_is_pushed): Return bool. Adjust to refer to the current
10767 inferior's target stack.
10768 (dispose_inferior): Delete, and inline parts ...
10769 (target_preopen): ... here. Only dispose of the current inferior.
10770 (target_detach): Hold strong target reference while detaching.
10771 Pass target down.
10772 (target_thread_name): Add assertion.
10773 (target_resume): Pass down target.
10774 (target_ops::beneath, find_target_at): Adjust to refer to the
10775 current inferior's target stack.
10776 (get_dummy_target): New.
10777 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10778 has a thread running.
10779 (initialize_targets): Rename to ...
10780 (_initialize_target): ... this.
10781 * target.h: Include "gdbsupport/refcounted-object.h".
10782 (struct target_ops): Inherit refcounted_object.
10783 (target_ops::shortname, target_ops::longname): Make const.
10784 (target_ops::async_wait_fd): New method.
10785 (decref_target): Declare.
10786 (struct target_ops_ref_policy): New.
10787 (target_ops_ref): New typedef.
10788 (get_dummy_target): Declare function.
10789 (target_is_pushed): Return bool.
10790 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10791 (all_matching_threads_iterator::all_matching_threads_iterator):
10792 Handle filter target.
10793 * thread-iter.h (struct all_matching_threads_iterator, struct
10794 all_matching_threads_range, class all_non_exited_threads_range):
10795 Filter by target too. Remove explicit.
10796 * thread.c (threads_executing): Delete.
10797 (inferior_thread): Pass down current inferior.
10798 (clear_thread_inferior_resources): Pass down thread pointer
10799 instead of ptid_t.
10800 (add_thread_silent, add_thread_with_info, add_thread): Add
10801 process_stratum_target parameter. Use it for thread and inferior
10802 searches.
10803 (is_current_thread): New.
10804 (thread_info::deletable): Use it.
10805 (find_thread_ptid, thread_count, in_thread_list)
10806 (thread_change_ptid, set_resumed, set_running): New
10807 process_stratum_target parameter. Pass it down.
10808 (set_executing): New process_stratum_target parameter. Pass it
10809 down. Adjust reference to 'threads_executing'.
10810 (threads_are_executing): New process_stratum_target parameter.
10811 Adjust reference to 'threads_executing'.
10812 (set_stop_requested, finish_thread_state): New
10813 process_stratum_target parameter. Pass it down.
10814 (switch_to_thread): Also match inferior.
10815 (switch_to_thread): New process_stratum_target parameter. Pass it
10816 down.
10817 (update_threads_executing): Reimplement.
10818 * top.c (quit_force): Pop targets from all inferior.
10819 (gdb_init): Don't call initialize_targets.
10820 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10821 Declare.
10822 (windows_add_thread, windows_delete_thread): Adjust.
10823 (get_windows_debug_event): Rename to ...
10824 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10825 * tracefile-tfile.c (tfile_target_open): Pass down target.
10826 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10827 Forward declare.
10828 (switch_to_thread): Add process_stratum_target parameter.
10829 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10830 parameter. Use it.
10831 (mi_on_resume): Pass target down.
10832 * nat/fork-inferior.c (startup_inferior): Add
10833 process_stratum_target parameter. Pass it down.
10834 * nat/fork-inferior.h (startup_inferior): Add
10835 process_stratum_target parameter.
10836 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10837
75c6c844
PA
108382020-01-10 Pedro Alves <palves@redhat.com>
10839
10840 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10841 directly. Instead find the first thread in the thread list and
10842 use switch_to_thread.
10843
78f2c40a
PA
108442020-01-10 Pedro Alves <palves@redhat.com>
10845
10846 * remote.c (remote_target::remote_add_inferior): Don't bind a
10847 process to the current inferior if the current inferior is already
10848 bound to a process.
10849
e7af6c70
TBA
108502020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10851 Pedro Alves <palves@redhat.com>
10852
10853 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10854 If no process is specified, return null_ptid instead of
10855 inferior_ptid.
10856 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10857 TARGET_WAITKIND_SIGNALLED with no pid.
10858
31ba933e
PA
108592020-01-10 Pedro Alves <palves@redhat.com>
10860
10861 * remote.c (first_remote_resumed_thread): New.
10862 (remote_target::wait_as): Use it as default event_ptid instead of
10863 inferior_ptid.
10864
735fc2ca
PA
108652020-01-10 Pedro Alves <palves@redhat.com>
10866
10867 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10868
c17e02e1
PA
108692020-01-10 Pedro Alves <palves@redhat.com>
10870
10871 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10872 not -1.
10873
ab1ddbcf
PA
108742020-01-10 Pedro Alves <palves@redhat.com>
10875
10876 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10877 ptid to get_last_target_status.
10878 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10879 ptid to get_last_target_status.
10880 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10881 get_last_target_status.
10882 (info_program_command): Don't pass a target_waitstatus to
10883 get_last_target_status.
10884 * infrun.c (init_wait_for_inferior): Use
10885 nullify_last_target_wait_ptid.
10886 (get_last_target_status): Handle nullptr arguments.
10887 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10888 (print_stop_event): Don't pass a ptid to get_last_target_status.
10889 (normal_stop): Don't pass a ptid to get_last_target_status.
10890 * infrun.h (get_last_target_status, set_last_target_status): Move
10891 comments here and update.
10892 (nullify_last_target_wait_ptid): Declare.
10893 * linux-fork.c (fork_load_infrun_state): Remove local extern
10894 declaration of nullify_last_target_wait_ptid.
10895 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10896 to get_last_target_status.
10897
f3f8ece4
PA
108982020-01-10 Pedro Alves <palves@redhat.com>
10899
10900 * gdbthread.h (scoped_restore_current_thread)
10901 <dont_restore, restore, m_dont_restore>: Declare.
10902 * thread.c (thread_alive): Add assertion. Return bool.
10903 (switch_to_thread_if_alive): New.
10904 (prune_threads): Switch inferior/thread.
10905 (print_thread_info_1): Switch thread before calling target methods.
10906 (scoped_restore_current_thread::restore): New, factored out from
10907 ...
10908 (scoped_restore_current_thread::~scoped_restore_current_thread):
10909 ... this.
10910 (scoped_restore_current_thread::scoped_restore_current_thread):
10911 Add assertion.
10912 (thread_apply_all_command, thread_select): Use
10913 switch_to_thread_if_alive.
10914 * infrun.c (proceed, restart_threads, handle_signal_stop)
10915 (switch_back_to_stepped_thread): Switch current thread before
10916 calling target methods.
10917
db2d40f7
PA
109182020-01-10 Pedro Alves <palves@redhat.com>
10919
10920 * inferior.c (switch_to_inferior_no_thread): New function,
10921 factored out from ...
10922 (inferior_command): ... here.
10923 * inferior.h (switch_to_inferior_no_thread): Declare.
10924 * mi/mi-main.c (run_one_inferior): Use
10925 switch_to_inferior_no_thread.
10926
bd420a2d
PA
109272020-01-10 Pedro Alves <palves@redhat.com>
10928
10929 * infcmd.c (kill_command): Remove dead code.
10930
ddf5db90
PA
109312020-01-10 Pedro Alves <palves@redhat.com>
10932
10933 * remote.c (remote_target::mourn_inferior): No longer check
10934 whether the target is running.
10935
5018ce90
PA
109362020-01-10 Pedro Alves <palves@redhat.com>
10937
10938 * corelow.c (core_target::has_execution): Change parameter type to
10939 inferior pointer.
10940 * inferior.c (number_of_live_inferiors): Use
10941 inferior::has_execution instead of target_has_execution_1.
10942 * inferior.h (inferior::has_execution): New.
10943 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10944 inferior::has_execution instead of target_has_execution_1.
10945 * process-stratum-target.c
10946 (process_stratum_target::has_execution): Change parameter type to
10947 inferior pointer. Check the inferior's PID instead of
10948 inferior_ptid.
10949 * process-stratum-target.h
10950 (process_stratum_target::has_execution): Change parameter type to
10951 inferior pointer.
10952 * record-full.c (record_full_core_target::has_execution): Change
10953 parameter type to inferior pointer.
10954 * target.c (target_has_execution_1): Change parameter type to
10955 inferior pointer.
10956 (target_has_execution_current): Adjust.
10957 * target.h (target_ops::has_execution): Change parameter type to
10958 inferior pointer.
10959 (target_has_execution_1): Change parameter type to inferior
10960 pointer. Change return type to bool.
10961 * tracefile.h (tracefile_target::has_execution): Change parameter
10962 type to inferior pointer.
10963
74375d18
PA
109642020-01-10 Pedro Alves <palves@redhat.com>
10965
10966 * exceptions.c (print_flush): Remove current_top_target() check.
10967
acdf84a6
PA
109682020-01-10 Pedro Alves <palves@redhat.com>
10969
10970 * remote.c (show_remote_exec_file): Show the current inferior's
10971 exec-file instead of the command variable's value.
10972
ec506636
PA
109732020-01-10 Pedro Alves <palves@redhat.com>
10974
10975 * record-full.c (record_full_resume_ptid): New global.
10976 (record_full_target::resume): Set it.
10977 (record_full_wait_1): Use record_full_resume_ptid instead of
10978 inferior_ptid.
10979
873657b9
PA
109802020-01-10 Pedro Alves <palves@redhat.com>
10981
10982 * gdbthread.h (scoped_restore_current_thread)
10983 <dont_restore, restore, m_dont_restore>: Declare.
10984 * thread.c (thread_alive): Add assertion. Return bool.
10985 (switch_to_thread_if_alive): New.
10986 (prune_threads): Switch inferior/thread.
10987 (print_thread_info_1): Switch thread before calling target methods.
10988 (scoped_restore_current_thread::restore): New, factored out from
10989 ...
10990 (scoped_restore_current_thread::~scoped_restore_current_thread):
10991 ... this.
10992 (scoped_restore_current_thread::scoped_restore_current_thread):
10993 Add assertion.
10994 (thread_apply_all_command, thread_select): Use
10995 switch_to_thread_if_alive.
10996
7f0ae84c
GB
109972020-01-10 George Barrett <bob@bob131.so>
10998
10999 * stap-probe.c (stap_modify_semaphore): Don't check for null
11000 semaphores.
11001 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11002 for null semaphores.
11003
f5a7c406
AB
110042020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11005
11006 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11007 all source windows, and maintain horizontal scroll status while
11008 doing so.
11009
9ae6bf64
TT
110102020-01-09 Tom Tromey <tom@tromey.com>
11011
11012 PR tui/18932:
11013 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11014 update_source_window, not print_source_lines.
11015
b2efe70c
AB
110162020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11017
11018 * tui/tui.c (tui_enable): Register tui hooks after calling
11019 tui_display_main.
11020
5f23a082
CB
110212020-01-09 Christian Biesinger <cbiesinger@google.com>
11022
11023 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11024
3061113b
SM
110252020-01-08 Simon Marchi <simon.marchi@efficios.com>
11026
11027 * thread.c (print_thread_info_1): Fix indentation.
11028
57d75002
CB
110292020-01-09 Christian Biesinger <cbiesinger@google.com>
11030
11031 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11032 unique_xmalloc_ptr outside the if to always free the demangled name.
11033
6a053cb1
TT
110342020-01-08 Tom Tromey <tromey@adacore.com>
11035
11036 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11037 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11038 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11039 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11040 Remove.
11041 (section_offsets): New typedef.
11042 * symtab.c (fixup_section, get_msymbol_address): Update.
11043 * symmisc.c (dump_msymbols): Update.
11044 * symfile.h (relative_addr_info_to_section_offsets)
11045 (symfile_map_offsets_to_segments): Update.
11046 * symfile.c (build_section_addr_info_from_objfile)
11047 (init_objfile_sect_indices): Update.
11048 (struct place_section_arg): Change type of "offsets".
11049 (place_section): Update.
11050 (relative_addr_info_to_section_offsets): Change type of
11051 "section_offsets". Remove "num_sections" parameter.
11052 (default_symfile_offsets, syms_from_objfile_1)
11053 (set_objfile_default_section_offset): Update.
11054 (reread_symbols): No need to preserve section offsets by hand.
11055 (symfile_map_offsets_to_segments): Change type of "offsets".
11056 * stap-probe.c (relocate_address): Update.
11057 * stabsread.h (process_one_symbol): Update.
11058 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11059 (solib_target_relocate_section_addresses): Update.
11060 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11061 Update.
11062 * solib-frv.c (frv_relocate_main_executable): Update.
11063 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11064 * solib-aix.c (solib_aix_get_section_offsets): Change return
11065 type.
11066 (solib_aix_solib_create_inferior_hook): Update.
11067 * remote.c (remote_target::get_offsets): Update.
11068 * psymtab.c (find_pc_sect_psymtab): Update.
11069 * psympriv.h (struct partial_symbol) <address, text_low,
11070 text_high>: Update.
11071 * objfiles.h (obj_section_offset): Update.
11072 (struct objfile) <section_offsets>: Change type.
11073 <num_sections>: Remove.
11074 (objfile_relocate): Update.
11075 * objfiles.c (entry_point_address_query): Update
11076 (relocate_one_symbol): Change type of "section_offsets".
11077 (objfile_relocate1, objfile_relocate1): Change type of
11078 "new_offsets".
11079 (objfile_rebase1): Update.
11080 * mipsread.c (mipscoff_symfile_read): Update.
11081 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11082 parameter.
11083 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11084 (parse_external, psymtab_to_symtab_1): Update.
11085 * machoread.c (macho_symfile_offsets): Update.
11086 * ia64-tdep.c (ia64_find_unwind_table): Update.
11087 * hppa-tdep.c (read_unwind_info): Update.
11088 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11089 * dwarf2read.c (create_addrmap_from_index)
11090 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11091 (process_psymtab_comp_unit_reader, add_partial_symbol)
11092 (add_partial_subprogram, process_full_comp_unit)
11093 (read_file_scope, read_func_scope, read_lexical_block_scope)
11094 (read_call_site_scope, dwarf2_rnglists_process)
11095 (dwarf2_ranges_process, dwarf2_ranges_read)
11096 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11097 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11098 Update.
11099 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11100 Update.
11101 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11102 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11103 (process_one_symbol): Change type of "section_offsets".
11104 * ctfread.c (get_objfile_text_range): Update.
11105 * coffread.c (coff_symtab_read, enter_linenos)
11106 (process_coff_symbol): Update.
11107 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11108 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11109
456e800a
TT
111102020-01-08 Tom Tromey <tromey@adacore.com>
11111
11112 * dwarf2read.c (parse_macro_definition): Use std::string.
11113 (parse_macro_definition): Likewise.
11114
6dfa2fc2
TT
111152020-01-08 Tom Tromey <tromey@adacore.com>
11116
11117 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11118 (ATTR_ALLOC_CHUNK): Remove.
11119
421d1616
TT
111202020-01-08 Tom Tromey <tromey@adacore.com>
11121
11122 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11123
43816ebc
TT
111242020-01-08 Tom Tromey <tromey@adacore.com>
11125
11126 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11127 (dwarf2_compute_name, open_dwo_file): Likewise.
11128 (process_enumeration_scope): Use std::vector.
11129 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11130 (partial_die_info::fixup, dwarf2_start_subfile)
11131 (guess_full_die_structure_name, dwarf2_name): Likewise.
11132 (determine_prefix): Update.
11133 (guess_full_die_structure_name): Make return type const.
11134 (partial_die_full_name): Return unique_xmalloc_ptr.
11135 (DW_FIELD_ALLOC_CHUNK): Remove.
11136
4212d509
TT
111372020-01-07 Tom Tromey <tromey@adacore.com>
11138
11139 PR build/24937:
11140 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11141
06a6207a
JT
111422020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11143
11144 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11145
153d79c4
AB
111462020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11147
11148 * stack.c (print_frame_info): Move disassemble_next_line code
11149 inside source_print block.
11150
66182876
EZ
111512020-01-06 Eli Zaretskii <eliz@gnu.org>
11152
11153 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11154 gdb/signals.h, as we are now using native signal symbols.
11155
cbfa8581
SV
111562020-01-06 Shahab Vahedi <shahab@synopsys.com>
11157
11158 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11159 overflow by an early check of content vs threshold.
aac66a4c 11160 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11161 Likewise.
11162
3f602821
EZ
111632020-01-06 Eli Zaretskii <eliz@gnu.org>
11164
11165 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11166
a08c904d
JT
111672020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11168
11169 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11170 export table if no section contains it's RVA.
11171
89a65580
EZ
111722020-01-06 Eli Zaretskii <eliz@gnu.org>
11173
11174 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11175
8b7fcda2
HD
111762020-01-06 Hannes Domani <ssbssa@yahoo.de>
11177
11178 * source.c (print_source_lines_base): Set last_line_listed.
11179
a61b4f69
SV
111802020-01-06 Shahab Vahedi <shahab@synopsys.com>
11181
11182 * tui/tui-disasm.c: Remove trailing spaces.
11183
559e7e50
EZ
111842020-01-06 Eli Zaretskii <eliz@gnu.org>
11185 Pedro Alves <palves@redhat.com>
11186
11187 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11188 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11189 (windows_gdb_signal_to_target): New function, uses the above
11190 enumeration to convert GDB internal signal codes to equivalent
11191 Windows codes.
11192 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11193 * windows-nat.c: Include "gdb_wait.h".
11194 (get_windows_debug_event): Extract the fatal exception from the
11195 exit status and convert to the equivalent Posix signal number.
11196 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11197 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11198 * gdbsupport/gdb_wait.c: New file, implements
11199 windows_status_to_termsig.
11200 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11201 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11202
f2302a34
AB
112032020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11204
11205 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11206 show_layout.
11207
6a5206eb
LM
112082020-01-05 Luis Machado <luis.machado@linaro.org>
11209
11210 * aarch64-linux-nat.c
11211 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11212 and bfd_mach_aarch64.
11213
6ec1d75e
PW
112142020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11215
11216 * ui-file.c (stdio_file::can_emit_style_escape)
11217 (tee_file::can_emit_style_escape): Ensure style is used also on
11218 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11219 to gdb_stdout.
11220 * main.c (set_gdb_data_directory): Use file style to output the
11221 warning that the given pathname is not a directory.
11222 * top.c (show_history_filename, gdb_safe_append_history)
11223 (show_gdb_datadir): Use file style.
11224
44f81a76
HD
112252020-01-03 Hannes Domani <ssbssa@yahoo.de>
11226
11227 * solib-target.c (struct lm_info_target):
11228 Change offsets to be a unique_xmalloc_ptr.
11229 (solib_target_relocate_section_addresses): Update.
11230
25057eb0
HD
112312020-01-03 Hannes Domani <ssbssa@yahoo.de>
11232
11233 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11234
6e2118f5
BE
112352020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11236
11237 * MAINTAINERS (Write After Approval): Add myself.
11238
8133c7dc
LM
112392020-01-02 Luis Machado <luis.machado@linaro.org>
11240
11241 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11242 Cell BE architecture.
11243 * target.h (struct target_ops) <thread_architecture>: Likewise.
11244
48189bec
HD
112452020-01-01 Hannes Domani <ssbssa@yahoo.de>
11246
11247 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11248
ead1063b
HD
112492020-01-01 Hannes Domani <ssbssa@yahoo.de>
11250
11251 * MAINTAINERS (Write After Approval): Add myself.
11252
e5d78223
JB
112532020-01-01 Joel Brobecker <brobecker@adacore.com>
11254
11255 * gdbarch.sh: Update copyright year range of generated files.
11256
b811d2c2
JB
112572020-01-01 Joel Brobecker <brobecker@adacore.com>
11258
11259 Update copyright year range in all GDB files.
11260
5f4def5c
JB
112612020-01-01 Joel Brobecker <brobecker@adacore.com>
11262
11263 * copyright.py: Convert to Python 3.
11264
51fd4002
JB
112652020-01-01 Joel Brobecker <brobecker@adacore.com>
11266
11267 * copyright.py: Adapt after move of gnulib directory from gdb
11268 directory to toplevel directory.
11269
5fb651f2
JB
112702020-01-01 Joel Brobecker <brobecker@adacore.com>
11271
11272 * copyright.py (main): Exit if run from the wrong directory.
11273
5dd8bf88
JB
112742020-01-01 Joel Brobecker <brobecker@adacore.com>
11275
11276 * top.c (print_gdb_version): Change copyright year to 2020.
11277
9f71dacb 112782020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11279
9f71dacb 11280 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11281
9f71dacb 11282For older changes see ChangeLog-2019.
c906108c
SS
11283\f
11284Local Variables:
11285mode: change-log
11286left-margin: 8
11287fill-column: 74
11288version-control: never
57da7796 11289coding: utf-8
c906108c 11290End: