]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
config/debuginfod.m4: Use PKG_CHECK_MODULES
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f6720b1c
AM
12020-07-24 Aaron Merey <amerey@redhat.com>
2
3 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4 * configure: Rebuild.
5
513487e1
KB
62020-07-23 Kevin Buettner <kevinb@redhat.com>
7
8 PR corefiles/26294
9 * corelow.c (_initialize_corelow): Add period to help text
10 for "maintenance print core-file-backed-mappings".
11
e7bc9db8
PA
122020-07-23 Pedro Alves <pedro@palves.net>
13
14 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
15 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
16 meanwhile.
17 * frame.c (frame_cache_generation, get_frame_cache_generation):
18 New.
19 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
20 (get_prev_frame_if_no_cycle): On exception, don't touch
21 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
22 * frame.h (get_frame_cache_generation): Declare.
23
90fcc466
TV
242020-07-23 Tom de Vries <tdevries@suse.de>
25
26 PR tui/26282
27 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
28 New default constructor.
29
78344df7
AB
302020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
33 exclude non-statement entries.
34
b089853a
KB
352020-07-22 Kevin Buettner <kevinb@redhat.com>
36
37 * NEWS (New commands): Mention new command
38 "maintenance print core-file-backed-mappings".
39
09c2f5d4
KB
402020-07-22 Kevin Buettner <kevinb@redhat.com>
41
42 * corelow.c (gdbcmd.h): Include.
43 (core_target::info_proc_mappings): New method.
44 (get_current_core_target): New function.
45 (maintenance_print_core_file_backed_mappings): New function.
46 (_initialize_corelow): Add core-file-backed-mappings to
47 "maint print" commands.
48
9c5ec5c2
KB
492020-07-22 Kevin Buettner <kevinb@redhat.com>
50
51 * linux-tdep.c (dump_note_entry_p): New function.
52 (linux_dump_mapping_p_ftype): New typedef.
53 (linux_find_memory_regions_full): Add new parameter,
54 should_dump_mapping_p.
55 (linux_find_memory_regions): Adjust call to
56 linux_find_memory_regions_full.
57 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
58 call to linux_find_memory_regions_full.
59
db082f59
KB
602020-07-22 Kevin Buettner <kevinb@redhat.com>
61
62 * corelow.c (solist.h, unordered_map): Include.
63 (class core_target): Add field m_core_file_mappings and
64 method build_file_mappings.
65 (core_target::core_target): Call build_file_mappings.
66 (core_target::~core_target): Free memory associated with
67 m_core_file_mappings.
68 (core_target::build_file_mappings): New method.
69 (core_target::xfer_partial): Use m_core_file_mappings
70 for memory transfers.
71 * linux-tdep.c (linux_read_core_file_mappings): New
72 function.
73 (linux_core_info_proc_mappings): Rewrite to use
74 linux_read_core_file_mappings.
75 (linux_init_abi): Register linux_read_core_file_mappings.
76
7e183d27
KB
772020-07-22 Kevin Buettner <kevinb@redhat.com>
78
79 * arch-utils.c (default_read_core_file_mappings): New function.
80 * arch-utils.c (default_read_core_file_mappings): Declare.
81 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
82 * gdbarch.h, gdbarch.c: Regenerate.
83
2735d421
KB
842020-07-22 Kevin Buettner <kevinb@redhat.com>
85
86 PR corefiles/25631
87 * corelow.c (core_target:xfer_partial): Revise
88 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
89 case after first checking the stratum beneath the core
90 target.
91 (has_all_memory): Return true.
92 * target.c (raw_memory_xfer_partial): Revise comment
93 regarding use of has_all_memory.
94
e56cb451
KB
952020-07-22 Kevin Buettner <kevinb@redhat.com>
96
97 * exec.h (section_table_xfer_memory): Revise declaration,
98 replacing section name parameter with an optional callback
99 predicate.
100 * exec.c (section_table_xfer_memory): Likewise.
101 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
102 of section_table_xfer_memory.
103
32fa152e
TT
1042020-07-22 Tom Tromey <tromey@adacore.com>
105
106 * mi/mi-cmd-stack.c (list_args_or_locals): Use
107 lookup_symbol_search_name.
108
a67a1c41
AB
1092020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
110
111 * python/py-registers.c (gdbpy_register_object_data_init): Remove
112 redundant local variable.
113 (gdbpy_get_register_descriptor): Extract descriptor vector as a
114 reference, not pointer, update code accordingly.
115
a7b4ff4f
SM
1162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
117 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
118
119 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
120 * jit.c (jit_breakpoint_re_set_internal): Use the
121 `skip_jit_symbol_lookup` field.
122
2340e834
SM
1232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
124 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
125
126 * jit.c (jit_read_descriptor): Define the descriptor address once,
127 use twice.
128 (jit_breakpoint_deleted): Move the declaration of the loop variable
129 `iter` into the loop header.
130 (jit_breakpoint_re_set_internal): Move the declaration of the local
131 variable `objf_data` to the first point of definition.
132 (jit_event_handler): Move the declaration of local variables
133 `code_entry`, `entry_addr`, and `objf` to their first point of use.
134 Rename `objf` to `jited`.
135
c1072906
SM
1362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
137
138 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
139 Remove.
140 * jit.c (get_jiter_objfile_data): Update.
141
c8474dc3
TBA
1422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
143 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * jit.c (struct jit_program_space_data): Remove.
146 (jit_program_space_key): Remove.
147 (jiter_objfile_data::~jiter_objfile_data): Remove program space
148 stuff.
149 (get_jit_program_space_data): Remove.
150 (jit_breakpoint_deleted): Iterate on all of the program space's
151 objfiles.
152 (jit_inferior_init): Likewise.
153 (jit_breakpoint_re_set_internal): Likewise. Also change return
154 type to void.
155 (jit_breakpoint_re_set): Pass current_program_space to
156 jit_breakpoint_re_set_internal.
157
77208eb7
SM
1582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
159
160 * jit.h (struct jiter_objfile_data) <cached_code_address,
161 jit_breakpoint>: Move to here from ...
162 * jit.c (jit_program_space_data): ... here.
163 (jiter_objfile_data::~jiter_objfile_data): Update.
164 (jit_breakpoint_deleted): Update.
165 (jit_breakpoint_re_set_internal): Update.
166
8c1c720f
SM
1672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
170 checks.
171 (jit_read_descriptor): Remove NULL check.
172 (jit_event_handler): Add an assertion.
173
0e74a041
SM
1742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * jit.h (struct jit_objfile_data): Split into...
177 (struct jiter_objfile_data): ... this ...
178 (struct jited_objfile_data): ... and this.
179 * objfiles.h (struct objfile) <jit_data>: Remove.
180 <jiter_data, jited_data>: New fields.
181 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
182 (jiter_objfile_data::~jiter_objfile_data): ... this.
183 (get_jit_objfile_data): Rename to ...
184 (get_jiter_objfile_data): ... this.
185 (add_objfile_entry): Update.
186 (jit_read_descriptor): Use get_jiter_objfile_data.
187 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
188 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
189 (jit_inferior_exit_hook): Use objfile's jited_data field.
190
238b5c9f
SM
1912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * jit.h: Forward-declare `struct minimal_symbol`.
194 (struct jit_objfile_data): Migrate to here from jit.c; also add a
195 constructor, destructor, and an objfile* field.
196 * jit.c (jit_objfile_data): Remove.
197 (struct jit_objfile_data): Migrate from here to jit.h.
198 (jit_objfile_data::~jit_objfile_data): New destructor
199 implementation with code moved from free_objfile_data.
200 (free_objfile_data): Delete.
201 (get_jit_objfile_data): Update to use the jit_data field of objfile.
202 (jit_find_objf_with_entry_addr): Ditto.
203 (jit_inferior_exit_hook): Ditto.
204 (_initialize_jit): Remove the call to
205 register_objfile_data_with_cleanup.
206 * objfiles.h (struct objfile) <jit_data>: New field.
207
fe053b9e
TBA
2082020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
209
210 * jit.h: Forward-declare `struct objfile`.
211 (jit_event_handler): Add a second parameter, the JITer objfile.
212 * jit.c (jit_read_descriptor): Change the signature to take the
213 JITer objfile as an argument instead of the jit_program_space_data.
214 (jit_inferior_init): Update the call to jit_read_descriptor.
215 (jit_event_handler): Use the new JITer objfile argument when calling
216 jit_read_descriptor.
217 * breakpoint.c (handle_jit_event): Update the call to
218 jit_event_handler to pass the JITer objfile.
219
4cec0c66
JB
2202020-07-21 John Baldwin <jhb@FreeBSD.org>
221
222 * gdbarch.c: Regenerate.
223 * gdbarch.h: Regenerate.
224 * gdbarch.sh (handle_segmentation_fault): Remove method.
225 * infrun.c (handle_segmentation_fault): Remove.
226 (print_signal_received_reason): Remove call to
227 handle_segmentation_fault.
228
0e42f66a
JB
2292020-07-21 John Baldwin <jhb@FreeBSD.org>
230
231 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
232 Rename to sparc64_linux_report_signal_info and add siggnal
233 argument.
234 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
235 instead of sparc64_linux_handle_segmentation_fault.
236
77bdfeb2
JB
2372020-07-21 John Baldwin <jhb@FreeBSD.org>
238
239 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
240 i386_linux_report_signal_info instead of
241 i386_linux_handle_segmentation_fault.
242 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
243 to i386_linux_report_signal_info and add siggnal argument.
244 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
245 of i386_linux_handle_segmentation_fault.
246 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
247 to i386_linux_report_signal_info and add siggnal argument.
248
ad97bfc5
JB
2492020-07-21 John Baldwin <jhb@FreeBSD.org>
250
251 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
252 hook if present.
253
272bb05c
JB
2542020-07-21 John Baldwin <jhb@FreeBSD.org>
255
256 * gdbarch.c: Regenerate.
257 * gdbarch.h: Regenerate.
258 * gdbarch.sh (report_signal_info): New method.
259 * infrun.c (print_signal_received_reason): Invoke gdbarch
260 report_signal_info hook if present.
261
baf8791e
AB
2622020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 * python/py-registers.c : Add 'unordered_map' include.
265 (gdbpy_new_reggroup): Renamed to...
266 (gdbpy_get_reggroup): ...this. Update to only create register
267 group descriptors when needed.
268 (gdbpy_reggroup_iter_next): Update.
269
f7306dac
AB
2702020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 * python/py-registers.c (gdbpy_register_object_data): New static
273 global.
274 (gdbpy_register_object_data_init): New function.
275 (gdbpy_new_register_descriptor): Renamed to...
276 (gdbpy_get_register_descriptor): ...this, and update to reuse
277 existing register descriptors where possible.
278 (gdbpy_register_descriptor_iter_next): Update.
279 (gdbpy_initialize_registers): Register new gdbarch data.
280
05c309a8
SM
2812020-07-21 Simon Marchi <simon.marchi@efficios.com>
282
283 * linux-nat.c (stopped_pids): Make static.
284
d1fd641e
SM
2852020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
286
287 PR ada/26235
288 * gdbtypes.c (ada_discrete_type_low_bound,
289 ada_discrete_type_high_bound): Handle undefined bounds.
290
1de14d77
KR
2912020-07-21 Kamil Rytarowski <n54@gmx.com>
292
293 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
294 declaration.
295 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
296 function.
297
ed810cc7
JB
2982020-07-20 John Baldwin <jhb@FreeBSD.org>
299
300 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
301 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
302 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
303 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
304 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
305 method.
306
ae5369e7
LC
3072020-07-20 Ludovic Courtès <ludo@gnu.org>
308
309 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
310 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
311 which are deprecated in Guile 3.0.
312 * configure.ac (try_guile_versions): Add "guile-3.0".
313 * configure (try_guile_versions): Regenerate.
314 * NEWS: Update entry.
315
68cf161c
LC
3162020-07-20 Ludovic Courtès <ludo@gnu.org>
317 Doug Evans <dje@google.com>
318
319 PR gdb/21104
320 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
321 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
322 USING_GUILE_BEFORE_2_2.
323 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
324 Change type to 'scm_t_port_type *'.
325 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
326 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
327 parameter and honor it. Update callers.
328 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
329 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
330 functions.
331 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
332 USING_GUILE_BEFORE_2_2.
333 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
334 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
335 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
336 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
337 and 'SCM_PORT_TYPE'.
338 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
339 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
340 (gdbscm_memory_port_read, gdbscm_memory_port_write)
341 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
342 [!USING_GUILE_BEFORE_2_2]: New functions.
343 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
344 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
345 'gdbscm_memory_port_read'.
346 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
347 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
348 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
349 function.
350 (ioscm_init_memory_port): Remove.
351 (ioscm_init_memory_port_stream): New function
352 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
353 function.
354 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
355 Return scm_from_uint (0).
356 (gdbscm_set_memory_port_read_buffer_size_x)
357 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
358 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
359 Return scm_from_uint (0).
360 (gdbscm_set_memory_port_write_buffer_size_x)
361 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
362 * configure.ac (try_guile_versions): Add "guile-2.2".
363 * configure: Regenerate.
364 * NEWS: Add entry.
365
aee91db3
TT
3662020-07-18 Tom Tromey <tom@tromey.com>
367
368 * linux-nat.c (linux_multi_process): Remove.
369 (linux_nat_target::supports_multi_process): Return true.
370
0e267416
AB
3712020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
372
373 * arch/riscv.c (riscv_tdesc_cache): Change map type.
374 (riscv_lookup_target_description): Return pointer out of
375 unique_ptr.
376 * target-descriptions.c (allocate_target_description): Add
377 comment.
378 (target_desc_deleter::operator()): Likewise.
379 * target-descriptions.h (struct target_desc_deleter): Moved to
380 gdbsupport/tdesc.h.
381 (target_desc_up): Likewise.
382
f80c8ec4
TT
3832020-07-17 Tom Tromey <tromey@adacore.com>
384
385 * linux-nat.c (linux_nat_target::supports_non_stop)
386 (linux_nat_target::always_non_stop_p): Use "true".
387 (linux_nat_target::supports_disable_randomization): Use "true" and
388 "false".
389
d0ce17d8
CT
3902020-07-16 Caroline Tice <cmtice@google.com>
391
392 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
393 (RNGLIST_HEADER_SIZE64): New constant definition.
394 (struct dwop_section_names): Add rnglists_dwo.
395 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
396 (struct loclist_header): Rename to 'loclists_rnglists_header'.
397 (struct dwo_sections): Add rnglists field.
398 (read_attribut_reprocess): Add tag parameter.
399 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
400 (cu_debug_rnglists_section): New function (decl & definition).
401 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
402 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
403 die whose range is being checked; get rnglist section from
404 cu_debug_rnglists_section, to get from either objfile or dwo file as
405 appropriate. Add cases for DW_RLE_base_addressx,
406 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
407 the base address to DW_RLE_offset_pairs (not to all ranges), moving
408 test inside if-condition and updating complaint message.
409 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
410 dwarf2_rnglists_process.
411 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
412 dwarf2_ranges_process.
413 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
414 need_ranges_base and update comment appropriately. Also pass die tag
415 to dwarf2_ranges_read.
416 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
417 need_ranges_base and update comment appropriately. Also pass die tag
418 to dwarf2_ranges_process.
419 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
420 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
421 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
422 need_ranges_base and update comment appropriately. Also pass die tag
423 to read_attribute_reprocess and dwarf2_ranges_read.
424 (read_loclist_header): Rename function to read_loclists_rnglists_header,
425 and update function comment appropriately.
426 (read_loclist_index): Call read_loclists_rnglists_header instead of
427 read_loclist_header.
428 (read_rnglist_index): New function.
429 (read_attribute_reprocess): Add tag parameter. Add code for
430 DW_FORM_rnglistx, passing tag to read_rnglist_index.
431 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
432
3dcc261c
AB
4332020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
434
435 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
436 being resolved.
437
ccb9eba6
AB
4382020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
439
440 * arch-utils.c (show_architecture): Update formatting of messages.
441
cf88be68
SM
4422020-07-12 Simon Marchi <simon.marchi@efficios.com>
443
444 * gdbtypes.h (struct type) <bounds>: Handle array and string
445 types.
446 * ada-lang.c (assign_aggregate): Use type::bounds on
447 array/string type.
448 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
449 * c-varobj.c (c_number_of_children): Likewise.
450 (c_describe_child): Likewise.
451 * eval.c (evaluate_subexp_for_sizeof): Likewise.
452 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
453 (f_type_print_base): Likewise.
454 * f-valprint.c (f77_array_offset_tbl): Likewise.
455 (f77_get_upperbound): Likewise.
456 (f77_print_array_1): Likewise.
457 * guile/scm-type.c (gdbscm_type_range): Likewise.
458 * m2-typeprint.c (m2_array): Likewise.
459 (m2_is_long_set_of_type): Likewise.
460 * m2-valprint.c (get_long_set_bounds): Likewise.
461 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
462 * python/py-type.c (typy_range): Likewise.
463 * rust-lang.c (rust_internal_print_type): Likewise.
464 * type-stack.c (type_stack::follow_types): Likewise.
465 * valarith.c (value_subscripted_rvalue): Likewise.
466 * valops.c (value_cast): Likewise.
467
509971ae
SM
4682020-07-12 Simon Marchi <simon.marchi@efficios.com>
469
470 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
471 callers to use the equivalent accessor methods.
472
107406b7
SM
4732020-07-12 Simon Marchi <simon.marchi@efficios.com>
474
475 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
476 (struct type) <bit_stride>: New method.
477 (TYPE_BIT_STRIDE): Remove.
478 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
479
bb789949
SM
4802020-07-12 Simon Marchi <simon.marchi@efficios.com>
481
482 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
483 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
484 callers to use the equivalent accessor methods instead.
485
39498edb
SM
4862020-07-12 Simon Marchi <simon.marchi@efficios.com>
487
488 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
489 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
490 callers to use the equivalent accessor methods instead.
491
3b606f38
SM
4922020-07-12 Simon Marchi <simon.marchi@efficios.com>
493
494 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
495 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
496 to use dynamic_prop::kind.
497
064d9cb9
SM
4982020-07-12 Simon Marchi <simon.marchi@efficios.com>
499
500 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
501 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
502 to get the bound property's kind and check against
503 PROP_UNDEFINED.
504
5537ddd0
SM
5052020-07-12 Simon Marchi <simon.marchi@efficios.com>
506
507 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
508 all callers to use type::range_bounds followed by
509 dynamic_prop::{low,high}.
510
8c2e4e06
SM
5112020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
512
513 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
514 const_val, set_const_val, baton, set_locexpr, set_loclist,
515 set_addr_offset, variant_parts, set_variant_parts,
516 original_type, set_original_type>: New methods.
517 <kind>: Rename to...
518 <m_kind>: ... this. Update all users to use the new methods
519 instead.
520 <data>: Rename to...
521 <m_data>: ... this. Update all users to use the new methods
522 instead.
523
7c6f2712
SM
5242020-07-12 Simon Marchi <simon.marchi@efficios.com>
525
526 * gdbtypes.c (get_discrete_bounds): Return failure if
527 the range type's bounds are not both defined and constant
528 values.
529 (get_array_bounds): Update comment. Remove undefined bound check.
530
599088e3
SM
5312020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
532
533 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
534 the type::bounds method directly.
535
c4dfcb36
SM
5362020-07-12 Simon Marchi <simon.marchi@efficios.com>
537
538 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
539 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
540 are used to set the range type's bounds to use set_bounds.
541
0a278aa7
PW
5422020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
543
544 * exec.c (_initialize_exec): Update exec-file-mismatch help.
545
cce20f10
PA
5462020-07-10 Pedro Alves <pedro@palves.net>
547
548 * gdbthread.h (inferior_ref): Define.
549 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
550 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
551 * thread.c
552 (scoped_restore_current_thread::restore):
553 Adjust to gdb::ref_ptr.
554 (scoped_restore_current_thread::~scoped_restore_current_thread):
555 Remove manual decref handling.
556 (scoped_restore_current_thread::scoped_restore_current_thread):
557 Adjust to use
558 inferior_ref::new_reference/thread_info_ref::new_reference.
559 Incref the thread before calling get_frame_id instead of after.
560 Let TARGET_CLOSE_ERROR propagate.
561
6d7aa592
PA
5622020-07-10 Pedro Alves <pedro@palves.net>
563
564 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
565 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
566 NOT_AVAILABLE_ERROR.
567 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
568 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
569
b3e3a4c1
SM
5702020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
571 Pedro Alves <pedro@palves.net>
572
573 PR gdb/26199
574 * infrun.c (threads_are_resumed_pending_p): Delete.
575 (do_target_wait): Remove threads_are_executing and
576 threads_are_resumed_pending_p checks from the inferior_matches
577 lambda. Update comments.
578
d6cc5d98
PA
5792020-07-10 Pedro Alves <pedro@palves.net>
580
581 PR gdb/26199
582 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
583 executing threads.
584
7d3badc6
PA
5852020-07-10 Pedro Alves <pedro@palves.net>
586
587 PR gdb/26199
588 * infrun.c (handle_no_resumed): Handle multiple targets.
589
42bd97a6
PA
5902020-07-10 Pedro Alves <pedro@palves.net>
591
592 PR gdb/26199
593 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
594 target_is_async_p.
595
43667cc6
PA
5962020-07-10 Pedro Alves <pedro@palves.net>
597
598 PR gdb/26199
599 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
600 threads, not all threads.
601
96118d11
PA
6022020-07-10 Pedro Alves <pedro@palves.net>
603
604 PR gdb/26199
605 * remote.c (remote_target::open_1): Pass remote target pointer as
606 data to create_async_event_handler.
607 (remote_async_inferior_event_handler): Mark async event handler
608 before returning if the remote target still has either pending
609 events or unacknowledged notifications.
610
54904d81
JB
6112020-07-10 John Baldwin <jhb@FreeBSD.org>
612
613 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
614 declaration.
615 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
616 function.
617
f37e5866
JB
6182020-07-09 John Baldwin <jhb@FreeBSD.org>
619
620 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
621 inferior_ptid.
622
fc238d4a
JB
6232020-07-09 John Baldwin <jhb@FreeBSD.org>
624
625 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
626 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
627 AT_FREEBSD_PS_STRINGS.
628
6e2469ff
HD
6292020-07-08 Hannes Domani <ssbssa@yahoo.de>
630
631 * auto-load.c (auto_load_objfile_script_1): Convert drive part
632 of debugfile path on Windows.
633
d1076c41
JB
6342020-07-08 John Baldwin <jhb@FreeBSD.org>
635
636 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
637 argument to 'data'.
638
15f3b077
TT
6392020-07-08 Tom Tromey <tromey@adacore.com>
640
641 * ada-lang.c (ada_exception_message_1): Use read_memory.
642
9fc501fd
AB
6432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
644
645 PR python/22748
646 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
647 special handling for inline frames.
648 * findvar.c (value_of_register_lazy): Skip inline frames when
649 creating lazy register values.
650 * frame.c (frame_id_computed_p): Delete definition.
651 * frame.h (frame_id_computed_p): Delete declaration.
652
64cb3757
AB
6532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
654
655 * NEWS: Mention additions to Python API.
656 * python/py-arch.c (archpy_register_groups): New function.
657 (arch_object_methods): Add 'register_groups' method.
658 * python/py-registers.c (reggroup_iterator_object): New struct.
659 (reggroup_object): New struct.
660 (gdbpy_new_reggroup): New function.
661 (gdbpy_reggroup_to_string): New function.
662 (gdbpy_reggroup_name): New function.
663 (gdbpy_reggroup_iter): New function.
664 (gdbpy_reggroup_iter_next): New function.
665 (gdbpy_new_reggroup_iterator): New function
666 (gdbpy_initialize_registers): Register new types.
667 (reggroup_iterator_object_type): Define new Python type.
668 (gdbpy_reggroup_getset): New static global.
669 (reggroup_object_type): Define new Python type.
670 * python/python-internal.h
671
0f767f94
AB
6722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
673
674 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
675 * python/py-arch.c (archpy_registers): New function.
676 (arch_object_methods): Add 'registers' method.
677 * python/py-registers.c: New file.
678 * python/python-internal.h
679 (gdbpy_new_register_descriptor_iterator): Declare.
680 (gdbpy_initialize_registers): Declare.
681 * python/python.c (do_start_initialization): Call
682 gdbpy_initialize_registers.
683 * NEWS: Mention additions to the Python API.
684
87dbc774
AB
6852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * NEWS: Mention new Python API method.
688 * python/py-unwind.c (pending_framepy_architecture): New function.
689 (pending_frame_object_methods): Add architecture method.
690
3bc98c0c
AB
6912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * gdbarch.c: Regenerate.
694 * gdbarch.h: Regenerate.
695 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
696 (gdbarch_data): Use internal_error for the case where
697 deprecated_set_gdbarch_data was originally needed.
698 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
699 and use passed in obstack.
700 (libunwind_frame_set_descr): Should no longer get back NULL from
701 gdbarch_data.
702 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
703 type.
704 * user-regs.c (user_regs_init): Update parameters, and use passed
705 in obstack.
706 (user_reg_add): Should no longer get back NULL from gdbarch_data.
707 (_initialize_user_regs): Register as a pre-init gdbarch data type.
708
d8cc8af6
TV
7092020-07-06 Tom de Vries <tdevries@suse.de>
710
711 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
712 End-Of-Sequence in lte_is_less_than.
713 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
714 "gdb: Don't reorder line table entries too much when sorting".
715
947f7597
TV
7162020-07-06 Tom de Vries <tdevries@suse.de>
717
718 PR tui/26205
719 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
720
1e7c1b22
TV
7212020-07-05 Tom de Vries <tdevries@suse.de>
722
723 PR build/26187
724 * inferior.h (struct infcall_suspend_state_deleter): If available, use
725 std::uncaught_exceptions instead of deprecated
726 std::uncaught_exception.
727
a36158ec
SM
7282020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
729
730 * macroexp.h (macro_stringify): Return
731 gdb::unique_xmalloc_ptr<char>.
732 * macroexp.c (macro_stringify): Likewise.
733 * macrotab.c (fixup_definition): Update.
734
14d960c8
SM
7352020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
736
737 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
738 (lex_one_token): Update.
739 * macroexp.c (struct macro_buffer) <release>: Return
740 gdb::unique_xmalloc_ptr<char>.
741 (macro_stringify): Update.
742 (macro_expand): Update.
743 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
744 * macroexp.h (macro_expand_next): Likewise.
745
211d5b1c
SM
7462020-07-02 Simon Marchi <simon.marchi@efficios.com>
747
748 * macroexp.h (macro_lookup_ftype): Remove.
749 (macro_expand, macro_expand_once, macro_expand_next): Remove
750 lookup function parameters, add scope parameter.
751 * macroexp.c (scan, substitute_args, expand, maybe_expand,
752 macro_expand, macro_expand_once, macro_expand_next): Likewise.
753 * macroscope.h (standard_macro_lookup): Change parameter type
754 to macro_scope.
755 * macroscope.c (standard_macro_lookup): Likewise.
756 * c-exp.y (lex_one_token): Update.
757 * macrocmd.c (macro_expand_command): Likewise.
758 (macro_expand_once_command): Likewise.
759
b1a35af2
SM
7602020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
761
762 * inf-loop.c (inferior_event_handler): Remove client_data param.
763 * inf-loop.h (inferior_event_handler): Likewise.
764 * infcmd.c (step_1): Adjust.
765 * infrun.c (proceed): Adjust.
766 (fetch_inferior_event): Remove client_data param.
767 (infrun_async_inferior_event_handler): Adjust.
768 * infrun.h (fetch_inferior_event): Remove `void *` param.
769 * linux-nat.c (handle_target_event): Adjust.
770 * record-btrace.c (record_btrace_handle_async_inferior_event):
771 Adjust.
772 * record-full.c (record_full_async_inferior_event_handler):
773 Adjust.
774 * remote.c (remote_async_inferior_event_handler): Adjust.
775
1cdf9e33
TT
7762020-07-01 Tom Tromey <tom@tromey.com>
777
778 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
779 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
780
32c1e210
TT
7812020-07-01 Tom Tromey <tom@tromey.com>
782
783 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
784 tui_gen_win_info.
785 (tui_win_info::make_window): Merge with
786 tui_gen_win_info::make_window.
787 (tui_win_info::make_visible): Move from tui_gen_win_info.
788 * tui/tui-win.c (tui_win_info::max_width): Move from
789 tui_gen_win_info.
790 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
791 type.
792 <window_factory>: Likewise.
793 * tui/tui-layout.c (tui_win_info::resize): Move from
794 tui_gen_win_info.
795 (make_standard_window): Change return type.
796 (get_locator_window, tui_get_window_by_name): Likewise.
797 (tui_layout_window::apply): Remove a cast.
798 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
799 (struct tui_win_info): Merge with tui_gen_win_info.
800 (struct tui_gen_win_info): Remove.
801
a30cb6da
TT
8022020-07-01 Tom Tromey <tom@tromey.com>
803
804 * tui/tui-stack.h (struct tui_locator_window): Derive from
805 tui_win_info.
806 <do_scroll_horizontal, do_scroll_vertical>: New methods.
807 <can_box>: New method.
808
1eb2161f
TT
8092020-07-01 Tom Tromey <tom@tromey.com>
810
811 * tui/tui-stack.h (struct tui_locator_window): Remove body.
812
7134f2eb
TT
8132020-07-01 Tom Tromey <tom@tromey.com>
814
815 * tui/tui-regs.c (tui_data_window::display_registers_from)
816 (tui_data_window::display_registers_from)
817 (tui_data_window::first_data_item_displayed)
818 (tui_data_window::delete_data_content_windows): Update.
819 (tui_data_window::refresh_window, tui_data_window::no_refresh):
820 Remove.
821 (tui_data_window::check_register_values): Update.
822 (tui_data_item_window::rerender): Add parameters. Update.
823 (tui_data_item_window::refresh_window): Remove.
824 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
825 virtual.
826 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
827 tui_gen_win_info.
828 <refresh_window, max_height, min_height>: Remove.
829 <rerender>: Add parameters.
830 <x, y, visible>: New members.
831 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
832 <m_item_width>: New member.
833
22b7b041
TT
8342020-07-01 Tom Tromey <tom@tromey.com>
835
836 * tui/tui-regs.c (tui_data_window::show_register_group)
837 (tui_data_window::check_register_values): Update.
838 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
839 from item_no.
840
c9753adb
TT
8412020-07-01 Tom Tromey <tom@tromey.com>
842
843 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
844 useless "if".
845
9ab26b4a
TT
8462020-07-01 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
849 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
850
e555083f
TT
8512020-07-01 Tom Tromey <tom@tromey.com>
852
853 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
854 * tui/tui-winsource.h (enum tui_line_or_address_kind)
855 (struct tui_line_or_address): Move from tui-data.h.
856 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
857 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
858 (tui_cmd_window, tui_source_window_base, tui_source_window)
859 (tui_disasm_window): Don't declare.
860 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
861 to tui-winsource.h.
862 (SINGLE_KEY): Move to tui-stack.c.
863
7a02bab7
TT
8642020-07-01 Tom Tromey <tom@tromey.com>
865
866 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
867 std::string.
868 * tui/tui-regs.c (class tab_expansion_file): New.
869 (tab_expansion_file::write): New method.
870 (tui_register_format): Change return type. Use
871 tab_expansion_file.
872 (tui_get_register, tui_data_window::display_registers_from)
873 (tui_data_item_window::rerender): Update.
874 * tui/tui-io.h (tui_expand_tabs): Don't declare.
875 * tui/tui-io.c (tui_expand_tabs): Remove.
876
ea68593b
TT
8772020-07-01 Tom Tromey <tom@tromey.com>
878
879 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
880
a8caed5d
FS
8812020-07-01 Fangrui Song <maskray@google.com>
882
883 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
884
9cdf9820
AKS
8852020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
886
887 * dwarf2/read.c (set_die_type): Removed conditions to restrict
888 forms for DW_AT_associated and DW_AT_allocated attributes,
889 which is already checked in function attr_to_dynamic_prop.
890
a1520ad8
TT
8912020-06-30 Tom Tromey <tromey@adacore.com>
892
893 * dwarf2/read.c (quirk_rust_enum): Correctly call
894 alloc_rust_variant for default-less enum.
895
5ac58899
TT
8962020-06-30 Tom Tromey <tromey@adacore.com>
897
898 PR build/26183:
899 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
900 gdb::to_string.
901
19b187a9
SM
9022020-06-29 Simon Marchi <simon.marchi@efficios.com>
903
904 * gdbarch.sh (displaced_step_copy_insn): Update doc.
905 * gdbarch.h: Re-generate.
906
cd4c4c07
TT
9072020-06-28 Tom Tromey <tom@tromey.com>
908
909 * command.h (cmd_types): Remove.
910 (cmd_type): Don't declare.
911 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
912 typedef.
913 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
914 * cli/cli-decode.c (cmd_type): Remove.
915
05779d57
PA
9162020-06-27 Pedro Alves <palves@redhat.com>
917
918 * fork-child.c (prefork_hook): Adjust.
919 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
920 Delete.
921 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
922 * inferior.c (inferior::set_tty, inferior::tty): New methods.
923 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
924 Remove declarations.
925 (struct inferior) <set_tty, tty>: New methods.
926 (struct inferior) <terminal>: Rename to ...
927 (struct inferior) <m_terminal>: ... this and make private.
928 * main.c (captured_main_1): Adjust.
929 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
930 (mi_cmd_inferior_tty_show): Adjust.
931 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
932 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
933
1776e3e5
NA
9342020-06-26 Nick Alcock <nick.alcock@oracle.com>
935
936 * configure.ac: Add --enable-libctf: handle --disable-static
937 properly.
938 * acinclude.m4: sinclude ../config/enable.m4.
939 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
940 (LIBCTF): Substitute in.
941 (CTF_DEPS): New, likewise.
942 (CLIBS): libctf needs symbols from libbfd: move earlier.
943 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
944 flags.
945 * ctfread.c: Surround in ENABLE_LIBCTF.
946 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
947 * configure: Regenerate.
948 * config.in: Likewise.
949
58373b80
SM
9502020-06-25 Simon Marchi <simon.marchi@efficios.com>
951
952 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
953
277474ee
SM
9542020-06-25 Simon Marchi <simon.marchi@efficios.com>
955
956 * inferior.h (struct inferior) <terminal>: Change type to
957 gdb::unique_xmalloc_ptr<char>.
958 * inferior.c (inferior::~inferior): Don't free inf->terminal.
959 * infcmd.c (set_inferior_io_terminal): Don't free terminal
960 field, adjust to unique pointer.
961 (get_inferior_io_terminal): Adjust to unique pointer.
962
6d74da72
AB
9632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 * riscv-tdep.c (riscv_print_registers_info): Loop over all
966 registers, not just the known core set of registers.
967
2e52d038
AB
9682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
969
970 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
971 fflags, frm, and fcsr registers.
972 (riscv_register_reggroup_p): Remove unknown CSRs from save and
973 restore groups.
974 (riscv_tdesc_unknown_reg): New function.
975 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
976 tdesc_use_registers.
977 * riscv-tdep.h (struct gdbarch_tdep): Add
978 unknown_csrs_first_regnum, unknown_csrs_count,
979 duplicate_fflags_regnum, duplicate_frm_regnum, and
980 duplicate_fcsr_regnum fields.
981
be64fd07
AB
9822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * target-descriptions.c (tdesc_use_registers): Add new parameter a
985 callback, use the callback (when not null) to help number unknown
986 registers.
987 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
988 (tdesc_use_registers): Add extra parameter to declaration.
989
3b9fce96
AB
9902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
991
992 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
993 in the file.
994 (class riscv_pending_register_alias): Likewise.
995 (riscv_register_feature::register_info): Change 'required_p' field
996 to 'required', and change its type. Add 'check' member function.
997 (riscv_register_feature::register_info::check): Define new member
998 function.
999 (riscv_xreg_feature): Change initialisation of 'required' field.
1000 (riscv_freg_feature): Likewise.
1001 (riscv_virtual_feature): Likewise.
1002 (riscv_csr_feature): Likewise.
1003 (riscv_check_tdesc_feature): Take extra parameter, the csr
1004 tdesc_feature, rewrite the function to use the new
1005 riscv_register_feature::register_info::check function.
1006 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1007
865bad26
AB
10082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1009
1010 * features/Makefile: Remove all references to the deleted files
1011 below.
1012 * features/riscv/32bit-csr.c: Deleted.
1013 * features/riscv/32bit-csr.xml: Deleted.
1014 * features/riscv/64bit-csr.c: Deleted.
1015 * features/riscv/64bit-csr.xml: Deleted.
1016 * features/riscv/rebuild-csr-xml.sh: Deleted.
1017
ed69cbc8
AB
10182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1019
1020 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1021 whitespace error for declaration of names member variable.
1022 (struct riscv_register_feature): Add new prefer_first_name member
1023 variable, and fix whitespace error in declaration of registers.
1024 (riscv_xreg_feature): Initialize prefer_first_name field.
1025 (riscv_freg_feature): Likewise.
1026 (riscv_virtual_feature): Likewise.
1027 (riscv_csr_feature): Likewise.
1028 (riscv_register_name): Expand on comments. Remove register name
1029 modifications for CSR and virtual registers.
1030
4445e8f5
AB
10312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1032
1033 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1034 errors.
1035
767a879e
AB
10362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1037
1038 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1039 riscv-opc.h.
1040 (class riscv_pending_register_alias): New class.
1041 (riscv_check_tdesc_feature): Take vector of pending aliases and
1042 populate it as appropriate.
1043 (riscv_setup_register_aliases): Delete.
1044 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1045 to riscv_check_tdesc_feature in all cases. Use the vector to
1046 create the register aliases.
1047
bb6e55f3
RO
10482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1049
1050 * sol2-tdep.c (sol2_static_transform_name): Remove.
1051 (sol2_init_abi): Don't register it.
1052 * gdbarch.sh (static_transform_name): Remove.
1053 * gdbarch.c, gdbarch.h: Regenerate.
1054
1055 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1056 gdbarch_static_transform_name.
1057 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1058 * stabsread.c (define_symbol) <'X'>: Remove.
1059 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1060 handling.
1061 <'V'>: Likewise.
1062 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1063 <'S'>: Remove call to gdbarch_static_transform_name.
1064
c6d36836
RO
10652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1066
1067 * procfs.c (procfs_pre_trace): New function.
1068 (procfs_target::create_inferior): Pass it to fork_inferior.
1069
a7e6196b
RO
10702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1071
1072 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1073 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1074 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1075 sol2-tdep.o, sparc-sol2-tdep.o.
1076 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1077 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1078 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1079 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1080
d412e696
RO
10812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1082
1083 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1084 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1085 Call sol2_init_abi.
1086 Remove calls to set_gdbarch_skip_solib_resolver,
1087 set_gdbarch_core_pid_to_str.
1088 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1089 (i386_sol2_static_transform_name): Remove.
1090 (i386_sol2_init_abi): Call sol2_init_abi.
1091 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1092 set_gdbarch_static_transform_name,
1093 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1094 Use sol2_sigtramp_p.
1095 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1096 (sol2_sigtramp_p): New function.
1097 (sol2_static_transform_name): New function.
1098 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1099 (sol2_init_abi): New function.
1100 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1101 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1102 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1103 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1104 (sparc_sol2_static_transform_name): Remove.
1105 (sparc32_sol2_init_abi): Call sol2_init_abi.
1106 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1107 set_gdbarch_static_transform_name,
1108 set_gdbarch_skip_solib_resolver,
1109 set_gdbarch_core_pid_to_str.
1110 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1111 (sparc_sol2_static_transform_name): Remove
1112 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1113 call sol2_sigtramp_p.
1114 (sparc64_sol2_init_abi): Call sol2_init_abi.
1115 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1116 set_gdbarch_static_transform_name,
1117 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1118
a8654e7d
PW
11192020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1120
1121 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1122 * exec.c (validate_exec_file): If from_tty, set both
1123 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1124 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1125 and from_tty, unconditionally ask a confirmation.
1126
caa7fd04
AB
11272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1128
1129 * target-descriptions.c (tdesc_architecture_name): Protect against
1130 NULL pointer dereference.
1131 (maint_print_xml_tdesc_cmd): New function.
1132 (_initialize_target_descriptions): Register new 'maint print
1133 xml-tdesc' command and give it the filename completer.
1134 * NEWS: Mention new 'maint print xml-tdesc' command.
1135
fbf42f4e
AB
11362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1137
1138 * target-descriptions.c (class tdesc_compatible_info): New class.
1139 (struct target_desc): Change type of compatible vector.
1140 (tdesc_compatible_p): Update for change in type of
1141 target_desc::compatible.
1142 (tdesc_compatible_info_list): New function.
1143 (tdesc_compatible_info_arch_name): New function.
1144 (tdesc_add_compatible): Update for change in type of
1145 target_desc::compatible.
1146 (print_c_tdesc::visit_pre): Likewise.
1147
20821f4e
AB
11482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1151 whitespace to underscore.
1152 (maint_print_c_tdesc_cmd): Use fake filename for target
1153 descriptions that came from the target.
1154 (_initialize_target_descriptions): Add filename command completion
1155 for 'maint print c-tdesc'.
1156
1fb5ee62
SM
11572020-06-23 Simon Marchi <simon.marchi@efficios.com>
1158
1159 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1160 lines.
1161
fc3ecb3e
SM
11622020-06-23 Simon Marchi <simon.marchi@efficios.com>
1163
1164 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1165 lines.
1166 (dwarf2_find_location_expression): Likewise.
1167 (call_site_parameter_matches): Likewise.
1168 (dwarf2_compile_expr_to_ax): Likewise.
1169 (disassemble_dwarf_expression): Likewise.
1170 (loclist_describe_location): Likewise.
1171
236ef034
PA
11722020-06-23 Pedro Alves <palves@redhat.com>
1173
1174 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1175 progspace-and-thread.h. Include scoped-mock-context.h instead.
1176 (register_to_value_test): Use scoped_mock_context.
1177 * regcache.c: Include "scoped-mock-context.h".
1178 (cooked_read_test): Don't error out if a target is already pushed.
1179 Use scoped_mock_context. Adjust.
1180 * scoped-mock-context.h: New file.
1181
39e7ecca
AB
11822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1183
1184 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1185 initializer.
1186 (ada_language::is_string_type_p): New member function.
1187 * c-lang.c (c_language_data): Delete la_is_string_type_p
1188 initializer.
1189 (cplus_language_data): Likewise.
1190 (asm_language_data): Likewise.
1191 (minimal_language_data): Likewise.
1192 * d-lang.c (d_language_data): Likewise.
1193 * f-lang.c (f_is_string_type_p): Delete function, implementation
1194 moved to f_language::is_string_type_p.
1195 (f_language_data): Delete la_is_string_type_p initializer.
1196 (f_language::is_string_type_p): New member function,
1197 implementation from f_is_string_type_p.
1198 * go-lang.c (go_is_string_type_p): Delete function, implementation
1199 moved to go_language::is_string_type_p.
1200 (go_language_data): Delete la_is_string_type_p initializer.
1201 (go_language::is_string_type_p): New member function,
1202 implementation from go_is_string_type_p.
1203 * language.c (language_defn::is_string_type_p): Define new member
1204 function.
1205 (default_is_string_type_p): Make static, add comment copied from
1206 header file.
1207 (unknown_language_data): Delete la_is_string_type_p initializer.
1208 (unknown_language::is_string_type_p): New member function.
1209 (auto_language_data): Delete la_is_string_type_p initializer.
1210 (auto_language::is_string_type_p): New member function.
1211 * language.h (language_data): Delete la_is_string_type_p field.
1212 (language_defn::is_string_type_p): Declare new function.
1213 (default_is_string_type_p): Delete desclaration, move comment to
1214 definition.
1215 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1216 moved to m2_language::is_string_type_p.
1217 (m2_language_data): Delete la_is_string_type_p initializer.
1218 (m2_language::is_string_type_p): New member function,
1219 implementation from m2_is_string_type_p.
1220 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1221 initializer.
1222 * opencl-lang.c (opencl_language_data): Likewise.
1223 * p-lang.c (pascal_is_string_type_p): Delete function,
1224 implementation moved to pascal_language::is_string_type_p.
1225 (pascal_language_data): Delete la_is_string_type_p initializer.
1226 (pascal_language::is_string_type_p): New member function,
1227 implementation from pascal_is_string_type_p.
1228 * rust-lang.c (rust_is_string_type_p): Delete function,
1229 implementation moved to rust_language::is_string_type_p.
1230 (rust_language_data): Delete la_is_string_type_p initializer.
1231 (rust_language::is_string_type_p): New member function,
1232 implementation from rust_is_string_type_p.
1233 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1234 is_string_type_p.
1235
4ffc13fb
AB
12362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * ada-lang.c (ada_language_data): Delete la_print_typedef
1239 initializer.
1240 (ada_language::print_typedef): New member function.
1241 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1242 (cplus_language_data): Likewise.
1243 (asm_language_data): Likewise.
1244 (minimal_language_data): Likewise.
1245 * d-lang.c (d_language_data): Likewise.
1246 * f-lang.c (f_language_data): Likewise.
1247 (f_language::print_typedef): New member function.
1248 * go-lang.c (go_language_data): Delete la_print_typedef
1249 initializer.
1250 * language.c (language_defn::print_typedef): Define member
1251 function.
1252 (unknown_language_data): Delete la_print_typedef initializer.
1253 (unknown_language::print_typedef): New member function.
1254 (auto_language_data): Delete la_print_typedef initializer.
1255 (auto_language::print_typedef): New member function.
1256 * language.h (language_data): Delete la_print_typedef field.
1257 (language_defn::print_typedef): Declare new member function.
1258 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1259 (default_print_typedef): Delete declaration.
1260 * m2-lang.c (m2_language_data): Delete la_print_typedef
1261 initializer.
1262 (m2_language::print_typedef): New member function.
1263 * objc-lang.c (objc_language_data): Delete la_print_typedef
1264 initializer.
1265 * opencl-lang.c (opencl_language_data): Likewise.
1266 * p-lang.c (pascal_language_data): Likewise.
1267 (pascal_language::print_typedef): New member function.
1268 * rust-lang.c (rust_print_typedef): Delete function,
1269 implementation moved to rust_language::print_typedef.
1270 (rust_language): Delete la_print_typedef initializer.
1271 (rust_language::print_typedef): New member function,
1272 implementation from rust_print_typedef.
1273 * typeprint.c (default_print_typedef): Delete.
1274
d711ee67
AB
12752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1276
1277 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1278 (ada_language::printstr): New member function.
1279 * c-lang.c (c_language_data): Delete la_printstr initializer.
1280 (cplus_language_data): Likewise.
1281 (asm_language_data): Likewise.
1282 (minimal_language_data): Likewise.
1283 * d-lang.c (d_language_data): Likewise.
1284 * f-lang.c (f_printstr): Rename to f_language::printstr.
1285 (f_language_data): Delete la_printstr initializer.
1286 (f_language::printstr): New member function, implementation from
1287 f_printstr.
1288 * go-lang.c (go_language_data): Delete la_printstr initializer.
1289 * language.c (language_defn::printstr): Define new member
1290 function.
1291 (unk_lang_printstr): Delete.
1292 (unknown_language_data): Delete la_printstr initializer.
1293 (unknown_language::printstr): New member function.
1294 (auto_language_data): Delete la_printstr initializer.
1295 (auto_language::printstr): New member function.
1296 * language.h (language_data): Delete la_printstr field.
1297 (language_defn::printstr): Declare new member function.
1298 (LA_PRINT_STRING): Update call to printstr.
1299 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1300 (m2_language_data): Delete la_printstr initializer.
1301 (m2_language::printstr): New member function, implementation from
1302 m2_printstr.
1303 * objc-lang.c (objc_language_data): Delete la_printstr
1304 initializer.
1305 * opencl-lang.c (opencl_language_data): Likewise.
1306 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1307 (pascal_language_data): Delete la_printstr initializer.
1308 (pascal_language::printstr): New member function, implementation
1309 from pascal_printstr.
1310 * p-lang.h (pascal_printstr): Delete declaration.
1311 * rust-lang.c (rust_printstr): Update header comment.
1312 (rust_language_data): Delete la_printstr initializer.
1313 (rust_language::printstr): New member function.
1314
52b50f2c
AB
13152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1316
1317 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1318 (ada_language::printchar): New member function.
1319 * c-lang.c (c_language_data): Delete la_printchar initializer.
1320 (cplus_language_data): Likewise.
1321 (asm_language_data): Likewise.
1322 (minimal_language_data): Likewise.
1323 * d-lang.c (d_language_data): Likewise.
1324 * f-lang.c (f_printchar): Rename to f_language::printchar.
1325 (f_language_data): Delete la_printchar initializer.
1326 (f_language::printchar): New member function, implementation from
1327 f_printchar.
1328 * go-lang.c (go_language_data): Delete la_printchar initializer.
1329 * language.c (unk_lang_printchar): Delete.
1330 (language_defn::printchar): Define new member function.
1331 (unknown_language_data): Delete la_printchar initializer.
1332 (unknown_language::printchar): New member function.
1333 (auto_language_data): Delete la_printchar initializer.
1334 (auto_language::printchar): New member function.
1335 * language.h (language_data): Delete la_printchar field.
1336 (language_defn::printchar): Declare new member function.
1337 (LA_PRINT_CHAR): Update call to printchar.
1338 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1339 (m2_language::printchar): New member function.
1340 * objc-lang.c (objc_language_data): Delete la_printchar
1341 initializer.
1342 * opencl-lang.c (opencl_language_data): Likewise.
1343 * p-lang.c (pascal_language_data): Delete la_printchar
1344 initializer.
1345 (pascal_language::printchar): New member function.
1346 * rust-lang.c (rust_printchar): Rename to
1347 rust_language::printchar.
1348 (rust_language_data): Delete la_printchar initializer.
1349 (rust_language::printchar): New member function, implementation
1350 from rust_printchar.
1351
ec8cec5b
AB
13522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1355 (ada_language_data): Delete la_emitchar initializer.
1356 (ada_language::emitchar): New member function, implementation from
1357 emit_char.
1358 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1359 (cplus_language_data): Likewise.
1360 (asm_language_data): Likewise.
1361 (minimal_language_data): Likewise.
1362 * d-lang.c (d_language_data): Likewise.
1363 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1364 (f_language_data): Delete la_emitchar initializer.
1365 (f_language::emitchar): New member function, implementation from
1366 f_emit_char.
1367 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1368 * language.c (unk_lang_emit_char): Delete.
1369 (language_defn::emitchar): New member function definition.
1370 (unknown_language_data): Delete la_emitchar initializer.
1371 (unknown_language::emitchar): New member function.
1372 (auto_language_data): Delete la_emitchar initializer.
1373 (auto_language::emitchar): New member function.
1374 * language.h (language_data): Delete la_emitchar field.
1375 (language_defn::emitchar): New member field declaration.
1376 (LA_EMIT_CHAR): Update call to emitchar.
1377 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1378 (m2_language_data): Delete la_emitchar initializer.
1379 (m2_language::emitchar): New member function, implementation from
1380 m2_emit_char.
1381 * objc-lang.c (objc_language_data): Delete la_emitchar
1382 initializer.
1383 * opencl-lang.c (opencl_language_data): Likewise.
1384 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1385 (pascal_language_data): Delete la_emitchar initializer.
1386 (pascal_language::emitchar): New member function, implementation
1387 from pascal_emit_char.
1388 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1389 (rust_language_data): Delete la_emitchar initializer.
1390 (rust_language::emitchar): New member function, implementation
1391 from rust_emitchar.
1392
1bf9c363
AB
13932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1396 (ada_language_data): Delete la_post_parser initializer.
1397 (ada_language::post_parser): New member function.
1398 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1399 (cplus_language_data): Likewise.
1400 (asm_language_data): Likewise.
1401 (minimal_language_data): Likewise.
1402 * d-lang.c (d_language_data): Likewise.
1403 * f-lang.c (f_language_data): Likewise.
1404 * go-lang.c (go_language_data): Likewise.
1405 * language.c (unknown_language_data): Likewise.
1406 (auto_language_data): Likewise.
1407 * language.h (language_data): Delete la_post_parser field.
1408 (language_defn::post_parser): New member function.
1409 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1410 * objc-lang.c (objc_language_data): Likewise.
1411 * opencl-lang.c (opencl_language_data): Likewise.
1412 * p-lang.c (pascal_language_data): Likewise.
1413 * parse.c (parse_exp_in_context): Update call to post_parser.
1414 (null_post_parser): Delete definition.
1415 * parser-defs.h (null_post_parser): Delete declaration.
1416 * rust-lang.c (rust_language_data): Delete la_post_parser
1417 initializer.
1418
87afa652
AB
14192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1420
1421 * ada-lang.c (parse): Rename to ada_language::parser.
1422 (ada_language_data): Delete la_parser initializer.
1423 (ada_language::parser): New member function, implementation from
1424 parse.
1425 * c-lang.c (c_language_data): Delete la_parser initializer.
1426 (cplus_language_data): Likewise.
1427 (asm_language_data): Likewise.
1428 (minimal_language_data): Likewise.
1429 * d-lang.c (d_language_data): Likewise.
1430 (d_language::parser): New member function.
1431 * f-lang.c (f_language_data): Delete la_parser initializer.
1432 (f_language::parser): New member function.
1433 * go-lang.c (go_language_data): Delete la_parser initializer.
1434 (go_language::parser): New member function.
1435 * language.c (unk_lang_parser): Delete.
1436 (language_defn::parser): Define new member function.
1437 (unknown_language_data): Delete la_parser initializer.
1438 (unknown_language::parser): New member function.
1439 (auto_language_data): Delete la_parser initializer.
1440 (auto_language::parser): New member function.
1441 * language.h (language_data): Delete la_parser field.
1442 (language_defn::parser): Declare new member function.
1443 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1444 (m2_language::parser): New member function.
1445 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1446 * opencl-lang.c (opencl_language_data): Likewise.
1447 * p-lang.c (pascal_language_data): Likewise.
1448 (pascal_language::parser): New member function.
1449 * parse.c (parse_exp_in_context): Update call to parser.
1450 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1451 (rust_language::parser): New member function.
1452
37825800
AB
14532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * top.c (print_gdb_configuration): Print --with-python-libdir
1456 configuration value.
1457
5b860c93
PW
14582020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1459
1460 * NEWS: Mention change to the alias command.
1461
cf00cd6f
PW
14622020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1463
1464 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1465 (alias_command_completer)
1466 (make_alias_options_def_group): New functions.
1467 (alias_opts, alias_option_defs): New struct and array.
1468 (alias_usage_error): Update usage.
1469 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1470 Use option framework.
1471 (_initialize_cli_cmds): Update alias command help.
1472 Update aliases command help.
1473 (show_user):
1474 Add NULL for new default_args lookup_cmd argument.
1475 (valid_command_p): Rename to validate_aliased_command.
1476 Add NULL for new default_args lookup_cmd argument. Verify that the
1477 aliased_command has no default args.
1478 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1479 (lookup_cmd_1, lookup_cmd): New argument default_args.
1480 (add_alias_cmd):
1481 Add NULL for new default_args lookup_cmd argument.
1482 (print_help_for_command): Show default args under the layout
1483 alias some_alias = some_aliased_cmd some_alias_default_arg.
1484 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1485 xfree default_args in destructor.
1486 * cli/cli-script.c (process_next_line, do_define_command):
1487 Add NULL for new default_args lookup_cmd argument.
1488 * command.h: Declare new default_args argument in lookup_cmd
1489 and lookup_cmd_1.
1490 * completer.c (complete_line_internal_1):
1491 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1492 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1493 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1494 Likewise.
1495 * infcmd.c (_initialize_infcmd): Likewise.
1496 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1497 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1498 * python/py-param.c (add_setshow_generic): Likewise.
1499 * remote.c (_initialize_remote): Likewise.
1500 * top.c (execute_command): Prepend default_args if command has some.
1501 (set_verbose):
1502 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1503 * tracepoint.c (validate_actionline, encode_actions_1):
1504 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1505
bd920864
TBA
15062020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1507
1508 * jit.c (jit_read_descriptor): Use bool as the return type.
1509 (jit_breakpoint_re_set_internal): Use bool as the return type.
1510 Invert the return value logic; return true if the jit breakpoint
1511 has been successfully initialized.
1512 (jit_inferior_init): Update the call to
1513 jit_breakpoint_re_set_internal.
1514
f8098322
PA
15152020-06-22 Pedro Alves <palves@redhat.com>
1516
1517 PR gdb/25939
1518 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1519 Use the current inferior instead. Don't return
1520 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1521 wait again.
1522 * sol-thread.c (sol_thread_target::wait): Don't reference
1523 inferior_ptid.
1524 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1525 (sol_update_thread_list_callback): Use the current inferior's pid
1526 instead of inferior_ptid.
1527
196535a6
RO
15282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1529
1530 * procfs.c: Cleanup many comments.
1531
1532 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1533 (AFTER_WATCHFLAG): Replace by value.
1534
1535 (MAIN_PROC_NAME_FORMAT): Inline ...
1536 (create_procinfo): ... here.
1537
1538 (procfs_debug_inferior): Remove SYS_exec handling.
1539 (syscall_is_exec): Likewise.
1540 (procfs_set_exec_trap): Likewise.
1541
1542 (syscall_is_lwp_exit): Inline in callers.
1543 (syscall_is_exit): Likewise.
1544 (syscall_is_exec): Likewise.
1545 (syscall_is_lwp_create): Likewise.
1546
1547 (invalidate_cache): Remove #if 0 code.
1548
1549 (make_signal_thread_runnable): Remove.
1550 (procfs_target::resume): Remove #if 0 code.
1551
cf6f3e86
RO
15522020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1553
1554 PR gdb/25939
1555 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1556 call ...
1557 (procfs_target::create_inferior): ... here.
1558
48e9cc84
PW
15592020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1560
1561 * exec.c (validate_exec_file): Ensure the build-id is up to
1562 date by calling reopen_exec_file (that checks file timestamp
1563 to decide to re-read the file).
1564
3922b302
PA
15652020-06-18 Pedro Alves <palves@redhat.com>
1566
1567 PR gdb/25412
1568 * gdbthread.h (delete_thread, delete_thread_silent)
1569 (find_thread_ptid): Update comments.
1570 * thread.c (current_thread_): New global.
1571 (is_current_thread): Move higher, and reimplement.
1572 (inferior_thread): Reimplement.
1573 (set_thread_exited): Use bool. Add assertions.
1574 (add_thread_silent): Simplify thread-reuse handling by always
1575 calling delete_thread.
1576 (delete_thread): Remove intro comment.
1577 (find_thread_ptid): Skip exited threads.
1578 (switch_to_thread_no_regs): Write to current_thread_.
1579 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1580 INFERIOR_PTID. Clear current_thread_.
1581
6dbdab44
PA
15822020-06-18 Pedro Alves <palves@redhat.com>
1583
1584 * aix-thread.c (pd_update): Use switch_to_thread.
1585
2da4b788
PA
15862020-06-18 Pedro Alves <palves@redhat.com>
1587
1588 * ravenscar-thread.c (ravenscar_thread_target): Update.
1589 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1590 (ravenscar_thread_target::add_active_thread): ... this. Don't
1591 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1592 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1593
50838d1b
PA
15942020-06-18 Pedro Alves <palves@redhat.com>
1595
1596 * nat/windows-nat.c (current_windows_thread): Remove.
1597 * nat/windows-nat.h (current_windows_thread): Remove.
1598 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1599 Adjust.
1600 (display_selectors): Adjust to fetch the current
1601 windows_thread_info based on inferior_ptid.
1602 (fake_create_process): No longer write to current_windows_thread.
1603 (windows_nat_target::get_windows_debug_event):
1604 Don't set inferior_ptid or current_windows_thread.
1605 (windows_nat_target::wait): Adjust to not rely on
1606 current_windows_thread.
1607 (do_initial_windows_stuff): Now a method of windows_nat_target.
1608 Switch to the last_ptid thread.
1609 (windows_nat_target::attach): Adjust.
1610 (windows_nat_target::detach): Use switch_to_no_thread instead of
1611 writing to inferior_ptid directly.
1612 (windows_nat_target::create_inferior): Adjust.
1613
31ce04e9
PA
16142020-06-18 Pedro Alves <palves@redhat.com>
1615
1616 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1617
1ee1a363
PA
16182020-06-18 Pedro Alves <palves@redhat.com>
1619
1620 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1621 after creating it, instead of writing to inferior_ptid. Don't
1622 write to inferior_ptid.
1623
6d350754
PA
16242020-06-18 Pedro Alves <palves@redhat.com>
1625
1626 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1627
5d971d48
PA
16282020-06-18 Pedro Alves <palves@redhat.com>
1629
1630 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1631 it, instead of writing to inferior_ptid.
1632
86e57d1b
PA
16332020-06-18 Pedro Alves <palves@redhat.com>
1634
1635 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1636 to inferior_ptid.
1637
f2e1c129
PA
16382020-06-18 Pedro Alves <palves@redhat.com>
1639
1640 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1641 instead of writing to inferior_ptid directly.
1642
60db1b85
PA
16432020-06-18 Pedro Alves <palves@redhat.com>
1644
1645 * corelow.c (core_target::close): Use switch_to_no_thread instead
1646 of writing to inferior_ptid directly.
1647 (add_to_thread_list, core_target_open): Use switch_to_thread
1648 instead of writing to inferior_ptid directly.
1649
fe7d6a8d
PA
16502020-06-18 Pedro Alves <palves@redhat.com>
1651
1652 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1653 inferior_ptid.
1654 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1655 inferior_ptid.
1656 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1657 inferior_ptid directly.
1658 (darwin_nat_target::init_thread_list): Switch to thread, instead
1659 of writing to inferior_ptid.
1660 (darwin_nat_target::attach): Don't write to inferior_ptid.
1661 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1662
975f8708
PA
16632020-06-18 Pedro Alves <palves@redhat.com>
1664
1665 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1666 thread.
1667 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1668 Instead use switch_to_thread.
1669 (gnu_nat_target::detach): Use switch_to_no_thread
1670 instead of writing to inferior_ptid directly. Used passed-in
1671 inferior instead of looking up the inferior by pid.
1672
1a204730
PA
16732020-06-18 Pedro Alves <palves@redhat.com>
1674
1675 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1676 inferior_ptid.
1677
ebe84f23
PA
16782020-06-18 Pedro Alves <palves@redhat.com>
1679
1680 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1681 inferior_ptid.
1682 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1683 thread.
1684 (nto_procfs_target::detach): Avoid referencing
1685 inferior_ptid. Use switch_to_no_thread instead of writing to
1686 inferior_ptid directly.
1687 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1688 instead of writing to inferior_ptid directly.
1689 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1690 to thread.
1691
191f02e5
PA
16922020-06-18 Pedro Alves <palves@redhat.com>
1693
1694 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1695 after creating it, instead of writing to inferior_ptid.
1696 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1697 to inferior_ptid directly.
1698 (gdbsim_target::wait): Don't write to inferior_ptid.
1699
0ac55310
PA
17002020-06-18 Pedro Alves <palves@redhat.com>
1701
1702 * remote.c (remote_target::remote_notice_new_inferior): Use
1703 switch_to_thread instead of writing to inferior_ptid directly.
1704 (remote_target::add_current_inferior_and_thread): Use
1705 switch_to_no_thread instead of writing to inferior_ptid directly.
1706 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1707 and switch_to_thread instead of using set_current_inferior or
1708 writing to inferior_ptid directly.
1709
5233f39b
PA
17102020-06-18 Pedro Alves <palves@redhat.com>
1711
1712 * tracectf.c (ctf_target_open): Switch to added thread instead of
1713 writing to inferior_ptid directly.
1714 (ctf_target::close): Use switch_to_no_thread instead of writing to
1715 inferior_ptid directly.
1716
087e161b
PA
17172020-06-18 Pedro Alves <palves@redhat.com>
1718
1719 * tracefile-tfile.c (tfile_target_open): Don't write to
1720 inferior_ptid directly, instead switch to added thread.
1721 (tfile_target::close): Use switch_to_no_thread instead of writing
1722 to inferior_ptid directly.
1723
7fb43e53
PA
17242020-06-18 Pedro Alves <palves@redhat.com>
1725
1726 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1727 (procfs_target::detach): Use switch_to_no_thread
1728 instead of writing to inferior_ptid directly.
1729 (do_attach): Change return type to void. Switch to the added
1730 thread.
1731 (procfs_target::create_inferior): Switch to the added thread.
1732 (procfs_do_thread_registers): Don't write to inferior_ptid.
1733
18493a00
PA
17342020-06-18 Pedro Alves <palves@redhat.com>
1735
1736 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1737 of writing to inferior_ptid.
1738 (scoped_restore_exited_inferior): Delete.
1739 (handle_vfork_child_exec_or_exit): Simplify using
1740 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1741 instead of writing to inferior_ptid.
1742 (THREAD_STOPPED_BY): Delete.
1743 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1744 (thread_stopped_by_hw_breakpoint): Delete.
1745 (save_waitstatus): Use
1746 scoped_restore_current_thread+switch_to_thread, and call
1747 target_stopped_by_watchpoint instead of
1748 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1749 instead of thread_stopped_by_sw_breakpoint, and
1750 target_stopped_by_hw_breakpoint instead of
1751 thread_stopped_by_hw_breakpoint.
1752 (handle_inferior_event)
1753 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1754 inferior_ptid directly, nor
1755 set_current_inferior/set_current_program_space. Use
1756 switch_to_thread / switch_to_inferior_no_thread instead.
1757
a0776b13
PA
17582020-06-18 Pedro Alves <palves@redhat.com>
1759
1760 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1761 instead of writing to inferior_ptid.
1762
6155c136
PA
17632020-06-18 Pedro Alves <palves@redhat.com>
1764
1765 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1766 added thread.
1767 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1768 to the added thread.
1769 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1770 instead of writing to inferior_ptid.
1771
c5316fc6
PA
17722020-06-18 Pedro Alves <palves@redhat.com>
1773
1774 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1775 (register_to_value_test): Mock a program_space too. Heap-allocate
1776 the address space. Don't write to inferior_ptid. Use
1777 switch_to_thread instead.
1778
8df01799
PA
17792020-06-18 Pedro Alves <palves@redhat.com>
1780
1781 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1782 Delete.
1783 (find_signalled_thread()): New, factored out from
1784 linux_make_corefile_notes and adjusted to handle exited threads.
1785 (linux_make_corefile_notes): Adjust to use the new
1786 find_signalled_thread.
1787
41792d68
PA
17882020-06-18 Pedro Alves <palves@redhat.com>
1789
1790 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1791 of saving/restoring inferior_ptid.
1792
612f258a
TT
17932020-06-17 Tom Tromey <tom@tromey.com>
1794
1795 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1796 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1797 declare.
1798 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1799
efb763a5
SM
18002020-06-15 Simon Marchi <simon.marchi@efficios.com>
1801
1802 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1803 of partial symtabs.
1804
2951f6c0
SM
18052020-06-17 Simon Marchi <simon.marchi@efficios.com>
1806
1807 * regformats/reg-arm.dat: Remove.
1808 * regformats/reg-bfin.dat: Remove.
1809 * regformats/reg-cris.dat: Remove.
1810 * regformats/reg-crisv32.dat: Remove.
1811 * regformats/reg-m32r.dat: Remove.
1812 * regformats/reg-tilegx.dat: Remove.
1813 * regformats/reg-tilegx32.dat: Remove.
1814
7d458ea5
SM
18152020-06-17 Simon Marchi <simon.marchi@efficios.com>
1816
1817 * features/Makefile (WHICH): Remove arm files.
1818 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1819 * regformats/arm/arm-with-neon.dat: Remove.
1820 * regformats/arm/arm-with-vfpv2.dat: Remove.
1821 * regformats/arm/arm-with-vfpv3.dat: Remove.
1822
3af96c0d
SM
18232020-06-17 Simon Marchi <simon.marchi@efficios.com>
1824
1825 * features/Makefile (XMLTOC): Remove rx.xml.
1826
b25e22fd
PA
18272020-06-17 Pedro Alves <palves@redhat.com>
1828
1829 * gdbthread.h (thread_control_state) <trap_expected> Update
1830 comments.
1831
a78a19b1
AB
18322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1833
1834 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1835 ada_language::lookup_symbol_nonlocal.
1836 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1837 (ada_language::lookup_symbol_nonlocal): New member function,
1838 implementation from ada_lookup_symbol_nonlocal.
1839 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1840 initializer.
1841 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1842 initializer.
1843 (cplus_language::lookup_symbol_nonlocal): New member function.
1844 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1845 (minimal_language_data) Likewise.
1846 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1847 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1848 initializer.
1849 (d_language::lookup_symbol_nonlocal): New member function.
1850 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1851 initializer.
1852 (f_language::lookup_symbol_nonlocal): New member function.
1853 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1854 initializer.
1855 * language.c (unknown_language_data): Likewise.
1856 (auto_language_data): Likewise.
1857 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1858 field.
1859 (language_defn::lookup_symbol_nonlocal): New member function.
1860 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1861 initializer.
1862 * objc-lang.c (objc_language_data): Likewise.
1863 * opencl-lang.c (opencl_language_data): Likewise.
1864 * p-lang.c (pascal_language_data): Likewise.
1865 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1866 rust_language::lookup_symbol_nonlocal.
1867 (rust_language_data): Delete la_lookup_symbol_nonlocal
1868 initializer.
1869 (rust_language::lookup_symbol_nonlocal): New member function,
1870 implementation from rust_lookup_symbol_nonlocal.
1871 * symtab.c (lookup_symbol_aux): Update call to
1872 lookup_symbol_nonlocal.
1873 (basic_lookup_symbol_nonlocal): Rename to...
1874 (language_defn::lookup_symbol_nonlocal): ...this, and update
1875 header comment. Remove language_defn parameter, and replace with
1876 uses of `this'.
1877 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1878
ebe2334e
AB
18792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1882 initializer.
1883 (ada_language::value_print_inner): New member function.
1884 * c-lang.c (c_language_data): Delete la_value_print_inner
1885 initializer.
1886 (cplus_language_data): Likewise.
1887 (asm_language_data): Likewise.
1888 (minimal_language_data): Likewise.
1889 * d-lang.c (d_language_data): Likewise.
1890 (d_language::value_print_inner): New member function.
1891 * f-lang.c (f_language_data): Delete la_value_print_inner
1892 initializer.
1893 (f_language::value_print_inner): New member function.
1894 * f-lang.h (f_value_print_innner): Rename to...
1895 (f_value_print_inner): ...this (note spelling of 'inner').
1896 * f-valprint.c (f_value_print_innner): Rename to...
1897 (f_value_print_inner): ...this (note spelling of 'inner').
1898 * go-lang.c (go_language_data): Delete la_value_print_inner
1899 initializer.
1900 (go_language::value_print_inner): New member function.
1901 * language.c (language_defn::value_print_inner): Define new member
1902 function.
1903 (unk_lang_value_print_inner): Delete.
1904 (unknown_language_data): Delete la_value_print_inner initializer.
1905 (unknown_language::value_print_inner): New member function.
1906 (auto_language_data): Delete la_value_print_inner initializer.
1907 (auto_language::value_print_inner): New member function.
1908 * language.h (language_data): Delete la_value_print_inner field.
1909 (language_defn::value_print_inner): Delcare new member function.
1910 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1911 initializer.
1912 (m2_language::value_print_inner): New member function.
1913 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1914 initializer.
1915 * opencl-lang.c (opencl_language_data): Likewise.
1916 * p-lang.c (pascal_language_data): Likewise.
1917 (pascal_language::value_print_inner): New member function.
1918 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1919 initializer.
1920 (rust_language::value_print_inner): New member function.
1921 * valprint.c (do_val_print): Update call to value_print_inner.
1922
a1d1fa3e
AB
19232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1924
1925 * ada-lang.c (ada_language_data): Delete la_value_print
1926 initializer.
1927 (ada_language::value_print): New member function.
1928 * c-lang.c (c_language_data): Delete la_value_print initializer.
1929 (cplus_language_data): Likewise.
1930 (asm_language_data): Likewise.
1931 (minimal_language_data): Likewise.
1932 * d-lang.c (d_language_data): Likewise.
1933 * f-lang.c (f_language_data): Likewise.
1934 * go-lang.c (go_language_data): Likewise.
1935 * language.c (unk_lang_value_print): Delete.
1936 (language_defn::value_print): Define new member function.
1937 (unknown_language_data): Delete la_value_print initializer.
1938 (unknown_language::value_print): New member function.
1939 (auto_language_data): Delete la_value_print initializer.
1940 (auto_language::value_print): New member function.
1941 * language.h (language_data): Delete la_value_print field.
1942 (language_defn::value_print): Declare new member function.
1943 (LA_VALUE_PRINT): Update call to value_print.
1944 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1945 * objc-lang.c (objc_language_data): Likewise.
1946 * opencl-lang.c (opencl_language_data): Likewise.
1947 * p-lang.c (pascal_language_data): Likewise.
1948 (pascal_language::value_print): New member function.
1949 * rust-lang.c (rust_language_data): Delete la_value_print
1950 initializer.
1951
f16a9f57
AB
19522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1953
1954 * ada-lang.c (ada_watch_location_expression): Rename to
1955 ada_language::watch_location_expression.
1956 (ada_language_data): Delete la_watch_location_expression
1957 initializer.
1958 (ada_language::watch_location_expression): New member function,
1959 implementation from ada_watch_location_expression.
1960 * breakpoint.c (watch_command_1): Update call to
1961 watch_location_expression.
1962 * c-lang.c (c_watch_location_expression): Rename to
1963 language_defn::watch_location_expression.
1964 (c_language_data): Delete la_watch_location_expression
1965 initializer.
1966 (cplus_language_data): Likewise.
1967 (asm_language_data): Likewise.
1968 (minimal_language_data): Likewise.
1969 * c-lang.h (c_watch_location_expression): Delete declaration.
1970 * d-lang.c (d_language_data): Delete la_watch_location_expression
1971 initializer.
1972 * f-lang.c (f_language_data): Likewise.
1973 * go-lang.c (go_language_data): Likewise.
1974 * language.c (language_defn::watch_location_expression): Member
1975 function implementation from c_watch_location_expression.
1976 (unknown_language_data): Delete la_watch_location_expression
1977 initializer.
1978 (auto_language_data): Likewise.
1979 * language.h (language_data): Delete la_watch_location_expression
1980 field.
1981 (language_defn::watch_location_expression): Declare new member
1982 function.
1983 * m2-lang.c (m2_language_data): Delete
1984 la_watch_location_expression initializer.
1985 * objc-lang.c (objc_language_data): Likewise.
1986 * opencl-lang.c (opencl_language_data): Likewise.
1987 * p-lang.c (pascal_language_data): Likewise.
1988 * rust-lang.c (rust_watch_location_expression): Rename to
1989 rust_language::watch_location_expression.
1990 (rust_language_data): Delete la_watch_location_expression
1991 initializer.
1992 (rust_language::watch_location_expression): New member function,
1993 implementation from rust_watch_location_expression.
1994
7e56227d
AB
19952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1996
1997 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1998 ada_language::collect_symbol_completion_matches.
1999 (ada_language_data): Delete la_collect_symbol_completion_matches
2000 initializer.
2001 (ada_language::collect_symbol_completion_matches): New member
2002 function, implementation from
2003 ada_collect_symbol_completion_matches.
2004 * c-lang.c (c_language_data): Delete
2005 la_collect_symbol_completion_matches initializer.
2006 (cplus_language_data): Likewise.
2007 (asm_language_data): Likewise.
2008 (minimal_language_data): Likewise.
2009 * d-lang.c (d_language_data): Likewise.
2010 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2011 f_language::collect_symbol_completion_matches.
2012 (f_language_data): Delete la_collect_symbol_completion_matches
2013 initializer.
2014 (f_language::collect_symbol_completion_matches) New member
2015 function, implementation from f_collect_symbol_completion_matches.
2016 * go-lang.c (go_language_data): Delete
2017 la_collect_symbol_completion_matches initializer.
2018 * language.c (unknown_language_data): Likewise.
2019 (auto_language_data): Likewise.
2020 * language.h (language_data): Delete
2021 la_collect_symbol_completion_matches field.
2022 (language_defn::collect_symbol_completion_matches): New member
2023 function.
2024 * m2-lang.c (m2_language_data): Delete
2025 la_collect_symbol_completion_matches initializer.
2026 * objc-lang.c (objc_language_data): Likewise.
2027 * opencl-lang.c (opencl_language_data): Likewise.
2028 * p-lang.c (pascal_language_data): Likewise.
2029 * rust-lang.c (rust_language_data): Likewise.
2030 * symtab.c (default_collect_symbol_completion_matches): Delete.
2031 (collect_symbol_completion_matches): Update call to
2032 collect_symbol_completion_matches.
2033 (collect_symbol_completion_matches_type): Likewise.
2034 * symtab.h (default_collect_symbol_completion_matches): Delete
2035 declaration.
2036
53fc67f8
AB
20372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2038
2039 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2040 (ada_language_data): Delete la_word_break_characters initializer.
2041 (ada_language::word_break_characters): New member function.
2042 * c-lang.c (c_language_data): Delete la_word_break_characters
2043 initializer.
2044 (cplus_language_data): Likewise.
2045 (asm_language_data): Likewise.
2046 (minimal_language_data): Likewise.
2047 * completer.c: Update global comment.
2048 (advance_to_expression_complete_word_point): Update call to
2049 word_break_characters.
2050 (complete_files_symbols): Likewise.
2051 (complete_line_internal_1): Likewise.
2052 (default_completer_handle_brkchars): Likewise.
2053 (skip_quoted_chars): Likewise.
2054 * d-lang.c (d_language_data): Delete la_word_break_characters
2055 initializer.
2056 * f-lang.c (f_word_break_characters): Delete.
2057 (f_language_data): Delete la_word_break_characters initializer.
2058 (f_language::word_break_characters): New member function.
2059 * go-lang.c (go_language_data): Delete la_word_break_characters
2060 initializer.
2061 * language.c (unknown_language_data): Likewise.
2062 (auto_language_data): Likewise.
2063 * language.h (default_word_break_characters): Move declaration to
2064 earlier in the file.
2065 (language_data): Delete la_word_break_characters field.
2066 (language_defn::word_break_characters): New member function.
2067 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2068 initializer.
2069 * objc-lang.c (objc_language_data): Likewise.
2070 * opencl-lang.c (opencl_language_data): Likewise.
2071 * p-lang.c (pascal_language_data): Likewise.
2072 * rust-lang.c (rust_language_data): Likewise.
2073
c9debfb9
AB
20742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2075
2076 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2077 (ada_language_data): Delete la_get_symbol_name_matcher
2078 initializer.
2079 (language_defn::get_symbol_name_matcher_inner): New member
2080 function.
2081 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2082 initializer.
2083 (cplus_language_data): Likewise.
2084 (cplus_language::get_symbol_name_matcher_inner): New member
2085 function.
2086 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2087 (minimal_language_data): Likewise.
2088 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2089 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2090 initializer.
2091 * dictionary.c (iter_match_first_hashed): Update call to
2092 get_symbol_name_matcher.
2093 (iter_match_next_hashed): Likewise.
2094 (iter_match_next_linear): Likewise.
2095 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2096 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2097 initializer.
2098 (f_language::get_symbol_name_matcher_inner): New member function.
2099 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2100 initializer.
2101 * language.c (default_symbol_name_matcher): Update header comment,
2102 make static.
2103 (language_defn::get_symbol_name_matcher): New definition.
2104 (language_defn::get_symbol_name_matcher_inner): Likewise.
2105 (get_symbol_name_matcher): Delete.
2106 (unknown_language_data): Delete la_get_symbol_name_matcher
2107 initializer.
2108 (auto_language_data): Likewise.
2109 * language.h (language_data): Delete la_get_symbol_name_matcher
2110 field.
2111 (language_defn::get_symbol_name_matcher): New member function.
2112 (language_defn::get_symbol_name_matcher_inner): Likewise.
2113 (default_symbol_name_matcher): Delete declaration.
2114 * linespec.c (find_methods): Update call to
2115 get_symbol_name_matcher.
2116 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2117 initializer.
2118 * minsyms.c (lookup_minimal_symbol): Update call to
2119 get_symbol_name_matcher.
2120 (iterate_over_minimal_symbols): Likewise.
2121 * objc-lang.c (objc_language_data): Delete
2122 la_get_symbol_name_matcher initializer.
2123 * opencl-lang.c (opencl_language_data): Likewise.
2124 * p-lang.c (pascal_language_data): Likewise.
2125 * psymtab.c (psymbol_name_matches): Update call to
2126 get_symbol_name_matcher.
2127 * rust-lang.c (rust_language_data): Delete
2128 la_get_symbol_name_matcher initializer.
2129 * symtab.c (symbol_matches_search_name): Update call to
2130 get_symbol_name_matcher.
2131 (compare_symbol_name): Likewise.
2132
9a49ad8c
AB
21332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2134
2135 * ada-lang.c (ada_language_data): Delete la_compute_program
2136 initializer.
2137 * c-lang.c (c_language_data): Likewise.
2138 (c_language::compute_program): New member function.
2139 (cplus_language_data): Delete la_compute_program initializer.
2140 (cplus_language::compute_program): New member function.
2141 (asm_language_data): Delete la_compute_program initializer.
2142 (minimal_language_data): Likewise.
2143 * c-lang.h (c_compute_program): Update comment.
2144 (cplus_compute_program): Likewise.
2145 * compile/compile-c-support.c (c_compute_program): Likewise.
2146 (cplus_compute_program): Likewise.
2147 * compile/compile.c (compile_to_object): Update call to
2148 la_compute_program.
2149 * d-lang.c (d_language_data): Delete la_compute_program
2150 initializer.
2151 * f-lang.c (f_language_data): Likewise.
2152 * go-lang.c (go_language_data): Likewise.
2153 * language.c (unknown_language_data): Likewise.
2154 (auto_language_data): Likewise.
2155 * language.h (language_data): Delete la_compute_program field.
2156 (language_defn::compute_program): New member function.
2157 * m2-lang.c (m2_language_data): Delete la_compute_program
2158 initializer.
2159 * objc-lang.c (objc_language_data): Likewise.
2160 * opencl-lang.c (opencl_language_data): Likewise.
2161 * p-lang.c (pascal_language_data): Likewise.
2162 * rust-lang.c (rust_language_data): Likewise.
2163
eff93b4d
AB
21642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * ada-lang.c (ada_language_data) Delete
2167 la_class_name_from_physname initializer.
2168 * c-lang.c (c_language_data): Likewise.
2169 (cplus_language_data): Likewise.
2170 (cplus_language::class_name_from_physname): New member function.
2171 (asm_language_data): Delete la_class_name_from_physname
2172 initializer.
2173 (minimal_language_data): Likewise.
2174 * d-lang.c (d_language_data): Likewise.
2175 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2176 method on language_defn class.
2177 (guess_full_die_structure_name): Likewise.
2178 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2179 initializer.
2180 * go-lang.c (go_language_data): Likewise.
2181 * language.c (language_class_name_from_physname): Delete.
2182 (unk_lang_class_name): Delete.
2183 (unknown_language_data): Delete la_class_name_from_physname
2184 initializer.
2185 (auto_language_data): Likewise.
2186 * language.h (language_data): Delete la_class_name_from_physname
2187 field.
2188 (language_defn::class_name_from_physname): New function.
2189 (language_class_name_from_physname): Delete declaration.
2190 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2191 initializer.
2192 * objc-lang.c (objc_language_data): Likewise.
2193 * opencl-lang.c (opencl_language_data): Likewise.
2194 * p-lang.c (pascal_language_data): Likewise.
2195 * rust-lang.c (rust_language_data): Likewise.
2196
de543742
TT
21972020-06-16 Tom Tromey <tom@tromey.com>
2198
2199 * tui/tui-data.h (STATUS_NAME): New macro.
2200 * tui/tui-layout.c (tui_remove_some_windows)
2201 (initialize_known_windows, tui_register_window)
2202 (tui_layout_split::remove_windows, initialize_layouts)
2203 (tui_new_layout_command): Don't use hard-coded window names.
2204
a350efd4
TT
22052020-06-16 Tom Tromey <tom@tromey.com>
2206
2207 PR tui/25348:
2208 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2209 tui_initialize_readline. Only run once. Call rl_initialize.
2210 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2211 tui_initialize_readline.
2212 * tui/tui-io.c (tui_setup_io): Call
2213 tui_ensure_readline_initialized.
2214 * tui/tui-interp.c (tui_interp::init): Update.
2215
39ec0490
TT
22162020-06-16 Tom Tromey <tom@tromey.com>
2217
2218 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2219 Also preserve the status window.
2220
d2d1ea20
TT
22212020-06-16 Tom Tromey <tom@tromey.com>
2222
2223 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2224 where m_window==nullptr.
2225
66920317
TT
22262020-06-15 Tom Tromey <tromey@adacore.com>
2227
2228 * windows-nat.c (windows_nat::handle_output_debug_string):
2229 Update.
2230 (windows_nat::handle_ms_vc_exception): Update.
2231 * target.h (target_read_string): Change API.
2232 * target.c (target_read_string): Change API.
2233 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2234 Update.
2235 * solib-frv.c (frv_current_sos): Update.
2236 * solib-dsbt.c (dsbt_current_sos): Update.
2237 * solib-darwin.c (darwin_current_sos): Update.
2238 * linux-thread-db.c (inferior_has_bug): Update.
2239 * expprint.c (print_subexp_standard): Update.
2240 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2241 (ada_exception_message_1): Update.
2242
a5d871dd
TT
22432020-06-15 Tom Tromey <tromey@adacore.com>
2244
2245 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2246
670e35fa
TT
22472020-06-15 Tom Tromey <tromey@adacore.com>
2248
2249 * valprint.c (read_string): Update comment.
2250 * target.c (MIN): Remove.
2251 (target_read_string): Rewrite.
2252
f5272a3b
TT
22532020-06-15 Tom Tromey <tromey@adacore.com>
2254
2255 * corefile.c (read_memory_string): Remove.
2256 * ada-valprint.c (ada_value_print_ptr): Update.
2257 * ada-lang.h (ada_tag_name): Change return type.
2258 * ada-lang.c (type_from_tag): Update.
2259 (ada_tag_name_from_tsd): Change return type. Use
2260 target_read_string.
2261 (ada_tag_name): Likewise.
2262 * gdbcore.h (read_memory_string): Don't declare.
2263
2c074f49
HD
22642020-06-14 Hannes Domani <ssbssa@yahoo.de>
2265
2266 * symtab.c (rbreak_command): Ignore Windows drive colon.
2267
6a17d503
SM
22682020-06-12 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * NEWS: Mention removed GDBserver host support.
2271
453c733f
NC
22722020-06-12 Nelson Chu <nelson.chu@sifive.com>
2273
2274 * features/riscv/rebuild-csr-xml.sh: Updated.
2275
2b4e6a3f
TT
22762020-06-11 Tom Tromey <tom@tromey.com>
2277
2278 PR gdb/18318:
2279 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2280
4412332f
JG
22812020-06-09 Jonny Grant <jg@jguk.org>
22822020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2283
2284 * main.c (captured_main_1): Don't print new line after help.
2285 (print_gdb_help): add mailing list and IRC channel information
2286 to --help. Add new lines between items in the footer. Remove
2287 quotes around bug url.
2288
2f33032a
KS
22892020-06-11 Keith Seitz <keiths@redhat.com>
2290
2291 PR gdb/21356
2292 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2293 Resolve typedefs for type length calculations.
2294
7ab96794
TV
22952020-06-10 Tom de Vries <tdevries@suse.de>
2296
2297 PR ada/24713
2298 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2299 (write_psymbols): Enable .gdb_index for ada.
2300 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2301 ada.
2302
e5f3ece2
TV
23032020-06-10 Tom de Vries <tdevries@suse.de>
2304
2305 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2306 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2307 namei" instead of "const char *name" argument.
2308 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2309 dw2_symtab_iter_init.
2310
940da03e
SM
23112020-06-08 Simon Marchi <simon.marchi@efficios.com>
2312
2313 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2314 to use type::field and field::type instead.
2315
b6cdac4b
SM
23162020-06-08 Simon Marchi <simon.marchi@efficios.com>
2317
2318 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2319 to use field::type instead.
2320
5d14b6e5
SM
23212020-06-08 Simon Marchi <simon.marchi@efficios.com>
2322
2323 * gdbtypes.h (struct field) <type, set_type>: New methods.
2324 Rename `type` field to...
2325 <m_type>: ... this. Change references throughout to use type or
2326 set_type methods.
2327 (FIELD_TYPE): Use field::type. Change call sites that modify
2328 the field's type to use field::set_type instead.
2329
3d967001
SM
23302020-06-08 Simon Marchi <simon.marchi@efficios.com>
2331
2332 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2333 to use type::index_type instead.
2334
262abc0d
SM
23352020-06-08 Simon Marchi <simon.marchi@efficios.com>
2336
2337 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2338 methods.
2339 (TYPE_INDEX_TYPE): Use type::index_type.
2340 * gdbtypes.c (create_array_type_with_stride): Likewise.
2341
82836c92
TT
23422020-06-07 Tom Tromey <tom@tromey.com>
2343
2344 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2345 parameter.
2346 (generic_value_print): Update.
2347
940dace9
AB
23482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 Revert commit 982a38f60b0.
2351 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2352
982a38f6
AB
23532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2354
2355 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2356 avoid use after free.
2357
82f06518
TV
23582020-06-05 Tom de Vries <tdevries@suse.de>
2359
2360 * NEWS: Fix typos.
2361
f8c41851
SM
23622020-06-04 Simon Marchi <simon.marchi@efficios.com>
2363
2364 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2365 the per_bfd object.
2366 (dwarf2_read_debug_names): Likewise.
2367 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2368 object when re-using a per_bfd object with an index.
2369
f9b5d5ea
TV
23702020-06-03 Tom de Vries <tdevries@suse.de>
2371
2372 PR symtab/26046
2373 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2374 children for C++.
2375 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2376 DW_TAG_subprogram.
2377
f6eee2d0
AB
23782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2379
2380 * ada-lang.c (ada_language_data): Delete skip_trampoline
2381 initializer.
2382 * c-lang.c (c_language_data): Likewise.
2383 (cplus_language_data): Likewise.
2384 (cplus_language::skip_trampoline): New member function.
2385 (asm_language_data): Delete skip_trampoline initializer.
2386 (minimal_language_data): Likewise.
2387 * d-lang.c (d_language_data): Likewise.
2388 * f-lang.c (f_language_data): Likewise.
2389 * go-lang.c (go_language_data): Likewise.
2390 * language.c (unk_lang_trampoline): Delete function.
2391 (skip_language_trampoline): Update.
2392 (unknown_language_data): Delete skip_trampoline initializer.
2393 (auto_language_data): Likewise.
2394 * language.h (language_data): Delete skip_trampoline field.
2395 (language_defn::skip_trampoline): New function.
2396 * m2-lang.c (m2_language_data): Delete skip_trampoline
2397 initializer.
2398 * objc-lang.c (objc_skip_trampoline): Delete function, move
2399 implementation to objc_language::skip_trampoline.
2400 (objc_language_data): Delete skip_trampoline initializer.
2401 (objc_language::skip_trampoline): New member function with
2402 implementation from objc_skip_trampoline.
2403 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2404 initializer.
2405 * p-lang.c (pascal_language_data): Likewise.
2406 * rust-lang.c (rust_language_data): Likewise.
2407
0a50df5d
AB
24082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2411 (ada_language::demangle): New member function.
2412 * c-lang.c (c_language_data): Delete la_demangle initializer.
2413 (cplus_language_data): Delete la_demangle initializer.
2414 (cplus_language::demangle): New member function.
2415 (asm_language_data): Delete la_demangle initializer.
2416 (minimal_language_data): Delete la_demangle initializer.
2417 * d-lang.c (d_language_data): Delete la_demangle initializer.
2418 (d_language::demangle): New member function.
2419 * f-lang.c (f_language_data): Delete la_demangle initializer.
2420 (f_language::demangle): New member function.
2421 * go-lang.c (go_language_data): Delete la_demangle initializer.
2422 (go_language::demangle): New member function.
2423 * language.c (language_demangle): Update.
2424 (unk_lang_demangle): Delete.
2425 (unknown_language_data): Delete la_demangle initializer.
2426 (unknown_language::demangle): New member function.
2427 (auto_language_data): Delete la_demangle initializer.
2428 (auto_language::demangle): New member function.
2429 * language.h (language_data): Delete la_demangle field.
2430 (language_defn::demangle): New function.
2431 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2432 * objc-lang.c (objc_language_data): Delete la_demangle
2433 initializer.
2434 (objc_language::demangle): New member function.
2435 * opencl-lang.c (opencl_language_data): Delete la_demangle
2436 initializer.
2437 * p-lang.c (pascal_language_data): Likewise.
2438 * rust-lang.c (rust_language_data): Likewise.
2439 (rust_language::demangle): New member function.
2440
fbfb0a46
AB
24412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2442
2443 * ada-lang.c (ada_language_data): Delete la_print_type
2444 initializer.
2445 (ada_language::print_type): New member function.
2446 * c-lang.c (c_language_data): Delete la_print_type initializer.
2447 (c_language::print_type): New member function.
2448 (cplus_language_data): Delete la_print_type initializer.
2449 (cplus_language::print_type): New member function.
2450 (asm_language_data): Delete la_print_type initializer.
2451 (asm_language::print_type): New member function.
2452 (minimal_language_data): Delete la_print_type initializer.
2453 (minimal_language::print_type): New member function.
2454 * d-lang.c (d_language_data): Delete la_print_type initializer.
2455 (d_language::print_type): New member function.
2456 * f-lang.c (f_language_data): Delete la_print_type initializer.
2457 (f_language::print_type): New member function.
2458 * go-lang.c (go_language_data): Delete la_print_type initializer.
2459 (go_language::print_type): New member function.
2460 * language.c (unk_lang_print_type): Delete.
2461 (unknown_language_data): Delete la_print_type initializer.
2462 (unknown_language::print_type): New member function.
2463 (auto_language_data): Delete la_print_type initializer.
2464 (auto_language::print_type): New member function.
2465 * language.h (language_data): Delete la_print_type field.
2466 (language_defn::print_type): New function.
2467 (LA_PRINT_TYPE): Update.
2468 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2469 (m2_language::print_type): New member function.
2470 * objc-lang.c (objc_language_data): Delete la_print_type
2471 initializer.
2472 (objc_language::print_type): New member function.
2473 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2474 to opencl_language::print_type.
2475 (opencl_language_data): Delete la_print_type initializer.
2476 (opencl_language::print_type): New member function, implementation
2477 from opencl_print_type.
2478 * p-lang.c (pascal_language_data): Delete la_print_type
2479 initializer.
2480 (pascal_language::print_type): New member function.
2481 * rust-lang.c (rust_print_type): Delete, implementation moved to
2482 rust_language::print_type.
2483 (rust_language_data): Delete la_print_type initializer.
2484 (rust_language::print_type): New member function, implementation
2485 from rust_print_type.
2486
6f827019
AB
24872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2488
2489 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2490 implementation moves to...
2491 (ada_language::sniff_from_mangled_name): ...here. Update return
2492 type.
2493 (ada_language_data): Delete la_sniff_from_mangled_name
2494 initializer.
2495 * c-lang.c (c_language_data): Likewise.
2496 (cplus_language_data): Likewise.
2497 (cplus_language::sniff_from_mangled_name): New member function,
2498 implementation taken from gdb_sniff_from_mangled_name.
2499 (asm_language_data): Delete la_sniff_from_mangled_name
2500 initializer.
2501 (minimal_language_data): Likewise.
2502 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2503 implementation moves to cplus_language::sniff_from_mangled_name.
2504 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2505 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2506 moves to...
2507 (d_language::sniff_from_mangled_name): ...here.
2508 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2509 * f-lang.c (f_language_data): Likewise.
2510 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2511 moves to...
2512 (go_language::sniff_from_mangled_name): ...here.
2513 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2514 * language.c (language_sniff_from_mangled_name): Delete.
2515 (unknown_language_data): Delete la_sniff_from_mangled_name
2516 initializer.
2517 (auto_language_data): Likewise.
2518 * language.h (language_data): Delete la_sniff_from_mangled_name
2519 field.
2520 (language_defn::sniff_from_mangled_name): New function.
2521 (language_sniff_from_mangled_name): Delete declaration.
2522 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2523 field.
2524 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2525 implementation moves to...
2526 (objc_language::sniff_from_mangled_name): ...here.
2527 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2528 * opencl-lang.c (opencl_language_data): Likewise.
2529 * p-lang.c (pascal_language_data): Likewise.
2530 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2531 implementation moves to...
2532 (rust_language::sniff_from_mangled_name): ...here.
2533 (rust_language_data): Delete la_sniff_from_mangled_name
2534 initializer.
2535 * symtab.c (symbol_find_demangled_name): Call
2536 sniff_from_mangled_name member function.
2537
fb8006fd
AB
25382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2539
2540 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2541 initializer.
2542 * c-lang.c (c_language_data): Likewise.
2543 (cplus_language_data): Likewise.
2544 (cplus_language::search_name_hash): New member function.
2545 (asm_language_data): Delete la_search_name_hash initializer.
2546 (minimal_language_data): Likewise.
2547 * d-lang.c (d_language_data): Likewise.
2548 * dictionary.c (default_search_name_hash): Rename to...
2549 (language_defn::search_name_hash): ...this.
2550 * f-lang.c (f_language_data): Likewise.
2551 (f_language::search_name_hash): New member function.
2552 * go-lang.c (go_language_data): Delete la_search_name_hash
2553 initializer.
2554 * language.c (unknown_language_data): Likewise.
2555 (auto_language_data): Likewise.
2556 * language.h (struct language_data): Delete la_search_name_hash
2557 field.
2558 (language_defn::search_name_hash): Declare new member function.
2559 (default_search_name_hash): Delete declaration.
2560 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2561 initializer.
2562 * objc-lang.c (objc_language_data): Likewise.
2563 * opencl-lang.c (opencl_language_data): Likewise.
2564 * p-lang.c (pascal_language_data): Likewise.
2565 * rust-lang.c (rust_language_data): Likewise.
2566 * symtab.c (search_name_hash): Update call.
2567
8e25bafe
AB
25682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2569
2570 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2571 initializer.
2572 * c-lang.c (class compile_instance): Declare.
2573 (c_language_data): Delete la_get_compile_instance initializer.
2574 (c_language::get_compile_instance): New member function.
2575 (cplus_language_data): Delete la_get_compile_instance initializer.
2576 (cplus_language::get_compile_instance): New member function.
2577 (asm_language_data): Delete la_get_compile_instance initializer.
2578 (minimal_language_data): Likewise.
2579 * c-lang.h (c_get_compile_context): Update comment.
2580 (cplus_get_compile_context): Update comment.
2581 * compile/compile.c (compile_to_object): Update calls, don't rely
2582 on function pointer being NULL.
2583 * d-lang.c (d_language_data): Delete la_get_compile_instance
2584 initializer.
2585 * f-lang.c (f_language_data): Likewise.
2586 * go-lang.c (go_language_data): Likewise.
2587 * language.c (unknown_language_data): Likewise.
2588 (auto_language_data): Likewise.
2589 * language.h (language_data): Delete la_get_compile_instance field.
2590 (language_defn::get_compile_instance): New member function.
2591 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2592 initializer.
2593 * objc-lang.c (objc_language_data): Likewise.
2594 * opencl-lang.c (opencl_language_data): Likewise.
2595 * p-lang.c (pascal_language_data): Likewise.
2596 * rust-lang.c (rust_language_data): Likewise.
2597
4009ee92
AB
25982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * ada-lang.c (ada_add_all_symbols): Update comment.
2601 (ada_iterate_over_symbols): Delete, move implementation to...
2602 (ada_language::iterate_over_symbols): ...here, a new member
2603 function, rewrite to use range based for loop.
2604 (ada_language_data): Delete la_iterate_over_symbols initializer.
2605 * c-lang.c (c_language_data): Likewise.
2606 (cplus_language_data): Likewise.
2607 (asm_language_data): Likewise.
2608 (minimal_language_data): Likewise.
2609 * d-lang.c (d_language_data): Likewise.
2610 * f-lang.c (f_language_data): Likewise.
2611 * go-lang.c (go_language_data): Likewise.
2612 * language.c (unknown_language_data): Likewise.
2613 (auto_language_data): Likewise.
2614 * language.h (language_data): Delete la_iterate_over_symbols field.
2615 (language_defn::iterate_over_symbols): New member function.
2616 (LA_ITERATE_OVER_SYMBOLS): Update.
2617 * linespec.c (iterate_over_all_matching_symtabs): Update.
2618 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2619 initializer.
2620 * objc-lang.c (objc_language_data): Likewise.
2621 * opencl-lang.c (opencl_language_data): Likewise.
2622 * p-lang.c (pascal_language_data): Likewise.
2623 * rust-lang.c (rust_language_data): Likewise.
2624
54f4ca46
AB
26252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * ada-lang.c (ada_language_data): Delete
2628 la_lookup_transparent_type initializer.
2629 * c-lang.c (c_language_data): Likewise.
2630 (cplus_language_data): Likewise.
2631 (cplus_language::lookup_transparent_type): New member function.
2632 (asm_language_data): Delete la_lookup_transparent_type
2633 initializer.
2634 (minimal_language_data): Likewise.
2635 * d-lang.c (d_language_data): Likewise.
2636 * f-lang.c (f_language_data): Likewise.
2637 * go-lang.c (go_language_data): Likewise.
2638 * language.c (unknown_language_data): Likewise.
2639 (auto_language_data): Likewise.
2640 * language.h (struct language_data): Delete
2641 la_lookup_transparent_type field.
2642 (language_defn::lookup_transparent_type): New member function.
2643 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2644 initializer.
2645 * objc-lang.c (objc_language_data): Likewise.
2646 * opencl-lang.c (opencl_language_data): Likewise.
2647 * p-lang.c (pascal_language_data): Likewise.
2648 * rust-lang.c (rust_language_data): Likewise.
2649 * symtab.c (symbol_matches_domain): Update call.
2650
1fb314aa
AB
26512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * ada-lang.c (ada_language_arch_info): Delete function, move
2654 implementation to...
2655 (ada_language::language_arch_info): ...here, a new member
2656 function.
2657 (ada_language_data): Delete la_language_arch_info.
2658 * c-lang.c (c_language_data): Likewise.
2659 (c_language::language_arch_info): New member function.
2660 (cplus_language_arch_info): Delete function, move
2661 implementation to...
2662 (cplus_language::language_arch_info): ...here, a new member
2663 function.
2664 (cplus_language_data): Delete la_language_arch_info.
2665 (asm_language_data): Likewise.
2666 (asm_language::language_arch_info): New member function.
2667 (minimal_language_data): Delete la_language_arch_info.
2668 (minimal_language::language_arch_info): New member function.
2669 * d-lang.c (d_language_arch_info): Delete function, move
2670 implementation to...
2671 (d_language::language_arch_info): ...here, a new member
2672 function.
2673 (d_language_data): Delete la_language_arch_info.
2674 * f-lang.c (f_language_arch_info): Delete function, move
2675 implementation to...
2676 (f_language::language_arch_info): ...here, a new member
2677 function.
2678 (f_language_data): Delete la_language_arch_info.
2679 * go-lang.c (go_language_arch_info): Delete function, move
2680 implementation to...
2681 (go_language::language_arch_info): ...here, a new member
2682 function.
2683 (go_language_data): Delete la_language_arch_info.
2684 * language.c (unknown_language_data): Likewise.
2685 (unknown_language::language_arch_info): New member function.
2686 (auto_language_data): Delete la_language_arch_info.
2687 (auto_language::language_arch_info): New member function.
2688 (language_gdbarch_post_init): Update call to
2689 la_language_arch_info.
2690 * language.h (language_data): Delete la_language_arch_info
2691 function pointer.
2692 (language_defn::language_arch_info): New function.
2693 * m2-lang.c (m2_language_arch_info): Delete function, move
2694 implementation to...
2695 (m2_language::language_arch_info): ...here, a new member
2696 function.
2697 (m2_language_data): Delete la_language_arch_info.
2698 * objc-lang.c (objc_language_arch_info): Delete function, move
2699 implementation to...
2700 (objc_language::language_arch_info): ...here, a new member
2701 function.
2702 (objc_language_data): Delete la_language_arch_info.
2703 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2704 implementation to...
2705 (opencl_language::language_arch_info): ...here, a new member
2706 function.
2707 (opencl_language_data): Delete la_language_arch_info.
2708 * p-lang.c (pascal_language_arch_info): Delete function, move
2709 implementation to...
2710 (pascal_language::language_arch_info): ...here, a new member
2711 function.
2712 (pascal_language_data): Delete la_language_arch_info.
2713 * rust-lang.c (rust_language_arch_info): Delete function, move
2714 implementation to...
2715 (rust_language::language_arch_info): ...here, a new member
2716 function.
2717 (rust_language_data): Delete la_language_arch_info.
2718
48448202
AB
27192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2720
2721 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2722 initializer.
2723 * c-lang.c (c_language_data): Likewise.
2724 (cplus_language_data): Likewise.
2725 (cplus_language::pass_by_reference_info): New method.
2726 (asm_language_data): Delete la_pass_by_reference initializer.
2727 (minimal_language_data): Likewise.
2728 * cp-abi.c (cp_pass_by_reference): Remove use of
2729 default_pass_by_reference.
2730 * d-lang.c (d_language_data): Likewise.
2731 * f-lang.c (f_language_data): Likewise.
2732 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2733 default_pass_by_reference.
2734 * go-lang.c (go_language_data): Likewise.
2735 * language.c (language_pass_by_reference): Update.
2736 (default_pass_by_reference): Delete.
2737 (unknown_language_data): Delete la_pass_by_reference
2738 initializer.
2739 (auto_language_data): Likewise.
2740 * language.h (struct language_data): Delete la_pass_by_reference
2741 field.
2742 (language_defn::pass_by_reference_info): New member function.
2743 (default_pass_by_reference): Delete declaration.
2744 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2745 initializer.
2746 * objc-lang.c (objc_language_data): Likewise.
2747 * opencl-lang.c (opencl_language_data): Likewise.
2748 * p-lang.c (pascal_language_data): Likewise.
2749 * rust-lang.c (rust_language_data): Likewise.
2750
15e5fd35
AB
27512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2752
2753 * ada-lang.c (ada_read_var_value): Delete function, move
2754 implementation to...
2755 (ada_language::read_var_value): ...here.
2756 (ada_language_data): Delete la_read_var_value initializer.
2757 * c-lang.c (c_language_data): Likewise.
2758 (cplus_language_data): Likewise.
2759 (minimal_language_data): Likewise.
2760 * d-lang.c (d_language_data): Likewise.
2761 * f-lang.c (f_language_data): Likewise.
2762 * findvar.c (default_read_var_value): Rename to...
2763 (language_defn::read_var_value): ...this.
2764 * findvar.c (read_var_value): Update header comment, and change to
2765 call member function instead of function pointer.
2766 * go-lang.c (go_language_data): Likewise.
2767 * language.c (unknown_language_data): Delete la_read_var_value
2768 initializer.
2769 (auto_language_data): Likewise.
2770 * language.h (struct language_data): Delete la_read_var_value
2771 field.
2772 (language_defn::read_var_value): New member function.
2773 (default_read_var_value): Delete declaration.
2774 * m2-lang.c (m2_language_data): Delete la_read_var_value
2775 initializer.
2776 * objc-lang.c (objc_language_data): Likewise.
2777 * opencl-lang.c (opencl_language_data): Likewise.
2778 * p-lang.c (pascal_language_data): Likewise.
2779 * rust-lang.c (rust_language_data): Likewise.
2780 * value.h (default_read_var_value): Delete declaration.
2781
5bd40f2a
AB
27822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2783
2784 * ada-lang.c (ada_print_array_index): Delete function, move
2785 implementation to...
2786 (ada_language::print_array_index): ...here.
2787 (ada_language_data): Delete la_print_array_index initializer.
2788 * c-lang.c (c_language_data): Likewise.
2789 (cplus_language_data): Likewise.
2790 (minimal_language_data): Likewise.
2791 * d-lang.c (d_language_data): Likewise.
2792 * f-lang.c (f_language_data): Likewise.
2793 * go-lang.c (go_language_data): Likewise.
2794 * language.c (default_print_array_index): Delete function, move
2795 implementation to...
2796 (language_defn::print_array_index): ...here.
2797 (unknown_language_data): Delete la_print_array_index initializer.
2798 (auto_language_data): Likewise.
2799 * language.h (struct language_data): Delete la_print_array_index
2800 field.
2801 (language_defn::print_array_index): New member function.
2802 (LA_PRINT_ARRAY_INDEX): Update.
2803 (default_print_array_index): Delete declaration.
2804 * m2-lang.c (m2_language_data): Delete la_print_array_index
2805 initializer.
2806 * objc-lang.c (objc_language_data): Likewise.
2807 * opencl-lang.c (opencl_language_data): Likewise.
2808 * p-lang.c (pascal_language_data): Likewise.
2809 * rust-lang.c (rust_language_data): Likewise.
2810
0874fd07
AB
28112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2812
2813 * gdb/ada-lang.c (ada_language_defn): Convert to...
2814 (ada_language_data): ...this.
2815 (class ada_language): New class.
2816 (ada_language_defn): New static global.
2817 * gdb/c-lang.c (c_language_defn): Convert to...
2818 (c_language_data): ...this.
2819 (class c_language): New class.
2820 (c_language_defn): New static global.
2821 (cplus_language_defn): Convert to...
2822 (cplus_language_data): ...this.
2823 (class cplus_language): New class.
2824 (cplus_language_defn): New static global.
2825 (asm_language_defn): Convert to...
2826 (asm_language_data): ...this.
2827 (class asm_language): New class.
2828 (asm_language_defn): New static global.
2829 (minimal_language_defn): Convert to...
2830 (minimal_language_data): ...this.
2831 (class minimal_language): New class.
2832 (minimal_language_defn): New static global.
2833 * gdb/d-lang.c (d_language_defn): Convert to...
2834 (d_language_data): ...this.
2835 (class d_language): New class.
2836 (d_language_defn): New static global.
2837 * gdb/f-lang.c (f_language_defn): Convert to...
2838 (f_language_data): ...this.
2839 (class f_language): New class.
2840 (f_language_defn): New static global.
2841 * gdb/go-lang.c (go_language_defn): Convert to...
2842 (go_language_data): ...this.
2843 (class go_language): New class.
2844 (go_language_defn): New static global.
2845 * gdb/language.c (unknown_language_defn): Remove declaration.
2846 (current_language): Initialize to nullptr, real initialization is
2847 moved to _initialize_language.
2848 (languages): Delete global.
2849 (language_defn::languages): Define.
2850 (set_language_command): Use language_defn::languages.
2851 (set_language): Likewise.
2852 (range_error): Likewise.
2853 (language_enum): Likewise.
2854 (language_def): Likewise.
2855 (add_set_language_command): Use language_def::languages for the
2856 language list, and language_def to lookup language pointers.
2857 (skip_language_trampoline): Use language_defn::languages.
2858 (unknown_language_defn): Convert to...
2859 (unknown_language_data): ...this.
2860 (class unknown_language): New class.
2861 (unknown_language_defn): New static global.
2862 (auto_language_defn): Convert to...
2863 (auto_language_data): ...this.
2864 (class auto_language): New class.
2865 (auto_language_defn): New static global.
2866 (language_gdbarch_post_init): Use language_defn::languages.
2867 (_initialize_language): Initialize current_language.
2868 * gdb/language.h (struct language_defn): Rename to...
2869 (struct language_data): ...this.
2870 (struct language_defn): New.
2871 (auto_language_defn): Delete.
2872 (unknown_language_defn): Delete.
2873 (minimal_language_defn): Delete.
2874 (ada_language_defn): Delete.
2875 (asm_language_defn): Delete.
2876 (c_language_defn): Delete.
2877 (cplus_language_defn): Delete.
2878 (d_language_defn): Delete.
2879 (f_language_defn): Delete.
2880 (go_language_defn): Delete.
2881 (m2_language_defn): Delete.
2882 (objc_language_defn): Delete.
2883 (opencl_language_defn): Delete.
2884 (pascal_language_defn): Delete.
2885 (rust_language_defn): Delete.
2886 * gdb/m2-lang.c (m2_language_defn): Convert to...
2887 (m2_language_data): ...this.
2888 (class m2_language): New class.
2889 (m2_language_defn): New static global.
2890 * gdb/objc-lang.c (objc_language_defn): Convert to...
2891 (objc_language_data): ...this.
2892 (class objc_language): New class.
2893 (objc_language_defn): New static global.
2894 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2895 (opencl_language_data): ...this.
2896 (class opencl_language): New class.
2897 (opencl_language_defn): New static global.
2898 * gdb/p-lang.c (pascal_language_defn): Convert to...
2899 (pascal_language_data): ...this.
2900 (class pascal_language): New class.
2901 (pascal_language_defn): New static global.
2902 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2903 language pointer, update comment format.
2904 * gdb/rust-lang.c (rust_language_defn): Convert to...
2905 (rust_language_data): ...this.
2906 (class rust_language): New class.
2907 (rust_language_defn): New static global.
2908
1313c56e
AB
29092020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2912 member variable.
2913 <m_stmt_at_address>: New member variable.
2914 (lnp_state_machine::record_line): Don't record some lines, update
2915 tracking of is_stmt at the same address.
2916 (lnp_state_machine::lnp_state_machine): Initialise new member
2917 variables.
2918
b7ed9f3d
ST
29192020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2920
2921 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2922 "-include gnu-nat-mig.h".
2923 * gnu-nat-mig.h: New file.
2924 * gnu-nat.c: Include "gnu-nat-mig.h".
2925 (exc_server, msg_reply_server, notify_server,
2926 process_reply_server): Remove declarations.
2927
14a8ad62
ST
29282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2929
2930 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2931 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2932 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2933 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2934 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2935 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2936 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2937 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2938 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2939 to gnu_nat_target class.
2940 * gnu-nat.c: Likewise.
2941 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2942 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2943 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2944 object.
2945 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2946 instead of `gnu_target'.
2947
0af5e106
ST
29482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2949
2950 * i386-gnu-tdep.c: Include "gdbcore.h"
2951 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2952 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2953 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2954 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2955 i386_gnu_sigcontext_addr): New functions
2956 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2957 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2958 tdep.
2959
078f2fc9
ST
29602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2961
2962 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2963 before fork_inferior call. Avoid calling it if target_is_pushed returns
2964 true.
2965
53dff92c
ST
29662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2967
2968 * gnu-nat.h (gnu_target): New variable declaration.
2969 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2970 gnu_target.
2971 * gnu-nat.c (gnu_target): New variable.
2972 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2973 add_thread_silent, and add_thread calls.
2974 (gnu_nat_target::create_inferior): Pass gnu_target to
2975 add_thread_silent, thread_change_ptid call.
2976 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2977 call.
2978
5a8b8627
ST
29792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2980
2981 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2982 (gnu_nat_target::find_memory_regions): Remove unused
2983 `old_address' variable.
2984
366f550a
ST
29852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2986
2987 * gnu-nat.c: Include "gdbarch.h".
2988
f14871bf
ST
29892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2990
2991 * reply_mig_hack.awk (Error return): Cast function through
2992 void *, to bypass compiler function call check.
2993
c6887cfb
ST
29942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2995
2996 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2997 $(srcdir)/reply_mig_hack.awk.
2998
6930bffe
ST
29992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3000
3001 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3002
112c22ed
JG
30032020-05-30 Jonny Grant <jg@jguk.org>
3004
3005 * configure.ac (ACX_BUGURL): change bug URL to https.
3006
f68f85b5
PA
30072020-05-30 Pedro Alves <palves@redhat.com>
3008
3009 * cp-support.c (replace_typedefs_template): New.
3010 (replace_typedefs_qualified_name): Handle
3011 DEMANGLE_COMPONENT_TEMPLATE.
3012
976ca316
SM
30132020-05-29 Simon Marchi <simon.marchi@efficios.com>
3014
3015 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3016 dwarf2/index-cache.h, dwarf2/index-write.c,
3017 dwarf2/index-write.h, dwarf2/line-header.c,
3018 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3019 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3020 variables and fields from `dwarf2_per_objfile` to just
3021 `per_objfile` throughout.
3022
989ade05
SM
30232020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3024
3025 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3026 <push_dwarf_reg_entry_value>: Add comment.
3027
c47bae85
KB
30282020-05-28 Kevin Buettner <kevinb@redhat.com>
3029 Keith Seitz <keiths@redhat.com>
3030
3031 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3032 instead of PyEval_ReleaseLock.
3033 (class gdbpy_gil): Move to earlier in file.
3034 (finalize_python): Set gdb_python_initialized.
3035 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3036 when not initialized.
3037
44486dcf
SM
30382020-05-28 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3041 <push_dwarf_reg_entry_value>: Remove assert. Override
3042 per_objfile with caller_per_objfile.
3043
f030440d
TV
30442020-05-28 Tom de Vries <tdevries@suse.de>
3045
3046 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3047 PR gold/15646 workaround to symbol kind "type".
3048
f0fbb768
TT
30492020-05-27 Tom Tromey <tromey@adacore.com>
3050
3051 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3052
af0b2a3e
TT
30532020-05-27 Tom Tromey <tromey@adacore.com>
3054
3055 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3056 Use htab_find_with_hash.
3057 <add_abbrev>: Remove "abbrev_number" parameter.
3058 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3059 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3060 (hash_abbrev): Add comment.
3061 (abbrev_table::lookup_abbrev): Move to header file.
3062 (abbrev_table::read): Update.
3063
7d00ffec
TT
30642020-05-27 Tom Tromey <tromey@adacore.com>
3065
3066 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3067 method.
3068 <canonical_name>: New member.
3069 <raw_name>: Rename from "name".
3070 (partial_die_info): Initialize canonical_name.
3071 (scan_partial_symbols): Check raw_name.
3072 (partial_die_parent_scope, partial_die_full_name)
3073 (add_partial_symbol, add_partial_subprogram)
3074 (add_partial_enumeration, load_partial_dies): Use "name" method.
3075 (partial_die_info::name): New method.
3076 (partial_die_info::read, guess_partial_die_structure_name)
3077 (partial_die_info::fixup): Update.
3078
697bba18
TT
30792020-05-27 Tom Tromey <tromey@adacore.com>
3080
3081 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3082 <get_ref_die_offset>: Inline.
3083 <get_ref_die_offset_complaint>: New method.
3084 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3085 (attribute::get_ref_die_offset_complaint): Rename from
3086 get_ref_die_offset. Just issue complaint.
3087
c17ace43
HD
30882020-05-27 Hannes Domani <ssbssa@yahoo.de>
3089
3090 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3091
96445f0b
HD
30922020-05-27 Hannes Domani <ssbssa@yahoo.de>
3093
3094 * exec.c (exec_file_attach): Use errno value of first openp failure.
3095
ac637ec3
HD
30962020-05-27 Hannes Domani <ssbssa@yahoo.de>
3097
3098 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3099 Don't close thread handle.
3100
17ee85fc
TT
31012020-05-27 Tom Tromey <tom@tromey.com>
3102 Simon Marchi <simon.marchi@efficios.com>
3103
3104 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3105 shared_ptr.
3106 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3107 member.
3108 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3109 dwarf2_per_bfd_objfile_data_key>: New globals.
3110 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3111 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3112 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3113 shared.
3114 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3115 short-circuit when sharing.
3116 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3117 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3118
39b16f87
SM
31192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3120
3121 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3122 to...
3123 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3124 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3125
fcf23d5b
SM
31262020-05-27 Simon Marchi <simon.marchi@efficios.com>
3127
3128 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3129 build_name_components, find_name_components_bounds>:
3130 Add per_objfile parameter.
3131 (struct mapped_index) <symbol_name_at>: Likewise.
3132 (struct mapped_debug_names): Remove constructor.
3133 <dwarf2_per_objfile>: Remove field.
3134 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3135 (mapped_index_base::find_name_components_bounds,
3136 mapped_index_base::build_name_components,
3137 dw2_expand_symtabs_matching_symbol): Likewise.
3138 (class mock_mapped_index) <symbol_name_at>: Likewise.
3139 (check_match): Likewise.
3140 (check_find_bounds_finds): Likewise.
3141 (test_mapped_index_find_name_component_bounds): Update.
3142 (CHECK_MATCH): Update.
3143 (dw2_expand_symtabs_matching): Update.
3144 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3145 per_objfile parameter.
3146 <find_vec_in_debug_names>: Likewise.
3147 <m_per_objfile>: New field.
3148 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3149 parameter.
3150 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3151 (dw2_debug_names_iterator::next): Update.
3152 (dw2_debug_names_lookup_symbol): Update.
3153 (dw2_debug_names_expand_symtabs_for_function): Update.
3154 (dw2_debug_names_map_matching_symbols): Update.
3155 (dw2_debug_names_expand_symtabs_matching): Update.
3156 (dwarf2_read_debug_names): Update.
3157
7188ed02
SM
31582020-05-27 Simon Marchi <simon.marchi@efficios.com>
3159
3160 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3161 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3162 move to dwarf2_per_objfile.
3163 <read_in_chain>: Remove.
3164 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3165 remove_all_cus, age_comp_units>: New methods.
3166 <m_dwarf2_cus>: New member.
3167 (struct dwarf2_per_cu_data) <cu>: Remove.
3168 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3169 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3170 moved to methods of dwarf2_per_objfile.
3171 (dwarf2_clear_marks): Remove.
3172 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3173 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3174 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3175 (dwarf2_per_objfile::remove_all_cus): New.
3176 (class free_cached_comp_units) <~free_cached_comp_units>:
3177 Update.
3178 (load_cu): Update.
3179 (dw2_do_instantiate_symtab): Adjust.
3180 (fill_in_sig_entry_from_dwo_entry): Adjust.
3181 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3182 (cutu_reader::cutu_reader): Likewise.
3183 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3184 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3185 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3186 and dwarf2_per_objfile::age_comp_units.
3187 (load_partial_comp_unit): Update.
3188 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3189 (process_queue): Likewise.
3190 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3191 backlink.
3192 (dwarf2_read_addr_index): Likewise.
3193 (follow_die_offset): Likewise.
3194 (dwarf2_fetch_die_loc_sect_off): Likewise.
3195 (dwarf2_fetch_constant_bytes): Likewise.
3196 (dwarf2_fetch_die_type_sect_off): Likewise.
3197 (follow_die_sig_1): Likewise.
3198 (load_full_type_unit): Likewise.
3199 (read_signatured_type): Likewise.
3200 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3201 (dwarf2_cu::~dwarf2_cu): Remove.
3202 (dwarf2_per_objfile::get_cu): New.
3203 (dwarf2_per_objfile::set_cu): New.
3204 (age_cached_comp_units): Rename to...
3205 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3206 to std::unordered_map.
3207 (free_one_cached_comp_unit): Rename to...
3208 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3209 to std::unordered_map.
3210 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3211 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3212 a dwarf2_per_objfile in data.
3213 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3214 (dwarf2_clear_marks): Remove.
3215
2e671100
SM
32162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3217
3218 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3219 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3220 (init_tu_and_read_dwo_dies): Likewise.
3221 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3222 (cutu_reader::cutu_reader): Likewise.
3223 (load_partial_comp_unit): Likewise.
3224 (process_psymtab_comp_unit): Update.
3225 (build_type_psymtabs_1): Update.
3226 (process_skeletonless_type_unit): Update.
3227 (load_full_comp_unit): Update.
3228 (find_partial_die): Update.
3229 (dwarf2_read_addr_index): Update.
3230 (read_signatured_type): Update.
3231
2e6a9f79
SM
32322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3233
3234 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3235 m_header_read_in>: New fields.
3236 <get_header>: New method.
3237 * dwarf2/read.c (per_cu_header_read_in): Remove.
3238 (dwarf2_per_cu_data::get_header): New.
3239 (dwarf2_per_cu_data::addr_size): Update.
3240 (dwarf2_per_cu_data::offset_size): Update.
3241 (dwarf2_per_cu_data::ref_addr_size): Update.
3242
1b555f17
SM
32432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3244
3245 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3246 (dw2_do_instantiate_symtab): Update.
3247 (queue_and_load_all_dwo_tus): Change parameter from
3248 dwarf2_per_cu_data to dwarf2_cu.
3249 (dwarf2_fetch_die_loc_sect_off): Update.
3250 (dwarf2_fetch_constant_bytes): Update.
3251 (dwarf2_fetch_die_type_sect_off): Update.
3252
8fc0b21d
SM
32532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3254
3255 * dwarf2/read.c (process_full_comp_unit,
3256 process_full_type_unit): Remove per_cu, per_objfile paramters.
3257 Add dwarf2_cu parameter.
3258 (process_queue): Update.
3259
168c9250
SM
32602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3261
3262 * dwarf2/read.c (create_cu_from_index_list): Replace
3263 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3264 (create_cus_from_index_list): Likewise.
3265 (create_cus_from_index): Likewise.
3266 (create_signatured_type_table_from_index): Likewise.
3267 (create_cus_from_debug_names_list): Likewise.
3268 (create_cus_from_debug_names): Likewise.
3269 (dwarf2_read_gdb_index): Update.
3270 (dwarf2_read_debug_names): Update.
3271
e286671b
TT
32722020-05-27 Tom Tromey <tom@tromey.com>
3273 Simon Marchi <simon.marchi@efficios.com>
3274
3275 * dwarf2/read.h (struct dwarf2_per_objfile)
3276 <get_type_for_signatured_type, set_type_for_signatured_type>:
3277 New methods.
3278 <m_type_map>: New member.
3279 (struct signatured_type) <type>: Remove.
3280 * dwarf2/read.c
3281 (dwarf2_per_objfile::get_type_for_signatured_type,
3282 dwarf2_per_objfile::set_type_for_signatured_type): New.
3283 (get_signatured_type): Use new methods.
3284
8adb8487
TT
32852020-05-27 Tom Tromey <tom@tromey.com>
3286 Simon Marchi <simon.marchi@efficios.com>
3287
3288 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3289 (struct dwarf2_per_objfile) <type_units>: New member.
3290 <get_type_unit_group_unshareable>: New method.
3291 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3292 num_symtabs, symtabs>: Remove; move to
3293 type_unit_group_unshareable.
3294 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3295 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3296 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3297
127bbf4b
SM
32982020-05-27 Simon Marchi <simon.marchi@efficios.com>
3299
3300 * dwarf2/read.h (struct dwarf2_per_cu_data):
3301 <dwarf2_per_objfile>: Remove.
3302 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3303 dwarf2_per_objfile.
3304 (create_signatured_type_table_from_index): Likewise.
3305 (create_signatured_type_table_from_debug_names): Likewise.
3306 (create_debug_type_hash_table): Likewise.
3307 (fill_in_sig_entry_from_dwo_entry): Likewise.
3308 (create_type_unit_group): Likewise.
3309 (read_comp_units_from_section): Likewise.
3310 (create_cus_hash_table): Likewise.
3311
f6e649dd
SM
33122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3313
3314 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3315 dwarf2_per_cu_data::dwarf2_per_objfile.
3316 (compute_compunit_symtab_includes): Likewise.
3317 (dwarf2_cu::start_symtab): Likewise.
3318
aa66c379
SM
33192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3320
3321 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3322 parameter.
3323 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3324 (read_namespace_alias): Update.
3325 (lookup_die_type): Update.
3326 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3327 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3328 Update.
3329 (disassemble_dwarf_expression): Update.
3330
120ce1b5
SM
33312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3332
3333 * dwarf2/read.h (struct dwarf2_queue_item): Add
3334 dwarf2_per_objfile parameter, assign new parameter.
3335 <per_objfile>: New field.
3336 * dwarf2/read.c (free_one_cached_comp_unit): Add
3337 dwarf2_per_objfile parameter.
3338 (queue_comp_unit): Likewise.
3339 (dw2_do_instantiate_symtab): Update.
3340 (process_psymtab_comp_unit): Update.
3341 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3342 (process_imported_unit_die): Update.
3343 (queue_and_load_dwo_tu): Update.
3344 (follow_die_offset): Update.
3345 (follow_die_sig_1): Update.
3346
9f47c707
SM
33472020-05-27 Simon Marchi <simon.marchi@efficios.com>
3348
3349 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3350 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3351 (read_call_site_scope): Assign per_objfile.
3352 (dwarf2_per_cu_data::objfile): Remove.
3353 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3354 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3355 dwarf2_per_objfile parameter.
3356 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3357 dwarf2_per_objfile parameter.
3358 (dwarf_expr_reg_to_entry_parameter): Add output
3359 dwarf2_per_objfile parameter.
3360 (locexpr_get_frame_base): Update.
3361 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3362 <push_dwarf_reg_entry_value>: Update.
3363 <call_site_to_target_addr>: Update.
3364 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3365 parameter.
3366 (value_of_dwarf_reg_entry): Update.
3367 (rw_pieced_value): Update.
3368 (indirect_synthetic_pointer): Update.
3369 (dwarf2_evaluate_property): Update.
3370 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3371 parameter.
3372 (locexpr_read_variable): Update.
3373 (locexpr_get_symbol_read_needs): Update.
3374 (loclist_read_variable): Update.
3375
14095eb3
SM
33762020-05-27 Simon Marchi <simon.marchi@efficios.com>
3377
3378 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3379 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3380 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3381 parameter.
3382 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3383 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3384 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3385 parameter.
3386 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3387 sect_variable_value): Add dwarf2_per_objfile parameter.
3388 (class dwarf_evaluate_loc_desc) <dwarf_call,
3389 dwarf_variable_value>: Update.
3390 (fetch_const_value_from_synthetic_pointer): Add
3391 dwarf2_per_objfile parameter.
3392 (fetch_const_value_from_synthetic_pointer): Update.
3393 (coerced_pieced_ref): Update.
3394 (class symbol_needs_eval_context) <dwarf_call,
3395 dwarf_variable_value>: Update.
3396 (dwarf2_compile_expr_to_ax): Update.
3397
3c3cd3d4
SM
33982020-05-27 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3401 parameter.
3402 (dwarf2_evaluate_loc_desc_full): Update.
3403
82ca3f51
SM
34042020-05-27 Simon Marchi <simon.marchi@efficios.com>
3405
3406 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3407 parameter.
3408 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3409 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3410 dwarf2_per_objfile parameter.
3411 (decode_debug_loc_dwo_addresses): Likewise.
3412 (dwarf2_find_location_expression): Update.
3413 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3414 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3415 parameter.
3416 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3417 parameter.
3418 (locexpr_describe_location_1): Likewise.
3419 (locexpr_describe_location): Update.
3420
4b167ea1
SM
34212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3424 Remove.
3425 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3426 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3427 (dwarf2_compile_property_to_c): Update.
3428 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3429 use text offset from objfile.
3430 (locexpr_tracepoint_var_ref): Update.
3431 (locexpr_generate_c_location): Update.
3432 (loclist_describe_location): Update.
3433 (loclist_tracepoint_var_ref): Update.
3434 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3435 dwarf2_per_objfile parameter.
3436 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3437 use text offset from objfile.
3438 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3439
89b07335
SM
34402020-05-27 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * dwarf2/expr.h (struct dwarf_expr_context)
3443 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3444 <offset>: Remove.
3445 <per_objfile>: New member.
3446 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3447 dwarf2_per_objfile parameter. Don't set offset, set
3448 per_objfile.
3449 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3450 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3451 a dwarf2_per_objfile object instead of an offset.
3452 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3453 constructor.
3454 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3455 to dwarf2_expr_executor constructor. Don't set offset.
3456 (dwarf2_fetch_cfa_info): Update.
3457 (struct dwarf2_frame_cache) <text_offset>: Remove.
3458 <per_objfile>: New field.
3459 (dwarf2_frame_cache): Update.
3460 (dwarf2_frame_prev_register): Update.
3461 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3462 <dwarf_evaluate_loc_desc>: Add constructor.
3463 (dwarf2_evaluate_loc_desc_full): Update.
3464 (dwarf2_locexpr_baton_eval): Update.
3465 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3466 Add constructor.
3467 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3468
293e7e51
SM
34692020-05-27 Simon Marchi <simon.marchi@efficios.com>
3470
3471 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3472 addr_sized_int_type>: Move to dwarf2_cu.
3473 <int_type>: Move to dwarf2_per_objfile.
3474 (struct dwarf2_per_objfile) <int_type>: Move here.
3475 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3476 addr_sized_int_type>: Move here.
3477 (read_func_scope): Update.
3478 (read_array_type): Update.
3479 (read_tag_string_type): Update.
3480 (attr_to_dynamic_prop): Update.
3481 (dwarf2_per_cu_data::int_type): Rename to...
3482 (dwarf2_per_objfile::int_type): ... this.
3483 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3484 (dwarf2_cu::addr_sized_int_type): ... this.
3485 (read_subrange_type): Update.
3486 (dwarf2_per_cu_data::addr_type): Rename to...
3487 (dwarf2_cu::addr_type): ... this.
3488 (set_die_type): Update.
3489
64874a40
SM
34902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3491
3492 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3493 data through per_cu->cu.
3494
4ab09049
SM
34952020-05-27 Simon Marchi <simon.marchi@efficios.com>
3496
3497 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3498 dwarf2_per_cu_data parameter fo dwarf2_cu.
3499 (lookup_dwo_type_unit): Likewise.
3500 (read_cutu_die_from_dwo): Likewise.
3501 (lookup_dwo_unit): Likewise.
3502 (open_and_init_dwo_file): Likewise.
3503 (lookup_dwo_cutu): Likewise.
3504 (lookup_dwo_comp_unit): Likewise.
3505 (lookup_dwo_type_unit): Likewise.
3506 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3507 (cutu_reader::cutu_reader): Update.
3508
47b14e86
SM
35092020-05-27 Simon Marchi <simon.marchi@efficios.com>
3510
3511 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3512 parameter.
3513 (process_full_type_unit): Likewise.
3514 (process_queue): Update.
3515
43182c09
SM
35162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3517
3518 * dwarf2/read.c (recursively_compute_inclusions): Add
3519 dwarf2_per_objfile parameter.
3520 (compute_compunit_symtab_includes): Likewise.
3521 (process_cu_includes): Update.
3522
7aa104c4
SM
35232020-05-27 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3526 parameter.
3527 (create_type_unit_group): Update.
3528 (process_psymtab_comp_unit_reader): Update.
3529 (build_type_psymtabs_reader): Update.
3530
e3beb21d
SM
35312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3532
3533 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3534 object through m_this_cu->cu.
3535
d460f660
SM
35362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3537
3538 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3539 the info parameter.
3540 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3541
ab432490
SM
35422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3543
3544 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3545 per_objfile parameter.
3546 (load_full_type_unit): Add per_objfile parameter.
3547 (read_signatured_type): Likewise.
3548 (load_full_comp_unit): Likewise.
3549 (load_cu): Likewise.
3550 (dw2_do_instantiate_symtab): Likewise.
3551 (dw2_get_file_names): Likewise.
3552 (dw2_map_symtabs_matching_filename): Update.
3553 (dw_expand_symtabs_matching_file_matcher): Update.
3554 (dw2_map_symbol_filenames): Update.
3555 (process_psymtab_comp_unit): Add per_objfile parameter.
3556 (build_type_psymtabs_1): Update.
3557 (process_skeletonless_type_unit): Update.
3558 (dwarf2_build_psymtabs_hard): Update.
3559 (load_partial_comp_unit): Add per_objfile parameter.
3560 (scan_partial_symbols): Update.
3561 (load_full_comp_unit): Add per_objfile parameter.
3562 (process_imported_unit_die): Update.
3563 (create_cus_hash_table): Update.
3564 (find_partial_die): Update.
3565 (dwarf2_read_addr_index): Update.
3566 (follow_die_offset): Update.
3567 (dwarf2_fetch_die_loc_sect_off): Update.
3568 (dwarf2_fetch_constant_bytes): Update.
3569 (dwarf2_fetch_die_type_sect_off): Update.
3570 (follow_die_sig_1): Update.
3571 (load_full_type_unit): Add per_objfile parameter.
3572 (read_signatured_type): Likewise.
3573
313bad1b
SM
35742020-05-27 Simon Marchi <simon.marchi@efficios.com>
3575
3576 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3577 of objfile_name.
3578
c3699833
SM
35792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3580
3581 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3582 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3583 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3584 field.
3585 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3586 (create_cus_from_index): Update.
3587 (dwarf2_read_gdb_index): Update.
3588 (create_cus_from_debug_names): Update.
3589 (dwarf2_read_debug_names): Update.
3590 (get_abbrev_section_for_cu): Update.
3591 (create_all_comp_units): Update.
3592 (read_attribute_value): Update.
3593 (get_debug_line_section): Update.
3594 * dwarf2/index-cache.c (index_cache::store): Update.
3595 * dwarf2/index-write.c (save_gdb_index_command): Update.
3596 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3597
1859c670
SM
35982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3599
3600 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3601 member.
3602 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3603 dwarf2_per_cu_data::per_bfd.
3604 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3605 (create_type_unit_group): Likewise.
3606 (queue_comp_unit): Remove reference to
3607 per_cu->dwarf2_per_objfile.
3608 (maybe_queue_comp_unit): Likewise.
3609 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3610 (create_cus_hash_table): Assign new field.
3611
5e22e966
SM
36122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3613
3614 * dwarf2/read.c: Replace
3615 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3616 dwarf2_cu->per_objfile throughout.
3617
97a1449a
SM
36182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3619
3620 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3621 parameter, don't use per_cu->dwarf2_per_objfile.
3622 (dw2_instantiate_symtab): Likewise.
3623 (dw2_find_last_source_symtab): Update.
3624 (dw2_map_expand_apply): Update.
3625 (dw2_lookup_symbol): Update.
3626 (dw2_expand_symtabs_for_function): Update.
3627 (dw2_expand_all_symtabs): Update.
3628 (dw2_expand_symtabs_with_fullname): Update.
3629 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3630 don't use per_cu->dwarf2_per_objfile.
3631 (dw2_expand_marked_cus): Update.
3632 (dw2_find_pc_sect_compunit_symtab): Update.
3633 (dw2_debug_names_lookup_symbol): Update.
3634 (dw2_debug_names_expand_symtabs_for_function): Update.
3635 (dw2_debug_names_map_matching_symbols): Update.
3636 (dwarf2_psymtab::expand_psymtab): Update.
3637
9e021579
SM
36382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3639
3640 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3641 <per_objfile>: New member.
3642 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3643 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3644 call to dwarf2_cu.
3645 (cutu_reader::cutu_reader): Update.
3646 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3647
ae090bdb
SM
36482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3649
3650 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3651 struct dwarf2_per_objfile.
3652 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3653 dwarf2_per_bfd.
3654 * dwarf2/read.c (set_die_type): Update.
3655 (get_die_type_at_offset): Update.
3656
af758d11
SM
36572020-05-27 Tom Tromey <tom@tromey.com>
3658 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3661 method.
3662 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3663 get_symtab, set_symtab>: New methods.
3664 <m_symtabs>: New field.
3665 (struct dwarf2_psymtab): Derive from partial_symtab.
3666 <readin_p, get_compunit_symtab>: Declare methods.
3667 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3668 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3669 New methods.
3670 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3671 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3672 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3673 (dw2_symtab_iter_next, dw2_print_stats)
3674 (dw2_expand_symtabs_with_fullname)
3675 (dw2_expand_symtabs_matching_one)
3676 (dw_expand_symtabs_matching_file_matcher)
3677 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3678 (dw2_debug_names_iterator::next)
3679 (dw2_debug_names_map_matching_symbols)
3680 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3681 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3682 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3683 New methods.
3684 (get_compunit_symtab, process_full_comp_unit)
3685 (process_full_type_unit): Update.
3686 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3687
5989a64e
SM
36882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3689
3690 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3691 then introduce a new dwarf2_per_objfile type.
3692 <read_line_string>: Move to the new dwarf2_per_objfile type.
3693 <objfile>: Likewise.
3694 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3695 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3696 dwarf2_per_objfile->per_bfd.
3697 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3698 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3699 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3700 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3701 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3702 (dwarf2_per_objfile::locate_sections): Rename to...
3703 (dwarf2_per_bfd::locate_sections): ... this.
3704 (dwarf2_per_objfile::get_cutu): Rename to...
3705 (dwarf2_per_bfd::get_cutu): ... this.
3706 (dwarf2_per_objfile::get_cu): Rename to...
3707 (dwarf2_per_bfd::get_cu): ... this.
3708 (dwarf2_per_objfile::get_tu): Rename to...
3709 (dwarf2_per_bfd::get_tu): ... this.
3710 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3711 (dwarf2_per_bfd::allocate_per_cu): ... this.
3712 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3713 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3714 (get_gdb_index_contents_ftype): Change parameter from
3715 dwarf2_per_objfile to dwarf2_per_bfd.
3716 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3717 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3718
a50264ba
TT
37192020-05-27 Tom Tromey <tom@tromey.com>
3720 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3723 (allocate_piece_closure): Set "per_objfile" member.
3724 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3725 (locexpr_describe_location, loclist_describe_location): Use new
3726 member.
3727 * dwarf2/read.c (read_call_site_scope)
3728 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3729 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3730 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3731 handle_data_member_location): Set per_objfile member.
3732 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3733 member.
3734 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3735
d3473f0c
TT
37362020-05-27 Tom Tromey <tom@tromey.com>
3737
3738 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3739 allocate_signatured_type>: Declare new methods.
3740 <m_num_psymtabs>: New member.
3741 (struct dwarf2_per_cu_data) <index>: New member.
3742 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3743 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3744 (create_cu_from_index_list): Use allocate_per_cu.
3745 (create_signatured_type_table_from_index)
3746 (create_signatured_type_table_from_debug_names)
3747 (create_debug_type_hash_table, add_type_unit)
3748 (read_comp_units_from_section): Use allocate_signatured_type.
3749
5717c425
TT
37502020-05-27 Tom Tromey <tom@tromey.com>
3751
3752 * psymtab.c (partial_map_expand_apply)
3753 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3754 (psym_lookup_global_symbol_language)
3755 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3756 (psym_print_stats, psym_expand_symtabs_for_function)
3757 (psym_map_symbol_filenames, psym_map_matching_symbols)
3758 (psym_expand_symtabs_matching)
3759 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3760 (maintenance_check_psymtabs): Update.
3761 * psympriv.h (struct partial_symtab) <readin_p,
3762 get_compunit_symtab>: Add objfile parameter.
3763 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3764 Likewise.
3765 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3766 get_compunit_symtab>: Likewise.
3767 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3768
45940949
TT
37692020-05-27 Tom Tromey <tom@tromey.com>
3770
3771 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3772 member.
3773 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3774 (create_cu_from_index_list)
3775 (create_signatured_type_table_from_index)
3776 (create_signatured_type_table_from_debug_names)
3777 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3778 (dwarf2_create_include_psymtab)
3779 (create_debug_type_hash_table, add_type_unit)
3780 (create_type_unit_group, read_comp_units_from_section)
3781 (dwarf2_compute_name, create_cus_hash_table)
3782 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3783 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3784 obstack.
3785 (dw2_get_real_path): Likewise. Change argument to
3786 dwarf2_per_objfile.
3787
f8c6d152
LM
37882020-05-27 Luis Machado <luis.machado@linaro.org>
3789
3790 PR tdep/26000
3791 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3792 for ldrd (immediate).
3793
e98d2e6d
PW
37942020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3795
3796 * command.h: Add comment giving the name of class_tui.
3797 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3798 create the fake command for the help for class_tui.
3799
53a47a3e
TT
38002020-05-26 Tom Tromey <tromey@adacore.com>
3801
3802 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3803 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3804 (val_atr): New function.
3805 (value_val_atr): Use it.
3806 * ada-valprint.c (print_optional_low_bound): Change low bound
3807 handling for enums.
3808 (val_print_packed_array_elements): Don't call discrete_position.
3809 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3810 discrete_position for enum types.
3811 * language.c (default_print_array_index): Change type.
3812 * language.h (struct language_defn) <la_print_array_index>: Add
3813 index_type parameter, change type of index_value.
3814 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3815 (default_print_array_index): Update.
3816 * valprint.c (maybe_print_array_index): Don't call
3817 value_from_longest. Update.
3818 (value_print_array_elements): Don't call discrete_position.
3819
0bc2354b
TT
38202020-05-26 Tom Tromey <tromey@adacore.com>
3821
3822 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3823 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3824
1218a4bf
CDA
38252020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3826
3827 PR gdb/13519
3828 * avr-tdep.c (avr_integer_to_address): Return data or code
3829 address accordingly to the second 'type' argument of the
3830 function.
3831
92651b1d
MW
38322020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3833
3834 * infcmd.c, inferior.h: (construct_inferior_arguments):
3835 Moved function from here to gdbsupport/common-inferior.{h,cc}
3836
0a4f5f8c
TT
38372020-05-23 Tom Tromey <tom@tromey.com>
3838
3839 Revert commit eca1f90c:
3840 * NEWS: Remove entry for completion styling.
3841 * completer.c (_rl_completion_prefix_display_length): Move
3842 declaration later.
3843 (gdb_fnprint): Revert.
3844 (gdb_display_match_list_1): Likewise.
3845 * cli/cli-style.c (completion_prefix_style)
3846 (completion_difference_style, completion_suffix_style): Remove.
3847 (_initialize_cli_style): Revert.
3848 * cli/cli-style.h (completion_prefix_style)
3849 (completion_difference_style, completion_suffix_style): Don't
3850 declare.
3851
e08bd6c5
PA
38522020-05-24 Pedro Alves <palves@redhat.com>
3853
3854 * symtab.c (completion_list_add_name): Return boolean indication
3855 of whether the symbol matched.
3856 (completion_list_add_symbol): Don't try to remove C++ aliases if
3857 the symbol didn't match in the first place.
3858 * symtab.h (completion_list_add_name): Return bool.
3859
ceacbf6e
SM
38602020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3861
3862 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3863 type::field.
3864
26f16254
JB
38652020-05-23 Joel Brobecker <brobecker@adacore.com>
3866
3867 GDB 9.2 released.
3868
eca1f90c
TT
38692020-05-23 Tom Tromey <tom@tromey.com>
3870
3871 * NEWS: Add entry for completion styling.
3872 * completer.c (_rl_completion_prefix_display_length): Move
3873 declaration earlier.
3874 (gdb_fnprint): Use completion_style.
3875 (gdb_display_match_list_1): Likewise.
3876 * cli/cli-style.c (completion_prefix_style)
3877 (completion_difference_style, completion_suffix_style): New
3878 globals.
3879 (_initialize_cli_style): Register new globals.
3880 * cli/cli-style.h (completion_prefix_style)
3881 (completion_difference_style, completion_suffix_style): Declare.
3882
51e2cfa2
PA
38832020-05-23 Pedro Alves <palves@redhat.com>
3884
3885 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3886 (parse_escape): Use ISDIGIT instead of isdigit.
3887 (puts_debug): Use gdb_isprint instead of isprint.
3888 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3889 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3890 ISSPACE instead of isspace.
3891 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3892 instead of isspace.
3893 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3894 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3895 instead of isxdigit and ISDIGIT instead of isdigit.
3896
80fc5e77
SM
38972020-05-22 Simon Marchi <simon.marchi@efficios.com>
3898
3899 * gdbtypes.h (struct type) <field>: New method.
3900 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3901 or type::field.
3902
3cabb6b0
SM
39032020-05-22 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3906 (TYPE_FIELDS): Use type::fields. Change all call sites that
3907 modify the propery to use type::set_fields instead.
3908
1f704f76
SM
39092020-05-22 Simon Marchi <simon.marchi@efficios.com>
3910
3911 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3912 type::num_fields instead.
3913
5e33d5f4
SM
39142020-05-22 Simon Marchi <simon.marchi@efficios.com>
3915
3916 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3917 methods.
3918 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3919 that modify the number of fields to use type::set_num_fields
3920 instead.
3921
9392ebb3
TT
39222020-05-22 Tom Tromey <tromey@adacore.com>
3923
3924 * compile/compile-object-load.h (munmap_list_free): Don't
3925 declare.
3926
7c13f4e8
AB
39272020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3928
3929 * annotate.c (annotate_source_line): Update return type, add call
3930 to update current symtab and line.
3931 * annotate.h (annotate_source_line): Update return type, and
3932 extend header comment.
3933 * source.c (info_line_command): Check annotation_level before
3934 calling annotate_source_line.
3935 * stack.c (print_frame_info): If calling annotate_source_line
3936 returns true, then don't print any other source line information.
3937
aa370940
SM
39382020-05-21 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3941
84d53fa9
SM
39422020-05-21 Simon Marchi <simon.marchi@efficios.com>
3943
3944 * coffread.c (patch_type): Remove NULL check before xfree.
3945 * corefile.c (set_gnutarget): Likewise.
3946 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3947 * exec.c (build_section_table): Likewise.
3948 * remote.c (remote_target::pass_signals): Likewise.
3949 * utils.c (n_spaces): Likewise.
3950 * cli/cli-script.c (document_command): Likewise.
3951 * i386-windows-tdep.c (core_process_module_section): Likewise.
3952 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3953
9d428aae
SM
39542020-05-20 Simon Marchi <simon.marchi@efficios.com>
3955
3956 * symfile.c (reread_symbols): Clear objfile's section_offsets
3957 vector and section indices, re-compute them by calling
3958 sym_offsets.
3959
250106a7
TT
39602020-05-20 Tom Tromey <tromey@adacore.com>
3961
3962 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3963 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3964
9a0bacfb
TV
39652020-05-20 Tom de Vries <tdevries@suse.de>
3966
3967 PR symtab/25833
3968 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3969
7b958a48
AM
39702020-05-20 Alan Modra <amodra@gmail.com>
3971
3972 PR 25993
3973 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3974 bfd_set_filename.
3975 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3976 passed to bfd_set_filename.
3977 * symfile-mem.c (add_vsyscall_page): Likewise for string
3978 passed to symbol_file_add_from_memory.
3979 (symbol_file_add_from_memory): Make name param a const char* and
3980 don't strdup.
3981
c7e97679
AM
39822020-05-20 Alan Modra <amodra@gmail.com>
3983
3984 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3985 rather than accessing bfd->filename directly.
3986 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3987 and use bfd_section_name.
3988 * dwarf2/frame.c (decode_frame_entry): Likewise.
3989 * exec.c (exec_set_section_address): Likewise.
3990 * solib-aix.c (solib_aix_bfd_open): Likewise.
3991 * stap-probe.c (get_stap_base_address): Likewise.
3992 * symfile.c (reread_symbols): Likewise.
3993
563c591b
TT
39942020-05-19 Tom Tromey <tromey@adacore.com>
3995
3996 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3997
f408d82c
SM
39982020-05-19 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4001
98c59b52
PA
40022020-05-19 Pedro Alves <palves@redhat.com>
4003
4004 * NEWS (set exec-file-mismatch): Adjust entry.
4005 * exec.c: Include "build-id.h".
4006 (validate_exec_file): Try to match build IDs instead of filenames.
4007 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4008 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4009 and pass down 'warn_if_slow'.
4010 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4011 gdb_bfd_open_closure to pass it down.
4012 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4013
4111f652
PA
40142020-05-19 Pedro Alves <palves@redhat.com>
4015
4016 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4017 * target.c (target_fileio_open_1): Rename to target_fileio_open
4018 and make extern. Use bool.
4019 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4020 (target_fileio_read_alloc_1): Adjust.
4021 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4022 (target_fileio_open_warn_if_slow): Delete declaration.
4023
ad80db5b
PA
40242020-05-19 Pedro Alves <palves@redhat.com>
4025
4026 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4027 Adjust all callers.
4028
1d6ce4d3
YS
40292020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4030
4031 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4032 whether disp is negative.
4033
9005fbbb
SM
40342020-05-19 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * symfile.h (struct symfile_segment_data)
4037 <~symfile_segment_data>: Remove.
4038 <segment_info>: Change to std::vector.
4039 * symfile.c (default_symfile_segments): Update.
4040 * elfread.c (elf_symfile_segments): Update.
4041
68b888ff
SM
40422020-05-19 Simon Marchi <simon.marchi@efficios.com>
4043
4044 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4045 <segments>: New.
4046 <segment_bases, segment_sizes>: Remove.
4047 * symfile.c (default_symfile_segments): Update.
4048 * elfread.c (elf_symfile_segments): Update.
4049 * remote.c (remote_target::get_offsets): Update.
4050 * solib-target.c (solib_target_relocate_section_addresses):
4051 Update.
4052
62982abd
SM
40532020-05-19 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * symfile.h (struct symfile_segment_data): Initialize fields.
4056 <~symfile_segment_data>: Add.
4057 (symfile_segment_data_up): New.
4058 (struct sym_fns) <sym_segments>: Return a
4059 symfile_segment_data_up.
4060 (default_symfile_segments): Return a symfile_segment_data_up.
4061 (free_symfile_segment_data): Remove.
4062 (get_symfile_segment_data): Return a symfile_segment_data_up.
4063 * symfile.c (default_symfile_segments): Likewise.
4064 (get_symfile_segment_data): Likewise.
4065 (free_symfile_segment_data): Remove.
4066 (symfile_find_segment_sections): Update.
4067 * elfread.c (elf_symfile_segments): Return a
4068 symfile_segment_data_up.
4069 * remote.c (remote_target::get_offsets): Update.
4070 * solib-target.c (solib_target_relocate_section_addresses):
4071 Update.
4072 * symfile-debug.c (debug_sym_segments): Return a
4073 symfile_segment_data_up.
4074
7f204339
RO
40752020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4076
e52a0f1b
RO
4077 PR build/25981
4078 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4079 Hardcode register numbers.
4080
7f204339
RO
4081 PR build/25981
4082 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4083 procfs_find_LDT_entry): Remove.
4084 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4085 procfs_find_LDT_entry): Remove.
4086 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4087 Remove.
4088
7f32a4d5
PA
40892020-05-17 Pedro Alves <palves@redhat.com>
4090 Andrew Burgess <andrew.burgess@embecosm.com>
4091 Keno Fischer <keno@juliacomputing.com>
4092
4093 PR gdb/25741
4094 * breakpoint.c (build_target_condition_list): Update comments.
4095 (build_target_command_list): Update comments and skip matching
4096 locations.
4097 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4098 a separate function. Simplify "set breakpoint auto-hw off"
4099 handling.
4100 (insert_breakpoints): Update comment.
4101 (tracepoint_locations_match): New parameter. For breakpoints,
4102 compare location types too, if the caller wants to.
4103 (handle_automatic_hardware_breakpoints): New functions.
4104 (bp_location_is_less_than): Also sort by location type and
4105 hardware breakpoint length.
4106 (update_global_location_list): Handle "set breakpoint auto-hw on"
4107 here.
4108 (update_breakpoint_locations): Ask breakpoint_locations_match to
4109 ignore location types.
4110
7d93a1e0
SM
41112020-05-16 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4114 type::name instead.
4115
d0e39ea2
SM
41162020-05-16 Simon Marchi <simon.marchi@efficios.com>
4117
4118 * gdbtypes.h (struct type) <name, set_name>: New methods.
4119 (TYPE_CODE): Use type::name. Change all call sites used to set
4120 the name to use type::set_name instead.
4121
2dab0c7b
TT
41222020-05-16 Tom Tromey <tom@tromey.com>
4123
4124 * top.c (quit_force): Update.
4125 * infrun.c (handle_no_resumed): Update.
4126 * top.h (all_uis): New function.
4127 (ALL_UIS): Remove.
4128
59f7bd8d
SM
41292020-05-16 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4132
9bf058f0
PA
41332020-05-16 Pedro Alves <palves@redhat.com>
4134
4135 * ia64-linux-nat.c
4136 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4137 Declare method.
4138 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4139
8f86ae1a
SM
41402020-05-15 Simon Marchi <simon.marchi@efficios.com>
4141
4142 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4143 (sparc64_adi_info): Likewise.
4144
d6bc0792
TT
41452020-05-15 Tom Tromey <tom@tromey.com>
4146
4147 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4148 block_objfile.
4149 (lookup_objfile_from_block): Remove.
4150 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4151 (lookup_global_symbol): Use block_objfile.
4152 * symtab.h (lookup_objfile_from_block): Don't declare.
4153 * printcmd.c (clear_dangling_display_expressions): Use
4154 block_objfile.
4155 * parse.c (operator_check_standard): Use block_objfile.
4156
8c14c3a3
TT
41572020-05-15 Tom Tromey <tom@tromey.com>
4158
4159 * language.c (language_alloc_type_symbol): Set
4160 SYMBOL_SECTION.
4161 * symtab.c (initialize_objfile_symbol): Remove.
4162 (allocate_symbol): Remove.
4163 (allocate_template_symbol): Remove.
4164 * dwarf2/read.c (fixup_go_packaging): Use "new".
4165 (new_symbol): Use "new".
4166 (read_variable): Don't call initialize_objfile_symbol. Use
4167 "new".
4168 (read_func_scope): Use "new".
4169 * xcoffread.c (process_xcoff_symbol): Don't call
4170 initialize_objfile_symbol.
4171 (SYMBOL_DUP): Remove.
4172 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4173 "new".
4174 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4175 (allocate_template_symbol): Don't declare.
4176 (struct symbol): Add copy constructor. Change defaults.
4177 * jit.c (finalize_symtab): Use "new".
4178 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4179 Use "new".
4180 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4181 (common_block_end): Use "new".
4182 * mdebugread.c (parse_symbol): Use "new".
4183 (new_symbol): Likewise.
4184
5b4a1a8d
PW
41852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4186
4187 * NEWS: Mention changes to help and apropos.
4188
57b4f16e
PW
41892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4190
4191 * command.h (enum command_class): Improve comments, document
4192 that class_alias is for user-defined aliases, give the class
4193 name for each class, remove unused class_xdb.
4194 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4195 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4196 by a precise class.
4197 * infcmd.c (_initialize_infcmd): Likewise.
4198 * reverse.c (_initialize_reverse): Likewise.
4199 * stack.c (_initialize_stack): Likewise.
4200 * symfile.c (_initialize_symfile): Likewise.
4201 * tracepoint.c (_initialize_tracepoint): Likewise.
4202
7c05caf7
PW
42032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4204
4205 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4206 when their aliased command is traversed.
4207 (help_cmd): Add fput_command_names_styled call to
4208 output command name and aliases when command has an alias.
4209
3b3aaacb
PW
42102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4211
4212 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4213 * cli/cli-decode.c (help_cmd_list): Declare as static,
4214 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4215 a command together with the command.
4216 (fput_command_name_styled, fput_command_names_styled): New functions.
4217 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4218 fput_command_name_styled.
4219 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4220 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4221
7aa1b46f
PW
42222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4223
4224 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4225 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4226 * command.h (cmd_show_list): Likewise.
4227 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4228 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4229
89bcba74
PW
42302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4231
4232 * unittests/command-def-selftests.c (traverse_command_structure):
4233 Verify all commands of a list have the same prefix command and
4234 that only the top cmdlist commands have a null prefix.
4235
3f4d92eb
PW
42362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4237
4238 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4239 as prefix, not one of its aliases.
4240 (set_cmd_prefix): Remove.
4241 (do_add_cmd): Centralize the setting of the prefix of a command, when
4242 command is defined after its full chain of prefix commands.
4243 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4244 (add_setshow_cmd_full): Likewise.
4245 (update_prefix_field_of_prefixed_commands): New function.
4246 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4247 update_prefix_field_of_prefixed_commands.
4248 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4249 addresses of remote_set_cmdlist and remote_show_cmdlist given
4250 as argument, not the address of an argument.
4251 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4252 * gdb/remote.c (_initialize_remote): Likewise.
4253
0605465f
PW
42542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4255
4256 * cli/cli-cmds.c (alias_command): Check for an existing alias
4257 using lookup_cmd_composition, as valid_command_p is too strict
4258 and forbids aliases that are the prefix of an existing alias
4259 or command.
4260 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4261 command is properly recognised as a valid command.
4262
58e6ac70
PW
42632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4264
4265 * unittests/help-doc-selftests.c: Rename to
4266 unittests/command-def-selftests.c
4267 * unittests/command-def-selftests.c (help_doc_tests): Update some
4268 comments.
4269 (command_structure_tests, traverse_command_structure): New namespace
4270 and function.
4271 (command_structure_invariants_tests): New function.
4272 (_initialize_command_def_selftests) Renamed from
4273 _initialize_help_doc_selftests, register command_structure_invariants
4274 selftest.
4275
a7b9ceb8
PW
42762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4277
4278 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4279 an alias of 'show'.
4280
b2188a06
JB
42812020-05-15 Joel Brobecker <brobecker@adacore.com>
4282
4283 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4284 ada_is_fixed_point_type. Update all callers.
4285 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4286 all callers.
4287 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4288 Update all callers.
4289 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4290 print_fixed_point_type. Update all callers.
4291 * ada-valprint.c (ada_value_print_num): Replace call to
4292 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4293
a51951c2
KB
42942020-05-14 Kevin Buettner <kevinb@redhat.com>
4295
4296 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4297 processors.
4298 (cpu_supports_bts): Add CV_AMD case.
4299
29d6859f
LM
43002020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4301 Simon Marchi <simon.marchi@efficios.com>
4302
4303 * infrun.c (stop_all_threads): Collect multiple wait events at
4304 each pass.
4305
78134374
SM
43062020-05-14 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4309 type::code instead.
4310
67607e24
SM
43112020-05-14 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * gdbtypes.h (struct type) <code, set_code>: New methods.
4314 (TYPE_CODE): Use type::code. Change all call sites used to set
4315 the code to use type::set_code instead.
4316
a05575d3
TBA
43172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4318 Tom de Vries <tdevries@suse.de>
4319 Pedro Alves <palves@redhat.com>
4320
4321 PR threads/25478
4322 * infrun.c (stop_all_threads): Do NOT ignore
4323 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4324 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4325 received.
4326 (handle_no_resumed): Remove code handling a live inferior with no
4327 threads.
4328 * remote.c (has_single_non_exited_thread): New.
4329 (remote_target::update_thread_list): Do not delete a thread if is
4330 the last thread of the process.
4331 * thread.c (thread_select): Call delete_exited_threads instead of
4332 prune_threads.
4333
6ad82919
TBA
43342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4335
4336 * infrun.c (stop_all_threads): Enable/disable thread events of all
4337 targets. Move a debug message denoting the end of the function
4338 into the SCOPED_EXIT block.
4339
d890404b
TBA
43402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4341
4342 * process-stratum-target.h: Include <set>.
4343 (all_non_exited_process_targets, switch_to_target_no_thread): New
4344 function declarations.
4345 * process-stratum-target.c (all_non_exited_process_targets)
4346 (switch_to_target_no_thread): New function implementations.
4347
293b3ebc
TBA
43482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4349
4350 * infrun.c (handle_inferior_event): Extract out a piece of code
4351 into...
4352 (mark_non_executing_threads): ...this new function.
4353
7ca9b62a
TBA
43542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4355
4356 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4357 use.
4358
fc75c28b
TBA
43592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4360
4361 * regcache.c (regcache_read_pc_protected): New function
4362 implementation that returns 0 if the PC cannot read via
4363 'regcache_read_pc'.
4364 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4365 instead of 'regcache_read_pc'.
4366 (keep_going_pass_signal): Ditto.
4367
a89febbd
TT
43682020-05-13 Tom Tromey <tromey@adacore.com>
4369
4370 * ada-lang.c (align_value): Remove.
4371 (ada_template_to_fixed_record_type_1): Use align_up.
4372
f7e23710
TBA
43732020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4374
4375 * async-event.c: Update the copyright year.
4376 * async-event.h: Update the copyright year.
4377
02ff80c2
SM
43782020-05-12 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * objfiles.h (is_addr_in_objfile,
4381 shared_objfile_contains_address_p): Return bool.
4382 * objfile.c (is_addr_in_objfile,
4383 shared_objfile_contains_address_p): Return bool.
4384
4fd6c7e8
TT
43852020-05-11 Tom Tromey <tromey@adacore.com>
4386
4387 * cli/cli-cmds.c (info_command): Restore.
4388 (_initialize_cli_cmds): Use add_prefix_command for "info".
4389 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4390
5eb68a39
TT
43912020-05-11 Tom Tromey <tromey@adacore.com>
4392
4393 * ada-lang.c (ada_value_primitive_field): Now public.
4394 * ada-lang.h (ada_value_primitive_field): Declare.
4395 * ada-valprint.c (print_field_values): Use
4396 ada_value_primitive_field for wrapper fields.
4397
7666722f
TV
43982020-05-11 Tom de Vries <tdevries@suse.de>
4399
4400 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4401 MODULE_DOMAIN.
4402
3ee6bb11
TV
44032020-05-11 Tom de Vries <tdevries@suse.de>
4404
4405 PR symtab/25941
4406 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4407 with length 0, if not gdb-produced.
4408 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4409
43434996
TV
44102020-05-09 Tom de Vries <tdevries@suse.de>
4411
4412 PR gdb/25955
4413 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4414 calculation.
4415
2f78cffc
TT
44162020-05-09 Tom Tromey <tom@tromey.com>
4417
4418 * top.c (server_command): Now bool.
4419 * top.h (server_command): Now bool.
4420
4f7bc5ed
TT
44212020-05-08 Tom Tromey <tromey@adacore.com>
4422
4423 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4424 already being processed.
4425
8be4b118
TT
44262020-05-08 Tom Tromey <tom@tromey.com>
4427
4428 * printcmd.c (struct display) <next>: Remove.
4429 <display>: New constructor.
4430 <exp_string>: Now a std::string.
4431 <enabled_p>: Now a bool.
4432 (display_number): Move definition earlier.
4433 (displays): Rename from display_chain. Now a std::vector.
4434 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4435 (display_command): Update.
4436 (do_one_display, disable_display)
4437 (enable_disable_display_command, do_enable_disable_display):
4438 Update.
4439 (free_display): Remove.
4440 (clear_displays): Rewrite.
4441 (delete_display): Update.
4442 (map_display_numbers): Use function_view. Remove "data"
4443 parameter. Update.
4444 (do_delete_display): Remove.
4445 (undisplay_command): Update.
4446 (do_one_display, do_displays, disable_display)
4447 (info_display_command): Update.
4448 (do_enable_disable_display): Remove.
4449 (enable_disable_display_command)
4450 (clear_dangling_display_expressions): Update.
4451
94c93c35
TT
44522020-05-08 Tom Tromey <tom@tromey.com>
4453
4454 * symtab.c (set_symbol_cache_size)
4455 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4456 (maintenance_print_symbol_cache_statistics): Update.
4457 * symmisc.c (print_symbol_bcache_statistics)
4458 (print_objfile_statistics, maintenance_print_objfiles)
4459 (maintenance_info_symtabs, maintenance_check_symtabs)
4460 (maintenance_expand_symtabs, maintenance_info_line_tables):
4461 Update.
4462 * symfile-debug.c (set_debug_symfile): Update.
4463 * source.c (forget_cached_source_info): Update.
4464 * python/python.c (gdbpy_progspaces): Update.
4465 * psymtab.c (maintenance_info_psymtabs): Update.
4466 * probe.c (parse_probes): Update.
4467 * linespec.c (iterate_over_all_matching_symtabs)
4468 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4469 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4470 * exec.c (exec_target::close): Update.
4471 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4472 * breakpoint.c (print_one_breakpoint_location)
4473 (create_longjmp_master_breakpoint)
4474 (create_std_terminate_master_breakpoint): Update.
4475 * progspace.c (program_spaces): Now a std::vector.
4476 (maybe_new_address_space): Update.
4477 (add_program_space): Remove.
4478 (program_space::program_space): Update.
4479 (remove_program_space): Update.
4480 (number_of_program_spaces): Remove.
4481 (print_program_space, update_address_spaces): Update.
4482 * progspace.h (program_spaces): Change type.
4483 (ALL_PSPACES): Remove.
4484 (number_of_program_spaces): Don't declare.
4485 (struct program_space) <next>: Remove.
4486
a1fd1ac9
TT
44872020-05-08 Tom Tromey <tom@tromey.com>
4488
4489 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4490 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4491 (enable_break): Update.
4492 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4493 (frv_fdpic_find_canonical_descriptor): Update.
4494 (frv_fetch_objfile_link_map): Update.
4495 * progspace.c (program_space::free_all_objfiles): Update.
4496 (program_space::solibs): New method.
4497 * progspace.h (struct program_space) <solibs>: New method.
4498 * solist.h (master_so_list): Don't declare.
4499 (ALL_SO_LIBS): Remove.
4500 * solib.h (so_list_head): Remove.
4501 (update_solib_list): Update comment.
4502 * solib.c (master_so_list): Remove.
4503 (solib_used, update_solib_list, solib_add)
4504 (info_sharedlibrary_command, clear_solib)
4505 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4506
38eae084
TT
45072020-05-08 Tom Tromey <tom@tromey.com>
4508
4509 * extension.c (extension_languages): Now a std::array.
4510 (ALL_EXTENSION_LANGUAGES): Remove.
4511 (get_ext_lang_defn, get_ext_lang_of_file)
4512 (eval_ext_lang_from_control_command): Update.
4513 (finish_ext_lang_initialization)
4514 (auto_load_ext_lang_scripts_for_objfile)
4515 (ext_lang_type_printers::ext_lang_type_printers)
4516 (apply_ext_lang_type_printers)
4517 (ext_lang_type_printers::~ext_lang_type_printers)
4518 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4519 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4520 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4521 (get_matching_xmethod_workers, ext_lang_colorize)
4522 (ext_lang_before_prompt): Update.
4523 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4524
596dc4ad
TT
45252020-05-08 Tom Tromey <tom@tromey.com>
4526
4527 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4528 overload.
4529 <swap_string, m_string>: Remove.
4530 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4531 Update.
4532 * stabsread.c (define_symbol, read_type): Update.
4533 * linespec.c (find_linespec_symbols): Update.
4534 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4535 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4536 * dbxread.c (read_dbx_symtab): Update.
4537 * cp-support.h (cp_canonicalize_string_full)
4538 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4539 Return unique_xmalloc_ptr.
4540 * cp-support.c (inspect_type): Update.
4541 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4542 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4543 Likewise.
4544 * c-typeprint.c (print_name_maybe_canonical): Update.
4545 * break-catch-throw.c (check_status_exception_catchpoint):
4546 Update.
4547
bf4cb9be
TV
45482020-05-08 Tom de Vries <tdevries@suse.de>
4549
4550 * infrun.c (follow_fork): Copy current_line and current_symtab to
4551 child thread.
4552
a1b68f28
SM
45532020-05-07 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * async-event.c (struct async_signal_handler, struct
4556 async_event_handler): Reformat, remove typedef.
4557
98d48915
SM
45582020-05-07 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4561 access thistype->main_type->dyn_prop_list directly.
4562
7aa91313
SM
45632020-05-07 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4566 (remove_dyn_prop): Remove. Update all users to use
4567 type::remove_dyn_prop.
4568 * gdbtypes.c (remove_dyn_prop): Rename to...
4569 (type::remove_dyn_prop): ... this.
4570
5c54719c
SM
45712020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4572
4573 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4574 (add_dyn_prop): Remove. Update all users to use
4575 type::add_dyn_prop.
4576 * gdbtypes.c (add_dyn_prop): Rename to...
4577 (type::add_dyn_prop): ... this.
4578
24e99c6c
SM
45792020-05-07 Simon Marchi <simon.marchi@efficios.com>
4580
4581 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4582 (get_dyn_prop): Remove. Update all users to use
4583 type::dyn_prop.
4584 * gdbtypes.c (get_dyn_prop): Rename to...
4585 (type::dyn_prop): ... this.
4586
0d4bf016
SM
45872020-05-06 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4590
ac4a4f1c
SM
45912020-05-06 Simon Marchi <simon.marchi@efficios.com>
4592
4593 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4594 instruction, skip it if it's there.
4595
a3bbacc1
SM
45962020-05-05 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4599
c3236f84
SM
46002020-05-04 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4603 * gdbtypes.c (recursive_dump_type): Remove use of
4604 TYPE_INCOMPLETE.
4605
3b6acaee
TT
46062020-05-03 Tom Tromey <tom@tromey.com>
4607
4608 * breakpoint.c (catch_command, tcatch_command): Remove.
4609 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4610 add_show_prefix_cmd.
4611 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4612 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4613 Remove.
4614 (add_internal_problem_command): Use add_basic_prefix_cmd,
4615 add_show_prefix_cmd.
4616 * mips-tdep.c (set_mipsfpu_command): Remove.
4617 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4618 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4619 (_initialize_index_cache): Use add_basic_prefix_cmd.
4620 * memattr.c (dummy_cmd): Remove.
4621 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4622 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4623 (_initialize_tui_win): Use add_basic_prefix_cmd,
4624 add_show_prefix_cmd.
4625 * cli/cli-logging.c (set_logging_command): Remove.
4626 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4627 add_show_prefix_cmd.
4628 (show_logging_command): Remove.
4629 * target.c (target_command): Remove.
4630 (add_target): Use add_basic_prefix_cmd.
4631
a51119cd
HD
46322020-05-02 Hannes Domani <ssbssa@yahoo.de>
4633
4634 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4635
652fc23a 46362020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4637
652fc23a
PW
4638 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4639 info_command.
4640
117539e6
KR
46412020-04-30 Kamil Rytarowski <n54@gmx.com>
4642
4643 * nbsd-nat.c (nbsd_enable_proc_events)
4644 (nbsd_nat_target::post_startup_inferior): Add.
4645 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4646 (nbsd_nat_target::update_thread_list): Rewrite.
4647 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4648 "PTRACE_LWP_CREATE".
4649 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4650
102e38eb 46512020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4652
102e38eb
PW
4653 * stack.c (_initialize_stack): Remove duplicated creation
4654 of "frame" command and "f" alias.
4655
ee9d1e5f
HD
46562020-04-30 Hannes Domani <ssbssa@yahoo.de>
4657
4658 PR gdb/18706
4659 * gdbtypes.c (check_typedef): Calculate size of array of
4660 stubbed type.
4661
627c7fb8
HD
46622020-04-30 Hannes Domani <ssbssa@yahoo.de>
4663
4664 PR gdb/15559
4665 * i386-tdep.c (i386_push_dummy_call): Call
4666 i386_thiscall_push_dummy_call.
4667 (i386_thiscall_push_dummy_call): New function.
4668 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4669 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4670 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4671
ffc2844e
SM
46722020-04-29 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbarch.sh (do_read): Add shellcheck disable directive for
4675 warning SC2162.
4676
1207375d
SM
46772020-04-29 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4680 "referenced but not assigned" warning.
4681
9fdb2916
SM
46822020-04-29 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * gdbarch.sh: Remove code that sets fallbackdefault.
4685
759cea5e
SM
46862020-04-29 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * gdbarch.sh: Use shell operators && and || instead of
4689 -a and -o.
4690
cb02ab24
SM
46912020-04-29 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * gdbarch.sh: Use $(...) instead of `...`.
4694
a6fc5ffc
SM
46952020-04-29 Simon Marchi <simon.marchi@efficios.com>
4696
4697 * gdbarch.sh: Use double quotes around variables.
4698
8d113d13
SM
46992020-04-29 Simon Marchi <simon.marchi@efficios.com>
4700
4701 * gdbarch.sh: Use %s with printf, instead of variables in the
4702 format string.
4703
ed6acedd
TT
47042020-04-29 Tom Tromey <tromey@adacore.com>
4705
4706 PR ada/25875:
4707 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4708 type fields here.
4709 (read_enumeration_type): Call
4710 update_enumeration_type_from_children later. Update comments.
4711 (process_enumeration_scope): Don't create type fields.
4712
b68b1b58
KR
47132020-04-29 Kamil Rytarowski <n54@gmx.com>
4714
4715 * nbsd-tdep.c: Include "xml-syscall.h".
4716 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4717
f94b2e03
KR
47182020-04-29 Kamil Rytarowski <n54@gmx.com>
4719
4720 * nbsd-nat.c: Include "sys/wait.h".
4721 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4722 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4723 (nbsd_nat_target::remove_exec_catchpoint)
4724 (nbsd_nat_target::set_syscall_catchpoint): Add.
4725 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4726 (nbsd_nat_target::insert_exec_catchpoint)
4727 (nbsd_nat_target::remove_exec_catchpoint)
4728 (nbsd_nat_target::set_syscall_catchpoint): Add.
4729 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4730 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4731 `nbsd_get_syscall_number'.
4732
fc49bc72
TT
47332020-04-29 Tom Tromey <tom@tromey.com>
4734
4735 * stack.c (print_block_frame_labels): Remove.
4736
d642b692
HD
47372020-04-29 Hannes Domani <ssbssa@yahoo.de>
4738
4739 PR gdb/17320
4740 * ada-valprint.c (val_print_packed_array_elements): Move array
4741 end bracket to new line.
4742 (ada_val_print_string): Remove extra spaces before first array
4743 element.
4744 * c-valprint.c (c_value_print_array): Likewise.
4745 * m2-valprint.c (m2_print_array_contents): Likewise.
4746 (m2_value_print_inner): Likewise.
4747 * p-valprint.c (pascal_value_print_inner): Likewise.
4748 * valprint.c (generic_val_print_array): Likewise.
4749 (value_print_array_elements): Move first array element and array
4750 end bracket to new line.
4751
ea90f227
TV
47522020-04-29 Tom de Vries <tdevries@suse.de>
4753
4754 PR symtab/25889
4755 * linespec.c (find_method): Fix ix calculation.
4756
4498ef4f
KR
47572020-04-28 Kamil Rytarowski <n54@gmx.com>
4758
4759 * syscalls/update-netbsd.sh: New file.
4760 * syscalls/netbsd.xml: Regenerate.
4761 * data-directory/Makefile.in: Register `netbsd.xml' in
4762 `SYSCALLS_FILES'.
4763
a55e30b5
SM
47642020-04-28 Simon Marchi <simon.marchi@efficios.com>
4765
4766 * syscalls/update-freebsd.sh: Add double quotes.
4767
2b2fbab8
TT
47682020-04-28 Tom Tromey <tom@tromey.com>
4769
4770 * NEWS: Update.
4771 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4772 (cmdpy_init): Allow class_tui.
4773
a65189c9
TV
47742020-04-28 Mark Williams <mark@myosotissp.com>
4775
4776 PR gdb/24480
4777 * dwarf2read.c: Add missing assingments to list_in_scope when
4778 start_symtab was already called.
4779
1b95cdb7
SM
47802020-04-28 Simon Marchi <simon.marchi@efficios.com>
4781
4782 PR gdb/25881
4783 * dwarf2/read.c (offset_map_type): Use
4784 gdb:hash_enum<sect_offset> as hash function.
4785
15cd93d0
TV
47862020-04-28 Tom de Vries <tdevries@suse.de>
4787
4788 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4789 with DW_AT_signature.
4790
1eb39914
SM
47912020-04-27 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * configure.ac: Remove check for fs_base/gs_base in
4794 user_regs_struct.
4795 * configure: Re-generate.
4796 * config.in: Re-generate.
4797 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4798 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4799 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4800
991a3e2e
LM
48012020-04-27 Luis Machado <luis.machado@linaro.org>
4802
4803 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4804 problematic inline frame unwinding situation.
4805 * frame.c (frame_id_computed_p): New function.
4806 * frame.h (frame_id_computed_p): New prototype.
4807
361ba0e8
TT
48082020-04-26 Tom Tromey <tom@tromey.com>
4809
4810 * command.h (enum command_class) <class_pseudo>: Remove.
4811
bc3609fd
PW
48122020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4813
4814 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4815 and whitespace.
4816
b9771db7
KR
48172020-04-25 Kamil Rytarowski <n54@gmx.com>
4818
ec16513e
SM
4819 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4820 `PT_GET_PROCESS_STATE' block.
b9771db7 4821
7151c1af
TT
48222020-04-24 Tom Tromey <tom@tromey.com>
4823
4824 * symtab.h (symbol_get_demangled_name): Don't declare.
4825 * symtab.c (symbol_get_demangled_name): Remove.
4826 (general_symbol_info::natural_name)
4827 (general_symbol_info::demangled_name): Update.
4828
906bb4c5
TT
48292020-04-24 Tom Tromey <tom@tromey.com>
4830
4831 PR rust/25025:
4832 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4833
bcfe6157
TT
48342020-04-24 Tom Tromey <tom@tromey.com>
4835
4836 PR symtab/12707:
4837 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4838 exists.
4839 (new_symbol): Likewise.
4840 * compile/compile-object-load.c (get_out_value_type): Use
4841 symbol_matches_search_name.
4842
f049a313
TT
48432020-04-24 Tom Tromey <tom@tromey.com>
4844
4845 * dwarf2/read.c (add_partial_symbol): Do not call
4846 compute_and_set_names.
4847
76e288d1
TT
48482020-04-24 Tom Tromey <tom@tromey.com>
4849
4850 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4851 overload.
4852
2467f4f6
TT
48532020-04-24 Tom Tromey <tom@tromey.com>
4854
4855 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4856 (add_psymbol_to_list): New overload. Make old overload call new
4857 one.
4858 * psympriv.h (add_psymbol_to_list): New overload.
4859
e61108c9
TT
48602020-04-24 Tom Tromey <tom@tromey.com>
4861
4862 * dwarf2/read.c (partial_die_info::read) <case
4863 DW_AT_linkage_name>: Use value_as_string.
4864 (dwarf2_string_attr): Use value_as_string.
4865 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4866 method.
4867 * dwarf2/attribute.c (attribute::value_as_string): New method.
4868
8c87a452
TT
48692020-04-24 Tom Tromey <tom@tromey.com>
4870
4871 * symtab.c (general_symbol_info::natural_name)
4872 (general_symbol_info::demangled_name): Check for language_rust.
4873
787de330
TT
48742020-04-24 Tom Tromey <tom@tromey.com>
4875
4876 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4877 (dwarf2_physname): ... from here.
4878 (partial_die_info::read): Add Rust "{" hack.
4879
ff985671
TT
48802020-04-24 Tom Tromey <tom@tromey.com>
4881
4882 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4883 method.
4884 (symbol_set_demangled_name): Don't declare.
4885 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4886 symbol_set_demangled_name.
4887 (general_symbol_info::set_language)
4888 (general_symbol_info::compute_and_set_names): Update.
4889 * minsyms.c (minimal_symbol_reader::install): Update.
4890 * dwarf2/read.c (new_symbol): Update.
4891
1acda803
TT
48922020-04-24 Tom Tromey <tromey@adacore.com>
4893
4894 PR python/23662:
4895 * python/py-type.c (convert_field): Handle
4896 FIELD_LOC_KIND_DWARF_BLOCK.
4897 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4898 (typy_get_dynamic): Nw function.
4899 (type_object_getset): Add "dynamic".
4900 * NEWS: Add entry.
4901
d656f129
TT
49022020-04-24 Tom Tromey <tromey@adacore.com>
4903
4904 * ada-typeprint.c (print_choices, print_variant_part)
4905 (print_record_field_types_dynamic): New functions.
4906 (print_record_field_types): Use print_record_field_types_dynamic.
4907
7d79de9a
TT
49082020-04-24 Tom Tromey <tromey@adacore.com>
4909
4910 * dwarf2/read.c (handle_data_member_location): New overload.
4911 (dwarf2_add_field): Use it.
4912 (decode_locdesc): Add "computed" parameter. Update comment.
4913 * gdbtypes.c (is_dynamic_type_internal): Also look for
4914 FIELD_LOC_KIND_DWARF_BLOCK.
4915 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4916 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4917 virtual base classes.
4918 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4919 FIELD_LOC_KIND_DWARF_BLOCK.
4920
f8e89861
TT
49212020-04-24 Tom Tromey <tromey@adacore.com>
4922
4923 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4924 * gdbtypes.c (is_dynamic_type_internal): Check
4925 TYPE_HAS_DYNAMIC_LENGTH.
4926 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4927 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4928 New macros.
4929 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4930 constant.
4931
9c6a1327
TT
49322020-04-24 Tom Tromey <tromey@adacore.com>
4933
4934 * dwarf2/read.c (struct variant_field): Rewrite.
4935 (struct variant_part_builder): New.
4936 (struct nextfield): Remove "variant" field. Add "offset".
4937 (struct field_info): Add "current_variant_part" and
4938 "variant_parts".
4939 (alloc_discriminant_info): Remove.
4940 (alloc_rust_variant): New function.
4941 (quirk_rust_enum): Update.
4942 (dwarf2_add_field): Set "offset" member. Don't handle
4943 DW_TAG_variant_part.
4944 (offset_map_type): New typedef.
4945 (convert_variant_range, create_one_variant)
4946 (create_one_variant_part, create_variant_parts)
4947 (add_variant_property): New functions.
4948 (dwarf2_attach_fields_to_type): Call add_variant_property.
4949 (read_structure_type): Don't handle DW_TAG_variant_part.
4950 (handle_variant_part, handle_variant): New functions.
4951 (handle_struct_member_die): Use them.
4952 (process_structure_scope): Don't handle variant parts.
4953 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4954 (struct discriminant_info): Remove.
4955 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4956 (struct main_type) <flag_discriminated_union>: Remove.
4957 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4958 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4959 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4960 Update.
4961 * valops.c (value_union_variant): Remove.
4962 * value.h (value_union_variant): Don't declare.
4963
b249d2c2
TT
49642020-04-24 Tom Tromey <tromey@adacore.com>
4965
4966 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4967 (ada_value_primitive_packed_val): Update.
4968 * ada-valprint.c (ada_value_print_1): Update.
4969 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4970 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4971 just an address. Use evaluate_for_locexpr_baton.
4972 (dwarf2_evaluate_property): Update.
4973 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4974 array_view.
4975 * findvar.c (default_read_var_value): Update.
4976 * gdbtypes.c (compute_variant_fields_inner)
4977 (resolve_dynamic_type_internal): Update.
4978 (resolve_dynamic_type): Change type of valaddr parameter.
4979 * gdbtypes.h (resolve_dynamic_type): Update.
4980 * valarith.c (value_subscripted_rvalue): Update.
4981 * value.c (value_from_contents_and_address): Update.
4982
61122aa9
TT
49832020-04-24 Tom Tromey <tromey@adacore.com>
4984
4985 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4986 "push_initial_value" parameter.
4987 (dwarf2_evaluate_property): Likewise.
4988 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4989
ef83a141
TT
49902020-04-24 Tom Tromey <tromey@adacore.com>
4991
4992 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4993 (variant::matches, compute_variant_fields_recurse)
4994 (compute_variant_fields_inner, compute_variant_fields): New
4995 functions.
4996 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4997 Use resolved_type after type is made.
4998 (operator==): Add new cases.
4999 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5000 (struct discriminant_range, struct variant, struct variant_part):
5001 New.
5002 (union dynamic_prop_data) <variant_parts, original_type>: New
5003 members.
5004 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5005 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5006 constants.
5007 * value.c (unpack_bits_as_long): Now public.
5008 * value.h (unpack_bits_as_long): Declare.
5009
675127ec
TT
50102020-04-24 Tom Tromey <tromey@adacore.com>
5011
5012 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5013 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5014
9852ceef
HD
50152020-04-24 Hannes Domani <ssbssa@yahoo.de>
5016
5017 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5018
7632c6ce
KR
50192020-04-24 Kamil Rytarowski <n54@gmx.com>
5020
5021 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5022 (remove_fork_catchpoint, post_startup_inferior)
5023 (post_attach): Move...
5024 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5025 (remove_fork_catchpoint, post_startup_inferior)
5026 (post_attach): ...here.
5027 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5028 (remove_fork_catchpoint, post_startup_inferior)
5029 (post_attach): Move...
5030 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5031 (remove_fork_catchpoint, post_startup_inferior)
5032 (post_attach): ...here.
5033
7be2bb4f
TT
50342020-04-24 Tom Tromey <tromey@adacore.com>
5035
5036 * nat/windows-nat.h (struct windows_thread_info)
5037 <pc_adjusted>: New member.
5038 * windows-nat.c (windows_fetch_one_register): Check
5039 pc_adjusted.
5040 (windows_nat_target::get_windows_debug_event)
5041 (windows_nat_target::wait): Set pc_adjusted.
5042
f80cb3b4
TV
50432020-04-24 Tom de Vries <tdevries@suse.de>
5044
5045 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5046 Run gdb-add-index inside temp dir.
5047
29514b87
TT
50482020-04-23 Tom Tromey <tromey@adacore.com>
5049
5050 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5051 in loop.
5052
5939967b
LM
50532020-04-23 Luis Machado <luis.machado@linaro.org>
5054
5055 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5056 get_frame_register instead of gdbarch_unwind_pc.
5057
70bc38f5
TV
50582020-04-23 Tom de Vries <tdevries@suse.de>
5059
5060 * symtab.c (lookup_global_symbol): Prefer def over decl.
5061
de82891c
TV
50622020-04-23 Tom de Vries <tdevries@suse.de>
5063
5064 PR symtab/25807
5065 * block.c (best_symbol, better_symbol): Promote to external.
5066 * block.h (best_symbol, better_symbol): Declare.
5067 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5068 decl.
5069
ecc6c606
TT
50702020-04-23 Tom Tromey <tromey@adacore.com>
5071
5072 PR ada/25837:
5073 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5074 "const char *", not a "const std::string &".
5075 <name_and_matcher::operator==>: Update.
5076 * unittests/lookup_name_info-selftests.c: Change type of
5077 "result".
5078
740480b8
TT
50792020-04-23 Tom Tromey <tom@tromey.com>
5080
5081 * inferior.h (iterate_over_inferiors): Don't declare.
5082 * inferior.c (iterate_over_inferiors): Remove.
5083 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5084 Remove.
5085 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5086 use iterate_over_inferiors.
5087 (darwin_resume_inferior_it)
5088 (struct resume_inferior_threads_param)
5089 (darwin_resume_inferior_threads_it): Remove.
5090 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5091
ae3ab1f0
TV
50922020-04-23 Tom de Vries <tdevries@suse.de>
5093
5094 * blockframe.c (find_pc_partial_function): Use
5095 find_pc_sect_compunit_symtab rather than
5096 objfile->sf->qf->find_pc_sect_compunit_symtab.
5097
317d2668
TV
50982020-04-22 Tom de Vries <tdevries@suse.de>
5099
5100 PR symtab/25764
5101 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5102 in psymtabs.
5103
eea9e357
TV
51042020-04-22 Tom de Vries <tdevries@suse.de>
5105
5106 PR symtab/25801
5107 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5108 symtabs.
5109
3d5afab3
TV
51102020-04-22 Tom de Vries <tdevries@suse.de>
5111
5112 PR symtab/25700
5113 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5114 CU if already created.
5115
d43b7a2d
TBA
51162020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5117
5118 * infrun.c (displaced_step_fixup): Switch to the event_thread
5119 before calling displaced_step_restore, not after.
5120
d89edf9b
MM
51212020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5122
5123 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5124 its inferior is not recorded by us.
5125 (record_btrace_target_open): Replace call to
5126 all_non_exited_threads () with call to current_inferior
5127 ()->non_exited_threads ().
5128 (record_btrace_target::stop_recording): Likewise.
5129 (record_btrace_target::close): Likewise.
5130 (record_btrace_target::wait): Likewise.
5131 (record_btrace_target::record_stop_replaying): Likewise.
5132
5897fd49
MM
51332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5134
5135 * btrace.c (btrace_enable): Throw an error on double enables and
5136 when enabling recording fails.
5137 (btrace_disable): Throw an error if the thread is not recorded.
5138
1a476b6d
MM
51392020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5140
5141 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5142 request if we do not have a thread_info.
5143
4778a5f8
TV
51442020-04-21 Tom de Vries <tdevries@suse.de>
5145
5146 PR gdb/25471
5147 * thread.c
5148 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5149 exception in get_frame_id.
5150
0fa7617d
TT
51512020-04-20 Tom Tromey <tromey@adacore.com>
5152
5153 * python/python.c (struct gdbpy_event): Mark move constructor as
5154 noexcept.
5155 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5156 constructor as noexcept.
5157 * completer.h (struct completion_result): Mark move constructor as
5158 noexcept.
5159 * completer.c (completion_result::completion_result): Use
5160 initialization style. Don't call reset_match_list.
5161
ad23bda0
MS
51622020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5163
5164 * MAINTAINERS (Write After Approval): Add myself.
5165
45e1f031
TT
51662020-04-18 Tom Tromey <tom@tromey.com>
5167
5168 * windows-tdep.c (init_w32_command_list)
5169 (w32_prefix_command_valid): Restore.
5170 (_initialize_windows_tdep): Call init_w32_command_list.
5171
08feed99
TT
51722020-04-18 Tom Tromey <tom@tromey.com>
5173
5174 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5175 * value.c (value_fn_field): Update.
5176 * valops.c (find_function_in_inferior)
5177 (value_allocate_space_in_inferior): Update.
5178 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5179 Update.
5180 * tui/tui-source.c (tui_source_window::set_contents): Update.
5181 * symtab.c (lookup_global_or_static_symbol)
5182 (find_function_start_sal_1, skip_prologue_sal)
5183 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5184 * symmisc.c (dump_msymbols, dump_symtab_1)
5185 (maintenance_print_one_line_table): Update.
5186 * symfile.c (init_entry_point_info, section_is_mapped)
5187 (list_overlays_command, simple_read_overlay_table)
5188 (simple_overlay_update_1): Update.
5189 * stap-probe.c (handle_stap_probe): Update.
5190 * stabsread.c (dbx_init_float_type, define_symbol)
5191 (read_one_struct_field, read_enum_type, read_range_type): Update.
5192 * source.c (info_line_command): Update.
5193 * python/python.c (gdbpy_source_objfile_script)
5194 (gdbpy_execute_objfile_script): Update.
5195 * python/py-type.c (save_objfile_types): Update.
5196 * python/py-objfile.c (py_free_objfile): Update.
5197 * python/py-inferior.c (python_new_objfile): Update.
5198 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5199 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5200 (maintenance_check_psymtabs): Update.
5201 * printcmd.c (info_address_command): Update.
5202 * objfiles.h (struct objfile) <arch>: New method, from
5203 get_objfile_arch.
5204 (get_objfile_arch): Don't declare.
5205 * objfiles.c (get_objfile_arch): Remove.
5206 (filter_overlapping_sections): Update.
5207 * minsyms.c (msymbol_is_function): Update.
5208 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5209 (output_nondebug_symbol): Update.
5210 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5211 (mdebug_expand_psymtab): Update.
5212 * machoread.c (macho_add_oso_symfile): Update.
5213 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5214 Update.
5215 * linux-fork.c (checkpoint_command): Update.
5216 * linespec.c (convert_linespec_to_sals): Update.
5217 * jit.c (finalize_symtab): Update.
5218 * infrun.c (insert_exception_resume_from_probe): Update.
5219 * ia64-tdep.c (ia64_find_unwind_table): Update.
5220 * hppa-tdep.c (internalize_unwinds): Update.
5221 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5222 Update.
5223 * gcore.c (call_target_sbrk): Update.
5224 * elfread.c (record_minimal_symbol, elf_symtab_read)
5225 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5226 (elf_gnu_ifunc_resolve_by_got): Update.
5227 * dwarf2/read.c (create_addrmap_from_index)
5228 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5229 (read_debug_names_from_section)
5230 (process_psymtab_comp_unit_reader, add_partial_symbol)
5231 (add_partial_subprogram, process_full_comp_unit)
5232 (read_file_scope, read_func_scope, read_lexical_block_scope)
5233 (read_call_site_scope, dwarf2_ranges_read)
5234 (dwarf2_record_block_ranges, dwarf2_add_field)
5235 (mark_common_block_symbol_computed, read_tag_pointer_type)
5236 (read_tag_string_type, dwarf2_init_float_type)
5237 (dwarf2_init_complex_target_type, read_base_type)
5238 (partial_die_info::read, partial_die_info::read)
5239 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5240 (dwarf2_fetch_die_loc_sect_off): Update.
5241 * dwarf2/loc.c (dwarf2_find_location_expression)
5242 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5243 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5244 (dwarf2_loc_desc_get_symbol_read_needs)
5245 (locexpr_describe_location_piece, locexpr_describe_location_1)
5246 (loclist_describe_location): Update.
5247 * dwarf2/index-write.c (write_debug_names): Update.
5248 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5249 * dtrace-probe.c (dtrace_process_dof): Update.
5250 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5251 (process_one_symbol): Update.
5252 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5253 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5254 (coff_read_enum_type): Update.
5255 * cli/cli-cmds.c (edit_command, list_command): Update.
5256 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5257 * breakpoint.c (create_overlay_event_breakpoint)
5258 (create_longjmp_master_breakpoint)
5259 (create_std_terminate_master_breakpoint)
5260 (create_exception_master_breakpoint, get_sal_arch): Update.
5261 * block.c (block_gdbarch): Update.
5262 * annotate.c (annotate_source_line): Update.
5263
0743fc83
TT
52642020-04-17 Tom Tromey <tromey@adacore.com>
5265
5266 * auto-load.c (show_auto_load_cmd): Remove.
5267 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5268 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5269 (maintenance_print_arc_command): Remove.
5270 * tui/tui-win.c (tui_command): Remove.
5271 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5272 * tui/tui-layout.c (tui_layout_command): Remove.
5273 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5274 * python/python.c (user_set_python, user_show_python): Remove.
5275 (_initialize_python): Use add_basic_prefix_cmd,
5276 add_show_prefix_cmd.
5277 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5278 (install_gdb_commands): Use add_basic_prefix_cmd,
5279 add_show_prefix_cmd.
5280 (info_guile_command): Remove.
5281 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5282 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5283 add_show_prefix_cmd.
5284 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5285 Remove do_set and do_show parameters.
5286 * cli/cli-style.c (set_style, show_style): Remove.
5287 (_initialize_cli_style): Use add_basic_prefix_cmd,
5288 add_show_prefix_cmd.
5289 (cli_style_option::add_setshow_commands): Remove do_set and
5290 do_show parameters.
5291 (cli_style_option::add_setshow_commands): Use
5292 add_basic_prefix_cmd, add_show_prefix_cmd.
5293 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5294 (set_style_name): Remove.
5295 * cli/cli-dump.c (dump_command, append_command): Remove.
5296 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5297 (tekhex_dump_command, binary_dump_command)
5298 (binary_append_command): Remove.
5299 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5300 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5301 (init_w32_command_list): Remove; move into ...
5302 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5303 * valprint.c (set_print, show_print, set_print_raw)
5304 (show_print_raw): Remove.
5305 (_initialize_valprint): Use add_basic_prefix_cmd,
5306 add_show_prefix_cmd.
5307 * typeprint.c (set_print_type, show_print_type): Remove.
5308 (_initialize_typeprint): Use add_basic_prefix_cmd,
5309 add_show_prefix_cmd.
5310 * record.c (set_record_command, show_record_command): Remove.
5311 (_initialize_record): Use add_basic_prefix_cmd,
5312 add_show_prefix_cmd.
5313 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5314 add_show_prefix_cmd.
5315 (info_command, show_command, set_debug, show_debug): Remove.
5316 * top.h (set_history, show_history): Don't declare.
5317 * top.c (set_history, show_history): Remove.
5318 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5319 (unset_tdesc_cmd): Remove.
5320 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5321 add_show_prefix_cmd.
5322 * symtab.c (info_module_command): Remove.
5323 (_initialize_symtab): Use add_basic_prefix_cmd.
5324 * symfile.c (overlay_command): Remove.
5325 (_initialize_symfile): Use add_basic_prefix_cmd.
5326 * sparc64-tdep.c (info_adi_command): Remove.
5327 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5328 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5329 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5330 add_show_prefix_cmd.
5331 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5332 (_initialize_serial): Use add_basic_prefix_cmd,
5333 add_show_prefix_cmd.
5334 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5335 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5336 add_show_prefix_cmd.
5337 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5338 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5339 add_show_prefix_cmd.
5340 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5341 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5342 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5343 add_show_prefix_cmd.
5344 * remote.c (remote_command, set_remote_cmd): Remove.
5345 (_initialize_remote): Use add_basic_prefix_cmd.
5346 * record-full.c (set_record_full_command)
5347 (show_record_full_command): Remove.
5348 (_initialize_record_full): Use add_basic_prefix_cmd,
5349 add_show_prefix_cmd.
5350 * record-btrace.c (cmd_set_record_btrace)
5351 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5352 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5353 (cmd_show_record_btrace_pt): Remove.
5354 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5355 add_show_prefix_cmd.
5356 * ravenscar-thread.c (set_ravenscar_command)
5357 (show_ravenscar_command): Remove.
5358 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5359 add_show_prefix_cmd.
5360 * mips-tdep.c (show_mips_command, set_mips_command)
5361 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5362 add_show_prefix_cmd.
5363 * maint.c (maintenance_command, maintenance_info_command)
5364 (maintenance_check_command, maintenance_print_command)
5365 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5366 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5367 add_show_prefix_cmd.
5368 (show_per_command_cmd): Remove.
5369 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5370 Remove.
5371 (maintenance_show_test_settings_cmd): Remove.
5372 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5373 add_show_prefix_cmd.
5374 * maint-test-options.c (maintenance_test_options_command):
5375 Remove.
5376 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5377 * macrocmd.c (macro_command): Remove
5378 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5379 * language.c (set_check, show_check): Remove.
5380 (_initialize_language): Use add_basic_prefix_cmd,
5381 add_show_prefix_cmd.
5382 * infcmd.c (unset_command): Remove.
5383 (_initialize_infcmd): Use add_basic_prefix_cmd.
5384 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5385 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5386 add_show_prefix_cmd.
5387 * go32-nat.c (go32_info_dos_command): Remove.
5388 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5389 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5390 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5391 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5392 (_initialize_frame): Use add_basic_prefix_cmd,
5393 add_show_prefix_cmd.
5394 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5395 (_initialize_dcache): Use add_basic_prefix_cmd,
5396 add_show_prefix_cmd.
5397 * cp-support.c (maint_cplus_command): Remove.
5398 (_initialize_cp_support): Use add_basic_prefix_cmd.
5399 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5400 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5401 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5402 add_basic_prefix_cmd, add_show_prefix_cmd.
5403 * breakpoint.c (save_command): Remove.
5404 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5405 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5406 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5407 add_show_prefix_cmd.
5408 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5409 (set_ada_command, show_ada_command): Remove.
5410 (_initialize_ada_language): Use add_basic_prefix_cmd,
5411 add_show_prefix_cmd.
5412 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5413
3557f442
KR
54142020-04-16 Kamil Rytarowski <n54@gmx.com>
5415
5416 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5417 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5418
16197208
SM
54192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5420
5421 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5422 warning messages.
5423
00ac85d3
SM
54242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5425
5426 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5427 import table is not at beginning of .idata section.
5428
381ce63f
PA
54292020-04-16 Pedro Alves <palves@redhat.com>
5430
5431 * inferior.c (delete_inferior): Use delete operator directly
5432 instead of delete_program_space.
5433 * progspace.c (add_program_space): New, factored out from
5434 program_space::program_space.
5435 (remove_program_space): New, factored out from
5436 delete_program_space.
5437 (program_space::program_space): Remove intro comment. Rewrite.
5438 (program_space::~program_space): Remove intro comment. Call
5439 remove_program_space.
5440 (delete_program_space): Delete.
5441 * progspace.h (program_space::program_space): Make explicit. Move
5442 intro comment here, adjusted.
5443 (program_space::~program_space): Move intro comment here,
5444 adjusted.
5445 (delete_program_space): Remove.
5446
a010605f
TT
54472020-04-16 Tom Tromey <tromey@adacore.com>
5448
5449 * windows-nat.c (windows_nat::handle_access_violation): New
5450 function.
5451 * nat/windows-nat.h (handle_access_violation): Declare.
5452 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5453 windows-nat.c. Call handle_access_violation.
5454
efba5c23
TV
54552020-04-16 Tom de Vries <tdevries@suse.de>
5456
5457 PR symtab/25791
5458 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5459 CUs without psymtab.
5460
97ed802d
KB
54612020-04-16 Kevin Buettner <kevinb@redhat.com>
5462
5463 * python/python.c (do_start_initialization): Don't call
5464 PyEval_InitThreads for Python 3.9 and beyond.
5465
c7d64809
KR
54662020-04-15 Kamil Rytarowski <n54@gmx.com>
5467
5468 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5469 thread functions.
5470 (obsd_nat_target::wait): Likewise.
5471
ce127a96
TT
54722020-04-15 Tom Tromey <tromey@adacore.com>
5473
5474 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5475 (DEBUG_EXCEPT): Use debug_printf.
5476
99f1bc6a
AB
54772020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5478
5479 * completer.c (class completion_tracker::completion_hash_entry)
5480 <hash_name>: New member function.
5481 (completion_tracker::discard_completions): New callback to hash a
5482 completion_hash_entry, pass this to htab_create_alloc.
5483
a0e9b532
JT
54842016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5485
5486 * windows-nat.c (windows_make_so): Warn rather than stopping with
5487 an error if realpath() fails.
5488
06ca5dd4
KR
54892020-04-14 Kamil Rytarowski <n54@gmx.com>
5490
5491 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5492 (nbsd_nat_target::info_proc): Add do_status.
5493
194d088f
TV
54942020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5495 Tom de Vries <tdevries@suse.de>
5496
5497 PR symtab/25718
5498 * psympriv.h (struct partial_symtab::read_symtab)
5499 (struct partial_symtab::expand_psymtab)
5500 (struct partial_symtab::read_dependencies): Update comments.
5501 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5502 read_symtab for includer.
5503 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5504 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5505 (struct dwarf2_include_psymtab::m_readin): Remove.
5506 (struct dwarf2_include_psymtab::includer): New member function.
5507 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5508
c1a66c06
TV
55092020-04-14 Tom de Vries <tdevries@suse.de>
5510
5511 PR symtab/25720
5512 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5513 with NULL symbol_matcher and lookup_name.
5514 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5515 and lookup_name.
5516 * dwarf2/read.c (dw2_expand_symtabs_matching)
5517 (dw2_debug_names_expand_symtabs_matching): Same.
5518 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5519 Make lookup_name a pointer. Update comment.
5520 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5521 lookup_name being a pointer.
5522 * symfile.c (expand_symtabs_matching): Same.
5523 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5524 * linespec.c (iterate_over_all_matching_symtabs): Same.
5525
400b5eca
TT
55262020-04-13 Tom Tromey <tom@tromey.com>
5527
5528 * run-on-main-thread.c: Update include.
5529 * unittests/main-thread-selftests.c: Update include.
5530 * tui/tui-win.c: Update include.
5531 * tui/tui-io.c: Update include.
5532 * tui/tui-interp.c: Update include.
5533 * tui/tui-hooks.c: Update include.
5534 * top.h: Update include.
5535 * top.c: Update include.
5536 * ser-base.c: Update include.
5537 * remote.c: Update include.
5538 * remote-notif.c: Update include.
5539 * remote-fileio.c: Update include.
5540 * record-full.c: Update include.
5541 * record-btrace.c: Update include.
5542 * python/python.c: Update include.
5543 * posix-hdep.c: Update include.
5544 * mingw-hdep.c: Update include.
5545 * mi/mi-main.c: Update include.
5546 * mi/mi-interp.c: Update include.
5547 * main.c: Update include.
5548 * linux-nat.c: Update include.
5549 * interps.c: Update include.
5550 * infrun.c: Update include.
5551 * inf-loop.c: Update include.
5552 * event-top.c: Update include.
5553 * event-loop.c: Move to ../gdbsupport/.
5554 * event-loop.h: Move to ../gdbsupport/.
5555 * async-event.h: Update include.
5556 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5557
93b54c8e
TT
55582020-04-13 Tom Tromey <tom@tromey.com>
5559
5560 * tui/tui-win.c: Include async-event.h.
5561 * remote.c: Include async-event.h.
5562 * remote-notif.c: Include async-event.h.
5563 * record-full.c: Include async-event.h.
5564 * record-btrace.c: Include async-event.h.
5565 * infrun.c: Include async-event.h.
5566 * event-top.c: Include async-event.h.
5567 * event-loop.h: Move some declarations to async-event.h.
5568 * event-loop.c: Don't include ser-event.h or top.h. Move some
5569 code to async-event.c.
5570 * async-event.h: New file.
5571 * async-event.c: New file.
5572 * Makefile.in (COMMON_SFILES): Add async-event.c.
5573 (HFILES_NO_SRCDIR): Add async-event.h.
5574
c1cd3163
TT
55752020-04-13 Tom Tromey <tom@tromey.com>
5576
5577 * utils.c (flush_streams): New function.
5578 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5579
29f2bf4f
TT
55802020-04-13 Tom Tromey <tom@tromey.com>
5581
5582 * event-loop.c (handle_file_event): Use warning, not
5583 printf_unfiltered.
5584
98029d02
TT
55852020-04-13 Tom Tromey <tom@tromey.com>
5586
5587 * event-loop.c: Include <chrono>.
5588
06cc9596
TT
55892020-04-13 Tom Tromey <tom@tromey.com>
5590
5591 * gdb_select.h: Move to ../gdbsupport/.
5592 * event-loop.c: Update include path.
5593 * top.c: Update include path.
5594 * ser-base.c: Update include path.
5595 * ui-file.c: Update include path.
5596 * ser-tcp.c: Update include path.
5597 * guile/scm-ports.c: Update include path.
5598 * posix-hdep.c: Update include path.
5599 * ser-unix.c: Update include path.
5600 * gdb_usleep.c: Update include path.
5601 * mingw-hdep.c: Update include path.
5602 * inflow.c: Update include path.
5603 * infrun.c: Update include path.
5604 * event-top.c: Update include path.
5605
8ae8e197
TT
56062020-04-13 Tom Tromey <tom@tromey.com>
5607
5608 * configure: Rebuild.
5609 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5610
58cf28e8
TT
56112020-04-13 Tom Tromey <tom@tromey.com>
5612
5613 * event-loop.h (start_event_loop): Don't declare.
5614 * event-loop.c (start_event_loop): Move...
5615 * main.c (start_event_loop): ...here. Now static.
5616
b7f999ae
SDJ
56172020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5618
5619 * MAINTAINERS: Update my email address.
5620
1085dfd4
KR
56212020-04-12 Kamil Rytarowski <n54@gmx.com>
5622
5623 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5624 IP_ALL.
5625
49d1d1f5
KR
56262020-04-12 Kamil Rytarowski <n54@gmx.com>
5627
5628 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5629 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5630
b4848d2a
KR
56312020-04-12 Kamil Rytarowski <n54@gmx.com>
5632
5633 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5634 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5635
51c133d5
KR
56362020-04-12 Kamil Rytarowski <n54@gmx.com>
5637
5638 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5639
54b8cbd0
KR
56402020-04-11 Kamil Rytarowski <n54@gmx.com>
5641
5642 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5643 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5644 (nbsd_nat_target::info_proc): New functions.
5645 * nbsd-nat.c (kinfo_get_vmmap): New function.
5646 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5647 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5648 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5649 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5650 functions.
5651 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5652 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5653 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5654 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5655 (KINFO_VME_FLAG_GROWS_DOWN): New.
5656
cf83625d
AS
56572020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5658
5659 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5660 bit shift.
5661
0c4311ab
TT
56622020-04-10 Tom Tromey <tromey@adacore.com>
5663
5664 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5665
3e65b3e9
TT
56662020-04-10 Tom Tromey <tromey@adacore.com>
5667
5668 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5669 separate debug files.
5670
13302e95
HD
56712020-04-10 Hannes Domani <ssbssa@yahoo.de>
5672
5673 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5674 Move to...
5675 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5676 ... here.
5677 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5678 Check for STATUS_WX86_BREAKPOINT.
5679 (windows_nat_target::wait): Same.
5680
bdfc1e8a
TV
56812020-04-10 Tom de Vries <tdevries@suse.de>
5682
5683 PR cli/25808
5684 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5685
f4460aec
SM
56862020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5687
5688 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5689 (Write After Approval): Remove Tom de Vries.
5690
a25198bb
BE
56912020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5692
5693 revert partially:
5694 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5695
aac66a4c
SM
5696 * buildsym.c (record_line): Fix undefined behavior and preserve
5697 lines at eof.
a25198bb 5698
206c98a6
KR
56992020-04-09 Kamil Rytarowski <n54@gmx.com>
5700
5701 * auxv.h (svr4_auxv_parse): New.
5702 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5703 and generic_auxv_parse.
5704 (svr4_auxv_parse): Add.
5705 * obsd-tdep.c: Include "auxv.h".
5706 (obsd_auxv_parse): Remove.
5707 (obsd_init_abi): Remove comment.
5708 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5709 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5710 * nbsd-tdep.c: Include "auxv.h".
5711 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5712
71fbdbaf
TT
57132020-04-08 Tom Tromey <tromey@adacore.com>
5714
5715 * nat/windows-nat.h (last_wait_event): Don't declare.
5716 (wait_for_debug_event): Update comment.
5717 * nat/windows-nat.c (last_wait_event): Now static.
5718
2c1d95e8
TT
57192020-04-08 Tom Tromey <tromey@adacore.com>
5720
5721 * windows-nat.c (wait_for_debug_event): Move to
5722 nat/windows-nat.c.
5723 * nat/windows-nat.h (wait_for_debug_event): Declare.
5724 * nat/windows-nat.c (wait_for_debug_event): Move from
5725 windows-nat.c. No longer static.
5726
d2977bc4
TT
57272020-04-08 Tom Tromey <tromey@adacore.com>
5728
5729 * windows-nat.c (get_windows_debug_event): Use
5730 fetch_pending_stop.
5731 * nat/windows-nat.h (fetch_pending_stop): Declare.
5732 * nat/windows-nat.c (fetch_pending_stop): New function.
5733
e758e19c
TT
57342020-04-08 Tom Tromey <tromey@adacore.com>
5735
5736 * windows-nat.c (windows_continue): Use matching_pending_stop and
5737 continue_last_debug_event.
5738 * nat/windows-nat.h (matching_pending_stop)
5739 (continue_last_debug_event): Declare.
5740 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5741 (matching_pending_stop, continue_last_debug_event): New
5742 functions.
5743
8d30e395
TT
57442020-04-08 Tom Tromey <tromey@adacore.com>
5745
5746 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5747 (handle_exception_result): Move to nat/windows-nat.h.
5748 (DEBUG_EXCEPTION_SIMPLE): Remove.
5749 (windows_nat::handle_ms_vc_exception): New function.
5750 (handle_exception): Move to nat/windows-nat.c.
5751 (get_windows_debug_event): Update.
5752 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5753 nat/windows-nat.c.
5754 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5755 (handle_exception_result): Move from windows-nat.c.
5756 (handle_exception): Declare.
5757 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5758 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5759 windows-nat.c.
5760
29de418d
TT
57612020-04-08 Tom Tromey <tromey@adacore.com>
5762
5763 * windows-nat.c (exception_count, event_count): Remove.
5764 (handle_exception, get_windows_debug_event)
5765 (do_initial_windows_stuff): Update.
5766
a816ba18
TT
57672020-04-08 Tom Tromey <tromey@adacore.com>
5768
5769 * windows-nat.c (windows_nat::handle_load_dll)
5770 (windows_nat::handle_unload_dll): Rename. No longer static.
5771 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5772 Declare.
5773
a00caa12
TT
57742020-04-08 Tom Tromey <tromey@adacore.com>
5775
5776 * complaints.h (stop_whining): Declare at top-level.
5777 (complaint): Don't declare stop_whining.
5778
d41b524f
TT
57792020-04-08 Tom Tromey <tromey@adacore.com>
5780
5781 * windows-nat.c (windows_nat::handle_output_debug_string):
5782 Rename. No longer static.
5783 * nat/windows-nat.h (handle_output_debug_string): Declare.
5784
3c76026d
TT
57852020-04-08 Tom Tromey <tromey@adacore.com>
5786
5787 * windows-nat.c (current_process_handle, current_process_id)
5788 (main_thread_id, last_sig, current_event, last_wait_event)
5789 (current_windows_thread, desired_stop_thread_id, pending_stops)
5790 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5791 (display_selectors, fake_create_process)
5792 (get_windows_debug_event): Update.
5793 * nat/windows-nat.h (current_process_handle, current_process_id)
5794 (main_thread_id, last_sig, current_event, last_wait_event)
5795 (current_windows_thread, desired_stop_thread_id, pending_stops)
5796 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5797 * nat/windows-nat.c (current_process_handle, current_process_id)
5798 (main_thread_id, last_sig, current_event, last_wait_event)
5799 (current_windows_thread, desired_stop_thread_id, pending_stops)
5800 (siginfo_er): New globals. Move from windows-nat.c.
5801
9d8679cc
TT
58022020-04-08 Tom Tromey <tromey@adacore.com>
5803
5804 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5805 (handle_load_dll): Update.
5806 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5807
28688adf
TT
58082020-04-08 Tom Tromey <tromey@adacore.com>
5809
5810 * windows-nat.c (enum thread_disposition_type): Move to
5811 nat/windows-nat.h.
5812 (windows_nat::thread_rec): Rename from thread_rec. No longer
5813 static.
5814 (windows_add_thread, windows_nat_target::fetch_registers)
5815 (windows_nat_target::store_registers, handle_exception)
5816 (windows_nat_target::resume, get_windows_debug_event)
5817 (windows_nat_target::get_tib_address)
5818 (windows_nat_target::thread_name)
5819 (windows_nat_target::thread_alive): Update.
5820 * nat/windows-nat.h (enum thread_disposition_type): Move from
5821 windows-nat.c.
5822 (thread_rec): Declare.
5823
4834dad0
TT
58242020-04-08 Tom Tromey <tromey@adacore.com>
5825
5826 * windows-nat.c: Add "using namespace".
5827 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5828 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5829
65bafd5b
TT
58302020-04-08 Tom Tromey <tromey@adacore.com>
5831
5832 * nat/windows-nat.h (struct windows_thread_info): Declare
5833 destructor.
5834 * nat/windows-nat.c (~windows_thread_info): New.
5835
0a4afda3
TT
58362020-04-08 Tom Tromey <tromey@adacore.com>
5837
5838 PR gdb/22992
5839 * windows-nat.c (current_event): Update comment.
5840 (last_wait_event, desired_stop_thread_id): New globals.
5841 (struct pending_stop): New.
5842 (pending_stops): New global.
5843 (windows_nat_target) <stopped_by_sw_breakpoint>
5844 <supports_stopped_by_sw_breakpoint>: New methods.
5845 (windows_fetch_one_register): Add assertions. Adjust PC.
5846 (windows_continue): Handle pending stops. Suspend other threads
5847 when stepping. Use last_wait_event
5848 (wait_for_debug_event): New function.
5849 (get_windows_debug_event): Use wait_for_debug_event. Handle
5850 pending stops. Queue spurious stops.
5851 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5852 (windows_nat_target::kill): Use wait_for_debug_event.
5853 * nat/windows-nat.h (struct windows_thread_info)
5854 <stopped_at_software_breakpoint>: New field.
5855 * nat/windows-nat.c (windows_thread_info::resume): Clear
5856 stopped_at_software_breakpoint.
5857
8e61ebec
TT
58582020-04-08 Tom Tromey <tromey@adacore.com>
5859
5860 * windows-nat.c (enum thread_disposition_type): New.
5861 (thread_rec): Replace "get_context" parameter with "disposition";
5862 change type.
5863 (windows_add_thread, windows_nat_target::fetch_registers)
5864 (windows_nat_target::store_registers, handle_exception)
5865 (windows_nat_target::resume, get_windows_debug_event)
5866 (windows_nat_target::get_tib_address)
5867 (windows_nat_target::thread_name)
5868 (windows_nat_target::thread_alive): Update.
5869
98a03287
TT
58702020-04-08 Tom Tromey <tromey@adacore.com>
5871
5872 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5873 (windows_continue): Use windows_continue::resume.
5874 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5875 resume>: Declare new methods.
5876 * nat/windows-nat.c: New file.
5877 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5878
7c7411bc
TT
58792020-04-08 Tom Tromey <tromey@adacore.com>
5880
5881 * windows-nat.c (windows_add_thread, windows_delete_thread)
5882 (windows_nat_target::fetch_registers)
5883 (windows_nat_target::store_registers, fake_create_process)
5884 (windows_nat_target::resume, windows_nat_target::resume)
5885 (get_windows_debug_event, windows_nat_target::wait)
5886 (windows_nat_target::pid_to_str)
5887 (windows_nat_target::get_tib_address)
5888 (windows_nat_target::get_ada_task_ptid)
5889 (windows_nat_target::thread_name)
5890 (windows_nat_target::thread_alive): Use lwp, not tid.
5891
2950fdf7
TT
58922020-04-08 Tom Tromey <tromey@adacore.com>
5893
5894 * windows-nat.c (handle_exception)
5895 (windows_nat_target::thread_name): Update.
5896 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5897 <name>: Now unique_xmalloc_ptr.
5898
62fe396b
TT
58992020-04-08 Tom Tromey <tromey@adacore.com>
5900
5901 * windows-nat.c (thread_rec)
5902 (windows_nat_target::fetch_registers): Update.
5903 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5904 Update comment.
5905 <debug_registers_changed, reload_context>: Now bool.
5906
e9534bd2
TT
59072020-04-08 Tom Tromey <tromey@adacore.com>
5908
5909 * windows-nat.c (windows_add_thread): Use new.
5910 (windows_init_thread_list, windows_delete_thread): Use delete.
5911 (get_windows_debug_event): Update.
5912 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5913 destructor, and initializers.
5914
ae1f8880
TT
59152020-04-08 Tom Tromey <tromey@adacore.com>
5916
5917 * windows-nat.c (struct windows_thread_info): Remove.
5918 * nat/windows-nat.h: New file.
5919
55a1e039
TT
59202020-04-08 Tom Tromey <tromey@adacore.com>
5921
5922 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5923 (thread_rec, windows_add_thread, windows_delete_thread)
5924 (windows_continue): Update.
5925
93366324
TT
59262020-04-08 Tom Tromey <tromey@adacore.com>
5927
5928 * windows-nat.c (struct windows_thread_info): Remove typedef.
5929 (thread_head): Remove.
5930 (thread_list): New global.
5931 (thread_rec, windows_add_thread, windows_init_thread_list)
5932 (windows_delete_thread, windows_continue): Update.
5933
0f2265e2
SM
59342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5935
5936 * windows-tdep.h (windows_init_abi): Add comment.
5937 (cygwin_init_abi): New declaration.
5938 * windows-tdep.c: Split signal enumeration in two, one for
5939 Windows and one for Cygwin.
5940 (windows_gdb_signal_to_target): Only deal with signal of the
5941 Windows OS ABI.
5942 (cygwin_gdb_signal_to_target): New function.
5943 (windows_init_abi): Rename to windows_init_abi_common, don't set
5944 gdb_signal_to_target gdbarch method. Add new new function with
5945 this name.
5946 (cygwin_init_abi): New function.
5947 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5948 comment. Don't call windows_init_abi.
5949 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5950 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5951 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5952 i386_windows_init_abi_common, don't call windows_init_abi. Add
5953 a new function of this name.
5954 (i386_cygwin_init_abi): New function.
5955 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5956 OS ABI Cygwin.
5957
3810f182
SM
59582020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5959
5960 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5961 parameter.c.
5962 (dwarf2_read_gdb_index): Update.
5963
063f8e80
KR
59642020-04-07 Kamil Rytarowski <n54@gmx.com>
5965
5966 * nbsd-tdep.c: Include "objfiles.h".
5967 (nbsd_skip_solib_resolver): New.
5968 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5969
85a9510c 59702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5971
5972 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5973 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5974 with DW_LLE_base_addressx are being emitted in DWARFv5.
5975 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5976 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5977 unsigned integer.
5978
9fc3eaae 59792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5980
5981 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5982 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5983 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5984 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5985 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5986 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5987 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5988
5989
41144253 59902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5991
5992 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5993 (read_loclist_index): New function definition.
5994 (lookup_loclist_base): New function definition.
5995 (read_loclist_header): New function definition.
5996 (dwarf2_cu): Add loclist_base and loclist_header field.
5997 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5998 (read_full_die_1): Read the value of DW_AT_loclists_base.
5999 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6000 (read_attribute_value): Handle DW_FORM_loclistx.
6001 (skip_one_die): Handle DW_FORM_loclistx.
6002 (loclist_header): New structure declaration.
6003 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6004
9f4e76a4
SM
60052020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6006
6007 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6008 constructor. Remove `addr` parameter from other constructor and
6009 add `per_cu` parameter.
6010 * dwarf2/read.c (create_partial_symtab): Update.
6011
25c11aca
TV
60122020-04-07 Tom de Vries <tdevries@suse.de>
6013
6014 PR symtab/25796
6015 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6016 (partial_die_info::fixup): Inherit has_const_value.
6017
5707e24b
TV
60182020-04-07 Tom de Vries <tdevries@suse.de>
6019
6020 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6021 symbols without address.
6022
05f00e22
KR
60232020-04-06 Kamil Rytarowski <n54@gmx.com>
6024
6025 * nbsd-nat.h (struct thread_info): Add forward declaration.
6026 (nbsd_nat_target::thread_alive): Add.
6027 (nbsd_nat_target::thread_name): Likewise.
6028 (nbsd_nat_target::update_thread_list): Likewise.
6029 (update_thread_list::post_attach): Likewise.
6030 (post_attach::pid_to_str): Likewise.
6031 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6032 (nbsd_thread_lister): Add.
6033 (nbsd_nat_target::thread_alive): Likewise.
6034 (nbsd_nat_target::thread_name): Likewise.
6035 (nbsd_add_threads): Likewise.
6036 (update_thread_list::post_attach): Likewise.
6037 (nbsd_nat_target::update_thread_list): Likewise.
6038 (post_attach::pid_to_str): Likewise.
6039
6ee448cc
TT
60402020-04-06 Tom Tromey <tromey@adacore.com>
6041
6042 * ada-valprint.c (print_variant_part): Extract the variant field.
6043 (print_field_values): Use the field as the outer value when
6044 recursing.
6045
dea34e8c
TT
60462020-04-06 Tom Tromey <tromey@adacore.com>
6047
6048 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6049 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6050 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6051 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6052 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6053
93689ce9
TT
60542020-04-06 Tom Tromey <tromey@adacore.com>
6055
6056 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6057 TYPE_CODE_ERROR.
6058
79743962
KR
60592020-04-06 Kamil Rytarowski <n54@gmx.com>
6060
6061 * nbsd-tdep.c: Include "gdbarch.h".
6062 Define enum with NetBSD signal numbers.
6063 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6064 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6065 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6066 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6067 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6068 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6069 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6070 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6071 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6072 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6073 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6074 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6075
9e7c9a03
HD
60762020-04-03 Hannes Domani <ssbssa@yahoo.de>
6077
6078 PR gdb/25325
6079 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6080
d9e49b61
TT
60812020-04-03 Tom Tromey <tromey@adacore.com>
6082
6083 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6084 Read constant block.
6085
e0fc5c3f
SM
60862020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6087
6088 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6089 (gdb_bfd_get_full_section_contents): New declaration.
6090 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6091 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6092 gdb_bfd_get_full_section_contents.
6093
e2ff18a0
SM
60942020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6095
6096 * exec.c (build_section_table): Replace internal_error with
6097 gdb_assert.
6098 (section_table_xfer_memory_partial): Likewise.
6099 * mdebugread.c (parse_partial_symbols): Likewise.
6100 * psymtab.c (lookup_partial_symbol): Likewise.
6101 * utils.c (wrap_here): Likewise.
6102
0830d301
TT
61032020-04-02 Tom Tromey <tromey@adacore.com>
6104
6105 * f-lang.c (build_fortran_types): Use arch_type to initialize
6106 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6107
e7da7f8f
TT
61082020-04-02 Tom Tromey <tromey@adacore.com>
6109
6110 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6111 of attributes.
6112
c90d28ac
AB
61132020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6114 Bernd Edlinger <bernd.edlinger@hotmail.de>
6115 Tom Tromey <tromey@adacore.com>
6116
6117 * buildsym.c (buildsym_compunit::record_line): Remove
6118 deduplication code.
6119
1aa98955
TV
61202020-04-02 Tom de Vries <tdevries@suse.de>
6121
6122 PR ada/24671
6123 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6124
d3214198
TV
61252020-04-02 Tom de Vries <tdevries@suse.de>
6126
6127 * dwarf2/read.c (dwarf2_gdb_index_functions,
6128 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6129 NULL.
6130 * psymtab.c (psym_lookup_global_symbol_language): New function.
6131 (psym_functions): Init psym_lookup_global_symbol_language with
6132 psym_lookup_global_symbol_language.
6133 * symfile-debug.c (debug_sym_quick_functions): Init
6134 lookup_global_symbol_language with NULL.
6135 * symfile.c (set_initial_language): Remove fixme comment.
6136 * symfile.h (struct quick_symbol_functions): Add
6137 lookup_global_symbol_language.
6138 * symtab.c (find_quick_global_symbol_language): New function.
6139 (find_main_name): Use find_quick_global_symbol_language.
6140
2836752f
SM
61412020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6144
64dc2d4b
BE
61452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6146
6147 * buildsym.c (record_line): Fix undefined behavior and preserve
6148 lines at eof.
6149
bbe3dc41
BE
61502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6151
6152 * buildsym.c (record_line): Fix the resizing condition.
6153
6b4a335b
TT
61542020-04-01 Tom Tromey <tom@tromey.com>
6155
6156 * value.h (value_literal_complex): Add comment.
6157 * valops.c (value_literal_complex): Refer to value.h.
6158
3638a098
TT
61592020-04-01 Tom Tromey <tom@tromey.com>
6160
6161 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6162 (scalar_type): New rule, from typebase.
6163 (typebase): Use scalar_type. Recognize complex types.
6164 (field_name): Handle FLOAT_KEYWORD.
6165 (ident_tokens): Add _Complex and __complex__.
6166
c34e8714
TT
61672020-04-01 Tom Tromey <tom@tromey.com>
6168
6169 PR exp/25299:
6170 * valarith.c (promotion_type, complex_binop): New functions.
6171 (scalar_binop): Handle complex numbers. Use promotion_type.
6172 (value_pos, value_neg, value_complement): Handle complex numbers.
6173
fa649bb7
TT
61742020-04-01 Tom Tromey <tom@tromey.com>
6175
6176 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6177 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6178 (parse_number): Handle complex numbers.
6179
981c08ce
TT
61802020-04-01 Tom Tromey <tom@tromey.com>
6181
6182 * c-valprint.c (c_decorations): Change complex suffix to "i".
6183
4c99290d
TT
61842020-04-01 Tom Tromey <tom@tromey.com>
6185
6186 * valprint.c (generic_value_print_complex): Use accessors.
6187 * value.h (value_real_part, value_imaginary_part): Declare.
6188 * valops.c (value_real_part, value_imaginary_part): New
6189 functions.
6190 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6191
5b930b45
TT
61922020-04-01 Tom Tromey <tom@tromey.com>
6193
6194 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6195 (read_range_type): Update.
6196 * mdebugread.c (basic_type): Update.
6197 * go-lang.c (build_go_types): Use init_complex_type.
6198 * gdbtypes.h (struct main_type) <complex_type>: New member.
6199 (init_complex_type): Update.
6200 (arch_complex_type): Don't declare.
6201 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6202 Make name if none given. Use alloc_type_copy. Look for cached
6203 complex type.
6204 (arch_complex_type): Remove.
6205 (gdbtypes_post_init): Use init_complex_type.
6206 * f-lang.c (build_fortran_types): Use init_complex_type.
6207 * dwarf2/read.c (read_base_type): Update.
6208 * d-lang.c (build_d_types): Use init_complex_type.
6209 * ctfread.c (read_base_type): Update.
6210
53cccef1
TBA
62112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6212
6213 * infrun.c (stop_all_threads): Update assertion, plus when
6214 stopping threads, take into account that we might be trying
6215 to stop an all-stop target.
6216 (stop_waiting): Call 'stop_all_threads' if there exists a
6217 non-stop target.
6218
a0714d30
TBA
62192020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6220
6221 * target.h (exists_non_stop_target): New function declaration.
6222 * target.c (exists_non_stop_target): New function.
6223
60e22c1e
HD
62242020-04-01 Hannes Domani <ssbssa@yahoo.de>
6225
6226 PR gdb/24789
6227 * eval.c (is_integral_or_integral_reference): New function.
6228 (evaluate_subexp_standard): Allow integer references in
6229 pointer arithmetic.
6230
e139a727
TBA
62312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6232
6233 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6234 check for no ptid in the stop reply when the target is non-stop.
6235
e0802d59
TT
62362020-04-01 Tom Tromey <tromey@adacore.com>
6237
6238 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6239 "name" parameter to rvalue reference. Initialize m_name_holder.
6240 <lookup_name_info>: New overloads.
6241 <name>: Return gdb::string_view.
6242 <c_str>: New method.
6243 <make_ignore_params>: Update.
6244 <search_name_hash>: Update.
6245 <language_lookup_name>: Return const char *.
6246 <m_name>: Change type.
6247 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6248 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6249 (lookup_name_info::match_any): Update.
6250 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6251 Update.
6252 * minsyms.c (linkage_name_str): Update.
6253 * language.c (default_symbol_name_matcher): Update.
6254 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6255 Update.
6256 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6257 (ada_lookup_name_info::ada_lookup_name_info): Update.
6258 (literal_symbol_name_matcher): Update.
6259
8c072cb6
TT
62602020-04-01 Tom Tromey <tromey@adacore.com>
6261
6262 * psymtab.c (psymtab_search_name): Remove function.
6263 (psym_lookup_symbol): Create search name and lookup name here.
6264 (lookup_partial_symbol): Remove "name" parameter; add
6265 lookup_name.
6266 (psym_expand_symtabs_for_function): Update.
6267
6f29a534
TT
62682020-03-31 Joel Jones <joelkevinjones@gmail.com>
6269
6270 PR tui/25597:
6271 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6272
af62665e
TT
62732020-03-31 Tom Tromey <tromey@adacore.com>
6274
6275 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6276 memcpy.
6277
d1a89da5
NC
62782020-03-30 Nelson Chu <nelson.chu@sifive.com>
6279
6280 * features/riscv/32bit-csr.xml: Regenerated.
6281 * features/riscv/64bit-csr.xml: Regenerated.
6282
d8af9068
TT
62832020-03-30 Tom Tromey <tromey@adacore.com>
6284
6285 * ada-valprint.c (print_variant_part): Update.
6286 * ada-lang.h (ada_which_variant_applies): Update.
6287 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6288 outer_valaddr parameters; replace with "outer" value parameter.
6289 (to_fixed_variant_branch_type): Update.
6290
227c0bf4
PFC
62912020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6292
6293 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6294 <list>. Remove inclusion of observable.h.
6295 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6296 (struct arch_lwp_info): New struct.
6297 (class ppc_linux_dreg_interface): New class.
6298 (struct ppc_linux_process_info): New struct.
6299 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6300 <low_new_clone, low_forget_process, low_prepare_to_resume>
6301 <copy_thread_dreg_state, mark_thread_stale>
6302 <mark_debug_registers_changed, register_hw_breakpoint>
6303 <clear_hw_breakpoint, register_wp, clear_wp>
6304 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6305 <num_memory_accesses, get_trigger_type>
6306 <create_watchpoint_request, hwdebug_point_cmp>
6307 <init_arch_lwp_info, get_arch_lwp_info>
6308 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6309 methods.
6310 <struct ptid_hash>: New inner struct.
6311 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6312 members.
6313 (saved_dabr_value, hwdebug_info, max_slots_number)
6314 (struct hw_break_tuple, struct thread_points, ppc_threads)
6315 (have_ptrace_hwdebug_interface)
6316 (hwdebug_find_thread_points_by_tid)
6317 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6318 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6319 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6320 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6321 use m_dreg_interface.
6322 (hwdebug_point_cmp): Change to...
6323 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6324 reference arguments instead of pointers.
6325 (ppc_linux_nat_target::ranged_break_num_registers): Use
6326 m_dreg_interface.
6327 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6328 m_dreg_interface. Call register_hw_breakpoint.
6329 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6330 m_dreg_interface. Call clear_hw_breakpoint.
6331 (get_trigger_type): Change to...
6332 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6333 comment.
6334 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6335 use m_dreg_interface. Call register_hw_breakpoint.
6336 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6337 use m_dreg_interface. Call clear_hw_breakpoint.
6338 (can_use_watchpoint_cond_accel): Change to...
6339 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6340 method. Update comment, use m_dreg_interface and
6341 m_process_info.
6342 (calculate_dvc): Change to...
6343 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6344 m_dreg_interface.
6345 (num_memory_accesses): Change to...
6346 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6347 (check_condition): Change to...
6348 (ppc_linux_nat_target::check_condition): ...this method.
6349 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6350 comment, use m_dreg_interface.
6351 (create_watchpoint_request): Change to...
6352 (ppc_linux_nat_target::create_watchpoint_request): ...this
6353 method. Use m_dreg_interface.
6354 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6355 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6356 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6357 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6358 (ppc_linux_nat_target::low_forget_process)
6359 (ppc_linux_nat_target::low_new_fork)
6360 (ppc_linux_nat_target::low_new_clone)
6361 (ppc_linux_nat_target::low_delete_thread)
6362 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6363 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6364 only call mark_thread_stale.
6365 (ppc_linux_thread_exit): Remove.
6366 (ppc_linux_nat_target::stopped_data_address): Change to...
6367 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6368 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6369 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6370 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6371 comment. Call low_stopped_data_address.
6372 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6373 m_dreg_interface.
6374 (ppc_linux_nat_target::masked_watch_num_registers): Use
6375 m_dreg_interface.
6376 (ppc_linux_nat_target::copy_thread_dreg_state)
6377 (ppc_linux_nat_target::mark_thread_stale)
6378 (ppc_linux_nat_target::mark_debug_registers_changed)
6379 (ppc_linux_nat_target::register_hw_breakpoint)
6380 (ppc_linux_nat_target::clear_hw_breakpoint)
6381 (ppc_linux_nat_target::register_wp)
6382 (ppc_linux_nat_target::clear_wp)
6383 (ppc_linux_nat_target::init_arch_lwp_info)
6384 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6385 (_initialize_ppc_linux_nat): Remove observer callback.
6386
4db10d8f
PFC
63872020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6388
6389 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6390 (ppc_linux_nat_target::auxv_parse)
6391 (ppc_linux_nat_target::read_description)
6392 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6393 Move up.
6394
1310c1b0
PFC
63952020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6396
6397 * linux-nat.h (low_new_clone): New method.
6398 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6399
69b037c3
SM
64002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6401
6402 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6403 (dbx_expand_psymtab): ... this.
6404 (start_psymtab): Update.
6405 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6406 (mdebug_expand_psymtab): ... this.
6407 (parse_partial_symbols): Update.
6408 (new_psymtab): Update.
6409 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6410 (xcoff_expand_psymtab): ... this.
6411 (xcoff_start_psymtab): Update.
6412
48993951
SM
64132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6414
6415 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6416 <expand_dependencies>: ... this.
6417 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6418 (partial_symtab::expand_dependencies): ... this.
6419 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6420 Update.
6421 (dwarf2_psymtab::expand_psymtab): Update.
6422 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6423 * mdebugread.c (psymtab_to_symtab_1): Update.
6424 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6425
3ad83046
SM
64262020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6427
6428 * psympriv.h (discard_psymtab): Remove.
6429 * dbxread.c (dbx_end_psymtab): Update.
6430 * xcoffread.c (xcoff_end_psymtab): Update.
6431
4d1b9ab6
TT
64322020-03-28 Tom Tromey <tom@tromey.com>
6433
6434 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6435 comment.
6436
f1749218
TT
64372020-03-28 Tom Tromey <tom@tromey.com>
6438
6439 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6440
ebea7626
HD
64412020-03-27 Hannes Domani <ssbssa@yahoo.de>
6442
6443 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6444
a879b4d5
JB
64452020-03-26 John Baldwin <jhb@FreeBSD.org>
6446
6447 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6448
0826b30a
TT
64492020-03-26 Tom Tromey <tom@tromey.com>
6450
6451 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6452 (mark_common_block_symbol_computed, read_tag_string_type)
6453 (attr_to_dynamic_prop, read_subrange_type): Update.
6454 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6455 to be methods on struct attribute.
6456 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6457 (read_call_site_scope, partial_die_info::read)
6458 (partial_die_info::read, lookup_die_type, follow_die_ref):
6459 Update.
6460 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6461 from dwarf2_get_ref_die_offset.
6462 (attribute::constant_value): New method, from
6463 dwarf2_get_attr_constant_value.
6464 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6465 Declare method.
6466 <constant_value>: New method.
6467
2b2558bf
TT
64682020-03-26 Tom Tromey <tom@tromey.com>
6469
6470 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6471 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6472 (dwarf_type_encoding_name): Move to stringify.c.
6473 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6474 * dwarf2/stringify.c: New file.
6475 * dwarf2/stringify.h: New file.
6476
eeb64781
TT
64772020-03-26 Tom Tromey <tom@tromey.com>
6478
6479 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6480 Rewrite.
6481
a39fdb41
TT
64822020-03-26 Tom Tromey <tom@tromey.com>
6483
6484 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6485 methods.
6486 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6487 (lookup_ranges_base): Likewise.
6488 (read_cutu_die_from_dwo, read_full_die_1): Update.
6489
436c571c
TT
64902020-03-26 Tom Tromey <tom@tromey.com>
6491
6492 * dwarf2/read.c (read_import_statement, read_file_scope)
6493 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6494 (read_lexical_block_scope, read_call_site_scope)
6495 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6496 (handle_struct_member_die, process_structure_scope)
6497 (update_enumeration_type_from_children)
6498 (process_enumeration_scope, read_array_type, read_common_block)
6499 (read_namespace, read_module, read_subroutine_type): Update.
6500 (sibling_die): Remove.
6501
052c8bb8
TT
65022020-03-26 Tom Tromey <tom@tromey.com>
6503
6504 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6505 (build_type_psymtabs_reader, read_structure_type)
6506 (read_enumeration_type, read_full_die_1): Update.
6507 (dwarf2_attr_no_follow): Move to die.h.
6508 * dwarf2/die.h (struct die_info) <attr>: New method.
6509
2b24b6e4
TT
65102020-03-26 Tom Tromey <tom@tromey.com>
6511
6512 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6513 <base_address>: Now an optional.
6514 (dwarf2_find_base_address, dwarf2_rnglists_process)
6515 (dwarf2_ranges_process, fill_in_loclist_baton)
6516 (dwarf2_symbol_mark_computed): Update.
6517
c2d50fd0
TT
65182020-03-26 Tom Tromey <tom@tromey.com>
6519
6520 * dwarf2/read.c (struct die_info): Move to die.h.
6521 * dwarf2/die.h: New file.
6522
0df7ad3a
TT
65232020-03-26 Tom Tromey <tom@tromey.com>
6524
6525 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6526 * dwarf2/read.c
6527 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6528 Move to line-header.c.
6529 (read_checked_initial_length_and_offset, read_formatted_entries):
6530 Likewise.
6531 (dwarf_decode_line_header): Split into two.
6532 * dwarf2/line-header.c
6533 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6534 Move from read.c.
6535 (read_checked_initial_length_and_offset, read_formatted_entries):
6536 Likewise.
6537 (dwarf_decode_line_header): New function, split from read.c.
6538
86c0bb4c
TT
65392020-03-26 Tom Tromey <tom@tromey.com>
6540
6541 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6542 Declare method.
6543 * dwarf2/read.c (read_attribute_value): Update.
6544 (dwarf2_per_objfile::read_line_string): Rename from
6545 read_indirect_line_string.
6546 (read_formatted_entries): Update.
6547
2ef46c2f
TT
65482020-03-26 Tom Tromey <tom@tromey.com>
6549
6550 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6551 variable.
6552
4f9c1eda
TT
65532020-03-26 Tom Tromey <tom@tromey.com>
6554
6555 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6556 const.
6557 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6558 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6559 parameter const.
6560
5a0e026f
TT
65612020-03-26 Tom Tromey <tom@tromey.com>
6562
6563 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6564 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6565 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6566 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6567
8844c11b
TT
65682020-03-26 Tom Tromey <tom@tromey.com>
6569
6570 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6571 file_names_size, file_full_name, file_file_name>: Use const.
6572 <file_name_at, file_names>: Add const overload.
6573 * dwarf2/line-header.c (line_header::file_file_name)
6574 (line_header::file_full_name): Update.
6575
c90ec28a
TT
65762020-03-26 Tom Tromey <tom@tromey.com>
6577
6578 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6579 (macro_start_file, consume_improper_spaces)
6580 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6581 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6582 (dwarf_decode_macros): Move to macro.c.
6583 * dwarf2/macro.c: New file.
6584 * dwarf2/macro.h: New file.
6585 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6586
4f44ae6c
TT
65872020-03-26 Tom Tromey <tom@tromey.com>
6588
6589 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6590 method.
6591 * dwarf2/section.c: New method. From
6592 read_indirect_string_at_offset_from.
6593 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6594 (read_indirect_string_at_offset_from): Move to section.c.
6595 (read_indirect_string_at_offset): Rewrite.
6596 (read_indirect_line_string_at_offset): Remove.
6597 (read_indirect_string, read_indirect_line_string)
6598 (dwarf_decode_macro_bytes): Update.
6599
a0194fa8
TT
66002020-03-26 Tom Tromey <tom@tromey.com>
6601
6602 * dwarf2/section.h (struct dwarf2_section_info)
6603 <overload_complaint>: Declare.
6604 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6605 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6606 Rename from dwarf2_section_buffer_overflow_complaint.
6607 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6608 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6609
3d27bbdb
TT
66102020-03-26 Tom Tromey <tom@tromey.com>
6611
6612 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6613 Declare.
6614 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6615 Move from read.c.
6616 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6617 to section.c.
6618
9eac9650
TT
66192020-03-26 Tom Tromey <tom@tromey.com>
6620
6621 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6622
bf80d710
TT
66232020-03-26 Tom Tromey <tom@tromey.com>
6624
6625 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6626 "builder".
6627 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6628 parameter.
6629 (dwarf_decode_macros): Update.
6630
0314b390
TT
66312020-03-26 Tom Tromey <tom@tromey.com>
6632
6633 * dwarf2/read.c (read_attribute_value): Update.
6634 (read_indirect_string_from_dwz): Move to dwz.c; change into
6635 method.
6636 (dwarf_decode_macro_bytes): Update.
6637 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6638 * dwarf2/dwz.c: New file.
6639 * Makefile.in (COMMON_SFILES): Add dwz.c.
6640
9fda78b6
TT
66412020-03-26 Tom Tromey <tom@tromey.com>
6642
6643 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6644 * dwarf2/read.c: Add include.
6645 * dwarf2/index-write.c: Add include.
6646 * dwarf2/index-cache.c: Add include.
6647 * dwarf2/dwz.h: New file.
6648
33aa3c10
TT
66492020-03-25 Tom Tromey <tom@tromey.com>
6650
6651 * compile/compile-object-load.c (get_out_value_type): Mention
6652 correct symbol name in error message.
6653
d503b685
HD
66542020-03-25 Hannes Domani <ssbssa@yahoo.de>
6655
6656 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6657
7b1eff95
TV
66582020-03-25 Tom de Vries <tdevries@suse.de>
6659
6660 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6661 * symmisc.c (dump_symtab_1): Print user and includes fields.
6662 (maintenance_info_symtabs): Same.
6663
dd895392
AB
66642020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6665
6666 PR gdb/25534
6667 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6668 (riscv_regcache_cooked_write): New function.
6669 (riscv_push_dummy_call): Use new function.
6670 (riscv_return_value): Likewise.
6671
5ab2fbf1
SM
66722020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6673
6674 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6675 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6676 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6677 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6678 * infrun.c (follow_fork): Likewise.
6679 (follow_fork_inferior): Likewise.
6680 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6681 * linux-nat.h (class linux_nat_target): Likewise.
6682 * remote.c (class remote_target) <follow_fork>: Likewise.
6683 (remote_target::follow_fork): Likewise.
6684 * target-delegates.c: Re-generate.
6685 * target.c (default_follow_fork): Likewise.
6686 (target_follow_fork): Likewise.
6687 * target.h (struct target_ops) <follow_fork>: Likewise.
6688 (target_follow_fork): Likewise.
6689
a64fafb5
TV
66902020-03-24 Tom de Vries <tdevries@suse.de>
6691
6692 * psymtab.c (maintenance_info_psymtabs): Print user field.
6693
fe26d3a3
TT
66942020-03-20 Tom Tromey <tromey@adacore.com>
6695
6696 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6697 const.
6698 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6699 const.
6700
c884cc46
SM
67012020-03-20 Simon Marchi <simon.marchi@efficios.com>
6702
6703 * ptrace.m4: Don't check for ptrace declaration.
6704 * config.in: Re-generate.
6705 * configure: Re-generate.
6706 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6707 not defined.
6708
1ff700c2
KR
67092020-03-20 Kamil Rytarowski <n54@gmx.com>
6710
6711 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6712 `PTRACE_TYPE_RET'.
6713 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6714 * sparc-nat.c (gdb_ptrace): Likewise.
6715 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6716
f7d4f0b1
TT
67172020-03-20 Tom Tromey <tromey@adacore.com>
6718
6719 * c-exp.y (lex_one_token): Fix assert.
6720
f67210ff
TT
67212020-03-20 Tom Tromey <tromey@adacore.com>
6722
6723 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6724 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6725 strncpy call.
6726
1773be9e
TT
67272020-03-20 Tom Tromey <tromey@adacore.com>
6728
6729 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6730
70304be9
TT
67312020-03-20 Tom Tromey <tromey@adacore.com>
6732
6733 * ada-valprint.c (print_variant_part): Remove parameters; switch
6734 to value-based API.
6735 (print_field_values): Likewise.
6736 (ada_val_print_struct_union): Likewise.
6737 (ada_value_print_1): Update.
6738
9faa006d
KR
67392020-03-20 Kamil Rytarowski <n54@gmx.com>
6740
6741 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6742 nbsd_nat_target instead of inf_ptrace_target.
6743 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6744 nbsd_nat_target.
6745
4a90f062
KR
67462020-03-20 Kamil Rytarowski <n54@gmx.com>
6747
6748 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6749 it to the ptrace call.
6750 * (store_registers): Likewise.
6751
67522020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6753
6754 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6755 it to the ptrace call.
6756 * (store_registers): Likewise.
6757
2d07da27
LM
67582020-03-19 Luis Machado <luis.machado@linaro.org>
6759
6760 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6761 valid, fetch vg value from ptrace.
6762
f09db380
KR
67632020-03-19 Kamil Rytarowski <n54@gmx.com>
6764 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6765 * inf-ptrace.c: Likewise.
6766 * (gdb_ptrace): Add.
6767 * (inf_ptrace_target::resume): Update.
6768 * (inf_ptrace_target::xfer_partial): Likewise.
6769 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6770 * (inf_ptrace_peek_poke): Update.
6771
fcc7376e
KR
67722020-03-19 Kamil Rytarowski <n54@gmx.com>
6773
6774 * x86-bsd-nat.c (gdb_ptrace): New.
6775 * (x86bsd_dr_set): Add new argument `ptid'.
6776 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6777 x86bsd_dr_set_addr): Update.
6778
cada5fc9
AB
67792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6780
6781 * remote.c (remote_target::process_stop_reply): Handle events for
6782 all threads differently.
6783
19a2740f
AB
67842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6785
6786 * completer.c (completion_tracker::remove_completion): Define new
6787 function.
6788 * completer.h (completion_tracker::remove_completion): Declare new
6789 function.
6790 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6791 when adding a C++ function symbol.
6792
724fd9ba
AB
67932020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6794
6795 * completer.c (completion_tracker::completion_hash_entry): Define
6796 new class.
6797 (advance_to_filename_complete_word_point): Call
6798 recompute_lowest_common_denominator.
6799 (completion_tracker::completion_tracker): Call discard_completions
6800 to setup the hash table.
6801 (completion_tracker::discard_completions): Allow for being called
6802 from the constructor, pass new equal function, and element deleter
6803 when constructing the hash table. Initialise new class member
6804 variables.
6805 (completion_tracker::maybe_add_completion): Remove use of
6806 m_entries_vec, and store more information into m_entries_hash.
6807 (completion_tracker::recompute_lcd_visitor): New function, most
6808 content taken from...
6809 (completion_tracker::recompute_lowest_common_denominator):
6810 ...here, this now just visits each item in the hash calling the
6811 above visitor.
6812 (completion_tracker::build_completion_result): Remove use of
6813 m_entries_vec, call recompute_lowest_common_denominator.
6814 * completer.h (completion_tracker::have_completions): Remove use
6815 of m_entries_vec.
6816 (completion_tracker::completion_hash_entry): Declare new class.
6817 (completion_tracker::recompute_lowest_common_denominator): Change
6818 function signature.
6819 (completion_tracker::recompute_lcd_visitor): Declare new function.
6820 (completion_tracker::m_entries_vec): Delete.
6821 (completion_tracker::m_entries_hash): Initialize to NULL.
6822 (completion_tracker::m_lowest_common_denominator_valid): New
6823 member variable.
6824 (completion_tracker::m_lowest_common_denominator_max_length): New
6825 member variable.
6826
5a82b8a1
KR
68272020-03-17 Kamil Rytarowski <n54@gmx.com>
6828
6829 * regformats/regdef.h: Put reg in gdb namespace.
6830
fb516a69
KR
68312020-03-17 Kamil Rytarowski <n54@gmx.com>
6832
6833 * i386-bsd-nat.c (gdb_ptrace): New.
6834 * (i386bsd_fetch_inferior_registers,
6835 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6836 * (i386bsd_fetch_inferior_registers,
6837 i386bsd_store_inferior_registers) Use gdb_ptrace.
6838
1c0aa1fb
KR
68392020-03-17 Kamil Rytarowski <n54@gmx.com>
6840
6841 * amd64-bsd-nat.c (gdb_ptrace): New.
6842 * (amd64bsd_fetch_inferior_registers,
6843 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6844 * (amd64bsd_fetch_inferior_registers,
6845 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6846
5ccd2fb7
KR
68472020-03-17 Kamil Rytarowski <n54@gmx.com>
6848
6849 * user-regs.c (user_reg::read): Rename to...
6850 (user_reg::xread): ...this.
6851 * (append_user_reg): Rename argument `read' to `xread'.
6852 * (user_reg_add_builtin): Likewise.
6853 * (user_reg_add): Likewise.
6854 * (value_of_user_reg): Likewise.
6855
2108a63a
KR
68562020-03-17 Kamil Rytarowski <n54@gmx.com>
6857
6858 * sparc-nat.c (gdb_ptrace): New.
6859 * sparc-nat.c (sparc_fetch_inferior_registers)
6860 (sparc_store_inferior_registers) Remove obsolete comment.
6861 * sparc-nat.c (sparc_fetch_inferior_registers)
6862 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6863 * sparc-nat.c (sparc_fetch_inferior_registers)
6864 (sparc_store_inferior_registers) Use gdb_ptrace.
6865
a225c9a8
KR
68662020-03-17 Kamil Rytarowski <n54@gmx.com>
6867
6868 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6869 it to the ptrace call.
6870 * sh-nbsd-nat.c (store_registers): Likewise.
6871
98097623
KR
68722020-03-17 Kamil Rytarowski <n54@gmx.com>
6873
6874 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6875 nbsd_nat_target instead of inf_ptrace_target.
6876 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6877 nbsd_nat_target.
6878
9e38d619
KR
68792020-03-17 Kamil Rytarowski <n54@gmx.com>
6880
6881 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6882
a2ecbe9f
KR
68832020-03-17 Kamil Rytarowski <n54@gmx.com>
6884
6885 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6886 <sys/sysctl.h>.
6887 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6888
58990295
TV
68892020-03-17 Tom de Vries <tdevries@suse.de>
6890
6891 PR gdb/23710
6892 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6893 fields.
6894 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6895 fields.
6896 (process_imported_unit_die): Skip import of c++ CUs.
6897
771dd3a8
TT
68982020-03-16 Tom Tromey <tom@tromey.com>
6899
6900 * p-valprint.c (pascal_object_print_value): Initialize
6901 base_value.
6902
817a7585
AK
69032020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6904 Shahab Vahedi <shahab@synopsys.com>
6905
6906 * Makefile.in: Add arch/arc.o
6907 * configure.tgt: Likewise.
6908 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6909 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6910 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6911 * arc-tdep.h (arc_read_description): Add proto type.
6912 * arch/arc.c: New file.
6913 * arch/arc.h: Likewise.
6914 * features/Makefile: Replace old target descriptions with new.
6915 * features/arc-arcompact.c: Remove.
6916 * features/arc-arcompact.xml: Likewise.
6917 * features/arc-v2.c: Likewise
6918 * features/arc-v2.xml: Likewise
6919 * features/arc/aux-arcompact.xml: New file.
6920 * features/arc/aux-v2.xml: Likewise.
6921 * features/arc/core-arcompact.xml: Likewise.
6922 * features/arc/core-v2.xml: Likewise.
6923 * features/arc/aux-arcompact.c: Generate.
6924 * features/arc/aux-v2.c: Likewise.
6925 * features/arc/core-arcompact.c: Likewise.
6926 * features/arc/core-v2.c: Likewise.
6927 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6928
67430cd0
TT
69292020-03-16 Tom Tromey <tromey@adacore.com>
6930
6931 PR gdb/25663:
6932 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6933 putting value into bcache.
6934
30efb6c7
SM
69352020-03-16 Simon Marchi <simon.marchi@efficios.com>
6936
6937 PR gdb/21500
6938 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6939 to...
6940 (amd64_windows_init_abi_common): ... this. Don't set size of
6941 long type.
6942 (amd64_windows_init_abi): New function.
6943 (amd64_cygwin_init_abi): New function.
6944 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6945 the Cygwin OS ABI.
6946 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6947 comment.
6948
8db52437
SM
69492020-03-16 Simon Marchi <simon.marchi@efficios.com>
6950
6951 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6952 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6953 (pe_import_directory_entry): New struct type.
6954 (is_linked_with_cygwin_dll): New function.
6955 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6956 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6957 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6958
5982a56a
SM
69592020-03-16 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6962 i386_cygwin_core_osabi_sniffer.
6963
7a1998df
SM
69642020-03-16 Simon Marchi <simon.marchi@efficios.com>
6965
6966 * i386-cygwin-tdep.c: Rename to...
6967 * i386-windows-tdep.c: ... this.
6968 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6969 i386-windows-tdep.c.
6970 * configure.tgt: Likewise.
6971
053205cc
SM
69722020-03-16 Simon Marchi <simon.marchi@efficios.com>
6973
6974 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6975 * osabi.c (gdb_osabi_names): Add "Windows".
6976 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6977 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6978 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6979 i386_cygwin_osabi_sniffer.
6980 (_initialize_i386_cygwin_tdep): Register OS ABI
6981 GDB_OSABI_WINDOWS for i386.
6982 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6983 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6984 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6985 for x86-64.
6986 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6987 when the target matches '*-*-mingw*'.
6988
fe4b2ee6
SM
69892020-03-16 Simon Marchi <simon.marchi@efficios.com>
6990
6991 * defs.h (enum gdb_osabi): Move to...
6992 * osabi.h (enum gdb_osabi): ... here.
6993 * gdbarch.sh: Include osabi.h in gdbarch.h.
6994 * gdbarch.h: Re-generate.
6995
cb9b645d
SM
69962020-03-16 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6999 function.
7000 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7001
3293bbaf
TT
70022020-03-14 Tom Tromey <tom@tromey.com>
7003
7004 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7005 for C++.
7006 (c_type_print_modifier): Likewise. Add "language" parameter.
7007 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7008 (c_type_print_base_1): Update.
7009 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7010 constants.
7011 * type-stack.c (type_stack::insert): Handle tp_atomic and
7012 tp_restrict.
7013 (type_stack::follow_type_instance_flags): Likewise.
7014 (type_stack::follow_types): Likewise. Merge type-following code.
7015 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7016 (space_identifier, cv_with_space_id)
7017 (const_or_volatile_or_space_identifier_noopt)
7018 (const_or_volatile_or_space_identifier): Remove.
7019 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7020 rules.
7021 (ptr_operator, typebase): Update.
7022 (enum token_flag) <FLAG_C>: New constant.
7023 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7024 "_Atomic".
7025 (lex_one_token): Handle FLAG_C.
7026
154151a6
KR
70272020-03-14 Kamil Rytarowski <n54@gmx.com>
7028
7029 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7030 it to the ptrace call.
7031 * m68k-bsd-nat.c (store_registers): Likewise.
7032
bc107784
KR
70332020-03-14 Kamil Rytarowski <n54@gmx.com>
7034
7035 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7036 gdb_byte *.
7037 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7038 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7039 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7040
01a80117
KR
70412020-03-14 Kamil Rytarowski <n54@gmx.com>
7042
7043 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7044 nbsd_nat_target instead of inf_ptrace_target.
7045 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7046 nbsd_nat_target.
7047
f90280ca
KR
70482020-03-14 Kamil Rytarowski <n54@gmx.com>
7049
7050 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7051 register_t.
7052
6def66f1
KR
70532020-03-14 Kamil Rytarowski <n54@gmx.com>
7054
7055 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7056 it to the ptrace call.
7057 * alpha-bsd-nat.c (store_registers): Likewise.
7058
66eaca97
KR
70592020-03-14 Kamil Rytarowski <n54@gmx.com>
7060
7061 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7062 includes.
7063 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7064 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7065 fill_fpregset): Likewise.
7066
4fed520b
KR
70672020-03-14 Kamil Rytarowski <n54@gmx.com>
7068
7069 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7070 nbsd_nat_target instead of inf_ptrace_target.
7071 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7072 nbsd_nat_target.
7073
2190cf06
KR
70742020-03-14 Kamil Rytarowski <n54@gmx.com>
7075
7076 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7077 register_t.
7078
75c56d3d
KR
70792020-03-14 Kamil Rytarowski <n54@gmx.com>
7080
7081 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7082 it to the ptrace call.
7083 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7084 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7085 * arm-nbsd-nat.c (store_register): Likewise.
7086 * arm-nbsd-nat.c (store_regs): Likewise.
7087 * arm-nbsd-nat.c (store_fp_register): Likewise.
7088 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7089
6018d381
KR
70902020-03-14 Kamil Rytarowski <n54@gmx.com>
7091
7092 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7093 nbsd_nat_target instead of inf_ptrace_target.
7094 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7095 nbsd_nat_target.
7096
013f99f0
KR
70972020-03-14 Kamil Rytarowski <n54@gmx.com>
7098
7099 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7100 it to the ptrace call.
7101 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7102
12753073
KR
71032020-03-14 Kamil Rytarowski <n54@gmx.com>
7104
6227b330
KR
7105 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7106 it to the ptrace call.
7107 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7108
71092020-03-14 Kamil Rytarowski <n54@gmx.com>
7110
7111 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7112 gdb_byte *.
12753073
KR
7113 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7114
d5be5fa4
KR
71152020-03-14 Kamil Rytarowski <n54@gmx.com>
7116
7117 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7118 instead of inf_ptrace_target.
7119 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7120 nbsd_nat_target.
7121
8110f842
KR
71222020-03-14 Kamil Rytarowski <n54@gmx.com>
7123
7124 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7125 register_t.
7126
52feded7
KR
71272020-03-14 Kamil Rytarowski <n54@gmx.com>
7128
7129 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7130 register_t.
7131
25567eee
KR
71322020-03-14 Kamil Rytarowski <n54@gmx.com>
7133
7134 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7135 register_t.
7136
426a9c18
TT
71372020-03-13 Tom Tromey <tom@tromey.com>
7138
7139 * value.h (val_print): Don't declare.
7140 * valprint.h (val_print_array_elements)
7141 (val_print_scalar_formatted, generic_val_print): Don't declare.
7142 * valprint.c (generic_val_print_array): Take a struct value.
7143 (generic_val_print_ptr, generic_val_print_memberptr)
7144 (generic_val_print_bool, generic_val_print_int)
7145 (generic_val_print_char, generic_val_print_complex)
7146 (generic_val_print): Remove.
7147 (generic_value_print): Update.
7148 (do_val_print): Remove unused parameters. Don't call
7149 la_val_print.
7150 (val_print): Remove.
7151 (common_val_print): Update. Don't call value_check_printable.
7152 (val_print_scalar_formatted, val_print_array_elements): Remove.
7153 * rust-lang.c (rust_val_print): Remove.
7154 (rust_language_defn): Update.
7155 * p-valprint.c (pascal_val_print): Remove.
7156 (pascal_value_print_inner): Update.
7157 (pascal_object_print_val_fields, pascal_object_print_val):
7158 Remove.
7159 (pascal_object_print_static_field): Update.
7160 * p-lang.h (pascal_val_print): Don't declare.
7161 * p-lang.c (pascal_language_defn): Update.
7162 * opencl-lang.c (opencl_language_defn): Update.
7163 * objc-lang.c (objc_language_defn): Update.
7164 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7165 * m2-lang.h (m2_val_print): Don't declare.
7166 * m2-lang.c (m2_language_defn): Update.
7167 * language.h (struct language_defn) <la_val_print>: Remove.
7168 * language.c (unk_lang_value_print_inner): Rename. Change
7169 argument types.
7170 (unknown_language_defn, auto_language_defn): Update.
7171 * go-valprint.c (go_val_print): Remove.
7172 * go-lang.h (go_val_print): Don't declare.
7173 * go-lang.c (go_language_defn): Update.
7174 * f-valprint.c (f_val_print): Remove.
7175 * f-lang.h (f_value_print): Don't declare.
7176 * f-lang.c (f_language_defn): Update.
7177 * d-valprint.c (d_val_print): Remove.
7178 * d-lang.h (d_value_print): Don't declare.
7179 * d-lang.c (d_language_defn): Update.
7180 * cp-valprint.c (cp_print_value_fields)
7181 (cp_print_value_fields_rtti, cp_print_value): Remove.
7182 (cp_print_static_field): Update.
7183 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7184 (c_val_print_struct, c_val_print_union, c_val_print_int)
7185 (c_val_print_memberptr, c_val_print): Remove.
7186 * c-lang.h (c_val_print_array, cp_print_value_fields)
7187 (cp_print_value_fields_rtti): Don't declare.
7188 * c-lang.c (c_language_defn, cplus_language_defn)
7189 (asm_language_defn, minimal_language_defn): Update.
7190 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7191 (ada_val_print_enum): Take a struct value.
7192 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7193 (ada_val_print): Remove.
7194 (ada_value_print_1): Update.
7195 (printable_val_type): Remove.
7196 * ada-lang.h (ada_val_print): Don't declare.
7197 * ada-lang.c (ada_language_defn): Update.
7198
42331a1e
TT
71992020-03-13 Tom Tromey <tom@tromey.com>
7200
7201 * valprint.c (do_val_print): Update.
7202 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7203 a struct value.
7204 (value_to_value_object_no_release): Declare.
7205 * python/py-value.c (value_to_value_object_no_release): New
7206 function.
7207 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7208 struct value.
7209 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7210 function.
7211 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7212 a struct value.
7213 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7214 Declare.
7215 (gdbscm_apply_val_pretty_printer): Take a struct value.
7216 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7217 value.
7218 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7219 value.
7220 * extension-priv.h (struct extension_language_ops)
7221 <apply_val_pretty_printer>: Take a struct value.
7222 * cp-valprint.c (cp_print_value): Create a struct value.
7223 (cp_print_value): Update.
7224
3a916a97
TT
72252020-03-13 Tom Tromey <tom@tromey.com>
7226
7227 * ada-valprint.c (print_field_values): Call common_val_print.
7228
b59eac37
TT
72292020-03-13 Tom Tromey <tom@tromey.com>
7230
7231 * ada-valprint.c (val_print_packed_array_elements): Remove
7232 bitoffset and val parameters. Call common_val_print.
7233 (ada_val_print_string): Remove offset, address, and original_value
7234 parameters.
7235 (ada_val_print_array): Update.
7236 (ada_value_print_array): New function.
7237 (ada_value_print_1): Call it.
7238
03371129
TT
72392020-03-13 Tom Tromey <tom@tromey.com>
7240
7241 * ada-valprint.c (ada_value_print): Use common_val_print.
7242
2e088f8b
TT
72432020-03-13 Tom Tromey <tom@tromey.com>
7244
7245 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7246
39ef85a8
TT
72472020-03-13 Tom Tromey <tom@tromey.com>
7248
7249 * ada-valprint.c (ada_value_print_num): New function.
7250 (ada_value_print_1): Use it.
7251
b9fa6e07
TT
72522020-03-13 Tom Tromey <tom@tromey.com>
7253
7254 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7255
416595d6
TT
72562020-03-13 Tom Tromey <tom@tromey.com>
7257
7258 * ada-valprint.c (ada_value_print_ptr): New function.
7259 (ada_value_print_1): Use it.
7260
5b5e15ec
TT
72612020-03-13 Tom Tromey <tom@tromey.com>
7262
7263 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7264 call common_val_print.
7265 (ada_val_print_1): Update.
7266 (ada_value_print_1): New function.
7267 (ada_value_print_inner): Rewrite.
7268
fbf54e75
TT
72692020-03-13 Tom Tromey <tom@tromey.com>
7270
7271 * cp-valprint.c (cp_print_value_fields): Update.
7272 (cp_print_value): New function.
7273
64b653ca
TT
72742020-03-13 Tom Tromey <tom@tromey.com>
7275
7276 * m2-valprint.c (m2_value_print_inner): Use
7277 cp_print_value_fields.
7278 * cp-valprint.c (cp_print_value_fields): New function.
7279 * c-valprint.c (c_value_print_struct): New function.
7280 (c_value_print_inner): Use c_value_print_struct.
7281 * c-lang.h (cp_print_value_fields): Declare.
7282
6999f067
TT
72832020-03-13 Tom Tromey <tom@tromey.com>
7284
7285 * c-valprint.c (c_value_print_array): New function.
7286 (c_value_print_inner): Use it.
7287
ce80b8bd
TT
72882020-03-13 Tom Tromey <tom@tromey.com>
7289
7290 * c-valprint.c (c_value_print_memberptr): New function.
7291 (c_value_print_inner): Use it.
7292
2faac269
TT
72932020-03-13 Tom Tromey <tom@tromey.com>
7294
7295 * c-valprint.c (c_value_print_int): New function.
7296 (c_value_print_inner): Use it.
7297
da3e2c29
TT
72982020-03-13 Tom Tromey <tom@tromey.com>
7299
7300 * c-valprint.c (c_value_print_ptr): New function.
7301 (c_value_print_inner): Use it.
7302
50836231
TT
73032020-03-13 Tom Tromey <tom@tromey.com>
7304
7305 * c-valprint.c (c_value_print_inner): Rewrite.
7306
4f412b6e
TT
73072020-03-13 Tom Tromey <tom@tromey.com>
7308
7309 * valprint.c (generic_value_print_complex): New function.
7310 (generic_value_print): Use it.
7311
f5354008
TT
73122020-03-13 Tom Tromey <tom@tromey.com>
7313
7314 * valprint.c (generic_val_print_float): Don't call
7315 val_print_scalar_formatted.
7316 (generic_val_print, generic_value_print): Update.
7317
3eec3b05
TT
73182020-03-13 Tom Tromey <tom@tromey.com>
7319
7320 * valprint.c (generic_value_print_char): New function
7321 (generic_value_print): Use it.
7322
fdddfccb
TT
73232020-03-13 Tom Tromey <tom@tromey.com>
7324
7325 * valprint.c (generic_value_print_int): New function.
7326 (generic_value_print): Use it.
7327
6dde7521
TT
73282020-03-13 Tom Tromey <tom@tromey.com>
7329
7330 * valprint.c (generic_value_print_bool): New function.
7331 (generic_value_print): Use it.
7332
4112d2e6
TT
73332020-03-13 Tom Tromey <tom@tromey.com>
7334
7335 * valprint.c (generic_val_print_func): Simplify.
7336 (generic_val_print, generic_value_print): Update.
7337
65786af6
TT
73382020-03-13 Tom Tromey <tom@tromey.com>
7339
7340 * valprint.c (generic_val_print_flags): Remove.
7341 (generic_val_print, generic_value_print): Update.
7342 (val_print_type_code_flags): Add original_value parameter.
7343
40f3ce18
TT
73442020-03-13 Tom Tromey <tom@tromey.com>
7345
7346 * valprint.c (generic_val_print): Update.
7347 (generic_value_print): Update.
7348 * valprint.c (generic_val_print_enum): Don't call
7349 val_print_scalar_formatted.
7350
2a5b130b
TT
73512020-03-13 Tom Tromey <tom@tromey.com>
7352
7353 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7354 * valprint.c (generic_value_print_ptr): New function.
7355
abc66ce9
TT
73562020-03-13 Tom Tromey <tom@tromey.com>
7357
7358 * valprint.c (generic_value_print): Rewrite.
7359
07a32858
TT
73602020-03-13 Tom Tromey <tom@tromey.com>
7361
7362 * p-valprint.c (pascal_object_print_value_fields)
7363 (pascal_object_print_value): New functions.
7364
64d64d3a
TT
73652020-03-13 Tom Tromey <tom@tromey.com>
7366
7367 * p-valprint.c (pascal_value_print_inner): Rewrite.
7368
6a95a1f5
TT
73692020-03-13 Tom Tromey <tom@tromey.com>
7370
7371 * f-valprint.c (f_value_print_innner): Rewrite.
7372
59fcdac6
TT
73732020-03-13 Tom Tromey <tom@tromey.com>
7374
7375 * m2-valprint.c (m2_print_unbounded_array): New overload.
7376 (m2_print_unbounded_array): Update.
7377 (m2_print_array_contents): Take a struct value.
7378 (m2_value_print_inner): Rewrite.
7379
d133c3e1
TT
73802020-03-13 Tom Tromey <tom@tromey.com>
7381
7382 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7383 (d_value_print_inner): New function.
7384 * d-lang.h (d_value_print_inner): Declare.
7385 * d-lang.c (d_language_defn): Use d_value_print_inner.
7386
23b0f06b
TT
73872020-03-13 Tom Tromey <tom@tromey.com>
7388
7389 * go-valprint.c (go_value_print_inner): New function.
7390 * go-lang.h (go_value_print_inner): Declare.
7391 * go-lang.c (go_language_defn): Use go_value_print_inner.
7392
5f56f7cb
TT
73932020-03-13 Tom Tromey <tom@tromey.com>
7394
7395 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7396 API.
7397 (rust_val_print): Rewrite.
7398 (rust_value_print_inner): New function, from rust_val_print.
7399 (rust_language_defn): Use rust_value_print_inner.
7400
26792ee0
TT
74012020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * ada-valprint.c (ada_value_print_inner): New function.
7404 * ada-lang.h (ada_value_print_inner): Declare.
7405 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7406
24051bbe
TT
74072020-03-13 Tom Tromey <tom@tromey.com>
7408
7409 * f-valprint.c (f_value_print_innner): New function.
7410 * f-lang.h (f_value_print_innner): Declare.
7411 * f-lang.c (f_language_defn): Use f_value_print_innner.
7412
c0941be6
TT
74132020-03-13 Tom Tromey <tom@tromey.com>
7414
7415 * p-valprint.c (pascal_value_print_inner): New function.
7416 * p-lang.h (pascal_value_print_inner): Declare.
7417 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7418
62c4663d
TT
74192020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * m2-valprint.c (m2_value_print_inner): New function.
7422 * m2-lang.h (m2_value_print_inner): Declare.
7423 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7424
62182190
TT
74252020-03-13 Tom Tromey <tom@tromey.com>
7426
7427 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7428 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7429 * c-valprint.c (c_value_print_inner): New function.
7430 * c-lang.h (c_value_print_inner): Declare.
7431 * c-lang.c (c_language_defn, cplus_language_defn)
7432 (asm_language_defn, minimal_language_defn): Use
7433 c_value_print_inner.
7434
1e592a8a
TT
74352020-03-13 Tom Tromey <tom@tromey.com>
7436
7437 * p-valprint.c (pascal_object_print_value_fields): Now static.
7438 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7439
7fe471e9
TT
74402020-03-13 Tom Tromey <tom@tromey.com>
7441
7442 * c-valprint.c (c_val_print_array): Simplify.
7443
d121c6ce
TT
74442020-03-13 Tom Tromey <tom@tromey.com>
7445
7446 * valprint.c (value_print_array_elements): New function.
7447 * valprint.h (value_print_array_elements): Declare.
7448
4dba70ee
TT
74492020-03-13 Tom Tromey <tom@tromey.com>
7450
7451 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7452 * mips-tdep.c (mips_print_register): Use
7453 value_print_scalar_formatted.
7454
4f9ae810
TT
74552020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * valprint.h (value_print_scalar_formatted): Declare.
7458 * valprint.c (value_print_scalar_formatted): New function.
7459
156bfec9
TT
74602020-03-13 Tom Tromey <tom@tromey.com>
7461
7462 * valprint.h (generic_value_print): Declare.
7463 * valprint.c (generic_value_print): New function.
7464
2b4e573d
TT
74652020-03-13 Tom Tromey <tom@tromey.com>
7466
7467 * valprint.c (do_val_print): Call la_value_print_inner, if
7468 available.
7469 * rust-lang.c (rust_language_defn): Update.
7470 * p-lang.c (pascal_language_defn): Update.
7471 * opencl-lang.c (opencl_language_defn): Update.
7472 * objc-lang.c (objc_language_defn): Update.
7473 * m2-lang.c (m2_language_defn): Update.
7474 * language.h (struct language_defn) <la_value_print_inner>: New
7475 member.
7476 * language.c (unknown_language_defn, auto_language_defn): Update.
7477 * go-lang.c (go_language_defn): Update.
7478 * f-lang.c (f_language_defn): Update.
7479 * d-lang.c (d_language_defn): Update.
7480 * c-lang.c (c_language_defn, cplus_language_defn)
7481 (asm_language_defn, minimal_language_defn): Update.
7482 * ada-lang.c (ada_language_defn): Update.
7483
a1f6a07c
TT
74842020-03-13 Tom Tromey <tom@tromey.com>
7485
7486 * c-valprint.c (c_value_print): Use common_val_print.
7487
410cf315
TT
74882020-03-13 Tom Tromey <tom@tromey.com>
7489
7490 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7491
72a45c93
TT
74922020-03-13 Tom Tromey <tom@tromey.com>
7493
7494 * f-valprint.c (f77_print_array_1, f_val_print): Use
7495 common_val_print.
7496
040f66bd
TT
74972020-03-13 Tom Tromey <tom@tromey.com>
7498
7499 * riscv-tdep.c (riscv_print_one_register_info): Use
7500 common_val_print.
7501
a6e05a6c
TT
75022020-03-13 Tom Tromey <tom@tromey.com>
7503
7504 * mi/mi-main.c (output_register): Use common_val_print.
7505
3444c526
TT
75062020-03-13 Tom Tromey <tom@tromey.com>
7507
7508 * infcmd.c (default_print_one_register_info): Use
7509 common_val_print.
7510
c2a44efe
TT
75112020-03-13 Tom Tromey <tom@tromey.com>
7512
7513 * valprint.h (common_val_print_checked): Declare.
7514 * valprint.c (common_val_print_checked): New function.
7515 * stack.c (print_frame_arg): Use common_val_print_checked.
7516
b0c26e99
TT
75172020-03-13 Tom Tromey <tom@tromey.com>
7518
7519 * valprint.c (do_val_print): New function, from val_print.
7520 (val_print): Use do_val_print.
7521 (common_val_print): Use do_val_print.
7522
ce3acbe9
TT
75232020-03-13 Tom Tromey <tom@tromey.com>
7524
7525 * valprint.c (value_print): Use scoped_value_mark.
7526
96c7f873
TV
75272020-03-13 Tom de Vries <tdevries@suse.de>
7528
7529 PR symtab/25646
7530 * psymtab.c (partial_symtab::partial_symtab): Don't set
7531 globals_offset and statics_offset. Push element onto
7532 current_global_psymbols and current_static_psymbols stacks.
7533 (concat): New function.
7534 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7535 element from current_global_psymbols and current_static_psymbols
7536 stacks. Concat popped elements to global_psymbols and
7537 static_symbols.
7538 (add_psymbol_to_list): Use current_global_psymbols and
7539 current_static_psymbols stacks.
7540 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7541 current_static_psymbols fields.
7542
6ba0a321
CB
75432020-03-12 Christian Biesinger <cbiesinger@google.com>
7544
7545 * corelow.c (sniff_core_bfd): Remove.
7546 (class core_target) <m_core_vec>: Remove.
7547 (core_target::core_target): Update.
7548 (core_file_fns): Remove.
7549 (deprecated_add_core_fns): Remove.
7550 (default_core_sniffer): Remove.
7551 (sniff_core_bfd): Remove.
7552 (default_check_format): Remove.
7553 (gdb_check_format): Remove.
7554 (core_target_open): Update.
7555 (core_target::get_core_register_section): Update.
7556 (get_core_registers_cb): Update.
7557 (core_target::fetch_registers): Update.
7558 * gdbcore.h (struct core_fns): Remove.
7559 (deprecated_add_core_fns): Remove.
7560 (default_core_sniffer): Remove.
7561 (default_check_format): Remove.
7562
227031b2
TT
75632020-03-12 Tom Tromey <tom@tromey.com>
7564
7565 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7566 CORE_ADDR.
7567 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7568
53807e9f
TT
75692020-03-12 Tom Tromey <tom@tromey.com>
7570
7571 * remote.c (remote_target::download_tracepoint)
7572 (remote_target::enable_tracepoint)
7573 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7574 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7575 sprintf_vma.
7576
64f25102
TT
75772020-03-12 Tom Tromey <tom@tromey.com>
7578
7579 * symfile-mem.c: Update CORE_ADDR size assert.
7580
272cd5a3
SM
75812020-03-12 Simon Marchi <simon.marchi@efficios.com>
7582
7583 * selftest.m4: Move to gdbsupport/.
7584 * acinclude.m4: Update path to selftest.m4.
7585
74cd3f9d
SM
75862020-03-12 Simon Marchi <simon.marchi@efficios.com>
7587
7588 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7589 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7590 gdbarch-selfselftests.c and selftest-arch.c.
7591 (SUBDIR_UNITTESTS_OBS): Rename to...
7592 (SELFTESTS_OBS): ... this.
7593 (COMMON_SFILES): Remove disasm-selftests.c and
7594 gdbarch-selftests.c.
7595 * configure.ac: Don't add selftest-arch.{c,o} to
7596 CONFIG_{SRCS,OBS}.
7597 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7598 preprocessor conditions.
7599
db6878ac
SM
76002020-03-12 Simon Marchi <simon.marchi@efficios.com>
7601
7602 * configure.ac: Don't source bfd/development.sh.
7603 * selftest.m4: Modify comment.
7604 * configure: Re-generate.
7605
4d696a5c
SM
76062020-03-12 Simon Marchi <simon.marchi@efficios.com>
7607
7608 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7609 not "true" or "false".
7610 * configure: Re-generate.
7611
8dd8e1c7
CB
76122020-03-12 Christian Biesinger <cbiesinger@google.com>
7613
7614 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7615 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7616 renamed to arm_nbsd_supply_gregset.
7617 (fetch_register): Update to call arm_nbsd_supply_gregset.
7618 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7619 (arm_netbsd_nat_target::fetch_registers): Update.
7620 (fetch_elfcore_registers): Removed.
7621 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7622 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7623 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7624 not require NetBSD system headers.
7625 (arm_nbsd_regset): New struct.
7626 (arm_nbsd_iterate_over_regset_sections): New function.
7627 (arm_netbsd_init_abi_common): Updated to call
7628 set_gdbarch_iterate_over_regset_sections.
7629 * arm-nbsd-tdep.h: New file.
7630
dd69bf7a
KB
76312020-03-11 Kevin Buettner <kevinb@redhat.com>
7632
7633 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7634 recursion.
7635
a0761e34
SM
76362020-03-11 Simon Marchi <simon.marchi@efficios.com>
7637
7638 * configure: Re-generate.
7639
e7a82140
TT
76402020-03-11 Tom Tromey <tromey@adacore.com>
7641
7642 * ada-typeprint.c (print_choices): Fix comment.
7643
dcc050c8
AB
76442020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7645
7646 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7647 previous item in the list, when the list has no items.
7648
1c33af77
TV
76492020-03-11 Tom de Vries <tdevries@suse.de>
7650
7651 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7652 PROP_LOCLIST handling code.
7653
8c95582d
AB
76542020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7655
7656 * buildsym-legacy.c (record_line): Pass extra parameter to
7657 record_line.
7658 * buildsym.c (buildsym_compunit::record_line): Take an extra
7659 parameter, reduce duplication in the line table, and record the
7660 is_stmt flag in the line table.
7661 * buildsym.h (buildsym_compunit::record_line): Add extra
7662 parameter.
7663 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7664 non-statement lines.
7665 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7666 this to the symtab builder.
7667 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7668 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7669 through to dwarf_record_line_1.
7670 * infrun.c (process_event_stop_test): When stepping, don't stop at
7671 a non-statement instruction, and only refresh the step info when
7672 we land in the middle of a line's range. Also add an extra
7673 comment.
7674 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7675 field.
7676 * record-btrace.c (btrace_find_line_range): Only record lines
7677 marked as is-statement.
7678 * stack.c (frame_show_address): Show the frame address if we are
7679 in a non-statement sal.
7680 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7681 (maintenance_print_one_line_table): Print a header for the is_stmt
7682 column, and include is_stmt information in the output.
7683 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7684 preference to non-statements.
7685 (find_pcs_for_symtab_line): Prefer is-statement entries.
7686 (find_line_common): Likewise.
7687 * symtab.h (struct linetable_entry): Add is_stmt field.
7688 (struct symtab_and_line): Likewise.
7689 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7690 arranging the line table.
7691
e4003a34
TV
76922020-03-07 Tom de Vries <tdevries@suse.de>
7693
7694 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7695 DIE.
7696
e8932576
TT
76972020-03-07 Tom Tromey <tom@tromey.com>
7698
7699 * valops.c (value_literal_complex): Remove obsolete comment.
7700 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7701 comment.
7702
29734269
SM
77032020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7704
7705 * infrun.h: Forward-declare thread_info.
7706 (set_step_info): Add thread_info parameter, add doc.
7707 * infrun.c (set_step_info): Add thread_info parameter, move doc
7708 to header.
7709 * infrun.c (process_event_stop_test): Pass thread to
7710 set_step_info call.
7711 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7712 set_step_info.
7713 (prepare_one_step): Add thread_info parameter, pass it to
7714 set_step_frame and prepare_one_step (recursive) call.
7715 (step_1): Pass thread to prepare_one_step call.
7716 (step_command_fsm::should_stop): Pass thread to
7717 prepare_one_step.
7718 (until_next_fsm): Pass thread to set_step_frame call.
7719 (finish_command): Pass thread to set_step_info call.
7720
b7d64b29
HD
77212020-03-06 Hannes Domani <ssbssa@yahoo.de>
7722
7723 * windows-tdep.c (windows_solib_create_inferior_hook):
7724 Check if inferior is running.
7725
09f2921c
TV
77262020-03-06 Tom de Vries <tdevries@suse.de>
7727
7728 * NEWS: Fix "the the".
7729 * ctfread.c: Same.
7730
fd760e79
TV
77312020-03-06 Tom de Vries <tdevries@suse.de>
7732
7733 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7734
20ea4a60
AB
77352020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7736
7737 * .dir-locals.el: Add a comment referencing the other copies of
7738 this file.
7739
0afbabf0
JB
77402020-03-05 John Baldwin <jhb@FreeBSD.org>
7741
7742 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7743 psargs.
7744
842806cb
TBA
77452020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7746
7747 * .gitattributes: New file.
7748
be1e3d3e
TT
77492020-03-04 Tom Tromey <tom@tromey.com>
7750
7751 * symmisc.c (print_symbol_bcache_statistics)
7752 (print_objfile_statistics): Update.
7753 * symfile.c (allocate_symtab): Use intern.
7754 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7755 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7756 macro_cache>: Remove.
7757 <string_cache>: New member.
7758 (struct objfile) <intern>: New methods.
7759 * elfread.c (elf_symtab_read): Use intern.
7760 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7761 (dwarf2_compute_name, dwarf2_physname)
7762 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7763 names.
7764 (guess_partial_die_structure_name): Update.
7765 (partial_die_info::fixup): Intern name.
7766 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7767 name.
7768 (dwarf2_name): Intern name. Update.
7769 * buildsym.c (buildsym_compunit::get_macro_table): Use
7770 string_cache.
7771
4e7625fd
TT
77722020-03-04 Tom Tromey <tom@tromey.com>
7773
7774 * jit.c (bfd_open_from_target_memory): Make "target" const.
7775 * corefile.c (gnutarget): Now const.
7776 * gdbcore.h (gnutarget): Now const.
7777
46f9f931
HD
77782020-03-04 Hannes Domani <ssbssa@yahoo.de>
7779
7780 * NEWS: Mention support for WOW64 processes.
7781 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7782 (amd64_windows_segment_register_p): Remove static.
7783 (_initialize_amd64_windows_nat): Update.
7784 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7785 * i386-windows-nat.c (context_offset): Update.
7786 (i386_mappings): Rename and remove static.
7787 (i386_windows_segment_register_p): Remove static.
7788 (_initialize_i386_windows_nat): Update.
7789 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7790 (STATUS_WX86_SINGLE_STEP): New macro.
7791 (EnumProcessModulesEx): New macro.
7792 (Wow64SuspendThread): New macro.
7793 (Wow64GetThreadContext): New macro.
7794 (Wow64SetThreadContext): New macro.
7795 (Wow64GetThreadSelectorEntry): New macro.
7796 (windows_set_context_register_offsets): Add static.
7797 (windows_set_segment_register_p): Likewise.
7798 (windows_add_thread): Adapt for WOW64 processes.
7799 (windows_fetch_one_register): Likewise.
7800 (windows_nat_target::fetch_registers): Likewise.
7801 (windows_store_one_register): Likewise.
7802 (display_selector): Likewise.
7803 (display_selectors): Likewise.
7804 (handle_exception): Likewise.
7805 (windows_continue): Likewise.
7806 (windows_nat_target::resume): Likewise.
7807 (windows_add_all_dlls): Likewise.
7808 (do_initial_windows_stuff): Likewise.
7809 (windows_nat_target::attach): Likewise.
7810 (windows_get_exec_module_filename): Likewise.
7811 (windows_nat_target::create_inferior): Likewise.
7812 (windows_xfer_siginfo): Likewise.
7813 (_initialize_loadable): Initialize Wow64SuspendThread,
7814 Wow64GetThreadContext, Wow64SetThreadContext,
7815 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7816 * windows-nat.h (windows_set_context_register_offsets):
7817 Remove declaration.
7818 (windows_set_segment_register_p): Likewise.
7819 (i386_windows_segment_register_p): Add declaration.
7820 (amd64_windows_segment_register_p): Likewise.
7821
440cf44e
LM
78222020-03-04 Luis Machado <luis.machado@linaro.org>
7823
7824 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7825 in "info registers" for AArch64/ARM.
7826
7827 The change caused "info registers" to not print GPR's.
7828
7829 gdb/ChangeLog:
7830
7831 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7832
7833 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7834 when reg->group is empty and reggroup is not.
7835
1009d92f
TT
78362020-03-03 Tom Tromey <tromey@adacore.com>
7837
7838 * dwarf2/frame.c (struct dwarf2_frame_cache)
7839 <checked_tailcall_bottom, entry_cfa_sp_offset,
7840 entry_cfa_sp_offset_p>: Remove members.
7841 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7842 (dwarf2_frame_prev_register): Don't call
7843 dwarf2_tailcall_sniffer_first.
7844 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7845 * frame-unwind.c (add_unwinder): New fuction.
7846 (frame_unwind_init): Use it. Add tailcall unwinder.
7847
5e5d66b6
AB
78482020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7849 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7850
7851 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7852 value should be printed as true.
7853
584cf46d
HD
78542020-03-03 Hannes Domani <ssbssa@yahoo.de>
7855
7856 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7857 (windows_init_abi): Set and use windows_so_ops.
7858
7b973adc
SDJ
78592020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7860
7861 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7862 when verifying if dealing with a convenience variable.
7863
bb7b70ab
LM
78642020-03-03 Luis Machado <luis.machado@linaro.org>
7865
7866 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7867
9822cb57
SM
78682020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7869
7870 * infrun.c (gdbarch_supports_displaced_stepping): New.
7871 (use_displaced_stepping): Break up conditions in smaller pieces.
7872 Use gdbarch_supports_displaced_stepping.
7873 (displaced_step_prepare_throw): Use
7874 gdbarch_supports_displaced_stepping.
7875
63e163f2
AB
78762020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * NEWS: Mention new behaviour of the history filename.
7879 * top.c (write_history_p): Add comment.
7880 (show_write_history_p): Add header comment, give a different
7881 message when history writing is on, but the history filename is
7882 empty.
7883 (history_filename): Add comment.
7884 (history_filename_empty): New function.
7885 (show_history_filename): Add header comment, give a different
7886 message when the filename is empty.
7887 (init_history): Compare history_filename against nullptr, and only
7888 read history if the filename is not empty.
7889 (set_history_filename): Add header comment, and only make
7890 non-empty filenames absolute.
7891 (init_main): Make the filename argument to 'set history filename'
7892 optional.
7893
81b86b97
CB
78942020-03-02 Christian Biesinger <cbiesinger@google.com>
7895
7896 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7897 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7898 (fetch_fp_register): Update.
7899 (fetch_fp_regs): Update.
7900 (store_fp_register): Update.
7901 (store_fp_regs): Update.
7902 (arm_netbsd_nat_target::read_description): New function.
7903 (fetch_elfcore_registers): Update.
7904
24ed6739
AB
79052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7906
7907 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7908 general_thread if the stop reply is missing a thread-id.
7909 (remote_target::process_stop_reply): Use the first non-exited
7910 thread if the target didn't pass a thread-id.
7911 * infrun.c (do_target_wait): Move call to
7912 switch_to_inferior_no_thread to ....
7913 (do_target_wait_1): ... here.
7914
a84bb2a0
JT
79152020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7916
7917 * debuginfod-support.c: Include defs.h first.
7918
658dadf0
TV
79192020-02-28 Tom de Vries <tdevries@suse.de>
7920
7921 * symfile.c (set_initial_language): Use default language for lookup.
7922
4ebe4877
SM
79232020-02-28 Simon Marchi <simon.marchi@efficios.com>
7924
7925 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7926 reader variable, pass `this` to read_cutu_die_from_dwo.
7927
e5da1139
AM
79282020-02-27 Aaron Merey <amerey@redhat.com>
7929
7930 * source.c (open_source_file): Check for nullptr when computing
7931 srcpath.
7932
317f7127
TT
79332020-02-27 Tom Tromey <tromey@adacore.com>
7934
7935 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7936 member.
7937 (dwarf2_add_field): Don't update nfields.
7938 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7939
3104d9ee
AB
79402020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7941
7942 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7943 abs.
7944
b83470bf
TT
79452020-02-26 Tom Tromey <tom@tromey.com>
7946
7947 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7948 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7949 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7950 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7951 per_cu_data.
7952
edfe0a0c
TT
79532020-02-26 Tom Tromey <tom@tromey.com>
7954
7955 * dwarf2/index-write.c (psym_index_map): Change type.
7956 (add_address_entry_worker, write_one_signatured_type)
7957 (recursively_count_psymbols, recursively_write_psymbols)
7958 (class debug_names, psyms_seen_size, write_gdbindex)
7959 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7960
0d79cdc4
AM
79612020-02-26 Aaron Merey <amerey@redhat.com>
7962
7963 * Makefile.in: Handle optional debuginfod support.
7964 * NEWS: Update.
7965 * README: Add --with-debuginfod summary.
7966 * config.in: Regenerate.
7967 * configure: Regenerate.
7968 * configure.ac: Handle optional debuginfod support.
7969 * debuginfod-support.c: debuginfod helper functions.
7970 * debuginfod-support.h: Ditto.
7971 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7972 summary.
7973 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7974 when a dwz file cannot be found.
7975 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7976 debuginfo file cannot be found.
7977 * source.c (open_source_file): Query debuginfod servers when a
7978 source file cannot be found.
7979 * top.c (print_gdb_configuration): Include
7980 --{with,without}-debuginfod in the output.
7981
b65ce565
JG
79822020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7983
7984 * thread.c (thr_try_catch_cmd): Print thread name.
7985
d4c9a4f8
SM
79862020-02-26 Simon Marchi <simon.marchi@efficios.com>
7987
7988 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7989 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7990 dwarf2_fetch_die_type_sect_off): Move to...
7991 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7992 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7993 dwarf2_fetch_die_type_sect_off): ... here.
7994 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7995 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7996 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7997
0dce4280
TV
79982020-02-26 Tom de Vries <tdevries@suse.de>
7999
8000 PR gdb/25603
8001 * symfile.c (set_initial_language): Exit-early if
8002 language_mode == language_mode_manual.
8003
450a1bfc
SM
80042020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8005
8006 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8007 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8008 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8009
9e80cfa1
AB
80102020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8011
8012 * gdbtypes.c (create_array_type_with_stride): Handle negative
8013 array strides.
8014 * valarith.c (value_subscripted_rvalue): Likewise.
8015
09624f1f
LM
80162020-02-25 Luis Machado <luis.machado@linaro.org>
8017
8018 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8019
8cb5117c
SM
80202020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8021
8022 * loc.h (dwarf2_get_die_type): Move to...
8023 * read.h (dwarf2_get_die_type): ... here.
8024 * read.c (dwarf2_get_die_type): Move doc to header.
8025
c325c44e
JB
80262020-02-25 Joel Brobecker <brobecker@adacore.com>
8027
8028 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8029 'gnulib/Makefile.in' to the list.
8030
4ac93832
TT
80312020-02-24 Tom Tromey <tom@tromey.com>
8032
8033 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8034 Remove.
8035 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8036 XOBNEWVEC.
8037
197400e8
TT
80382020-02-24 Tom Tromey <tom@tromey.com>
8039
8040 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8041 New method.
8042 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8043 (dw2_do_instantiate_symtab, dw2_get_file_names)
8044 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8045
76935768
TT
80462020-02-24 Tom Tromey <tom@tromey.com>
8047
8048 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8049 make_scoped_restore.
8050 (dwarf2_psymtab::read_symtab): Don't clear
8051 reading_partial_symbols.
8052
a88ef40d
TV
80532020-02-24 Tom de Vries <tdevries@suse.de>
8054
8055 PR gdb/25592
8056 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8057
c9af6521
TV
80582020-02-24 Tom de Vries <tdevries@suse.de>
8059
8060 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8061 commands layout next/prev/regs.
8062
5707a07a
TT
80632020-02-22 Tom Tromey <tom@tromey.com>
8064
8065 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8066 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8067
3b0fb49e
TT
80682020-02-22 Tom Tromey <tom@tromey.com>
8069
8070 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8071
283be8bf
TT
80722020-02-22 Tom Tromey <tom@tromey.com>
8073
8074 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8075 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8076 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8077 * tui/tui.c (_initialize_tui): Add usage text.
8078
ca793b96
TT
80792020-02-22 Tom Tromey <tom@tromey.com>
8080
8081 * tui/tui-win.c (tui_set_focus_command)
8082 (tui_set_win_height_command): Use error_no_arg.
8083 (_initialize_tui_win): Update help text.
8084 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8085
432b5c40
TT
80862020-02-22 Tom Tromey <tom@tromey.com>
8087
8088 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8089 * tui/tui-disasm.h (struct tui_disasm_window)
8090 <display_start_addr>: Declare.
8091 * tui/tui-source.h (struct tui_source_window)
8092 <display_start_addr>: Declare.
8093 * tui/tui-winsource.h (struct tui_source_window_base)
8094 <show_source_line, display_start_addr>: New methods.
8095 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8096 Rename and move to protected section.
8097 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8098 (tui_source_window_base::do_erase_source_content): Update.
8099 (tui_source_window_base::show_source_line): Now a method.
8100 (tui_source_window_base::show_source_content)
8101 (tui_source_window_base::tui_source_window_base)
8102 (tui_source_window_base::rerender)
8103 (tui_source_window_base::refill)
8104 (tui_source_window_base::do_scroll_horizontal)
8105 (tui_source_window_base::set_is_exec_point_at)
8106 (tui_source_window_base::update_breakpoint_info)
8107 (tui_source_window_base::update_exec_info): Update.
8108 * tui/tui-source.c (tui_source_window::set_contents)
8109 (tui_source_window::showing_source_p)
8110 (tui_source_window::do_scroll_vertical)
8111 (tui_source_window::location_matches_p)
8112 (tui_source_window::line_is_displayed): Update.
8113 (tui_source_window::display_start_addr): New method.
8114 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8115 (tui_disasm_window::do_scroll_vertical)
8116 (tui_disasm_window::location_matches_p): Update.
8117 (tui_disasm_window::display_start_addr): New method.
8118
01b1af32
TT
81192020-02-22 Tom Tromey <tom@tromey.com>
8120
8121 * NEWS: Add entry for gdb.register_window_type.
8122 * tui/tui-layout.h (window_factory): New typedef.
8123 (tui_register_window): Declare.
8124 * tui/tui-layout.c (saved_tui_windows): New global.
8125 (tui_apply_current_layout): Use it.
8126 (tui_register_window): New function.
8127 * python/python.c (do_start_initialization): Call
8128 gdbpy_initialize_tui.
8129 (python_GdbMethods): Add "register_window_type" function.
8130 * python/python-internal.h (gdbpy_register_tui_window)
8131 (gdbpy_initialize_tui): Declare.
8132 * python/py-tui.c: New file.
8133 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8134
fc96d20b
TT
81352020-02-22 Tom Tromey <tom@tromey.com>
8136
8137 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8138
935c78c0
TT
81392020-02-22 Tom Tromey <tom@tromey.com>
8140
8141 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8142 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8143 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8144 (tui_set_win_focus_to): Move from tui-win.c.
8145
0240c8f1
TT
81462020-02-22 Tom Tromey <tom@tromey.com>
8147
8148 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8149 functions.
8150 (known_window_types): New global.
8151 (tui_get_window_by_name): Reimplement.
8152 (initialize_known_windows): New function.
8153 (validate_window_name): Rewrite.
8154 (_initialize_tui_layout): Call initialize_known_windows.
8155
fdb01f0c
TT
81562020-02-22 Tom Tromey <tom@tromey.com>
8157
8158 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8159 Remove constants.
8160 * tui/tui-winsource.h (struct tui_source_window_base)
8161 <tui_source_window_base>: Remove parameter.
8162 * tui/tui-winsource.c
8163 (tui_source_window_base::tui_source_window_base): Remove
8164 parameter.
8165 (tui_source_window_base::refill): Update.
8166 * tui/tui-stack.h (struct tui_locator_window)
8167 <tui_locator_window>: Update.
8168 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8169 Default the constructor.
8170 * tui/tui-regs.h (struct tui_data_item_window)
8171 <tui_data_item_window>: Default the constructor.
8172 (struct tui_data_window) <tui_data_window>: Likewise.
8173 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8174 Default the constructor.
8175 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8176 Default the constructor.
8177 <type>: Remove.
8178 (struct tui_win_info) <tui_win_info>: Default the constructor.
8179 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8180 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8181 Default the constructor.
8182
865a5aec
TT
81832020-02-22 Tom Tromey <tom@tromey.com>
8184
8185 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8186 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8187 * tui/tui-win.c (tui_resize_all): Don't call
8188 tui_delete_invisible_windows.
8189 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8190 done.
8191 (tui_set_layout): Update.
8192 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8193 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8194 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8195
e098d18c
TT
81962020-02-22 Tom Tromey <tom@tromey.com>
8197
8198 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8199 correctly.
8200
eb9c8874
TT
82012020-02-22 Tom Tromey <tom@tromey.com>
8202
8203 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8204
7eed1a8e
TT
82052020-02-22 Tom Tromey <tom@tromey.com>
8206
8207 * tui/tui-winsource.h (struct tui_source_window_iterator)
8208 <inner_iterator>: New etytypedef.
8209 <tui_source_window_iterator>: Take "end" parameter.
8210 <tui_source_window_iterator>: Take iterator.
8211 <operator*, advance>: Update.
8212 <m_iter>: Change type.
8213 <m_end>: New field.
8214 (struct tui_source_windows) <begin, end>: Update.
8215 * tui/tui-layout.c (tui_windows): New global.
8216 (tui_apply_current_layout): Clear tui_windows.
8217 (tui_layout_window::apply): Update tui_windows.
8218 * tui/tui-data.h (tui_windows): Declare.
8219 (all_tui_windows): Now inline function.
8220 (class tui_window_iterator, struct all_tui_windows): Remove.
8221
7c043ba6
TT
82222020-02-22 Tom Tromey <tom@tromey.com>
8223
8224 PR tui/17850:
8225 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8226 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8227 "height" argument.
8228 (class tui_layout_window) <get_sizes>: Likewise.
8229 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8230 argument.
8231 <get_sizes>: Add "height" argument.
8232 <m_vertical>: New field.
8233 * tui/tui-layout.c (tui_layout_split::clone): Update.
8234 (tui_layout_split::get_sizes): Add "height" argument.
8235 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8236 (tui_new_layout_command): Parse "-horizontal".
8237 (_initialize_tui_layout): Update help string.
8238 (tui_layout_split::specification): Add "-horizontal" when needed.
8239 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8240 argument.
8241 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8242 New methods.
8243
6bc56648
TT
82442020-02-22 Tom Tromey <tom@tromey.com>
8245
8246 * tui/tui-layout.h (enum tui_adjust_result): New.
8247 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8248 (class tui_layout_window) <adjust_size>: Return
8249 tui_adjust_result. Rewrite.
8250 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8251 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8252
c22fef7e
TT
82532020-02-22 Tom Tromey <tom@tromey.com>
8254
8255 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8256 parameter and return types.
8257 (class tui_layout_base) <specification>: Add "depth".
8258 (class tui_layout_window) <specification>: Add "depth".
8259 (class tui_layout_split) <specification>: Add "depth".
8260 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8261 and return types.
8262 (tui_new_layout_command): Parse sub-layouts.
8263 (_initialize_tui_layout): Update help string.
8264 (tui_layout_window::specification): Add "depth".
8265 (add_layout_command): Update.
8266
ee325b61
TT
82672020-02-22 Tom Tromey <tom@tromey.com>
8268
8269 * NEWS: Add "tui new-layout" item.
8270 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8271 Add new-layout command to help text.
8272 (validate_window_name): New function.
8273 (tui_new_layout_command): New function.
8274 (_initialize_tui_layout): Register "new-layout".
8275 (tui_layout_window::specification): New method.
8276 (tui_layout_window::specification): New method.
8277 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8278 method.
8279 (class tui_layout_window) <specification>: New method.
8280 (class tui_layout_split) <specification>: New method.
8281
416eb92d
TT
82822020-02-22 Tom Tromey <tom@tromey.com>
8283
8284 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8285 * tui/tui-win.c (window_name_completer): Update comment.
8286 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8287 Declare method.
8288 (class tui_layout_window) <replace_window>: Likewise.
8289 (class tui_layout_split) <replace_window>: Likewise.
8290 (tui_set_layout): Don't declare.
8291 (tui_set_initial_layout): Declare function.
8292 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8293 (asm_regs_layout): New globals.
8294 (tui_current_layout, show_layout): Remove.
8295 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8296 (find_layout, tui_apply_layout): New function.
8297 (layout_completer): Remove.
8298 (tui_next_layout): Reimplement.
8299 (tui_next_layout_command): New function.
8300 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8301 (tui_regs_layout): Reimplement.
8302 (tui_regs_layout_command): New function.
8303 (extract_display_start_addr): Rewrite.
8304 (next_layout, prev_layout): Remove.
8305 (tui_layout_window::replace_window): New method.
8306 (tui_layout_split::replace_window): New method.
8307 (destroy_layout): New function.
8308 (layout_list): New global.
8309 (add_layout_command): New function.
8310 (initialize_layouts): Update.
8311 (tui_layout_command): New function.
8312 (_initialize_tui_layout): Install "layout" commands.
8313 * tui/tui-data.h (enum tui_layout_type): Remove.
8314 (tui_current_layout): Don't declare.
8315
0dbc2fc7
TT
83162020-02-22 Tom Tromey <tom@tromey.com>
8317
8318 * tui/tui-regs.c (tui_reg_layout): Remove.
8319 (tui_reg_command): Use tui_regs_layout.
8320 * tui/tui-layout.h (tui_reg_command): Declare.
8321 * tui/tui-layout.c (tui_reg_command): New function.
8322
5afe342e
TT
83232020-02-22 Tom Tromey <tom@tromey.com>
8324
8325 * tui/tui.c (tui_rl_delete_other_windows): Call
8326 tui_remove_some_windows.
8327 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8328 Declare method.
8329 (class tui_layout_window) <remove_windows>: New method.
8330 (class tui_layout_split) <remove_windows>: Declare.
8331 (tui_remove_some_windows): Declare.
8332 * tui/tui-layout.c (tui_remove_some_windows): New function.
8333 (tui_layout_split::remove_windows): New method.
8334
427326a8
TT
83352020-02-22 Tom Tromey <tom@tromey.com>
8336
8337 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8338 * tui/tui-layout.h (tui_next_layout): Declare.
8339 * tui/tui-layout.c (tui_next_layout): New function.
8340
3fe12b6d
TT
83412020-02-22 Tom Tromey <tom@tromey.com>
8342
8343 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8344 correct coordinates.
8345
59b8b5d2
TT
83462020-02-22 Tom Tromey <tom@tromey.com>
8347
8348 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8349 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8350 DATA_WIN case.
8351
2a3d458b
TT
83522020-02-22 Tom Tromey <tom@tromey.com>
8353
8354 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8355 TUI_DISASM_WIN, not tui_win_list.
8356
3f0cbb04
TT
83572020-02-22 Tom Tromey <tom@tromey.com>
8358
8359 * valprint.c (generic_val_print_enum_1)
8360 (val_print_type_code_flags): Style member names.
8361 * rust-lang.c (val_print_struct, rust_print_enum)
8362 (rust_print_struct_def, rust_internal_print_type): Style member
8363 names.
8364 * p-valprint.c (pascal_object_print_value_fields): Style member
8365 names. Only call fprintf_symbol_filtered for static members.
8366 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8367 * f-valprint.c (f_val_print): Style member names.
8368 * f-typeprint.c (f_type_print_base): Style member names.
8369 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8370 call fprintf_symbol_filtered for static members.
8371 (cp_print_class_member): Style member names.
8372 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8373 member names.
8374 * ada-valprint.c (ada_print_scalar): Style enum names.
8375 (ada_val_print_enum): Likewise.
8376 * ada-typeprint.c (print_enum_type): Style enum names.
8377
d4d947ae
TT
83782020-02-21 Tom Tromey <tom@tromey.com>
8379
8380 * psympriv.h (struct partial_symtab): Update comment.
8381
e94e944b
TT
83822020-02-21 Tom Tromey <tromey@adacore.com>
8383
8384 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8385 type is CORE_ADDR.
8386
1eb73179
TV
83872020-02-21 Tom de Vries <tdevries@suse.de>
8388
8389 PR gdb/25534
8390 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8391 if dependencies[i]->user != NULL.
8392
4f180d53
AT
83932020-02-21 Ali Tamur <tamur@google.com>
8394
8395 * dwarf2/read.c (dwarf2_name): Add null check.
8396
22b6cd70
TT
83972020-02-20 Tom Tromey <tom@tromey.com>
8398
8399 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8400 ">=", in binary search.
8401 (dwarf2_find_containing_comp_unit): New overload.
8402 (run_test): New self-test.
8403 (_initialize_dwarf2_read): Register new test.
8404
bd0cf5a6
NC
84052020-02-20 Nelson Chu <nelson.chu@sifive.com>
8406
8407 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8408 * riscv-tdep.h: Likewise.
8409 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8410 rv32-only CSR.
8411 * features/riscv/64bit-csr.xml: Regenerated.
8412
3f702acd
SDJ
84132020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8414 Tom Tromey <tom@tromey.com>
8415
8416 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8417 of 'fputc_unfiltered'.
8418 (putchar_unfiltered): Call 'fputc_unfiltered'.
8419 (fputc_unfiltered): Call 'fputs_unfiltered'.
8420
d13c7322
AB
84212020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8422
8423 * config.in: Regenerate.
8424 * configure: Regenerate.
8425 * configure.ac: Add --with-python-libdir option.
8426 * main.c: Use WITH_PYTHON_LIBDIR.
8427
869d8950
TT
84282020-02-19 Tom Tromey <tom@tromey.com>
8429
8430 * symtab.c (general_symbol_info::compute_and_set_names): Use
8431 obstack_strndup. Simplify call to symbol_set_demangled_name.
8432
298e9637
SM
84332020-02-19 Simon Marchi <simon.marchi@efficios.com>
8434
8435 * dwarf2/read.c (allocate_signatured_type_table,
8436 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8437 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8438 Remove objfile parameter, update all callers.
8439
08410482
DE
84402020-02-19 Doug Evans <dje@google.com>
8441
8442 PR rust/25535
8443 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8444 rust_enum_variant calculation.
8445
dfdeeca1
TT
84462020-02-19 Tom Tromey <tromey@adacore.com>
8447
8448 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8449
2ef5453b
TT
84502020-02-19 Tom Tromey <tromey@adacore.com>
8451
8452 * ada-lang.c (cache_symbol): Use obstack_strdup.
8453
9f1528a1
AB
84542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8455
8456 * configure: Regenerate.
8457
d3c22fa8
TT
84582020-02-19 Tom Tromey <tromey@adacore.com>
8459
8460 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8461 NULL check.
8462
bf84f706
MR
84632020-02-19 Maciej W. Rozycki <macro@wdc.com>
8464
8465 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8466
d1c9b20f
AB
84672020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8468
8469 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8470 if GDBSERVER is not defined.
8471 (riscv_tdesc_cache): Likewise, also store const target_desc.
8472 (STATIC_IN_GDB): Define.
8473 (riscv_create_target_description): Update declaration with
8474 STATIC_IN_GDB.
8475 (riscv_lookup_target_description): New function, only define if
8476 GDBSERVER is not defined.
8477 * arch/riscv.h (riscv_create_target_description): Declare only
8478 when GDBSERVER is defined.
8479 (riscv_lookup_target_description): New declaration when GDBSERVER
8480 is not defined.
8481 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8482 (riscv_linux_read_features): ...this, and return
8483 riscv_gdbarch_features instead of target_desc.
8484 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8485 (riscv_linux_read_description): Rename to...
8486 (riscv_linux_read_features): ...this.
8487 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8488 Update to use riscv_gdbarch_features and
8489 riscv_lookup_target_description.
8490 * riscv-tdep.c (riscv_find_default_target_description): Use
8491 riscv_lookup_target_description instead of
8492 riscv_create_target_description.
8493
373d7ac0
SM
84942020-02-18 Simon Marchi <simon.marchi@efficios.com>
8495
8496 * valprint.c (generic_val_print_enum_1): When printing a flag
8497 enum with value 0 and there is no enumerator with value 0, print
8498 just "0" instead of "(unknown: 0x0)".
8499
b29a2df0
SM
85002020-02-18 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * valprint.c (generic_val_print_enum_1): Print unknown part of
8503 flag enum in hex.
8504
6740f0cc
SM
85052020-02-18 Simon Marchi <simon.marchi@efficios.com>
8506
8507 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8508 flag enums to contain duplicate enumerators.
8509 * valprint.c (generic_val_print_enum_1): Update comment.
8510
edd45eb0
SM
85112020-02-18 Simon Marchi <simon.marchi@efficios.com>
8512
8513 * dwarf2/read.c: Include "count-one-bits.h".
8514 (update_enumeration_type_from_children): If an enumerator has
8515 multiple bits set, don't treat the enumeration as a "flag enum".
8516 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8517 of flag enums have 0 or 1 bit set.
8518
6d0cf446
BE
85192020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8520
8521 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8522 conversion.
8523 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8524 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8525 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8526 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8527 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8528
7001c1b7
SM
85292020-02-18 Simon Marchi <simon.marchi@efficios.com>
8530
8531 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8532
fdb61c6c
SM
85332020-02-14 Simon Marchi <simon.marchi@efficios.com>
8534
8535 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8536 displaced_step_closure_up.
8537 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8538 (struct displaced_step_closure_up):
8539 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8540 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8541 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8542 Likewise.
8543 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8544 * gdbarch.c, gdbarch.h: Re-generate.
8545 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8546 displaced_step_closure_up.
8547 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8548 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8549 * infrun.h (displaced_step_closure_up): New type alias.
8550 (struct displaced_step_inferior_state) <step_closure>: Change
8551 type to displaced_step_closure_up.
8552 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8553 displaced_step_closure_up.
8554 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8555
a4a38eb4
TT
85562020-02-14 Tom Tromey <tom@tromey.com>
8557
8558 * minidebug.c (gnu_debug_key): New global.
8559 (find_separate_debug_file_in_section): Use it.
8560
e8217e61
SM
85612020-02-14 Simon Marchi <simon.marchi@efficios.com>
8562
8563 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8564 std::unique_ptr.
8565 * gdbarch.c: Re-generate.
8566 * gdbarch.h: Re-generate.
8567 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8568 change.
8569 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8570 type to std::unique_ptr.
8571 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8572 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8573 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8574 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8575 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8576 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8577 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8578 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8579 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8580
d8d83535
SM
85812020-02-14 Simon Marchi <simon.marchi@efficios.com>
8582
8583 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8584 std::unique_ptr.
8585 (displaced_step_clear): Rename to...
8586 (displaced_step_reset): ... this. Just call displaced->reset ().
8587 (displaced_step_clear_cleanup): Rename to...
8588 (displaced_step_reset_cleanup): ... this.
8589 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8590 (displaced_step_fixup): Likewise.
8591 (resume_1): Likewise.
8592 (handle_inferior_event): Restore child's memory before calling
8593 displaced_step_fixup on the parent.
8594 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8595 to std::unique_ptr.
8596 <step_closure>: Change type to std::unique_ptr.
8597
5f661e03
SM
85982020-02-14 Simon Marchi <simon.marchi@efficios.com>
8599
8600 * arm-tdep.c: Include count-one-bits.h.
8601 (cleanup_block_store_pc): Use count_one_bits.
8602 (cleanup_block_load_pc): Use count_one_bits.
8603 (arm_copy_block_xfer): Use count_one_bits.
8604 (thumb2_copy_block_xfer): Use count_one_bits.
8605 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8606 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8607 (thumb_get_next_pcs_raw): Use count_one_bits.
8608 (arm_get_next_pcs_raw): Use count_one_bits_l.
8609 * arch/arm.c (bitcount): Remove.
8610 * arch/arm.h (bitcount): Remove.
8611
8084e579
TT
86122020-02-14 Tom Tromey <tromey@adacore.com>
8613
8614 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8615 Update.
8616 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8617 * dwarf2/loc.c (call_site_find_chain_1): Return
8618 unique_xmalloc_ptr.
8619 (call_site_find_chain): Likewise.
8620
258bf0ee
RB
86212020-02-14 Richard Biener <rguenther@suse.de>
8622
8623 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8624 on expression with division operators.
8625
f98a8458
AKS
86262020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8627
8628 * MAINTAINERS (Write After Approval): Adding myself.
8629
d1437c0e
TT
86302020-02-12 Tom Tromey <tom@tromey.com>
8631
8632 * event-loop.c (event_data, gdb_event, event_handler_func):
8633 Remove.
8634
3d4560f7
TT
86352020-02-12 Tom Tromey <tom@tromey.com>
8636
8637 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8638 (dwarf2_frame_objfile_data): Add comment.
8639 (find_comp_unit, set_comp_unit): New functions.
8640 (dwarf2_frame_find_fde): Use find_comp_unit.
8641 (dwarf2_build_frame_info): Use set_comp_unit.
8642
21982304
TT
86432020-02-12 Tom Tromey <tom@tromey.com>
8644
8645 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8646 (comp_unit): Don't initialize objfile.
8647 (execute_cfa_program): Add text_offset parameter.
8648 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8649 (dwarf2_frame_cache): Update.
8650 (dwarf2_build_frame_info): Don't set "objfile" member.
8651
4debb237
TT
86522020-02-12 Tom Tromey <tom@tromey.com>
8653
8654 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8655 (decode_frame_entry): Likewise.
8656 (dwarf2_build_frame_info): Update.
8657
0d404d44
TT
86582020-02-12 Tom Tromey <tom@tromey.com>
8659
8660 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8661 (decode_frame_entry_1): Use the comp_unit obstack.
8662
a7a3ae5c
TT
86632020-02-12 Tom Tromey <tom@tromey.com>
8664
8665 * dwarf2/frame.c (struct comp_unit): Add initializers and
8666 constructor.
8667 (dwarf2_frame_objfile_data): Store a comp_unit.
8668 (dwarf2_frame_find_fde): Update.
8669 (dwarf2_build_frame_info): Use "new".
8670
a9d65418
TT
86712020-02-12 Tom Tromey <tom@tromey.com>
8672
8673 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8674 (dwarf2_fde_table): Typedef for std::vector.
8675 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8676 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8677 (decode_frame_entry): Update.
8678 (dwarf2_build_frame_info): Use "new".
8679
7559c217
CB
86802020-02-12 Christian Biesinger <cbiesinger@google.com>
8681
8682 * arm-tdep.c (arm_gdbarch_init): Update.
8683 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8684 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8685 have_neon, is_m>: Change to bool.
8686
aeefc73c
CB
86872020-02-12 Christian Biesinger <cbiesinger@google.com>
8688
8689 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8690
d27b8e5f
TT
86912020-02-12 Tom Tromey <tom@tromey.com>
8692
8693 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8694
cd5900f3
HD
86952020-02-12 Hannes Domani <ssbssa@yahoo.de>
8696
8697 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8698 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8699
f056b22b
TT
87002020-02-11 Tom Tromey <tom@tromey.com>
8701
8702 * psymtab.h: Update comment.
8703
f92ff6b5
TT
87042020-02-11 Tom Tromey <tom@tromey.com>
8705
8706 * gdb_obstack.h (struct auto_obstack): Use
8707 DISABLE_COPY_AND_ASSIGN.
8708
3fd6912b
TT
87092020-02-11 Tom Tromey <tom@tromey.com>
8710
8711 * dwarf2/frame.h (struct objfile): Don't forward declare.
8712
69ed9b74
CB
87132020-02-11 Christian Biesinger <cbiesinger@google.com>
8714
8715 * cris-tdep.c (cris_supply_gregset): Change signature to match
8716 what struct regset expects.
8717 (cris_regset): New struct.
8718 (fetch_core_registers): Remove.
8719 (cris_iterate_over_regset_sections): New function.
8720 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8721 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8722
bda874f6
CB
87232020-02-11 Christian Biesinger <cbiesinger@google.com>
8724
8725 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8726 registers.
8727
754e1564
CB
87282020-02-11 Christian Biesinger <cbiesinger@google.com>
8729
8730 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8731
8ddd8e0e
SM
87322020-02-11 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * configure: Re-generate.
8735
898e7f60
SM
87362020-02-11 Simon Marchi <simon.marchi@efficios.com>
8737
8738 * configure: Re-generate.
8739
58df732b
SM
87402020-02-11 Simon Marchi <simon.marchi@efficios.com>
8741
8742 * acinclude: Update warning.m4 path.
8743 * warning.m4: Move to gdbsupport.
8744
da5bd37e
TT
87452020-02-11 Tom Tromey <tromey@adacore.com>
8746
8747 * remote.c (remote_console_output): Update.
8748 * printcmd.c (printf_command): Update.
8749 * event-loop.c (gdb_wait_for_event): Update.
8750 * linux-nat.c (sigchld_handler): Update.
8751 * remote-sim.c (gdb_os_write_stdout): Update.
8752 (gdb_os_flush_stdout): Update.
8753 (gdb_os_flush_stderr): Update.
8754 (gdb_os_write_stderr): Update.
8755 * exceptions.c (print_exception): Update.
8756 * remote-fileio.c (remote_fileio_func_read): Update.
8757 (remote_fileio_func_write): Update.
8758 * tui/tui.c (tui_enable): Update.
8759 * tui/tui-interp.c (tui_interp::init): Update.
8760 * utils.c (init_page_info): Update.
8761 (putchar_unfiltered, fputc_unfiltered): Update.
8762 (gdb_flush): Update.
8763 (emit_style_escape): Update.
8764 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8765 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8766 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8767 (stderr_file::write): Update.
8768 (stderr_file::puts): Update.
8769 * ui-file.h (ui_file_isatty, ui_file_write)
8770 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8771 (ui_file_puts): Don't declare.
8772
85f0dd3c
TV
87732020-02-10 Tom de Vries <tdevries@suse.de>
8774
8775 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8776 sentinel to char *.
8777
2e927613
TV
87782020-02-09 Tom de Vries <tdevries@suse.de>
8779
8780 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8781 filename if it matches "<artificial>".
8782
6bafc845
HD
87832020-02-09 Hannes Domani <ssbssa@yahoo.de>
8784
8785 * windows-tdep.c (struct enum_value_name): New struct.
8786 (create_enum): New function.
8787 (windows_get_siginfo_type): Create and use enum types.
8788
7928d571
HD
87892020-02-09 Hannes Domani <ssbssa@yahoo.de>
8790
8791 * NEWS: Mention $_siginfo support for Windows.
8792 * windows-nat.c (handle_exception): Set siginfo_er.
8793 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8794 (windows_xfer_siginfo): New function.
8795 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8796 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8797 (init_windows_gdbarch_data): New function.
8798 (get_windows_gdbarch_data): New function.
8799 (windows_get_siginfo_type): New function.
8800 (windows_init_abi): Register windows_get_siginfo_type.
8801 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8802
6751ebae
TT
88032020-02-08 Tom Tromey <tom@tromey.com>
8804
8805 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8806 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8807 <keep>: Declare method.
8808 <m_keep>: Remove member.
8809 <~cutu_reader>: Remove.
8810 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8811 (cutu_reader::cutu_reader): Update.
8812 (cutu_reader::keep): Rename from ~cutu_reader.
8813 (process_psymtab_comp_unit, build_type_psymtabs_1)
8814 (process_skeletonless_type_unit, load_partial_comp_unit)
8815 (load_full_comp_unit, dwarf2_read_addr_index)
8816 (read_signatured_type): Update.
8817
135f5437
TT
88182020-02-08 Tom Tromey <tom@tromey.com>
8819
8820 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8821 "want_partial_unit" parameter.
8822 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8823 Inline check for DW_TAG_partial_unit.
8824 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8825
9f66ff1c
TT
88262020-02-08 Tom Tromey <tom@tromey.com>
8827
8828 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8829 read.c.
8830 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8831 read.c.
8832
c8a7a66f
TT
88332020-02-08 Tom Tromey <tom@tromey.com>
8834
8835 * dwarf2/read.c (read_address): Move to comp-unit.c.
8836 (dwarf2_rnglists_process, dwarf2_ranges_process)
8837 (read_attribute_value, dwarf_decode_lines_1)
8838 (var_decode_location, decode_locdesc): Update.
8839 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8840 read.c. Remove "cu" parameter.
8841 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8842 method.
8843
8266302d
TT
88442020-02-08 Tom Tromey <tom@tromey.com>
8845
8846 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8847 (read_indirect_line_string): Update.
8848 * dwarf2/comp-unit.c (read_offset): Remove.
8849 (read_comp_unit_head): Update.
8850 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8851 method.
8852 (read_offset): Don't declare.
8853
4057dfde
TT
88542020-02-08 Tom Tromey <tom@tromey.com>
8855
8856 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8857 * dwarf2/read.c (struct comp_unit_head): Move to
8858 dwarf2/comp-unit.h.
8859 (enum class rcuh_kind): Move to comp-unit.h.
8860 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8861 (read_comp_unit_head, error_check_comp_unit_head)
8862 (read_and_check_comp_unit_head): Move to comp-unit.c.
8863 (read_offset, dwarf_unit_type_name): Likewise.
8864 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8865 (cutu_reader::cutu_reader, read_call_site_scope)
8866 (find_partial_die, follow_die_offset): Update.
8867 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8868
24aa364d
TT
88692020-02-08 Tom Tromey <tom@tromey.com>
8870
8871 * dwarf2/read.c (read_offset_1): Move to leb.c.
8872 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8873 (dwarf_decode_macro_bytes): Update.
8874 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8875 * dwarf2/leb.h (read_offset): Declare.
8876
2c7d5afc
TT
88772020-02-08 Tom Tromey <tom@tromey.com>
8878
8879 * dwarf2/read.c (dwarf2_section_size): Remove.
8880 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8881 Update.
8882 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8883
4075cb26
TT
88842020-02-08 Tom Tromey <tom@tromey.com>
8885
8886 * dwarf2/read.c (read_initial_length): Move to leb.c.
8887 * dwarf2/leb.h (read_initial_length): Declare.
8888 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8889 handle_nonstd parameter.
8890 * dwarf2/frame.c (read_initial_length): Remove.
8891 (decode_frame_entry_1): Update.
8892
09ba997f
TT
88932020-02-08 Tom Tromey <tom@tromey.com>
8894
8895 * dwarf2/loc.c (dwarf2_find_location_expression)
8896 (dwarf_evaluate_loc_desc::get_tls_address)
8897 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8898 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8899 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8900 (dwarf2_compile_property_to_c)
8901 (dwarf2_loc_desc_get_symbol_read_needs)
8902 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8903 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8904 (loclist_describe_location, loclist_tracepoint_var_ref)
8905 (loclist_generate_c_location): Update.
8906 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8907 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8908 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8909 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8910 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8911 (dwarf2_per_cu_data::addr_size)
8912 (dwarf2_per_cu_data::ref_addr_size)
8913 (dwarf2_per_cu_data::text_offset)
8914 (dwarf2_per_cu_data::addr_type): Now methods.
8915 (per_cu_header_read_in): Make per_cu "const".
8916 (dwarf2_version): Remove.
8917 (dwarf2_per_cu_data::int_type): Now a method.
8918 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8919 (set_die_type, read_array_type, read_subrange_index_type)
8920 (read_tag_string_type, read_subrange_type): Update.
8921 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8922 offset_size, ref_addr_size, text_offset, addr_type, version,
8923 objfile, int_type, addr_sized_int_type>: Declare methods.
8924
96c738c0
TT
89252020-02-08 Tom Tromey <tom@tromey.com>
8926
8927 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8928 Move earlier.
8929
8fdd972c
TT
89302020-02-08 Tom Tromey <tom@tromey.com>
8931
8932 * dwarf2/read.h (dwarf_line_debug): Declare.
8933 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8934 * dwarf2/read.c: Move line_header code to new files.
8935 (dwarf_line_debug): No longer static.
8936 * dwarf2/line-header.c: New file.
8937 * dwarf2/line-header.h: New file.
8938
03075812
TT
89392020-02-08 Tom Tromey <tom@tromey.com>
8940
8941 * dwarf2/read.c (struct line_header) <file_full_name,
8942 file_file_name>: Return unique_xmalloc_ptr.
8943 (line_header::file_file_name): Update.
8944 (line_header::file_full_name): Update.
8945 (dw2_get_file_names_reader): Update.
8946 (macro_start_file): Update.
8947
bb822404
TT
89482020-02-08 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2/read.c (struct line_header) <file_full_name,
8951 file_file_name>: Declare methods.
8952 (dw2_get_file_names_reader): Update.
8953 (file_file_name): Now a method.
8954 (file_full_name): Likewise.
8955 (macro_start_file): Update.
8956
009b64fc
TT
89572020-02-08 Tom Tromey <tom@tromey.com>
8958
8959 * dwarf2/read.c (dwarf_always_disassemble)
8960 (show_dwarf_always_disassemble): Move to loc.c.
8961 (_initialize_dwarf2_read): Move "always-disassemble" registration
8962 to loc.c.
8963 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8964 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8965 static.
8966 (show_dwarf_always_disassemble): Move from read.c.
8967 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8968
5895093f
TT
89692020-02-08 Tom Tromey <tom@tromey.com>
8970
8971 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8972 (create_quick_file_names_table): Return htab_up.
8973 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8974 Update.
8975 * dwarf2/read.h (struct dwarf2_per_objfile)
8976 <quick_file_names_table>: Now htab_up.
8977
b3b32279
TT
89782020-02-08 Tom Tromey <tom@tromey.com>
8979
8980 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8981
1d33d811
TT
89822020-02-08 Tom Tromey <tom@tromey.com>
8983
8984 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8985 Rewrite.
8986 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8987 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8988 (abbrev_table::abbrev_table): No longer inline.
8989 (ABBREV_HASH_SIZE): Remove.
8990 (abbrev_table::m_abbrevs): Now an htab_up.
8991
86de1d91
TT
89922020-02-08 Tom Tromey <tom@tromey.com>
8993
8994 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8995 (cutu_reader): Update.
8996 (build_type_psymtabs_1): Update.
8997 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8998 (abbrev_table::alloc_abbrev): Update.
8999 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9000 (abbrev_table::read): New static method, renamed from
9001 abbrev_table_read_table.
9002 (abbrev_table::alloc_abbrev)
9003 (abbrev_table::add_abbrev): Now private.
9004 (abbrev_table::abbrev_table): Now private.
9005 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9006
0335378b
TT
90072020-02-08 Tom Tromey <tom@tromey.com>
9008
9009 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9010 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9011 htab_up.
9012
48b490f2
TT
90132020-02-08 Tom Tromey <tom@tromey.com>
9014
9015 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9016 htab_up.
9017 (lookup_dwo_unit_in_dwp): Update.
9018 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9019 on obstack.
9020
bc68fb19
TT
90212020-02-08 Tom Tromey <tom@tromey.com>
9022
9023 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9024 obstack.
9025
d15acc42
TT
90262020-02-08 Tom Tromey <tom@tromey.com>
9027
9028 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9029 line_header_hash.
9030 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9031 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9032 Change type to htab_up.
9033
eaa5fa8b
TT
90342020-02-08 Tom Tromey <tom@tromey.com>
9035
9036 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9037 htab_up. Don't allocate on obstack.
9038 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9039 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9040 Change type to htab_up.
9041
b0b6a987
TT
90422020-02-08 Tom Tromey <tom@tromey.com>
9043
9044 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9045 Change type to htab_up.
9046 * dwarf2/read.c (create_signatured_type_table_from_index)
9047 (create_signatured_type_table_from_debug_names)
9048 (create_all_type_units, add_type_unit)
9049 (lookup_dwo_signatured_type, lookup_signatured_type)
9050 (process_skeletonless_type_unit): Update.
9051 (create_debug_type_hash_table, create_debug_types_hash_table):
9052 Change type of types_htab.
9053 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9054 htab_up. Don't allocate on obstack.
9055 (create_cus_hash_table): Change type of cus_htab parameter.
9056 (struct dwo_file) <cus, tus>: Now htab_up.
9057 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9058 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9059 (queue_and_load_all_dwo_tus): Update.
9060 * dwarf2/index-write.c (write_gdbindex): Update.
9061 (write_debug_names): Update.
9062
39856def
TT
90632020-02-08 Tom Tromey <tom@tromey.com>
9064
9065 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9066 dwarf2/read.c. Remove "next" member. Add constructor ntad
9067 destructor.
9068 (struct dwarf2_per_objfile) <queue>: New member.
9069 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9070 dwarf2/read.h.
9071 (dwarf2_queue, dwarf2_queue_tail): Remove.
9072 (class dwarf2_queue_guard): Add parameter to constructor. Use
9073 DISABLE_COPY_AND_ASSIGN.
9074 <m_per_objfile>: New member.
9075 <~dwarf2_queue_guard>: Rewrite.
9076 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9077 Update.
9078 (~dwarf2_queue_item): New.
9079
3e225074
TT
90802020-02-08 Tom Tromey <tom@tromey.com>
9081
9082 * dwarf2/read.c (struct die_info) <has_children>: New member.
9083 (dw2_get_file_names_reader): Remove has_children.
9084 (dw2_get_file_names): Update.
9085 (read_cutu_die_from_dwo): Remove has_children.
9086 (cutu_reader::init_tu_and_read_dwo_dies)
9087 (cutu_reader::cutu_reader): Update.
9088 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9089 Remove has_children.
9090 (build_type_psymtabs_1, process_skeletonless_type_unit)
9091 (load_partial_comp_unit, load_full_comp_unit): Update.
9092 (create_dwo_cu_reader): Remove has_children.
9093 (create_cus_hash_table, read_die_and_children): Update.
9094 (read_full_die_1,read_full_die): Remove has_children.
9095 (read_signatured_type): Update.
9096 (class cutu_reader) <has_children>: Remove.
9097
82ca8957
TT
90982020-02-08 Tom Tromey <tom@tromey.com>
9099
9100 * dwarf2/expr.c: Rename from dwarf2expr.c.
9101 * dwarf2/expr.h: Rename from dwarf2expr.h.
9102 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9103 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9104 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9105 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9106 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9107 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9108 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9109 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9110 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9111 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9112 * dwarf2/loc.c: Rename from dwarf2loc.c.
9113 * dwarf2/loc.h: Rename from dwarf2loc.h.
9114 * dwarf2/read.c: Rename from dwarf2read.c.
9115 * dwarf2/read.h: Rename from dwarf2read.h.
9116 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9117 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9118 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9119 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9120 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9121 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9122 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9123 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9124 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9125 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9126 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9127 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9128 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9129 Update.
9130 * Makefile.in (COMMON_SFILES): Update.
9131 (HFILES_NO_SRCDIR): Update.
9132
9e35d499
TT
91332020-02-08 Tom Tromey <tom@tromey.com>
9134
9135 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9136 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9137
1eba2311
TT
91382020-02-08 Tom Tromey <tom@tromey.com>
9139
9140 * dwarf2read.h (struct die_info): Don't declare.
9141
e41c2da2
TT
91422020-02-08 Tom Tromey <tom@tromey.com>
9143
9144 * dwarf2read.h (die_info_ptr): Remove typedef.
9145
4fc6c0d5
TT
91462020-02-08 Tom Tromey <tom@tromey.com>
9147
9148 * dwarf2read.c (read_call_site_scope)
9149 (handle_data_member_location, dwarf2_add_member_fn)
9150 (mark_common_block_symbol_computed, read_common_block)
9151 (attr_to_dynamic_prop, partial_die_info::read)
9152 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9153 (dwarf2_symbol_mark_computed, set_die_type): Update.
9154 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9155 method.
9156 (attr_form_is_block): Don't declare.
9157 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9158
cd6c91b4
TT
91592020-02-08 Tom Tromey <tom@tromey.com>
9160
9161 * dwarf2read.c (dwarf2_find_base_address, )
9162 (read_call_site_scope, rust_containing_type)
9163 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9164 (handle_data_member_location, dwarf2_add_member_fn)
9165 (get_alignment, read_structure_type, process_structure_scope)
9166 (mark_common_block_symbol_computed, read_common_block)
9167 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9168 (partial_die_info::read, read_attribute_value, new_symbol)
9169 (lookup_die_type, dwarf2_get_ref_die_offset)
9170 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9171 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9172 (dwarf2_symbol_mark_computed): Update.
9173 * dwarf2/attribute.h (struct attribute) <value_as_address,
9174 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9175 methods.
9176 (value_as_address, attr_form_is_section_offset)
9177 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9178 * dwarf2/attribute.c (attribute::value_as_address)
9179 (attribute::form_is_section_offset, attribute::form_is_constant)
9180 (attribute::form_is_ref): Now methods.
9181
162dce55
TT
91822020-02-08 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2read.c (struct attribute, DW_STRING)
9185 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9186 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9187 (attr_form_is_block, attr_form_is_section_offset)
9188 (attr_form_is_constant, attr_form_is_ref): Move.
9189 * dwarf2/attribute.h: New file.
9190 * dwarf2/attribute.c: New file, from dwarf2read.c.
9191 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9192
3054dd54
TT
91932020-02-08 Tom Tromey <tom@tromey.com>
9194
9195 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9196 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9197 Move.
9198 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9199 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9200 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9201 abbrev.c.
9202 * dwarf2/abbrev.h: New file.
9203 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9204 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9205
96b79293
TT
92062020-02-08 Tom Tromey <tom@tromey.com>
9207
9208 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9209 (dwarf2_section_size, dwarf2_get_section_info)
9210 (create_signatured_type_table_from_debug_names)
9211 (create_addrmap_from_aranges, read_debug_names_from_section)
9212 (get_gdb_index_contents_from_section, read_comp_unit_head)
9213 (error_check_comp_unit_head, read_abbrev_offset)
9214 (create_debug_type_hash_table, init_cu_die_reader)
9215 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9216 (read_comp_units_from_section, create_cus_hash_table)
9217 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9218 (create_dwp_v2_section, dwarf2_rnglists_process)
9219 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9220 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9221 (read_indirect_string_from_dwz, read_addr_index_1)
9222 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9223 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9224 (fill_in_loclist_baton): Update.
9225 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9226 get_containing_section, get_bfd_owner, get_bfd_section,
9227 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9228 (dwarf2_read_section, get_section_name, get_section_file_name)
9229 (get_containing_section, get_section_bfd_owner)
9230 (get_section_bfd_section, get_section_name, get_section_file_name)
9231 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9232 declare.
9233 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9234 (dwarf2_section_info::get_bfd_owner)
9235 (dwarf2_section_info::get_bfd_section)
9236 (dwarf2_section_info::get_name)
9237 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9238 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9239 (dwarf2_section_info::read): Now methods.
9240 * dwarf-index-write.c (class debug_names): Update.
9241
2c86cff9
TT
92422020-02-08 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9245 Move to dwarf2/section.h.
9246 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9247 (get_section_bfd_section, get_section_name)
9248 (get_section_file_name, get_section_id, get_section_flags)
9249 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9250 dwarf2/section.c.
9251 * dwarf2/section.h: New file.
9252 * dwarf2/section.c: New file, from dwarf2read.c.
9253 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9254
f4382c45
TT
92552020-02-08 Tom Tromey <tom@tromey.com>
9256
9257 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9258 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9259 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9260 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9261 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9262 * dwarf2/leb.h: New file, from dwarf2read.c.
9263 * dwarf2/leb.c: New file, from dwarf2read.c.
9264 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9265 Remove.
9266 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9267 (COMMON_SFILES): Add dwarf2/leb.c.
9268
01840b7a
JB
92692020-02-08 Joel Brobecker <brobecker@adacore.com>
9270
9271 GDB 9.1 released.
9272
dfcb27e4
IB
92732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9274
9275 PR gdb/25190:
aac66a4c
SM
9276 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9277 * gdb/remote.c (remote_console_output): Update.
9278 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9279 (ui_file_puts): ...this.
9280 * gdb/ui-file.h (ui_file_puts): Add declaration.
9281 * gdb/utils.c (emit_style_escape): Update.
9282 (flush_wrap_buffer): Update.
9283 (fputs_maybe_filtered): Update.
9284 (fputs_unfiltered): Add function.
dfcb27e4 9285
faa17681
IB
92862020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9287
aac66a4c
SM
9288 * gdb/event-loop.c (gdb_wait_for_event): Update.
9289 * gdb/printcmd.c (printf_command): Update.
9290 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9291 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9292 (gdb_os_flush_stderr): Update.
9293 * gdb/remote.c (remote_console_output): Update.
9294 * gdb/ui-file.c (gdb_flush): Rename to...
9295 (ui_file_flush): ...this.
9296 (stderr_file::write): Update.
9297 (stderr_file::puts): Update.
9298 * gdb/ui-file.h (gdb_flush): Rename to...
9299 (ui_file_flush): ...this.
9300 * gdb/utils.c (gdb_flush): Add function.
9301 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9302
5abbbe1d
TT
93032020-02-07 Tom Tromey <tromey@adacore.com>
9304
9305 PR breakpoints/24915:
9306 * source.c (find_and_open_source): Do not check basenames_may_differ.
9307
919adfe8
TT
93082020-02-07 Tom Tromey <tom@tromey.com>
9309
9310 * README: Update gdbserver documentation.
9311 * gdbserver: Move to top level.
9312 * configure.tgt (build_gdbserver): Remove.
9313 * configure.ac: Remove --enable-gdbserver.
9314 * configure: Rebuild.
9315 * Makefile.in (distclean): Don't mention gdbserver.
9316
1d5d29e7
SV
93172020-02-06 Shahab Vahedi <shahab@synopsys.com>
9318
9319 * source-cache.c (source_cache::ensure): Surround
9320 get_plain_source_lines with a try/catch.
9321 (source_cache::get_line_charpos): Get rid of try/catch
9322 and only check for the return value of "ensure".
9323 * tui/tui-source.c (tui_source_window::set_contents):
9324 Simplify "nlines" calculation.
9325
6eb1129c
SV
93262020-02-06 Shahab Vahedi <shahab@synopsys.com>
9327
9328 * MAINTAINERS (Write After Approval): Add myself.
9329
c6a42d11
CB
93302020-02-05 Christian Biesinger <cbiesinger@google.com>
9331
9332 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9333 function call.
9334
c8ecdda6
CB
93352020-02-05 Christian Biesinger <cbiesinger@google.com>
9336
9337 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9338
f6480e70
MR
93392020-02-05 Maciej W. Rozycki <macro@wdc.com>
9340
9341 * nat/riscv-linux-tdesc.h: New file.
9342 * nat/riscv-linux-tdesc.c: New file, taking code from...
9343 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9344 ... here.
9345 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9346 NATDEPFILES.
9347
dcc9fbc6
AB
93482020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9349
9350 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9351 we don't set the fake simulator ptid to the null_ptid.
9352
719546c4
SM
93532020-02-03 Simon Marchi <simon.marchi@efficios.com>
9354
9355 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9356 * gdbthread.h (class thread_info) <resumed>: Likewise.
9357 * infrun.c (resume_1): Likewise.
9358 (proceed): Likewise.
9359 (infrun_thread_stop_requested): Likewise.
9360 (stop_all_threads): Likewise.
9361 (handle_inferior_event): Likewise.
9362 (restart_threads): Likewise.
9363 (finish_step_over): Likewise.
9364 (keep_going_stepped_thread): Likewise.
9365 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9366 (linux_handle_extended_wait): Likewise.
9367 * record-btrace.c (get_thread_current_frame_id): Likewise.
9368 * record-full.c (record_full_wait_1): Likewise.
9369 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9370 * target.c (target_resume): Likewise.
9371 * thread.c (set_running_thread): Likewise.
9372
e409c542
AKS
93732020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9374
9375 * f-valprint.c (f77_print_array_1): Changed datatype of index
9376 variable to LONGEST from int to enable it to contain bound
9377 values correctly.
9378
ee98c0da
MR
93792020-02-03 Maciej W. Rozycki <macro@wdc.com>
9380
9381 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9382 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9383 offsets according to FLEN determined.
9384 (riscv_linux_nat_target::read_description): Determine FLEN
9385 dynamically.
9386 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9387 according to FLEN determined.
9388 (riscv_linux_nat_target::store_registers): Likewise.
9389
aa66aac4
SV
93902020-02-01 Shahab Vahedi <shahab@synopsys.com>
9391
9392 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9393 when reg->group is empty and reggroup is not.
9394
fd9faca8
TT
93952020-01-31 Tom Tromey <tromey@adacore.com>
9396
9397 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9398 Call beneath target's mourn_inferior after unpushing.
9399
42330a68
AB
94002020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9401
9402 PR tui/9765
9403 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9404 have enough lines to fill the screen, still return the lowest
9405 address we found.
9406
7a27a45b
AB
94072020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9408
9409 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9410 '-', '<', and '>' commands.
9411
c47f70e2
PA
94122020-01-29 Pedro Alves <palves@redhat.com>
9413 Sergio Durigan Junior <sergiodj@redhat.com>
9414
9415 * infcmd.c (construct_inferior_arguments): Assert that
9416 'argc' is greater than 0.
9417
5133a315
LM
94182020-01-29 Luis Machado <luis.machado@linaro.org>
9419
9420 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9421 (BRK_INSN_MASK): Define to 0xd4200000.
9422 (aarch64_program_breakpoint_here_p): New function.
9423 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9424 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9425 breakpoint.c.
9426 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9427 breakpoint.h
9428 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9429 call gdbarch_program_breakpoint_here_p.
9430 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9431 default_program_breakpoint_here_p, changed return type to bool and
9432 simplified.
9433 * breakpoint.h (program_breakpoint_here): Moved prototype to
9434 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9435 return type to bool.
9436 * gdbarch.c: Regenerate.
9437 * gdbarch.h: Regenerate.
9438 * gdbarch.sh (program_breakpoint_here_p): New method.
9439 * infrun.c (handle_signal_stop): Call
9440 gdbarch_program_breakpoint_here_p.
9441
168f8c6b
TT
94422020-01-26 Tom Tromey <tom@tromey.com>
9443
9444 * ctfread.c (struct ctf_fp_info): Reindent.
9445 (_initialize_ctfread): Remove.
9446
128a391f
TT
94472020-01-26 Tom Tromey <tom@tromey.com>
9448
9449 * psymtab.c (partial_map_expand_apply)
9450 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9451 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9452 (psym_print_stats, psym_expand_symtabs_for_function)
9453 (psym_map_symbol_filenames, psym_map_matching_symbols)
9454 (psym_expand_symtabs_matching)
9455 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9456 (maintenance_check_psymtabs): Use new methods.
9457 * psympriv.h (struct partial_symtab) <readin_p,
9458 get_compunit_symtab>: New methods.
9459 <readin, compunit_symtab>: Remove members.
9460 (struct standard_psymtab): New.
9461 (struct legacy_psymtab): Derive from standard_psymtab.
9462 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9463 standard_psymtab.
9464 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9465
0494dbec
TT
94662020-01-26 Tom Tromey <tom@tromey.com>
9467
9468 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9469 read_dependencies. Add assert.
9470 * psymtab.c (partial_symtab::read_dependencies): New method.
9471 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9472 method.
9473 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9474 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9475 read_dependencies.
9476 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9477 Add assert.
9478
8566b89b
TT
94792020-01-26 Tom Tromey <tom@tromey.com>
9480
9481 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9482 Call expand_psymtab.
9483 (xcoff_read_symtab): Call expand_psymtab.
9484 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9485 legacy_expand_psymtab.
9486 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9487 method.
9488 (struct legacy_psymtab) <expand_psymtab>: Implement.
9489 <legacy_expand_psymtab>: New member.
9490 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9491 (parse_partial_symbols): Set legacy_expand_psymtab.
9492 (psymtab_to_symtab_1): Change argument order. Call
9493 expand_psymtab.
9494 (new_psymtab): Set legacy_expand_psymtab.
9495 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9496 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9497 expand_psymtab.
9498 (dwarf2_psymtab::expand_psymtab): Rename from
9499 psymtab_to_symtab_1. Call expand_psymtab.
9500 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9501 (dbx_end_psymtab): Likewise.
9502 (dbx_psymtab_to_symtab_1): Change argument order. Call
9503 expand_psymtab.
9504 (dbx_read_symtab): Call expand_psymtab.
9505 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9506 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9507 (ctf_psymtab::read_symtab): Call expand_psymtab.
9508
077cbab2
TT
95092020-01-26 Tom Tromey <tom@tromey.com>
9510
9511 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9512 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9513 messages.
9514 * mdebugread.c (mdebug_read_symtab): Remove prints.
9515 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9516 assert.
9517 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9518
891813be
TT
95192020-01-26 Tom Tromey <tom@tromey.com>
9520
9521 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9522 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9523 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9524 legacy_symtab.
9525 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9526 * psymtab.c (psymtab_to_symtab): Call method.
9527 (dump_psymtab): Update.
9528 * psympriv.h (struct partial_symtab): Add virtual destructor.
9529 <read_symtab>: New method.
9530 (struct legacy_symtab): New.
9531 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9532 (struct pst_map) <pst>: Now a legacy_psymtab.
9533 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9534 (new_psymtab): Use legacy_psymtab.
9535 * dwarf2read.h (struct dwarf2_psymtab): New.
9536 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9537 * dwarf2read.c (dwarf2_create_include_psymtab)
9538 (dwarf2_build_include_psymtabs, create_type_unit_group)
9539 (create_partial_symtab, process_psymtab_comp_unit_reader)
9540 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9541 (set_partial_user): Use dwarf2_psymtab.
9542 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9543 (psymtab_to_symtab_1, process_full_comp_unit)
9544 (process_full_type_unit, dwarf2_ranges_read)
9545 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9546 (dwarf_decode_lines): Use dwarf2_psymtab.
9547 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9548 (add_address_entry_worker, write_one_signatured_type)
9549 (recursively_count_psymbols, recursively_write_psymbols)
9550 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9551 (write_debug_names): Likewise.
9552 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9553 <pst>: Now a legacy_psymtab.
9554 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9555 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9556 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9557 * ctfread.c (struct ctf_psymtab): New.
9558 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9559 ctf_psymtab.
9560 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9561 (create_partial_symtab): Return a ctf_psymtab.
9562 (scan_partial_symbols): Update.
9563
c3693a1d
TT
95642020-01-26 Tom Tromey <tom@tromey.com>
9565
9566 * xcoffread.c (xcoff_start_psymtab): Use new.
9567 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9568 renamed from start_psymtab_common.
9569 * psympriv.h (struct partial_symtab): Add new constructor.
9570 (start_psymtab_common): Don't declare.
9571 * mdebugread.c (parse_partial_symbols): Use new.
9572 * dwarf2read.c (create_partial_symtab): Use new.
9573 * dbxread.c (start_psymtab): Use new.
9574 * ctfread.c (create_partial_symtab): Use new.
9575
32caafd0
TT
95762020-01-26 Tom Tromey <tom@tromey.com>
9577
9578 * xcoffread.c (xcoff_end_psymtab): Use new.
9579 * psymtab.c (start_psymtab_common): Use new.
9580 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9581 Update.
9582 * psympriv.h (struct partial_symtab): Add parameters to
9583 constructor. Don't inline.
9584 (allocate_psymtab): Don't declare.
9585 * mdebugread.c (new_psymtab): Use new.
9586 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9587 * dbxread.c (dbx_end_psymtab): Use new.
9588
abaa2f23
TT
95892020-01-26 Tom Tromey <tom@tromey.com>
9590
9591 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9592 allocate_psymtab. Update documentation.
9593 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9594 allocate_psymtab. Do not use new.
9595 (allocate_psymtab): Use new. Update.
9596
6d94535f
TT
95972020-01-26 Tom Tromey <tom@tromey.com>
9598
9599 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9600 * psymtab.c (psym_print_stats): Update.
9601 * psympriv.h (struct partial_symtab) <readin,
9602 psymtabs_addrmap_supported, anonymous>: Now bool.
9603 * mdebugread.c (psymtab_to_symtab_1): Update.
9604 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9605 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9606 (process_full_comp_unit, process_full_type_unit): Update.
9607 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9608 * ctfread.c (psymtab_to_symtab): Update.
9609
6f17252b
TT
96102020-01-26 Tom Tromey <tom@tromey.com>
9611
9612 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9613 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9614 * psymtab.c (psymtab_storage): Delete psymtabs.
9615 (psymtab_storage::allocate_psymtab): Use new.
9616 (psymtab_storage::discard_psymtab): Use delete.
9617 * psympriv.h (struct partial_symtab): Add constructor and
9618 initializers.
9619
f6f1cebc
TT
96202020-01-26 Tom Tromey <tom@tromey.com>
9621
9622 * machoread.c: Do not include psympriv.h.
9623
e47e48f6
PW
96242020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9625
9626 * NEWS: Mention the new option and the set/show commands.
9627
a2fedca9
PW
96282020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9629
9630 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9631 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9632 (validate_exec_file): New variables, enums, functions.
9633 (exec_file_locate_attach, print_section_info): Style the filenames.
9634 (_initialize_exec): Install show_exec_file_mismatch_command and
9635 set_exec_file_mismatch_command.
9636 * gdbcore.h (validate_exec_file): Declare.
9637 * infcmd.c (attach_command): Call validate_exec_file.
9638 * remote.c ( remote_target::remote_add_inferior): Likewise.
9639
7ffa82e1
AB
96402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9641
9642 * frame.c (find_frame_sal): Move call to get_next_frame into more
9643 inner scope.
9644 * inline-frame.c (inilne_state) <inline_state>: Update argument
9645 types.
9646 (inilne_state) <skipped_symbol>: Rename to...
9647 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9648 (skip_inline_frames): Build vector of skipped symbols and use this
9649 to reate the inline_state.
9650 (inline_skipped_symbol): Add a comment and some assertions, fetch
9651 skipped symbol from the list.
9652
3d92a3e3
AB
96532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9654
9655 * buildsym.c (lte_is_less_than): Delete.
9656 (buildsym_compunit::end_symtab_with_blockvector): Create local
9657 lambda function to sort line table entries, and use
9658 std::stable_sort instead of std::sort.
9659 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9660 markers when looking for a previous line.
9661
94a72be7
AB
96622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9663
9664 * dwarf2read.c (lnp_state_machine::record_line): Include
9665 end_sequence parameter in debug print out. Record the line if we
9666 are at an end_sequence marker even if it's not the start of a
9667 statement.
9668 * symmisc.c (maintenance_print_one_line_table): Print end of
9669 sequence markers with 'END' not '0'.
9670
53af73bf
PA
96712020-01-24 Pedro Alves <palves@redhat.com>
9672
9673 PR gdb/25410
9674 * thread.c (scoped_restore_current_thread::restore): Use
9675 switch_to_inferior_no_thread.
9676 * exec.c: Include "progspace-and-thread.h".
9677 (add_target_sections, remove_target_sections):
9678 scoped_restore_current_pspace_and_thread instead of
9679 scoped_restore_current_thread.
9680 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9681 and aspace to the inferior before calling clone_program_space.
9682 Remove stale comment.
9683
3050c6f4
CB
96842020-01-24 Christian Biesinger <cbiesinger@google.com>
9685
9686 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9687 (arm_netbsd_nat_target::fetch_registers): ...this.
9688 (arm_nbsd_nat_target::store_registers): Rename to...
9689 (arm_netbsd_nat_target::store_registers): ...this.
9690
73685c7e
CB
96912020-01-24 Christian Biesinger <cbiesinger@google.com>
9692
9693 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9694 register_t.
9695
89203d40
CB
96962020-01-24 Christian Biesinger <cbiesinger@google.com>
9697
9698 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9699 Update comment.
9700 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9701 Likewise.
9702 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9703 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9704 the correct replacement (iterate_over_regset_sections).
9705 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9706 Update comment.
9707
1ba1ac88
AB
97082020-01-24 Graham Markall <graham.markall@embecosm.com>
9709
9710 PR gdb/23718
9711 * gdb/python/python.c (execute_gdb_command): Call
9712 async_enable_stdin in catch block.
9713
f3364a6d
AB
97142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9715
9716 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9717 SWITCH_THRU_ALL_UIS.
9718
733d0a67
AB
97192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9720
9721 PR tui/9765
9722 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9723 comment, add extra parameter, and update to store previous symbol
9724 when appropriate.
9725 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9726 add extra parameter.
9727 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9728 remove unneeded parameter, add try/catch around gdb_print_insn,
9729 rewrite to add items to asm_lines vector.
9730 (tui_find_backward_disassembly_start_address): New function.
9731 (tui_find_disassembly_address): Updated throughout.
9732 (tui_disasm_window::set_contents): Update for changes to
9733 tui_disassemble.
9734 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9735 number of lines to scroll.
9736
b3b3bada
SM
97372020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9738
9739 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9740 (SECT_OFF_DATA): Likewise.
9741 (SECT_OFF_RODATA): Likewise.
9742 (SECT_OFF_TEXT): Likewise.
9743 (SECT_OFF_BSS): Likewise.
9744 (struct objfile) <text_section_offset, data_section_offset>: New
9745 methods.
9746 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9747 objfile::text_section_offset.
9748 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9749 * coffread.c (coff_symtab_read): Likewise.
9750 (enter_linenos): Likewise.
9751 (process_coff_symbol): Likewise.
9752 * ctfread.c (get_objfile_text_range): Likewise.
9753 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9754 Use objfile::data_section_offset.
9755 * dwarf2-frame.c (execute_cfa_program): Use
9756 objfile::text_section_offset.
9757 (dwarf2_frame_find_fde): Likewise.
9758 * dwarf2read.c (create_addrmap_from_index): Likewise.
9759 (create_addrmap_from_aranges): Likewise.
9760 (dw2_find_pc_sect_compunit_symtab): Likewise.
9761 (process_psymtab_comp_unit_reader): Likewise.
9762 (add_partial_symbol): Likewise.
9763 (add_partial_subprogram): Likewise.
9764 (process_full_comp_unit): Likewise.
9765 (read_file_scope): Likewise.
9766 (read_func_scope): Likewise.
9767 (read_lexical_block_scope): Likewise.
9768 (read_call_site_scope): Likewise.
9769 (dwarf2_rnglists_process): Likewise.
9770 (dwarf2_ranges_process): Likewise.
9771 (dwarf2_ranges_read): Likewise.
9772 (dwarf_decode_lines_1): Likewise.
9773 (new_symbol): Likewise.
9774 (dwarf2_fetch_die_loc_sect_off): Likewise.
9775 (dwarf2_per_cu_text_offset): Likewise.
9776 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9777 * hppa-tdep.c (read_unwind_info): Likewise.
9778 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9779 * psympriv.h (struct partial_symtab): Likewise.
9780 * psymtab.c (find_pc_sect_psymtab): Likewise.
9781 * solib-svr4.c (enable_break): Likewise.
9782 * stap-probe.c (relocate_address): Use
9783 objfile::data_section_offset.
9784 * xcoffread.c (enter_line_range): Use
9785 objfile::text_section_offset.
9786 (read_xcoff_symtab): Likewise.
9787
ab53f382
SM
97882020-01-23 Simon Marchi <simon.marchi@efficios.com>
9789
9790 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9791 declaration to narrower scopes.
9792
e7eee665
SM
97932020-01-23 Simon Marchi <simon.marchi@efficios.com>
9794
9795 * darwin-nat.h (struct darwin_exception_msg, enum
9796 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9797 Move up.
9798 (class darwin_nat_target) <wait_1, check_new_threads,
9799 decode_exception_message, decode_message, stop_inferior,
9800 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9801 * darwin-nat.c (darwin_check_new_threads): Rename to...
9802 (darwin_nat_target::check_new_threads): ... this.
9803 (darwin_suspend_inferior_it): Remove.
9804 (darwin_decode_exception_message): Rename to...
9805 (darwin_nat_target::decode_exception_message): ... this.
9806 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9807 (darwin_decode_message): Rename to...
9808 (darwin_nat_target::decode_message): ... this.
9809 (cancel_breakpoint): Rename to...
9810 (darwin_nat_target::cancel_breakpoint): ... this.
9811 (darwin_wait): Rename to...
9812 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9813 instead of iterate_over_inferiors.
9814 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9815 (darwin_stop_inferior): Rename to...
9816 (darwin_nat_target::stop_inferior): ... this.
9817 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9818 (darwin_init_thread_list): Rename to...
9819 (darwin_nat_target::init_thread_list): ... this.
9820 (darwin_ptrace_him): Rename to...
9821 (darwin_nat_target::ptrace_him): ... this.
9822 (darwin_nat_target::create_inferior): Pass lambda function to
9823 fork_inferior.
9824 (darwin_nat_target::detach): Call stop_inferior instead of
9825 darwin_stop_inferior.
9826 * fork-inferior.h (fork_inferior): Change init_trace_fun
9827 parameter to gdb::function_view.
9828 * fork-inferior.c (fork_inferior): Likewise.
9829
c162ed3e
HD
98302020-01-23 Hannes Domani <ssbssa@yahoo.de>
9831
9832 * i386-cygwin-tdep.c (core_process_module_section): Update.
9833 * windows-nat.c (struct lm_info_windows): Add text_offset.
9834 (windows_xfer_shared_libraries): Update.
9835 * windows-tdep.c (windows_xfer_shared_library):
9836 Add text_offset_cached argument.
9837 * windows-tdep.h (windows_xfer_shared_library): Update.
9838
a1237872
SM
98392020-01-21 Simon Marchi <simon.marchi@efficios.com>
9840
9841 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9842
b3ee6dd9
SM
98432020-01-21 Simon Marchi <simon.marchi@efficios.com>
9844
9845 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9846 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9847 replace with range-based for.
9848 (gdbsim_interrupt_inferior): Remove.
9849 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9850 with a range-based for. Inline code from
9851 gdbsim_interrupt_inferior.
9852
f9fac3c8
SM
98532020-01-21 Simon Marchi <simon.marchi@efficios.com>
9854
9855 * infrun.c (proceed): Fix indentation.
9856
f6474de9
TT
98572020-01-21 Tom Tromey <tromey@adacore.com>
9858
9859 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9860 * python/python.c (python_extension_ops): Update.
9861 (gdbpy_colorize): New function.
9862 * python/lib/gdb/__init__.py (colorize): New function.
9863 * extension.h (ext_lang_colorize): Declare.
9864 * extension.c (ext_lang_colorize): New function.
9865 * extension-priv.h (struct extension_language_ops) <colorize>: New
9866 member.
9867 * cli/cli-style.c (_initialize_cli_style): Update help text.
9868
f0c702d4
LM
98692020-01-21 Luis Machado <luis.machado@linaro.org>
9870
9871 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9872 <cond>: Change type to bool.
9873 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9874 (aarch64_displaced_step_cb): Likewise.
9875 (aarch64_displaced_step_tb): Likewise.
9876
1ab139e5
LM
98772020-01-21 Luis Machado <luis.machado@linaro.org>
9878
9879 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9880 output.
9881
0c271889
LM
98822020-01-21 Luis Machado <luis.machado@linaro.org>
9883
9884 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9885 <pc_adjust>: Adjust the documentation.
9886 (aarch64_displaced_step_fixup): Check if PC really moved before
9887 adjusting it.
9888
4d89c1c7
TT
98892020-01-19 Tom Tromey <tom@tromey.com>
9890
9891 * disasm.c (~gdb_disassembler): New destructor.
9892 (gdb_buffered_insn_length): Call disassemble_free_target.
9893 * disasm.h (class gdb_disassembler): Declare destructor. Use
9894 DISABLE_COPY_AND_ASSIGN.
9895
c0ab21c2
TT
98962020-01-19 Tom Tromey <tom@tromey.com>
9897
9898 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9899 (die_reader_func_ftype): Remove.
9900 (cutu_reader): New class.
9901 (dw2_get_file_names_reader): Remove "data" parameter.
9902 (dw2_get_file_names): Use cutu_reader.
9903 (create_debug_type_hash_table): Update.
9904 (read_cutu_die_from_dwo): Update comment.
9905 (lookup_dwo_unit): Add dwo_name parameter.
9906 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9907 die_reader_func_ftype and data parameters.
9908 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9909 Remove die_reader_func_ftype and data parameters.
9910 (~cutu_reader): New; from init_cutu_and_read_dies.
9911 (cutu_reader::cutu_reader): Rename from
9912 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9913 and data parameters.
9914 (init_cutu_and_read_dies_simple): Remove.
9915 (struct process_psymtab_comp_unit_data): Remove.
9916 (process_psymtab_comp_unit_reader): Remove data parameter; add
9917 want_partial_unit and pretend_language parameters.
9918 (process_psymtab_comp_unit): Use cutu_reader.
9919 (build_type_psymtabs_reader): Remove data parameter.
9920 (build_type_psymtabs_1): Use cutu_reader.
9921 (process_skeletonless_type_unit): Likewise.
9922 (load_partial_comp_unit_reader): Remove.
9923 (load_partial_comp_unit): Use cutu_reader.
9924 (load_full_comp_unit_reader): Remove.
9925 (load_full_comp_unit): Use cutu_reader.
9926 (struct create_dwo_cu_data): Remove.
9927 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9928 dwo_unit parameters.
9929 (create_cus_hash_table): Use cutu_reader.
9930 (struct dwarf2_read_addr_index_data): Remove.
9931 (dwarf2_read_addr_index_reader): Remove.
9932 (dwarf2_read_addr_index): Use cutu_reader.
9933 (read_signatured_type_reader): Remove.
9934 (read_signatured_type): Use cutu_reader.
9935
45bbae5c
TT
99362020-01-19 Tom Tromey <tom@tromey.com>
9937
9938 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9939 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9940 (tui_wrefresh): Declare.
9941 * tui/tui-wingeneral.c (suppress_output): New global.
9942 (tui_suppress_output, ~tui_suppress_output): New constructor and
9943 destructor.
9944 (tui_wrefresh): New function.
9945 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9946 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9947 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9948 method.
9949 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9950 tui_wrefresh.
9951 (tui_data_window::no_refresh): New method.
9952 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9953 (tui_reg_command): Use tui_suppress_output
9954 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9955 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9956 method.
9957 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9958
4f13c1c0
TT
99592020-01-19 Tom Tromey <tom@tromey.com>
9960
9961 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9962 Handle case where symtab is null.
9963
fa47e446
SM
99642020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9965
9966 * linux-fork.c (one_fork_p): Simplify.
9967
26f42329
SM
99682020-01-17 Simon Marchi <simon.marchi@efficios.com>
9969
9970 * top.c (struct qt_args): Remove.
9971 (kill_or_detach): Change return type to void, replace `void *`
9972 parameter with a proper one.
9973 (print_inferior_quit_action): Likewise.
9974 (quit_confirm): Use range-based for loop to iterate over inferiors.
9975 (quit_force): Likewise.
9976
a9ac81b1
SM
99772020-01-17 Simon Marchi <simon.marchi@efficios.com>
9978
9979 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9980 `void *` parameter with proper parameters.
9981 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9982 (print_one_inferior): Change return type to void, replace `void *`
9983 parameter with proper parameters.
9984 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9985 inferiors.
9986 (get_other_inferior): Remove.
9987 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9988 inferiors.
9989
788eca49
SM
99902020-01-17 Simon Marchi <simon.marchi@efficios.com>
9991
9992 * mi/mi-interp.c (report_initial_inferior): Remove.
9993 (mi_interp::init): Use range-based for to iterate over inferiors.
9994
d9bc85b6
SM
99952020-01-17 Simon Marchi <simon.marchi@efficios.com>
9996
9997 * python/py-inferior.c (build_inferior_list): Remove.
9998 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9999
40c94099
CB
100002020-01-16 Christian Biesinger <cbiesinger@google.com>
10001
10002 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10003 (btrace_stitch_trace): Likewise.
10004 * charset.c (intermediate_encoding): Likewise (vaild).
10005 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10006 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10007 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10008
e0cdfe3c
HD
100092020-01-16 Hannes Domani <ssbssa@yahoo.de>
10010
10011 * windows-tdep.c (windows_get_tlb_type):
10012 Add rtl_user_process_parameters type.
10013
790f1718 100142020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10015 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10016
10017 PR build/24805
10018 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10019 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10020 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10021 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10022 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10023 (ps_plog): Redeclare exported functions with default visibility.
10024
3112ed97
NA
100252020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10026
10027 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10028 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10029
8dc3273e
SM
100302020-01-15 Simon Marchi <simon.marchi@efficios.com>
10031
10032 * infcmd.c (post_create_inferior): Use get_thread_regcache
10033 instead of get_current_regcache.
10034
ff47f4f0
TT
100352020-01-14 Tom Tromey <tom@tromey.com>
10036
10037 PR symtab/12535:
10038 * python/python.c (gdbpy_decode_line): Treat empty string the same
10039 as no argument.
10040
975f45b7
TT
100412020-01-14 Tom Tromey <tom@tromey.com>
10042
10043 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10044
25e57356
TT
100452020-01-14 Tom Tromey <tom@tromey.com>
10046
10047 * nat/linux-btrace.c: Don't include <config.h>.
10048 * nat/linux-ptrace.c: Don't include <config.h>.
10049 * nat/x86-linux-dregs.c: Don't include <config.h>.
10050
05ea2a05
TT
100512020-01-14 Tom Tromey <tom@tromey.com>
10052
10053 * configure: Rebuild.
10054 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10055
01027315
TT
100562020-01-14 Tom Tromey <tom@tromey.com>
10057
10058 * nat/x86-linux-dregs.c: Include configh.h.
10059 * nat/linux-ptrace.c: Include configh.h.
10060 * nat/linux-btrace.c: Include configh.h.
10061 * defs.h: Include config.h, bfd.h.
10062 * configure.ac: Don't source common.host.
10063 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10064 * configure: Rebuild.
10065 * acinclude.m4: Update path.
10066 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10067 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10068 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10069 (CLIBS): Add LIBSUPPORT.
10070 (CDEPS): Likewise.
10071 (COMMON_SFILES): Remove gdbsupport files.
10072 (HFILES_NO_SRCDIR): Likewise.
10073 (stamp-version): Update path to create-version.sh.
10074 (ALLDEPFILES): Remove gdbsupport files.
10075
b2ceabe8
TT
100762020-01-14 Tom Tromey <tom@tromey.com>
10077
10078 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10079 USE_WIN32API when needed.
10080 * configure.ac (USE_WIN32API): Don't define.
10081 (WIN32LIBS): Use WIN32APILIBS.
10082 * configure: Rebuild.
10083
25c51f71
TT
100842020-01-14 Tom Tromey <tom@tromey.com>
10085
10086 * configure: Rebuild.
10087 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10088
717c684d
BE
100892020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10090
10091 * skip.c (skip_function_command): Make skip w/o arguments use the
10092 name of the inlined function if pc is inside any inlined function.
10093
7da6a5b9
LM
100942020-01-14 Luis Machado <luis.machado@linaro.org>
10095
10096 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10097 * infrun.c (resume_1): Likewise.
10098 (handle_inferior_event): Remove stale comment.
10099 * linux-nat.c (linux_nat_target::resume): Update comments.
10100 (save_stop_reason): Likewise.
10101 (linux_nat_filter_event): Likewise.
10102 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10103
44e4c775
AB
101042020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10105
10106 * elfread.c (record_minimal_symbol): Set section index to 0 for
10107 non-allocatable sections.
10108
18a8505e
AT
10109
101102020-01-13 Ali Tamur <tamur@google.com>
10111
10112 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10113 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10114 to gdb::optional. Update comments.
10115 (dwo_file): Update comments.
10116 (read_attribute): Update API to take an additional out parameter,
10117 need_reprocess. This is used to mark attributes that need other
10118 attributes (e.g. str_offsets_base) for correct computation which may not
10119 have been read yet.
10120 (read_attribute_reprocess): New function declaration.
10121 (read_addr_index): Likewise.
10122 (read_dwo_str_index): Likewise.
10123 (read_stub_str_index): Likewise.
10124 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10125 (lookup_addr_base): New function definition.
10126 (lookup_ranges_base): Likewise.
10127 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10128 lookup_ranges_base.
10129 (init_cutu_and_read_dies): Update comments.
10130 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10131 unit. This is used to inherit parent's str_offsets_base and addr_base.
10132 Update comments.
10133 (init_cutu_and_read_dies_simple): Reflect API changes.
10134 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10135 (create_cus_hash_table): Change API to take parent compile unit.
10136 Reflect API changes.
10137 (open_and_init_dwo_file): Reflect API changes.
10138 (dwarf2_get_pc_bounds): Update comments.
10139 (dwarf2_record_block_ranges): Likewise.
10140 (read_full_die_1): Change implementation to reprocess attributes that
10141 need str_offsets_base and addr_base.
10142 (partial_die_info::read): Likewise.
10143 (read_attribute_reprocess): New function definition.
10144 (read_attribute_value): Change API to take an additional out parameter,
10145 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10146 when a non-dwo compile unit has index based attributes.
10147 (read_attribute): Reflect API changes.
10148 (read_addr_index_1): Reflect API changes. Update comments.
10149 (dwarf2_read_addr_index_data): Reflect API changes.
10150 (dwarf2_read_addr_index): Likewise.
10151 (read_str_index): Change API and implementation. This becomes a helper
10152 to be used by the new string index related methods. Update error
10153 message and comments.
10154 (read_dwo_str_index): New function definition.
10155 (read_stub_str_index): Likewise.
10156 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10157 * symfile.h (dwarf2_debug_sections): Likewise.
10158 * xcoffread.c (dwarf2_debug_sections): Likewise.
10159
0cac9354
SM
101602020-01-13 Simon Marchi <simon.marchi@efficios.com>
10161
10162 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10163 core_reg_sect type to gdb_byte *.
10164 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10165 * cris-tdep.c (fetch_core_registers): Likewise.
10166 * corelow.c (core_target::get_core_register_section): Change
10167 type of `contents` to gdb::byte_vector.
10168
9a6d629c
AB
101692020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10170
10171 * tui/tui-wingeneral.c (box_win): Position the title in the center
10172 of the border.
10173
d8b2f9e3
SM
101742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10175
10176 * corelow.c (core_target::get_core_register_section): Use
10177 std::vector instead of alloca.
10178
bb564c58
SM
101792020-01-13 Simon Marchi <simon.marchi@efficios.com>
10180
10181 * warning.m4: Add -Wmissing-declarations to build_warnings.
10182 * configure: Re-generate.
10183
6b366111
SM
101842020-01-13 Simon Marchi <simon.marchi@efficios.com>
10185
10186 * python/python.c (init__gdb_module): Add declaration.
10187
6c265988
SM
101882020-01-13 Simon Marchi <simon.marchi@efficios.com>
10189
10190 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10191 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10192 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10193 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10194 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10195 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10196 * ada-exp.y (_initialize_ada_exp): Add declaration.
10197 * ada-lang.c (_initialize_ada_language): Add declaration.
10198 * ada-tasks.c (_initialize_tasks): Add declaration.
10199 * agent.c (_initialize_agent): Add declaration.
10200 * aix-thread.c (_initialize_aix_thread): Add declaration.
10201 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10202 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10203 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10204 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10205 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10206 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10207 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10208 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10209 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10210 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10211 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10212 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10213 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10214 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10215 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10216 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10217 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10218 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10219 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10220 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10221 * annotate.c (_initialize_annotate): Add declaration.
10222 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10223 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10224 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10225 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10226 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10227 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10228 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10229 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10230 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10231 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10232 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10233 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10234 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10235 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10236 * auto-load.c (_initialize_auto_load): Add declaration.
10237 * auxv.c (_initialize_auxv): Add declaration.
10238 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10239 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10240 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10241 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10242 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10243 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10244 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10245 * breakpoint.c (_initialize_breakpoint): Add declaration.
10246 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10247 * btrace.c (_initialize_btrace): Add declaration.
10248 * charset.c (_initialize_charset): Add declaration.
10249 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10250 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10251 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10252 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10253 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10254 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10255 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10256 * coffread.c (_initialize_coffread): Add declaration.
10257 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10258 * compile/compile.c (_initialize_compile): Add declaration.
10259 * complaints.c (_initialize_complaints): Add declaration.
10260 * completer.c (_initialize_completer): Add declaration.
10261 * copying.c (_initialize_copying): Add declaration.
10262 * corefile.c (_initialize_core): Add declaration.
10263 * corelow.c (_initialize_corelow): Add declaration.
10264 * cp-abi.c (_initialize_cp_abi): Add declaration.
10265 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10266 * cp-support.c (_initialize_cp_support): Add declaration.
10267 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10268 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10269 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10270 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10271 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10272 * ctfread.c (_initialize_ctfread): Add declaration.
10273 * d-lang.c (_initialize_d_language): Add declaration.
10274 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10275 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10276 * dbxread.c (_initialize_dbxread): Add declaration.
10277 * dcache.c (_initialize_dcache): Add declaration.
10278 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10279 * disasm.c (_initialize_disasm): Add declaration.
10280 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10281 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10282 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10283 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10284 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10285 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10286 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10287 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10288 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10289 * elfread.c (_initialize_elfread): Add declaration.
10290 * exec.c (_initialize_exec): Add declaration.
10291 * extension.c (_initialize_extension): Add declaration.
10292 * f-lang.c (_initialize_f_language): Add declaration.
10293 * f-valprint.c (_initialize_f_valprint): Add declaration.
10294 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10295 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10296 * filesystem.c (_initialize_filesystem): Add declaration.
10297 * findcmd.c (_initialize_mem_search): Add declaration.
10298 * findvar.c (_initialize_findvar): Add declaration.
10299 * fork-child.c (_initialize_fork_child): Add declaration.
10300 * frame-base.c (_initialize_frame_base): Add declaration.
10301 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10302 * frame.c (_initialize_frame): Add declaration.
10303 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10304 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10305 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10306 * gcore.c (_initialize_gcore): Add declaration.
10307 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10308 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10309 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10310 * gdbarch.c (_initialize_gdbarch): Add declaration.
10311 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10312 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10313 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10314 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10315 * go-lang.c (_initialize_go_language): Add declaration.
10316 * go32-nat.c (_initialize_go32_nat): Add declaration.
10317 * guile/guile.c (_initialize_guile): Add declaration.
10318 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10319 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10320 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10321 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10322 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10323 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10324 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10325 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10326 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10327 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10328 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10329 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10330 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10331 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10332 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10333 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10334 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10335 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10336 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10337 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10338 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10339 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10340 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10341 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10342 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10343 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10344 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10345 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10346 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10347 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10348 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10349 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10350 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10351 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10352 * infcall.c (_initialize_infcall): Add declaration.
10353 * infcmd.c (_initialize_infcmd): Add declaration.
10354 * inflow.c (_initialize_inflow): Add declaration.
10355 * infrun.c (_initialize_infrun): Add declaration.
10356 * interps.c (_initialize_interpreter): Add declaration.
10357 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10358 * jit.c (_initialize_jit): Add declaration.
10359 * language.c (_initialize_language): Add declaration.
10360 * linux-fork.c (_initialize_linux_fork): Add declaration.
10361 * linux-nat.c (_initialize_linux_nat): Add declaration.
10362 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10363 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10364 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10365 * m2-lang.c (_initialize_m2_language): Add declaration.
10366 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10367 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10368 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10369 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10370 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10371 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10372 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10373 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10374 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10375 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10376 * machoread.c (_initialize_machoread): Add declaration.
10377 * macrocmd.c (_initialize_macrocmd): Add declaration.
10378 * macroscope.c (_initialize_macroscope): Add declaration.
10379 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10380 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10381 * maint.c (_initialize_maint_cmds): Add declaration.
10382 * mdebugread.c (_initialize_mdebugread): Add declaration.
10383 * memattr.c (_initialize_mem): Add declaration.
10384 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10385 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10386 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10387 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10388 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10389 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10390 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10391 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10392 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10393 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10394 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10395 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10396 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10397 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10398 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10399 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10400 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10401 * mipsread.c (_initialize_mipsread): Add declaration.
10402 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10403 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10404 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10405 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10406 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10407 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10408 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10409 * nto-procfs.c (_initialize_procfs): Add declaration.
10410 * objc-lang.c (_initialize_objc_language): Add declaration.
10411 * observable.c (_initialize_observer): Add declaration.
10412 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10413 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10414 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10415 * osabi.c (_initialize_gdb_osabi): Add declaration.
10416 * osdata.c (_initialize_osdata): Add declaration.
10417 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10418 * parse.c (_initialize_parse): Add declaration.
10419 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10420 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10421 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10422 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10423 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10424 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10425 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10426 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10427 * printcmd.c (_initialize_printcmd): Add declaration.
10428 * probe.c (_initialize_probe): Add declaration.
10429 * proc-api.c (_initialize_proc_api): Add declaration.
10430 * proc-events.c (_initialize_proc_events): Add declaration.
10431 * proc-service.c (_initialize_proc_service): Add declaration.
10432 * procfs.c (_initialize_procfs): Add declaration.
10433 * producer.c (_initialize_producer): Add declaration.
10434 * psymtab.c (_initialize_psymtab): Add declaration.
10435 * python/python.c (_initialize_python): Add declaration.
10436 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10437 * record-btrace.c (_initialize_record_btrace): Add declaration.
10438 * record-full.c (_initialize_record_full): Add declaration.
10439 * record.c (_initialize_record): Add declaration.
10440 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10441 * regcache.c (_initialize_regcache): Add declaration.
10442 * reggroups.c (_initialize_reggroup): Add declaration.
10443 * remote-notif.c (_initialize_notif): Add declaration.
10444 * remote-sim.c (_initialize_remote_sim): Add declaration.
10445 * remote.c (_initialize_remote): Add declaration.
10446 * reverse.c (_initialize_reverse): Add declaration.
10447 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10448 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10449 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10450 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10451 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10452 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10453 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10454 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10455 Add declaration.
10456 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10457 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10458 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10459 * rust-exp.y (_initialize_rust_exp): Add declaration.
10460 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10461 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10462 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10463 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10464 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10465 * score-tdep.c (_initialize_score_tdep): Add declaration.
10466 * ser-go32.c (_initialize_ser_dos): Add declaration.
10467 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10468 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10469 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10470 * ser-uds.c (_initialize_ser_socket): Add declaration.
10471 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10472 * serial.c (_initialize_serial): Add declaration.
10473 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10474 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10475 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10476 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10477 * skip.c (_initialize_step_skip): Add declaration.
10478 * sol-thread.c (_initialize_sol_thread): Add declaration.
10479 * solib-aix.c (_initialize_solib_aix): Add declaration.
10480 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10481 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10482 * solib-frv.c (_initialize_frv_solib): Add declaration.
10483 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10484 * solib-target.c (_initialize_solib_target): Add declaration.
10485 * solib.c (_initialize_solib): Add declaration.
10486 * source-cache.c (_initialize_source_cache): Add declaration.
10487 * source.c (_initialize_source): Add declaration.
10488 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10489 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10490 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10491 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10492 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10493 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10494 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10495 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10496 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10497 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10498 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10499 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10500 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10501 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10502 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10503 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10504 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10505 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10506 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10507 * stabsread.c (_initialize_stabsread): Add declaration.
10508 * stack.c (_initialize_stack): Add declaration.
10509 * stap-probe.c (_initialize_stap_probe): Add declaration.
10510 * std-regs.c (_initialize_frame_reg): Add declaration.
10511 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10512 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10513 * symfile.c (_initialize_symfile): Add declaration.
10514 * symmisc.c (_initialize_symmisc): Add declaration.
10515 * symtab.c (_initialize_symtab): Add declaration.
10516 * target.c (_initialize_target): Add declaration.
10517 * target-connection.c (_initialize_target_connection): Add
10518 declaration.
10519 * target-dcache.c (_initialize_target_dcache): Add declaration.
10520 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10521 * thread.c (_initialize_thread): Add declaration.
10522 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10523 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10524 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10525 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10526 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10527 * tracectf.c (_initialize_ctf): Add declaration.
10528 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10529 * tracefile.c (_initialize_tracefile): Add declaration.
10530 * tracepoint.c (_initialize_tracepoint): Add declaration.
10531 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10532 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10533 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10534 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10535 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10536 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10537 * tui/tui.c (_initialize_tui): Add declaration.
10538 * typeprint.c (_initialize_typeprint): Add declaration.
10539 * ui-style.c (_initialize_ui_style): Add declaration.
10540 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10541 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10542 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10543 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10544 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10545 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10546 * unittests/filtered_iterator-selftests.c
10547 (_initialize_filtered_iterator_selftests): Add declaration.
10548 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10549 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10550 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10551 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10552 * unittests/main-thread-selftests.c
10553 (_initialize_main_thread_selftests): Add declaration.
10554 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10555 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10556 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10557 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10558 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10559 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10560 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10561 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10562 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10563 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10564 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10565 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10566 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10567 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10568 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10569 declaration.
10570 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10571 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10572 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10573 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10574 * user-regs.c (_initialize_user_regs): Add declaration.
10575 * utils.c (_initialize_utils): Add declaration.
10576 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10577 * valops.c (_initialize_valops): Add declaration.
10578 * valprint.c (_initialize_valprint): Add declaration.
10579 * value.c (_initialize_values): Add declaration.
10580 * varobj.c (_initialize_varobj): Add declaration.
10581 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10582 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10583 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10584 * windows-nat.c (_initialize_windows_nat): Add declaration.
10585 (_initialize_check_for_gdb_ini): Add declaration.
10586 (_initialize_loadable): Add declaration.
10587 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10588 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10589 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10590 * xcoffread.c (_initialize_xcoffread): Add declaration.
10591 * xml-support.c (_initialize_xml_support): Add declaration.
10592 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10593 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10594 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10595 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10596
e2de1eec
SM
105972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10598
10599 * regformats/regdat.sh: Generate declaration for init function.
10600
e0037b4c
SM
106012020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10602
10603 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10604 up.
10605 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10606 close_one_inferior>: New methods.
10607 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10608 pass down target to find_inferior_pid.
10609 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10610 Pass down target to find_inferior_ptid.
10611 (gdbsim_target::create_inferior): Pass down target to
10612 add_thread_silent.
10613 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10614 target down to find_inferior_ptid and switch_to_thread.
10615 (gdbsim_target::close): Update to call close_one_inferior.
10616 (struct resume_data): Remove.
10617 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10618 directly, rather than through a void pointer.
10619 (gdbsim_target::resume): Update to call resume_one_inferior.
10620
58920b5b
SM
106212020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10622
10623 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10624
4ec89149
PA
106252020-01-12 Pedro Alves <palves@redhat.com>
10626
10627 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10628 directly for the current inferior instead of
10629 discard_all_inferiors.
10630 (discard_all_inferiors): Delete.
10631
7c392d1d
TT
106322020-01-11 Tom Tromey <tom@tromey.com>
10633
10634 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10635 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10636 deprecated_safe_get_selected_frame.
10637
d9ebdab7
TBA
106382020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10639
10640 * inferior.c (print_inferior): Switch inferior before printing it.
10641
f3c469b9
PA
106422020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10643 Pedro Alves <palves@redhat.com>
10644
10645 * progspace-and-thread.c (switch_to_program_space_and_thread):
10646 Assert there's an inferior for PSPACE. Use
10647 switch_to_inferior_no_thread to switch the inferior too.
10648 * progspace.c (program_space::~program_space): Call
10649 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10650 (program_space::free_all_objfiles): Don't call clear_symtab_users
10651 here.
10652 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10653
65c574f6
PA
106542020-01-10 Pedro Alves <palves@redhat.com>
10655
10656 * NEWS: Mention multi-target debugging, "info connections", and
10657 "add-inferior -no-connection".
10658
2f4fcf00
PA
106592020-01-10 Pedro Alves <palves@redhat.com>
10660
10661 * infrun.c: Include "target-connection.h".
10662 (check_multi_target_resumption): New.
10663 (proceed): Call it.
10664 * target-connection.c (make_target_connection_string): Make
10665 extern.
10666 * target-connection.h (make_target_connection_string): Declare.
10667
121b3efd
PA
106682020-01-10 Pedro Alves <palves@redhat.com>
10669
10670 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10671 * inferior.c (uiout_field_connection): New function.
10672 (print_inferior): Add new "connection-id" column.
10673 (add_inferior_command): Show connection number/string of added
10674 inferior.
10675 * process-stratum-target.h
10676 (process_stratum_target::connection_string): New virtual method.
10677 (process_stratum_target::connection_number): New field.
10678 * remote.c (remote_target::connection_string): New override.
10679 * target-connection.c: New file.
10680 * target-connection.h: New file.
10681 * target.c (decref_target): Remove process_stratum targets from
10682 the connection list.
10683 (target_stack::push): Add process_stratum targets to the
10684 connection list.
10685
4f837581
PA
106862020-01-10 Pedro Alves <palves@redhat.com>
10687
10688 Revert:
10689 2016-04-12 Pedro Alves <palves@redhat.com>
10690 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10691 Remove references to name.
10692 * serial.h (struct serial) <name>: Delete.
10693
f4ec508e
PA
106942020-01-10 Pedro Alves <palves@redhat.com>
10695
10696 * gdbarch-selftests.c (register_to_value_test): Remove "target
10697 already pushed" check.
10698
5b6d1e4f
PA
106992020-01-10 Pedro Alves <palves@redhat.com>
10700 John Baldwin <jhb@FreeBSD.org>
10701
10702 * aarch64-linux-nat.c
10703 (aarch64_linux_nat_target::thread_architecture): Adjust.
10704 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10705 (task_command_1): Likewise.
10706 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10707 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10708 (aix_thread_target::store_registers)
10709 (aix_thread_target::thread_alive): Adjust.
10710 * amd64-fbsd-tdep.c: Include "inferior.h".
10711 (amd64fbsd_get_thread_local_address): Pass down target.
10712 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10713 thread's gdbarch instead of target_gdbarch.
10714 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10715 get_last_target_status.
10716 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10717 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10718 inferiors.
10719 (update_inserted_breakpoint_locations): Skip if inferiors with no
10720 execution.
10721 (update_global_location_list): When handling moribund locations,
10722 find representative inferior for location's pspace, and use thread
10723 count of its process_stratum target.
10724 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10725 * bsd-uthread.c (bsd_uthread_target::wait): Use
10726 as_process_stratum_target and adjust thread_change_ptid and
10727 add_thread calls.
10728 (bsd_uthread_target::update_thread_list): Use
10729 as_process_stratum_target and adjust find_thread_ptid,
10730 thread_change_ptid and add_thread calls.
10731 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10732 find_thread_ptid call.
10733 * corelow.c (add_to_thread_list): Adjust add_thread call.
10734 (core_target_open): Adjust add_thread_silent and thread_count
10735 calls.
10736 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10737 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10738 * event-top.c (async_disconnect): Pop targets from all inferiors.
10739 * exec.c (add_target_sections): Push exec target on all inferiors
10740 sharing the program space.
10741 (remove_target_sections): Remove the exec target from all
10742 inferiors sharing the program space.
10743 (exec_on_vfork): New.
10744 * exec.h (exec_on_vfork): Declare.
10745 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10746 Pass it down.
10747 (fbsd_nat_target::update_thread_list): Adjust.
10748 (fbsd_nat_target::resume): Adjust.
10749 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10750 down.
10751 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10752 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10753 get_thread_arch_regcache call.
10754 * fork-child.c (gdb_startup_inferior): Pass target down to
10755 startup_inferior and set_executing.
10756 * gdbthread.h (struct process_stratum_target): Forward declare.
10757 (add_thread, add_thread_silent, add_thread_with_info)
10758 (in_thread_list): Add process_stratum_target parameter.
10759 (find_thread_ptid(inferior*, ptid_t)): New overload.
10760 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10761 parameter.
10762 (all_threads()): Delete overload.
10763 (all_threads, all_non_exited_threads): Add process_stratum_target
10764 parameter.
10765 (all_threads_safe): Use brace initialization.
10766 (thread_count): Add process_stratum_target parameter.
10767 (set_resumed, set_running, set_stop_requested, set_executing)
10768 (threads_are_executing, finish_thread_state): Add
10769 process_stratum_target parameter.
10770 (switch_to_thread): Use is_current_thread.
10771 * i386-fbsd-tdep.c: Include "inferior.h".
10772 (i386fbsd_get_thread_local_address): Pass down target.
10773 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10774 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10775 have_inferiors check.
10776 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10777 (inf_ptrace_target::attach): Adjust.
10778 * infcall.c (run_inferior_call): Adjust.
10779 * infcmd.c (run_command_1): Pass target to
10780 scoped_finish_thread_state.
10781 (proceed_thread_callback): Skip inferiors with no execution.
10782 (continue_command): Rename 'all_threads' local to avoid hiding
10783 'all_threads' function. Adjust get_last_target_status call.
10784 (prepare_one_step): Adjust set_running call.
10785 (signal_command): Use user_visible_resume_target. Compare thread
10786 pointers instead of inferior_ptid.
10787 (info_program_command): Adjust to pass down target.
10788 (attach_command): Mark target's 'thread_executing' flag.
10789 (stop_current_target_threads_ns): New, factored out from ...
10790 (interrupt_target_1): ... this. Switch inferior before making
10791 target calls.
10792 * inferior-iter.h
10793 (struct all_inferiors_iterator, struct all_inferiors_range)
10794 (struct all_inferiors_safe_range)
10795 (struct all_non_exited_inferiors_range): Filter on
10796 process_stratum_target too. Remove explicit.
10797 * inferior.c (inferior::inferior): Push dummy target on target
10798 stack.
10799 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10800 Add process_stratum_target parameter, and pass it down.
10801 (have_live_inferiors): Adjust.
10802 (switch_to_inferior_and_push_target): New.
10803 (add_inferior_command, clone_inferior_command): Handle
10804 "-no-connection" parameter. Use
10805 switch_to_inferior_and_push_target.
10806 (_initialize_inferior): Mention "-no-connection" option in
10807 the help of "add-inferior" and "clone-inferior" commands.
10808 * inferior.h: Include "process-stratum-target.h".
10809 (interrupt_target_1): Use bool.
10810 (struct inferior) <push_target, unpush_target, target_is_pushed,
10811 find_target_beneath, top_target, process_target, target_at,
10812 m_stack>: New.
10813 (discard_all_inferiors): Delete.
10814 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10815 (all_inferiors, all_non_exited_inferiors): Add
10816 process_stratum_target parameter.
10817 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10818 (target_last_proc_target): New global.
10819 (follow_fork_inferior): Push target on new inferior. Pass target
10820 to add_thread_silent. Call exec_on_vfork. Handle target's
10821 reference count.
10822 (follow_fork): Adjust get_last_target_status call. Also consider
10823 target.
10824 (follow_exec): Push target on new inferior.
10825 (struct execution_control_state) <target>: New field.
10826 (user_visible_resume_target): New.
10827 (do_target_resume): Call target_async.
10828 (resume_1): Set target's threads_executing flag. Consider resume
10829 target.
10830 (commit_resume_all_targets): New.
10831 (proceed): Also consider resume target. Skip threads of inferiors
10832 with no execution. Commit resumtion in all targets.
10833 (start_remote): Pass current inferior to wait_for_inferior.
10834 (infrun_thread_stop_requested): Consider target as well. Pass
10835 thread_info pointer to clear_inline_frame_state instead of ptid.
10836 (infrun_thread_thread_exit): Consider target as well.
10837 (random_pending_event_thread): New inferior parameter. Use it.
10838 (do_target_wait): Rename to ...
10839 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10840 down.
10841 (threads_are_resumed_pending_p, do_target_wait): New.
10842 (prepare_for_detach): Adjust calls.
10843 (wait_for_inferior): New inferior parameter. Handle it. Use
10844 do_target_wait_1 instead of do_target_wait.
10845 (fetch_inferior_event): Adjust. Switch to representative
10846 inferior. Pass target down.
10847 (set_last_target_status): Add process_stratum_target parameter.
10848 Save target in global.
10849 (get_last_target_status): Add process_stratum_target parameter and
10850 handle it.
10851 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10852 (context_switch): Check inferior_ptid == null_ptid before calling
10853 inferior_thread().
10854 (get_inferior_stop_soon): Pass down target.
10855 (wait_one): Rename to ...
10856 (poll_one_curr_target): ... this.
10857 (struct wait_one_event): New.
10858 (wait_one): New.
10859 (stop_all_threads): Adjust.
10860 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10861 event's target.
10862 (switch_back_to_stepped_thread): Also consider target.
10863 (print_stop_event): Update.
10864 (normal_stop): Update. Also consider the resume target.
10865 * infrun.h (wait_for_inferior): Remove declaration.
10866 (user_visible_resume_target): New declaration.
10867 (get_last_target_status, set_last_target_status): New
10868 process_stratum_target parameter.
10869 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10870 process_stratum_target parameter, and use it.
10871 (clear_inline_frame_state (thread_info*)): New.
10872 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10873 process_stratum_target parameter.
10874 (clear_inline_frame_state (thread_info*)): Declare.
10875 * linux-fork.c (delete_checkpoint_command): Pass target down to
10876 find_thread_ptid.
10877 (checkpoint_command): Adjust.
10878 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10879 instead of just tweaking inferior_ptid.
10880 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10881 (exit_lwp): Pass target down to find_thread_ptid.
10882 (attach_proc_task_lwp_callback): Pass target down to
10883 add_thread/set_running/set_executing.
10884 (linux_nat_target::attach): Pass target down to
10885 thread_change_ptid.
10886 (get_detach_signal): Pass target down to find_thread_ptid.
10887 Consider last target status's target.
10888 (linux_resume_one_lwp_throw, resume_lwp)
10889 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10890 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10891 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10892 (linux_nat_target::async_wait_fd): New.
10893 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10894 target down.
10895 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10896 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10897 * linux-thread-db.c (struct thread_db_info::process_target): New
10898 field.
10899 (add_thread_db_info): Save target.
10900 (get_thread_db_info): New process_stratum_target parameter. Also
10901 match target.
10902 (delete_thread_db_info): New process_stratum_target parameter.
10903 Also match target.
10904 (thread_from_lwp): Adjust to pass down target.
10905 (thread_db_notice_clone): Pass down target.
10906 (check_thread_db_callback): Pass down target.
10907 (try_thread_db_load_1): Always push the thread_db target.
10908 (try_thread_db_load, record_thread): Pass target down.
10909 (thread_db_target::detach): Pass target down. Always unpush the
10910 thread_db target.
10911 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10912 target down. Always unpush the thread_db target.
10913 (find_new_threads_callback, thread_db_find_new_threads_2)
10914 (thread_db_target::update_thread_list): Pass target down.
10915 (thread_db_target::pid_to_str): Pass current inferior down.
10916 (thread_db_target::get_thread_local_address): Pass target down.
10917 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10918 target down.
10919 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10920 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10921 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10922 (procfs_init_inferior): Rename to ...
10923 (procfs_target::procfs_init_inferior): ... this and adjust.
10924 (procfs_target::create_inferior, procfs_notice_thread)
10925 (procfs_do_thread_registers): Adjust.
10926 * ppc-fbsd-tdep.c: Include "inferior.h".
10927 (ppcfbsd_get_thread_local_address): Pass down target.
10928 * proc-service.c (ps_xfer_memory): Switch current inferior and
10929 program space as well.
10930 (get_ps_regcache): Pass target down.
10931 * process-stratum-target.c
10932 (process_stratum_target::thread_address_space)
10933 (process_stratum_target::thread_architecture): Pass target down.
10934 * process-stratum-target.h
10935 (process_stratum_target::threads_executing): New field.
10936 (as_process_stratum_target): New.
10937 * ravenscar-thread.c
10938 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10939 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10940 down.
10941 * record-btrace.c (record_btrace_target::info_record): Adjust.
10942 (record_btrace_target::record_method)
10943 (record_btrace_target::record_is_replaying)
10944 (record_btrace_target::fetch_registers)
10945 (get_thread_current_frame_id, record_btrace_target::resume)
10946 (record_btrace_target::wait, record_btrace_target::stop): Pass
10947 target down.
10948 * record-full.c (record_full_wait_1): Switch to event thread.
10949 Pass target down.
10950 * regcache.c (regcache::regcache)
10951 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10952 process_stratum_target parameter and handle it.
10953 (current_thread_target): New global.
10954 (get_thread_regcache): Add process_stratum_target parameter and
10955 handle it. Switch inferior before calling target method.
10956 (get_thread_regcache): Pass target down.
10957 (get_thread_regcache_for_ptid): Pass target down.
10958 (registers_changed_ptid): Add process_stratum_target parameter and
10959 handle it.
10960 (registers_changed_thread, registers_changed): Pass target down.
10961 (test_get_thread_arch_aspace_regcache): New.
10962 (current_regcache_test): Define a couple local test_target_ops
10963 instances and use them for testing.
10964 (readwrite_regcache): Pass process_stratum_target parameter.
10965 (cooked_read_test, cooked_write_test): Pass mock_target down.
10966 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10967 (get_thread_arch_aspace_regcache): Add process_stratum_target
10968 parameter.
10969 (regcache::target): New method.
10970 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10971 (regcache::registers_changed_ptid): Add process_stratum_target
10972 parameter.
10973 (regcache::m_target): New field.
10974 (registers_changed_ptid): Add process_stratum_target parameter.
10975 * remote.c (remote_state::supports_vCont_probed): New field.
10976 (remote_target::async_wait_fd): New method.
10977 (remote_unpush_and_throw): Add remote_target parameter.
10978 (get_current_remote_target): Adjust.
10979 (remote_target::remote_add_inferior): Push target.
10980 (remote_target::remote_add_thread)
10981 (remote_target::remote_notice_new_inferior)
10982 (get_remote_thread_info): Pass target down.
10983 (remote_target::update_thread_list): Skip threads of inferiors
10984 bound to other targets. (remote_target::close): Don't discard
10985 inferiors. (remote_target::add_current_inferior_and_thread)
10986 (remote_target::process_initial_stop_replies)
10987 (remote_target::start_remote)
10988 (remote_target::remote_serial_quit_handler): Pass down target.
10989 (remote_target::remote_unpush_target): New remote_target
10990 parameter. Unpush the target from all inferiors.
10991 (remote_target::remote_unpush_and_throw): New remote_target
10992 parameter. Pass it down.
10993 (remote_target::open_1): Check whether the current inferior has
10994 execution instead of checking whether any inferior is live. Pass
10995 target down.
10996 (remote_target::remote_detach_1): Pass down target. Use
10997 remote_unpush_target.
10998 (extended_remote_target::attach): Pass down target.
10999 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11000 (remote_target::append_resumption): Pass down target.
11001 (remote_target::append_pending_thread_resumptions)
11002 (remote_target::remote_resume_with_hc, remote_target::resume)
11003 (remote_target::commit_resume): Pass down target.
11004 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11005 (remote_target::interrupt_query)
11006 (remote_target::remove_new_fork_children)
11007 (remote_target::check_pending_events_prevent_wildcard_vcont)
11008 (remote_target::remote_parse_stop_reply)
11009 (remote_target::process_stop_reply): Pass down target.
11010 (first_remote_resumed_thread): New remote_target parameter. Pass
11011 it down.
11012 (remote_target::wait_as): Pass down target.
11013 (unpush_and_perror): New remote_target parameter. Pass it down.
11014 (remote_target::readchar, remote_target::remote_serial_write)
11015 (remote_target::getpkt_or_notif_sane_1)
11016 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11017 down target.
11018 (remote_target::mourn_inferior): Pass down target. Use
11019 remote_unpush_target.
11020 (remote_target::core_of_thread)
11021 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11022 (remote_target::pid_to_exec_file)
11023 (remote_target::thread_handle_to_thread_info): Pass down target.
11024 (remote_target::async_wait_fd): New.
11025 * riscv-fbsd-tdep.c: Include "inferior.h".
11026 (riscv_fbsd_get_thread_local_address): Pass down target.
11027 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11028 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11029 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11030 Adjust.
11031 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11032 * solib-svr4.c (enable_break): Pass down target.
11033 * spu-multiarch.c (parse_spufs_run): Pass down target.
11034 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11035 * target-delegates.c: Regenerate.
11036 * target.c (g_target_stack): Delete.
11037 (current_top_target): Return the current inferior's top target.
11038 (target_has_execution_1): Refer to the passed-in inferior's top
11039 target.
11040 (target_supports_terminal_ours): Check whether the initial
11041 inferior was already created.
11042 (decref_target): New.
11043 (target_stack::push): Incref/decref the target.
11044 (push_target, push_target, unpush_target): Adjust.
11045 (target_stack::unpush): Defref target.
11046 (target_is_pushed): Return bool. Adjust to refer to the current
11047 inferior's target stack.
11048 (dispose_inferior): Delete, and inline parts ...
11049 (target_preopen): ... here. Only dispose of the current inferior.
11050 (target_detach): Hold strong target reference while detaching.
11051 Pass target down.
11052 (target_thread_name): Add assertion.
11053 (target_resume): Pass down target.
11054 (target_ops::beneath, find_target_at): Adjust to refer to the
11055 current inferior's target stack.
11056 (get_dummy_target): New.
11057 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11058 has a thread running.
11059 (initialize_targets): Rename to ...
11060 (_initialize_target): ... this.
11061 * target.h: Include "gdbsupport/refcounted-object.h".
11062 (struct target_ops): Inherit refcounted_object.
11063 (target_ops::shortname, target_ops::longname): Make const.
11064 (target_ops::async_wait_fd): New method.
11065 (decref_target): Declare.
11066 (struct target_ops_ref_policy): New.
11067 (target_ops_ref): New typedef.
11068 (get_dummy_target): Declare function.
11069 (target_is_pushed): Return bool.
11070 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11071 (all_matching_threads_iterator::all_matching_threads_iterator):
11072 Handle filter target.
11073 * thread-iter.h (struct all_matching_threads_iterator, struct
11074 all_matching_threads_range, class all_non_exited_threads_range):
11075 Filter by target too. Remove explicit.
11076 * thread.c (threads_executing): Delete.
11077 (inferior_thread): Pass down current inferior.
11078 (clear_thread_inferior_resources): Pass down thread pointer
11079 instead of ptid_t.
11080 (add_thread_silent, add_thread_with_info, add_thread): Add
11081 process_stratum_target parameter. Use it for thread and inferior
11082 searches.
11083 (is_current_thread): New.
11084 (thread_info::deletable): Use it.
11085 (find_thread_ptid, thread_count, in_thread_list)
11086 (thread_change_ptid, set_resumed, set_running): New
11087 process_stratum_target parameter. Pass it down.
11088 (set_executing): New process_stratum_target parameter. Pass it
11089 down. Adjust reference to 'threads_executing'.
11090 (threads_are_executing): New process_stratum_target parameter.
11091 Adjust reference to 'threads_executing'.
11092 (set_stop_requested, finish_thread_state): New
11093 process_stratum_target parameter. Pass it down.
11094 (switch_to_thread): Also match inferior.
11095 (switch_to_thread): New process_stratum_target parameter. Pass it
11096 down.
11097 (update_threads_executing): Reimplement.
11098 * top.c (quit_force): Pop targets from all inferior.
11099 (gdb_init): Don't call initialize_targets.
11100 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11101 Declare.
11102 (windows_add_thread, windows_delete_thread): Adjust.
11103 (get_windows_debug_event): Rename to ...
11104 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11105 * tracefile-tfile.c (tfile_target_open): Pass down target.
11106 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11107 Forward declare.
11108 (switch_to_thread): Add process_stratum_target parameter.
11109 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11110 parameter. Use it.
11111 (mi_on_resume): Pass target down.
11112 * nat/fork-inferior.c (startup_inferior): Add
11113 process_stratum_target parameter. Pass it down.
11114 * nat/fork-inferior.h (startup_inferior): Add
11115 process_stratum_target parameter.
11116 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11117
75c6c844
PA
111182020-01-10 Pedro Alves <palves@redhat.com>
11119
11120 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11121 directly. Instead find the first thread in the thread list and
11122 use switch_to_thread.
11123
78f2c40a
PA
111242020-01-10 Pedro Alves <palves@redhat.com>
11125
11126 * remote.c (remote_target::remote_add_inferior): Don't bind a
11127 process to the current inferior if the current inferior is already
11128 bound to a process.
11129
e7af6c70
TBA
111302020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11131 Pedro Alves <palves@redhat.com>
11132
11133 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11134 If no process is specified, return null_ptid instead of
11135 inferior_ptid.
11136 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11137 TARGET_WAITKIND_SIGNALLED with no pid.
11138
31ba933e
PA
111392020-01-10 Pedro Alves <palves@redhat.com>
11140
11141 * remote.c (first_remote_resumed_thread): New.
11142 (remote_target::wait_as): Use it as default event_ptid instead of
11143 inferior_ptid.
11144
735fc2ca
PA
111452020-01-10 Pedro Alves <palves@redhat.com>
11146
11147 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11148
c17e02e1
PA
111492020-01-10 Pedro Alves <palves@redhat.com>
11150
11151 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11152 not -1.
11153
ab1ddbcf
PA
111542020-01-10 Pedro Alves <palves@redhat.com>
11155
11156 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11157 ptid to get_last_target_status.
11158 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11159 ptid to get_last_target_status.
11160 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11161 get_last_target_status.
11162 (info_program_command): Don't pass a target_waitstatus to
11163 get_last_target_status.
11164 * infrun.c (init_wait_for_inferior): Use
11165 nullify_last_target_wait_ptid.
11166 (get_last_target_status): Handle nullptr arguments.
11167 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11168 (print_stop_event): Don't pass a ptid to get_last_target_status.
11169 (normal_stop): Don't pass a ptid to get_last_target_status.
11170 * infrun.h (get_last_target_status, set_last_target_status): Move
11171 comments here and update.
11172 (nullify_last_target_wait_ptid): Declare.
11173 * linux-fork.c (fork_load_infrun_state): Remove local extern
11174 declaration of nullify_last_target_wait_ptid.
11175 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11176 to get_last_target_status.
11177
f3f8ece4
PA
111782020-01-10 Pedro Alves <palves@redhat.com>
11179
11180 * gdbthread.h (scoped_restore_current_thread)
11181 <dont_restore, restore, m_dont_restore>: Declare.
11182 * thread.c (thread_alive): Add assertion. Return bool.
11183 (switch_to_thread_if_alive): New.
11184 (prune_threads): Switch inferior/thread.
11185 (print_thread_info_1): Switch thread before calling target methods.
11186 (scoped_restore_current_thread::restore): New, factored out from
11187 ...
11188 (scoped_restore_current_thread::~scoped_restore_current_thread):
11189 ... this.
11190 (scoped_restore_current_thread::scoped_restore_current_thread):
11191 Add assertion.
11192 (thread_apply_all_command, thread_select): Use
11193 switch_to_thread_if_alive.
11194 * infrun.c (proceed, restart_threads, handle_signal_stop)
11195 (switch_back_to_stepped_thread): Switch current thread before
11196 calling target methods.
11197
db2d40f7
PA
111982020-01-10 Pedro Alves <palves@redhat.com>
11199
11200 * inferior.c (switch_to_inferior_no_thread): New function,
11201 factored out from ...
11202 (inferior_command): ... here.
11203 * inferior.h (switch_to_inferior_no_thread): Declare.
11204 * mi/mi-main.c (run_one_inferior): Use
11205 switch_to_inferior_no_thread.
11206
bd420a2d
PA
112072020-01-10 Pedro Alves <palves@redhat.com>
11208
11209 * infcmd.c (kill_command): Remove dead code.
11210
ddf5db90
PA
112112020-01-10 Pedro Alves <palves@redhat.com>
11212
11213 * remote.c (remote_target::mourn_inferior): No longer check
11214 whether the target is running.
11215
5018ce90
PA
112162020-01-10 Pedro Alves <palves@redhat.com>
11217
11218 * corelow.c (core_target::has_execution): Change parameter type to
11219 inferior pointer.
11220 * inferior.c (number_of_live_inferiors): Use
11221 inferior::has_execution instead of target_has_execution_1.
11222 * inferior.h (inferior::has_execution): New.
11223 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11224 inferior::has_execution instead of target_has_execution_1.
11225 * process-stratum-target.c
11226 (process_stratum_target::has_execution): Change parameter type to
11227 inferior pointer. Check the inferior's PID instead of
11228 inferior_ptid.
11229 * process-stratum-target.h
11230 (process_stratum_target::has_execution): Change parameter type to
11231 inferior pointer.
11232 * record-full.c (record_full_core_target::has_execution): Change
11233 parameter type to inferior pointer.
11234 * target.c (target_has_execution_1): Change parameter type to
11235 inferior pointer.
11236 (target_has_execution_current): Adjust.
11237 * target.h (target_ops::has_execution): Change parameter type to
11238 inferior pointer.
11239 (target_has_execution_1): Change parameter type to inferior
11240 pointer. Change return type to bool.
11241 * tracefile.h (tracefile_target::has_execution): Change parameter
11242 type to inferior pointer.
11243
74375d18
PA
112442020-01-10 Pedro Alves <palves@redhat.com>
11245
11246 * exceptions.c (print_flush): Remove current_top_target() check.
11247
acdf84a6
PA
112482020-01-10 Pedro Alves <palves@redhat.com>
11249
11250 * remote.c (show_remote_exec_file): Show the current inferior's
11251 exec-file instead of the command variable's value.
11252
ec506636
PA
112532020-01-10 Pedro Alves <palves@redhat.com>
11254
11255 * record-full.c (record_full_resume_ptid): New global.
11256 (record_full_target::resume): Set it.
11257 (record_full_wait_1): Use record_full_resume_ptid instead of
11258 inferior_ptid.
11259
873657b9
PA
112602020-01-10 Pedro Alves <palves@redhat.com>
11261
11262 * gdbthread.h (scoped_restore_current_thread)
11263 <dont_restore, restore, m_dont_restore>: Declare.
11264 * thread.c (thread_alive): Add assertion. Return bool.
11265 (switch_to_thread_if_alive): New.
11266 (prune_threads): Switch inferior/thread.
11267 (print_thread_info_1): Switch thread before calling target methods.
11268 (scoped_restore_current_thread::restore): New, factored out from
11269 ...
11270 (scoped_restore_current_thread::~scoped_restore_current_thread):
11271 ... this.
11272 (scoped_restore_current_thread::scoped_restore_current_thread):
11273 Add assertion.
11274 (thread_apply_all_command, thread_select): Use
11275 switch_to_thread_if_alive.
11276
7f0ae84c
GB
112772020-01-10 George Barrett <bob@bob131.so>
11278
11279 * stap-probe.c (stap_modify_semaphore): Don't check for null
11280 semaphores.
11281 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11282 for null semaphores.
11283
f5a7c406
AB
112842020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11285
11286 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11287 all source windows, and maintain horizontal scroll status while
11288 doing so.
11289
9ae6bf64
TT
112902020-01-09 Tom Tromey <tom@tromey.com>
11291
11292 PR tui/18932:
11293 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11294 update_source_window, not print_source_lines.
11295
b2efe70c
AB
112962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11297
11298 * tui/tui.c (tui_enable): Register tui hooks after calling
11299 tui_display_main.
11300
5f23a082
CB
113012020-01-09 Christian Biesinger <cbiesinger@google.com>
11302
11303 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11304
3061113b
SM
113052020-01-08 Simon Marchi <simon.marchi@efficios.com>
11306
11307 * thread.c (print_thread_info_1): Fix indentation.
11308
57d75002
CB
113092020-01-09 Christian Biesinger <cbiesinger@google.com>
11310
11311 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11312 unique_xmalloc_ptr outside the if to always free the demangled name.
11313
6a053cb1
TT
113142020-01-08 Tom Tromey <tromey@adacore.com>
11315
11316 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11317 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11318 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11319 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11320 Remove.
11321 (section_offsets): New typedef.
11322 * symtab.c (fixup_section, get_msymbol_address): Update.
11323 * symmisc.c (dump_msymbols): Update.
11324 * symfile.h (relative_addr_info_to_section_offsets)
11325 (symfile_map_offsets_to_segments): Update.
11326 * symfile.c (build_section_addr_info_from_objfile)
11327 (init_objfile_sect_indices): Update.
11328 (struct place_section_arg): Change type of "offsets".
11329 (place_section): Update.
11330 (relative_addr_info_to_section_offsets): Change type of
11331 "section_offsets". Remove "num_sections" parameter.
11332 (default_symfile_offsets, syms_from_objfile_1)
11333 (set_objfile_default_section_offset): Update.
11334 (reread_symbols): No need to preserve section offsets by hand.
11335 (symfile_map_offsets_to_segments): Change type of "offsets".
11336 * stap-probe.c (relocate_address): Update.
11337 * stabsread.h (process_one_symbol): Update.
11338 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11339 (solib_target_relocate_section_addresses): Update.
11340 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11341 Update.
11342 * solib-frv.c (frv_relocate_main_executable): Update.
11343 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11344 * solib-aix.c (solib_aix_get_section_offsets): Change return
11345 type.
11346 (solib_aix_solib_create_inferior_hook): Update.
11347 * remote.c (remote_target::get_offsets): Update.
11348 * psymtab.c (find_pc_sect_psymtab): Update.
11349 * psympriv.h (struct partial_symbol) <address, text_low,
11350 text_high>: Update.
11351 * objfiles.h (obj_section_offset): Update.
11352 (struct objfile) <section_offsets>: Change type.
11353 <num_sections>: Remove.
11354 (objfile_relocate): Update.
11355 * objfiles.c (entry_point_address_query): Update
11356 (relocate_one_symbol): Change type of "section_offsets".
11357 (objfile_relocate1, objfile_relocate1): Change type of
11358 "new_offsets".
11359 (objfile_rebase1): Update.
11360 * mipsread.c (mipscoff_symfile_read): Update.
11361 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11362 parameter.
11363 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11364 (parse_external, psymtab_to_symtab_1): Update.
11365 * machoread.c (macho_symfile_offsets): Update.
11366 * ia64-tdep.c (ia64_find_unwind_table): Update.
11367 * hppa-tdep.c (read_unwind_info): Update.
11368 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11369 * dwarf2read.c (create_addrmap_from_index)
11370 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11371 (process_psymtab_comp_unit_reader, add_partial_symbol)
11372 (add_partial_subprogram, process_full_comp_unit)
11373 (read_file_scope, read_func_scope, read_lexical_block_scope)
11374 (read_call_site_scope, dwarf2_rnglists_process)
11375 (dwarf2_ranges_process, dwarf2_ranges_read)
11376 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11377 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11378 Update.
11379 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11380 Update.
11381 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11382 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11383 (process_one_symbol): Change type of "section_offsets".
11384 * ctfread.c (get_objfile_text_range): Update.
11385 * coffread.c (coff_symtab_read, enter_linenos)
11386 (process_coff_symbol): Update.
11387 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11388 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11389
456e800a
TT
113902020-01-08 Tom Tromey <tromey@adacore.com>
11391
11392 * dwarf2read.c (parse_macro_definition): Use std::string.
11393 (parse_macro_definition): Likewise.
11394
6dfa2fc2
TT
113952020-01-08 Tom Tromey <tromey@adacore.com>
11396
11397 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11398 (ATTR_ALLOC_CHUNK): Remove.
11399
421d1616
TT
114002020-01-08 Tom Tromey <tromey@adacore.com>
11401
11402 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11403
43816ebc
TT
114042020-01-08 Tom Tromey <tromey@adacore.com>
11405
11406 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11407 (dwarf2_compute_name, open_dwo_file): Likewise.
11408 (process_enumeration_scope): Use std::vector.
11409 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11410 (partial_die_info::fixup, dwarf2_start_subfile)
11411 (guess_full_die_structure_name, dwarf2_name): Likewise.
11412 (determine_prefix): Update.
11413 (guess_full_die_structure_name): Make return type const.
11414 (partial_die_full_name): Return unique_xmalloc_ptr.
11415 (DW_FIELD_ALLOC_CHUNK): Remove.
11416
4212d509
TT
114172020-01-07 Tom Tromey <tromey@adacore.com>
11418
11419 PR build/24937:
11420 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11421
06a6207a
JT
114222020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11423
11424 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11425
153d79c4
AB
114262020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11427
11428 * stack.c (print_frame_info): Move disassemble_next_line code
11429 inside source_print block.
11430
66182876
EZ
114312020-01-06 Eli Zaretskii <eliz@gnu.org>
11432
11433 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11434 gdb/signals.h, as we are now using native signal symbols.
11435
cbfa8581
SV
114362020-01-06 Shahab Vahedi <shahab@synopsys.com>
11437
11438 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11439 overflow by an early check of content vs threshold.
aac66a4c 11440 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11441 Likewise.
11442
3f602821
EZ
114432020-01-06 Eli Zaretskii <eliz@gnu.org>
11444
11445 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11446
a08c904d
JT
114472020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11448
11449 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11450 export table if no section contains it's RVA.
11451
89a65580
EZ
114522020-01-06 Eli Zaretskii <eliz@gnu.org>
11453
11454 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11455
8b7fcda2
HD
114562020-01-06 Hannes Domani <ssbssa@yahoo.de>
11457
11458 * source.c (print_source_lines_base): Set last_line_listed.
11459
a61b4f69
SV
114602020-01-06 Shahab Vahedi <shahab@synopsys.com>
11461
11462 * tui/tui-disasm.c: Remove trailing spaces.
11463
559e7e50
EZ
114642020-01-06 Eli Zaretskii <eliz@gnu.org>
11465 Pedro Alves <palves@redhat.com>
11466
11467 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11468 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11469 (windows_gdb_signal_to_target): New function, uses the above
11470 enumeration to convert GDB internal signal codes to equivalent
11471 Windows codes.
11472 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11473 * windows-nat.c: Include "gdb_wait.h".
11474 (get_windows_debug_event): Extract the fatal exception from the
11475 exit status and convert to the equivalent Posix signal number.
11476 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11477 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11478 * gdbsupport/gdb_wait.c: New file, implements
11479 windows_status_to_termsig.
11480 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11481 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11482
f2302a34
AB
114832020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11484
11485 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11486 show_layout.
11487
6a5206eb
LM
114882020-01-05 Luis Machado <luis.machado@linaro.org>
11489
11490 * aarch64-linux-nat.c
11491 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11492 and bfd_mach_aarch64.
11493
6ec1d75e
PW
114942020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11495
11496 * ui-file.c (stdio_file::can_emit_style_escape)
11497 (tee_file::can_emit_style_escape): Ensure style is used also on
11498 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11499 to gdb_stdout.
11500 * main.c (set_gdb_data_directory): Use file style to output the
11501 warning that the given pathname is not a directory.
11502 * top.c (show_history_filename, gdb_safe_append_history)
11503 (show_gdb_datadir): Use file style.
11504
44f81a76
HD
115052020-01-03 Hannes Domani <ssbssa@yahoo.de>
11506
11507 * solib-target.c (struct lm_info_target):
11508 Change offsets to be a unique_xmalloc_ptr.
11509 (solib_target_relocate_section_addresses): Update.
11510
25057eb0
HD
115112020-01-03 Hannes Domani <ssbssa@yahoo.de>
11512
11513 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11514
6e2118f5
BE
115152020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11516
11517 * MAINTAINERS (Write After Approval): Add myself.
11518
8133c7dc
LM
115192020-01-02 Luis Machado <luis.machado@linaro.org>
11520
11521 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11522 Cell BE architecture.
11523 * target.h (struct target_ops) <thread_architecture>: Likewise.
11524
48189bec
HD
115252020-01-01 Hannes Domani <ssbssa@yahoo.de>
11526
11527 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11528
ead1063b
HD
115292020-01-01 Hannes Domani <ssbssa@yahoo.de>
11530
11531 * MAINTAINERS (Write After Approval): Add myself.
11532
e5d78223
JB
115332020-01-01 Joel Brobecker <brobecker@adacore.com>
11534
11535 * gdbarch.sh: Update copyright year range of generated files.
11536
b811d2c2
JB
115372020-01-01 Joel Brobecker <brobecker@adacore.com>
11538
11539 Update copyright year range in all GDB files.
11540
5f4def5c
JB
115412020-01-01 Joel Brobecker <brobecker@adacore.com>
11542
11543 * copyright.py: Convert to Python 3.
11544
51fd4002
JB
115452020-01-01 Joel Brobecker <brobecker@adacore.com>
11546
11547 * copyright.py: Adapt after move of gnulib directory from gdb
11548 directory to toplevel directory.
11549
5fb651f2
JB
115502020-01-01 Joel Brobecker <brobecker@adacore.com>
11551
11552 * copyright.py (main): Exit if run from the wrong directory.
11553
5dd8bf88
JB
115542020-01-01 Joel Brobecker <brobecker@adacore.com>
11555
11556 * top.c (print_gdb_version): Change copyright year to 2020.
11557
9f71dacb 115582020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11559
9f71dacb 11560 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11561
9f71dacb 11562For older changes see ChangeLog-2019.
c906108c
SS
11563\f
11564Local Variables:
11565mode: change-log
11566left-margin: 8
11567fill-column: 74
11568version-control: never
57da7796 11569coding: utf-8
c906108c 11570End: