]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Adjust coredump-filter.exp to account for NT_FILE note handling
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9c5ec5c2
KB
12020-07-22 Kevin Buettner <kevinb@redhat.com>
2
3 * linux-tdep.c (dump_note_entry_p): New function.
4 (linux_dump_mapping_p_ftype): New typedef.
5 (linux_find_memory_regions_full): Add new parameter,
6 should_dump_mapping_p.
7 (linux_find_memory_regions): Adjust call to
8 linux_find_memory_regions_full.
9 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
10 call to linux_find_memory_regions_full.
11
db082f59
KB
122020-07-22 Kevin Buettner <kevinb@redhat.com>
13
14 * corelow.c (solist.h, unordered_map): Include.
15 (class core_target): Add field m_core_file_mappings and
16 method build_file_mappings.
17 (core_target::core_target): Call build_file_mappings.
18 (core_target::~core_target): Free memory associated with
19 m_core_file_mappings.
20 (core_target::build_file_mappings): New method.
21 (core_target::xfer_partial): Use m_core_file_mappings
22 for memory transfers.
23 * linux-tdep.c (linux_read_core_file_mappings): New
24 function.
25 (linux_core_info_proc_mappings): Rewrite to use
26 linux_read_core_file_mappings.
27 (linux_init_abi): Register linux_read_core_file_mappings.
28
7e183d27
KB
292020-07-22 Kevin Buettner <kevinb@redhat.com>
30
31 * arch-utils.c (default_read_core_file_mappings): New function.
32 * arch-utils.c (default_read_core_file_mappings): Declare.
33 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
34 * gdbarch.h, gdbarch.c: Regenerate.
35
2735d421
KB
362020-07-22 Kevin Buettner <kevinb@redhat.com>
37
38 PR corefiles/25631
39 * corelow.c (core_target:xfer_partial): Revise
40 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
41 case after first checking the stratum beneath the core
42 target.
43 (has_all_memory): Return true.
44 * target.c (raw_memory_xfer_partial): Revise comment
45 regarding use of has_all_memory.
46
e56cb451
KB
472020-07-22 Kevin Buettner <kevinb@redhat.com>
48
49 * exec.h (section_table_xfer_memory): Revise declaration,
50 replacing section name parameter with an optional callback
51 predicate.
52 * exec.c (section_table_xfer_memory): Likewise.
53 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
54 of section_table_xfer_memory.
55
32fa152e
TT
562020-07-22 Tom Tromey <tromey@adacore.com>
57
58 * mi/mi-cmd-stack.c (list_args_or_locals): Use
59 lookup_symbol_search_name.
60
a67a1c41
AB
612020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
62
63 * python/py-registers.c (gdbpy_register_object_data_init): Remove
64 redundant local variable.
65 (gdbpy_get_register_descriptor): Extract descriptor vector as a
66 reference, not pointer, update code accordingly.
67
a7b4ff4f
SM
682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
69 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
70
71 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
72 * jit.c (jit_breakpoint_re_set_internal): Use the
73 `skip_jit_symbol_lookup` field.
74
2340e834
SM
752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
76 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
77
78 * jit.c (jit_read_descriptor): Define the descriptor address once,
79 use twice.
80 (jit_breakpoint_deleted): Move the declaration of the loop variable
81 `iter` into the loop header.
82 (jit_breakpoint_re_set_internal): Move the declaration of the local
83 variable `objf_data` to the first point of definition.
84 (jit_event_handler): Move the declaration of local variables
85 `code_entry`, `entry_addr`, and `objf` to their first point of use.
86 Rename `objf` to `jited`.
87
c1072906
SM
882020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
89
90 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
91 Remove.
92 * jit.c (get_jiter_objfile_data): Update.
93
c8474dc3
TBA
942020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
95 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * jit.c (struct jit_program_space_data): Remove.
98 (jit_program_space_key): Remove.
99 (jiter_objfile_data::~jiter_objfile_data): Remove program space
100 stuff.
101 (get_jit_program_space_data): Remove.
102 (jit_breakpoint_deleted): Iterate on all of the program space's
103 objfiles.
104 (jit_inferior_init): Likewise.
105 (jit_breakpoint_re_set_internal): Likewise. Also change return
106 type to void.
107 (jit_breakpoint_re_set): Pass current_program_space to
108 jit_breakpoint_re_set_internal.
109
77208eb7
SM
1102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
111
112 * jit.h (struct jiter_objfile_data) <cached_code_address,
113 jit_breakpoint>: Move to here from ...
114 * jit.c (jit_program_space_data): ... here.
115 (jiter_objfile_data::~jiter_objfile_data): Update.
116 (jit_breakpoint_deleted): Update.
117 (jit_breakpoint_re_set_internal): Update.
118
8c1c720f
SM
1192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
120
121 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
122 checks.
123 (jit_read_descriptor): Remove NULL check.
124 (jit_event_handler): Add an assertion.
125
0e74a041
SM
1262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * jit.h (struct jit_objfile_data): Split into...
129 (struct jiter_objfile_data): ... this ...
130 (struct jited_objfile_data): ... and this.
131 * objfiles.h (struct objfile) <jit_data>: Remove.
132 <jiter_data, jited_data>: New fields.
133 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
134 (jiter_objfile_data::~jiter_objfile_data): ... this.
135 (get_jit_objfile_data): Rename to ...
136 (get_jiter_objfile_data): ... this.
137 (add_objfile_entry): Update.
138 (jit_read_descriptor): Use get_jiter_objfile_data.
139 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
140 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
141 (jit_inferior_exit_hook): Use objfile's jited_data field.
142
238b5c9f
SM
1432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * jit.h: Forward-declare `struct minimal_symbol`.
146 (struct jit_objfile_data): Migrate to here from jit.c; also add a
147 constructor, destructor, and an objfile* field.
148 * jit.c (jit_objfile_data): Remove.
149 (struct jit_objfile_data): Migrate from here to jit.h.
150 (jit_objfile_data::~jit_objfile_data): New destructor
151 implementation with code moved from free_objfile_data.
152 (free_objfile_data): Delete.
153 (get_jit_objfile_data): Update to use the jit_data field of objfile.
154 (jit_find_objf_with_entry_addr): Ditto.
155 (jit_inferior_exit_hook): Ditto.
156 (_initialize_jit): Remove the call to
157 register_objfile_data_with_cleanup.
158 * objfiles.h (struct objfile) <jit_data>: New field.
159
fe053b9e
TBA
1602020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
161
162 * jit.h: Forward-declare `struct objfile`.
163 (jit_event_handler): Add a second parameter, the JITer objfile.
164 * jit.c (jit_read_descriptor): Change the signature to take the
165 JITer objfile as an argument instead of the jit_program_space_data.
166 (jit_inferior_init): Update the call to jit_read_descriptor.
167 (jit_event_handler): Use the new JITer objfile argument when calling
168 jit_read_descriptor.
169 * breakpoint.c (handle_jit_event): Update the call to
170 jit_event_handler to pass the JITer objfile.
171
4cec0c66
JB
1722020-07-21 John Baldwin <jhb@FreeBSD.org>
173
174 * gdbarch.c: Regenerate.
175 * gdbarch.h: Regenerate.
176 * gdbarch.sh (handle_segmentation_fault): Remove method.
177 * infrun.c (handle_segmentation_fault): Remove.
178 (print_signal_received_reason): Remove call to
179 handle_segmentation_fault.
180
0e42f66a
JB
1812020-07-21 John Baldwin <jhb@FreeBSD.org>
182
183 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
184 Rename to sparc64_linux_report_signal_info and add siggnal
185 argument.
186 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
187 instead of sparc64_linux_handle_segmentation_fault.
188
77bdfeb2
JB
1892020-07-21 John Baldwin <jhb@FreeBSD.org>
190
191 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
192 i386_linux_report_signal_info instead of
193 i386_linux_handle_segmentation_fault.
194 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
195 to i386_linux_report_signal_info and add siggnal argument.
196 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
197 of i386_linux_handle_segmentation_fault.
198 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
199 to i386_linux_report_signal_info and add siggnal argument.
200
ad97bfc5
JB
2012020-07-21 John Baldwin <jhb@FreeBSD.org>
202
203 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
204 hook if present.
205
272bb05c
JB
2062020-07-21 John Baldwin <jhb@FreeBSD.org>
207
208 * gdbarch.c: Regenerate.
209 * gdbarch.h: Regenerate.
210 * gdbarch.sh (report_signal_info): New method.
211 * infrun.c (print_signal_received_reason): Invoke gdbarch
212 report_signal_info hook if present.
213
baf8791e
AB
2142020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
215
216 * python/py-registers.c : Add 'unordered_map' include.
217 (gdbpy_new_reggroup): Renamed to...
218 (gdbpy_get_reggroup): ...this. Update to only create register
219 group descriptors when needed.
220 (gdbpy_reggroup_iter_next): Update.
221
f7306dac
AB
2222020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
223
224 * python/py-registers.c (gdbpy_register_object_data): New static
225 global.
226 (gdbpy_register_object_data_init): New function.
227 (gdbpy_new_register_descriptor): Renamed to...
228 (gdbpy_get_register_descriptor): ...this, and update to reuse
229 existing register descriptors where possible.
230 (gdbpy_register_descriptor_iter_next): Update.
231 (gdbpy_initialize_registers): Register new gdbarch data.
232
05c309a8
SM
2332020-07-21 Simon Marchi <simon.marchi@efficios.com>
234
235 * linux-nat.c (stopped_pids): Make static.
236
d1fd641e
SM
2372020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
238
239 PR ada/26235
240 * gdbtypes.c (ada_discrete_type_low_bound,
241 ada_discrete_type_high_bound): Handle undefined bounds.
242
1de14d77
KR
2432020-07-21 Kamil Rytarowski <n54@gmx.com>
244
245 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
246 declaration.
247 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
248 function.
249
ed810cc7
JB
2502020-07-20 John Baldwin <jhb@FreeBSD.org>
251
252 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
253 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
254 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
255 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
256 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
257 method.
258
ae5369e7
LC
2592020-07-20 Ludovic Courtès <ludo@gnu.org>
260
261 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
262 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
263 which are deprecated in Guile 3.0.
264 * configure.ac (try_guile_versions): Add "guile-3.0".
265 * configure (try_guile_versions): Regenerate.
266 * NEWS: Update entry.
267
68cf161c
LC
2682020-07-20 Ludovic Courtès <ludo@gnu.org>
269 Doug Evans <dje@google.com>
270
271 PR gdb/21104
272 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
273 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
274 USING_GUILE_BEFORE_2_2.
275 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
276 Change type to 'scm_t_port_type *'.
277 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
278 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
279 parameter and honor it. Update callers.
280 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
281 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
282 functions.
283 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
284 USING_GUILE_BEFORE_2_2.
285 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
286 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
287 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
288 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
289 and 'SCM_PORT_TYPE'.
290 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
291 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
292 (gdbscm_memory_port_read, gdbscm_memory_port_write)
293 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
294 [!USING_GUILE_BEFORE_2_2]: New functions.
295 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
296 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
297 'gdbscm_memory_port_read'.
298 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
299 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
300 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
301 function.
302 (ioscm_init_memory_port): Remove.
303 (ioscm_init_memory_port_stream): New function
304 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
305 function.
306 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
307 Return scm_from_uint (0).
308 (gdbscm_set_memory_port_read_buffer_size_x)
309 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
310 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
311 Return scm_from_uint (0).
312 (gdbscm_set_memory_port_write_buffer_size_x)
313 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
314 * configure.ac (try_guile_versions): Add "guile-2.2".
315 * configure: Regenerate.
316 * NEWS: Add entry.
317
aee91db3
TT
3182020-07-18 Tom Tromey <tom@tromey.com>
319
320 * linux-nat.c (linux_multi_process): Remove.
321 (linux_nat_target::supports_multi_process): Return true.
322
0e267416
AB
3232020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * arch/riscv.c (riscv_tdesc_cache): Change map type.
326 (riscv_lookup_target_description): Return pointer out of
327 unique_ptr.
328 * target-descriptions.c (allocate_target_description): Add
329 comment.
330 (target_desc_deleter::operator()): Likewise.
331 * target-descriptions.h (struct target_desc_deleter): Moved to
332 gdbsupport/tdesc.h.
333 (target_desc_up): Likewise.
334
f80c8ec4
TT
3352020-07-17 Tom Tromey <tromey@adacore.com>
336
337 * linux-nat.c (linux_nat_target::supports_non_stop)
338 (linux_nat_target::always_non_stop_p): Use "true".
339 (linux_nat_target::supports_disable_randomization): Use "true" and
340 "false".
341
d0ce17d8
CT
3422020-07-16 Caroline Tice <cmtice@google.com>
343
344 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
345 (RNGLIST_HEADER_SIZE64): New constant definition.
346 (struct dwop_section_names): Add rnglists_dwo.
347 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
348 (struct loclist_header): Rename to 'loclists_rnglists_header'.
349 (struct dwo_sections): Add rnglists field.
350 (read_attribut_reprocess): Add tag parameter.
351 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
352 (cu_debug_rnglists_section): New function (decl & definition).
353 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
354 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
355 die whose range is being checked; get rnglist section from
356 cu_debug_rnglists_section, to get from either objfile or dwo file as
357 appropriate. Add cases for DW_RLE_base_addressx,
358 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
359 the base address to DW_RLE_offset_pairs (not to all ranges), moving
360 test inside if-condition and updating complaint message.
361 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
362 dwarf2_rnglists_process.
363 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
364 dwarf2_ranges_process.
365 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
366 need_ranges_base and update comment appropriately. Also pass die tag
367 to dwarf2_ranges_read.
368 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
369 need_ranges_base and update comment appropriately. Also pass die tag
370 to dwarf2_ranges_process.
371 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
372 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
373 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
374 need_ranges_base and update comment appropriately. Also pass die tag
375 to read_attribute_reprocess and dwarf2_ranges_read.
376 (read_loclist_header): Rename function to read_loclists_rnglists_header,
377 and update function comment appropriately.
378 (read_loclist_index): Call read_loclists_rnglists_header instead of
379 read_loclist_header.
380 (read_rnglist_index): New function.
381 (read_attribute_reprocess): Add tag parameter. Add code for
382 DW_FORM_rnglistx, passing tag to read_rnglist_index.
383 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
384
3dcc261c
AB
3852020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
388 being resolved.
389
ccb9eba6
AB
3902020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 * arch-utils.c (show_architecture): Update formatting of messages.
393
cf88be68
SM
3942020-07-12 Simon Marchi <simon.marchi@efficios.com>
395
396 * gdbtypes.h (struct type) <bounds>: Handle array and string
397 types.
398 * ada-lang.c (assign_aggregate): Use type::bounds on
399 array/string type.
400 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
401 * c-varobj.c (c_number_of_children): Likewise.
402 (c_describe_child): Likewise.
403 * eval.c (evaluate_subexp_for_sizeof): Likewise.
404 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
405 (f_type_print_base): Likewise.
406 * f-valprint.c (f77_array_offset_tbl): Likewise.
407 (f77_get_upperbound): Likewise.
408 (f77_print_array_1): Likewise.
409 * guile/scm-type.c (gdbscm_type_range): Likewise.
410 * m2-typeprint.c (m2_array): Likewise.
411 (m2_is_long_set_of_type): Likewise.
412 * m2-valprint.c (get_long_set_bounds): Likewise.
413 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
414 * python/py-type.c (typy_range): Likewise.
415 * rust-lang.c (rust_internal_print_type): Likewise.
416 * type-stack.c (type_stack::follow_types): Likewise.
417 * valarith.c (value_subscripted_rvalue): Likewise.
418 * valops.c (value_cast): Likewise.
419
509971ae
SM
4202020-07-12 Simon Marchi <simon.marchi@efficios.com>
421
422 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
423 callers to use the equivalent accessor methods.
424
107406b7
SM
4252020-07-12 Simon Marchi <simon.marchi@efficios.com>
426
427 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
428 (struct type) <bit_stride>: New method.
429 (TYPE_BIT_STRIDE): Remove.
430 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
431
bb789949
SM
4322020-07-12 Simon Marchi <simon.marchi@efficios.com>
433
434 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
435 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
436 callers to use the equivalent accessor methods instead.
437
39498edb
SM
4382020-07-12 Simon Marchi <simon.marchi@efficios.com>
439
440 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
441 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
442 callers to use the equivalent accessor methods instead.
443
3b606f38
SM
4442020-07-12 Simon Marchi <simon.marchi@efficios.com>
445
446 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
447 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
448 to use dynamic_prop::kind.
449
064d9cb9
SM
4502020-07-12 Simon Marchi <simon.marchi@efficios.com>
451
452 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
453 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
454 to get the bound property's kind and check against
455 PROP_UNDEFINED.
456
5537ddd0
SM
4572020-07-12 Simon Marchi <simon.marchi@efficios.com>
458
459 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
460 all callers to use type::range_bounds followed by
461 dynamic_prop::{low,high}.
462
8c2e4e06
SM
4632020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
466 const_val, set_const_val, baton, set_locexpr, set_loclist,
467 set_addr_offset, variant_parts, set_variant_parts,
468 original_type, set_original_type>: New methods.
469 <kind>: Rename to...
470 <m_kind>: ... this. Update all users to use the new methods
471 instead.
472 <data>: Rename to...
473 <m_data>: ... this. Update all users to use the new methods
474 instead.
475
7c6f2712
SM
4762020-07-12 Simon Marchi <simon.marchi@efficios.com>
477
478 * gdbtypes.c (get_discrete_bounds): Return failure if
479 the range type's bounds are not both defined and constant
480 values.
481 (get_array_bounds): Update comment. Remove undefined bound check.
482
599088e3
SM
4832020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
484
485 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
486 the type::bounds method directly.
487
c4dfcb36
SM
4882020-07-12 Simon Marchi <simon.marchi@efficios.com>
489
490 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
491 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
492 are used to set the range type's bounds to use set_bounds.
493
0a278aa7
PW
4942020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
495
496 * exec.c (_initialize_exec): Update exec-file-mismatch help.
497
cce20f10
PA
4982020-07-10 Pedro Alves <pedro@palves.net>
499
500 * gdbthread.h (inferior_ref): Define.
501 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
502 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
503 * thread.c
504 (scoped_restore_current_thread::restore):
505 Adjust to gdb::ref_ptr.
506 (scoped_restore_current_thread::~scoped_restore_current_thread):
507 Remove manual decref handling.
508 (scoped_restore_current_thread::scoped_restore_current_thread):
509 Adjust to use
510 inferior_ref::new_reference/thread_info_ref::new_reference.
511 Incref the thread before calling get_frame_id instead of after.
512 Let TARGET_CLOSE_ERROR propagate.
513
6d7aa592
PA
5142020-07-10 Pedro Alves <pedro@palves.net>
515
516 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
517 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
518 NOT_AVAILABLE_ERROR.
519 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
520 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
521
b3e3a4c1
SM
5222020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
523 Pedro Alves <pedro@palves.net>
524
525 PR gdb/26199
526 * infrun.c (threads_are_resumed_pending_p): Delete.
527 (do_target_wait): Remove threads_are_executing and
528 threads_are_resumed_pending_p checks from the inferior_matches
529 lambda. Update comments.
530
d6cc5d98
PA
5312020-07-10 Pedro Alves <pedro@palves.net>
532
533 PR gdb/26199
534 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
535 executing threads.
536
7d3badc6
PA
5372020-07-10 Pedro Alves <pedro@palves.net>
538
539 PR gdb/26199
540 * infrun.c (handle_no_resumed): Handle multiple targets.
541
42bd97a6
PA
5422020-07-10 Pedro Alves <pedro@palves.net>
543
544 PR gdb/26199
545 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
546 target_is_async_p.
547
43667cc6
PA
5482020-07-10 Pedro Alves <pedro@palves.net>
549
550 PR gdb/26199
551 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
552 threads, not all threads.
553
96118d11
PA
5542020-07-10 Pedro Alves <pedro@palves.net>
555
556 PR gdb/26199
557 * remote.c (remote_target::open_1): Pass remote target pointer as
558 data to create_async_event_handler.
559 (remote_async_inferior_event_handler): Mark async event handler
560 before returning if the remote target still has either pending
561 events or unacknowledged notifications.
562
54904d81
JB
5632020-07-10 John Baldwin <jhb@FreeBSD.org>
564
565 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
566 declaration.
567 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
568 function.
569
f37e5866
JB
5702020-07-09 John Baldwin <jhb@FreeBSD.org>
571
572 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
573 inferior_ptid.
574
fc238d4a
JB
5752020-07-09 John Baldwin <jhb@FreeBSD.org>
576
577 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
578 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
579 AT_FREEBSD_PS_STRINGS.
580
6e2469ff
HD
5812020-07-08 Hannes Domani <ssbssa@yahoo.de>
582
583 * auto-load.c (auto_load_objfile_script_1): Convert drive part
584 of debugfile path on Windows.
585
d1076c41
JB
5862020-07-08 John Baldwin <jhb@FreeBSD.org>
587
588 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
589 argument to 'data'.
590
15f3b077
TT
5912020-07-08 Tom Tromey <tromey@adacore.com>
592
593 * ada-lang.c (ada_exception_message_1): Use read_memory.
594
9fc501fd
AB
5952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
596
597 PR python/22748
598 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
599 special handling for inline frames.
600 * findvar.c (value_of_register_lazy): Skip inline frames when
601 creating lazy register values.
602 * frame.c (frame_id_computed_p): Delete definition.
603 * frame.h (frame_id_computed_p): Delete declaration.
604
64cb3757
AB
6052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
606
607 * NEWS: Mention additions to Python API.
608 * python/py-arch.c (archpy_register_groups): New function.
609 (arch_object_methods): Add 'register_groups' method.
610 * python/py-registers.c (reggroup_iterator_object): New struct.
611 (reggroup_object): New struct.
612 (gdbpy_new_reggroup): New function.
613 (gdbpy_reggroup_to_string): New function.
614 (gdbpy_reggroup_name): New function.
615 (gdbpy_reggroup_iter): New function.
616 (gdbpy_reggroup_iter_next): New function.
617 (gdbpy_new_reggroup_iterator): New function
618 (gdbpy_initialize_registers): Register new types.
619 (reggroup_iterator_object_type): Define new Python type.
620 (gdbpy_reggroup_getset): New static global.
621 (reggroup_object_type): Define new Python type.
622 * python/python-internal.h
623
0f767f94
AB
6242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
627 * python/py-arch.c (archpy_registers): New function.
628 (arch_object_methods): Add 'registers' method.
629 * python/py-registers.c: New file.
630 * python/python-internal.h
631 (gdbpy_new_register_descriptor_iterator): Declare.
632 (gdbpy_initialize_registers): Declare.
633 * python/python.c (do_start_initialization): Call
634 gdbpy_initialize_registers.
635 * NEWS: Mention additions to the Python API.
636
87dbc774
AB
6372020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * NEWS: Mention new Python API method.
640 * python/py-unwind.c (pending_framepy_architecture): New function.
641 (pending_frame_object_methods): Add architecture method.
642
3bc98c0c
AB
6432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
644
645 * gdbarch.c: Regenerate.
646 * gdbarch.h: Regenerate.
647 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
648 (gdbarch_data): Use internal_error for the case where
649 deprecated_set_gdbarch_data was originally needed.
650 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
651 and use passed in obstack.
652 (libunwind_frame_set_descr): Should no longer get back NULL from
653 gdbarch_data.
654 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
655 type.
656 * user-regs.c (user_regs_init): Update parameters, and use passed
657 in obstack.
658 (user_reg_add): Should no longer get back NULL from gdbarch_data.
659 (_initialize_user_regs): Register as a pre-init gdbarch data type.
660
d8cc8af6
TV
6612020-07-06 Tom de Vries <tdevries@suse.de>
662
663 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
664 End-Of-Sequence in lte_is_less_than.
665 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
666 "gdb: Don't reorder line table entries too much when sorting".
667
947f7597
TV
6682020-07-06 Tom de Vries <tdevries@suse.de>
669
670 PR tui/26205
671 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
672
1e7c1b22
TV
6732020-07-05 Tom de Vries <tdevries@suse.de>
674
675 PR build/26187
676 * inferior.h (struct infcall_suspend_state_deleter): If available, use
677 std::uncaught_exceptions instead of deprecated
678 std::uncaught_exception.
679
a36158ec
SM
6802020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
681
682 * macroexp.h (macro_stringify): Return
683 gdb::unique_xmalloc_ptr<char>.
684 * macroexp.c (macro_stringify): Likewise.
685 * macrotab.c (fixup_definition): Update.
686
14d960c8
SM
6872020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
690 (lex_one_token): Update.
691 * macroexp.c (struct macro_buffer) <release>: Return
692 gdb::unique_xmalloc_ptr<char>.
693 (macro_stringify): Update.
694 (macro_expand): Update.
695 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
696 * macroexp.h (macro_expand_next): Likewise.
697
211d5b1c
SM
6982020-07-02 Simon Marchi <simon.marchi@efficios.com>
699
700 * macroexp.h (macro_lookup_ftype): Remove.
701 (macro_expand, macro_expand_once, macro_expand_next): Remove
702 lookup function parameters, add scope parameter.
703 * macroexp.c (scan, substitute_args, expand, maybe_expand,
704 macro_expand, macro_expand_once, macro_expand_next): Likewise.
705 * macroscope.h (standard_macro_lookup): Change parameter type
706 to macro_scope.
707 * macroscope.c (standard_macro_lookup): Likewise.
708 * c-exp.y (lex_one_token): Update.
709 * macrocmd.c (macro_expand_command): Likewise.
710 (macro_expand_once_command): Likewise.
711
b1a35af2
SM
7122020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
713
714 * inf-loop.c (inferior_event_handler): Remove client_data param.
715 * inf-loop.h (inferior_event_handler): Likewise.
716 * infcmd.c (step_1): Adjust.
717 * infrun.c (proceed): Adjust.
718 (fetch_inferior_event): Remove client_data param.
719 (infrun_async_inferior_event_handler): Adjust.
720 * infrun.h (fetch_inferior_event): Remove `void *` param.
721 * linux-nat.c (handle_target_event): Adjust.
722 * record-btrace.c (record_btrace_handle_async_inferior_event):
723 Adjust.
724 * record-full.c (record_full_async_inferior_event_handler):
725 Adjust.
726 * remote.c (remote_async_inferior_event_handler): Adjust.
727
1cdf9e33
TT
7282020-07-01 Tom Tromey <tom@tromey.com>
729
730 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
731 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
732
32c1e210
TT
7332020-07-01 Tom Tromey <tom@tromey.com>
734
735 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
736 tui_gen_win_info.
737 (tui_win_info::make_window): Merge with
738 tui_gen_win_info::make_window.
739 (tui_win_info::make_visible): Move from tui_gen_win_info.
740 * tui/tui-win.c (tui_win_info::max_width): Move from
741 tui_gen_win_info.
742 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
743 type.
744 <window_factory>: Likewise.
745 * tui/tui-layout.c (tui_win_info::resize): Move from
746 tui_gen_win_info.
747 (make_standard_window): Change return type.
748 (get_locator_window, tui_get_window_by_name): Likewise.
749 (tui_layout_window::apply): Remove a cast.
750 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
751 (struct tui_win_info): Merge with tui_gen_win_info.
752 (struct tui_gen_win_info): Remove.
753
a30cb6da
TT
7542020-07-01 Tom Tromey <tom@tromey.com>
755
756 * tui/tui-stack.h (struct tui_locator_window): Derive from
757 tui_win_info.
758 <do_scroll_horizontal, do_scroll_vertical>: New methods.
759 <can_box>: New method.
760
1eb2161f
TT
7612020-07-01 Tom Tromey <tom@tromey.com>
762
763 * tui/tui-stack.h (struct tui_locator_window): Remove body.
764
7134f2eb
TT
7652020-07-01 Tom Tromey <tom@tromey.com>
766
767 * tui/tui-regs.c (tui_data_window::display_registers_from)
768 (tui_data_window::display_registers_from)
769 (tui_data_window::first_data_item_displayed)
770 (tui_data_window::delete_data_content_windows): Update.
771 (tui_data_window::refresh_window, tui_data_window::no_refresh):
772 Remove.
773 (tui_data_window::check_register_values): Update.
774 (tui_data_item_window::rerender): Add parameters. Update.
775 (tui_data_item_window::refresh_window): Remove.
776 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
777 virtual.
778 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
779 tui_gen_win_info.
780 <refresh_window, max_height, min_height>: Remove.
781 <rerender>: Add parameters.
782 <x, y, visible>: New members.
783 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
784 <m_item_width>: New member.
785
22b7b041
TT
7862020-07-01 Tom Tromey <tom@tromey.com>
787
788 * tui/tui-regs.c (tui_data_window::show_register_group)
789 (tui_data_window::check_register_values): Update.
790 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
791 from item_no.
792
c9753adb
TT
7932020-07-01 Tom Tromey <tom@tromey.com>
794
795 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
796 useless "if".
797
9ab26b4a
TT
7982020-07-01 Tom Tromey <tom@tromey.com>
799
800 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
801 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
802
e555083f
TT
8032020-07-01 Tom Tromey <tom@tromey.com>
804
805 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
806 * tui/tui-winsource.h (enum tui_line_or_address_kind)
807 (struct tui_line_or_address): Move from tui-data.h.
808 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
809 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
810 (tui_cmd_window, tui_source_window_base, tui_source_window)
811 (tui_disasm_window): Don't declare.
812 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
813 to tui-winsource.h.
814 (SINGLE_KEY): Move to tui-stack.c.
815
7a02bab7
TT
8162020-07-01 Tom Tromey <tom@tromey.com>
817
818 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
819 std::string.
820 * tui/tui-regs.c (class tab_expansion_file): New.
821 (tab_expansion_file::write): New method.
822 (tui_register_format): Change return type. Use
823 tab_expansion_file.
824 (tui_get_register, tui_data_window::display_registers_from)
825 (tui_data_item_window::rerender): Update.
826 * tui/tui-io.h (tui_expand_tabs): Don't declare.
827 * tui/tui-io.c (tui_expand_tabs): Remove.
828
ea68593b
TT
8292020-07-01 Tom Tromey <tom@tromey.com>
830
831 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
832
a8caed5d
FS
8332020-07-01 Fangrui Song <maskray@google.com>
834
835 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
836
9cdf9820
AKS
8372020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
838
839 * dwarf2/read.c (set_die_type): Removed conditions to restrict
840 forms for DW_AT_associated and DW_AT_allocated attributes,
841 which is already checked in function attr_to_dynamic_prop.
842
a1520ad8
TT
8432020-06-30 Tom Tromey <tromey@adacore.com>
844
845 * dwarf2/read.c (quirk_rust_enum): Correctly call
846 alloc_rust_variant for default-less enum.
847
5ac58899
TT
8482020-06-30 Tom Tromey <tromey@adacore.com>
849
850 PR build/26183:
851 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
852 gdb::to_string.
853
19b187a9
SM
8542020-06-29 Simon Marchi <simon.marchi@efficios.com>
855
856 * gdbarch.sh (displaced_step_copy_insn): Update doc.
857 * gdbarch.h: Re-generate.
858
cd4c4c07
TT
8592020-06-28 Tom Tromey <tom@tromey.com>
860
861 * command.h (cmd_types): Remove.
862 (cmd_type): Don't declare.
863 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
864 typedef.
865 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
866 * cli/cli-decode.c (cmd_type): Remove.
867
05779d57
PA
8682020-06-27 Pedro Alves <palves@redhat.com>
869
870 * fork-child.c (prefork_hook): Adjust.
871 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
872 Delete.
873 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
874 * inferior.c (inferior::set_tty, inferior::tty): New methods.
875 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
876 Remove declarations.
877 (struct inferior) <set_tty, tty>: New methods.
878 (struct inferior) <terminal>: Rename to ...
879 (struct inferior) <m_terminal>: ... this and make private.
880 * main.c (captured_main_1): Adjust.
881 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
882 (mi_cmd_inferior_tty_show): Adjust.
883 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
884 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
885
1776e3e5
NA
8862020-06-26 Nick Alcock <nick.alcock@oracle.com>
887
888 * configure.ac: Add --enable-libctf: handle --disable-static
889 properly.
890 * acinclude.m4: sinclude ../config/enable.m4.
891 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
892 (LIBCTF): Substitute in.
893 (CTF_DEPS): New, likewise.
894 (CLIBS): libctf needs symbols from libbfd: move earlier.
895 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
896 flags.
897 * ctfread.c: Surround in ENABLE_LIBCTF.
898 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
899 * configure: Regenerate.
900 * config.in: Likewise.
901
58373b80
SM
9022020-06-25 Simon Marchi <simon.marchi@efficios.com>
903
904 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
905
277474ee
SM
9062020-06-25 Simon Marchi <simon.marchi@efficios.com>
907
908 * inferior.h (struct inferior) <terminal>: Change type to
909 gdb::unique_xmalloc_ptr<char>.
910 * inferior.c (inferior::~inferior): Don't free inf->terminal.
911 * infcmd.c (set_inferior_io_terminal): Don't free terminal
912 field, adjust to unique pointer.
913 (get_inferior_io_terminal): Adjust to unique pointer.
914
6d74da72
AB
9152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
916
917 * riscv-tdep.c (riscv_print_registers_info): Loop over all
918 registers, not just the known core set of registers.
919
2e52d038
AB
9202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
921
922 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
923 fflags, frm, and fcsr registers.
924 (riscv_register_reggroup_p): Remove unknown CSRs from save and
925 restore groups.
926 (riscv_tdesc_unknown_reg): New function.
927 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
928 tdesc_use_registers.
929 * riscv-tdep.h (struct gdbarch_tdep): Add
930 unknown_csrs_first_regnum, unknown_csrs_count,
931 duplicate_fflags_regnum, duplicate_frm_regnum, and
932 duplicate_fcsr_regnum fields.
933
be64fd07
AB
9342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
935
936 * target-descriptions.c (tdesc_use_registers): Add new parameter a
937 callback, use the callback (when not null) to help number unknown
938 registers.
939 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
940 (tdesc_use_registers): Add extra parameter to declaration.
941
3b9fce96
AB
9422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
943
944 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
945 in the file.
946 (class riscv_pending_register_alias): Likewise.
947 (riscv_register_feature::register_info): Change 'required_p' field
948 to 'required', and change its type. Add 'check' member function.
949 (riscv_register_feature::register_info::check): Define new member
950 function.
951 (riscv_xreg_feature): Change initialisation of 'required' field.
952 (riscv_freg_feature): Likewise.
953 (riscv_virtual_feature): Likewise.
954 (riscv_csr_feature): Likewise.
955 (riscv_check_tdesc_feature): Take extra parameter, the csr
956 tdesc_feature, rewrite the function to use the new
957 riscv_register_feature::register_info::check function.
958 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
959
865bad26
AB
9602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
961
962 * features/Makefile: Remove all references to the deleted files
963 below.
964 * features/riscv/32bit-csr.c: Deleted.
965 * features/riscv/32bit-csr.xml: Deleted.
966 * features/riscv/64bit-csr.c: Deleted.
967 * features/riscv/64bit-csr.xml: Deleted.
968 * features/riscv/rebuild-csr-xml.sh: Deleted.
969
ed69cbc8
AB
9702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
971
972 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
973 whitespace error for declaration of names member variable.
974 (struct riscv_register_feature): Add new prefer_first_name member
975 variable, and fix whitespace error in declaration of registers.
976 (riscv_xreg_feature): Initialize prefer_first_name field.
977 (riscv_freg_feature): Likewise.
978 (riscv_virtual_feature): Likewise.
979 (riscv_csr_feature): Likewise.
980 (riscv_register_name): Expand on comments. Remove register name
981 modifications for CSR and virtual registers.
982
4445e8f5
AB
9832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
984
985 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
986 errors.
987
767a879e
AB
9882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
989
990 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
991 riscv-opc.h.
992 (class riscv_pending_register_alias): New class.
993 (riscv_check_tdesc_feature): Take vector of pending aliases and
994 populate it as appropriate.
995 (riscv_setup_register_aliases): Delete.
996 (riscv_gdbarch_init): Create vector of pending aliases and pass it
997 to riscv_check_tdesc_feature in all cases. Use the vector to
998 create the register aliases.
999
bb6e55f3
RO
10002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1001
1002 * sol2-tdep.c (sol2_static_transform_name): Remove.
1003 (sol2_init_abi): Don't register it.
1004 * gdbarch.sh (static_transform_name): Remove.
1005 * gdbarch.c, gdbarch.h: Regenerate.
1006
1007 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1008 gdbarch_static_transform_name.
1009 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1010 * stabsread.c (define_symbol) <'X'>: Remove.
1011 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1012 handling.
1013 <'V'>: Likewise.
1014 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1015 <'S'>: Remove call to gdbarch_static_transform_name.
1016
c6d36836
RO
10172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1018
1019 * procfs.c (procfs_pre_trace): New function.
1020 (procfs_target::create_inferior): Pass it to fork_inferior.
1021
a7e6196b
RO
10222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1023
1024 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1025 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1026 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1027 sol2-tdep.o, sparc-sol2-tdep.o.
1028 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1029 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1030 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1031 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1032
d412e696
RO
10332020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1034
1035 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1036 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1037 Call sol2_init_abi.
1038 Remove calls to set_gdbarch_skip_solib_resolver,
1039 set_gdbarch_core_pid_to_str.
1040 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1041 (i386_sol2_static_transform_name): Remove.
1042 (i386_sol2_init_abi): Call sol2_init_abi.
1043 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1044 set_gdbarch_static_transform_name,
1045 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1046 Use sol2_sigtramp_p.
1047 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1048 (sol2_sigtramp_p): New function.
1049 (sol2_static_transform_name): New function.
1050 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1051 (sol2_init_abi): New function.
1052 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1053 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1054 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1055 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1056 (sparc_sol2_static_transform_name): Remove.
1057 (sparc32_sol2_init_abi): Call sol2_init_abi.
1058 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1059 set_gdbarch_static_transform_name,
1060 set_gdbarch_skip_solib_resolver,
1061 set_gdbarch_core_pid_to_str.
1062 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1063 (sparc_sol2_static_transform_name): Remove
1064 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1065 call sol2_sigtramp_p.
1066 (sparc64_sol2_init_abi): Call sol2_init_abi.
1067 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1068 set_gdbarch_static_transform_name,
1069 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1070
a8654e7d
PW
10712020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1072
1073 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1074 * exec.c (validate_exec_file): If from_tty, set both
1075 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1076 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1077 and from_tty, unconditionally ask a confirmation.
1078
caa7fd04
AB
10792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1080
1081 * target-descriptions.c (tdesc_architecture_name): Protect against
1082 NULL pointer dereference.
1083 (maint_print_xml_tdesc_cmd): New function.
1084 (_initialize_target_descriptions): Register new 'maint print
1085 xml-tdesc' command and give it the filename completer.
1086 * NEWS: Mention new 'maint print xml-tdesc' command.
1087
fbf42f4e
AB
10882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * target-descriptions.c (class tdesc_compatible_info): New class.
1091 (struct target_desc): Change type of compatible vector.
1092 (tdesc_compatible_p): Update for change in type of
1093 target_desc::compatible.
1094 (tdesc_compatible_info_list): New function.
1095 (tdesc_compatible_info_arch_name): New function.
1096 (tdesc_add_compatible): Update for change in type of
1097 target_desc::compatible.
1098 (print_c_tdesc::visit_pre): Likewise.
1099
20821f4e
AB
11002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1101
1102 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1103 whitespace to underscore.
1104 (maint_print_c_tdesc_cmd): Use fake filename for target
1105 descriptions that came from the target.
1106 (_initialize_target_descriptions): Add filename command completion
1107 for 'maint print c-tdesc'.
1108
1fb5ee62
SM
11092020-06-23 Simon Marchi <simon.marchi@efficios.com>
1110
1111 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1112 lines.
1113
fc3ecb3e
SM
11142020-06-23 Simon Marchi <simon.marchi@efficios.com>
1115
1116 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1117 lines.
1118 (dwarf2_find_location_expression): Likewise.
1119 (call_site_parameter_matches): Likewise.
1120 (dwarf2_compile_expr_to_ax): Likewise.
1121 (disassemble_dwarf_expression): Likewise.
1122 (loclist_describe_location): Likewise.
1123
236ef034
PA
11242020-06-23 Pedro Alves <palves@redhat.com>
1125
1126 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1127 progspace-and-thread.h. Include scoped-mock-context.h instead.
1128 (register_to_value_test): Use scoped_mock_context.
1129 * regcache.c: Include "scoped-mock-context.h".
1130 (cooked_read_test): Don't error out if a target is already pushed.
1131 Use scoped_mock_context. Adjust.
1132 * scoped-mock-context.h: New file.
1133
39e7ecca
AB
11342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1137 initializer.
1138 (ada_language::is_string_type_p): New member function.
1139 * c-lang.c (c_language_data): Delete la_is_string_type_p
1140 initializer.
1141 (cplus_language_data): Likewise.
1142 (asm_language_data): Likewise.
1143 (minimal_language_data): Likewise.
1144 * d-lang.c (d_language_data): Likewise.
1145 * f-lang.c (f_is_string_type_p): Delete function, implementation
1146 moved to f_language::is_string_type_p.
1147 (f_language_data): Delete la_is_string_type_p initializer.
1148 (f_language::is_string_type_p): New member function,
1149 implementation from f_is_string_type_p.
1150 * go-lang.c (go_is_string_type_p): Delete function, implementation
1151 moved to go_language::is_string_type_p.
1152 (go_language_data): Delete la_is_string_type_p initializer.
1153 (go_language::is_string_type_p): New member function,
1154 implementation from go_is_string_type_p.
1155 * language.c (language_defn::is_string_type_p): Define new member
1156 function.
1157 (default_is_string_type_p): Make static, add comment copied from
1158 header file.
1159 (unknown_language_data): Delete la_is_string_type_p initializer.
1160 (unknown_language::is_string_type_p): New member function.
1161 (auto_language_data): Delete la_is_string_type_p initializer.
1162 (auto_language::is_string_type_p): New member function.
1163 * language.h (language_data): Delete la_is_string_type_p field.
1164 (language_defn::is_string_type_p): Declare new function.
1165 (default_is_string_type_p): Delete desclaration, move comment to
1166 definition.
1167 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1168 moved to m2_language::is_string_type_p.
1169 (m2_language_data): Delete la_is_string_type_p initializer.
1170 (m2_language::is_string_type_p): New member function,
1171 implementation from m2_is_string_type_p.
1172 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1173 initializer.
1174 * opencl-lang.c (opencl_language_data): Likewise.
1175 * p-lang.c (pascal_is_string_type_p): Delete function,
1176 implementation moved to pascal_language::is_string_type_p.
1177 (pascal_language_data): Delete la_is_string_type_p initializer.
1178 (pascal_language::is_string_type_p): New member function,
1179 implementation from pascal_is_string_type_p.
1180 * rust-lang.c (rust_is_string_type_p): Delete function,
1181 implementation moved to rust_language::is_string_type_p.
1182 (rust_language_data): Delete la_is_string_type_p initializer.
1183 (rust_language::is_string_type_p): New member function,
1184 implementation from rust_is_string_type_p.
1185 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1186 is_string_type_p.
1187
4ffc13fb
AB
11882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1189
1190 * ada-lang.c (ada_language_data): Delete la_print_typedef
1191 initializer.
1192 (ada_language::print_typedef): New member function.
1193 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1194 (cplus_language_data): Likewise.
1195 (asm_language_data): Likewise.
1196 (minimal_language_data): Likewise.
1197 * d-lang.c (d_language_data): Likewise.
1198 * f-lang.c (f_language_data): Likewise.
1199 (f_language::print_typedef): New member function.
1200 * go-lang.c (go_language_data): Delete la_print_typedef
1201 initializer.
1202 * language.c (language_defn::print_typedef): Define member
1203 function.
1204 (unknown_language_data): Delete la_print_typedef initializer.
1205 (unknown_language::print_typedef): New member function.
1206 (auto_language_data): Delete la_print_typedef initializer.
1207 (auto_language::print_typedef): New member function.
1208 * language.h (language_data): Delete la_print_typedef field.
1209 (language_defn::print_typedef): Declare new member function.
1210 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1211 (default_print_typedef): Delete declaration.
1212 * m2-lang.c (m2_language_data): Delete la_print_typedef
1213 initializer.
1214 (m2_language::print_typedef): New member function.
1215 * objc-lang.c (objc_language_data): Delete la_print_typedef
1216 initializer.
1217 * opencl-lang.c (opencl_language_data): Likewise.
1218 * p-lang.c (pascal_language_data): Likewise.
1219 (pascal_language::print_typedef): New member function.
1220 * rust-lang.c (rust_print_typedef): Delete function,
1221 implementation moved to rust_language::print_typedef.
1222 (rust_language): Delete la_print_typedef initializer.
1223 (rust_language::print_typedef): New member function,
1224 implementation from rust_print_typedef.
1225 * typeprint.c (default_print_typedef): Delete.
1226
d711ee67
AB
12272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1228
1229 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1230 (ada_language::printstr): New member function.
1231 * c-lang.c (c_language_data): Delete la_printstr initializer.
1232 (cplus_language_data): Likewise.
1233 (asm_language_data): Likewise.
1234 (minimal_language_data): Likewise.
1235 * d-lang.c (d_language_data): Likewise.
1236 * f-lang.c (f_printstr): Rename to f_language::printstr.
1237 (f_language_data): Delete la_printstr initializer.
1238 (f_language::printstr): New member function, implementation from
1239 f_printstr.
1240 * go-lang.c (go_language_data): Delete la_printstr initializer.
1241 * language.c (language_defn::printstr): Define new member
1242 function.
1243 (unk_lang_printstr): Delete.
1244 (unknown_language_data): Delete la_printstr initializer.
1245 (unknown_language::printstr): New member function.
1246 (auto_language_data): Delete la_printstr initializer.
1247 (auto_language::printstr): New member function.
1248 * language.h (language_data): Delete la_printstr field.
1249 (language_defn::printstr): Declare new member function.
1250 (LA_PRINT_STRING): Update call to printstr.
1251 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1252 (m2_language_data): Delete la_printstr initializer.
1253 (m2_language::printstr): New member function, implementation from
1254 m2_printstr.
1255 * objc-lang.c (objc_language_data): Delete la_printstr
1256 initializer.
1257 * opencl-lang.c (opencl_language_data): Likewise.
1258 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1259 (pascal_language_data): Delete la_printstr initializer.
1260 (pascal_language::printstr): New member function, implementation
1261 from pascal_printstr.
1262 * p-lang.h (pascal_printstr): Delete declaration.
1263 * rust-lang.c (rust_printstr): Update header comment.
1264 (rust_language_data): Delete la_printstr initializer.
1265 (rust_language::printstr): New member function.
1266
52b50f2c
AB
12672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1270 (ada_language::printchar): New member function.
1271 * c-lang.c (c_language_data): Delete la_printchar initializer.
1272 (cplus_language_data): Likewise.
1273 (asm_language_data): Likewise.
1274 (minimal_language_data): Likewise.
1275 * d-lang.c (d_language_data): Likewise.
1276 * f-lang.c (f_printchar): Rename to f_language::printchar.
1277 (f_language_data): Delete la_printchar initializer.
1278 (f_language::printchar): New member function, implementation from
1279 f_printchar.
1280 * go-lang.c (go_language_data): Delete la_printchar initializer.
1281 * language.c (unk_lang_printchar): Delete.
1282 (language_defn::printchar): Define new member function.
1283 (unknown_language_data): Delete la_printchar initializer.
1284 (unknown_language::printchar): New member function.
1285 (auto_language_data): Delete la_printchar initializer.
1286 (auto_language::printchar): New member function.
1287 * language.h (language_data): Delete la_printchar field.
1288 (language_defn::printchar): Declare new member function.
1289 (LA_PRINT_CHAR): Update call to printchar.
1290 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1291 (m2_language::printchar): New member function.
1292 * objc-lang.c (objc_language_data): Delete la_printchar
1293 initializer.
1294 * opencl-lang.c (opencl_language_data): Likewise.
1295 * p-lang.c (pascal_language_data): Delete la_printchar
1296 initializer.
1297 (pascal_language::printchar): New member function.
1298 * rust-lang.c (rust_printchar): Rename to
1299 rust_language::printchar.
1300 (rust_language_data): Delete la_printchar initializer.
1301 (rust_language::printchar): New member function, implementation
1302 from rust_printchar.
1303
ec8cec5b
AB
13042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1307 (ada_language_data): Delete la_emitchar initializer.
1308 (ada_language::emitchar): New member function, implementation from
1309 emit_char.
1310 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1311 (cplus_language_data): Likewise.
1312 (asm_language_data): Likewise.
1313 (minimal_language_data): Likewise.
1314 * d-lang.c (d_language_data): Likewise.
1315 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1316 (f_language_data): Delete la_emitchar initializer.
1317 (f_language::emitchar): New member function, implementation from
1318 f_emit_char.
1319 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1320 * language.c (unk_lang_emit_char): Delete.
1321 (language_defn::emitchar): New member function definition.
1322 (unknown_language_data): Delete la_emitchar initializer.
1323 (unknown_language::emitchar): New member function.
1324 (auto_language_data): Delete la_emitchar initializer.
1325 (auto_language::emitchar): New member function.
1326 * language.h (language_data): Delete la_emitchar field.
1327 (language_defn::emitchar): New member field declaration.
1328 (LA_EMIT_CHAR): Update call to emitchar.
1329 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1330 (m2_language_data): Delete la_emitchar initializer.
1331 (m2_language::emitchar): New member function, implementation from
1332 m2_emit_char.
1333 * objc-lang.c (objc_language_data): Delete la_emitchar
1334 initializer.
1335 * opencl-lang.c (opencl_language_data): Likewise.
1336 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1337 (pascal_language_data): Delete la_emitchar initializer.
1338 (pascal_language::emitchar): New member function, implementation
1339 from pascal_emit_char.
1340 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1341 (rust_language_data): Delete la_emitchar initializer.
1342 (rust_language::emitchar): New member function, implementation
1343 from rust_emitchar.
1344
1bf9c363
AB
13452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1348 (ada_language_data): Delete la_post_parser initializer.
1349 (ada_language::post_parser): New member function.
1350 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1351 (cplus_language_data): Likewise.
1352 (asm_language_data): Likewise.
1353 (minimal_language_data): Likewise.
1354 * d-lang.c (d_language_data): Likewise.
1355 * f-lang.c (f_language_data): Likewise.
1356 * go-lang.c (go_language_data): Likewise.
1357 * language.c (unknown_language_data): Likewise.
1358 (auto_language_data): Likewise.
1359 * language.h (language_data): Delete la_post_parser field.
1360 (language_defn::post_parser): New member function.
1361 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1362 * objc-lang.c (objc_language_data): Likewise.
1363 * opencl-lang.c (opencl_language_data): Likewise.
1364 * p-lang.c (pascal_language_data): Likewise.
1365 * parse.c (parse_exp_in_context): Update call to post_parser.
1366 (null_post_parser): Delete definition.
1367 * parser-defs.h (null_post_parser): Delete declaration.
1368 * rust-lang.c (rust_language_data): Delete la_post_parser
1369 initializer.
1370
87afa652
AB
13712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * ada-lang.c (parse): Rename to ada_language::parser.
1374 (ada_language_data): Delete la_parser initializer.
1375 (ada_language::parser): New member function, implementation from
1376 parse.
1377 * c-lang.c (c_language_data): Delete la_parser initializer.
1378 (cplus_language_data): Likewise.
1379 (asm_language_data): Likewise.
1380 (minimal_language_data): Likewise.
1381 * d-lang.c (d_language_data): Likewise.
1382 (d_language::parser): New member function.
1383 * f-lang.c (f_language_data): Delete la_parser initializer.
1384 (f_language::parser): New member function.
1385 * go-lang.c (go_language_data): Delete la_parser initializer.
1386 (go_language::parser): New member function.
1387 * language.c (unk_lang_parser): Delete.
1388 (language_defn::parser): Define new member function.
1389 (unknown_language_data): Delete la_parser initializer.
1390 (unknown_language::parser): New member function.
1391 (auto_language_data): Delete la_parser initializer.
1392 (auto_language::parser): New member function.
1393 * language.h (language_data): Delete la_parser field.
1394 (language_defn::parser): Declare new member function.
1395 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1396 (m2_language::parser): New member function.
1397 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1398 * opencl-lang.c (opencl_language_data): Likewise.
1399 * p-lang.c (pascal_language_data): Likewise.
1400 (pascal_language::parser): New member function.
1401 * parse.c (parse_exp_in_context): Update call to parser.
1402 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1403 (rust_language::parser): New member function.
1404
37825800
AB
14052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1406
1407 * top.c (print_gdb_configuration): Print --with-python-libdir
1408 configuration value.
1409
5b860c93
PW
14102020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1411
1412 * NEWS: Mention change to the alias command.
1413
cf00cd6f
PW
14142020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1415
1416 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1417 (alias_command_completer)
1418 (make_alias_options_def_group): New functions.
1419 (alias_opts, alias_option_defs): New struct and array.
1420 (alias_usage_error): Update usage.
1421 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1422 Use option framework.
1423 (_initialize_cli_cmds): Update alias command help.
1424 Update aliases command help.
1425 (show_user):
1426 Add NULL for new default_args lookup_cmd argument.
1427 (valid_command_p): Rename to validate_aliased_command.
1428 Add NULL for new default_args lookup_cmd argument. Verify that the
1429 aliased_command has no default args.
1430 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1431 (lookup_cmd_1, lookup_cmd): New argument default_args.
1432 (add_alias_cmd):
1433 Add NULL for new default_args lookup_cmd argument.
1434 (print_help_for_command): Show default args under the layout
1435 alias some_alias = some_aliased_cmd some_alias_default_arg.
1436 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1437 xfree default_args in destructor.
1438 * cli/cli-script.c (process_next_line, do_define_command):
1439 Add NULL for new default_args lookup_cmd argument.
1440 * command.h: Declare new default_args argument in lookup_cmd
1441 and lookup_cmd_1.
1442 * completer.c (complete_line_internal_1):
1443 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1444 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1445 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1446 Likewise.
1447 * infcmd.c (_initialize_infcmd): Likewise.
1448 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1449 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1450 * python/py-param.c (add_setshow_generic): Likewise.
1451 * remote.c (_initialize_remote): Likewise.
1452 * top.c (execute_command): Prepend default_args if command has some.
1453 (set_verbose):
1454 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1455 * tracepoint.c (validate_actionline, encode_actions_1):
1456 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1457
bd920864
TBA
14582020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1459
1460 * jit.c (jit_read_descriptor): Use bool as the return type.
1461 (jit_breakpoint_re_set_internal): Use bool as the return type.
1462 Invert the return value logic; return true if the jit breakpoint
1463 has been successfully initialized.
1464 (jit_inferior_init): Update the call to
1465 jit_breakpoint_re_set_internal.
1466
f8098322
PA
14672020-06-22 Pedro Alves <palves@redhat.com>
1468
1469 PR gdb/25939
1470 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1471 Use the current inferior instead. Don't return
1472 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1473 wait again.
1474 * sol-thread.c (sol_thread_target::wait): Don't reference
1475 inferior_ptid.
1476 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1477 (sol_update_thread_list_callback): Use the current inferior's pid
1478 instead of inferior_ptid.
1479
196535a6
RO
14802020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1481
1482 * procfs.c: Cleanup many comments.
1483
1484 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1485 (AFTER_WATCHFLAG): Replace by value.
1486
1487 (MAIN_PROC_NAME_FORMAT): Inline ...
1488 (create_procinfo): ... here.
1489
1490 (procfs_debug_inferior): Remove SYS_exec handling.
1491 (syscall_is_exec): Likewise.
1492 (procfs_set_exec_trap): Likewise.
1493
1494 (syscall_is_lwp_exit): Inline in callers.
1495 (syscall_is_exit): Likewise.
1496 (syscall_is_exec): Likewise.
1497 (syscall_is_lwp_create): Likewise.
1498
1499 (invalidate_cache): Remove #if 0 code.
1500
1501 (make_signal_thread_runnable): Remove.
1502 (procfs_target::resume): Remove #if 0 code.
1503
cf6f3e86
RO
15042020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1505
1506 PR gdb/25939
1507 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1508 call ...
1509 (procfs_target::create_inferior): ... here.
1510
48e9cc84
PW
15112020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1512
1513 * exec.c (validate_exec_file): Ensure the build-id is up to
1514 date by calling reopen_exec_file (that checks file timestamp
1515 to decide to re-read the file).
1516
3922b302
PA
15172020-06-18 Pedro Alves <palves@redhat.com>
1518
1519 PR gdb/25412
1520 * gdbthread.h (delete_thread, delete_thread_silent)
1521 (find_thread_ptid): Update comments.
1522 * thread.c (current_thread_): New global.
1523 (is_current_thread): Move higher, and reimplement.
1524 (inferior_thread): Reimplement.
1525 (set_thread_exited): Use bool. Add assertions.
1526 (add_thread_silent): Simplify thread-reuse handling by always
1527 calling delete_thread.
1528 (delete_thread): Remove intro comment.
1529 (find_thread_ptid): Skip exited threads.
1530 (switch_to_thread_no_regs): Write to current_thread_.
1531 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1532 INFERIOR_PTID. Clear current_thread_.
1533
6dbdab44
PA
15342020-06-18 Pedro Alves <palves@redhat.com>
1535
1536 * aix-thread.c (pd_update): Use switch_to_thread.
1537
2da4b788
PA
15382020-06-18 Pedro Alves <palves@redhat.com>
1539
1540 * ravenscar-thread.c (ravenscar_thread_target): Update.
1541 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1542 (ravenscar_thread_target::add_active_thread): ... this. Don't
1543 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1544 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1545
50838d1b
PA
15462020-06-18 Pedro Alves <palves@redhat.com>
1547
1548 * nat/windows-nat.c (current_windows_thread): Remove.
1549 * nat/windows-nat.h (current_windows_thread): Remove.
1550 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1551 Adjust.
1552 (display_selectors): Adjust to fetch the current
1553 windows_thread_info based on inferior_ptid.
1554 (fake_create_process): No longer write to current_windows_thread.
1555 (windows_nat_target::get_windows_debug_event):
1556 Don't set inferior_ptid or current_windows_thread.
1557 (windows_nat_target::wait): Adjust to not rely on
1558 current_windows_thread.
1559 (do_initial_windows_stuff): Now a method of windows_nat_target.
1560 Switch to the last_ptid thread.
1561 (windows_nat_target::attach): Adjust.
1562 (windows_nat_target::detach): Use switch_to_no_thread instead of
1563 writing to inferior_ptid directly.
1564 (windows_nat_target::create_inferior): Adjust.
1565
31ce04e9
PA
15662020-06-18 Pedro Alves <palves@redhat.com>
1567
1568 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1569
1ee1a363
PA
15702020-06-18 Pedro Alves <palves@redhat.com>
1571
1572 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1573 after creating it, instead of writing to inferior_ptid. Don't
1574 write to inferior_ptid.
1575
6d350754
PA
15762020-06-18 Pedro Alves <palves@redhat.com>
1577
1578 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1579
5d971d48
PA
15802020-06-18 Pedro Alves <palves@redhat.com>
1581
1582 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1583 it, instead of writing to inferior_ptid.
1584
86e57d1b
PA
15852020-06-18 Pedro Alves <palves@redhat.com>
1586
1587 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1588 to inferior_ptid.
1589
f2e1c129
PA
15902020-06-18 Pedro Alves <palves@redhat.com>
1591
1592 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1593 instead of writing to inferior_ptid directly.
1594
60db1b85
PA
15952020-06-18 Pedro Alves <palves@redhat.com>
1596
1597 * corelow.c (core_target::close): Use switch_to_no_thread instead
1598 of writing to inferior_ptid directly.
1599 (add_to_thread_list, core_target_open): Use switch_to_thread
1600 instead of writing to inferior_ptid directly.
1601
fe7d6a8d
PA
16022020-06-18 Pedro Alves <palves@redhat.com>
1603
1604 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1605 inferior_ptid.
1606 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1607 inferior_ptid.
1608 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1609 inferior_ptid directly.
1610 (darwin_nat_target::init_thread_list): Switch to thread, instead
1611 of writing to inferior_ptid.
1612 (darwin_nat_target::attach): Don't write to inferior_ptid.
1613 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1614
975f8708
PA
16152020-06-18 Pedro Alves <palves@redhat.com>
1616
1617 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1618 thread.
1619 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1620 Instead use switch_to_thread.
1621 (gnu_nat_target::detach): Use switch_to_no_thread
1622 instead of writing to inferior_ptid directly. Used passed-in
1623 inferior instead of looking up the inferior by pid.
1624
1a204730
PA
16252020-06-18 Pedro Alves <palves@redhat.com>
1626
1627 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1628 inferior_ptid.
1629
ebe84f23
PA
16302020-06-18 Pedro Alves <palves@redhat.com>
1631
1632 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1633 inferior_ptid.
1634 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1635 thread.
1636 (nto_procfs_target::detach): Avoid referencing
1637 inferior_ptid. Use switch_to_no_thread instead of writing to
1638 inferior_ptid directly.
1639 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1640 instead of writing to inferior_ptid directly.
1641 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1642 to thread.
1643
191f02e5
PA
16442020-06-18 Pedro Alves <palves@redhat.com>
1645
1646 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1647 after creating it, instead of writing to inferior_ptid.
1648 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1649 to inferior_ptid directly.
1650 (gdbsim_target::wait): Don't write to inferior_ptid.
1651
0ac55310
PA
16522020-06-18 Pedro Alves <palves@redhat.com>
1653
1654 * remote.c (remote_target::remote_notice_new_inferior): Use
1655 switch_to_thread instead of writing to inferior_ptid directly.
1656 (remote_target::add_current_inferior_and_thread): Use
1657 switch_to_no_thread instead of writing to inferior_ptid directly.
1658 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1659 and switch_to_thread instead of using set_current_inferior or
1660 writing to inferior_ptid directly.
1661
5233f39b
PA
16622020-06-18 Pedro Alves <palves@redhat.com>
1663
1664 * tracectf.c (ctf_target_open): Switch to added thread instead of
1665 writing to inferior_ptid directly.
1666 (ctf_target::close): Use switch_to_no_thread instead of writing to
1667 inferior_ptid directly.
1668
087e161b
PA
16692020-06-18 Pedro Alves <palves@redhat.com>
1670
1671 * tracefile-tfile.c (tfile_target_open): Don't write to
1672 inferior_ptid directly, instead switch to added thread.
1673 (tfile_target::close): Use switch_to_no_thread instead of writing
1674 to inferior_ptid directly.
1675
7fb43e53
PA
16762020-06-18 Pedro Alves <palves@redhat.com>
1677
1678 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1679 (procfs_target::detach): Use switch_to_no_thread
1680 instead of writing to inferior_ptid directly.
1681 (do_attach): Change return type to void. Switch to the added
1682 thread.
1683 (procfs_target::create_inferior): Switch to the added thread.
1684 (procfs_do_thread_registers): Don't write to inferior_ptid.
1685
18493a00
PA
16862020-06-18 Pedro Alves <palves@redhat.com>
1687
1688 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1689 of writing to inferior_ptid.
1690 (scoped_restore_exited_inferior): Delete.
1691 (handle_vfork_child_exec_or_exit): Simplify using
1692 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1693 instead of writing to inferior_ptid.
1694 (THREAD_STOPPED_BY): Delete.
1695 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1696 (thread_stopped_by_hw_breakpoint): Delete.
1697 (save_waitstatus): Use
1698 scoped_restore_current_thread+switch_to_thread, and call
1699 target_stopped_by_watchpoint instead of
1700 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1701 instead of thread_stopped_by_sw_breakpoint, and
1702 target_stopped_by_hw_breakpoint instead of
1703 thread_stopped_by_hw_breakpoint.
1704 (handle_inferior_event)
1705 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1706 inferior_ptid directly, nor
1707 set_current_inferior/set_current_program_space. Use
1708 switch_to_thread / switch_to_inferior_no_thread instead.
1709
a0776b13
PA
17102020-06-18 Pedro Alves <palves@redhat.com>
1711
1712 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1713 instead of writing to inferior_ptid.
1714
6155c136
PA
17152020-06-18 Pedro Alves <palves@redhat.com>
1716
1717 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1718 added thread.
1719 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1720 to the added thread.
1721 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1722 instead of writing to inferior_ptid.
1723
c5316fc6
PA
17242020-06-18 Pedro Alves <palves@redhat.com>
1725
1726 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1727 (register_to_value_test): Mock a program_space too. Heap-allocate
1728 the address space. Don't write to inferior_ptid. Use
1729 switch_to_thread instead.
1730
8df01799
PA
17312020-06-18 Pedro Alves <palves@redhat.com>
1732
1733 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1734 Delete.
1735 (find_signalled_thread()): New, factored out from
1736 linux_make_corefile_notes and adjusted to handle exited threads.
1737 (linux_make_corefile_notes): Adjust to use the new
1738 find_signalled_thread.
1739
41792d68
PA
17402020-06-18 Pedro Alves <palves@redhat.com>
1741
1742 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1743 of saving/restoring inferior_ptid.
1744
612f258a
TT
17452020-06-17 Tom Tromey <tom@tromey.com>
1746
1747 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1748 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1749 declare.
1750 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1751
efb763a5
SM
17522020-06-15 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1755 of partial symtabs.
1756
2951f6c0
SM
17572020-06-17 Simon Marchi <simon.marchi@efficios.com>
1758
1759 * regformats/reg-arm.dat: Remove.
1760 * regformats/reg-bfin.dat: Remove.
1761 * regformats/reg-cris.dat: Remove.
1762 * regformats/reg-crisv32.dat: Remove.
1763 * regformats/reg-m32r.dat: Remove.
1764 * regformats/reg-tilegx.dat: Remove.
1765 * regformats/reg-tilegx32.dat: Remove.
1766
7d458ea5
SM
17672020-06-17 Simon Marchi <simon.marchi@efficios.com>
1768
1769 * features/Makefile (WHICH): Remove arm files.
1770 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1771 * regformats/arm/arm-with-neon.dat: Remove.
1772 * regformats/arm/arm-with-vfpv2.dat: Remove.
1773 * regformats/arm/arm-with-vfpv3.dat: Remove.
1774
3af96c0d
SM
17752020-06-17 Simon Marchi <simon.marchi@efficios.com>
1776
1777 * features/Makefile (XMLTOC): Remove rx.xml.
1778
b25e22fd
PA
17792020-06-17 Pedro Alves <palves@redhat.com>
1780
1781 * gdbthread.h (thread_control_state) <trap_expected> Update
1782 comments.
1783
a78a19b1
AB
17842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1787 ada_language::lookup_symbol_nonlocal.
1788 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1789 (ada_language::lookup_symbol_nonlocal): New member function,
1790 implementation from ada_lookup_symbol_nonlocal.
1791 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1792 initializer.
1793 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1794 initializer.
1795 (cplus_language::lookup_symbol_nonlocal): New member function.
1796 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1797 (minimal_language_data) Likewise.
1798 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1799 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1800 initializer.
1801 (d_language::lookup_symbol_nonlocal): New member function.
1802 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1803 initializer.
1804 (f_language::lookup_symbol_nonlocal): New member function.
1805 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1806 initializer.
1807 * language.c (unknown_language_data): Likewise.
1808 (auto_language_data): Likewise.
1809 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1810 field.
1811 (language_defn::lookup_symbol_nonlocal): New member function.
1812 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1813 initializer.
1814 * objc-lang.c (objc_language_data): Likewise.
1815 * opencl-lang.c (opencl_language_data): Likewise.
1816 * p-lang.c (pascal_language_data): Likewise.
1817 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1818 rust_language::lookup_symbol_nonlocal.
1819 (rust_language_data): Delete la_lookup_symbol_nonlocal
1820 initializer.
1821 (rust_language::lookup_symbol_nonlocal): New member function,
1822 implementation from rust_lookup_symbol_nonlocal.
1823 * symtab.c (lookup_symbol_aux): Update call to
1824 lookup_symbol_nonlocal.
1825 (basic_lookup_symbol_nonlocal): Rename to...
1826 (language_defn::lookup_symbol_nonlocal): ...this, and update
1827 header comment. Remove language_defn parameter, and replace with
1828 uses of `this'.
1829 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1830
ebe2334e
AB
18312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1832
1833 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1834 initializer.
1835 (ada_language::value_print_inner): New member function.
1836 * c-lang.c (c_language_data): Delete la_value_print_inner
1837 initializer.
1838 (cplus_language_data): Likewise.
1839 (asm_language_data): Likewise.
1840 (minimal_language_data): Likewise.
1841 * d-lang.c (d_language_data): Likewise.
1842 (d_language::value_print_inner): New member function.
1843 * f-lang.c (f_language_data): Delete la_value_print_inner
1844 initializer.
1845 (f_language::value_print_inner): New member function.
1846 * f-lang.h (f_value_print_innner): Rename to...
1847 (f_value_print_inner): ...this (note spelling of 'inner').
1848 * f-valprint.c (f_value_print_innner): Rename to...
1849 (f_value_print_inner): ...this (note spelling of 'inner').
1850 * go-lang.c (go_language_data): Delete la_value_print_inner
1851 initializer.
1852 (go_language::value_print_inner): New member function.
1853 * language.c (language_defn::value_print_inner): Define new member
1854 function.
1855 (unk_lang_value_print_inner): Delete.
1856 (unknown_language_data): Delete la_value_print_inner initializer.
1857 (unknown_language::value_print_inner): New member function.
1858 (auto_language_data): Delete la_value_print_inner initializer.
1859 (auto_language::value_print_inner): New member function.
1860 * language.h (language_data): Delete la_value_print_inner field.
1861 (language_defn::value_print_inner): Delcare new member function.
1862 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1863 initializer.
1864 (m2_language::value_print_inner): New member function.
1865 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1866 initializer.
1867 * opencl-lang.c (opencl_language_data): Likewise.
1868 * p-lang.c (pascal_language_data): Likewise.
1869 (pascal_language::value_print_inner): New member function.
1870 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1871 initializer.
1872 (rust_language::value_print_inner): New member function.
1873 * valprint.c (do_val_print): Update call to value_print_inner.
1874
a1d1fa3e
AB
18752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1876
1877 * ada-lang.c (ada_language_data): Delete la_value_print
1878 initializer.
1879 (ada_language::value_print): New member function.
1880 * c-lang.c (c_language_data): Delete la_value_print initializer.
1881 (cplus_language_data): Likewise.
1882 (asm_language_data): Likewise.
1883 (minimal_language_data): Likewise.
1884 * d-lang.c (d_language_data): Likewise.
1885 * f-lang.c (f_language_data): Likewise.
1886 * go-lang.c (go_language_data): Likewise.
1887 * language.c (unk_lang_value_print): Delete.
1888 (language_defn::value_print): Define new member function.
1889 (unknown_language_data): Delete la_value_print initializer.
1890 (unknown_language::value_print): New member function.
1891 (auto_language_data): Delete la_value_print initializer.
1892 (auto_language::value_print): New member function.
1893 * language.h (language_data): Delete la_value_print field.
1894 (language_defn::value_print): Declare new member function.
1895 (LA_VALUE_PRINT): Update call to value_print.
1896 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1897 * objc-lang.c (objc_language_data): Likewise.
1898 * opencl-lang.c (opencl_language_data): Likewise.
1899 * p-lang.c (pascal_language_data): Likewise.
1900 (pascal_language::value_print): New member function.
1901 * rust-lang.c (rust_language_data): Delete la_value_print
1902 initializer.
1903
f16a9f57
AB
19042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1905
1906 * ada-lang.c (ada_watch_location_expression): Rename to
1907 ada_language::watch_location_expression.
1908 (ada_language_data): Delete la_watch_location_expression
1909 initializer.
1910 (ada_language::watch_location_expression): New member function,
1911 implementation from ada_watch_location_expression.
1912 * breakpoint.c (watch_command_1): Update call to
1913 watch_location_expression.
1914 * c-lang.c (c_watch_location_expression): Rename to
1915 language_defn::watch_location_expression.
1916 (c_language_data): Delete la_watch_location_expression
1917 initializer.
1918 (cplus_language_data): Likewise.
1919 (asm_language_data): Likewise.
1920 (minimal_language_data): Likewise.
1921 * c-lang.h (c_watch_location_expression): Delete declaration.
1922 * d-lang.c (d_language_data): Delete la_watch_location_expression
1923 initializer.
1924 * f-lang.c (f_language_data): Likewise.
1925 * go-lang.c (go_language_data): Likewise.
1926 * language.c (language_defn::watch_location_expression): Member
1927 function implementation from c_watch_location_expression.
1928 (unknown_language_data): Delete la_watch_location_expression
1929 initializer.
1930 (auto_language_data): Likewise.
1931 * language.h (language_data): Delete la_watch_location_expression
1932 field.
1933 (language_defn::watch_location_expression): Declare new member
1934 function.
1935 * m2-lang.c (m2_language_data): Delete
1936 la_watch_location_expression initializer.
1937 * objc-lang.c (objc_language_data): Likewise.
1938 * opencl-lang.c (opencl_language_data): Likewise.
1939 * p-lang.c (pascal_language_data): Likewise.
1940 * rust-lang.c (rust_watch_location_expression): Rename to
1941 rust_language::watch_location_expression.
1942 (rust_language_data): Delete la_watch_location_expression
1943 initializer.
1944 (rust_language::watch_location_expression): New member function,
1945 implementation from rust_watch_location_expression.
1946
7e56227d
AB
19472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1948
1949 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1950 ada_language::collect_symbol_completion_matches.
1951 (ada_language_data): Delete la_collect_symbol_completion_matches
1952 initializer.
1953 (ada_language::collect_symbol_completion_matches): New member
1954 function, implementation from
1955 ada_collect_symbol_completion_matches.
1956 * c-lang.c (c_language_data): Delete
1957 la_collect_symbol_completion_matches initializer.
1958 (cplus_language_data): Likewise.
1959 (asm_language_data): Likewise.
1960 (minimal_language_data): Likewise.
1961 * d-lang.c (d_language_data): Likewise.
1962 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1963 f_language::collect_symbol_completion_matches.
1964 (f_language_data): Delete la_collect_symbol_completion_matches
1965 initializer.
1966 (f_language::collect_symbol_completion_matches) New member
1967 function, implementation from f_collect_symbol_completion_matches.
1968 * go-lang.c (go_language_data): Delete
1969 la_collect_symbol_completion_matches initializer.
1970 * language.c (unknown_language_data): Likewise.
1971 (auto_language_data): Likewise.
1972 * language.h (language_data): Delete
1973 la_collect_symbol_completion_matches field.
1974 (language_defn::collect_symbol_completion_matches): New member
1975 function.
1976 * m2-lang.c (m2_language_data): Delete
1977 la_collect_symbol_completion_matches initializer.
1978 * objc-lang.c (objc_language_data): Likewise.
1979 * opencl-lang.c (opencl_language_data): Likewise.
1980 * p-lang.c (pascal_language_data): Likewise.
1981 * rust-lang.c (rust_language_data): Likewise.
1982 * symtab.c (default_collect_symbol_completion_matches): Delete.
1983 (collect_symbol_completion_matches): Update call to
1984 collect_symbol_completion_matches.
1985 (collect_symbol_completion_matches_type): Likewise.
1986 * symtab.h (default_collect_symbol_completion_matches): Delete
1987 declaration.
1988
53fc67f8
AB
19892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1990
1991 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1992 (ada_language_data): Delete la_word_break_characters initializer.
1993 (ada_language::word_break_characters): New member function.
1994 * c-lang.c (c_language_data): Delete la_word_break_characters
1995 initializer.
1996 (cplus_language_data): Likewise.
1997 (asm_language_data): Likewise.
1998 (minimal_language_data): Likewise.
1999 * completer.c: Update global comment.
2000 (advance_to_expression_complete_word_point): Update call to
2001 word_break_characters.
2002 (complete_files_symbols): Likewise.
2003 (complete_line_internal_1): Likewise.
2004 (default_completer_handle_brkchars): Likewise.
2005 (skip_quoted_chars): Likewise.
2006 * d-lang.c (d_language_data): Delete la_word_break_characters
2007 initializer.
2008 * f-lang.c (f_word_break_characters): Delete.
2009 (f_language_data): Delete la_word_break_characters initializer.
2010 (f_language::word_break_characters): New member function.
2011 * go-lang.c (go_language_data): Delete la_word_break_characters
2012 initializer.
2013 * language.c (unknown_language_data): Likewise.
2014 (auto_language_data): Likewise.
2015 * language.h (default_word_break_characters): Move declaration to
2016 earlier in the file.
2017 (language_data): Delete la_word_break_characters field.
2018 (language_defn::word_break_characters): New member function.
2019 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2020 initializer.
2021 * objc-lang.c (objc_language_data): Likewise.
2022 * opencl-lang.c (opencl_language_data): Likewise.
2023 * p-lang.c (pascal_language_data): Likewise.
2024 * rust-lang.c (rust_language_data): Likewise.
2025
c9debfb9
AB
20262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2027
2028 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2029 (ada_language_data): Delete la_get_symbol_name_matcher
2030 initializer.
2031 (language_defn::get_symbol_name_matcher_inner): New member
2032 function.
2033 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2034 initializer.
2035 (cplus_language_data): Likewise.
2036 (cplus_language::get_symbol_name_matcher_inner): New member
2037 function.
2038 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2039 (minimal_language_data): Likewise.
2040 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2041 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2042 initializer.
2043 * dictionary.c (iter_match_first_hashed): Update call to
2044 get_symbol_name_matcher.
2045 (iter_match_next_hashed): Likewise.
2046 (iter_match_next_linear): Likewise.
2047 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2048 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2049 initializer.
2050 (f_language::get_symbol_name_matcher_inner): New member function.
2051 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2052 initializer.
2053 * language.c (default_symbol_name_matcher): Update header comment,
2054 make static.
2055 (language_defn::get_symbol_name_matcher): New definition.
2056 (language_defn::get_symbol_name_matcher_inner): Likewise.
2057 (get_symbol_name_matcher): Delete.
2058 (unknown_language_data): Delete la_get_symbol_name_matcher
2059 initializer.
2060 (auto_language_data): Likewise.
2061 * language.h (language_data): Delete la_get_symbol_name_matcher
2062 field.
2063 (language_defn::get_symbol_name_matcher): New member function.
2064 (language_defn::get_symbol_name_matcher_inner): Likewise.
2065 (default_symbol_name_matcher): Delete declaration.
2066 * linespec.c (find_methods): Update call to
2067 get_symbol_name_matcher.
2068 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2069 initializer.
2070 * minsyms.c (lookup_minimal_symbol): Update call to
2071 get_symbol_name_matcher.
2072 (iterate_over_minimal_symbols): Likewise.
2073 * objc-lang.c (objc_language_data): Delete
2074 la_get_symbol_name_matcher initializer.
2075 * opencl-lang.c (opencl_language_data): Likewise.
2076 * p-lang.c (pascal_language_data): Likewise.
2077 * psymtab.c (psymbol_name_matches): Update call to
2078 get_symbol_name_matcher.
2079 * rust-lang.c (rust_language_data): Delete
2080 la_get_symbol_name_matcher initializer.
2081 * symtab.c (symbol_matches_search_name): Update call to
2082 get_symbol_name_matcher.
2083 (compare_symbol_name): Likewise.
2084
9a49ad8c
AB
20852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * ada-lang.c (ada_language_data): Delete la_compute_program
2088 initializer.
2089 * c-lang.c (c_language_data): Likewise.
2090 (c_language::compute_program): New member function.
2091 (cplus_language_data): Delete la_compute_program initializer.
2092 (cplus_language::compute_program): New member function.
2093 (asm_language_data): Delete la_compute_program initializer.
2094 (minimal_language_data): Likewise.
2095 * c-lang.h (c_compute_program): Update comment.
2096 (cplus_compute_program): Likewise.
2097 * compile/compile-c-support.c (c_compute_program): Likewise.
2098 (cplus_compute_program): Likewise.
2099 * compile/compile.c (compile_to_object): Update call to
2100 la_compute_program.
2101 * d-lang.c (d_language_data): Delete la_compute_program
2102 initializer.
2103 * f-lang.c (f_language_data): Likewise.
2104 * go-lang.c (go_language_data): Likewise.
2105 * language.c (unknown_language_data): Likewise.
2106 (auto_language_data): Likewise.
2107 * language.h (language_data): Delete la_compute_program field.
2108 (language_defn::compute_program): New member function.
2109 * m2-lang.c (m2_language_data): Delete la_compute_program
2110 initializer.
2111 * objc-lang.c (objc_language_data): Likewise.
2112 * opencl-lang.c (opencl_language_data): Likewise.
2113 * p-lang.c (pascal_language_data): Likewise.
2114 * rust-lang.c (rust_language_data): Likewise.
2115
eff93b4d
AB
21162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2117
2118 * ada-lang.c (ada_language_data) Delete
2119 la_class_name_from_physname initializer.
2120 * c-lang.c (c_language_data): Likewise.
2121 (cplus_language_data): Likewise.
2122 (cplus_language::class_name_from_physname): New member function.
2123 (asm_language_data): Delete la_class_name_from_physname
2124 initializer.
2125 (minimal_language_data): Likewise.
2126 * d-lang.c (d_language_data): Likewise.
2127 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2128 method on language_defn class.
2129 (guess_full_die_structure_name): Likewise.
2130 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2131 initializer.
2132 * go-lang.c (go_language_data): Likewise.
2133 * language.c (language_class_name_from_physname): Delete.
2134 (unk_lang_class_name): Delete.
2135 (unknown_language_data): Delete la_class_name_from_physname
2136 initializer.
2137 (auto_language_data): Likewise.
2138 * language.h (language_data): Delete la_class_name_from_physname
2139 field.
2140 (language_defn::class_name_from_physname): New function.
2141 (language_class_name_from_physname): Delete declaration.
2142 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2143 initializer.
2144 * objc-lang.c (objc_language_data): Likewise.
2145 * opencl-lang.c (opencl_language_data): Likewise.
2146 * p-lang.c (pascal_language_data): Likewise.
2147 * rust-lang.c (rust_language_data): Likewise.
2148
de543742
TT
21492020-06-16 Tom Tromey <tom@tromey.com>
2150
2151 * tui/tui-data.h (STATUS_NAME): New macro.
2152 * tui/tui-layout.c (tui_remove_some_windows)
2153 (initialize_known_windows, tui_register_window)
2154 (tui_layout_split::remove_windows, initialize_layouts)
2155 (tui_new_layout_command): Don't use hard-coded window names.
2156
a350efd4
TT
21572020-06-16 Tom Tromey <tom@tromey.com>
2158
2159 PR tui/25348:
2160 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2161 tui_initialize_readline. Only run once. Call rl_initialize.
2162 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2163 tui_initialize_readline.
2164 * tui/tui-io.c (tui_setup_io): Call
2165 tui_ensure_readline_initialized.
2166 * tui/tui-interp.c (tui_interp::init): Update.
2167
39ec0490
TT
21682020-06-16 Tom Tromey <tom@tromey.com>
2169
2170 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2171 Also preserve the status window.
2172
d2d1ea20
TT
21732020-06-16 Tom Tromey <tom@tromey.com>
2174
2175 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2176 where m_window==nullptr.
2177
66920317
TT
21782020-06-15 Tom Tromey <tromey@adacore.com>
2179
2180 * windows-nat.c (windows_nat::handle_output_debug_string):
2181 Update.
2182 (windows_nat::handle_ms_vc_exception): Update.
2183 * target.h (target_read_string): Change API.
2184 * target.c (target_read_string): Change API.
2185 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2186 Update.
2187 * solib-frv.c (frv_current_sos): Update.
2188 * solib-dsbt.c (dsbt_current_sos): Update.
2189 * solib-darwin.c (darwin_current_sos): Update.
2190 * linux-thread-db.c (inferior_has_bug): Update.
2191 * expprint.c (print_subexp_standard): Update.
2192 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2193 (ada_exception_message_1): Update.
2194
a5d871dd
TT
21952020-06-15 Tom Tromey <tromey@adacore.com>
2196
2197 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2198
670e35fa
TT
21992020-06-15 Tom Tromey <tromey@adacore.com>
2200
2201 * valprint.c (read_string): Update comment.
2202 * target.c (MIN): Remove.
2203 (target_read_string): Rewrite.
2204
f5272a3b
TT
22052020-06-15 Tom Tromey <tromey@adacore.com>
2206
2207 * corefile.c (read_memory_string): Remove.
2208 * ada-valprint.c (ada_value_print_ptr): Update.
2209 * ada-lang.h (ada_tag_name): Change return type.
2210 * ada-lang.c (type_from_tag): Update.
2211 (ada_tag_name_from_tsd): Change return type. Use
2212 target_read_string.
2213 (ada_tag_name): Likewise.
2214 * gdbcore.h (read_memory_string): Don't declare.
2215
2c074f49
HD
22162020-06-14 Hannes Domani <ssbssa@yahoo.de>
2217
2218 * symtab.c (rbreak_command): Ignore Windows drive colon.
2219
6a17d503
SM
22202020-06-12 Simon Marchi <simon.marchi@efficios.com>
2221
2222 * NEWS: Mention removed GDBserver host support.
2223
453c733f
NC
22242020-06-12 Nelson Chu <nelson.chu@sifive.com>
2225
2226 * features/riscv/rebuild-csr-xml.sh: Updated.
2227
2b4e6a3f
TT
22282020-06-11 Tom Tromey <tom@tromey.com>
2229
2230 PR gdb/18318:
2231 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2232
4412332f
JG
22332020-06-09 Jonny Grant <jg@jguk.org>
22342020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2235
2236 * main.c (captured_main_1): Don't print new line after help.
2237 (print_gdb_help): add mailing list and IRC channel information
2238 to --help. Add new lines between items in the footer. Remove
2239 quotes around bug url.
2240
2f33032a
KS
22412020-06-11 Keith Seitz <keiths@redhat.com>
2242
2243 PR gdb/21356
2244 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2245 Resolve typedefs for type length calculations.
2246
7ab96794
TV
22472020-06-10 Tom de Vries <tdevries@suse.de>
2248
2249 PR ada/24713
2250 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2251 (write_psymbols): Enable .gdb_index for ada.
2252 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2253 ada.
2254
e5f3ece2
TV
22552020-06-10 Tom de Vries <tdevries@suse.de>
2256
2257 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2258 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2259 namei" instead of "const char *name" argument.
2260 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2261 dw2_symtab_iter_init.
2262
940da03e
SM
22632020-06-08 Simon Marchi <simon.marchi@efficios.com>
2264
2265 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2266 to use type::field and field::type instead.
2267
b6cdac4b
SM
22682020-06-08 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2271 to use field::type instead.
2272
5d14b6e5
SM
22732020-06-08 Simon Marchi <simon.marchi@efficios.com>
2274
2275 * gdbtypes.h (struct field) <type, set_type>: New methods.
2276 Rename `type` field to...
2277 <m_type>: ... this. Change references throughout to use type or
2278 set_type methods.
2279 (FIELD_TYPE): Use field::type. Change call sites that modify
2280 the field's type to use field::set_type instead.
2281
3d967001
SM
22822020-06-08 Simon Marchi <simon.marchi@efficios.com>
2283
2284 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2285 to use type::index_type instead.
2286
262abc0d
SM
22872020-06-08 Simon Marchi <simon.marchi@efficios.com>
2288
2289 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2290 methods.
2291 (TYPE_INDEX_TYPE): Use type::index_type.
2292 * gdbtypes.c (create_array_type_with_stride): Likewise.
2293
82836c92
TT
22942020-06-07 Tom Tromey <tom@tromey.com>
2295
2296 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2297 parameter.
2298 (generic_value_print): Update.
2299
940dace9
AB
23002020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 Revert commit 982a38f60b0.
2303 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2304
982a38f6
AB
23052020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2306
2307 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2308 avoid use after free.
2309
82f06518
TV
23102020-06-05 Tom de Vries <tdevries@suse.de>
2311
2312 * NEWS: Fix typos.
2313
f8c41851
SM
23142020-06-04 Simon Marchi <simon.marchi@efficios.com>
2315
2316 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2317 the per_bfd object.
2318 (dwarf2_read_debug_names): Likewise.
2319 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2320 object when re-using a per_bfd object with an index.
2321
f9b5d5ea
TV
23222020-06-03 Tom de Vries <tdevries@suse.de>
2323
2324 PR symtab/26046
2325 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2326 children for C++.
2327 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2328 DW_TAG_subprogram.
2329
f6eee2d0
AB
23302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * ada-lang.c (ada_language_data): Delete skip_trampoline
2333 initializer.
2334 * c-lang.c (c_language_data): Likewise.
2335 (cplus_language_data): Likewise.
2336 (cplus_language::skip_trampoline): New member function.
2337 (asm_language_data): Delete skip_trampoline initializer.
2338 (minimal_language_data): Likewise.
2339 * d-lang.c (d_language_data): Likewise.
2340 * f-lang.c (f_language_data): Likewise.
2341 * go-lang.c (go_language_data): Likewise.
2342 * language.c (unk_lang_trampoline): Delete function.
2343 (skip_language_trampoline): Update.
2344 (unknown_language_data): Delete skip_trampoline initializer.
2345 (auto_language_data): Likewise.
2346 * language.h (language_data): Delete skip_trampoline field.
2347 (language_defn::skip_trampoline): New function.
2348 * m2-lang.c (m2_language_data): Delete skip_trampoline
2349 initializer.
2350 * objc-lang.c (objc_skip_trampoline): Delete function, move
2351 implementation to objc_language::skip_trampoline.
2352 (objc_language_data): Delete skip_trampoline initializer.
2353 (objc_language::skip_trampoline): New member function with
2354 implementation from objc_skip_trampoline.
2355 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2356 initializer.
2357 * p-lang.c (pascal_language_data): Likewise.
2358 * rust-lang.c (rust_language_data): Likewise.
2359
0a50df5d
AB
23602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2361
2362 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2363 (ada_language::demangle): New member function.
2364 * c-lang.c (c_language_data): Delete la_demangle initializer.
2365 (cplus_language_data): Delete la_demangle initializer.
2366 (cplus_language::demangle): New member function.
2367 (asm_language_data): Delete la_demangle initializer.
2368 (minimal_language_data): Delete la_demangle initializer.
2369 * d-lang.c (d_language_data): Delete la_demangle initializer.
2370 (d_language::demangle): New member function.
2371 * f-lang.c (f_language_data): Delete la_demangle initializer.
2372 (f_language::demangle): New member function.
2373 * go-lang.c (go_language_data): Delete la_demangle initializer.
2374 (go_language::demangle): New member function.
2375 * language.c (language_demangle): Update.
2376 (unk_lang_demangle): Delete.
2377 (unknown_language_data): Delete la_demangle initializer.
2378 (unknown_language::demangle): New member function.
2379 (auto_language_data): Delete la_demangle initializer.
2380 (auto_language::demangle): New member function.
2381 * language.h (language_data): Delete la_demangle field.
2382 (language_defn::demangle): New function.
2383 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2384 * objc-lang.c (objc_language_data): Delete la_demangle
2385 initializer.
2386 (objc_language::demangle): New member function.
2387 * opencl-lang.c (opencl_language_data): Delete la_demangle
2388 initializer.
2389 * p-lang.c (pascal_language_data): Likewise.
2390 * rust-lang.c (rust_language_data): Likewise.
2391 (rust_language::demangle): New member function.
2392
fbfb0a46
AB
23932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 * ada-lang.c (ada_language_data): Delete la_print_type
2396 initializer.
2397 (ada_language::print_type): New member function.
2398 * c-lang.c (c_language_data): Delete la_print_type initializer.
2399 (c_language::print_type): New member function.
2400 (cplus_language_data): Delete la_print_type initializer.
2401 (cplus_language::print_type): New member function.
2402 (asm_language_data): Delete la_print_type initializer.
2403 (asm_language::print_type): New member function.
2404 (minimal_language_data): Delete la_print_type initializer.
2405 (minimal_language::print_type): New member function.
2406 * d-lang.c (d_language_data): Delete la_print_type initializer.
2407 (d_language::print_type): New member function.
2408 * f-lang.c (f_language_data): Delete la_print_type initializer.
2409 (f_language::print_type): New member function.
2410 * go-lang.c (go_language_data): Delete la_print_type initializer.
2411 (go_language::print_type): New member function.
2412 * language.c (unk_lang_print_type): Delete.
2413 (unknown_language_data): Delete la_print_type initializer.
2414 (unknown_language::print_type): New member function.
2415 (auto_language_data): Delete la_print_type initializer.
2416 (auto_language::print_type): New member function.
2417 * language.h (language_data): Delete la_print_type field.
2418 (language_defn::print_type): New function.
2419 (LA_PRINT_TYPE): Update.
2420 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2421 (m2_language::print_type): New member function.
2422 * objc-lang.c (objc_language_data): Delete la_print_type
2423 initializer.
2424 (objc_language::print_type): New member function.
2425 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2426 to opencl_language::print_type.
2427 (opencl_language_data): Delete la_print_type initializer.
2428 (opencl_language::print_type): New member function, implementation
2429 from opencl_print_type.
2430 * p-lang.c (pascal_language_data): Delete la_print_type
2431 initializer.
2432 (pascal_language::print_type): New member function.
2433 * rust-lang.c (rust_print_type): Delete, implementation moved to
2434 rust_language::print_type.
2435 (rust_language_data): Delete la_print_type initializer.
2436 (rust_language::print_type): New member function, implementation
2437 from rust_print_type.
2438
6f827019
AB
24392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2442 implementation moves to...
2443 (ada_language::sniff_from_mangled_name): ...here. Update return
2444 type.
2445 (ada_language_data): Delete la_sniff_from_mangled_name
2446 initializer.
2447 * c-lang.c (c_language_data): Likewise.
2448 (cplus_language_data): Likewise.
2449 (cplus_language::sniff_from_mangled_name): New member function,
2450 implementation taken from gdb_sniff_from_mangled_name.
2451 (asm_language_data): Delete la_sniff_from_mangled_name
2452 initializer.
2453 (minimal_language_data): Likewise.
2454 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2455 implementation moves to cplus_language::sniff_from_mangled_name.
2456 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2457 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2458 moves to...
2459 (d_language::sniff_from_mangled_name): ...here.
2460 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2461 * f-lang.c (f_language_data): Likewise.
2462 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2463 moves to...
2464 (go_language::sniff_from_mangled_name): ...here.
2465 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2466 * language.c (language_sniff_from_mangled_name): Delete.
2467 (unknown_language_data): Delete la_sniff_from_mangled_name
2468 initializer.
2469 (auto_language_data): Likewise.
2470 * language.h (language_data): Delete la_sniff_from_mangled_name
2471 field.
2472 (language_defn::sniff_from_mangled_name): New function.
2473 (language_sniff_from_mangled_name): Delete declaration.
2474 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2475 field.
2476 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2477 implementation moves to...
2478 (objc_language::sniff_from_mangled_name): ...here.
2479 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2480 * opencl-lang.c (opencl_language_data): Likewise.
2481 * p-lang.c (pascal_language_data): Likewise.
2482 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2483 implementation moves to...
2484 (rust_language::sniff_from_mangled_name): ...here.
2485 (rust_language_data): Delete la_sniff_from_mangled_name
2486 initializer.
2487 * symtab.c (symbol_find_demangled_name): Call
2488 sniff_from_mangled_name member function.
2489
fb8006fd
AB
24902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2491
2492 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2493 initializer.
2494 * c-lang.c (c_language_data): Likewise.
2495 (cplus_language_data): Likewise.
2496 (cplus_language::search_name_hash): New member function.
2497 (asm_language_data): Delete la_search_name_hash initializer.
2498 (minimal_language_data): Likewise.
2499 * d-lang.c (d_language_data): Likewise.
2500 * dictionary.c (default_search_name_hash): Rename to...
2501 (language_defn::search_name_hash): ...this.
2502 * f-lang.c (f_language_data): Likewise.
2503 (f_language::search_name_hash): New member function.
2504 * go-lang.c (go_language_data): Delete la_search_name_hash
2505 initializer.
2506 * language.c (unknown_language_data): Likewise.
2507 (auto_language_data): Likewise.
2508 * language.h (struct language_data): Delete la_search_name_hash
2509 field.
2510 (language_defn::search_name_hash): Declare new member function.
2511 (default_search_name_hash): Delete declaration.
2512 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2513 initializer.
2514 * objc-lang.c (objc_language_data): Likewise.
2515 * opencl-lang.c (opencl_language_data): Likewise.
2516 * p-lang.c (pascal_language_data): Likewise.
2517 * rust-lang.c (rust_language_data): Likewise.
2518 * symtab.c (search_name_hash): Update call.
2519
8e25bafe
AB
25202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2521
2522 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2523 initializer.
2524 * c-lang.c (class compile_instance): Declare.
2525 (c_language_data): Delete la_get_compile_instance initializer.
2526 (c_language::get_compile_instance): New member function.
2527 (cplus_language_data): Delete la_get_compile_instance initializer.
2528 (cplus_language::get_compile_instance): New member function.
2529 (asm_language_data): Delete la_get_compile_instance initializer.
2530 (minimal_language_data): Likewise.
2531 * c-lang.h (c_get_compile_context): Update comment.
2532 (cplus_get_compile_context): Update comment.
2533 * compile/compile.c (compile_to_object): Update calls, don't rely
2534 on function pointer being NULL.
2535 * d-lang.c (d_language_data): Delete la_get_compile_instance
2536 initializer.
2537 * f-lang.c (f_language_data): Likewise.
2538 * go-lang.c (go_language_data): Likewise.
2539 * language.c (unknown_language_data): Likewise.
2540 (auto_language_data): Likewise.
2541 * language.h (language_data): Delete la_get_compile_instance field.
2542 (language_defn::get_compile_instance): New member function.
2543 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2544 initializer.
2545 * objc-lang.c (objc_language_data): Likewise.
2546 * opencl-lang.c (opencl_language_data): Likewise.
2547 * p-lang.c (pascal_language_data): Likewise.
2548 * rust-lang.c (rust_language_data): Likewise.
2549
4009ee92
AB
25502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2551
2552 * ada-lang.c (ada_add_all_symbols): Update comment.
2553 (ada_iterate_over_symbols): Delete, move implementation to...
2554 (ada_language::iterate_over_symbols): ...here, a new member
2555 function, rewrite to use range based for loop.
2556 (ada_language_data): Delete la_iterate_over_symbols initializer.
2557 * c-lang.c (c_language_data): Likewise.
2558 (cplus_language_data): Likewise.
2559 (asm_language_data): Likewise.
2560 (minimal_language_data): Likewise.
2561 * d-lang.c (d_language_data): Likewise.
2562 * f-lang.c (f_language_data): Likewise.
2563 * go-lang.c (go_language_data): Likewise.
2564 * language.c (unknown_language_data): Likewise.
2565 (auto_language_data): Likewise.
2566 * language.h (language_data): Delete la_iterate_over_symbols field.
2567 (language_defn::iterate_over_symbols): New member function.
2568 (LA_ITERATE_OVER_SYMBOLS): Update.
2569 * linespec.c (iterate_over_all_matching_symtabs): Update.
2570 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2571 initializer.
2572 * objc-lang.c (objc_language_data): Likewise.
2573 * opencl-lang.c (opencl_language_data): Likewise.
2574 * p-lang.c (pascal_language_data): Likewise.
2575 * rust-lang.c (rust_language_data): Likewise.
2576
54f4ca46
AB
25772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2578
2579 * ada-lang.c (ada_language_data): Delete
2580 la_lookup_transparent_type initializer.
2581 * c-lang.c (c_language_data): Likewise.
2582 (cplus_language_data): Likewise.
2583 (cplus_language::lookup_transparent_type): New member function.
2584 (asm_language_data): Delete la_lookup_transparent_type
2585 initializer.
2586 (minimal_language_data): Likewise.
2587 * d-lang.c (d_language_data): Likewise.
2588 * f-lang.c (f_language_data): Likewise.
2589 * go-lang.c (go_language_data): Likewise.
2590 * language.c (unknown_language_data): Likewise.
2591 (auto_language_data): Likewise.
2592 * language.h (struct language_data): Delete
2593 la_lookup_transparent_type field.
2594 (language_defn::lookup_transparent_type): New member function.
2595 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2596 initializer.
2597 * objc-lang.c (objc_language_data): Likewise.
2598 * opencl-lang.c (opencl_language_data): Likewise.
2599 * p-lang.c (pascal_language_data): Likewise.
2600 * rust-lang.c (rust_language_data): Likewise.
2601 * symtab.c (symbol_matches_domain): Update call.
2602
1fb314aa
AB
26032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2604
2605 * ada-lang.c (ada_language_arch_info): Delete function, move
2606 implementation to...
2607 (ada_language::language_arch_info): ...here, a new member
2608 function.
2609 (ada_language_data): Delete la_language_arch_info.
2610 * c-lang.c (c_language_data): Likewise.
2611 (c_language::language_arch_info): New member function.
2612 (cplus_language_arch_info): Delete function, move
2613 implementation to...
2614 (cplus_language::language_arch_info): ...here, a new member
2615 function.
2616 (cplus_language_data): Delete la_language_arch_info.
2617 (asm_language_data): Likewise.
2618 (asm_language::language_arch_info): New member function.
2619 (minimal_language_data): Delete la_language_arch_info.
2620 (minimal_language::language_arch_info): New member function.
2621 * d-lang.c (d_language_arch_info): Delete function, move
2622 implementation to...
2623 (d_language::language_arch_info): ...here, a new member
2624 function.
2625 (d_language_data): Delete la_language_arch_info.
2626 * f-lang.c (f_language_arch_info): Delete function, move
2627 implementation to...
2628 (f_language::language_arch_info): ...here, a new member
2629 function.
2630 (f_language_data): Delete la_language_arch_info.
2631 * go-lang.c (go_language_arch_info): Delete function, move
2632 implementation to...
2633 (go_language::language_arch_info): ...here, a new member
2634 function.
2635 (go_language_data): Delete la_language_arch_info.
2636 * language.c (unknown_language_data): Likewise.
2637 (unknown_language::language_arch_info): New member function.
2638 (auto_language_data): Delete la_language_arch_info.
2639 (auto_language::language_arch_info): New member function.
2640 (language_gdbarch_post_init): Update call to
2641 la_language_arch_info.
2642 * language.h (language_data): Delete la_language_arch_info
2643 function pointer.
2644 (language_defn::language_arch_info): New function.
2645 * m2-lang.c (m2_language_arch_info): Delete function, move
2646 implementation to...
2647 (m2_language::language_arch_info): ...here, a new member
2648 function.
2649 (m2_language_data): Delete la_language_arch_info.
2650 * objc-lang.c (objc_language_arch_info): Delete function, move
2651 implementation to...
2652 (objc_language::language_arch_info): ...here, a new member
2653 function.
2654 (objc_language_data): Delete la_language_arch_info.
2655 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2656 implementation to...
2657 (opencl_language::language_arch_info): ...here, a new member
2658 function.
2659 (opencl_language_data): Delete la_language_arch_info.
2660 * p-lang.c (pascal_language_arch_info): Delete function, move
2661 implementation to...
2662 (pascal_language::language_arch_info): ...here, a new member
2663 function.
2664 (pascal_language_data): Delete la_language_arch_info.
2665 * rust-lang.c (rust_language_arch_info): Delete function, move
2666 implementation to...
2667 (rust_language::language_arch_info): ...here, a new member
2668 function.
2669 (rust_language_data): Delete la_language_arch_info.
2670
48448202
AB
26712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2672
2673 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2674 initializer.
2675 * c-lang.c (c_language_data): Likewise.
2676 (cplus_language_data): Likewise.
2677 (cplus_language::pass_by_reference_info): New method.
2678 (asm_language_data): Delete la_pass_by_reference initializer.
2679 (minimal_language_data): Likewise.
2680 * cp-abi.c (cp_pass_by_reference): Remove use of
2681 default_pass_by_reference.
2682 * d-lang.c (d_language_data): Likewise.
2683 * f-lang.c (f_language_data): Likewise.
2684 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2685 default_pass_by_reference.
2686 * go-lang.c (go_language_data): Likewise.
2687 * language.c (language_pass_by_reference): Update.
2688 (default_pass_by_reference): Delete.
2689 (unknown_language_data): Delete la_pass_by_reference
2690 initializer.
2691 (auto_language_data): Likewise.
2692 * language.h (struct language_data): Delete la_pass_by_reference
2693 field.
2694 (language_defn::pass_by_reference_info): New member function.
2695 (default_pass_by_reference): Delete declaration.
2696 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2697 initializer.
2698 * objc-lang.c (objc_language_data): Likewise.
2699 * opencl-lang.c (opencl_language_data): Likewise.
2700 * p-lang.c (pascal_language_data): Likewise.
2701 * rust-lang.c (rust_language_data): Likewise.
2702
15e5fd35
AB
27032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * ada-lang.c (ada_read_var_value): Delete function, move
2706 implementation to...
2707 (ada_language::read_var_value): ...here.
2708 (ada_language_data): Delete la_read_var_value initializer.
2709 * c-lang.c (c_language_data): Likewise.
2710 (cplus_language_data): Likewise.
2711 (minimal_language_data): Likewise.
2712 * d-lang.c (d_language_data): Likewise.
2713 * f-lang.c (f_language_data): Likewise.
2714 * findvar.c (default_read_var_value): Rename to...
2715 (language_defn::read_var_value): ...this.
2716 * findvar.c (read_var_value): Update header comment, and change to
2717 call member function instead of function pointer.
2718 * go-lang.c (go_language_data): Likewise.
2719 * language.c (unknown_language_data): Delete la_read_var_value
2720 initializer.
2721 (auto_language_data): Likewise.
2722 * language.h (struct language_data): Delete la_read_var_value
2723 field.
2724 (language_defn::read_var_value): New member function.
2725 (default_read_var_value): Delete declaration.
2726 * m2-lang.c (m2_language_data): Delete la_read_var_value
2727 initializer.
2728 * objc-lang.c (objc_language_data): Likewise.
2729 * opencl-lang.c (opencl_language_data): Likewise.
2730 * p-lang.c (pascal_language_data): Likewise.
2731 * rust-lang.c (rust_language_data): Likewise.
2732 * value.h (default_read_var_value): Delete declaration.
2733
5bd40f2a
AB
27342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2735
2736 * ada-lang.c (ada_print_array_index): Delete function, move
2737 implementation to...
2738 (ada_language::print_array_index): ...here.
2739 (ada_language_data): Delete la_print_array_index initializer.
2740 * c-lang.c (c_language_data): Likewise.
2741 (cplus_language_data): Likewise.
2742 (minimal_language_data): Likewise.
2743 * d-lang.c (d_language_data): Likewise.
2744 * f-lang.c (f_language_data): Likewise.
2745 * go-lang.c (go_language_data): Likewise.
2746 * language.c (default_print_array_index): Delete function, move
2747 implementation to...
2748 (language_defn::print_array_index): ...here.
2749 (unknown_language_data): Delete la_print_array_index initializer.
2750 (auto_language_data): Likewise.
2751 * language.h (struct language_data): Delete la_print_array_index
2752 field.
2753 (language_defn::print_array_index): New member function.
2754 (LA_PRINT_ARRAY_INDEX): Update.
2755 (default_print_array_index): Delete declaration.
2756 * m2-lang.c (m2_language_data): Delete la_print_array_index
2757 initializer.
2758 * objc-lang.c (objc_language_data): Likewise.
2759 * opencl-lang.c (opencl_language_data): Likewise.
2760 * p-lang.c (pascal_language_data): Likewise.
2761 * rust-lang.c (rust_language_data): Likewise.
2762
0874fd07
AB
27632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2764
2765 * gdb/ada-lang.c (ada_language_defn): Convert to...
2766 (ada_language_data): ...this.
2767 (class ada_language): New class.
2768 (ada_language_defn): New static global.
2769 * gdb/c-lang.c (c_language_defn): Convert to...
2770 (c_language_data): ...this.
2771 (class c_language): New class.
2772 (c_language_defn): New static global.
2773 (cplus_language_defn): Convert to...
2774 (cplus_language_data): ...this.
2775 (class cplus_language): New class.
2776 (cplus_language_defn): New static global.
2777 (asm_language_defn): Convert to...
2778 (asm_language_data): ...this.
2779 (class asm_language): New class.
2780 (asm_language_defn): New static global.
2781 (minimal_language_defn): Convert to...
2782 (minimal_language_data): ...this.
2783 (class minimal_language): New class.
2784 (minimal_language_defn): New static global.
2785 * gdb/d-lang.c (d_language_defn): Convert to...
2786 (d_language_data): ...this.
2787 (class d_language): New class.
2788 (d_language_defn): New static global.
2789 * gdb/f-lang.c (f_language_defn): Convert to...
2790 (f_language_data): ...this.
2791 (class f_language): New class.
2792 (f_language_defn): New static global.
2793 * gdb/go-lang.c (go_language_defn): Convert to...
2794 (go_language_data): ...this.
2795 (class go_language): New class.
2796 (go_language_defn): New static global.
2797 * gdb/language.c (unknown_language_defn): Remove declaration.
2798 (current_language): Initialize to nullptr, real initialization is
2799 moved to _initialize_language.
2800 (languages): Delete global.
2801 (language_defn::languages): Define.
2802 (set_language_command): Use language_defn::languages.
2803 (set_language): Likewise.
2804 (range_error): Likewise.
2805 (language_enum): Likewise.
2806 (language_def): Likewise.
2807 (add_set_language_command): Use language_def::languages for the
2808 language list, and language_def to lookup language pointers.
2809 (skip_language_trampoline): Use language_defn::languages.
2810 (unknown_language_defn): Convert to...
2811 (unknown_language_data): ...this.
2812 (class unknown_language): New class.
2813 (unknown_language_defn): New static global.
2814 (auto_language_defn): Convert to...
2815 (auto_language_data): ...this.
2816 (class auto_language): New class.
2817 (auto_language_defn): New static global.
2818 (language_gdbarch_post_init): Use language_defn::languages.
2819 (_initialize_language): Initialize current_language.
2820 * gdb/language.h (struct language_defn): Rename to...
2821 (struct language_data): ...this.
2822 (struct language_defn): New.
2823 (auto_language_defn): Delete.
2824 (unknown_language_defn): Delete.
2825 (minimal_language_defn): Delete.
2826 (ada_language_defn): Delete.
2827 (asm_language_defn): Delete.
2828 (c_language_defn): Delete.
2829 (cplus_language_defn): Delete.
2830 (d_language_defn): Delete.
2831 (f_language_defn): Delete.
2832 (go_language_defn): Delete.
2833 (m2_language_defn): Delete.
2834 (objc_language_defn): Delete.
2835 (opencl_language_defn): Delete.
2836 (pascal_language_defn): Delete.
2837 (rust_language_defn): Delete.
2838 * gdb/m2-lang.c (m2_language_defn): Convert to...
2839 (m2_language_data): ...this.
2840 (class m2_language): New class.
2841 (m2_language_defn): New static global.
2842 * gdb/objc-lang.c (objc_language_defn): Convert to...
2843 (objc_language_data): ...this.
2844 (class objc_language): New class.
2845 (objc_language_defn): New static global.
2846 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2847 (opencl_language_data): ...this.
2848 (class opencl_language): New class.
2849 (opencl_language_defn): New static global.
2850 * gdb/p-lang.c (pascal_language_defn): Convert to...
2851 (pascal_language_data): ...this.
2852 (class pascal_language): New class.
2853 (pascal_language_defn): New static global.
2854 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2855 language pointer, update comment format.
2856 * gdb/rust-lang.c (rust_language_defn): Convert to...
2857 (rust_language_data): ...this.
2858 (class rust_language): New class.
2859 (rust_language_defn): New static global.
2860
1313c56e
AB
28612020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2864 member variable.
2865 <m_stmt_at_address>: New member variable.
2866 (lnp_state_machine::record_line): Don't record some lines, update
2867 tracking of is_stmt at the same address.
2868 (lnp_state_machine::lnp_state_machine): Initialise new member
2869 variables.
2870
b7ed9f3d
ST
28712020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2872
2873 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2874 "-include gnu-nat-mig.h".
2875 * gnu-nat-mig.h: New file.
2876 * gnu-nat.c: Include "gnu-nat-mig.h".
2877 (exc_server, msg_reply_server, notify_server,
2878 process_reply_server): Remove declarations.
2879
14a8ad62
ST
28802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2881
2882 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2883 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2884 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2885 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2886 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2887 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2888 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2889 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2890 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2891 to gnu_nat_target class.
2892 * gnu-nat.c: Likewise.
2893 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2894 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2895 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2896 object.
2897 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2898 instead of `gnu_target'.
2899
0af5e106
ST
29002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2901
2902 * i386-gnu-tdep.c: Include "gdbcore.h"
2903 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2904 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2905 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2906 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2907 i386_gnu_sigcontext_addr): New functions
2908 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2909 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2910 tdep.
2911
078f2fc9
ST
29122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2913
2914 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2915 before fork_inferior call. Avoid calling it if target_is_pushed returns
2916 true.
2917
53dff92c
ST
29182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2919
2920 * gnu-nat.h (gnu_target): New variable declaration.
2921 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2922 gnu_target.
2923 * gnu-nat.c (gnu_target): New variable.
2924 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2925 add_thread_silent, and add_thread calls.
2926 (gnu_nat_target::create_inferior): Pass gnu_target to
2927 add_thread_silent, thread_change_ptid call.
2928 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2929 call.
2930
5a8b8627
ST
29312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2932
2933 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2934 (gnu_nat_target::find_memory_regions): Remove unused
2935 `old_address' variable.
2936
366f550a
ST
29372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2938
2939 * gnu-nat.c: Include "gdbarch.h".
2940
f14871bf
ST
29412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2942
2943 * reply_mig_hack.awk (Error return): Cast function through
2944 void *, to bypass compiler function call check.
2945
c6887cfb
ST
29462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2947
2948 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2949 $(srcdir)/reply_mig_hack.awk.
2950
6930bffe
ST
29512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2952
2953 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2954
112c22ed
JG
29552020-05-30 Jonny Grant <jg@jguk.org>
2956
2957 * configure.ac (ACX_BUGURL): change bug URL to https.
2958
f68f85b5
PA
29592020-05-30 Pedro Alves <palves@redhat.com>
2960
2961 * cp-support.c (replace_typedefs_template): New.
2962 (replace_typedefs_qualified_name): Handle
2963 DEMANGLE_COMPONENT_TEMPLATE.
2964
976ca316
SM
29652020-05-29 Simon Marchi <simon.marchi@efficios.com>
2966
2967 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2968 dwarf2/index-cache.h, dwarf2/index-write.c,
2969 dwarf2/index-write.h, dwarf2/line-header.c,
2970 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2971 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2972 variables and fields from `dwarf2_per_objfile` to just
2973 `per_objfile` throughout.
2974
989ade05
SM
29752020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2976
2977 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2978 <push_dwarf_reg_entry_value>: Add comment.
2979
c47bae85
KB
29802020-05-28 Kevin Buettner <kevinb@redhat.com>
2981 Keith Seitz <keiths@redhat.com>
2982
2983 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2984 instead of PyEval_ReleaseLock.
2985 (class gdbpy_gil): Move to earlier in file.
2986 (finalize_python): Set gdb_python_initialized.
2987 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2988 when not initialized.
2989
44486dcf
SM
29902020-05-28 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2993 <push_dwarf_reg_entry_value>: Remove assert. Override
2994 per_objfile with caller_per_objfile.
2995
f030440d
TV
29962020-05-28 Tom de Vries <tdevries@suse.de>
2997
2998 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2999 PR gold/15646 workaround to symbol kind "type".
3000
f0fbb768
TT
30012020-05-27 Tom Tromey <tromey@adacore.com>
3002
3003 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3004
af0b2a3e
TT
30052020-05-27 Tom Tromey <tromey@adacore.com>
3006
3007 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3008 Use htab_find_with_hash.
3009 <add_abbrev>: Remove "abbrev_number" parameter.
3010 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3011 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3012 (hash_abbrev): Add comment.
3013 (abbrev_table::lookup_abbrev): Move to header file.
3014 (abbrev_table::read): Update.
3015
7d00ffec
TT
30162020-05-27 Tom Tromey <tromey@adacore.com>
3017
3018 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3019 method.
3020 <canonical_name>: New member.
3021 <raw_name>: Rename from "name".
3022 (partial_die_info): Initialize canonical_name.
3023 (scan_partial_symbols): Check raw_name.
3024 (partial_die_parent_scope, partial_die_full_name)
3025 (add_partial_symbol, add_partial_subprogram)
3026 (add_partial_enumeration, load_partial_dies): Use "name" method.
3027 (partial_die_info::name): New method.
3028 (partial_die_info::read, guess_partial_die_structure_name)
3029 (partial_die_info::fixup): Update.
3030
697bba18
TT
30312020-05-27 Tom Tromey <tromey@adacore.com>
3032
3033 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3034 <get_ref_die_offset>: Inline.
3035 <get_ref_die_offset_complaint>: New method.
3036 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3037 (attribute::get_ref_die_offset_complaint): Rename from
3038 get_ref_die_offset. Just issue complaint.
3039
c17ace43
HD
30402020-05-27 Hannes Domani <ssbssa@yahoo.de>
3041
3042 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3043
96445f0b
HD
30442020-05-27 Hannes Domani <ssbssa@yahoo.de>
3045
3046 * exec.c (exec_file_attach): Use errno value of first openp failure.
3047
ac637ec3
HD
30482020-05-27 Hannes Domani <ssbssa@yahoo.de>
3049
3050 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3051 Don't close thread handle.
3052
17ee85fc
TT
30532020-05-27 Tom Tromey <tom@tromey.com>
3054 Simon Marchi <simon.marchi@efficios.com>
3055
3056 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3057 shared_ptr.
3058 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3059 member.
3060 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3061 dwarf2_per_bfd_objfile_data_key>: New globals.
3062 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3063 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3064 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3065 shared.
3066 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3067 short-circuit when sharing.
3068 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3069 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3070
39b16f87
SM
30712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3074 to...
3075 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3076 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3077
fcf23d5b
SM
30782020-05-27 Simon Marchi <simon.marchi@efficios.com>
3079
3080 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3081 build_name_components, find_name_components_bounds>:
3082 Add per_objfile parameter.
3083 (struct mapped_index) <symbol_name_at>: Likewise.
3084 (struct mapped_debug_names): Remove constructor.
3085 <dwarf2_per_objfile>: Remove field.
3086 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3087 (mapped_index_base::find_name_components_bounds,
3088 mapped_index_base::build_name_components,
3089 dw2_expand_symtabs_matching_symbol): Likewise.
3090 (class mock_mapped_index) <symbol_name_at>: Likewise.
3091 (check_match): Likewise.
3092 (check_find_bounds_finds): Likewise.
3093 (test_mapped_index_find_name_component_bounds): Update.
3094 (CHECK_MATCH): Update.
3095 (dw2_expand_symtabs_matching): Update.
3096 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3097 per_objfile parameter.
3098 <find_vec_in_debug_names>: Likewise.
3099 <m_per_objfile>: New field.
3100 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3101 parameter.
3102 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3103 (dw2_debug_names_iterator::next): Update.
3104 (dw2_debug_names_lookup_symbol): Update.
3105 (dw2_debug_names_expand_symtabs_for_function): Update.
3106 (dw2_debug_names_map_matching_symbols): Update.
3107 (dw2_debug_names_expand_symtabs_matching): Update.
3108 (dwarf2_read_debug_names): Update.
3109
7188ed02
SM
31102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3111
3112 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3113 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3114 move to dwarf2_per_objfile.
3115 <read_in_chain>: Remove.
3116 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3117 remove_all_cus, age_comp_units>: New methods.
3118 <m_dwarf2_cus>: New member.
3119 (struct dwarf2_per_cu_data) <cu>: Remove.
3120 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3121 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3122 moved to methods of dwarf2_per_objfile.
3123 (dwarf2_clear_marks): Remove.
3124 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3125 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3126 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3127 (dwarf2_per_objfile::remove_all_cus): New.
3128 (class free_cached_comp_units) <~free_cached_comp_units>:
3129 Update.
3130 (load_cu): Update.
3131 (dw2_do_instantiate_symtab): Adjust.
3132 (fill_in_sig_entry_from_dwo_entry): Adjust.
3133 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3134 (cutu_reader::cutu_reader): Likewise.
3135 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3136 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3137 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3138 and dwarf2_per_objfile::age_comp_units.
3139 (load_partial_comp_unit): Update.
3140 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3141 (process_queue): Likewise.
3142 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3143 backlink.
3144 (dwarf2_read_addr_index): Likewise.
3145 (follow_die_offset): Likewise.
3146 (dwarf2_fetch_die_loc_sect_off): Likewise.
3147 (dwarf2_fetch_constant_bytes): Likewise.
3148 (dwarf2_fetch_die_type_sect_off): Likewise.
3149 (follow_die_sig_1): Likewise.
3150 (load_full_type_unit): Likewise.
3151 (read_signatured_type): Likewise.
3152 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3153 (dwarf2_cu::~dwarf2_cu): Remove.
3154 (dwarf2_per_objfile::get_cu): New.
3155 (dwarf2_per_objfile::set_cu): New.
3156 (age_cached_comp_units): Rename to...
3157 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3158 to std::unordered_map.
3159 (free_one_cached_comp_unit): Rename to...
3160 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3161 to std::unordered_map.
3162 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3163 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3164 a dwarf2_per_objfile in data.
3165 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3166 (dwarf2_clear_marks): Remove.
3167
2e671100
SM
31682020-05-27 Simon Marchi <simon.marchi@efficios.com>
3169
3170 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3171 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3172 (init_tu_and_read_dwo_dies): Likewise.
3173 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3174 (cutu_reader::cutu_reader): Likewise.
3175 (load_partial_comp_unit): Likewise.
3176 (process_psymtab_comp_unit): Update.
3177 (build_type_psymtabs_1): Update.
3178 (process_skeletonless_type_unit): Update.
3179 (load_full_comp_unit): Update.
3180 (find_partial_die): Update.
3181 (dwarf2_read_addr_index): Update.
3182 (read_signatured_type): Update.
3183
2e6a9f79
SM
31842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3185
3186 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3187 m_header_read_in>: New fields.
3188 <get_header>: New method.
3189 * dwarf2/read.c (per_cu_header_read_in): Remove.
3190 (dwarf2_per_cu_data::get_header): New.
3191 (dwarf2_per_cu_data::addr_size): Update.
3192 (dwarf2_per_cu_data::offset_size): Update.
3193 (dwarf2_per_cu_data::ref_addr_size): Update.
3194
1b555f17
SM
31952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3196
3197 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3198 (dw2_do_instantiate_symtab): Update.
3199 (queue_and_load_all_dwo_tus): Change parameter from
3200 dwarf2_per_cu_data to dwarf2_cu.
3201 (dwarf2_fetch_die_loc_sect_off): Update.
3202 (dwarf2_fetch_constant_bytes): Update.
3203 (dwarf2_fetch_die_type_sect_off): Update.
3204
8fc0b21d
SM
32052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3206
3207 * dwarf2/read.c (process_full_comp_unit,
3208 process_full_type_unit): Remove per_cu, per_objfile paramters.
3209 Add dwarf2_cu parameter.
3210 (process_queue): Update.
3211
168c9250
SM
32122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3213
3214 * dwarf2/read.c (create_cu_from_index_list): Replace
3215 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3216 (create_cus_from_index_list): Likewise.
3217 (create_cus_from_index): Likewise.
3218 (create_signatured_type_table_from_index): Likewise.
3219 (create_cus_from_debug_names_list): Likewise.
3220 (create_cus_from_debug_names): Likewise.
3221 (dwarf2_read_gdb_index): Update.
3222 (dwarf2_read_debug_names): Update.
3223
e286671b
TT
32242020-05-27 Tom Tromey <tom@tromey.com>
3225 Simon Marchi <simon.marchi@efficios.com>
3226
3227 * dwarf2/read.h (struct dwarf2_per_objfile)
3228 <get_type_for_signatured_type, set_type_for_signatured_type>:
3229 New methods.
3230 <m_type_map>: New member.
3231 (struct signatured_type) <type>: Remove.
3232 * dwarf2/read.c
3233 (dwarf2_per_objfile::get_type_for_signatured_type,
3234 dwarf2_per_objfile::set_type_for_signatured_type): New.
3235 (get_signatured_type): Use new methods.
3236
8adb8487
TT
32372020-05-27 Tom Tromey <tom@tromey.com>
3238 Simon Marchi <simon.marchi@efficios.com>
3239
3240 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3241 (struct dwarf2_per_objfile) <type_units>: New member.
3242 <get_type_unit_group_unshareable>: New method.
3243 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3244 num_symtabs, symtabs>: Remove; move to
3245 type_unit_group_unshareable.
3246 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3247 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3248 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3249
127bbf4b
SM
32502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3251
3252 * dwarf2/read.h (struct dwarf2_per_cu_data):
3253 <dwarf2_per_objfile>: Remove.
3254 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3255 dwarf2_per_objfile.
3256 (create_signatured_type_table_from_index): Likewise.
3257 (create_signatured_type_table_from_debug_names): Likewise.
3258 (create_debug_type_hash_table): Likewise.
3259 (fill_in_sig_entry_from_dwo_entry): Likewise.
3260 (create_type_unit_group): Likewise.
3261 (read_comp_units_from_section): Likewise.
3262 (create_cus_hash_table): Likewise.
3263
f6e649dd
SM
32642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3265
3266 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3267 dwarf2_per_cu_data::dwarf2_per_objfile.
3268 (compute_compunit_symtab_includes): Likewise.
3269 (dwarf2_cu::start_symtab): Likewise.
3270
aa66c379
SM
32712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3272
3273 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3274 parameter.
3275 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3276 (read_namespace_alias): Update.
3277 (lookup_die_type): Update.
3278 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3279 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3280 Update.
3281 (disassemble_dwarf_expression): Update.
3282
120ce1b5
SM
32832020-05-27 Simon Marchi <simon.marchi@efficios.com>
3284
3285 * dwarf2/read.h (struct dwarf2_queue_item): Add
3286 dwarf2_per_objfile parameter, assign new parameter.
3287 <per_objfile>: New field.
3288 * dwarf2/read.c (free_one_cached_comp_unit): Add
3289 dwarf2_per_objfile parameter.
3290 (queue_comp_unit): Likewise.
3291 (dw2_do_instantiate_symtab): Update.
3292 (process_psymtab_comp_unit): Update.
3293 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3294 (process_imported_unit_die): Update.
3295 (queue_and_load_dwo_tu): Update.
3296 (follow_die_offset): Update.
3297 (follow_die_sig_1): Update.
3298
9f47c707
SM
32992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3300
3301 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3302 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3303 (read_call_site_scope): Assign per_objfile.
3304 (dwarf2_per_cu_data::objfile): Remove.
3305 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3306 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3307 dwarf2_per_objfile parameter.
3308 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3309 dwarf2_per_objfile parameter.
3310 (dwarf_expr_reg_to_entry_parameter): Add output
3311 dwarf2_per_objfile parameter.
3312 (locexpr_get_frame_base): Update.
3313 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3314 <push_dwarf_reg_entry_value>: Update.
3315 <call_site_to_target_addr>: Update.
3316 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3317 parameter.
3318 (value_of_dwarf_reg_entry): Update.
3319 (rw_pieced_value): Update.
3320 (indirect_synthetic_pointer): Update.
3321 (dwarf2_evaluate_property): Update.
3322 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3323 parameter.
3324 (locexpr_read_variable): Update.
3325 (locexpr_get_symbol_read_needs): Update.
3326 (loclist_read_variable): Update.
3327
14095eb3
SM
33282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3329
3330 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3331 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3332 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3333 parameter.
3334 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3335 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3336 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3337 parameter.
3338 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3339 sect_variable_value): Add dwarf2_per_objfile parameter.
3340 (class dwarf_evaluate_loc_desc) <dwarf_call,
3341 dwarf_variable_value>: Update.
3342 (fetch_const_value_from_synthetic_pointer): Add
3343 dwarf2_per_objfile parameter.
3344 (fetch_const_value_from_synthetic_pointer): Update.
3345 (coerced_pieced_ref): Update.
3346 (class symbol_needs_eval_context) <dwarf_call,
3347 dwarf_variable_value>: Update.
3348 (dwarf2_compile_expr_to_ax): Update.
3349
3c3cd3d4
SM
33502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3351
3352 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3353 parameter.
3354 (dwarf2_evaluate_loc_desc_full): Update.
3355
82ca3f51
SM
33562020-05-27 Simon Marchi <simon.marchi@efficios.com>
3357
3358 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3359 parameter.
3360 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3361 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3362 dwarf2_per_objfile parameter.
3363 (decode_debug_loc_dwo_addresses): Likewise.
3364 (dwarf2_find_location_expression): Update.
3365 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3366 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3367 parameter.
3368 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3369 parameter.
3370 (locexpr_describe_location_1): Likewise.
3371 (locexpr_describe_location): Update.
3372
4b167ea1
SM
33732020-05-27 Simon Marchi <simon.marchi@efficios.com>
3374
3375 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3376 Remove.
3377 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3378 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3379 (dwarf2_compile_property_to_c): Update.
3380 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3381 use text offset from objfile.
3382 (locexpr_tracepoint_var_ref): Update.
3383 (locexpr_generate_c_location): Update.
3384 (loclist_describe_location): Update.
3385 (loclist_tracepoint_var_ref): Update.
3386 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3387 dwarf2_per_objfile parameter.
3388 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3389 use text offset from objfile.
3390 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3391
89b07335
SM
33922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3393
3394 * dwarf2/expr.h (struct dwarf_expr_context)
3395 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3396 <offset>: Remove.
3397 <per_objfile>: New member.
3398 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3399 dwarf2_per_objfile parameter. Don't set offset, set
3400 per_objfile.
3401 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3402 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3403 a dwarf2_per_objfile object instead of an offset.
3404 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3405 constructor.
3406 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3407 to dwarf2_expr_executor constructor. Don't set offset.
3408 (dwarf2_fetch_cfa_info): Update.
3409 (struct dwarf2_frame_cache) <text_offset>: Remove.
3410 <per_objfile>: New field.
3411 (dwarf2_frame_cache): Update.
3412 (dwarf2_frame_prev_register): Update.
3413 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3414 <dwarf_evaluate_loc_desc>: Add constructor.
3415 (dwarf2_evaluate_loc_desc_full): Update.
3416 (dwarf2_locexpr_baton_eval): Update.
3417 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3418 Add constructor.
3419 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3420
293e7e51
SM
34212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3424 addr_sized_int_type>: Move to dwarf2_cu.
3425 <int_type>: Move to dwarf2_per_objfile.
3426 (struct dwarf2_per_objfile) <int_type>: Move here.
3427 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3428 addr_sized_int_type>: Move here.
3429 (read_func_scope): Update.
3430 (read_array_type): Update.
3431 (read_tag_string_type): Update.
3432 (attr_to_dynamic_prop): Update.
3433 (dwarf2_per_cu_data::int_type): Rename to...
3434 (dwarf2_per_objfile::int_type): ... this.
3435 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3436 (dwarf2_cu::addr_sized_int_type): ... this.
3437 (read_subrange_type): Update.
3438 (dwarf2_per_cu_data::addr_type): Rename to...
3439 (dwarf2_cu::addr_type): ... this.
3440 (set_die_type): Update.
3441
64874a40
SM
34422020-05-27 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3445 data through per_cu->cu.
3446
4ab09049
SM
34472020-05-27 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3450 dwarf2_per_cu_data parameter fo dwarf2_cu.
3451 (lookup_dwo_type_unit): Likewise.
3452 (read_cutu_die_from_dwo): Likewise.
3453 (lookup_dwo_unit): Likewise.
3454 (open_and_init_dwo_file): Likewise.
3455 (lookup_dwo_cutu): Likewise.
3456 (lookup_dwo_comp_unit): Likewise.
3457 (lookup_dwo_type_unit): Likewise.
3458 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3459 (cutu_reader::cutu_reader): Update.
3460
47b14e86
SM
34612020-05-27 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3464 parameter.
3465 (process_full_type_unit): Likewise.
3466 (process_queue): Update.
3467
43182c09
SM
34682020-05-27 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * dwarf2/read.c (recursively_compute_inclusions): Add
3471 dwarf2_per_objfile parameter.
3472 (compute_compunit_symtab_includes): Likewise.
3473 (process_cu_includes): Update.
3474
7aa104c4
SM
34752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3476
3477 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3478 parameter.
3479 (create_type_unit_group): Update.
3480 (process_psymtab_comp_unit_reader): Update.
3481 (build_type_psymtabs_reader): Update.
3482
e3beb21d
SM
34832020-05-27 Simon Marchi <simon.marchi@efficios.com>
3484
3485 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3486 object through m_this_cu->cu.
3487
d460f660
SM
34882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3489
3490 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3491 the info parameter.
3492 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3493
ab432490
SM
34942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3495
3496 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3497 per_objfile parameter.
3498 (load_full_type_unit): Add per_objfile parameter.
3499 (read_signatured_type): Likewise.
3500 (load_full_comp_unit): Likewise.
3501 (load_cu): Likewise.
3502 (dw2_do_instantiate_symtab): Likewise.
3503 (dw2_get_file_names): Likewise.
3504 (dw2_map_symtabs_matching_filename): Update.
3505 (dw_expand_symtabs_matching_file_matcher): Update.
3506 (dw2_map_symbol_filenames): Update.
3507 (process_psymtab_comp_unit): Add per_objfile parameter.
3508 (build_type_psymtabs_1): Update.
3509 (process_skeletonless_type_unit): Update.
3510 (dwarf2_build_psymtabs_hard): Update.
3511 (load_partial_comp_unit): Add per_objfile parameter.
3512 (scan_partial_symbols): Update.
3513 (load_full_comp_unit): Add per_objfile parameter.
3514 (process_imported_unit_die): Update.
3515 (create_cus_hash_table): Update.
3516 (find_partial_die): Update.
3517 (dwarf2_read_addr_index): Update.
3518 (follow_die_offset): Update.
3519 (dwarf2_fetch_die_loc_sect_off): Update.
3520 (dwarf2_fetch_constant_bytes): Update.
3521 (dwarf2_fetch_die_type_sect_off): Update.
3522 (follow_die_sig_1): Update.
3523 (load_full_type_unit): Add per_objfile parameter.
3524 (read_signatured_type): Likewise.
3525
313bad1b
SM
35262020-05-27 Simon Marchi <simon.marchi@efficios.com>
3527
3528 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3529 of objfile_name.
3530
c3699833
SM
35312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3532
3533 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3534 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3535 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3536 field.
3537 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3538 (create_cus_from_index): Update.
3539 (dwarf2_read_gdb_index): Update.
3540 (create_cus_from_debug_names): Update.
3541 (dwarf2_read_debug_names): Update.
3542 (get_abbrev_section_for_cu): Update.
3543 (create_all_comp_units): Update.
3544 (read_attribute_value): Update.
3545 (get_debug_line_section): Update.
3546 * dwarf2/index-cache.c (index_cache::store): Update.
3547 * dwarf2/index-write.c (save_gdb_index_command): Update.
3548 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3549
1859c670
SM
35502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3551
3552 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3553 member.
3554 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3555 dwarf2_per_cu_data::per_bfd.
3556 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3557 (create_type_unit_group): Likewise.
3558 (queue_comp_unit): Remove reference to
3559 per_cu->dwarf2_per_objfile.
3560 (maybe_queue_comp_unit): Likewise.
3561 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3562 (create_cus_hash_table): Assign new field.
3563
5e22e966
SM
35642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3565
3566 * dwarf2/read.c: Replace
3567 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3568 dwarf2_cu->per_objfile throughout.
3569
97a1449a
SM
35702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3573 parameter, don't use per_cu->dwarf2_per_objfile.
3574 (dw2_instantiate_symtab): Likewise.
3575 (dw2_find_last_source_symtab): Update.
3576 (dw2_map_expand_apply): Update.
3577 (dw2_lookup_symbol): Update.
3578 (dw2_expand_symtabs_for_function): Update.
3579 (dw2_expand_all_symtabs): Update.
3580 (dw2_expand_symtabs_with_fullname): Update.
3581 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3582 don't use per_cu->dwarf2_per_objfile.
3583 (dw2_expand_marked_cus): Update.
3584 (dw2_find_pc_sect_compunit_symtab): Update.
3585 (dw2_debug_names_lookup_symbol): Update.
3586 (dw2_debug_names_expand_symtabs_for_function): Update.
3587 (dw2_debug_names_map_matching_symbols): Update.
3588 (dwarf2_psymtab::expand_psymtab): Update.
3589
9e021579
SM
35902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3591
3592 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3593 <per_objfile>: New member.
3594 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3595 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3596 call to dwarf2_cu.
3597 (cutu_reader::cutu_reader): Update.
3598 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3599
ae090bdb
SM
36002020-05-27 Simon Marchi <simon.marchi@efficios.com>
3601
3602 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3603 struct dwarf2_per_objfile.
3604 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3605 dwarf2_per_bfd.
3606 * dwarf2/read.c (set_die_type): Update.
3607 (get_die_type_at_offset): Update.
3608
af758d11
SM
36092020-05-27 Tom Tromey <tom@tromey.com>
3610 Simon Marchi <simon.marchi@efficios.com>
3611
3612 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3613 method.
3614 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3615 get_symtab, set_symtab>: New methods.
3616 <m_symtabs>: New field.
3617 (struct dwarf2_psymtab): Derive from partial_symtab.
3618 <readin_p, get_compunit_symtab>: Declare methods.
3619 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3620 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3621 New methods.
3622 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3623 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3624 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3625 (dw2_symtab_iter_next, dw2_print_stats)
3626 (dw2_expand_symtabs_with_fullname)
3627 (dw2_expand_symtabs_matching_one)
3628 (dw_expand_symtabs_matching_file_matcher)
3629 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3630 (dw2_debug_names_iterator::next)
3631 (dw2_debug_names_map_matching_symbols)
3632 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3633 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3634 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3635 New methods.
3636 (get_compunit_symtab, process_full_comp_unit)
3637 (process_full_type_unit): Update.
3638 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3639
5989a64e
SM
36402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3641
3642 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3643 then introduce a new dwarf2_per_objfile type.
3644 <read_line_string>: Move to the new dwarf2_per_objfile type.
3645 <objfile>: Likewise.
3646 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3647 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3648 dwarf2_per_objfile->per_bfd.
3649 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3650 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3651 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3652 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3653 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3654 (dwarf2_per_objfile::locate_sections): Rename to...
3655 (dwarf2_per_bfd::locate_sections): ... this.
3656 (dwarf2_per_objfile::get_cutu): Rename to...
3657 (dwarf2_per_bfd::get_cutu): ... this.
3658 (dwarf2_per_objfile::get_cu): Rename to...
3659 (dwarf2_per_bfd::get_cu): ... this.
3660 (dwarf2_per_objfile::get_tu): Rename to...
3661 (dwarf2_per_bfd::get_tu): ... this.
3662 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3663 (dwarf2_per_bfd::allocate_per_cu): ... this.
3664 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3665 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3666 (get_gdb_index_contents_ftype): Change parameter from
3667 dwarf2_per_objfile to dwarf2_per_bfd.
3668 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3669 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3670
a50264ba
TT
36712020-05-27 Tom Tromey <tom@tromey.com>
3672 Simon Marchi <simon.marchi@efficios.com>
3673
3674 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3675 (allocate_piece_closure): Set "per_objfile" member.
3676 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3677 (locexpr_describe_location, loclist_describe_location): Use new
3678 member.
3679 * dwarf2/read.c (read_call_site_scope)
3680 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3681 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3682 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3683 handle_data_member_location): Set per_objfile member.
3684 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3685 member.
3686 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3687
d3473f0c
TT
36882020-05-27 Tom Tromey <tom@tromey.com>
3689
3690 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3691 allocate_signatured_type>: Declare new methods.
3692 <m_num_psymtabs>: New member.
3693 (struct dwarf2_per_cu_data) <index>: New member.
3694 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3695 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3696 (create_cu_from_index_list): Use allocate_per_cu.
3697 (create_signatured_type_table_from_index)
3698 (create_signatured_type_table_from_debug_names)
3699 (create_debug_type_hash_table, add_type_unit)
3700 (read_comp_units_from_section): Use allocate_signatured_type.
3701
5717c425
TT
37022020-05-27 Tom Tromey <tom@tromey.com>
3703
3704 * psymtab.c (partial_map_expand_apply)
3705 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3706 (psym_lookup_global_symbol_language)
3707 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3708 (psym_print_stats, psym_expand_symtabs_for_function)
3709 (psym_map_symbol_filenames, psym_map_matching_symbols)
3710 (psym_expand_symtabs_matching)
3711 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3712 (maintenance_check_psymtabs): Update.
3713 * psympriv.h (struct partial_symtab) <readin_p,
3714 get_compunit_symtab>: Add objfile parameter.
3715 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3716 Likewise.
3717 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3718 get_compunit_symtab>: Likewise.
3719 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3720
45940949
TT
37212020-05-27 Tom Tromey <tom@tromey.com>
3722
3723 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3724 member.
3725 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3726 (create_cu_from_index_list)
3727 (create_signatured_type_table_from_index)
3728 (create_signatured_type_table_from_debug_names)
3729 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3730 (dwarf2_create_include_psymtab)
3731 (create_debug_type_hash_table, add_type_unit)
3732 (create_type_unit_group, read_comp_units_from_section)
3733 (dwarf2_compute_name, create_cus_hash_table)
3734 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3735 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3736 obstack.
3737 (dw2_get_real_path): Likewise. Change argument to
3738 dwarf2_per_objfile.
3739
f8c6d152
LM
37402020-05-27 Luis Machado <luis.machado@linaro.org>
3741
3742 PR tdep/26000
3743 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3744 for ldrd (immediate).
3745
e98d2e6d
PW
37462020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3747
3748 * command.h: Add comment giving the name of class_tui.
3749 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3750 create the fake command for the help for class_tui.
3751
53a47a3e
TT
37522020-05-26 Tom Tromey <tromey@adacore.com>
3753
3754 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3755 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3756 (val_atr): New function.
3757 (value_val_atr): Use it.
3758 * ada-valprint.c (print_optional_low_bound): Change low bound
3759 handling for enums.
3760 (val_print_packed_array_elements): Don't call discrete_position.
3761 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3762 discrete_position for enum types.
3763 * language.c (default_print_array_index): Change type.
3764 * language.h (struct language_defn) <la_print_array_index>: Add
3765 index_type parameter, change type of index_value.
3766 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3767 (default_print_array_index): Update.
3768 * valprint.c (maybe_print_array_index): Don't call
3769 value_from_longest. Update.
3770 (value_print_array_elements): Don't call discrete_position.
3771
0bc2354b
TT
37722020-05-26 Tom Tromey <tromey@adacore.com>
3773
3774 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3775 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3776
1218a4bf
CDA
37772020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3778
3779 PR gdb/13519
3780 * avr-tdep.c (avr_integer_to_address): Return data or code
3781 address accordingly to the second 'type' argument of the
3782 function.
3783
92651b1d
MW
37842020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3785
3786 * infcmd.c, inferior.h: (construct_inferior_arguments):
3787 Moved function from here to gdbsupport/common-inferior.{h,cc}
3788
0a4f5f8c
TT
37892020-05-23 Tom Tromey <tom@tromey.com>
3790
3791 Revert commit eca1f90c:
3792 * NEWS: Remove entry for completion styling.
3793 * completer.c (_rl_completion_prefix_display_length): Move
3794 declaration later.
3795 (gdb_fnprint): Revert.
3796 (gdb_display_match_list_1): Likewise.
3797 * cli/cli-style.c (completion_prefix_style)
3798 (completion_difference_style, completion_suffix_style): Remove.
3799 (_initialize_cli_style): Revert.
3800 * cli/cli-style.h (completion_prefix_style)
3801 (completion_difference_style, completion_suffix_style): Don't
3802 declare.
3803
e08bd6c5
PA
38042020-05-24 Pedro Alves <palves@redhat.com>
3805
3806 * symtab.c (completion_list_add_name): Return boolean indication
3807 of whether the symbol matched.
3808 (completion_list_add_symbol): Don't try to remove C++ aliases if
3809 the symbol didn't match in the first place.
3810 * symtab.h (completion_list_add_name): Return bool.
3811
ceacbf6e
SM
38122020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3813
3814 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3815 type::field.
3816
26f16254
JB
38172020-05-23 Joel Brobecker <brobecker@adacore.com>
3818
3819 GDB 9.2 released.
3820
eca1f90c
TT
38212020-05-23 Tom Tromey <tom@tromey.com>
3822
3823 * NEWS: Add entry for completion styling.
3824 * completer.c (_rl_completion_prefix_display_length): Move
3825 declaration earlier.
3826 (gdb_fnprint): Use completion_style.
3827 (gdb_display_match_list_1): Likewise.
3828 * cli/cli-style.c (completion_prefix_style)
3829 (completion_difference_style, completion_suffix_style): New
3830 globals.
3831 (_initialize_cli_style): Register new globals.
3832 * cli/cli-style.h (completion_prefix_style)
3833 (completion_difference_style, completion_suffix_style): Declare.
3834
51e2cfa2
PA
38352020-05-23 Pedro Alves <palves@redhat.com>
3836
3837 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3838 (parse_escape): Use ISDIGIT instead of isdigit.
3839 (puts_debug): Use gdb_isprint instead of isprint.
3840 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3841 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3842 ISSPACE instead of isspace.
3843 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3844 instead of isspace.
3845 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3846 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3847 instead of isxdigit and ISDIGIT instead of isdigit.
3848
80fc5e77
SM
38492020-05-22 Simon Marchi <simon.marchi@efficios.com>
3850
3851 * gdbtypes.h (struct type) <field>: New method.
3852 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3853 or type::field.
3854
3cabb6b0
SM
38552020-05-22 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3858 (TYPE_FIELDS): Use type::fields. Change all call sites that
3859 modify the propery to use type::set_fields instead.
3860
1f704f76
SM
38612020-05-22 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3864 type::num_fields instead.
3865
5e33d5f4
SM
38662020-05-22 Simon Marchi <simon.marchi@efficios.com>
3867
3868 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3869 methods.
3870 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3871 that modify the number of fields to use type::set_num_fields
3872 instead.
3873
9392ebb3
TT
38742020-05-22 Tom Tromey <tromey@adacore.com>
3875
3876 * compile/compile-object-load.h (munmap_list_free): Don't
3877 declare.
3878
7c13f4e8
AB
38792020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3880
3881 * annotate.c (annotate_source_line): Update return type, add call
3882 to update current symtab and line.
3883 * annotate.h (annotate_source_line): Update return type, and
3884 extend header comment.
3885 * source.c (info_line_command): Check annotation_level before
3886 calling annotate_source_line.
3887 * stack.c (print_frame_info): If calling annotate_source_line
3888 returns true, then don't print any other source line information.
3889
aa370940
SM
38902020-05-21 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3893
84d53fa9
SM
38942020-05-21 Simon Marchi <simon.marchi@efficios.com>
3895
3896 * coffread.c (patch_type): Remove NULL check before xfree.
3897 * corefile.c (set_gnutarget): Likewise.
3898 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3899 * exec.c (build_section_table): Likewise.
3900 * remote.c (remote_target::pass_signals): Likewise.
3901 * utils.c (n_spaces): Likewise.
3902 * cli/cli-script.c (document_command): Likewise.
3903 * i386-windows-tdep.c (core_process_module_section): Likewise.
3904 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3905
9d428aae
SM
39062020-05-20 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * symfile.c (reread_symbols): Clear objfile's section_offsets
3909 vector and section indices, re-compute them by calling
3910 sym_offsets.
3911
250106a7
TT
39122020-05-20 Tom Tromey <tromey@adacore.com>
3913
3914 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3915 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3916
9a0bacfb
TV
39172020-05-20 Tom de Vries <tdevries@suse.de>
3918
3919 PR symtab/25833
3920 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3921
7b958a48
AM
39222020-05-20 Alan Modra <amodra@gmail.com>
3923
3924 PR 25993
3925 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3926 bfd_set_filename.
3927 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3928 passed to bfd_set_filename.
3929 * symfile-mem.c (add_vsyscall_page): Likewise for string
3930 passed to symbol_file_add_from_memory.
3931 (symbol_file_add_from_memory): Make name param a const char* and
3932 don't strdup.
3933
c7e97679
AM
39342020-05-20 Alan Modra <amodra@gmail.com>
3935
3936 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3937 rather than accessing bfd->filename directly.
3938 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3939 and use bfd_section_name.
3940 * dwarf2/frame.c (decode_frame_entry): Likewise.
3941 * exec.c (exec_set_section_address): Likewise.
3942 * solib-aix.c (solib_aix_bfd_open): Likewise.
3943 * stap-probe.c (get_stap_base_address): Likewise.
3944 * symfile.c (reread_symbols): Likewise.
3945
563c591b
TT
39462020-05-19 Tom Tromey <tromey@adacore.com>
3947
3948 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3949
f408d82c
SM
39502020-05-19 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3953
98c59b52
PA
39542020-05-19 Pedro Alves <palves@redhat.com>
3955
3956 * NEWS (set exec-file-mismatch): Adjust entry.
3957 * exec.c: Include "build-id.h".
3958 (validate_exec_file): Try to match build IDs instead of filenames.
3959 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3960 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3961 and pass down 'warn_if_slow'.
3962 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3963 gdb_bfd_open_closure to pass it down.
3964 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3965
4111f652
PA
39662020-05-19 Pedro Alves <palves@redhat.com>
3967
3968 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3969 * target.c (target_fileio_open_1): Rename to target_fileio_open
3970 and make extern. Use bool.
3971 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3972 (target_fileio_read_alloc_1): Adjust.
3973 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3974 (target_fileio_open_warn_if_slow): Delete declaration.
3975
ad80db5b
PA
39762020-05-19 Pedro Alves <palves@redhat.com>
3977
3978 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3979 Adjust all callers.
3980
1d6ce4d3
YS
39812020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3982
3983 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3984 whether disp is negative.
3985
9005fbbb
SM
39862020-05-19 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * symfile.h (struct symfile_segment_data)
3989 <~symfile_segment_data>: Remove.
3990 <segment_info>: Change to std::vector.
3991 * symfile.c (default_symfile_segments): Update.
3992 * elfread.c (elf_symfile_segments): Update.
3993
68b888ff
SM
39942020-05-19 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3997 <segments>: New.
3998 <segment_bases, segment_sizes>: Remove.
3999 * symfile.c (default_symfile_segments): Update.
4000 * elfread.c (elf_symfile_segments): Update.
4001 * remote.c (remote_target::get_offsets): Update.
4002 * solib-target.c (solib_target_relocate_section_addresses):
4003 Update.
4004
62982abd
SM
40052020-05-19 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * symfile.h (struct symfile_segment_data): Initialize fields.
4008 <~symfile_segment_data>: Add.
4009 (symfile_segment_data_up): New.
4010 (struct sym_fns) <sym_segments>: Return a
4011 symfile_segment_data_up.
4012 (default_symfile_segments): Return a symfile_segment_data_up.
4013 (free_symfile_segment_data): Remove.
4014 (get_symfile_segment_data): Return a symfile_segment_data_up.
4015 * symfile.c (default_symfile_segments): Likewise.
4016 (get_symfile_segment_data): Likewise.
4017 (free_symfile_segment_data): Remove.
4018 (symfile_find_segment_sections): Update.
4019 * elfread.c (elf_symfile_segments): Return a
4020 symfile_segment_data_up.
4021 * remote.c (remote_target::get_offsets): Update.
4022 * solib-target.c (solib_target_relocate_section_addresses):
4023 Update.
4024 * symfile-debug.c (debug_sym_segments): Return a
4025 symfile_segment_data_up.
4026
7f204339
RO
40272020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4028
e52a0f1b
RO
4029 PR build/25981
4030 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4031 Hardcode register numbers.
4032
7f204339
RO
4033 PR build/25981
4034 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4035 procfs_find_LDT_entry): Remove.
4036 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4037 procfs_find_LDT_entry): Remove.
4038 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4039 Remove.
4040
7f32a4d5
PA
40412020-05-17 Pedro Alves <palves@redhat.com>
4042 Andrew Burgess <andrew.burgess@embecosm.com>
4043 Keno Fischer <keno@juliacomputing.com>
4044
4045 PR gdb/25741
4046 * breakpoint.c (build_target_condition_list): Update comments.
4047 (build_target_command_list): Update comments and skip matching
4048 locations.
4049 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4050 a separate function. Simplify "set breakpoint auto-hw off"
4051 handling.
4052 (insert_breakpoints): Update comment.
4053 (tracepoint_locations_match): New parameter. For breakpoints,
4054 compare location types too, if the caller wants to.
4055 (handle_automatic_hardware_breakpoints): New functions.
4056 (bp_location_is_less_than): Also sort by location type and
4057 hardware breakpoint length.
4058 (update_global_location_list): Handle "set breakpoint auto-hw on"
4059 here.
4060 (update_breakpoint_locations): Ask breakpoint_locations_match to
4061 ignore location types.
4062
7d93a1e0
SM
40632020-05-16 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4066 type::name instead.
4067
d0e39ea2
SM
40682020-05-16 Simon Marchi <simon.marchi@efficios.com>
4069
4070 * gdbtypes.h (struct type) <name, set_name>: New methods.
4071 (TYPE_CODE): Use type::name. Change all call sites used to set
4072 the name to use type::set_name instead.
4073
2dab0c7b
TT
40742020-05-16 Tom Tromey <tom@tromey.com>
4075
4076 * top.c (quit_force): Update.
4077 * infrun.c (handle_no_resumed): Update.
4078 * top.h (all_uis): New function.
4079 (ALL_UIS): Remove.
4080
59f7bd8d
SM
40812020-05-16 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4084
9bf058f0
PA
40852020-05-16 Pedro Alves <palves@redhat.com>
4086
4087 * ia64-linux-nat.c
4088 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4089 Declare method.
4090 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4091
8f86ae1a
SM
40922020-05-15 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4095 (sparc64_adi_info): Likewise.
4096
d6bc0792
TT
40972020-05-15 Tom Tromey <tom@tromey.com>
4098
4099 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4100 block_objfile.
4101 (lookup_objfile_from_block): Remove.
4102 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4103 (lookup_global_symbol): Use block_objfile.
4104 * symtab.h (lookup_objfile_from_block): Don't declare.
4105 * printcmd.c (clear_dangling_display_expressions): Use
4106 block_objfile.
4107 * parse.c (operator_check_standard): Use block_objfile.
4108
8c14c3a3
TT
41092020-05-15 Tom Tromey <tom@tromey.com>
4110
4111 * language.c (language_alloc_type_symbol): Set
4112 SYMBOL_SECTION.
4113 * symtab.c (initialize_objfile_symbol): Remove.
4114 (allocate_symbol): Remove.
4115 (allocate_template_symbol): Remove.
4116 * dwarf2/read.c (fixup_go_packaging): Use "new".
4117 (new_symbol): Use "new".
4118 (read_variable): Don't call initialize_objfile_symbol. Use
4119 "new".
4120 (read_func_scope): Use "new".
4121 * xcoffread.c (process_xcoff_symbol): Don't call
4122 initialize_objfile_symbol.
4123 (SYMBOL_DUP): Remove.
4124 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4125 "new".
4126 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4127 (allocate_template_symbol): Don't declare.
4128 (struct symbol): Add copy constructor. Change defaults.
4129 * jit.c (finalize_symtab): Use "new".
4130 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4131 Use "new".
4132 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4133 (common_block_end): Use "new".
4134 * mdebugread.c (parse_symbol): Use "new".
4135 (new_symbol): Likewise.
4136
5b4a1a8d
PW
41372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4138
4139 * NEWS: Mention changes to help and apropos.
4140
57b4f16e
PW
41412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4142
4143 * command.h (enum command_class): Improve comments, document
4144 that class_alias is for user-defined aliases, give the class
4145 name for each class, remove unused class_xdb.
4146 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4147 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4148 by a precise class.
4149 * infcmd.c (_initialize_infcmd): Likewise.
4150 * reverse.c (_initialize_reverse): Likewise.
4151 * stack.c (_initialize_stack): Likewise.
4152 * symfile.c (_initialize_symfile): Likewise.
4153 * tracepoint.c (_initialize_tracepoint): Likewise.
4154
7c05caf7
PW
41552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4156
4157 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4158 when their aliased command is traversed.
4159 (help_cmd): Add fput_command_names_styled call to
4160 output command name and aliases when command has an alias.
4161
3b3aaacb
PW
41622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4163
4164 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4165 * cli/cli-decode.c (help_cmd_list): Declare as static,
4166 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4167 a command together with the command.
4168 (fput_command_name_styled, fput_command_names_styled): New functions.
4169 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4170 fput_command_name_styled.
4171 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4172 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4173
7aa1b46f
PW
41742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4175
4176 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4177 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4178 * command.h (cmd_show_list): Likewise.
4179 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4180 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4181
89bcba74
PW
41822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4183
4184 * unittests/command-def-selftests.c (traverse_command_structure):
4185 Verify all commands of a list have the same prefix command and
4186 that only the top cmdlist commands have a null prefix.
4187
3f4d92eb
PW
41882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4189
4190 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4191 as prefix, not one of its aliases.
4192 (set_cmd_prefix): Remove.
4193 (do_add_cmd): Centralize the setting of the prefix of a command, when
4194 command is defined after its full chain of prefix commands.
4195 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4196 (add_setshow_cmd_full): Likewise.
4197 (update_prefix_field_of_prefixed_commands): New function.
4198 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4199 update_prefix_field_of_prefixed_commands.
4200 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4201 addresses of remote_set_cmdlist and remote_show_cmdlist given
4202 as argument, not the address of an argument.
4203 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4204 * gdb/remote.c (_initialize_remote): Likewise.
4205
0605465f
PW
42062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4207
4208 * cli/cli-cmds.c (alias_command): Check for an existing alias
4209 using lookup_cmd_composition, as valid_command_p is too strict
4210 and forbids aliases that are the prefix of an existing alias
4211 or command.
4212 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4213 command is properly recognised as a valid command.
4214
58e6ac70
PW
42152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4216
4217 * unittests/help-doc-selftests.c: Rename to
4218 unittests/command-def-selftests.c
4219 * unittests/command-def-selftests.c (help_doc_tests): Update some
4220 comments.
4221 (command_structure_tests, traverse_command_structure): New namespace
4222 and function.
4223 (command_structure_invariants_tests): New function.
4224 (_initialize_command_def_selftests) Renamed from
4225 _initialize_help_doc_selftests, register command_structure_invariants
4226 selftest.
4227
a7b9ceb8
PW
42282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4229
4230 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4231 an alias of 'show'.
4232
b2188a06
JB
42332020-05-15 Joel Brobecker <brobecker@adacore.com>
4234
4235 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4236 ada_is_fixed_point_type. Update all callers.
4237 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4238 all callers.
4239 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4240 Update all callers.
4241 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4242 print_fixed_point_type. Update all callers.
4243 * ada-valprint.c (ada_value_print_num): Replace call to
4244 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4245
a51951c2
KB
42462020-05-14 Kevin Buettner <kevinb@redhat.com>
4247
4248 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4249 processors.
4250 (cpu_supports_bts): Add CV_AMD case.
4251
29d6859f
LM
42522020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4253 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * infrun.c (stop_all_threads): Collect multiple wait events at
4256 each pass.
4257
78134374
SM
42582020-05-14 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4261 type::code instead.
4262
67607e24
SM
42632020-05-14 Simon Marchi <simon.marchi@efficios.com>
4264
4265 * gdbtypes.h (struct type) <code, set_code>: New methods.
4266 (TYPE_CODE): Use type::code. Change all call sites used to set
4267 the code to use type::set_code instead.
4268
a05575d3
TBA
42692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4270 Tom de Vries <tdevries@suse.de>
4271 Pedro Alves <palves@redhat.com>
4272
4273 PR threads/25478
4274 * infrun.c (stop_all_threads): Do NOT ignore
4275 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4276 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4277 received.
4278 (handle_no_resumed): Remove code handling a live inferior with no
4279 threads.
4280 * remote.c (has_single_non_exited_thread): New.
4281 (remote_target::update_thread_list): Do not delete a thread if is
4282 the last thread of the process.
4283 * thread.c (thread_select): Call delete_exited_threads instead of
4284 prune_threads.
4285
6ad82919
TBA
42862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4287
4288 * infrun.c (stop_all_threads): Enable/disable thread events of all
4289 targets. Move a debug message denoting the end of the function
4290 into the SCOPED_EXIT block.
4291
d890404b
TBA
42922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4293
4294 * process-stratum-target.h: Include <set>.
4295 (all_non_exited_process_targets, switch_to_target_no_thread): New
4296 function declarations.
4297 * process-stratum-target.c (all_non_exited_process_targets)
4298 (switch_to_target_no_thread): New function implementations.
4299
293b3ebc
TBA
43002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4301
4302 * infrun.c (handle_inferior_event): Extract out a piece of code
4303 into...
4304 (mark_non_executing_threads): ...this new function.
4305
7ca9b62a
TBA
43062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4307
4308 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4309 use.
4310
fc75c28b
TBA
43112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4312
4313 * regcache.c (regcache_read_pc_protected): New function
4314 implementation that returns 0 if the PC cannot read via
4315 'regcache_read_pc'.
4316 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4317 instead of 'regcache_read_pc'.
4318 (keep_going_pass_signal): Ditto.
4319
a89febbd
TT
43202020-05-13 Tom Tromey <tromey@adacore.com>
4321
4322 * ada-lang.c (align_value): Remove.
4323 (ada_template_to_fixed_record_type_1): Use align_up.
4324
f7e23710
TBA
43252020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4326
4327 * async-event.c: Update the copyright year.
4328 * async-event.h: Update the copyright year.
4329
02ff80c2
SM
43302020-05-12 Simon Marchi <simon.marchi@efficios.com>
4331
4332 * objfiles.h (is_addr_in_objfile,
4333 shared_objfile_contains_address_p): Return bool.
4334 * objfile.c (is_addr_in_objfile,
4335 shared_objfile_contains_address_p): Return bool.
4336
4fd6c7e8
TT
43372020-05-11 Tom Tromey <tromey@adacore.com>
4338
4339 * cli/cli-cmds.c (info_command): Restore.
4340 (_initialize_cli_cmds): Use add_prefix_command for "info".
4341 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4342
5eb68a39
TT
43432020-05-11 Tom Tromey <tromey@adacore.com>
4344
4345 * ada-lang.c (ada_value_primitive_field): Now public.
4346 * ada-lang.h (ada_value_primitive_field): Declare.
4347 * ada-valprint.c (print_field_values): Use
4348 ada_value_primitive_field for wrapper fields.
4349
7666722f
TV
43502020-05-11 Tom de Vries <tdevries@suse.de>
4351
4352 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4353 MODULE_DOMAIN.
4354
3ee6bb11
TV
43552020-05-11 Tom de Vries <tdevries@suse.de>
4356
4357 PR symtab/25941
4358 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4359 with length 0, if not gdb-produced.
4360 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4361
43434996
TV
43622020-05-09 Tom de Vries <tdevries@suse.de>
4363
4364 PR gdb/25955
4365 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4366 calculation.
4367
2f78cffc
TT
43682020-05-09 Tom Tromey <tom@tromey.com>
4369
4370 * top.c (server_command): Now bool.
4371 * top.h (server_command): Now bool.
4372
4f7bc5ed
TT
43732020-05-08 Tom Tromey <tromey@adacore.com>
4374
4375 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4376 already being processed.
4377
8be4b118
TT
43782020-05-08 Tom Tromey <tom@tromey.com>
4379
4380 * printcmd.c (struct display) <next>: Remove.
4381 <display>: New constructor.
4382 <exp_string>: Now a std::string.
4383 <enabled_p>: Now a bool.
4384 (display_number): Move definition earlier.
4385 (displays): Rename from display_chain. Now a std::vector.
4386 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4387 (display_command): Update.
4388 (do_one_display, disable_display)
4389 (enable_disable_display_command, do_enable_disable_display):
4390 Update.
4391 (free_display): Remove.
4392 (clear_displays): Rewrite.
4393 (delete_display): Update.
4394 (map_display_numbers): Use function_view. Remove "data"
4395 parameter. Update.
4396 (do_delete_display): Remove.
4397 (undisplay_command): Update.
4398 (do_one_display, do_displays, disable_display)
4399 (info_display_command): Update.
4400 (do_enable_disable_display): Remove.
4401 (enable_disable_display_command)
4402 (clear_dangling_display_expressions): Update.
4403
94c93c35
TT
44042020-05-08 Tom Tromey <tom@tromey.com>
4405
4406 * symtab.c (set_symbol_cache_size)
4407 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4408 (maintenance_print_symbol_cache_statistics): Update.
4409 * symmisc.c (print_symbol_bcache_statistics)
4410 (print_objfile_statistics, maintenance_print_objfiles)
4411 (maintenance_info_symtabs, maintenance_check_symtabs)
4412 (maintenance_expand_symtabs, maintenance_info_line_tables):
4413 Update.
4414 * symfile-debug.c (set_debug_symfile): Update.
4415 * source.c (forget_cached_source_info): Update.
4416 * python/python.c (gdbpy_progspaces): Update.
4417 * psymtab.c (maintenance_info_psymtabs): Update.
4418 * probe.c (parse_probes): Update.
4419 * linespec.c (iterate_over_all_matching_symtabs)
4420 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4421 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4422 * exec.c (exec_target::close): Update.
4423 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4424 * breakpoint.c (print_one_breakpoint_location)
4425 (create_longjmp_master_breakpoint)
4426 (create_std_terminate_master_breakpoint): Update.
4427 * progspace.c (program_spaces): Now a std::vector.
4428 (maybe_new_address_space): Update.
4429 (add_program_space): Remove.
4430 (program_space::program_space): Update.
4431 (remove_program_space): Update.
4432 (number_of_program_spaces): Remove.
4433 (print_program_space, update_address_spaces): Update.
4434 * progspace.h (program_spaces): Change type.
4435 (ALL_PSPACES): Remove.
4436 (number_of_program_spaces): Don't declare.
4437 (struct program_space) <next>: Remove.
4438
a1fd1ac9
TT
44392020-05-08 Tom Tromey <tom@tromey.com>
4440
4441 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4442 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4443 (enable_break): Update.
4444 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4445 (frv_fdpic_find_canonical_descriptor): Update.
4446 (frv_fetch_objfile_link_map): Update.
4447 * progspace.c (program_space::free_all_objfiles): Update.
4448 (program_space::solibs): New method.
4449 * progspace.h (struct program_space) <solibs>: New method.
4450 * solist.h (master_so_list): Don't declare.
4451 (ALL_SO_LIBS): Remove.
4452 * solib.h (so_list_head): Remove.
4453 (update_solib_list): Update comment.
4454 * solib.c (master_so_list): Remove.
4455 (solib_used, update_solib_list, solib_add)
4456 (info_sharedlibrary_command, clear_solib)
4457 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4458
38eae084
TT
44592020-05-08 Tom Tromey <tom@tromey.com>
4460
4461 * extension.c (extension_languages): Now a std::array.
4462 (ALL_EXTENSION_LANGUAGES): Remove.
4463 (get_ext_lang_defn, get_ext_lang_of_file)
4464 (eval_ext_lang_from_control_command): Update.
4465 (finish_ext_lang_initialization)
4466 (auto_load_ext_lang_scripts_for_objfile)
4467 (ext_lang_type_printers::ext_lang_type_printers)
4468 (apply_ext_lang_type_printers)
4469 (ext_lang_type_printers::~ext_lang_type_printers)
4470 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4471 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4472 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4473 (get_matching_xmethod_workers, ext_lang_colorize)
4474 (ext_lang_before_prompt): Update.
4475 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4476
596dc4ad
TT
44772020-05-08 Tom Tromey <tom@tromey.com>
4478
4479 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4480 overload.
4481 <swap_string, m_string>: Remove.
4482 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4483 Update.
4484 * stabsread.c (define_symbol, read_type): Update.
4485 * linespec.c (find_linespec_symbols): Update.
4486 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4487 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4488 * dbxread.c (read_dbx_symtab): Update.
4489 * cp-support.h (cp_canonicalize_string_full)
4490 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4491 Return unique_xmalloc_ptr.
4492 * cp-support.c (inspect_type): Update.
4493 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4494 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4495 Likewise.
4496 * c-typeprint.c (print_name_maybe_canonical): Update.
4497 * break-catch-throw.c (check_status_exception_catchpoint):
4498 Update.
4499
bf4cb9be
TV
45002020-05-08 Tom de Vries <tdevries@suse.de>
4501
4502 * infrun.c (follow_fork): Copy current_line and current_symtab to
4503 child thread.
4504
a1b68f28
SM
45052020-05-07 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * async-event.c (struct async_signal_handler, struct
4508 async_event_handler): Reformat, remove typedef.
4509
98d48915
SM
45102020-05-07 Simon Marchi <simon.marchi@efficios.com>
4511
4512 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4513 access thistype->main_type->dyn_prop_list directly.
4514
7aa91313
SM
45152020-05-07 Simon Marchi <simon.marchi@efficios.com>
4516
4517 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4518 (remove_dyn_prop): Remove. Update all users to use
4519 type::remove_dyn_prop.
4520 * gdbtypes.c (remove_dyn_prop): Rename to...
4521 (type::remove_dyn_prop): ... this.
4522
5c54719c
SM
45232020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4524
4525 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4526 (add_dyn_prop): Remove. Update all users to use
4527 type::add_dyn_prop.
4528 * gdbtypes.c (add_dyn_prop): Rename to...
4529 (type::add_dyn_prop): ... this.
4530
24e99c6c
SM
45312020-05-07 Simon Marchi <simon.marchi@efficios.com>
4532
4533 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4534 (get_dyn_prop): Remove. Update all users to use
4535 type::dyn_prop.
4536 * gdbtypes.c (get_dyn_prop): Rename to...
4537 (type::dyn_prop): ... this.
4538
0d4bf016
SM
45392020-05-06 Simon Marchi <simon.marchi@efficios.com>
4540
4541 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4542
ac4a4f1c
SM
45432020-05-06 Simon Marchi <simon.marchi@efficios.com>
4544
4545 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4546 instruction, skip it if it's there.
4547
a3bbacc1
SM
45482020-05-05 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4551
c3236f84
SM
45522020-05-04 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4555 * gdbtypes.c (recursive_dump_type): Remove use of
4556 TYPE_INCOMPLETE.
4557
3b6acaee
TT
45582020-05-03 Tom Tromey <tom@tromey.com>
4559
4560 * breakpoint.c (catch_command, tcatch_command): Remove.
4561 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4562 add_show_prefix_cmd.
4563 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4564 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4565 Remove.
4566 (add_internal_problem_command): Use add_basic_prefix_cmd,
4567 add_show_prefix_cmd.
4568 * mips-tdep.c (set_mipsfpu_command): Remove.
4569 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4570 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4571 (_initialize_index_cache): Use add_basic_prefix_cmd.
4572 * memattr.c (dummy_cmd): Remove.
4573 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4574 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4575 (_initialize_tui_win): Use add_basic_prefix_cmd,
4576 add_show_prefix_cmd.
4577 * cli/cli-logging.c (set_logging_command): Remove.
4578 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4579 add_show_prefix_cmd.
4580 (show_logging_command): Remove.
4581 * target.c (target_command): Remove.
4582 (add_target): Use add_basic_prefix_cmd.
4583
a51119cd
HD
45842020-05-02 Hannes Domani <ssbssa@yahoo.de>
4585
4586 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4587
652fc23a 45882020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4589
652fc23a
PW
4590 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4591 info_command.
4592
117539e6
KR
45932020-04-30 Kamil Rytarowski <n54@gmx.com>
4594
4595 * nbsd-nat.c (nbsd_enable_proc_events)
4596 (nbsd_nat_target::post_startup_inferior): Add.
4597 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4598 (nbsd_nat_target::update_thread_list): Rewrite.
4599 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4600 "PTRACE_LWP_CREATE".
4601 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4602
102e38eb 46032020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4604
102e38eb
PW
4605 * stack.c (_initialize_stack): Remove duplicated creation
4606 of "frame" command and "f" alias.
4607
ee9d1e5f
HD
46082020-04-30 Hannes Domani <ssbssa@yahoo.de>
4609
4610 PR gdb/18706
4611 * gdbtypes.c (check_typedef): Calculate size of array of
4612 stubbed type.
4613
627c7fb8
HD
46142020-04-30 Hannes Domani <ssbssa@yahoo.de>
4615
4616 PR gdb/15559
4617 * i386-tdep.c (i386_push_dummy_call): Call
4618 i386_thiscall_push_dummy_call.
4619 (i386_thiscall_push_dummy_call): New function.
4620 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4621 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4622 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4623
ffc2844e
SM
46242020-04-29 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * gdbarch.sh (do_read): Add shellcheck disable directive for
4627 warning SC2162.
4628
1207375d
SM
46292020-04-29 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4632 "referenced but not assigned" warning.
4633
9fdb2916
SM
46342020-04-29 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * gdbarch.sh: Remove code that sets fallbackdefault.
4637
759cea5e
SM
46382020-04-29 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * gdbarch.sh: Use shell operators && and || instead of
4641 -a and -o.
4642
cb02ab24
SM
46432020-04-29 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * gdbarch.sh: Use $(...) instead of `...`.
4646
a6fc5ffc
SM
46472020-04-29 Simon Marchi <simon.marchi@efficios.com>
4648
4649 * gdbarch.sh: Use double quotes around variables.
4650
8d113d13
SM
46512020-04-29 Simon Marchi <simon.marchi@efficios.com>
4652
4653 * gdbarch.sh: Use %s with printf, instead of variables in the
4654 format string.
4655
ed6acedd
TT
46562020-04-29 Tom Tromey <tromey@adacore.com>
4657
4658 PR ada/25875:
4659 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4660 type fields here.
4661 (read_enumeration_type): Call
4662 update_enumeration_type_from_children later. Update comments.
4663 (process_enumeration_scope): Don't create type fields.
4664
b68b1b58
KR
46652020-04-29 Kamil Rytarowski <n54@gmx.com>
4666
4667 * nbsd-tdep.c: Include "xml-syscall.h".
4668 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4669
f94b2e03
KR
46702020-04-29 Kamil Rytarowski <n54@gmx.com>
4671
4672 * nbsd-nat.c: Include "sys/wait.h".
4673 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4674 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4675 (nbsd_nat_target::remove_exec_catchpoint)
4676 (nbsd_nat_target::set_syscall_catchpoint): Add.
4677 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4678 (nbsd_nat_target::insert_exec_catchpoint)
4679 (nbsd_nat_target::remove_exec_catchpoint)
4680 (nbsd_nat_target::set_syscall_catchpoint): Add.
4681 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4682 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4683 `nbsd_get_syscall_number'.
4684
fc49bc72
TT
46852020-04-29 Tom Tromey <tom@tromey.com>
4686
4687 * stack.c (print_block_frame_labels): Remove.
4688
d642b692
HD
46892020-04-29 Hannes Domani <ssbssa@yahoo.de>
4690
4691 PR gdb/17320
4692 * ada-valprint.c (val_print_packed_array_elements): Move array
4693 end bracket to new line.
4694 (ada_val_print_string): Remove extra spaces before first array
4695 element.
4696 * c-valprint.c (c_value_print_array): Likewise.
4697 * m2-valprint.c (m2_print_array_contents): Likewise.
4698 (m2_value_print_inner): Likewise.
4699 * p-valprint.c (pascal_value_print_inner): Likewise.
4700 * valprint.c (generic_val_print_array): Likewise.
4701 (value_print_array_elements): Move first array element and array
4702 end bracket to new line.
4703
ea90f227
TV
47042020-04-29 Tom de Vries <tdevries@suse.de>
4705
4706 PR symtab/25889
4707 * linespec.c (find_method): Fix ix calculation.
4708
4498ef4f
KR
47092020-04-28 Kamil Rytarowski <n54@gmx.com>
4710
4711 * syscalls/update-netbsd.sh: New file.
4712 * syscalls/netbsd.xml: Regenerate.
4713 * data-directory/Makefile.in: Register `netbsd.xml' in
4714 `SYSCALLS_FILES'.
4715
a55e30b5
SM
47162020-04-28 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * syscalls/update-freebsd.sh: Add double quotes.
4719
2b2fbab8
TT
47202020-04-28 Tom Tromey <tom@tromey.com>
4721
4722 * NEWS: Update.
4723 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4724 (cmdpy_init): Allow class_tui.
4725
a65189c9
TV
47262020-04-28 Mark Williams <mark@myosotissp.com>
4727
4728 PR gdb/24480
4729 * dwarf2read.c: Add missing assingments to list_in_scope when
4730 start_symtab was already called.
4731
1b95cdb7
SM
47322020-04-28 Simon Marchi <simon.marchi@efficios.com>
4733
4734 PR gdb/25881
4735 * dwarf2/read.c (offset_map_type): Use
4736 gdb:hash_enum<sect_offset> as hash function.
4737
15cd93d0
TV
47382020-04-28 Tom de Vries <tdevries@suse.de>
4739
4740 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4741 with DW_AT_signature.
4742
1eb39914
SM
47432020-04-27 Simon Marchi <simon.marchi@efficios.com>
4744
4745 * configure.ac: Remove check for fs_base/gs_base in
4746 user_regs_struct.
4747 * configure: Re-generate.
4748 * config.in: Re-generate.
4749 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4750 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4751 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4752
991a3e2e
LM
47532020-04-27 Luis Machado <luis.machado@linaro.org>
4754
4755 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4756 problematic inline frame unwinding situation.
4757 * frame.c (frame_id_computed_p): New function.
4758 * frame.h (frame_id_computed_p): New prototype.
4759
361ba0e8
TT
47602020-04-26 Tom Tromey <tom@tromey.com>
4761
4762 * command.h (enum command_class) <class_pseudo>: Remove.
4763
bc3609fd
PW
47642020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4765
4766 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4767 and whitespace.
4768
b9771db7
KR
47692020-04-25 Kamil Rytarowski <n54@gmx.com>
4770
ec16513e
SM
4771 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4772 `PT_GET_PROCESS_STATE' block.
b9771db7 4773
7151c1af
TT
47742020-04-24 Tom Tromey <tom@tromey.com>
4775
4776 * symtab.h (symbol_get_demangled_name): Don't declare.
4777 * symtab.c (symbol_get_demangled_name): Remove.
4778 (general_symbol_info::natural_name)
4779 (general_symbol_info::demangled_name): Update.
4780
906bb4c5
TT
47812020-04-24 Tom Tromey <tom@tromey.com>
4782
4783 PR rust/25025:
4784 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4785
bcfe6157
TT
47862020-04-24 Tom Tromey <tom@tromey.com>
4787
4788 PR symtab/12707:
4789 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4790 exists.
4791 (new_symbol): Likewise.
4792 * compile/compile-object-load.c (get_out_value_type): Use
4793 symbol_matches_search_name.
4794
f049a313
TT
47952020-04-24 Tom Tromey <tom@tromey.com>
4796
4797 * dwarf2/read.c (add_partial_symbol): Do not call
4798 compute_and_set_names.
4799
76e288d1
TT
48002020-04-24 Tom Tromey <tom@tromey.com>
4801
4802 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4803 overload.
4804
2467f4f6
TT
48052020-04-24 Tom Tromey <tom@tromey.com>
4806
4807 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4808 (add_psymbol_to_list): New overload. Make old overload call new
4809 one.
4810 * psympriv.h (add_psymbol_to_list): New overload.
4811
e61108c9
TT
48122020-04-24 Tom Tromey <tom@tromey.com>
4813
4814 * dwarf2/read.c (partial_die_info::read) <case
4815 DW_AT_linkage_name>: Use value_as_string.
4816 (dwarf2_string_attr): Use value_as_string.
4817 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4818 method.
4819 * dwarf2/attribute.c (attribute::value_as_string): New method.
4820
8c87a452
TT
48212020-04-24 Tom Tromey <tom@tromey.com>
4822
4823 * symtab.c (general_symbol_info::natural_name)
4824 (general_symbol_info::demangled_name): Check for language_rust.
4825
787de330
TT
48262020-04-24 Tom Tromey <tom@tromey.com>
4827
4828 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4829 (dwarf2_physname): ... from here.
4830 (partial_die_info::read): Add Rust "{" hack.
4831
ff985671
TT
48322020-04-24 Tom Tromey <tom@tromey.com>
4833
4834 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4835 method.
4836 (symbol_set_demangled_name): Don't declare.
4837 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4838 symbol_set_demangled_name.
4839 (general_symbol_info::set_language)
4840 (general_symbol_info::compute_and_set_names): Update.
4841 * minsyms.c (minimal_symbol_reader::install): Update.
4842 * dwarf2/read.c (new_symbol): Update.
4843
1acda803
TT
48442020-04-24 Tom Tromey <tromey@adacore.com>
4845
4846 PR python/23662:
4847 * python/py-type.c (convert_field): Handle
4848 FIELD_LOC_KIND_DWARF_BLOCK.
4849 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4850 (typy_get_dynamic): Nw function.
4851 (type_object_getset): Add "dynamic".
4852 * NEWS: Add entry.
4853
d656f129
TT
48542020-04-24 Tom Tromey <tromey@adacore.com>
4855
4856 * ada-typeprint.c (print_choices, print_variant_part)
4857 (print_record_field_types_dynamic): New functions.
4858 (print_record_field_types): Use print_record_field_types_dynamic.
4859
7d79de9a
TT
48602020-04-24 Tom Tromey <tromey@adacore.com>
4861
4862 * dwarf2/read.c (handle_data_member_location): New overload.
4863 (dwarf2_add_field): Use it.
4864 (decode_locdesc): Add "computed" parameter. Update comment.
4865 * gdbtypes.c (is_dynamic_type_internal): Also look for
4866 FIELD_LOC_KIND_DWARF_BLOCK.
4867 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4868 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4869 virtual base classes.
4870 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4871 FIELD_LOC_KIND_DWARF_BLOCK.
4872
f8e89861
TT
48732020-04-24 Tom Tromey <tromey@adacore.com>
4874
4875 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4876 * gdbtypes.c (is_dynamic_type_internal): Check
4877 TYPE_HAS_DYNAMIC_LENGTH.
4878 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4879 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4880 New macros.
4881 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4882 constant.
4883
9c6a1327
TT
48842020-04-24 Tom Tromey <tromey@adacore.com>
4885
4886 * dwarf2/read.c (struct variant_field): Rewrite.
4887 (struct variant_part_builder): New.
4888 (struct nextfield): Remove "variant" field. Add "offset".
4889 (struct field_info): Add "current_variant_part" and
4890 "variant_parts".
4891 (alloc_discriminant_info): Remove.
4892 (alloc_rust_variant): New function.
4893 (quirk_rust_enum): Update.
4894 (dwarf2_add_field): Set "offset" member. Don't handle
4895 DW_TAG_variant_part.
4896 (offset_map_type): New typedef.
4897 (convert_variant_range, create_one_variant)
4898 (create_one_variant_part, create_variant_parts)
4899 (add_variant_property): New functions.
4900 (dwarf2_attach_fields_to_type): Call add_variant_property.
4901 (read_structure_type): Don't handle DW_TAG_variant_part.
4902 (handle_variant_part, handle_variant): New functions.
4903 (handle_struct_member_die): Use them.
4904 (process_structure_scope): Don't handle variant parts.
4905 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4906 (struct discriminant_info): Remove.
4907 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4908 (struct main_type) <flag_discriminated_union>: Remove.
4909 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4910 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4911 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4912 Update.
4913 * valops.c (value_union_variant): Remove.
4914 * value.h (value_union_variant): Don't declare.
4915
b249d2c2
TT
49162020-04-24 Tom Tromey <tromey@adacore.com>
4917
4918 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4919 (ada_value_primitive_packed_val): Update.
4920 * ada-valprint.c (ada_value_print_1): Update.
4921 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4922 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4923 just an address. Use evaluate_for_locexpr_baton.
4924 (dwarf2_evaluate_property): Update.
4925 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4926 array_view.
4927 * findvar.c (default_read_var_value): Update.
4928 * gdbtypes.c (compute_variant_fields_inner)
4929 (resolve_dynamic_type_internal): Update.
4930 (resolve_dynamic_type): Change type of valaddr parameter.
4931 * gdbtypes.h (resolve_dynamic_type): Update.
4932 * valarith.c (value_subscripted_rvalue): Update.
4933 * value.c (value_from_contents_and_address): Update.
4934
61122aa9
TT
49352020-04-24 Tom Tromey <tromey@adacore.com>
4936
4937 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4938 "push_initial_value" parameter.
4939 (dwarf2_evaluate_property): Likewise.
4940 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4941
ef83a141
TT
49422020-04-24 Tom Tromey <tromey@adacore.com>
4943
4944 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4945 (variant::matches, compute_variant_fields_recurse)
4946 (compute_variant_fields_inner, compute_variant_fields): New
4947 functions.
4948 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4949 Use resolved_type after type is made.
4950 (operator==): Add new cases.
4951 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4952 (struct discriminant_range, struct variant, struct variant_part):
4953 New.
4954 (union dynamic_prop_data) <variant_parts, original_type>: New
4955 members.
4956 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4957 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4958 constants.
4959 * value.c (unpack_bits_as_long): Now public.
4960 * value.h (unpack_bits_as_long): Declare.
4961
675127ec
TT
49622020-04-24 Tom Tromey <tromey@adacore.com>
4963
4964 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4965 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4966
9852ceef
HD
49672020-04-24 Hannes Domani <ssbssa@yahoo.de>
4968
4969 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4970
7632c6ce
KR
49712020-04-24 Kamil Rytarowski <n54@gmx.com>
4972
4973 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4974 (remove_fork_catchpoint, post_startup_inferior)
4975 (post_attach): Move...
4976 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4977 (remove_fork_catchpoint, post_startup_inferior)
4978 (post_attach): ...here.
4979 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4980 (remove_fork_catchpoint, post_startup_inferior)
4981 (post_attach): Move...
4982 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4983 (remove_fork_catchpoint, post_startup_inferior)
4984 (post_attach): ...here.
4985
7be2bb4f
TT
49862020-04-24 Tom Tromey <tromey@adacore.com>
4987
4988 * nat/windows-nat.h (struct windows_thread_info)
4989 <pc_adjusted>: New member.
4990 * windows-nat.c (windows_fetch_one_register): Check
4991 pc_adjusted.
4992 (windows_nat_target::get_windows_debug_event)
4993 (windows_nat_target::wait): Set pc_adjusted.
4994
f80cb3b4
TV
49952020-04-24 Tom de Vries <tdevries@suse.de>
4996
4997 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4998 Run gdb-add-index inside temp dir.
4999
29514b87
TT
50002020-04-23 Tom Tromey <tromey@adacore.com>
5001
5002 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5003 in loop.
5004
5939967b
LM
50052020-04-23 Luis Machado <luis.machado@linaro.org>
5006
5007 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5008 get_frame_register instead of gdbarch_unwind_pc.
5009
70bc38f5
TV
50102020-04-23 Tom de Vries <tdevries@suse.de>
5011
5012 * symtab.c (lookup_global_symbol): Prefer def over decl.
5013
de82891c
TV
50142020-04-23 Tom de Vries <tdevries@suse.de>
5015
5016 PR symtab/25807
5017 * block.c (best_symbol, better_symbol): Promote to external.
5018 * block.h (best_symbol, better_symbol): Declare.
5019 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5020 decl.
5021
ecc6c606
TT
50222020-04-23 Tom Tromey <tromey@adacore.com>
5023
5024 PR ada/25837:
5025 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5026 "const char *", not a "const std::string &".
5027 <name_and_matcher::operator==>: Update.
5028 * unittests/lookup_name_info-selftests.c: Change type of
5029 "result".
5030
740480b8
TT
50312020-04-23 Tom Tromey <tom@tromey.com>
5032
5033 * inferior.h (iterate_over_inferiors): Don't declare.
5034 * inferior.c (iterate_over_inferiors): Remove.
5035 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5036 Remove.
5037 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5038 use iterate_over_inferiors.
5039 (darwin_resume_inferior_it)
5040 (struct resume_inferior_threads_param)
5041 (darwin_resume_inferior_threads_it): Remove.
5042 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5043
ae3ab1f0
TV
50442020-04-23 Tom de Vries <tdevries@suse.de>
5045
5046 * blockframe.c (find_pc_partial_function): Use
5047 find_pc_sect_compunit_symtab rather than
5048 objfile->sf->qf->find_pc_sect_compunit_symtab.
5049
317d2668
TV
50502020-04-22 Tom de Vries <tdevries@suse.de>
5051
5052 PR symtab/25764
5053 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5054 in psymtabs.
5055
eea9e357
TV
50562020-04-22 Tom de Vries <tdevries@suse.de>
5057
5058 PR symtab/25801
5059 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5060 symtabs.
5061
3d5afab3
TV
50622020-04-22 Tom de Vries <tdevries@suse.de>
5063
5064 PR symtab/25700
5065 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5066 CU if already created.
5067
d43b7a2d
TBA
50682020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5069
5070 * infrun.c (displaced_step_fixup): Switch to the event_thread
5071 before calling displaced_step_restore, not after.
5072
d89edf9b
MM
50732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5074
5075 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5076 its inferior is not recorded by us.
5077 (record_btrace_target_open): Replace call to
5078 all_non_exited_threads () with call to current_inferior
5079 ()->non_exited_threads ().
5080 (record_btrace_target::stop_recording): Likewise.
5081 (record_btrace_target::close): Likewise.
5082 (record_btrace_target::wait): Likewise.
5083 (record_btrace_target::record_stop_replaying): Likewise.
5084
5897fd49
MM
50852020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5086
5087 * btrace.c (btrace_enable): Throw an error on double enables and
5088 when enabling recording fails.
5089 (btrace_disable): Throw an error if the thread is not recorded.
5090
1a476b6d
MM
50912020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5092
5093 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5094 request if we do not have a thread_info.
5095
4778a5f8
TV
50962020-04-21 Tom de Vries <tdevries@suse.de>
5097
5098 PR gdb/25471
5099 * thread.c
5100 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5101 exception in get_frame_id.
5102
0fa7617d
TT
51032020-04-20 Tom Tromey <tromey@adacore.com>
5104
5105 * python/python.c (struct gdbpy_event): Mark move constructor as
5106 noexcept.
5107 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5108 constructor as noexcept.
5109 * completer.h (struct completion_result): Mark move constructor as
5110 noexcept.
5111 * completer.c (completion_result::completion_result): Use
5112 initialization style. Don't call reset_match_list.
5113
ad23bda0
MS
51142020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5115
5116 * MAINTAINERS (Write After Approval): Add myself.
5117
45e1f031
TT
51182020-04-18 Tom Tromey <tom@tromey.com>
5119
5120 * windows-tdep.c (init_w32_command_list)
5121 (w32_prefix_command_valid): Restore.
5122 (_initialize_windows_tdep): Call init_w32_command_list.
5123
08feed99
TT
51242020-04-18 Tom Tromey <tom@tromey.com>
5125
5126 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5127 * value.c (value_fn_field): Update.
5128 * valops.c (find_function_in_inferior)
5129 (value_allocate_space_in_inferior): Update.
5130 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5131 Update.
5132 * tui/tui-source.c (tui_source_window::set_contents): Update.
5133 * symtab.c (lookup_global_or_static_symbol)
5134 (find_function_start_sal_1, skip_prologue_sal)
5135 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5136 * symmisc.c (dump_msymbols, dump_symtab_1)
5137 (maintenance_print_one_line_table): Update.
5138 * symfile.c (init_entry_point_info, section_is_mapped)
5139 (list_overlays_command, simple_read_overlay_table)
5140 (simple_overlay_update_1): Update.
5141 * stap-probe.c (handle_stap_probe): Update.
5142 * stabsread.c (dbx_init_float_type, define_symbol)
5143 (read_one_struct_field, read_enum_type, read_range_type): Update.
5144 * source.c (info_line_command): Update.
5145 * python/python.c (gdbpy_source_objfile_script)
5146 (gdbpy_execute_objfile_script): Update.
5147 * python/py-type.c (save_objfile_types): Update.
5148 * python/py-objfile.c (py_free_objfile): Update.
5149 * python/py-inferior.c (python_new_objfile): Update.
5150 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5151 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5152 (maintenance_check_psymtabs): Update.
5153 * printcmd.c (info_address_command): Update.
5154 * objfiles.h (struct objfile) <arch>: New method, from
5155 get_objfile_arch.
5156 (get_objfile_arch): Don't declare.
5157 * objfiles.c (get_objfile_arch): Remove.
5158 (filter_overlapping_sections): Update.
5159 * minsyms.c (msymbol_is_function): Update.
5160 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5161 (output_nondebug_symbol): Update.
5162 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5163 (mdebug_expand_psymtab): Update.
5164 * machoread.c (macho_add_oso_symfile): Update.
5165 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5166 Update.
5167 * linux-fork.c (checkpoint_command): Update.
5168 * linespec.c (convert_linespec_to_sals): Update.
5169 * jit.c (finalize_symtab): Update.
5170 * infrun.c (insert_exception_resume_from_probe): Update.
5171 * ia64-tdep.c (ia64_find_unwind_table): Update.
5172 * hppa-tdep.c (internalize_unwinds): Update.
5173 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5174 Update.
5175 * gcore.c (call_target_sbrk): Update.
5176 * elfread.c (record_minimal_symbol, elf_symtab_read)
5177 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5178 (elf_gnu_ifunc_resolve_by_got): Update.
5179 * dwarf2/read.c (create_addrmap_from_index)
5180 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5181 (read_debug_names_from_section)
5182 (process_psymtab_comp_unit_reader, add_partial_symbol)
5183 (add_partial_subprogram, process_full_comp_unit)
5184 (read_file_scope, read_func_scope, read_lexical_block_scope)
5185 (read_call_site_scope, dwarf2_ranges_read)
5186 (dwarf2_record_block_ranges, dwarf2_add_field)
5187 (mark_common_block_symbol_computed, read_tag_pointer_type)
5188 (read_tag_string_type, dwarf2_init_float_type)
5189 (dwarf2_init_complex_target_type, read_base_type)
5190 (partial_die_info::read, partial_die_info::read)
5191 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5192 (dwarf2_fetch_die_loc_sect_off): Update.
5193 * dwarf2/loc.c (dwarf2_find_location_expression)
5194 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5195 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5196 (dwarf2_loc_desc_get_symbol_read_needs)
5197 (locexpr_describe_location_piece, locexpr_describe_location_1)
5198 (loclist_describe_location): Update.
5199 * dwarf2/index-write.c (write_debug_names): Update.
5200 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5201 * dtrace-probe.c (dtrace_process_dof): Update.
5202 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5203 (process_one_symbol): Update.
5204 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5205 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5206 (coff_read_enum_type): Update.
5207 * cli/cli-cmds.c (edit_command, list_command): Update.
5208 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5209 * breakpoint.c (create_overlay_event_breakpoint)
5210 (create_longjmp_master_breakpoint)
5211 (create_std_terminate_master_breakpoint)
5212 (create_exception_master_breakpoint, get_sal_arch): Update.
5213 * block.c (block_gdbarch): Update.
5214 * annotate.c (annotate_source_line): Update.
5215
0743fc83
TT
52162020-04-17 Tom Tromey <tromey@adacore.com>
5217
5218 * auto-load.c (show_auto_load_cmd): Remove.
5219 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5220 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5221 (maintenance_print_arc_command): Remove.
5222 * tui/tui-win.c (tui_command): Remove.
5223 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5224 * tui/tui-layout.c (tui_layout_command): Remove.
5225 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5226 * python/python.c (user_set_python, user_show_python): Remove.
5227 (_initialize_python): Use add_basic_prefix_cmd,
5228 add_show_prefix_cmd.
5229 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5230 (install_gdb_commands): Use add_basic_prefix_cmd,
5231 add_show_prefix_cmd.
5232 (info_guile_command): Remove.
5233 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5234 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5235 add_show_prefix_cmd.
5236 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5237 Remove do_set and do_show parameters.
5238 * cli/cli-style.c (set_style, show_style): Remove.
5239 (_initialize_cli_style): Use add_basic_prefix_cmd,
5240 add_show_prefix_cmd.
5241 (cli_style_option::add_setshow_commands): Remove do_set and
5242 do_show parameters.
5243 (cli_style_option::add_setshow_commands): Use
5244 add_basic_prefix_cmd, add_show_prefix_cmd.
5245 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5246 (set_style_name): Remove.
5247 * cli/cli-dump.c (dump_command, append_command): Remove.
5248 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5249 (tekhex_dump_command, binary_dump_command)
5250 (binary_append_command): Remove.
5251 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5252 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5253 (init_w32_command_list): Remove; move into ...
5254 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5255 * valprint.c (set_print, show_print, set_print_raw)
5256 (show_print_raw): Remove.
5257 (_initialize_valprint): Use add_basic_prefix_cmd,
5258 add_show_prefix_cmd.
5259 * typeprint.c (set_print_type, show_print_type): Remove.
5260 (_initialize_typeprint): Use add_basic_prefix_cmd,
5261 add_show_prefix_cmd.
5262 * record.c (set_record_command, show_record_command): Remove.
5263 (_initialize_record): Use add_basic_prefix_cmd,
5264 add_show_prefix_cmd.
5265 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5266 add_show_prefix_cmd.
5267 (info_command, show_command, set_debug, show_debug): Remove.
5268 * top.h (set_history, show_history): Don't declare.
5269 * top.c (set_history, show_history): Remove.
5270 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5271 (unset_tdesc_cmd): Remove.
5272 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5273 add_show_prefix_cmd.
5274 * symtab.c (info_module_command): Remove.
5275 (_initialize_symtab): Use add_basic_prefix_cmd.
5276 * symfile.c (overlay_command): Remove.
5277 (_initialize_symfile): Use add_basic_prefix_cmd.
5278 * sparc64-tdep.c (info_adi_command): Remove.
5279 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5280 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5281 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5282 add_show_prefix_cmd.
5283 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5284 (_initialize_serial): Use add_basic_prefix_cmd,
5285 add_show_prefix_cmd.
5286 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5287 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5288 add_show_prefix_cmd.
5289 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5290 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5291 add_show_prefix_cmd.
5292 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5293 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5294 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5295 add_show_prefix_cmd.
5296 * remote.c (remote_command, set_remote_cmd): Remove.
5297 (_initialize_remote): Use add_basic_prefix_cmd.
5298 * record-full.c (set_record_full_command)
5299 (show_record_full_command): Remove.
5300 (_initialize_record_full): Use add_basic_prefix_cmd,
5301 add_show_prefix_cmd.
5302 * record-btrace.c (cmd_set_record_btrace)
5303 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5304 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5305 (cmd_show_record_btrace_pt): Remove.
5306 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5307 add_show_prefix_cmd.
5308 * ravenscar-thread.c (set_ravenscar_command)
5309 (show_ravenscar_command): Remove.
5310 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5311 add_show_prefix_cmd.
5312 * mips-tdep.c (show_mips_command, set_mips_command)
5313 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5314 add_show_prefix_cmd.
5315 * maint.c (maintenance_command, maintenance_info_command)
5316 (maintenance_check_command, maintenance_print_command)
5317 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5318 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5319 add_show_prefix_cmd.
5320 (show_per_command_cmd): Remove.
5321 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5322 Remove.
5323 (maintenance_show_test_settings_cmd): Remove.
5324 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5325 add_show_prefix_cmd.
5326 * maint-test-options.c (maintenance_test_options_command):
5327 Remove.
5328 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5329 * macrocmd.c (macro_command): Remove
5330 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5331 * language.c (set_check, show_check): Remove.
5332 (_initialize_language): Use add_basic_prefix_cmd,
5333 add_show_prefix_cmd.
5334 * infcmd.c (unset_command): Remove.
5335 (_initialize_infcmd): Use add_basic_prefix_cmd.
5336 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5337 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5338 add_show_prefix_cmd.
5339 * go32-nat.c (go32_info_dos_command): Remove.
5340 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5341 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5342 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5343 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5344 (_initialize_frame): Use add_basic_prefix_cmd,
5345 add_show_prefix_cmd.
5346 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5347 (_initialize_dcache): Use add_basic_prefix_cmd,
5348 add_show_prefix_cmd.
5349 * cp-support.c (maint_cplus_command): Remove.
5350 (_initialize_cp_support): Use add_basic_prefix_cmd.
5351 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5352 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5353 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5354 add_basic_prefix_cmd, add_show_prefix_cmd.
5355 * breakpoint.c (save_command): Remove.
5356 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5357 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5358 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5359 add_show_prefix_cmd.
5360 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5361 (set_ada_command, show_ada_command): Remove.
5362 (_initialize_ada_language): Use add_basic_prefix_cmd,
5363 add_show_prefix_cmd.
5364 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5365
3557f442
KR
53662020-04-16 Kamil Rytarowski <n54@gmx.com>
5367
5368 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5369 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5370
16197208
SM
53712020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5372
5373 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5374 warning messages.
5375
00ac85d3
SM
53762020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5377
5378 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5379 import table is not at beginning of .idata section.
5380
381ce63f
PA
53812020-04-16 Pedro Alves <palves@redhat.com>
5382
5383 * inferior.c (delete_inferior): Use delete operator directly
5384 instead of delete_program_space.
5385 * progspace.c (add_program_space): New, factored out from
5386 program_space::program_space.
5387 (remove_program_space): New, factored out from
5388 delete_program_space.
5389 (program_space::program_space): Remove intro comment. Rewrite.
5390 (program_space::~program_space): Remove intro comment. Call
5391 remove_program_space.
5392 (delete_program_space): Delete.
5393 * progspace.h (program_space::program_space): Make explicit. Move
5394 intro comment here, adjusted.
5395 (program_space::~program_space): Move intro comment here,
5396 adjusted.
5397 (delete_program_space): Remove.
5398
a010605f
TT
53992020-04-16 Tom Tromey <tromey@adacore.com>
5400
5401 * windows-nat.c (windows_nat::handle_access_violation): New
5402 function.
5403 * nat/windows-nat.h (handle_access_violation): Declare.
5404 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5405 windows-nat.c. Call handle_access_violation.
5406
efba5c23
TV
54072020-04-16 Tom de Vries <tdevries@suse.de>
5408
5409 PR symtab/25791
5410 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5411 CUs without psymtab.
5412
97ed802d
KB
54132020-04-16 Kevin Buettner <kevinb@redhat.com>
5414
5415 * python/python.c (do_start_initialization): Don't call
5416 PyEval_InitThreads for Python 3.9 and beyond.
5417
c7d64809
KR
54182020-04-15 Kamil Rytarowski <n54@gmx.com>
5419
5420 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5421 thread functions.
5422 (obsd_nat_target::wait): Likewise.
5423
ce127a96
TT
54242020-04-15 Tom Tromey <tromey@adacore.com>
5425
5426 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5427 (DEBUG_EXCEPT): Use debug_printf.
5428
99f1bc6a
AB
54292020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5430
5431 * completer.c (class completion_tracker::completion_hash_entry)
5432 <hash_name>: New member function.
5433 (completion_tracker::discard_completions): New callback to hash a
5434 completion_hash_entry, pass this to htab_create_alloc.
5435
a0e9b532
JT
54362016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5437
5438 * windows-nat.c (windows_make_so): Warn rather than stopping with
5439 an error if realpath() fails.
5440
06ca5dd4
KR
54412020-04-14 Kamil Rytarowski <n54@gmx.com>
5442
5443 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5444 (nbsd_nat_target::info_proc): Add do_status.
5445
194d088f
TV
54462020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5447 Tom de Vries <tdevries@suse.de>
5448
5449 PR symtab/25718
5450 * psympriv.h (struct partial_symtab::read_symtab)
5451 (struct partial_symtab::expand_psymtab)
5452 (struct partial_symtab::read_dependencies): Update comments.
5453 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5454 read_symtab for includer.
5455 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5456 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5457 (struct dwarf2_include_psymtab::m_readin): Remove.
5458 (struct dwarf2_include_psymtab::includer): New member function.
5459 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5460
c1a66c06
TV
54612020-04-14 Tom de Vries <tdevries@suse.de>
5462
5463 PR symtab/25720
5464 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5465 with NULL symbol_matcher and lookup_name.
5466 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5467 and lookup_name.
5468 * dwarf2/read.c (dw2_expand_symtabs_matching)
5469 (dw2_debug_names_expand_symtabs_matching): Same.
5470 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5471 Make lookup_name a pointer. Update comment.
5472 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5473 lookup_name being a pointer.
5474 * symfile.c (expand_symtabs_matching): Same.
5475 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5476 * linespec.c (iterate_over_all_matching_symtabs): Same.
5477
400b5eca
TT
54782020-04-13 Tom Tromey <tom@tromey.com>
5479
5480 * run-on-main-thread.c: Update include.
5481 * unittests/main-thread-selftests.c: Update include.
5482 * tui/tui-win.c: Update include.
5483 * tui/tui-io.c: Update include.
5484 * tui/tui-interp.c: Update include.
5485 * tui/tui-hooks.c: Update include.
5486 * top.h: Update include.
5487 * top.c: Update include.
5488 * ser-base.c: Update include.
5489 * remote.c: Update include.
5490 * remote-notif.c: Update include.
5491 * remote-fileio.c: Update include.
5492 * record-full.c: Update include.
5493 * record-btrace.c: Update include.
5494 * python/python.c: Update include.
5495 * posix-hdep.c: Update include.
5496 * mingw-hdep.c: Update include.
5497 * mi/mi-main.c: Update include.
5498 * mi/mi-interp.c: Update include.
5499 * main.c: Update include.
5500 * linux-nat.c: Update include.
5501 * interps.c: Update include.
5502 * infrun.c: Update include.
5503 * inf-loop.c: Update include.
5504 * event-top.c: Update include.
5505 * event-loop.c: Move to ../gdbsupport/.
5506 * event-loop.h: Move to ../gdbsupport/.
5507 * async-event.h: Update include.
5508 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5509
93b54c8e
TT
55102020-04-13 Tom Tromey <tom@tromey.com>
5511
5512 * tui/tui-win.c: Include async-event.h.
5513 * remote.c: Include async-event.h.
5514 * remote-notif.c: Include async-event.h.
5515 * record-full.c: Include async-event.h.
5516 * record-btrace.c: Include async-event.h.
5517 * infrun.c: Include async-event.h.
5518 * event-top.c: Include async-event.h.
5519 * event-loop.h: Move some declarations to async-event.h.
5520 * event-loop.c: Don't include ser-event.h or top.h. Move some
5521 code to async-event.c.
5522 * async-event.h: New file.
5523 * async-event.c: New file.
5524 * Makefile.in (COMMON_SFILES): Add async-event.c.
5525 (HFILES_NO_SRCDIR): Add async-event.h.
5526
c1cd3163
TT
55272020-04-13 Tom Tromey <tom@tromey.com>
5528
5529 * utils.c (flush_streams): New function.
5530 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5531
29f2bf4f
TT
55322020-04-13 Tom Tromey <tom@tromey.com>
5533
5534 * event-loop.c (handle_file_event): Use warning, not
5535 printf_unfiltered.
5536
98029d02
TT
55372020-04-13 Tom Tromey <tom@tromey.com>
5538
5539 * event-loop.c: Include <chrono>.
5540
06cc9596
TT
55412020-04-13 Tom Tromey <tom@tromey.com>
5542
5543 * gdb_select.h: Move to ../gdbsupport/.
5544 * event-loop.c: Update include path.
5545 * top.c: Update include path.
5546 * ser-base.c: Update include path.
5547 * ui-file.c: Update include path.
5548 * ser-tcp.c: Update include path.
5549 * guile/scm-ports.c: Update include path.
5550 * posix-hdep.c: Update include path.
5551 * ser-unix.c: Update include path.
5552 * gdb_usleep.c: Update include path.
5553 * mingw-hdep.c: Update include path.
5554 * inflow.c: Update include path.
5555 * infrun.c: Update include path.
5556 * event-top.c: Update include path.
5557
8ae8e197
TT
55582020-04-13 Tom Tromey <tom@tromey.com>
5559
5560 * configure: Rebuild.
5561 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5562
58cf28e8
TT
55632020-04-13 Tom Tromey <tom@tromey.com>
5564
5565 * event-loop.h (start_event_loop): Don't declare.
5566 * event-loop.c (start_event_loop): Move...
5567 * main.c (start_event_loop): ...here. Now static.
5568
b7f999ae
SDJ
55692020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5570
5571 * MAINTAINERS: Update my email address.
5572
1085dfd4
KR
55732020-04-12 Kamil Rytarowski <n54@gmx.com>
5574
5575 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5576 IP_ALL.
5577
49d1d1f5
KR
55782020-04-12 Kamil Rytarowski <n54@gmx.com>
5579
5580 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5581 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5582
b4848d2a
KR
55832020-04-12 Kamil Rytarowski <n54@gmx.com>
5584
5585 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5586 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5587
51c133d5
KR
55882020-04-12 Kamil Rytarowski <n54@gmx.com>
5589
5590 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5591
54b8cbd0
KR
55922020-04-11 Kamil Rytarowski <n54@gmx.com>
5593
5594 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5595 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5596 (nbsd_nat_target::info_proc): New functions.
5597 * nbsd-nat.c (kinfo_get_vmmap): New function.
5598 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5599 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5600 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5601 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5602 functions.
5603 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5604 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5605 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5606 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5607 (KINFO_VME_FLAG_GROWS_DOWN): New.
5608
cf83625d
AS
56092020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5610
5611 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5612 bit shift.
5613
0c4311ab
TT
56142020-04-10 Tom Tromey <tromey@adacore.com>
5615
5616 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5617
3e65b3e9
TT
56182020-04-10 Tom Tromey <tromey@adacore.com>
5619
5620 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5621 separate debug files.
5622
13302e95
HD
56232020-04-10 Hannes Domani <ssbssa@yahoo.de>
5624
5625 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5626 Move to...
5627 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5628 ... here.
5629 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5630 Check for STATUS_WX86_BREAKPOINT.
5631 (windows_nat_target::wait): Same.
5632
bdfc1e8a
TV
56332020-04-10 Tom de Vries <tdevries@suse.de>
5634
5635 PR cli/25808
5636 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5637
f4460aec
SM
56382020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5639
5640 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5641 (Write After Approval): Remove Tom de Vries.
5642
a25198bb
BE
56432020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5644
5645 revert partially:
5646 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5647
aac66a4c
SM
5648 * buildsym.c (record_line): Fix undefined behavior and preserve
5649 lines at eof.
a25198bb 5650
206c98a6
KR
56512020-04-09 Kamil Rytarowski <n54@gmx.com>
5652
5653 * auxv.h (svr4_auxv_parse): New.
5654 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5655 and generic_auxv_parse.
5656 (svr4_auxv_parse): Add.
5657 * obsd-tdep.c: Include "auxv.h".
5658 (obsd_auxv_parse): Remove.
5659 (obsd_init_abi): Remove comment.
5660 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5661 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5662 * nbsd-tdep.c: Include "auxv.h".
5663 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5664
71fbdbaf
TT
56652020-04-08 Tom Tromey <tromey@adacore.com>
5666
5667 * nat/windows-nat.h (last_wait_event): Don't declare.
5668 (wait_for_debug_event): Update comment.
5669 * nat/windows-nat.c (last_wait_event): Now static.
5670
2c1d95e8
TT
56712020-04-08 Tom Tromey <tromey@adacore.com>
5672
5673 * windows-nat.c (wait_for_debug_event): Move to
5674 nat/windows-nat.c.
5675 * nat/windows-nat.h (wait_for_debug_event): Declare.
5676 * nat/windows-nat.c (wait_for_debug_event): Move from
5677 windows-nat.c. No longer static.
5678
d2977bc4
TT
56792020-04-08 Tom Tromey <tromey@adacore.com>
5680
5681 * windows-nat.c (get_windows_debug_event): Use
5682 fetch_pending_stop.
5683 * nat/windows-nat.h (fetch_pending_stop): Declare.
5684 * nat/windows-nat.c (fetch_pending_stop): New function.
5685
e758e19c
TT
56862020-04-08 Tom Tromey <tromey@adacore.com>
5687
5688 * windows-nat.c (windows_continue): Use matching_pending_stop and
5689 continue_last_debug_event.
5690 * nat/windows-nat.h (matching_pending_stop)
5691 (continue_last_debug_event): Declare.
5692 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5693 (matching_pending_stop, continue_last_debug_event): New
5694 functions.
5695
8d30e395
TT
56962020-04-08 Tom Tromey <tromey@adacore.com>
5697
5698 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5699 (handle_exception_result): Move to nat/windows-nat.h.
5700 (DEBUG_EXCEPTION_SIMPLE): Remove.
5701 (windows_nat::handle_ms_vc_exception): New function.
5702 (handle_exception): Move to nat/windows-nat.c.
5703 (get_windows_debug_event): Update.
5704 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5705 nat/windows-nat.c.
5706 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5707 (handle_exception_result): Move from windows-nat.c.
5708 (handle_exception): Declare.
5709 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5710 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5711 windows-nat.c.
5712
29de418d
TT
57132020-04-08 Tom Tromey <tromey@adacore.com>
5714
5715 * windows-nat.c (exception_count, event_count): Remove.
5716 (handle_exception, get_windows_debug_event)
5717 (do_initial_windows_stuff): Update.
5718
a816ba18
TT
57192020-04-08 Tom Tromey <tromey@adacore.com>
5720
5721 * windows-nat.c (windows_nat::handle_load_dll)
5722 (windows_nat::handle_unload_dll): Rename. No longer static.
5723 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5724 Declare.
5725
a00caa12
TT
57262020-04-08 Tom Tromey <tromey@adacore.com>
5727
5728 * complaints.h (stop_whining): Declare at top-level.
5729 (complaint): Don't declare stop_whining.
5730
d41b524f
TT
57312020-04-08 Tom Tromey <tromey@adacore.com>
5732
5733 * windows-nat.c (windows_nat::handle_output_debug_string):
5734 Rename. No longer static.
5735 * nat/windows-nat.h (handle_output_debug_string): Declare.
5736
3c76026d
TT
57372020-04-08 Tom Tromey <tromey@adacore.com>
5738
5739 * windows-nat.c (current_process_handle, current_process_id)
5740 (main_thread_id, last_sig, current_event, last_wait_event)
5741 (current_windows_thread, desired_stop_thread_id, pending_stops)
5742 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5743 (display_selectors, fake_create_process)
5744 (get_windows_debug_event): Update.
5745 * nat/windows-nat.h (current_process_handle, current_process_id)
5746 (main_thread_id, last_sig, current_event, last_wait_event)
5747 (current_windows_thread, desired_stop_thread_id, pending_stops)
5748 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5749 * nat/windows-nat.c (current_process_handle, current_process_id)
5750 (main_thread_id, last_sig, current_event, last_wait_event)
5751 (current_windows_thread, desired_stop_thread_id, pending_stops)
5752 (siginfo_er): New globals. Move from windows-nat.c.
5753
9d8679cc
TT
57542020-04-08 Tom Tromey <tromey@adacore.com>
5755
5756 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5757 (handle_load_dll): Update.
5758 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5759
28688adf
TT
57602020-04-08 Tom Tromey <tromey@adacore.com>
5761
5762 * windows-nat.c (enum thread_disposition_type): Move to
5763 nat/windows-nat.h.
5764 (windows_nat::thread_rec): Rename from thread_rec. No longer
5765 static.
5766 (windows_add_thread, windows_nat_target::fetch_registers)
5767 (windows_nat_target::store_registers, handle_exception)
5768 (windows_nat_target::resume, get_windows_debug_event)
5769 (windows_nat_target::get_tib_address)
5770 (windows_nat_target::thread_name)
5771 (windows_nat_target::thread_alive): Update.
5772 * nat/windows-nat.h (enum thread_disposition_type): Move from
5773 windows-nat.c.
5774 (thread_rec): Declare.
5775
4834dad0
TT
57762020-04-08 Tom Tromey <tromey@adacore.com>
5777
5778 * windows-nat.c: Add "using namespace".
5779 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5780 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5781
65bafd5b
TT
57822020-04-08 Tom Tromey <tromey@adacore.com>
5783
5784 * nat/windows-nat.h (struct windows_thread_info): Declare
5785 destructor.
5786 * nat/windows-nat.c (~windows_thread_info): New.
5787
0a4afda3
TT
57882020-04-08 Tom Tromey <tromey@adacore.com>
5789
5790 PR gdb/22992
5791 * windows-nat.c (current_event): Update comment.
5792 (last_wait_event, desired_stop_thread_id): New globals.
5793 (struct pending_stop): New.
5794 (pending_stops): New global.
5795 (windows_nat_target) <stopped_by_sw_breakpoint>
5796 <supports_stopped_by_sw_breakpoint>: New methods.
5797 (windows_fetch_one_register): Add assertions. Adjust PC.
5798 (windows_continue): Handle pending stops. Suspend other threads
5799 when stepping. Use last_wait_event
5800 (wait_for_debug_event): New function.
5801 (get_windows_debug_event): Use wait_for_debug_event. Handle
5802 pending stops. Queue spurious stops.
5803 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5804 (windows_nat_target::kill): Use wait_for_debug_event.
5805 * nat/windows-nat.h (struct windows_thread_info)
5806 <stopped_at_software_breakpoint>: New field.
5807 * nat/windows-nat.c (windows_thread_info::resume): Clear
5808 stopped_at_software_breakpoint.
5809
8e61ebec
TT
58102020-04-08 Tom Tromey <tromey@adacore.com>
5811
5812 * windows-nat.c (enum thread_disposition_type): New.
5813 (thread_rec): Replace "get_context" parameter with "disposition";
5814 change type.
5815 (windows_add_thread, windows_nat_target::fetch_registers)
5816 (windows_nat_target::store_registers, handle_exception)
5817 (windows_nat_target::resume, get_windows_debug_event)
5818 (windows_nat_target::get_tib_address)
5819 (windows_nat_target::thread_name)
5820 (windows_nat_target::thread_alive): Update.
5821
98a03287
TT
58222020-04-08 Tom Tromey <tromey@adacore.com>
5823
5824 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5825 (windows_continue): Use windows_continue::resume.
5826 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5827 resume>: Declare new methods.
5828 * nat/windows-nat.c: New file.
5829 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5830
7c7411bc
TT
58312020-04-08 Tom Tromey <tromey@adacore.com>
5832
5833 * windows-nat.c (windows_add_thread, windows_delete_thread)
5834 (windows_nat_target::fetch_registers)
5835 (windows_nat_target::store_registers, fake_create_process)
5836 (windows_nat_target::resume, windows_nat_target::resume)
5837 (get_windows_debug_event, windows_nat_target::wait)
5838 (windows_nat_target::pid_to_str)
5839 (windows_nat_target::get_tib_address)
5840 (windows_nat_target::get_ada_task_ptid)
5841 (windows_nat_target::thread_name)
5842 (windows_nat_target::thread_alive): Use lwp, not tid.
5843
2950fdf7
TT
58442020-04-08 Tom Tromey <tromey@adacore.com>
5845
5846 * windows-nat.c (handle_exception)
5847 (windows_nat_target::thread_name): Update.
5848 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5849 <name>: Now unique_xmalloc_ptr.
5850
62fe396b
TT
58512020-04-08 Tom Tromey <tromey@adacore.com>
5852
5853 * windows-nat.c (thread_rec)
5854 (windows_nat_target::fetch_registers): Update.
5855 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5856 Update comment.
5857 <debug_registers_changed, reload_context>: Now bool.
5858
e9534bd2
TT
58592020-04-08 Tom Tromey <tromey@adacore.com>
5860
5861 * windows-nat.c (windows_add_thread): Use new.
5862 (windows_init_thread_list, windows_delete_thread): Use delete.
5863 (get_windows_debug_event): Update.
5864 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5865 destructor, and initializers.
5866
ae1f8880
TT
58672020-04-08 Tom Tromey <tromey@adacore.com>
5868
5869 * windows-nat.c (struct windows_thread_info): Remove.
5870 * nat/windows-nat.h: New file.
5871
55a1e039
TT
58722020-04-08 Tom Tromey <tromey@adacore.com>
5873
5874 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5875 (thread_rec, windows_add_thread, windows_delete_thread)
5876 (windows_continue): Update.
5877
93366324
TT
58782020-04-08 Tom Tromey <tromey@adacore.com>
5879
5880 * windows-nat.c (struct windows_thread_info): Remove typedef.
5881 (thread_head): Remove.
5882 (thread_list): New global.
5883 (thread_rec, windows_add_thread, windows_init_thread_list)
5884 (windows_delete_thread, windows_continue): Update.
5885
0f2265e2
SM
58862020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5887
5888 * windows-tdep.h (windows_init_abi): Add comment.
5889 (cygwin_init_abi): New declaration.
5890 * windows-tdep.c: Split signal enumeration in two, one for
5891 Windows and one for Cygwin.
5892 (windows_gdb_signal_to_target): Only deal with signal of the
5893 Windows OS ABI.
5894 (cygwin_gdb_signal_to_target): New function.
5895 (windows_init_abi): Rename to windows_init_abi_common, don't set
5896 gdb_signal_to_target gdbarch method. Add new new function with
5897 this name.
5898 (cygwin_init_abi): New function.
5899 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5900 comment. Don't call windows_init_abi.
5901 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5902 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5903 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5904 i386_windows_init_abi_common, don't call windows_init_abi. Add
5905 a new function of this name.
5906 (i386_cygwin_init_abi): New function.
5907 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5908 OS ABI Cygwin.
5909
3810f182
SM
59102020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5911
5912 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5913 parameter.c.
5914 (dwarf2_read_gdb_index): Update.
5915
063f8e80
KR
59162020-04-07 Kamil Rytarowski <n54@gmx.com>
5917
5918 * nbsd-tdep.c: Include "objfiles.h".
5919 (nbsd_skip_solib_resolver): New.
5920 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5921
85a9510c 59222020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5923
5924 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5925 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5926 with DW_LLE_base_addressx are being emitted in DWARFv5.
5927 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5928 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5929 unsigned integer.
5930
9fc3eaae 59312020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5932
5933 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5934 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5935 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5936 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5937 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5938 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5939 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5940
5941
41144253 59422020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5943
5944 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5945 (read_loclist_index): New function definition.
5946 (lookup_loclist_base): New function definition.
5947 (read_loclist_header): New function definition.
5948 (dwarf2_cu): Add loclist_base and loclist_header field.
5949 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5950 (read_full_die_1): Read the value of DW_AT_loclists_base.
5951 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5952 (read_attribute_value): Handle DW_FORM_loclistx.
5953 (skip_one_die): Handle DW_FORM_loclistx.
5954 (loclist_header): New structure declaration.
5955 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5956
9f4e76a4
SM
59572020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5958
5959 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5960 constructor. Remove `addr` parameter from other constructor and
5961 add `per_cu` parameter.
5962 * dwarf2/read.c (create_partial_symtab): Update.
5963
25c11aca
TV
59642020-04-07 Tom de Vries <tdevries@suse.de>
5965
5966 PR symtab/25796
5967 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5968 (partial_die_info::fixup): Inherit has_const_value.
5969
5707e24b
TV
59702020-04-07 Tom de Vries <tdevries@suse.de>
5971
5972 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5973 symbols without address.
5974
05f00e22
KR
59752020-04-06 Kamil Rytarowski <n54@gmx.com>
5976
5977 * nbsd-nat.h (struct thread_info): Add forward declaration.
5978 (nbsd_nat_target::thread_alive): Add.
5979 (nbsd_nat_target::thread_name): Likewise.
5980 (nbsd_nat_target::update_thread_list): Likewise.
5981 (update_thread_list::post_attach): Likewise.
5982 (post_attach::pid_to_str): Likewise.
5983 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5984 (nbsd_thread_lister): Add.
5985 (nbsd_nat_target::thread_alive): Likewise.
5986 (nbsd_nat_target::thread_name): Likewise.
5987 (nbsd_add_threads): Likewise.
5988 (update_thread_list::post_attach): Likewise.
5989 (nbsd_nat_target::update_thread_list): Likewise.
5990 (post_attach::pid_to_str): Likewise.
5991
6ee448cc
TT
59922020-04-06 Tom Tromey <tromey@adacore.com>
5993
5994 * ada-valprint.c (print_variant_part): Extract the variant field.
5995 (print_field_values): Use the field as the outer value when
5996 recursing.
5997
dea34e8c
TT
59982020-04-06 Tom Tromey <tromey@adacore.com>
5999
6000 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6001 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6002 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6003 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6004 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6005
93689ce9
TT
60062020-04-06 Tom Tromey <tromey@adacore.com>
6007
6008 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6009 TYPE_CODE_ERROR.
6010
79743962
KR
60112020-04-06 Kamil Rytarowski <n54@gmx.com>
6012
6013 * nbsd-tdep.c: Include "gdbarch.h".
6014 Define enum with NetBSD signal numbers.
6015 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6016 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6017 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6018 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6019 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6020 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6021 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6022 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6023 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6024 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6025 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6026 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6027
9e7c9a03
HD
60282020-04-03 Hannes Domani <ssbssa@yahoo.de>
6029
6030 PR gdb/25325
6031 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6032
d9e49b61
TT
60332020-04-03 Tom Tromey <tromey@adacore.com>
6034
6035 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6036 Read constant block.
6037
e0fc5c3f
SM
60382020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6039
6040 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6041 (gdb_bfd_get_full_section_contents): New declaration.
6042 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6043 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6044 gdb_bfd_get_full_section_contents.
6045
e2ff18a0
SM
60462020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6047
6048 * exec.c (build_section_table): Replace internal_error with
6049 gdb_assert.
6050 (section_table_xfer_memory_partial): Likewise.
6051 * mdebugread.c (parse_partial_symbols): Likewise.
6052 * psymtab.c (lookup_partial_symbol): Likewise.
6053 * utils.c (wrap_here): Likewise.
6054
0830d301
TT
60552020-04-02 Tom Tromey <tromey@adacore.com>
6056
6057 * f-lang.c (build_fortran_types): Use arch_type to initialize
6058 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6059
e7da7f8f
TT
60602020-04-02 Tom Tromey <tromey@adacore.com>
6061
6062 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6063 of attributes.
6064
c90d28ac
AB
60652020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6066 Bernd Edlinger <bernd.edlinger@hotmail.de>
6067 Tom Tromey <tromey@adacore.com>
6068
6069 * buildsym.c (buildsym_compunit::record_line): Remove
6070 deduplication code.
6071
1aa98955
TV
60722020-04-02 Tom de Vries <tdevries@suse.de>
6073
6074 PR ada/24671
6075 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6076
d3214198
TV
60772020-04-02 Tom de Vries <tdevries@suse.de>
6078
6079 * dwarf2/read.c (dwarf2_gdb_index_functions,
6080 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6081 NULL.
6082 * psymtab.c (psym_lookup_global_symbol_language): New function.
6083 (psym_functions): Init psym_lookup_global_symbol_language with
6084 psym_lookup_global_symbol_language.
6085 * symfile-debug.c (debug_sym_quick_functions): Init
6086 lookup_global_symbol_language with NULL.
6087 * symfile.c (set_initial_language): Remove fixme comment.
6088 * symfile.h (struct quick_symbol_functions): Add
6089 lookup_global_symbol_language.
6090 * symtab.c (find_quick_global_symbol_language): New function.
6091 (find_main_name): Use find_quick_global_symbol_language.
6092
2836752f
SM
60932020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6094
6095 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6096
64dc2d4b
BE
60972020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6098
6099 * buildsym.c (record_line): Fix undefined behavior and preserve
6100 lines at eof.
6101
bbe3dc41
BE
61022020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6103
6104 * buildsym.c (record_line): Fix the resizing condition.
6105
6b4a335b
TT
61062020-04-01 Tom Tromey <tom@tromey.com>
6107
6108 * value.h (value_literal_complex): Add comment.
6109 * valops.c (value_literal_complex): Refer to value.h.
6110
3638a098
TT
61112020-04-01 Tom Tromey <tom@tromey.com>
6112
6113 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6114 (scalar_type): New rule, from typebase.
6115 (typebase): Use scalar_type. Recognize complex types.
6116 (field_name): Handle FLOAT_KEYWORD.
6117 (ident_tokens): Add _Complex and __complex__.
6118
c34e8714
TT
61192020-04-01 Tom Tromey <tom@tromey.com>
6120
6121 PR exp/25299:
6122 * valarith.c (promotion_type, complex_binop): New functions.
6123 (scalar_binop): Handle complex numbers. Use promotion_type.
6124 (value_pos, value_neg, value_complement): Handle complex numbers.
6125
fa649bb7
TT
61262020-04-01 Tom Tromey <tom@tromey.com>
6127
6128 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6129 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6130 (parse_number): Handle complex numbers.
6131
981c08ce
TT
61322020-04-01 Tom Tromey <tom@tromey.com>
6133
6134 * c-valprint.c (c_decorations): Change complex suffix to "i".
6135
4c99290d
TT
61362020-04-01 Tom Tromey <tom@tromey.com>
6137
6138 * valprint.c (generic_value_print_complex): Use accessors.
6139 * value.h (value_real_part, value_imaginary_part): Declare.
6140 * valops.c (value_real_part, value_imaginary_part): New
6141 functions.
6142 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6143
5b930b45
TT
61442020-04-01 Tom Tromey <tom@tromey.com>
6145
6146 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6147 (read_range_type): Update.
6148 * mdebugread.c (basic_type): Update.
6149 * go-lang.c (build_go_types): Use init_complex_type.
6150 * gdbtypes.h (struct main_type) <complex_type>: New member.
6151 (init_complex_type): Update.
6152 (arch_complex_type): Don't declare.
6153 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6154 Make name if none given. Use alloc_type_copy. Look for cached
6155 complex type.
6156 (arch_complex_type): Remove.
6157 (gdbtypes_post_init): Use init_complex_type.
6158 * f-lang.c (build_fortran_types): Use init_complex_type.
6159 * dwarf2/read.c (read_base_type): Update.
6160 * d-lang.c (build_d_types): Use init_complex_type.
6161 * ctfread.c (read_base_type): Update.
6162
53cccef1
TBA
61632020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6164
6165 * infrun.c (stop_all_threads): Update assertion, plus when
6166 stopping threads, take into account that we might be trying
6167 to stop an all-stop target.
6168 (stop_waiting): Call 'stop_all_threads' if there exists a
6169 non-stop target.
6170
a0714d30
TBA
61712020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6172
6173 * target.h (exists_non_stop_target): New function declaration.
6174 * target.c (exists_non_stop_target): New function.
6175
60e22c1e
HD
61762020-04-01 Hannes Domani <ssbssa@yahoo.de>
6177
6178 PR gdb/24789
6179 * eval.c (is_integral_or_integral_reference): New function.
6180 (evaluate_subexp_standard): Allow integer references in
6181 pointer arithmetic.
6182
e139a727
TBA
61832020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6184
6185 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6186 check for no ptid in the stop reply when the target is non-stop.
6187
e0802d59
TT
61882020-04-01 Tom Tromey <tromey@adacore.com>
6189
6190 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6191 "name" parameter to rvalue reference. Initialize m_name_holder.
6192 <lookup_name_info>: New overloads.
6193 <name>: Return gdb::string_view.
6194 <c_str>: New method.
6195 <make_ignore_params>: Update.
6196 <search_name_hash>: Update.
6197 <language_lookup_name>: Return const char *.
6198 <m_name>: Change type.
6199 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6200 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6201 (lookup_name_info::match_any): Update.
6202 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6203 Update.
6204 * minsyms.c (linkage_name_str): Update.
6205 * language.c (default_symbol_name_matcher): Update.
6206 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6207 Update.
6208 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6209 (ada_lookup_name_info::ada_lookup_name_info): Update.
6210 (literal_symbol_name_matcher): Update.
6211
8c072cb6
TT
62122020-04-01 Tom Tromey <tromey@adacore.com>
6213
6214 * psymtab.c (psymtab_search_name): Remove function.
6215 (psym_lookup_symbol): Create search name and lookup name here.
6216 (lookup_partial_symbol): Remove "name" parameter; add
6217 lookup_name.
6218 (psym_expand_symtabs_for_function): Update.
6219
6f29a534
TT
62202020-03-31 Joel Jones <joelkevinjones@gmail.com>
6221
6222 PR tui/25597:
6223 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6224
af62665e
TT
62252020-03-31 Tom Tromey <tromey@adacore.com>
6226
6227 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6228 memcpy.
6229
d1a89da5
NC
62302020-03-30 Nelson Chu <nelson.chu@sifive.com>
6231
6232 * features/riscv/32bit-csr.xml: Regenerated.
6233 * features/riscv/64bit-csr.xml: Regenerated.
6234
d8af9068
TT
62352020-03-30 Tom Tromey <tromey@adacore.com>
6236
6237 * ada-valprint.c (print_variant_part): Update.
6238 * ada-lang.h (ada_which_variant_applies): Update.
6239 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6240 outer_valaddr parameters; replace with "outer" value parameter.
6241 (to_fixed_variant_branch_type): Update.
6242
227c0bf4
PFC
62432020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6244
6245 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6246 <list>. Remove inclusion of observable.h.
6247 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6248 (struct arch_lwp_info): New struct.
6249 (class ppc_linux_dreg_interface): New class.
6250 (struct ppc_linux_process_info): New struct.
6251 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6252 <low_new_clone, low_forget_process, low_prepare_to_resume>
6253 <copy_thread_dreg_state, mark_thread_stale>
6254 <mark_debug_registers_changed, register_hw_breakpoint>
6255 <clear_hw_breakpoint, register_wp, clear_wp>
6256 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6257 <num_memory_accesses, get_trigger_type>
6258 <create_watchpoint_request, hwdebug_point_cmp>
6259 <init_arch_lwp_info, get_arch_lwp_info>
6260 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6261 methods.
6262 <struct ptid_hash>: New inner struct.
6263 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6264 members.
6265 (saved_dabr_value, hwdebug_info, max_slots_number)
6266 (struct hw_break_tuple, struct thread_points, ppc_threads)
6267 (have_ptrace_hwdebug_interface)
6268 (hwdebug_find_thread_points_by_tid)
6269 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6270 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6271 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6272 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6273 use m_dreg_interface.
6274 (hwdebug_point_cmp): Change to...
6275 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6276 reference arguments instead of pointers.
6277 (ppc_linux_nat_target::ranged_break_num_registers): Use
6278 m_dreg_interface.
6279 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6280 m_dreg_interface. Call register_hw_breakpoint.
6281 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6282 m_dreg_interface. Call clear_hw_breakpoint.
6283 (get_trigger_type): Change to...
6284 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6285 comment.
6286 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6287 use m_dreg_interface. Call register_hw_breakpoint.
6288 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6289 use m_dreg_interface. Call clear_hw_breakpoint.
6290 (can_use_watchpoint_cond_accel): Change to...
6291 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6292 method. Update comment, use m_dreg_interface and
6293 m_process_info.
6294 (calculate_dvc): Change to...
6295 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6296 m_dreg_interface.
6297 (num_memory_accesses): Change to...
6298 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6299 (check_condition): Change to...
6300 (ppc_linux_nat_target::check_condition): ...this method.
6301 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6302 comment, use m_dreg_interface.
6303 (create_watchpoint_request): Change to...
6304 (ppc_linux_nat_target::create_watchpoint_request): ...this
6305 method. Use m_dreg_interface.
6306 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6307 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6308 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6309 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6310 (ppc_linux_nat_target::low_forget_process)
6311 (ppc_linux_nat_target::low_new_fork)
6312 (ppc_linux_nat_target::low_new_clone)
6313 (ppc_linux_nat_target::low_delete_thread)
6314 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6315 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6316 only call mark_thread_stale.
6317 (ppc_linux_thread_exit): Remove.
6318 (ppc_linux_nat_target::stopped_data_address): Change to...
6319 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6320 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6321 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6322 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6323 comment. Call low_stopped_data_address.
6324 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6325 m_dreg_interface.
6326 (ppc_linux_nat_target::masked_watch_num_registers): Use
6327 m_dreg_interface.
6328 (ppc_linux_nat_target::copy_thread_dreg_state)
6329 (ppc_linux_nat_target::mark_thread_stale)
6330 (ppc_linux_nat_target::mark_debug_registers_changed)
6331 (ppc_linux_nat_target::register_hw_breakpoint)
6332 (ppc_linux_nat_target::clear_hw_breakpoint)
6333 (ppc_linux_nat_target::register_wp)
6334 (ppc_linux_nat_target::clear_wp)
6335 (ppc_linux_nat_target::init_arch_lwp_info)
6336 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6337 (_initialize_ppc_linux_nat): Remove observer callback.
6338
4db10d8f
PFC
63392020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6340
6341 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6342 (ppc_linux_nat_target::auxv_parse)
6343 (ppc_linux_nat_target::read_description)
6344 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6345 Move up.
6346
1310c1b0
PFC
63472020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6348
6349 * linux-nat.h (low_new_clone): New method.
6350 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6351
69b037c3
SM
63522020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6353
6354 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6355 (dbx_expand_psymtab): ... this.
6356 (start_psymtab): Update.
6357 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6358 (mdebug_expand_psymtab): ... this.
6359 (parse_partial_symbols): Update.
6360 (new_psymtab): Update.
6361 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6362 (xcoff_expand_psymtab): ... this.
6363 (xcoff_start_psymtab): Update.
6364
48993951
SM
63652020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6366
6367 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6368 <expand_dependencies>: ... this.
6369 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6370 (partial_symtab::expand_dependencies): ... this.
6371 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6372 Update.
6373 (dwarf2_psymtab::expand_psymtab): Update.
6374 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6375 * mdebugread.c (psymtab_to_symtab_1): Update.
6376 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6377
3ad83046
SM
63782020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6379
6380 * psympriv.h (discard_psymtab): Remove.
6381 * dbxread.c (dbx_end_psymtab): Update.
6382 * xcoffread.c (xcoff_end_psymtab): Update.
6383
4d1b9ab6
TT
63842020-03-28 Tom Tromey <tom@tromey.com>
6385
6386 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6387 comment.
6388
f1749218
TT
63892020-03-28 Tom Tromey <tom@tromey.com>
6390
6391 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6392
ebea7626
HD
63932020-03-27 Hannes Domani <ssbssa@yahoo.de>
6394
6395 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6396
a879b4d5
JB
63972020-03-26 John Baldwin <jhb@FreeBSD.org>
6398
6399 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6400
0826b30a
TT
64012020-03-26 Tom Tromey <tom@tromey.com>
6402
6403 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6404 (mark_common_block_symbol_computed, read_tag_string_type)
6405 (attr_to_dynamic_prop, read_subrange_type): Update.
6406 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6407 to be methods on struct attribute.
6408 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6409 (read_call_site_scope, partial_die_info::read)
6410 (partial_die_info::read, lookup_die_type, follow_die_ref):
6411 Update.
6412 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6413 from dwarf2_get_ref_die_offset.
6414 (attribute::constant_value): New method, from
6415 dwarf2_get_attr_constant_value.
6416 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6417 Declare method.
6418 <constant_value>: New method.
6419
2b2558bf
TT
64202020-03-26 Tom Tromey <tom@tromey.com>
6421
6422 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6423 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6424 (dwarf_type_encoding_name): Move to stringify.c.
6425 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6426 * dwarf2/stringify.c: New file.
6427 * dwarf2/stringify.h: New file.
6428
eeb64781
TT
64292020-03-26 Tom Tromey <tom@tromey.com>
6430
6431 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6432 Rewrite.
6433
a39fdb41
TT
64342020-03-26 Tom Tromey <tom@tromey.com>
6435
6436 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6437 methods.
6438 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6439 (lookup_ranges_base): Likewise.
6440 (read_cutu_die_from_dwo, read_full_die_1): Update.
6441
436c571c
TT
64422020-03-26 Tom Tromey <tom@tromey.com>
6443
6444 * dwarf2/read.c (read_import_statement, read_file_scope)
6445 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6446 (read_lexical_block_scope, read_call_site_scope)
6447 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6448 (handle_struct_member_die, process_structure_scope)
6449 (update_enumeration_type_from_children)
6450 (process_enumeration_scope, read_array_type, read_common_block)
6451 (read_namespace, read_module, read_subroutine_type): Update.
6452 (sibling_die): Remove.
6453
052c8bb8
TT
64542020-03-26 Tom Tromey <tom@tromey.com>
6455
6456 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6457 (build_type_psymtabs_reader, read_structure_type)
6458 (read_enumeration_type, read_full_die_1): Update.
6459 (dwarf2_attr_no_follow): Move to die.h.
6460 * dwarf2/die.h (struct die_info) <attr>: New method.
6461
2b24b6e4
TT
64622020-03-26 Tom Tromey <tom@tromey.com>
6463
6464 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6465 <base_address>: Now an optional.
6466 (dwarf2_find_base_address, dwarf2_rnglists_process)
6467 (dwarf2_ranges_process, fill_in_loclist_baton)
6468 (dwarf2_symbol_mark_computed): Update.
6469
c2d50fd0
TT
64702020-03-26 Tom Tromey <tom@tromey.com>
6471
6472 * dwarf2/read.c (struct die_info): Move to die.h.
6473 * dwarf2/die.h: New file.
6474
0df7ad3a
TT
64752020-03-26 Tom Tromey <tom@tromey.com>
6476
6477 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6478 * dwarf2/read.c
6479 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6480 Move to line-header.c.
6481 (read_checked_initial_length_and_offset, read_formatted_entries):
6482 Likewise.
6483 (dwarf_decode_line_header): Split into two.
6484 * dwarf2/line-header.c
6485 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6486 Move from read.c.
6487 (read_checked_initial_length_and_offset, read_formatted_entries):
6488 Likewise.
6489 (dwarf_decode_line_header): New function, split from read.c.
6490
86c0bb4c
TT
64912020-03-26 Tom Tromey <tom@tromey.com>
6492
6493 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6494 Declare method.
6495 * dwarf2/read.c (read_attribute_value): Update.
6496 (dwarf2_per_objfile::read_line_string): Rename from
6497 read_indirect_line_string.
6498 (read_formatted_entries): Update.
6499
2ef46c2f
TT
65002020-03-26 Tom Tromey <tom@tromey.com>
6501
6502 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6503 variable.
6504
4f9c1eda
TT
65052020-03-26 Tom Tromey <tom@tromey.com>
6506
6507 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6508 const.
6509 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6510 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6511 parameter const.
6512
5a0e026f
TT
65132020-03-26 Tom Tromey <tom@tromey.com>
6514
6515 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6516 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6517 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6518 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6519
8844c11b
TT
65202020-03-26 Tom Tromey <tom@tromey.com>
6521
6522 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6523 file_names_size, file_full_name, file_file_name>: Use const.
6524 <file_name_at, file_names>: Add const overload.
6525 * dwarf2/line-header.c (line_header::file_file_name)
6526 (line_header::file_full_name): Update.
6527
c90ec28a
TT
65282020-03-26 Tom Tromey <tom@tromey.com>
6529
6530 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6531 (macro_start_file, consume_improper_spaces)
6532 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6533 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6534 (dwarf_decode_macros): Move to macro.c.
6535 * dwarf2/macro.c: New file.
6536 * dwarf2/macro.h: New file.
6537 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6538
4f44ae6c
TT
65392020-03-26 Tom Tromey <tom@tromey.com>
6540
6541 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6542 method.
6543 * dwarf2/section.c: New method. From
6544 read_indirect_string_at_offset_from.
6545 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6546 (read_indirect_string_at_offset_from): Move to section.c.
6547 (read_indirect_string_at_offset): Rewrite.
6548 (read_indirect_line_string_at_offset): Remove.
6549 (read_indirect_string, read_indirect_line_string)
6550 (dwarf_decode_macro_bytes): Update.
6551
a0194fa8
TT
65522020-03-26 Tom Tromey <tom@tromey.com>
6553
6554 * dwarf2/section.h (struct dwarf2_section_info)
6555 <overload_complaint>: Declare.
6556 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6557 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6558 Rename from dwarf2_section_buffer_overflow_complaint.
6559 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6560 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6561
3d27bbdb
TT
65622020-03-26 Tom Tromey <tom@tromey.com>
6563
6564 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6565 Declare.
6566 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6567 Move from read.c.
6568 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6569 to section.c.
6570
9eac9650
TT
65712020-03-26 Tom Tromey <tom@tromey.com>
6572
6573 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6574
bf80d710
TT
65752020-03-26 Tom Tromey <tom@tromey.com>
6576
6577 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6578 "builder".
6579 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6580 parameter.
6581 (dwarf_decode_macros): Update.
6582
0314b390
TT
65832020-03-26 Tom Tromey <tom@tromey.com>
6584
6585 * dwarf2/read.c (read_attribute_value): Update.
6586 (read_indirect_string_from_dwz): Move to dwz.c; change into
6587 method.
6588 (dwarf_decode_macro_bytes): Update.
6589 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6590 * dwarf2/dwz.c: New file.
6591 * Makefile.in (COMMON_SFILES): Add dwz.c.
6592
9fda78b6
TT
65932020-03-26 Tom Tromey <tom@tromey.com>
6594
6595 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6596 * dwarf2/read.c: Add include.
6597 * dwarf2/index-write.c: Add include.
6598 * dwarf2/index-cache.c: Add include.
6599 * dwarf2/dwz.h: New file.
6600
33aa3c10
TT
66012020-03-25 Tom Tromey <tom@tromey.com>
6602
6603 * compile/compile-object-load.c (get_out_value_type): Mention
6604 correct symbol name in error message.
6605
d503b685
HD
66062020-03-25 Hannes Domani <ssbssa@yahoo.de>
6607
6608 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6609
7b1eff95
TV
66102020-03-25 Tom de Vries <tdevries@suse.de>
6611
6612 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6613 * symmisc.c (dump_symtab_1): Print user and includes fields.
6614 (maintenance_info_symtabs): Same.
6615
dd895392
AB
66162020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6617
6618 PR gdb/25534
6619 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6620 (riscv_regcache_cooked_write): New function.
6621 (riscv_push_dummy_call): Use new function.
6622 (riscv_return_value): Likewise.
6623
5ab2fbf1
SM
66242020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6625
6626 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6627 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6628 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6629 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6630 * infrun.c (follow_fork): Likewise.
6631 (follow_fork_inferior): Likewise.
6632 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6633 * linux-nat.h (class linux_nat_target): Likewise.
6634 * remote.c (class remote_target) <follow_fork>: Likewise.
6635 (remote_target::follow_fork): Likewise.
6636 * target-delegates.c: Re-generate.
6637 * target.c (default_follow_fork): Likewise.
6638 (target_follow_fork): Likewise.
6639 * target.h (struct target_ops) <follow_fork>: Likewise.
6640 (target_follow_fork): Likewise.
6641
a64fafb5
TV
66422020-03-24 Tom de Vries <tdevries@suse.de>
6643
6644 * psymtab.c (maintenance_info_psymtabs): Print user field.
6645
fe26d3a3
TT
66462020-03-20 Tom Tromey <tromey@adacore.com>
6647
6648 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6649 const.
6650 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6651 const.
6652
c884cc46
SM
66532020-03-20 Simon Marchi <simon.marchi@efficios.com>
6654
6655 * ptrace.m4: Don't check for ptrace declaration.
6656 * config.in: Re-generate.
6657 * configure: Re-generate.
6658 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6659 not defined.
6660
1ff700c2
KR
66612020-03-20 Kamil Rytarowski <n54@gmx.com>
6662
6663 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6664 `PTRACE_TYPE_RET'.
6665 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6666 * sparc-nat.c (gdb_ptrace): Likewise.
6667 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6668
f7d4f0b1
TT
66692020-03-20 Tom Tromey <tromey@adacore.com>
6670
6671 * c-exp.y (lex_one_token): Fix assert.
6672
f67210ff
TT
66732020-03-20 Tom Tromey <tromey@adacore.com>
6674
6675 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6676 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6677 strncpy call.
6678
1773be9e
TT
66792020-03-20 Tom Tromey <tromey@adacore.com>
6680
6681 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6682
70304be9
TT
66832020-03-20 Tom Tromey <tromey@adacore.com>
6684
6685 * ada-valprint.c (print_variant_part): Remove parameters; switch
6686 to value-based API.
6687 (print_field_values): Likewise.
6688 (ada_val_print_struct_union): Likewise.
6689 (ada_value_print_1): Update.
6690
9faa006d
KR
66912020-03-20 Kamil Rytarowski <n54@gmx.com>
6692
6693 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6694 nbsd_nat_target instead of inf_ptrace_target.
6695 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6696 nbsd_nat_target.
6697
4a90f062
KR
66982020-03-20 Kamil Rytarowski <n54@gmx.com>
6699
6700 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6701 it to the ptrace call.
6702 * (store_registers): Likewise.
6703
67042020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6705
6706 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6707 it to the ptrace call.
6708 * (store_registers): Likewise.
6709
2d07da27
LM
67102020-03-19 Luis Machado <luis.machado@linaro.org>
6711
6712 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6713 valid, fetch vg value from ptrace.
6714
f09db380
KR
67152020-03-19 Kamil Rytarowski <n54@gmx.com>
6716 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6717 * inf-ptrace.c: Likewise.
6718 * (gdb_ptrace): Add.
6719 * (inf_ptrace_target::resume): Update.
6720 * (inf_ptrace_target::xfer_partial): Likewise.
6721 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6722 * (inf_ptrace_peek_poke): Update.
6723
fcc7376e
KR
67242020-03-19 Kamil Rytarowski <n54@gmx.com>
6725
6726 * x86-bsd-nat.c (gdb_ptrace): New.
6727 * (x86bsd_dr_set): Add new argument `ptid'.
6728 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6729 x86bsd_dr_set_addr): Update.
6730
cada5fc9
AB
67312020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6732
6733 * remote.c (remote_target::process_stop_reply): Handle events for
6734 all threads differently.
6735
19a2740f
AB
67362020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6737
6738 * completer.c (completion_tracker::remove_completion): Define new
6739 function.
6740 * completer.h (completion_tracker::remove_completion): Declare new
6741 function.
6742 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6743 when adding a C++ function symbol.
6744
724fd9ba
AB
67452020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6746
6747 * completer.c (completion_tracker::completion_hash_entry): Define
6748 new class.
6749 (advance_to_filename_complete_word_point): Call
6750 recompute_lowest_common_denominator.
6751 (completion_tracker::completion_tracker): Call discard_completions
6752 to setup the hash table.
6753 (completion_tracker::discard_completions): Allow for being called
6754 from the constructor, pass new equal function, and element deleter
6755 when constructing the hash table. Initialise new class member
6756 variables.
6757 (completion_tracker::maybe_add_completion): Remove use of
6758 m_entries_vec, and store more information into m_entries_hash.
6759 (completion_tracker::recompute_lcd_visitor): New function, most
6760 content taken from...
6761 (completion_tracker::recompute_lowest_common_denominator):
6762 ...here, this now just visits each item in the hash calling the
6763 above visitor.
6764 (completion_tracker::build_completion_result): Remove use of
6765 m_entries_vec, call recompute_lowest_common_denominator.
6766 * completer.h (completion_tracker::have_completions): Remove use
6767 of m_entries_vec.
6768 (completion_tracker::completion_hash_entry): Declare new class.
6769 (completion_tracker::recompute_lowest_common_denominator): Change
6770 function signature.
6771 (completion_tracker::recompute_lcd_visitor): Declare new function.
6772 (completion_tracker::m_entries_vec): Delete.
6773 (completion_tracker::m_entries_hash): Initialize to NULL.
6774 (completion_tracker::m_lowest_common_denominator_valid): New
6775 member variable.
6776 (completion_tracker::m_lowest_common_denominator_max_length): New
6777 member variable.
6778
5a82b8a1
KR
67792020-03-17 Kamil Rytarowski <n54@gmx.com>
6780
6781 * regformats/regdef.h: Put reg in gdb namespace.
6782
fb516a69
KR
67832020-03-17 Kamil Rytarowski <n54@gmx.com>
6784
6785 * i386-bsd-nat.c (gdb_ptrace): New.
6786 * (i386bsd_fetch_inferior_registers,
6787 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6788 * (i386bsd_fetch_inferior_registers,
6789 i386bsd_store_inferior_registers) Use gdb_ptrace.
6790
1c0aa1fb
KR
67912020-03-17 Kamil Rytarowski <n54@gmx.com>
6792
6793 * amd64-bsd-nat.c (gdb_ptrace): New.
6794 * (amd64bsd_fetch_inferior_registers,
6795 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6796 * (amd64bsd_fetch_inferior_registers,
6797 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6798
5ccd2fb7
KR
67992020-03-17 Kamil Rytarowski <n54@gmx.com>
6800
6801 * user-regs.c (user_reg::read): Rename to...
6802 (user_reg::xread): ...this.
6803 * (append_user_reg): Rename argument `read' to `xread'.
6804 * (user_reg_add_builtin): Likewise.
6805 * (user_reg_add): Likewise.
6806 * (value_of_user_reg): Likewise.
6807
2108a63a
KR
68082020-03-17 Kamil Rytarowski <n54@gmx.com>
6809
6810 * sparc-nat.c (gdb_ptrace): New.
6811 * sparc-nat.c (sparc_fetch_inferior_registers)
6812 (sparc_store_inferior_registers) Remove obsolete comment.
6813 * sparc-nat.c (sparc_fetch_inferior_registers)
6814 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6815 * sparc-nat.c (sparc_fetch_inferior_registers)
6816 (sparc_store_inferior_registers) Use gdb_ptrace.
6817
a225c9a8
KR
68182020-03-17 Kamil Rytarowski <n54@gmx.com>
6819
6820 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6821 it to the ptrace call.
6822 * sh-nbsd-nat.c (store_registers): Likewise.
6823
98097623
KR
68242020-03-17 Kamil Rytarowski <n54@gmx.com>
6825
6826 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6827 nbsd_nat_target instead of inf_ptrace_target.
6828 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6829 nbsd_nat_target.
6830
9e38d619
KR
68312020-03-17 Kamil Rytarowski <n54@gmx.com>
6832
6833 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6834
a2ecbe9f
KR
68352020-03-17 Kamil Rytarowski <n54@gmx.com>
6836
6837 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6838 <sys/sysctl.h>.
6839 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6840
58990295
TV
68412020-03-17 Tom de Vries <tdevries@suse.de>
6842
6843 PR gdb/23710
6844 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6845 fields.
6846 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6847 fields.
6848 (process_imported_unit_die): Skip import of c++ CUs.
6849
771dd3a8
TT
68502020-03-16 Tom Tromey <tom@tromey.com>
6851
6852 * p-valprint.c (pascal_object_print_value): Initialize
6853 base_value.
6854
817a7585
AK
68552020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6856 Shahab Vahedi <shahab@synopsys.com>
6857
6858 * Makefile.in: Add arch/arc.o
6859 * configure.tgt: Likewise.
6860 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6861 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6862 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6863 * arc-tdep.h (arc_read_description): Add proto type.
6864 * arch/arc.c: New file.
6865 * arch/arc.h: Likewise.
6866 * features/Makefile: Replace old target descriptions with new.
6867 * features/arc-arcompact.c: Remove.
6868 * features/arc-arcompact.xml: Likewise.
6869 * features/arc-v2.c: Likewise
6870 * features/arc-v2.xml: Likewise
6871 * features/arc/aux-arcompact.xml: New file.
6872 * features/arc/aux-v2.xml: Likewise.
6873 * features/arc/core-arcompact.xml: Likewise.
6874 * features/arc/core-v2.xml: Likewise.
6875 * features/arc/aux-arcompact.c: Generate.
6876 * features/arc/aux-v2.c: Likewise.
6877 * features/arc/core-arcompact.c: Likewise.
6878 * features/arc/core-v2.c: Likewise.
6879 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6880
67430cd0
TT
68812020-03-16 Tom Tromey <tromey@adacore.com>
6882
6883 PR gdb/25663:
6884 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6885 putting value into bcache.
6886
30efb6c7
SM
68872020-03-16 Simon Marchi <simon.marchi@efficios.com>
6888
6889 PR gdb/21500
6890 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6891 to...
6892 (amd64_windows_init_abi_common): ... this. Don't set size of
6893 long type.
6894 (amd64_windows_init_abi): New function.
6895 (amd64_cygwin_init_abi): New function.
6896 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6897 the Cygwin OS ABI.
6898 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6899 comment.
6900
8db52437
SM
69012020-03-16 Simon Marchi <simon.marchi@efficios.com>
6902
6903 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6904 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6905 (pe_import_directory_entry): New struct type.
6906 (is_linked_with_cygwin_dll): New function.
6907 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6908 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6909 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6910
5982a56a
SM
69112020-03-16 Simon Marchi <simon.marchi@efficios.com>
6912
6913 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6914 i386_cygwin_core_osabi_sniffer.
6915
7a1998df
SM
69162020-03-16 Simon Marchi <simon.marchi@efficios.com>
6917
6918 * i386-cygwin-tdep.c: Rename to...
6919 * i386-windows-tdep.c: ... this.
6920 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6921 i386-windows-tdep.c.
6922 * configure.tgt: Likewise.
6923
053205cc
SM
69242020-03-16 Simon Marchi <simon.marchi@efficios.com>
6925
6926 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6927 * osabi.c (gdb_osabi_names): Add "Windows".
6928 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6929 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6930 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6931 i386_cygwin_osabi_sniffer.
6932 (_initialize_i386_cygwin_tdep): Register OS ABI
6933 GDB_OSABI_WINDOWS for i386.
6934 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6935 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6936 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6937 for x86-64.
6938 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6939 when the target matches '*-*-mingw*'.
6940
fe4b2ee6
SM
69412020-03-16 Simon Marchi <simon.marchi@efficios.com>
6942
6943 * defs.h (enum gdb_osabi): Move to...
6944 * osabi.h (enum gdb_osabi): ... here.
6945 * gdbarch.sh: Include osabi.h in gdbarch.h.
6946 * gdbarch.h: Re-generate.
6947
cb9b645d
SM
69482020-03-16 Simon Marchi <simon.marchi@efficios.com>
6949
6950 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6951 function.
6952 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6953
3293bbaf
TT
69542020-03-14 Tom Tromey <tom@tromey.com>
6955
6956 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6957 for C++.
6958 (c_type_print_modifier): Likewise. Add "language" parameter.
6959 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6960 (c_type_print_base_1): Update.
6961 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6962 constants.
6963 * type-stack.c (type_stack::insert): Handle tp_atomic and
6964 tp_restrict.
6965 (type_stack::follow_type_instance_flags): Likewise.
6966 (type_stack::follow_types): Likewise. Merge type-following code.
6967 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6968 (space_identifier, cv_with_space_id)
6969 (const_or_volatile_or_space_identifier_noopt)
6970 (const_or_volatile_or_space_identifier): Remove.
6971 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6972 rules.
6973 (ptr_operator, typebase): Update.
6974 (enum token_flag) <FLAG_C>: New constant.
6975 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6976 "_Atomic".
6977 (lex_one_token): Handle FLAG_C.
6978
154151a6
KR
69792020-03-14 Kamil Rytarowski <n54@gmx.com>
6980
6981 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6982 it to the ptrace call.
6983 * m68k-bsd-nat.c (store_registers): Likewise.
6984
bc107784
KR
69852020-03-14 Kamil Rytarowski <n54@gmx.com>
6986
6987 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6988 gdb_byte *.
6989 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6990 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6991 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6992
01a80117
KR
69932020-03-14 Kamil Rytarowski <n54@gmx.com>
6994
6995 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6996 nbsd_nat_target instead of inf_ptrace_target.
6997 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6998 nbsd_nat_target.
6999
f90280ca
KR
70002020-03-14 Kamil Rytarowski <n54@gmx.com>
7001
7002 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7003 register_t.
7004
6def66f1
KR
70052020-03-14 Kamil Rytarowski <n54@gmx.com>
7006
7007 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7008 it to the ptrace call.
7009 * alpha-bsd-nat.c (store_registers): Likewise.
7010
66eaca97
KR
70112020-03-14 Kamil Rytarowski <n54@gmx.com>
7012
7013 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7014 includes.
7015 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7016 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7017 fill_fpregset): Likewise.
7018
4fed520b
KR
70192020-03-14 Kamil Rytarowski <n54@gmx.com>
7020
7021 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7022 nbsd_nat_target instead of inf_ptrace_target.
7023 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7024 nbsd_nat_target.
7025
2190cf06
KR
70262020-03-14 Kamil Rytarowski <n54@gmx.com>
7027
7028 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7029 register_t.
7030
75c56d3d
KR
70312020-03-14 Kamil Rytarowski <n54@gmx.com>
7032
7033 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7034 it to the ptrace call.
7035 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7036 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7037 * arm-nbsd-nat.c (store_register): Likewise.
7038 * arm-nbsd-nat.c (store_regs): Likewise.
7039 * arm-nbsd-nat.c (store_fp_register): Likewise.
7040 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7041
6018d381
KR
70422020-03-14 Kamil Rytarowski <n54@gmx.com>
7043
7044 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7045 nbsd_nat_target instead of inf_ptrace_target.
7046 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7047 nbsd_nat_target.
7048
013f99f0
KR
70492020-03-14 Kamil Rytarowski <n54@gmx.com>
7050
7051 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7052 it to the ptrace call.
7053 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7054
12753073
KR
70552020-03-14 Kamil Rytarowski <n54@gmx.com>
7056
6227b330
KR
7057 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7058 it to the ptrace call.
7059 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7060
70612020-03-14 Kamil Rytarowski <n54@gmx.com>
7062
7063 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7064 gdb_byte *.
12753073
KR
7065 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7066
d5be5fa4
KR
70672020-03-14 Kamil Rytarowski <n54@gmx.com>
7068
7069 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7070 instead of inf_ptrace_target.
7071 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7072 nbsd_nat_target.
7073
8110f842
KR
70742020-03-14 Kamil Rytarowski <n54@gmx.com>
7075
7076 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7077 register_t.
7078
52feded7
KR
70792020-03-14 Kamil Rytarowski <n54@gmx.com>
7080
7081 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7082 register_t.
7083
25567eee
KR
70842020-03-14 Kamil Rytarowski <n54@gmx.com>
7085
7086 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7087 register_t.
7088
426a9c18
TT
70892020-03-13 Tom Tromey <tom@tromey.com>
7090
7091 * value.h (val_print): Don't declare.
7092 * valprint.h (val_print_array_elements)
7093 (val_print_scalar_formatted, generic_val_print): Don't declare.
7094 * valprint.c (generic_val_print_array): Take a struct value.
7095 (generic_val_print_ptr, generic_val_print_memberptr)
7096 (generic_val_print_bool, generic_val_print_int)
7097 (generic_val_print_char, generic_val_print_complex)
7098 (generic_val_print): Remove.
7099 (generic_value_print): Update.
7100 (do_val_print): Remove unused parameters. Don't call
7101 la_val_print.
7102 (val_print): Remove.
7103 (common_val_print): Update. Don't call value_check_printable.
7104 (val_print_scalar_formatted, val_print_array_elements): Remove.
7105 * rust-lang.c (rust_val_print): Remove.
7106 (rust_language_defn): Update.
7107 * p-valprint.c (pascal_val_print): Remove.
7108 (pascal_value_print_inner): Update.
7109 (pascal_object_print_val_fields, pascal_object_print_val):
7110 Remove.
7111 (pascal_object_print_static_field): Update.
7112 * p-lang.h (pascal_val_print): Don't declare.
7113 * p-lang.c (pascal_language_defn): Update.
7114 * opencl-lang.c (opencl_language_defn): Update.
7115 * objc-lang.c (objc_language_defn): Update.
7116 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7117 * m2-lang.h (m2_val_print): Don't declare.
7118 * m2-lang.c (m2_language_defn): Update.
7119 * language.h (struct language_defn) <la_val_print>: Remove.
7120 * language.c (unk_lang_value_print_inner): Rename. Change
7121 argument types.
7122 (unknown_language_defn, auto_language_defn): Update.
7123 * go-valprint.c (go_val_print): Remove.
7124 * go-lang.h (go_val_print): Don't declare.
7125 * go-lang.c (go_language_defn): Update.
7126 * f-valprint.c (f_val_print): Remove.
7127 * f-lang.h (f_value_print): Don't declare.
7128 * f-lang.c (f_language_defn): Update.
7129 * d-valprint.c (d_val_print): Remove.
7130 * d-lang.h (d_value_print): Don't declare.
7131 * d-lang.c (d_language_defn): Update.
7132 * cp-valprint.c (cp_print_value_fields)
7133 (cp_print_value_fields_rtti, cp_print_value): Remove.
7134 (cp_print_static_field): Update.
7135 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7136 (c_val_print_struct, c_val_print_union, c_val_print_int)
7137 (c_val_print_memberptr, c_val_print): Remove.
7138 * c-lang.h (c_val_print_array, cp_print_value_fields)
7139 (cp_print_value_fields_rtti): Don't declare.
7140 * c-lang.c (c_language_defn, cplus_language_defn)
7141 (asm_language_defn, minimal_language_defn): Update.
7142 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7143 (ada_val_print_enum): Take a struct value.
7144 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7145 (ada_val_print): Remove.
7146 (ada_value_print_1): Update.
7147 (printable_val_type): Remove.
7148 * ada-lang.h (ada_val_print): Don't declare.
7149 * ada-lang.c (ada_language_defn): Update.
7150
42331a1e
TT
71512020-03-13 Tom Tromey <tom@tromey.com>
7152
7153 * valprint.c (do_val_print): Update.
7154 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7155 a struct value.
7156 (value_to_value_object_no_release): Declare.
7157 * python/py-value.c (value_to_value_object_no_release): New
7158 function.
7159 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7160 struct value.
7161 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7162 function.
7163 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7164 a struct value.
7165 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7166 Declare.
7167 (gdbscm_apply_val_pretty_printer): Take a struct value.
7168 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7169 value.
7170 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7171 value.
7172 * extension-priv.h (struct extension_language_ops)
7173 <apply_val_pretty_printer>: Take a struct value.
7174 * cp-valprint.c (cp_print_value): Create a struct value.
7175 (cp_print_value): Update.
7176
3a916a97
TT
71772020-03-13 Tom Tromey <tom@tromey.com>
7178
7179 * ada-valprint.c (print_field_values): Call common_val_print.
7180
b59eac37
TT
71812020-03-13 Tom Tromey <tom@tromey.com>
7182
7183 * ada-valprint.c (val_print_packed_array_elements): Remove
7184 bitoffset and val parameters. Call common_val_print.
7185 (ada_val_print_string): Remove offset, address, and original_value
7186 parameters.
7187 (ada_val_print_array): Update.
7188 (ada_value_print_array): New function.
7189 (ada_value_print_1): Call it.
7190
03371129
TT
71912020-03-13 Tom Tromey <tom@tromey.com>
7192
7193 * ada-valprint.c (ada_value_print): Use common_val_print.
7194
2e088f8b
TT
71952020-03-13 Tom Tromey <tom@tromey.com>
7196
7197 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7198
39ef85a8
TT
71992020-03-13 Tom Tromey <tom@tromey.com>
7200
7201 * ada-valprint.c (ada_value_print_num): New function.
7202 (ada_value_print_1): Use it.
7203
b9fa6e07
TT
72042020-03-13 Tom Tromey <tom@tromey.com>
7205
7206 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7207
416595d6
TT
72082020-03-13 Tom Tromey <tom@tromey.com>
7209
7210 * ada-valprint.c (ada_value_print_ptr): New function.
7211 (ada_value_print_1): Use it.
7212
5b5e15ec
TT
72132020-03-13 Tom Tromey <tom@tromey.com>
7214
7215 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7216 call common_val_print.
7217 (ada_val_print_1): Update.
7218 (ada_value_print_1): New function.
7219 (ada_value_print_inner): Rewrite.
7220
fbf54e75
TT
72212020-03-13 Tom Tromey <tom@tromey.com>
7222
7223 * cp-valprint.c (cp_print_value_fields): Update.
7224 (cp_print_value): New function.
7225
64b653ca
TT
72262020-03-13 Tom Tromey <tom@tromey.com>
7227
7228 * m2-valprint.c (m2_value_print_inner): Use
7229 cp_print_value_fields.
7230 * cp-valprint.c (cp_print_value_fields): New function.
7231 * c-valprint.c (c_value_print_struct): New function.
7232 (c_value_print_inner): Use c_value_print_struct.
7233 * c-lang.h (cp_print_value_fields): Declare.
7234
6999f067
TT
72352020-03-13 Tom Tromey <tom@tromey.com>
7236
7237 * c-valprint.c (c_value_print_array): New function.
7238 (c_value_print_inner): Use it.
7239
ce80b8bd
TT
72402020-03-13 Tom Tromey <tom@tromey.com>
7241
7242 * c-valprint.c (c_value_print_memberptr): New function.
7243 (c_value_print_inner): Use it.
7244
2faac269
TT
72452020-03-13 Tom Tromey <tom@tromey.com>
7246
7247 * c-valprint.c (c_value_print_int): New function.
7248 (c_value_print_inner): Use it.
7249
da3e2c29
TT
72502020-03-13 Tom Tromey <tom@tromey.com>
7251
7252 * c-valprint.c (c_value_print_ptr): New function.
7253 (c_value_print_inner): Use it.
7254
50836231
TT
72552020-03-13 Tom Tromey <tom@tromey.com>
7256
7257 * c-valprint.c (c_value_print_inner): Rewrite.
7258
4f412b6e
TT
72592020-03-13 Tom Tromey <tom@tromey.com>
7260
7261 * valprint.c (generic_value_print_complex): New function.
7262 (generic_value_print): Use it.
7263
f5354008
TT
72642020-03-13 Tom Tromey <tom@tromey.com>
7265
7266 * valprint.c (generic_val_print_float): Don't call
7267 val_print_scalar_formatted.
7268 (generic_val_print, generic_value_print): Update.
7269
3eec3b05
TT
72702020-03-13 Tom Tromey <tom@tromey.com>
7271
7272 * valprint.c (generic_value_print_char): New function
7273 (generic_value_print): Use it.
7274
fdddfccb
TT
72752020-03-13 Tom Tromey <tom@tromey.com>
7276
7277 * valprint.c (generic_value_print_int): New function.
7278 (generic_value_print): Use it.
7279
6dde7521
TT
72802020-03-13 Tom Tromey <tom@tromey.com>
7281
7282 * valprint.c (generic_value_print_bool): New function.
7283 (generic_value_print): Use it.
7284
4112d2e6
TT
72852020-03-13 Tom Tromey <tom@tromey.com>
7286
7287 * valprint.c (generic_val_print_func): Simplify.
7288 (generic_val_print, generic_value_print): Update.
7289
65786af6
TT
72902020-03-13 Tom Tromey <tom@tromey.com>
7291
7292 * valprint.c (generic_val_print_flags): Remove.
7293 (generic_val_print, generic_value_print): Update.
7294 (val_print_type_code_flags): Add original_value parameter.
7295
40f3ce18
TT
72962020-03-13 Tom Tromey <tom@tromey.com>
7297
7298 * valprint.c (generic_val_print): Update.
7299 (generic_value_print): Update.
7300 * valprint.c (generic_val_print_enum): Don't call
7301 val_print_scalar_formatted.
7302
2a5b130b
TT
73032020-03-13 Tom Tromey <tom@tromey.com>
7304
7305 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7306 * valprint.c (generic_value_print_ptr): New function.
7307
abc66ce9
TT
73082020-03-13 Tom Tromey <tom@tromey.com>
7309
7310 * valprint.c (generic_value_print): Rewrite.
7311
07a32858
TT
73122020-03-13 Tom Tromey <tom@tromey.com>
7313
7314 * p-valprint.c (pascal_object_print_value_fields)
7315 (pascal_object_print_value): New functions.
7316
64d64d3a
TT
73172020-03-13 Tom Tromey <tom@tromey.com>
7318
7319 * p-valprint.c (pascal_value_print_inner): Rewrite.
7320
6a95a1f5
TT
73212020-03-13 Tom Tromey <tom@tromey.com>
7322
7323 * f-valprint.c (f_value_print_innner): Rewrite.
7324
59fcdac6
TT
73252020-03-13 Tom Tromey <tom@tromey.com>
7326
7327 * m2-valprint.c (m2_print_unbounded_array): New overload.
7328 (m2_print_unbounded_array): Update.
7329 (m2_print_array_contents): Take a struct value.
7330 (m2_value_print_inner): Rewrite.
7331
d133c3e1
TT
73322020-03-13 Tom Tromey <tom@tromey.com>
7333
7334 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7335 (d_value_print_inner): New function.
7336 * d-lang.h (d_value_print_inner): Declare.
7337 * d-lang.c (d_language_defn): Use d_value_print_inner.
7338
23b0f06b
TT
73392020-03-13 Tom Tromey <tom@tromey.com>
7340
7341 * go-valprint.c (go_value_print_inner): New function.
7342 * go-lang.h (go_value_print_inner): Declare.
7343 * go-lang.c (go_language_defn): Use go_value_print_inner.
7344
5f56f7cb
TT
73452020-03-13 Tom Tromey <tom@tromey.com>
7346
7347 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7348 API.
7349 (rust_val_print): Rewrite.
7350 (rust_value_print_inner): New function, from rust_val_print.
7351 (rust_language_defn): Use rust_value_print_inner.
7352
26792ee0
TT
73532020-03-13 Tom Tromey <tom@tromey.com>
7354
7355 * ada-valprint.c (ada_value_print_inner): New function.
7356 * ada-lang.h (ada_value_print_inner): Declare.
7357 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7358
24051bbe
TT
73592020-03-13 Tom Tromey <tom@tromey.com>
7360
7361 * f-valprint.c (f_value_print_innner): New function.
7362 * f-lang.h (f_value_print_innner): Declare.
7363 * f-lang.c (f_language_defn): Use f_value_print_innner.
7364
c0941be6
TT
73652020-03-13 Tom Tromey <tom@tromey.com>
7366
7367 * p-valprint.c (pascal_value_print_inner): New function.
7368 * p-lang.h (pascal_value_print_inner): Declare.
7369 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7370
62c4663d
TT
73712020-03-13 Tom Tromey <tom@tromey.com>
7372
7373 * m2-valprint.c (m2_value_print_inner): New function.
7374 * m2-lang.h (m2_value_print_inner): Declare.
7375 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7376
62182190
TT
73772020-03-13 Tom Tromey <tom@tromey.com>
7378
7379 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7380 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7381 * c-valprint.c (c_value_print_inner): New function.
7382 * c-lang.h (c_value_print_inner): Declare.
7383 * c-lang.c (c_language_defn, cplus_language_defn)
7384 (asm_language_defn, minimal_language_defn): Use
7385 c_value_print_inner.
7386
1e592a8a
TT
73872020-03-13 Tom Tromey <tom@tromey.com>
7388
7389 * p-valprint.c (pascal_object_print_value_fields): Now static.
7390 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7391
7fe471e9
TT
73922020-03-13 Tom Tromey <tom@tromey.com>
7393
7394 * c-valprint.c (c_val_print_array): Simplify.
7395
d121c6ce
TT
73962020-03-13 Tom Tromey <tom@tromey.com>
7397
7398 * valprint.c (value_print_array_elements): New function.
7399 * valprint.h (value_print_array_elements): Declare.
7400
4dba70ee
TT
74012020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7404 * mips-tdep.c (mips_print_register): Use
7405 value_print_scalar_formatted.
7406
4f9ae810
TT
74072020-03-13 Tom Tromey <tom@tromey.com>
7408
7409 * valprint.h (value_print_scalar_formatted): Declare.
7410 * valprint.c (value_print_scalar_formatted): New function.
7411
156bfec9
TT
74122020-03-13 Tom Tromey <tom@tromey.com>
7413
7414 * valprint.h (generic_value_print): Declare.
7415 * valprint.c (generic_value_print): New function.
7416
2b4e573d
TT
74172020-03-13 Tom Tromey <tom@tromey.com>
7418
7419 * valprint.c (do_val_print): Call la_value_print_inner, if
7420 available.
7421 * rust-lang.c (rust_language_defn): Update.
7422 * p-lang.c (pascal_language_defn): Update.
7423 * opencl-lang.c (opencl_language_defn): Update.
7424 * objc-lang.c (objc_language_defn): Update.
7425 * m2-lang.c (m2_language_defn): Update.
7426 * language.h (struct language_defn) <la_value_print_inner>: New
7427 member.
7428 * language.c (unknown_language_defn, auto_language_defn): Update.
7429 * go-lang.c (go_language_defn): Update.
7430 * f-lang.c (f_language_defn): Update.
7431 * d-lang.c (d_language_defn): Update.
7432 * c-lang.c (c_language_defn, cplus_language_defn)
7433 (asm_language_defn, minimal_language_defn): Update.
7434 * ada-lang.c (ada_language_defn): Update.
7435
a1f6a07c
TT
74362020-03-13 Tom Tromey <tom@tromey.com>
7437
7438 * c-valprint.c (c_value_print): Use common_val_print.
7439
410cf315
TT
74402020-03-13 Tom Tromey <tom@tromey.com>
7441
7442 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7443
72a45c93
TT
74442020-03-13 Tom Tromey <tom@tromey.com>
7445
7446 * f-valprint.c (f77_print_array_1, f_val_print): Use
7447 common_val_print.
7448
040f66bd
TT
74492020-03-13 Tom Tromey <tom@tromey.com>
7450
7451 * riscv-tdep.c (riscv_print_one_register_info): Use
7452 common_val_print.
7453
a6e05a6c
TT
74542020-03-13 Tom Tromey <tom@tromey.com>
7455
7456 * mi/mi-main.c (output_register): Use common_val_print.
7457
3444c526
TT
74582020-03-13 Tom Tromey <tom@tromey.com>
7459
7460 * infcmd.c (default_print_one_register_info): Use
7461 common_val_print.
7462
c2a44efe
TT
74632020-03-13 Tom Tromey <tom@tromey.com>
7464
7465 * valprint.h (common_val_print_checked): Declare.
7466 * valprint.c (common_val_print_checked): New function.
7467 * stack.c (print_frame_arg): Use common_val_print_checked.
7468
b0c26e99
TT
74692020-03-13 Tom Tromey <tom@tromey.com>
7470
7471 * valprint.c (do_val_print): New function, from val_print.
7472 (val_print): Use do_val_print.
7473 (common_val_print): Use do_val_print.
7474
ce3acbe9
TT
74752020-03-13 Tom Tromey <tom@tromey.com>
7476
7477 * valprint.c (value_print): Use scoped_value_mark.
7478
96c7f873
TV
74792020-03-13 Tom de Vries <tdevries@suse.de>
7480
7481 PR symtab/25646
7482 * psymtab.c (partial_symtab::partial_symtab): Don't set
7483 globals_offset and statics_offset. Push element onto
7484 current_global_psymbols and current_static_psymbols stacks.
7485 (concat): New function.
7486 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7487 element from current_global_psymbols and current_static_psymbols
7488 stacks. Concat popped elements to global_psymbols and
7489 static_symbols.
7490 (add_psymbol_to_list): Use current_global_psymbols and
7491 current_static_psymbols stacks.
7492 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7493 current_static_psymbols fields.
7494
6ba0a321
CB
74952020-03-12 Christian Biesinger <cbiesinger@google.com>
7496
7497 * corelow.c (sniff_core_bfd): Remove.
7498 (class core_target) <m_core_vec>: Remove.
7499 (core_target::core_target): Update.
7500 (core_file_fns): Remove.
7501 (deprecated_add_core_fns): Remove.
7502 (default_core_sniffer): Remove.
7503 (sniff_core_bfd): Remove.
7504 (default_check_format): Remove.
7505 (gdb_check_format): Remove.
7506 (core_target_open): Update.
7507 (core_target::get_core_register_section): Update.
7508 (get_core_registers_cb): Update.
7509 (core_target::fetch_registers): Update.
7510 * gdbcore.h (struct core_fns): Remove.
7511 (deprecated_add_core_fns): Remove.
7512 (default_core_sniffer): Remove.
7513 (default_check_format): Remove.
7514
227031b2
TT
75152020-03-12 Tom Tromey <tom@tromey.com>
7516
7517 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7518 CORE_ADDR.
7519 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7520
53807e9f
TT
75212020-03-12 Tom Tromey <tom@tromey.com>
7522
7523 * remote.c (remote_target::download_tracepoint)
7524 (remote_target::enable_tracepoint)
7525 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7526 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7527 sprintf_vma.
7528
64f25102
TT
75292020-03-12 Tom Tromey <tom@tromey.com>
7530
7531 * symfile-mem.c: Update CORE_ADDR size assert.
7532
272cd5a3
SM
75332020-03-12 Simon Marchi <simon.marchi@efficios.com>
7534
7535 * selftest.m4: Move to gdbsupport/.
7536 * acinclude.m4: Update path to selftest.m4.
7537
74cd3f9d
SM
75382020-03-12 Simon Marchi <simon.marchi@efficios.com>
7539
7540 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7541 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7542 gdbarch-selfselftests.c and selftest-arch.c.
7543 (SUBDIR_UNITTESTS_OBS): Rename to...
7544 (SELFTESTS_OBS): ... this.
7545 (COMMON_SFILES): Remove disasm-selftests.c and
7546 gdbarch-selftests.c.
7547 * configure.ac: Don't add selftest-arch.{c,o} to
7548 CONFIG_{SRCS,OBS}.
7549 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7550 preprocessor conditions.
7551
db6878ac
SM
75522020-03-12 Simon Marchi <simon.marchi@efficios.com>
7553
7554 * configure.ac: Don't source bfd/development.sh.
7555 * selftest.m4: Modify comment.
7556 * configure: Re-generate.
7557
4d696a5c
SM
75582020-03-12 Simon Marchi <simon.marchi@efficios.com>
7559
7560 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7561 not "true" or "false".
7562 * configure: Re-generate.
7563
8dd8e1c7
CB
75642020-03-12 Christian Biesinger <cbiesinger@google.com>
7565
7566 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7567 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7568 renamed to arm_nbsd_supply_gregset.
7569 (fetch_register): Update to call arm_nbsd_supply_gregset.
7570 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7571 (arm_netbsd_nat_target::fetch_registers): Update.
7572 (fetch_elfcore_registers): Removed.
7573 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7574 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7575 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7576 not require NetBSD system headers.
7577 (arm_nbsd_regset): New struct.
7578 (arm_nbsd_iterate_over_regset_sections): New function.
7579 (arm_netbsd_init_abi_common): Updated to call
7580 set_gdbarch_iterate_over_regset_sections.
7581 * arm-nbsd-tdep.h: New file.
7582
dd69bf7a
KB
75832020-03-11 Kevin Buettner <kevinb@redhat.com>
7584
7585 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7586 recursion.
7587
a0761e34
SM
75882020-03-11 Simon Marchi <simon.marchi@efficios.com>
7589
7590 * configure: Re-generate.
7591
e7a82140
TT
75922020-03-11 Tom Tromey <tromey@adacore.com>
7593
7594 * ada-typeprint.c (print_choices): Fix comment.
7595
dcc050c8
AB
75962020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7597
7598 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7599 previous item in the list, when the list has no items.
7600
1c33af77
TV
76012020-03-11 Tom de Vries <tdevries@suse.de>
7602
7603 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7604 PROP_LOCLIST handling code.
7605
8c95582d
AB
76062020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7607
7608 * buildsym-legacy.c (record_line): Pass extra parameter to
7609 record_line.
7610 * buildsym.c (buildsym_compunit::record_line): Take an extra
7611 parameter, reduce duplication in the line table, and record the
7612 is_stmt flag in the line table.
7613 * buildsym.h (buildsym_compunit::record_line): Add extra
7614 parameter.
7615 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7616 non-statement lines.
7617 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7618 this to the symtab builder.
7619 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7620 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7621 through to dwarf_record_line_1.
7622 * infrun.c (process_event_stop_test): When stepping, don't stop at
7623 a non-statement instruction, and only refresh the step info when
7624 we land in the middle of a line's range. Also add an extra
7625 comment.
7626 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7627 field.
7628 * record-btrace.c (btrace_find_line_range): Only record lines
7629 marked as is-statement.
7630 * stack.c (frame_show_address): Show the frame address if we are
7631 in a non-statement sal.
7632 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7633 (maintenance_print_one_line_table): Print a header for the is_stmt
7634 column, and include is_stmt information in the output.
7635 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7636 preference to non-statements.
7637 (find_pcs_for_symtab_line): Prefer is-statement entries.
7638 (find_line_common): Likewise.
7639 * symtab.h (struct linetable_entry): Add is_stmt field.
7640 (struct symtab_and_line): Likewise.
7641 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7642 arranging the line table.
7643
e4003a34
TV
76442020-03-07 Tom de Vries <tdevries@suse.de>
7645
7646 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7647 DIE.
7648
e8932576
TT
76492020-03-07 Tom Tromey <tom@tromey.com>
7650
7651 * valops.c (value_literal_complex): Remove obsolete comment.
7652 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7653 comment.
7654
29734269
SM
76552020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7656
7657 * infrun.h: Forward-declare thread_info.
7658 (set_step_info): Add thread_info parameter, add doc.
7659 * infrun.c (set_step_info): Add thread_info parameter, move doc
7660 to header.
7661 * infrun.c (process_event_stop_test): Pass thread to
7662 set_step_info call.
7663 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7664 set_step_info.
7665 (prepare_one_step): Add thread_info parameter, pass it to
7666 set_step_frame and prepare_one_step (recursive) call.
7667 (step_1): Pass thread to prepare_one_step call.
7668 (step_command_fsm::should_stop): Pass thread to
7669 prepare_one_step.
7670 (until_next_fsm): Pass thread to set_step_frame call.
7671 (finish_command): Pass thread to set_step_info call.
7672
b7d64b29
HD
76732020-03-06 Hannes Domani <ssbssa@yahoo.de>
7674
7675 * windows-tdep.c (windows_solib_create_inferior_hook):
7676 Check if inferior is running.
7677
09f2921c
TV
76782020-03-06 Tom de Vries <tdevries@suse.de>
7679
7680 * NEWS: Fix "the the".
7681 * ctfread.c: Same.
7682
fd760e79
TV
76832020-03-06 Tom de Vries <tdevries@suse.de>
7684
7685 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7686
20ea4a60
AB
76872020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7688
7689 * .dir-locals.el: Add a comment referencing the other copies of
7690 this file.
7691
0afbabf0
JB
76922020-03-05 John Baldwin <jhb@FreeBSD.org>
7693
7694 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7695 psargs.
7696
842806cb
TBA
76972020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7698
7699 * .gitattributes: New file.
7700
be1e3d3e
TT
77012020-03-04 Tom Tromey <tom@tromey.com>
7702
7703 * symmisc.c (print_symbol_bcache_statistics)
7704 (print_objfile_statistics): Update.
7705 * symfile.c (allocate_symtab): Use intern.
7706 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7707 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7708 macro_cache>: Remove.
7709 <string_cache>: New member.
7710 (struct objfile) <intern>: New methods.
7711 * elfread.c (elf_symtab_read): Use intern.
7712 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7713 (dwarf2_compute_name, dwarf2_physname)
7714 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7715 names.
7716 (guess_partial_die_structure_name): Update.
7717 (partial_die_info::fixup): Intern name.
7718 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7719 name.
7720 (dwarf2_name): Intern name. Update.
7721 * buildsym.c (buildsym_compunit::get_macro_table): Use
7722 string_cache.
7723
4e7625fd
TT
77242020-03-04 Tom Tromey <tom@tromey.com>
7725
7726 * jit.c (bfd_open_from_target_memory): Make "target" const.
7727 * corefile.c (gnutarget): Now const.
7728 * gdbcore.h (gnutarget): Now const.
7729
46f9f931
HD
77302020-03-04 Hannes Domani <ssbssa@yahoo.de>
7731
7732 * NEWS: Mention support for WOW64 processes.
7733 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7734 (amd64_windows_segment_register_p): Remove static.
7735 (_initialize_amd64_windows_nat): Update.
7736 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7737 * i386-windows-nat.c (context_offset): Update.
7738 (i386_mappings): Rename and remove static.
7739 (i386_windows_segment_register_p): Remove static.
7740 (_initialize_i386_windows_nat): Update.
7741 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7742 (STATUS_WX86_SINGLE_STEP): New macro.
7743 (EnumProcessModulesEx): New macro.
7744 (Wow64SuspendThread): New macro.
7745 (Wow64GetThreadContext): New macro.
7746 (Wow64SetThreadContext): New macro.
7747 (Wow64GetThreadSelectorEntry): New macro.
7748 (windows_set_context_register_offsets): Add static.
7749 (windows_set_segment_register_p): Likewise.
7750 (windows_add_thread): Adapt for WOW64 processes.
7751 (windows_fetch_one_register): Likewise.
7752 (windows_nat_target::fetch_registers): Likewise.
7753 (windows_store_one_register): Likewise.
7754 (display_selector): Likewise.
7755 (display_selectors): Likewise.
7756 (handle_exception): Likewise.
7757 (windows_continue): Likewise.
7758 (windows_nat_target::resume): Likewise.
7759 (windows_add_all_dlls): Likewise.
7760 (do_initial_windows_stuff): Likewise.
7761 (windows_nat_target::attach): Likewise.
7762 (windows_get_exec_module_filename): Likewise.
7763 (windows_nat_target::create_inferior): Likewise.
7764 (windows_xfer_siginfo): Likewise.
7765 (_initialize_loadable): Initialize Wow64SuspendThread,
7766 Wow64GetThreadContext, Wow64SetThreadContext,
7767 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7768 * windows-nat.h (windows_set_context_register_offsets):
7769 Remove declaration.
7770 (windows_set_segment_register_p): Likewise.
7771 (i386_windows_segment_register_p): Add declaration.
7772 (amd64_windows_segment_register_p): Likewise.
7773
440cf44e
LM
77742020-03-04 Luis Machado <luis.machado@linaro.org>
7775
7776 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7777 in "info registers" for AArch64/ARM.
7778
7779 The change caused "info registers" to not print GPR's.
7780
7781 gdb/ChangeLog:
7782
7783 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7784
7785 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7786 when reg->group is empty and reggroup is not.
7787
1009d92f
TT
77882020-03-03 Tom Tromey <tromey@adacore.com>
7789
7790 * dwarf2/frame.c (struct dwarf2_frame_cache)
7791 <checked_tailcall_bottom, entry_cfa_sp_offset,
7792 entry_cfa_sp_offset_p>: Remove members.
7793 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7794 (dwarf2_frame_prev_register): Don't call
7795 dwarf2_tailcall_sniffer_first.
7796 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7797 * frame-unwind.c (add_unwinder): New fuction.
7798 (frame_unwind_init): Use it. Add tailcall unwinder.
7799
5e5d66b6
AB
78002020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7801 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7802
7803 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7804 value should be printed as true.
7805
584cf46d
HD
78062020-03-03 Hannes Domani <ssbssa@yahoo.de>
7807
7808 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7809 (windows_init_abi): Set and use windows_so_ops.
7810
7b973adc
SDJ
78112020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7812
7813 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7814 when verifying if dealing with a convenience variable.
7815
bb7b70ab
LM
78162020-03-03 Luis Machado <luis.machado@linaro.org>
7817
7818 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7819
9822cb57
SM
78202020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7821
7822 * infrun.c (gdbarch_supports_displaced_stepping): New.
7823 (use_displaced_stepping): Break up conditions in smaller pieces.
7824 Use gdbarch_supports_displaced_stepping.
7825 (displaced_step_prepare_throw): Use
7826 gdbarch_supports_displaced_stepping.
7827
63e163f2
AB
78282020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7829
7830 * NEWS: Mention new behaviour of the history filename.
7831 * top.c (write_history_p): Add comment.
7832 (show_write_history_p): Add header comment, give a different
7833 message when history writing is on, but the history filename is
7834 empty.
7835 (history_filename): Add comment.
7836 (history_filename_empty): New function.
7837 (show_history_filename): Add header comment, give a different
7838 message when the filename is empty.
7839 (init_history): Compare history_filename against nullptr, and only
7840 read history if the filename is not empty.
7841 (set_history_filename): Add header comment, and only make
7842 non-empty filenames absolute.
7843 (init_main): Make the filename argument to 'set history filename'
7844 optional.
7845
81b86b97
CB
78462020-03-02 Christian Biesinger <cbiesinger@google.com>
7847
7848 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7849 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7850 (fetch_fp_register): Update.
7851 (fetch_fp_regs): Update.
7852 (store_fp_register): Update.
7853 (store_fp_regs): Update.
7854 (arm_netbsd_nat_target::read_description): New function.
7855 (fetch_elfcore_registers): Update.
7856
24ed6739
AB
78572020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7858
7859 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7860 general_thread if the stop reply is missing a thread-id.
7861 (remote_target::process_stop_reply): Use the first non-exited
7862 thread if the target didn't pass a thread-id.
7863 * infrun.c (do_target_wait): Move call to
7864 switch_to_inferior_no_thread to ....
7865 (do_target_wait_1): ... here.
7866
a84bb2a0
JT
78672020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7868
7869 * debuginfod-support.c: Include defs.h first.
7870
658dadf0
TV
78712020-02-28 Tom de Vries <tdevries@suse.de>
7872
7873 * symfile.c (set_initial_language): Use default language for lookup.
7874
4ebe4877
SM
78752020-02-28 Simon Marchi <simon.marchi@efficios.com>
7876
7877 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7878 reader variable, pass `this` to read_cutu_die_from_dwo.
7879
e5da1139
AM
78802020-02-27 Aaron Merey <amerey@redhat.com>
7881
7882 * source.c (open_source_file): Check for nullptr when computing
7883 srcpath.
7884
317f7127
TT
78852020-02-27 Tom Tromey <tromey@adacore.com>
7886
7887 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7888 member.
7889 (dwarf2_add_field): Don't update nfields.
7890 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7891
3104d9ee
AB
78922020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7893
7894 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7895 abs.
7896
b83470bf
TT
78972020-02-26 Tom Tromey <tom@tromey.com>
7898
7899 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7900 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7901 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7902 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7903 per_cu_data.
7904
edfe0a0c
TT
79052020-02-26 Tom Tromey <tom@tromey.com>
7906
7907 * dwarf2/index-write.c (psym_index_map): Change type.
7908 (add_address_entry_worker, write_one_signatured_type)
7909 (recursively_count_psymbols, recursively_write_psymbols)
7910 (class debug_names, psyms_seen_size, write_gdbindex)
7911 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7912
0d79cdc4
AM
79132020-02-26 Aaron Merey <amerey@redhat.com>
7914
7915 * Makefile.in: Handle optional debuginfod support.
7916 * NEWS: Update.
7917 * README: Add --with-debuginfod summary.
7918 * config.in: Regenerate.
7919 * configure: Regenerate.
7920 * configure.ac: Handle optional debuginfod support.
7921 * debuginfod-support.c: debuginfod helper functions.
7922 * debuginfod-support.h: Ditto.
7923 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7924 summary.
7925 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7926 when a dwz file cannot be found.
7927 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7928 debuginfo file cannot be found.
7929 * source.c (open_source_file): Query debuginfod servers when a
7930 source file cannot be found.
7931 * top.c (print_gdb_configuration): Include
7932 --{with,without}-debuginfod in the output.
7933
b65ce565
JG
79342020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7935
7936 * thread.c (thr_try_catch_cmd): Print thread name.
7937
d4c9a4f8
SM
79382020-02-26 Simon Marchi <simon.marchi@efficios.com>
7939
7940 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7941 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7942 dwarf2_fetch_die_type_sect_off): Move to...
7943 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7944 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7945 dwarf2_fetch_die_type_sect_off): ... here.
7946 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7947 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7948 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7949
0dce4280
TV
79502020-02-26 Tom de Vries <tdevries@suse.de>
7951
7952 PR gdb/25603
7953 * symfile.c (set_initial_language): Exit-early if
7954 language_mode == language_mode_manual.
7955
450a1bfc
SM
79562020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7957
7958 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7959 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7960 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7961
9e80cfa1
AB
79622020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7963
7964 * gdbtypes.c (create_array_type_with_stride): Handle negative
7965 array strides.
7966 * valarith.c (value_subscripted_rvalue): Likewise.
7967
09624f1f
LM
79682020-02-25 Luis Machado <luis.machado@linaro.org>
7969
7970 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7971
8cb5117c
SM
79722020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7973
7974 * loc.h (dwarf2_get_die_type): Move to...
7975 * read.h (dwarf2_get_die_type): ... here.
7976 * read.c (dwarf2_get_die_type): Move doc to header.
7977
c325c44e
JB
79782020-02-25 Joel Brobecker <brobecker@adacore.com>
7979
7980 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7981 'gnulib/Makefile.in' to the list.
7982
4ac93832
TT
79832020-02-24 Tom Tromey <tom@tromey.com>
7984
7985 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7986 Remove.
7987 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7988 XOBNEWVEC.
7989
197400e8
TT
79902020-02-24 Tom Tromey <tom@tromey.com>
7991
7992 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7993 New method.
7994 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7995 (dw2_do_instantiate_symtab, dw2_get_file_names)
7996 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7997
76935768
TT
79982020-02-24 Tom Tromey <tom@tromey.com>
7999
8000 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8001 make_scoped_restore.
8002 (dwarf2_psymtab::read_symtab): Don't clear
8003 reading_partial_symbols.
8004
a88ef40d
TV
80052020-02-24 Tom de Vries <tdevries@suse.de>
8006
8007 PR gdb/25592
8008 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8009
c9af6521
TV
80102020-02-24 Tom de Vries <tdevries@suse.de>
8011
8012 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8013 commands layout next/prev/regs.
8014
5707a07a
TT
80152020-02-22 Tom Tromey <tom@tromey.com>
8016
8017 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8018 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8019
3b0fb49e
TT
80202020-02-22 Tom Tromey <tom@tromey.com>
8021
8022 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8023
283be8bf
TT
80242020-02-22 Tom Tromey <tom@tromey.com>
8025
8026 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8027 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8028 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8029 * tui/tui.c (_initialize_tui): Add usage text.
8030
ca793b96
TT
80312020-02-22 Tom Tromey <tom@tromey.com>
8032
8033 * tui/tui-win.c (tui_set_focus_command)
8034 (tui_set_win_height_command): Use error_no_arg.
8035 (_initialize_tui_win): Update help text.
8036 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8037
432b5c40
TT
80382020-02-22 Tom Tromey <tom@tromey.com>
8039
8040 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8041 * tui/tui-disasm.h (struct tui_disasm_window)
8042 <display_start_addr>: Declare.
8043 * tui/tui-source.h (struct tui_source_window)
8044 <display_start_addr>: Declare.
8045 * tui/tui-winsource.h (struct tui_source_window_base)
8046 <show_source_line, display_start_addr>: New methods.
8047 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8048 Rename and move to protected section.
8049 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8050 (tui_source_window_base::do_erase_source_content): Update.
8051 (tui_source_window_base::show_source_line): Now a method.
8052 (tui_source_window_base::show_source_content)
8053 (tui_source_window_base::tui_source_window_base)
8054 (tui_source_window_base::rerender)
8055 (tui_source_window_base::refill)
8056 (tui_source_window_base::do_scroll_horizontal)
8057 (tui_source_window_base::set_is_exec_point_at)
8058 (tui_source_window_base::update_breakpoint_info)
8059 (tui_source_window_base::update_exec_info): Update.
8060 * tui/tui-source.c (tui_source_window::set_contents)
8061 (tui_source_window::showing_source_p)
8062 (tui_source_window::do_scroll_vertical)
8063 (tui_source_window::location_matches_p)
8064 (tui_source_window::line_is_displayed): Update.
8065 (tui_source_window::display_start_addr): New method.
8066 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8067 (tui_disasm_window::do_scroll_vertical)
8068 (tui_disasm_window::location_matches_p): Update.
8069 (tui_disasm_window::display_start_addr): New method.
8070
01b1af32
TT
80712020-02-22 Tom Tromey <tom@tromey.com>
8072
8073 * NEWS: Add entry for gdb.register_window_type.
8074 * tui/tui-layout.h (window_factory): New typedef.
8075 (tui_register_window): Declare.
8076 * tui/tui-layout.c (saved_tui_windows): New global.
8077 (tui_apply_current_layout): Use it.
8078 (tui_register_window): New function.
8079 * python/python.c (do_start_initialization): Call
8080 gdbpy_initialize_tui.
8081 (python_GdbMethods): Add "register_window_type" function.
8082 * python/python-internal.h (gdbpy_register_tui_window)
8083 (gdbpy_initialize_tui): Declare.
8084 * python/py-tui.c: New file.
8085 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8086
fc96d20b
TT
80872020-02-22 Tom Tromey <tom@tromey.com>
8088
8089 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8090
935c78c0
TT
80912020-02-22 Tom Tromey <tom@tromey.com>
8092
8093 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8094 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8095 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8096 (tui_set_win_focus_to): Move from tui-win.c.
8097
0240c8f1
TT
80982020-02-22 Tom Tromey <tom@tromey.com>
8099
8100 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8101 functions.
8102 (known_window_types): New global.
8103 (tui_get_window_by_name): Reimplement.
8104 (initialize_known_windows): New function.
8105 (validate_window_name): Rewrite.
8106 (_initialize_tui_layout): Call initialize_known_windows.
8107
fdb01f0c
TT
81082020-02-22 Tom Tromey <tom@tromey.com>
8109
8110 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8111 Remove constants.
8112 * tui/tui-winsource.h (struct tui_source_window_base)
8113 <tui_source_window_base>: Remove parameter.
8114 * tui/tui-winsource.c
8115 (tui_source_window_base::tui_source_window_base): Remove
8116 parameter.
8117 (tui_source_window_base::refill): Update.
8118 * tui/tui-stack.h (struct tui_locator_window)
8119 <tui_locator_window>: Update.
8120 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8121 Default the constructor.
8122 * tui/tui-regs.h (struct tui_data_item_window)
8123 <tui_data_item_window>: Default the constructor.
8124 (struct tui_data_window) <tui_data_window>: Likewise.
8125 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8126 Default the constructor.
8127 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8128 Default the constructor.
8129 <type>: Remove.
8130 (struct tui_win_info) <tui_win_info>: Default the constructor.
8131 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8132 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8133 Default the constructor.
8134
865a5aec
TT
81352020-02-22 Tom Tromey <tom@tromey.com>
8136
8137 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8138 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8139 * tui/tui-win.c (tui_resize_all): Don't call
8140 tui_delete_invisible_windows.
8141 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8142 done.
8143 (tui_set_layout): Update.
8144 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8145 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8146 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8147
e098d18c
TT
81482020-02-22 Tom Tromey <tom@tromey.com>
8149
8150 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8151 correctly.
8152
eb9c8874
TT
81532020-02-22 Tom Tromey <tom@tromey.com>
8154
8155 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8156
7eed1a8e
TT
81572020-02-22 Tom Tromey <tom@tromey.com>
8158
8159 * tui/tui-winsource.h (struct tui_source_window_iterator)
8160 <inner_iterator>: New etytypedef.
8161 <tui_source_window_iterator>: Take "end" parameter.
8162 <tui_source_window_iterator>: Take iterator.
8163 <operator*, advance>: Update.
8164 <m_iter>: Change type.
8165 <m_end>: New field.
8166 (struct tui_source_windows) <begin, end>: Update.
8167 * tui/tui-layout.c (tui_windows): New global.
8168 (tui_apply_current_layout): Clear tui_windows.
8169 (tui_layout_window::apply): Update tui_windows.
8170 * tui/tui-data.h (tui_windows): Declare.
8171 (all_tui_windows): Now inline function.
8172 (class tui_window_iterator, struct all_tui_windows): Remove.
8173
7c043ba6
TT
81742020-02-22 Tom Tromey <tom@tromey.com>
8175
8176 PR tui/17850:
8177 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8178 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8179 "height" argument.
8180 (class tui_layout_window) <get_sizes>: Likewise.
8181 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8182 argument.
8183 <get_sizes>: Add "height" argument.
8184 <m_vertical>: New field.
8185 * tui/tui-layout.c (tui_layout_split::clone): Update.
8186 (tui_layout_split::get_sizes): Add "height" argument.
8187 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8188 (tui_new_layout_command): Parse "-horizontal".
8189 (_initialize_tui_layout): Update help string.
8190 (tui_layout_split::specification): Add "-horizontal" when needed.
8191 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8192 argument.
8193 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8194 New methods.
8195
6bc56648
TT
81962020-02-22 Tom Tromey <tom@tromey.com>
8197
8198 * tui/tui-layout.h (enum tui_adjust_result): New.
8199 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8200 (class tui_layout_window) <adjust_size>: Return
8201 tui_adjust_result. Rewrite.
8202 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8203 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8204
c22fef7e
TT
82052020-02-22 Tom Tromey <tom@tromey.com>
8206
8207 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8208 parameter and return types.
8209 (class tui_layout_base) <specification>: Add "depth".
8210 (class tui_layout_window) <specification>: Add "depth".
8211 (class tui_layout_split) <specification>: Add "depth".
8212 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8213 and return types.
8214 (tui_new_layout_command): Parse sub-layouts.
8215 (_initialize_tui_layout): Update help string.
8216 (tui_layout_window::specification): Add "depth".
8217 (add_layout_command): Update.
8218
ee325b61
TT
82192020-02-22 Tom Tromey <tom@tromey.com>
8220
8221 * NEWS: Add "tui new-layout" item.
8222 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8223 Add new-layout command to help text.
8224 (validate_window_name): New function.
8225 (tui_new_layout_command): New function.
8226 (_initialize_tui_layout): Register "new-layout".
8227 (tui_layout_window::specification): New method.
8228 (tui_layout_window::specification): New method.
8229 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8230 method.
8231 (class tui_layout_window) <specification>: New method.
8232 (class tui_layout_split) <specification>: New method.
8233
416eb92d
TT
82342020-02-22 Tom Tromey <tom@tromey.com>
8235
8236 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8237 * tui/tui-win.c (window_name_completer): Update comment.
8238 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8239 Declare method.
8240 (class tui_layout_window) <replace_window>: Likewise.
8241 (class tui_layout_split) <replace_window>: Likewise.
8242 (tui_set_layout): Don't declare.
8243 (tui_set_initial_layout): Declare function.
8244 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8245 (asm_regs_layout): New globals.
8246 (tui_current_layout, show_layout): Remove.
8247 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8248 (find_layout, tui_apply_layout): New function.
8249 (layout_completer): Remove.
8250 (tui_next_layout): Reimplement.
8251 (tui_next_layout_command): New function.
8252 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8253 (tui_regs_layout): Reimplement.
8254 (tui_regs_layout_command): New function.
8255 (extract_display_start_addr): Rewrite.
8256 (next_layout, prev_layout): Remove.
8257 (tui_layout_window::replace_window): New method.
8258 (tui_layout_split::replace_window): New method.
8259 (destroy_layout): New function.
8260 (layout_list): New global.
8261 (add_layout_command): New function.
8262 (initialize_layouts): Update.
8263 (tui_layout_command): New function.
8264 (_initialize_tui_layout): Install "layout" commands.
8265 * tui/tui-data.h (enum tui_layout_type): Remove.
8266 (tui_current_layout): Don't declare.
8267
0dbc2fc7
TT
82682020-02-22 Tom Tromey <tom@tromey.com>
8269
8270 * tui/tui-regs.c (tui_reg_layout): Remove.
8271 (tui_reg_command): Use tui_regs_layout.
8272 * tui/tui-layout.h (tui_reg_command): Declare.
8273 * tui/tui-layout.c (tui_reg_command): New function.
8274
5afe342e
TT
82752020-02-22 Tom Tromey <tom@tromey.com>
8276
8277 * tui/tui.c (tui_rl_delete_other_windows): Call
8278 tui_remove_some_windows.
8279 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8280 Declare method.
8281 (class tui_layout_window) <remove_windows>: New method.
8282 (class tui_layout_split) <remove_windows>: Declare.
8283 (tui_remove_some_windows): Declare.
8284 * tui/tui-layout.c (tui_remove_some_windows): New function.
8285 (tui_layout_split::remove_windows): New method.
8286
427326a8
TT
82872020-02-22 Tom Tromey <tom@tromey.com>
8288
8289 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8290 * tui/tui-layout.h (tui_next_layout): Declare.
8291 * tui/tui-layout.c (tui_next_layout): New function.
8292
3fe12b6d
TT
82932020-02-22 Tom Tromey <tom@tromey.com>
8294
8295 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8296 correct coordinates.
8297
59b8b5d2
TT
82982020-02-22 Tom Tromey <tom@tromey.com>
8299
8300 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8301 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8302 DATA_WIN case.
8303
2a3d458b
TT
83042020-02-22 Tom Tromey <tom@tromey.com>
8305
8306 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8307 TUI_DISASM_WIN, not tui_win_list.
8308
3f0cbb04
TT
83092020-02-22 Tom Tromey <tom@tromey.com>
8310
8311 * valprint.c (generic_val_print_enum_1)
8312 (val_print_type_code_flags): Style member names.
8313 * rust-lang.c (val_print_struct, rust_print_enum)
8314 (rust_print_struct_def, rust_internal_print_type): Style member
8315 names.
8316 * p-valprint.c (pascal_object_print_value_fields): Style member
8317 names. Only call fprintf_symbol_filtered for static members.
8318 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8319 * f-valprint.c (f_val_print): Style member names.
8320 * f-typeprint.c (f_type_print_base): Style member names.
8321 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8322 call fprintf_symbol_filtered for static members.
8323 (cp_print_class_member): Style member names.
8324 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8325 member names.
8326 * ada-valprint.c (ada_print_scalar): Style enum names.
8327 (ada_val_print_enum): Likewise.
8328 * ada-typeprint.c (print_enum_type): Style enum names.
8329
d4d947ae
TT
83302020-02-21 Tom Tromey <tom@tromey.com>
8331
8332 * psympriv.h (struct partial_symtab): Update comment.
8333
e94e944b
TT
83342020-02-21 Tom Tromey <tromey@adacore.com>
8335
8336 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8337 type is CORE_ADDR.
8338
1eb73179
TV
83392020-02-21 Tom de Vries <tdevries@suse.de>
8340
8341 PR gdb/25534
8342 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8343 if dependencies[i]->user != NULL.
8344
4f180d53
AT
83452020-02-21 Ali Tamur <tamur@google.com>
8346
8347 * dwarf2/read.c (dwarf2_name): Add null check.
8348
22b6cd70
TT
83492020-02-20 Tom Tromey <tom@tromey.com>
8350
8351 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8352 ">=", in binary search.
8353 (dwarf2_find_containing_comp_unit): New overload.
8354 (run_test): New self-test.
8355 (_initialize_dwarf2_read): Register new test.
8356
bd0cf5a6
NC
83572020-02-20 Nelson Chu <nelson.chu@sifive.com>
8358
8359 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8360 * riscv-tdep.h: Likewise.
8361 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8362 rv32-only CSR.
8363 * features/riscv/64bit-csr.xml: Regenerated.
8364
3f702acd
SDJ
83652020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8366 Tom Tromey <tom@tromey.com>
8367
8368 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8369 of 'fputc_unfiltered'.
8370 (putchar_unfiltered): Call 'fputc_unfiltered'.
8371 (fputc_unfiltered): Call 'fputs_unfiltered'.
8372
d13c7322
AB
83732020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8374
8375 * config.in: Regenerate.
8376 * configure: Regenerate.
8377 * configure.ac: Add --with-python-libdir option.
8378 * main.c: Use WITH_PYTHON_LIBDIR.
8379
869d8950
TT
83802020-02-19 Tom Tromey <tom@tromey.com>
8381
8382 * symtab.c (general_symbol_info::compute_and_set_names): Use
8383 obstack_strndup. Simplify call to symbol_set_demangled_name.
8384
298e9637
SM
83852020-02-19 Simon Marchi <simon.marchi@efficios.com>
8386
8387 * dwarf2/read.c (allocate_signatured_type_table,
8388 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8389 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8390 Remove objfile parameter, update all callers.
8391
08410482
DE
83922020-02-19 Doug Evans <dje@google.com>
8393
8394 PR rust/25535
8395 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8396 rust_enum_variant calculation.
8397
dfdeeca1
TT
83982020-02-19 Tom Tromey <tromey@adacore.com>
8399
8400 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8401
2ef5453b
TT
84022020-02-19 Tom Tromey <tromey@adacore.com>
8403
8404 * ada-lang.c (cache_symbol): Use obstack_strdup.
8405
9f1528a1
AB
84062020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8407
8408 * configure: Regenerate.
8409
d3c22fa8
TT
84102020-02-19 Tom Tromey <tromey@adacore.com>
8411
8412 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8413 NULL check.
8414
bf84f706
MR
84152020-02-19 Maciej W. Rozycki <macro@wdc.com>
8416
8417 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8418
d1c9b20f
AB
84192020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8420
8421 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8422 if GDBSERVER is not defined.
8423 (riscv_tdesc_cache): Likewise, also store const target_desc.
8424 (STATIC_IN_GDB): Define.
8425 (riscv_create_target_description): Update declaration with
8426 STATIC_IN_GDB.
8427 (riscv_lookup_target_description): New function, only define if
8428 GDBSERVER is not defined.
8429 * arch/riscv.h (riscv_create_target_description): Declare only
8430 when GDBSERVER is defined.
8431 (riscv_lookup_target_description): New declaration when GDBSERVER
8432 is not defined.
8433 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8434 (riscv_linux_read_features): ...this, and return
8435 riscv_gdbarch_features instead of target_desc.
8436 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8437 (riscv_linux_read_description): Rename to...
8438 (riscv_linux_read_features): ...this.
8439 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8440 Update to use riscv_gdbarch_features and
8441 riscv_lookup_target_description.
8442 * riscv-tdep.c (riscv_find_default_target_description): Use
8443 riscv_lookup_target_description instead of
8444 riscv_create_target_description.
8445
373d7ac0
SM
84462020-02-18 Simon Marchi <simon.marchi@efficios.com>
8447
8448 * valprint.c (generic_val_print_enum_1): When printing a flag
8449 enum with value 0 and there is no enumerator with value 0, print
8450 just "0" instead of "(unknown: 0x0)".
8451
b29a2df0
SM
84522020-02-18 Simon Marchi <simon.marchi@efficios.com>
8453
8454 * valprint.c (generic_val_print_enum_1): Print unknown part of
8455 flag enum in hex.
8456
6740f0cc
SM
84572020-02-18 Simon Marchi <simon.marchi@efficios.com>
8458
8459 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8460 flag enums to contain duplicate enumerators.
8461 * valprint.c (generic_val_print_enum_1): Update comment.
8462
edd45eb0
SM
84632020-02-18 Simon Marchi <simon.marchi@efficios.com>
8464
8465 * dwarf2/read.c: Include "count-one-bits.h".
8466 (update_enumeration_type_from_children): If an enumerator has
8467 multiple bits set, don't treat the enumeration as a "flag enum".
8468 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8469 of flag enums have 0 or 1 bit set.
8470
6d0cf446
BE
84712020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8472
8473 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8474 conversion.
8475 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8476 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8477 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8478 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8479 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8480
7001c1b7
SM
84812020-02-18 Simon Marchi <simon.marchi@efficios.com>
8482
8483 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8484
fdb61c6c
SM
84852020-02-14 Simon Marchi <simon.marchi@efficios.com>
8486
8487 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8488 displaced_step_closure_up.
8489 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8490 (struct displaced_step_closure_up):
8491 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8492 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8493 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8494 Likewise.
8495 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8496 * gdbarch.c, gdbarch.h: Re-generate.
8497 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8498 displaced_step_closure_up.
8499 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8500 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8501 * infrun.h (displaced_step_closure_up): New type alias.
8502 (struct displaced_step_inferior_state) <step_closure>: Change
8503 type to displaced_step_closure_up.
8504 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8505 displaced_step_closure_up.
8506 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8507
a4a38eb4
TT
85082020-02-14 Tom Tromey <tom@tromey.com>
8509
8510 * minidebug.c (gnu_debug_key): New global.
8511 (find_separate_debug_file_in_section): Use it.
8512
e8217e61
SM
85132020-02-14 Simon Marchi <simon.marchi@efficios.com>
8514
8515 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8516 std::unique_ptr.
8517 * gdbarch.c: Re-generate.
8518 * gdbarch.h: Re-generate.
8519 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8520 change.
8521 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8522 type to std::unique_ptr.
8523 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8524 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8525 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8526 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8527 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8528 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8529 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8530 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8531 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8532
d8d83535
SM
85332020-02-14 Simon Marchi <simon.marchi@efficios.com>
8534
8535 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8536 std::unique_ptr.
8537 (displaced_step_clear): Rename to...
8538 (displaced_step_reset): ... this. Just call displaced->reset ().
8539 (displaced_step_clear_cleanup): Rename to...
8540 (displaced_step_reset_cleanup): ... this.
8541 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8542 (displaced_step_fixup): Likewise.
8543 (resume_1): Likewise.
8544 (handle_inferior_event): Restore child's memory before calling
8545 displaced_step_fixup on the parent.
8546 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8547 to std::unique_ptr.
8548 <step_closure>: Change type to std::unique_ptr.
8549
5f661e03
SM
85502020-02-14 Simon Marchi <simon.marchi@efficios.com>
8551
8552 * arm-tdep.c: Include count-one-bits.h.
8553 (cleanup_block_store_pc): Use count_one_bits.
8554 (cleanup_block_load_pc): Use count_one_bits.
8555 (arm_copy_block_xfer): Use count_one_bits.
8556 (thumb2_copy_block_xfer): Use count_one_bits.
8557 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8558 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8559 (thumb_get_next_pcs_raw): Use count_one_bits.
8560 (arm_get_next_pcs_raw): Use count_one_bits_l.
8561 * arch/arm.c (bitcount): Remove.
8562 * arch/arm.h (bitcount): Remove.
8563
8084e579
TT
85642020-02-14 Tom Tromey <tromey@adacore.com>
8565
8566 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8567 Update.
8568 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8569 * dwarf2/loc.c (call_site_find_chain_1): Return
8570 unique_xmalloc_ptr.
8571 (call_site_find_chain): Likewise.
8572
258bf0ee
RB
85732020-02-14 Richard Biener <rguenther@suse.de>
8574
8575 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8576 on expression with division operators.
8577
f98a8458
AKS
85782020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8579
8580 * MAINTAINERS (Write After Approval): Adding myself.
8581
d1437c0e
TT
85822020-02-12 Tom Tromey <tom@tromey.com>
8583
8584 * event-loop.c (event_data, gdb_event, event_handler_func):
8585 Remove.
8586
3d4560f7
TT
85872020-02-12 Tom Tromey <tom@tromey.com>
8588
8589 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8590 (dwarf2_frame_objfile_data): Add comment.
8591 (find_comp_unit, set_comp_unit): New functions.
8592 (dwarf2_frame_find_fde): Use find_comp_unit.
8593 (dwarf2_build_frame_info): Use set_comp_unit.
8594
21982304
TT
85952020-02-12 Tom Tromey <tom@tromey.com>
8596
8597 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8598 (comp_unit): Don't initialize objfile.
8599 (execute_cfa_program): Add text_offset parameter.
8600 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8601 (dwarf2_frame_cache): Update.
8602 (dwarf2_build_frame_info): Don't set "objfile" member.
8603
4debb237
TT
86042020-02-12 Tom Tromey <tom@tromey.com>
8605
8606 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8607 (decode_frame_entry): Likewise.
8608 (dwarf2_build_frame_info): Update.
8609
0d404d44
TT
86102020-02-12 Tom Tromey <tom@tromey.com>
8611
8612 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8613 (decode_frame_entry_1): Use the comp_unit obstack.
8614
a7a3ae5c
TT
86152020-02-12 Tom Tromey <tom@tromey.com>
8616
8617 * dwarf2/frame.c (struct comp_unit): Add initializers and
8618 constructor.
8619 (dwarf2_frame_objfile_data): Store a comp_unit.
8620 (dwarf2_frame_find_fde): Update.
8621 (dwarf2_build_frame_info): Use "new".
8622
a9d65418
TT
86232020-02-12 Tom Tromey <tom@tromey.com>
8624
8625 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8626 (dwarf2_fde_table): Typedef for std::vector.
8627 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8628 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8629 (decode_frame_entry): Update.
8630 (dwarf2_build_frame_info): Use "new".
8631
7559c217
CB
86322020-02-12 Christian Biesinger <cbiesinger@google.com>
8633
8634 * arm-tdep.c (arm_gdbarch_init): Update.
8635 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8636 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8637 have_neon, is_m>: Change to bool.
8638
aeefc73c
CB
86392020-02-12 Christian Biesinger <cbiesinger@google.com>
8640
8641 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8642
d27b8e5f
TT
86432020-02-12 Tom Tromey <tom@tromey.com>
8644
8645 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8646
cd5900f3
HD
86472020-02-12 Hannes Domani <ssbssa@yahoo.de>
8648
8649 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8650 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8651
f056b22b
TT
86522020-02-11 Tom Tromey <tom@tromey.com>
8653
8654 * psymtab.h: Update comment.
8655
f92ff6b5
TT
86562020-02-11 Tom Tromey <tom@tromey.com>
8657
8658 * gdb_obstack.h (struct auto_obstack): Use
8659 DISABLE_COPY_AND_ASSIGN.
8660
3fd6912b
TT
86612020-02-11 Tom Tromey <tom@tromey.com>
8662
8663 * dwarf2/frame.h (struct objfile): Don't forward declare.
8664
69ed9b74
CB
86652020-02-11 Christian Biesinger <cbiesinger@google.com>
8666
8667 * cris-tdep.c (cris_supply_gregset): Change signature to match
8668 what struct regset expects.
8669 (cris_regset): New struct.
8670 (fetch_core_registers): Remove.
8671 (cris_iterate_over_regset_sections): New function.
8672 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8673 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8674
bda874f6
CB
86752020-02-11 Christian Biesinger <cbiesinger@google.com>
8676
8677 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8678 registers.
8679
754e1564
CB
86802020-02-11 Christian Biesinger <cbiesinger@google.com>
8681
8682 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8683
8ddd8e0e
SM
86842020-02-11 Simon Marchi <simon.marchi@efficios.com>
8685
8686 * configure: Re-generate.
8687
898e7f60
SM
86882020-02-11 Simon Marchi <simon.marchi@efficios.com>
8689
8690 * configure: Re-generate.
8691
58df732b
SM
86922020-02-11 Simon Marchi <simon.marchi@efficios.com>
8693
8694 * acinclude: Update warning.m4 path.
8695 * warning.m4: Move to gdbsupport.
8696
da5bd37e
TT
86972020-02-11 Tom Tromey <tromey@adacore.com>
8698
8699 * remote.c (remote_console_output): Update.
8700 * printcmd.c (printf_command): Update.
8701 * event-loop.c (gdb_wait_for_event): Update.
8702 * linux-nat.c (sigchld_handler): Update.
8703 * remote-sim.c (gdb_os_write_stdout): Update.
8704 (gdb_os_flush_stdout): Update.
8705 (gdb_os_flush_stderr): Update.
8706 (gdb_os_write_stderr): Update.
8707 * exceptions.c (print_exception): Update.
8708 * remote-fileio.c (remote_fileio_func_read): Update.
8709 (remote_fileio_func_write): Update.
8710 * tui/tui.c (tui_enable): Update.
8711 * tui/tui-interp.c (tui_interp::init): Update.
8712 * utils.c (init_page_info): Update.
8713 (putchar_unfiltered, fputc_unfiltered): Update.
8714 (gdb_flush): Update.
8715 (emit_style_escape): Update.
8716 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8717 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8718 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8719 (stderr_file::write): Update.
8720 (stderr_file::puts): Update.
8721 * ui-file.h (ui_file_isatty, ui_file_write)
8722 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8723 (ui_file_puts): Don't declare.
8724
85f0dd3c
TV
87252020-02-10 Tom de Vries <tdevries@suse.de>
8726
8727 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8728 sentinel to char *.
8729
2e927613
TV
87302020-02-09 Tom de Vries <tdevries@suse.de>
8731
8732 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8733 filename if it matches "<artificial>".
8734
6bafc845
HD
87352020-02-09 Hannes Domani <ssbssa@yahoo.de>
8736
8737 * windows-tdep.c (struct enum_value_name): New struct.
8738 (create_enum): New function.
8739 (windows_get_siginfo_type): Create and use enum types.
8740
7928d571
HD
87412020-02-09 Hannes Domani <ssbssa@yahoo.de>
8742
8743 * NEWS: Mention $_siginfo support for Windows.
8744 * windows-nat.c (handle_exception): Set siginfo_er.
8745 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8746 (windows_xfer_siginfo): New function.
8747 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8748 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8749 (init_windows_gdbarch_data): New function.
8750 (get_windows_gdbarch_data): New function.
8751 (windows_get_siginfo_type): New function.
8752 (windows_init_abi): Register windows_get_siginfo_type.
8753 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8754
6751ebae
TT
87552020-02-08 Tom Tromey <tom@tromey.com>
8756
8757 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8758 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8759 <keep>: Declare method.
8760 <m_keep>: Remove member.
8761 <~cutu_reader>: Remove.
8762 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8763 (cutu_reader::cutu_reader): Update.
8764 (cutu_reader::keep): Rename from ~cutu_reader.
8765 (process_psymtab_comp_unit, build_type_psymtabs_1)
8766 (process_skeletonless_type_unit, load_partial_comp_unit)
8767 (load_full_comp_unit, dwarf2_read_addr_index)
8768 (read_signatured_type): Update.
8769
135f5437
TT
87702020-02-08 Tom Tromey <tom@tromey.com>
8771
8772 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8773 "want_partial_unit" parameter.
8774 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8775 Inline check for DW_TAG_partial_unit.
8776 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8777
9f66ff1c
TT
87782020-02-08 Tom Tromey <tom@tromey.com>
8779
8780 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8781 read.c.
8782 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8783 read.c.
8784
c8a7a66f
TT
87852020-02-08 Tom Tromey <tom@tromey.com>
8786
8787 * dwarf2/read.c (read_address): Move to comp-unit.c.
8788 (dwarf2_rnglists_process, dwarf2_ranges_process)
8789 (read_attribute_value, dwarf_decode_lines_1)
8790 (var_decode_location, decode_locdesc): Update.
8791 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8792 read.c. Remove "cu" parameter.
8793 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8794 method.
8795
8266302d
TT
87962020-02-08 Tom Tromey <tom@tromey.com>
8797
8798 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8799 (read_indirect_line_string): Update.
8800 * dwarf2/comp-unit.c (read_offset): Remove.
8801 (read_comp_unit_head): Update.
8802 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8803 method.
8804 (read_offset): Don't declare.
8805
4057dfde
TT
88062020-02-08 Tom Tromey <tom@tromey.com>
8807
8808 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8809 * dwarf2/read.c (struct comp_unit_head): Move to
8810 dwarf2/comp-unit.h.
8811 (enum class rcuh_kind): Move to comp-unit.h.
8812 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8813 (read_comp_unit_head, error_check_comp_unit_head)
8814 (read_and_check_comp_unit_head): Move to comp-unit.c.
8815 (read_offset, dwarf_unit_type_name): Likewise.
8816 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8817 (cutu_reader::cutu_reader, read_call_site_scope)
8818 (find_partial_die, follow_die_offset): Update.
8819 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8820
24aa364d
TT
88212020-02-08 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/read.c (read_offset_1): Move to leb.c.
8824 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8825 (dwarf_decode_macro_bytes): Update.
8826 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8827 * dwarf2/leb.h (read_offset): Declare.
8828
2c7d5afc
TT
88292020-02-08 Tom Tromey <tom@tromey.com>
8830
8831 * dwarf2/read.c (dwarf2_section_size): Remove.
8832 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8833 Update.
8834 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8835
4075cb26
TT
88362020-02-08 Tom Tromey <tom@tromey.com>
8837
8838 * dwarf2/read.c (read_initial_length): Move to leb.c.
8839 * dwarf2/leb.h (read_initial_length): Declare.
8840 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8841 handle_nonstd parameter.
8842 * dwarf2/frame.c (read_initial_length): Remove.
8843 (decode_frame_entry_1): Update.
8844
09ba997f
TT
88452020-02-08 Tom Tromey <tom@tromey.com>
8846
8847 * dwarf2/loc.c (dwarf2_find_location_expression)
8848 (dwarf_evaluate_loc_desc::get_tls_address)
8849 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8850 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8851 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8852 (dwarf2_compile_property_to_c)
8853 (dwarf2_loc_desc_get_symbol_read_needs)
8854 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8855 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8856 (loclist_describe_location, loclist_tracepoint_var_ref)
8857 (loclist_generate_c_location): Update.
8858 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8859 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8860 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8861 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8862 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8863 (dwarf2_per_cu_data::addr_size)
8864 (dwarf2_per_cu_data::ref_addr_size)
8865 (dwarf2_per_cu_data::text_offset)
8866 (dwarf2_per_cu_data::addr_type): Now methods.
8867 (per_cu_header_read_in): Make per_cu "const".
8868 (dwarf2_version): Remove.
8869 (dwarf2_per_cu_data::int_type): Now a method.
8870 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8871 (set_die_type, read_array_type, read_subrange_index_type)
8872 (read_tag_string_type, read_subrange_type): Update.
8873 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8874 offset_size, ref_addr_size, text_offset, addr_type, version,
8875 objfile, int_type, addr_sized_int_type>: Declare methods.
8876
96c738c0
TT
88772020-02-08 Tom Tromey <tom@tromey.com>
8878
8879 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8880 Move earlier.
8881
8fdd972c
TT
88822020-02-08 Tom Tromey <tom@tromey.com>
8883
8884 * dwarf2/read.h (dwarf_line_debug): Declare.
8885 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8886 * dwarf2/read.c: Move line_header code to new files.
8887 (dwarf_line_debug): No longer static.
8888 * dwarf2/line-header.c: New file.
8889 * dwarf2/line-header.h: New file.
8890
03075812
TT
88912020-02-08 Tom Tromey <tom@tromey.com>
8892
8893 * dwarf2/read.c (struct line_header) <file_full_name,
8894 file_file_name>: Return unique_xmalloc_ptr.
8895 (line_header::file_file_name): Update.
8896 (line_header::file_full_name): Update.
8897 (dw2_get_file_names_reader): Update.
8898 (macro_start_file): Update.
8899
bb822404
TT
89002020-02-08 Tom Tromey <tom@tromey.com>
8901
8902 * dwarf2/read.c (struct line_header) <file_full_name,
8903 file_file_name>: Declare methods.
8904 (dw2_get_file_names_reader): Update.
8905 (file_file_name): Now a method.
8906 (file_full_name): Likewise.
8907 (macro_start_file): Update.
8908
009b64fc
TT
89092020-02-08 Tom Tromey <tom@tromey.com>
8910
8911 * dwarf2/read.c (dwarf_always_disassemble)
8912 (show_dwarf_always_disassemble): Move to loc.c.
8913 (_initialize_dwarf2_read): Move "always-disassemble" registration
8914 to loc.c.
8915 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8916 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8917 static.
8918 (show_dwarf_always_disassemble): Move from read.c.
8919 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8920
5895093f
TT
89212020-02-08 Tom Tromey <tom@tromey.com>
8922
8923 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8924 (create_quick_file_names_table): Return htab_up.
8925 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8926 Update.
8927 * dwarf2/read.h (struct dwarf2_per_objfile)
8928 <quick_file_names_table>: Now htab_up.
8929
b3b32279
TT
89302020-02-08 Tom Tromey <tom@tromey.com>
8931
8932 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8933
1d33d811
TT
89342020-02-08 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8937 Rewrite.
8938 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8939 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8940 (abbrev_table::abbrev_table): No longer inline.
8941 (ABBREV_HASH_SIZE): Remove.
8942 (abbrev_table::m_abbrevs): Now an htab_up.
8943
86de1d91
TT
89442020-02-08 Tom Tromey <tom@tromey.com>
8945
8946 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8947 (cutu_reader): Update.
8948 (build_type_psymtabs_1): Update.
8949 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8950 (abbrev_table::alloc_abbrev): Update.
8951 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8952 (abbrev_table::read): New static method, renamed from
8953 abbrev_table_read_table.
8954 (abbrev_table::alloc_abbrev)
8955 (abbrev_table::add_abbrev): Now private.
8956 (abbrev_table::abbrev_table): Now private.
8957 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8958
0335378b
TT
89592020-02-08 Tom Tromey <tom@tromey.com>
8960
8961 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8962 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8963 htab_up.
8964
48b490f2
TT
89652020-02-08 Tom Tromey <tom@tromey.com>
8966
8967 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8968 htab_up.
8969 (lookup_dwo_unit_in_dwp): Update.
8970 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8971 on obstack.
8972
bc68fb19
TT
89732020-02-08 Tom Tromey <tom@tromey.com>
8974
8975 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8976 obstack.
8977
d15acc42
TT
89782020-02-08 Tom Tromey <tom@tromey.com>
8979
8980 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8981 line_header_hash.
8982 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8983 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8984 Change type to htab_up.
8985
eaa5fa8b
TT
89862020-02-08 Tom Tromey <tom@tromey.com>
8987
8988 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8989 htab_up. Don't allocate on obstack.
8990 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8991 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8992 Change type to htab_up.
8993
b0b6a987
TT
89942020-02-08 Tom Tromey <tom@tromey.com>
8995
8996 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8997 Change type to htab_up.
8998 * dwarf2/read.c (create_signatured_type_table_from_index)
8999 (create_signatured_type_table_from_debug_names)
9000 (create_all_type_units, add_type_unit)
9001 (lookup_dwo_signatured_type, lookup_signatured_type)
9002 (process_skeletonless_type_unit): Update.
9003 (create_debug_type_hash_table, create_debug_types_hash_table):
9004 Change type of types_htab.
9005 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9006 htab_up. Don't allocate on obstack.
9007 (create_cus_hash_table): Change type of cus_htab parameter.
9008 (struct dwo_file) <cus, tus>: Now htab_up.
9009 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9010 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9011 (queue_and_load_all_dwo_tus): Update.
9012 * dwarf2/index-write.c (write_gdbindex): Update.
9013 (write_debug_names): Update.
9014
39856def
TT
90152020-02-08 Tom Tromey <tom@tromey.com>
9016
9017 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9018 dwarf2/read.c. Remove "next" member. Add constructor ntad
9019 destructor.
9020 (struct dwarf2_per_objfile) <queue>: New member.
9021 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9022 dwarf2/read.h.
9023 (dwarf2_queue, dwarf2_queue_tail): Remove.
9024 (class dwarf2_queue_guard): Add parameter to constructor. Use
9025 DISABLE_COPY_AND_ASSIGN.
9026 <m_per_objfile>: New member.
9027 <~dwarf2_queue_guard>: Rewrite.
9028 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9029 Update.
9030 (~dwarf2_queue_item): New.
9031
3e225074
TT
90322020-02-08 Tom Tromey <tom@tromey.com>
9033
9034 * dwarf2/read.c (struct die_info) <has_children>: New member.
9035 (dw2_get_file_names_reader): Remove has_children.
9036 (dw2_get_file_names): Update.
9037 (read_cutu_die_from_dwo): Remove has_children.
9038 (cutu_reader::init_tu_and_read_dwo_dies)
9039 (cutu_reader::cutu_reader): Update.
9040 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9041 Remove has_children.
9042 (build_type_psymtabs_1, process_skeletonless_type_unit)
9043 (load_partial_comp_unit, load_full_comp_unit): Update.
9044 (create_dwo_cu_reader): Remove has_children.
9045 (create_cus_hash_table, read_die_and_children): Update.
9046 (read_full_die_1,read_full_die): Remove has_children.
9047 (read_signatured_type): Update.
9048 (class cutu_reader) <has_children>: Remove.
9049
82ca8957
TT
90502020-02-08 Tom Tromey <tom@tromey.com>
9051
9052 * dwarf2/expr.c: Rename from dwarf2expr.c.
9053 * dwarf2/expr.h: Rename from dwarf2expr.h.
9054 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9055 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9056 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9057 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9058 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9059 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9060 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9061 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9062 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9063 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9064 * dwarf2/loc.c: Rename from dwarf2loc.c.
9065 * dwarf2/loc.h: Rename from dwarf2loc.h.
9066 * dwarf2/read.c: Rename from dwarf2read.c.
9067 * dwarf2/read.h: Rename from dwarf2read.h.
9068 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9069 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9070 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9071 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9072 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9073 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9074 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9075 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9076 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9077 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9078 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9079 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9080 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9081 Update.
9082 * Makefile.in (COMMON_SFILES): Update.
9083 (HFILES_NO_SRCDIR): Update.
9084
9e35d499
TT
90852020-02-08 Tom Tromey <tom@tromey.com>
9086
9087 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9088 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9089
1eba2311
TT
90902020-02-08 Tom Tromey <tom@tromey.com>
9091
9092 * dwarf2read.h (struct die_info): Don't declare.
9093
e41c2da2
TT
90942020-02-08 Tom Tromey <tom@tromey.com>
9095
9096 * dwarf2read.h (die_info_ptr): Remove typedef.
9097
4fc6c0d5
TT
90982020-02-08 Tom Tromey <tom@tromey.com>
9099
9100 * dwarf2read.c (read_call_site_scope)
9101 (handle_data_member_location, dwarf2_add_member_fn)
9102 (mark_common_block_symbol_computed, read_common_block)
9103 (attr_to_dynamic_prop, partial_die_info::read)
9104 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9105 (dwarf2_symbol_mark_computed, set_die_type): Update.
9106 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9107 method.
9108 (attr_form_is_block): Don't declare.
9109 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9110
cd6c91b4
TT
91112020-02-08 Tom Tromey <tom@tromey.com>
9112
9113 * dwarf2read.c (dwarf2_find_base_address, )
9114 (read_call_site_scope, rust_containing_type)
9115 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9116 (handle_data_member_location, dwarf2_add_member_fn)
9117 (get_alignment, read_structure_type, process_structure_scope)
9118 (mark_common_block_symbol_computed, read_common_block)
9119 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9120 (partial_die_info::read, read_attribute_value, new_symbol)
9121 (lookup_die_type, dwarf2_get_ref_die_offset)
9122 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9123 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9124 (dwarf2_symbol_mark_computed): Update.
9125 * dwarf2/attribute.h (struct attribute) <value_as_address,
9126 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9127 methods.
9128 (value_as_address, attr_form_is_section_offset)
9129 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9130 * dwarf2/attribute.c (attribute::value_as_address)
9131 (attribute::form_is_section_offset, attribute::form_is_constant)
9132 (attribute::form_is_ref): Now methods.
9133
162dce55
TT
91342020-02-08 Tom Tromey <tom@tromey.com>
9135
9136 * dwarf2read.c (struct attribute, DW_STRING)
9137 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9138 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9139 (attr_form_is_block, attr_form_is_section_offset)
9140 (attr_form_is_constant, attr_form_is_ref): Move.
9141 * dwarf2/attribute.h: New file.
9142 * dwarf2/attribute.c: New file, from dwarf2read.c.
9143 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9144
3054dd54
TT
91452020-02-08 Tom Tromey <tom@tromey.com>
9146
9147 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9148 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9149 Move.
9150 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9151 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9152 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9153 abbrev.c.
9154 * dwarf2/abbrev.h: New file.
9155 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9156 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9157
96b79293
TT
91582020-02-08 Tom Tromey <tom@tromey.com>
9159
9160 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9161 (dwarf2_section_size, dwarf2_get_section_info)
9162 (create_signatured_type_table_from_debug_names)
9163 (create_addrmap_from_aranges, read_debug_names_from_section)
9164 (get_gdb_index_contents_from_section, read_comp_unit_head)
9165 (error_check_comp_unit_head, read_abbrev_offset)
9166 (create_debug_type_hash_table, init_cu_die_reader)
9167 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9168 (read_comp_units_from_section, create_cus_hash_table)
9169 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9170 (create_dwp_v2_section, dwarf2_rnglists_process)
9171 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9172 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9173 (read_indirect_string_from_dwz, read_addr_index_1)
9174 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9175 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9176 (fill_in_loclist_baton): Update.
9177 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9178 get_containing_section, get_bfd_owner, get_bfd_section,
9179 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9180 (dwarf2_read_section, get_section_name, get_section_file_name)
9181 (get_containing_section, get_section_bfd_owner)
9182 (get_section_bfd_section, get_section_name, get_section_file_name)
9183 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9184 declare.
9185 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9186 (dwarf2_section_info::get_bfd_owner)
9187 (dwarf2_section_info::get_bfd_section)
9188 (dwarf2_section_info::get_name)
9189 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9190 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9191 (dwarf2_section_info::read): Now methods.
9192 * dwarf-index-write.c (class debug_names): Update.
9193
2c86cff9
TT
91942020-02-08 Tom Tromey <tom@tromey.com>
9195
9196 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9197 Move to dwarf2/section.h.
9198 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9199 (get_section_bfd_section, get_section_name)
9200 (get_section_file_name, get_section_id, get_section_flags)
9201 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9202 dwarf2/section.c.
9203 * dwarf2/section.h: New file.
9204 * dwarf2/section.c: New file, from dwarf2read.c.
9205 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9206
f4382c45
TT
92072020-02-08 Tom Tromey <tom@tromey.com>
9208
9209 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9210 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9211 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9212 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9213 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9214 * dwarf2/leb.h: New file, from dwarf2read.c.
9215 * dwarf2/leb.c: New file, from dwarf2read.c.
9216 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9217 Remove.
9218 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9219 (COMMON_SFILES): Add dwarf2/leb.c.
9220
01840b7a
JB
92212020-02-08 Joel Brobecker <brobecker@adacore.com>
9222
9223 GDB 9.1 released.
9224
dfcb27e4
IB
92252020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9226
9227 PR gdb/25190:
aac66a4c
SM
9228 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9229 * gdb/remote.c (remote_console_output): Update.
9230 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9231 (ui_file_puts): ...this.
9232 * gdb/ui-file.h (ui_file_puts): Add declaration.
9233 * gdb/utils.c (emit_style_escape): Update.
9234 (flush_wrap_buffer): Update.
9235 (fputs_maybe_filtered): Update.
9236 (fputs_unfiltered): Add function.
dfcb27e4 9237
faa17681
IB
92382020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9239
aac66a4c
SM
9240 * gdb/event-loop.c (gdb_wait_for_event): Update.
9241 * gdb/printcmd.c (printf_command): Update.
9242 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9243 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9244 (gdb_os_flush_stderr): Update.
9245 * gdb/remote.c (remote_console_output): Update.
9246 * gdb/ui-file.c (gdb_flush): Rename to...
9247 (ui_file_flush): ...this.
9248 (stderr_file::write): Update.
9249 (stderr_file::puts): Update.
9250 * gdb/ui-file.h (gdb_flush): Rename to...
9251 (ui_file_flush): ...this.
9252 * gdb/utils.c (gdb_flush): Add function.
9253 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9254
5abbbe1d
TT
92552020-02-07 Tom Tromey <tromey@adacore.com>
9256
9257 PR breakpoints/24915:
9258 * source.c (find_and_open_source): Do not check basenames_may_differ.
9259
919adfe8
TT
92602020-02-07 Tom Tromey <tom@tromey.com>
9261
9262 * README: Update gdbserver documentation.
9263 * gdbserver: Move to top level.
9264 * configure.tgt (build_gdbserver): Remove.
9265 * configure.ac: Remove --enable-gdbserver.
9266 * configure: Rebuild.
9267 * Makefile.in (distclean): Don't mention gdbserver.
9268
1d5d29e7
SV
92692020-02-06 Shahab Vahedi <shahab@synopsys.com>
9270
9271 * source-cache.c (source_cache::ensure): Surround
9272 get_plain_source_lines with a try/catch.
9273 (source_cache::get_line_charpos): Get rid of try/catch
9274 and only check for the return value of "ensure".
9275 * tui/tui-source.c (tui_source_window::set_contents):
9276 Simplify "nlines" calculation.
9277
6eb1129c
SV
92782020-02-06 Shahab Vahedi <shahab@synopsys.com>
9279
9280 * MAINTAINERS (Write After Approval): Add myself.
9281
c6a42d11
CB
92822020-02-05 Christian Biesinger <cbiesinger@google.com>
9283
9284 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9285 function call.
9286
c8ecdda6
CB
92872020-02-05 Christian Biesinger <cbiesinger@google.com>
9288
9289 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9290
f6480e70
MR
92912020-02-05 Maciej W. Rozycki <macro@wdc.com>
9292
9293 * nat/riscv-linux-tdesc.h: New file.
9294 * nat/riscv-linux-tdesc.c: New file, taking code from...
9295 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9296 ... here.
9297 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9298 NATDEPFILES.
9299
dcc9fbc6
AB
93002020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9301
9302 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9303 we don't set the fake simulator ptid to the null_ptid.
9304
719546c4
SM
93052020-02-03 Simon Marchi <simon.marchi@efficios.com>
9306
9307 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9308 * gdbthread.h (class thread_info) <resumed>: Likewise.
9309 * infrun.c (resume_1): Likewise.
9310 (proceed): Likewise.
9311 (infrun_thread_stop_requested): Likewise.
9312 (stop_all_threads): Likewise.
9313 (handle_inferior_event): Likewise.
9314 (restart_threads): Likewise.
9315 (finish_step_over): Likewise.
9316 (keep_going_stepped_thread): Likewise.
9317 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9318 (linux_handle_extended_wait): Likewise.
9319 * record-btrace.c (get_thread_current_frame_id): Likewise.
9320 * record-full.c (record_full_wait_1): Likewise.
9321 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9322 * target.c (target_resume): Likewise.
9323 * thread.c (set_running_thread): Likewise.
9324
e409c542
AKS
93252020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9326
9327 * f-valprint.c (f77_print_array_1): Changed datatype of index
9328 variable to LONGEST from int to enable it to contain bound
9329 values correctly.
9330
ee98c0da
MR
93312020-02-03 Maciej W. Rozycki <macro@wdc.com>
9332
9333 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9334 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9335 offsets according to FLEN determined.
9336 (riscv_linux_nat_target::read_description): Determine FLEN
9337 dynamically.
9338 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9339 according to FLEN determined.
9340 (riscv_linux_nat_target::store_registers): Likewise.
9341
aa66aac4
SV
93422020-02-01 Shahab Vahedi <shahab@synopsys.com>
9343
9344 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9345 when reg->group is empty and reggroup is not.
9346
fd9faca8
TT
93472020-01-31 Tom Tromey <tromey@adacore.com>
9348
9349 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9350 Call beneath target's mourn_inferior after unpushing.
9351
42330a68
AB
93522020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9353
9354 PR tui/9765
9355 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9356 have enough lines to fill the screen, still return the lowest
9357 address we found.
9358
7a27a45b
AB
93592020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9360
9361 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9362 '-', '<', and '>' commands.
9363
c47f70e2
PA
93642020-01-29 Pedro Alves <palves@redhat.com>
9365 Sergio Durigan Junior <sergiodj@redhat.com>
9366
9367 * infcmd.c (construct_inferior_arguments): Assert that
9368 'argc' is greater than 0.
9369
5133a315
LM
93702020-01-29 Luis Machado <luis.machado@linaro.org>
9371
9372 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9373 (BRK_INSN_MASK): Define to 0xd4200000.
9374 (aarch64_program_breakpoint_here_p): New function.
9375 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9376 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9377 breakpoint.c.
9378 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9379 breakpoint.h
9380 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9381 call gdbarch_program_breakpoint_here_p.
9382 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9383 default_program_breakpoint_here_p, changed return type to bool and
9384 simplified.
9385 * breakpoint.h (program_breakpoint_here): Moved prototype to
9386 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9387 return type to bool.
9388 * gdbarch.c: Regenerate.
9389 * gdbarch.h: Regenerate.
9390 * gdbarch.sh (program_breakpoint_here_p): New method.
9391 * infrun.c (handle_signal_stop): Call
9392 gdbarch_program_breakpoint_here_p.
9393
168f8c6b
TT
93942020-01-26 Tom Tromey <tom@tromey.com>
9395
9396 * ctfread.c (struct ctf_fp_info): Reindent.
9397 (_initialize_ctfread): Remove.
9398
128a391f
TT
93992020-01-26 Tom Tromey <tom@tromey.com>
9400
9401 * psymtab.c (partial_map_expand_apply)
9402 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9403 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9404 (psym_print_stats, psym_expand_symtabs_for_function)
9405 (psym_map_symbol_filenames, psym_map_matching_symbols)
9406 (psym_expand_symtabs_matching)
9407 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9408 (maintenance_check_psymtabs): Use new methods.
9409 * psympriv.h (struct partial_symtab) <readin_p,
9410 get_compunit_symtab>: New methods.
9411 <readin, compunit_symtab>: Remove members.
9412 (struct standard_psymtab): New.
9413 (struct legacy_psymtab): Derive from standard_psymtab.
9414 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9415 standard_psymtab.
9416 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9417
0494dbec
TT
94182020-01-26 Tom Tromey <tom@tromey.com>
9419
9420 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9421 read_dependencies. Add assert.
9422 * psymtab.c (partial_symtab::read_dependencies): New method.
9423 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9424 method.
9425 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9426 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9427 read_dependencies.
9428 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9429 Add assert.
9430
8566b89b
TT
94312020-01-26 Tom Tromey <tom@tromey.com>
9432
9433 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9434 Call expand_psymtab.
9435 (xcoff_read_symtab): Call expand_psymtab.
9436 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9437 legacy_expand_psymtab.
9438 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9439 method.
9440 (struct legacy_psymtab) <expand_psymtab>: Implement.
9441 <legacy_expand_psymtab>: New member.
9442 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9443 (parse_partial_symbols): Set legacy_expand_psymtab.
9444 (psymtab_to_symtab_1): Change argument order. Call
9445 expand_psymtab.
9446 (new_psymtab): Set legacy_expand_psymtab.
9447 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9448 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9449 expand_psymtab.
9450 (dwarf2_psymtab::expand_psymtab): Rename from
9451 psymtab_to_symtab_1. Call expand_psymtab.
9452 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9453 (dbx_end_psymtab): Likewise.
9454 (dbx_psymtab_to_symtab_1): Change argument order. Call
9455 expand_psymtab.
9456 (dbx_read_symtab): Call expand_psymtab.
9457 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9458 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9459 (ctf_psymtab::read_symtab): Call expand_psymtab.
9460
077cbab2
TT
94612020-01-26 Tom Tromey <tom@tromey.com>
9462
9463 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9464 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9465 messages.
9466 * mdebugread.c (mdebug_read_symtab): Remove prints.
9467 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9468 assert.
9469 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9470
891813be
TT
94712020-01-26 Tom Tromey <tom@tromey.com>
9472
9473 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9474 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9475 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9476 legacy_symtab.
9477 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9478 * psymtab.c (psymtab_to_symtab): Call method.
9479 (dump_psymtab): Update.
9480 * psympriv.h (struct partial_symtab): Add virtual destructor.
9481 <read_symtab>: New method.
9482 (struct legacy_symtab): New.
9483 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9484 (struct pst_map) <pst>: Now a legacy_psymtab.
9485 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9486 (new_psymtab): Use legacy_psymtab.
9487 * dwarf2read.h (struct dwarf2_psymtab): New.
9488 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9489 * dwarf2read.c (dwarf2_create_include_psymtab)
9490 (dwarf2_build_include_psymtabs, create_type_unit_group)
9491 (create_partial_symtab, process_psymtab_comp_unit_reader)
9492 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9493 (set_partial_user): Use dwarf2_psymtab.
9494 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9495 (psymtab_to_symtab_1, process_full_comp_unit)
9496 (process_full_type_unit, dwarf2_ranges_read)
9497 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9498 (dwarf_decode_lines): Use dwarf2_psymtab.
9499 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9500 (add_address_entry_worker, write_one_signatured_type)
9501 (recursively_count_psymbols, recursively_write_psymbols)
9502 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9503 (write_debug_names): Likewise.
9504 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9505 <pst>: Now a legacy_psymtab.
9506 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9507 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9508 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9509 * ctfread.c (struct ctf_psymtab): New.
9510 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9511 ctf_psymtab.
9512 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9513 (create_partial_symtab): Return a ctf_psymtab.
9514 (scan_partial_symbols): Update.
9515
c3693a1d
TT
95162020-01-26 Tom Tromey <tom@tromey.com>
9517
9518 * xcoffread.c (xcoff_start_psymtab): Use new.
9519 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9520 renamed from start_psymtab_common.
9521 * psympriv.h (struct partial_symtab): Add new constructor.
9522 (start_psymtab_common): Don't declare.
9523 * mdebugread.c (parse_partial_symbols): Use new.
9524 * dwarf2read.c (create_partial_symtab): Use new.
9525 * dbxread.c (start_psymtab): Use new.
9526 * ctfread.c (create_partial_symtab): Use new.
9527
32caafd0
TT
95282020-01-26 Tom Tromey <tom@tromey.com>
9529
9530 * xcoffread.c (xcoff_end_psymtab): Use new.
9531 * psymtab.c (start_psymtab_common): Use new.
9532 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9533 Update.
9534 * psympriv.h (struct partial_symtab): Add parameters to
9535 constructor. Don't inline.
9536 (allocate_psymtab): Don't declare.
9537 * mdebugread.c (new_psymtab): Use new.
9538 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9539 * dbxread.c (dbx_end_psymtab): Use new.
9540
abaa2f23
TT
95412020-01-26 Tom Tromey <tom@tromey.com>
9542
9543 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9544 allocate_psymtab. Update documentation.
9545 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9546 allocate_psymtab. Do not use new.
9547 (allocate_psymtab): Use new. Update.
9548
6d94535f
TT
95492020-01-26 Tom Tromey <tom@tromey.com>
9550
9551 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9552 * psymtab.c (psym_print_stats): Update.
9553 * psympriv.h (struct partial_symtab) <readin,
9554 psymtabs_addrmap_supported, anonymous>: Now bool.
9555 * mdebugread.c (psymtab_to_symtab_1): Update.
9556 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9557 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9558 (process_full_comp_unit, process_full_type_unit): Update.
9559 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9560 * ctfread.c (psymtab_to_symtab): Update.
9561
6f17252b
TT
95622020-01-26 Tom Tromey <tom@tromey.com>
9563
9564 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9565 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9566 * psymtab.c (psymtab_storage): Delete psymtabs.
9567 (psymtab_storage::allocate_psymtab): Use new.
9568 (psymtab_storage::discard_psymtab): Use delete.
9569 * psympriv.h (struct partial_symtab): Add constructor and
9570 initializers.
9571
f6f1cebc
TT
95722020-01-26 Tom Tromey <tom@tromey.com>
9573
9574 * machoread.c: Do not include psympriv.h.
9575
e47e48f6
PW
95762020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9577
9578 * NEWS: Mention the new option and the set/show commands.
9579
a2fedca9
PW
95802020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9581
9582 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9583 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9584 (validate_exec_file): New variables, enums, functions.
9585 (exec_file_locate_attach, print_section_info): Style the filenames.
9586 (_initialize_exec): Install show_exec_file_mismatch_command and
9587 set_exec_file_mismatch_command.
9588 * gdbcore.h (validate_exec_file): Declare.
9589 * infcmd.c (attach_command): Call validate_exec_file.
9590 * remote.c ( remote_target::remote_add_inferior): Likewise.
9591
7ffa82e1
AB
95922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9593
9594 * frame.c (find_frame_sal): Move call to get_next_frame into more
9595 inner scope.
9596 * inline-frame.c (inilne_state) <inline_state>: Update argument
9597 types.
9598 (inilne_state) <skipped_symbol>: Rename to...
9599 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9600 (skip_inline_frames): Build vector of skipped symbols and use this
9601 to reate the inline_state.
9602 (inline_skipped_symbol): Add a comment and some assertions, fetch
9603 skipped symbol from the list.
9604
3d92a3e3
AB
96052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9606
9607 * buildsym.c (lte_is_less_than): Delete.
9608 (buildsym_compunit::end_symtab_with_blockvector): Create local
9609 lambda function to sort line table entries, and use
9610 std::stable_sort instead of std::sort.
9611 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9612 markers when looking for a previous line.
9613
94a72be7
AB
96142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9615
9616 * dwarf2read.c (lnp_state_machine::record_line): Include
9617 end_sequence parameter in debug print out. Record the line if we
9618 are at an end_sequence marker even if it's not the start of a
9619 statement.
9620 * symmisc.c (maintenance_print_one_line_table): Print end of
9621 sequence markers with 'END' not '0'.
9622
53af73bf
PA
96232020-01-24 Pedro Alves <palves@redhat.com>
9624
9625 PR gdb/25410
9626 * thread.c (scoped_restore_current_thread::restore): Use
9627 switch_to_inferior_no_thread.
9628 * exec.c: Include "progspace-and-thread.h".
9629 (add_target_sections, remove_target_sections):
9630 scoped_restore_current_pspace_and_thread instead of
9631 scoped_restore_current_thread.
9632 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9633 and aspace to the inferior before calling clone_program_space.
9634 Remove stale comment.
9635
3050c6f4
CB
96362020-01-24 Christian Biesinger <cbiesinger@google.com>
9637
9638 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9639 (arm_netbsd_nat_target::fetch_registers): ...this.
9640 (arm_nbsd_nat_target::store_registers): Rename to...
9641 (arm_netbsd_nat_target::store_registers): ...this.
9642
73685c7e
CB
96432020-01-24 Christian Biesinger <cbiesinger@google.com>
9644
9645 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9646 register_t.
9647
89203d40
CB
96482020-01-24 Christian Biesinger <cbiesinger@google.com>
9649
9650 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9651 Update comment.
9652 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9653 Likewise.
9654 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9655 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9656 the correct replacement (iterate_over_regset_sections).
9657 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9658 Update comment.
9659
1ba1ac88
AB
96602020-01-24 Graham Markall <graham.markall@embecosm.com>
9661
9662 PR gdb/23718
9663 * gdb/python/python.c (execute_gdb_command): Call
9664 async_enable_stdin in catch block.
9665
f3364a6d
AB
96662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9667
9668 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9669 SWITCH_THRU_ALL_UIS.
9670
733d0a67
AB
96712020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9672
9673 PR tui/9765
9674 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9675 comment, add extra parameter, and update to store previous symbol
9676 when appropriate.
9677 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9678 add extra parameter.
9679 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9680 remove unneeded parameter, add try/catch around gdb_print_insn,
9681 rewrite to add items to asm_lines vector.
9682 (tui_find_backward_disassembly_start_address): New function.
9683 (tui_find_disassembly_address): Updated throughout.
9684 (tui_disasm_window::set_contents): Update for changes to
9685 tui_disassemble.
9686 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9687 number of lines to scroll.
9688
b3b3bada
SM
96892020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9690
9691 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9692 (SECT_OFF_DATA): Likewise.
9693 (SECT_OFF_RODATA): Likewise.
9694 (SECT_OFF_TEXT): Likewise.
9695 (SECT_OFF_BSS): Likewise.
9696 (struct objfile) <text_section_offset, data_section_offset>: New
9697 methods.
9698 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9699 objfile::text_section_offset.
9700 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9701 * coffread.c (coff_symtab_read): Likewise.
9702 (enter_linenos): Likewise.
9703 (process_coff_symbol): Likewise.
9704 * ctfread.c (get_objfile_text_range): Likewise.
9705 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9706 Use objfile::data_section_offset.
9707 * dwarf2-frame.c (execute_cfa_program): Use
9708 objfile::text_section_offset.
9709 (dwarf2_frame_find_fde): Likewise.
9710 * dwarf2read.c (create_addrmap_from_index): Likewise.
9711 (create_addrmap_from_aranges): Likewise.
9712 (dw2_find_pc_sect_compunit_symtab): Likewise.
9713 (process_psymtab_comp_unit_reader): Likewise.
9714 (add_partial_symbol): Likewise.
9715 (add_partial_subprogram): Likewise.
9716 (process_full_comp_unit): Likewise.
9717 (read_file_scope): Likewise.
9718 (read_func_scope): Likewise.
9719 (read_lexical_block_scope): Likewise.
9720 (read_call_site_scope): Likewise.
9721 (dwarf2_rnglists_process): Likewise.
9722 (dwarf2_ranges_process): Likewise.
9723 (dwarf2_ranges_read): Likewise.
9724 (dwarf_decode_lines_1): Likewise.
9725 (new_symbol): Likewise.
9726 (dwarf2_fetch_die_loc_sect_off): Likewise.
9727 (dwarf2_per_cu_text_offset): Likewise.
9728 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9729 * hppa-tdep.c (read_unwind_info): Likewise.
9730 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9731 * psympriv.h (struct partial_symtab): Likewise.
9732 * psymtab.c (find_pc_sect_psymtab): Likewise.
9733 * solib-svr4.c (enable_break): Likewise.
9734 * stap-probe.c (relocate_address): Use
9735 objfile::data_section_offset.
9736 * xcoffread.c (enter_line_range): Use
9737 objfile::text_section_offset.
9738 (read_xcoff_symtab): Likewise.
9739
ab53f382
SM
97402020-01-23 Simon Marchi <simon.marchi@efficios.com>
9741
9742 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9743 declaration to narrower scopes.
9744
e7eee665
SM
97452020-01-23 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * darwin-nat.h (struct darwin_exception_msg, enum
9748 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9749 Move up.
9750 (class darwin_nat_target) <wait_1, check_new_threads,
9751 decode_exception_message, decode_message, stop_inferior,
9752 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9753 * darwin-nat.c (darwin_check_new_threads): Rename to...
9754 (darwin_nat_target::check_new_threads): ... this.
9755 (darwin_suspend_inferior_it): Remove.
9756 (darwin_decode_exception_message): Rename to...
9757 (darwin_nat_target::decode_exception_message): ... this.
9758 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9759 (darwin_decode_message): Rename to...
9760 (darwin_nat_target::decode_message): ... this.
9761 (cancel_breakpoint): Rename to...
9762 (darwin_nat_target::cancel_breakpoint): ... this.
9763 (darwin_wait): Rename to...
9764 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9765 instead of iterate_over_inferiors.
9766 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9767 (darwin_stop_inferior): Rename to...
9768 (darwin_nat_target::stop_inferior): ... this.
9769 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9770 (darwin_init_thread_list): Rename to...
9771 (darwin_nat_target::init_thread_list): ... this.
9772 (darwin_ptrace_him): Rename to...
9773 (darwin_nat_target::ptrace_him): ... this.
9774 (darwin_nat_target::create_inferior): Pass lambda function to
9775 fork_inferior.
9776 (darwin_nat_target::detach): Call stop_inferior instead of
9777 darwin_stop_inferior.
9778 * fork-inferior.h (fork_inferior): Change init_trace_fun
9779 parameter to gdb::function_view.
9780 * fork-inferior.c (fork_inferior): Likewise.
9781
c162ed3e
HD
97822020-01-23 Hannes Domani <ssbssa@yahoo.de>
9783
9784 * i386-cygwin-tdep.c (core_process_module_section): Update.
9785 * windows-nat.c (struct lm_info_windows): Add text_offset.
9786 (windows_xfer_shared_libraries): Update.
9787 * windows-tdep.c (windows_xfer_shared_library):
9788 Add text_offset_cached argument.
9789 * windows-tdep.h (windows_xfer_shared_library): Update.
9790
a1237872
SM
97912020-01-21 Simon Marchi <simon.marchi@efficios.com>
9792
9793 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9794
b3ee6dd9
SM
97952020-01-21 Simon Marchi <simon.marchi@efficios.com>
9796
9797 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9798 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9799 replace with range-based for.
9800 (gdbsim_interrupt_inferior): Remove.
9801 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9802 with a range-based for. Inline code from
9803 gdbsim_interrupt_inferior.
9804
f9fac3c8
SM
98052020-01-21 Simon Marchi <simon.marchi@efficios.com>
9806
9807 * infrun.c (proceed): Fix indentation.
9808
f6474de9
TT
98092020-01-21 Tom Tromey <tromey@adacore.com>
9810
9811 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9812 * python/python.c (python_extension_ops): Update.
9813 (gdbpy_colorize): New function.
9814 * python/lib/gdb/__init__.py (colorize): New function.
9815 * extension.h (ext_lang_colorize): Declare.
9816 * extension.c (ext_lang_colorize): New function.
9817 * extension-priv.h (struct extension_language_ops) <colorize>: New
9818 member.
9819 * cli/cli-style.c (_initialize_cli_style): Update help text.
9820
f0c702d4
LM
98212020-01-21 Luis Machado <luis.machado@linaro.org>
9822
9823 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9824 <cond>: Change type to bool.
9825 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9826 (aarch64_displaced_step_cb): Likewise.
9827 (aarch64_displaced_step_tb): Likewise.
9828
1ab139e5
LM
98292020-01-21 Luis Machado <luis.machado@linaro.org>
9830
9831 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9832 output.
9833
0c271889
LM
98342020-01-21 Luis Machado <luis.machado@linaro.org>
9835
9836 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9837 <pc_adjust>: Adjust the documentation.
9838 (aarch64_displaced_step_fixup): Check if PC really moved before
9839 adjusting it.
9840
4d89c1c7
TT
98412020-01-19 Tom Tromey <tom@tromey.com>
9842
9843 * disasm.c (~gdb_disassembler): New destructor.
9844 (gdb_buffered_insn_length): Call disassemble_free_target.
9845 * disasm.h (class gdb_disassembler): Declare destructor. Use
9846 DISABLE_COPY_AND_ASSIGN.
9847
c0ab21c2
TT
98482020-01-19 Tom Tromey <tom@tromey.com>
9849
9850 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9851 (die_reader_func_ftype): Remove.
9852 (cutu_reader): New class.
9853 (dw2_get_file_names_reader): Remove "data" parameter.
9854 (dw2_get_file_names): Use cutu_reader.
9855 (create_debug_type_hash_table): Update.
9856 (read_cutu_die_from_dwo): Update comment.
9857 (lookup_dwo_unit): Add dwo_name parameter.
9858 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9859 die_reader_func_ftype and data parameters.
9860 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9861 Remove die_reader_func_ftype and data parameters.
9862 (~cutu_reader): New; from init_cutu_and_read_dies.
9863 (cutu_reader::cutu_reader): Rename from
9864 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9865 and data parameters.
9866 (init_cutu_and_read_dies_simple): Remove.
9867 (struct process_psymtab_comp_unit_data): Remove.
9868 (process_psymtab_comp_unit_reader): Remove data parameter; add
9869 want_partial_unit and pretend_language parameters.
9870 (process_psymtab_comp_unit): Use cutu_reader.
9871 (build_type_psymtabs_reader): Remove data parameter.
9872 (build_type_psymtabs_1): Use cutu_reader.
9873 (process_skeletonless_type_unit): Likewise.
9874 (load_partial_comp_unit_reader): Remove.
9875 (load_partial_comp_unit): Use cutu_reader.
9876 (load_full_comp_unit_reader): Remove.
9877 (load_full_comp_unit): Use cutu_reader.
9878 (struct create_dwo_cu_data): Remove.
9879 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9880 dwo_unit parameters.
9881 (create_cus_hash_table): Use cutu_reader.
9882 (struct dwarf2_read_addr_index_data): Remove.
9883 (dwarf2_read_addr_index_reader): Remove.
9884 (dwarf2_read_addr_index): Use cutu_reader.
9885 (read_signatured_type_reader): Remove.
9886 (read_signatured_type): Use cutu_reader.
9887
45bbae5c
TT
98882020-01-19 Tom Tromey <tom@tromey.com>
9889
9890 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9891 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9892 (tui_wrefresh): Declare.
9893 * tui/tui-wingeneral.c (suppress_output): New global.
9894 (tui_suppress_output, ~tui_suppress_output): New constructor and
9895 destructor.
9896 (tui_wrefresh): New function.
9897 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9898 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9899 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9900 method.
9901 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9902 tui_wrefresh.
9903 (tui_data_window::no_refresh): New method.
9904 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9905 (tui_reg_command): Use tui_suppress_output
9906 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9907 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9908 method.
9909 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9910
4f13c1c0
TT
99112020-01-19 Tom Tromey <tom@tromey.com>
9912
9913 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9914 Handle case where symtab is null.
9915
fa47e446
SM
99162020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9917
9918 * linux-fork.c (one_fork_p): Simplify.
9919
26f42329
SM
99202020-01-17 Simon Marchi <simon.marchi@efficios.com>
9921
9922 * top.c (struct qt_args): Remove.
9923 (kill_or_detach): Change return type to void, replace `void *`
9924 parameter with a proper one.
9925 (print_inferior_quit_action): Likewise.
9926 (quit_confirm): Use range-based for loop to iterate over inferiors.
9927 (quit_force): Likewise.
9928
a9ac81b1
SM
99292020-01-17 Simon Marchi <simon.marchi@efficios.com>
9930
9931 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9932 `void *` parameter with proper parameters.
9933 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9934 (print_one_inferior): Change return type to void, replace `void *`
9935 parameter with proper parameters.
9936 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9937 inferiors.
9938 (get_other_inferior): Remove.
9939 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9940 inferiors.
9941
788eca49
SM
99422020-01-17 Simon Marchi <simon.marchi@efficios.com>
9943
9944 * mi/mi-interp.c (report_initial_inferior): Remove.
9945 (mi_interp::init): Use range-based for to iterate over inferiors.
9946
d9bc85b6
SM
99472020-01-17 Simon Marchi <simon.marchi@efficios.com>
9948
9949 * python/py-inferior.c (build_inferior_list): Remove.
9950 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9951
40c94099
CB
99522020-01-16 Christian Biesinger <cbiesinger@google.com>
9953
9954 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9955 (btrace_stitch_trace): Likewise.
9956 * charset.c (intermediate_encoding): Likewise (vaild).
9957 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9958 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9959 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9960
e0cdfe3c
HD
99612020-01-16 Hannes Domani <ssbssa@yahoo.de>
9962
9963 * windows-tdep.c (windows_get_tlb_type):
9964 Add rtl_user_process_parameters type.
9965
790f1718 99662020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9967 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9968
9969 PR build/24805
9970 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9971 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9972 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9973 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9974 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9975 (ps_plog): Redeclare exported functions with default visibility.
9976
3112ed97
NA
99772020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9978
9979 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9980 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9981
8dc3273e
SM
99822020-01-15 Simon Marchi <simon.marchi@efficios.com>
9983
9984 * infcmd.c (post_create_inferior): Use get_thread_regcache
9985 instead of get_current_regcache.
9986
ff47f4f0
TT
99872020-01-14 Tom Tromey <tom@tromey.com>
9988
9989 PR symtab/12535:
9990 * python/python.c (gdbpy_decode_line): Treat empty string the same
9991 as no argument.
9992
975f45b7
TT
99932020-01-14 Tom Tromey <tom@tromey.com>
9994
9995 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9996
25e57356
TT
99972020-01-14 Tom Tromey <tom@tromey.com>
9998
9999 * nat/linux-btrace.c: Don't include <config.h>.
10000 * nat/linux-ptrace.c: Don't include <config.h>.
10001 * nat/x86-linux-dregs.c: Don't include <config.h>.
10002
05ea2a05
TT
100032020-01-14 Tom Tromey <tom@tromey.com>
10004
10005 * configure: Rebuild.
10006 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10007
01027315
TT
100082020-01-14 Tom Tromey <tom@tromey.com>
10009
10010 * nat/x86-linux-dregs.c: Include configh.h.
10011 * nat/linux-ptrace.c: Include configh.h.
10012 * nat/linux-btrace.c: Include configh.h.
10013 * defs.h: Include config.h, bfd.h.
10014 * configure.ac: Don't source common.host.
10015 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10016 * configure: Rebuild.
10017 * acinclude.m4: Update path.
10018 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10019 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10020 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10021 (CLIBS): Add LIBSUPPORT.
10022 (CDEPS): Likewise.
10023 (COMMON_SFILES): Remove gdbsupport files.
10024 (HFILES_NO_SRCDIR): Likewise.
10025 (stamp-version): Update path to create-version.sh.
10026 (ALLDEPFILES): Remove gdbsupport files.
10027
b2ceabe8
TT
100282020-01-14 Tom Tromey <tom@tromey.com>
10029
10030 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10031 USE_WIN32API when needed.
10032 * configure.ac (USE_WIN32API): Don't define.
10033 (WIN32LIBS): Use WIN32APILIBS.
10034 * configure: Rebuild.
10035
25c51f71
TT
100362020-01-14 Tom Tromey <tom@tromey.com>
10037
10038 * configure: Rebuild.
10039 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10040
717c684d
BE
100412020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10042
10043 * skip.c (skip_function_command): Make skip w/o arguments use the
10044 name of the inlined function if pc is inside any inlined function.
10045
7da6a5b9
LM
100462020-01-14 Luis Machado <luis.machado@linaro.org>
10047
10048 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10049 * infrun.c (resume_1): Likewise.
10050 (handle_inferior_event): Remove stale comment.
10051 * linux-nat.c (linux_nat_target::resume): Update comments.
10052 (save_stop_reason): Likewise.
10053 (linux_nat_filter_event): Likewise.
10054 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10055
44e4c775
AB
100562020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10057
10058 * elfread.c (record_minimal_symbol): Set section index to 0 for
10059 non-allocatable sections.
10060
18a8505e
AT
10061
100622020-01-13 Ali Tamur <tamur@google.com>
10063
10064 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10065 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10066 to gdb::optional. Update comments.
10067 (dwo_file): Update comments.
10068 (read_attribute): Update API to take an additional out parameter,
10069 need_reprocess. This is used to mark attributes that need other
10070 attributes (e.g. str_offsets_base) for correct computation which may not
10071 have been read yet.
10072 (read_attribute_reprocess): New function declaration.
10073 (read_addr_index): Likewise.
10074 (read_dwo_str_index): Likewise.
10075 (read_stub_str_index): Likewise.
10076 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10077 (lookup_addr_base): New function definition.
10078 (lookup_ranges_base): Likewise.
10079 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10080 lookup_ranges_base.
10081 (init_cutu_and_read_dies): Update comments.
10082 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10083 unit. This is used to inherit parent's str_offsets_base and addr_base.
10084 Update comments.
10085 (init_cutu_and_read_dies_simple): Reflect API changes.
10086 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10087 (create_cus_hash_table): Change API to take parent compile unit.
10088 Reflect API changes.
10089 (open_and_init_dwo_file): Reflect API changes.
10090 (dwarf2_get_pc_bounds): Update comments.
10091 (dwarf2_record_block_ranges): Likewise.
10092 (read_full_die_1): Change implementation to reprocess attributes that
10093 need str_offsets_base and addr_base.
10094 (partial_die_info::read): Likewise.
10095 (read_attribute_reprocess): New function definition.
10096 (read_attribute_value): Change API to take an additional out parameter,
10097 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10098 when a non-dwo compile unit has index based attributes.
10099 (read_attribute): Reflect API changes.
10100 (read_addr_index_1): Reflect API changes. Update comments.
10101 (dwarf2_read_addr_index_data): Reflect API changes.
10102 (dwarf2_read_addr_index): Likewise.
10103 (read_str_index): Change API and implementation. This becomes a helper
10104 to be used by the new string index related methods. Update error
10105 message and comments.
10106 (read_dwo_str_index): New function definition.
10107 (read_stub_str_index): Likewise.
10108 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10109 * symfile.h (dwarf2_debug_sections): Likewise.
10110 * xcoffread.c (dwarf2_debug_sections): Likewise.
10111
0cac9354
SM
101122020-01-13 Simon Marchi <simon.marchi@efficios.com>
10113
10114 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10115 core_reg_sect type to gdb_byte *.
10116 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10117 * cris-tdep.c (fetch_core_registers): Likewise.
10118 * corelow.c (core_target::get_core_register_section): Change
10119 type of `contents` to gdb::byte_vector.
10120
9a6d629c
AB
101212020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10122
10123 * tui/tui-wingeneral.c (box_win): Position the title in the center
10124 of the border.
10125
d8b2f9e3
SM
101262020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10127
10128 * corelow.c (core_target::get_core_register_section): Use
10129 std::vector instead of alloca.
10130
bb564c58
SM
101312020-01-13 Simon Marchi <simon.marchi@efficios.com>
10132
10133 * warning.m4: Add -Wmissing-declarations to build_warnings.
10134 * configure: Re-generate.
10135
6b366111
SM
101362020-01-13 Simon Marchi <simon.marchi@efficios.com>
10137
10138 * python/python.c (init__gdb_module): Add declaration.
10139
6c265988
SM
101402020-01-13 Simon Marchi <simon.marchi@efficios.com>
10141
10142 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10143 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10144 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10145 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10146 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10147 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10148 * ada-exp.y (_initialize_ada_exp): Add declaration.
10149 * ada-lang.c (_initialize_ada_language): Add declaration.
10150 * ada-tasks.c (_initialize_tasks): Add declaration.
10151 * agent.c (_initialize_agent): Add declaration.
10152 * aix-thread.c (_initialize_aix_thread): Add declaration.
10153 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10154 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10155 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10156 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10157 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10158 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10159 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10160 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10161 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10162 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10163 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10164 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10165 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10166 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10167 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10168 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10169 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10170 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10171 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10172 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10173 * annotate.c (_initialize_annotate): Add declaration.
10174 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10175 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10176 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10177 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10178 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10179 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10180 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10181 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10182 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10183 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10184 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10185 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10186 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10187 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10188 * auto-load.c (_initialize_auto_load): Add declaration.
10189 * auxv.c (_initialize_auxv): Add declaration.
10190 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10191 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10192 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10193 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10194 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10195 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10196 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10197 * breakpoint.c (_initialize_breakpoint): Add declaration.
10198 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10199 * btrace.c (_initialize_btrace): Add declaration.
10200 * charset.c (_initialize_charset): Add declaration.
10201 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10202 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10203 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10204 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10205 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10206 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10207 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10208 * coffread.c (_initialize_coffread): Add declaration.
10209 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10210 * compile/compile.c (_initialize_compile): Add declaration.
10211 * complaints.c (_initialize_complaints): Add declaration.
10212 * completer.c (_initialize_completer): Add declaration.
10213 * copying.c (_initialize_copying): Add declaration.
10214 * corefile.c (_initialize_core): Add declaration.
10215 * corelow.c (_initialize_corelow): Add declaration.
10216 * cp-abi.c (_initialize_cp_abi): Add declaration.
10217 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10218 * cp-support.c (_initialize_cp_support): Add declaration.
10219 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10220 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10221 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10222 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10223 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10224 * ctfread.c (_initialize_ctfread): Add declaration.
10225 * d-lang.c (_initialize_d_language): Add declaration.
10226 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10227 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10228 * dbxread.c (_initialize_dbxread): Add declaration.
10229 * dcache.c (_initialize_dcache): Add declaration.
10230 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10231 * disasm.c (_initialize_disasm): Add declaration.
10232 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10233 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10234 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10235 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10236 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10237 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10238 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10239 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10240 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10241 * elfread.c (_initialize_elfread): Add declaration.
10242 * exec.c (_initialize_exec): Add declaration.
10243 * extension.c (_initialize_extension): Add declaration.
10244 * f-lang.c (_initialize_f_language): Add declaration.
10245 * f-valprint.c (_initialize_f_valprint): Add declaration.
10246 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10247 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10248 * filesystem.c (_initialize_filesystem): Add declaration.
10249 * findcmd.c (_initialize_mem_search): Add declaration.
10250 * findvar.c (_initialize_findvar): Add declaration.
10251 * fork-child.c (_initialize_fork_child): Add declaration.
10252 * frame-base.c (_initialize_frame_base): Add declaration.
10253 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10254 * frame.c (_initialize_frame): Add declaration.
10255 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10256 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10257 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10258 * gcore.c (_initialize_gcore): Add declaration.
10259 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10260 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10261 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10262 * gdbarch.c (_initialize_gdbarch): Add declaration.
10263 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10264 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10265 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10266 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10267 * go-lang.c (_initialize_go_language): Add declaration.
10268 * go32-nat.c (_initialize_go32_nat): Add declaration.
10269 * guile/guile.c (_initialize_guile): Add declaration.
10270 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10271 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10272 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10273 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10274 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10275 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10276 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10277 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10278 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10279 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10280 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10281 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10282 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10283 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10284 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10285 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10286 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10287 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10288 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10289 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10290 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10291 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10292 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10293 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10294 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10295 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10296 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10297 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10298 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10299 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10300 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10301 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10302 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10303 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10304 * infcall.c (_initialize_infcall): Add declaration.
10305 * infcmd.c (_initialize_infcmd): Add declaration.
10306 * inflow.c (_initialize_inflow): Add declaration.
10307 * infrun.c (_initialize_infrun): Add declaration.
10308 * interps.c (_initialize_interpreter): Add declaration.
10309 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10310 * jit.c (_initialize_jit): Add declaration.
10311 * language.c (_initialize_language): Add declaration.
10312 * linux-fork.c (_initialize_linux_fork): Add declaration.
10313 * linux-nat.c (_initialize_linux_nat): Add declaration.
10314 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10315 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10316 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10317 * m2-lang.c (_initialize_m2_language): Add declaration.
10318 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10319 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10320 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10321 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10322 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10323 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10324 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10325 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10326 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10327 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10328 * machoread.c (_initialize_machoread): Add declaration.
10329 * macrocmd.c (_initialize_macrocmd): Add declaration.
10330 * macroscope.c (_initialize_macroscope): Add declaration.
10331 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10332 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10333 * maint.c (_initialize_maint_cmds): Add declaration.
10334 * mdebugread.c (_initialize_mdebugread): Add declaration.
10335 * memattr.c (_initialize_mem): Add declaration.
10336 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10337 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10338 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10339 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10340 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10341 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10342 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10343 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10344 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10345 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10346 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10347 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10348 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10349 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10350 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10351 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10352 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10353 * mipsread.c (_initialize_mipsread): Add declaration.
10354 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10355 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10356 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10357 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10358 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10359 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10360 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10361 * nto-procfs.c (_initialize_procfs): Add declaration.
10362 * objc-lang.c (_initialize_objc_language): Add declaration.
10363 * observable.c (_initialize_observer): Add declaration.
10364 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10365 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10366 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10367 * osabi.c (_initialize_gdb_osabi): Add declaration.
10368 * osdata.c (_initialize_osdata): Add declaration.
10369 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10370 * parse.c (_initialize_parse): Add declaration.
10371 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10372 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10373 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10374 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10375 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10376 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10377 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10378 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10379 * printcmd.c (_initialize_printcmd): Add declaration.
10380 * probe.c (_initialize_probe): Add declaration.
10381 * proc-api.c (_initialize_proc_api): Add declaration.
10382 * proc-events.c (_initialize_proc_events): Add declaration.
10383 * proc-service.c (_initialize_proc_service): Add declaration.
10384 * procfs.c (_initialize_procfs): Add declaration.
10385 * producer.c (_initialize_producer): Add declaration.
10386 * psymtab.c (_initialize_psymtab): Add declaration.
10387 * python/python.c (_initialize_python): Add declaration.
10388 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10389 * record-btrace.c (_initialize_record_btrace): Add declaration.
10390 * record-full.c (_initialize_record_full): Add declaration.
10391 * record.c (_initialize_record): Add declaration.
10392 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10393 * regcache.c (_initialize_regcache): Add declaration.
10394 * reggroups.c (_initialize_reggroup): Add declaration.
10395 * remote-notif.c (_initialize_notif): Add declaration.
10396 * remote-sim.c (_initialize_remote_sim): Add declaration.
10397 * remote.c (_initialize_remote): Add declaration.
10398 * reverse.c (_initialize_reverse): Add declaration.
10399 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10400 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10401 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10402 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10403 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10404 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10405 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10406 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10407 Add declaration.
10408 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10409 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10410 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10411 * rust-exp.y (_initialize_rust_exp): Add declaration.
10412 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10413 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10414 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10415 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10416 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10417 * score-tdep.c (_initialize_score_tdep): Add declaration.
10418 * ser-go32.c (_initialize_ser_dos): Add declaration.
10419 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10420 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10421 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10422 * ser-uds.c (_initialize_ser_socket): Add declaration.
10423 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10424 * serial.c (_initialize_serial): Add declaration.
10425 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10426 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10427 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10428 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10429 * skip.c (_initialize_step_skip): Add declaration.
10430 * sol-thread.c (_initialize_sol_thread): Add declaration.
10431 * solib-aix.c (_initialize_solib_aix): Add declaration.
10432 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10433 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10434 * solib-frv.c (_initialize_frv_solib): Add declaration.
10435 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10436 * solib-target.c (_initialize_solib_target): Add declaration.
10437 * solib.c (_initialize_solib): Add declaration.
10438 * source-cache.c (_initialize_source_cache): Add declaration.
10439 * source.c (_initialize_source): Add declaration.
10440 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10441 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10442 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10443 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10444 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10445 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10446 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10447 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10448 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10449 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10450 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10451 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10452 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10453 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10454 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10455 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10456 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10457 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10458 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10459 * stabsread.c (_initialize_stabsread): Add declaration.
10460 * stack.c (_initialize_stack): Add declaration.
10461 * stap-probe.c (_initialize_stap_probe): Add declaration.
10462 * std-regs.c (_initialize_frame_reg): Add declaration.
10463 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10464 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10465 * symfile.c (_initialize_symfile): Add declaration.
10466 * symmisc.c (_initialize_symmisc): Add declaration.
10467 * symtab.c (_initialize_symtab): Add declaration.
10468 * target.c (_initialize_target): Add declaration.
10469 * target-connection.c (_initialize_target_connection): Add
10470 declaration.
10471 * target-dcache.c (_initialize_target_dcache): Add declaration.
10472 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10473 * thread.c (_initialize_thread): Add declaration.
10474 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10475 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10476 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10477 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10478 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10479 * tracectf.c (_initialize_ctf): Add declaration.
10480 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10481 * tracefile.c (_initialize_tracefile): Add declaration.
10482 * tracepoint.c (_initialize_tracepoint): Add declaration.
10483 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10484 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10485 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10486 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10487 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10488 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10489 * tui/tui.c (_initialize_tui): Add declaration.
10490 * typeprint.c (_initialize_typeprint): Add declaration.
10491 * ui-style.c (_initialize_ui_style): Add declaration.
10492 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10493 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10494 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10495 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10496 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10497 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10498 * unittests/filtered_iterator-selftests.c
10499 (_initialize_filtered_iterator_selftests): Add declaration.
10500 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10501 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10502 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10503 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10504 * unittests/main-thread-selftests.c
10505 (_initialize_main_thread_selftests): Add declaration.
10506 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10507 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10508 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10509 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10510 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10511 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10512 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10513 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10514 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10515 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10516 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10517 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10518 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10519 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10520 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10521 declaration.
10522 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10523 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10524 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10525 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10526 * user-regs.c (_initialize_user_regs): Add declaration.
10527 * utils.c (_initialize_utils): Add declaration.
10528 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10529 * valops.c (_initialize_valops): Add declaration.
10530 * valprint.c (_initialize_valprint): Add declaration.
10531 * value.c (_initialize_values): Add declaration.
10532 * varobj.c (_initialize_varobj): Add declaration.
10533 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10534 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10535 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10536 * windows-nat.c (_initialize_windows_nat): Add declaration.
10537 (_initialize_check_for_gdb_ini): Add declaration.
10538 (_initialize_loadable): Add declaration.
10539 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10540 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10541 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10542 * xcoffread.c (_initialize_xcoffread): Add declaration.
10543 * xml-support.c (_initialize_xml_support): Add declaration.
10544 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10545 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10546 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10547 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10548
e2de1eec
SM
105492020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10550
10551 * regformats/regdat.sh: Generate declaration for init function.
10552
e0037b4c
SM
105532020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10554
10555 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10556 up.
10557 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10558 close_one_inferior>: New methods.
10559 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10560 pass down target to find_inferior_pid.
10561 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10562 Pass down target to find_inferior_ptid.
10563 (gdbsim_target::create_inferior): Pass down target to
10564 add_thread_silent.
10565 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10566 target down to find_inferior_ptid and switch_to_thread.
10567 (gdbsim_target::close): Update to call close_one_inferior.
10568 (struct resume_data): Remove.
10569 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10570 directly, rather than through a void pointer.
10571 (gdbsim_target::resume): Update to call resume_one_inferior.
10572
58920b5b
SM
105732020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10574
10575 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10576
4ec89149
PA
105772020-01-12 Pedro Alves <palves@redhat.com>
10578
10579 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10580 directly for the current inferior instead of
10581 discard_all_inferiors.
10582 (discard_all_inferiors): Delete.
10583
7c392d1d
TT
105842020-01-11 Tom Tromey <tom@tromey.com>
10585
10586 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10587 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10588 deprecated_safe_get_selected_frame.
10589
d9ebdab7
TBA
105902020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10591
10592 * inferior.c (print_inferior): Switch inferior before printing it.
10593
f3c469b9
PA
105942020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10595 Pedro Alves <palves@redhat.com>
10596
10597 * progspace-and-thread.c (switch_to_program_space_and_thread):
10598 Assert there's an inferior for PSPACE. Use
10599 switch_to_inferior_no_thread to switch the inferior too.
10600 * progspace.c (program_space::~program_space): Call
10601 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10602 (program_space::free_all_objfiles): Don't call clear_symtab_users
10603 here.
10604 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10605
65c574f6
PA
106062020-01-10 Pedro Alves <palves@redhat.com>
10607
10608 * NEWS: Mention multi-target debugging, "info connections", and
10609 "add-inferior -no-connection".
10610
2f4fcf00
PA
106112020-01-10 Pedro Alves <palves@redhat.com>
10612
10613 * infrun.c: Include "target-connection.h".
10614 (check_multi_target_resumption): New.
10615 (proceed): Call it.
10616 * target-connection.c (make_target_connection_string): Make
10617 extern.
10618 * target-connection.h (make_target_connection_string): Declare.
10619
121b3efd
PA
106202020-01-10 Pedro Alves <palves@redhat.com>
10621
10622 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10623 * inferior.c (uiout_field_connection): New function.
10624 (print_inferior): Add new "connection-id" column.
10625 (add_inferior_command): Show connection number/string of added
10626 inferior.
10627 * process-stratum-target.h
10628 (process_stratum_target::connection_string): New virtual method.
10629 (process_stratum_target::connection_number): New field.
10630 * remote.c (remote_target::connection_string): New override.
10631 * target-connection.c: New file.
10632 * target-connection.h: New file.
10633 * target.c (decref_target): Remove process_stratum targets from
10634 the connection list.
10635 (target_stack::push): Add process_stratum targets to the
10636 connection list.
10637
4f837581
PA
106382020-01-10 Pedro Alves <palves@redhat.com>
10639
10640 Revert:
10641 2016-04-12 Pedro Alves <palves@redhat.com>
10642 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10643 Remove references to name.
10644 * serial.h (struct serial) <name>: Delete.
10645
f4ec508e
PA
106462020-01-10 Pedro Alves <palves@redhat.com>
10647
10648 * gdbarch-selftests.c (register_to_value_test): Remove "target
10649 already pushed" check.
10650
5b6d1e4f
PA
106512020-01-10 Pedro Alves <palves@redhat.com>
10652 John Baldwin <jhb@FreeBSD.org>
10653
10654 * aarch64-linux-nat.c
10655 (aarch64_linux_nat_target::thread_architecture): Adjust.
10656 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10657 (task_command_1): Likewise.
10658 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10659 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10660 (aix_thread_target::store_registers)
10661 (aix_thread_target::thread_alive): Adjust.
10662 * amd64-fbsd-tdep.c: Include "inferior.h".
10663 (amd64fbsd_get_thread_local_address): Pass down target.
10664 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10665 thread's gdbarch instead of target_gdbarch.
10666 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10667 get_last_target_status.
10668 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10669 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10670 inferiors.
10671 (update_inserted_breakpoint_locations): Skip if inferiors with no
10672 execution.
10673 (update_global_location_list): When handling moribund locations,
10674 find representative inferior for location's pspace, and use thread
10675 count of its process_stratum target.
10676 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10677 * bsd-uthread.c (bsd_uthread_target::wait): Use
10678 as_process_stratum_target and adjust thread_change_ptid and
10679 add_thread calls.
10680 (bsd_uthread_target::update_thread_list): Use
10681 as_process_stratum_target and adjust find_thread_ptid,
10682 thread_change_ptid and add_thread calls.
10683 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10684 find_thread_ptid call.
10685 * corelow.c (add_to_thread_list): Adjust add_thread call.
10686 (core_target_open): Adjust add_thread_silent and thread_count
10687 calls.
10688 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10689 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10690 * event-top.c (async_disconnect): Pop targets from all inferiors.
10691 * exec.c (add_target_sections): Push exec target on all inferiors
10692 sharing the program space.
10693 (remove_target_sections): Remove the exec target from all
10694 inferiors sharing the program space.
10695 (exec_on_vfork): New.
10696 * exec.h (exec_on_vfork): Declare.
10697 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10698 Pass it down.
10699 (fbsd_nat_target::update_thread_list): Adjust.
10700 (fbsd_nat_target::resume): Adjust.
10701 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10702 down.
10703 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10704 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10705 get_thread_arch_regcache call.
10706 * fork-child.c (gdb_startup_inferior): Pass target down to
10707 startup_inferior and set_executing.
10708 * gdbthread.h (struct process_stratum_target): Forward declare.
10709 (add_thread, add_thread_silent, add_thread_with_info)
10710 (in_thread_list): Add process_stratum_target parameter.
10711 (find_thread_ptid(inferior*, ptid_t)): New overload.
10712 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10713 parameter.
10714 (all_threads()): Delete overload.
10715 (all_threads, all_non_exited_threads): Add process_stratum_target
10716 parameter.
10717 (all_threads_safe): Use brace initialization.
10718 (thread_count): Add process_stratum_target parameter.
10719 (set_resumed, set_running, set_stop_requested, set_executing)
10720 (threads_are_executing, finish_thread_state): Add
10721 process_stratum_target parameter.
10722 (switch_to_thread): Use is_current_thread.
10723 * i386-fbsd-tdep.c: Include "inferior.h".
10724 (i386fbsd_get_thread_local_address): Pass down target.
10725 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10726 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10727 have_inferiors check.
10728 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10729 (inf_ptrace_target::attach): Adjust.
10730 * infcall.c (run_inferior_call): Adjust.
10731 * infcmd.c (run_command_1): Pass target to
10732 scoped_finish_thread_state.
10733 (proceed_thread_callback): Skip inferiors with no execution.
10734 (continue_command): Rename 'all_threads' local to avoid hiding
10735 'all_threads' function. Adjust get_last_target_status call.
10736 (prepare_one_step): Adjust set_running call.
10737 (signal_command): Use user_visible_resume_target. Compare thread
10738 pointers instead of inferior_ptid.
10739 (info_program_command): Adjust to pass down target.
10740 (attach_command): Mark target's 'thread_executing' flag.
10741 (stop_current_target_threads_ns): New, factored out from ...
10742 (interrupt_target_1): ... this. Switch inferior before making
10743 target calls.
10744 * inferior-iter.h
10745 (struct all_inferiors_iterator, struct all_inferiors_range)
10746 (struct all_inferiors_safe_range)
10747 (struct all_non_exited_inferiors_range): Filter on
10748 process_stratum_target too. Remove explicit.
10749 * inferior.c (inferior::inferior): Push dummy target on target
10750 stack.
10751 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10752 Add process_stratum_target parameter, and pass it down.
10753 (have_live_inferiors): Adjust.
10754 (switch_to_inferior_and_push_target): New.
10755 (add_inferior_command, clone_inferior_command): Handle
10756 "-no-connection" parameter. Use
10757 switch_to_inferior_and_push_target.
10758 (_initialize_inferior): Mention "-no-connection" option in
10759 the help of "add-inferior" and "clone-inferior" commands.
10760 * inferior.h: Include "process-stratum-target.h".
10761 (interrupt_target_1): Use bool.
10762 (struct inferior) <push_target, unpush_target, target_is_pushed,
10763 find_target_beneath, top_target, process_target, target_at,
10764 m_stack>: New.
10765 (discard_all_inferiors): Delete.
10766 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10767 (all_inferiors, all_non_exited_inferiors): Add
10768 process_stratum_target parameter.
10769 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10770 (target_last_proc_target): New global.
10771 (follow_fork_inferior): Push target on new inferior. Pass target
10772 to add_thread_silent. Call exec_on_vfork. Handle target's
10773 reference count.
10774 (follow_fork): Adjust get_last_target_status call. Also consider
10775 target.
10776 (follow_exec): Push target on new inferior.
10777 (struct execution_control_state) <target>: New field.
10778 (user_visible_resume_target): New.
10779 (do_target_resume): Call target_async.
10780 (resume_1): Set target's threads_executing flag. Consider resume
10781 target.
10782 (commit_resume_all_targets): New.
10783 (proceed): Also consider resume target. Skip threads of inferiors
10784 with no execution. Commit resumtion in all targets.
10785 (start_remote): Pass current inferior to wait_for_inferior.
10786 (infrun_thread_stop_requested): Consider target as well. Pass
10787 thread_info pointer to clear_inline_frame_state instead of ptid.
10788 (infrun_thread_thread_exit): Consider target as well.
10789 (random_pending_event_thread): New inferior parameter. Use it.
10790 (do_target_wait): Rename to ...
10791 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10792 down.
10793 (threads_are_resumed_pending_p, do_target_wait): New.
10794 (prepare_for_detach): Adjust calls.
10795 (wait_for_inferior): New inferior parameter. Handle it. Use
10796 do_target_wait_1 instead of do_target_wait.
10797 (fetch_inferior_event): Adjust. Switch to representative
10798 inferior. Pass target down.
10799 (set_last_target_status): Add process_stratum_target parameter.
10800 Save target in global.
10801 (get_last_target_status): Add process_stratum_target parameter and
10802 handle it.
10803 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10804 (context_switch): Check inferior_ptid == null_ptid before calling
10805 inferior_thread().
10806 (get_inferior_stop_soon): Pass down target.
10807 (wait_one): Rename to ...
10808 (poll_one_curr_target): ... this.
10809 (struct wait_one_event): New.
10810 (wait_one): New.
10811 (stop_all_threads): Adjust.
10812 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10813 event's target.
10814 (switch_back_to_stepped_thread): Also consider target.
10815 (print_stop_event): Update.
10816 (normal_stop): Update. Also consider the resume target.
10817 * infrun.h (wait_for_inferior): Remove declaration.
10818 (user_visible_resume_target): New declaration.
10819 (get_last_target_status, set_last_target_status): New
10820 process_stratum_target parameter.
10821 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10822 process_stratum_target parameter, and use it.
10823 (clear_inline_frame_state (thread_info*)): New.
10824 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10825 process_stratum_target parameter.
10826 (clear_inline_frame_state (thread_info*)): Declare.
10827 * linux-fork.c (delete_checkpoint_command): Pass target down to
10828 find_thread_ptid.
10829 (checkpoint_command): Adjust.
10830 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10831 instead of just tweaking inferior_ptid.
10832 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10833 (exit_lwp): Pass target down to find_thread_ptid.
10834 (attach_proc_task_lwp_callback): Pass target down to
10835 add_thread/set_running/set_executing.
10836 (linux_nat_target::attach): Pass target down to
10837 thread_change_ptid.
10838 (get_detach_signal): Pass target down to find_thread_ptid.
10839 Consider last target status's target.
10840 (linux_resume_one_lwp_throw, resume_lwp)
10841 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10842 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10843 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10844 (linux_nat_target::async_wait_fd): New.
10845 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10846 target down.
10847 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10848 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10849 * linux-thread-db.c (struct thread_db_info::process_target): New
10850 field.
10851 (add_thread_db_info): Save target.
10852 (get_thread_db_info): New process_stratum_target parameter. Also
10853 match target.
10854 (delete_thread_db_info): New process_stratum_target parameter.
10855 Also match target.
10856 (thread_from_lwp): Adjust to pass down target.
10857 (thread_db_notice_clone): Pass down target.
10858 (check_thread_db_callback): Pass down target.
10859 (try_thread_db_load_1): Always push the thread_db target.
10860 (try_thread_db_load, record_thread): Pass target down.
10861 (thread_db_target::detach): Pass target down. Always unpush the
10862 thread_db target.
10863 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10864 target down. Always unpush the thread_db target.
10865 (find_new_threads_callback, thread_db_find_new_threads_2)
10866 (thread_db_target::update_thread_list): Pass target down.
10867 (thread_db_target::pid_to_str): Pass current inferior down.
10868 (thread_db_target::get_thread_local_address): Pass target down.
10869 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10870 target down.
10871 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10872 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10873 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10874 (procfs_init_inferior): Rename to ...
10875 (procfs_target::procfs_init_inferior): ... this and adjust.
10876 (procfs_target::create_inferior, procfs_notice_thread)
10877 (procfs_do_thread_registers): Adjust.
10878 * ppc-fbsd-tdep.c: Include "inferior.h".
10879 (ppcfbsd_get_thread_local_address): Pass down target.
10880 * proc-service.c (ps_xfer_memory): Switch current inferior and
10881 program space as well.
10882 (get_ps_regcache): Pass target down.
10883 * process-stratum-target.c
10884 (process_stratum_target::thread_address_space)
10885 (process_stratum_target::thread_architecture): Pass target down.
10886 * process-stratum-target.h
10887 (process_stratum_target::threads_executing): New field.
10888 (as_process_stratum_target): New.
10889 * ravenscar-thread.c
10890 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10891 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10892 down.
10893 * record-btrace.c (record_btrace_target::info_record): Adjust.
10894 (record_btrace_target::record_method)
10895 (record_btrace_target::record_is_replaying)
10896 (record_btrace_target::fetch_registers)
10897 (get_thread_current_frame_id, record_btrace_target::resume)
10898 (record_btrace_target::wait, record_btrace_target::stop): Pass
10899 target down.
10900 * record-full.c (record_full_wait_1): Switch to event thread.
10901 Pass target down.
10902 * regcache.c (regcache::regcache)
10903 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10904 process_stratum_target parameter and handle it.
10905 (current_thread_target): New global.
10906 (get_thread_regcache): Add process_stratum_target parameter and
10907 handle it. Switch inferior before calling target method.
10908 (get_thread_regcache): Pass target down.
10909 (get_thread_regcache_for_ptid): Pass target down.
10910 (registers_changed_ptid): Add process_stratum_target parameter and
10911 handle it.
10912 (registers_changed_thread, registers_changed): Pass target down.
10913 (test_get_thread_arch_aspace_regcache): New.
10914 (current_regcache_test): Define a couple local test_target_ops
10915 instances and use them for testing.
10916 (readwrite_regcache): Pass process_stratum_target parameter.
10917 (cooked_read_test, cooked_write_test): Pass mock_target down.
10918 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10919 (get_thread_arch_aspace_regcache): Add process_stratum_target
10920 parameter.
10921 (regcache::target): New method.
10922 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10923 (regcache::registers_changed_ptid): Add process_stratum_target
10924 parameter.
10925 (regcache::m_target): New field.
10926 (registers_changed_ptid): Add process_stratum_target parameter.
10927 * remote.c (remote_state::supports_vCont_probed): New field.
10928 (remote_target::async_wait_fd): New method.
10929 (remote_unpush_and_throw): Add remote_target parameter.
10930 (get_current_remote_target): Adjust.
10931 (remote_target::remote_add_inferior): Push target.
10932 (remote_target::remote_add_thread)
10933 (remote_target::remote_notice_new_inferior)
10934 (get_remote_thread_info): Pass target down.
10935 (remote_target::update_thread_list): Skip threads of inferiors
10936 bound to other targets. (remote_target::close): Don't discard
10937 inferiors. (remote_target::add_current_inferior_and_thread)
10938 (remote_target::process_initial_stop_replies)
10939 (remote_target::start_remote)
10940 (remote_target::remote_serial_quit_handler): Pass down target.
10941 (remote_target::remote_unpush_target): New remote_target
10942 parameter. Unpush the target from all inferiors.
10943 (remote_target::remote_unpush_and_throw): New remote_target
10944 parameter. Pass it down.
10945 (remote_target::open_1): Check whether the current inferior has
10946 execution instead of checking whether any inferior is live. Pass
10947 target down.
10948 (remote_target::remote_detach_1): Pass down target. Use
10949 remote_unpush_target.
10950 (extended_remote_target::attach): Pass down target.
10951 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10952 (remote_target::append_resumption): Pass down target.
10953 (remote_target::append_pending_thread_resumptions)
10954 (remote_target::remote_resume_with_hc, remote_target::resume)
10955 (remote_target::commit_resume): Pass down target.
10956 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10957 (remote_target::interrupt_query)
10958 (remote_target::remove_new_fork_children)
10959 (remote_target::check_pending_events_prevent_wildcard_vcont)
10960 (remote_target::remote_parse_stop_reply)
10961 (remote_target::process_stop_reply): Pass down target.
10962 (first_remote_resumed_thread): New remote_target parameter. Pass
10963 it down.
10964 (remote_target::wait_as): Pass down target.
10965 (unpush_and_perror): New remote_target parameter. Pass it down.
10966 (remote_target::readchar, remote_target::remote_serial_write)
10967 (remote_target::getpkt_or_notif_sane_1)
10968 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10969 down target.
10970 (remote_target::mourn_inferior): Pass down target. Use
10971 remote_unpush_target.
10972 (remote_target::core_of_thread)
10973 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10974 (remote_target::pid_to_exec_file)
10975 (remote_target::thread_handle_to_thread_info): Pass down target.
10976 (remote_target::async_wait_fd): New.
10977 * riscv-fbsd-tdep.c: Include "inferior.h".
10978 (riscv_fbsd_get_thread_local_address): Pass down target.
10979 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10980 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10981 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10982 Adjust.
10983 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10984 * solib-svr4.c (enable_break): Pass down target.
10985 * spu-multiarch.c (parse_spufs_run): Pass down target.
10986 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10987 * target-delegates.c: Regenerate.
10988 * target.c (g_target_stack): Delete.
10989 (current_top_target): Return the current inferior's top target.
10990 (target_has_execution_1): Refer to the passed-in inferior's top
10991 target.
10992 (target_supports_terminal_ours): Check whether the initial
10993 inferior was already created.
10994 (decref_target): New.
10995 (target_stack::push): Incref/decref the target.
10996 (push_target, push_target, unpush_target): Adjust.
10997 (target_stack::unpush): Defref target.
10998 (target_is_pushed): Return bool. Adjust to refer to the current
10999 inferior's target stack.
11000 (dispose_inferior): Delete, and inline parts ...
11001 (target_preopen): ... here. Only dispose of the current inferior.
11002 (target_detach): Hold strong target reference while detaching.
11003 Pass target down.
11004 (target_thread_name): Add assertion.
11005 (target_resume): Pass down target.
11006 (target_ops::beneath, find_target_at): Adjust to refer to the
11007 current inferior's target stack.
11008 (get_dummy_target): New.
11009 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11010 has a thread running.
11011 (initialize_targets): Rename to ...
11012 (_initialize_target): ... this.
11013 * target.h: Include "gdbsupport/refcounted-object.h".
11014 (struct target_ops): Inherit refcounted_object.
11015 (target_ops::shortname, target_ops::longname): Make const.
11016 (target_ops::async_wait_fd): New method.
11017 (decref_target): Declare.
11018 (struct target_ops_ref_policy): New.
11019 (target_ops_ref): New typedef.
11020 (get_dummy_target): Declare function.
11021 (target_is_pushed): Return bool.
11022 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11023 (all_matching_threads_iterator::all_matching_threads_iterator):
11024 Handle filter target.
11025 * thread-iter.h (struct all_matching_threads_iterator, struct
11026 all_matching_threads_range, class all_non_exited_threads_range):
11027 Filter by target too. Remove explicit.
11028 * thread.c (threads_executing): Delete.
11029 (inferior_thread): Pass down current inferior.
11030 (clear_thread_inferior_resources): Pass down thread pointer
11031 instead of ptid_t.
11032 (add_thread_silent, add_thread_with_info, add_thread): Add
11033 process_stratum_target parameter. Use it for thread and inferior
11034 searches.
11035 (is_current_thread): New.
11036 (thread_info::deletable): Use it.
11037 (find_thread_ptid, thread_count, in_thread_list)
11038 (thread_change_ptid, set_resumed, set_running): New
11039 process_stratum_target parameter. Pass it down.
11040 (set_executing): New process_stratum_target parameter. Pass it
11041 down. Adjust reference to 'threads_executing'.
11042 (threads_are_executing): New process_stratum_target parameter.
11043 Adjust reference to 'threads_executing'.
11044 (set_stop_requested, finish_thread_state): New
11045 process_stratum_target parameter. Pass it down.
11046 (switch_to_thread): Also match inferior.
11047 (switch_to_thread): New process_stratum_target parameter. Pass it
11048 down.
11049 (update_threads_executing): Reimplement.
11050 * top.c (quit_force): Pop targets from all inferior.
11051 (gdb_init): Don't call initialize_targets.
11052 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11053 Declare.
11054 (windows_add_thread, windows_delete_thread): Adjust.
11055 (get_windows_debug_event): Rename to ...
11056 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11057 * tracefile-tfile.c (tfile_target_open): Pass down target.
11058 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11059 Forward declare.
11060 (switch_to_thread): Add process_stratum_target parameter.
11061 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11062 parameter. Use it.
11063 (mi_on_resume): Pass target down.
11064 * nat/fork-inferior.c (startup_inferior): Add
11065 process_stratum_target parameter. Pass it down.
11066 * nat/fork-inferior.h (startup_inferior): Add
11067 process_stratum_target parameter.
11068 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11069
75c6c844
PA
110702020-01-10 Pedro Alves <palves@redhat.com>
11071
11072 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11073 directly. Instead find the first thread in the thread list and
11074 use switch_to_thread.
11075
78f2c40a
PA
110762020-01-10 Pedro Alves <palves@redhat.com>
11077
11078 * remote.c (remote_target::remote_add_inferior): Don't bind a
11079 process to the current inferior if the current inferior is already
11080 bound to a process.
11081
e7af6c70
TBA
110822020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11083 Pedro Alves <palves@redhat.com>
11084
11085 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11086 If no process is specified, return null_ptid instead of
11087 inferior_ptid.
11088 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11089 TARGET_WAITKIND_SIGNALLED with no pid.
11090
31ba933e
PA
110912020-01-10 Pedro Alves <palves@redhat.com>
11092
11093 * remote.c (first_remote_resumed_thread): New.
11094 (remote_target::wait_as): Use it as default event_ptid instead of
11095 inferior_ptid.
11096
735fc2ca
PA
110972020-01-10 Pedro Alves <palves@redhat.com>
11098
11099 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11100
c17e02e1
PA
111012020-01-10 Pedro Alves <palves@redhat.com>
11102
11103 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11104 not -1.
11105
ab1ddbcf
PA
111062020-01-10 Pedro Alves <palves@redhat.com>
11107
11108 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11109 ptid to get_last_target_status.
11110 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11111 ptid to get_last_target_status.
11112 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11113 get_last_target_status.
11114 (info_program_command): Don't pass a target_waitstatus to
11115 get_last_target_status.
11116 * infrun.c (init_wait_for_inferior): Use
11117 nullify_last_target_wait_ptid.
11118 (get_last_target_status): Handle nullptr arguments.
11119 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11120 (print_stop_event): Don't pass a ptid to get_last_target_status.
11121 (normal_stop): Don't pass a ptid to get_last_target_status.
11122 * infrun.h (get_last_target_status, set_last_target_status): Move
11123 comments here and update.
11124 (nullify_last_target_wait_ptid): Declare.
11125 * linux-fork.c (fork_load_infrun_state): Remove local extern
11126 declaration of nullify_last_target_wait_ptid.
11127 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11128 to get_last_target_status.
11129
f3f8ece4
PA
111302020-01-10 Pedro Alves <palves@redhat.com>
11131
11132 * gdbthread.h (scoped_restore_current_thread)
11133 <dont_restore, restore, m_dont_restore>: Declare.
11134 * thread.c (thread_alive): Add assertion. Return bool.
11135 (switch_to_thread_if_alive): New.
11136 (prune_threads): Switch inferior/thread.
11137 (print_thread_info_1): Switch thread before calling target methods.
11138 (scoped_restore_current_thread::restore): New, factored out from
11139 ...
11140 (scoped_restore_current_thread::~scoped_restore_current_thread):
11141 ... this.
11142 (scoped_restore_current_thread::scoped_restore_current_thread):
11143 Add assertion.
11144 (thread_apply_all_command, thread_select): Use
11145 switch_to_thread_if_alive.
11146 * infrun.c (proceed, restart_threads, handle_signal_stop)
11147 (switch_back_to_stepped_thread): Switch current thread before
11148 calling target methods.
11149
db2d40f7
PA
111502020-01-10 Pedro Alves <palves@redhat.com>
11151
11152 * inferior.c (switch_to_inferior_no_thread): New function,
11153 factored out from ...
11154 (inferior_command): ... here.
11155 * inferior.h (switch_to_inferior_no_thread): Declare.
11156 * mi/mi-main.c (run_one_inferior): Use
11157 switch_to_inferior_no_thread.
11158
bd420a2d
PA
111592020-01-10 Pedro Alves <palves@redhat.com>
11160
11161 * infcmd.c (kill_command): Remove dead code.
11162
ddf5db90
PA
111632020-01-10 Pedro Alves <palves@redhat.com>
11164
11165 * remote.c (remote_target::mourn_inferior): No longer check
11166 whether the target is running.
11167
5018ce90
PA
111682020-01-10 Pedro Alves <palves@redhat.com>
11169
11170 * corelow.c (core_target::has_execution): Change parameter type to
11171 inferior pointer.
11172 * inferior.c (number_of_live_inferiors): Use
11173 inferior::has_execution instead of target_has_execution_1.
11174 * inferior.h (inferior::has_execution): New.
11175 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11176 inferior::has_execution instead of target_has_execution_1.
11177 * process-stratum-target.c
11178 (process_stratum_target::has_execution): Change parameter type to
11179 inferior pointer. Check the inferior's PID instead of
11180 inferior_ptid.
11181 * process-stratum-target.h
11182 (process_stratum_target::has_execution): Change parameter type to
11183 inferior pointer.
11184 * record-full.c (record_full_core_target::has_execution): Change
11185 parameter type to inferior pointer.
11186 * target.c (target_has_execution_1): Change parameter type to
11187 inferior pointer.
11188 (target_has_execution_current): Adjust.
11189 * target.h (target_ops::has_execution): Change parameter type to
11190 inferior pointer.
11191 (target_has_execution_1): Change parameter type to inferior
11192 pointer. Change return type to bool.
11193 * tracefile.h (tracefile_target::has_execution): Change parameter
11194 type to inferior pointer.
11195
74375d18
PA
111962020-01-10 Pedro Alves <palves@redhat.com>
11197
11198 * exceptions.c (print_flush): Remove current_top_target() check.
11199
acdf84a6
PA
112002020-01-10 Pedro Alves <palves@redhat.com>
11201
11202 * remote.c (show_remote_exec_file): Show the current inferior's
11203 exec-file instead of the command variable's value.
11204
ec506636
PA
112052020-01-10 Pedro Alves <palves@redhat.com>
11206
11207 * record-full.c (record_full_resume_ptid): New global.
11208 (record_full_target::resume): Set it.
11209 (record_full_wait_1): Use record_full_resume_ptid instead of
11210 inferior_ptid.
11211
873657b9
PA
112122020-01-10 Pedro Alves <palves@redhat.com>
11213
11214 * gdbthread.h (scoped_restore_current_thread)
11215 <dont_restore, restore, m_dont_restore>: Declare.
11216 * thread.c (thread_alive): Add assertion. Return bool.
11217 (switch_to_thread_if_alive): New.
11218 (prune_threads): Switch inferior/thread.
11219 (print_thread_info_1): Switch thread before calling target methods.
11220 (scoped_restore_current_thread::restore): New, factored out from
11221 ...
11222 (scoped_restore_current_thread::~scoped_restore_current_thread):
11223 ... this.
11224 (scoped_restore_current_thread::scoped_restore_current_thread):
11225 Add assertion.
11226 (thread_apply_all_command, thread_select): Use
11227 switch_to_thread_if_alive.
11228
7f0ae84c
GB
112292020-01-10 George Barrett <bob@bob131.so>
11230
11231 * stap-probe.c (stap_modify_semaphore): Don't check for null
11232 semaphores.
11233 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11234 for null semaphores.
11235
f5a7c406
AB
112362020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11237
11238 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11239 all source windows, and maintain horizontal scroll status while
11240 doing so.
11241
9ae6bf64
TT
112422020-01-09 Tom Tromey <tom@tromey.com>
11243
11244 PR tui/18932:
11245 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11246 update_source_window, not print_source_lines.
11247
b2efe70c
AB
112482020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11249
11250 * tui/tui.c (tui_enable): Register tui hooks after calling
11251 tui_display_main.
11252
5f23a082
CB
112532020-01-09 Christian Biesinger <cbiesinger@google.com>
11254
11255 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11256
3061113b
SM
112572020-01-08 Simon Marchi <simon.marchi@efficios.com>
11258
11259 * thread.c (print_thread_info_1): Fix indentation.
11260
57d75002
CB
112612020-01-09 Christian Biesinger <cbiesinger@google.com>
11262
11263 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11264 unique_xmalloc_ptr outside the if to always free the demangled name.
11265
6a053cb1
TT
112662020-01-08 Tom Tromey <tromey@adacore.com>
11267
11268 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11269 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11270 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11271 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11272 Remove.
11273 (section_offsets): New typedef.
11274 * symtab.c (fixup_section, get_msymbol_address): Update.
11275 * symmisc.c (dump_msymbols): Update.
11276 * symfile.h (relative_addr_info_to_section_offsets)
11277 (symfile_map_offsets_to_segments): Update.
11278 * symfile.c (build_section_addr_info_from_objfile)
11279 (init_objfile_sect_indices): Update.
11280 (struct place_section_arg): Change type of "offsets".
11281 (place_section): Update.
11282 (relative_addr_info_to_section_offsets): Change type of
11283 "section_offsets". Remove "num_sections" parameter.
11284 (default_symfile_offsets, syms_from_objfile_1)
11285 (set_objfile_default_section_offset): Update.
11286 (reread_symbols): No need to preserve section offsets by hand.
11287 (symfile_map_offsets_to_segments): Change type of "offsets".
11288 * stap-probe.c (relocate_address): Update.
11289 * stabsread.h (process_one_symbol): Update.
11290 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11291 (solib_target_relocate_section_addresses): Update.
11292 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11293 Update.
11294 * solib-frv.c (frv_relocate_main_executable): Update.
11295 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11296 * solib-aix.c (solib_aix_get_section_offsets): Change return
11297 type.
11298 (solib_aix_solib_create_inferior_hook): Update.
11299 * remote.c (remote_target::get_offsets): Update.
11300 * psymtab.c (find_pc_sect_psymtab): Update.
11301 * psympriv.h (struct partial_symbol) <address, text_low,
11302 text_high>: Update.
11303 * objfiles.h (obj_section_offset): Update.
11304 (struct objfile) <section_offsets>: Change type.
11305 <num_sections>: Remove.
11306 (objfile_relocate): Update.
11307 * objfiles.c (entry_point_address_query): Update
11308 (relocate_one_symbol): Change type of "section_offsets".
11309 (objfile_relocate1, objfile_relocate1): Change type of
11310 "new_offsets".
11311 (objfile_rebase1): Update.
11312 * mipsread.c (mipscoff_symfile_read): Update.
11313 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11314 parameter.
11315 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11316 (parse_external, psymtab_to_symtab_1): Update.
11317 * machoread.c (macho_symfile_offsets): Update.
11318 * ia64-tdep.c (ia64_find_unwind_table): Update.
11319 * hppa-tdep.c (read_unwind_info): Update.
11320 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11321 * dwarf2read.c (create_addrmap_from_index)
11322 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11323 (process_psymtab_comp_unit_reader, add_partial_symbol)
11324 (add_partial_subprogram, process_full_comp_unit)
11325 (read_file_scope, read_func_scope, read_lexical_block_scope)
11326 (read_call_site_scope, dwarf2_rnglists_process)
11327 (dwarf2_ranges_process, dwarf2_ranges_read)
11328 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11329 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11330 Update.
11331 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11332 Update.
11333 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11334 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11335 (process_one_symbol): Change type of "section_offsets".
11336 * ctfread.c (get_objfile_text_range): Update.
11337 * coffread.c (coff_symtab_read, enter_linenos)
11338 (process_coff_symbol): Update.
11339 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11340 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11341
456e800a
TT
113422020-01-08 Tom Tromey <tromey@adacore.com>
11343
11344 * dwarf2read.c (parse_macro_definition): Use std::string.
11345 (parse_macro_definition): Likewise.
11346
6dfa2fc2
TT
113472020-01-08 Tom Tromey <tromey@adacore.com>
11348
11349 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11350 (ATTR_ALLOC_CHUNK): Remove.
11351
421d1616
TT
113522020-01-08 Tom Tromey <tromey@adacore.com>
11353
11354 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11355
43816ebc
TT
113562020-01-08 Tom Tromey <tromey@adacore.com>
11357
11358 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11359 (dwarf2_compute_name, open_dwo_file): Likewise.
11360 (process_enumeration_scope): Use std::vector.
11361 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11362 (partial_die_info::fixup, dwarf2_start_subfile)
11363 (guess_full_die_structure_name, dwarf2_name): Likewise.
11364 (determine_prefix): Update.
11365 (guess_full_die_structure_name): Make return type const.
11366 (partial_die_full_name): Return unique_xmalloc_ptr.
11367 (DW_FIELD_ALLOC_CHUNK): Remove.
11368
4212d509
TT
113692020-01-07 Tom Tromey <tromey@adacore.com>
11370
11371 PR build/24937:
11372 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11373
06a6207a
JT
113742020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11375
11376 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11377
153d79c4
AB
113782020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11379
11380 * stack.c (print_frame_info): Move disassemble_next_line code
11381 inside source_print block.
11382
66182876
EZ
113832020-01-06 Eli Zaretskii <eliz@gnu.org>
11384
11385 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11386 gdb/signals.h, as we are now using native signal symbols.
11387
cbfa8581
SV
113882020-01-06 Shahab Vahedi <shahab@synopsys.com>
11389
11390 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11391 overflow by an early check of content vs threshold.
aac66a4c 11392 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11393 Likewise.
11394
3f602821
EZ
113952020-01-06 Eli Zaretskii <eliz@gnu.org>
11396
11397 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11398
a08c904d
JT
113992020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11400
11401 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11402 export table if no section contains it's RVA.
11403
89a65580
EZ
114042020-01-06 Eli Zaretskii <eliz@gnu.org>
11405
11406 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11407
8b7fcda2
HD
114082020-01-06 Hannes Domani <ssbssa@yahoo.de>
11409
11410 * source.c (print_source_lines_base): Set last_line_listed.
11411
a61b4f69
SV
114122020-01-06 Shahab Vahedi <shahab@synopsys.com>
11413
11414 * tui/tui-disasm.c: Remove trailing spaces.
11415
559e7e50
EZ
114162020-01-06 Eli Zaretskii <eliz@gnu.org>
11417 Pedro Alves <palves@redhat.com>
11418
11419 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11420 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11421 (windows_gdb_signal_to_target): New function, uses the above
11422 enumeration to convert GDB internal signal codes to equivalent
11423 Windows codes.
11424 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11425 * windows-nat.c: Include "gdb_wait.h".
11426 (get_windows_debug_event): Extract the fatal exception from the
11427 exit status and convert to the equivalent Posix signal number.
11428 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11429 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11430 * gdbsupport/gdb_wait.c: New file, implements
11431 windows_status_to_termsig.
11432 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11433 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11434
f2302a34
AB
114352020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11436
11437 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11438 show_layout.
11439
6a5206eb
LM
114402020-01-05 Luis Machado <luis.machado@linaro.org>
11441
11442 * aarch64-linux-nat.c
11443 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11444 and bfd_mach_aarch64.
11445
6ec1d75e
PW
114462020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11447
11448 * ui-file.c (stdio_file::can_emit_style_escape)
11449 (tee_file::can_emit_style_escape): Ensure style is used also on
11450 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11451 to gdb_stdout.
11452 * main.c (set_gdb_data_directory): Use file style to output the
11453 warning that the given pathname is not a directory.
11454 * top.c (show_history_filename, gdb_safe_append_history)
11455 (show_gdb_datadir): Use file style.
11456
44f81a76
HD
114572020-01-03 Hannes Domani <ssbssa@yahoo.de>
11458
11459 * solib-target.c (struct lm_info_target):
11460 Change offsets to be a unique_xmalloc_ptr.
11461 (solib_target_relocate_section_addresses): Update.
11462
25057eb0
HD
114632020-01-03 Hannes Domani <ssbssa@yahoo.de>
11464
11465 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11466
6e2118f5
BE
114672020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11468
11469 * MAINTAINERS (Write After Approval): Add myself.
11470
8133c7dc
LM
114712020-01-02 Luis Machado <luis.machado@linaro.org>
11472
11473 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11474 Cell BE architecture.
11475 * target.h (struct target_ops) <thread_architecture>: Likewise.
11476
48189bec
HD
114772020-01-01 Hannes Domani <ssbssa@yahoo.de>
11478
11479 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11480
ead1063b
HD
114812020-01-01 Hannes Domani <ssbssa@yahoo.de>
11482
11483 * MAINTAINERS (Write After Approval): Add myself.
11484
e5d78223
JB
114852020-01-01 Joel Brobecker <brobecker@adacore.com>
11486
11487 * gdbarch.sh: Update copyright year range of generated files.
11488
b811d2c2
JB
114892020-01-01 Joel Brobecker <brobecker@adacore.com>
11490
11491 Update copyright year range in all GDB files.
11492
5f4def5c
JB
114932020-01-01 Joel Brobecker <brobecker@adacore.com>
11494
11495 * copyright.py: Convert to Python 3.
11496
51fd4002
JB
114972020-01-01 Joel Brobecker <brobecker@adacore.com>
11498
11499 * copyright.py: Adapt after move of gnulib directory from gdb
11500 directory to toplevel directory.
11501
5fb651f2
JB
115022020-01-01 Joel Brobecker <brobecker@adacore.com>
11503
11504 * copyright.py (main): Exit if run from the wrong directory.
11505
5dd8bf88
JB
115062020-01-01 Joel Brobecker <brobecker@adacore.com>
11507
11508 * top.c (print_gdb_version): Change copyright year to 2020.
11509
9f71dacb 115102020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11511
9f71dacb 11512 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11513
9f71dacb 11514For older changes see ChangeLog-2019.
c906108c
SS
11515\f
11516Local Variables:
11517mode: change-log
11518left-margin: 8
11519fill-column: 74
11520version-control: never
57da7796 11521coding: utf-8
c906108c 11522End: