]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Adjust corefile.exp test to show regression after bfd hack removal
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
32fa152e
TT
12020-07-22 Tom Tromey <tromey@adacore.com>
2
3 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4 lookup_symbol_search_name.
5
a67a1c41
AB
62020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * python/py-registers.c (gdbpy_register_object_data_init): Remove
9 redundant local variable.
10 (gdbpy_get_register_descriptor): Extract descriptor vector as a
11 reference, not pointer, update code accordingly.
12
a7b4ff4f
SM
132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15
16 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
17 * jit.c (jit_breakpoint_re_set_internal): Use the
18 `skip_jit_symbol_lookup` field.
19
2340e834
SM
202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
22
23 * jit.c (jit_read_descriptor): Define the descriptor address once,
24 use twice.
25 (jit_breakpoint_deleted): Move the declaration of the loop variable
26 `iter` into the loop header.
27 (jit_breakpoint_re_set_internal): Move the declaration of the local
28 variable `objf_data` to the first point of definition.
29 (jit_event_handler): Move the declaration of local variables
30 `code_entry`, `entry_addr`, and `objf` to their first point of use.
31 Rename `objf` to `jited`.
32
c1072906
SM
332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
36 Remove.
37 * jit.c (get_jiter_objfile_data): Update.
38
c8474dc3
TBA
392020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
40 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * jit.c (struct jit_program_space_data): Remove.
43 (jit_program_space_key): Remove.
44 (jiter_objfile_data::~jiter_objfile_data): Remove program space
45 stuff.
46 (get_jit_program_space_data): Remove.
47 (jit_breakpoint_deleted): Iterate on all of the program space's
48 objfiles.
49 (jit_inferior_init): Likewise.
50 (jit_breakpoint_re_set_internal): Likewise. Also change return
51 type to void.
52 (jit_breakpoint_re_set): Pass current_program_space to
53 jit_breakpoint_re_set_internal.
54
77208eb7
SM
552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * jit.h (struct jiter_objfile_data) <cached_code_address,
58 jit_breakpoint>: Move to here from ...
59 * jit.c (jit_program_space_data): ... here.
60 (jiter_objfile_data::~jiter_objfile_data): Update.
61 (jit_breakpoint_deleted): Update.
62 (jit_breakpoint_re_set_internal): Update.
63
8c1c720f
SM
642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
67 checks.
68 (jit_read_descriptor): Remove NULL check.
69 (jit_event_handler): Add an assertion.
70
0e74a041
SM
712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * jit.h (struct jit_objfile_data): Split into...
74 (struct jiter_objfile_data): ... this ...
75 (struct jited_objfile_data): ... and this.
76 * objfiles.h (struct objfile) <jit_data>: Remove.
77 <jiter_data, jited_data>: New fields.
78 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
79 (jiter_objfile_data::~jiter_objfile_data): ... this.
80 (get_jit_objfile_data): Rename to ...
81 (get_jiter_objfile_data): ... this.
82 (add_objfile_entry): Update.
83 (jit_read_descriptor): Use get_jiter_objfile_data.
84 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
85 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
86 (jit_inferior_exit_hook): Use objfile's jited_data field.
87
238b5c9f
SM
882020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
89
90 * jit.h: Forward-declare `struct minimal_symbol`.
91 (struct jit_objfile_data): Migrate to here from jit.c; also add a
92 constructor, destructor, and an objfile* field.
93 * jit.c (jit_objfile_data): Remove.
94 (struct jit_objfile_data): Migrate from here to jit.h.
95 (jit_objfile_data::~jit_objfile_data): New destructor
96 implementation with code moved from free_objfile_data.
97 (free_objfile_data): Delete.
98 (get_jit_objfile_data): Update to use the jit_data field of objfile.
99 (jit_find_objf_with_entry_addr): Ditto.
100 (jit_inferior_exit_hook): Ditto.
101 (_initialize_jit): Remove the call to
102 register_objfile_data_with_cleanup.
103 * objfiles.h (struct objfile) <jit_data>: New field.
104
fe053b9e
TBA
1052020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
106
107 * jit.h: Forward-declare `struct objfile`.
108 (jit_event_handler): Add a second parameter, the JITer objfile.
109 * jit.c (jit_read_descriptor): Change the signature to take the
110 JITer objfile as an argument instead of the jit_program_space_data.
111 (jit_inferior_init): Update the call to jit_read_descriptor.
112 (jit_event_handler): Use the new JITer objfile argument when calling
113 jit_read_descriptor.
114 * breakpoint.c (handle_jit_event): Update the call to
115 jit_event_handler to pass the JITer objfile.
116
4cec0c66
JB
1172020-07-21 John Baldwin <jhb@FreeBSD.org>
118
119 * gdbarch.c: Regenerate.
120 * gdbarch.h: Regenerate.
121 * gdbarch.sh (handle_segmentation_fault): Remove method.
122 * infrun.c (handle_segmentation_fault): Remove.
123 (print_signal_received_reason): Remove call to
124 handle_segmentation_fault.
125
0e42f66a
JB
1262020-07-21 John Baldwin <jhb@FreeBSD.org>
127
128 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
129 Rename to sparc64_linux_report_signal_info and add siggnal
130 argument.
131 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
132 instead of sparc64_linux_handle_segmentation_fault.
133
77bdfeb2
JB
1342020-07-21 John Baldwin <jhb@FreeBSD.org>
135
136 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
137 i386_linux_report_signal_info instead of
138 i386_linux_handle_segmentation_fault.
139 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
140 to i386_linux_report_signal_info and add siggnal argument.
141 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
142 of i386_linux_handle_segmentation_fault.
143 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
144 to i386_linux_report_signal_info and add siggnal argument.
145
ad97bfc5
JB
1462020-07-21 John Baldwin <jhb@FreeBSD.org>
147
148 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
149 hook if present.
150
272bb05c
JB
1512020-07-21 John Baldwin <jhb@FreeBSD.org>
152
153 * gdbarch.c: Regenerate.
154 * gdbarch.h: Regenerate.
155 * gdbarch.sh (report_signal_info): New method.
156 * infrun.c (print_signal_received_reason): Invoke gdbarch
157 report_signal_info hook if present.
158
baf8791e
AB
1592020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
160
161 * python/py-registers.c : Add 'unordered_map' include.
162 (gdbpy_new_reggroup): Renamed to...
163 (gdbpy_get_reggroup): ...this. Update to only create register
164 group descriptors when needed.
165 (gdbpy_reggroup_iter_next): Update.
166
f7306dac
AB
1672020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
168
169 * python/py-registers.c (gdbpy_register_object_data): New static
170 global.
171 (gdbpy_register_object_data_init): New function.
172 (gdbpy_new_register_descriptor): Renamed to...
173 (gdbpy_get_register_descriptor): ...this, and update to reuse
174 existing register descriptors where possible.
175 (gdbpy_register_descriptor_iter_next): Update.
176 (gdbpy_initialize_registers): Register new gdbarch data.
177
05c309a8
SM
1782020-07-21 Simon Marchi <simon.marchi@efficios.com>
179
180 * linux-nat.c (stopped_pids): Make static.
181
d1fd641e
SM
1822020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
183
184 PR ada/26235
185 * gdbtypes.c (ada_discrete_type_low_bound,
186 ada_discrete_type_high_bound): Handle undefined bounds.
187
1de14d77
KR
1882020-07-21 Kamil Rytarowski <n54@gmx.com>
189
190 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
191 declaration.
192 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
193 function.
194
ed810cc7
JB
1952020-07-20 John Baldwin <jhb@FreeBSD.org>
196
197 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
198 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
199 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
200 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
201 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
202 method.
203
ae5369e7
LC
2042020-07-20 Ludovic Courtès <ludo@gnu.org>
205
206 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
207 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
208 which are deprecated in Guile 3.0.
209 * configure.ac (try_guile_versions): Add "guile-3.0".
210 * configure (try_guile_versions): Regenerate.
211 * NEWS: Update entry.
212
68cf161c
LC
2132020-07-20 Ludovic Courtès <ludo@gnu.org>
214 Doug Evans <dje@google.com>
215
216 PR gdb/21104
217 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
218 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
219 USING_GUILE_BEFORE_2_2.
220 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
221 Change type to 'scm_t_port_type *'.
222 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
223 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
224 parameter and honor it. Update callers.
225 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
226 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
227 functions.
228 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
229 USING_GUILE_BEFORE_2_2.
230 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
231 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
232 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
233 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
234 and 'SCM_PORT_TYPE'.
235 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
236 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
237 (gdbscm_memory_port_read, gdbscm_memory_port_write)
238 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
239 [!USING_GUILE_BEFORE_2_2]: New functions.
240 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
241 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
242 'gdbscm_memory_port_read'.
243 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
244 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
245 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
246 function.
247 (ioscm_init_memory_port): Remove.
248 (ioscm_init_memory_port_stream): New function
249 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
250 function.
251 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
252 Return scm_from_uint (0).
253 (gdbscm_set_memory_port_read_buffer_size_x)
254 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
255 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
256 Return scm_from_uint (0).
257 (gdbscm_set_memory_port_write_buffer_size_x)
258 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
259 * configure.ac (try_guile_versions): Add "guile-2.2".
260 * configure: Regenerate.
261 * NEWS: Add entry.
262
aee91db3
TT
2632020-07-18 Tom Tromey <tom@tromey.com>
264
265 * linux-nat.c (linux_multi_process): Remove.
266 (linux_nat_target::supports_multi_process): Return true.
267
0e267416
AB
2682020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
269
270 * arch/riscv.c (riscv_tdesc_cache): Change map type.
271 (riscv_lookup_target_description): Return pointer out of
272 unique_ptr.
273 * target-descriptions.c (allocate_target_description): Add
274 comment.
275 (target_desc_deleter::operator()): Likewise.
276 * target-descriptions.h (struct target_desc_deleter): Moved to
277 gdbsupport/tdesc.h.
278 (target_desc_up): Likewise.
279
f80c8ec4
TT
2802020-07-17 Tom Tromey <tromey@adacore.com>
281
282 * linux-nat.c (linux_nat_target::supports_non_stop)
283 (linux_nat_target::always_non_stop_p): Use "true".
284 (linux_nat_target::supports_disable_randomization): Use "true" and
285 "false".
286
d0ce17d8
CT
2872020-07-16 Caroline Tice <cmtice@google.com>
288
289 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
290 (RNGLIST_HEADER_SIZE64): New constant definition.
291 (struct dwop_section_names): Add rnglists_dwo.
292 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
293 (struct loclist_header): Rename to 'loclists_rnglists_header'.
294 (struct dwo_sections): Add rnglists field.
295 (read_attribut_reprocess): Add tag parameter.
296 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
297 (cu_debug_rnglists_section): New function (decl & definition).
298 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
299 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
300 die whose range is being checked; get rnglist section from
301 cu_debug_rnglists_section, to get from either objfile or dwo file as
302 appropriate. Add cases for DW_RLE_base_addressx,
303 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
304 the base address to DW_RLE_offset_pairs (not to all ranges), moving
305 test inside if-condition and updating complaint message.
306 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
307 dwarf2_rnglists_process.
308 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
309 dwarf2_ranges_process.
310 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
311 need_ranges_base and update comment appropriately. Also pass die tag
312 to dwarf2_ranges_read.
313 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
314 need_ranges_base and update comment appropriately. Also pass die tag
315 to dwarf2_ranges_process.
316 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
317 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
318 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
319 need_ranges_base and update comment appropriately. Also pass die tag
320 to read_attribute_reprocess and dwarf2_ranges_read.
321 (read_loclist_header): Rename function to read_loclists_rnglists_header,
322 and update function comment appropriately.
323 (read_loclist_index): Call read_loclists_rnglists_header instead of
324 read_loclist_header.
325 (read_rnglist_index): New function.
326 (read_attribute_reprocess): Add tag parameter. Add code for
327 DW_FORM_rnglistx, passing tag to read_rnglist_index.
328 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
329
3dcc261c
AB
3302020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
331
332 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
333 being resolved.
334
ccb9eba6
AB
3352020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
336
337 * arch-utils.c (show_architecture): Update formatting of messages.
338
cf88be68
SM
3392020-07-12 Simon Marchi <simon.marchi@efficios.com>
340
341 * gdbtypes.h (struct type) <bounds>: Handle array and string
342 types.
343 * ada-lang.c (assign_aggregate): Use type::bounds on
344 array/string type.
345 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
346 * c-varobj.c (c_number_of_children): Likewise.
347 (c_describe_child): Likewise.
348 * eval.c (evaluate_subexp_for_sizeof): Likewise.
349 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
350 (f_type_print_base): Likewise.
351 * f-valprint.c (f77_array_offset_tbl): Likewise.
352 (f77_get_upperbound): Likewise.
353 (f77_print_array_1): Likewise.
354 * guile/scm-type.c (gdbscm_type_range): Likewise.
355 * m2-typeprint.c (m2_array): Likewise.
356 (m2_is_long_set_of_type): Likewise.
357 * m2-valprint.c (get_long_set_bounds): Likewise.
358 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
359 * python/py-type.c (typy_range): Likewise.
360 * rust-lang.c (rust_internal_print_type): Likewise.
361 * type-stack.c (type_stack::follow_types): Likewise.
362 * valarith.c (value_subscripted_rvalue): Likewise.
363 * valops.c (value_cast): Likewise.
364
509971ae
SM
3652020-07-12 Simon Marchi <simon.marchi@efficios.com>
366
367 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
368 callers to use the equivalent accessor methods.
369
107406b7
SM
3702020-07-12 Simon Marchi <simon.marchi@efficios.com>
371
372 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
373 (struct type) <bit_stride>: New method.
374 (TYPE_BIT_STRIDE): Remove.
375 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
376
bb789949
SM
3772020-07-12 Simon Marchi <simon.marchi@efficios.com>
378
379 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
380 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
381 callers to use the equivalent accessor methods instead.
382
39498edb
SM
3832020-07-12 Simon Marchi <simon.marchi@efficios.com>
384
385 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
386 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
387 callers to use the equivalent accessor methods instead.
388
3b606f38
SM
3892020-07-12 Simon Marchi <simon.marchi@efficios.com>
390
391 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
392 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
393 to use dynamic_prop::kind.
394
064d9cb9
SM
3952020-07-12 Simon Marchi <simon.marchi@efficios.com>
396
397 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
398 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
399 to get the bound property's kind and check against
400 PROP_UNDEFINED.
401
5537ddd0
SM
4022020-07-12 Simon Marchi <simon.marchi@efficios.com>
403
404 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
405 all callers to use type::range_bounds followed by
406 dynamic_prop::{low,high}.
407
8c2e4e06
SM
4082020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
411 const_val, set_const_val, baton, set_locexpr, set_loclist,
412 set_addr_offset, variant_parts, set_variant_parts,
413 original_type, set_original_type>: New methods.
414 <kind>: Rename to...
415 <m_kind>: ... this. Update all users to use the new methods
416 instead.
417 <data>: Rename to...
418 <m_data>: ... this. Update all users to use the new methods
419 instead.
420
7c6f2712
SM
4212020-07-12 Simon Marchi <simon.marchi@efficios.com>
422
423 * gdbtypes.c (get_discrete_bounds): Return failure if
424 the range type's bounds are not both defined and constant
425 values.
426 (get_array_bounds): Update comment. Remove undefined bound check.
427
599088e3
SM
4282020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
429
430 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
431 the type::bounds method directly.
432
c4dfcb36
SM
4332020-07-12 Simon Marchi <simon.marchi@efficios.com>
434
435 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
436 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
437 are used to set the range type's bounds to use set_bounds.
438
0a278aa7
PW
4392020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
440
441 * exec.c (_initialize_exec): Update exec-file-mismatch help.
442
cce20f10
PA
4432020-07-10 Pedro Alves <pedro@palves.net>
444
445 * gdbthread.h (inferior_ref): Define.
446 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
447 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
448 * thread.c
449 (scoped_restore_current_thread::restore):
450 Adjust to gdb::ref_ptr.
451 (scoped_restore_current_thread::~scoped_restore_current_thread):
452 Remove manual decref handling.
453 (scoped_restore_current_thread::scoped_restore_current_thread):
454 Adjust to use
455 inferior_ref::new_reference/thread_info_ref::new_reference.
456 Incref the thread before calling get_frame_id instead of after.
457 Let TARGET_CLOSE_ERROR propagate.
458
6d7aa592
PA
4592020-07-10 Pedro Alves <pedro@palves.net>
460
461 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
462 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
463 NOT_AVAILABLE_ERROR.
464 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
465 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
466
b3e3a4c1
SM
4672020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
468 Pedro Alves <pedro@palves.net>
469
470 PR gdb/26199
471 * infrun.c (threads_are_resumed_pending_p): Delete.
472 (do_target_wait): Remove threads_are_executing and
473 threads_are_resumed_pending_p checks from the inferior_matches
474 lambda. Update comments.
475
d6cc5d98
PA
4762020-07-10 Pedro Alves <pedro@palves.net>
477
478 PR gdb/26199
479 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
480 executing threads.
481
7d3badc6
PA
4822020-07-10 Pedro Alves <pedro@palves.net>
483
484 PR gdb/26199
485 * infrun.c (handle_no_resumed): Handle multiple targets.
486
42bd97a6
PA
4872020-07-10 Pedro Alves <pedro@palves.net>
488
489 PR gdb/26199
490 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
491 target_is_async_p.
492
43667cc6
PA
4932020-07-10 Pedro Alves <pedro@palves.net>
494
495 PR gdb/26199
496 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
497 threads, not all threads.
498
96118d11
PA
4992020-07-10 Pedro Alves <pedro@palves.net>
500
501 PR gdb/26199
502 * remote.c (remote_target::open_1): Pass remote target pointer as
503 data to create_async_event_handler.
504 (remote_async_inferior_event_handler): Mark async event handler
505 before returning if the remote target still has either pending
506 events or unacknowledged notifications.
507
54904d81
JB
5082020-07-10 John Baldwin <jhb@FreeBSD.org>
509
510 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
511 declaration.
512 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
513 function.
514
f37e5866
JB
5152020-07-09 John Baldwin <jhb@FreeBSD.org>
516
517 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
518 inferior_ptid.
519
fc238d4a
JB
5202020-07-09 John Baldwin <jhb@FreeBSD.org>
521
522 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
523 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
524 AT_FREEBSD_PS_STRINGS.
525
6e2469ff
HD
5262020-07-08 Hannes Domani <ssbssa@yahoo.de>
527
528 * auto-load.c (auto_load_objfile_script_1): Convert drive part
529 of debugfile path on Windows.
530
d1076c41
JB
5312020-07-08 John Baldwin <jhb@FreeBSD.org>
532
533 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
534 argument to 'data'.
535
15f3b077
TT
5362020-07-08 Tom Tromey <tromey@adacore.com>
537
538 * ada-lang.c (ada_exception_message_1): Use read_memory.
539
9fc501fd
AB
5402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 PR python/22748
543 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
544 special handling for inline frames.
545 * findvar.c (value_of_register_lazy): Skip inline frames when
546 creating lazy register values.
547 * frame.c (frame_id_computed_p): Delete definition.
548 * frame.h (frame_id_computed_p): Delete declaration.
549
64cb3757
AB
5502020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 * NEWS: Mention additions to Python API.
553 * python/py-arch.c (archpy_register_groups): New function.
554 (arch_object_methods): Add 'register_groups' method.
555 * python/py-registers.c (reggroup_iterator_object): New struct.
556 (reggroup_object): New struct.
557 (gdbpy_new_reggroup): New function.
558 (gdbpy_reggroup_to_string): New function.
559 (gdbpy_reggroup_name): New function.
560 (gdbpy_reggroup_iter): New function.
561 (gdbpy_reggroup_iter_next): New function.
562 (gdbpy_new_reggroup_iterator): New function
563 (gdbpy_initialize_registers): Register new types.
564 (reggroup_iterator_object_type): Define new Python type.
565 (gdbpy_reggroup_getset): New static global.
566 (reggroup_object_type): Define new Python type.
567 * python/python-internal.h
568
0f767f94
AB
5692020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
572 * python/py-arch.c (archpy_registers): New function.
573 (arch_object_methods): Add 'registers' method.
574 * python/py-registers.c: New file.
575 * python/python-internal.h
576 (gdbpy_new_register_descriptor_iterator): Declare.
577 (gdbpy_initialize_registers): Declare.
578 * python/python.c (do_start_initialization): Call
579 gdbpy_initialize_registers.
580 * NEWS: Mention additions to the Python API.
581
87dbc774
AB
5822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 * NEWS: Mention new Python API method.
585 * python/py-unwind.c (pending_framepy_architecture): New function.
586 (pending_frame_object_methods): Add architecture method.
587
3bc98c0c
AB
5882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * gdbarch.c: Regenerate.
591 * gdbarch.h: Regenerate.
592 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
593 (gdbarch_data): Use internal_error for the case where
594 deprecated_set_gdbarch_data was originally needed.
595 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
596 and use passed in obstack.
597 (libunwind_frame_set_descr): Should no longer get back NULL from
598 gdbarch_data.
599 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
600 type.
601 * user-regs.c (user_regs_init): Update parameters, and use passed
602 in obstack.
603 (user_reg_add): Should no longer get back NULL from gdbarch_data.
604 (_initialize_user_regs): Register as a pre-init gdbarch data type.
605
d8cc8af6
TV
6062020-07-06 Tom de Vries <tdevries@suse.de>
607
608 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
609 End-Of-Sequence in lte_is_less_than.
610 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
611 "gdb: Don't reorder line table entries too much when sorting".
612
947f7597
TV
6132020-07-06 Tom de Vries <tdevries@suse.de>
614
615 PR tui/26205
616 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
617
1e7c1b22
TV
6182020-07-05 Tom de Vries <tdevries@suse.de>
619
620 PR build/26187
621 * inferior.h (struct infcall_suspend_state_deleter): If available, use
622 std::uncaught_exceptions instead of deprecated
623 std::uncaught_exception.
624
a36158ec
SM
6252020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
626
627 * macroexp.h (macro_stringify): Return
628 gdb::unique_xmalloc_ptr<char>.
629 * macroexp.c (macro_stringify): Likewise.
630 * macrotab.c (fixup_definition): Update.
631
14d960c8
SM
6322020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
633
634 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
635 (lex_one_token): Update.
636 * macroexp.c (struct macro_buffer) <release>: Return
637 gdb::unique_xmalloc_ptr<char>.
638 (macro_stringify): Update.
639 (macro_expand): Update.
640 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
641 * macroexp.h (macro_expand_next): Likewise.
642
211d5b1c
SM
6432020-07-02 Simon Marchi <simon.marchi@efficios.com>
644
645 * macroexp.h (macro_lookup_ftype): Remove.
646 (macro_expand, macro_expand_once, macro_expand_next): Remove
647 lookup function parameters, add scope parameter.
648 * macroexp.c (scan, substitute_args, expand, maybe_expand,
649 macro_expand, macro_expand_once, macro_expand_next): Likewise.
650 * macroscope.h (standard_macro_lookup): Change parameter type
651 to macro_scope.
652 * macroscope.c (standard_macro_lookup): Likewise.
653 * c-exp.y (lex_one_token): Update.
654 * macrocmd.c (macro_expand_command): Likewise.
655 (macro_expand_once_command): Likewise.
656
b1a35af2
SM
6572020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * inf-loop.c (inferior_event_handler): Remove client_data param.
660 * inf-loop.h (inferior_event_handler): Likewise.
661 * infcmd.c (step_1): Adjust.
662 * infrun.c (proceed): Adjust.
663 (fetch_inferior_event): Remove client_data param.
664 (infrun_async_inferior_event_handler): Adjust.
665 * infrun.h (fetch_inferior_event): Remove `void *` param.
666 * linux-nat.c (handle_target_event): Adjust.
667 * record-btrace.c (record_btrace_handle_async_inferior_event):
668 Adjust.
669 * record-full.c (record_full_async_inferior_event_handler):
670 Adjust.
671 * remote.c (remote_async_inferior_event_handler): Adjust.
672
1cdf9e33
TT
6732020-07-01 Tom Tromey <tom@tromey.com>
674
675 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
676 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
677
32c1e210
TT
6782020-07-01 Tom Tromey <tom@tromey.com>
679
680 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
681 tui_gen_win_info.
682 (tui_win_info::make_window): Merge with
683 tui_gen_win_info::make_window.
684 (tui_win_info::make_visible): Move from tui_gen_win_info.
685 * tui/tui-win.c (tui_win_info::max_width): Move from
686 tui_gen_win_info.
687 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
688 type.
689 <window_factory>: Likewise.
690 * tui/tui-layout.c (tui_win_info::resize): Move from
691 tui_gen_win_info.
692 (make_standard_window): Change return type.
693 (get_locator_window, tui_get_window_by_name): Likewise.
694 (tui_layout_window::apply): Remove a cast.
695 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
696 (struct tui_win_info): Merge with tui_gen_win_info.
697 (struct tui_gen_win_info): Remove.
698
a30cb6da
TT
6992020-07-01 Tom Tromey <tom@tromey.com>
700
701 * tui/tui-stack.h (struct tui_locator_window): Derive from
702 tui_win_info.
703 <do_scroll_horizontal, do_scroll_vertical>: New methods.
704 <can_box>: New method.
705
1eb2161f
TT
7062020-07-01 Tom Tromey <tom@tromey.com>
707
708 * tui/tui-stack.h (struct tui_locator_window): Remove body.
709
7134f2eb
TT
7102020-07-01 Tom Tromey <tom@tromey.com>
711
712 * tui/tui-regs.c (tui_data_window::display_registers_from)
713 (tui_data_window::display_registers_from)
714 (tui_data_window::first_data_item_displayed)
715 (tui_data_window::delete_data_content_windows): Update.
716 (tui_data_window::refresh_window, tui_data_window::no_refresh):
717 Remove.
718 (tui_data_window::check_register_values): Update.
719 (tui_data_item_window::rerender): Add parameters. Update.
720 (tui_data_item_window::refresh_window): Remove.
721 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
722 virtual.
723 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
724 tui_gen_win_info.
725 <refresh_window, max_height, min_height>: Remove.
726 <rerender>: Add parameters.
727 <x, y, visible>: New members.
728 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
729 <m_item_width>: New member.
730
22b7b041
TT
7312020-07-01 Tom Tromey <tom@tromey.com>
732
733 * tui/tui-regs.c (tui_data_window::show_register_group)
734 (tui_data_window::check_register_values): Update.
735 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
736 from item_no.
737
c9753adb
TT
7382020-07-01 Tom Tromey <tom@tromey.com>
739
740 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
741 useless "if".
742
9ab26b4a
TT
7432020-07-01 Tom Tromey <tom@tromey.com>
744
745 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
746 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
747
e555083f
TT
7482020-07-01 Tom Tromey <tom@tromey.com>
749
750 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
751 * tui/tui-winsource.h (enum tui_line_or_address_kind)
752 (struct tui_line_or_address): Move from tui-data.h.
753 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
754 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
755 (tui_cmd_window, tui_source_window_base, tui_source_window)
756 (tui_disasm_window): Don't declare.
757 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
758 to tui-winsource.h.
759 (SINGLE_KEY): Move to tui-stack.c.
760
7a02bab7
TT
7612020-07-01 Tom Tromey <tom@tromey.com>
762
763 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
764 std::string.
765 * tui/tui-regs.c (class tab_expansion_file): New.
766 (tab_expansion_file::write): New method.
767 (tui_register_format): Change return type. Use
768 tab_expansion_file.
769 (tui_get_register, tui_data_window::display_registers_from)
770 (tui_data_item_window::rerender): Update.
771 * tui/tui-io.h (tui_expand_tabs): Don't declare.
772 * tui/tui-io.c (tui_expand_tabs): Remove.
773
ea68593b
TT
7742020-07-01 Tom Tromey <tom@tromey.com>
775
776 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
777
a8caed5d
FS
7782020-07-01 Fangrui Song <maskray@google.com>
779
780 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
781
9cdf9820
AKS
7822020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
783
784 * dwarf2/read.c (set_die_type): Removed conditions to restrict
785 forms for DW_AT_associated and DW_AT_allocated attributes,
786 which is already checked in function attr_to_dynamic_prop.
787
a1520ad8
TT
7882020-06-30 Tom Tromey <tromey@adacore.com>
789
790 * dwarf2/read.c (quirk_rust_enum): Correctly call
791 alloc_rust_variant for default-less enum.
792
5ac58899
TT
7932020-06-30 Tom Tromey <tromey@adacore.com>
794
795 PR build/26183:
796 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
797 gdb::to_string.
798
19b187a9
SM
7992020-06-29 Simon Marchi <simon.marchi@efficios.com>
800
801 * gdbarch.sh (displaced_step_copy_insn): Update doc.
802 * gdbarch.h: Re-generate.
803
cd4c4c07
TT
8042020-06-28 Tom Tromey <tom@tromey.com>
805
806 * command.h (cmd_types): Remove.
807 (cmd_type): Don't declare.
808 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
809 typedef.
810 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
811 * cli/cli-decode.c (cmd_type): Remove.
812
05779d57
PA
8132020-06-27 Pedro Alves <palves@redhat.com>
814
815 * fork-child.c (prefork_hook): Adjust.
816 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
817 Delete.
818 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
819 * inferior.c (inferior::set_tty, inferior::tty): New methods.
820 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
821 Remove declarations.
822 (struct inferior) <set_tty, tty>: New methods.
823 (struct inferior) <terminal>: Rename to ...
824 (struct inferior) <m_terminal>: ... this and make private.
825 * main.c (captured_main_1): Adjust.
826 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
827 (mi_cmd_inferior_tty_show): Adjust.
828 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
829 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
830
1776e3e5
NA
8312020-06-26 Nick Alcock <nick.alcock@oracle.com>
832
833 * configure.ac: Add --enable-libctf: handle --disable-static
834 properly.
835 * acinclude.m4: sinclude ../config/enable.m4.
836 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
837 (LIBCTF): Substitute in.
838 (CTF_DEPS): New, likewise.
839 (CLIBS): libctf needs symbols from libbfd: move earlier.
840 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
841 flags.
842 * ctfread.c: Surround in ENABLE_LIBCTF.
843 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
844 * configure: Regenerate.
845 * config.in: Likewise.
846
58373b80
SM
8472020-06-25 Simon Marchi <simon.marchi@efficios.com>
848
849 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
850
277474ee
SM
8512020-06-25 Simon Marchi <simon.marchi@efficios.com>
852
853 * inferior.h (struct inferior) <terminal>: Change type to
854 gdb::unique_xmalloc_ptr<char>.
855 * inferior.c (inferior::~inferior): Don't free inf->terminal.
856 * infcmd.c (set_inferior_io_terminal): Don't free terminal
857 field, adjust to unique pointer.
858 (get_inferior_io_terminal): Adjust to unique pointer.
859
6d74da72
AB
8602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
861
862 * riscv-tdep.c (riscv_print_registers_info): Loop over all
863 registers, not just the known core set of registers.
864
2e52d038
AB
8652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
868 fflags, frm, and fcsr registers.
869 (riscv_register_reggroup_p): Remove unknown CSRs from save and
870 restore groups.
871 (riscv_tdesc_unknown_reg): New function.
872 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
873 tdesc_use_registers.
874 * riscv-tdep.h (struct gdbarch_tdep): Add
875 unknown_csrs_first_regnum, unknown_csrs_count,
876 duplicate_fflags_regnum, duplicate_frm_regnum, and
877 duplicate_fcsr_regnum fields.
878
be64fd07
AB
8792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * target-descriptions.c (tdesc_use_registers): Add new parameter a
882 callback, use the callback (when not null) to help number unknown
883 registers.
884 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
885 (tdesc_use_registers): Add extra parameter to declaration.
886
3b9fce96
AB
8872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
888
889 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
890 in the file.
891 (class riscv_pending_register_alias): Likewise.
892 (riscv_register_feature::register_info): Change 'required_p' field
893 to 'required', and change its type. Add 'check' member function.
894 (riscv_register_feature::register_info::check): Define new member
895 function.
896 (riscv_xreg_feature): Change initialisation of 'required' field.
897 (riscv_freg_feature): Likewise.
898 (riscv_virtual_feature): Likewise.
899 (riscv_csr_feature): Likewise.
900 (riscv_check_tdesc_feature): Take extra parameter, the csr
901 tdesc_feature, rewrite the function to use the new
902 riscv_register_feature::register_info::check function.
903 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
904
865bad26
AB
9052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
906
907 * features/Makefile: Remove all references to the deleted files
908 below.
909 * features/riscv/32bit-csr.c: Deleted.
910 * features/riscv/32bit-csr.xml: Deleted.
911 * features/riscv/64bit-csr.c: Deleted.
912 * features/riscv/64bit-csr.xml: Deleted.
913 * features/riscv/rebuild-csr-xml.sh: Deleted.
914
ed69cbc8
AB
9152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
916
917 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
918 whitespace error for declaration of names member variable.
919 (struct riscv_register_feature): Add new prefer_first_name member
920 variable, and fix whitespace error in declaration of registers.
921 (riscv_xreg_feature): Initialize prefer_first_name field.
922 (riscv_freg_feature): Likewise.
923 (riscv_virtual_feature): Likewise.
924 (riscv_csr_feature): Likewise.
925 (riscv_register_name): Expand on comments. Remove register name
926 modifications for CSR and virtual registers.
927
4445e8f5
AB
9282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
929
930 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
931 errors.
932
767a879e
AB
9332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
936 riscv-opc.h.
937 (class riscv_pending_register_alias): New class.
938 (riscv_check_tdesc_feature): Take vector of pending aliases and
939 populate it as appropriate.
940 (riscv_setup_register_aliases): Delete.
941 (riscv_gdbarch_init): Create vector of pending aliases and pass it
942 to riscv_check_tdesc_feature in all cases. Use the vector to
943 create the register aliases.
944
bb6e55f3
RO
9452020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
946
947 * sol2-tdep.c (sol2_static_transform_name): Remove.
948 (sol2_init_abi): Don't register it.
949 * gdbarch.sh (static_transform_name): Remove.
950 * gdbarch.c, gdbarch.h: Regenerate.
951
952 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
953 gdbarch_static_transform_name.
954 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
955 * stabsread.c (define_symbol) <'X'>: Remove.
956 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
957 handling.
958 <'V'>: Likewise.
959 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
960 <'S'>: Remove call to gdbarch_static_transform_name.
961
c6d36836
RO
9622020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
963
964 * procfs.c (procfs_pre_trace): New function.
965 (procfs_target::create_inferior): Pass it to fork_inferior.
966
a7e6196b
RO
9672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
968
969 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
970 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
971 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
972 sol2-tdep.o, sparc-sol2-tdep.o.
973 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
974 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
975 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
976 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
977
d412e696
RO
9782020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
979
980 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
981 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
982 Call sol2_init_abi.
983 Remove calls to set_gdbarch_skip_solib_resolver,
984 set_gdbarch_core_pid_to_str.
985 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
986 (i386_sol2_static_transform_name): Remove.
987 (i386_sol2_init_abi): Call sol2_init_abi.
988 Remove calls to set_gdbarch_sofun_address_maybe_missing,
989 set_gdbarch_static_transform_name,
990 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
991 Use sol2_sigtramp_p.
992 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
993 (sol2_sigtramp_p): New function.
994 (sol2_static_transform_name): New function.
995 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
996 (sol2_init_abi): New function.
997 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
998 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
999 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1000 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1001 (sparc_sol2_static_transform_name): Remove.
1002 (sparc32_sol2_init_abi): Call sol2_init_abi.
1003 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1004 set_gdbarch_static_transform_name,
1005 set_gdbarch_skip_solib_resolver,
1006 set_gdbarch_core_pid_to_str.
1007 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1008 (sparc_sol2_static_transform_name): Remove
1009 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1010 call sol2_sigtramp_p.
1011 (sparc64_sol2_init_abi): Call sol2_init_abi.
1012 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1013 set_gdbarch_static_transform_name,
1014 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1015
a8654e7d
PW
10162020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1017
1018 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1019 * exec.c (validate_exec_file): If from_tty, set both
1020 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1021 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1022 and from_tty, unconditionally ask a confirmation.
1023
caa7fd04
AB
10242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1025
1026 * target-descriptions.c (tdesc_architecture_name): Protect against
1027 NULL pointer dereference.
1028 (maint_print_xml_tdesc_cmd): New function.
1029 (_initialize_target_descriptions): Register new 'maint print
1030 xml-tdesc' command and give it the filename completer.
1031 * NEWS: Mention new 'maint print xml-tdesc' command.
1032
fbf42f4e
AB
10332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * target-descriptions.c (class tdesc_compatible_info): New class.
1036 (struct target_desc): Change type of compatible vector.
1037 (tdesc_compatible_p): Update for change in type of
1038 target_desc::compatible.
1039 (tdesc_compatible_info_list): New function.
1040 (tdesc_compatible_info_arch_name): New function.
1041 (tdesc_add_compatible): Update for change in type of
1042 target_desc::compatible.
1043 (print_c_tdesc::visit_pre): Likewise.
1044
20821f4e
AB
10452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1046
1047 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1048 whitespace to underscore.
1049 (maint_print_c_tdesc_cmd): Use fake filename for target
1050 descriptions that came from the target.
1051 (_initialize_target_descriptions): Add filename command completion
1052 for 'maint print c-tdesc'.
1053
1fb5ee62
SM
10542020-06-23 Simon Marchi <simon.marchi@efficios.com>
1055
1056 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1057 lines.
1058
fc3ecb3e
SM
10592020-06-23 Simon Marchi <simon.marchi@efficios.com>
1060
1061 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1062 lines.
1063 (dwarf2_find_location_expression): Likewise.
1064 (call_site_parameter_matches): Likewise.
1065 (dwarf2_compile_expr_to_ax): Likewise.
1066 (disassemble_dwarf_expression): Likewise.
1067 (loclist_describe_location): Likewise.
1068
236ef034
PA
10692020-06-23 Pedro Alves <palves@redhat.com>
1070
1071 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1072 progspace-and-thread.h. Include scoped-mock-context.h instead.
1073 (register_to_value_test): Use scoped_mock_context.
1074 * regcache.c: Include "scoped-mock-context.h".
1075 (cooked_read_test): Don't error out if a target is already pushed.
1076 Use scoped_mock_context. Adjust.
1077 * scoped-mock-context.h: New file.
1078
39e7ecca
AB
10792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1080
1081 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1082 initializer.
1083 (ada_language::is_string_type_p): New member function.
1084 * c-lang.c (c_language_data): Delete la_is_string_type_p
1085 initializer.
1086 (cplus_language_data): Likewise.
1087 (asm_language_data): Likewise.
1088 (minimal_language_data): Likewise.
1089 * d-lang.c (d_language_data): Likewise.
1090 * f-lang.c (f_is_string_type_p): Delete function, implementation
1091 moved to f_language::is_string_type_p.
1092 (f_language_data): Delete la_is_string_type_p initializer.
1093 (f_language::is_string_type_p): New member function,
1094 implementation from f_is_string_type_p.
1095 * go-lang.c (go_is_string_type_p): Delete function, implementation
1096 moved to go_language::is_string_type_p.
1097 (go_language_data): Delete la_is_string_type_p initializer.
1098 (go_language::is_string_type_p): New member function,
1099 implementation from go_is_string_type_p.
1100 * language.c (language_defn::is_string_type_p): Define new member
1101 function.
1102 (default_is_string_type_p): Make static, add comment copied from
1103 header file.
1104 (unknown_language_data): Delete la_is_string_type_p initializer.
1105 (unknown_language::is_string_type_p): New member function.
1106 (auto_language_data): Delete la_is_string_type_p initializer.
1107 (auto_language::is_string_type_p): New member function.
1108 * language.h (language_data): Delete la_is_string_type_p field.
1109 (language_defn::is_string_type_p): Declare new function.
1110 (default_is_string_type_p): Delete desclaration, move comment to
1111 definition.
1112 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1113 moved to m2_language::is_string_type_p.
1114 (m2_language_data): Delete la_is_string_type_p initializer.
1115 (m2_language::is_string_type_p): New member function,
1116 implementation from m2_is_string_type_p.
1117 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1118 initializer.
1119 * opencl-lang.c (opencl_language_data): Likewise.
1120 * p-lang.c (pascal_is_string_type_p): Delete function,
1121 implementation moved to pascal_language::is_string_type_p.
1122 (pascal_language_data): Delete la_is_string_type_p initializer.
1123 (pascal_language::is_string_type_p): New member function,
1124 implementation from pascal_is_string_type_p.
1125 * rust-lang.c (rust_is_string_type_p): Delete function,
1126 implementation moved to rust_language::is_string_type_p.
1127 (rust_language_data): Delete la_is_string_type_p initializer.
1128 (rust_language::is_string_type_p): New member function,
1129 implementation from rust_is_string_type_p.
1130 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1131 is_string_type_p.
1132
4ffc13fb
AB
11332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 * ada-lang.c (ada_language_data): Delete la_print_typedef
1136 initializer.
1137 (ada_language::print_typedef): New member function.
1138 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1139 (cplus_language_data): Likewise.
1140 (asm_language_data): Likewise.
1141 (minimal_language_data): Likewise.
1142 * d-lang.c (d_language_data): Likewise.
1143 * f-lang.c (f_language_data): Likewise.
1144 (f_language::print_typedef): New member function.
1145 * go-lang.c (go_language_data): Delete la_print_typedef
1146 initializer.
1147 * language.c (language_defn::print_typedef): Define member
1148 function.
1149 (unknown_language_data): Delete la_print_typedef initializer.
1150 (unknown_language::print_typedef): New member function.
1151 (auto_language_data): Delete la_print_typedef initializer.
1152 (auto_language::print_typedef): New member function.
1153 * language.h (language_data): Delete la_print_typedef field.
1154 (language_defn::print_typedef): Declare new member function.
1155 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1156 (default_print_typedef): Delete declaration.
1157 * m2-lang.c (m2_language_data): Delete la_print_typedef
1158 initializer.
1159 (m2_language::print_typedef): New member function.
1160 * objc-lang.c (objc_language_data): Delete la_print_typedef
1161 initializer.
1162 * opencl-lang.c (opencl_language_data): Likewise.
1163 * p-lang.c (pascal_language_data): Likewise.
1164 (pascal_language::print_typedef): New member function.
1165 * rust-lang.c (rust_print_typedef): Delete function,
1166 implementation moved to rust_language::print_typedef.
1167 (rust_language): Delete la_print_typedef initializer.
1168 (rust_language::print_typedef): New member function,
1169 implementation from rust_print_typedef.
1170 * typeprint.c (default_print_typedef): Delete.
1171
d711ee67
AB
11722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1175 (ada_language::printstr): New member function.
1176 * c-lang.c (c_language_data): Delete la_printstr initializer.
1177 (cplus_language_data): Likewise.
1178 (asm_language_data): Likewise.
1179 (minimal_language_data): Likewise.
1180 * d-lang.c (d_language_data): Likewise.
1181 * f-lang.c (f_printstr): Rename to f_language::printstr.
1182 (f_language_data): Delete la_printstr initializer.
1183 (f_language::printstr): New member function, implementation from
1184 f_printstr.
1185 * go-lang.c (go_language_data): Delete la_printstr initializer.
1186 * language.c (language_defn::printstr): Define new member
1187 function.
1188 (unk_lang_printstr): Delete.
1189 (unknown_language_data): Delete la_printstr initializer.
1190 (unknown_language::printstr): New member function.
1191 (auto_language_data): Delete la_printstr initializer.
1192 (auto_language::printstr): New member function.
1193 * language.h (language_data): Delete la_printstr field.
1194 (language_defn::printstr): Declare new member function.
1195 (LA_PRINT_STRING): Update call to printstr.
1196 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1197 (m2_language_data): Delete la_printstr initializer.
1198 (m2_language::printstr): New member function, implementation from
1199 m2_printstr.
1200 * objc-lang.c (objc_language_data): Delete la_printstr
1201 initializer.
1202 * opencl-lang.c (opencl_language_data): Likewise.
1203 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1204 (pascal_language_data): Delete la_printstr initializer.
1205 (pascal_language::printstr): New member function, implementation
1206 from pascal_printstr.
1207 * p-lang.h (pascal_printstr): Delete declaration.
1208 * rust-lang.c (rust_printstr): Update header comment.
1209 (rust_language_data): Delete la_printstr initializer.
1210 (rust_language::printstr): New member function.
1211
52b50f2c
AB
12122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1213
1214 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1215 (ada_language::printchar): New member function.
1216 * c-lang.c (c_language_data): Delete la_printchar initializer.
1217 (cplus_language_data): Likewise.
1218 (asm_language_data): Likewise.
1219 (minimal_language_data): Likewise.
1220 * d-lang.c (d_language_data): Likewise.
1221 * f-lang.c (f_printchar): Rename to f_language::printchar.
1222 (f_language_data): Delete la_printchar initializer.
1223 (f_language::printchar): New member function, implementation from
1224 f_printchar.
1225 * go-lang.c (go_language_data): Delete la_printchar initializer.
1226 * language.c (unk_lang_printchar): Delete.
1227 (language_defn::printchar): Define new member function.
1228 (unknown_language_data): Delete la_printchar initializer.
1229 (unknown_language::printchar): New member function.
1230 (auto_language_data): Delete la_printchar initializer.
1231 (auto_language::printchar): New member function.
1232 * language.h (language_data): Delete la_printchar field.
1233 (language_defn::printchar): Declare new member function.
1234 (LA_PRINT_CHAR): Update call to printchar.
1235 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1236 (m2_language::printchar): New member function.
1237 * objc-lang.c (objc_language_data): Delete la_printchar
1238 initializer.
1239 * opencl-lang.c (opencl_language_data): Likewise.
1240 * p-lang.c (pascal_language_data): Delete la_printchar
1241 initializer.
1242 (pascal_language::printchar): New member function.
1243 * rust-lang.c (rust_printchar): Rename to
1244 rust_language::printchar.
1245 (rust_language_data): Delete la_printchar initializer.
1246 (rust_language::printchar): New member function, implementation
1247 from rust_printchar.
1248
ec8cec5b
AB
12492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1250
1251 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1252 (ada_language_data): Delete la_emitchar initializer.
1253 (ada_language::emitchar): New member function, implementation from
1254 emit_char.
1255 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1256 (cplus_language_data): Likewise.
1257 (asm_language_data): Likewise.
1258 (minimal_language_data): Likewise.
1259 * d-lang.c (d_language_data): Likewise.
1260 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1261 (f_language_data): Delete la_emitchar initializer.
1262 (f_language::emitchar): New member function, implementation from
1263 f_emit_char.
1264 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1265 * language.c (unk_lang_emit_char): Delete.
1266 (language_defn::emitchar): New member function definition.
1267 (unknown_language_data): Delete la_emitchar initializer.
1268 (unknown_language::emitchar): New member function.
1269 (auto_language_data): Delete la_emitchar initializer.
1270 (auto_language::emitchar): New member function.
1271 * language.h (language_data): Delete la_emitchar field.
1272 (language_defn::emitchar): New member field declaration.
1273 (LA_EMIT_CHAR): Update call to emitchar.
1274 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1275 (m2_language_data): Delete la_emitchar initializer.
1276 (m2_language::emitchar): New member function, implementation from
1277 m2_emit_char.
1278 * objc-lang.c (objc_language_data): Delete la_emitchar
1279 initializer.
1280 * opencl-lang.c (opencl_language_data): Likewise.
1281 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1282 (pascal_language_data): Delete la_emitchar initializer.
1283 (pascal_language::emitchar): New member function, implementation
1284 from pascal_emit_char.
1285 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1286 (rust_language_data): Delete la_emitchar initializer.
1287 (rust_language::emitchar): New member function, implementation
1288 from rust_emitchar.
1289
1bf9c363
AB
12902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1291
1292 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1293 (ada_language_data): Delete la_post_parser initializer.
1294 (ada_language::post_parser): New member function.
1295 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1296 (cplus_language_data): Likewise.
1297 (asm_language_data): Likewise.
1298 (minimal_language_data): Likewise.
1299 * d-lang.c (d_language_data): Likewise.
1300 * f-lang.c (f_language_data): Likewise.
1301 * go-lang.c (go_language_data): Likewise.
1302 * language.c (unknown_language_data): Likewise.
1303 (auto_language_data): Likewise.
1304 * language.h (language_data): Delete la_post_parser field.
1305 (language_defn::post_parser): New member function.
1306 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1307 * objc-lang.c (objc_language_data): Likewise.
1308 * opencl-lang.c (opencl_language_data): Likewise.
1309 * p-lang.c (pascal_language_data): Likewise.
1310 * parse.c (parse_exp_in_context): Update call to post_parser.
1311 (null_post_parser): Delete definition.
1312 * parser-defs.h (null_post_parser): Delete declaration.
1313 * rust-lang.c (rust_language_data): Delete la_post_parser
1314 initializer.
1315
87afa652
AB
13162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1317
1318 * ada-lang.c (parse): Rename to ada_language::parser.
1319 (ada_language_data): Delete la_parser initializer.
1320 (ada_language::parser): New member function, implementation from
1321 parse.
1322 * c-lang.c (c_language_data): Delete la_parser initializer.
1323 (cplus_language_data): Likewise.
1324 (asm_language_data): Likewise.
1325 (minimal_language_data): Likewise.
1326 * d-lang.c (d_language_data): Likewise.
1327 (d_language::parser): New member function.
1328 * f-lang.c (f_language_data): Delete la_parser initializer.
1329 (f_language::parser): New member function.
1330 * go-lang.c (go_language_data): Delete la_parser initializer.
1331 (go_language::parser): New member function.
1332 * language.c (unk_lang_parser): Delete.
1333 (language_defn::parser): Define new member function.
1334 (unknown_language_data): Delete la_parser initializer.
1335 (unknown_language::parser): New member function.
1336 (auto_language_data): Delete la_parser initializer.
1337 (auto_language::parser): New member function.
1338 * language.h (language_data): Delete la_parser field.
1339 (language_defn::parser): Declare new member function.
1340 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1341 (m2_language::parser): New member function.
1342 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1343 * opencl-lang.c (opencl_language_data): Likewise.
1344 * p-lang.c (pascal_language_data): Likewise.
1345 (pascal_language::parser): New member function.
1346 * parse.c (parse_exp_in_context): Update call to parser.
1347 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1348 (rust_language::parser): New member function.
1349
37825800
AB
13502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1351
1352 * top.c (print_gdb_configuration): Print --with-python-libdir
1353 configuration value.
1354
5b860c93
PW
13552020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1356
1357 * NEWS: Mention change to the alias command.
1358
cf00cd6f
PW
13592020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1360
1361 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1362 (alias_command_completer)
1363 (make_alias_options_def_group): New functions.
1364 (alias_opts, alias_option_defs): New struct and array.
1365 (alias_usage_error): Update usage.
1366 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1367 Use option framework.
1368 (_initialize_cli_cmds): Update alias command help.
1369 Update aliases command help.
1370 (show_user):
1371 Add NULL for new default_args lookup_cmd argument.
1372 (valid_command_p): Rename to validate_aliased_command.
1373 Add NULL for new default_args lookup_cmd argument. Verify that the
1374 aliased_command has no default args.
1375 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1376 (lookup_cmd_1, lookup_cmd): New argument default_args.
1377 (add_alias_cmd):
1378 Add NULL for new default_args lookup_cmd argument.
1379 (print_help_for_command): Show default args under the layout
1380 alias some_alias = some_aliased_cmd some_alias_default_arg.
1381 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1382 xfree default_args in destructor.
1383 * cli/cli-script.c (process_next_line, do_define_command):
1384 Add NULL for new default_args lookup_cmd argument.
1385 * command.h: Declare new default_args argument in lookup_cmd
1386 and lookup_cmd_1.
1387 * completer.c (complete_line_internal_1):
1388 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1389 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1390 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1391 Likewise.
1392 * infcmd.c (_initialize_infcmd): Likewise.
1393 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1394 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1395 * python/py-param.c (add_setshow_generic): Likewise.
1396 * remote.c (_initialize_remote): Likewise.
1397 * top.c (execute_command): Prepend default_args if command has some.
1398 (set_verbose):
1399 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1400 * tracepoint.c (validate_actionline, encode_actions_1):
1401 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1402
bd920864
TBA
14032020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1404
1405 * jit.c (jit_read_descriptor): Use bool as the return type.
1406 (jit_breakpoint_re_set_internal): Use bool as the return type.
1407 Invert the return value logic; return true if the jit breakpoint
1408 has been successfully initialized.
1409 (jit_inferior_init): Update the call to
1410 jit_breakpoint_re_set_internal.
1411
f8098322
PA
14122020-06-22 Pedro Alves <palves@redhat.com>
1413
1414 PR gdb/25939
1415 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1416 Use the current inferior instead. Don't return
1417 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1418 wait again.
1419 * sol-thread.c (sol_thread_target::wait): Don't reference
1420 inferior_ptid.
1421 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1422 (sol_update_thread_list_callback): Use the current inferior's pid
1423 instead of inferior_ptid.
1424
196535a6
RO
14252020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1426
1427 * procfs.c: Cleanup many comments.
1428
1429 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1430 (AFTER_WATCHFLAG): Replace by value.
1431
1432 (MAIN_PROC_NAME_FORMAT): Inline ...
1433 (create_procinfo): ... here.
1434
1435 (procfs_debug_inferior): Remove SYS_exec handling.
1436 (syscall_is_exec): Likewise.
1437 (procfs_set_exec_trap): Likewise.
1438
1439 (syscall_is_lwp_exit): Inline in callers.
1440 (syscall_is_exit): Likewise.
1441 (syscall_is_exec): Likewise.
1442 (syscall_is_lwp_create): Likewise.
1443
1444 (invalidate_cache): Remove #if 0 code.
1445
1446 (make_signal_thread_runnable): Remove.
1447 (procfs_target::resume): Remove #if 0 code.
1448
cf6f3e86
RO
14492020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1450
1451 PR gdb/25939
1452 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1453 call ...
1454 (procfs_target::create_inferior): ... here.
1455
48e9cc84
PW
14562020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1457
1458 * exec.c (validate_exec_file): Ensure the build-id is up to
1459 date by calling reopen_exec_file (that checks file timestamp
1460 to decide to re-read the file).
1461
3922b302
PA
14622020-06-18 Pedro Alves <palves@redhat.com>
1463
1464 PR gdb/25412
1465 * gdbthread.h (delete_thread, delete_thread_silent)
1466 (find_thread_ptid): Update comments.
1467 * thread.c (current_thread_): New global.
1468 (is_current_thread): Move higher, and reimplement.
1469 (inferior_thread): Reimplement.
1470 (set_thread_exited): Use bool. Add assertions.
1471 (add_thread_silent): Simplify thread-reuse handling by always
1472 calling delete_thread.
1473 (delete_thread): Remove intro comment.
1474 (find_thread_ptid): Skip exited threads.
1475 (switch_to_thread_no_regs): Write to current_thread_.
1476 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1477 INFERIOR_PTID. Clear current_thread_.
1478
6dbdab44
PA
14792020-06-18 Pedro Alves <palves@redhat.com>
1480
1481 * aix-thread.c (pd_update): Use switch_to_thread.
1482
2da4b788
PA
14832020-06-18 Pedro Alves <palves@redhat.com>
1484
1485 * ravenscar-thread.c (ravenscar_thread_target): Update.
1486 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1487 (ravenscar_thread_target::add_active_thread): ... this. Don't
1488 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1489 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1490
50838d1b
PA
14912020-06-18 Pedro Alves <palves@redhat.com>
1492
1493 * nat/windows-nat.c (current_windows_thread): Remove.
1494 * nat/windows-nat.h (current_windows_thread): Remove.
1495 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1496 Adjust.
1497 (display_selectors): Adjust to fetch the current
1498 windows_thread_info based on inferior_ptid.
1499 (fake_create_process): No longer write to current_windows_thread.
1500 (windows_nat_target::get_windows_debug_event):
1501 Don't set inferior_ptid or current_windows_thread.
1502 (windows_nat_target::wait): Adjust to not rely on
1503 current_windows_thread.
1504 (do_initial_windows_stuff): Now a method of windows_nat_target.
1505 Switch to the last_ptid thread.
1506 (windows_nat_target::attach): Adjust.
1507 (windows_nat_target::detach): Use switch_to_no_thread instead of
1508 writing to inferior_ptid directly.
1509 (windows_nat_target::create_inferior): Adjust.
1510
31ce04e9
PA
15112020-06-18 Pedro Alves <palves@redhat.com>
1512
1513 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1514
1ee1a363
PA
15152020-06-18 Pedro Alves <palves@redhat.com>
1516
1517 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1518 after creating it, instead of writing to inferior_ptid. Don't
1519 write to inferior_ptid.
1520
6d350754
PA
15212020-06-18 Pedro Alves <palves@redhat.com>
1522
1523 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1524
5d971d48
PA
15252020-06-18 Pedro Alves <palves@redhat.com>
1526
1527 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1528 it, instead of writing to inferior_ptid.
1529
86e57d1b
PA
15302020-06-18 Pedro Alves <palves@redhat.com>
1531
1532 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1533 to inferior_ptid.
1534
f2e1c129
PA
15352020-06-18 Pedro Alves <palves@redhat.com>
1536
1537 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1538 instead of writing to inferior_ptid directly.
1539
60db1b85
PA
15402020-06-18 Pedro Alves <palves@redhat.com>
1541
1542 * corelow.c (core_target::close): Use switch_to_no_thread instead
1543 of writing to inferior_ptid directly.
1544 (add_to_thread_list, core_target_open): Use switch_to_thread
1545 instead of writing to inferior_ptid directly.
1546
fe7d6a8d
PA
15472020-06-18 Pedro Alves <palves@redhat.com>
1548
1549 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1550 inferior_ptid.
1551 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1552 inferior_ptid.
1553 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1554 inferior_ptid directly.
1555 (darwin_nat_target::init_thread_list): Switch to thread, instead
1556 of writing to inferior_ptid.
1557 (darwin_nat_target::attach): Don't write to inferior_ptid.
1558 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1559
975f8708
PA
15602020-06-18 Pedro Alves <palves@redhat.com>
1561
1562 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1563 thread.
1564 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1565 Instead use switch_to_thread.
1566 (gnu_nat_target::detach): Use switch_to_no_thread
1567 instead of writing to inferior_ptid directly. Used passed-in
1568 inferior instead of looking up the inferior by pid.
1569
1a204730
PA
15702020-06-18 Pedro Alves <palves@redhat.com>
1571
1572 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1573 inferior_ptid.
1574
ebe84f23
PA
15752020-06-18 Pedro Alves <palves@redhat.com>
1576
1577 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1578 inferior_ptid.
1579 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1580 thread.
1581 (nto_procfs_target::detach): Avoid referencing
1582 inferior_ptid. Use switch_to_no_thread instead of writing to
1583 inferior_ptid directly.
1584 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1585 instead of writing to inferior_ptid directly.
1586 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1587 to thread.
1588
191f02e5
PA
15892020-06-18 Pedro Alves <palves@redhat.com>
1590
1591 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1592 after creating it, instead of writing to inferior_ptid.
1593 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1594 to inferior_ptid directly.
1595 (gdbsim_target::wait): Don't write to inferior_ptid.
1596
0ac55310
PA
15972020-06-18 Pedro Alves <palves@redhat.com>
1598
1599 * remote.c (remote_target::remote_notice_new_inferior): Use
1600 switch_to_thread instead of writing to inferior_ptid directly.
1601 (remote_target::add_current_inferior_and_thread): Use
1602 switch_to_no_thread instead of writing to inferior_ptid directly.
1603 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1604 and switch_to_thread instead of using set_current_inferior or
1605 writing to inferior_ptid directly.
1606
5233f39b
PA
16072020-06-18 Pedro Alves <palves@redhat.com>
1608
1609 * tracectf.c (ctf_target_open): Switch to added thread instead of
1610 writing to inferior_ptid directly.
1611 (ctf_target::close): Use switch_to_no_thread instead of writing to
1612 inferior_ptid directly.
1613
087e161b
PA
16142020-06-18 Pedro Alves <palves@redhat.com>
1615
1616 * tracefile-tfile.c (tfile_target_open): Don't write to
1617 inferior_ptid directly, instead switch to added thread.
1618 (tfile_target::close): Use switch_to_no_thread instead of writing
1619 to inferior_ptid directly.
1620
7fb43e53
PA
16212020-06-18 Pedro Alves <palves@redhat.com>
1622
1623 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1624 (procfs_target::detach): Use switch_to_no_thread
1625 instead of writing to inferior_ptid directly.
1626 (do_attach): Change return type to void. Switch to the added
1627 thread.
1628 (procfs_target::create_inferior): Switch to the added thread.
1629 (procfs_do_thread_registers): Don't write to inferior_ptid.
1630
18493a00
PA
16312020-06-18 Pedro Alves <palves@redhat.com>
1632
1633 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1634 of writing to inferior_ptid.
1635 (scoped_restore_exited_inferior): Delete.
1636 (handle_vfork_child_exec_or_exit): Simplify using
1637 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1638 instead of writing to inferior_ptid.
1639 (THREAD_STOPPED_BY): Delete.
1640 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1641 (thread_stopped_by_hw_breakpoint): Delete.
1642 (save_waitstatus): Use
1643 scoped_restore_current_thread+switch_to_thread, and call
1644 target_stopped_by_watchpoint instead of
1645 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1646 instead of thread_stopped_by_sw_breakpoint, and
1647 target_stopped_by_hw_breakpoint instead of
1648 thread_stopped_by_hw_breakpoint.
1649 (handle_inferior_event)
1650 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1651 inferior_ptid directly, nor
1652 set_current_inferior/set_current_program_space. Use
1653 switch_to_thread / switch_to_inferior_no_thread instead.
1654
a0776b13
PA
16552020-06-18 Pedro Alves <palves@redhat.com>
1656
1657 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1658 instead of writing to inferior_ptid.
1659
6155c136
PA
16602020-06-18 Pedro Alves <palves@redhat.com>
1661
1662 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1663 added thread.
1664 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1665 to the added thread.
1666 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1667 instead of writing to inferior_ptid.
1668
c5316fc6
PA
16692020-06-18 Pedro Alves <palves@redhat.com>
1670
1671 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1672 (register_to_value_test): Mock a program_space too. Heap-allocate
1673 the address space. Don't write to inferior_ptid. Use
1674 switch_to_thread instead.
1675
8df01799
PA
16762020-06-18 Pedro Alves <palves@redhat.com>
1677
1678 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1679 Delete.
1680 (find_signalled_thread()): New, factored out from
1681 linux_make_corefile_notes and adjusted to handle exited threads.
1682 (linux_make_corefile_notes): Adjust to use the new
1683 find_signalled_thread.
1684
41792d68
PA
16852020-06-18 Pedro Alves <palves@redhat.com>
1686
1687 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1688 of saving/restoring inferior_ptid.
1689
612f258a
TT
16902020-06-17 Tom Tromey <tom@tromey.com>
1691
1692 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1693 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1694 declare.
1695 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1696
efb763a5
SM
16972020-06-15 Simon Marchi <simon.marchi@efficios.com>
1698
1699 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1700 of partial symtabs.
1701
2951f6c0
SM
17022020-06-17 Simon Marchi <simon.marchi@efficios.com>
1703
1704 * regformats/reg-arm.dat: Remove.
1705 * regformats/reg-bfin.dat: Remove.
1706 * regformats/reg-cris.dat: Remove.
1707 * regformats/reg-crisv32.dat: Remove.
1708 * regformats/reg-m32r.dat: Remove.
1709 * regformats/reg-tilegx.dat: Remove.
1710 * regformats/reg-tilegx32.dat: Remove.
1711
7d458ea5
SM
17122020-06-17 Simon Marchi <simon.marchi@efficios.com>
1713
1714 * features/Makefile (WHICH): Remove arm files.
1715 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1716 * regformats/arm/arm-with-neon.dat: Remove.
1717 * regformats/arm/arm-with-vfpv2.dat: Remove.
1718 * regformats/arm/arm-with-vfpv3.dat: Remove.
1719
3af96c0d
SM
17202020-06-17 Simon Marchi <simon.marchi@efficios.com>
1721
1722 * features/Makefile (XMLTOC): Remove rx.xml.
1723
b25e22fd
PA
17242020-06-17 Pedro Alves <palves@redhat.com>
1725
1726 * gdbthread.h (thread_control_state) <trap_expected> Update
1727 comments.
1728
a78a19b1
AB
17292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1730
1731 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1732 ada_language::lookup_symbol_nonlocal.
1733 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1734 (ada_language::lookup_symbol_nonlocal): New member function,
1735 implementation from ada_lookup_symbol_nonlocal.
1736 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1737 initializer.
1738 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1739 initializer.
1740 (cplus_language::lookup_symbol_nonlocal): New member function.
1741 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1742 (minimal_language_data) Likewise.
1743 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1744 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1745 initializer.
1746 (d_language::lookup_symbol_nonlocal): New member function.
1747 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1748 initializer.
1749 (f_language::lookup_symbol_nonlocal): New member function.
1750 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1751 initializer.
1752 * language.c (unknown_language_data): Likewise.
1753 (auto_language_data): Likewise.
1754 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1755 field.
1756 (language_defn::lookup_symbol_nonlocal): New member function.
1757 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1758 initializer.
1759 * objc-lang.c (objc_language_data): Likewise.
1760 * opencl-lang.c (opencl_language_data): Likewise.
1761 * p-lang.c (pascal_language_data): Likewise.
1762 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1763 rust_language::lookup_symbol_nonlocal.
1764 (rust_language_data): Delete la_lookup_symbol_nonlocal
1765 initializer.
1766 (rust_language::lookup_symbol_nonlocal): New member function,
1767 implementation from rust_lookup_symbol_nonlocal.
1768 * symtab.c (lookup_symbol_aux): Update call to
1769 lookup_symbol_nonlocal.
1770 (basic_lookup_symbol_nonlocal): Rename to...
1771 (language_defn::lookup_symbol_nonlocal): ...this, and update
1772 header comment. Remove language_defn parameter, and replace with
1773 uses of `this'.
1774 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1775
ebe2334e
AB
17762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1779 initializer.
1780 (ada_language::value_print_inner): New member function.
1781 * c-lang.c (c_language_data): Delete la_value_print_inner
1782 initializer.
1783 (cplus_language_data): Likewise.
1784 (asm_language_data): Likewise.
1785 (minimal_language_data): Likewise.
1786 * d-lang.c (d_language_data): Likewise.
1787 (d_language::value_print_inner): New member function.
1788 * f-lang.c (f_language_data): Delete la_value_print_inner
1789 initializer.
1790 (f_language::value_print_inner): New member function.
1791 * f-lang.h (f_value_print_innner): Rename to...
1792 (f_value_print_inner): ...this (note spelling of 'inner').
1793 * f-valprint.c (f_value_print_innner): Rename to...
1794 (f_value_print_inner): ...this (note spelling of 'inner').
1795 * go-lang.c (go_language_data): Delete la_value_print_inner
1796 initializer.
1797 (go_language::value_print_inner): New member function.
1798 * language.c (language_defn::value_print_inner): Define new member
1799 function.
1800 (unk_lang_value_print_inner): Delete.
1801 (unknown_language_data): Delete la_value_print_inner initializer.
1802 (unknown_language::value_print_inner): New member function.
1803 (auto_language_data): Delete la_value_print_inner initializer.
1804 (auto_language::value_print_inner): New member function.
1805 * language.h (language_data): Delete la_value_print_inner field.
1806 (language_defn::value_print_inner): Delcare new member function.
1807 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1808 initializer.
1809 (m2_language::value_print_inner): New member function.
1810 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1811 initializer.
1812 * opencl-lang.c (opencl_language_data): Likewise.
1813 * p-lang.c (pascal_language_data): Likewise.
1814 (pascal_language::value_print_inner): New member function.
1815 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1816 initializer.
1817 (rust_language::value_print_inner): New member function.
1818 * valprint.c (do_val_print): Update call to value_print_inner.
1819
a1d1fa3e
AB
18202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * ada-lang.c (ada_language_data): Delete la_value_print
1823 initializer.
1824 (ada_language::value_print): New member function.
1825 * c-lang.c (c_language_data): Delete la_value_print initializer.
1826 (cplus_language_data): Likewise.
1827 (asm_language_data): Likewise.
1828 (minimal_language_data): Likewise.
1829 * d-lang.c (d_language_data): Likewise.
1830 * f-lang.c (f_language_data): Likewise.
1831 * go-lang.c (go_language_data): Likewise.
1832 * language.c (unk_lang_value_print): Delete.
1833 (language_defn::value_print): Define new member function.
1834 (unknown_language_data): Delete la_value_print initializer.
1835 (unknown_language::value_print): New member function.
1836 (auto_language_data): Delete la_value_print initializer.
1837 (auto_language::value_print): New member function.
1838 * language.h (language_data): Delete la_value_print field.
1839 (language_defn::value_print): Declare new member function.
1840 (LA_VALUE_PRINT): Update call to value_print.
1841 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1842 * objc-lang.c (objc_language_data): Likewise.
1843 * opencl-lang.c (opencl_language_data): Likewise.
1844 * p-lang.c (pascal_language_data): Likewise.
1845 (pascal_language::value_print): New member function.
1846 * rust-lang.c (rust_language_data): Delete la_value_print
1847 initializer.
1848
f16a9f57
AB
18492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * ada-lang.c (ada_watch_location_expression): Rename to
1852 ada_language::watch_location_expression.
1853 (ada_language_data): Delete la_watch_location_expression
1854 initializer.
1855 (ada_language::watch_location_expression): New member function,
1856 implementation from ada_watch_location_expression.
1857 * breakpoint.c (watch_command_1): Update call to
1858 watch_location_expression.
1859 * c-lang.c (c_watch_location_expression): Rename to
1860 language_defn::watch_location_expression.
1861 (c_language_data): Delete la_watch_location_expression
1862 initializer.
1863 (cplus_language_data): Likewise.
1864 (asm_language_data): Likewise.
1865 (minimal_language_data): Likewise.
1866 * c-lang.h (c_watch_location_expression): Delete declaration.
1867 * d-lang.c (d_language_data): Delete la_watch_location_expression
1868 initializer.
1869 * f-lang.c (f_language_data): Likewise.
1870 * go-lang.c (go_language_data): Likewise.
1871 * language.c (language_defn::watch_location_expression): Member
1872 function implementation from c_watch_location_expression.
1873 (unknown_language_data): Delete la_watch_location_expression
1874 initializer.
1875 (auto_language_data): Likewise.
1876 * language.h (language_data): Delete la_watch_location_expression
1877 field.
1878 (language_defn::watch_location_expression): Declare new member
1879 function.
1880 * m2-lang.c (m2_language_data): Delete
1881 la_watch_location_expression initializer.
1882 * objc-lang.c (objc_language_data): Likewise.
1883 * opencl-lang.c (opencl_language_data): Likewise.
1884 * p-lang.c (pascal_language_data): Likewise.
1885 * rust-lang.c (rust_watch_location_expression): Rename to
1886 rust_language::watch_location_expression.
1887 (rust_language_data): Delete la_watch_location_expression
1888 initializer.
1889 (rust_language::watch_location_expression): New member function,
1890 implementation from rust_watch_location_expression.
1891
7e56227d
AB
18922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1893
1894 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1895 ada_language::collect_symbol_completion_matches.
1896 (ada_language_data): Delete la_collect_symbol_completion_matches
1897 initializer.
1898 (ada_language::collect_symbol_completion_matches): New member
1899 function, implementation from
1900 ada_collect_symbol_completion_matches.
1901 * c-lang.c (c_language_data): Delete
1902 la_collect_symbol_completion_matches initializer.
1903 (cplus_language_data): Likewise.
1904 (asm_language_data): Likewise.
1905 (minimal_language_data): Likewise.
1906 * d-lang.c (d_language_data): Likewise.
1907 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1908 f_language::collect_symbol_completion_matches.
1909 (f_language_data): Delete la_collect_symbol_completion_matches
1910 initializer.
1911 (f_language::collect_symbol_completion_matches) New member
1912 function, implementation from f_collect_symbol_completion_matches.
1913 * go-lang.c (go_language_data): Delete
1914 la_collect_symbol_completion_matches initializer.
1915 * language.c (unknown_language_data): Likewise.
1916 (auto_language_data): Likewise.
1917 * language.h (language_data): Delete
1918 la_collect_symbol_completion_matches field.
1919 (language_defn::collect_symbol_completion_matches): New member
1920 function.
1921 * m2-lang.c (m2_language_data): Delete
1922 la_collect_symbol_completion_matches initializer.
1923 * objc-lang.c (objc_language_data): Likewise.
1924 * opencl-lang.c (opencl_language_data): Likewise.
1925 * p-lang.c (pascal_language_data): Likewise.
1926 * rust-lang.c (rust_language_data): Likewise.
1927 * symtab.c (default_collect_symbol_completion_matches): Delete.
1928 (collect_symbol_completion_matches): Update call to
1929 collect_symbol_completion_matches.
1930 (collect_symbol_completion_matches_type): Likewise.
1931 * symtab.h (default_collect_symbol_completion_matches): Delete
1932 declaration.
1933
53fc67f8
AB
19342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1935
1936 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1937 (ada_language_data): Delete la_word_break_characters initializer.
1938 (ada_language::word_break_characters): New member function.
1939 * c-lang.c (c_language_data): Delete la_word_break_characters
1940 initializer.
1941 (cplus_language_data): Likewise.
1942 (asm_language_data): Likewise.
1943 (minimal_language_data): Likewise.
1944 * completer.c: Update global comment.
1945 (advance_to_expression_complete_word_point): Update call to
1946 word_break_characters.
1947 (complete_files_symbols): Likewise.
1948 (complete_line_internal_1): Likewise.
1949 (default_completer_handle_brkchars): Likewise.
1950 (skip_quoted_chars): Likewise.
1951 * d-lang.c (d_language_data): Delete la_word_break_characters
1952 initializer.
1953 * f-lang.c (f_word_break_characters): Delete.
1954 (f_language_data): Delete la_word_break_characters initializer.
1955 (f_language::word_break_characters): New member function.
1956 * go-lang.c (go_language_data): Delete la_word_break_characters
1957 initializer.
1958 * language.c (unknown_language_data): Likewise.
1959 (auto_language_data): Likewise.
1960 * language.h (default_word_break_characters): Move declaration to
1961 earlier in the file.
1962 (language_data): Delete la_word_break_characters field.
1963 (language_defn::word_break_characters): New member function.
1964 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1965 initializer.
1966 * objc-lang.c (objc_language_data): Likewise.
1967 * opencl-lang.c (opencl_language_data): Likewise.
1968 * p-lang.c (pascal_language_data): Likewise.
1969 * rust-lang.c (rust_language_data): Likewise.
1970
c9debfb9
AB
19712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1972
1973 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1974 (ada_language_data): Delete la_get_symbol_name_matcher
1975 initializer.
1976 (language_defn::get_symbol_name_matcher_inner): New member
1977 function.
1978 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1979 initializer.
1980 (cplus_language_data): Likewise.
1981 (cplus_language::get_symbol_name_matcher_inner): New member
1982 function.
1983 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1984 (minimal_language_data): Likewise.
1985 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1986 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1987 initializer.
1988 * dictionary.c (iter_match_first_hashed): Update call to
1989 get_symbol_name_matcher.
1990 (iter_match_next_hashed): Likewise.
1991 (iter_match_next_linear): Likewise.
1992 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1993 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1994 initializer.
1995 (f_language::get_symbol_name_matcher_inner): New member function.
1996 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1997 initializer.
1998 * language.c (default_symbol_name_matcher): Update header comment,
1999 make static.
2000 (language_defn::get_symbol_name_matcher): New definition.
2001 (language_defn::get_symbol_name_matcher_inner): Likewise.
2002 (get_symbol_name_matcher): Delete.
2003 (unknown_language_data): Delete la_get_symbol_name_matcher
2004 initializer.
2005 (auto_language_data): Likewise.
2006 * language.h (language_data): Delete la_get_symbol_name_matcher
2007 field.
2008 (language_defn::get_symbol_name_matcher): New member function.
2009 (language_defn::get_symbol_name_matcher_inner): Likewise.
2010 (default_symbol_name_matcher): Delete declaration.
2011 * linespec.c (find_methods): Update call to
2012 get_symbol_name_matcher.
2013 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2014 initializer.
2015 * minsyms.c (lookup_minimal_symbol): Update call to
2016 get_symbol_name_matcher.
2017 (iterate_over_minimal_symbols): Likewise.
2018 * objc-lang.c (objc_language_data): Delete
2019 la_get_symbol_name_matcher initializer.
2020 * opencl-lang.c (opencl_language_data): Likewise.
2021 * p-lang.c (pascal_language_data): Likewise.
2022 * psymtab.c (psymbol_name_matches): Update call to
2023 get_symbol_name_matcher.
2024 * rust-lang.c (rust_language_data): Delete
2025 la_get_symbol_name_matcher initializer.
2026 * symtab.c (symbol_matches_search_name): Update call to
2027 get_symbol_name_matcher.
2028 (compare_symbol_name): Likewise.
2029
9a49ad8c
AB
20302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * ada-lang.c (ada_language_data): Delete la_compute_program
2033 initializer.
2034 * c-lang.c (c_language_data): Likewise.
2035 (c_language::compute_program): New member function.
2036 (cplus_language_data): Delete la_compute_program initializer.
2037 (cplus_language::compute_program): New member function.
2038 (asm_language_data): Delete la_compute_program initializer.
2039 (minimal_language_data): Likewise.
2040 * c-lang.h (c_compute_program): Update comment.
2041 (cplus_compute_program): Likewise.
2042 * compile/compile-c-support.c (c_compute_program): Likewise.
2043 (cplus_compute_program): Likewise.
2044 * compile/compile.c (compile_to_object): Update call to
2045 la_compute_program.
2046 * d-lang.c (d_language_data): Delete la_compute_program
2047 initializer.
2048 * f-lang.c (f_language_data): Likewise.
2049 * go-lang.c (go_language_data): Likewise.
2050 * language.c (unknown_language_data): Likewise.
2051 (auto_language_data): Likewise.
2052 * language.h (language_data): Delete la_compute_program field.
2053 (language_defn::compute_program): New member function.
2054 * m2-lang.c (m2_language_data): Delete la_compute_program
2055 initializer.
2056 * objc-lang.c (objc_language_data): Likewise.
2057 * opencl-lang.c (opencl_language_data): Likewise.
2058 * p-lang.c (pascal_language_data): Likewise.
2059 * rust-lang.c (rust_language_data): Likewise.
2060
eff93b4d
AB
20612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * ada-lang.c (ada_language_data) Delete
2064 la_class_name_from_physname initializer.
2065 * c-lang.c (c_language_data): Likewise.
2066 (cplus_language_data): Likewise.
2067 (cplus_language::class_name_from_physname): New member function.
2068 (asm_language_data): Delete la_class_name_from_physname
2069 initializer.
2070 (minimal_language_data): Likewise.
2071 * d-lang.c (d_language_data): Likewise.
2072 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2073 method on language_defn class.
2074 (guess_full_die_structure_name): Likewise.
2075 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2076 initializer.
2077 * go-lang.c (go_language_data): Likewise.
2078 * language.c (language_class_name_from_physname): Delete.
2079 (unk_lang_class_name): Delete.
2080 (unknown_language_data): Delete la_class_name_from_physname
2081 initializer.
2082 (auto_language_data): Likewise.
2083 * language.h (language_data): Delete la_class_name_from_physname
2084 field.
2085 (language_defn::class_name_from_physname): New function.
2086 (language_class_name_from_physname): Delete declaration.
2087 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2088 initializer.
2089 * objc-lang.c (objc_language_data): Likewise.
2090 * opencl-lang.c (opencl_language_data): Likewise.
2091 * p-lang.c (pascal_language_data): Likewise.
2092 * rust-lang.c (rust_language_data): Likewise.
2093
de543742
TT
20942020-06-16 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui-data.h (STATUS_NAME): New macro.
2097 * tui/tui-layout.c (tui_remove_some_windows)
2098 (initialize_known_windows, tui_register_window)
2099 (tui_layout_split::remove_windows, initialize_layouts)
2100 (tui_new_layout_command): Don't use hard-coded window names.
2101
a350efd4
TT
21022020-06-16 Tom Tromey <tom@tromey.com>
2103
2104 PR tui/25348:
2105 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2106 tui_initialize_readline. Only run once. Call rl_initialize.
2107 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2108 tui_initialize_readline.
2109 * tui/tui-io.c (tui_setup_io): Call
2110 tui_ensure_readline_initialized.
2111 * tui/tui-interp.c (tui_interp::init): Update.
2112
39ec0490
TT
21132020-06-16 Tom Tromey <tom@tromey.com>
2114
2115 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2116 Also preserve the status window.
2117
d2d1ea20
TT
21182020-06-16 Tom Tromey <tom@tromey.com>
2119
2120 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2121 where m_window==nullptr.
2122
66920317
TT
21232020-06-15 Tom Tromey <tromey@adacore.com>
2124
2125 * windows-nat.c (windows_nat::handle_output_debug_string):
2126 Update.
2127 (windows_nat::handle_ms_vc_exception): Update.
2128 * target.h (target_read_string): Change API.
2129 * target.c (target_read_string): Change API.
2130 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2131 Update.
2132 * solib-frv.c (frv_current_sos): Update.
2133 * solib-dsbt.c (dsbt_current_sos): Update.
2134 * solib-darwin.c (darwin_current_sos): Update.
2135 * linux-thread-db.c (inferior_has_bug): Update.
2136 * expprint.c (print_subexp_standard): Update.
2137 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2138 (ada_exception_message_1): Update.
2139
a5d871dd
TT
21402020-06-15 Tom Tromey <tromey@adacore.com>
2141
2142 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2143
670e35fa
TT
21442020-06-15 Tom Tromey <tromey@adacore.com>
2145
2146 * valprint.c (read_string): Update comment.
2147 * target.c (MIN): Remove.
2148 (target_read_string): Rewrite.
2149
f5272a3b
TT
21502020-06-15 Tom Tromey <tromey@adacore.com>
2151
2152 * corefile.c (read_memory_string): Remove.
2153 * ada-valprint.c (ada_value_print_ptr): Update.
2154 * ada-lang.h (ada_tag_name): Change return type.
2155 * ada-lang.c (type_from_tag): Update.
2156 (ada_tag_name_from_tsd): Change return type. Use
2157 target_read_string.
2158 (ada_tag_name): Likewise.
2159 * gdbcore.h (read_memory_string): Don't declare.
2160
2c074f49
HD
21612020-06-14 Hannes Domani <ssbssa@yahoo.de>
2162
2163 * symtab.c (rbreak_command): Ignore Windows drive colon.
2164
6a17d503
SM
21652020-06-12 Simon Marchi <simon.marchi@efficios.com>
2166
2167 * NEWS: Mention removed GDBserver host support.
2168
453c733f
NC
21692020-06-12 Nelson Chu <nelson.chu@sifive.com>
2170
2171 * features/riscv/rebuild-csr-xml.sh: Updated.
2172
2b4e6a3f
TT
21732020-06-11 Tom Tromey <tom@tromey.com>
2174
2175 PR gdb/18318:
2176 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2177
4412332f
JG
21782020-06-09 Jonny Grant <jg@jguk.org>
21792020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2180
2181 * main.c (captured_main_1): Don't print new line after help.
2182 (print_gdb_help): add mailing list and IRC channel information
2183 to --help. Add new lines between items in the footer. Remove
2184 quotes around bug url.
2185
2f33032a
KS
21862020-06-11 Keith Seitz <keiths@redhat.com>
2187
2188 PR gdb/21356
2189 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2190 Resolve typedefs for type length calculations.
2191
7ab96794
TV
21922020-06-10 Tom de Vries <tdevries@suse.de>
2193
2194 PR ada/24713
2195 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2196 (write_psymbols): Enable .gdb_index for ada.
2197 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2198 ada.
2199
e5f3ece2
TV
22002020-06-10 Tom de Vries <tdevries@suse.de>
2201
2202 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2203 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2204 namei" instead of "const char *name" argument.
2205 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2206 dw2_symtab_iter_init.
2207
940da03e
SM
22082020-06-08 Simon Marchi <simon.marchi@efficios.com>
2209
2210 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2211 to use type::field and field::type instead.
2212
b6cdac4b
SM
22132020-06-08 Simon Marchi <simon.marchi@efficios.com>
2214
2215 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2216 to use field::type instead.
2217
5d14b6e5
SM
22182020-06-08 Simon Marchi <simon.marchi@efficios.com>
2219
2220 * gdbtypes.h (struct field) <type, set_type>: New methods.
2221 Rename `type` field to...
2222 <m_type>: ... this. Change references throughout to use type or
2223 set_type methods.
2224 (FIELD_TYPE): Use field::type. Change call sites that modify
2225 the field's type to use field::set_type instead.
2226
3d967001
SM
22272020-06-08 Simon Marchi <simon.marchi@efficios.com>
2228
2229 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2230 to use type::index_type instead.
2231
262abc0d
SM
22322020-06-08 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2235 methods.
2236 (TYPE_INDEX_TYPE): Use type::index_type.
2237 * gdbtypes.c (create_array_type_with_stride): Likewise.
2238
82836c92
TT
22392020-06-07 Tom Tromey <tom@tromey.com>
2240
2241 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2242 parameter.
2243 (generic_value_print): Update.
2244
940dace9
AB
22452020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2246
2247 Revert commit 982a38f60b0.
2248 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2249
982a38f6
AB
22502020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2251
2252 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2253 avoid use after free.
2254
82f06518
TV
22552020-06-05 Tom de Vries <tdevries@suse.de>
2256
2257 * NEWS: Fix typos.
2258
f8c41851
SM
22592020-06-04 Simon Marchi <simon.marchi@efficios.com>
2260
2261 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2262 the per_bfd object.
2263 (dwarf2_read_debug_names): Likewise.
2264 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2265 object when re-using a per_bfd object with an index.
2266
f9b5d5ea
TV
22672020-06-03 Tom de Vries <tdevries@suse.de>
2268
2269 PR symtab/26046
2270 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2271 children for C++.
2272 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2273 DW_TAG_subprogram.
2274
f6eee2d0
AB
22752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2276
2277 * ada-lang.c (ada_language_data): Delete skip_trampoline
2278 initializer.
2279 * c-lang.c (c_language_data): Likewise.
2280 (cplus_language_data): Likewise.
2281 (cplus_language::skip_trampoline): New member function.
2282 (asm_language_data): Delete skip_trampoline initializer.
2283 (minimal_language_data): Likewise.
2284 * d-lang.c (d_language_data): Likewise.
2285 * f-lang.c (f_language_data): Likewise.
2286 * go-lang.c (go_language_data): Likewise.
2287 * language.c (unk_lang_trampoline): Delete function.
2288 (skip_language_trampoline): Update.
2289 (unknown_language_data): Delete skip_trampoline initializer.
2290 (auto_language_data): Likewise.
2291 * language.h (language_data): Delete skip_trampoline field.
2292 (language_defn::skip_trampoline): New function.
2293 * m2-lang.c (m2_language_data): Delete skip_trampoline
2294 initializer.
2295 * objc-lang.c (objc_skip_trampoline): Delete function, move
2296 implementation to objc_language::skip_trampoline.
2297 (objc_language_data): Delete skip_trampoline initializer.
2298 (objc_language::skip_trampoline): New member function with
2299 implementation from objc_skip_trampoline.
2300 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2301 initializer.
2302 * p-lang.c (pascal_language_data): Likewise.
2303 * rust-lang.c (rust_language_data): Likewise.
2304
0a50df5d
AB
23052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2306
2307 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2308 (ada_language::demangle): New member function.
2309 * c-lang.c (c_language_data): Delete la_demangle initializer.
2310 (cplus_language_data): Delete la_demangle initializer.
2311 (cplus_language::demangle): New member function.
2312 (asm_language_data): Delete la_demangle initializer.
2313 (minimal_language_data): Delete la_demangle initializer.
2314 * d-lang.c (d_language_data): Delete la_demangle initializer.
2315 (d_language::demangle): New member function.
2316 * f-lang.c (f_language_data): Delete la_demangle initializer.
2317 (f_language::demangle): New member function.
2318 * go-lang.c (go_language_data): Delete la_demangle initializer.
2319 (go_language::demangle): New member function.
2320 * language.c (language_demangle): Update.
2321 (unk_lang_demangle): Delete.
2322 (unknown_language_data): Delete la_demangle initializer.
2323 (unknown_language::demangle): New member function.
2324 (auto_language_data): Delete la_demangle initializer.
2325 (auto_language::demangle): New member function.
2326 * language.h (language_data): Delete la_demangle field.
2327 (language_defn::demangle): New function.
2328 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2329 * objc-lang.c (objc_language_data): Delete la_demangle
2330 initializer.
2331 (objc_language::demangle): New member function.
2332 * opencl-lang.c (opencl_language_data): Delete la_demangle
2333 initializer.
2334 * p-lang.c (pascal_language_data): Likewise.
2335 * rust-lang.c (rust_language_data): Likewise.
2336 (rust_language::demangle): New member function.
2337
fbfb0a46
AB
23382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2339
2340 * ada-lang.c (ada_language_data): Delete la_print_type
2341 initializer.
2342 (ada_language::print_type): New member function.
2343 * c-lang.c (c_language_data): Delete la_print_type initializer.
2344 (c_language::print_type): New member function.
2345 (cplus_language_data): Delete la_print_type initializer.
2346 (cplus_language::print_type): New member function.
2347 (asm_language_data): Delete la_print_type initializer.
2348 (asm_language::print_type): New member function.
2349 (minimal_language_data): Delete la_print_type initializer.
2350 (minimal_language::print_type): New member function.
2351 * d-lang.c (d_language_data): Delete la_print_type initializer.
2352 (d_language::print_type): New member function.
2353 * f-lang.c (f_language_data): Delete la_print_type initializer.
2354 (f_language::print_type): New member function.
2355 * go-lang.c (go_language_data): Delete la_print_type initializer.
2356 (go_language::print_type): New member function.
2357 * language.c (unk_lang_print_type): Delete.
2358 (unknown_language_data): Delete la_print_type initializer.
2359 (unknown_language::print_type): New member function.
2360 (auto_language_data): Delete la_print_type initializer.
2361 (auto_language::print_type): New member function.
2362 * language.h (language_data): Delete la_print_type field.
2363 (language_defn::print_type): New function.
2364 (LA_PRINT_TYPE): Update.
2365 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2366 (m2_language::print_type): New member function.
2367 * objc-lang.c (objc_language_data): Delete la_print_type
2368 initializer.
2369 (objc_language::print_type): New member function.
2370 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2371 to opencl_language::print_type.
2372 (opencl_language_data): Delete la_print_type initializer.
2373 (opencl_language::print_type): New member function, implementation
2374 from opencl_print_type.
2375 * p-lang.c (pascal_language_data): Delete la_print_type
2376 initializer.
2377 (pascal_language::print_type): New member function.
2378 * rust-lang.c (rust_print_type): Delete, implementation moved to
2379 rust_language::print_type.
2380 (rust_language_data): Delete la_print_type initializer.
2381 (rust_language::print_type): New member function, implementation
2382 from rust_print_type.
2383
6f827019
AB
23842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2385
2386 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2387 implementation moves to...
2388 (ada_language::sniff_from_mangled_name): ...here. Update return
2389 type.
2390 (ada_language_data): Delete la_sniff_from_mangled_name
2391 initializer.
2392 * c-lang.c (c_language_data): Likewise.
2393 (cplus_language_data): Likewise.
2394 (cplus_language::sniff_from_mangled_name): New member function,
2395 implementation taken from gdb_sniff_from_mangled_name.
2396 (asm_language_data): Delete la_sniff_from_mangled_name
2397 initializer.
2398 (minimal_language_data): Likewise.
2399 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2400 implementation moves to cplus_language::sniff_from_mangled_name.
2401 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2402 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2403 moves to...
2404 (d_language::sniff_from_mangled_name): ...here.
2405 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2406 * f-lang.c (f_language_data): Likewise.
2407 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2408 moves to...
2409 (go_language::sniff_from_mangled_name): ...here.
2410 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2411 * language.c (language_sniff_from_mangled_name): Delete.
2412 (unknown_language_data): Delete la_sniff_from_mangled_name
2413 initializer.
2414 (auto_language_data): Likewise.
2415 * language.h (language_data): Delete la_sniff_from_mangled_name
2416 field.
2417 (language_defn::sniff_from_mangled_name): New function.
2418 (language_sniff_from_mangled_name): Delete declaration.
2419 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2420 field.
2421 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2422 implementation moves to...
2423 (objc_language::sniff_from_mangled_name): ...here.
2424 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2425 * opencl-lang.c (opencl_language_data): Likewise.
2426 * p-lang.c (pascal_language_data): Likewise.
2427 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2428 implementation moves to...
2429 (rust_language::sniff_from_mangled_name): ...here.
2430 (rust_language_data): Delete la_sniff_from_mangled_name
2431 initializer.
2432 * symtab.c (symbol_find_demangled_name): Call
2433 sniff_from_mangled_name member function.
2434
fb8006fd
AB
24352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2436
2437 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2438 initializer.
2439 * c-lang.c (c_language_data): Likewise.
2440 (cplus_language_data): Likewise.
2441 (cplus_language::search_name_hash): New member function.
2442 (asm_language_data): Delete la_search_name_hash initializer.
2443 (minimal_language_data): Likewise.
2444 * d-lang.c (d_language_data): Likewise.
2445 * dictionary.c (default_search_name_hash): Rename to...
2446 (language_defn::search_name_hash): ...this.
2447 * f-lang.c (f_language_data): Likewise.
2448 (f_language::search_name_hash): New member function.
2449 * go-lang.c (go_language_data): Delete la_search_name_hash
2450 initializer.
2451 * language.c (unknown_language_data): Likewise.
2452 (auto_language_data): Likewise.
2453 * language.h (struct language_data): Delete la_search_name_hash
2454 field.
2455 (language_defn::search_name_hash): Declare new member function.
2456 (default_search_name_hash): Delete declaration.
2457 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2458 initializer.
2459 * objc-lang.c (objc_language_data): Likewise.
2460 * opencl-lang.c (opencl_language_data): Likewise.
2461 * p-lang.c (pascal_language_data): Likewise.
2462 * rust-lang.c (rust_language_data): Likewise.
2463 * symtab.c (search_name_hash): Update call.
2464
8e25bafe
AB
24652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2468 initializer.
2469 * c-lang.c (class compile_instance): Declare.
2470 (c_language_data): Delete la_get_compile_instance initializer.
2471 (c_language::get_compile_instance): New member function.
2472 (cplus_language_data): Delete la_get_compile_instance initializer.
2473 (cplus_language::get_compile_instance): New member function.
2474 (asm_language_data): Delete la_get_compile_instance initializer.
2475 (minimal_language_data): Likewise.
2476 * c-lang.h (c_get_compile_context): Update comment.
2477 (cplus_get_compile_context): Update comment.
2478 * compile/compile.c (compile_to_object): Update calls, don't rely
2479 on function pointer being NULL.
2480 * d-lang.c (d_language_data): Delete la_get_compile_instance
2481 initializer.
2482 * f-lang.c (f_language_data): Likewise.
2483 * go-lang.c (go_language_data): Likewise.
2484 * language.c (unknown_language_data): Likewise.
2485 (auto_language_data): Likewise.
2486 * language.h (language_data): Delete la_get_compile_instance field.
2487 (language_defn::get_compile_instance): New member function.
2488 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2489 initializer.
2490 * objc-lang.c (objc_language_data): Likewise.
2491 * opencl-lang.c (opencl_language_data): Likewise.
2492 * p-lang.c (pascal_language_data): Likewise.
2493 * rust-lang.c (rust_language_data): Likewise.
2494
4009ee92
AB
24952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2496
2497 * ada-lang.c (ada_add_all_symbols): Update comment.
2498 (ada_iterate_over_symbols): Delete, move implementation to...
2499 (ada_language::iterate_over_symbols): ...here, a new member
2500 function, rewrite to use range based for loop.
2501 (ada_language_data): Delete la_iterate_over_symbols initializer.
2502 * c-lang.c (c_language_data): Likewise.
2503 (cplus_language_data): Likewise.
2504 (asm_language_data): Likewise.
2505 (minimal_language_data): Likewise.
2506 * d-lang.c (d_language_data): Likewise.
2507 * f-lang.c (f_language_data): Likewise.
2508 * go-lang.c (go_language_data): Likewise.
2509 * language.c (unknown_language_data): Likewise.
2510 (auto_language_data): Likewise.
2511 * language.h (language_data): Delete la_iterate_over_symbols field.
2512 (language_defn::iterate_over_symbols): New member function.
2513 (LA_ITERATE_OVER_SYMBOLS): Update.
2514 * linespec.c (iterate_over_all_matching_symtabs): Update.
2515 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2516 initializer.
2517 * objc-lang.c (objc_language_data): Likewise.
2518 * opencl-lang.c (opencl_language_data): Likewise.
2519 * p-lang.c (pascal_language_data): Likewise.
2520 * rust-lang.c (rust_language_data): Likewise.
2521
54f4ca46
AB
25222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * ada-lang.c (ada_language_data): Delete
2525 la_lookup_transparent_type initializer.
2526 * c-lang.c (c_language_data): Likewise.
2527 (cplus_language_data): Likewise.
2528 (cplus_language::lookup_transparent_type): New member function.
2529 (asm_language_data): Delete la_lookup_transparent_type
2530 initializer.
2531 (minimal_language_data): Likewise.
2532 * d-lang.c (d_language_data): Likewise.
2533 * f-lang.c (f_language_data): Likewise.
2534 * go-lang.c (go_language_data): Likewise.
2535 * language.c (unknown_language_data): Likewise.
2536 (auto_language_data): Likewise.
2537 * language.h (struct language_data): Delete
2538 la_lookup_transparent_type field.
2539 (language_defn::lookup_transparent_type): New member function.
2540 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2541 initializer.
2542 * objc-lang.c (objc_language_data): Likewise.
2543 * opencl-lang.c (opencl_language_data): Likewise.
2544 * p-lang.c (pascal_language_data): Likewise.
2545 * rust-lang.c (rust_language_data): Likewise.
2546 * symtab.c (symbol_matches_domain): Update call.
2547
1fb314aa
AB
25482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2549
2550 * ada-lang.c (ada_language_arch_info): Delete function, move
2551 implementation to...
2552 (ada_language::language_arch_info): ...here, a new member
2553 function.
2554 (ada_language_data): Delete la_language_arch_info.
2555 * c-lang.c (c_language_data): Likewise.
2556 (c_language::language_arch_info): New member function.
2557 (cplus_language_arch_info): Delete function, move
2558 implementation to...
2559 (cplus_language::language_arch_info): ...here, a new member
2560 function.
2561 (cplus_language_data): Delete la_language_arch_info.
2562 (asm_language_data): Likewise.
2563 (asm_language::language_arch_info): New member function.
2564 (minimal_language_data): Delete la_language_arch_info.
2565 (minimal_language::language_arch_info): New member function.
2566 * d-lang.c (d_language_arch_info): Delete function, move
2567 implementation to...
2568 (d_language::language_arch_info): ...here, a new member
2569 function.
2570 (d_language_data): Delete la_language_arch_info.
2571 * f-lang.c (f_language_arch_info): Delete function, move
2572 implementation to...
2573 (f_language::language_arch_info): ...here, a new member
2574 function.
2575 (f_language_data): Delete la_language_arch_info.
2576 * go-lang.c (go_language_arch_info): Delete function, move
2577 implementation to...
2578 (go_language::language_arch_info): ...here, a new member
2579 function.
2580 (go_language_data): Delete la_language_arch_info.
2581 * language.c (unknown_language_data): Likewise.
2582 (unknown_language::language_arch_info): New member function.
2583 (auto_language_data): Delete la_language_arch_info.
2584 (auto_language::language_arch_info): New member function.
2585 (language_gdbarch_post_init): Update call to
2586 la_language_arch_info.
2587 * language.h (language_data): Delete la_language_arch_info
2588 function pointer.
2589 (language_defn::language_arch_info): New function.
2590 * m2-lang.c (m2_language_arch_info): Delete function, move
2591 implementation to...
2592 (m2_language::language_arch_info): ...here, a new member
2593 function.
2594 (m2_language_data): Delete la_language_arch_info.
2595 * objc-lang.c (objc_language_arch_info): Delete function, move
2596 implementation to...
2597 (objc_language::language_arch_info): ...here, a new member
2598 function.
2599 (objc_language_data): Delete la_language_arch_info.
2600 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2601 implementation to...
2602 (opencl_language::language_arch_info): ...here, a new member
2603 function.
2604 (opencl_language_data): Delete la_language_arch_info.
2605 * p-lang.c (pascal_language_arch_info): Delete function, move
2606 implementation to...
2607 (pascal_language::language_arch_info): ...here, a new member
2608 function.
2609 (pascal_language_data): Delete la_language_arch_info.
2610 * rust-lang.c (rust_language_arch_info): Delete function, move
2611 implementation to...
2612 (rust_language::language_arch_info): ...here, a new member
2613 function.
2614 (rust_language_data): Delete la_language_arch_info.
2615
48448202
AB
26162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2617
2618 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2619 initializer.
2620 * c-lang.c (c_language_data): Likewise.
2621 (cplus_language_data): Likewise.
2622 (cplus_language::pass_by_reference_info): New method.
2623 (asm_language_data): Delete la_pass_by_reference initializer.
2624 (minimal_language_data): Likewise.
2625 * cp-abi.c (cp_pass_by_reference): Remove use of
2626 default_pass_by_reference.
2627 * d-lang.c (d_language_data): Likewise.
2628 * f-lang.c (f_language_data): Likewise.
2629 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2630 default_pass_by_reference.
2631 * go-lang.c (go_language_data): Likewise.
2632 * language.c (language_pass_by_reference): Update.
2633 (default_pass_by_reference): Delete.
2634 (unknown_language_data): Delete la_pass_by_reference
2635 initializer.
2636 (auto_language_data): Likewise.
2637 * language.h (struct language_data): Delete la_pass_by_reference
2638 field.
2639 (language_defn::pass_by_reference_info): New member function.
2640 (default_pass_by_reference): Delete declaration.
2641 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2642 initializer.
2643 * objc-lang.c (objc_language_data): Likewise.
2644 * opencl-lang.c (opencl_language_data): Likewise.
2645 * p-lang.c (pascal_language_data): Likewise.
2646 * rust-lang.c (rust_language_data): Likewise.
2647
15e5fd35
AB
26482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2649
2650 * ada-lang.c (ada_read_var_value): Delete function, move
2651 implementation to...
2652 (ada_language::read_var_value): ...here.
2653 (ada_language_data): Delete la_read_var_value initializer.
2654 * c-lang.c (c_language_data): Likewise.
2655 (cplus_language_data): Likewise.
2656 (minimal_language_data): Likewise.
2657 * d-lang.c (d_language_data): Likewise.
2658 * f-lang.c (f_language_data): Likewise.
2659 * findvar.c (default_read_var_value): Rename to...
2660 (language_defn::read_var_value): ...this.
2661 * findvar.c (read_var_value): Update header comment, and change to
2662 call member function instead of function pointer.
2663 * go-lang.c (go_language_data): Likewise.
2664 * language.c (unknown_language_data): Delete la_read_var_value
2665 initializer.
2666 (auto_language_data): Likewise.
2667 * language.h (struct language_data): Delete la_read_var_value
2668 field.
2669 (language_defn::read_var_value): New member function.
2670 (default_read_var_value): Delete declaration.
2671 * m2-lang.c (m2_language_data): Delete la_read_var_value
2672 initializer.
2673 * objc-lang.c (objc_language_data): Likewise.
2674 * opencl-lang.c (opencl_language_data): Likewise.
2675 * p-lang.c (pascal_language_data): Likewise.
2676 * rust-lang.c (rust_language_data): Likewise.
2677 * value.h (default_read_var_value): Delete declaration.
2678
5bd40f2a
AB
26792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2680
2681 * ada-lang.c (ada_print_array_index): Delete function, move
2682 implementation to...
2683 (ada_language::print_array_index): ...here.
2684 (ada_language_data): Delete la_print_array_index initializer.
2685 * c-lang.c (c_language_data): Likewise.
2686 (cplus_language_data): Likewise.
2687 (minimal_language_data): Likewise.
2688 * d-lang.c (d_language_data): Likewise.
2689 * f-lang.c (f_language_data): Likewise.
2690 * go-lang.c (go_language_data): Likewise.
2691 * language.c (default_print_array_index): Delete function, move
2692 implementation to...
2693 (language_defn::print_array_index): ...here.
2694 (unknown_language_data): Delete la_print_array_index initializer.
2695 (auto_language_data): Likewise.
2696 * language.h (struct language_data): Delete la_print_array_index
2697 field.
2698 (language_defn::print_array_index): New member function.
2699 (LA_PRINT_ARRAY_INDEX): Update.
2700 (default_print_array_index): Delete declaration.
2701 * m2-lang.c (m2_language_data): Delete la_print_array_index
2702 initializer.
2703 * objc-lang.c (objc_language_data): Likewise.
2704 * opencl-lang.c (opencl_language_data): Likewise.
2705 * p-lang.c (pascal_language_data): Likewise.
2706 * rust-lang.c (rust_language_data): Likewise.
2707
0874fd07
AB
27082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * gdb/ada-lang.c (ada_language_defn): Convert to...
2711 (ada_language_data): ...this.
2712 (class ada_language): New class.
2713 (ada_language_defn): New static global.
2714 * gdb/c-lang.c (c_language_defn): Convert to...
2715 (c_language_data): ...this.
2716 (class c_language): New class.
2717 (c_language_defn): New static global.
2718 (cplus_language_defn): Convert to...
2719 (cplus_language_data): ...this.
2720 (class cplus_language): New class.
2721 (cplus_language_defn): New static global.
2722 (asm_language_defn): Convert to...
2723 (asm_language_data): ...this.
2724 (class asm_language): New class.
2725 (asm_language_defn): New static global.
2726 (minimal_language_defn): Convert to...
2727 (minimal_language_data): ...this.
2728 (class minimal_language): New class.
2729 (minimal_language_defn): New static global.
2730 * gdb/d-lang.c (d_language_defn): Convert to...
2731 (d_language_data): ...this.
2732 (class d_language): New class.
2733 (d_language_defn): New static global.
2734 * gdb/f-lang.c (f_language_defn): Convert to...
2735 (f_language_data): ...this.
2736 (class f_language): New class.
2737 (f_language_defn): New static global.
2738 * gdb/go-lang.c (go_language_defn): Convert to...
2739 (go_language_data): ...this.
2740 (class go_language): New class.
2741 (go_language_defn): New static global.
2742 * gdb/language.c (unknown_language_defn): Remove declaration.
2743 (current_language): Initialize to nullptr, real initialization is
2744 moved to _initialize_language.
2745 (languages): Delete global.
2746 (language_defn::languages): Define.
2747 (set_language_command): Use language_defn::languages.
2748 (set_language): Likewise.
2749 (range_error): Likewise.
2750 (language_enum): Likewise.
2751 (language_def): Likewise.
2752 (add_set_language_command): Use language_def::languages for the
2753 language list, and language_def to lookup language pointers.
2754 (skip_language_trampoline): Use language_defn::languages.
2755 (unknown_language_defn): Convert to...
2756 (unknown_language_data): ...this.
2757 (class unknown_language): New class.
2758 (unknown_language_defn): New static global.
2759 (auto_language_defn): Convert to...
2760 (auto_language_data): ...this.
2761 (class auto_language): New class.
2762 (auto_language_defn): New static global.
2763 (language_gdbarch_post_init): Use language_defn::languages.
2764 (_initialize_language): Initialize current_language.
2765 * gdb/language.h (struct language_defn): Rename to...
2766 (struct language_data): ...this.
2767 (struct language_defn): New.
2768 (auto_language_defn): Delete.
2769 (unknown_language_defn): Delete.
2770 (minimal_language_defn): Delete.
2771 (ada_language_defn): Delete.
2772 (asm_language_defn): Delete.
2773 (c_language_defn): Delete.
2774 (cplus_language_defn): Delete.
2775 (d_language_defn): Delete.
2776 (f_language_defn): Delete.
2777 (go_language_defn): Delete.
2778 (m2_language_defn): Delete.
2779 (objc_language_defn): Delete.
2780 (opencl_language_defn): Delete.
2781 (pascal_language_defn): Delete.
2782 (rust_language_defn): Delete.
2783 * gdb/m2-lang.c (m2_language_defn): Convert to...
2784 (m2_language_data): ...this.
2785 (class m2_language): New class.
2786 (m2_language_defn): New static global.
2787 * gdb/objc-lang.c (objc_language_defn): Convert to...
2788 (objc_language_data): ...this.
2789 (class objc_language): New class.
2790 (objc_language_defn): New static global.
2791 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2792 (opencl_language_data): ...this.
2793 (class opencl_language): New class.
2794 (opencl_language_defn): New static global.
2795 * gdb/p-lang.c (pascal_language_defn): Convert to...
2796 (pascal_language_data): ...this.
2797 (class pascal_language): New class.
2798 (pascal_language_defn): New static global.
2799 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2800 language pointer, update comment format.
2801 * gdb/rust-lang.c (rust_language_defn): Convert to...
2802 (rust_language_data): ...this.
2803 (class rust_language): New class.
2804 (rust_language_defn): New static global.
2805
1313c56e
AB
28062020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2807
2808 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2809 member variable.
2810 <m_stmt_at_address>: New member variable.
2811 (lnp_state_machine::record_line): Don't record some lines, update
2812 tracking of is_stmt at the same address.
2813 (lnp_state_machine::lnp_state_machine): Initialise new member
2814 variables.
2815
b7ed9f3d
ST
28162020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2817
2818 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2819 "-include gnu-nat-mig.h".
2820 * gnu-nat-mig.h: New file.
2821 * gnu-nat.c: Include "gnu-nat-mig.h".
2822 (exc_server, msg_reply_server, notify_server,
2823 process_reply_server): Remove declarations.
2824
14a8ad62
ST
28252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2826
2827 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2828 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2829 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2830 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2831 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2832 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2833 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2834 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2835 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2836 to gnu_nat_target class.
2837 * gnu-nat.c: Likewise.
2838 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2839 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2840 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2841 object.
2842 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2843 instead of `gnu_target'.
2844
0af5e106
ST
28452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2846
2847 * i386-gnu-tdep.c: Include "gdbcore.h"
2848 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2849 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2850 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2851 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2852 i386_gnu_sigcontext_addr): New functions
2853 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2854 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2855 tdep.
2856
078f2fc9
ST
28572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2858
2859 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2860 before fork_inferior call. Avoid calling it if target_is_pushed returns
2861 true.
2862
53dff92c
ST
28632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2864
2865 * gnu-nat.h (gnu_target): New variable declaration.
2866 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2867 gnu_target.
2868 * gnu-nat.c (gnu_target): New variable.
2869 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2870 add_thread_silent, and add_thread calls.
2871 (gnu_nat_target::create_inferior): Pass gnu_target to
2872 add_thread_silent, thread_change_ptid call.
2873 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2874 call.
2875
5a8b8627
ST
28762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2877
2878 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2879 (gnu_nat_target::find_memory_regions): Remove unused
2880 `old_address' variable.
2881
366f550a
ST
28822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2883
2884 * gnu-nat.c: Include "gdbarch.h".
2885
f14871bf
ST
28862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2887
2888 * reply_mig_hack.awk (Error return): Cast function through
2889 void *, to bypass compiler function call check.
2890
c6887cfb
ST
28912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2892
2893 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2894 $(srcdir)/reply_mig_hack.awk.
2895
6930bffe
ST
28962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2897
2898 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2899
112c22ed
JG
29002020-05-30 Jonny Grant <jg@jguk.org>
2901
2902 * configure.ac (ACX_BUGURL): change bug URL to https.
2903
f68f85b5
PA
29042020-05-30 Pedro Alves <palves@redhat.com>
2905
2906 * cp-support.c (replace_typedefs_template): New.
2907 (replace_typedefs_qualified_name): Handle
2908 DEMANGLE_COMPONENT_TEMPLATE.
2909
976ca316
SM
29102020-05-29 Simon Marchi <simon.marchi@efficios.com>
2911
2912 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2913 dwarf2/index-cache.h, dwarf2/index-write.c,
2914 dwarf2/index-write.h, dwarf2/line-header.c,
2915 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2916 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2917 variables and fields from `dwarf2_per_objfile` to just
2918 `per_objfile` throughout.
2919
989ade05
SM
29202020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2921
2922 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2923 <push_dwarf_reg_entry_value>: Add comment.
2924
c47bae85
KB
29252020-05-28 Kevin Buettner <kevinb@redhat.com>
2926 Keith Seitz <keiths@redhat.com>
2927
2928 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2929 instead of PyEval_ReleaseLock.
2930 (class gdbpy_gil): Move to earlier in file.
2931 (finalize_python): Set gdb_python_initialized.
2932 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2933 when not initialized.
2934
44486dcf
SM
29352020-05-28 Simon Marchi <simon.marchi@efficios.com>
2936
2937 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2938 <push_dwarf_reg_entry_value>: Remove assert. Override
2939 per_objfile with caller_per_objfile.
2940
f030440d
TV
29412020-05-28 Tom de Vries <tdevries@suse.de>
2942
2943 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2944 PR gold/15646 workaround to symbol kind "type".
2945
f0fbb768
TT
29462020-05-27 Tom Tromey <tromey@adacore.com>
2947
2948 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2949
af0b2a3e
TT
29502020-05-27 Tom Tromey <tromey@adacore.com>
2951
2952 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2953 Use htab_find_with_hash.
2954 <add_abbrev>: Remove "abbrev_number" parameter.
2955 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2956 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2957 (hash_abbrev): Add comment.
2958 (abbrev_table::lookup_abbrev): Move to header file.
2959 (abbrev_table::read): Update.
2960
7d00ffec
TT
29612020-05-27 Tom Tromey <tromey@adacore.com>
2962
2963 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2964 method.
2965 <canonical_name>: New member.
2966 <raw_name>: Rename from "name".
2967 (partial_die_info): Initialize canonical_name.
2968 (scan_partial_symbols): Check raw_name.
2969 (partial_die_parent_scope, partial_die_full_name)
2970 (add_partial_symbol, add_partial_subprogram)
2971 (add_partial_enumeration, load_partial_dies): Use "name" method.
2972 (partial_die_info::name): New method.
2973 (partial_die_info::read, guess_partial_die_structure_name)
2974 (partial_die_info::fixup): Update.
2975
697bba18
TT
29762020-05-27 Tom Tromey <tromey@adacore.com>
2977
2978 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2979 <get_ref_die_offset>: Inline.
2980 <get_ref_die_offset_complaint>: New method.
2981 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2982 (attribute::get_ref_die_offset_complaint): Rename from
2983 get_ref_die_offset. Just issue complaint.
2984
c17ace43
HD
29852020-05-27 Hannes Domani <ssbssa@yahoo.de>
2986
2987 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2988
96445f0b
HD
29892020-05-27 Hannes Domani <ssbssa@yahoo.de>
2990
2991 * exec.c (exec_file_attach): Use errno value of first openp failure.
2992
ac637ec3
HD
29932020-05-27 Hannes Domani <ssbssa@yahoo.de>
2994
2995 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2996 Don't close thread handle.
2997
17ee85fc
TT
29982020-05-27 Tom Tromey <tom@tromey.com>
2999 Simon Marchi <simon.marchi@efficios.com>
3000
3001 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3002 shared_ptr.
3003 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3004 member.
3005 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3006 dwarf2_per_bfd_objfile_data_key>: New globals.
3007 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3008 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3009 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3010 shared.
3011 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3012 short-circuit when sharing.
3013 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3014 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3015
39b16f87
SM
30162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3019 to...
3020 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3021 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3022
fcf23d5b
SM
30232020-05-27 Simon Marchi <simon.marchi@efficios.com>
3024
3025 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3026 build_name_components, find_name_components_bounds>:
3027 Add per_objfile parameter.
3028 (struct mapped_index) <symbol_name_at>: Likewise.
3029 (struct mapped_debug_names): Remove constructor.
3030 <dwarf2_per_objfile>: Remove field.
3031 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3032 (mapped_index_base::find_name_components_bounds,
3033 mapped_index_base::build_name_components,
3034 dw2_expand_symtabs_matching_symbol): Likewise.
3035 (class mock_mapped_index) <symbol_name_at>: Likewise.
3036 (check_match): Likewise.
3037 (check_find_bounds_finds): Likewise.
3038 (test_mapped_index_find_name_component_bounds): Update.
3039 (CHECK_MATCH): Update.
3040 (dw2_expand_symtabs_matching): Update.
3041 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3042 per_objfile parameter.
3043 <find_vec_in_debug_names>: Likewise.
3044 <m_per_objfile>: New field.
3045 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3046 parameter.
3047 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3048 (dw2_debug_names_iterator::next): Update.
3049 (dw2_debug_names_lookup_symbol): Update.
3050 (dw2_debug_names_expand_symtabs_for_function): Update.
3051 (dw2_debug_names_map_matching_symbols): Update.
3052 (dw2_debug_names_expand_symtabs_matching): Update.
3053 (dwarf2_read_debug_names): Update.
3054
7188ed02
SM
30552020-05-27 Simon Marchi <simon.marchi@efficios.com>
3056
3057 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3058 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3059 move to dwarf2_per_objfile.
3060 <read_in_chain>: Remove.
3061 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3062 remove_all_cus, age_comp_units>: New methods.
3063 <m_dwarf2_cus>: New member.
3064 (struct dwarf2_per_cu_data) <cu>: Remove.
3065 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3066 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3067 moved to methods of dwarf2_per_objfile.
3068 (dwarf2_clear_marks): Remove.
3069 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3070 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3071 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3072 (dwarf2_per_objfile::remove_all_cus): New.
3073 (class free_cached_comp_units) <~free_cached_comp_units>:
3074 Update.
3075 (load_cu): Update.
3076 (dw2_do_instantiate_symtab): Adjust.
3077 (fill_in_sig_entry_from_dwo_entry): Adjust.
3078 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3079 (cutu_reader::cutu_reader): Likewise.
3080 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3081 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3082 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3083 and dwarf2_per_objfile::age_comp_units.
3084 (load_partial_comp_unit): Update.
3085 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3086 (process_queue): Likewise.
3087 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3088 backlink.
3089 (dwarf2_read_addr_index): Likewise.
3090 (follow_die_offset): Likewise.
3091 (dwarf2_fetch_die_loc_sect_off): Likewise.
3092 (dwarf2_fetch_constant_bytes): Likewise.
3093 (dwarf2_fetch_die_type_sect_off): Likewise.
3094 (follow_die_sig_1): Likewise.
3095 (load_full_type_unit): Likewise.
3096 (read_signatured_type): Likewise.
3097 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3098 (dwarf2_cu::~dwarf2_cu): Remove.
3099 (dwarf2_per_objfile::get_cu): New.
3100 (dwarf2_per_objfile::set_cu): New.
3101 (age_cached_comp_units): Rename to...
3102 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3103 to std::unordered_map.
3104 (free_one_cached_comp_unit): Rename to...
3105 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3106 to std::unordered_map.
3107 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3108 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3109 a dwarf2_per_objfile in data.
3110 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3111 (dwarf2_clear_marks): Remove.
3112
2e671100
SM
31132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3114
3115 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3116 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3117 (init_tu_and_read_dwo_dies): Likewise.
3118 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3119 (cutu_reader::cutu_reader): Likewise.
3120 (load_partial_comp_unit): Likewise.
3121 (process_psymtab_comp_unit): Update.
3122 (build_type_psymtabs_1): Update.
3123 (process_skeletonless_type_unit): Update.
3124 (load_full_comp_unit): Update.
3125 (find_partial_die): Update.
3126 (dwarf2_read_addr_index): Update.
3127 (read_signatured_type): Update.
3128
2e6a9f79
SM
31292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3130
3131 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3132 m_header_read_in>: New fields.
3133 <get_header>: New method.
3134 * dwarf2/read.c (per_cu_header_read_in): Remove.
3135 (dwarf2_per_cu_data::get_header): New.
3136 (dwarf2_per_cu_data::addr_size): Update.
3137 (dwarf2_per_cu_data::offset_size): Update.
3138 (dwarf2_per_cu_data::ref_addr_size): Update.
3139
1b555f17
SM
31402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3141
3142 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3143 (dw2_do_instantiate_symtab): Update.
3144 (queue_and_load_all_dwo_tus): Change parameter from
3145 dwarf2_per_cu_data to dwarf2_cu.
3146 (dwarf2_fetch_die_loc_sect_off): Update.
3147 (dwarf2_fetch_constant_bytes): Update.
3148 (dwarf2_fetch_die_type_sect_off): Update.
3149
8fc0b21d
SM
31502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3151
3152 * dwarf2/read.c (process_full_comp_unit,
3153 process_full_type_unit): Remove per_cu, per_objfile paramters.
3154 Add dwarf2_cu parameter.
3155 (process_queue): Update.
3156
168c9250
SM
31572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3158
3159 * dwarf2/read.c (create_cu_from_index_list): Replace
3160 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3161 (create_cus_from_index_list): Likewise.
3162 (create_cus_from_index): Likewise.
3163 (create_signatured_type_table_from_index): Likewise.
3164 (create_cus_from_debug_names_list): Likewise.
3165 (create_cus_from_debug_names): Likewise.
3166 (dwarf2_read_gdb_index): Update.
3167 (dwarf2_read_debug_names): Update.
3168
e286671b
TT
31692020-05-27 Tom Tromey <tom@tromey.com>
3170 Simon Marchi <simon.marchi@efficios.com>
3171
3172 * dwarf2/read.h (struct dwarf2_per_objfile)
3173 <get_type_for_signatured_type, set_type_for_signatured_type>:
3174 New methods.
3175 <m_type_map>: New member.
3176 (struct signatured_type) <type>: Remove.
3177 * dwarf2/read.c
3178 (dwarf2_per_objfile::get_type_for_signatured_type,
3179 dwarf2_per_objfile::set_type_for_signatured_type): New.
3180 (get_signatured_type): Use new methods.
3181
8adb8487
TT
31822020-05-27 Tom Tromey <tom@tromey.com>
3183 Simon Marchi <simon.marchi@efficios.com>
3184
3185 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3186 (struct dwarf2_per_objfile) <type_units>: New member.
3187 <get_type_unit_group_unshareable>: New method.
3188 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3189 num_symtabs, symtabs>: Remove; move to
3190 type_unit_group_unshareable.
3191 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3192 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3193 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3194
127bbf4b
SM
31952020-05-27 Simon Marchi <simon.marchi@efficios.com>
3196
3197 * dwarf2/read.h (struct dwarf2_per_cu_data):
3198 <dwarf2_per_objfile>: Remove.
3199 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3200 dwarf2_per_objfile.
3201 (create_signatured_type_table_from_index): Likewise.
3202 (create_signatured_type_table_from_debug_names): Likewise.
3203 (create_debug_type_hash_table): Likewise.
3204 (fill_in_sig_entry_from_dwo_entry): Likewise.
3205 (create_type_unit_group): Likewise.
3206 (read_comp_units_from_section): Likewise.
3207 (create_cus_hash_table): Likewise.
3208
f6e649dd
SM
32092020-05-27 Simon Marchi <simon.marchi@efficios.com>
3210
3211 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3212 dwarf2_per_cu_data::dwarf2_per_objfile.
3213 (compute_compunit_symtab_includes): Likewise.
3214 (dwarf2_cu::start_symtab): Likewise.
3215
aa66c379
SM
32162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3217
3218 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3219 parameter.
3220 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3221 (read_namespace_alias): Update.
3222 (lookup_die_type): Update.
3223 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3224 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3225 Update.
3226 (disassemble_dwarf_expression): Update.
3227
120ce1b5
SM
32282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3229
3230 * dwarf2/read.h (struct dwarf2_queue_item): Add
3231 dwarf2_per_objfile parameter, assign new parameter.
3232 <per_objfile>: New field.
3233 * dwarf2/read.c (free_one_cached_comp_unit): Add
3234 dwarf2_per_objfile parameter.
3235 (queue_comp_unit): Likewise.
3236 (dw2_do_instantiate_symtab): Update.
3237 (process_psymtab_comp_unit): Update.
3238 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3239 (process_imported_unit_die): Update.
3240 (queue_and_load_dwo_tu): Update.
3241 (follow_die_offset): Update.
3242 (follow_die_sig_1): Update.
3243
9f47c707
SM
32442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3245
3246 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3247 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3248 (read_call_site_scope): Assign per_objfile.
3249 (dwarf2_per_cu_data::objfile): Remove.
3250 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3251 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3252 dwarf2_per_objfile parameter.
3253 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3254 dwarf2_per_objfile parameter.
3255 (dwarf_expr_reg_to_entry_parameter): Add output
3256 dwarf2_per_objfile parameter.
3257 (locexpr_get_frame_base): Update.
3258 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3259 <push_dwarf_reg_entry_value>: Update.
3260 <call_site_to_target_addr>: Update.
3261 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3262 parameter.
3263 (value_of_dwarf_reg_entry): Update.
3264 (rw_pieced_value): Update.
3265 (indirect_synthetic_pointer): Update.
3266 (dwarf2_evaluate_property): Update.
3267 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3268 parameter.
3269 (locexpr_read_variable): Update.
3270 (locexpr_get_symbol_read_needs): Update.
3271 (loclist_read_variable): Update.
3272
14095eb3
SM
32732020-05-27 Simon Marchi <simon.marchi@efficios.com>
3274
3275 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3276 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3277 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3278 parameter.
3279 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3280 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3281 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3282 parameter.
3283 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3284 sect_variable_value): Add dwarf2_per_objfile parameter.
3285 (class dwarf_evaluate_loc_desc) <dwarf_call,
3286 dwarf_variable_value>: Update.
3287 (fetch_const_value_from_synthetic_pointer): Add
3288 dwarf2_per_objfile parameter.
3289 (fetch_const_value_from_synthetic_pointer): Update.
3290 (coerced_pieced_ref): Update.
3291 (class symbol_needs_eval_context) <dwarf_call,
3292 dwarf_variable_value>: Update.
3293 (dwarf2_compile_expr_to_ax): Update.
3294
3c3cd3d4
SM
32952020-05-27 Simon Marchi <simon.marchi@efficios.com>
3296
3297 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3298 parameter.
3299 (dwarf2_evaluate_loc_desc_full): Update.
3300
82ca3f51
SM
33012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3302
3303 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3304 parameter.
3305 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3306 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3307 dwarf2_per_objfile parameter.
3308 (decode_debug_loc_dwo_addresses): Likewise.
3309 (dwarf2_find_location_expression): Update.
3310 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3311 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3312 parameter.
3313 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3314 parameter.
3315 (locexpr_describe_location_1): Likewise.
3316 (locexpr_describe_location): Update.
3317
4b167ea1
SM
33182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3319
3320 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3321 Remove.
3322 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3323 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3324 (dwarf2_compile_property_to_c): Update.
3325 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3326 use text offset from objfile.
3327 (locexpr_tracepoint_var_ref): Update.
3328 (locexpr_generate_c_location): Update.
3329 (loclist_describe_location): Update.
3330 (loclist_tracepoint_var_ref): Update.
3331 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3332 dwarf2_per_objfile parameter.
3333 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3334 use text offset from objfile.
3335 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3336
89b07335
SM
33372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3338
3339 * dwarf2/expr.h (struct dwarf_expr_context)
3340 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3341 <offset>: Remove.
3342 <per_objfile>: New member.
3343 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3344 dwarf2_per_objfile parameter. Don't set offset, set
3345 per_objfile.
3346 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3347 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3348 a dwarf2_per_objfile object instead of an offset.
3349 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3350 constructor.
3351 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3352 to dwarf2_expr_executor constructor. Don't set offset.
3353 (dwarf2_fetch_cfa_info): Update.
3354 (struct dwarf2_frame_cache) <text_offset>: Remove.
3355 <per_objfile>: New field.
3356 (dwarf2_frame_cache): Update.
3357 (dwarf2_frame_prev_register): Update.
3358 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3359 <dwarf_evaluate_loc_desc>: Add constructor.
3360 (dwarf2_evaluate_loc_desc_full): Update.
3361 (dwarf2_locexpr_baton_eval): Update.
3362 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3363 Add constructor.
3364 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3365
293e7e51
SM
33662020-05-27 Simon Marchi <simon.marchi@efficios.com>
3367
3368 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3369 addr_sized_int_type>: Move to dwarf2_cu.
3370 <int_type>: Move to dwarf2_per_objfile.
3371 (struct dwarf2_per_objfile) <int_type>: Move here.
3372 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3373 addr_sized_int_type>: Move here.
3374 (read_func_scope): Update.
3375 (read_array_type): Update.
3376 (read_tag_string_type): Update.
3377 (attr_to_dynamic_prop): Update.
3378 (dwarf2_per_cu_data::int_type): Rename to...
3379 (dwarf2_per_objfile::int_type): ... this.
3380 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3381 (dwarf2_cu::addr_sized_int_type): ... this.
3382 (read_subrange_type): Update.
3383 (dwarf2_per_cu_data::addr_type): Rename to...
3384 (dwarf2_cu::addr_type): ... this.
3385 (set_die_type): Update.
3386
64874a40
SM
33872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3388
3389 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3390 data through per_cu->cu.
3391
4ab09049
SM
33922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3393
3394 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3395 dwarf2_per_cu_data parameter fo dwarf2_cu.
3396 (lookup_dwo_type_unit): Likewise.
3397 (read_cutu_die_from_dwo): Likewise.
3398 (lookup_dwo_unit): Likewise.
3399 (open_and_init_dwo_file): Likewise.
3400 (lookup_dwo_cutu): Likewise.
3401 (lookup_dwo_comp_unit): Likewise.
3402 (lookup_dwo_type_unit): Likewise.
3403 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3404 (cutu_reader::cutu_reader): Update.
3405
47b14e86
SM
34062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3407
3408 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3409 parameter.
3410 (process_full_type_unit): Likewise.
3411 (process_queue): Update.
3412
43182c09
SM
34132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3414
3415 * dwarf2/read.c (recursively_compute_inclusions): Add
3416 dwarf2_per_objfile parameter.
3417 (compute_compunit_symtab_includes): Likewise.
3418 (process_cu_includes): Update.
3419
7aa104c4
SM
34202020-05-27 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3423 parameter.
3424 (create_type_unit_group): Update.
3425 (process_psymtab_comp_unit_reader): Update.
3426 (build_type_psymtabs_reader): Update.
3427
e3beb21d
SM
34282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3429
3430 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3431 object through m_this_cu->cu.
3432
d460f660
SM
34332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3434
3435 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3436 the info parameter.
3437 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3438
ab432490
SM
34392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3440
3441 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3442 per_objfile parameter.
3443 (load_full_type_unit): Add per_objfile parameter.
3444 (read_signatured_type): Likewise.
3445 (load_full_comp_unit): Likewise.
3446 (load_cu): Likewise.
3447 (dw2_do_instantiate_symtab): Likewise.
3448 (dw2_get_file_names): Likewise.
3449 (dw2_map_symtabs_matching_filename): Update.
3450 (dw_expand_symtabs_matching_file_matcher): Update.
3451 (dw2_map_symbol_filenames): Update.
3452 (process_psymtab_comp_unit): Add per_objfile parameter.
3453 (build_type_psymtabs_1): Update.
3454 (process_skeletonless_type_unit): Update.
3455 (dwarf2_build_psymtabs_hard): Update.
3456 (load_partial_comp_unit): Add per_objfile parameter.
3457 (scan_partial_symbols): Update.
3458 (load_full_comp_unit): Add per_objfile parameter.
3459 (process_imported_unit_die): Update.
3460 (create_cus_hash_table): Update.
3461 (find_partial_die): Update.
3462 (dwarf2_read_addr_index): Update.
3463 (follow_die_offset): Update.
3464 (dwarf2_fetch_die_loc_sect_off): Update.
3465 (dwarf2_fetch_constant_bytes): Update.
3466 (dwarf2_fetch_die_type_sect_off): Update.
3467 (follow_die_sig_1): Update.
3468 (load_full_type_unit): Add per_objfile parameter.
3469 (read_signatured_type): Likewise.
3470
313bad1b
SM
34712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3474 of objfile_name.
3475
c3699833
SM
34762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3477
3478 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3479 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3480 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3481 field.
3482 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3483 (create_cus_from_index): Update.
3484 (dwarf2_read_gdb_index): Update.
3485 (create_cus_from_debug_names): Update.
3486 (dwarf2_read_debug_names): Update.
3487 (get_abbrev_section_for_cu): Update.
3488 (create_all_comp_units): Update.
3489 (read_attribute_value): Update.
3490 (get_debug_line_section): Update.
3491 * dwarf2/index-cache.c (index_cache::store): Update.
3492 * dwarf2/index-write.c (save_gdb_index_command): Update.
3493 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3494
1859c670
SM
34952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3496
3497 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3498 member.
3499 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3500 dwarf2_per_cu_data::per_bfd.
3501 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3502 (create_type_unit_group): Likewise.
3503 (queue_comp_unit): Remove reference to
3504 per_cu->dwarf2_per_objfile.
3505 (maybe_queue_comp_unit): Likewise.
3506 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3507 (create_cus_hash_table): Assign new field.
3508
5e22e966
SM
35092020-05-27 Simon Marchi <simon.marchi@efficios.com>
3510
3511 * dwarf2/read.c: Replace
3512 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3513 dwarf2_cu->per_objfile throughout.
3514
97a1449a
SM
35152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3516
3517 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3518 parameter, don't use per_cu->dwarf2_per_objfile.
3519 (dw2_instantiate_symtab): Likewise.
3520 (dw2_find_last_source_symtab): Update.
3521 (dw2_map_expand_apply): Update.
3522 (dw2_lookup_symbol): Update.
3523 (dw2_expand_symtabs_for_function): Update.
3524 (dw2_expand_all_symtabs): Update.
3525 (dw2_expand_symtabs_with_fullname): Update.
3526 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3527 don't use per_cu->dwarf2_per_objfile.
3528 (dw2_expand_marked_cus): Update.
3529 (dw2_find_pc_sect_compunit_symtab): Update.
3530 (dw2_debug_names_lookup_symbol): Update.
3531 (dw2_debug_names_expand_symtabs_for_function): Update.
3532 (dw2_debug_names_map_matching_symbols): Update.
3533 (dwarf2_psymtab::expand_psymtab): Update.
3534
9e021579
SM
35352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3536
3537 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3538 <per_objfile>: New member.
3539 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3540 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3541 call to dwarf2_cu.
3542 (cutu_reader::cutu_reader): Update.
3543 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3544
ae090bdb
SM
35452020-05-27 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3548 struct dwarf2_per_objfile.
3549 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3550 dwarf2_per_bfd.
3551 * dwarf2/read.c (set_die_type): Update.
3552 (get_die_type_at_offset): Update.
3553
af758d11
SM
35542020-05-27 Tom Tromey <tom@tromey.com>
3555 Simon Marchi <simon.marchi@efficios.com>
3556
3557 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3558 method.
3559 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3560 get_symtab, set_symtab>: New methods.
3561 <m_symtabs>: New field.
3562 (struct dwarf2_psymtab): Derive from partial_symtab.
3563 <readin_p, get_compunit_symtab>: Declare methods.
3564 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3565 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3566 New methods.
3567 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3568 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3569 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3570 (dw2_symtab_iter_next, dw2_print_stats)
3571 (dw2_expand_symtabs_with_fullname)
3572 (dw2_expand_symtabs_matching_one)
3573 (dw_expand_symtabs_matching_file_matcher)
3574 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3575 (dw2_debug_names_iterator::next)
3576 (dw2_debug_names_map_matching_symbols)
3577 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3578 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3579 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3580 New methods.
3581 (get_compunit_symtab, process_full_comp_unit)
3582 (process_full_type_unit): Update.
3583 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3584
5989a64e
SM
35852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3586
3587 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3588 then introduce a new dwarf2_per_objfile type.
3589 <read_line_string>: Move to the new dwarf2_per_objfile type.
3590 <objfile>: Likewise.
3591 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3592 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3593 dwarf2_per_objfile->per_bfd.
3594 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3595 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3596 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3597 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3598 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3599 (dwarf2_per_objfile::locate_sections): Rename to...
3600 (dwarf2_per_bfd::locate_sections): ... this.
3601 (dwarf2_per_objfile::get_cutu): Rename to...
3602 (dwarf2_per_bfd::get_cutu): ... this.
3603 (dwarf2_per_objfile::get_cu): Rename to...
3604 (dwarf2_per_bfd::get_cu): ... this.
3605 (dwarf2_per_objfile::get_tu): Rename to...
3606 (dwarf2_per_bfd::get_tu): ... this.
3607 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3608 (dwarf2_per_bfd::allocate_per_cu): ... this.
3609 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3610 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3611 (get_gdb_index_contents_ftype): Change parameter from
3612 dwarf2_per_objfile to dwarf2_per_bfd.
3613 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3614 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3615
a50264ba
TT
36162020-05-27 Tom Tromey <tom@tromey.com>
3617 Simon Marchi <simon.marchi@efficios.com>
3618
3619 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3620 (allocate_piece_closure): Set "per_objfile" member.
3621 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3622 (locexpr_describe_location, loclist_describe_location): Use new
3623 member.
3624 * dwarf2/read.c (read_call_site_scope)
3625 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3626 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3627 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3628 handle_data_member_location): Set per_objfile member.
3629 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3630 member.
3631 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3632
d3473f0c
TT
36332020-05-27 Tom Tromey <tom@tromey.com>
3634
3635 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3636 allocate_signatured_type>: Declare new methods.
3637 <m_num_psymtabs>: New member.
3638 (struct dwarf2_per_cu_data) <index>: New member.
3639 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3640 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3641 (create_cu_from_index_list): Use allocate_per_cu.
3642 (create_signatured_type_table_from_index)
3643 (create_signatured_type_table_from_debug_names)
3644 (create_debug_type_hash_table, add_type_unit)
3645 (read_comp_units_from_section): Use allocate_signatured_type.
3646
5717c425
TT
36472020-05-27 Tom Tromey <tom@tromey.com>
3648
3649 * psymtab.c (partial_map_expand_apply)
3650 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3651 (psym_lookup_global_symbol_language)
3652 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3653 (psym_print_stats, psym_expand_symtabs_for_function)
3654 (psym_map_symbol_filenames, psym_map_matching_symbols)
3655 (psym_expand_symtabs_matching)
3656 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3657 (maintenance_check_psymtabs): Update.
3658 * psympriv.h (struct partial_symtab) <readin_p,
3659 get_compunit_symtab>: Add objfile parameter.
3660 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3661 Likewise.
3662 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3663 get_compunit_symtab>: Likewise.
3664 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3665
45940949
TT
36662020-05-27 Tom Tromey <tom@tromey.com>
3667
3668 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3669 member.
3670 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3671 (create_cu_from_index_list)
3672 (create_signatured_type_table_from_index)
3673 (create_signatured_type_table_from_debug_names)
3674 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3675 (dwarf2_create_include_psymtab)
3676 (create_debug_type_hash_table, add_type_unit)
3677 (create_type_unit_group, read_comp_units_from_section)
3678 (dwarf2_compute_name, create_cus_hash_table)
3679 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3680 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3681 obstack.
3682 (dw2_get_real_path): Likewise. Change argument to
3683 dwarf2_per_objfile.
3684
f8c6d152
LM
36852020-05-27 Luis Machado <luis.machado@linaro.org>
3686
3687 PR tdep/26000
3688 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3689 for ldrd (immediate).
3690
e98d2e6d
PW
36912020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3692
3693 * command.h: Add comment giving the name of class_tui.
3694 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3695 create the fake command for the help for class_tui.
3696
53a47a3e
TT
36972020-05-26 Tom Tromey <tromey@adacore.com>
3698
3699 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3700 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3701 (val_atr): New function.
3702 (value_val_atr): Use it.
3703 * ada-valprint.c (print_optional_low_bound): Change low bound
3704 handling for enums.
3705 (val_print_packed_array_elements): Don't call discrete_position.
3706 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3707 discrete_position for enum types.
3708 * language.c (default_print_array_index): Change type.
3709 * language.h (struct language_defn) <la_print_array_index>: Add
3710 index_type parameter, change type of index_value.
3711 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3712 (default_print_array_index): Update.
3713 * valprint.c (maybe_print_array_index): Don't call
3714 value_from_longest. Update.
3715 (value_print_array_elements): Don't call discrete_position.
3716
0bc2354b
TT
37172020-05-26 Tom Tromey <tromey@adacore.com>
3718
3719 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3720 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3721
1218a4bf
CDA
37222020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3723
3724 PR gdb/13519
3725 * avr-tdep.c (avr_integer_to_address): Return data or code
3726 address accordingly to the second 'type' argument of the
3727 function.
3728
92651b1d
MW
37292020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3730
3731 * infcmd.c, inferior.h: (construct_inferior_arguments):
3732 Moved function from here to gdbsupport/common-inferior.{h,cc}
3733
0a4f5f8c
TT
37342020-05-23 Tom Tromey <tom@tromey.com>
3735
3736 Revert commit eca1f90c:
3737 * NEWS: Remove entry for completion styling.
3738 * completer.c (_rl_completion_prefix_display_length): Move
3739 declaration later.
3740 (gdb_fnprint): Revert.
3741 (gdb_display_match_list_1): Likewise.
3742 * cli/cli-style.c (completion_prefix_style)
3743 (completion_difference_style, completion_suffix_style): Remove.
3744 (_initialize_cli_style): Revert.
3745 * cli/cli-style.h (completion_prefix_style)
3746 (completion_difference_style, completion_suffix_style): Don't
3747 declare.
3748
e08bd6c5
PA
37492020-05-24 Pedro Alves <palves@redhat.com>
3750
3751 * symtab.c (completion_list_add_name): Return boolean indication
3752 of whether the symbol matched.
3753 (completion_list_add_symbol): Don't try to remove C++ aliases if
3754 the symbol didn't match in the first place.
3755 * symtab.h (completion_list_add_name): Return bool.
3756
ceacbf6e
SM
37572020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3758
3759 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3760 type::field.
3761
26f16254
JB
37622020-05-23 Joel Brobecker <brobecker@adacore.com>
3763
3764 GDB 9.2 released.
3765
eca1f90c
TT
37662020-05-23 Tom Tromey <tom@tromey.com>
3767
3768 * NEWS: Add entry for completion styling.
3769 * completer.c (_rl_completion_prefix_display_length): Move
3770 declaration earlier.
3771 (gdb_fnprint): Use completion_style.
3772 (gdb_display_match_list_1): Likewise.
3773 * cli/cli-style.c (completion_prefix_style)
3774 (completion_difference_style, completion_suffix_style): New
3775 globals.
3776 (_initialize_cli_style): Register new globals.
3777 * cli/cli-style.h (completion_prefix_style)
3778 (completion_difference_style, completion_suffix_style): Declare.
3779
51e2cfa2
PA
37802020-05-23 Pedro Alves <palves@redhat.com>
3781
3782 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3783 (parse_escape): Use ISDIGIT instead of isdigit.
3784 (puts_debug): Use gdb_isprint instead of isprint.
3785 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3786 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3787 ISSPACE instead of isspace.
3788 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3789 instead of isspace.
3790 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3791 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3792 instead of isxdigit and ISDIGIT instead of isdigit.
3793
80fc5e77
SM
37942020-05-22 Simon Marchi <simon.marchi@efficios.com>
3795
3796 * gdbtypes.h (struct type) <field>: New method.
3797 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3798 or type::field.
3799
3cabb6b0
SM
38002020-05-22 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3803 (TYPE_FIELDS): Use type::fields. Change all call sites that
3804 modify the propery to use type::set_fields instead.
3805
1f704f76
SM
38062020-05-22 Simon Marchi <simon.marchi@efficios.com>
3807
3808 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3809 type::num_fields instead.
3810
5e33d5f4
SM
38112020-05-22 Simon Marchi <simon.marchi@efficios.com>
3812
3813 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3814 methods.
3815 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3816 that modify the number of fields to use type::set_num_fields
3817 instead.
3818
9392ebb3
TT
38192020-05-22 Tom Tromey <tromey@adacore.com>
3820
3821 * compile/compile-object-load.h (munmap_list_free): Don't
3822 declare.
3823
7c13f4e8
AB
38242020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * annotate.c (annotate_source_line): Update return type, add call
3827 to update current symtab and line.
3828 * annotate.h (annotate_source_line): Update return type, and
3829 extend header comment.
3830 * source.c (info_line_command): Check annotation_level before
3831 calling annotate_source_line.
3832 * stack.c (print_frame_info): If calling annotate_source_line
3833 returns true, then don't print any other source line information.
3834
aa370940
SM
38352020-05-21 Simon Marchi <simon.marchi@efficios.com>
3836
3837 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3838
84d53fa9
SM
38392020-05-21 Simon Marchi <simon.marchi@efficios.com>
3840
3841 * coffread.c (patch_type): Remove NULL check before xfree.
3842 * corefile.c (set_gnutarget): Likewise.
3843 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3844 * exec.c (build_section_table): Likewise.
3845 * remote.c (remote_target::pass_signals): Likewise.
3846 * utils.c (n_spaces): Likewise.
3847 * cli/cli-script.c (document_command): Likewise.
3848 * i386-windows-tdep.c (core_process_module_section): Likewise.
3849 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3850
9d428aae
SM
38512020-05-20 Simon Marchi <simon.marchi@efficios.com>
3852
3853 * symfile.c (reread_symbols): Clear objfile's section_offsets
3854 vector and section indices, re-compute them by calling
3855 sym_offsets.
3856
250106a7
TT
38572020-05-20 Tom Tromey <tromey@adacore.com>
3858
3859 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3860 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3861
9a0bacfb
TV
38622020-05-20 Tom de Vries <tdevries@suse.de>
3863
3864 PR symtab/25833
3865 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3866
7b958a48
AM
38672020-05-20 Alan Modra <amodra@gmail.com>
3868
3869 PR 25993
3870 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3871 bfd_set_filename.
3872 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3873 passed to bfd_set_filename.
3874 * symfile-mem.c (add_vsyscall_page): Likewise for string
3875 passed to symbol_file_add_from_memory.
3876 (symbol_file_add_from_memory): Make name param a const char* and
3877 don't strdup.
3878
c7e97679
AM
38792020-05-20 Alan Modra <amodra@gmail.com>
3880
3881 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3882 rather than accessing bfd->filename directly.
3883 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3884 and use bfd_section_name.
3885 * dwarf2/frame.c (decode_frame_entry): Likewise.
3886 * exec.c (exec_set_section_address): Likewise.
3887 * solib-aix.c (solib_aix_bfd_open): Likewise.
3888 * stap-probe.c (get_stap_base_address): Likewise.
3889 * symfile.c (reread_symbols): Likewise.
3890
563c591b
TT
38912020-05-19 Tom Tromey <tromey@adacore.com>
3892
3893 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3894
f408d82c
SM
38952020-05-19 Simon Marchi <simon.marchi@efficios.com>
3896
3897 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3898
98c59b52
PA
38992020-05-19 Pedro Alves <palves@redhat.com>
3900
3901 * NEWS (set exec-file-mismatch): Adjust entry.
3902 * exec.c: Include "build-id.h".
3903 (validate_exec_file): Try to match build IDs instead of filenames.
3904 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3905 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3906 and pass down 'warn_if_slow'.
3907 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3908 gdb_bfd_open_closure to pass it down.
3909 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3910
4111f652
PA
39112020-05-19 Pedro Alves <palves@redhat.com>
3912
3913 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3914 * target.c (target_fileio_open_1): Rename to target_fileio_open
3915 and make extern. Use bool.
3916 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3917 (target_fileio_read_alloc_1): Adjust.
3918 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3919 (target_fileio_open_warn_if_slow): Delete declaration.
3920
ad80db5b
PA
39212020-05-19 Pedro Alves <palves@redhat.com>
3922
3923 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3924 Adjust all callers.
3925
1d6ce4d3
YS
39262020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3927
3928 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3929 whether disp is negative.
3930
9005fbbb
SM
39312020-05-19 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * symfile.h (struct symfile_segment_data)
3934 <~symfile_segment_data>: Remove.
3935 <segment_info>: Change to std::vector.
3936 * symfile.c (default_symfile_segments): Update.
3937 * elfread.c (elf_symfile_segments): Update.
3938
68b888ff
SM
39392020-05-19 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3942 <segments>: New.
3943 <segment_bases, segment_sizes>: Remove.
3944 * symfile.c (default_symfile_segments): Update.
3945 * elfread.c (elf_symfile_segments): Update.
3946 * remote.c (remote_target::get_offsets): Update.
3947 * solib-target.c (solib_target_relocate_section_addresses):
3948 Update.
3949
62982abd
SM
39502020-05-19 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * symfile.h (struct symfile_segment_data): Initialize fields.
3953 <~symfile_segment_data>: Add.
3954 (symfile_segment_data_up): New.
3955 (struct sym_fns) <sym_segments>: Return a
3956 symfile_segment_data_up.
3957 (default_symfile_segments): Return a symfile_segment_data_up.
3958 (free_symfile_segment_data): Remove.
3959 (get_symfile_segment_data): Return a symfile_segment_data_up.
3960 * symfile.c (default_symfile_segments): Likewise.
3961 (get_symfile_segment_data): Likewise.
3962 (free_symfile_segment_data): Remove.
3963 (symfile_find_segment_sections): Update.
3964 * elfread.c (elf_symfile_segments): Return a
3965 symfile_segment_data_up.
3966 * remote.c (remote_target::get_offsets): Update.
3967 * solib-target.c (solib_target_relocate_section_addresses):
3968 Update.
3969 * symfile-debug.c (debug_sym_segments): Return a
3970 symfile_segment_data_up.
3971
7f204339
RO
39722020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3973
e52a0f1b
RO
3974 PR build/25981
3975 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3976 Hardcode register numbers.
3977
7f204339
RO
3978 PR build/25981
3979 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3980 procfs_find_LDT_entry): Remove.
3981 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3982 procfs_find_LDT_entry): Remove.
3983 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3984 Remove.
3985
7f32a4d5
PA
39862020-05-17 Pedro Alves <palves@redhat.com>
3987 Andrew Burgess <andrew.burgess@embecosm.com>
3988 Keno Fischer <keno@juliacomputing.com>
3989
3990 PR gdb/25741
3991 * breakpoint.c (build_target_condition_list): Update comments.
3992 (build_target_command_list): Update comments and skip matching
3993 locations.
3994 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3995 a separate function. Simplify "set breakpoint auto-hw off"
3996 handling.
3997 (insert_breakpoints): Update comment.
3998 (tracepoint_locations_match): New parameter. For breakpoints,
3999 compare location types too, if the caller wants to.
4000 (handle_automatic_hardware_breakpoints): New functions.
4001 (bp_location_is_less_than): Also sort by location type and
4002 hardware breakpoint length.
4003 (update_global_location_list): Handle "set breakpoint auto-hw on"
4004 here.
4005 (update_breakpoint_locations): Ask breakpoint_locations_match to
4006 ignore location types.
4007
7d93a1e0
SM
40082020-05-16 Simon Marchi <simon.marchi@efficios.com>
4009
4010 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4011 type::name instead.
4012
d0e39ea2
SM
40132020-05-16 Simon Marchi <simon.marchi@efficios.com>
4014
4015 * gdbtypes.h (struct type) <name, set_name>: New methods.
4016 (TYPE_CODE): Use type::name. Change all call sites used to set
4017 the name to use type::set_name instead.
4018
2dab0c7b
TT
40192020-05-16 Tom Tromey <tom@tromey.com>
4020
4021 * top.c (quit_force): Update.
4022 * infrun.c (handle_no_resumed): Update.
4023 * top.h (all_uis): New function.
4024 (ALL_UIS): Remove.
4025
59f7bd8d
SM
40262020-05-16 Simon Marchi <simon.marchi@efficios.com>
4027
4028 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4029
9bf058f0
PA
40302020-05-16 Pedro Alves <palves@redhat.com>
4031
4032 * ia64-linux-nat.c
4033 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4034 Declare method.
4035 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4036
8f86ae1a
SM
40372020-05-15 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4040 (sparc64_adi_info): Likewise.
4041
d6bc0792
TT
40422020-05-15 Tom Tromey <tom@tromey.com>
4043
4044 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4045 block_objfile.
4046 (lookup_objfile_from_block): Remove.
4047 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4048 (lookup_global_symbol): Use block_objfile.
4049 * symtab.h (lookup_objfile_from_block): Don't declare.
4050 * printcmd.c (clear_dangling_display_expressions): Use
4051 block_objfile.
4052 * parse.c (operator_check_standard): Use block_objfile.
4053
8c14c3a3
TT
40542020-05-15 Tom Tromey <tom@tromey.com>
4055
4056 * language.c (language_alloc_type_symbol): Set
4057 SYMBOL_SECTION.
4058 * symtab.c (initialize_objfile_symbol): Remove.
4059 (allocate_symbol): Remove.
4060 (allocate_template_symbol): Remove.
4061 * dwarf2/read.c (fixup_go_packaging): Use "new".
4062 (new_symbol): Use "new".
4063 (read_variable): Don't call initialize_objfile_symbol. Use
4064 "new".
4065 (read_func_scope): Use "new".
4066 * xcoffread.c (process_xcoff_symbol): Don't call
4067 initialize_objfile_symbol.
4068 (SYMBOL_DUP): Remove.
4069 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4070 "new".
4071 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4072 (allocate_template_symbol): Don't declare.
4073 (struct symbol): Add copy constructor. Change defaults.
4074 * jit.c (finalize_symtab): Use "new".
4075 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4076 Use "new".
4077 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4078 (common_block_end): Use "new".
4079 * mdebugread.c (parse_symbol): Use "new".
4080 (new_symbol): Likewise.
4081
5b4a1a8d
PW
40822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4083
4084 * NEWS: Mention changes to help and apropos.
4085
57b4f16e
PW
40862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4087
4088 * command.h (enum command_class): Improve comments, document
4089 that class_alias is for user-defined aliases, give the class
4090 name for each class, remove unused class_xdb.
4091 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4092 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4093 by a precise class.
4094 * infcmd.c (_initialize_infcmd): Likewise.
4095 * reverse.c (_initialize_reverse): Likewise.
4096 * stack.c (_initialize_stack): Likewise.
4097 * symfile.c (_initialize_symfile): Likewise.
4098 * tracepoint.c (_initialize_tracepoint): Likewise.
4099
7c05caf7
PW
41002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4101
4102 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4103 when their aliased command is traversed.
4104 (help_cmd): Add fput_command_names_styled call to
4105 output command name and aliases when command has an alias.
4106
3b3aaacb
PW
41072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4108
4109 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4110 * cli/cli-decode.c (help_cmd_list): Declare as static,
4111 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4112 a command together with the command.
4113 (fput_command_name_styled, fput_command_names_styled): New functions.
4114 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4115 fput_command_name_styled.
4116 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4117 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4118
7aa1b46f
PW
41192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4120
4121 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4122 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4123 * command.h (cmd_show_list): Likewise.
4124 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4125 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4126
89bcba74
PW
41272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4128
4129 * unittests/command-def-selftests.c (traverse_command_structure):
4130 Verify all commands of a list have the same prefix command and
4131 that only the top cmdlist commands have a null prefix.
4132
3f4d92eb
PW
41332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4134
4135 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4136 as prefix, not one of its aliases.
4137 (set_cmd_prefix): Remove.
4138 (do_add_cmd): Centralize the setting of the prefix of a command, when
4139 command is defined after its full chain of prefix commands.
4140 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4141 (add_setshow_cmd_full): Likewise.
4142 (update_prefix_field_of_prefixed_commands): New function.
4143 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4144 update_prefix_field_of_prefixed_commands.
4145 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4146 addresses of remote_set_cmdlist and remote_show_cmdlist given
4147 as argument, not the address of an argument.
4148 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4149 * gdb/remote.c (_initialize_remote): Likewise.
4150
0605465f
PW
41512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4152
4153 * cli/cli-cmds.c (alias_command): Check for an existing alias
4154 using lookup_cmd_composition, as valid_command_p is too strict
4155 and forbids aliases that are the prefix of an existing alias
4156 or command.
4157 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4158 command is properly recognised as a valid command.
4159
58e6ac70
PW
41602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4161
4162 * unittests/help-doc-selftests.c: Rename to
4163 unittests/command-def-selftests.c
4164 * unittests/command-def-selftests.c (help_doc_tests): Update some
4165 comments.
4166 (command_structure_tests, traverse_command_structure): New namespace
4167 and function.
4168 (command_structure_invariants_tests): New function.
4169 (_initialize_command_def_selftests) Renamed from
4170 _initialize_help_doc_selftests, register command_structure_invariants
4171 selftest.
4172
a7b9ceb8
PW
41732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4174
4175 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4176 an alias of 'show'.
4177
b2188a06
JB
41782020-05-15 Joel Brobecker <brobecker@adacore.com>
4179
4180 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4181 ada_is_fixed_point_type. Update all callers.
4182 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4183 all callers.
4184 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4185 Update all callers.
4186 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4187 print_fixed_point_type. Update all callers.
4188 * ada-valprint.c (ada_value_print_num): Replace call to
4189 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4190
a51951c2
KB
41912020-05-14 Kevin Buettner <kevinb@redhat.com>
4192
4193 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4194 processors.
4195 (cpu_supports_bts): Add CV_AMD case.
4196
29d6859f
LM
41972020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4198 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * infrun.c (stop_all_threads): Collect multiple wait events at
4201 each pass.
4202
78134374
SM
42032020-05-14 Simon Marchi <simon.marchi@efficios.com>
4204
4205 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4206 type::code instead.
4207
67607e24
SM
42082020-05-14 Simon Marchi <simon.marchi@efficios.com>
4209
4210 * gdbtypes.h (struct type) <code, set_code>: New methods.
4211 (TYPE_CODE): Use type::code. Change all call sites used to set
4212 the code to use type::set_code instead.
4213
a05575d3
TBA
42142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4215 Tom de Vries <tdevries@suse.de>
4216 Pedro Alves <palves@redhat.com>
4217
4218 PR threads/25478
4219 * infrun.c (stop_all_threads): Do NOT ignore
4220 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4221 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4222 received.
4223 (handle_no_resumed): Remove code handling a live inferior with no
4224 threads.
4225 * remote.c (has_single_non_exited_thread): New.
4226 (remote_target::update_thread_list): Do not delete a thread if is
4227 the last thread of the process.
4228 * thread.c (thread_select): Call delete_exited_threads instead of
4229 prune_threads.
4230
6ad82919
TBA
42312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4232
4233 * infrun.c (stop_all_threads): Enable/disable thread events of all
4234 targets. Move a debug message denoting the end of the function
4235 into the SCOPED_EXIT block.
4236
d890404b
TBA
42372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4238
4239 * process-stratum-target.h: Include <set>.
4240 (all_non_exited_process_targets, switch_to_target_no_thread): New
4241 function declarations.
4242 * process-stratum-target.c (all_non_exited_process_targets)
4243 (switch_to_target_no_thread): New function implementations.
4244
293b3ebc
TBA
42452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4246
4247 * infrun.c (handle_inferior_event): Extract out a piece of code
4248 into...
4249 (mark_non_executing_threads): ...this new function.
4250
7ca9b62a
TBA
42512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4252
4253 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4254 use.
4255
fc75c28b
TBA
42562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4257
4258 * regcache.c (regcache_read_pc_protected): New function
4259 implementation that returns 0 if the PC cannot read via
4260 'regcache_read_pc'.
4261 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4262 instead of 'regcache_read_pc'.
4263 (keep_going_pass_signal): Ditto.
4264
a89febbd
TT
42652020-05-13 Tom Tromey <tromey@adacore.com>
4266
4267 * ada-lang.c (align_value): Remove.
4268 (ada_template_to_fixed_record_type_1): Use align_up.
4269
f7e23710
TBA
42702020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4271
4272 * async-event.c: Update the copyright year.
4273 * async-event.h: Update the copyright year.
4274
02ff80c2
SM
42752020-05-12 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * objfiles.h (is_addr_in_objfile,
4278 shared_objfile_contains_address_p): Return bool.
4279 * objfile.c (is_addr_in_objfile,
4280 shared_objfile_contains_address_p): Return bool.
4281
4fd6c7e8
TT
42822020-05-11 Tom Tromey <tromey@adacore.com>
4283
4284 * cli/cli-cmds.c (info_command): Restore.
4285 (_initialize_cli_cmds): Use add_prefix_command for "info".
4286 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4287
5eb68a39
TT
42882020-05-11 Tom Tromey <tromey@adacore.com>
4289
4290 * ada-lang.c (ada_value_primitive_field): Now public.
4291 * ada-lang.h (ada_value_primitive_field): Declare.
4292 * ada-valprint.c (print_field_values): Use
4293 ada_value_primitive_field for wrapper fields.
4294
7666722f
TV
42952020-05-11 Tom de Vries <tdevries@suse.de>
4296
4297 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4298 MODULE_DOMAIN.
4299
3ee6bb11
TV
43002020-05-11 Tom de Vries <tdevries@suse.de>
4301
4302 PR symtab/25941
4303 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4304 with length 0, if not gdb-produced.
4305 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4306
43434996
TV
43072020-05-09 Tom de Vries <tdevries@suse.de>
4308
4309 PR gdb/25955
4310 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4311 calculation.
4312
2f78cffc
TT
43132020-05-09 Tom Tromey <tom@tromey.com>
4314
4315 * top.c (server_command): Now bool.
4316 * top.h (server_command): Now bool.
4317
4f7bc5ed
TT
43182020-05-08 Tom Tromey <tromey@adacore.com>
4319
4320 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4321 already being processed.
4322
8be4b118
TT
43232020-05-08 Tom Tromey <tom@tromey.com>
4324
4325 * printcmd.c (struct display) <next>: Remove.
4326 <display>: New constructor.
4327 <exp_string>: Now a std::string.
4328 <enabled_p>: Now a bool.
4329 (display_number): Move definition earlier.
4330 (displays): Rename from display_chain. Now a std::vector.
4331 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4332 (display_command): Update.
4333 (do_one_display, disable_display)
4334 (enable_disable_display_command, do_enable_disable_display):
4335 Update.
4336 (free_display): Remove.
4337 (clear_displays): Rewrite.
4338 (delete_display): Update.
4339 (map_display_numbers): Use function_view. Remove "data"
4340 parameter. Update.
4341 (do_delete_display): Remove.
4342 (undisplay_command): Update.
4343 (do_one_display, do_displays, disable_display)
4344 (info_display_command): Update.
4345 (do_enable_disable_display): Remove.
4346 (enable_disable_display_command)
4347 (clear_dangling_display_expressions): Update.
4348
94c93c35
TT
43492020-05-08 Tom Tromey <tom@tromey.com>
4350
4351 * symtab.c (set_symbol_cache_size)
4352 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4353 (maintenance_print_symbol_cache_statistics): Update.
4354 * symmisc.c (print_symbol_bcache_statistics)
4355 (print_objfile_statistics, maintenance_print_objfiles)
4356 (maintenance_info_symtabs, maintenance_check_symtabs)
4357 (maintenance_expand_symtabs, maintenance_info_line_tables):
4358 Update.
4359 * symfile-debug.c (set_debug_symfile): Update.
4360 * source.c (forget_cached_source_info): Update.
4361 * python/python.c (gdbpy_progspaces): Update.
4362 * psymtab.c (maintenance_info_psymtabs): Update.
4363 * probe.c (parse_probes): Update.
4364 * linespec.c (iterate_over_all_matching_symtabs)
4365 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4366 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4367 * exec.c (exec_target::close): Update.
4368 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4369 * breakpoint.c (print_one_breakpoint_location)
4370 (create_longjmp_master_breakpoint)
4371 (create_std_terminate_master_breakpoint): Update.
4372 * progspace.c (program_spaces): Now a std::vector.
4373 (maybe_new_address_space): Update.
4374 (add_program_space): Remove.
4375 (program_space::program_space): Update.
4376 (remove_program_space): Update.
4377 (number_of_program_spaces): Remove.
4378 (print_program_space, update_address_spaces): Update.
4379 * progspace.h (program_spaces): Change type.
4380 (ALL_PSPACES): Remove.
4381 (number_of_program_spaces): Don't declare.
4382 (struct program_space) <next>: Remove.
4383
a1fd1ac9
TT
43842020-05-08 Tom Tromey <tom@tromey.com>
4385
4386 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4387 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4388 (enable_break): Update.
4389 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4390 (frv_fdpic_find_canonical_descriptor): Update.
4391 (frv_fetch_objfile_link_map): Update.
4392 * progspace.c (program_space::free_all_objfiles): Update.
4393 (program_space::solibs): New method.
4394 * progspace.h (struct program_space) <solibs>: New method.
4395 * solist.h (master_so_list): Don't declare.
4396 (ALL_SO_LIBS): Remove.
4397 * solib.h (so_list_head): Remove.
4398 (update_solib_list): Update comment.
4399 * solib.c (master_so_list): Remove.
4400 (solib_used, update_solib_list, solib_add)
4401 (info_sharedlibrary_command, clear_solib)
4402 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4403
38eae084
TT
44042020-05-08 Tom Tromey <tom@tromey.com>
4405
4406 * extension.c (extension_languages): Now a std::array.
4407 (ALL_EXTENSION_LANGUAGES): Remove.
4408 (get_ext_lang_defn, get_ext_lang_of_file)
4409 (eval_ext_lang_from_control_command): Update.
4410 (finish_ext_lang_initialization)
4411 (auto_load_ext_lang_scripts_for_objfile)
4412 (ext_lang_type_printers::ext_lang_type_printers)
4413 (apply_ext_lang_type_printers)
4414 (ext_lang_type_printers::~ext_lang_type_printers)
4415 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4416 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4417 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4418 (get_matching_xmethod_workers, ext_lang_colorize)
4419 (ext_lang_before_prompt): Update.
4420 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4421
596dc4ad
TT
44222020-05-08 Tom Tromey <tom@tromey.com>
4423
4424 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4425 overload.
4426 <swap_string, m_string>: Remove.
4427 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4428 Update.
4429 * stabsread.c (define_symbol, read_type): Update.
4430 * linespec.c (find_linespec_symbols): Update.
4431 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4432 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4433 * dbxread.c (read_dbx_symtab): Update.
4434 * cp-support.h (cp_canonicalize_string_full)
4435 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4436 Return unique_xmalloc_ptr.
4437 * cp-support.c (inspect_type): Update.
4438 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4439 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4440 Likewise.
4441 * c-typeprint.c (print_name_maybe_canonical): Update.
4442 * break-catch-throw.c (check_status_exception_catchpoint):
4443 Update.
4444
bf4cb9be
TV
44452020-05-08 Tom de Vries <tdevries@suse.de>
4446
4447 * infrun.c (follow_fork): Copy current_line and current_symtab to
4448 child thread.
4449
a1b68f28
SM
44502020-05-07 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * async-event.c (struct async_signal_handler, struct
4453 async_event_handler): Reformat, remove typedef.
4454
98d48915
SM
44552020-05-07 Simon Marchi <simon.marchi@efficios.com>
4456
4457 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4458 access thistype->main_type->dyn_prop_list directly.
4459
7aa91313
SM
44602020-05-07 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4463 (remove_dyn_prop): Remove. Update all users to use
4464 type::remove_dyn_prop.
4465 * gdbtypes.c (remove_dyn_prop): Rename to...
4466 (type::remove_dyn_prop): ... this.
4467
5c54719c
SM
44682020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4469
4470 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4471 (add_dyn_prop): Remove. Update all users to use
4472 type::add_dyn_prop.
4473 * gdbtypes.c (add_dyn_prop): Rename to...
4474 (type::add_dyn_prop): ... this.
4475
24e99c6c
SM
44762020-05-07 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4479 (get_dyn_prop): Remove. Update all users to use
4480 type::dyn_prop.
4481 * gdbtypes.c (get_dyn_prop): Rename to...
4482 (type::dyn_prop): ... this.
4483
0d4bf016
SM
44842020-05-06 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4487
ac4a4f1c
SM
44882020-05-06 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4491 instruction, skip it if it's there.
4492
a3bbacc1
SM
44932020-05-05 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4496
c3236f84
SM
44972020-05-04 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4500 * gdbtypes.c (recursive_dump_type): Remove use of
4501 TYPE_INCOMPLETE.
4502
3b6acaee
TT
45032020-05-03 Tom Tromey <tom@tromey.com>
4504
4505 * breakpoint.c (catch_command, tcatch_command): Remove.
4506 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4507 add_show_prefix_cmd.
4508 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4509 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4510 Remove.
4511 (add_internal_problem_command): Use add_basic_prefix_cmd,
4512 add_show_prefix_cmd.
4513 * mips-tdep.c (set_mipsfpu_command): Remove.
4514 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4515 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4516 (_initialize_index_cache): Use add_basic_prefix_cmd.
4517 * memattr.c (dummy_cmd): Remove.
4518 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4519 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4520 (_initialize_tui_win): Use add_basic_prefix_cmd,
4521 add_show_prefix_cmd.
4522 * cli/cli-logging.c (set_logging_command): Remove.
4523 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4524 add_show_prefix_cmd.
4525 (show_logging_command): Remove.
4526 * target.c (target_command): Remove.
4527 (add_target): Use add_basic_prefix_cmd.
4528
a51119cd
HD
45292020-05-02 Hannes Domani <ssbssa@yahoo.de>
4530
4531 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4532
652fc23a 45332020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4534
652fc23a
PW
4535 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4536 info_command.
4537
117539e6
KR
45382020-04-30 Kamil Rytarowski <n54@gmx.com>
4539
4540 * nbsd-nat.c (nbsd_enable_proc_events)
4541 (nbsd_nat_target::post_startup_inferior): Add.
4542 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4543 (nbsd_nat_target::update_thread_list): Rewrite.
4544 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4545 "PTRACE_LWP_CREATE".
4546 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4547
102e38eb 45482020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4549
102e38eb
PW
4550 * stack.c (_initialize_stack): Remove duplicated creation
4551 of "frame" command and "f" alias.
4552
ee9d1e5f
HD
45532020-04-30 Hannes Domani <ssbssa@yahoo.de>
4554
4555 PR gdb/18706
4556 * gdbtypes.c (check_typedef): Calculate size of array of
4557 stubbed type.
4558
627c7fb8
HD
45592020-04-30 Hannes Domani <ssbssa@yahoo.de>
4560
4561 PR gdb/15559
4562 * i386-tdep.c (i386_push_dummy_call): Call
4563 i386_thiscall_push_dummy_call.
4564 (i386_thiscall_push_dummy_call): New function.
4565 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4566 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4567 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4568
ffc2844e
SM
45692020-04-29 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * gdbarch.sh (do_read): Add shellcheck disable directive for
4572 warning SC2162.
4573
1207375d
SM
45742020-04-29 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4577 "referenced but not assigned" warning.
4578
9fdb2916
SM
45792020-04-29 Simon Marchi <simon.marchi@efficios.com>
4580
4581 * gdbarch.sh: Remove code that sets fallbackdefault.
4582
759cea5e
SM
45832020-04-29 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * gdbarch.sh: Use shell operators && and || instead of
4586 -a and -o.
4587
cb02ab24
SM
45882020-04-29 Simon Marchi <simon.marchi@efficios.com>
4589
4590 * gdbarch.sh: Use $(...) instead of `...`.
4591
a6fc5ffc
SM
45922020-04-29 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * gdbarch.sh: Use double quotes around variables.
4595
8d113d13
SM
45962020-04-29 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * gdbarch.sh: Use %s with printf, instead of variables in the
4599 format string.
4600
ed6acedd
TT
46012020-04-29 Tom Tromey <tromey@adacore.com>
4602
4603 PR ada/25875:
4604 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4605 type fields here.
4606 (read_enumeration_type): Call
4607 update_enumeration_type_from_children later. Update comments.
4608 (process_enumeration_scope): Don't create type fields.
4609
b68b1b58
KR
46102020-04-29 Kamil Rytarowski <n54@gmx.com>
4611
4612 * nbsd-tdep.c: Include "xml-syscall.h".
4613 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4614
f94b2e03
KR
46152020-04-29 Kamil Rytarowski <n54@gmx.com>
4616
4617 * nbsd-nat.c: Include "sys/wait.h".
4618 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4619 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4620 (nbsd_nat_target::remove_exec_catchpoint)
4621 (nbsd_nat_target::set_syscall_catchpoint): Add.
4622 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4623 (nbsd_nat_target::insert_exec_catchpoint)
4624 (nbsd_nat_target::remove_exec_catchpoint)
4625 (nbsd_nat_target::set_syscall_catchpoint): Add.
4626 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4627 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4628 `nbsd_get_syscall_number'.
4629
fc49bc72
TT
46302020-04-29 Tom Tromey <tom@tromey.com>
4631
4632 * stack.c (print_block_frame_labels): Remove.
4633
d642b692
HD
46342020-04-29 Hannes Domani <ssbssa@yahoo.de>
4635
4636 PR gdb/17320
4637 * ada-valprint.c (val_print_packed_array_elements): Move array
4638 end bracket to new line.
4639 (ada_val_print_string): Remove extra spaces before first array
4640 element.
4641 * c-valprint.c (c_value_print_array): Likewise.
4642 * m2-valprint.c (m2_print_array_contents): Likewise.
4643 (m2_value_print_inner): Likewise.
4644 * p-valprint.c (pascal_value_print_inner): Likewise.
4645 * valprint.c (generic_val_print_array): Likewise.
4646 (value_print_array_elements): Move first array element and array
4647 end bracket to new line.
4648
ea90f227
TV
46492020-04-29 Tom de Vries <tdevries@suse.de>
4650
4651 PR symtab/25889
4652 * linespec.c (find_method): Fix ix calculation.
4653
4498ef4f
KR
46542020-04-28 Kamil Rytarowski <n54@gmx.com>
4655
4656 * syscalls/update-netbsd.sh: New file.
4657 * syscalls/netbsd.xml: Regenerate.
4658 * data-directory/Makefile.in: Register `netbsd.xml' in
4659 `SYSCALLS_FILES'.
4660
a55e30b5
SM
46612020-04-28 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * syscalls/update-freebsd.sh: Add double quotes.
4664
2b2fbab8
TT
46652020-04-28 Tom Tromey <tom@tromey.com>
4666
4667 * NEWS: Update.
4668 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4669 (cmdpy_init): Allow class_tui.
4670
a65189c9
TV
46712020-04-28 Mark Williams <mark@myosotissp.com>
4672
4673 PR gdb/24480
4674 * dwarf2read.c: Add missing assingments to list_in_scope when
4675 start_symtab was already called.
4676
1b95cdb7
SM
46772020-04-28 Simon Marchi <simon.marchi@efficios.com>
4678
4679 PR gdb/25881
4680 * dwarf2/read.c (offset_map_type): Use
4681 gdb:hash_enum<sect_offset> as hash function.
4682
15cd93d0
TV
46832020-04-28 Tom de Vries <tdevries@suse.de>
4684
4685 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4686 with DW_AT_signature.
4687
1eb39914
SM
46882020-04-27 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * configure.ac: Remove check for fs_base/gs_base in
4691 user_regs_struct.
4692 * configure: Re-generate.
4693 * config.in: Re-generate.
4694 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4695 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4696 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4697
991a3e2e
LM
46982020-04-27 Luis Machado <luis.machado@linaro.org>
4699
4700 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4701 problematic inline frame unwinding situation.
4702 * frame.c (frame_id_computed_p): New function.
4703 * frame.h (frame_id_computed_p): New prototype.
4704
361ba0e8
TT
47052020-04-26 Tom Tromey <tom@tromey.com>
4706
4707 * command.h (enum command_class) <class_pseudo>: Remove.
4708
bc3609fd
PW
47092020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4710
4711 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4712 and whitespace.
4713
b9771db7
KR
47142020-04-25 Kamil Rytarowski <n54@gmx.com>
4715
ec16513e
SM
4716 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4717 `PT_GET_PROCESS_STATE' block.
b9771db7 4718
7151c1af
TT
47192020-04-24 Tom Tromey <tom@tromey.com>
4720
4721 * symtab.h (symbol_get_demangled_name): Don't declare.
4722 * symtab.c (symbol_get_demangled_name): Remove.
4723 (general_symbol_info::natural_name)
4724 (general_symbol_info::demangled_name): Update.
4725
906bb4c5
TT
47262020-04-24 Tom Tromey <tom@tromey.com>
4727
4728 PR rust/25025:
4729 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4730
bcfe6157
TT
47312020-04-24 Tom Tromey <tom@tromey.com>
4732
4733 PR symtab/12707:
4734 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4735 exists.
4736 (new_symbol): Likewise.
4737 * compile/compile-object-load.c (get_out_value_type): Use
4738 symbol_matches_search_name.
4739
f049a313
TT
47402020-04-24 Tom Tromey <tom@tromey.com>
4741
4742 * dwarf2/read.c (add_partial_symbol): Do not call
4743 compute_and_set_names.
4744
76e288d1
TT
47452020-04-24 Tom Tromey <tom@tromey.com>
4746
4747 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4748 overload.
4749
2467f4f6
TT
47502020-04-24 Tom Tromey <tom@tromey.com>
4751
4752 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4753 (add_psymbol_to_list): New overload. Make old overload call new
4754 one.
4755 * psympriv.h (add_psymbol_to_list): New overload.
4756
e61108c9
TT
47572020-04-24 Tom Tromey <tom@tromey.com>
4758
4759 * dwarf2/read.c (partial_die_info::read) <case
4760 DW_AT_linkage_name>: Use value_as_string.
4761 (dwarf2_string_attr): Use value_as_string.
4762 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4763 method.
4764 * dwarf2/attribute.c (attribute::value_as_string): New method.
4765
8c87a452
TT
47662020-04-24 Tom Tromey <tom@tromey.com>
4767
4768 * symtab.c (general_symbol_info::natural_name)
4769 (general_symbol_info::demangled_name): Check for language_rust.
4770
787de330
TT
47712020-04-24 Tom Tromey <tom@tromey.com>
4772
4773 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4774 (dwarf2_physname): ... from here.
4775 (partial_die_info::read): Add Rust "{" hack.
4776
ff985671
TT
47772020-04-24 Tom Tromey <tom@tromey.com>
4778
4779 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4780 method.
4781 (symbol_set_demangled_name): Don't declare.
4782 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4783 symbol_set_demangled_name.
4784 (general_symbol_info::set_language)
4785 (general_symbol_info::compute_and_set_names): Update.
4786 * minsyms.c (minimal_symbol_reader::install): Update.
4787 * dwarf2/read.c (new_symbol): Update.
4788
1acda803
TT
47892020-04-24 Tom Tromey <tromey@adacore.com>
4790
4791 PR python/23662:
4792 * python/py-type.c (convert_field): Handle
4793 FIELD_LOC_KIND_DWARF_BLOCK.
4794 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4795 (typy_get_dynamic): Nw function.
4796 (type_object_getset): Add "dynamic".
4797 * NEWS: Add entry.
4798
d656f129
TT
47992020-04-24 Tom Tromey <tromey@adacore.com>
4800
4801 * ada-typeprint.c (print_choices, print_variant_part)
4802 (print_record_field_types_dynamic): New functions.
4803 (print_record_field_types): Use print_record_field_types_dynamic.
4804
7d79de9a
TT
48052020-04-24 Tom Tromey <tromey@adacore.com>
4806
4807 * dwarf2/read.c (handle_data_member_location): New overload.
4808 (dwarf2_add_field): Use it.
4809 (decode_locdesc): Add "computed" parameter. Update comment.
4810 * gdbtypes.c (is_dynamic_type_internal): Also look for
4811 FIELD_LOC_KIND_DWARF_BLOCK.
4812 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4813 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4814 virtual base classes.
4815 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4816 FIELD_LOC_KIND_DWARF_BLOCK.
4817
f8e89861
TT
48182020-04-24 Tom Tromey <tromey@adacore.com>
4819
4820 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4821 * gdbtypes.c (is_dynamic_type_internal): Check
4822 TYPE_HAS_DYNAMIC_LENGTH.
4823 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4824 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4825 New macros.
4826 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4827 constant.
4828
9c6a1327
TT
48292020-04-24 Tom Tromey <tromey@adacore.com>
4830
4831 * dwarf2/read.c (struct variant_field): Rewrite.
4832 (struct variant_part_builder): New.
4833 (struct nextfield): Remove "variant" field. Add "offset".
4834 (struct field_info): Add "current_variant_part" and
4835 "variant_parts".
4836 (alloc_discriminant_info): Remove.
4837 (alloc_rust_variant): New function.
4838 (quirk_rust_enum): Update.
4839 (dwarf2_add_field): Set "offset" member. Don't handle
4840 DW_TAG_variant_part.
4841 (offset_map_type): New typedef.
4842 (convert_variant_range, create_one_variant)
4843 (create_one_variant_part, create_variant_parts)
4844 (add_variant_property): New functions.
4845 (dwarf2_attach_fields_to_type): Call add_variant_property.
4846 (read_structure_type): Don't handle DW_TAG_variant_part.
4847 (handle_variant_part, handle_variant): New functions.
4848 (handle_struct_member_die): Use them.
4849 (process_structure_scope): Don't handle variant parts.
4850 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4851 (struct discriminant_info): Remove.
4852 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4853 (struct main_type) <flag_discriminated_union>: Remove.
4854 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4855 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4856 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4857 Update.
4858 * valops.c (value_union_variant): Remove.
4859 * value.h (value_union_variant): Don't declare.
4860
b249d2c2
TT
48612020-04-24 Tom Tromey <tromey@adacore.com>
4862
4863 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4864 (ada_value_primitive_packed_val): Update.
4865 * ada-valprint.c (ada_value_print_1): Update.
4866 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4867 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4868 just an address. Use evaluate_for_locexpr_baton.
4869 (dwarf2_evaluate_property): Update.
4870 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4871 array_view.
4872 * findvar.c (default_read_var_value): Update.
4873 * gdbtypes.c (compute_variant_fields_inner)
4874 (resolve_dynamic_type_internal): Update.
4875 (resolve_dynamic_type): Change type of valaddr parameter.
4876 * gdbtypes.h (resolve_dynamic_type): Update.
4877 * valarith.c (value_subscripted_rvalue): Update.
4878 * value.c (value_from_contents_and_address): Update.
4879
61122aa9
TT
48802020-04-24 Tom Tromey <tromey@adacore.com>
4881
4882 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4883 "push_initial_value" parameter.
4884 (dwarf2_evaluate_property): Likewise.
4885 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4886
ef83a141
TT
48872020-04-24 Tom Tromey <tromey@adacore.com>
4888
4889 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4890 (variant::matches, compute_variant_fields_recurse)
4891 (compute_variant_fields_inner, compute_variant_fields): New
4892 functions.
4893 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4894 Use resolved_type after type is made.
4895 (operator==): Add new cases.
4896 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4897 (struct discriminant_range, struct variant, struct variant_part):
4898 New.
4899 (union dynamic_prop_data) <variant_parts, original_type>: New
4900 members.
4901 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4902 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4903 constants.
4904 * value.c (unpack_bits_as_long): Now public.
4905 * value.h (unpack_bits_as_long): Declare.
4906
675127ec
TT
49072020-04-24 Tom Tromey <tromey@adacore.com>
4908
4909 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4910 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4911
9852ceef
HD
49122020-04-24 Hannes Domani <ssbssa@yahoo.de>
4913
4914 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4915
7632c6ce
KR
49162020-04-24 Kamil Rytarowski <n54@gmx.com>
4917
4918 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4919 (remove_fork_catchpoint, post_startup_inferior)
4920 (post_attach): Move...
4921 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4922 (remove_fork_catchpoint, post_startup_inferior)
4923 (post_attach): ...here.
4924 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4925 (remove_fork_catchpoint, post_startup_inferior)
4926 (post_attach): Move...
4927 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4928 (remove_fork_catchpoint, post_startup_inferior)
4929 (post_attach): ...here.
4930
7be2bb4f
TT
49312020-04-24 Tom Tromey <tromey@adacore.com>
4932
4933 * nat/windows-nat.h (struct windows_thread_info)
4934 <pc_adjusted>: New member.
4935 * windows-nat.c (windows_fetch_one_register): Check
4936 pc_adjusted.
4937 (windows_nat_target::get_windows_debug_event)
4938 (windows_nat_target::wait): Set pc_adjusted.
4939
f80cb3b4
TV
49402020-04-24 Tom de Vries <tdevries@suse.de>
4941
4942 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4943 Run gdb-add-index inside temp dir.
4944
29514b87
TT
49452020-04-23 Tom Tromey <tromey@adacore.com>
4946
4947 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4948 in loop.
4949
5939967b
LM
49502020-04-23 Luis Machado <luis.machado@linaro.org>
4951
4952 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4953 get_frame_register instead of gdbarch_unwind_pc.
4954
70bc38f5
TV
49552020-04-23 Tom de Vries <tdevries@suse.de>
4956
4957 * symtab.c (lookup_global_symbol): Prefer def over decl.
4958
de82891c
TV
49592020-04-23 Tom de Vries <tdevries@suse.de>
4960
4961 PR symtab/25807
4962 * block.c (best_symbol, better_symbol): Promote to external.
4963 * block.h (best_symbol, better_symbol): Declare.
4964 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4965 decl.
4966
ecc6c606
TT
49672020-04-23 Tom Tromey <tromey@adacore.com>
4968
4969 PR ada/25837:
4970 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4971 "const char *", not a "const std::string &".
4972 <name_and_matcher::operator==>: Update.
4973 * unittests/lookup_name_info-selftests.c: Change type of
4974 "result".
4975
740480b8
TT
49762020-04-23 Tom Tromey <tom@tromey.com>
4977
4978 * inferior.h (iterate_over_inferiors): Don't declare.
4979 * inferior.c (iterate_over_inferiors): Remove.
4980 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4981 Remove.
4982 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4983 use iterate_over_inferiors.
4984 (darwin_resume_inferior_it)
4985 (struct resume_inferior_threads_param)
4986 (darwin_resume_inferior_threads_it): Remove.
4987 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4988
ae3ab1f0
TV
49892020-04-23 Tom de Vries <tdevries@suse.de>
4990
4991 * blockframe.c (find_pc_partial_function): Use
4992 find_pc_sect_compunit_symtab rather than
4993 objfile->sf->qf->find_pc_sect_compunit_symtab.
4994
317d2668
TV
49952020-04-22 Tom de Vries <tdevries@suse.de>
4996
4997 PR symtab/25764
4998 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4999 in psymtabs.
5000
eea9e357
TV
50012020-04-22 Tom de Vries <tdevries@suse.de>
5002
5003 PR symtab/25801
5004 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5005 symtabs.
5006
3d5afab3
TV
50072020-04-22 Tom de Vries <tdevries@suse.de>
5008
5009 PR symtab/25700
5010 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5011 CU if already created.
5012
d43b7a2d
TBA
50132020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5014
5015 * infrun.c (displaced_step_fixup): Switch to the event_thread
5016 before calling displaced_step_restore, not after.
5017
d89edf9b
MM
50182020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5019
5020 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5021 its inferior is not recorded by us.
5022 (record_btrace_target_open): Replace call to
5023 all_non_exited_threads () with call to current_inferior
5024 ()->non_exited_threads ().
5025 (record_btrace_target::stop_recording): Likewise.
5026 (record_btrace_target::close): Likewise.
5027 (record_btrace_target::wait): Likewise.
5028 (record_btrace_target::record_stop_replaying): Likewise.
5029
5897fd49
MM
50302020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5031
5032 * btrace.c (btrace_enable): Throw an error on double enables and
5033 when enabling recording fails.
5034 (btrace_disable): Throw an error if the thread is not recorded.
5035
1a476b6d
MM
50362020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5037
5038 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5039 request if we do not have a thread_info.
5040
4778a5f8
TV
50412020-04-21 Tom de Vries <tdevries@suse.de>
5042
5043 PR gdb/25471
5044 * thread.c
5045 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5046 exception in get_frame_id.
5047
0fa7617d
TT
50482020-04-20 Tom Tromey <tromey@adacore.com>
5049
5050 * python/python.c (struct gdbpy_event): Mark move constructor as
5051 noexcept.
5052 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5053 constructor as noexcept.
5054 * completer.h (struct completion_result): Mark move constructor as
5055 noexcept.
5056 * completer.c (completion_result::completion_result): Use
5057 initialization style. Don't call reset_match_list.
5058
ad23bda0
MS
50592020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5060
5061 * MAINTAINERS (Write After Approval): Add myself.
5062
45e1f031
TT
50632020-04-18 Tom Tromey <tom@tromey.com>
5064
5065 * windows-tdep.c (init_w32_command_list)
5066 (w32_prefix_command_valid): Restore.
5067 (_initialize_windows_tdep): Call init_w32_command_list.
5068
08feed99
TT
50692020-04-18 Tom Tromey <tom@tromey.com>
5070
5071 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5072 * value.c (value_fn_field): Update.
5073 * valops.c (find_function_in_inferior)
5074 (value_allocate_space_in_inferior): Update.
5075 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5076 Update.
5077 * tui/tui-source.c (tui_source_window::set_contents): Update.
5078 * symtab.c (lookup_global_or_static_symbol)
5079 (find_function_start_sal_1, skip_prologue_sal)
5080 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5081 * symmisc.c (dump_msymbols, dump_symtab_1)
5082 (maintenance_print_one_line_table): Update.
5083 * symfile.c (init_entry_point_info, section_is_mapped)
5084 (list_overlays_command, simple_read_overlay_table)
5085 (simple_overlay_update_1): Update.
5086 * stap-probe.c (handle_stap_probe): Update.
5087 * stabsread.c (dbx_init_float_type, define_symbol)
5088 (read_one_struct_field, read_enum_type, read_range_type): Update.
5089 * source.c (info_line_command): Update.
5090 * python/python.c (gdbpy_source_objfile_script)
5091 (gdbpy_execute_objfile_script): Update.
5092 * python/py-type.c (save_objfile_types): Update.
5093 * python/py-objfile.c (py_free_objfile): Update.
5094 * python/py-inferior.c (python_new_objfile): Update.
5095 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5096 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5097 (maintenance_check_psymtabs): Update.
5098 * printcmd.c (info_address_command): Update.
5099 * objfiles.h (struct objfile) <arch>: New method, from
5100 get_objfile_arch.
5101 (get_objfile_arch): Don't declare.
5102 * objfiles.c (get_objfile_arch): Remove.
5103 (filter_overlapping_sections): Update.
5104 * minsyms.c (msymbol_is_function): Update.
5105 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5106 (output_nondebug_symbol): Update.
5107 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5108 (mdebug_expand_psymtab): Update.
5109 * machoread.c (macho_add_oso_symfile): Update.
5110 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5111 Update.
5112 * linux-fork.c (checkpoint_command): Update.
5113 * linespec.c (convert_linespec_to_sals): Update.
5114 * jit.c (finalize_symtab): Update.
5115 * infrun.c (insert_exception_resume_from_probe): Update.
5116 * ia64-tdep.c (ia64_find_unwind_table): Update.
5117 * hppa-tdep.c (internalize_unwinds): Update.
5118 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5119 Update.
5120 * gcore.c (call_target_sbrk): Update.
5121 * elfread.c (record_minimal_symbol, elf_symtab_read)
5122 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5123 (elf_gnu_ifunc_resolve_by_got): Update.
5124 * dwarf2/read.c (create_addrmap_from_index)
5125 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5126 (read_debug_names_from_section)
5127 (process_psymtab_comp_unit_reader, add_partial_symbol)
5128 (add_partial_subprogram, process_full_comp_unit)
5129 (read_file_scope, read_func_scope, read_lexical_block_scope)
5130 (read_call_site_scope, dwarf2_ranges_read)
5131 (dwarf2_record_block_ranges, dwarf2_add_field)
5132 (mark_common_block_symbol_computed, read_tag_pointer_type)
5133 (read_tag_string_type, dwarf2_init_float_type)
5134 (dwarf2_init_complex_target_type, read_base_type)
5135 (partial_die_info::read, partial_die_info::read)
5136 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5137 (dwarf2_fetch_die_loc_sect_off): Update.
5138 * dwarf2/loc.c (dwarf2_find_location_expression)
5139 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5140 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5141 (dwarf2_loc_desc_get_symbol_read_needs)
5142 (locexpr_describe_location_piece, locexpr_describe_location_1)
5143 (loclist_describe_location): Update.
5144 * dwarf2/index-write.c (write_debug_names): Update.
5145 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5146 * dtrace-probe.c (dtrace_process_dof): Update.
5147 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5148 (process_one_symbol): Update.
5149 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5150 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5151 (coff_read_enum_type): Update.
5152 * cli/cli-cmds.c (edit_command, list_command): Update.
5153 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5154 * breakpoint.c (create_overlay_event_breakpoint)
5155 (create_longjmp_master_breakpoint)
5156 (create_std_terminate_master_breakpoint)
5157 (create_exception_master_breakpoint, get_sal_arch): Update.
5158 * block.c (block_gdbarch): Update.
5159 * annotate.c (annotate_source_line): Update.
5160
0743fc83
TT
51612020-04-17 Tom Tromey <tromey@adacore.com>
5162
5163 * auto-load.c (show_auto_load_cmd): Remove.
5164 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5165 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5166 (maintenance_print_arc_command): Remove.
5167 * tui/tui-win.c (tui_command): Remove.
5168 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5169 * tui/tui-layout.c (tui_layout_command): Remove.
5170 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5171 * python/python.c (user_set_python, user_show_python): Remove.
5172 (_initialize_python): Use add_basic_prefix_cmd,
5173 add_show_prefix_cmd.
5174 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5175 (install_gdb_commands): Use add_basic_prefix_cmd,
5176 add_show_prefix_cmd.
5177 (info_guile_command): Remove.
5178 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5179 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5180 add_show_prefix_cmd.
5181 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5182 Remove do_set and do_show parameters.
5183 * cli/cli-style.c (set_style, show_style): Remove.
5184 (_initialize_cli_style): Use add_basic_prefix_cmd,
5185 add_show_prefix_cmd.
5186 (cli_style_option::add_setshow_commands): Remove do_set and
5187 do_show parameters.
5188 (cli_style_option::add_setshow_commands): Use
5189 add_basic_prefix_cmd, add_show_prefix_cmd.
5190 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5191 (set_style_name): Remove.
5192 * cli/cli-dump.c (dump_command, append_command): Remove.
5193 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5194 (tekhex_dump_command, binary_dump_command)
5195 (binary_append_command): Remove.
5196 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5197 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5198 (init_w32_command_list): Remove; move into ...
5199 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5200 * valprint.c (set_print, show_print, set_print_raw)
5201 (show_print_raw): Remove.
5202 (_initialize_valprint): Use add_basic_prefix_cmd,
5203 add_show_prefix_cmd.
5204 * typeprint.c (set_print_type, show_print_type): Remove.
5205 (_initialize_typeprint): Use add_basic_prefix_cmd,
5206 add_show_prefix_cmd.
5207 * record.c (set_record_command, show_record_command): Remove.
5208 (_initialize_record): Use add_basic_prefix_cmd,
5209 add_show_prefix_cmd.
5210 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5211 add_show_prefix_cmd.
5212 (info_command, show_command, set_debug, show_debug): Remove.
5213 * top.h (set_history, show_history): Don't declare.
5214 * top.c (set_history, show_history): Remove.
5215 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5216 (unset_tdesc_cmd): Remove.
5217 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5218 add_show_prefix_cmd.
5219 * symtab.c (info_module_command): Remove.
5220 (_initialize_symtab): Use add_basic_prefix_cmd.
5221 * symfile.c (overlay_command): Remove.
5222 (_initialize_symfile): Use add_basic_prefix_cmd.
5223 * sparc64-tdep.c (info_adi_command): Remove.
5224 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5225 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5226 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5227 add_show_prefix_cmd.
5228 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5229 (_initialize_serial): Use add_basic_prefix_cmd,
5230 add_show_prefix_cmd.
5231 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5232 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5233 add_show_prefix_cmd.
5234 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5235 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5236 add_show_prefix_cmd.
5237 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5238 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5239 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5240 add_show_prefix_cmd.
5241 * remote.c (remote_command, set_remote_cmd): Remove.
5242 (_initialize_remote): Use add_basic_prefix_cmd.
5243 * record-full.c (set_record_full_command)
5244 (show_record_full_command): Remove.
5245 (_initialize_record_full): Use add_basic_prefix_cmd,
5246 add_show_prefix_cmd.
5247 * record-btrace.c (cmd_set_record_btrace)
5248 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5249 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5250 (cmd_show_record_btrace_pt): Remove.
5251 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5252 add_show_prefix_cmd.
5253 * ravenscar-thread.c (set_ravenscar_command)
5254 (show_ravenscar_command): Remove.
5255 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5256 add_show_prefix_cmd.
5257 * mips-tdep.c (show_mips_command, set_mips_command)
5258 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5259 add_show_prefix_cmd.
5260 * maint.c (maintenance_command, maintenance_info_command)
5261 (maintenance_check_command, maintenance_print_command)
5262 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5263 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5264 add_show_prefix_cmd.
5265 (show_per_command_cmd): Remove.
5266 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5267 Remove.
5268 (maintenance_show_test_settings_cmd): Remove.
5269 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5270 add_show_prefix_cmd.
5271 * maint-test-options.c (maintenance_test_options_command):
5272 Remove.
5273 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5274 * macrocmd.c (macro_command): Remove
5275 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5276 * language.c (set_check, show_check): Remove.
5277 (_initialize_language): Use add_basic_prefix_cmd,
5278 add_show_prefix_cmd.
5279 * infcmd.c (unset_command): Remove.
5280 (_initialize_infcmd): Use add_basic_prefix_cmd.
5281 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5282 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5283 add_show_prefix_cmd.
5284 * go32-nat.c (go32_info_dos_command): Remove.
5285 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5286 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5287 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5288 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5289 (_initialize_frame): Use add_basic_prefix_cmd,
5290 add_show_prefix_cmd.
5291 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5292 (_initialize_dcache): Use add_basic_prefix_cmd,
5293 add_show_prefix_cmd.
5294 * cp-support.c (maint_cplus_command): Remove.
5295 (_initialize_cp_support): Use add_basic_prefix_cmd.
5296 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5297 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5298 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5299 add_basic_prefix_cmd, add_show_prefix_cmd.
5300 * breakpoint.c (save_command): Remove.
5301 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5302 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5303 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5304 add_show_prefix_cmd.
5305 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5306 (set_ada_command, show_ada_command): Remove.
5307 (_initialize_ada_language): Use add_basic_prefix_cmd,
5308 add_show_prefix_cmd.
5309 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5310
3557f442
KR
53112020-04-16 Kamil Rytarowski <n54@gmx.com>
5312
5313 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5314 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5315
16197208
SM
53162020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5319 warning messages.
5320
00ac85d3
SM
53212020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5322
5323 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5324 import table is not at beginning of .idata section.
5325
381ce63f
PA
53262020-04-16 Pedro Alves <palves@redhat.com>
5327
5328 * inferior.c (delete_inferior): Use delete operator directly
5329 instead of delete_program_space.
5330 * progspace.c (add_program_space): New, factored out from
5331 program_space::program_space.
5332 (remove_program_space): New, factored out from
5333 delete_program_space.
5334 (program_space::program_space): Remove intro comment. Rewrite.
5335 (program_space::~program_space): Remove intro comment. Call
5336 remove_program_space.
5337 (delete_program_space): Delete.
5338 * progspace.h (program_space::program_space): Make explicit. Move
5339 intro comment here, adjusted.
5340 (program_space::~program_space): Move intro comment here,
5341 adjusted.
5342 (delete_program_space): Remove.
5343
a010605f
TT
53442020-04-16 Tom Tromey <tromey@adacore.com>
5345
5346 * windows-nat.c (windows_nat::handle_access_violation): New
5347 function.
5348 * nat/windows-nat.h (handle_access_violation): Declare.
5349 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5350 windows-nat.c. Call handle_access_violation.
5351
efba5c23
TV
53522020-04-16 Tom de Vries <tdevries@suse.de>
5353
5354 PR symtab/25791
5355 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5356 CUs without psymtab.
5357
97ed802d
KB
53582020-04-16 Kevin Buettner <kevinb@redhat.com>
5359
5360 * python/python.c (do_start_initialization): Don't call
5361 PyEval_InitThreads for Python 3.9 and beyond.
5362
c7d64809
KR
53632020-04-15 Kamil Rytarowski <n54@gmx.com>
5364
5365 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5366 thread functions.
5367 (obsd_nat_target::wait): Likewise.
5368
ce127a96
TT
53692020-04-15 Tom Tromey <tromey@adacore.com>
5370
5371 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5372 (DEBUG_EXCEPT): Use debug_printf.
5373
99f1bc6a
AB
53742020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5375
5376 * completer.c (class completion_tracker::completion_hash_entry)
5377 <hash_name>: New member function.
5378 (completion_tracker::discard_completions): New callback to hash a
5379 completion_hash_entry, pass this to htab_create_alloc.
5380
a0e9b532
JT
53812016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5382
5383 * windows-nat.c (windows_make_so): Warn rather than stopping with
5384 an error if realpath() fails.
5385
06ca5dd4
KR
53862020-04-14 Kamil Rytarowski <n54@gmx.com>
5387
5388 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5389 (nbsd_nat_target::info_proc): Add do_status.
5390
194d088f
TV
53912020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5392 Tom de Vries <tdevries@suse.de>
5393
5394 PR symtab/25718
5395 * psympriv.h (struct partial_symtab::read_symtab)
5396 (struct partial_symtab::expand_psymtab)
5397 (struct partial_symtab::read_dependencies): Update comments.
5398 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5399 read_symtab for includer.
5400 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5401 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5402 (struct dwarf2_include_psymtab::m_readin): Remove.
5403 (struct dwarf2_include_psymtab::includer): New member function.
5404 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5405
c1a66c06
TV
54062020-04-14 Tom de Vries <tdevries@suse.de>
5407
5408 PR symtab/25720
5409 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5410 with NULL symbol_matcher and lookup_name.
5411 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5412 and lookup_name.
5413 * dwarf2/read.c (dw2_expand_symtabs_matching)
5414 (dw2_debug_names_expand_symtabs_matching): Same.
5415 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5416 Make lookup_name a pointer. Update comment.
5417 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5418 lookup_name being a pointer.
5419 * symfile.c (expand_symtabs_matching): Same.
5420 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5421 * linespec.c (iterate_over_all_matching_symtabs): Same.
5422
400b5eca
TT
54232020-04-13 Tom Tromey <tom@tromey.com>
5424
5425 * run-on-main-thread.c: Update include.
5426 * unittests/main-thread-selftests.c: Update include.
5427 * tui/tui-win.c: Update include.
5428 * tui/tui-io.c: Update include.
5429 * tui/tui-interp.c: Update include.
5430 * tui/tui-hooks.c: Update include.
5431 * top.h: Update include.
5432 * top.c: Update include.
5433 * ser-base.c: Update include.
5434 * remote.c: Update include.
5435 * remote-notif.c: Update include.
5436 * remote-fileio.c: Update include.
5437 * record-full.c: Update include.
5438 * record-btrace.c: Update include.
5439 * python/python.c: Update include.
5440 * posix-hdep.c: Update include.
5441 * mingw-hdep.c: Update include.
5442 * mi/mi-main.c: Update include.
5443 * mi/mi-interp.c: Update include.
5444 * main.c: Update include.
5445 * linux-nat.c: Update include.
5446 * interps.c: Update include.
5447 * infrun.c: Update include.
5448 * inf-loop.c: Update include.
5449 * event-top.c: Update include.
5450 * event-loop.c: Move to ../gdbsupport/.
5451 * event-loop.h: Move to ../gdbsupport/.
5452 * async-event.h: Update include.
5453 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5454
93b54c8e
TT
54552020-04-13 Tom Tromey <tom@tromey.com>
5456
5457 * tui/tui-win.c: Include async-event.h.
5458 * remote.c: Include async-event.h.
5459 * remote-notif.c: Include async-event.h.
5460 * record-full.c: Include async-event.h.
5461 * record-btrace.c: Include async-event.h.
5462 * infrun.c: Include async-event.h.
5463 * event-top.c: Include async-event.h.
5464 * event-loop.h: Move some declarations to async-event.h.
5465 * event-loop.c: Don't include ser-event.h or top.h. Move some
5466 code to async-event.c.
5467 * async-event.h: New file.
5468 * async-event.c: New file.
5469 * Makefile.in (COMMON_SFILES): Add async-event.c.
5470 (HFILES_NO_SRCDIR): Add async-event.h.
5471
c1cd3163
TT
54722020-04-13 Tom Tromey <tom@tromey.com>
5473
5474 * utils.c (flush_streams): New function.
5475 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5476
29f2bf4f
TT
54772020-04-13 Tom Tromey <tom@tromey.com>
5478
5479 * event-loop.c (handle_file_event): Use warning, not
5480 printf_unfiltered.
5481
98029d02
TT
54822020-04-13 Tom Tromey <tom@tromey.com>
5483
5484 * event-loop.c: Include <chrono>.
5485
06cc9596
TT
54862020-04-13 Tom Tromey <tom@tromey.com>
5487
5488 * gdb_select.h: Move to ../gdbsupport/.
5489 * event-loop.c: Update include path.
5490 * top.c: Update include path.
5491 * ser-base.c: Update include path.
5492 * ui-file.c: Update include path.
5493 * ser-tcp.c: Update include path.
5494 * guile/scm-ports.c: Update include path.
5495 * posix-hdep.c: Update include path.
5496 * ser-unix.c: Update include path.
5497 * gdb_usleep.c: Update include path.
5498 * mingw-hdep.c: Update include path.
5499 * inflow.c: Update include path.
5500 * infrun.c: Update include path.
5501 * event-top.c: Update include path.
5502
8ae8e197
TT
55032020-04-13 Tom Tromey <tom@tromey.com>
5504
5505 * configure: Rebuild.
5506 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5507
58cf28e8
TT
55082020-04-13 Tom Tromey <tom@tromey.com>
5509
5510 * event-loop.h (start_event_loop): Don't declare.
5511 * event-loop.c (start_event_loop): Move...
5512 * main.c (start_event_loop): ...here. Now static.
5513
b7f999ae
SDJ
55142020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5515
5516 * MAINTAINERS: Update my email address.
5517
1085dfd4
KR
55182020-04-12 Kamil Rytarowski <n54@gmx.com>
5519
5520 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5521 IP_ALL.
5522
49d1d1f5
KR
55232020-04-12 Kamil Rytarowski <n54@gmx.com>
5524
5525 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5526 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5527
b4848d2a
KR
55282020-04-12 Kamil Rytarowski <n54@gmx.com>
5529
5530 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5531 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5532
51c133d5
KR
55332020-04-12 Kamil Rytarowski <n54@gmx.com>
5534
5535 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5536
54b8cbd0
KR
55372020-04-11 Kamil Rytarowski <n54@gmx.com>
5538
5539 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5540 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5541 (nbsd_nat_target::info_proc): New functions.
5542 * nbsd-nat.c (kinfo_get_vmmap): New function.
5543 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5544 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5545 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5546 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5547 functions.
5548 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5549 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5550 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5551 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5552 (KINFO_VME_FLAG_GROWS_DOWN): New.
5553
cf83625d
AS
55542020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5555
5556 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5557 bit shift.
5558
0c4311ab
TT
55592020-04-10 Tom Tromey <tromey@adacore.com>
5560
5561 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5562
3e65b3e9
TT
55632020-04-10 Tom Tromey <tromey@adacore.com>
5564
5565 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5566 separate debug files.
5567
13302e95
HD
55682020-04-10 Hannes Domani <ssbssa@yahoo.de>
5569
5570 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5571 Move to...
5572 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5573 ... here.
5574 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5575 Check for STATUS_WX86_BREAKPOINT.
5576 (windows_nat_target::wait): Same.
5577
bdfc1e8a
TV
55782020-04-10 Tom de Vries <tdevries@suse.de>
5579
5580 PR cli/25808
5581 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5582
f4460aec
SM
55832020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5584
5585 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5586 (Write After Approval): Remove Tom de Vries.
5587
a25198bb
BE
55882020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5589
5590 revert partially:
5591 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5592
aac66a4c
SM
5593 * buildsym.c (record_line): Fix undefined behavior and preserve
5594 lines at eof.
a25198bb 5595
206c98a6
KR
55962020-04-09 Kamil Rytarowski <n54@gmx.com>
5597
5598 * auxv.h (svr4_auxv_parse): New.
5599 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5600 and generic_auxv_parse.
5601 (svr4_auxv_parse): Add.
5602 * obsd-tdep.c: Include "auxv.h".
5603 (obsd_auxv_parse): Remove.
5604 (obsd_init_abi): Remove comment.
5605 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5606 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5607 * nbsd-tdep.c: Include "auxv.h".
5608 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5609
71fbdbaf
TT
56102020-04-08 Tom Tromey <tromey@adacore.com>
5611
5612 * nat/windows-nat.h (last_wait_event): Don't declare.
5613 (wait_for_debug_event): Update comment.
5614 * nat/windows-nat.c (last_wait_event): Now static.
5615
2c1d95e8
TT
56162020-04-08 Tom Tromey <tromey@adacore.com>
5617
5618 * windows-nat.c (wait_for_debug_event): Move to
5619 nat/windows-nat.c.
5620 * nat/windows-nat.h (wait_for_debug_event): Declare.
5621 * nat/windows-nat.c (wait_for_debug_event): Move from
5622 windows-nat.c. No longer static.
5623
d2977bc4
TT
56242020-04-08 Tom Tromey <tromey@adacore.com>
5625
5626 * windows-nat.c (get_windows_debug_event): Use
5627 fetch_pending_stop.
5628 * nat/windows-nat.h (fetch_pending_stop): Declare.
5629 * nat/windows-nat.c (fetch_pending_stop): New function.
5630
e758e19c
TT
56312020-04-08 Tom Tromey <tromey@adacore.com>
5632
5633 * windows-nat.c (windows_continue): Use matching_pending_stop and
5634 continue_last_debug_event.
5635 * nat/windows-nat.h (matching_pending_stop)
5636 (continue_last_debug_event): Declare.
5637 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5638 (matching_pending_stop, continue_last_debug_event): New
5639 functions.
5640
8d30e395
TT
56412020-04-08 Tom Tromey <tromey@adacore.com>
5642
5643 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5644 (handle_exception_result): Move to nat/windows-nat.h.
5645 (DEBUG_EXCEPTION_SIMPLE): Remove.
5646 (windows_nat::handle_ms_vc_exception): New function.
5647 (handle_exception): Move to nat/windows-nat.c.
5648 (get_windows_debug_event): Update.
5649 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5650 nat/windows-nat.c.
5651 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5652 (handle_exception_result): Move from windows-nat.c.
5653 (handle_exception): Declare.
5654 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5655 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5656 windows-nat.c.
5657
29de418d
TT
56582020-04-08 Tom Tromey <tromey@adacore.com>
5659
5660 * windows-nat.c (exception_count, event_count): Remove.
5661 (handle_exception, get_windows_debug_event)
5662 (do_initial_windows_stuff): Update.
5663
a816ba18
TT
56642020-04-08 Tom Tromey <tromey@adacore.com>
5665
5666 * windows-nat.c (windows_nat::handle_load_dll)
5667 (windows_nat::handle_unload_dll): Rename. No longer static.
5668 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5669 Declare.
5670
a00caa12
TT
56712020-04-08 Tom Tromey <tromey@adacore.com>
5672
5673 * complaints.h (stop_whining): Declare at top-level.
5674 (complaint): Don't declare stop_whining.
5675
d41b524f
TT
56762020-04-08 Tom Tromey <tromey@adacore.com>
5677
5678 * windows-nat.c (windows_nat::handle_output_debug_string):
5679 Rename. No longer static.
5680 * nat/windows-nat.h (handle_output_debug_string): Declare.
5681
3c76026d
TT
56822020-04-08 Tom Tromey <tromey@adacore.com>
5683
5684 * windows-nat.c (current_process_handle, current_process_id)
5685 (main_thread_id, last_sig, current_event, last_wait_event)
5686 (current_windows_thread, desired_stop_thread_id, pending_stops)
5687 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5688 (display_selectors, fake_create_process)
5689 (get_windows_debug_event): Update.
5690 * nat/windows-nat.h (current_process_handle, current_process_id)
5691 (main_thread_id, last_sig, current_event, last_wait_event)
5692 (current_windows_thread, desired_stop_thread_id, pending_stops)
5693 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5694 * nat/windows-nat.c (current_process_handle, current_process_id)
5695 (main_thread_id, last_sig, current_event, last_wait_event)
5696 (current_windows_thread, desired_stop_thread_id, pending_stops)
5697 (siginfo_er): New globals. Move from windows-nat.c.
5698
9d8679cc
TT
56992020-04-08 Tom Tromey <tromey@adacore.com>
5700
5701 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5702 (handle_load_dll): Update.
5703 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5704
28688adf
TT
57052020-04-08 Tom Tromey <tromey@adacore.com>
5706
5707 * windows-nat.c (enum thread_disposition_type): Move to
5708 nat/windows-nat.h.
5709 (windows_nat::thread_rec): Rename from thread_rec. No longer
5710 static.
5711 (windows_add_thread, windows_nat_target::fetch_registers)
5712 (windows_nat_target::store_registers, handle_exception)
5713 (windows_nat_target::resume, get_windows_debug_event)
5714 (windows_nat_target::get_tib_address)
5715 (windows_nat_target::thread_name)
5716 (windows_nat_target::thread_alive): Update.
5717 * nat/windows-nat.h (enum thread_disposition_type): Move from
5718 windows-nat.c.
5719 (thread_rec): Declare.
5720
4834dad0
TT
57212020-04-08 Tom Tromey <tromey@adacore.com>
5722
5723 * windows-nat.c: Add "using namespace".
5724 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5725 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5726
65bafd5b
TT
57272020-04-08 Tom Tromey <tromey@adacore.com>
5728
5729 * nat/windows-nat.h (struct windows_thread_info): Declare
5730 destructor.
5731 * nat/windows-nat.c (~windows_thread_info): New.
5732
0a4afda3
TT
57332020-04-08 Tom Tromey <tromey@adacore.com>
5734
5735 PR gdb/22992
5736 * windows-nat.c (current_event): Update comment.
5737 (last_wait_event, desired_stop_thread_id): New globals.
5738 (struct pending_stop): New.
5739 (pending_stops): New global.
5740 (windows_nat_target) <stopped_by_sw_breakpoint>
5741 <supports_stopped_by_sw_breakpoint>: New methods.
5742 (windows_fetch_one_register): Add assertions. Adjust PC.
5743 (windows_continue): Handle pending stops. Suspend other threads
5744 when stepping. Use last_wait_event
5745 (wait_for_debug_event): New function.
5746 (get_windows_debug_event): Use wait_for_debug_event. Handle
5747 pending stops. Queue spurious stops.
5748 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5749 (windows_nat_target::kill): Use wait_for_debug_event.
5750 * nat/windows-nat.h (struct windows_thread_info)
5751 <stopped_at_software_breakpoint>: New field.
5752 * nat/windows-nat.c (windows_thread_info::resume): Clear
5753 stopped_at_software_breakpoint.
5754
8e61ebec
TT
57552020-04-08 Tom Tromey <tromey@adacore.com>
5756
5757 * windows-nat.c (enum thread_disposition_type): New.
5758 (thread_rec): Replace "get_context" parameter with "disposition";
5759 change type.
5760 (windows_add_thread, windows_nat_target::fetch_registers)
5761 (windows_nat_target::store_registers, handle_exception)
5762 (windows_nat_target::resume, get_windows_debug_event)
5763 (windows_nat_target::get_tib_address)
5764 (windows_nat_target::thread_name)
5765 (windows_nat_target::thread_alive): Update.
5766
98a03287
TT
57672020-04-08 Tom Tromey <tromey@adacore.com>
5768
5769 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5770 (windows_continue): Use windows_continue::resume.
5771 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5772 resume>: Declare new methods.
5773 * nat/windows-nat.c: New file.
5774 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5775
7c7411bc
TT
57762020-04-08 Tom Tromey <tromey@adacore.com>
5777
5778 * windows-nat.c (windows_add_thread, windows_delete_thread)
5779 (windows_nat_target::fetch_registers)
5780 (windows_nat_target::store_registers, fake_create_process)
5781 (windows_nat_target::resume, windows_nat_target::resume)
5782 (get_windows_debug_event, windows_nat_target::wait)
5783 (windows_nat_target::pid_to_str)
5784 (windows_nat_target::get_tib_address)
5785 (windows_nat_target::get_ada_task_ptid)
5786 (windows_nat_target::thread_name)
5787 (windows_nat_target::thread_alive): Use lwp, not tid.
5788
2950fdf7
TT
57892020-04-08 Tom Tromey <tromey@adacore.com>
5790
5791 * windows-nat.c (handle_exception)
5792 (windows_nat_target::thread_name): Update.
5793 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5794 <name>: Now unique_xmalloc_ptr.
5795
62fe396b
TT
57962020-04-08 Tom Tromey <tromey@adacore.com>
5797
5798 * windows-nat.c (thread_rec)
5799 (windows_nat_target::fetch_registers): Update.
5800 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5801 Update comment.
5802 <debug_registers_changed, reload_context>: Now bool.
5803
e9534bd2
TT
58042020-04-08 Tom Tromey <tromey@adacore.com>
5805
5806 * windows-nat.c (windows_add_thread): Use new.
5807 (windows_init_thread_list, windows_delete_thread): Use delete.
5808 (get_windows_debug_event): Update.
5809 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5810 destructor, and initializers.
5811
ae1f8880
TT
58122020-04-08 Tom Tromey <tromey@adacore.com>
5813
5814 * windows-nat.c (struct windows_thread_info): Remove.
5815 * nat/windows-nat.h: New file.
5816
55a1e039
TT
58172020-04-08 Tom Tromey <tromey@adacore.com>
5818
5819 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5820 (thread_rec, windows_add_thread, windows_delete_thread)
5821 (windows_continue): Update.
5822
93366324
TT
58232020-04-08 Tom Tromey <tromey@adacore.com>
5824
5825 * windows-nat.c (struct windows_thread_info): Remove typedef.
5826 (thread_head): Remove.
5827 (thread_list): New global.
5828 (thread_rec, windows_add_thread, windows_init_thread_list)
5829 (windows_delete_thread, windows_continue): Update.
5830
0f2265e2
SM
58312020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5832
5833 * windows-tdep.h (windows_init_abi): Add comment.
5834 (cygwin_init_abi): New declaration.
5835 * windows-tdep.c: Split signal enumeration in two, one for
5836 Windows and one for Cygwin.
5837 (windows_gdb_signal_to_target): Only deal with signal of the
5838 Windows OS ABI.
5839 (cygwin_gdb_signal_to_target): New function.
5840 (windows_init_abi): Rename to windows_init_abi_common, don't set
5841 gdb_signal_to_target gdbarch method. Add new new function with
5842 this name.
5843 (cygwin_init_abi): New function.
5844 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5845 comment. Don't call windows_init_abi.
5846 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5847 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5848 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5849 i386_windows_init_abi_common, don't call windows_init_abi. Add
5850 a new function of this name.
5851 (i386_cygwin_init_abi): New function.
5852 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5853 OS ABI Cygwin.
5854
3810f182
SM
58552020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5858 parameter.c.
5859 (dwarf2_read_gdb_index): Update.
5860
063f8e80
KR
58612020-04-07 Kamil Rytarowski <n54@gmx.com>
5862
5863 * nbsd-tdep.c: Include "objfiles.h".
5864 (nbsd_skip_solib_resolver): New.
5865 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5866
85a9510c 58672020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5868
5869 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5870 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5871 with DW_LLE_base_addressx are being emitted in DWARFv5.
5872 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5873 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5874 unsigned integer.
5875
9fc3eaae 58762020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5877
5878 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5879 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5880 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5881 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5882 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5883 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5884 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5885
5886
41144253 58872020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5888
5889 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5890 (read_loclist_index): New function definition.
5891 (lookup_loclist_base): New function definition.
5892 (read_loclist_header): New function definition.
5893 (dwarf2_cu): Add loclist_base and loclist_header field.
5894 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5895 (read_full_die_1): Read the value of DW_AT_loclists_base.
5896 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5897 (read_attribute_value): Handle DW_FORM_loclistx.
5898 (skip_one_die): Handle DW_FORM_loclistx.
5899 (loclist_header): New structure declaration.
5900 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5901
9f4e76a4
SM
59022020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5903
5904 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5905 constructor. Remove `addr` parameter from other constructor and
5906 add `per_cu` parameter.
5907 * dwarf2/read.c (create_partial_symtab): Update.
5908
25c11aca
TV
59092020-04-07 Tom de Vries <tdevries@suse.de>
5910
5911 PR symtab/25796
5912 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5913 (partial_die_info::fixup): Inherit has_const_value.
5914
5707e24b
TV
59152020-04-07 Tom de Vries <tdevries@suse.de>
5916
5917 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5918 symbols without address.
5919
05f00e22
KR
59202020-04-06 Kamil Rytarowski <n54@gmx.com>
5921
5922 * nbsd-nat.h (struct thread_info): Add forward declaration.
5923 (nbsd_nat_target::thread_alive): Add.
5924 (nbsd_nat_target::thread_name): Likewise.
5925 (nbsd_nat_target::update_thread_list): Likewise.
5926 (update_thread_list::post_attach): Likewise.
5927 (post_attach::pid_to_str): Likewise.
5928 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5929 (nbsd_thread_lister): Add.
5930 (nbsd_nat_target::thread_alive): Likewise.
5931 (nbsd_nat_target::thread_name): Likewise.
5932 (nbsd_add_threads): Likewise.
5933 (update_thread_list::post_attach): Likewise.
5934 (nbsd_nat_target::update_thread_list): Likewise.
5935 (post_attach::pid_to_str): Likewise.
5936
6ee448cc
TT
59372020-04-06 Tom Tromey <tromey@adacore.com>
5938
5939 * ada-valprint.c (print_variant_part): Extract the variant field.
5940 (print_field_values): Use the field as the outer value when
5941 recursing.
5942
dea34e8c
TT
59432020-04-06 Tom Tromey <tromey@adacore.com>
5944
5945 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5946 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5947 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5948 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5949 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5950
93689ce9
TT
59512020-04-06 Tom Tromey <tromey@adacore.com>
5952
5953 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5954 TYPE_CODE_ERROR.
5955
79743962
KR
59562020-04-06 Kamil Rytarowski <n54@gmx.com>
5957
5958 * nbsd-tdep.c: Include "gdbarch.h".
5959 Define enum with NetBSD signal numbers.
5960 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5961 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5962 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5963 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5964 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5965 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5966 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5967 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5968 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5969 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5970 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5971 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5972
9e7c9a03
HD
59732020-04-03 Hannes Domani <ssbssa@yahoo.de>
5974
5975 PR gdb/25325
5976 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5977
d9e49b61
TT
59782020-04-03 Tom Tromey <tromey@adacore.com>
5979
5980 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5981 Read constant block.
5982
e0fc5c3f
SM
59832020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5984
5985 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5986 (gdb_bfd_get_full_section_contents): New declaration.
5987 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5988 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5989 gdb_bfd_get_full_section_contents.
5990
e2ff18a0
SM
59912020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5992
5993 * exec.c (build_section_table): Replace internal_error with
5994 gdb_assert.
5995 (section_table_xfer_memory_partial): Likewise.
5996 * mdebugread.c (parse_partial_symbols): Likewise.
5997 * psymtab.c (lookup_partial_symbol): Likewise.
5998 * utils.c (wrap_here): Likewise.
5999
0830d301
TT
60002020-04-02 Tom Tromey <tromey@adacore.com>
6001
6002 * f-lang.c (build_fortran_types): Use arch_type to initialize
6003 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6004
e7da7f8f
TT
60052020-04-02 Tom Tromey <tromey@adacore.com>
6006
6007 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6008 of attributes.
6009
c90d28ac
AB
60102020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6011 Bernd Edlinger <bernd.edlinger@hotmail.de>
6012 Tom Tromey <tromey@adacore.com>
6013
6014 * buildsym.c (buildsym_compunit::record_line): Remove
6015 deduplication code.
6016
1aa98955
TV
60172020-04-02 Tom de Vries <tdevries@suse.de>
6018
6019 PR ada/24671
6020 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6021
d3214198
TV
60222020-04-02 Tom de Vries <tdevries@suse.de>
6023
6024 * dwarf2/read.c (dwarf2_gdb_index_functions,
6025 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6026 NULL.
6027 * psymtab.c (psym_lookup_global_symbol_language): New function.
6028 (psym_functions): Init psym_lookup_global_symbol_language with
6029 psym_lookup_global_symbol_language.
6030 * symfile-debug.c (debug_sym_quick_functions): Init
6031 lookup_global_symbol_language with NULL.
6032 * symfile.c (set_initial_language): Remove fixme comment.
6033 * symfile.h (struct quick_symbol_functions): Add
6034 lookup_global_symbol_language.
6035 * symtab.c (find_quick_global_symbol_language): New function.
6036 (find_main_name): Use find_quick_global_symbol_language.
6037
2836752f
SM
60382020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6039
6040 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6041
64dc2d4b
BE
60422020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6043
6044 * buildsym.c (record_line): Fix undefined behavior and preserve
6045 lines at eof.
6046
bbe3dc41
BE
60472020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6048
6049 * buildsym.c (record_line): Fix the resizing condition.
6050
6b4a335b
TT
60512020-04-01 Tom Tromey <tom@tromey.com>
6052
6053 * value.h (value_literal_complex): Add comment.
6054 * valops.c (value_literal_complex): Refer to value.h.
6055
3638a098
TT
60562020-04-01 Tom Tromey <tom@tromey.com>
6057
6058 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6059 (scalar_type): New rule, from typebase.
6060 (typebase): Use scalar_type. Recognize complex types.
6061 (field_name): Handle FLOAT_KEYWORD.
6062 (ident_tokens): Add _Complex and __complex__.
6063
c34e8714
TT
60642020-04-01 Tom Tromey <tom@tromey.com>
6065
6066 PR exp/25299:
6067 * valarith.c (promotion_type, complex_binop): New functions.
6068 (scalar_binop): Handle complex numbers. Use promotion_type.
6069 (value_pos, value_neg, value_complement): Handle complex numbers.
6070
fa649bb7
TT
60712020-04-01 Tom Tromey <tom@tromey.com>
6072
6073 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6074 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6075 (parse_number): Handle complex numbers.
6076
981c08ce
TT
60772020-04-01 Tom Tromey <tom@tromey.com>
6078
6079 * c-valprint.c (c_decorations): Change complex suffix to "i".
6080
4c99290d
TT
60812020-04-01 Tom Tromey <tom@tromey.com>
6082
6083 * valprint.c (generic_value_print_complex): Use accessors.
6084 * value.h (value_real_part, value_imaginary_part): Declare.
6085 * valops.c (value_real_part, value_imaginary_part): New
6086 functions.
6087 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6088
5b930b45
TT
60892020-04-01 Tom Tromey <tom@tromey.com>
6090
6091 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6092 (read_range_type): Update.
6093 * mdebugread.c (basic_type): Update.
6094 * go-lang.c (build_go_types): Use init_complex_type.
6095 * gdbtypes.h (struct main_type) <complex_type>: New member.
6096 (init_complex_type): Update.
6097 (arch_complex_type): Don't declare.
6098 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6099 Make name if none given. Use alloc_type_copy. Look for cached
6100 complex type.
6101 (arch_complex_type): Remove.
6102 (gdbtypes_post_init): Use init_complex_type.
6103 * f-lang.c (build_fortran_types): Use init_complex_type.
6104 * dwarf2/read.c (read_base_type): Update.
6105 * d-lang.c (build_d_types): Use init_complex_type.
6106 * ctfread.c (read_base_type): Update.
6107
53cccef1
TBA
61082020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6109
6110 * infrun.c (stop_all_threads): Update assertion, plus when
6111 stopping threads, take into account that we might be trying
6112 to stop an all-stop target.
6113 (stop_waiting): Call 'stop_all_threads' if there exists a
6114 non-stop target.
6115
a0714d30
TBA
61162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6117
6118 * target.h (exists_non_stop_target): New function declaration.
6119 * target.c (exists_non_stop_target): New function.
6120
60e22c1e
HD
61212020-04-01 Hannes Domani <ssbssa@yahoo.de>
6122
6123 PR gdb/24789
6124 * eval.c (is_integral_or_integral_reference): New function.
6125 (evaluate_subexp_standard): Allow integer references in
6126 pointer arithmetic.
6127
e139a727
TBA
61282020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6129
6130 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6131 check for no ptid in the stop reply when the target is non-stop.
6132
e0802d59
TT
61332020-04-01 Tom Tromey <tromey@adacore.com>
6134
6135 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6136 "name" parameter to rvalue reference. Initialize m_name_holder.
6137 <lookup_name_info>: New overloads.
6138 <name>: Return gdb::string_view.
6139 <c_str>: New method.
6140 <make_ignore_params>: Update.
6141 <search_name_hash>: Update.
6142 <language_lookup_name>: Return const char *.
6143 <m_name>: Change type.
6144 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6145 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6146 (lookup_name_info::match_any): Update.
6147 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6148 Update.
6149 * minsyms.c (linkage_name_str): Update.
6150 * language.c (default_symbol_name_matcher): Update.
6151 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6152 Update.
6153 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6154 (ada_lookup_name_info::ada_lookup_name_info): Update.
6155 (literal_symbol_name_matcher): Update.
6156
8c072cb6
TT
61572020-04-01 Tom Tromey <tromey@adacore.com>
6158
6159 * psymtab.c (psymtab_search_name): Remove function.
6160 (psym_lookup_symbol): Create search name and lookup name here.
6161 (lookup_partial_symbol): Remove "name" parameter; add
6162 lookup_name.
6163 (psym_expand_symtabs_for_function): Update.
6164
6f29a534
TT
61652020-03-31 Joel Jones <joelkevinjones@gmail.com>
6166
6167 PR tui/25597:
6168 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6169
af62665e
TT
61702020-03-31 Tom Tromey <tromey@adacore.com>
6171
6172 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6173 memcpy.
6174
d1a89da5
NC
61752020-03-30 Nelson Chu <nelson.chu@sifive.com>
6176
6177 * features/riscv/32bit-csr.xml: Regenerated.
6178 * features/riscv/64bit-csr.xml: Regenerated.
6179
d8af9068
TT
61802020-03-30 Tom Tromey <tromey@adacore.com>
6181
6182 * ada-valprint.c (print_variant_part): Update.
6183 * ada-lang.h (ada_which_variant_applies): Update.
6184 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6185 outer_valaddr parameters; replace with "outer" value parameter.
6186 (to_fixed_variant_branch_type): Update.
6187
227c0bf4
PFC
61882020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6189
6190 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6191 <list>. Remove inclusion of observable.h.
6192 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6193 (struct arch_lwp_info): New struct.
6194 (class ppc_linux_dreg_interface): New class.
6195 (struct ppc_linux_process_info): New struct.
6196 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6197 <low_new_clone, low_forget_process, low_prepare_to_resume>
6198 <copy_thread_dreg_state, mark_thread_stale>
6199 <mark_debug_registers_changed, register_hw_breakpoint>
6200 <clear_hw_breakpoint, register_wp, clear_wp>
6201 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6202 <num_memory_accesses, get_trigger_type>
6203 <create_watchpoint_request, hwdebug_point_cmp>
6204 <init_arch_lwp_info, get_arch_lwp_info>
6205 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6206 methods.
6207 <struct ptid_hash>: New inner struct.
6208 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6209 members.
6210 (saved_dabr_value, hwdebug_info, max_slots_number)
6211 (struct hw_break_tuple, struct thread_points, ppc_threads)
6212 (have_ptrace_hwdebug_interface)
6213 (hwdebug_find_thread_points_by_tid)
6214 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6215 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6216 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6217 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6218 use m_dreg_interface.
6219 (hwdebug_point_cmp): Change to...
6220 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6221 reference arguments instead of pointers.
6222 (ppc_linux_nat_target::ranged_break_num_registers): Use
6223 m_dreg_interface.
6224 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6225 m_dreg_interface. Call register_hw_breakpoint.
6226 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6227 m_dreg_interface. Call clear_hw_breakpoint.
6228 (get_trigger_type): Change to...
6229 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6230 comment.
6231 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6232 use m_dreg_interface. Call register_hw_breakpoint.
6233 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6234 use m_dreg_interface. Call clear_hw_breakpoint.
6235 (can_use_watchpoint_cond_accel): Change to...
6236 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6237 method. Update comment, use m_dreg_interface and
6238 m_process_info.
6239 (calculate_dvc): Change to...
6240 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6241 m_dreg_interface.
6242 (num_memory_accesses): Change to...
6243 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6244 (check_condition): Change to...
6245 (ppc_linux_nat_target::check_condition): ...this method.
6246 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6247 comment, use m_dreg_interface.
6248 (create_watchpoint_request): Change to...
6249 (ppc_linux_nat_target::create_watchpoint_request): ...this
6250 method. Use m_dreg_interface.
6251 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6252 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6253 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6254 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6255 (ppc_linux_nat_target::low_forget_process)
6256 (ppc_linux_nat_target::low_new_fork)
6257 (ppc_linux_nat_target::low_new_clone)
6258 (ppc_linux_nat_target::low_delete_thread)
6259 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6260 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6261 only call mark_thread_stale.
6262 (ppc_linux_thread_exit): Remove.
6263 (ppc_linux_nat_target::stopped_data_address): Change to...
6264 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6265 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6266 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6267 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6268 comment. Call low_stopped_data_address.
6269 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6270 m_dreg_interface.
6271 (ppc_linux_nat_target::masked_watch_num_registers): Use
6272 m_dreg_interface.
6273 (ppc_linux_nat_target::copy_thread_dreg_state)
6274 (ppc_linux_nat_target::mark_thread_stale)
6275 (ppc_linux_nat_target::mark_debug_registers_changed)
6276 (ppc_linux_nat_target::register_hw_breakpoint)
6277 (ppc_linux_nat_target::clear_hw_breakpoint)
6278 (ppc_linux_nat_target::register_wp)
6279 (ppc_linux_nat_target::clear_wp)
6280 (ppc_linux_nat_target::init_arch_lwp_info)
6281 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6282 (_initialize_ppc_linux_nat): Remove observer callback.
6283
4db10d8f
PFC
62842020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6285
6286 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6287 (ppc_linux_nat_target::auxv_parse)
6288 (ppc_linux_nat_target::read_description)
6289 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6290 Move up.
6291
1310c1b0
PFC
62922020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6293
6294 * linux-nat.h (low_new_clone): New method.
6295 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6296
69b037c3
SM
62972020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6298
6299 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6300 (dbx_expand_psymtab): ... this.
6301 (start_psymtab): Update.
6302 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6303 (mdebug_expand_psymtab): ... this.
6304 (parse_partial_symbols): Update.
6305 (new_psymtab): Update.
6306 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6307 (xcoff_expand_psymtab): ... this.
6308 (xcoff_start_psymtab): Update.
6309
48993951
SM
63102020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6311
6312 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6313 <expand_dependencies>: ... this.
6314 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6315 (partial_symtab::expand_dependencies): ... this.
6316 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6317 Update.
6318 (dwarf2_psymtab::expand_psymtab): Update.
6319 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6320 * mdebugread.c (psymtab_to_symtab_1): Update.
6321 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6322
3ad83046
SM
63232020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6324
6325 * psympriv.h (discard_psymtab): Remove.
6326 * dbxread.c (dbx_end_psymtab): Update.
6327 * xcoffread.c (xcoff_end_psymtab): Update.
6328
4d1b9ab6
TT
63292020-03-28 Tom Tromey <tom@tromey.com>
6330
6331 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6332 comment.
6333
f1749218
TT
63342020-03-28 Tom Tromey <tom@tromey.com>
6335
6336 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6337
ebea7626
HD
63382020-03-27 Hannes Domani <ssbssa@yahoo.de>
6339
6340 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6341
a879b4d5
JB
63422020-03-26 John Baldwin <jhb@FreeBSD.org>
6343
6344 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6345
0826b30a
TT
63462020-03-26 Tom Tromey <tom@tromey.com>
6347
6348 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6349 (mark_common_block_symbol_computed, read_tag_string_type)
6350 (attr_to_dynamic_prop, read_subrange_type): Update.
6351 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6352 to be methods on struct attribute.
6353 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6354 (read_call_site_scope, partial_die_info::read)
6355 (partial_die_info::read, lookup_die_type, follow_die_ref):
6356 Update.
6357 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6358 from dwarf2_get_ref_die_offset.
6359 (attribute::constant_value): New method, from
6360 dwarf2_get_attr_constant_value.
6361 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6362 Declare method.
6363 <constant_value>: New method.
6364
2b2558bf
TT
63652020-03-26 Tom Tromey <tom@tromey.com>
6366
6367 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6368 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6369 (dwarf_type_encoding_name): Move to stringify.c.
6370 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6371 * dwarf2/stringify.c: New file.
6372 * dwarf2/stringify.h: New file.
6373
eeb64781
TT
63742020-03-26 Tom Tromey <tom@tromey.com>
6375
6376 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6377 Rewrite.
6378
a39fdb41
TT
63792020-03-26 Tom Tromey <tom@tromey.com>
6380
6381 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6382 methods.
6383 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6384 (lookup_ranges_base): Likewise.
6385 (read_cutu_die_from_dwo, read_full_die_1): Update.
6386
436c571c
TT
63872020-03-26 Tom Tromey <tom@tromey.com>
6388
6389 * dwarf2/read.c (read_import_statement, read_file_scope)
6390 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6391 (read_lexical_block_scope, read_call_site_scope)
6392 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6393 (handle_struct_member_die, process_structure_scope)
6394 (update_enumeration_type_from_children)
6395 (process_enumeration_scope, read_array_type, read_common_block)
6396 (read_namespace, read_module, read_subroutine_type): Update.
6397 (sibling_die): Remove.
6398
052c8bb8
TT
63992020-03-26 Tom Tromey <tom@tromey.com>
6400
6401 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6402 (build_type_psymtabs_reader, read_structure_type)
6403 (read_enumeration_type, read_full_die_1): Update.
6404 (dwarf2_attr_no_follow): Move to die.h.
6405 * dwarf2/die.h (struct die_info) <attr>: New method.
6406
2b24b6e4
TT
64072020-03-26 Tom Tromey <tom@tromey.com>
6408
6409 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6410 <base_address>: Now an optional.
6411 (dwarf2_find_base_address, dwarf2_rnglists_process)
6412 (dwarf2_ranges_process, fill_in_loclist_baton)
6413 (dwarf2_symbol_mark_computed): Update.
6414
c2d50fd0
TT
64152020-03-26 Tom Tromey <tom@tromey.com>
6416
6417 * dwarf2/read.c (struct die_info): Move to die.h.
6418 * dwarf2/die.h: New file.
6419
0df7ad3a
TT
64202020-03-26 Tom Tromey <tom@tromey.com>
6421
6422 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6423 * dwarf2/read.c
6424 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6425 Move to line-header.c.
6426 (read_checked_initial_length_and_offset, read_formatted_entries):
6427 Likewise.
6428 (dwarf_decode_line_header): Split into two.
6429 * dwarf2/line-header.c
6430 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6431 Move from read.c.
6432 (read_checked_initial_length_and_offset, read_formatted_entries):
6433 Likewise.
6434 (dwarf_decode_line_header): New function, split from read.c.
6435
86c0bb4c
TT
64362020-03-26 Tom Tromey <tom@tromey.com>
6437
6438 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6439 Declare method.
6440 * dwarf2/read.c (read_attribute_value): Update.
6441 (dwarf2_per_objfile::read_line_string): Rename from
6442 read_indirect_line_string.
6443 (read_formatted_entries): Update.
6444
2ef46c2f
TT
64452020-03-26 Tom Tromey <tom@tromey.com>
6446
6447 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6448 variable.
6449
4f9c1eda
TT
64502020-03-26 Tom Tromey <tom@tromey.com>
6451
6452 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6453 const.
6454 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6455 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6456 parameter const.
6457
5a0e026f
TT
64582020-03-26 Tom Tromey <tom@tromey.com>
6459
6460 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6461 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6462 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6463 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6464
8844c11b
TT
64652020-03-26 Tom Tromey <tom@tromey.com>
6466
6467 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6468 file_names_size, file_full_name, file_file_name>: Use const.
6469 <file_name_at, file_names>: Add const overload.
6470 * dwarf2/line-header.c (line_header::file_file_name)
6471 (line_header::file_full_name): Update.
6472
c90ec28a
TT
64732020-03-26 Tom Tromey <tom@tromey.com>
6474
6475 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6476 (macro_start_file, consume_improper_spaces)
6477 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6478 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6479 (dwarf_decode_macros): Move to macro.c.
6480 * dwarf2/macro.c: New file.
6481 * dwarf2/macro.h: New file.
6482 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6483
4f44ae6c
TT
64842020-03-26 Tom Tromey <tom@tromey.com>
6485
6486 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6487 method.
6488 * dwarf2/section.c: New method. From
6489 read_indirect_string_at_offset_from.
6490 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6491 (read_indirect_string_at_offset_from): Move to section.c.
6492 (read_indirect_string_at_offset): Rewrite.
6493 (read_indirect_line_string_at_offset): Remove.
6494 (read_indirect_string, read_indirect_line_string)
6495 (dwarf_decode_macro_bytes): Update.
6496
a0194fa8
TT
64972020-03-26 Tom Tromey <tom@tromey.com>
6498
6499 * dwarf2/section.h (struct dwarf2_section_info)
6500 <overload_complaint>: Declare.
6501 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6502 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6503 Rename from dwarf2_section_buffer_overflow_complaint.
6504 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6505 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6506
3d27bbdb
TT
65072020-03-26 Tom Tromey <tom@tromey.com>
6508
6509 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6510 Declare.
6511 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6512 Move from read.c.
6513 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6514 to section.c.
6515
9eac9650
TT
65162020-03-26 Tom Tromey <tom@tromey.com>
6517
6518 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6519
bf80d710
TT
65202020-03-26 Tom Tromey <tom@tromey.com>
6521
6522 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6523 "builder".
6524 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6525 parameter.
6526 (dwarf_decode_macros): Update.
6527
0314b390
TT
65282020-03-26 Tom Tromey <tom@tromey.com>
6529
6530 * dwarf2/read.c (read_attribute_value): Update.
6531 (read_indirect_string_from_dwz): Move to dwz.c; change into
6532 method.
6533 (dwarf_decode_macro_bytes): Update.
6534 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6535 * dwarf2/dwz.c: New file.
6536 * Makefile.in (COMMON_SFILES): Add dwz.c.
6537
9fda78b6
TT
65382020-03-26 Tom Tromey <tom@tromey.com>
6539
6540 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6541 * dwarf2/read.c: Add include.
6542 * dwarf2/index-write.c: Add include.
6543 * dwarf2/index-cache.c: Add include.
6544 * dwarf2/dwz.h: New file.
6545
33aa3c10
TT
65462020-03-25 Tom Tromey <tom@tromey.com>
6547
6548 * compile/compile-object-load.c (get_out_value_type): Mention
6549 correct symbol name in error message.
6550
d503b685
HD
65512020-03-25 Hannes Domani <ssbssa@yahoo.de>
6552
6553 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6554
7b1eff95
TV
65552020-03-25 Tom de Vries <tdevries@suse.de>
6556
6557 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6558 * symmisc.c (dump_symtab_1): Print user and includes fields.
6559 (maintenance_info_symtabs): Same.
6560
dd895392
AB
65612020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6562
6563 PR gdb/25534
6564 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6565 (riscv_regcache_cooked_write): New function.
6566 (riscv_push_dummy_call): Use new function.
6567 (riscv_return_value): Likewise.
6568
5ab2fbf1
SM
65692020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6570
6571 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6572 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6573 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6574 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6575 * infrun.c (follow_fork): Likewise.
6576 (follow_fork_inferior): Likewise.
6577 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6578 * linux-nat.h (class linux_nat_target): Likewise.
6579 * remote.c (class remote_target) <follow_fork>: Likewise.
6580 (remote_target::follow_fork): Likewise.
6581 * target-delegates.c: Re-generate.
6582 * target.c (default_follow_fork): Likewise.
6583 (target_follow_fork): Likewise.
6584 * target.h (struct target_ops) <follow_fork>: Likewise.
6585 (target_follow_fork): Likewise.
6586
a64fafb5
TV
65872020-03-24 Tom de Vries <tdevries@suse.de>
6588
6589 * psymtab.c (maintenance_info_psymtabs): Print user field.
6590
fe26d3a3
TT
65912020-03-20 Tom Tromey <tromey@adacore.com>
6592
6593 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6594 const.
6595 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6596 const.
6597
c884cc46
SM
65982020-03-20 Simon Marchi <simon.marchi@efficios.com>
6599
6600 * ptrace.m4: Don't check for ptrace declaration.
6601 * config.in: Re-generate.
6602 * configure: Re-generate.
6603 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6604 not defined.
6605
1ff700c2
KR
66062020-03-20 Kamil Rytarowski <n54@gmx.com>
6607
6608 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6609 `PTRACE_TYPE_RET'.
6610 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6611 * sparc-nat.c (gdb_ptrace): Likewise.
6612 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6613
f7d4f0b1
TT
66142020-03-20 Tom Tromey <tromey@adacore.com>
6615
6616 * c-exp.y (lex_one_token): Fix assert.
6617
f67210ff
TT
66182020-03-20 Tom Tromey <tromey@adacore.com>
6619
6620 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6621 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6622 strncpy call.
6623
1773be9e
TT
66242020-03-20 Tom Tromey <tromey@adacore.com>
6625
6626 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6627
70304be9
TT
66282020-03-20 Tom Tromey <tromey@adacore.com>
6629
6630 * ada-valprint.c (print_variant_part): Remove parameters; switch
6631 to value-based API.
6632 (print_field_values): Likewise.
6633 (ada_val_print_struct_union): Likewise.
6634 (ada_value_print_1): Update.
6635
9faa006d
KR
66362020-03-20 Kamil Rytarowski <n54@gmx.com>
6637
6638 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6639 nbsd_nat_target instead of inf_ptrace_target.
6640 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6641 nbsd_nat_target.
6642
4a90f062
KR
66432020-03-20 Kamil Rytarowski <n54@gmx.com>
6644
6645 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6646 it to the ptrace call.
6647 * (store_registers): Likewise.
6648
66492020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6650
6651 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6652 it to the ptrace call.
6653 * (store_registers): Likewise.
6654
2d07da27
LM
66552020-03-19 Luis Machado <luis.machado@linaro.org>
6656
6657 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6658 valid, fetch vg value from ptrace.
6659
f09db380
KR
66602020-03-19 Kamil Rytarowski <n54@gmx.com>
6661 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6662 * inf-ptrace.c: Likewise.
6663 * (gdb_ptrace): Add.
6664 * (inf_ptrace_target::resume): Update.
6665 * (inf_ptrace_target::xfer_partial): Likewise.
6666 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6667 * (inf_ptrace_peek_poke): Update.
6668
fcc7376e
KR
66692020-03-19 Kamil Rytarowski <n54@gmx.com>
6670
6671 * x86-bsd-nat.c (gdb_ptrace): New.
6672 * (x86bsd_dr_set): Add new argument `ptid'.
6673 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6674 x86bsd_dr_set_addr): Update.
6675
cada5fc9
AB
66762020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6677
6678 * remote.c (remote_target::process_stop_reply): Handle events for
6679 all threads differently.
6680
19a2740f
AB
66812020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6682
6683 * completer.c (completion_tracker::remove_completion): Define new
6684 function.
6685 * completer.h (completion_tracker::remove_completion): Declare new
6686 function.
6687 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6688 when adding a C++ function symbol.
6689
724fd9ba
AB
66902020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6691
6692 * completer.c (completion_tracker::completion_hash_entry): Define
6693 new class.
6694 (advance_to_filename_complete_word_point): Call
6695 recompute_lowest_common_denominator.
6696 (completion_tracker::completion_tracker): Call discard_completions
6697 to setup the hash table.
6698 (completion_tracker::discard_completions): Allow for being called
6699 from the constructor, pass new equal function, and element deleter
6700 when constructing the hash table. Initialise new class member
6701 variables.
6702 (completion_tracker::maybe_add_completion): Remove use of
6703 m_entries_vec, and store more information into m_entries_hash.
6704 (completion_tracker::recompute_lcd_visitor): New function, most
6705 content taken from...
6706 (completion_tracker::recompute_lowest_common_denominator):
6707 ...here, this now just visits each item in the hash calling the
6708 above visitor.
6709 (completion_tracker::build_completion_result): Remove use of
6710 m_entries_vec, call recompute_lowest_common_denominator.
6711 * completer.h (completion_tracker::have_completions): Remove use
6712 of m_entries_vec.
6713 (completion_tracker::completion_hash_entry): Declare new class.
6714 (completion_tracker::recompute_lowest_common_denominator): Change
6715 function signature.
6716 (completion_tracker::recompute_lcd_visitor): Declare new function.
6717 (completion_tracker::m_entries_vec): Delete.
6718 (completion_tracker::m_entries_hash): Initialize to NULL.
6719 (completion_tracker::m_lowest_common_denominator_valid): New
6720 member variable.
6721 (completion_tracker::m_lowest_common_denominator_max_length): New
6722 member variable.
6723
5a82b8a1
KR
67242020-03-17 Kamil Rytarowski <n54@gmx.com>
6725
6726 * regformats/regdef.h: Put reg in gdb namespace.
6727
fb516a69
KR
67282020-03-17 Kamil Rytarowski <n54@gmx.com>
6729
6730 * i386-bsd-nat.c (gdb_ptrace): New.
6731 * (i386bsd_fetch_inferior_registers,
6732 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6733 * (i386bsd_fetch_inferior_registers,
6734 i386bsd_store_inferior_registers) Use gdb_ptrace.
6735
1c0aa1fb
KR
67362020-03-17 Kamil Rytarowski <n54@gmx.com>
6737
6738 * amd64-bsd-nat.c (gdb_ptrace): New.
6739 * (amd64bsd_fetch_inferior_registers,
6740 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6741 * (amd64bsd_fetch_inferior_registers,
6742 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6743
5ccd2fb7
KR
67442020-03-17 Kamil Rytarowski <n54@gmx.com>
6745
6746 * user-regs.c (user_reg::read): Rename to...
6747 (user_reg::xread): ...this.
6748 * (append_user_reg): Rename argument `read' to `xread'.
6749 * (user_reg_add_builtin): Likewise.
6750 * (user_reg_add): Likewise.
6751 * (value_of_user_reg): Likewise.
6752
2108a63a
KR
67532020-03-17 Kamil Rytarowski <n54@gmx.com>
6754
6755 * sparc-nat.c (gdb_ptrace): New.
6756 * sparc-nat.c (sparc_fetch_inferior_registers)
6757 (sparc_store_inferior_registers) Remove obsolete comment.
6758 * sparc-nat.c (sparc_fetch_inferior_registers)
6759 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6760 * sparc-nat.c (sparc_fetch_inferior_registers)
6761 (sparc_store_inferior_registers) Use gdb_ptrace.
6762
a225c9a8
KR
67632020-03-17 Kamil Rytarowski <n54@gmx.com>
6764
6765 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6766 it to the ptrace call.
6767 * sh-nbsd-nat.c (store_registers): Likewise.
6768
98097623
KR
67692020-03-17 Kamil Rytarowski <n54@gmx.com>
6770
6771 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6772 nbsd_nat_target instead of inf_ptrace_target.
6773 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6774 nbsd_nat_target.
6775
9e38d619
KR
67762020-03-17 Kamil Rytarowski <n54@gmx.com>
6777
6778 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6779
a2ecbe9f
KR
67802020-03-17 Kamil Rytarowski <n54@gmx.com>
6781
6782 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6783 <sys/sysctl.h>.
6784 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6785
58990295
TV
67862020-03-17 Tom de Vries <tdevries@suse.de>
6787
6788 PR gdb/23710
6789 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6790 fields.
6791 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6792 fields.
6793 (process_imported_unit_die): Skip import of c++ CUs.
6794
771dd3a8
TT
67952020-03-16 Tom Tromey <tom@tromey.com>
6796
6797 * p-valprint.c (pascal_object_print_value): Initialize
6798 base_value.
6799
817a7585
AK
68002020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6801 Shahab Vahedi <shahab@synopsys.com>
6802
6803 * Makefile.in: Add arch/arc.o
6804 * configure.tgt: Likewise.
6805 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6806 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6807 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6808 * arc-tdep.h (arc_read_description): Add proto type.
6809 * arch/arc.c: New file.
6810 * arch/arc.h: Likewise.
6811 * features/Makefile: Replace old target descriptions with new.
6812 * features/arc-arcompact.c: Remove.
6813 * features/arc-arcompact.xml: Likewise.
6814 * features/arc-v2.c: Likewise
6815 * features/arc-v2.xml: Likewise
6816 * features/arc/aux-arcompact.xml: New file.
6817 * features/arc/aux-v2.xml: Likewise.
6818 * features/arc/core-arcompact.xml: Likewise.
6819 * features/arc/core-v2.xml: Likewise.
6820 * features/arc/aux-arcompact.c: Generate.
6821 * features/arc/aux-v2.c: Likewise.
6822 * features/arc/core-arcompact.c: Likewise.
6823 * features/arc/core-v2.c: Likewise.
6824 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6825
67430cd0
TT
68262020-03-16 Tom Tromey <tromey@adacore.com>
6827
6828 PR gdb/25663:
6829 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6830 putting value into bcache.
6831
30efb6c7
SM
68322020-03-16 Simon Marchi <simon.marchi@efficios.com>
6833
6834 PR gdb/21500
6835 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6836 to...
6837 (amd64_windows_init_abi_common): ... this. Don't set size of
6838 long type.
6839 (amd64_windows_init_abi): New function.
6840 (amd64_cygwin_init_abi): New function.
6841 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6842 the Cygwin OS ABI.
6843 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6844 comment.
6845
8db52437
SM
68462020-03-16 Simon Marchi <simon.marchi@efficios.com>
6847
6848 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6849 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6850 (pe_import_directory_entry): New struct type.
6851 (is_linked_with_cygwin_dll): New function.
6852 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6853 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6854 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6855
5982a56a
SM
68562020-03-16 Simon Marchi <simon.marchi@efficios.com>
6857
6858 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6859 i386_cygwin_core_osabi_sniffer.
6860
7a1998df
SM
68612020-03-16 Simon Marchi <simon.marchi@efficios.com>
6862
6863 * i386-cygwin-tdep.c: Rename to...
6864 * i386-windows-tdep.c: ... this.
6865 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6866 i386-windows-tdep.c.
6867 * configure.tgt: Likewise.
6868
053205cc
SM
68692020-03-16 Simon Marchi <simon.marchi@efficios.com>
6870
6871 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6872 * osabi.c (gdb_osabi_names): Add "Windows".
6873 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6874 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6875 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6876 i386_cygwin_osabi_sniffer.
6877 (_initialize_i386_cygwin_tdep): Register OS ABI
6878 GDB_OSABI_WINDOWS for i386.
6879 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6880 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6881 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6882 for x86-64.
6883 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6884 when the target matches '*-*-mingw*'.
6885
fe4b2ee6
SM
68862020-03-16 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * defs.h (enum gdb_osabi): Move to...
6889 * osabi.h (enum gdb_osabi): ... here.
6890 * gdbarch.sh: Include osabi.h in gdbarch.h.
6891 * gdbarch.h: Re-generate.
6892
cb9b645d
SM
68932020-03-16 Simon Marchi <simon.marchi@efficios.com>
6894
6895 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6896 function.
6897 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6898
3293bbaf
TT
68992020-03-14 Tom Tromey <tom@tromey.com>
6900
6901 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6902 for C++.
6903 (c_type_print_modifier): Likewise. Add "language" parameter.
6904 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6905 (c_type_print_base_1): Update.
6906 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6907 constants.
6908 * type-stack.c (type_stack::insert): Handle tp_atomic and
6909 tp_restrict.
6910 (type_stack::follow_type_instance_flags): Likewise.
6911 (type_stack::follow_types): Likewise. Merge type-following code.
6912 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6913 (space_identifier, cv_with_space_id)
6914 (const_or_volatile_or_space_identifier_noopt)
6915 (const_or_volatile_or_space_identifier): Remove.
6916 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6917 rules.
6918 (ptr_operator, typebase): Update.
6919 (enum token_flag) <FLAG_C>: New constant.
6920 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6921 "_Atomic".
6922 (lex_one_token): Handle FLAG_C.
6923
154151a6
KR
69242020-03-14 Kamil Rytarowski <n54@gmx.com>
6925
6926 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6927 it to the ptrace call.
6928 * m68k-bsd-nat.c (store_registers): Likewise.
6929
bc107784
KR
69302020-03-14 Kamil Rytarowski <n54@gmx.com>
6931
6932 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6933 gdb_byte *.
6934 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6935 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6936 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6937
01a80117
KR
69382020-03-14 Kamil Rytarowski <n54@gmx.com>
6939
6940 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6941 nbsd_nat_target instead of inf_ptrace_target.
6942 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6943 nbsd_nat_target.
6944
f90280ca
KR
69452020-03-14 Kamil Rytarowski <n54@gmx.com>
6946
6947 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6948 register_t.
6949
6def66f1
KR
69502020-03-14 Kamil Rytarowski <n54@gmx.com>
6951
6952 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6953 it to the ptrace call.
6954 * alpha-bsd-nat.c (store_registers): Likewise.
6955
66eaca97
KR
69562020-03-14 Kamil Rytarowski <n54@gmx.com>
6957
6958 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6959 includes.
6960 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6961 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6962 fill_fpregset): Likewise.
6963
4fed520b
KR
69642020-03-14 Kamil Rytarowski <n54@gmx.com>
6965
6966 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6967 nbsd_nat_target instead of inf_ptrace_target.
6968 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6969 nbsd_nat_target.
6970
2190cf06
KR
69712020-03-14 Kamil Rytarowski <n54@gmx.com>
6972
6973 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6974 register_t.
6975
75c56d3d
KR
69762020-03-14 Kamil Rytarowski <n54@gmx.com>
6977
6978 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6979 it to the ptrace call.
6980 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6981 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6982 * arm-nbsd-nat.c (store_register): Likewise.
6983 * arm-nbsd-nat.c (store_regs): Likewise.
6984 * arm-nbsd-nat.c (store_fp_register): Likewise.
6985 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6986
6018d381
KR
69872020-03-14 Kamil Rytarowski <n54@gmx.com>
6988
6989 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6990 nbsd_nat_target instead of inf_ptrace_target.
6991 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6992 nbsd_nat_target.
6993
013f99f0
KR
69942020-03-14 Kamil Rytarowski <n54@gmx.com>
6995
6996 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6997 it to the ptrace call.
6998 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6999
12753073
KR
70002020-03-14 Kamil Rytarowski <n54@gmx.com>
7001
6227b330
KR
7002 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7003 it to the ptrace call.
7004 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7005
70062020-03-14 Kamil Rytarowski <n54@gmx.com>
7007
7008 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7009 gdb_byte *.
12753073
KR
7010 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7011
d5be5fa4
KR
70122020-03-14 Kamil Rytarowski <n54@gmx.com>
7013
7014 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7015 instead of inf_ptrace_target.
7016 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7017 nbsd_nat_target.
7018
8110f842
KR
70192020-03-14 Kamil Rytarowski <n54@gmx.com>
7020
7021 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7022 register_t.
7023
52feded7
KR
70242020-03-14 Kamil Rytarowski <n54@gmx.com>
7025
7026 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7027 register_t.
7028
25567eee
KR
70292020-03-14 Kamil Rytarowski <n54@gmx.com>
7030
7031 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7032 register_t.
7033
426a9c18
TT
70342020-03-13 Tom Tromey <tom@tromey.com>
7035
7036 * value.h (val_print): Don't declare.
7037 * valprint.h (val_print_array_elements)
7038 (val_print_scalar_formatted, generic_val_print): Don't declare.
7039 * valprint.c (generic_val_print_array): Take a struct value.
7040 (generic_val_print_ptr, generic_val_print_memberptr)
7041 (generic_val_print_bool, generic_val_print_int)
7042 (generic_val_print_char, generic_val_print_complex)
7043 (generic_val_print): Remove.
7044 (generic_value_print): Update.
7045 (do_val_print): Remove unused parameters. Don't call
7046 la_val_print.
7047 (val_print): Remove.
7048 (common_val_print): Update. Don't call value_check_printable.
7049 (val_print_scalar_formatted, val_print_array_elements): Remove.
7050 * rust-lang.c (rust_val_print): Remove.
7051 (rust_language_defn): Update.
7052 * p-valprint.c (pascal_val_print): Remove.
7053 (pascal_value_print_inner): Update.
7054 (pascal_object_print_val_fields, pascal_object_print_val):
7055 Remove.
7056 (pascal_object_print_static_field): Update.
7057 * p-lang.h (pascal_val_print): Don't declare.
7058 * p-lang.c (pascal_language_defn): Update.
7059 * opencl-lang.c (opencl_language_defn): Update.
7060 * objc-lang.c (objc_language_defn): Update.
7061 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7062 * m2-lang.h (m2_val_print): Don't declare.
7063 * m2-lang.c (m2_language_defn): Update.
7064 * language.h (struct language_defn) <la_val_print>: Remove.
7065 * language.c (unk_lang_value_print_inner): Rename. Change
7066 argument types.
7067 (unknown_language_defn, auto_language_defn): Update.
7068 * go-valprint.c (go_val_print): Remove.
7069 * go-lang.h (go_val_print): Don't declare.
7070 * go-lang.c (go_language_defn): Update.
7071 * f-valprint.c (f_val_print): Remove.
7072 * f-lang.h (f_value_print): Don't declare.
7073 * f-lang.c (f_language_defn): Update.
7074 * d-valprint.c (d_val_print): Remove.
7075 * d-lang.h (d_value_print): Don't declare.
7076 * d-lang.c (d_language_defn): Update.
7077 * cp-valprint.c (cp_print_value_fields)
7078 (cp_print_value_fields_rtti, cp_print_value): Remove.
7079 (cp_print_static_field): Update.
7080 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7081 (c_val_print_struct, c_val_print_union, c_val_print_int)
7082 (c_val_print_memberptr, c_val_print): Remove.
7083 * c-lang.h (c_val_print_array, cp_print_value_fields)
7084 (cp_print_value_fields_rtti): Don't declare.
7085 * c-lang.c (c_language_defn, cplus_language_defn)
7086 (asm_language_defn, minimal_language_defn): Update.
7087 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7088 (ada_val_print_enum): Take a struct value.
7089 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7090 (ada_val_print): Remove.
7091 (ada_value_print_1): Update.
7092 (printable_val_type): Remove.
7093 * ada-lang.h (ada_val_print): Don't declare.
7094 * ada-lang.c (ada_language_defn): Update.
7095
42331a1e
TT
70962020-03-13 Tom Tromey <tom@tromey.com>
7097
7098 * valprint.c (do_val_print): Update.
7099 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7100 a struct value.
7101 (value_to_value_object_no_release): Declare.
7102 * python/py-value.c (value_to_value_object_no_release): New
7103 function.
7104 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7105 struct value.
7106 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7107 function.
7108 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7109 a struct value.
7110 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7111 Declare.
7112 (gdbscm_apply_val_pretty_printer): Take a struct value.
7113 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7114 value.
7115 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7116 value.
7117 * extension-priv.h (struct extension_language_ops)
7118 <apply_val_pretty_printer>: Take a struct value.
7119 * cp-valprint.c (cp_print_value): Create a struct value.
7120 (cp_print_value): Update.
7121
3a916a97
TT
71222020-03-13 Tom Tromey <tom@tromey.com>
7123
7124 * ada-valprint.c (print_field_values): Call common_val_print.
7125
b59eac37
TT
71262020-03-13 Tom Tromey <tom@tromey.com>
7127
7128 * ada-valprint.c (val_print_packed_array_elements): Remove
7129 bitoffset and val parameters. Call common_val_print.
7130 (ada_val_print_string): Remove offset, address, and original_value
7131 parameters.
7132 (ada_val_print_array): Update.
7133 (ada_value_print_array): New function.
7134 (ada_value_print_1): Call it.
7135
03371129
TT
71362020-03-13 Tom Tromey <tom@tromey.com>
7137
7138 * ada-valprint.c (ada_value_print): Use common_val_print.
7139
2e088f8b
TT
71402020-03-13 Tom Tromey <tom@tromey.com>
7141
7142 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7143
39ef85a8
TT
71442020-03-13 Tom Tromey <tom@tromey.com>
7145
7146 * ada-valprint.c (ada_value_print_num): New function.
7147 (ada_value_print_1): Use it.
7148
b9fa6e07
TT
71492020-03-13 Tom Tromey <tom@tromey.com>
7150
7151 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7152
416595d6
TT
71532020-03-13 Tom Tromey <tom@tromey.com>
7154
7155 * ada-valprint.c (ada_value_print_ptr): New function.
7156 (ada_value_print_1): Use it.
7157
5b5e15ec
TT
71582020-03-13 Tom Tromey <tom@tromey.com>
7159
7160 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7161 call common_val_print.
7162 (ada_val_print_1): Update.
7163 (ada_value_print_1): New function.
7164 (ada_value_print_inner): Rewrite.
7165
fbf54e75
TT
71662020-03-13 Tom Tromey <tom@tromey.com>
7167
7168 * cp-valprint.c (cp_print_value_fields): Update.
7169 (cp_print_value): New function.
7170
64b653ca
TT
71712020-03-13 Tom Tromey <tom@tromey.com>
7172
7173 * m2-valprint.c (m2_value_print_inner): Use
7174 cp_print_value_fields.
7175 * cp-valprint.c (cp_print_value_fields): New function.
7176 * c-valprint.c (c_value_print_struct): New function.
7177 (c_value_print_inner): Use c_value_print_struct.
7178 * c-lang.h (cp_print_value_fields): Declare.
7179
6999f067
TT
71802020-03-13 Tom Tromey <tom@tromey.com>
7181
7182 * c-valprint.c (c_value_print_array): New function.
7183 (c_value_print_inner): Use it.
7184
ce80b8bd
TT
71852020-03-13 Tom Tromey <tom@tromey.com>
7186
7187 * c-valprint.c (c_value_print_memberptr): New function.
7188 (c_value_print_inner): Use it.
7189
2faac269
TT
71902020-03-13 Tom Tromey <tom@tromey.com>
7191
7192 * c-valprint.c (c_value_print_int): New function.
7193 (c_value_print_inner): Use it.
7194
da3e2c29
TT
71952020-03-13 Tom Tromey <tom@tromey.com>
7196
7197 * c-valprint.c (c_value_print_ptr): New function.
7198 (c_value_print_inner): Use it.
7199
50836231
TT
72002020-03-13 Tom Tromey <tom@tromey.com>
7201
7202 * c-valprint.c (c_value_print_inner): Rewrite.
7203
4f412b6e
TT
72042020-03-13 Tom Tromey <tom@tromey.com>
7205
7206 * valprint.c (generic_value_print_complex): New function.
7207 (generic_value_print): Use it.
7208
f5354008
TT
72092020-03-13 Tom Tromey <tom@tromey.com>
7210
7211 * valprint.c (generic_val_print_float): Don't call
7212 val_print_scalar_formatted.
7213 (generic_val_print, generic_value_print): Update.
7214
3eec3b05
TT
72152020-03-13 Tom Tromey <tom@tromey.com>
7216
7217 * valprint.c (generic_value_print_char): New function
7218 (generic_value_print): Use it.
7219
fdddfccb
TT
72202020-03-13 Tom Tromey <tom@tromey.com>
7221
7222 * valprint.c (generic_value_print_int): New function.
7223 (generic_value_print): Use it.
7224
6dde7521
TT
72252020-03-13 Tom Tromey <tom@tromey.com>
7226
7227 * valprint.c (generic_value_print_bool): New function.
7228 (generic_value_print): Use it.
7229
4112d2e6
TT
72302020-03-13 Tom Tromey <tom@tromey.com>
7231
7232 * valprint.c (generic_val_print_func): Simplify.
7233 (generic_val_print, generic_value_print): Update.
7234
65786af6
TT
72352020-03-13 Tom Tromey <tom@tromey.com>
7236
7237 * valprint.c (generic_val_print_flags): Remove.
7238 (generic_val_print, generic_value_print): Update.
7239 (val_print_type_code_flags): Add original_value parameter.
7240
40f3ce18
TT
72412020-03-13 Tom Tromey <tom@tromey.com>
7242
7243 * valprint.c (generic_val_print): Update.
7244 (generic_value_print): Update.
7245 * valprint.c (generic_val_print_enum): Don't call
7246 val_print_scalar_formatted.
7247
2a5b130b
TT
72482020-03-13 Tom Tromey <tom@tromey.com>
7249
7250 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7251 * valprint.c (generic_value_print_ptr): New function.
7252
abc66ce9
TT
72532020-03-13 Tom Tromey <tom@tromey.com>
7254
7255 * valprint.c (generic_value_print): Rewrite.
7256
07a32858
TT
72572020-03-13 Tom Tromey <tom@tromey.com>
7258
7259 * p-valprint.c (pascal_object_print_value_fields)
7260 (pascal_object_print_value): New functions.
7261
64d64d3a
TT
72622020-03-13 Tom Tromey <tom@tromey.com>
7263
7264 * p-valprint.c (pascal_value_print_inner): Rewrite.
7265
6a95a1f5
TT
72662020-03-13 Tom Tromey <tom@tromey.com>
7267
7268 * f-valprint.c (f_value_print_innner): Rewrite.
7269
59fcdac6
TT
72702020-03-13 Tom Tromey <tom@tromey.com>
7271
7272 * m2-valprint.c (m2_print_unbounded_array): New overload.
7273 (m2_print_unbounded_array): Update.
7274 (m2_print_array_contents): Take a struct value.
7275 (m2_value_print_inner): Rewrite.
7276
d133c3e1
TT
72772020-03-13 Tom Tromey <tom@tromey.com>
7278
7279 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7280 (d_value_print_inner): New function.
7281 * d-lang.h (d_value_print_inner): Declare.
7282 * d-lang.c (d_language_defn): Use d_value_print_inner.
7283
23b0f06b
TT
72842020-03-13 Tom Tromey <tom@tromey.com>
7285
7286 * go-valprint.c (go_value_print_inner): New function.
7287 * go-lang.h (go_value_print_inner): Declare.
7288 * go-lang.c (go_language_defn): Use go_value_print_inner.
7289
5f56f7cb
TT
72902020-03-13 Tom Tromey <tom@tromey.com>
7291
7292 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7293 API.
7294 (rust_val_print): Rewrite.
7295 (rust_value_print_inner): New function, from rust_val_print.
7296 (rust_language_defn): Use rust_value_print_inner.
7297
26792ee0
TT
72982020-03-13 Tom Tromey <tom@tromey.com>
7299
7300 * ada-valprint.c (ada_value_print_inner): New function.
7301 * ada-lang.h (ada_value_print_inner): Declare.
7302 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7303
24051bbe
TT
73042020-03-13 Tom Tromey <tom@tromey.com>
7305
7306 * f-valprint.c (f_value_print_innner): New function.
7307 * f-lang.h (f_value_print_innner): Declare.
7308 * f-lang.c (f_language_defn): Use f_value_print_innner.
7309
c0941be6
TT
73102020-03-13 Tom Tromey <tom@tromey.com>
7311
7312 * p-valprint.c (pascal_value_print_inner): New function.
7313 * p-lang.h (pascal_value_print_inner): Declare.
7314 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7315
62c4663d
TT
73162020-03-13 Tom Tromey <tom@tromey.com>
7317
7318 * m2-valprint.c (m2_value_print_inner): New function.
7319 * m2-lang.h (m2_value_print_inner): Declare.
7320 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7321
62182190
TT
73222020-03-13 Tom Tromey <tom@tromey.com>
7323
7324 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7325 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7326 * c-valprint.c (c_value_print_inner): New function.
7327 * c-lang.h (c_value_print_inner): Declare.
7328 * c-lang.c (c_language_defn, cplus_language_defn)
7329 (asm_language_defn, minimal_language_defn): Use
7330 c_value_print_inner.
7331
1e592a8a
TT
73322020-03-13 Tom Tromey <tom@tromey.com>
7333
7334 * p-valprint.c (pascal_object_print_value_fields): Now static.
7335 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7336
7fe471e9
TT
73372020-03-13 Tom Tromey <tom@tromey.com>
7338
7339 * c-valprint.c (c_val_print_array): Simplify.
7340
d121c6ce
TT
73412020-03-13 Tom Tromey <tom@tromey.com>
7342
7343 * valprint.c (value_print_array_elements): New function.
7344 * valprint.h (value_print_array_elements): Declare.
7345
4dba70ee
TT
73462020-03-13 Tom Tromey <tom@tromey.com>
7347
7348 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7349 * mips-tdep.c (mips_print_register): Use
7350 value_print_scalar_formatted.
7351
4f9ae810
TT
73522020-03-13 Tom Tromey <tom@tromey.com>
7353
7354 * valprint.h (value_print_scalar_formatted): Declare.
7355 * valprint.c (value_print_scalar_formatted): New function.
7356
156bfec9
TT
73572020-03-13 Tom Tromey <tom@tromey.com>
7358
7359 * valprint.h (generic_value_print): Declare.
7360 * valprint.c (generic_value_print): New function.
7361
2b4e573d
TT
73622020-03-13 Tom Tromey <tom@tromey.com>
7363
7364 * valprint.c (do_val_print): Call la_value_print_inner, if
7365 available.
7366 * rust-lang.c (rust_language_defn): Update.
7367 * p-lang.c (pascal_language_defn): Update.
7368 * opencl-lang.c (opencl_language_defn): Update.
7369 * objc-lang.c (objc_language_defn): Update.
7370 * m2-lang.c (m2_language_defn): Update.
7371 * language.h (struct language_defn) <la_value_print_inner>: New
7372 member.
7373 * language.c (unknown_language_defn, auto_language_defn): Update.
7374 * go-lang.c (go_language_defn): Update.
7375 * f-lang.c (f_language_defn): Update.
7376 * d-lang.c (d_language_defn): Update.
7377 * c-lang.c (c_language_defn, cplus_language_defn)
7378 (asm_language_defn, minimal_language_defn): Update.
7379 * ada-lang.c (ada_language_defn): Update.
7380
a1f6a07c
TT
73812020-03-13 Tom Tromey <tom@tromey.com>
7382
7383 * c-valprint.c (c_value_print): Use common_val_print.
7384
410cf315
TT
73852020-03-13 Tom Tromey <tom@tromey.com>
7386
7387 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7388
72a45c93
TT
73892020-03-13 Tom Tromey <tom@tromey.com>
7390
7391 * f-valprint.c (f77_print_array_1, f_val_print): Use
7392 common_val_print.
7393
040f66bd
TT
73942020-03-13 Tom Tromey <tom@tromey.com>
7395
7396 * riscv-tdep.c (riscv_print_one_register_info): Use
7397 common_val_print.
7398
a6e05a6c
TT
73992020-03-13 Tom Tromey <tom@tromey.com>
7400
7401 * mi/mi-main.c (output_register): Use common_val_print.
7402
3444c526
TT
74032020-03-13 Tom Tromey <tom@tromey.com>
7404
7405 * infcmd.c (default_print_one_register_info): Use
7406 common_val_print.
7407
c2a44efe
TT
74082020-03-13 Tom Tromey <tom@tromey.com>
7409
7410 * valprint.h (common_val_print_checked): Declare.
7411 * valprint.c (common_val_print_checked): New function.
7412 * stack.c (print_frame_arg): Use common_val_print_checked.
7413
b0c26e99
TT
74142020-03-13 Tom Tromey <tom@tromey.com>
7415
7416 * valprint.c (do_val_print): New function, from val_print.
7417 (val_print): Use do_val_print.
7418 (common_val_print): Use do_val_print.
7419
ce3acbe9
TT
74202020-03-13 Tom Tromey <tom@tromey.com>
7421
7422 * valprint.c (value_print): Use scoped_value_mark.
7423
96c7f873
TV
74242020-03-13 Tom de Vries <tdevries@suse.de>
7425
7426 PR symtab/25646
7427 * psymtab.c (partial_symtab::partial_symtab): Don't set
7428 globals_offset and statics_offset. Push element onto
7429 current_global_psymbols and current_static_psymbols stacks.
7430 (concat): New function.
7431 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7432 element from current_global_psymbols and current_static_psymbols
7433 stacks. Concat popped elements to global_psymbols and
7434 static_symbols.
7435 (add_psymbol_to_list): Use current_global_psymbols and
7436 current_static_psymbols stacks.
7437 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7438 current_static_psymbols fields.
7439
6ba0a321
CB
74402020-03-12 Christian Biesinger <cbiesinger@google.com>
7441
7442 * corelow.c (sniff_core_bfd): Remove.
7443 (class core_target) <m_core_vec>: Remove.
7444 (core_target::core_target): Update.
7445 (core_file_fns): Remove.
7446 (deprecated_add_core_fns): Remove.
7447 (default_core_sniffer): Remove.
7448 (sniff_core_bfd): Remove.
7449 (default_check_format): Remove.
7450 (gdb_check_format): Remove.
7451 (core_target_open): Update.
7452 (core_target::get_core_register_section): Update.
7453 (get_core_registers_cb): Update.
7454 (core_target::fetch_registers): Update.
7455 * gdbcore.h (struct core_fns): Remove.
7456 (deprecated_add_core_fns): Remove.
7457 (default_core_sniffer): Remove.
7458 (default_check_format): Remove.
7459
227031b2
TT
74602020-03-12 Tom Tromey <tom@tromey.com>
7461
7462 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7463 CORE_ADDR.
7464 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7465
53807e9f
TT
74662020-03-12 Tom Tromey <tom@tromey.com>
7467
7468 * remote.c (remote_target::download_tracepoint)
7469 (remote_target::enable_tracepoint)
7470 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7471 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7472 sprintf_vma.
7473
64f25102
TT
74742020-03-12 Tom Tromey <tom@tromey.com>
7475
7476 * symfile-mem.c: Update CORE_ADDR size assert.
7477
272cd5a3
SM
74782020-03-12 Simon Marchi <simon.marchi@efficios.com>
7479
7480 * selftest.m4: Move to gdbsupport/.
7481 * acinclude.m4: Update path to selftest.m4.
7482
74cd3f9d
SM
74832020-03-12 Simon Marchi <simon.marchi@efficios.com>
7484
7485 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7486 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7487 gdbarch-selfselftests.c and selftest-arch.c.
7488 (SUBDIR_UNITTESTS_OBS): Rename to...
7489 (SELFTESTS_OBS): ... this.
7490 (COMMON_SFILES): Remove disasm-selftests.c and
7491 gdbarch-selftests.c.
7492 * configure.ac: Don't add selftest-arch.{c,o} to
7493 CONFIG_{SRCS,OBS}.
7494 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7495 preprocessor conditions.
7496
db6878ac
SM
74972020-03-12 Simon Marchi <simon.marchi@efficios.com>
7498
7499 * configure.ac: Don't source bfd/development.sh.
7500 * selftest.m4: Modify comment.
7501 * configure: Re-generate.
7502
4d696a5c
SM
75032020-03-12 Simon Marchi <simon.marchi@efficios.com>
7504
7505 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7506 not "true" or "false".
7507 * configure: Re-generate.
7508
8dd8e1c7
CB
75092020-03-12 Christian Biesinger <cbiesinger@google.com>
7510
7511 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7512 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7513 renamed to arm_nbsd_supply_gregset.
7514 (fetch_register): Update to call arm_nbsd_supply_gregset.
7515 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7516 (arm_netbsd_nat_target::fetch_registers): Update.
7517 (fetch_elfcore_registers): Removed.
7518 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7519 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7520 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7521 not require NetBSD system headers.
7522 (arm_nbsd_regset): New struct.
7523 (arm_nbsd_iterate_over_regset_sections): New function.
7524 (arm_netbsd_init_abi_common): Updated to call
7525 set_gdbarch_iterate_over_regset_sections.
7526 * arm-nbsd-tdep.h: New file.
7527
dd69bf7a
KB
75282020-03-11 Kevin Buettner <kevinb@redhat.com>
7529
7530 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7531 recursion.
7532
a0761e34
SM
75332020-03-11 Simon Marchi <simon.marchi@efficios.com>
7534
7535 * configure: Re-generate.
7536
e7a82140
TT
75372020-03-11 Tom Tromey <tromey@adacore.com>
7538
7539 * ada-typeprint.c (print_choices): Fix comment.
7540
dcc050c8
AB
75412020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7542
7543 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7544 previous item in the list, when the list has no items.
7545
1c33af77
TV
75462020-03-11 Tom de Vries <tdevries@suse.de>
7547
7548 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7549 PROP_LOCLIST handling code.
7550
8c95582d
AB
75512020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7552
7553 * buildsym-legacy.c (record_line): Pass extra parameter to
7554 record_line.
7555 * buildsym.c (buildsym_compunit::record_line): Take an extra
7556 parameter, reduce duplication in the line table, and record the
7557 is_stmt flag in the line table.
7558 * buildsym.h (buildsym_compunit::record_line): Add extra
7559 parameter.
7560 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7561 non-statement lines.
7562 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7563 this to the symtab builder.
7564 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7565 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7566 through to dwarf_record_line_1.
7567 * infrun.c (process_event_stop_test): When stepping, don't stop at
7568 a non-statement instruction, and only refresh the step info when
7569 we land in the middle of a line's range. Also add an extra
7570 comment.
7571 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7572 field.
7573 * record-btrace.c (btrace_find_line_range): Only record lines
7574 marked as is-statement.
7575 * stack.c (frame_show_address): Show the frame address if we are
7576 in a non-statement sal.
7577 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7578 (maintenance_print_one_line_table): Print a header for the is_stmt
7579 column, and include is_stmt information in the output.
7580 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7581 preference to non-statements.
7582 (find_pcs_for_symtab_line): Prefer is-statement entries.
7583 (find_line_common): Likewise.
7584 * symtab.h (struct linetable_entry): Add is_stmt field.
7585 (struct symtab_and_line): Likewise.
7586 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7587 arranging the line table.
7588
e4003a34
TV
75892020-03-07 Tom de Vries <tdevries@suse.de>
7590
7591 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7592 DIE.
7593
e8932576
TT
75942020-03-07 Tom Tromey <tom@tromey.com>
7595
7596 * valops.c (value_literal_complex): Remove obsolete comment.
7597 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7598 comment.
7599
29734269
SM
76002020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7601
7602 * infrun.h: Forward-declare thread_info.
7603 (set_step_info): Add thread_info parameter, add doc.
7604 * infrun.c (set_step_info): Add thread_info parameter, move doc
7605 to header.
7606 * infrun.c (process_event_stop_test): Pass thread to
7607 set_step_info call.
7608 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7609 set_step_info.
7610 (prepare_one_step): Add thread_info parameter, pass it to
7611 set_step_frame and prepare_one_step (recursive) call.
7612 (step_1): Pass thread to prepare_one_step call.
7613 (step_command_fsm::should_stop): Pass thread to
7614 prepare_one_step.
7615 (until_next_fsm): Pass thread to set_step_frame call.
7616 (finish_command): Pass thread to set_step_info call.
7617
b7d64b29
HD
76182020-03-06 Hannes Domani <ssbssa@yahoo.de>
7619
7620 * windows-tdep.c (windows_solib_create_inferior_hook):
7621 Check if inferior is running.
7622
09f2921c
TV
76232020-03-06 Tom de Vries <tdevries@suse.de>
7624
7625 * NEWS: Fix "the the".
7626 * ctfread.c: Same.
7627
fd760e79
TV
76282020-03-06 Tom de Vries <tdevries@suse.de>
7629
7630 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7631
20ea4a60
AB
76322020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7633
7634 * .dir-locals.el: Add a comment referencing the other copies of
7635 this file.
7636
0afbabf0
JB
76372020-03-05 John Baldwin <jhb@FreeBSD.org>
7638
7639 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7640 psargs.
7641
842806cb
TBA
76422020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7643
7644 * .gitattributes: New file.
7645
be1e3d3e
TT
76462020-03-04 Tom Tromey <tom@tromey.com>
7647
7648 * symmisc.c (print_symbol_bcache_statistics)
7649 (print_objfile_statistics): Update.
7650 * symfile.c (allocate_symtab): Use intern.
7651 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7652 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7653 macro_cache>: Remove.
7654 <string_cache>: New member.
7655 (struct objfile) <intern>: New methods.
7656 * elfread.c (elf_symtab_read): Use intern.
7657 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7658 (dwarf2_compute_name, dwarf2_physname)
7659 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7660 names.
7661 (guess_partial_die_structure_name): Update.
7662 (partial_die_info::fixup): Intern name.
7663 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7664 name.
7665 (dwarf2_name): Intern name. Update.
7666 * buildsym.c (buildsym_compunit::get_macro_table): Use
7667 string_cache.
7668
4e7625fd
TT
76692020-03-04 Tom Tromey <tom@tromey.com>
7670
7671 * jit.c (bfd_open_from_target_memory): Make "target" const.
7672 * corefile.c (gnutarget): Now const.
7673 * gdbcore.h (gnutarget): Now const.
7674
46f9f931
HD
76752020-03-04 Hannes Domani <ssbssa@yahoo.de>
7676
7677 * NEWS: Mention support for WOW64 processes.
7678 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7679 (amd64_windows_segment_register_p): Remove static.
7680 (_initialize_amd64_windows_nat): Update.
7681 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7682 * i386-windows-nat.c (context_offset): Update.
7683 (i386_mappings): Rename and remove static.
7684 (i386_windows_segment_register_p): Remove static.
7685 (_initialize_i386_windows_nat): Update.
7686 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7687 (STATUS_WX86_SINGLE_STEP): New macro.
7688 (EnumProcessModulesEx): New macro.
7689 (Wow64SuspendThread): New macro.
7690 (Wow64GetThreadContext): New macro.
7691 (Wow64SetThreadContext): New macro.
7692 (Wow64GetThreadSelectorEntry): New macro.
7693 (windows_set_context_register_offsets): Add static.
7694 (windows_set_segment_register_p): Likewise.
7695 (windows_add_thread): Adapt for WOW64 processes.
7696 (windows_fetch_one_register): Likewise.
7697 (windows_nat_target::fetch_registers): Likewise.
7698 (windows_store_one_register): Likewise.
7699 (display_selector): Likewise.
7700 (display_selectors): Likewise.
7701 (handle_exception): Likewise.
7702 (windows_continue): Likewise.
7703 (windows_nat_target::resume): Likewise.
7704 (windows_add_all_dlls): Likewise.
7705 (do_initial_windows_stuff): Likewise.
7706 (windows_nat_target::attach): Likewise.
7707 (windows_get_exec_module_filename): Likewise.
7708 (windows_nat_target::create_inferior): Likewise.
7709 (windows_xfer_siginfo): Likewise.
7710 (_initialize_loadable): Initialize Wow64SuspendThread,
7711 Wow64GetThreadContext, Wow64SetThreadContext,
7712 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7713 * windows-nat.h (windows_set_context_register_offsets):
7714 Remove declaration.
7715 (windows_set_segment_register_p): Likewise.
7716 (i386_windows_segment_register_p): Add declaration.
7717 (amd64_windows_segment_register_p): Likewise.
7718
440cf44e
LM
77192020-03-04 Luis Machado <luis.machado@linaro.org>
7720
7721 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7722 in "info registers" for AArch64/ARM.
7723
7724 The change caused "info registers" to not print GPR's.
7725
7726 gdb/ChangeLog:
7727
7728 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7729
7730 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7731 when reg->group is empty and reggroup is not.
7732
1009d92f
TT
77332020-03-03 Tom Tromey <tromey@adacore.com>
7734
7735 * dwarf2/frame.c (struct dwarf2_frame_cache)
7736 <checked_tailcall_bottom, entry_cfa_sp_offset,
7737 entry_cfa_sp_offset_p>: Remove members.
7738 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7739 (dwarf2_frame_prev_register): Don't call
7740 dwarf2_tailcall_sniffer_first.
7741 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7742 * frame-unwind.c (add_unwinder): New fuction.
7743 (frame_unwind_init): Use it. Add tailcall unwinder.
7744
5e5d66b6
AB
77452020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7746 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7747
7748 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7749 value should be printed as true.
7750
584cf46d
HD
77512020-03-03 Hannes Domani <ssbssa@yahoo.de>
7752
7753 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7754 (windows_init_abi): Set and use windows_so_ops.
7755
7b973adc
SDJ
77562020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7757
7758 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7759 when verifying if dealing with a convenience variable.
7760
bb7b70ab
LM
77612020-03-03 Luis Machado <luis.machado@linaro.org>
7762
7763 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7764
9822cb57
SM
77652020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7766
7767 * infrun.c (gdbarch_supports_displaced_stepping): New.
7768 (use_displaced_stepping): Break up conditions in smaller pieces.
7769 Use gdbarch_supports_displaced_stepping.
7770 (displaced_step_prepare_throw): Use
7771 gdbarch_supports_displaced_stepping.
7772
63e163f2
AB
77732020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7774
7775 * NEWS: Mention new behaviour of the history filename.
7776 * top.c (write_history_p): Add comment.
7777 (show_write_history_p): Add header comment, give a different
7778 message when history writing is on, but the history filename is
7779 empty.
7780 (history_filename): Add comment.
7781 (history_filename_empty): New function.
7782 (show_history_filename): Add header comment, give a different
7783 message when the filename is empty.
7784 (init_history): Compare history_filename against nullptr, and only
7785 read history if the filename is not empty.
7786 (set_history_filename): Add header comment, and only make
7787 non-empty filenames absolute.
7788 (init_main): Make the filename argument to 'set history filename'
7789 optional.
7790
81b86b97
CB
77912020-03-02 Christian Biesinger <cbiesinger@google.com>
7792
7793 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7794 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7795 (fetch_fp_register): Update.
7796 (fetch_fp_regs): Update.
7797 (store_fp_register): Update.
7798 (store_fp_regs): Update.
7799 (arm_netbsd_nat_target::read_description): New function.
7800 (fetch_elfcore_registers): Update.
7801
24ed6739
AB
78022020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7803
7804 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7805 general_thread if the stop reply is missing a thread-id.
7806 (remote_target::process_stop_reply): Use the first non-exited
7807 thread if the target didn't pass a thread-id.
7808 * infrun.c (do_target_wait): Move call to
7809 switch_to_inferior_no_thread to ....
7810 (do_target_wait_1): ... here.
7811
a84bb2a0
JT
78122020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7813
7814 * debuginfod-support.c: Include defs.h first.
7815
658dadf0
TV
78162020-02-28 Tom de Vries <tdevries@suse.de>
7817
7818 * symfile.c (set_initial_language): Use default language for lookup.
7819
4ebe4877
SM
78202020-02-28 Simon Marchi <simon.marchi@efficios.com>
7821
7822 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7823 reader variable, pass `this` to read_cutu_die_from_dwo.
7824
e5da1139
AM
78252020-02-27 Aaron Merey <amerey@redhat.com>
7826
7827 * source.c (open_source_file): Check for nullptr when computing
7828 srcpath.
7829
317f7127
TT
78302020-02-27 Tom Tromey <tromey@adacore.com>
7831
7832 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7833 member.
7834 (dwarf2_add_field): Don't update nfields.
7835 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7836
3104d9ee
AB
78372020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7840 abs.
7841
b83470bf
TT
78422020-02-26 Tom Tromey <tom@tromey.com>
7843
7844 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7845 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7846 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7847 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7848 per_cu_data.
7849
edfe0a0c
TT
78502020-02-26 Tom Tromey <tom@tromey.com>
7851
7852 * dwarf2/index-write.c (psym_index_map): Change type.
7853 (add_address_entry_worker, write_one_signatured_type)
7854 (recursively_count_psymbols, recursively_write_psymbols)
7855 (class debug_names, psyms_seen_size, write_gdbindex)
7856 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7857
0d79cdc4
AM
78582020-02-26 Aaron Merey <amerey@redhat.com>
7859
7860 * Makefile.in: Handle optional debuginfod support.
7861 * NEWS: Update.
7862 * README: Add --with-debuginfod summary.
7863 * config.in: Regenerate.
7864 * configure: Regenerate.
7865 * configure.ac: Handle optional debuginfod support.
7866 * debuginfod-support.c: debuginfod helper functions.
7867 * debuginfod-support.h: Ditto.
7868 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7869 summary.
7870 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7871 when a dwz file cannot be found.
7872 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7873 debuginfo file cannot be found.
7874 * source.c (open_source_file): Query debuginfod servers when a
7875 source file cannot be found.
7876 * top.c (print_gdb_configuration): Include
7877 --{with,without}-debuginfod in the output.
7878
b65ce565
JG
78792020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7880
7881 * thread.c (thr_try_catch_cmd): Print thread name.
7882
d4c9a4f8
SM
78832020-02-26 Simon Marchi <simon.marchi@efficios.com>
7884
7885 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7886 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7887 dwarf2_fetch_die_type_sect_off): Move to...
7888 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7889 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7890 dwarf2_fetch_die_type_sect_off): ... here.
7891 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7892 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7893 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7894
0dce4280
TV
78952020-02-26 Tom de Vries <tdevries@suse.de>
7896
7897 PR gdb/25603
7898 * symfile.c (set_initial_language): Exit-early if
7899 language_mode == language_mode_manual.
7900
450a1bfc
SM
79012020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7902
7903 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7904 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7905 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7906
9e80cfa1
AB
79072020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7908
7909 * gdbtypes.c (create_array_type_with_stride): Handle negative
7910 array strides.
7911 * valarith.c (value_subscripted_rvalue): Likewise.
7912
09624f1f
LM
79132020-02-25 Luis Machado <luis.machado@linaro.org>
7914
7915 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7916
8cb5117c
SM
79172020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7918
7919 * loc.h (dwarf2_get_die_type): Move to...
7920 * read.h (dwarf2_get_die_type): ... here.
7921 * read.c (dwarf2_get_die_type): Move doc to header.
7922
c325c44e
JB
79232020-02-25 Joel Brobecker <brobecker@adacore.com>
7924
7925 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7926 'gnulib/Makefile.in' to the list.
7927
4ac93832
TT
79282020-02-24 Tom Tromey <tom@tromey.com>
7929
7930 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7931 Remove.
7932 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7933 XOBNEWVEC.
7934
197400e8
TT
79352020-02-24 Tom Tromey <tom@tromey.com>
7936
7937 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7938 New method.
7939 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7940 (dw2_do_instantiate_symtab, dw2_get_file_names)
7941 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7942
76935768
TT
79432020-02-24 Tom Tromey <tom@tromey.com>
7944
7945 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7946 make_scoped_restore.
7947 (dwarf2_psymtab::read_symtab): Don't clear
7948 reading_partial_symbols.
7949
a88ef40d
TV
79502020-02-24 Tom de Vries <tdevries@suse.de>
7951
7952 PR gdb/25592
7953 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7954
c9af6521
TV
79552020-02-24 Tom de Vries <tdevries@suse.de>
7956
7957 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7958 commands layout next/prev/regs.
7959
5707a07a
TT
79602020-02-22 Tom Tromey <tom@tromey.com>
7961
7962 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7963 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7964
3b0fb49e
TT
79652020-02-22 Tom Tromey <tom@tromey.com>
7966
7967 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7968
283be8bf
TT
79692020-02-22 Tom Tromey <tom@tromey.com>
7970
7971 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7972 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7973 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7974 * tui/tui.c (_initialize_tui): Add usage text.
7975
ca793b96
TT
79762020-02-22 Tom Tromey <tom@tromey.com>
7977
7978 * tui/tui-win.c (tui_set_focus_command)
7979 (tui_set_win_height_command): Use error_no_arg.
7980 (_initialize_tui_win): Update help text.
7981 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7982
432b5c40
TT
79832020-02-22 Tom Tromey <tom@tromey.com>
7984
7985 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7986 * tui/tui-disasm.h (struct tui_disasm_window)
7987 <display_start_addr>: Declare.
7988 * tui/tui-source.h (struct tui_source_window)
7989 <display_start_addr>: Declare.
7990 * tui/tui-winsource.h (struct tui_source_window_base)
7991 <show_source_line, display_start_addr>: New methods.
7992 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7993 Rename and move to protected section.
7994 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7995 (tui_source_window_base::do_erase_source_content): Update.
7996 (tui_source_window_base::show_source_line): Now a method.
7997 (tui_source_window_base::show_source_content)
7998 (tui_source_window_base::tui_source_window_base)
7999 (tui_source_window_base::rerender)
8000 (tui_source_window_base::refill)
8001 (tui_source_window_base::do_scroll_horizontal)
8002 (tui_source_window_base::set_is_exec_point_at)
8003 (tui_source_window_base::update_breakpoint_info)
8004 (tui_source_window_base::update_exec_info): Update.
8005 * tui/tui-source.c (tui_source_window::set_contents)
8006 (tui_source_window::showing_source_p)
8007 (tui_source_window::do_scroll_vertical)
8008 (tui_source_window::location_matches_p)
8009 (tui_source_window::line_is_displayed): Update.
8010 (tui_source_window::display_start_addr): New method.
8011 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8012 (tui_disasm_window::do_scroll_vertical)
8013 (tui_disasm_window::location_matches_p): Update.
8014 (tui_disasm_window::display_start_addr): New method.
8015
01b1af32
TT
80162020-02-22 Tom Tromey <tom@tromey.com>
8017
8018 * NEWS: Add entry for gdb.register_window_type.
8019 * tui/tui-layout.h (window_factory): New typedef.
8020 (tui_register_window): Declare.
8021 * tui/tui-layout.c (saved_tui_windows): New global.
8022 (tui_apply_current_layout): Use it.
8023 (tui_register_window): New function.
8024 * python/python.c (do_start_initialization): Call
8025 gdbpy_initialize_tui.
8026 (python_GdbMethods): Add "register_window_type" function.
8027 * python/python-internal.h (gdbpy_register_tui_window)
8028 (gdbpy_initialize_tui): Declare.
8029 * python/py-tui.c: New file.
8030 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8031
fc96d20b
TT
80322020-02-22 Tom Tromey <tom@tromey.com>
8033
8034 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8035
935c78c0
TT
80362020-02-22 Tom Tromey <tom@tromey.com>
8037
8038 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8039 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8040 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8041 (tui_set_win_focus_to): Move from tui-win.c.
8042
0240c8f1
TT
80432020-02-22 Tom Tromey <tom@tromey.com>
8044
8045 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8046 functions.
8047 (known_window_types): New global.
8048 (tui_get_window_by_name): Reimplement.
8049 (initialize_known_windows): New function.
8050 (validate_window_name): Rewrite.
8051 (_initialize_tui_layout): Call initialize_known_windows.
8052
fdb01f0c
TT
80532020-02-22 Tom Tromey <tom@tromey.com>
8054
8055 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8056 Remove constants.
8057 * tui/tui-winsource.h (struct tui_source_window_base)
8058 <tui_source_window_base>: Remove parameter.
8059 * tui/tui-winsource.c
8060 (tui_source_window_base::tui_source_window_base): Remove
8061 parameter.
8062 (tui_source_window_base::refill): Update.
8063 * tui/tui-stack.h (struct tui_locator_window)
8064 <tui_locator_window>: Update.
8065 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8066 Default the constructor.
8067 * tui/tui-regs.h (struct tui_data_item_window)
8068 <tui_data_item_window>: Default the constructor.
8069 (struct tui_data_window) <tui_data_window>: Likewise.
8070 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8071 Default the constructor.
8072 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8073 Default the constructor.
8074 <type>: Remove.
8075 (struct tui_win_info) <tui_win_info>: Default the constructor.
8076 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8077 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8078 Default the constructor.
8079
865a5aec
TT
80802020-02-22 Tom Tromey <tom@tromey.com>
8081
8082 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8083 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8084 * tui/tui-win.c (tui_resize_all): Don't call
8085 tui_delete_invisible_windows.
8086 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8087 done.
8088 (tui_set_layout): Update.
8089 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8090 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8091 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8092
e098d18c
TT
80932020-02-22 Tom Tromey <tom@tromey.com>
8094
8095 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8096 correctly.
8097
eb9c8874
TT
80982020-02-22 Tom Tromey <tom@tromey.com>
8099
8100 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8101
7eed1a8e
TT
81022020-02-22 Tom Tromey <tom@tromey.com>
8103
8104 * tui/tui-winsource.h (struct tui_source_window_iterator)
8105 <inner_iterator>: New etytypedef.
8106 <tui_source_window_iterator>: Take "end" parameter.
8107 <tui_source_window_iterator>: Take iterator.
8108 <operator*, advance>: Update.
8109 <m_iter>: Change type.
8110 <m_end>: New field.
8111 (struct tui_source_windows) <begin, end>: Update.
8112 * tui/tui-layout.c (tui_windows): New global.
8113 (tui_apply_current_layout): Clear tui_windows.
8114 (tui_layout_window::apply): Update tui_windows.
8115 * tui/tui-data.h (tui_windows): Declare.
8116 (all_tui_windows): Now inline function.
8117 (class tui_window_iterator, struct all_tui_windows): Remove.
8118
7c043ba6
TT
81192020-02-22 Tom Tromey <tom@tromey.com>
8120
8121 PR tui/17850:
8122 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8123 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8124 "height" argument.
8125 (class tui_layout_window) <get_sizes>: Likewise.
8126 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8127 argument.
8128 <get_sizes>: Add "height" argument.
8129 <m_vertical>: New field.
8130 * tui/tui-layout.c (tui_layout_split::clone): Update.
8131 (tui_layout_split::get_sizes): Add "height" argument.
8132 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8133 (tui_new_layout_command): Parse "-horizontal".
8134 (_initialize_tui_layout): Update help string.
8135 (tui_layout_split::specification): Add "-horizontal" when needed.
8136 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8137 argument.
8138 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8139 New methods.
8140
6bc56648
TT
81412020-02-22 Tom Tromey <tom@tromey.com>
8142
8143 * tui/tui-layout.h (enum tui_adjust_result): New.
8144 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8145 (class tui_layout_window) <adjust_size>: Return
8146 tui_adjust_result. Rewrite.
8147 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8148 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8149
c22fef7e
TT
81502020-02-22 Tom Tromey <tom@tromey.com>
8151
8152 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8153 parameter and return types.
8154 (class tui_layout_base) <specification>: Add "depth".
8155 (class tui_layout_window) <specification>: Add "depth".
8156 (class tui_layout_split) <specification>: Add "depth".
8157 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8158 and return types.
8159 (tui_new_layout_command): Parse sub-layouts.
8160 (_initialize_tui_layout): Update help string.
8161 (tui_layout_window::specification): Add "depth".
8162 (add_layout_command): Update.
8163
ee325b61
TT
81642020-02-22 Tom Tromey <tom@tromey.com>
8165
8166 * NEWS: Add "tui new-layout" item.
8167 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8168 Add new-layout command to help text.
8169 (validate_window_name): New function.
8170 (tui_new_layout_command): New function.
8171 (_initialize_tui_layout): Register "new-layout".
8172 (tui_layout_window::specification): New method.
8173 (tui_layout_window::specification): New method.
8174 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8175 method.
8176 (class tui_layout_window) <specification>: New method.
8177 (class tui_layout_split) <specification>: New method.
8178
416eb92d
TT
81792020-02-22 Tom Tromey <tom@tromey.com>
8180
8181 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8182 * tui/tui-win.c (window_name_completer): Update comment.
8183 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8184 Declare method.
8185 (class tui_layout_window) <replace_window>: Likewise.
8186 (class tui_layout_split) <replace_window>: Likewise.
8187 (tui_set_layout): Don't declare.
8188 (tui_set_initial_layout): Declare function.
8189 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8190 (asm_regs_layout): New globals.
8191 (tui_current_layout, show_layout): Remove.
8192 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8193 (find_layout, tui_apply_layout): New function.
8194 (layout_completer): Remove.
8195 (tui_next_layout): Reimplement.
8196 (tui_next_layout_command): New function.
8197 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8198 (tui_regs_layout): Reimplement.
8199 (tui_regs_layout_command): New function.
8200 (extract_display_start_addr): Rewrite.
8201 (next_layout, prev_layout): Remove.
8202 (tui_layout_window::replace_window): New method.
8203 (tui_layout_split::replace_window): New method.
8204 (destroy_layout): New function.
8205 (layout_list): New global.
8206 (add_layout_command): New function.
8207 (initialize_layouts): Update.
8208 (tui_layout_command): New function.
8209 (_initialize_tui_layout): Install "layout" commands.
8210 * tui/tui-data.h (enum tui_layout_type): Remove.
8211 (tui_current_layout): Don't declare.
8212
0dbc2fc7
TT
82132020-02-22 Tom Tromey <tom@tromey.com>
8214
8215 * tui/tui-regs.c (tui_reg_layout): Remove.
8216 (tui_reg_command): Use tui_regs_layout.
8217 * tui/tui-layout.h (tui_reg_command): Declare.
8218 * tui/tui-layout.c (tui_reg_command): New function.
8219
5afe342e
TT
82202020-02-22 Tom Tromey <tom@tromey.com>
8221
8222 * tui/tui.c (tui_rl_delete_other_windows): Call
8223 tui_remove_some_windows.
8224 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8225 Declare method.
8226 (class tui_layout_window) <remove_windows>: New method.
8227 (class tui_layout_split) <remove_windows>: Declare.
8228 (tui_remove_some_windows): Declare.
8229 * tui/tui-layout.c (tui_remove_some_windows): New function.
8230 (tui_layout_split::remove_windows): New method.
8231
427326a8
TT
82322020-02-22 Tom Tromey <tom@tromey.com>
8233
8234 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8235 * tui/tui-layout.h (tui_next_layout): Declare.
8236 * tui/tui-layout.c (tui_next_layout): New function.
8237
3fe12b6d
TT
82382020-02-22 Tom Tromey <tom@tromey.com>
8239
8240 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8241 correct coordinates.
8242
59b8b5d2
TT
82432020-02-22 Tom Tromey <tom@tromey.com>
8244
8245 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8246 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8247 DATA_WIN case.
8248
2a3d458b
TT
82492020-02-22 Tom Tromey <tom@tromey.com>
8250
8251 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8252 TUI_DISASM_WIN, not tui_win_list.
8253
3f0cbb04
TT
82542020-02-22 Tom Tromey <tom@tromey.com>
8255
8256 * valprint.c (generic_val_print_enum_1)
8257 (val_print_type_code_flags): Style member names.
8258 * rust-lang.c (val_print_struct, rust_print_enum)
8259 (rust_print_struct_def, rust_internal_print_type): Style member
8260 names.
8261 * p-valprint.c (pascal_object_print_value_fields): Style member
8262 names. Only call fprintf_symbol_filtered for static members.
8263 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8264 * f-valprint.c (f_val_print): Style member names.
8265 * f-typeprint.c (f_type_print_base): Style member names.
8266 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8267 call fprintf_symbol_filtered for static members.
8268 (cp_print_class_member): Style member names.
8269 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8270 member names.
8271 * ada-valprint.c (ada_print_scalar): Style enum names.
8272 (ada_val_print_enum): Likewise.
8273 * ada-typeprint.c (print_enum_type): Style enum names.
8274
d4d947ae
TT
82752020-02-21 Tom Tromey <tom@tromey.com>
8276
8277 * psympriv.h (struct partial_symtab): Update comment.
8278
e94e944b
TT
82792020-02-21 Tom Tromey <tromey@adacore.com>
8280
8281 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8282 type is CORE_ADDR.
8283
1eb73179
TV
82842020-02-21 Tom de Vries <tdevries@suse.de>
8285
8286 PR gdb/25534
8287 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8288 if dependencies[i]->user != NULL.
8289
4f180d53
AT
82902020-02-21 Ali Tamur <tamur@google.com>
8291
8292 * dwarf2/read.c (dwarf2_name): Add null check.
8293
22b6cd70
TT
82942020-02-20 Tom Tromey <tom@tromey.com>
8295
8296 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8297 ">=", in binary search.
8298 (dwarf2_find_containing_comp_unit): New overload.
8299 (run_test): New self-test.
8300 (_initialize_dwarf2_read): Register new test.
8301
bd0cf5a6
NC
83022020-02-20 Nelson Chu <nelson.chu@sifive.com>
8303
8304 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8305 * riscv-tdep.h: Likewise.
8306 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8307 rv32-only CSR.
8308 * features/riscv/64bit-csr.xml: Regenerated.
8309
3f702acd
SDJ
83102020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8311 Tom Tromey <tom@tromey.com>
8312
8313 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8314 of 'fputc_unfiltered'.
8315 (putchar_unfiltered): Call 'fputc_unfiltered'.
8316 (fputc_unfiltered): Call 'fputs_unfiltered'.
8317
d13c7322
AB
83182020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8319
8320 * config.in: Regenerate.
8321 * configure: Regenerate.
8322 * configure.ac: Add --with-python-libdir option.
8323 * main.c: Use WITH_PYTHON_LIBDIR.
8324
869d8950
TT
83252020-02-19 Tom Tromey <tom@tromey.com>
8326
8327 * symtab.c (general_symbol_info::compute_and_set_names): Use
8328 obstack_strndup. Simplify call to symbol_set_demangled_name.
8329
298e9637
SM
83302020-02-19 Simon Marchi <simon.marchi@efficios.com>
8331
8332 * dwarf2/read.c (allocate_signatured_type_table,
8333 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8334 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8335 Remove objfile parameter, update all callers.
8336
08410482
DE
83372020-02-19 Doug Evans <dje@google.com>
8338
8339 PR rust/25535
8340 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8341 rust_enum_variant calculation.
8342
dfdeeca1
TT
83432020-02-19 Tom Tromey <tromey@adacore.com>
8344
8345 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8346
2ef5453b
TT
83472020-02-19 Tom Tromey <tromey@adacore.com>
8348
8349 * ada-lang.c (cache_symbol): Use obstack_strdup.
8350
9f1528a1
AB
83512020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8352
8353 * configure: Regenerate.
8354
d3c22fa8
TT
83552020-02-19 Tom Tromey <tromey@adacore.com>
8356
8357 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8358 NULL check.
8359
bf84f706
MR
83602020-02-19 Maciej W. Rozycki <macro@wdc.com>
8361
8362 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8363
d1c9b20f
AB
83642020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8365
8366 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8367 if GDBSERVER is not defined.
8368 (riscv_tdesc_cache): Likewise, also store const target_desc.
8369 (STATIC_IN_GDB): Define.
8370 (riscv_create_target_description): Update declaration with
8371 STATIC_IN_GDB.
8372 (riscv_lookup_target_description): New function, only define if
8373 GDBSERVER is not defined.
8374 * arch/riscv.h (riscv_create_target_description): Declare only
8375 when GDBSERVER is defined.
8376 (riscv_lookup_target_description): New declaration when GDBSERVER
8377 is not defined.
8378 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8379 (riscv_linux_read_features): ...this, and return
8380 riscv_gdbarch_features instead of target_desc.
8381 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8382 (riscv_linux_read_description): Rename to...
8383 (riscv_linux_read_features): ...this.
8384 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8385 Update to use riscv_gdbarch_features and
8386 riscv_lookup_target_description.
8387 * riscv-tdep.c (riscv_find_default_target_description): Use
8388 riscv_lookup_target_description instead of
8389 riscv_create_target_description.
8390
373d7ac0
SM
83912020-02-18 Simon Marchi <simon.marchi@efficios.com>
8392
8393 * valprint.c (generic_val_print_enum_1): When printing a flag
8394 enum with value 0 and there is no enumerator with value 0, print
8395 just "0" instead of "(unknown: 0x0)".
8396
b29a2df0
SM
83972020-02-18 Simon Marchi <simon.marchi@efficios.com>
8398
8399 * valprint.c (generic_val_print_enum_1): Print unknown part of
8400 flag enum in hex.
8401
6740f0cc
SM
84022020-02-18 Simon Marchi <simon.marchi@efficios.com>
8403
8404 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8405 flag enums to contain duplicate enumerators.
8406 * valprint.c (generic_val_print_enum_1): Update comment.
8407
edd45eb0
SM
84082020-02-18 Simon Marchi <simon.marchi@efficios.com>
8409
8410 * dwarf2/read.c: Include "count-one-bits.h".
8411 (update_enumeration_type_from_children): If an enumerator has
8412 multiple bits set, don't treat the enumeration as a "flag enum".
8413 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8414 of flag enums have 0 or 1 bit set.
8415
6d0cf446
BE
84162020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8417
8418 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8419 conversion.
8420 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8421 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8422 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8423 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8424 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8425
7001c1b7
SM
84262020-02-18 Simon Marchi <simon.marchi@efficios.com>
8427
8428 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8429
fdb61c6c
SM
84302020-02-14 Simon Marchi <simon.marchi@efficios.com>
8431
8432 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8433 displaced_step_closure_up.
8434 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8435 (struct displaced_step_closure_up):
8436 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8437 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8438 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8439 Likewise.
8440 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8441 * gdbarch.c, gdbarch.h: Re-generate.
8442 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8443 displaced_step_closure_up.
8444 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8445 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8446 * infrun.h (displaced_step_closure_up): New type alias.
8447 (struct displaced_step_inferior_state) <step_closure>: Change
8448 type to displaced_step_closure_up.
8449 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8450 displaced_step_closure_up.
8451 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8452
a4a38eb4
TT
84532020-02-14 Tom Tromey <tom@tromey.com>
8454
8455 * minidebug.c (gnu_debug_key): New global.
8456 (find_separate_debug_file_in_section): Use it.
8457
e8217e61
SM
84582020-02-14 Simon Marchi <simon.marchi@efficios.com>
8459
8460 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8461 std::unique_ptr.
8462 * gdbarch.c: Re-generate.
8463 * gdbarch.h: Re-generate.
8464 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8465 change.
8466 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8467 type to std::unique_ptr.
8468 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8469 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8470 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8471 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8472 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8473 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8474 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8475 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8476 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8477
d8d83535
SM
84782020-02-14 Simon Marchi <simon.marchi@efficios.com>
8479
8480 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8481 std::unique_ptr.
8482 (displaced_step_clear): Rename to...
8483 (displaced_step_reset): ... this. Just call displaced->reset ().
8484 (displaced_step_clear_cleanup): Rename to...
8485 (displaced_step_reset_cleanup): ... this.
8486 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8487 (displaced_step_fixup): Likewise.
8488 (resume_1): Likewise.
8489 (handle_inferior_event): Restore child's memory before calling
8490 displaced_step_fixup on the parent.
8491 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8492 to std::unique_ptr.
8493 <step_closure>: Change type to std::unique_ptr.
8494
5f661e03
SM
84952020-02-14 Simon Marchi <simon.marchi@efficios.com>
8496
8497 * arm-tdep.c: Include count-one-bits.h.
8498 (cleanup_block_store_pc): Use count_one_bits.
8499 (cleanup_block_load_pc): Use count_one_bits.
8500 (arm_copy_block_xfer): Use count_one_bits.
8501 (thumb2_copy_block_xfer): Use count_one_bits.
8502 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8503 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8504 (thumb_get_next_pcs_raw): Use count_one_bits.
8505 (arm_get_next_pcs_raw): Use count_one_bits_l.
8506 * arch/arm.c (bitcount): Remove.
8507 * arch/arm.h (bitcount): Remove.
8508
8084e579
TT
85092020-02-14 Tom Tromey <tromey@adacore.com>
8510
8511 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8512 Update.
8513 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8514 * dwarf2/loc.c (call_site_find_chain_1): Return
8515 unique_xmalloc_ptr.
8516 (call_site_find_chain): Likewise.
8517
258bf0ee
RB
85182020-02-14 Richard Biener <rguenther@suse.de>
8519
8520 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8521 on expression with division operators.
8522
f98a8458
AKS
85232020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8524
8525 * MAINTAINERS (Write After Approval): Adding myself.
8526
d1437c0e
TT
85272020-02-12 Tom Tromey <tom@tromey.com>
8528
8529 * event-loop.c (event_data, gdb_event, event_handler_func):
8530 Remove.
8531
3d4560f7
TT
85322020-02-12 Tom Tromey <tom@tromey.com>
8533
8534 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8535 (dwarf2_frame_objfile_data): Add comment.
8536 (find_comp_unit, set_comp_unit): New functions.
8537 (dwarf2_frame_find_fde): Use find_comp_unit.
8538 (dwarf2_build_frame_info): Use set_comp_unit.
8539
21982304
TT
85402020-02-12 Tom Tromey <tom@tromey.com>
8541
8542 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8543 (comp_unit): Don't initialize objfile.
8544 (execute_cfa_program): Add text_offset parameter.
8545 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8546 (dwarf2_frame_cache): Update.
8547 (dwarf2_build_frame_info): Don't set "objfile" member.
8548
4debb237
TT
85492020-02-12 Tom Tromey <tom@tromey.com>
8550
8551 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8552 (decode_frame_entry): Likewise.
8553 (dwarf2_build_frame_info): Update.
8554
0d404d44
TT
85552020-02-12 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8558 (decode_frame_entry_1): Use the comp_unit obstack.
8559
a7a3ae5c
TT
85602020-02-12 Tom Tromey <tom@tromey.com>
8561
8562 * dwarf2/frame.c (struct comp_unit): Add initializers and
8563 constructor.
8564 (dwarf2_frame_objfile_data): Store a comp_unit.
8565 (dwarf2_frame_find_fde): Update.
8566 (dwarf2_build_frame_info): Use "new".
8567
a9d65418
TT
85682020-02-12 Tom Tromey <tom@tromey.com>
8569
8570 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8571 (dwarf2_fde_table): Typedef for std::vector.
8572 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8573 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8574 (decode_frame_entry): Update.
8575 (dwarf2_build_frame_info): Use "new".
8576
7559c217
CB
85772020-02-12 Christian Biesinger <cbiesinger@google.com>
8578
8579 * arm-tdep.c (arm_gdbarch_init): Update.
8580 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8581 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8582 have_neon, is_m>: Change to bool.
8583
aeefc73c
CB
85842020-02-12 Christian Biesinger <cbiesinger@google.com>
8585
8586 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8587
d27b8e5f
TT
85882020-02-12 Tom Tromey <tom@tromey.com>
8589
8590 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8591
cd5900f3
HD
85922020-02-12 Hannes Domani <ssbssa@yahoo.de>
8593
8594 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8595 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8596
f056b22b
TT
85972020-02-11 Tom Tromey <tom@tromey.com>
8598
8599 * psymtab.h: Update comment.
8600
f92ff6b5
TT
86012020-02-11 Tom Tromey <tom@tromey.com>
8602
8603 * gdb_obstack.h (struct auto_obstack): Use
8604 DISABLE_COPY_AND_ASSIGN.
8605
3fd6912b
TT
86062020-02-11 Tom Tromey <tom@tromey.com>
8607
8608 * dwarf2/frame.h (struct objfile): Don't forward declare.
8609
69ed9b74
CB
86102020-02-11 Christian Biesinger <cbiesinger@google.com>
8611
8612 * cris-tdep.c (cris_supply_gregset): Change signature to match
8613 what struct regset expects.
8614 (cris_regset): New struct.
8615 (fetch_core_registers): Remove.
8616 (cris_iterate_over_regset_sections): New function.
8617 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8618 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8619
bda874f6
CB
86202020-02-11 Christian Biesinger <cbiesinger@google.com>
8621
8622 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8623 registers.
8624
754e1564
CB
86252020-02-11 Christian Biesinger <cbiesinger@google.com>
8626
8627 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8628
8ddd8e0e
SM
86292020-02-11 Simon Marchi <simon.marchi@efficios.com>
8630
8631 * configure: Re-generate.
8632
898e7f60
SM
86332020-02-11 Simon Marchi <simon.marchi@efficios.com>
8634
8635 * configure: Re-generate.
8636
58df732b
SM
86372020-02-11 Simon Marchi <simon.marchi@efficios.com>
8638
8639 * acinclude: Update warning.m4 path.
8640 * warning.m4: Move to gdbsupport.
8641
da5bd37e
TT
86422020-02-11 Tom Tromey <tromey@adacore.com>
8643
8644 * remote.c (remote_console_output): Update.
8645 * printcmd.c (printf_command): Update.
8646 * event-loop.c (gdb_wait_for_event): Update.
8647 * linux-nat.c (sigchld_handler): Update.
8648 * remote-sim.c (gdb_os_write_stdout): Update.
8649 (gdb_os_flush_stdout): Update.
8650 (gdb_os_flush_stderr): Update.
8651 (gdb_os_write_stderr): Update.
8652 * exceptions.c (print_exception): Update.
8653 * remote-fileio.c (remote_fileio_func_read): Update.
8654 (remote_fileio_func_write): Update.
8655 * tui/tui.c (tui_enable): Update.
8656 * tui/tui-interp.c (tui_interp::init): Update.
8657 * utils.c (init_page_info): Update.
8658 (putchar_unfiltered, fputc_unfiltered): Update.
8659 (gdb_flush): Update.
8660 (emit_style_escape): Update.
8661 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8662 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8663 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8664 (stderr_file::write): Update.
8665 (stderr_file::puts): Update.
8666 * ui-file.h (ui_file_isatty, ui_file_write)
8667 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8668 (ui_file_puts): Don't declare.
8669
85f0dd3c
TV
86702020-02-10 Tom de Vries <tdevries@suse.de>
8671
8672 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8673 sentinel to char *.
8674
2e927613
TV
86752020-02-09 Tom de Vries <tdevries@suse.de>
8676
8677 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8678 filename if it matches "<artificial>".
8679
6bafc845
HD
86802020-02-09 Hannes Domani <ssbssa@yahoo.de>
8681
8682 * windows-tdep.c (struct enum_value_name): New struct.
8683 (create_enum): New function.
8684 (windows_get_siginfo_type): Create and use enum types.
8685
7928d571
HD
86862020-02-09 Hannes Domani <ssbssa@yahoo.de>
8687
8688 * NEWS: Mention $_siginfo support for Windows.
8689 * windows-nat.c (handle_exception): Set siginfo_er.
8690 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8691 (windows_xfer_siginfo): New function.
8692 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8693 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8694 (init_windows_gdbarch_data): New function.
8695 (get_windows_gdbarch_data): New function.
8696 (windows_get_siginfo_type): New function.
8697 (windows_init_abi): Register windows_get_siginfo_type.
8698 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8699
6751ebae
TT
87002020-02-08 Tom Tromey <tom@tromey.com>
8701
8702 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8703 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8704 <keep>: Declare method.
8705 <m_keep>: Remove member.
8706 <~cutu_reader>: Remove.
8707 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8708 (cutu_reader::cutu_reader): Update.
8709 (cutu_reader::keep): Rename from ~cutu_reader.
8710 (process_psymtab_comp_unit, build_type_psymtabs_1)
8711 (process_skeletonless_type_unit, load_partial_comp_unit)
8712 (load_full_comp_unit, dwarf2_read_addr_index)
8713 (read_signatured_type): Update.
8714
135f5437
TT
87152020-02-08 Tom Tromey <tom@tromey.com>
8716
8717 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8718 "want_partial_unit" parameter.
8719 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8720 Inline check for DW_TAG_partial_unit.
8721 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8722
9f66ff1c
TT
87232020-02-08 Tom Tromey <tom@tromey.com>
8724
8725 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8726 read.c.
8727 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8728 read.c.
8729
c8a7a66f
TT
87302020-02-08 Tom Tromey <tom@tromey.com>
8731
8732 * dwarf2/read.c (read_address): Move to comp-unit.c.
8733 (dwarf2_rnglists_process, dwarf2_ranges_process)
8734 (read_attribute_value, dwarf_decode_lines_1)
8735 (var_decode_location, decode_locdesc): Update.
8736 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8737 read.c. Remove "cu" parameter.
8738 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8739 method.
8740
8266302d
TT
87412020-02-08 Tom Tromey <tom@tromey.com>
8742
8743 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8744 (read_indirect_line_string): Update.
8745 * dwarf2/comp-unit.c (read_offset): Remove.
8746 (read_comp_unit_head): Update.
8747 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8748 method.
8749 (read_offset): Don't declare.
8750
4057dfde
TT
87512020-02-08 Tom Tromey <tom@tromey.com>
8752
8753 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8754 * dwarf2/read.c (struct comp_unit_head): Move to
8755 dwarf2/comp-unit.h.
8756 (enum class rcuh_kind): Move to comp-unit.h.
8757 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8758 (read_comp_unit_head, error_check_comp_unit_head)
8759 (read_and_check_comp_unit_head): Move to comp-unit.c.
8760 (read_offset, dwarf_unit_type_name): Likewise.
8761 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8762 (cutu_reader::cutu_reader, read_call_site_scope)
8763 (find_partial_die, follow_die_offset): Update.
8764 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8765
24aa364d
TT
87662020-02-08 Tom Tromey <tom@tromey.com>
8767
8768 * dwarf2/read.c (read_offset_1): Move to leb.c.
8769 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8770 (dwarf_decode_macro_bytes): Update.
8771 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8772 * dwarf2/leb.h (read_offset): Declare.
8773
2c7d5afc
TT
87742020-02-08 Tom Tromey <tom@tromey.com>
8775
8776 * dwarf2/read.c (dwarf2_section_size): Remove.
8777 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8778 Update.
8779 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8780
4075cb26
TT
87812020-02-08 Tom Tromey <tom@tromey.com>
8782
8783 * dwarf2/read.c (read_initial_length): Move to leb.c.
8784 * dwarf2/leb.h (read_initial_length): Declare.
8785 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8786 handle_nonstd parameter.
8787 * dwarf2/frame.c (read_initial_length): Remove.
8788 (decode_frame_entry_1): Update.
8789
09ba997f
TT
87902020-02-08 Tom Tromey <tom@tromey.com>
8791
8792 * dwarf2/loc.c (dwarf2_find_location_expression)
8793 (dwarf_evaluate_loc_desc::get_tls_address)
8794 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8795 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8796 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8797 (dwarf2_compile_property_to_c)
8798 (dwarf2_loc_desc_get_symbol_read_needs)
8799 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8800 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8801 (loclist_describe_location, loclist_tracepoint_var_ref)
8802 (loclist_generate_c_location): Update.
8803 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8804 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8805 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8806 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8807 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8808 (dwarf2_per_cu_data::addr_size)
8809 (dwarf2_per_cu_data::ref_addr_size)
8810 (dwarf2_per_cu_data::text_offset)
8811 (dwarf2_per_cu_data::addr_type): Now methods.
8812 (per_cu_header_read_in): Make per_cu "const".
8813 (dwarf2_version): Remove.
8814 (dwarf2_per_cu_data::int_type): Now a method.
8815 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8816 (set_die_type, read_array_type, read_subrange_index_type)
8817 (read_tag_string_type, read_subrange_type): Update.
8818 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8819 offset_size, ref_addr_size, text_offset, addr_type, version,
8820 objfile, int_type, addr_sized_int_type>: Declare methods.
8821
96c738c0
TT
88222020-02-08 Tom Tromey <tom@tromey.com>
8823
8824 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8825 Move earlier.
8826
8fdd972c
TT
88272020-02-08 Tom Tromey <tom@tromey.com>
8828
8829 * dwarf2/read.h (dwarf_line_debug): Declare.
8830 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8831 * dwarf2/read.c: Move line_header code to new files.
8832 (dwarf_line_debug): No longer static.
8833 * dwarf2/line-header.c: New file.
8834 * dwarf2/line-header.h: New file.
8835
03075812
TT
88362020-02-08 Tom Tromey <tom@tromey.com>
8837
8838 * dwarf2/read.c (struct line_header) <file_full_name,
8839 file_file_name>: Return unique_xmalloc_ptr.
8840 (line_header::file_file_name): Update.
8841 (line_header::file_full_name): Update.
8842 (dw2_get_file_names_reader): Update.
8843 (macro_start_file): Update.
8844
bb822404
TT
88452020-02-08 Tom Tromey <tom@tromey.com>
8846
8847 * dwarf2/read.c (struct line_header) <file_full_name,
8848 file_file_name>: Declare methods.
8849 (dw2_get_file_names_reader): Update.
8850 (file_file_name): Now a method.
8851 (file_full_name): Likewise.
8852 (macro_start_file): Update.
8853
009b64fc
TT
88542020-02-08 Tom Tromey <tom@tromey.com>
8855
8856 * dwarf2/read.c (dwarf_always_disassemble)
8857 (show_dwarf_always_disassemble): Move to loc.c.
8858 (_initialize_dwarf2_read): Move "always-disassemble" registration
8859 to loc.c.
8860 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8861 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8862 static.
8863 (show_dwarf_always_disassemble): Move from read.c.
8864 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8865
5895093f
TT
88662020-02-08 Tom Tromey <tom@tromey.com>
8867
8868 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8869 (create_quick_file_names_table): Return htab_up.
8870 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8871 Update.
8872 * dwarf2/read.h (struct dwarf2_per_objfile)
8873 <quick_file_names_table>: Now htab_up.
8874
b3b32279
TT
88752020-02-08 Tom Tromey <tom@tromey.com>
8876
8877 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8878
1d33d811
TT
88792020-02-08 Tom Tromey <tom@tromey.com>
8880
8881 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8882 Rewrite.
8883 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8884 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8885 (abbrev_table::abbrev_table): No longer inline.
8886 (ABBREV_HASH_SIZE): Remove.
8887 (abbrev_table::m_abbrevs): Now an htab_up.
8888
86de1d91
TT
88892020-02-08 Tom Tromey <tom@tromey.com>
8890
8891 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8892 (cutu_reader): Update.
8893 (build_type_psymtabs_1): Update.
8894 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8895 (abbrev_table::alloc_abbrev): Update.
8896 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8897 (abbrev_table::read): New static method, renamed from
8898 abbrev_table_read_table.
8899 (abbrev_table::alloc_abbrev)
8900 (abbrev_table::add_abbrev): Now private.
8901 (abbrev_table::abbrev_table): Now private.
8902 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8903
0335378b
TT
89042020-02-08 Tom Tromey <tom@tromey.com>
8905
8906 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8907 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8908 htab_up.
8909
48b490f2
TT
89102020-02-08 Tom Tromey <tom@tromey.com>
8911
8912 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8913 htab_up.
8914 (lookup_dwo_unit_in_dwp): Update.
8915 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8916 on obstack.
8917
bc68fb19
TT
89182020-02-08 Tom Tromey <tom@tromey.com>
8919
8920 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8921 obstack.
8922
d15acc42
TT
89232020-02-08 Tom Tromey <tom@tromey.com>
8924
8925 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8926 line_header_hash.
8927 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8928 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8929 Change type to htab_up.
8930
eaa5fa8b
TT
89312020-02-08 Tom Tromey <tom@tromey.com>
8932
8933 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8934 htab_up. Don't allocate on obstack.
8935 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8936 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8937 Change type to htab_up.
8938
b0b6a987
TT
89392020-02-08 Tom Tromey <tom@tromey.com>
8940
8941 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8942 Change type to htab_up.
8943 * dwarf2/read.c (create_signatured_type_table_from_index)
8944 (create_signatured_type_table_from_debug_names)
8945 (create_all_type_units, add_type_unit)
8946 (lookup_dwo_signatured_type, lookup_signatured_type)
8947 (process_skeletonless_type_unit): Update.
8948 (create_debug_type_hash_table, create_debug_types_hash_table):
8949 Change type of types_htab.
8950 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8951 htab_up. Don't allocate on obstack.
8952 (create_cus_hash_table): Change type of cus_htab parameter.
8953 (struct dwo_file) <cus, tus>: Now htab_up.
8954 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8955 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8956 (queue_and_load_all_dwo_tus): Update.
8957 * dwarf2/index-write.c (write_gdbindex): Update.
8958 (write_debug_names): Update.
8959
39856def
TT
89602020-02-08 Tom Tromey <tom@tromey.com>
8961
8962 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8963 dwarf2/read.c. Remove "next" member. Add constructor ntad
8964 destructor.
8965 (struct dwarf2_per_objfile) <queue>: New member.
8966 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8967 dwarf2/read.h.
8968 (dwarf2_queue, dwarf2_queue_tail): Remove.
8969 (class dwarf2_queue_guard): Add parameter to constructor. Use
8970 DISABLE_COPY_AND_ASSIGN.
8971 <m_per_objfile>: New member.
8972 <~dwarf2_queue_guard>: Rewrite.
8973 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8974 Update.
8975 (~dwarf2_queue_item): New.
8976
3e225074
TT
89772020-02-08 Tom Tromey <tom@tromey.com>
8978
8979 * dwarf2/read.c (struct die_info) <has_children>: New member.
8980 (dw2_get_file_names_reader): Remove has_children.
8981 (dw2_get_file_names): Update.
8982 (read_cutu_die_from_dwo): Remove has_children.
8983 (cutu_reader::init_tu_and_read_dwo_dies)
8984 (cutu_reader::cutu_reader): Update.
8985 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8986 Remove has_children.
8987 (build_type_psymtabs_1, process_skeletonless_type_unit)
8988 (load_partial_comp_unit, load_full_comp_unit): Update.
8989 (create_dwo_cu_reader): Remove has_children.
8990 (create_cus_hash_table, read_die_and_children): Update.
8991 (read_full_die_1,read_full_die): Remove has_children.
8992 (read_signatured_type): Update.
8993 (class cutu_reader) <has_children>: Remove.
8994
82ca8957
TT
89952020-02-08 Tom Tromey <tom@tromey.com>
8996
8997 * dwarf2/expr.c: Rename from dwarf2expr.c.
8998 * dwarf2/expr.h: Rename from dwarf2expr.h.
8999 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9000 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9001 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9002 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9003 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9004 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9005 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9006 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9007 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9008 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9009 * dwarf2/loc.c: Rename from dwarf2loc.c.
9010 * dwarf2/loc.h: Rename from dwarf2loc.h.
9011 * dwarf2/read.c: Rename from dwarf2read.c.
9012 * dwarf2/read.h: Rename from dwarf2read.h.
9013 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9014 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9015 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9016 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9017 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9018 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9019 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9020 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9021 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9022 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9023 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9024 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9025 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9026 Update.
9027 * Makefile.in (COMMON_SFILES): Update.
9028 (HFILES_NO_SRCDIR): Update.
9029
9e35d499
TT
90302020-02-08 Tom Tromey <tom@tromey.com>
9031
9032 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9033 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9034
1eba2311
TT
90352020-02-08 Tom Tromey <tom@tromey.com>
9036
9037 * dwarf2read.h (struct die_info): Don't declare.
9038
e41c2da2
TT
90392020-02-08 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2read.h (die_info_ptr): Remove typedef.
9042
4fc6c0d5
TT
90432020-02-08 Tom Tromey <tom@tromey.com>
9044
9045 * dwarf2read.c (read_call_site_scope)
9046 (handle_data_member_location, dwarf2_add_member_fn)
9047 (mark_common_block_symbol_computed, read_common_block)
9048 (attr_to_dynamic_prop, partial_die_info::read)
9049 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9050 (dwarf2_symbol_mark_computed, set_die_type): Update.
9051 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9052 method.
9053 (attr_form_is_block): Don't declare.
9054 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9055
cd6c91b4
TT
90562020-02-08 Tom Tromey <tom@tromey.com>
9057
9058 * dwarf2read.c (dwarf2_find_base_address, )
9059 (read_call_site_scope, rust_containing_type)
9060 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9061 (handle_data_member_location, dwarf2_add_member_fn)
9062 (get_alignment, read_structure_type, process_structure_scope)
9063 (mark_common_block_symbol_computed, read_common_block)
9064 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9065 (partial_die_info::read, read_attribute_value, new_symbol)
9066 (lookup_die_type, dwarf2_get_ref_die_offset)
9067 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9068 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9069 (dwarf2_symbol_mark_computed): Update.
9070 * dwarf2/attribute.h (struct attribute) <value_as_address,
9071 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9072 methods.
9073 (value_as_address, attr_form_is_section_offset)
9074 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9075 * dwarf2/attribute.c (attribute::value_as_address)
9076 (attribute::form_is_section_offset, attribute::form_is_constant)
9077 (attribute::form_is_ref): Now methods.
9078
162dce55
TT
90792020-02-08 Tom Tromey <tom@tromey.com>
9080
9081 * dwarf2read.c (struct attribute, DW_STRING)
9082 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9083 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9084 (attr_form_is_block, attr_form_is_section_offset)
9085 (attr_form_is_constant, attr_form_is_ref): Move.
9086 * dwarf2/attribute.h: New file.
9087 * dwarf2/attribute.c: New file, from dwarf2read.c.
9088 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9089
3054dd54
TT
90902020-02-08 Tom Tromey <tom@tromey.com>
9091
9092 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9093 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9094 Move.
9095 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9096 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9097 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9098 abbrev.c.
9099 * dwarf2/abbrev.h: New file.
9100 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9101 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9102
96b79293
TT
91032020-02-08 Tom Tromey <tom@tromey.com>
9104
9105 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9106 (dwarf2_section_size, dwarf2_get_section_info)
9107 (create_signatured_type_table_from_debug_names)
9108 (create_addrmap_from_aranges, read_debug_names_from_section)
9109 (get_gdb_index_contents_from_section, read_comp_unit_head)
9110 (error_check_comp_unit_head, read_abbrev_offset)
9111 (create_debug_type_hash_table, init_cu_die_reader)
9112 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9113 (read_comp_units_from_section, create_cus_hash_table)
9114 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9115 (create_dwp_v2_section, dwarf2_rnglists_process)
9116 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9117 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9118 (read_indirect_string_from_dwz, read_addr_index_1)
9119 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9120 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9121 (fill_in_loclist_baton): Update.
9122 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9123 get_containing_section, get_bfd_owner, get_bfd_section,
9124 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9125 (dwarf2_read_section, get_section_name, get_section_file_name)
9126 (get_containing_section, get_section_bfd_owner)
9127 (get_section_bfd_section, get_section_name, get_section_file_name)
9128 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9129 declare.
9130 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9131 (dwarf2_section_info::get_bfd_owner)
9132 (dwarf2_section_info::get_bfd_section)
9133 (dwarf2_section_info::get_name)
9134 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9135 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9136 (dwarf2_section_info::read): Now methods.
9137 * dwarf-index-write.c (class debug_names): Update.
9138
2c86cff9
TT
91392020-02-08 Tom Tromey <tom@tromey.com>
9140
9141 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9142 Move to dwarf2/section.h.
9143 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9144 (get_section_bfd_section, get_section_name)
9145 (get_section_file_name, get_section_id, get_section_flags)
9146 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9147 dwarf2/section.c.
9148 * dwarf2/section.h: New file.
9149 * dwarf2/section.c: New file, from dwarf2read.c.
9150 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9151
f4382c45
TT
91522020-02-08 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9155 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9156 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9157 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9158 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9159 * dwarf2/leb.h: New file, from dwarf2read.c.
9160 * dwarf2/leb.c: New file, from dwarf2read.c.
9161 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9162 Remove.
9163 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9164 (COMMON_SFILES): Add dwarf2/leb.c.
9165
01840b7a
JB
91662020-02-08 Joel Brobecker <brobecker@adacore.com>
9167
9168 GDB 9.1 released.
9169
dfcb27e4
IB
91702020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9171
9172 PR gdb/25190:
aac66a4c
SM
9173 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9174 * gdb/remote.c (remote_console_output): Update.
9175 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9176 (ui_file_puts): ...this.
9177 * gdb/ui-file.h (ui_file_puts): Add declaration.
9178 * gdb/utils.c (emit_style_escape): Update.
9179 (flush_wrap_buffer): Update.
9180 (fputs_maybe_filtered): Update.
9181 (fputs_unfiltered): Add function.
dfcb27e4 9182
faa17681
IB
91832020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9184
aac66a4c
SM
9185 * gdb/event-loop.c (gdb_wait_for_event): Update.
9186 * gdb/printcmd.c (printf_command): Update.
9187 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9188 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9189 (gdb_os_flush_stderr): Update.
9190 * gdb/remote.c (remote_console_output): Update.
9191 * gdb/ui-file.c (gdb_flush): Rename to...
9192 (ui_file_flush): ...this.
9193 (stderr_file::write): Update.
9194 (stderr_file::puts): Update.
9195 * gdb/ui-file.h (gdb_flush): Rename to...
9196 (ui_file_flush): ...this.
9197 * gdb/utils.c (gdb_flush): Add function.
9198 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9199
5abbbe1d
TT
92002020-02-07 Tom Tromey <tromey@adacore.com>
9201
9202 PR breakpoints/24915:
9203 * source.c (find_and_open_source): Do not check basenames_may_differ.
9204
919adfe8
TT
92052020-02-07 Tom Tromey <tom@tromey.com>
9206
9207 * README: Update gdbserver documentation.
9208 * gdbserver: Move to top level.
9209 * configure.tgt (build_gdbserver): Remove.
9210 * configure.ac: Remove --enable-gdbserver.
9211 * configure: Rebuild.
9212 * Makefile.in (distclean): Don't mention gdbserver.
9213
1d5d29e7
SV
92142020-02-06 Shahab Vahedi <shahab@synopsys.com>
9215
9216 * source-cache.c (source_cache::ensure): Surround
9217 get_plain_source_lines with a try/catch.
9218 (source_cache::get_line_charpos): Get rid of try/catch
9219 and only check for the return value of "ensure".
9220 * tui/tui-source.c (tui_source_window::set_contents):
9221 Simplify "nlines" calculation.
9222
6eb1129c
SV
92232020-02-06 Shahab Vahedi <shahab@synopsys.com>
9224
9225 * MAINTAINERS (Write After Approval): Add myself.
9226
c6a42d11
CB
92272020-02-05 Christian Biesinger <cbiesinger@google.com>
9228
9229 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9230 function call.
9231
c8ecdda6
CB
92322020-02-05 Christian Biesinger <cbiesinger@google.com>
9233
9234 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9235
f6480e70
MR
92362020-02-05 Maciej W. Rozycki <macro@wdc.com>
9237
9238 * nat/riscv-linux-tdesc.h: New file.
9239 * nat/riscv-linux-tdesc.c: New file, taking code from...
9240 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9241 ... here.
9242 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9243 NATDEPFILES.
9244
dcc9fbc6
AB
92452020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9246
9247 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9248 we don't set the fake simulator ptid to the null_ptid.
9249
719546c4
SM
92502020-02-03 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9253 * gdbthread.h (class thread_info) <resumed>: Likewise.
9254 * infrun.c (resume_1): Likewise.
9255 (proceed): Likewise.
9256 (infrun_thread_stop_requested): Likewise.
9257 (stop_all_threads): Likewise.
9258 (handle_inferior_event): Likewise.
9259 (restart_threads): Likewise.
9260 (finish_step_over): Likewise.
9261 (keep_going_stepped_thread): Likewise.
9262 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9263 (linux_handle_extended_wait): Likewise.
9264 * record-btrace.c (get_thread_current_frame_id): Likewise.
9265 * record-full.c (record_full_wait_1): Likewise.
9266 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9267 * target.c (target_resume): Likewise.
9268 * thread.c (set_running_thread): Likewise.
9269
e409c542
AKS
92702020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9271
9272 * f-valprint.c (f77_print_array_1): Changed datatype of index
9273 variable to LONGEST from int to enable it to contain bound
9274 values correctly.
9275
ee98c0da
MR
92762020-02-03 Maciej W. Rozycki <macro@wdc.com>
9277
9278 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9279 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9280 offsets according to FLEN determined.
9281 (riscv_linux_nat_target::read_description): Determine FLEN
9282 dynamically.
9283 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9284 according to FLEN determined.
9285 (riscv_linux_nat_target::store_registers): Likewise.
9286
aa66aac4
SV
92872020-02-01 Shahab Vahedi <shahab@synopsys.com>
9288
9289 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9290 when reg->group is empty and reggroup is not.
9291
fd9faca8
TT
92922020-01-31 Tom Tromey <tromey@adacore.com>
9293
9294 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9295 Call beneath target's mourn_inferior after unpushing.
9296
42330a68
AB
92972020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9298
9299 PR tui/9765
9300 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9301 have enough lines to fill the screen, still return the lowest
9302 address we found.
9303
7a27a45b
AB
93042020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9305
9306 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9307 '-', '<', and '>' commands.
9308
c47f70e2
PA
93092020-01-29 Pedro Alves <palves@redhat.com>
9310 Sergio Durigan Junior <sergiodj@redhat.com>
9311
9312 * infcmd.c (construct_inferior_arguments): Assert that
9313 'argc' is greater than 0.
9314
5133a315
LM
93152020-01-29 Luis Machado <luis.machado@linaro.org>
9316
9317 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9318 (BRK_INSN_MASK): Define to 0xd4200000.
9319 (aarch64_program_breakpoint_here_p): New function.
9320 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9321 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9322 breakpoint.c.
9323 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9324 breakpoint.h
9325 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9326 call gdbarch_program_breakpoint_here_p.
9327 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9328 default_program_breakpoint_here_p, changed return type to bool and
9329 simplified.
9330 * breakpoint.h (program_breakpoint_here): Moved prototype to
9331 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9332 return type to bool.
9333 * gdbarch.c: Regenerate.
9334 * gdbarch.h: Regenerate.
9335 * gdbarch.sh (program_breakpoint_here_p): New method.
9336 * infrun.c (handle_signal_stop): Call
9337 gdbarch_program_breakpoint_here_p.
9338
168f8c6b
TT
93392020-01-26 Tom Tromey <tom@tromey.com>
9340
9341 * ctfread.c (struct ctf_fp_info): Reindent.
9342 (_initialize_ctfread): Remove.
9343
128a391f
TT
93442020-01-26 Tom Tromey <tom@tromey.com>
9345
9346 * psymtab.c (partial_map_expand_apply)
9347 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9348 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9349 (psym_print_stats, psym_expand_symtabs_for_function)
9350 (psym_map_symbol_filenames, psym_map_matching_symbols)
9351 (psym_expand_symtabs_matching)
9352 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9353 (maintenance_check_psymtabs): Use new methods.
9354 * psympriv.h (struct partial_symtab) <readin_p,
9355 get_compunit_symtab>: New methods.
9356 <readin, compunit_symtab>: Remove members.
9357 (struct standard_psymtab): New.
9358 (struct legacy_psymtab): Derive from standard_psymtab.
9359 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9360 standard_psymtab.
9361 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9362
0494dbec
TT
93632020-01-26 Tom Tromey <tom@tromey.com>
9364
9365 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9366 read_dependencies. Add assert.
9367 * psymtab.c (partial_symtab::read_dependencies): New method.
9368 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9369 method.
9370 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9371 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9372 read_dependencies.
9373 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9374 Add assert.
9375
8566b89b
TT
93762020-01-26 Tom Tromey <tom@tromey.com>
9377
9378 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9379 Call expand_psymtab.
9380 (xcoff_read_symtab): Call expand_psymtab.
9381 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9382 legacy_expand_psymtab.
9383 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9384 method.
9385 (struct legacy_psymtab) <expand_psymtab>: Implement.
9386 <legacy_expand_psymtab>: New member.
9387 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9388 (parse_partial_symbols): Set legacy_expand_psymtab.
9389 (psymtab_to_symtab_1): Change argument order. Call
9390 expand_psymtab.
9391 (new_psymtab): Set legacy_expand_psymtab.
9392 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9393 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9394 expand_psymtab.
9395 (dwarf2_psymtab::expand_psymtab): Rename from
9396 psymtab_to_symtab_1. Call expand_psymtab.
9397 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9398 (dbx_end_psymtab): Likewise.
9399 (dbx_psymtab_to_symtab_1): Change argument order. Call
9400 expand_psymtab.
9401 (dbx_read_symtab): Call expand_psymtab.
9402 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9403 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9404 (ctf_psymtab::read_symtab): Call expand_psymtab.
9405
077cbab2
TT
94062020-01-26 Tom Tromey <tom@tromey.com>
9407
9408 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9409 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9410 messages.
9411 * mdebugread.c (mdebug_read_symtab): Remove prints.
9412 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9413 assert.
9414 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9415
891813be
TT
94162020-01-26 Tom Tromey <tom@tromey.com>
9417
9418 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9419 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9420 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9421 legacy_symtab.
9422 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9423 * psymtab.c (psymtab_to_symtab): Call method.
9424 (dump_psymtab): Update.
9425 * psympriv.h (struct partial_symtab): Add virtual destructor.
9426 <read_symtab>: New method.
9427 (struct legacy_symtab): New.
9428 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9429 (struct pst_map) <pst>: Now a legacy_psymtab.
9430 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9431 (new_psymtab): Use legacy_psymtab.
9432 * dwarf2read.h (struct dwarf2_psymtab): New.
9433 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9434 * dwarf2read.c (dwarf2_create_include_psymtab)
9435 (dwarf2_build_include_psymtabs, create_type_unit_group)
9436 (create_partial_symtab, process_psymtab_comp_unit_reader)
9437 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9438 (set_partial_user): Use dwarf2_psymtab.
9439 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9440 (psymtab_to_symtab_1, process_full_comp_unit)
9441 (process_full_type_unit, dwarf2_ranges_read)
9442 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9443 (dwarf_decode_lines): Use dwarf2_psymtab.
9444 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9445 (add_address_entry_worker, write_one_signatured_type)
9446 (recursively_count_psymbols, recursively_write_psymbols)
9447 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9448 (write_debug_names): Likewise.
9449 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9450 <pst>: Now a legacy_psymtab.
9451 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9452 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9453 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9454 * ctfread.c (struct ctf_psymtab): New.
9455 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9456 ctf_psymtab.
9457 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9458 (create_partial_symtab): Return a ctf_psymtab.
9459 (scan_partial_symbols): Update.
9460
c3693a1d
TT
94612020-01-26 Tom Tromey <tom@tromey.com>
9462
9463 * xcoffread.c (xcoff_start_psymtab): Use new.
9464 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9465 renamed from start_psymtab_common.
9466 * psympriv.h (struct partial_symtab): Add new constructor.
9467 (start_psymtab_common): Don't declare.
9468 * mdebugread.c (parse_partial_symbols): Use new.
9469 * dwarf2read.c (create_partial_symtab): Use new.
9470 * dbxread.c (start_psymtab): Use new.
9471 * ctfread.c (create_partial_symtab): Use new.
9472
32caafd0
TT
94732020-01-26 Tom Tromey <tom@tromey.com>
9474
9475 * xcoffread.c (xcoff_end_psymtab): Use new.
9476 * psymtab.c (start_psymtab_common): Use new.
9477 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9478 Update.
9479 * psympriv.h (struct partial_symtab): Add parameters to
9480 constructor. Don't inline.
9481 (allocate_psymtab): Don't declare.
9482 * mdebugread.c (new_psymtab): Use new.
9483 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9484 * dbxread.c (dbx_end_psymtab): Use new.
9485
abaa2f23
TT
94862020-01-26 Tom Tromey <tom@tromey.com>
9487
9488 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9489 allocate_psymtab. Update documentation.
9490 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9491 allocate_psymtab. Do not use new.
9492 (allocate_psymtab): Use new. Update.
9493
6d94535f
TT
94942020-01-26 Tom Tromey <tom@tromey.com>
9495
9496 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9497 * psymtab.c (psym_print_stats): Update.
9498 * psympriv.h (struct partial_symtab) <readin,
9499 psymtabs_addrmap_supported, anonymous>: Now bool.
9500 * mdebugread.c (psymtab_to_symtab_1): Update.
9501 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9502 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9503 (process_full_comp_unit, process_full_type_unit): Update.
9504 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9505 * ctfread.c (psymtab_to_symtab): Update.
9506
6f17252b
TT
95072020-01-26 Tom Tromey <tom@tromey.com>
9508
9509 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9510 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9511 * psymtab.c (psymtab_storage): Delete psymtabs.
9512 (psymtab_storage::allocate_psymtab): Use new.
9513 (psymtab_storage::discard_psymtab): Use delete.
9514 * psympriv.h (struct partial_symtab): Add constructor and
9515 initializers.
9516
f6f1cebc
TT
95172020-01-26 Tom Tromey <tom@tromey.com>
9518
9519 * machoread.c: Do not include psympriv.h.
9520
e47e48f6
PW
95212020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9522
9523 * NEWS: Mention the new option and the set/show commands.
9524
a2fedca9
PW
95252020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9526
9527 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9528 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9529 (validate_exec_file): New variables, enums, functions.
9530 (exec_file_locate_attach, print_section_info): Style the filenames.
9531 (_initialize_exec): Install show_exec_file_mismatch_command and
9532 set_exec_file_mismatch_command.
9533 * gdbcore.h (validate_exec_file): Declare.
9534 * infcmd.c (attach_command): Call validate_exec_file.
9535 * remote.c ( remote_target::remote_add_inferior): Likewise.
9536
7ffa82e1
AB
95372020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9538
9539 * frame.c (find_frame_sal): Move call to get_next_frame into more
9540 inner scope.
9541 * inline-frame.c (inilne_state) <inline_state>: Update argument
9542 types.
9543 (inilne_state) <skipped_symbol>: Rename to...
9544 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9545 (skip_inline_frames): Build vector of skipped symbols and use this
9546 to reate the inline_state.
9547 (inline_skipped_symbol): Add a comment and some assertions, fetch
9548 skipped symbol from the list.
9549
3d92a3e3
AB
95502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9551
9552 * buildsym.c (lte_is_less_than): Delete.
9553 (buildsym_compunit::end_symtab_with_blockvector): Create local
9554 lambda function to sort line table entries, and use
9555 std::stable_sort instead of std::sort.
9556 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9557 markers when looking for a previous line.
9558
94a72be7
AB
95592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9560
9561 * dwarf2read.c (lnp_state_machine::record_line): Include
9562 end_sequence parameter in debug print out. Record the line if we
9563 are at an end_sequence marker even if it's not the start of a
9564 statement.
9565 * symmisc.c (maintenance_print_one_line_table): Print end of
9566 sequence markers with 'END' not '0'.
9567
53af73bf
PA
95682020-01-24 Pedro Alves <palves@redhat.com>
9569
9570 PR gdb/25410
9571 * thread.c (scoped_restore_current_thread::restore): Use
9572 switch_to_inferior_no_thread.
9573 * exec.c: Include "progspace-and-thread.h".
9574 (add_target_sections, remove_target_sections):
9575 scoped_restore_current_pspace_and_thread instead of
9576 scoped_restore_current_thread.
9577 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9578 and aspace to the inferior before calling clone_program_space.
9579 Remove stale comment.
9580
3050c6f4
CB
95812020-01-24 Christian Biesinger <cbiesinger@google.com>
9582
9583 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9584 (arm_netbsd_nat_target::fetch_registers): ...this.
9585 (arm_nbsd_nat_target::store_registers): Rename to...
9586 (arm_netbsd_nat_target::store_registers): ...this.
9587
73685c7e
CB
95882020-01-24 Christian Biesinger <cbiesinger@google.com>
9589
9590 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9591 register_t.
9592
89203d40
CB
95932020-01-24 Christian Biesinger <cbiesinger@google.com>
9594
9595 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9596 Update comment.
9597 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9598 Likewise.
9599 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9600 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9601 the correct replacement (iterate_over_regset_sections).
9602 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9603 Update comment.
9604
1ba1ac88
AB
96052020-01-24 Graham Markall <graham.markall@embecosm.com>
9606
9607 PR gdb/23718
9608 * gdb/python/python.c (execute_gdb_command): Call
9609 async_enable_stdin in catch block.
9610
f3364a6d
AB
96112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9612
9613 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9614 SWITCH_THRU_ALL_UIS.
9615
733d0a67
AB
96162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9617
9618 PR tui/9765
9619 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9620 comment, add extra parameter, and update to store previous symbol
9621 when appropriate.
9622 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9623 add extra parameter.
9624 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9625 remove unneeded parameter, add try/catch around gdb_print_insn,
9626 rewrite to add items to asm_lines vector.
9627 (tui_find_backward_disassembly_start_address): New function.
9628 (tui_find_disassembly_address): Updated throughout.
9629 (tui_disasm_window::set_contents): Update for changes to
9630 tui_disassemble.
9631 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9632 number of lines to scroll.
9633
b3b3bada
SM
96342020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9635
9636 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9637 (SECT_OFF_DATA): Likewise.
9638 (SECT_OFF_RODATA): Likewise.
9639 (SECT_OFF_TEXT): Likewise.
9640 (SECT_OFF_BSS): Likewise.
9641 (struct objfile) <text_section_offset, data_section_offset>: New
9642 methods.
9643 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9644 objfile::text_section_offset.
9645 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9646 * coffread.c (coff_symtab_read): Likewise.
9647 (enter_linenos): Likewise.
9648 (process_coff_symbol): Likewise.
9649 * ctfread.c (get_objfile_text_range): Likewise.
9650 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9651 Use objfile::data_section_offset.
9652 * dwarf2-frame.c (execute_cfa_program): Use
9653 objfile::text_section_offset.
9654 (dwarf2_frame_find_fde): Likewise.
9655 * dwarf2read.c (create_addrmap_from_index): Likewise.
9656 (create_addrmap_from_aranges): Likewise.
9657 (dw2_find_pc_sect_compunit_symtab): Likewise.
9658 (process_psymtab_comp_unit_reader): Likewise.
9659 (add_partial_symbol): Likewise.
9660 (add_partial_subprogram): Likewise.
9661 (process_full_comp_unit): Likewise.
9662 (read_file_scope): Likewise.
9663 (read_func_scope): Likewise.
9664 (read_lexical_block_scope): Likewise.
9665 (read_call_site_scope): Likewise.
9666 (dwarf2_rnglists_process): Likewise.
9667 (dwarf2_ranges_process): Likewise.
9668 (dwarf2_ranges_read): Likewise.
9669 (dwarf_decode_lines_1): Likewise.
9670 (new_symbol): Likewise.
9671 (dwarf2_fetch_die_loc_sect_off): Likewise.
9672 (dwarf2_per_cu_text_offset): Likewise.
9673 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9674 * hppa-tdep.c (read_unwind_info): Likewise.
9675 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9676 * psympriv.h (struct partial_symtab): Likewise.
9677 * psymtab.c (find_pc_sect_psymtab): Likewise.
9678 * solib-svr4.c (enable_break): Likewise.
9679 * stap-probe.c (relocate_address): Use
9680 objfile::data_section_offset.
9681 * xcoffread.c (enter_line_range): Use
9682 objfile::text_section_offset.
9683 (read_xcoff_symtab): Likewise.
9684
ab53f382
SM
96852020-01-23 Simon Marchi <simon.marchi@efficios.com>
9686
9687 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9688 declaration to narrower scopes.
9689
e7eee665
SM
96902020-01-23 Simon Marchi <simon.marchi@efficios.com>
9691
9692 * darwin-nat.h (struct darwin_exception_msg, enum
9693 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9694 Move up.
9695 (class darwin_nat_target) <wait_1, check_new_threads,
9696 decode_exception_message, decode_message, stop_inferior,
9697 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9698 * darwin-nat.c (darwin_check_new_threads): Rename to...
9699 (darwin_nat_target::check_new_threads): ... this.
9700 (darwin_suspend_inferior_it): Remove.
9701 (darwin_decode_exception_message): Rename to...
9702 (darwin_nat_target::decode_exception_message): ... this.
9703 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9704 (darwin_decode_message): Rename to...
9705 (darwin_nat_target::decode_message): ... this.
9706 (cancel_breakpoint): Rename to...
9707 (darwin_nat_target::cancel_breakpoint): ... this.
9708 (darwin_wait): Rename to...
9709 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9710 instead of iterate_over_inferiors.
9711 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9712 (darwin_stop_inferior): Rename to...
9713 (darwin_nat_target::stop_inferior): ... this.
9714 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9715 (darwin_init_thread_list): Rename to...
9716 (darwin_nat_target::init_thread_list): ... this.
9717 (darwin_ptrace_him): Rename to...
9718 (darwin_nat_target::ptrace_him): ... this.
9719 (darwin_nat_target::create_inferior): Pass lambda function to
9720 fork_inferior.
9721 (darwin_nat_target::detach): Call stop_inferior instead of
9722 darwin_stop_inferior.
9723 * fork-inferior.h (fork_inferior): Change init_trace_fun
9724 parameter to gdb::function_view.
9725 * fork-inferior.c (fork_inferior): Likewise.
9726
c162ed3e
HD
97272020-01-23 Hannes Domani <ssbssa@yahoo.de>
9728
9729 * i386-cygwin-tdep.c (core_process_module_section): Update.
9730 * windows-nat.c (struct lm_info_windows): Add text_offset.
9731 (windows_xfer_shared_libraries): Update.
9732 * windows-tdep.c (windows_xfer_shared_library):
9733 Add text_offset_cached argument.
9734 * windows-tdep.h (windows_xfer_shared_library): Update.
9735
a1237872
SM
97362020-01-21 Simon Marchi <simon.marchi@efficios.com>
9737
9738 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9739
b3ee6dd9
SM
97402020-01-21 Simon Marchi <simon.marchi@efficios.com>
9741
9742 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9743 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9744 replace with range-based for.
9745 (gdbsim_interrupt_inferior): Remove.
9746 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9747 with a range-based for. Inline code from
9748 gdbsim_interrupt_inferior.
9749
f9fac3c8
SM
97502020-01-21 Simon Marchi <simon.marchi@efficios.com>
9751
9752 * infrun.c (proceed): Fix indentation.
9753
f6474de9
TT
97542020-01-21 Tom Tromey <tromey@adacore.com>
9755
9756 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9757 * python/python.c (python_extension_ops): Update.
9758 (gdbpy_colorize): New function.
9759 * python/lib/gdb/__init__.py (colorize): New function.
9760 * extension.h (ext_lang_colorize): Declare.
9761 * extension.c (ext_lang_colorize): New function.
9762 * extension-priv.h (struct extension_language_ops) <colorize>: New
9763 member.
9764 * cli/cli-style.c (_initialize_cli_style): Update help text.
9765
f0c702d4
LM
97662020-01-21 Luis Machado <luis.machado@linaro.org>
9767
9768 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9769 <cond>: Change type to bool.
9770 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9771 (aarch64_displaced_step_cb): Likewise.
9772 (aarch64_displaced_step_tb): Likewise.
9773
1ab139e5
LM
97742020-01-21 Luis Machado <luis.machado@linaro.org>
9775
9776 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9777 output.
9778
0c271889
LM
97792020-01-21 Luis Machado <luis.machado@linaro.org>
9780
9781 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9782 <pc_adjust>: Adjust the documentation.
9783 (aarch64_displaced_step_fixup): Check if PC really moved before
9784 adjusting it.
9785
4d89c1c7
TT
97862020-01-19 Tom Tromey <tom@tromey.com>
9787
9788 * disasm.c (~gdb_disassembler): New destructor.
9789 (gdb_buffered_insn_length): Call disassemble_free_target.
9790 * disasm.h (class gdb_disassembler): Declare destructor. Use
9791 DISABLE_COPY_AND_ASSIGN.
9792
c0ab21c2
TT
97932020-01-19 Tom Tromey <tom@tromey.com>
9794
9795 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9796 (die_reader_func_ftype): Remove.
9797 (cutu_reader): New class.
9798 (dw2_get_file_names_reader): Remove "data" parameter.
9799 (dw2_get_file_names): Use cutu_reader.
9800 (create_debug_type_hash_table): Update.
9801 (read_cutu_die_from_dwo): Update comment.
9802 (lookup_dwo_unit): Add dwo_name parameter.
9803 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9804 die_reader_func_ftype and data parameters.
9805 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9806 Remove die_reader_func_ftype and data parameters.
9807 (~cutu_reader): New; from init_cutu_and_read_dies.
9808 (cutu_reader::cutu_reader): Rename from
9809 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9810 and data parameters.
9811 (init_cutu_and_read_dies_simple): Remove.
9812 (struct process_psymtab_comp_unit_data): Remove.
9813 (process_psymtab_comp_unit_reader): Remove data parameter; add
9814 want_partial_unit and pretend_language parameters.
9815 (process_psymtab_comp_unit): Use cutu_reader.
9816 (build_type_psymtabs_reader): Remove data parameter.
9817 (build_type_psymtabs_1): Use cutu_reader.
9818 (process_skeletonless_type_unit): Likewise.
9819 (load_partial_comp_unit_reader): Remove.
9820 (load_partial_comp_unit): Use cutu_reader.
9821 (load_full_comp_unit_reader): Remove.
9822 (load_full_comp_unit): Use cutu_reader.
9823 (struct create_dwo_cu_data): Remove.
9824 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9825 dwo_unit parameters.
9826 (create_cus_hash_table): Use cutu_reader.
9827 (struct dwarf2_read_addr_index_data): Remove.
9828 (dwarf2_read_addr_index_reader): Remove.
9829 (dwarf2_read_addr_index): Use cutu_reader.
9830 (read_signatured_type_reader): Remove.
9831 (read_signatured_type): Use cutu_reader.
9832
45bbae5c
TT
98332020-01-19 Tom Tromey <tom@tromey.com>
9834
9835 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9836 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9837 (tui_wrefresh): Declare.
9838 * tui/tui-wingeneral.c (suppress_output): New global.
9839 (tui_suppress_output, ~tui_suppress_output): New constructor and
9840 destructor.
9841 (tui_wrefresh): New function.
9842 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9843 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9844 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9845 method.
9846 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9847 tui_wrefresh.
9848 (tui_data_window::no_refresh): New method.
9849 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9850 (tui_reg_command): Use tui_suppress_output
9851 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9852 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9853 method.
9854 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9855
4f13c1c0
TT
98562020-01-19 Tom Tromey <tom@tromey.com>
9857
9858 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9859 Handle case where symtab is null.
9860
fa47e446
SM
98612020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9862
9863 * linux-fork.c (one_fork_p): Simplify.
9864
26f42329
SM
98652020-01-17 Simon Marchi <simon.marchi@efficios.com>
9866
9867 * top.c (struct qt_args): Remove.
9868 (kill_or_detach): Change return type to void, replace `void *`
9869 parameter with a proper one.
9870 (print_inferior_quit_action): Likewise.
9871 (quit_confirm): Use range-based for loop to iterate over inferiors.
9872 (quit_force): Likewise.
9873
a9ac81b1
SM
98742020-01-17 Simon Marchi <simon.marchi@efficios.com>
9875
9876 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9877 `void *` parameter with proper parameters.
9878 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9879 (print_one_inferior): Change return type to void, replace `void *`
9880 parameter with proper parameters.
9881 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9882 inferiors.
9883 (get_other_inferior): Remove.
9884 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9885 inferiors.
9886
788eca49
SM
98872020-01-17 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * mi/mi-interp.c (report_initial_inferior): Remove.
9890 (mi_interp::init): Use range-based for to iterate over inferiors.
9891
d9bc85b6
SM
98922020-01-17 Simon Marchi <simon.marchi@efficios.com>
9893
9894 * python/py-inferior.c (build_inferior_list): Remove.
9895 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9896
40c94099
CB
98972020-01-16 Christian Biesinger <cbiesinger@google.com>
9898
9899 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9900 (btrace_stitch_trace): Likewise.
9901 * charset.c (intermediate_encoding): Likewise (vaild).
9902 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9903 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9904 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9905
e0cdfe3c
HD
99062020-01-16 Hannes Domani <ssbssa@yahoo.de>
9907
9908 * windows-tdep.c (windows_get_tlb_type):
9909 Add rtl_user_process_parameters type.
9910
790f1718 99112020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9912 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9913
9914 PR build/24805
9915 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9916 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9917 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9918 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9919 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9920 (ps_plog): Redeclare exported functions with default visibility.
9921
3112ed97
NA
99222020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9923
9924 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9925 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9926
8dc3273e
SM
99272020-01-15 Simon Marchi <simon.marchi@efficios.com>
9928
9929 * infcmd.c (post_create_inferior): Use get_thread_regcache
9930 instead of get_current_regcache.
9931
ff47f4f0
TT
99322020-01-14 Tom Tromey <tom@tromey.com>
9933
9934 PR symtab/12535:
9935 * python/python.c (gdbpy_decode_line): Treat empty string the same
9936 as no argument.
9937
975f45b7
TT
99382020-01-14 Tom Tromey <tom@tromey.com>
9939
9940 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9941
25e57356
TT
99422020-01-14 Tom Tromey <tom@tromey.com>
9943
9944 * nat/linux-btrace.c: Don't include <config.h>.
9945 * nat/linux-ptrace.c: Don't include <config.h>.
9946 * nat/x86-linux-dregs.c: Don't include <config.h>.
9947
05ea2a05
TT
99482020-01-14 Tom Tromey <tom@tromey.com>
9949
9950 * configure: Rebuild.
9951 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9952
01027315
TT
99532020-01-14 Tom Tromey <tom@tromey.com>
9954
9955 * nat/x86-linux-dregs.c: Include configh.h.
9956 * nat/linux-ptrace.c: Include configh.h.
9957 * nat/linux-btrace.c: Include configh.h.
9958 * defs.h: Include config.h, bfd.h.
9959 * configure.ac: Don't source common.host.
9960 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9961 * configure: Rebuild.
9962 * acinclude.m4: Update path.
9963 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9964 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9965 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9966 (CLIBS): Add LIBSUPPORT.
9967 (CDEPS): Likewise.
9968 (COMMON_SFILES): Remove gdbsupport files.
9969 (HFILES_NO_SRCDIR): Likewise.
9970 (stamp-version): Update path to create-version.sh.
9971 (ALLDEPFILES): Remove gdbsupport files.
9972
b2ceabe8
TT
99732020-01-14 Tom Tromey <tom@tromey.com>
9974
9975 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9976 USE_WIN32API when needed.
9977 * configure.ac (USE_WIN32API): Don't define.
9978 (WIN32LIBS): Use WIN32APILIBS.
9979 * configure: Rebuild.
9980
25c51f71
TT
99812020-01-14 Tom Tromey <tom@tromey.com>
9982
9983 * configure: Rebuild.
9984 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9985
717c684d
BE
99862020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9987
9988 * skip.c (skip_function_command): Make skip w/o arguments use the
9989 name of the inlined function if pc is inside any inlined function.
9990
7da6a5b9
LM
99912020-01-14 Luis Machado <luis.machado@linaro.org>
9992
9993 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9994 * infrun.c (resume_1): Likewise.
9995 (handle_inferior_event): Remove stale comment.
9996 * linux-nat.c (linux_nat_target::resume): Update comments.
9997 (save_stop_reason): Likewise.
9998 (linux_nat_filter_event): Likewise.
9999 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10000
44e4c775
AB
100012020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10002
10003 * elfread.c (record_minimal_symbol): Set section index to 0 for
10004 non-allocatable sections.
10005
18a8505e
AT
10006
100072020-01-13 Ali Tamur <tamur@google.com>
10008
10009 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10010 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10011 to gdb::optional. Update comments.
10012 (dwo_file): Update comments.
10013 (read_attribute): Update API to take an additional out parameter,
10014 need_reprocess. This is used to mark attributes that need other
10015 attributes (e.g. str_offsets_base) for correct computation which may not
10016 have been read yet.
10017 (read_attribute_reprocess): New function declaration.
10018 (read_addr_index): Likewise.
10019 (read_dwo_str_index): Likewise.
10020 (read_stub_str_index): Likewise.
10021 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10022 (lookup_addr_base): New function definition.
10023 (lookup_ranges_base): Likewise.
10024 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10025 lookup_ranges_base.
10026 (init_cutu_and_read_dies): Update comments.
10027 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10028 unit. This is used to inherit parent's str_offsets_base and addr_base.
10029 Update comments.
10030 (init_cutu_and_read_dies_simple): Reflect API changes.
10031 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10032 (create_cus_hash_table): Change API to take parent compile unit.
10033 Reflect API changes.
10034 (open_and_init_dwo_file): Reflect API changes.
10035 (dwarf2_get_pc_bounds): Update comments.
10036 (dwarf2_record_block_ranges): Likewise.
10037 (read_full_die_1): Change implementation to reprocess attributes that
10038 need str_offsets_base and addr_base.
10039 (partial_die_info::read): Likewise.
10040 (read_attribute_reprocess): New function definition.
10041 (read_attribute_value): Change API to take an additional out parameter,
10042 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10043 when a non-dwo compile unit has index based attributes.
10044 (read_attribute): Reflect API changes.
10045 (read_addr_index_1): Reflect API changes. Update comments.
10046 (dwarf2_read_addr_index_data): Reflect API changes.
10047 (dwarf2_read_addr_index): Likewise.
10048 (read_str_index): Change API and implementation. This becomes a helper
10049 to be used by the new string index related methods. Update error
10050 message and comments.
10051 (read_dwo_str_index): New function definition.
10052 (read_stub_str_index): Likewise.
10053 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10054 * symfile.h (dwarf2_debug_sections): Likewise.
10055 * xcoffread.c (dwarf2_debug_sections): Likewise.
10056
0cac9354
SM
100572020-01-13 Simon Marchi <simon.marchi@efficios.com>
10058
10059 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10060 core_reg_sect type to gdb_byte *.
10061 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10062 * cris-tdep.c (fetch_core_registers): Likewise.
10063 * corelow.c (core_target::get_core_register_section): Change
10064 type of `contents` to gdb::byte_vector.
10065
9a6d629c
AB
100662020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10067
10068 * tui/tui-wingeneral.c (box_win): Position the title in the center
10069 of the border.
10070
d8b2f9e3
SM
100712020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10072
10073 * corelow.c (core_target::get_core_register_section): Use
10074 std::vector instead of alloca.
10075
bb564c58
SM
100762020-01-13 Simon Marchi <simon.marchi@efficios.com>
10077
10078 * warning.m4: Add -Wmissing-declarations to build_warnings.
10079 * configure: Re-generate.
10080
6b366111
SM
100812020-01-13 Simon Marchi <simon.marchi@efficios.com>
10082
10083 * python/python.c (init__gdb_module): Add declaration.
10084
6c265988
SM
100852020-01-13 Simon Marchi <simon.marchi@efficios.com>
10086
10087 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10088 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10089 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10090 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10091 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10092 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10093 * ada-exp.y (_initialize_ada_exp): Add declaration.
10094 * ada-lang.c (_initialize_ada_language): Add declaration.
10095 * ada-tasks.c (_initialize_tasks): Add declaration.
10096 * agent.c (_initialize_agent): Add declaration.
10097 * aix-thread.c (_initialize_aix_thread): Add declaration.
10098 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10099 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10100 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10101 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10102 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10103 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10104 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10105 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10106 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10107 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10108 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10109 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10110 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10111 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10112 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10113 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10114 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10115 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10116 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10117 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10118 * annotate.c (_initialize_annotate): Add declaration.
10119 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10120 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10121 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10122 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10123 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10124 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10125 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10126 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10127 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10128 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10129 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10130 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10131 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10132 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10133 * auto-load.c (_initialize_auto_load): Add declaration.
10134 * auxv.c (_initialize_auxv): Add declaration.
10135 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10136 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10137 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10138 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10139 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10140 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10141 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10142 * breakpoint.c (_initialize_breakpoint): Add declaration.
10143 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10144 * btrace.c (_initialize_btrace): Add declaration.
10145 * charset.c (_initialize_charset): Add declaration.
10146 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10147 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10148 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10149 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10150 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10151 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10152 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10153 * coffread.c (_initialize_coffread): Add declaration.
10154 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10155 * compile/compile.c (_initialize_compile): Add declaration.
10156 * complaints.c (_initialize_complaints): Add declaration.
10157 * completer.c (_initialize_completer): Add declaration.
10158 * copying.c (_initialize_copying): Add declaration.
10159 * corefile.c (_initialize_core): Add declaration.
10160 * corelow.c (_initialize_corelow): Add declaration.
10161 * cp-abi.c (_initialize_cp_abi): Add declaration.
10162 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10163 * cp-support.c (_initialize_cp_support): Add declaration.
10164 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10165 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10166 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10167 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10168 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10169 * ctfread.c (_initialize_ctfread): Add declaration.
10170 * d-lang.c (_initialize_d_language): Add declaration.
10171 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10172 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10173 * dbxread.c (_initialize_dbxread): Add declaration.
10174 * dcache.c (_initialize_dcache): Add declaration.
10175 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10176 * disasm.c (_initialize_disasm): Add declaration.
10177 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10178 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10179 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10180 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10181 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10182 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10183 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10184 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10185 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10186 * elfread.c (_initialize_elfread): Add declaration.
10187 * exec.c (_initialize_exec): Add declaration.
10188 * extension.c (_initialize_extension): Add declaration.
10189 * f-lang.c (_initialize_f_language): Add declaration.
10190 * f-valprint.c (_initialize_f_valprint): Add declaration.
10191 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10192 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10193 * filesystem.c (_initialize_filesystem): Add declaration.
10194 * findcmd.c (_initialize_mem_search): Add declaration.
10195 * findvar.c (_initialize_findvar): Add declaration.
10196 * fork-child.c (_initialize_fork_child): Add declaration.
10197 * frame-base.c (_initialize_frame_base): Add declaration.
10198 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10199 * frame.c (_initialize_frame): Add declaration.
10200 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10201 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10202 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10203 * gcore.c (_initialize_gcore): Add declaration.
10204 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10205 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10206 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10207 * gdbarch.c (_initialize_gdbarch): Add declaration.
10208 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10209 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10210 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10211 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10212 * go-lang.c (_initialize_go_language): Add declaration.
10213 * go32-nat.c (_initialize_go32_nat): Add declaration.
10214 * guile/guile.c (_initialize_guile): Add declaration.
10215 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10216 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10217 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10218 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10219 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10220 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10221 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10222 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10223 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10224 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10225 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10226 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10227 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10228 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10229 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10230 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10231 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10232 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10233 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10234 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10235 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10236 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10237 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10238 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10239 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10240 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10241 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10242 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10243 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10244 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10245 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10246 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10247 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10248 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10249 * infcall.c (_initialize_infcall): Add declaration.
10250 * infcmd.c (_initialize_infcmd): Add declaration.
10251 * inflow.c (_initialize_inflow): Add declaration.
10252 * infrun.c (_initialize_infrun): Add declaration.
10253 * interps.c (_initialize_interpreter): Add declaration.
10254 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10255 * jit.c (_initialize_jit): Add declaration.
10256 * language.c (_initialize_language): Add declaration.
10257 * linux-fork.c (_initialize_linux_fork): Add declaration.
10258 * linux-nat.c (_initialize_linux_nat): Add declaration.
10259 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10260 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10261 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10262 * m2-lang.c (_initialize_m2_language): Add declaration.
10263 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10264 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10265 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10266 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10267 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10268 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10269 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10270 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10271 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10272 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10273 * machoread.c (_initialize_machoread): Add declaration.
10274 * macrocmd.c (_initialize_macrocmd): Add declaration.
10275 * macroscope.c (_initialize_macroscope): Add declaration.
10276 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10277 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10278 * maint.c (_initialize_maint_cmds): Add declaration.
10279 * mdebugread.c (_initialize_mdebugread): Add declaration.
10280 * memattr.c (_initialize_mem): Add declaration.
10281 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10282 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10283 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10284 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10285 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10286 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10287 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10288 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10289 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10290 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10291 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10292 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10293 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10294 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10295 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10296 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10297 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10298 * mipsread.c (_initialize_mipsread): Add declaration.
10299 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10300 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10301 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10302 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10303 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10304 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10305 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10306 * nto-procfs.c (_initialize_procfs): Add declaration.
10307 * objc-lang.c (_initialize_objc_language): Add declaration.
10308 * observable.c (_initialize_observer): Add declaration.
10309 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10310 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10311 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10312 * osabi.c (_initialize_gdb_osabi): Add declaration.
10313 * osdata.c (_initialize_osdata): Add declaration.
10314 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10315 * parse.c (_initialize_parse): Add declaration.
10316 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10317 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10318 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10319 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10320 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10321 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10322 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10323 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10324 * printcmd.c (_initialize_printcmd): Add declaration.
10325 * probe.c (_initialize_probe): Add declaration.
10326 * proc-api.c (_initialize_proc_api): Add declaration.
10327 * proc-events.c (_initialize_proc_events): Add declaration.
10328 * proc-service.c (_initialize_proc_service): Add declaration.
10329 * procfs.c (_initialize_procfs): Add declaration.
10330 * producer.c (_initialize_producer): Add declaration.
10331 * psymtab.c (_initialize_psymtab): Add declaration.
10332 * python/python.c (_initialize_python): Add declaration.
10333 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10334 * record-btrace.c (_initialize_record_btrace): Add declaration.
10335 * record-full.c (_initialize_record_full): Add declaration.
10336 * record.c (_initialize_record): Add declaration.
10337 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10338 * regcache.c (_initialize_regcache): Add declaration.
10339 * reggroups.c (_initialize_reggroup): Add declaration.
10340 * remote-notif.c (_initialize_notif): Add declaration.
10341 * remote-sim.c (_initialize_remote_sim): Add declaration.
10342 * remote.c (_initialize_remote): Add declaration.
10343 * reverse.c (_initialize_reverse): Add declaration.
10344 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10345 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10346 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10347 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10348 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10349 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10350 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10351 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10352 Add declaration.
10353 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10354 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10355 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10356 * rust-exp.y (_initialize_rust_exp): Add declaration.
10357 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10358 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10359 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10360 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10361 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10362 * score-tdep.c (_initialize_score_tdep): Add declaration.
10363 * ser-go32.c (_initialize_ser_dos): Add declaration.
10364 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10365 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10366 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10367 * ser-uds.c (_initialize_ser_socket): Add declaration.
10368 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10369 * serial.c (_initialize_serial): Add declaration.
10370 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10371 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10372 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10373 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10374 * skip.c (_initialize_step_skip): Add declaration.
10375 * sol-thread.c (_initialize_sol_thread): Add declaration.
10376 * solib-aix.c (_initialize_solib_aix): Add declaration.
10377 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10378 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10379 * solib-frv.c (_initialize_frv_solib): Add declaration.
10380 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10381 * solib-target.c (_initialize_solib_target): Add declaration.
10382 * solib.c (_initialize_solib): Add declaration.
10383 * source-cache.c (_initialize_source_cache): Add declaration.
10384 * source.c (_initialize_source): Add declaration.
10385 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10386 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10387 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10388 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10389 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10390 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10391 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10392 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10393 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10394 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10395 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10396 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10397 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10398 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10399 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10400 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10401 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10402 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10403 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10404 * stabsread.c (_initialize_stabsread): Add declaration.
10405 * stack.c (_initialize_stack): Add declaration.
10406 * stap-probe.c (_initialize_stap_probe): Add declaration.
10407 * std-regs.c (_initialize_frame_reg): Add declaration.
10408 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10409 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10410 * symfile.c (_initialize_symfile): Add declaration.
10411 * symmisc.c (_initialize_symmisc): Add declaration.
10412 * symtab.c (_initialize_symtab): Add declaration.
10413 * target.c (_initialize_target): Add declaration.
10414 * target-connection.c (_initialize_target_connection): Add
10415 declaration.
10416 * target-dcache.c (_initialize_target_dcache): Add declaration.
10417 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10418 * thread.c (_initialize_thread): Add declaration.
10419 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10420 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10421 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10422 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10423 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10424 * tracectf.c (_initialize_ctf): Add declaration.
10425 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10426 * tracefile.c (_initialize_tracefile): Add declaration.
10427 * tracepoint.c (_initialize_tracepoint): Add declaration.
10428 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10429 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10430 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10431 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10432 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10433 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10434 * tui/tui.c (_initialize_tui): Add declaration.
10435 * typeprint.c (_initialize_typeprint): Add declaration.
10436 * ui-style.c (_initialize_ui_style): Add declaration.
10437 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10438 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10439 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10440 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10441 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10442 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10443 * unittests/filtered_iterator-selftests.c
10444 (_initialize_filtered_iterator_selftests): Add declaration.
10445 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10446 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10447 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10448 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10449 * unittests/main-thread-selftests.c
10450 (_initialize_main_thread_selftests): Add declaration.
10451 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10452 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10453 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10454 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10455 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10456 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10457 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10458 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10459 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10460 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10461 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10462 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10463 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10464 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10465 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10466 declaration.
10467 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10468 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10469 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10470 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10471 * user-regs.c (_initialize_user_regs): Add declaration.
10472 * utils.c (_initialize_utils): Add declaration.
10473 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10474 * valops.c (_initialize_valops): Add declaration.
10475 * valprint.c (_initialize_valprint): Add declaration.
10476 * value.c (_initialize_values): Add declaration.
10477 * varobj.c (_initialize_varobj): Add declaration.
10478 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10479 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10480 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10481 * windows-nat.c (_initialize_windows_nat): Add declaration.
10482 (_initialize_check_for_gdb_ini): Add declaration.
10483 (_initialize_loadable): Add declaration.
10484 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10485 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10486 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10487 * xcoffread.c (_initialize_xcoffread): Add declaration.
10488 * xml-support.c (_initialize_xml_support): Add declaration.
10489 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10490 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10491 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10492 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10493
e2de1eec
SM
104942020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10495
10496 * regformats/regdat.sh: Generate declaration for init function.
10497
e0037b4c
SM
104982020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10499
10500 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10501 up.
10502 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10503 close_one_inferior>: New methods.
10504 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10505 pass down target to find_inferior_pid.
10506 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10507 Pass down target to find_inferior_ptid.
10508 (gdbsim_target::create_inferior): Pass down target to
10509 add_thread_silent.
10510 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10511 target down to find_inferior_ptid and switch_to_thread.
10512 (gdbsim_target::close): Update to call close_one_inferior.
10513 (struct resume_data): Remove.
10514 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10515 directly, rather than through a void pointer.
10516 (gdbsim_target::resume): Update to call resume_one_inferior.
10517
58920b5b
SM
105182020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10519
10520 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10521
4ec89149
PA
105222020-01-12 Pedro Alves <palves@redhat.com>
10523
10524 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10525 directly for the current inferior instead of
10526 discard_all_inferiors.
10527 (discard_all_inferiors): Delete.
10528
7c392d1d
TT
105292020-01-11 Tom Tromey <tom@tromey.com>
10530
10531 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10532 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10533 deprecated_safe_get_selected_frame.
10534
d9ebdab7
TBA
105352020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10536
10537 * inferior.c (print_inferior): Switch inferior before printing it.
10538
f3c469b9
PA
105392020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10540 Pedro Alves <palves@redhat.com>
10541
10542 * progspace-and-thread.c (switch_to_program_space_and_thread):
10543 Assert there's an inferior for PSPACE. Use
10544 switch_to_inferior_no_thread to switch the inferior too.
10545 * progspace.c (program_space::~program_space): Call
10546 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10547 (program_space::free_all_objfiles): Don't call clear_symtab_users
10548 here.
10549 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10550
65c574f6
PA
105512020-01-10 Pedro Alves <palves@redhat.com>
10552
10553 * NEWS: Mention multi-target debugging, "info connections", and
10554 "add-inferior -no-connection".
10555
2f4fcf00
PA
105562020-01-10 Pedro Alves <palves@redhat.com>
10557
10558 * infrun.c: Include "target-connection.h".
10559 (check_multi_target_resumption): New.
10560 (proceed): Call it.
10561 * target-connection.c (make_target_connection_string): Make
10562 extern.
10563 * target-connection.h (make_target_connection_string): Declare.
10564
121b3efd
PA
105652020-01-10 Pedro Alves <palves@redhat.com>
10566
10567 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10568 * inferior.c (uiout_field_connection): New function.
10569 (print_inferior): Add new "connection-id" column.
10570 (add_inferior_command): Show connection number/string of added
10571 inferior.
10572 * process-stratum-target.h
10573 (process_stratum_target::connection_string): New virtual method.
10574 (process_stratum_target::connection_number): New field.
10575 * remote.c (remote_target::connection_string): New override.
10576 * target-connection.c: New file.
10577 * target-connection.h: New file.
10578 * target.c (decref_target): Remove process_stratum targets from
10579 the connection list.
10580 (target_stack::push): Add process_stratum targets to the
10581 connection list.
10582
4f837581
PA
105832020-01-10 Pedro Alves <palves@redhat.com>
10584
10585 Revert:
10586 2016-04-12 Pedro Alves <palves@redhat.com>
10587 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10588 Remove references to name.
10589 * serial.h (struct serial) <name>: Delete.
10590
f4ec508e
PA
105912020-01-10 Pedro Alves <palves@redhat.com>
10592
10593 * gdbarch-selftests.c (register_to_value_test): Remove "target
10594 already pushed" check.
10595
5b6d1e4f
PA
105962020-01-10 Pedro Alves <palves@redhat.com>
10597 John Baldwin <jhb@FreeBSD.org>
10598
10599 * aarch64-linux-nat.c
10600 (aarch64_linux_nat_target::thread_architecture): Adjust.
10601 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10602 (task_command_1): Likewise.
10603 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10604 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10605 (aix_thread_target::store_registers)
10606 (aix_thread_target::thread_alive): Adjust.
10607 * amd64-fbsd-tdep.c: Include "inferior.h".
10608 (amd64fbsd_get_thread_local_address): Pass down target.
10609 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10610 thread's gdbarch instead of target_gdbarch.
10611 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10612 get_last_target_status.
10613 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10614 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10615 inferiors.
10616 (update_inserted_breakpoint_locations): Skip if inferiors with no
10617 execution.
10618 (update_global_location_list): When handling moribund locations,
10619 find representative inferior for location's pspace, and use thread
10620 count of its process_stratum target.
10621 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10622 * bsd-uthread.c (bsd_uthread_target::wait): Use
10623 as_process_stratum_target and adjust thread_change_ptid and
10624 add_thread calls.
10625 (bsd_uthread_target::update_thread_list): Use
10626 as_process_stratum_target and adjust find_thread_ptid,
10627 thread_change_ptid and add_thread calls.
10628 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10629 find_thread_ptid call.
10630 * corelow.c (add_to_thread_list): Adjust add_thread call.
10631 (core_target_open): Adjust add_thread_silent and thread_count
10632 calls.
10633 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10634 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10635 * event-top.c (async_disconnect): Pop targets from all inferiors.
10636 * exec.c (add_target_sections): Push exec target on all inferiors
10637 sharing the program space.
10638 (remove_target_sections): Remove the exec target from all
10639 inferiors sharing the program space.
10640 (exec_on_vfork): New.
10641 * exec.h (exec_on_vfork): Declare.
10642 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10643 Pass it down.
10644 (fbsd_nat_target::update_thread_list): Adjust.
10645 (fbsd_nat_target::resume): Adjust.
10646 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10647 down.
10648 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10649 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10650 get_thread_arch_regcache call.
10651 * fork-child.c (gdb_startup_inferior): Pass target down to
10652 startup_inferior and set_executing.
10653 * gdbthread.h (struct process_stratum_target): Forward declare.
10654 (add_thread, add_thread_silent, add_thread_with_info)
10655 (in_thread_list): Add process_stratum_target parameter.
10656 (find_thread_ptid(inferior*, ptid_t)): New overload.
10657 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10658 parameter.
10659 (all_threads()): Delete overload.
10660 (all_threads, all_non_exited_threads): Add process_stratum_target
10661 parameter.
10662 (all_threads_safe): Use brace initialization.
10663 (thread_count): Add process_stratum_target parameter.
10664 (set_resumed, set_running, set_stop_requested, set_executing)
10665 (threads_are_executing, finish_thread_state): Add
10666 process_stratum_target parameter.
10667 (switch_to_thread): Use is_current_thread.
10668 * i386-fbsd-tdep.c: Include "inferior.h".
10669 (i386fbsd_get_thread_local_address): Pass down target.
10670 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10671 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10672 have_inferiors check.
10673 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10674 (inf_ptrace_target::attach): Adjust.
10675 * infcall.c (run_inferior_call): Adjust.
10676 * infcmd.c (run_command_1): Pass target to
10677 scoped_finish_thread_state.
10678 (proceed_thread_callback): Skip inferiors with no execution.
10679 (continue_command): Rename 'all_threads' local to avoid hiding
10680 'all_threads' function. Adjust get_last_target_status call.
10681 (prepare_one_step): Adjust set_running call.
10682 (signal_command): Use user_visible_resume_target. Compare thread
10683 pointers instead of inferior_ptid.
10684 (info_program_command): Adjust to pass down target.
10685 (attach_command): Mark target's 'thread_executing' flag.
10686 (stop_current_target_threads_ns): New, factored out from ...
10687 (interrupt_target_1): ... this. Switch inferior before making
10688 target calls.
10689 * inferior-iter.h
10690 (struct all_inferiors_iterator, struct all_inferiors_range)
10691 (struct all_inferiors_safe_range)
10692 (struct all_non_exited_inferiors_range): Filter on
10693 process_stratum_target too. Remove explicit.
10694 * inferior.c (inferior::inferior): Push dummy target on target
10695 stack.
10696 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10697 Add process_stratum_target parameter, and pass it down.
10698 (have_live_inferiors): Adjust.
10699 (switch_to_inferior_and_push_target): New.
10700 (add_inferior_command, clone_inferior_command): Handle
10701 "-no-connection" parameter. Use
10702 switch_to_inferior_and_push_target.
10703 (_initialize_inferior): Mention "-no-connection" option in
10704 the help of "add-inferior" and "clone-inferior" commands.
10705 * inferior.h: Include "process-stratum-target.h".
10706 (interrupt_target_1): Use bool.
10707 (struct inferior) <push_target, unpush_target, target_is_pushed,
10708 find_target_beneath, top_target, process_target, target_at,
10709 m_stack>: New.
10710 (discard_all_inferiors): Delete.
10711 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10712 (all_inferiors, all_non_exited_inferiors): Add
10713 process_stratum_target parameter.
10714 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10715 (target_last_proc_target): New global.
10716 (follow_fork_inferior): Push target on new inferior. Pass target
10717 to add_thread_silent. Call exec_on_vfork. Handle target's
10718 reference count.
10719 (follow_fork): Adjust get_last_target_status call. Also consider
10720 target.
10721 (follow_exec): Push target on new inferior.
10722 (struct execution_control_state) <target>: New field.
10723 (user_visible_resume_target): New.
10724 (do_target_resume): Call target_async.
10725 (resume_1): Set target's threads_executing flag. Consider resume
10726 target.
10727 (commit_resume_all_targets): New.
10728 (proceed): Also consider resume target. Skip threads of inferiors
10729 with no execution. Commit resumtion in all targets.
10730 (start_remote): Pass current inferior to wait_for_inferior.
10731 (infrun_thread_stop_requested): Consider target as well. Pass
10732 thread_info pointer to clear_inline_frame_state instead of ptid.
10733 (infrun_thread_thread_exit): Consider target as well.
10734 (random_pending_event_thread): New inferior parameter. Use it.
10735 (do_target_wait): Rename to ...
10736 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10737 down.
10738 (threads_are_resumed_pending_p, do_target_wait): New.
10739 (prepare_for_detach): Adjust calls.
10740 (wait_for_inferior): New inferior parameter. Handle it. Use
10741 do_target_wait_1 instead of do_target_wait.
10742 (fetch_inferior_event): Adjust. Switch to representative
10743 inferior. Pass target down.
10744 (set_last_target_status): Add process_stratum_target parameter.
10745 Save target in global.
10746 (get_last_target_status): Add process_stratum_target parameter and
10747 handle it.
10748 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10749 (context_switch): Check inferior_ptid == null_ptid before calling
10750 inferior_thread().
10751 (get_inferior_stop_soon): Pass down target.
10752 (wait_one): Rename to ...
10753 (poll_one_curr_target): ... this.
10754 (struct wait_one_event): New.
10755 (wait_one): New.
10756 (stop_all_threads): Adjust.
10757 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10758 event's target.
10759 (switch_back_to_stepped_thread): Also consider target.
10760 (print_stop_event): Update.
10761 (normal_stop): Update. Also consider the resume target.
10762 * infrun.h (wait_for_inferior): Remove declaration.
10763 (user_visible_resume_target): New declaration.
10764 (get_last_target_status, set_last_target_status): New
10765 process_stratum_target parameter.
10766 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10767 process_stratum_target parameter, and use it.
10768 (clear_inline_frame_state (thread_info*)): New.
10769 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10770 process_stratum_target parameter.
10771 (clear_inline_frame_state (thread_info*)): Declare.
10772 * linux-fork.c (delete_checkpoint_command): Pass target down to
10773 find_thread_ptid.
10774 (checkpoint_command): Adjust.
10775 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10776 instead of just tweaking inferior_ptid.
10777 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10778 (exit_lwp): Pass target down to find_thread_ptid.
10779 (attach_proc_task_lwp_callback): Pass target down to
10780 add_thread/set_running/set_executing.
10781 (linux_nat_target::attach): Pass target down to
10782 thread_change_ptid.
10783 (get_detach_signal): Pass target down to find_thread_ptid.
10784 Consider last target status's target.
10785 (linux_resume_one_lwp_throw, resume_lwp)
10786 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10787 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10788 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10789 (linux_nat_target::async_wait_fd): New.
10790 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10791 target down.
10792 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10793 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10794 * linux-thread-db.c (struct thread_db_info::process_target): New
10795 field.
10796 (add_thread_db_info): Save target.
10797 (get_thread_db_info): New process_stratum_target parameter. Also
10798 match target.
10799 (delete_thread_db_info): New process_stratum_target parameter.
10800 Also match target.
10801 (thread_from_lwp): Adjust to pass down target.
10802 (thread_db_notice_clone): Pass down target.
10803 (check_thread_db_callback): Pass down target.
10804 (try_thread_db_load_1): Always push the thread_db target.
10805 (try_thread_db_load, record_thread): Pass target down.
10806 (thread_db_target::detach): Pass target down. Always unpush the
10807 thread_db target.
10808 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10809 target down. Always unpush the thread_db target.
10810 (find_new_threads_callback, thread_db_find_new_threads_2)
10811 (thread_db_target::update_thread_list): Pass target down.
10812 (thread_db_target::pid_to_str): Pass current inferior down.
10813 (thread_db_target::get_thread_local_address): Pass target down.
10814 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10815 target down.
10816 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10817 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10818 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10819 (procfs_init_inferior): Rename to ...
10820 (procfs_target::procfs_init_inferior): ... this and adjust.
10821 (procfs_target::create_inferior, procfs_notice_thread)
10822 (procfs_do_thread_registers): Adjust.
10823 * ppc-fbsd-tdep.c: Include "inferior.h".
10824 (ppcfbsd_get_thread_local_address): Pass down target.
10825 * proc-service.c (ps_xfer_memory): Switch current inferior and
10826 program space as well.
10827 (get_ps_regcache): Pass target down.
10828 * process-stratum-target.c
10829 (process_stratum_target::thread_address_space)
10830 (process_stratum_target::thread_architecture): Pass target down.
10831 * process-stratum-target.h
10832 (process_stratum_target::threads_executing): New field.
10833 (as_process_stratum_target): New.
10834 * ravenscar-thread.c
10835 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10836 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10837 down.
10838 * record-btrace.c (record_btrace_target::info_record): Adjust.
10839 (record_btrace_target::record_method)
10840 (record_btrace_target::record_is_replaying)
10841 (record_btrace_target::fetch_registers)
10842 (get_thread_current_frame_id, record_btrace_target::resume)
10843 (record_btrace_target::wait, record_btrace_target::stop): Pass
10844 target down.
10845 * record-full.c (record_full_wait_1): Switch to event thread.
10846 Pass target down.
10847 * regcache.c (regcache::regcache)
10848 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10849 process_stratum_target parameter and handle it.
10850 (current_thread_target): New global.
10851 (get_thread_regcache): Add process_stratum_target parameter and
10852 handle it. Switch inferior before calling target method.
10853 (get_thread_regcache): Pass target down.
10854 (get_thread_regcache_for_ptid): Pass target down.
10855 (registers_changed_ptid): Add process_stratum_target parameter and
10856 handle it.
10857 (registers_changed_thread, registers_changed): Pass target down.
10858 (test_get_thread_arch_aspace_regcache): New.
10859 (current_regcache_test): Define a couple local test_target_ops
10860 instances and use them for testing.
10861 (readwrite_regcache): Pass process_stratum_target parameter.
10862 (cooked_read_test, cooked_write_test): Pass mock_target down.
10863 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10864 (get_thread_arch_aspace_regcache): Add process_stratum_target
10865 parameter.
10866 (regcache::target): New method.
10867 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10868 (regcache::registers_changed_ptid): Add process_stratum_target
10869 parameter.
10870 (regcache::m_target): New field.
10871 (registers_changed_ptid): Add process_stratum_target parameter.
10872 * remote.c (remote_state::supports_vCont_probed): New field.
10873 (remote_target::async_wait_fd): New method.
10874 (remote_unpush_and_throw): Add remote_target parameter.
10875 (get_current_remote_target): Adjust.
10876 (remote_target::remote_add_inferior): Push target.
10877 (remote_target::remote_add_thread)
10878 (remote_target::remote_notice_new_inferior)
10879 (get_remote_thread_info): Pass target down.
10880 (remote_target::update_thread_list): Skip threads of inferiors
10881 bound to other targets. (remote_target::close): Don't discard
10882 inferiors. (remote_target::add_current_inferior_and_thread)
10883 (remote_target::process_initial_stop_replies)
10884 (remote_target::start_remote)
10885 (remote_target::remote_serial_quit_handler): Pass down target.
10886 (remote_target::remote_unpush_target): New remote_target
10887 parameter. Unpush the target from all inferiors.
10888 (remote_target::remote_unpush_and_throw): New remote_target
10889 parameter. Pass it down.
10890 (remote_target::open_1): Check whether the current inferior has
10891 execution instead of checking whether any inferior is live. Pass
10892 target down.
10893 (remote_target::remote_detach_1): Pass down target. Use
10894 remote_unpush_target.
10895 (extended_remote_target::attach): Pass down target.
10896 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10897 (remote_target::append_resumption): Pass down target.
10898 (remote_target::append_pending_thread_resumptions)
10899 (remote_target::remote_resume_with_hc, remote_target::resume)
10900 (remote_target::commit_resume): Pass down target.
10901 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10902 (remote_target::interrupt_query)
10903 (remote_target::remove_new_fork_children)
10904 (remote_target::check_pending_events_prevent_wildcard_vcont)
10905 (remote_target::remote_parse_stop_reply)
10906 (remote_target::process_stop_reply): Pass down target.
10907 (first_remote_resumed_thread): New remote_target parameter. Pass
10908 it down.
10909 (remote_target::wait_as): Pass down target.
10910 (unpush_and_perror): New remote_target parameter. Pass it down.
10911 (remote_target::readchar, remote_target::remote_serial_write)
10912 (remote_target::getpkt_or_notif_sane_1)
10913 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10914 down target.
10915 (remote_target::mourn_inferior): Pass down target. Use
10916 remote_unpush_target.
10917 (remote_target::core_of_thread)
10918 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10919 (remote_target::pid_to_exec_file)
10920 (remote_target::thread_handle_to_thread_info): Pass down target.
10921 (remote_target::async_wait_fd): New.
10922 * riscv-fbsd-tdep.c: Include "inferior.h".
10923 (riscv_fbsd_get_thread_local_address): Pass down target.
10924 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10925 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10926 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10927 Adjust.
10928 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10929 * solib-svr4.c (enable_break): Pass down target.
10930 * spu-multiarch.c (parse_spufs_run): Pass down target.
10931 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10932 * target-delegates.c: Regenerate.
10933 * target.c (g_target_stack): Delete.
10934 (current_top_target): Return the current inferior's top target.
10935 (target_has_execution_1): Refer to the passed-in inferior's top
10936 target.
10937 (target_supports_terminal_ours): Check whether the initial
10938 inferior was already created.
10939 (decref_target): New.
10940 (target_stack::push): Incref/decref the target.
10941 (push_target, push_target, unpush_target): Adjust.
10942 (target_stack::unpush): Defref target.
10943 (target_is_pushed): Return bool. Adjust to refer to the current
10944 inferior's target stack.
10945 (dispose_inferior): Delete, and inline parts ...
10946 (target_preopen): ... here. Only dispose of the current inferior.
10947 (target_detach): Hold strong target reference while detaching.
10948 Pass target down.
10949 (target_thread_name): Add assertion.
10950 (target_resume): Pass down target.
10951 (target_ops::beneath, find_target_at): Adjust to refer to the
10952 current inferior's target stack.
10953 (get_dummy_target): New.
10954 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10955 has a thread running.
10956 (initialize_targets): Rename to ...
10957 (_initialize_target): ... this.
10958 * target.h: Include "gdbsupport/refcounted-object.h".
10959 (struct target_ops): Inherit refcounted_object.
10960 (target_ops::shortname, target_ops::longname): Make const.
10961 (target_ops::async_wait_fd): New method.
10962 (decref_target): Declare.
10963 (struct target_ops_ref_policy): New.
10964 (target_ops_ref): New typedef.
10965 (get_dummy_target): Declare function.
10966 (target_is_pushed): Return bool.
10967 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10968 (all_matching_threads_iterator::all_matching_threads_iterator):
10969 Handle filter target.
10970 * thread-iter.h (struct all_matching_threads_iterator, struct
10971 all_matching_threads_range, class all_non_exited_threads_range):
10972 Filter by target too. Remove explicit.
10973 * thread.c (threads_executing): Delete.
10974 (inferior_thread): Pass down current inferior.
10975 (clear_thread_inferior_resources): Pass down thread pointer
10976 instead of ptid_t.
10977 (add_thread_silent, add_thread_with_info, add_thread): Add
10978 process_stratum_target parameter. Use it for thread and inferior
10979 searches.
10980 (is_current_thread): New.
10981 (thread_info::deletable): Use it.
10982 (find_thread_ptid, thread_count, in_thread_list)
10983 (thread_change_ptid, set_resumed, set_running): New
10984 process_stratum_target parameter. Pass it down.
10985 (set_executing): New process_stratum_target parameter. Pass it
10986 down. Adjust reference to 'threads_executing'.
10987 (threads_are_executing): New process_stratum_target parameter.
10988 Adjust reference to 'threads_executing'.
10989 (set_stop_requested, finish_thread_state): New
10990 process_stratum_target parameter. Pass it down.
10991 (switch_to_thread): Also match inferior.
10992 (switch_to_thread): New process_stratum_target parameter. Pass it
10993 down.
10994 (update_threads_executing): Reimplement.
10995 * top.c (quit_force): Pop targets from all inferior.
10996 (gdb_init): Don't call initialize_targets.
10997 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10998 Declare.
10999 (windows_add_thread, windows_delete_thread): Adjust.
11000 (get_windows_debug_event): Rename to ...
11001 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11002 * tracefile-tfile.c (tfile_target_open): Pass down target.
11003 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11004 Forward declare.
11005 (switch_to_thread): Add process_stratum_target parameter.
11006 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11007 parameter. Use it.
11008 (mi_on_resume): Pass target down.
11009 * nat/fork-inferior.c (startup_inferior): Add
11010 process_stratum_target parameter. Pass it down.
11011 * nat/fork-inferior.h (startup_inferior): Add
11012 process_stratum_target parameter.
11013 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11014
75c6c844
PA
110152020-01-10 Pedro Alves <palves@redhat.com>
11016
11017 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11018 directly. Instead find the first thread in the thread list and
11019 use switch_to_thread.
11020
78f2c40a
PA
110212020-01-10 Pedro Alves <palves@redhat.com>
11022
11023 * remote.c (remote_target::remote_add_inferior): Don't bind a
11024 process to the current inferior if the current inferior is already
11025 bound to a process.
11026
e7af6c70
TBA
110272020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11028 Pedro Alves <palves@redhat.com>
11029
11030 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11031 If no process is specified, return null_ptid instead of
11032 inferior_ptid.
11033 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11034 TARGET_WAITKIND_SIGNALLED with no pid.
11035
31ba933e
PA
110362020-01-10 Pedro Alves <palves@redhat.com>
11037
11038 * remote.c (first_remote_resumed_thread): New.
11039 (remote_target::wait_as): Use it as default event_ptid instead of
11040 inferior_ptid.
11041
735fc2ca
PA
110422020-01-10 Pedro Alves <palves@redhat.com>
11043
11044 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11045
c17e02e1
PA
110462020-01-10 Pedro Alves <palves@redhat.com>
11047
11048 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11049 not -1.
11050
ab1ddbcf
PA
110512020-01-10 Pedro Alves <palves@redhat.com>
11052
11053 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11054 ptid to get_last_target_status.
11055 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11056 ptid to get_last_target_status.
11057 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11058 get_last_target_status.
11059 (info_program_command): Don't pass a target_waitstatus to
11060 get_last_target_status.
11061 * infrun.c (init_wait_for_inferior): Use
11062 nullify_last_target_wait_ptid.
11063 (get_last_target_status): Handle nullptr arguments.
11064 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11065 (print_stop_event): Don't pass a ptid to get_last_target_status.
11066 (normal_stop): Don't pass a ptid to get_last_target_status.
11067 * infrun.h (get_last_target_status, set_last_target_status): Move
11068 comments here and update.
11069 (nullify_last_target_wait_ptid): Declare.
11070 * linux-fork.c (fork_load_infrun_state): Remove local extern
11071 declaration of nullify_last_target_wait_ptid.
11072 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11073 to get_last_target_status.
11074
f3f8ece4
PA
110752020-01-10 Pedro Alves <palves@redhat.com>
11076
11077 * gdbthread.h (scoped_restore_current_thread)
11078 <dont_restore, restore, m_dont_restore>: Declare.
11079 * thread.c (thread_alive): Add assertion. Return bool.
11080 (switch_to_thread_if_alive): New.
11081 (prune_threads): Switch inferior/thread.
11082 (print_thread_info_1): Switch thread before calling target methods.
11083 (scoped_restore_current_thread::restore): New, factored out from
11084 ...
11085 (scoped_restore_current_thread::~scoped_restore_current_thread):
11086 ... this.
11087 (scoped_restore_current_thread::scoped_restore_current_thread):
11088 Add assertion.
11089 (thread_apply_all_command, thread_select): Use
11090 switch_to_thread_if_alive.
11091 * infrun.c (proceed, restart_threads, handle_signal_stop)
11092 (switch_back_to_stepped_thread): Switch current thread before
11093 calling target methods.
11094
db2d40f7
PA
110952020-01-10 Pedro Alves <palves@redhat.com>
11096
11097 * inferior.c (switch_to_inferior_no_thread): New function,
11098 factored out from ...
11099 (inferior_command): ... here.
11100 * inferior.h (switch_to_inferior_no_thread): Declare.
11101 * mi/mi-main.c (run_one_inferior): Use
11102 switch_to_inferior_no_thread.
11103
bd420a2d
PA
111042020-01-10 Pedro Alves <palves@redhat.com>
11105
11106 * infcmd.c (kill_command): Remove dead code.
11107
ddf5db90
PA
111082020-01-10 Pedro Alves <palves@redhat.com>
11109
11110 * remote.c (remote_target::mourn_inferior): No longer check
11111 whether the target is running.
11112
5018ce90
PA
111132020-01-10 Pedro Alves <palves@redhat.com>
11114
11115 * corelow.c (core_target::has_execution): Change parameter type to
11116 inferior pointer.
11117 * inferior.c (number_of_live_inferiors): Use
11118 inferior::has_execution instead of target_has_execution_1.
11119 * inferior.h (inferior::has_execution): New.
11120 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11121 inferior::has_execution instead of target_has_execution_1.
11122 * process-stratum-target.c
11123 (process_stratum_target::has_execution): Change parameter type to
11124 inferior pointer. Check the inferior's PID instead of
11125 inferior_ptid.
11126 * process-stratum-target.h
11127 (process_stratum_target::has_execution): Change parameter type to
11128 inferior pointer.
11129 * record-full.c (record_full_core_target::has_execution): Change
11130 parameter type to inferior pointer.
11131 * target.c (target_has_execution_1): Change parameter type to
11132 inferior pointer.
11133 (target_has_execution_current): Adjust.
11134 * target.h (target_ops::has_execution): Change parameter type to
11135 inferior pointer.
11136 (target_has_execution_1): Change parameter type to inferior
11137 pointer. Change return type to bool.
11138 * tracefile.h (tracefile_target::has_execution): Change parameter
11139 type to inferior pointer.
11140
74375d18
PA
111412020-01-10 Pedro Alves <palves@redhat.com>
11142
11143 * exceptions.c (print_flush): Remove current_top_target() check.
11144
acdf84a6
PA
111452020-01-10 Pedro Alves <palves@redhat.com>
11146
11147 * remote.c (show_remote_exec_file): Show the current inferior's
11148 exec-file instead of the command variable's value.
11149
ec506636
PA
111502020-01-10 Pedro Alves <palves@redhat.com>
11151
11152 * record-full.c (record_full_resume_ptid): New global.
11153 (record_full_target::resume): Set it.
11154 (record_full_wait_1): Use record_full_resume_ptid instead of
11155 inferior_ptid.
11156
873657b9
PA
111572020-01-10 Pedro Alves <palves@redhat.com>
11158
11159 * gdbthread.h (scoped_restore_current_thread)
11160 <dont_restore, restore, m_dont_restore>: Declare.
11161 * thread.c (thread_alive): Add assertion. Return bool.
11162 (switch_to_thread_if_alive): New.
11163 (prune_threads): Switch inferior/thread.
11164 (print_thread_info_1): Switch thread before calling target methods.
11165 (scoped_restore_current_thread::restore): New, factored out from
11166 ...
11167 (scoped_restore_current_thread::~scoped_restore_current_thread):
11168 ... this.
11169 (scoped_restore_current_thread::scoped_restore_current_thread):
11170 Add assertion.
11171 (thread_apply_all_command, thread_select): Use
11172 switch_to_thread_if_alive.
11173
7f0ae84c
GB
111742020-01-10 George Barrett <bob@bob131.so>
11175
11176 * stap-probe.c (stap_modify_semaphore): Don't check for null
11177 semaphores.
11178 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11179 for null semaphores.
11180
f5a7c406
AB
111812020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11182
11183 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11184 all source windows, and maintain horizontal scroll status while
11185 doing so.
11186
9ae6bf64
TT
111872020-01-09 Tom Tromey <tom@tromey.com>
11188
11189 PR tui/18932:
11190 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11191 update_source_window, not print_source_lines.
11192
b2efe70c
AB
111932020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11194
11195 * tui/tui.c (tui_enable): Register tui hooks after calling
11196 tui_display_main.
11197
5f23a082
CB
111982020-01-09 Christian Biesinger <cbiesinger@google.com>
11199
11200 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11201
3061113b
SM
112022020-01-08 Simon Marchi <simon.marchi@efficios.com>
11203
11204 * thread.c (print_thread_info_1): Fix indentation.
11205
57d75002
CB
112062020-01-09 Christian Biesinger <cbiesinger@google.com>
11207
11208 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11209 unique_xmalloc_ptr outside the if to always free the demangled name.
11210
6a053cb1
TT
112112020-01-08 Tom Tromey <tromey@adacore.com>
11212
11213 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11214 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11215 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11216 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11217 Remove.
11218 (section_offsets): New typedef.
11219 * symtab.c (fixup_section, get_msymbol_address): Update.
11220 * symmisc.c (dump_msymbols): Update.
11221 * symfile.h (relative_addr_info_to_section_offsets)
11222 (symfile_map_offsets_to_segments): Update.
11223 * symfile.c (build_section_addr_info_from_objfile)
11224 (init_objfile_sect_indices): Update.
11225 (struct place_section_arg): Change type of "offsets".
11226 (place_section): Update.
11227 (relative_addr_info_to_section_offsets): Change type of
11228 "section_offsets". Remove "num_sections" parameter.
11229 (default_symfile_offsets, syms_from_objfile_1)
11230 (set_objfile_default_section_offset): Update.
11231 (reread_symbols): No need to preserve section offsets by hand.
11232 (symfile_map_offsets_to_segments): Change type of "offsets".
11233 * stap-probe.c (relocate_address): Update.
11234 * stabsread.h (process_one_symbol): Update.
11235 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11236 (solib_target_relocate_section_addresses): Update.
11237 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11238 Update.
11239 * solib-frv.c (frv_relocate_main_executable): Update.
11240 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11241 * solib-aix.c (solib_aix_get_section_offsets): Change return
11242 type.
11243 (solib_aix_solib_create_inferior_hook): Update.
11244 * remote.c (remote_target::get_offsets): Update.
11245 * psymtab.c (find_pc_sect_psymtab): Update.
11246 * psympriv.h (struct partial_symbol) <address, text_low,
11247 text_high>: Update.
11248 * objfiles.h (obj_section_offset): Update.
11249 (struct objfile) <section_offsets>: Change type.
11250 <num_sections>: Remove.
11251 (objfile_relocate): Update.
11252 * objfiles.c (entry_point_address_query): Update
11253 (relocate_one_symbol): Change type of "section_offsets".
11254 (objfile_relocate1, objfile_relocate1): Change type of
11255 "new_offsets".
11256 (objfile_rebase1): Update.
11257 * mipsread.c (mipscoff_symfile_read): Update.
11258 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11259 parameter.
11260 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11261 (parse_external, psymtab_to_symtab_1): Update.
11262 * machoread.c (macho_symfile_offsets): Update.
11263 * ia64-tdep.c (ia64_find_unwind_table): Update.
11264 * hppa-tdep.c (read_unwind_info): Update.
11265 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11266 * dwarf2read.c (create_addrmap_from_index)
11267 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11268 (process_psymtab_comp_unit_reader, add_partial_symbol)
11269 (add_partial_subprogram, process_full_comp_unit)
11270 (read_file_scope, read_func_scope, read_lexical_block_scope)
11271 (read_call_site_scope, dwarf2_rnglists_process)
11272 (dwarf2_ranges_process, dwarf2_ranges_read)
11273 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11274 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11275 Update.
11276 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11277 Update.
11278 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11279 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11280 (process_one_symbol): Change type of "section_offsets".
11281 * ctfread.c (get_objfile_text_range): Update.
11282 * coffread.c (coff_symtab_read, enter_linenos)
11283 (process_coff_symbol): Update.
11284 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11285 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11286
456e800a
TT
112872020-01-08 Tom Tromey <tromey@adacore.com>
11288
11289 * dwarf2read.c (parse_macro_definition): Use std::string.
11290 (parse_macro_definition): Likewise.
11291
6dfa2fc2
TT
112922020-01-08 Tom Tromey <tromey@adacore.com>
11293
11294 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11295 (ATTR_ALLOC_CHUNK): Remove.
11296
421d1616
TT
112972020-01-08 Tom Tromey <tromey@adacore.com>
11298
11299 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11300
43816ebc
TT
113012020-01-08 Tom Tromey <tromey@adacore.com>
11302
11303 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11304 (dwarf2_compute_name, open_dwo_file): Likewise.
11305 (process_enumeration_scope): Use std::vector.
11306 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11307 (partial_die_info::fixup, dwarf2_start_subfile)
11308 (guess_full_die_structure_name, dwarf2_name): Likewise.
11309 (determine_prefix): Update.
11310 (guess_full_die_structure_name): Make return type const.
11311 (partial_die_full_name): Return unique_xmalloc_ptr.
11312 (DW_FIELD_ALLOC_CHUNK): Remove.
11313
4212d509
TT
113142020-01-07 Tom Tromey <tromey@adacore.com>
11315
11316 PR build/24937:
11317 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11318
06a6207a
JT
113192020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11320
11321 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11322
153d79c4
AB
113232020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11324
11325 * stack.c (print_frame_info): Move disassemble_next_line code
11326 inside source_print block.
11327
66182876
EZ
113282020-01-06 Eli Zaretskii <eliz@gnu.org>
11329
11330 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11331 gdb/signals.h, as we are now using native signal symbols.
11332
cbfa8581
SV
113332020-01-06 Shahab Vahedi <shahab@synopsys.com>
11334
11335 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11336 overflow by an early check of content vs threshold.
aac66a4c 11337 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11338 Likewise.
11339
3f602821
EZ
113402020-01-06 Eli Zaretskii <eliz@gnu.org>
11341
11342 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11343
a08c904d
JT
113442020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11345
11346 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11347 export table if no section contains it's RVA.
11348
89a65580
EZ
113492020-01-06 Eli Zaretskii <eliz@gnu.org>
11350
11351 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11352
8b7fcda2
HD
113532020-01-06 Hannes Domani <ssbssa@yahoo.de>
11354
11355 * source.c (print_source_lines_base): Set last_line_listed.
11356
a61b4f69
SV
113572020-01-06 Shahab Vahedi <shahab@synopsys.com>
11358
11359 * tui/tui-disasm.c: Remove trailing spaces.
11360
559e7e50
EZ
113612020-01-06 Eli Zaretskii <eliz@gnu.org>
11362 Pedro Alves <palves@redhat.com>
11363
11364 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11365 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11366 (windows_gdb_signal_to_target): New function, uses the above
11367 enumeration to convert GDB internal signal codes to equivalent
11368 Windows codes.
11369 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11370 * windows-nat.c: Include "gdb_wait.h".
11371 (get_windows_debug_event): Extract the fatal exception from the
11372 exit status and convert to the equivalent Posix signal number.
11373 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11374 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11375 * gdbsupport/gdb_wait.c: New file, implements
11376 windows_status_to_termsig.
11377 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11378 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11379
f2302a34
AB
113802020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11381
11382 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11383 show_layout.
11384
6a5206eb
LM
113852020-01-05 Luis Machado <luis.machado@linaro.org>
11386
11387 * aarch64-linux-nat.c
11388 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11389 and bfd_mach_aarch64.
11390
6ec1d75e
PW
113912020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11392
11393 * ui-file.c (stdio_file::can_emit_style_escape)
11394 (tee_file::can_emit_style_escape): Ensure style is used also on
11395 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11396 to gdb_stdout.
11397 * main.c (set_gdb_data_directory): Use file style to output the
11398 warning that the given pathname is not a directory.
11399 * top.c (show_history_filename, gdb_safe_append_history)
11400 (show_gdb_datadir): Use file style.
11401
44f81a76
HD
114022020-01-03 Hannes Domani <ssbssa@yahoo.de>
11403
11404 * solib-target.c (struct lm_info_target):
11405 Change offsets to be a unique_xmalloc_ptr.
11406 (solib_target_relocate_section_addresses): Update.
11407
25057eb0
HD
114082020-01-03 Hannes Domani <ssbssa@yahoo.de>
11409
11410 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11411
6e2118f5
BE
114122020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11413
11414 * MAINTAINERS (Write After Approval): Add myself.
11415
8133c7dc
LM
114162020-01-02 Luis Machado <luis.machado@linaro.org>
11417
11418 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11419 Cell BE architecture.
11420 * target.h (struct target_ops) <thread_architecture>: Likewise.
11421
48189bec
HD
114222020-01-01 Hannes Domani <ssbssa@yahoo.de>
11423
11424 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11425
ead1063b
HD
114262020-01-01 Hannes Domani <ssbssa@yahoo.de>
11427
11428 * MAINTAINERS (Write After Approval): Add myself.
11429
e5d78223
JB
114302020-01-01 Joel Brobecker <brobecker@adacore.com>
11431
11432 * gdbarch.sh: Update copyright year range of generated files.
11433
b811d2c2
JB
114342020-01-01 Joel Brobecker <brobecker@adacore.com>
11435
11436 Update copyright year range in all GDB files.
11437
5f4def5c
JB
114382020-01-01 Joel Brobecker <brobecker@adacore.com>
11439
11440 * copyright.py: Convert to Python 3.
11441
51fd4002
JB
114422020-01-01 Joel Brobecker <brobecker@adacore.com>
11443
11444 * copyright.py: Adapt after move of gnulib directory from gdb
11445 directory to toplevel directory.
11446
5fb651f2
JB
114472020-01-01 Joel Brobecker <brobecker@adacore.com>
11448
11449 * copyright.py (main): Exit if run from the wrong directory.
11450
5dd8bf88
JB
114512020-01-01 Joel Brobecker <brobecker@adacore.com>
11452
11453 * top.c (print_gdb_version): Change copyright year to 2020.
11454
9f71dacb 114552020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11456
9f71dacb 11457 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11458
9f71dacb 11459For older changes see ChangeLog-2019.
c906108c
SS
11460\f
11461Local Variables:
11462mode: change-log
11463left-margin: 8
11464fill-column: 74
11465version-control: never
57da7796 11466coding: utf-8
c906108c 11467End: