]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[gdb/testsuite] Require gnatmake-8 for gdb.ada/mi_prot.exp
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
513487e1
KB
12020-07-23 Kevin Buettner <kevinb@redhat.com>
2
3 PR corefiles/26294
4 * corelow.c (_initialize_corelow): Add period to help text
5 for "maintenance print core-file-backed-mappings".
6
e7bc9db8
PA
72020-07-23 Pedro Alves <pedro@palves.net>
8
9 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
10 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
11 meanwhile.
12 * frame.c (frame_cache_generation, get_frame_cache_generation):
13 New.
14 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
15 (get_prev_frame_if_no_cycle): On exception, don't touch
16 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
17 * frame.h (get_frame_cache_generation): Declare.
18
90fcc466
TV
192020-07-23 Tom de Vries <tdevries@suse.de>
20
21 PR tui/26282
22 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
23 New default constructor.
24
78344df7
AB
252020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
26
27 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
28 exclude non-statement entries.
29
b089853a
KB
302020-07-22 Kevin Buettner <kevinb@redhat.com>
31
32 * NEWS (New commands): Mention new command
33 "maintenance print core-file-backed-mappings".
34
09c2f5d4
KB
352020-07-22 Kevin Buettner <kevinb@redhat.com>
36
37 * corelow.c (gdbcmd.h): Include.
38 (core_target::info_proc_mappings): New method.
39 (get_current_core_target): New function.
40 (maintenance_print_core_file_backed_mappings): New function.
41 (_initialize_corelow): Add core-file-backed-mappings to
42 "maint print" commands.
43
9c5ec5c2
KB
442020-07-22 Kevin Buettner <kevinb@redhat.com>
45
46 * linux-tdep.c (dump_note_entry_p): New function.
47 (linux_dump_mapping_p_ftype): New typedef.
48 (linux_find_memory_regions_full): Add new parameter,
49 should_dump_mapping_p.
50 (linux_find_memory_regions): Adjust call to
51 linux_find_memory_regions_full.
52 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
53 call to linux_find_memory_regions_full.
54
db082f59
KB
552020-07-22 Kevin Buettner <kevinb@redhat.com>
56
57 * corelow.c (solist.h, unordered_map): Include.
58 (class core_target): Add field m_core_file_mappings and
59 method build_file_mappings.
60 (core_target::core_target): Call build_file_mappings.
61 (core_target::~core_target): Free memory associated with
62 m_core_file_mappings.
63 (core_target::build_file_mappings): New method.
64 (core_target::xfer_partial): Use m_core_file_mappings
65 for memory transfers.
66 * linux-tdep.c (linux_read_core_file_mappings): New
67 function.
68 (linux_core_info_proc_mappings): Rewrite to use
69 linux_read_core_file_mappings.
70 (linux_init_abi): Register linux_read_core_file_mappings.
71
7e183d27
KB
722020-07-22 Kevin Buettner <kevinb@redhat.com>
73
74 * arch-utils.c (default_read_core_file_mappings): New function.
75 * arch-utils.c (default_read_core_file_mappings): Declare.
76 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
77 * gdbarch.h, gdbarch.c: Regenerate.
78
2735d421
KB
792020-07-22 Kevin Buettner <kevinb@redhat.com>
80
81 PR corefiles/25631
82 * corelow.c (core_target:xfer_partial): Revise
83 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
84 case after first checking the stratum beneath the core
85 target.
86 (has_all_memory): Return true.
87 * target.c (raw_memory_xfer_partial): Revise comment
88 regarding use of has_all_memory.
89
e56cb451
KB
902020-07-22 Kevin Buettner <kevinb@redhat.com>
91
92 * exec.h (section_table_xfer_memory): Revise declaration,
93 replacing section name parameter with an optional callback
94 predicate.
95 * exec.c (section_table_xfer_memory): Likewise.
96 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
97 of section_table_xfer_memory.
98
32fa152e
TT
992020-07-22 Tom Tromey <tromey@adacore.com>
100
101 * mi/mi-cmd-stack.c (list_args_or_locals): Use
102 lookup_symbol_search_name.
103
a67a1c41
AB
1042020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
105
106 * python/py-registers.c (gdbpy_register_object_data_init): Remove
107 redundant local variable.
108 (gdbpy_get_register_descriptor): Extract descriptor vector as a
109 reference, not pointer, update code accordingly.
110
a7b4ff4f
SM
1112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
112 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
113
114 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
115 * jit.c (jit_breakpoint_re_set_internal): Use the
116 `skip_jit_symbol_lookup` field.
117
2340e834
SM
1182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
119 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
120
121 * jit.c (jit_read_descriptor): Define the descriptor address once,
122 use twice.
123 (jit_breakpoint_deleted): Move the declaration of the loop variable
124 `iter` into the loop header.
125 (jit_breakpoint_re_set_internal): Move the declaration of the local
126 variable `objf_data` to the first point of definition.
127 (jit_event_handler): Move the declaration of local variables
128 `code_entry`, `entry_addr`, and `objf` to their first point of use.
129 Rename `objf` to `jited`.
130
c1072906
SM
1312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
132
133 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
134 Remove.
135 * jit.c (get_jiter_objfile_data): Update.
136
c8474dc3
TBA
1372020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
138 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * jit.c (struct jit_program_space_data): Remove.
141 (jit_program_space_key): Remove.
142 (jiter_objfile_data::~jiter_objfile_data): Remove program space
143 stuff.
144 (get_jit_program_space_data): Remove.
145 (jit_breakpoint_deleted): Iterate on all of the program space's
146 objfiles.
147 (jit_inferior_init): Likewise.
148 (jit_breakpoint_re_set_internal): Likewise. Also change return
149 type to void.
150 (jit_breakpoint_re_set): Pass current_program_space to
151 jit_breakpoint_re_set_internal.
152
77208eb7
SM
1532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * jit.h (struct jiter_objfile_data) <cached_code_address,
156 jit_breakpoint>: Move to here from ...
157 * jit.c (jit_program_space_data): ... here.
158 (jiter_objfile_data::~jiter_objfile_data): Update.
159 (jit_breakpoint_deleted): Update.
160 (jit_breakpoint_re_set_internal): Update.
161
8c1c720f
SM
1622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
165 checks.
166 (jit_read_descriptor): Remove NULL check.
167 (jit_event_handler): Add an assertion.
168
0e74a041
SM
1692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
170
171 * jit.h (struct jit_objfile_data): Split into...
172 (struct jiter_objfile_data): ... this ...
173 (struct jited_objfile_data): ... and this.
174 * objfiles.h (struct objfile) <jit_data>: Remove.
175 <jiter_data, jited_data>: New fields.
176 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
177 (jiter_objfile_data::~jiter_objfile_data): ... this.
178 (get_jit_objfile_data): Rename to ...
179 (get_jiter_objfile_data): ... this.
180 (add_objfile_entry): Update.
181 (jit_read_descriptor): Use get_jiter_objfile_data.
182 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
183 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
184 (jit_inferior_exit_hook): Use objfile's jited_data field.
185
238b5c9f
SM
1862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
187
188 * jit.h: Forward-declare `struct minimal_symbol`.
189 (struct jit_objfile_data): Migrate to here from jit.c; also add a
190 constructor, destructor, and an objfile* field.
191 * jit.c (jit_objfile_data): Remove.
192 (struct jit_objfile_data): Migrate from here to jit.h.
193 (jit_objfile_data::~jit_objfile_data): New destructor
194 implementation with code moved from free_objfile_data.
195 (free_objfile_data): Delete.
196 (get_jit_objfile_data): Update to use the jit_data field of objfile.
197 (jit_find_objf_with_entry_addr): Ditto.
198 (jit_inferior_exit_hook): Ditto.
199 (_initialize_jit): Remove the call to
200 register_objfile_data_with_cleanup.
201 * objfiles.h (struct objfile) <jit_data>: New field.
202
fe053b9e
TBA
2032020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
204
205 * jit.h: Forward-declare `struct objfile`.
206 (jit_event_handler): Add a second parameter, the JITer objfile.
207 * jit.c (jit_read_descriptor): Change the signature to take the
208 JITer objfile as an argument instead of the jit_program_space_data.
209 (jit_inferior_init): Update the call to jit_read_descriptor.
210 (jit_event_handler): Use the new JITer objfile argument when calling
211 jit_read_descriptor.
212 * breakpoint.c (handle_jit_event): Update the call to
213 jit_event_handler to pass the JITer objfile.
214
4cec0c66
JB
2152020-07-21 John Baldwin <jhb@FreeBSD.org>
216
217 * gdbarch.c: Regenerate.
218 * gdbarch.h: Regenerate.
219 * gdbarch.sh (handle_segmentation_fault): Remove method.
220 * infrun.c (handle_segmentation_fault): Remove.
221 (print_signal_received_reason): Remove call to
222 handle_segmentation_fault.
223
0e42f66a
JB
2242020-07-21 John Baldwin <jhb@FreeBSD.org>
225
226 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
227 Rename to sparc64_linux_report_signal_info and add siggnal
228 argument.
229 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
230 instead of sparc64_linux_handle_segmentation_fault.
231
77bdfeb2
JB
2322020-07-21 John Baldwin <jhb@FreeBSD.org>
233
234 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
235 i386_linux_report_signal_info instead of
236 i386_linux_handle_segmentation_fault.
237 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
238 to i386_linux_report_signal_info and add siggnal argument.
239 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
240 of i386_linux_handle_segmentation_fault.
241 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
242 to i386_linux_report_signal_info and add siggnal argument.
243
ad97bfc5
JB
2442020-07-21 John Baldwin <jhb@FreeBSD.org>
245
246 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
247 hook if present.
248
272bb05c
JB
2492020-07-21 John Baldwin <jhb@FreeBSD.org>
250
251 * gdbarch.c: Regenerate.
252 * gdbarch.h: Regenerate.
253 * gdbarch.sh (report_signal_info): New method.
254 * infrun.c (print_signal_received_reason): Invoke gdbarch
255 report_signal_info hook if present.
256
baf8791e
AB
2572020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
258
259 * python/py-registers.c : Add 'unordered_map' include.
260 (gdbpy_new_reggroup): Renamed to...
261 (gdbpy_get_reggroup): ...this. Update to only create register
262 group descriptors when needed.
263 (gdbpy_reggroup_iter_next): Update.
264
f7306dac
AB
2652020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * python/py-registers.c (gdbpy_register_object_data): New static
268 global.
269 (gdbpy_register_object_data_init): New function.
270 (gdbpy_new_register_descriptor): Renamed to...
271 (gdbpy_get_register_descriptor): ...this, and update to reuse
272 existing register descriptors where possible.
273 (gdbpy_register_descriptor_iter_next): Update.
274 (gdbpy_initialize_registers): Register new gdbarch data.
275
05c309a8
SM
2762020-07-21 Simon Marchi <simon.marchi@efficios.com>
277
278 * linux-nat.c (stopped_pids): Make static.
279
d1fd641e
SM
2802020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
281
282 PR ada/26235
283 * gdbtypes.c (ada_discrete_type_low_bound,
284 ada_discrete_type_high_bound): Handle undefined bounds.
285
1de14d77
KR
2862020-07-21 Kamil Rytarowski <n54@gmx.com>
287
288 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
289 declaration.
290 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
291 function.
292
ed810cc7
JB
2932020-07-20 John Baldwin <jhb@FreeBSD.org>
294
295 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
296 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
297 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
298 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
299 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
300 method.
301
ae5369e7
LC
3022020-07-20 Ludovic Courtès <ludo@gnu.org>
303
304 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
305 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
306 which are deprecated in Guile 3.0.
307 * configure.ac (try_guile_versions): Add "guile-3.0".
308 * configure (try_guile_versions): Regenerate.
309 * NEWS: Update entry.
310
68cf161c
LC
3112020-07-20 Ludovic Courtès <ludo@gnu.org>
312 Doug Evans <dje@google.com>
313
314 PR gdb/21104
315 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
316 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
317 USING_GUILE_BEFORE_2_2.
318 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
319 Change type to 'scm_t_port_type *'.
320 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
321 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
322 parameter and honor it. Update callers.
323 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
324 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
325 functions.
326 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
327 USING_GUILE_BEFORE_2_2.
328 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
329 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
330 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
331 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
332 and 'SCM_PORT_TYPE'.
333 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
334 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
335 (gdbscm_memory_port_read, gdbscm_memory_port_write)
336 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
337 [!USING_GUILE_BEFORE_2_2]: New functions.
338 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
339 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
340 'gdbscm_memory_port_read'.
341 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
342 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
343 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
344 function.
345 (ioscm_init_memory_port): Remove.
346 (ioscm_init_memory_port_stream): New function
347 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
348 function.
349 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
350 Return scm_from_uint (0).
351 (gdbscm_set_memory_port_read_buffer_size_x)
352 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
353 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
354 Return scm_from_uint (0).
355 (gdbscm_set_memory_port_write_buffer_size_x)
356 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
357 * configure.ac (try_guile_versions): Add "guile-2.2".
358 * configure: Regenerate.
359 * NEWS: Add entry.
360
aee91db3
TT
3612020-07-18 Tom Tromey <tom@tromey.com>
362
363 * linux-nat.c (linux_multi_process): Remove.
364 (linux_nat_target::supports_multi_process): Return true.
365
0e267416
AB
3662020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
367
368 * arch/riscv.c (riscv_tdesc_cache): Change map type.
369 (riscv_lookup_target_description): Return pointer out of
370 unique_ptr.
371 * target-descriptions.c (allocate_target_description): Add
372 comment.
373 (target_desc_deleter::operator()): Likewise.
374 * target-descriptions.h (struct target_desc_deleter): Moved to
375 gdbsupport/tdesc.h.
376 (target_desc_up): Likewise.
377
f80c8ec4
TT
3782020-07-17 Tom Tromey <tromey@adacore.com>
379
380 * linux-nat.c (linux_nat_target::supports_non_stop)
381 (linux_nat_target::always_non_stop_p): Use "true".
382 (linux_nat_target::supports_disable_randomization): Use "true" and
383 "false".
384
d0ce17d8
CT
3852020-07-16 Caroline Tice <cmtice@google.com>
386
387 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
388 (RNGLIST_HEADER_SIZE64): New constant definition.
389 (struct dwop_section_names): Add rnglists_dwo.
390 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
391 (struct loclist_header): Rename to 'loclists_rnglists_header'.
392 (struct dwo_sections): Add rnglists field.
393 (read_attribut_reprocess): Add tag parameter.
394 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
395 (cu_debug_rnglists_section): New function (decl & definition).
396 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
397 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
398 die whose range is being checked; get rnglist section from
399 cu_debug_rnglists_section, to get from either objfile or dwo file as
400 appropriate. Add cases for DW_RLE_base_addressx,
401 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
402 the base address to DW_RLE_offset_pairs (not to all ranges), moving
403 test inside if-condition and updating complaint message.
404 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
405 dwarf2_rnglists_process.
406 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
407 dwarf2_ranges_process.
408 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
409 need_ranges_base and update comment appropriately. Also pass die tag
410 to dwarf2_ranges_read.
411 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
412 need_ranges_base and update comment appropriately. Also pass die tag
413 to dwarf2_ranges_process.
414 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
415 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
416 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
417 need_ranges_base and update comment appropriately. Also pass die tag
418 to read_attribute_reprocess and dwarf2_ranges_read.
419 (read_loclist_header): Rename function to read_loclists_rnglists_header,
420 and update function comment appropriately.
421 (read_loclist_index): Call read_loclists_rnglists_header instead of
422 read_loclist_header.
423 (read_rnglist_index): New function.
424 (read_attribute_reprocess): Add tag parameter. Add code for
425 DW_FORM_rnglistx, passing tag to read_rnglist_index.
426 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
427
3dcc261c
AB
4282020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
431 being resolved.
432
ccb9eba6
AB
4332020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
434
435 * arch-utils.c (show_architecture): Update formatting of messages.
436
cf88be68
SM
4372020-07-12 Simon Marchi <simon.marchi@efficios.com>
438
439 * gdbtypes.h (struct type) <bounds>: Handle array and string
440 types.
441 * ada-lang.c (assign_aggregate): Use type::bounds on
442 array/string type.
443 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
444 * c-varobj.c (c_number_of_children): Likewise.
445 (c_describe_child): Likewise.
446 * eval.c (evaluate_subexp_for_sizeof): Likewise.
447 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
448 (f_type_print_base): Likewise.
449 * f-valprint.c (f77_array_offset_tbl): Likewise.
450 (f77_get_upperbound): Likewise.
451 (f77_print_array_1): Likewise.
452 * guile/scm-type.c (gdbscm_type_range): Likewise.
453 * m2-typeprint.c (m2_array): Likewise.
454 (m2_is_long_set_of_type): Likewise.
455 * m2-valprint.c (get_long_set_bounds): Likewise.
456 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
457 * python/py-type.c (typy_range): Likewise.
458 * rust-lang.c (rust_internal_print_type): Likewise.
459 * type-stack.c (type_stack::follow_types): Likewise.
460 * valarith.c (value_subscripted_rvalue): Likewise.
461 * valops.c (value_cast): Likewise.
462
509971ae
SM
4632020-07-12 Simon Marchi <simon.marchi@efficios.com>
464
465 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
466 callers to use the equivalent accessor methods.
467
107406b7
SM
4682020-07-12 Simon Marchi <simon.marchi@efficios.com>
469
470 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
471 (struct type) <bit_stride>: New method.
472 (TYPE_BIT_STRIDE): Remove.
473 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
474
bb789949
SM
4752020-07-12 Simon Marchi <simon.marchi@efficios.com>
476
477 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
478 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
479 callers to use the equivalent accessor methods instead.
480
39498edb
SM
4812020-07-12 Simon Marchi <simon.marchi@efficios.com>
482
483 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
484 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
485 callers to use the equivalent accessor methods instead.
486
3b606f38
SM
4872020-07-12 Simon Marchi <simon.marchi@efficios.com>
488
489 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
490 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
491 to use dynamic_prop::kind.
492
064d9cb9
SM
4932020-07-12 Simon Marchi <simon.marchi@efficios.com>
494
495 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
496 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
497 to get the bound property's kind and check against
498 PROP_UNDEFINED.
499
5537ddd0
SM
5002020-07-12 Simon Marchi <simon.marchi@efficios.com>
501
502 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
503 all callers to use type::range_bounds followed by
504 dynamic_prop::{low,high}.
505
8c2e4e06
SM
5062020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
509 const_val, set_const_val, baton, set_locexpr, set_loclist,
510 set_addr_offset, variant_parts, set_variant_parts,
511 original_type, set_original_type>: New methods.
512 <kind>: Rename to...
513 <m_kind>: ... this. Update all users to use the new methods
514 instead.
515 <data>: Rename to...
516 <m_data>: ... this. Update all users to use the new methods
517 instead.
518
7c6f2712
SM
5192020-07-12 Simon Marchi <simon.marchi@efficios.com>
520
521 * gdbtypes.c (get_discrete_bounds): Return failure if
522 the range type's bounds are not both defined and constant
523 values.
524 (get_array_bounds): Update comment. Remove undefined bound check.
525
599088e3
SM
5262020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
527
528 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
529 the type::bounds method directly.
530
c4dfcb36
SM
5312020-07-12 Simon Marchi <simon.marchi@efficios.com>
532
533 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
534 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
535 are used to set the range type's bounds to use set_bounds.
536
0a278aa7
PW
5372020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
538
539 * exec.c (_initialize_exec): Update exec-file-mismatch help.
540
cce20f10
PA
5412020-07-10 Pedro Alves <pedro@palves.net>
542
543 * gdbthread.h (inferior_ref): Define.
544 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
545 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
546 * thread.c
547 (scoped_restore_current_thread::restore):
548 Adjust to gdb::ref_ptr.
549 (scoped_restore_current_thread::~scoped_restore_current_thread):
550 Remove manual decref handling.
551 (scoped_restore_current_thread::scoped_restore_current_thread):
552 Adjust to use
553 inferior_ref::new_reference/thread_info_ref::new_reference.
554 Incref the thread before calling get_frame_id instead of after.
555 Let TARGET_CLOSE_ERROR propagate.
556
6d7aa592
PA
5572020-07-10 Pedro Alves <pedro@palves.net>
558
559 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
560 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
561 NOT_AVAILABLE_ERROR.
562 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
563 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
564
b3e3a4c1
SM
5652020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
566 Pedro Alves <pedro@palves.net>
567
568 PR gdb/26199
569 * infrun.c (threads_are_resumed_pending_p): Delete.
570 (do_target_wait): Remove threads_are_executing and
571 threads_are_resumed_pending_p checks from the inferior_matches
572 lambda. Update comments.
573
d6cc5d98
PA
5742020-07-10 Pedro Alves <pedro@palves.net>
575
576 PR gdb/26199
577 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
578 executing threads.
579
7d3badc6
PA
5802020-07-10 Pedro Alves <pedro@palves.net>
581
582 PR gdb/26199
583 * infrun.c (handle_no_resumed): Handle multiple targets.
584
42bd97a6
PA
5852020-07-10 Pedro Alves <pedro@palves.net>
586
587 PR gdb/26199
588 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
589 target_is_async_p.
590
43667cc6
PA
5912020-07-10 Pedro Alves <pedro@palves.net>
592
593 PR gdb/26199
594 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
595 threads, not all threads.
596
96118d11
PA
5972020-07-10 Pedro Alves <pedro@palves.net>
598
599 PR gdb/26199
600 * remote.c (remote_target::open_1): Pass remote target pointer as
601 data to create_async_event_handler.
602 (remote_async_inferior_event_handler): Mark async event handler
603 before returning if the remote target still has either pending
604 events or unacknowledged notifications.
605
54904d81
JB
6062020-07-10 John Baldwin <jhb@FreeBSD.org>
607
608 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
609 declaration.
610 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
611 function.
612
f37e5866
JB
6132020-07-09 John Baldwin <jhb@FreeBSD.org>
614
615 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
616 inferior_ptid.
617
fc238d4a
JB
6182020-07-09 John Baldwin <jhb@FreeBSD.org>
619
620 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
621 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
622 AT_FREEBSD_PS_STRINGS.
623
6e2469ff
HD
6242020-07-08 Hannes Domani <ssbssa@yahoo.de>
625
626 * auto-load.c (auto_load_objfile_script_1): Convert drive part
627 of debugfile path on Windows.
628
d1076c41
JB
6292020-07-08 John Baldwin <jhb@FreeBSD.org>
630
631 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
632 argument to 'data'.
633
15f3b077
TT
6342020-07-08 Tom Tromey <tromey@adacore.com>
635
636 * ada-lang.c (ada_exception_message_1): Use read_memory.
637
9fc501fd
AB
6382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
639
640 PR python/22748
641 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
642 special handling for inline frames.
643 * findvar.c (value_of_register_lazy): Skip inline frames when
644 creating lazy register values.
645 * frame.c (frame_id_computed_p): Delete definition.
646 * frame.h (frame_id_computed_p): Delete declaration.
647
64cb3757
AB
6482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
649
650 * NEWS: Mention additions to Python API.
651 * python/py-arch.c (archpy_register_groups): New function.
652 (arch_object_methods): Add 'register_groups' method.
653 * python/py-registers.c (reggroup_iterator_object): New struct.
654 (reggroup_object): New struct.
655 (gdbpy_new_reggroup): New function.
656 (gdbpy_reggroup_to_string): New function.
657 (gdbpy_reggroup_name): New function.
658 (gdbpy_reggroup_iter): New function.
659 (gdbpy_reggroup_iter_next): New function.
660 (gdbpy_new_reggroup_iterator): New function
661 (gdbpy_initialize_registers): Register new types.
662 (reggroup_iterator_object_type): Define new Python type.
663 (gdbpy_reggroup_getset): New static global.
664 (reggroup_object_type): Define new Python type.
665 * python/python-internal.h
666
0f767f94
AB
6672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
670 * python/py-arch.c (archpy_registers): New function.
671 (arch_object_methods): Add 'registers' method.
672 * python/py-registers.c: New file.
673 * python/python-internal.h
674 (gdbpy_new_register_descriptor_iterator): Declare.
675 (gdbpy_initialize_registers): Declare.
676 * python/python.c (do_start_initialization): Call
677 gdbpy_initialize_registers.
678 * NEWS: Mention additions to the Python API.
679
87dbc774
AB
6802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
681
682 * NEWS: Mention new Python API method.
683 * python/py-unwind.c (pending_framepy_architecture): New function.
684 (pending_frame_object_methods): Add architecture method.
685
3bc98c0c
AB
6862020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * gdbarch.c: Regenerate.
689 * gdbarch.h: Regenerate.
690 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
691 (gdbarch_data): Use internal_error for the case where
692 deprecated_set_gdbarch_data was originally needed.
693 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
694 and use passed in obstack.
695 (libunwind_frame_set_descr): Should no longer get back NULL from
696 gdbarch_data.
697 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
698 type.
699 * user-regs.c (user_regs_init): Update parameters, and use passed
700 in obstack.
701 (user_reg_add): Should no longer get back NULL from gdbarch_data.
702 (_initialize_user_regs): Register as a pre-init gdbarch data type.
703
d8cc8af6
TV
7042020-07-06 Tom de Vries <tdevries@suse.de>
705
706 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
707 End-Of-Sequence in lte_is_less_than.
708 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
709 "gdb: Don't reorder line table entries too much when sorting".
710
947f7597
TV
7112020-07-06 Tom de Vries <tdevries@suse.de>
712
713 PR tui/26205
714 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
715
1e7c1b22
TV
7162020-07-05 Tom de Vries <tdevries@suse.de>
717
718 PR build/26187
719 * inferior.h (struct infcall_suspend_state_deleter): If available, use
720 std::uncaught_exceptions instead of deprecated
721 std::uncaught_exception.
722
a36158ec
SM
7232020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * macroexp.h (macro_stringify): Return
726 gdb::unique_xmalloc_ptr<char>.
727 * macroexp.c (macro_stringify): Likewise.
728 * macrotab.c (fixup_definition): Update.
729
14d960c8
SM
7302020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
731
732 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
733 (lex_one_token): Update.
734 * macroexp.c (struct macro_buffer) <release>: Return
735 gdb::unique_xmalloc_ptr<char>.
736 (macro_stringify): Update.
737 (macro_expand): Update.
738 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
739 * macroexp.h (macro_expand_next): Likewise.
740
211d5b1c
SM
7412020-07-02 Simon Marchi <simon.marchi@efficios.com>
742
743 * macroexp.h (macro_lookup_ftype): Remove.
744 (macro_expand, macro_expand_once, macro_expand_next): Remove
745 lookup function parameters, add scope parameter.
746 * macroexp.c (scan, substitute_args, expand, maybe_expand,
747 macro_expand, macro_expand_once, macro_expand_next): Likewise.
748 * macroscope.h (standard_macro_lookup): Change parameter type
749 to macro_scope.
750 * macroscope.c (standard_macro_lookup): Likewise.
751 * c-exp.y (lex_one_token): Update.
752 * macrocmd.c (macro_expand_command): Likewise.
753 (macro_expand_once_command): Likewise.
754
b1a35af2
SM
7552020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
756
757 * inf-loop.c (inferior_event_handler): Remove client_data param.
758 * inf-loop.h (inferior_event_handler): Likewise.
759 * infcmd.c (step_1): Adjust.
760 * infrun.c (proceed): Adjust.
761 (fetch_inferior_event): Remove client_data param.
762 (infrun_async_inferior_event_handler): Adjust.
763 * infrun.h (fetch_inferior_event): Remove `void *` param.
764 * linux-nat.c (handle_target_event): Adjust.
765 * record-btrace.c (record_btrace_handle_async_inferior_event):
766 Adjust.
767 * record-full.c (record_full_async_inferior_event_handler):
768 Adjust.
769 * remote.c (remote_async_inferior_event_handler): Adjust.
770
1cdf9e33
TT
7712020-07-01 Tom Tromey <tom@tromey.com>
772
773 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
774 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
775
32c1e210
TT
7762020-07-01 Tom Tromey <tom@tromey.com>
777
778 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
779 tui_gen_win_info.
780 (tui_win_info::make_window): Merge with
781 tui_gen_win_info::make_window.
782 (tui_win_info::make_visible): Move from tui_gen_win_info.
783 * tui/tui-win.c (tui_win_info::max_width): Move from
784 tui_gen_win_info.
785 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
786 type.
787 <window_factory>: Likewise.
788 * tui/tui-layout.c (tui_win_info::resize): Move from
789 tui_gen_win_info.
790 (make_standard_window): Change return type.
791 (get_locator_window, tui_get_window_by_name): Likewise.
792 (tui_layout_window::apply): Remove a cast.
793 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
794 (struct tui_win_info): Merge with tui_gen_win_info.
795 (struct tui_gen_win_info): Remove.
796
a30cb6da
TT
7972020-07-01 Tom Tromey <tom@tromey.com>
798
799 * tui/tui-stack.h (struct tui_locator_window): Derive from
800 tui_win_info.
801 <do_scroll_horizontal, do_scroll_vertical>: New methods.
802 <can_box>: New method.
803
1eb2161f
TT
8042020-07-01 Tom Tromey <tom@tromey.com>
805
806 * tui/tui-stack.h (struct tui_locator_window): Remove body.
807
7134f2eb
TT
8082020-07-01 Tom Tromey <tom@tromey.com>
809
810 * tui/tui-regs.c (tui_data_window::display_registers_from)
811 (tui_data_window::display_registers_from)
812 (tui_data_window::first_data_item_displayed)
813 (tui_data_window::delete_data_content_windows): Update.
814 (tui_data_window::refresh_window, tui_data_window::no_refresh):
815 Remove.
816 (tui_data_window::check_register_values): Update.
817 (tui_data_item_window::rerender): Add parameters. Update.
818 (tui_data_item_window::refresh_window): Remove.
819 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
820 virtual.
821 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
822 tui_gen_win_info.
823 <refresh_window, max_height, min_height>: Remove.
824 <rerender>: Add parameters.
825 <x, y, visible>: New members.
826 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
827 <m_item_width>: New member.
828
22b7b041
TT
8292020-07-01 Tom Tromey <tom@tromey.com>
830
831 * tui/tui-regs.c (tui_data_window::show_register_group)
832 (tui_data_window::check_register_values): Update.
833 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
834 from item_no.
835
c9753adb
TT
8362020-07-01 Tom Tromey <tom@tromey.com>
837
838 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
839 useless "if".
840
9ab26b4a
TT
8412020-07-01 Tom Tromey <tom@tromey.com>
842
843 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
844 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
845
e555083f
TT
8462020-07-01 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
849 * tui/tui-winsource.h (enum tui_line_or_address_kind)
850 (struct tui_line_or_address): Move from tui-data.h.
851 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
852 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
853 (tui_cmd_window, tui_source_window_base, tui_source_window)
854 (tui_disasm_window): Don't declare.
855 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
856 to tui-winsource.h.
857 (SINGLE_KEY): Move to tui-stack.c.
858
7a02bab7
TT
8592020-07-01 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
862 std::string.
863 * tui/tui-regs.c (class tab_expansion_file): New.
864 (tab_expansion_file::write): New method.
865 (tui_register_format): Change return type. Use
866 tab_expansion_file.
867 (tui_get_register, tui_data_window::display_registers_from)
868 (tui_data_item_window::rerender): Update.
869 * tui/tui-io.h (tui_expand_tabs): Don't declare.
870 * tui/tui-io.c (tui_expand_tabs): Remove.
871
ea68593b
TT
8722020-07-01 Tom Tromey <tom@tromey.com>
873
874 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
875
a8caed5d
FS
8762020-07-01 Fangrui Song <maskray@google.com>
877
878 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
879
9cdf9820
AKS
8802020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
881
882 * dwarf2/read.c (set_die_type): Removed conditions to restrict
883 forms for DW_AT_associated and DW_AT_allocated attributes,
884 which is already checked in function attr_to_dynamic_prop.
885
a1520ad8
TT
8862020-06-30 Tom Tromey <tromey@adacore.com>
887
888 * dwarf2/read.c (quirk_rust_enum): Correctly call
889 alloc_rust_variant for default-less enum.
890
5ac58899
TT
8912020-06-30 Tom Tromey <tromey@adacore.com>
892
893 PR build/26183:
894 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
895 gdb::to_string.
896
19b187a9
SM
8972020-06-29 Simon Marchi <simon.marchi@efficios.com>
898
899 * gdbarch.sh (displaced_step_copy_insn): Update doc.
900 * gdbarch.h: Re-generate.
901
cd4c4c07
TT
9022020-06-28 Tom Tromey <tom@tromey.com>
903
904 * command.h (cmd_types): Remove.
905 (cmd_type): Don't declare.
906 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
907 typedef.
908 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
909 * cli/cli-decode.c (cmd_type): Remove.
910
05779d57
PA
9112020-06-27 Pedro Alves <palves@redhat.com>
912
913 * fork-child.c (prefork_hook): Adjust.
914 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
915 Delete.
916 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
917 * inferior.c (inferior::set_tty, inferior::tty): New methods.
918 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
919 Remove declarations.
920 (struct inferior) <set_tty, tty>: New methods.
921 (struct inferior) <terminal>: Rename to ...
922 (struct inferior) <m_terminal>: ... this and make private.
923 * main.c (captured_main_1): Adjust.
924 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
925 (mi_cmd_inferior_tty_show): Adjust.
926 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
927 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
928
1776e3e5
NA
9292020-06-26 Nick Alcock <nick.alcock@oracle.com>
930
931 * configure.ac: Add --enable-libctf: handle --disable-static
932 properly.
933 * acinclude.m4: sinclude ../config/enable.m4.
934 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
935 (LIBCTF): Substitute in.
936 (CTF_DEPS): New, likewise.
937 (CLIBS): libctf needs symbols from libbfd: move earlier.
938 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
939 flags.
940 * ctfread.c: Surround in ENABLE_LIBCTF.
941 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
942 * configure: Regenerate.
943 * config.in: Likewise.
944
58373b80
SM
9452020-06-25 Simon Marchi <simon.marchi@efficios.com>
946
947 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
948
277474ee
SM
9492020-06-25 Simon Marchi <simon.marchi@efficios.com>
950
951 * inferior.h (struct inferior) <terminal>: Change type to
952 gdb::unique_xmalloc_ptr<char>.
953 * inferior.c (inferior::~inferior): Don't free inf->terminal.
954 * infcmd.c (set_inferior_io_terminal): Don't free terminal
955 field, adjust to unique pointer.
956 (get_inferior_io_terminal): Adjust to unique pointer.
957
6d74da72
AB
9582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
959
960 * riscv-tdep.c (riscv_print_registers_info): Loop over all
961 registers, not just the known core set of registers.
962
2e52d038
AB
9632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
966 fflags, frm, and fcsr registers.
967 (riscv_register_reggroup_p): Remove unknown CSRs from save and
968 restore groups.
969 (riscv_tdesc_unknown_reg): New function.
970 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
971 tdesc_use_registers.
972 * riscv-tdep.h (struct gdbarch_tdep): Add
973 unknown_csrs_first_regnum, unknown_csrs_count,
974 duplicate_fflags_regnum, duplicate_frm_regnum, and
975 duplicate_fcsr_regnum fields.
976
be64fd07
AB
9772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
978
979 * target-descriptions.c (tdesc_use_registers): Add new parameter a
980 callback, use the callback (when not null) to help number unknown
981 registers.
982 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
983 (tdesc_use_registers): Add extra parameter to declaration.
984
3b9fce96
AB
9852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
988 in the file.
989 (class riscv_pending_register_alias): Likewise.
990 (riscv_register_feature::register_info): Change 'required_p' field
991 to 'required', and change its type. Add 'check' member function.
992 (riscv_register_feature::register_info::check): Define new member
993 function.
994 (riscv_xreg_feature): Change initialisation of 'required' field.
995 (riscv_freg_feature): Likewise.
996 (riscv_virtual_feature): Likewise.
997 (riscv_csr_feature): Likewise.
998 (riscv_check_tdesc_feature): Take extra parameter, the csr
999 tdesc_feature, rewrite the function to use the new
1000 riscv_register_feature::register_info::check function.
1001 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1002
865bad26
AB
10032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1004
1005 * features/Makefile: Remove all references to the deleted files
1006 below.
1007 * features/riscv/32bit-csr.c: Deleted.
1008 * features/riscv/32bit-csr.xml: Deleted.
1009 * features/riscv/64bit-csr.c: Deleted.
1010 * features/riscv/64bit-csr.xml: Deleted.
1011 * features/riscv/rebuild-csr-xml.sh: Deleted.
1012
ed69cbc8
AB
10132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1014
1015 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1016 whitespace error for declaration of names member variable.
1017 (struct riscv_register_feature): Add new prefer_first_name member
1018 variable, and fix whitespace error in declaration of registers.
1019 (riscv_xreg_feature): Initialize prefer_first_name field.
1020 (riscv_freg_feature): Likewise.
1021 (riscv_virtual_feature): Likewise.
1022 (riscv_csr_feature): Likewise.
1023 (riscv_register_name): Expand on comments. Remove register name
1024 modifications for CSR and virtual registers.
1025
4445e8f5
AB
10262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1027
1028 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1029 errors.
1030
767a879e
AB
10312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1032
1033 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1034 riscv-opc.h.
1035 (class riscv_pending_register_alias): New class.
1036 (riscv_check_tdesc_feature): Take vector of pending aliases and
1037 populate it as appropriate.
1038 (riscv_setup_register_aliases): Delete.
1039 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1040 to riscv_check_tdesc_feature in all cases. Use the vector to
1041 create the register aliases.
1042
bb6e55f3
RO
10432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1044
1045 * sol2-tdep.c (sol2_static_transform_name): Remove.
1046 (sol2_init_abi): Don't register it.
1047 * gdbarch.sh (static_transform_name): Remove.
1048 * gdbarch.c, gdbarch.h: Regenerate.
1049
1050 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1051 gdbarch_static_transform_name.
1052 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1053 * stabsread.c (define_symbol) <'X'>: Remove.
1054 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1055 handling.
1056 <'V'>: Likewise.
1057 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1058 <'S'>: Remove call to gdbarch_static_transform_name.
1059
c6d36836
RO
10602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1061
1062 * procfs.c (procfs_pre_trace): New function.
1063 (procfs_target::create_inferior): Pass it to fork_inferior.
1064
a7e6196b
RO
10652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1066
1067 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1068 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1069 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1070 sol2-tdep.o, sparc-sol2-tdep.o.
1071 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1072 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1073 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1074 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1075
d412e696
RO
10762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1077
1078 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1079 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1080 Call sol2_init_abi.
1081 Remove calls to set_gdbarch_skip_solib_resolver,
1082 set_gdbarch_core_pid_to_str.
1083 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1084 (i386_sol2_static_transform_name): Remove.
1085 (i386_sol2_init_abi): Call sol2_init_abi.
1086 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1087 set_gdbarch_static_transform_name,
1088 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1089 Use sol2_sigtramp_p.
1090 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1091 (sol2_sigtramp_p): New function.
1092 (sol2_static_transform_name): New function.
1093 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1094 (sol2_init_abi): New function.
1095 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1096 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1097 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1098 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1099 (sparc_sol2_static_transform_name): Remove.
1100 (sparc32_sol2_init_abi): Call sol2_init_abi.
1101 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1102 set_gdbarch_static_transform_name,
1103 set_gdbarch_skip_solib_resolver,
1104 set_gdbarch_core_pid_to_str.
1105 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1106 (sparc_sol2_static_transform_name): Remove
1107 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1108 call sol2_sigtramp_p.
1109 (sparc64_sol2_init_abi): Call sol2_init_abi.
1110 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1111 set_gdbarch_static_transform_name,
1112 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1113
a8654e7d
PW
11142020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1115
1116 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1117 * exec.c (validate_exec_file): If from_tty, set both
1118 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1119 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1120 and from_tty, unconditionally ask a confirmation.
1121
caa7fd04
AB
11222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1123
1124 * target-descriptions.c (tdesc_architecture_name): Protect against
1125 NULL pointer dereference.
1126 (maint_print_xml_tdesc_cmd): New function.
1127 (_initialize_target_descriptions): Register new 'maint print
1128 xml-tdesc' command and give it the filename completer.
1129 * NEWS: Mention new 'maint print xml-tdesc' command.
1130
fbf42f4e
AB
11312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1132
1133 * target-descriptions.c (class tdesc_compatible_info): New class.
1134 (struct target_desc): Change type of compatible vector.
1135 (tdesc_compatible_p): Update for change in type of
1136 target_desc::compatible.
1137 (tdesc_compatible_info_list): New function.
1138 (tdesc_compatible_info_arch_name): New function.
1139 (tdesc_add_compatible): Update for change in type of
1140 target_desc::compatible.
1141 (print_c_tdesc::visit_pre): Likewise.
1142
20821f4e
AB
11432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1144
1145 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1146 whitespace to underscore.
1147 (maint_print_c_tdesc_cmd): Use fake filename for target
1148 descriptions that came from the target.
1149 (_initialize_target_descriptions): Add filename command completion
1150 for 'maint print c-tdesc'.
1151
1fb5ee62
SM
11522020-06-23 Simon Marchi <simon.marchi@efficios.com>
1153
1154 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1155 lines.
1156
fc3ecb3e
SM
11572020-06-23 Simon Marchi <simon.marchi@efficios.com>
1158
1159 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1160 lines.
1161 (dwarf2_find_location_expression): Likewise.
1162 (call_site_parameter_matches): Likewise.
1163 (dwarf2_compile_expr_to_ax): Likewise.
1164 (disassemble_dwarf_expression): Likewise.
1165 (loclist_describe_location): Likewise.
1166
236ef034
PA
11672020-06-23 Pedro Alves <palves@redhat.com>
1168
1169 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1170 progspace-and-thread.h. Include scoped-mock-context.h instead.
1171 (register_to_value_test): Use scoped_mock_context.
1172 * regcache.c: Include "scoped-mock-context.h".
1173 (cooked_read_test): Don't error out if a target is already pushed.
1174 Use scoped_mock_context. Adjust.
1175 * scoped-mock-context.h: New file.
1176
39e7ecca
AB
11772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1180 initializer.
1181 (ada_language::is_string_type_p): New member function.
1182 * c-lang.c (c_language_data): Delete la_is_string_type_p
1183 initializer.
1184 (cplus_language_data): Likewise.
1185 (asm_language_data): Likewise.
1186 (minimal_language_data): Likewise.
1187 * d-lang.c (d_language_data): Likewise.
1188 * f-lang.c (f_is_string_type_p): Delete function, implementation
1189 moved to f_language::is_string_type_p.
1190 (f_language_data): Delete la_is_string_type_p initializer.
1191 (f_language::is_string_type_p): New member function,
1192 implementation from f_is_string_type_p.
1193 * go-lang.c (go_is_string_type_p): Delete function, implementation
1194 moved to go_language::is_string_type_p.
1195 (go_language_data): Delete la_is_string_type_p initializer.
1196 (go_language::is_string_type_p): New member function,
1197 implementation from go_is_string_type_p.
1198 * language.c (language_defn::is_string_type_p): Define new member
1199 function.
1200 (default_is_string_type_p): Make static, add comment copied from
1201 header file.
1202 (unknown_language_data): Delete la_is_string_type_p initializer.
1203 (unknown_language::is_string_type_p): New member function.
1204 (auto_language_data): Delete la_is_string_type_p initializer.
1205 (auto_language::is_string_type_p): New member function.
1206 * language.h (language_data): Delete la_is_string_type_p field.
1207 (language_defn::is_string_type_p): Declare new function.
1208 (default_is_string_type_p): Delete desclaration, move comment to
1209 definition.
1210 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1211 moved to m2_language::is_string_type_p.
1212 (m2_language_data): Delete la_is_string_type_p initializer.
1213 (m2_language::is_string_type_p): New member function,
1214 implementation from m2_is_string_type_p.
1215 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1216 initializer.
1217 * opencl-lang.c (opencl_language_data): Likewise.
1218 * p-lang.c (pascal_is_string_type_p): Delete function,
1219 implementation moved to pascal_language::is_string_type_p.
1220 (pascal_language_data): Delete la_is_string_type_p initializer.
1221 (pascal_language::is_string_type_p): New member function,
1222 implementation from pascal_is_string_type_p.
1223 * rust-lang.c (rust_is_string_type_p): Delete function,
1224 implementation moved to rust_language::is_string_type_p.
1225 (rust_language_data): Delete la_is_string_type_p initializer.
1226 (rust_language::is_string_type_p): New member function,
1227 implementation from rust_is_string_type_p.
1228 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1229 is_string_type_p.
1230
4ffc13fb
AB
12312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * ada-lang.c (ada_language_data): Delete la_print_typedef
1234 initializer.
1235 (ada_language::print_typedef): New member function.
1236 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1237 (cplus_language_data): Likewise.
1238 (asm_language_data): Likewise.
1239 (minimal_language_data): Likewise.
1240 * d-lang.c (d_language_data): Likewise.
1241 * f-lang.c (f_language_data): Likewise.
1242 (f_language::print_typedef): New member function.
1243 * go-lang.c (go_language_data): Delete la_print_typedef
1244 initializer.
1245 * language.c (language_defn::print_typedef): Define member
1246 function.
1247 (unknown_language_data): Delete la_print_typedef initializer.
1248 (unknown_language::print_typedef): New member function.
1249 (auto_language_data): Delete la_print_typedef initializer.
1250 (auto_language::print_typedef): New member function.
1251 * language.h (language_data): Delete la_print_typedef field.
1252 (language_defn::print_typedef): Declare new member function.
1253 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1254 (default_print_typedef): Delete declaration.
1255 * m2-lang.c (m2_language_data): Delete la_print_typedef
1256 initializer.
1257 (m2_language::print_typedef): New member function.
1258 * objc-lang.c (objc_language_data): Delete la_print_typedef
1259 initializer.
1260 * opencl-lang.c (opencl_language_data): Likewise.
1261 * p-lang.c (pascal_language_data): Likewise.
1262 (pascal_language::print_typedef): New member function.
1263 * rust-lang.c (rust_print_typedef): Delete function,
1264 implementation moved to rust_language::print_typedef.
1265 (rust_language): Delete la_print_typedef initializer.
1266 (rust_language::print_typedef): New member function,
1267 implementation from rust_print_typedef.
1268 * typeprint.c (default_print_typedef): Delete.
1269
d711ee67
AB
12702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1271
1272 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1273 (ada_language::printstr): New member function.
1274 * c-lang.c (c_language_data): Delete la_printstr initializer.
1275 (cplus_language_data): Likewise.
1276 (asm_language_data): Likewise.
1277 (minimal_language_data): Likewise.
1278 * d-lang.c (d_language_data): Likewise.
1279 * f-lang.c (f_printstr): Rename to f_language::printstr.
1280 (f_language_data): Delete la_printstr initializer.
1281 (f_language::printstr): New member function, implementation from
1282 f_printstr.
1283 * go-lang.c (go_language_data): Delete la_printstr initializer.
1284 * language.c (language_defn::printstr): Define new member
1285 function.
1286 (unk_lang_printstr): Delete.
1287 (unknown_language_data): Delete la_printstr initializer.
1288 (unknown_language::printstr): New member function.
1289 (auto_language_data): Delete la_printstr initializer.
1290 (auto_language::printstr): New member function.
1291 * language.h (language_data): Delete la_printstr field.
1292 (language_defn::printstr): Declare new member function.
1293 (LA_PRINT_STRING): Update call to printstr.
1294 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1295 (m2_language_data): Delete la_printstr initializer.
1296 (m2_language::printstr): New member function, implementation from
1297 m2_printstr.
1298 * objc-lang.c (objc_language_data): Delete la_printstr
1299 initializer.
1300 * opencl-lang.c (opencl_language_data): Likewise.
1301 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1302 (pascal_language_data): Delete la_printstr initializer.
1303 (pascal_language::printstr): New member function, implementation
1304 from pascal_printstr.
1305 * p-lang.h (pascal_printstr): Delete declaration.
1306 * rust-lang.c (rust_printstr): Update header comment.
1307 (rust_language_data): Delete la_printstr initializer.
1308 (rust_language::printstr): New member function.
1309
52b50f2c
AB
13102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1313 (ada_language::printchar): New member function.
1314 * c-lang.c (c_language_data): Delete la_printchar initializer.
1315 (cplus_language_data): Likewise.
1316 (asm_language_data): Likewise.
1317 (minimal_language_data): Likewise.
1318 * d-lang.c (d_language_data): Likewise.
1319 * f-lang.c (f_printchar): Rename to f_language::printchar.
1320 (f_language_data): Delete la_printchar initializer.
1321 (f_language::printchar): New member function, implementation from
1322 f_printchar.
1323 * go-lang.c (go_language_data): Delete la_printchar initializer.
1324 * language.c (unk_lang_printchar): Delete.
1325 (language_defn::printchar): Define new member function.
1326 (unknown_language_data): Delete la_printchar initializer.
1327 (unknown_language::printchar): New member function.
1328 (auto_language_data): Delete la_printchar initializer.
1329 (auto_language::printchar): New member function.
1330 * language.h (language_data): Delete la_printchar field.
1331 (language_defn::printchar): Declare new member function.
1332 (LA_PRINT_CHAR): Update call to printchar.
1333 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1334 (m2_language::printchar): New member function.
1335 * objc-lang.c (objc_language_data): Delete la_printchar
1336 initializer.
1337 * opencl-lang.c (opencl_language_data): Likewise.
1338 * p-lang.c (pascal_language_data): Delete la_printchar
1339 initializer.
1340 (pascal_language::printchar): New member function.
1341 * rust-lang.c (rust_printchar): Rename to
1342 rust_language::printchar.
1343 (rust_language_data): Delete la_printchar initializer.
1344 (rust_language::printchar): New member function, implementation
1345 from rust_printchar.
1346
ec8cec5b
AB
13472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1350 (ada_language_data): Delete la_emitchar initializer.
1351 (ada_language::emitchar): New member function, implementation from
1352 emit_char.
1353 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1354 (cplus_language_data): Likewise.
1355 (asm_language_data): Likewise.
1356 (minimal_language_data): Likewise.
1357 * d-lang.c (d_language_data): Likewise.
1358 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1359 (f_language_data): Delete la_emitchar initializer.
1360 (f_language::emitchar): New member function, implementation from
1361 f_emit_char.
1362 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1363 * language.c (unk_lang_emit_char): Delete.
1364 (language_defn::emitchar): New member function definition.
1365 (unknown_language_data): Delete la_emitchar initializer.
1366 (unknown_language::emitchar): New member function.
1367 (auto_language_data): Delete la_emitchar initializer.
1368 (auto_language::emitchar): New member function.
1369 * language.h (language_data): Delete la_emitchar field.
1370 (language_defn::emitchar): New member field declaration.
1371 (LA_EMIT_CHAR): Update call to emitchar.
1372 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1373 (m2_language_data): Delete la_emitchar initializer.
1374 (m2_language::emitchar): New member function, implementation from
1375 m2_emit_char.
1376 * objc-lang.c (objc_language_data): Delete la_emitchar
1377 initializer.
1378 * opencl-lang.c (opencl_language_data): Likewise.
1379 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1380 (pascal_language_data): Delete la_emitchar initializer.
1381 (pascal_language::emitchar): New member function, implementation
1382 from pascal_emit_char.
1383 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1384 (rust_language_data): Delete la_emitchar initializer.
1385 (rust_language::emitchar): New member function, implementation
1386 from rust_emitchar.
1387
1bf9c363
AB
13882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1391 (ada_language_data): Delete la_post_parser initializer.
1392 (ada_language::post_parser): New member function.
1393 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1394 (cplus_language_data): Likewise.
1395 (asm_language_data): Likewise.
1396 (minimal_language_data): Likewise.
1397 * d-lang.c (d_language_data): Likewise.
1398 * f-lang.c (f_language_data): Likewise.
1399 * go-lang.c (go_language_data): Likewise.
1400 * language.c (unknown_language_data): Likewise.
1401 (auto_language_data): Likewise.
1402 * language.h (language_data): Delete la_post_parser field.
1403 (language_defn::post_parser): New member function.
1404 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1405 * objc-lang.c (objc_language_data): Likewise.
1406 * opencl-lang.c (opencl_language_data): Likewise.
1407 * p-lang.c (pascal_language_data): Likewise.
1408 * parse.c (parse_exp_in_context): Update call to post_parser.
1409 (null_post_parser): Delete definition.
1410 * parser-defs.h (null_post_parser): Delete declaration.
1411 * rust-lang.c (rust_language_data): Delete la_post_parser
1412 initializer.
1413
87afa652
AB
14142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1415
1416 * ada-lang.c (parse): Rename to ada_language::parser.
1417 (ada_language_data): Delete la_parser initializer.
1418 (ada_language::parser): New member function, implementation from
1419 parse.
1420 * c-lang.c (c_language_data): Delete la_parser initializer.
1421 (cplus_language_data): Likewise.
1422 (asm_language_data): Likewise.
1423 (minimal_language_data): Likewise.
1424 * d-lang.c (d_language_data): Likewise.
1425 (d_language::parser): New member function.
1426 * f-lang.c (f_language_data): Delete la_parser initializer.
1427 (f_language::parser): New member function.
1428 * go-lang.c (go_language_data): Delete la_parser initializer.
1429 (go_language::parser): New member function.
1430 * language.c (unk_lang_parser): Delete.
1431 (language_defn::parser): Define new member function.
1432 (unknown_language_data): Delete la_parser initializer.
1433 (unknown_language::parser): New member function.
1434 (auto_language_data): Delete la_parser initializer.
1435 (auto_language::parser): New member function.
1436 * language.h (language_data): Delete la_parser field.
1437 (language_defn::parser): Declare new member function.
1438 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1439 (m2_language::parser): New member function.
1440 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1441 * opencl-lang.c (opencl_language_data): Likewise.
1442 * p-lang.c (pascal_language_data): Likewise.
1443 (pascal_language::parser): New member function.
1444 * parse.c (parse_exp_in_context): Update call to parser.
1445 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1446 (rust_language::parser): New member function.
1447
37825800
AB
14482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1449
1450 * top.c (print_gdb_configuration): Print --with-python-libdir
1451 configuration value.
1452
5b860c93
PW
14532020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1454
1455 * NEWS: Mention change to the alias command.
1456
cf00cd6f
PW
14572020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1458
1459 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1460 (alias_command_completer)
1461 (make_alias_options_def_group): New functions.
1462 (alias_opts, alias_option_defs): New struct and array.
1463 (alias_usage_error): Update usage.
1464 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1465 Use option framework.
1466 (_initialize_cli_cmds): Update alias command help.
1467 Update aliases command help.
1468 (show_user):
1469 Add NULL for new default_args lookup_cmd argument.
1470 (valid_command_p): Rename to validate_aliased_command.
1471 Add NULL for new default_args lookup_cmd argument. Verify that the
1472 aliased_command has no default args.
1473 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1474 (lookup_cmd_1, lookup_cmd): New argument default_args.
1475 (add_alias_cmd):
1476 Add NULL for new default_args lookup_cmd argument.
1477 (print_help_for_command): Show default args under the layout
1478 alias some_alias = some_aliased_cmd some_alias_default_arg.
1479 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1480 xfree default_args in destructor.
1481 * cli/cli-script.c (process_next_line, do_define_command):
1482 Add NULL for new default_args lookup_cmd argument.
1483 * command.h: Declare new default_args argument in lookup_cmd
1484 and lookup_cmd_1.
1485 * completer.c (complete_line_internal_1):
1486 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1487 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1488 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1489 Likewise.
1490 * infcmd.c (_initialize_infcmd): Likewise.
1491 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1492 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1493 * python/py-param.c (add_setshow_generic): Likewise.
1494 * remote.c (_initialize_remote): Likewise.
1495 * top.c (execute_command): Prepend default_args if command has some.
1496 (set_verbose):
1497 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1498 * tracepoint.c (validate_actionline, encode_actions_1):
1499 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1500
bd920864
TBA
15012020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1502
1503 * jit.c (jit_read_descriptor): Use bool as the return type.
1504 (jit_breakpoint_re_set_internal): Use bool as the return type.
1505 Invert the return value logic; return true if the jit breakpoint
1506 has been successfully initialized.
1507 (jit_inferior_init): Update the call to
1508 jit_breakpoint_re_set_internal.
1509
f8098322
PA
15102020-06-22 Pedro Alves <palves@redhat.com>
1511
1512 PR gdb/25939
1513 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1514 Use the current inferior instead. Don't return
1515 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1516 wait again.
1517 * sol-thread.c (sol_thread_target::wait): Don't reference
1518 inferior_ptid.
1519 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1520 (sol_update_thread_list_callback): Use the current inferior's pid
1521 instead of inferior_ptid.
1522
196535a6
RO
15232020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1524
1525 * procfs.c: Cleanup many comments.
1526
1527 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1528 (AFTER_WATCHFLAG): Replace by value.
1529
1530 (MAIN_PROC_NAME_FORMAT): Inline ...
1531 (create_procinfo): ... here.
1532
1533 (procfs_debug_inferior): Remove SYS_exec handling.
1534 (syscall_is_exec): Likewise.
1535 (procfs_set_exec_trap): Likewise.
1536
1537 (syscall_is_lwp_exit): Inline in callers.
1538 (syscall_is_exit): Likewise.
1539 (syscall_is_exec): Likewise.
1540 (syscall_is_lwp_create): Likewise.
1541
1542 (invalidate_cache): Remove #if 0 code.
1543
1544 (make_signal_thread_runnable): Remove.
1545 (procfs_target::resume): Remove #if 0 code.
1546
cf6f3e86
RO
15472020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1548
1549 PR gdb/25939
1550 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1551 call ...
1552 (procfs_target::create_inferior): ... here.
1553
48e9cc84
PW
15542020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1555
1556 * exec.c (validate_exec_file): Ensure the build-id is up to
1557 date by calling reopen_exec_file (that checks file timestamp
1558 to decide to re-read the file).
1559
3922b302
PA
15602020-06-18 Pedro Alves <palves@redhat.com>
1561
1562 PR gdb/25412
1563 * gdbthread.h (delete_thread, delete_thread_silent)
1564 (find_thread_ptid): Update comments.
1565 * thread.c (current_thread_): New global.
1566 (is_current_thread): Move higher, and reimplement.
1567 (inferior_thread): Reimplement.
1568 (set_thread_exited): Use bool. Add assertions.
1569 (add_thread_silent): Simplify thread-reuse handling by always
1570 calling delete_thread.
1571 (delete_thread): Remove intro comment.
1572 (find_thread_ptid): Skip exited threads.
1573 (switch_to_thread_no_regs): Write to current_thread_.
1574 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1575 INFERIOR_PTID. Clear current_thread_.
1576
6dbdab44
PA
15772020-06-18 Pedro Alves <palves@redhat.com>
1578
1579 * aix-thread.c (pd_update): Use switch_to_thread.
1580
2da4b788
PA
15812020-06-18 Pedro Alves <palves@redhat.com>
1582
1583 * ravenscar-thread.c (ravenscar_thread_target): Update.
1584 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1585 (ravenscar_thread_target::add_active_thread): ... this. Don't
1586 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1587 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1588
50838d1b
PA
15892020-06-18 Pedro Alves <palves@redhat.com>
1590
1591 * nat/windows-nat.c (current_windows_thread): Remove.
1592 * nat/windows-nat.h (current_windows_thread): Remove.
1593 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1594 Adjust.
1595 (display_selectors): Adjust to fetch the current
1596 windows_thread_info based on inferior_ptid.
1597 (fake_create_process): No longer write to current_windows_thread.
1598 (windows_nat_target::get_windows_debug_event):
1599 Don't set inferior_ptid or current_windows_thread.
1600 (windows_nat_target::wait): Adjust to not rely on
1601 current_windows_thread.
1602 (do_initial_windows_stuff): Now a method of windows_nat_target.
1603 Switch to the last_ptid thread.
1604 (windows_nat_target::attach): Adjust.
1605 (windows_nat_target::detach): Use switch_to_no_thread instead of
1606 writing to inferior_ptid directly.
1607 (windows_nat_target::create_inferior): Adjust.
1608
31ce04e9
PA
16092020-06-18 Pedro Alves <palves@redhat.com>
1610
1611 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1612
1ee1a363
PA
16132020-06-18 Pedro Alves <palves@redhat.com>
1614
1615 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1616 after creating it, instead of writing to inferior_ptid. Don't
1617 write to inferior_ptid.
1618
6d350754
PA
16192020-06-18 Pedro Alves <palves@redhat.com>
1620
1621 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1622
5d971d48
PA
16232020-06-18 Pedro Alves <palves@redhat.com>
1624
1625 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1626 it, instead of writing to inferior_ptid.
1627
86e57d1b
PA
16282020-06-18 Pedro Alves <palves@redhat.com>
1629
1630 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1631 to inferior_ptid.
1632
f2e1c129
PA
16332020-06-18 Pedro Alves <palves@redhat.com>
1634
1635 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1636 instead of writing to inferior_ptid directly.
1637
60db1b85
PA
16382020-06-18 Pedro Alves <palves@redhat.com>
1639
1640 * corelow.c (core_target::close): Use switch_to_no_thread instead
1641 of writing to inferior_ptid directly.
1642 (add_to_thread_list, core_target_open): Use switch_to_thread
1643 instead of writing to inferior_ptid directly.
1644
fe7d6a8d
PA
16452020-06-18 Pedro Alves <palves@redhat.com>
1646
1647 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1648 inferior_ptid.
1649 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1650 inferior_ptid.
1651 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1652 inferior_ptid directly.
1653 (darwin_nat_target::init_thread_list): Switch to thread, instead
1654 of writing to inferior_ptid.
1655 (darwin_nat_target::attach): Don't write to inferior_ptid.
1656 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1657
975f8708
PA
16582020-06-18 Pedro Alves <palves@redhat.com>
1659
1660 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1661 thread.
1662 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1663 Instead use switch_to_thread.
1664 (gnu_nat_target::detach): Use switch_to_no_thread
1665 instead of writing to inferior_ptid directly. Used passed-in
1666 inferior instead of looking up the inferior by pid.
1667
1a204730
PA
16682020-06-18 Pedro Alves <palves@redhat.com>
1669
1670 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1671 inferior_ptid.
1672
ebe84f23
PA
16732020-06-18 Pedro Alves <palves@redhat.com>
1674
1675 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1676 inferior_ptid.
1677 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1678 thread.
1679 (nto_procfs_target::detach): Avoid referencing
1680 inferior_ptid. Use switch_to_no_thread instead of writing to
1681 inferior_ptid directly.
1682 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1683 instead of writing to inferior_ptid directly.
1684 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1685 to thread.
1686
191f02e5
PA
16872020-06-18 Pedro Alves <palves@redhat.com>
1688
1689 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1690 after creating it, instead of writing to inferior_ptid.
1691 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1692 to inferior_ptid directly.
1693 (gdbsim_target::wait): Don't write to inferior_ptid.
1694
0ac55310
PA
16952020-06-18 Pedro Alves <palves@redhat.com>
1696
1697 * remote.c (remote_target::remote_notice_new_inferior): Use
1698 switch_to_thread instead of writing to inferior_ptid directly.
1699 (remote_target::add_current_inferior_and_thread): Use
1700 switch_to_no_thread instead of writing to inferior_ptid directly.
1701 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1702 and switch_to_thread instead of using set_current_inferior or
1703 writing to inferior_ptid directly.
1704
5233f39b
PA
17052020-06-18 Pedro Alves <palves@redhat.com>
1706
1707 * tracectf.c (ctf_target_open): Switch to added thread instead of
1708 writing to inferior_ptid directly.
1709 (ctf_target::close): Use switch_to_no_thread instead of writing to
1710 inferior_ptid directly.
1711
087e161b
PA
17122020-06-18 Pedro Alves <palves@redhat.com>
1713
1714 * tracefile-tfile.c (tfile_target_open): Don't write to
1715 inferior_ptid directly, instead switch to added thread.
1716 (tfile_target::close): Use switch_to_no_thread instead of writing
1717 to inferior_ptid directly.
1718
7fb43e53
PA
17192020-06-18 Pedro Alves <palves@redhat.com>
1720
1721 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1722 (procfs_target::detach): Use switch_to_no_thread
1723 instead of writing to inferior_ptid directly.
1724 (do_attach): Change return type to void. Switch to the added
1725 thread.
1726 (procfs_target::create_inferior): Switch to the added thread.
1727 (procfs_do_thread_registers): Don't write to inferior_ptid.
1728
18493a00
PA
17292020-06-18 Pedro Alves <palves@redhat.com>
1730
1731 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1732 of writing to inferior_ptid.
1733 (scoped_restore_exited_inferior): Delete.
1734 (handle_vfork_child_exec_or_exit): Simplify using
1735 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1736 instead of writing to inferior_ptid.
1737 (THREAD_STOPPED_BY): Delete.
1738 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1739 (thread_stopped_by_hw_breakpoint): Delete.
1740 (save_waitstatus): Use
1741 scoped_restore_current_thread+switch_to_thread, and call
1742 target_stopped_by_watchpoint instead of
1743 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1744 instead of thread_stopped_by_sw_breakpoint, and
1745 target_stopped_by_hw_breakpoint instead of
1746 thread_stopped_by_hw_breakpoint.
1747 (handle_inferior_event)
1748 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1749 inferior_ptid directly, nor
1750 set_current_inferior/set_current_program_space. Use
1751 switch_to_thread / switch_to_inferior_no_thread instead.
1752
a0776b13
PA
17532020-06-18 Pedro Alves <palves@redhat.com>
1754
1755 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1756 instead of writing to inferior_ptid.
1757
6155c136
PA
17582020-06-18 Pedro Alves <palves@redhat.com>
1759
1760 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1761 added thread.
1762 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1763 to the added thread.
1764 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1765 instead of writing to inferior_ptid.
1766
c5316fc6
PA
17672020-06-18 Pedro Alves <palves@redhat.com>
1768
1769 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1770 (register_to_value_test): Mock a program_space too. Heap-allocate
1771 the address space. Don't write to inferior_ptid. Use
1772 switch_to_thread instead.
1773
8df01799
PA
17742020-06-18 Pedro Alves <palves@redhat.com>
1775
1776 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1777 Delete.
1778 (find_signalled_thread()): New, factored out from
1779 linux_make_corefile_notes and adjusted to handle exited threads.
1780 (linux_make_corefile_notes): Adjust to use the new
1781 find_signalled_thread.
1782
41792d68
PA
17832020-06-18 Pedro Alves <palves@redhat.com>
1784
1785 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1786 of saving/restoring inferior_ptid.
1787
612f258a
TT
17882020-06-17 Tom Tromey <tom@tromey.com>
1789
1790 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1791 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1792 declare.
1793 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1794
efb763a5
SM
17952020-06-15 Simon Marchi <simon.marchi@efficios.com>
1796
1797 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1798 of partial symtabs.
1799
2951f6c0
SM
18002020-06-17 Simon Marchi <simon.marchi@efficios.com>
1801
1802 * regformats/reg-arm.dat: Remove.
1803 * regformats/reg-bfin.dat: Remove.
1804 * regformats/reg-cris.dat: Remove.
1805 * regformats/reg-crisv32.dat: Remove.
1806 * regformats/reg-m32r.dat: Remove.
1807 * regformats/reg-tilegx.dat: Remove.
1808 * regformats/reg-tilegx32.dat: Remove.
1809
7d458ea5
SM
18102020-06-17 Simon Marchi <simon.marchi@efficios.com>
1811
1812 * features/Makefile (WHICH): Remove arm files.
1813 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1814 * regformats/arm/arm-with-neon.dat: Remove.
1815 * regformats/arm/arm-with-vfpv2.dat: Remove.
1816 * regformats/arm/arm-with-vfpv3.dat: Remove.
1817
3af96c0d
SM
18182020-06-17 Simon Marchi <simon.marchi@efficios.com>
1819
1820 * features/Makefile (XMLTOC): Remove rx.xml.
1821
b25e22fd
PA
18222020-06-17 Pedro Alves <palves@redhat.com>
1823
1824 * gdbthread.h (thread_control_state) <trap_expected> Update
1825 comments.
1826
a78a19b1
AB
18272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1828
1829 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1830 ada_language::lookup_symbol_nonlocal.
1831 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1832 (ada_language::lookup_symbol_nonlocal): New member function,
1833 implementation from ada_lookup_symbol_nonlocal.
1834 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1835 initializer.
1836 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1837 initializer.
1838 (cplus_language::lookup_symbol_nonlocal): New member function.
1839 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1840 (minimal_language_data) Likewise.
1841 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1842 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1843 initializer.
1844 (d_language::lookup_symbol_nonlocal): New member function.
1845 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1846 initializer.
1847 (f_language::lookup_symbol_nonlocal): New member function.
1848 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1849 initializer.
1850 * language.c (unknown_language_data): Likewise.
1851 (auto_language_data): Likewise.
1852 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1853 field.
1854 (language_defn::lookup_symbol_nonlocal): New member function.
1855 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1856 initializer.
1857 * objc-lang.c (objc_language_data): Likewise.
1858 * opencl-lang.c (opencl_language_data): Likewise.
1859 * p-lang.c (pascal_language_data): Likewise.
1860 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1861 rust_language::lookup_symbol_nonlocal.
1862 (rust_language_data): Delete la_lookup_symbol_nonlocal
1863 initializer.
1864 (rust_language::lookup_symbol_nonlocal): New member function,
1865 implementation from rust_lookup_symbol_nonlocal.
1866 * symtab.c (lookup_symbol_aux): Update call to
1867 lookup_symbol_nonlocal.
1868 (basic_lookup_symbol_nonlocal): Rename to...
1869 (language_defn::lookup_symbol_nonlocal): ...this, and update
1870 header comment. Remove language_defn parameter, and replace with
1871 uses of `this'.
1872 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1873
ebe2334e
AB
18742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1877 initializer.
1878 (ada_language::value_print_inner): New member function.
1879 * c-lang.c (c_language_data): Delete la_value_print_inner
1880 initializer.
1881 (cplus_language_data): Likewise.
1882 (asm_language_data): Likewise.
1883 (minimal_language_data): Likewise.
1884 * d-lang.c (d_language_data): Likewise.
1885 (d_language::value_print_inner): New member function.
1886 * f-lang.c (f_language_data): Delete la_value_print_inner
1887 initializer.
1888 (f_language::value_print_inner): New member function.
1889 * f-lang.h (f_value_print_innner): Rename to...
1890 (f_value_print_inner): ...this (note spelling of 'inner').
1891 * f-valprint.c (f_value_print_innner): Rename to...
1892 (f_value_print_inner): ...this (note spelling of 'inner').
1893 * go-lang.c (go_language_data): Delete la_value_print_inner
1894 initializer.
1895 (go_language::value_print_inner): New member function.
1896 * language.c (language_defn::value_print_inner): Define new member
1897 function.
1898 (unk_lang_value_print_inner): Delete.
1899 (unknown_language_data): Delete la_value_print_inner initializer.
1900 (unknown_language::value_print_inner): New member function.
1901 (auto_language_data): Delete la_value_print_inner initializer.
1902 (auto_language::value_print_inner): New member function.
1903 * language.h (language_data): Delete la_value_print_inner field.
1904 (language_defn::value_print_inner): Delcare new member function.
1905 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1906 initializer.
1907 (m2_language::value_print_inner): New member function.
1908 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1909 initializer.
1910 * opencl-lang.c (opencl_language_data): Likewise.
1911 * p-lang.c (pascal_language_data): Likewise.
1912 (pascal_language::value_print_inner): New member function.
1913 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1914 initializer.
1915 (rust_language::value_print_inner): New member function.
1916 * valprint.c (do_val_print): Update call to value_print_inner.
1917
a1d1fa3e
AB
19182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * ada-lang.c (ada_language_data): Delete la_value_print
1921 initializer.
1922 (ada_language::value_print): New member function.
1923 * c-lang.c (c_language_data): Delete la_value_print initializer.
1924 (cplus_language_data): Likewise.
1925 (asm_language_data): Likewise.
1926 (minimal_language_data): Likewise.
1927 * d-lang.c (d_language_data): Likewise.
1928 * f-lang.c (f_language_data): Likewise.
1929 * go-lang.c (go_language_data): Likewise.
1930 * language.c (unk_lang_value_print): Delete.
1931 (language_defn::value_print): Define new member function.
1932 (unknown_language_data): Delete la_value_print initializer.
1933 (unknown_language::value_print): New member function.
1934 (auto_language_data): Delete la_value_print initializer.
1935 (auto_language::value_print): New member function.
1936 * language.h (language_data): Delete la_value_print field.
1937 (language_defn::value_print): Declare new member function.
1938 (LA_VALUE_PRINT): Update call to value_print.
1939 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1940 * objc-lang.c (objc_language_data): Likewise.
1941 * opencl-lang.c (opencl_language_data): Likewise.
1942 * p-lang.c (pascal_language_data): Likewise.
1943 (pascal_language::value_print): New member function.
1944 * rust-lang.c (rust_language_data): Delete la_value_print
1945 initializer.
1946
f16a9f57
AB
19472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1948
1949 * ada-lang.c (ada_watch_location_expression): Rename to
1950 ada_language::watch_location_expression.
1951 (ada_language_data): Delete la_watch_location_expression
1952 initializer.
1953 (ada_language::watch_location_expression): New member function,
1954 implementation from ada_watch_location_expression.
1955 * breakpoint.c (watch_command_1): Update call to
1956 watch_location_expression.
1957 * c-lang.c (c_watch_location_expression): Rename to
1958 language_defn::watch_location_expression.
1959 (c_language_data): Delete la_watch_location_expression
1960 initializer.
1961 (cplus_language_data): Likewise.
1962 (asm_language_data): Likewise.
1963 (minimal_language_data): Likewise.
1964 * c-lang.h (c_watch_location_expression): Delete declaration.
1965 * d-lang.c (d_language_data): Delete la_watch_location_expression
1966 initializer.
1967 * f-lang.c (f_language_data): Likewise.
1968 * go-lang.c (go_language_data): Likewise.
1969 * language.c (language_defn::watch_location_expression): Member
1970 function implementation from c_watch_location_expression.
1971 (unknown_language_data): Delete la_watch_location_expression
1972 initializer.
1973 (auto_language_data): Likewise.
1974 * language.h (language_data): Delete la_watch_location_expression
1975 field.
1976 (language_defn::watch_location_expression): Declare new member
1977 function.
1978 * m2-lang.c (m2_language_data): Delete
1979 la_watch_location_expression initializer.
1980 * objc-lang.c (objc_language_data): Likewise.
1981 * opencl-lang.c (opencl_language_data): Likewise.
1982 * p-lang.c (pascal_language_data): Likewise.
1983 * rust-lang.c (rust_watch_location_expression): Rename to
1984 rust_language::watch_location_expression.
1985 (rust_language_data): Delete la_watch_location_expression
1986 initializer.
1987 (rust_language::watch_location_expression): New member function,
1988 implementation from rust_watch_location_expression.
1989
7e56227d
AB
19902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1993 ada_language::collect_symbol_completion_matches.
1994 (ada_language_data): Delete la_collect_symbol_completion_matches
1995 initializer.
1996 (ada_language::collect_symbol_completion_matches): New member
1997 function, implementation from
1998 ada_collect_symbol_completion_matches.
1999 * c-lang.c (c_language_data): Delete
2000 la_collect_symbol_completion_matches initializer.
2001 (cplus_language_data): Likewise.
2002 (asm_language_data): Likewise.
2003 (minimal_language_data): Likewise.
2004 * d-lang.c (d_language_data): Likewise.
2005 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2006 f_language::collect_symbol_completion_matches.
2007 (f_language_data): Delete la_collect_symbol_completion_matches
2008 initializer.
2009 (f_language::collect_symbol_completion_matches) New member
2010 function, implementation from f_collect_symbol_completion_matches.
2011 * go-lang.c (go_language_data): Delete
2012 la_collect_symbol_completion_matches initializer.
2013 * language.c (unknown_language_data): Likewise.
2014 (auto_language_data): Likewise.
2015 * language.h (language_data): Delete
2016 la_collect_symbol_completion_matches field.
2017 (language_defn::collect_symbol_completion_matches): New member
2018 function.
2019 * m2-lang.c (m2_language_data): Delete
2020 la_collect_symbol_completion_matches initializer.
2021 * objc-lang.c (objc_language_data): Likewise.
2022 * opencl-lang.c (opencl_language_data): Likewise.
2023 * p-lang.c (pascal_language_data): Likewise.
2024 * rust-lang.c (rust_language_data): Likewise.
2025 * symtab.c (default_collect_symbol_completion_matches): Delete.
2026 (collect_symbol_completion_matches): Update call to
2027 collect_symbol_completion_matches.
2028 (collect_symbol_completion_matches_type): Likewise.
2029 * symtab.h (default_collect_symbol_completion_matches): Delete
2030 declaration.
2031
53fc67f8
AB
20322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2033
2034 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2035 (ada_language_data): Delete la_word_break_characters initializer.
2036 (ada_language::word_break_characters): New member function.
2037 * c-lang.c (c_language_data): Delete la_word_break_characters
2038 initializer.
2039 (cplus_language_data): Likewise.
2040 (asm_language_data): Likewise.
2041 (minimal_language_data): Likewise.
2042 * completer.c: Update global comment.
2043 (advance_to_expression_complete_word_point): Update call to
2044 word_break_characters.
2045 (complete_files_symbols): Likewise.
2046 (complete_line_internal_1): Likewise.
2047 (default_completer_handle_brkchars): Likewise.
2048 (skip_quoted_chars): Likewise.
2049 * d-lang.c (d_language_data): Delete la_word_break_characters
2050 initializer.
2051 * f-lang.c (f_word_break_characters): Delete.
2052 (f_language_data): Delete la_word_break_characters initializer.
2053 (f_language::word_break_characters): New member function.
2054 * go-lang.c (go_language_data): Delete la_word_break_characters
2055 initializer.
2056 * language.c (unknown_language_data): Likewise.
2057 (auto_language_data): Likewise.
2058 * language.h (default_word_break_characters): Move declaration to
2059 earlier in the file.
2060 (language_data): Delete la_word_break_characters field.
2061 (language_defn::word_break_characters): New member function.
2062 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2063 initializer.
2064 * objc-lang.c (objc_language_data): Likewise.
2065 * opencl-lang.c (opencl_language_data): Likewise.
2066 * p-lang.c (pascal_language_data): Likewise.
2067 * rust-lang.c (rust_language_data): Likewise.
2068
c9debfb9
AB
20692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2072 (ada_language_data): Delete la_get_symbol_name_matcher
2073 initializer.
2074 (language_defn::get_symbol_name_matcher_inner): New member
2075 function.
2076 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2077 initializer.
2078 (cplus_language_data): Likewise.
2079 (cplus_language::get_symbol_name_matcher_inner): New member
2080 function.
2081 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2082 (minimal_language_data): Likewise.
2083 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2084 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2085 initializer.
2086 * dictionary.c (iter_match_first_hashed): Update call to
2087 get_symbol_name_matcher.
2088 (iter_match_next_hashed): Likewise.
2089 (iter_match_next_linear): Likewise.
2090 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2091 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2092 initializer.
2093 (f_language::get_symbol_name_matcher_inner): New member function.
2094 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2095 initializer.
2096 * language.c (default_symbol_name_matcher): Update header comment,
2097 make static.
2098 (language_defn::get_symbol_name_matcher): New definition.
2099 (language_defn::get_symbol_name_matcher_inner): Likewise.
2100 (get_symbol_name_matcher): Delete.
2101 (unknown_language_data): Delete la_get_symbol_name_matcher
2102 initializer.
2103 (auto_language_data): Likewise.
2104 * language.h (language_data): Delete la_get_symbol_name_matcher
2105 field.
2106 (language_defn::get_symbol_name_matcher): New member function.
2107 (language_defn::get_symbol_name_matcher_inner): Likewise.
2108 (default_symbol_name_matcher): Delete declaration.
2109 * linespec.c (find_methods): Update call to
2110 get_symbol_name_matcher.
2111 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2112 initializer.
2113 * minsyms.c (lookup_minimal_symbol): Update call to
2114 get_symbol_name_matcher.
2115 (iterate_over_minimal_symbols): Likewise.
2116 * objc-lang.c (objc_language_data): Delete
2117 la_get_symbol_name_matcher initializer.
2118 * opencl-lang.c (opencl_language_data): Likewise.
2119 * p-lang.c (pascal_language_data): Likewise.
2120 * psymtab.c (psymbol_name_matches): Update call to
2121 get_symbol_name_matcher.
2122 * rust-lang.c (rust_language_data): Delete
2123 la_get_symbol_name_matcher initializer.
2124 * symtab.c (symbol_matches_search_name): Update call to
2125 get_symbol_name_matcher.
2126 (compare_symbol_name): Likewise.
2127
9a49ad8c
AB
21282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * ada-lang.c (ada_language_data): Delete la_compute_program
2131 initializer.
2132 * c-lang.c (c_language_data): Likewise.
2133 (c_language::compute_program): New member function.
2134 (cplus_language_data): Delete la_compute_program initializer.
2135 (cplus_language::compute_program): New member function.
2136 (asm_language_data): Delete la_compute_program initializer.
2137 (minimal_language_data): Likewise.
2138 * c-lang.h (c_compute_program): Update comment.
2139 (cplus_compute_program): Likewise.
2140 * compile/compile-c-support.c (c_compute_program): Likewise.
2141 (cplus_compute_program): Likewise.
2142 * compile/compile.c (compile_to_object): Update call to
2143 la_compute_program.
2144 * d-lang.c (d_language_data): Delete la_compute_program
2145 initializer.
2146 * f-lang.c (f_language_data): Likewise.
2147 * go-lang.c (go_language_data): Likewise.
2148 * language.c (unknown_language_data): Likewise.
2149 (auto_language_data): Likewise.
2150 * language.h (language_data): Delete la_compute_program field.
2151 (language_defn::compute_program): New member function.
2152 * m2-lang.c (m2_language_data): Delete la_compute_program
2153 initializer.
2154 * objc-lang.c (objc_language_data): Likewise.
2155 * opencl-lang.c (opencl_language_data): Likewise.
2156 * p-lang.c (pascal_language_data): Likewise.
2157 * rust-lang.c (rust_language_data): Likewise.
2158
eff93b4d
AB
21592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2160
2161 * ada-lang.c (ada_language_data) Delete
2162 la_class_name_from_physname initializer.
2163 * c-lang.c (c_language_data): Likewise.
2164 (cplus_language_data): Likewise.
2165 (cplus_language::class_name_from_physname): New member function.
2166 (asm_language_data): Delete la_class_name_from_physname
2167 initializer.
2168 (minimal_language_data): Likewise.
2169 * d-lang.c (d_language_data): Likewise.
2170 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2171 method on language_defn class.
2172 (guess_full_die_structure_name): Likewise.
2173 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2174 initializer.
2175 * go-lang.c (go_language_data): Likewise.
2176 * language.c (language_class_name_from_physname): Delete.
2177 (unk_lang_class_name): Delete.
2178 (unknown_language_data): Delete la_class_name_from_physname
2179 initializer.
2180 (auto_language_data): Likewise.
2181 * language.h (language_data): Delete la_class_name_from_physname
2182 field.
2183 (language_defn::class_name_from_physname): New function.
2184 (language_class_name_from_physname): Delete declaration.
2185 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2186 initializer.
2187 * objc-lang.c (objc_language_data): Likewise.
2188 * opencl-lang.c (opencl_language_data): Likewise.
2189 * p-lang.c (pascal_language_data): Likewise.
2190 * rust-lang.c (rust_language_data): Likewise.
2191
de543742
TT
21922020-06-16 Tom Tromey <tom@tromey.com>
2193
2194 * tui/tui-data.h (STATUS_NAME): New macro.
2195 * tui/tui-layout.c (tui_remove_some_windows)
2196 (initialize_known_windows, tui_register_window)
2197 (tui_layout_split::remove_windows, initialize_layouts)
2198 (tui_new_layout_command): Don't use hard-coded window names.
2199
a350efd4
TT
22002020-06-16 Tom Tromey <tom@tromey.com>
2201
2202 PR tui/25348:
2203 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2204 tui_initialize_readline. Only run once. Call rl_initialize.
2205 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2206 tui_initialize_readline.
2207 * tui/tui-io.c (tui_setup_io): Call
2208 tui_ensure_readline_initialized.
2209 * tui/tui-interp.c (tui_interp::init): Update.
2210
39ec0490
TT
22112020-06-16 Tom Tromey <tom@tromey.com>
2212
2213 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2214 Also preserve the status window.
2215
d2d1ea20
TT
22162020-06-16 Tom Tromey <tom@tromey.com>
2217
2218 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2219 where m_window==nullptr.
2220
66920317
TT
22212020-06-15 Tom Tromey <tromey@adacore.com>
2222
2223 * windows-nat.c (windows_nat::handle_output_debug_string):
2224 Update.
2225 (windows_nat::handle_ms_vc_exception): Update.
2226 * target.h (target_read_string): Change API.
2227 * target.c (target_read_string): Change API.
2228 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2229 Update.
2230 * solib-frv.c (frv_current_sos): Update.
2231 * solib-dsbt.c (dsbt_current_sos): Update.
2232 * solib-darwin.c (darwin_current_sos): Update.
2233 * linux-thread-db.c (inferior_has_bug): Update.
2234 * expprint.c (print_subexp_standard): Update.
2235 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2236 (ada_exception_message_1): Update.
2237
a5d871dd
TT
22382020-06-15 Tom Tromey <tromey@adacore.com>
2239
2240 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2241
670e35fa
TT
22422020-06-15 Tom Tromey <tromey@adacore.com>
2243
2244 * valprint.c (read_string): Update comment.
2245 * target.c (MIN): Remove.
2246 (target_read_string): Rewrite.
2247
f5272a3b
TT
22482020-06-15 Tom Tromey <tromey@adacore.com>
2249
2250 * corefile.c (read_memory_string): Remove.
2251 * ada-valprint.c (ada_value_print_ptr): Update.
2252 * ada-lang.h (ada_tag_name): Change return type.
2253 * ada-lang.c (type_from_tag): Update.
2254 (ada_tag_name_from_tsd): Change return type. Use
2255 target_read_string.
2256 (ada_tag_name): Likewise.
2257 * gdbcore.h (read_memory_string): Don't declare.
2258
2c074f49
HD
22592020-06-14 Hannes Domani <ssbssa@yahoo.de>
2260
2261 * symtab.c (rbreak_command): Ignore Windows drive colon.
2262
6a17d503
SM
22632020-06-12 Simon Marchi <simon.marchi@efficios.com>
2264
2265 * NEWS: Mention removed GDBserver host support.
2266
453c733f
NC
22672020-06-12 Nelson Chu <nelson.chu@sifive.com>
2268
2269 * features/riscv/rebuild-csr-xml.sh: Updated.
2270
2b4e6a3f
TT
22712020-06-11 Tom Tromey <tom@tromey.com>
2272
2273 PR gdb/18318:
2274 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2275
4412332f
JG
22762020-06-09 Jonny Grant <jg@jguk.org>
22772020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2278
2279 * main.c (captured_main_1): Don't print new line after help.
2280 (print_gdb_help): add mailing list and IRC channel information
2281 to --help. Add new lines between items in the footer. Remove
2282 quotes around bug url.
2283
2f33032a
KS
22842020-06-11 Keith Seitz <keiths@redhat.com>
2285
2286 PR gdb/21356
2287 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2288 Resolve typedefs for type length calculations.
2289
7ab96794
TV
22902020-06-10 Tom de Vries <tdevries@suse.de>
2291
2292 PR ada/24713
2293 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2294 (write_psymbols): Enable .gdb_index for ada.
2295 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2296 ada.
2297
e5f3ece2
TV
22982020-06-10 Tom de Vries <tdevries@suse.de>
2299
2300 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2301 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2302 namei" instead of "const char *name" argument.
2303 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2304 dw2_symtab_iter_init.
2305
940da03e
SM
23062020-06-08 Simon Marchi <simon.marchi@efficios.com>
2307
2308 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2309 to use type::field and field::type instead.
2310
b6cdac4b
SM
23112020-06-08 Simon Marchi <simon.marchi@efficios.com>
2312
2313 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2314 to use field::type instead.
2315
5d14b6e5
SM
23162020-06-08 Simon Marchi <simon.marchi@efficios.com>
2317
2318 * gdbtypes.h (struct field) <type, set_type>: New methods.
2319 Rename `type` field to...
2320 <m_type>: ... this. Change references throughout to use type or
2321 set_type methods.
2322 (FIELD_TYPE): Use field::type. Change call sites that modify
2323 the field's type to use field::set_type instead.
2324
3d967001
SM
23252020-06-08 Simon Marchi <simon.marchi@efficios.com>
2326
2327 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2328 to use type::index_type instead.
2329
262abc0d
SM
23302020-06-08 Simon Marchi <simon.marchi@efficios.com>
2331
2332 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2333 methods.
2334 (TYPE_INDEX_TYPE): Use type::index_type.
2335 * gdbtypes.c (create_array_type_with_stride): Likewise.
2336
82836c92
TT
23372020-06-07 Tom Tromey <tom@tromey.com>
2338
2339 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2340 parameter.
2341 (generic_value_print): Update.
2342
940dace9
AB
23432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 Revert commit 982a38f60b0.
2346 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2347
982a38f6
AB
23482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2351 avoid use after free.
2352
82f06518
TV
23532020-06-05 Tom de Vries <tdevries@suse.de>
2354
2355 * NEWS: Fix typos.
2356
f8c41851
SM
23572020-06-04 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2360 the per_bfd object.
2361 (dwarf2_read_debug_names): Likewise.
2362 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2363 object when re-using a per_bfd object with an index.
2364
f9b5d5ea
TV
23652020-06-03 Tom de Vries <tdevries@suse.de>
2366
2367 PR symtab/26046
2368 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2369 children for C++.
2370 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2371 DW_TAG_subprogram.
2372
f6eee2d0
AB
23732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2374
2375 * ada-lang.c (ada_language_data): Delete skip_trampoline
2376 initializer.
2377 * c-lang.c (c_language_data): Likewise.
2378 (cplus_language_data): Likewise.
2379 (cplus_language::skip_trampoline): New member function.
2380 (asm_language_data): Delete skip_trampoline initializer.
2381 (minimal_language_data): Likewise.
2382 * d-lang.c (d_language_data): Likewise.
2383 * f-lang.c (f_language_data): Likewise.
2384 * go-lang.c (go_language_data): Likewise.
2385 * language.c (unk_lang_trampoline): Delete function.
2386 (skip_language_trampoline): Update.
2387 (unknown_language_data): Delete skip_trampoline initializer.
2388 (auto_language_data): Likewise.
2389 * language.h (language_data): Delete skip_trampoline field.
2390 (language_defn::skip_trampoline): New function.
2391 * m2-lang.c (m2_language_data): Delete skip_trampoline
2392 initializer.
2393 * objc-lang.c (objc_skip_trampoline): Delete function, move
2394 implementation to objc_language::skip_trampoline.
2395 (objc_language_data): Delete skip_trampoline initializer.
2396 (objc_language::skip_trampoline): New member function with
2397 implementation from objc_skip_trampoline.
2398 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2399 initializer.
2400 * p-lang.c (pascal_language_data): Likewise.
2401 * rust-lang.c (rust_language_data): Likewise.
2402
0a50df5d
AB
24032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2404
2405 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2406 (ada_language::demangle): New member function.
2407 * c-lang.c (c_language_data): Delete la_demangle initializer.
2408 (cplus_language_data): Delete la_demangle initializer.
2409 (cplus_language::demangle): New member function.
2410 (asm_language_data): Delete la_demangle initializer.
2411 (minimal_language_data): Delete la_demangle initializer.
2412 * d-lang.c (d_language_data): Delete la_demangle initializer.
2413 (d_language::demangle): New member function.
2414 * f-lang.c (f_language_data): Delete la_demangle initializer.
2415 (f_language::demangle): New member function.
2416 * go-lang.c (go_language_data): Delete la_demangle initializer.
2417 (go_language::demangle): New member function.
2418 * language.c (language_demangle): Update.
2419 (unk_lang_demangle): Delete.
2420 (unknown_language_data): Delete la_demangle initializer.
2421 (unknown_language::demangle): New member function.
2422 (auto_language_data): Delete la_demangle initializer.
2423 (auto_language::demangle): New member function.
2424 * language.h (language_data): Delete la_demangle field.
2425 (language_defn::demangle): New function.
2426 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2427 * objc-lang.c (objc_language_data): Delete la_demangle
2428 initializer.
2429 (objc_language::demangle): New member function.
2430 * opencl-lang.c (opencl_language_data): Delete la_demangle
2431 initializer.
2432 * p-lang.c (pascal_language_data): Likewise.
2433 * rust-lang.c (rust_language_data): Likewise.
2434 (rust_language::demangle): New member function.
2435
fbfb0a46
AB
24362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2437
2438 * ada-lang.c (ada_language_data): Delete la_print_type
2439 initializer.
2440 (ada_language::print_type): New member function.
2441 * c-lang.c (c_language_data): Delete la_print_type initializer.
2442 (c_language::print_type): New member function.
2443 (cplus_language_data): Delete la_print_type initializer.
2444 (cplus_language::print_type): New member function.
2445 (asm_language_data): Delete la_print_type initializer.
2446 (asm_language::print_type): New member function.
2447 (minimal_language_data): Delete la_print_type initializer.
2448 (minimal_language::print_type): New member function.
2449 * d-lang.c (d_language_data): Delete la_print_type initializer.
2450 (d_language::print_type): New member function.
2451 * f-lang.c (f_language_data): Delete la_print_type initializer.
2452 (f_language::print_type): New member function.
2453 * go-lang.c (go_language_data): Delete la_print_type initializer.
2454 (go_language::print_type): New member function.
2455 * language.c (unk_lang_print_type): Delete.
2456 (unknown_language_data): Delete la_print_type initializer.
2457 (unknown_language::print_type): New member function.
2458 (auto_language_data): Delete la_print_type initializer.
2459 (auto_language::print_type): New member function.
2460 * language.h (language_data): Delete la_print_type field.
2461 (language_defn::print_type): New function.
2462 (LA_PRINT_TYPE): Update.
2463 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2464 (m2_language::print_type): New member function.
2465 * objc-lang.c (objc_language_data): Delete la_print_type
2466 initializer.
2467 (objc_language::print_type): New member function.
2468 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2469 to opencl_language::print_type.
2470 (opencl_language_data): Delete la_print_type initializer.
2471 (opencl_language::print_type): New member function, implementation
2472 from opencl_print_type.
2473 * p-lang.c (pascal_language_data): Delete la_print_type
2474 initializer.
2475 (pascal_language::print_type): New member function.
2476 * rust-lang.c (rust_print_type): Delete, implementation moved to
2477 rust_language::print_type.
2478 (rust_language_data): Delete la_print_type initializer.
2479 (rust_language::print_type): New member function, implementation
2480 from rust_print_type.
2481
6f827019
AB
24822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2485 implementation moves to...
2486 (ada_language::sniff_from_mangled_name): ...here. Update return
2487 type.
2488 (ada_language_data): Delete la_sniff_from_mangled_name
2489 initializer.
2490 * c-lang.c (c_language_data): Likewise.
2491 (cplus_language_data): Likewise.
2492 (cplus_language::sniff_from_mangled_name): New member function,
2493 implementation taken from gdb_sniff_from_mangled_name.
2494 (asm_language_data): Delete la_sniff_from_mangled_name
2495 initializer.
2496 (minimal_language_data): Likewise.
2497 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2498 implementation moves to cplus_language::sniff_from_mangled_name.
2499 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2500 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2501 moves to...
2502 (d_language::sniff_from_mangled_name): ...here.
2503 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2504 * f-lang.c (f_language_data): Likewise.
2505 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2506 moves to...
2507 (go_language::sniff_from_mangled_name): ...here.
2508 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2509 * language.c (language_sniff_from_mangled_name): Delete.
2510 (unknown_language_data): Delete la_sniff_from_mangled_name
2511 initializer.
2512 (auto_language_data): Likewise.
2513 * language.h (language_data): Delete la_sniff_from_mangled_name
2514 field.
2515 (language_defn::sniff_from_mangled_name): New function.
2516 (language_sniff_from_mangled_name): Delete declaration.
2517 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2518 field.
2519 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2520 implementation moves to...
2521 (objc_language::sniff_from_mangled_name): ...here.
2522 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2523 * opencl-lang.c (opencl_language_data): Likewise.
2524 * p-lang.c (pascal_language_data): Likewise.
2525 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2526 implementation moves to...
2527 (rust_language::sniff_from_mangled_name): ...here.
2528 (rust_language_data): Delete la_sniff_from_mangled_name
2529 initializer.
2530 * symtab.c (symbol_find_demangled_name): Call
2531 sniff_from_mangled_name member function.
2532
fb8006fd
AB
25332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2534
2535 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2536 initializer.
2537 * c-lang.c (c_language_data): Likewise.
2538 (cplus_language_data): Likewise.
2539 (cplus_language::search_name_hash): New member function.
2540 (asm_language_data): Delete la_search_name_hash initializer.
2541 (minimal_language_data): Likewise.
2542 * d-lang.c (d_language_data): Likewise.
2543 * dictionary.c (default_search_name_hash): Rename to...
2544 (language_defn::search_name_hash): ...this.
2545 * f-lang.c (f_language_data): Likewise.
2546 (f_language::search_name_hash): New member function.
2547 * go-lang.c (go_language_data): Delete la_search_name_hash
2548 initializer.
2549 * language.c (unknown_language_data): Likewise.
2550 (auto_language_data): Likewise.
2551 * language.h (struct language_data): Delete la_search_name_hash
2552 field.
2553 (language_defn::search_name_hash): Declare new member function.
2554 (default_search_name_hash): Delete declaration.
2555 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2556 initializer.
2557 * objc-lang.c (objc_language_data): Likewise.
2558 * opencl-lang.c (opencl_language_data): Likewise.
2559 * p-lang.c (pascal_language_data): Likewise.
2560 * rust-lang.c (rust_language_data): Likewise.
2561 * symtab.c (search_name_hash): Update call.
2562
8e25bafe
AB
25632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2564
2565 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2566 initializer.
2567 * c-lang.c (class compile_instance): Declare.
2568 (c_language_data): Delete la_get_compile_instance initializer.
2569 (c_language::get_compile_instance): New member function.
2570 (cplus_language_data): Delete la_get_compile_instance initializer.
2571 (cplus_language::get_compile_instance): New member function.
2572 (asm_language_data): Delete la_get_compile_instance initializer.
2573 (minimal_language_data): Likewise.
2574 * c-lang.h (c_get_compile_context): Update comment.
2575 (cplus_get_compile_context): Update comment.
2576 * compile/compile.c (compile_to_object): Update calls, don't rely
2577 on function pointer being NULL.
2578 * d-lang.c (d_language_data): Delete la_get_compile_instance
2579 initializer.
2580 * f-lang.c (f_language_data): Likewise.
2581 * go-lang.c (go_language_data): Likewise.
2582 * language.c (unknown_language_data): Likewise.
2583 (auto_language_data): Likewise.
2584 * language.h (language_data): Delete la_get_compile_instance field.
2585 (language_defn::get_compile_instance): New member function.
2586 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2587 initializer.
2588 * objc-lang.c (objc_language_data): Likewise.
2589 * opencl-lang.c (opencl_language_data): Likewise.
2590 * p-lang.c (pascal_language_data): Likewise.
2591 * rust-lang.c (rust_language_data): Likewise.
2592
4009ee92
AB
25932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * ada-lang.c (ada_add_all_symbols): Update comment.
2596 (ada_iterate_over_symbols): Delete, move implementation to...
2597 (ada_language::iterate_over_symbols): ...here, a new member
2598 function, rewrite to use range based for loop.
2599 (ada_language_data): Delete la_iterate_over_symbols initializer.
2600 * c-lang.c (c_language_data): Likewise.
2601 (cplus_language_data): Likewise.
2602 (asm_language_data): Likewise.
2603 (minimal_language_data): Likewise.
2604 * d-lang.c (d_language_data): Likewise.
2605 * f-lang.c (f_language_data): Likewise.
2606 * go-lang.c (go_language_data): Likewise.
2607 * language.c (unknown_language_data): Likewise.
2608 (auto_language_data): Likewise.
2609 * language.h (language_data): Delete la_iterate_over_symbols field.
2610 (language_defn::iterate_over_symbols): New member function.
2611 (LA_ITERATE_OVER_SYMBOLS): Update.
2612 * linespec.c (iterate_over_all_matching_symtabs): Update.
2613 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2614 initializer.
2615 * objc-lang.c (objc_language_data): Likewise.
2616 * opencl-lang.c (opencl_language_data): Likewise.
2617 * p-lang.c (pascal_language_data): Likewise.
2618 * rust-lang.c (rust_language_data): Likewise.
2619
54f4ca46
AB
26202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 * ada-lang.c (ada_language_data): Delete
2623 la_lookup_transparent_type initializer.
2624 * c-lang.c (c_language_data): Likewise.
2625 (cplus_language_data): Likewise.
2626 (cplus_language::lookup_transparent_type): New member function.
2627 (asm_language_data): Delete la_lookup_transparent_type
2628 initializer.
2629 (minimal_language_data): Likewise.
2630 * d-lang.c (d_language_data): Likewise.
2631 * f-lang.c (f_language_data): Likewise.
2632 * go-lang.c (go_language_data): Likewise.
2633 * language.c (unknown_language_data): Likewise.
2634 (auto_language_data): Likewise.
2635 * language.h (struct language_data): Delete
2636 la_lookup_transparent_type field.
2637 (language_defn::lookup_transparent_type): New member function.
2638 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2639 initializer.
2640 * objc-lang.c (objc_language_data): Likewise.
2641 * opencl-lang.c (opencl_language_data): Likewise.
2642 * p-lang.c (pascal_language_data): Likewise.
2643 * rust-lang.c (rust_language_data): Likewise.
2644 * symtab.c (symbol_matches_domain): Update call.
2645
1fb314aa
AB
26462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2647
2648 * ada-lang.c (ada_language_arch_info): Delete function, move
2649 implementation to...
2650 (ada_language::language_arch_info): ...here, a new member
2651 function.
2652 (ada_language_data): Delete la_language_arch_info.
2653 * c-lang.c (c_language_data): Likewise.
2654 (c_language::language_arch_info): New member function.
2655 (cplus_language_arch_info): Delete function, move
2656 implementation to...
2657 (cplus_language::language_arch_info): ...here, a new member
2658 function.
2659 (cplus_language_data): Delete la_language_arch_info.
2660 (asm_language_data): Likewise.
2661 (asm_language::language_arch_info): New member function.
2662 (minimal_language_data): Delete la_language_arch_info.
2663 (minimal_language::language_arch_info): New member function.
2664 * d-lang.c (d_language_arch_info): Delete function, move
2665 implementation to...
2666 (d_language::language_arch_info): ...here, a new member
2667 function.
2668 (d_language_data): Delete la_language_arch_info.
2669 * f-lang.c (f_language_arch_info): Delete function, move
2670 implementation to...
2671 (f_language::language_arch_info): ...here, a new member
2672 function.
2673 (f_language_data): Delete la_language_arch_info.
2674 * go-lang.c (go_language_arch_info): Delete function, move
2675 implementation to...
2676 (go_language::language_arch_info): ...here, a new member
2677 function.
2678 (go_language_data): Delete la_language_arch_info.
2679 * language.c (unknown_language_data): Likewise.
2680 (unknown_language::language_arch_info): New member function.
2681 (auto_language_data): Delete la_language_arch_info.
2682 (auto_language::language_arch_info): New member function.
2683 (language_gdbarch_post_init): Update call to
2684 la_language_arch_info.
2685 * language.h (language_data): Delete la_language_arch_info
2686 function pointer.
2687 (language_defn::language_arch_info): New function.
2688 * m2-lang.c (m2_language_arch_info): Delete function, move
2689 implementation to...
2690 (m2_language::language_arch_info): ...here, a new member
2691 function.
2692 (m2_language_data): Delete la_language_arch_info.
2693 * objc-lang.c (objc_language_arch_info): Delete function, move
2694 implementation to...
2695 (objc_language::language_arch_info): ...here, a new member
2696 function.
2697 (objc_language_data): Delete la_language_arch_info.
2698 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2699 implementation to...
2700 (opencl_language::language_arch_info): ...here, a new member
2701 function.
2702 (opencl_language_data): Delete la_language_arch_info.
2703 * p-lang.c (pascal_language_arch_info): Delete function, move
2704 implementation to...
2705 (pascal_language::language_arch_info): ...here, a new member
2706 function.
2707 (pascal_language_data): Delete la_language_arch_info.
2708 * rust-lang.c (rust_language_arch_info): Delete function, move
2709 implementation to...
2710 (rust_language::language_arch_info): ...here, a new member
2711 function.
2712 (rust_language_data): Delete la_language_arch_info.
2713
48448202
AB
27142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2715
2716 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2717 initializer.
2718 * c-lang.c (c_language_data): Likewise.
2719 (cplus_language_data): Likewise.
2720 (cplus_language::pass_by_reference_info): New method.
2721 (asm_language_data): Delete la_pass_by_reference initializer.
2722 (minimal_language_data): Likewise.
2723 * cp-abi.c (cp_pass_by_reference): Remove use of
2724 default_pass_by_reference.
2725 * d-lang.c (d_language_data): Likewise.
2726 * f-lang.c (f_language_data): Likewise.
2727 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2728 default_pass_by_reference.
2729 * go-lang.c (go_language_data): Likewise.
2730 * language.c (language_pass_by_reference): Update.
2731 (default_pass_by_reference): Delete.
2732 (unknown_language_data): Delete la_pass_by_reference
2733 initializer.
2734 (auto_language_data): Likewise.
2735 * language.h (struct language_data): Delete la_pass_by_reference
2736 field.
2737 (language_defn::pass_by_reference_info): New member function.
2738 (default_pass_by_reference): Delete declaration.
2739 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2740 initializer.
2741 * objc-lang.c (objc_language_data): Likewise.
2742 * opencl-lang.c (opencl_language_data): Likewise.
2743 * p-lang.c (pascal_language_data): Likewise.
2744 * rust-lang.c (rust_language_data): Likewise.
2745
15e5fd35
AB
27462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2747
2748 * ada-lang.c (ada_read_var_value): Delete function, move
2749 implementation to...
2750 (ada_language::read_var_value): ...here.
2751 (ada_language_data): Delete la_read_var_value initializer.
2752 * c-lang.c (c_language_data): Likewise.
2753 (cplus_language_data): Likewise.
2754 (minimal_language_data): Likewise.
2755 * d-lang.c (d_language_data): Likewise.
2756 * f-lang.c (f_language_data): Likewise.
2757 * findvar.c (default_read_var_value): Rename to...
2758 (language_defn::read_var_value): ...this.
2759 * findvar.c (read_var_value): Update header comment, and change to
2760 call member function instead of function pointer.
2761 * go-lang.c (go_language_data): Likewise.
2762 * language.c (unknown_language_data): Delete la_read_var_value
2763 initializer.
2764 (auto_language_data): Likewise.
2765 * language.h (struct language_data): Delete la_read_var_value
2766 field.
2767 (language_defn::read_var_value): New member function.
2768 (default_read_var_value): Delete declaration.
2769 * m2-lang.c (m2_language_data): Delete la_read_var_value
2770 initializer.
2771 * objc-lang.c (objc_language_data): Likewise.
2772 * opencl-lang.c (opencl_language_data): Likewise.
2773 * p-lang.c (pascal_language_data): Likewise.
2774 * rust-lang.c (rust_language_data): Likewise.
2775 * value.h (default_read_var_value): Delete declaration.
2776
5bd40f2a
AB
27772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * ada-lang.c (ada_print_array_index): Delete function, move
2780 implementation to...
2781 (ada_language::print_array_index): ...here.
2782 (ada_language_data): Delete la_print_array_index initializer.
2783 * c-lang.c (c_language_data): Likewise.
2784 (cplus_language_data): Likewise.
2785 (minimal_language_data): Likewise.
2786 * d-lang.c (d_language_data): Likewise.
2787 * f-lang.c (f_language_data): Likewise.
2788 * go-lang.c (go_language_data): Likewise.
2789 * language.c (default_print_array_index): Delete function, move
2790 implementation to...
2791 (language_defn::print_array_index): ...here.
2792 (unknown_language_data): Delete la_print_array_index initializer.
2793 (auto_language_data): Likewise.
2794 * language.h (struct language_data): Delete la_print_array_index
2795 field.
2796 (language_defn::print_array_index): New member function.
2797 (LA_PRINT_ARRAY_INDEX): Update.
2798 (default_print_array_index): Delete declaration.
2799 * m2-lang.c (m2_language_data): Delete la_print_array_index
2800 initializer.
2801 * objc-lang.c (objc_language_data): Likewise.
2802 * opencl-lang.c (opencl_language_data): Likewise.
2803 * p-lang.c (pascal_language_data): Likewise.
2804 * rust-lang.c (rust_language_data): Likewise.
2805
0874fd07
AB
28062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2807
2808 * gdb/ada-lang.c (ada_language_defn): Convert to...
2809 (ada_language_data): ...this.
2810 (class ada_language): New class.
2811 (ada_language_defn): New static global.
2812 * gdb/c-lang.c (c_language_defn): Convert to...
2813 (c_language_data): ...this.
2814 (class c_language): New class.
2815 (c_language_defn): New static global.
2816 (cplus_language_defn): Convert to...
2817 (cplus_language_data): ...this.
2818 (class cplus_language): New class.
2819 (cplus_language_defn): New static global.
2820 (asm_language_defn): Convert to...
2821 (asm_language_data): ...this.
2822 (class asm_language): New class.
2823 (asm_language_defn): New static global.
2824 (minimal_language_defn): Convert to...
2825 (minimal_language_data): ...this.
2826 (class minimal_language): New class.
2827 (minimal_language_defn): New static global.
2828 * gdb/d-lang.c (d_language_defn): Convert to...
2829 (d_language_data): ...this.
2830 (class d_language): New class.
2831 (d_language_defn): New static global.
2832 * gdb/f-lang.c (f_language_defn): Convert to...
2833 (f_language_data): ...this.
2834 (class f_language): New class.
2835 (f_language_defn): New static global.
2836 * gdb/go-lang.c (go_language_defn): Convert to...
2837 (go_language_data): ...this.
2838 (class go_language): New class.
2839 (go_language_defn): New static global.
2840 * gdb/language.c (unknown_language_defn): Remove declaration.
2841 (current_language): Initialize to nullptr, real initialization is
2842 moved to _initialize_language.
2843 (languages): Delete global.
2844 (language_defn::languages): Define.
2845 (set_language_command): Use language_defn::languages.
2846 (set_language): Likewise.
2847 (range_error): Likewise.
2848 (language_enum): Likewise.
2849 (language_def): Likewise.
2850 (add_set_language_command): Use language_def::languages for the
2851 language list, and language_def to lookup language pointers.
2852 (skip_language_trampoline): Use language_defn::languages.
2853 (unknown_language_defn): Convert to...
2854 (unknown_language_data): ...this.
2855 (class unknown_language): New class.
2856 (unknown_language_defn): New static global.
2857 (auto_language_defn): Convert to...
2858 (auto_language_data): ...this.
2859 (class auto_language): New class.
2860 (auto_language_defn): New static global.
2861 (language_gdbarch_post_init): Use language_defn::languages.
2862 (_initialize_language): Initialize current_language.
2863 * gdb/language.h (struct language_defn): Rename to...
2864 (struct language_data): ...this.
2865 (struct language_defn): New.
2866 (auto_language_defn): Delete.
2867 (unknown_language_defn): Delete.
2868 (minimal_language_defn): Delete.
2869 (ada_language_defn): Delete.
2870 (asm_language_defn): Delete.
2871 (c_language_defn): Delete.
2872 (cplus_language_defn): Delete.
2873 (d_language_defn): Delete.
2874 (f_language_defn): Delete.
2875 (go_language_defn): Delete.
2876 (m2_language_defn): Delete.
2877 (objc_language_defn): Delete.
2878 (opencl_language_defn): Delete.
2879 (pascal_language_defn): Delete.
2880 (rust_language_defn): Delete.
2881 * gdb/m2-lang.c (m2_language_defn): Convert to...
2882 (m2_language_data): ...this.
2883 (class m2_language): New class.
2884 (m2_language_defn): New static global.
2885 * gdb/objc-lang.c (objc_language_defn): Convert to...
2886 (objc_language_data): ...this.
2887 (class objc_language): New class.
2888 (objc_language_defn): New static global.
2889 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2890 (opencl_language_data): ...this.
2891 (class opencl_language): New class.
2892 (opencl_language_defn): New static global.
2893 * gdb/p-lang.c (pascal_language_defn): Convert to...
2894 (pascal_language_data): ...this.
2895 (class pascal_language): New class.
2896 (pascal_language_defn): New static global.
2897 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2898 language pointer, update comment format.
2899 * gdb/rust-lang.c (rust_language_defn): Convert to...
2900 (rust_language_data): ...this.
2901 (class rust_language): New class.
2902 (rust_language_defn): New static global.
2903
1313c56e
AB
29042020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2905
2906 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2907 member variable.
2908 <m_stmt_at_address>: New member variable.
2909 (lnp_state_machine::record_line): Don't record some lines, update
2910 tracking of is_stmt at the same address.
2911 (lnp_state_machine::lnp_state_machine): Initialise new member
2912 variables.
2913
b7ed9f3d
ST
29142020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2915
2916 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2917 "-include gnu-nat-mig.h".
2918 * gnu-nat-mig.h: New file.
2919 * gnu-nat.c: Include "gnu-nat-mig.h".
2920 (exc_server, msg_reply_server, notify_server,
2921 process_reply_server): Remove declarations.
2922
14a8ad62
ST
29232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2924
2925 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2926 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2927 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2928 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2929 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2930 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2931 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2932 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2933 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2934 to gnu_nat_target class.
2935 * gnu-nat.c: Likewise.
2936 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2937 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2938 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2939 object.
2940 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2941 instead of `gnu_target'.
2942
0af5e106
ST
29432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2944
2945 * i386-gnu-tdep.c: Include "gdbcore.h"
2946 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2947 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2948 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2949 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2950 i386_gnu_sigcontext_addr): New functions
2951 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2952 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2953 tdep.
2954
078f2fc9
ST
29552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2956
2957 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2958 before fork_inferior call. Avoid calling it if target_is_pushed returns
2959 true.
2960
53dff92c
ST
29612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2962
2963 * gnu-nat.h (gnu_target): New variable declaration.
2964 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2965 gnu_target.
2966 * gnu-nat.c (gnu_target): New variable.
2967 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2968 add_thread_silent, and add_thread calls.
2969 (gnu_nat_target::create_inferior): Pass gnu_target to
2970 add_thread_silent, thread_change_ptid call.
2971 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2972 call.
2973
5a8b8627
ST
29742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2975
2976 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2977 (gnu_nat_target::find_memory_regions): Remove unused
2978 `old_address' variable.
2979
366f550a
ST
29802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2981
2982 * gnu-nat.c: Include "gdbarch.h".
2983
f14871bf
ST
29842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2985
2986 * reply_mig_hack.awk (Error return): Cast function through
2987 void *, to bypass compiler function call check.
2988
c6887cfb
ST
29892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2990
2991 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2992 $(srcdir)/reply_mig_hack.awk.
2993
6930bffe
ST
29942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2995
2996 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2997
112c22ed
JG
29982020-05-30 Jonny Grant <jg@jguk.org>
2999
3000 * configure.ac (ACX_BUGURL): change bug URL to https.
3001
f68f85b5
PA
30022020-05-30 Pedro Alves <palves@redhat.com>
3003
3004 * cp-support.c (replace_typedefs_template): New.
3005 (replace_typedefs_qualified_name): Handle
3006 DEMANGLE_COMPONENT_TEMPLATE.
3007
976ca316
SM
30082020-05-29 Simon Marchi <simon.marchi@efficios.com>
3009
3010 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3011 dwarf2/index-cache.h, dwarf2/index-write.c,
3012 dwarf2/index-write.h, dwarf2/line-header.c,
3013 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3014 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3015 variables and fields from `dwarf2_per_objfile` to just
3016 `per_objfile` throughout.
3017
989ade05
SM
30182020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3019
3020 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3021 <push_dwarf_reg_entry_value>: Add comment.
3022
c47bae85
KB
30232020-05-28 Kevin Buettner <kevinb@redhat.com>
3024 Keith Seitz <keiths@redhat.com>
3025
3026 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3027 instead of PyEval_ReleaseLock.
3028 (class gdbpy_gil): Move to earlier in file.
3029 (finalize_python): Set gdb_python_initialized.
3030 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3031 when not initialized.
3032
44486dcf
SM
30332020-05-28 Simon Marchi <simon.marchi@efficios.com>
3034
3035 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3036 <push_dwarf_reg_entry_value>: Remove assert. Override
3037 per_objfile with caller_per_objfile.
3038
f030440d
TV
30392020-05-28 Tom de Vries <tdevries@suse.de>
3040
3041 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3042 PR gold/15646 workaround to symbol kind "type".
3043
f0fbb768
TT
30442020-05-27 Tom Tromey <tromey@adacore.com>
3045
3046 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3047
af0b2a3e
TT
30482020-05-27 Tom Tromey <tromey@adacore.com>
3049
3050 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3051 Use htab_find_with_hash.
3052 <add_abbrev>: Remove "abbrev_number" parameter.
3053 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3054 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3055 (hash_abbrev): Add comment.
3056 (abbrev_table::lookup_abbrev): Move to header file.
3057 (abbrev_table::read): Update.
3058
7d00ffec
TT
30592020-05-27 Tom Tromey <tromey@adacore.com>
3060
3061 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3062 method.
3063 <canonical_name>: New member.
3064 <raw_name>: Rename from "name".
3065 (partial_die_info): Initialize canonical_name.
3066 (scan_partial_symbols): Check raw_name.
3067 (partial_die_parent_scope, partial_die_full_name)
3068 (add_partial_symbol, add_partial_subprogram)
3069 (add_partial_enumeration, load_partial_dies): Use "name" method.
3070 (partial_die_info::name): New method.
3071 (partial_die_info::read, guess_partial_die_structure_name)
3072 (partial_die_info::fixup): Update.
3073
697bba18
TT
30742020-05-27 Tom Tromey <tromey@adacore.com>
3075
3076 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3077 <get_ref_die_offset>: Inline.
3078 <get_ref_die_offset_complaint>: New method.
3079 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3080 (attribute::get_ref_die_offset_complaint): Rename from
3081 get_ref_die_offset. Just issue complaint.
3082
c17ace43
HD
30832020-05-27 Hannes Domani <ssbssa@yahoo.de>
3084
3085 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3086
96445f0b
HD
30872020-05-27 Hannes Domani <ssbssa@yahoo.de>
3088
3089 * exec.c (exec_file_attach): Use errno value of first openp failure.
3090
ac637ec3
HD
30912020-05-27 Hannes Domani <ssbssa@yahoo.de>
3092
3093 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3094 Don't close thread handle.
3095
17ee85fc
TT
30962020-05-27 Tom Tromey <tom@tromey.com>
3097 Simon Marchi <simon.marchi@efficios.com>
3098
3099 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3100 shared_ptr.
3101 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3102 member.
3103 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3104 dwarf2_per_bfd_objfile_data_key>: New globals.
3105 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3106 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3107 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3108 shared.
3109 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3110 short-circuit when sharing.
3111 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3112 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3113
39b16f87
SM
31142020-05-27 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3117 to...
3118 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3119 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3120
fcf23d5b
SM
31212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3122
3123 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3124 build_name_components, find_name_components_bounds>:
3125 Add per_objfile parameter.
3126 (struct mapped_index) <symbol_name_at>: Likewise.
3127 (struct mapped_debug_names): Remove constructor.
3128 <dwarf2_per_objfile>: Remove field.
3129 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3130 (mapped_index_base::find_name_components_bounds,
3131 mapped_index_base::build_name_components,
3132 dw2_expand_symtabs_matching_symbol): Likewise.
3133 (class mock_mapped_index) <symbol_name_at>: Likewise.
3134 (check_match): Likewise.
3135 (check_find_bounds_finds): Likewise.
3136 (test_mapped_index_find_name_component_bounds): Update.
3137 (CHECK_MATCH): Update.
3138 (dw2_expand_symtabs_matching): Update.
3139 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3140 per_objfile parameter.
3141 <find_vec_in_debug_names>: Likewise.
3142 <m_per_objfile>: New field.
3143 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3144 parameter.
3145 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3146 (dw2_debug_names_iterator::next): Update.
3147 (dw2_debug_names_lookup_symbol): Update.
3148 (dw2_debug_names_expand_symtabs_for_function): Update.
3149 (dw2_debug_names_map_matching_symbols): Update.
3150 (dw2_debug_names_expand_symtabs_matching): Update.
3151 (dwarf2_read_debug_names): Update.
3152
7188ed02
SM
31532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3154
3155 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3156 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3157 move to dwarf2_per_objfile.
3158 <read_in_chain>: Remove.
3159 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3160 remove_all_cus, age_comp_units>: New methods.
3161 <m_dwarf2_cus>: New member.
3162 (struct dwarf2_per_cu_data) <cu>: Remove.
3163 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3164 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3165 moved to methods of dwarf2_per_objfile.
3166 (dwarf2_clear_marks): Remove.
3167 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3168 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3169 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3170 (dwarf2_per_objfile::remove_all_cus): New.
3171 (class free_cached_comp_units) <~free_cached_comp_units>:
3172 Update.
3173 (load_cu): Update.
3174 (dw2_do_instantiate_symtab): Adjust.
3175 (fill_in_sig_entry_from_dwo_entry): Adjust.
3176 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3177 (cutu_reader::cutu_reader): Likewise.
3178 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3179 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3180 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3181 and dwarf2_per_objfile::age_comp_units.
3182 (load_partial_comp_unit): Update.
3183 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3184 (process_queue): Likewise.
3185 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3186 backlink.
3187 (dwarf2_read_addr_index): Likewise.
3188 (follow_die_offset): Likewise.
3189 (dwarf2_fetch_die_loc_sect_off): Likewise.
3190 (dwarf2_fetch_constant_bytes): Likewise.
3191 (dwarf2_fetch_die_type_sect_off): Likewise.
3192 (follow_die_sig_1): Likewise.
3193 (load_full_type_unit): Likewise.
3194 (read_signatured_type): Likewise.
3195 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3196 (dwarf2_cu::~dwarf2_cu): Remove.
3197 (dwarf2_per_objfile::get_cu): New.
3198 (dwarf2_per_objfile::set_cu): New.
3199 (age_cached_comp_units): Rename to...
3200 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3201 to std::unordered_map.
3202 (free_one_cached_comp_unit): Rename to...
3203 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3204 to std::unordered_map.
3205 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3206 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3207 a dwarf2_per_objfile in data.
3208 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3209 (dwarf2_clear_marks): Remove.
3210
2e671100
SM
32112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3212
3213 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3214 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3215 (init_tu_and_read_dwo_dies): Likewise.
3216 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3217 (cutu_reader::cutu_reader): Likewise.
3218 (load_partial_comp_unit): Likewise.
3219 (process_psymtab_comp_unit): Update.
3220 (build_type_psymtabs_1): Update.
3221 (process_skeletonless_type_unit): Update.
3222 (load_full_comp_unit): Update.
3223 (find_partial_die): Update.
3224 (dwarf2_read_addr_index): Update.
3225 (read_signatured_type): Update.
3226
2e6a9f79
SM
32272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3228
3229 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3230 m_header_read_in>: New fields.
3231 <get_header>: New method.
3232 * dwarf2/read.c (per_cu_header_read_in): Remove.
3233 (dwarf2_per_cu_data::get_header): New.
3234 (dwarf2_per_cu_data::addr_size): Update.
3235 (dwarf2_per_cu_data::offset_size): Update.
3236 (dwarf2_per_cu_data::ref_addr_size): Update.
3237
1b555f17
SM
32382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3239
3240 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3241 (dw2_do_instantiate_symtab): Update.
3242 (queue_and_load_all_dwo_tus): Change parameter from
3243 dwarf2_per_cu_data to dwarf2_cu.
3244 (dwarf2_fetch_die_loc_sect_off): Update.
3245 (dwarf2_fetch_constant_bytes): Update.
3246 (dwarf2_fetch_die_type_sect_off): Update.
3247
8fc0b21d
SM
32482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3249
3250 * dwarf2/read.c (process_full_comp_unit,
3251 process_full_type_unit): Remove per_cu, per_objfile paramters.
3252 Add dwarf2_cu parameter.
3253 (process_queue): Update.
3254
168c9250
SM
32552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3256
3257 * dwarf2/read.c (create_cu_from_index_list): Replace
3258 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3259 (create_cus_from_index_list): Likewise.
3260 (create_cus_from_index): Likewise.
3261 (create_signatured_type_table_from_index): Likewise.
3262 (create_cus_from_debug_names_list): Likewise.
3263 (create_cus_from_debug_names): Likewise.
3264 (dwarf2_read_gdb_index): Update.
3265 (dwarf2_read_debug_names): Update.
3266
e286671b
TT
32672020-05-27 Tom Tromey <tom@tromey.com>
3268 Simon Marchi <simon.marchi@efficios.com>
3269
3270 * dwarf2/read.h (struct dwarf2_per_objfile)
3271 <get_type_for_signatured_type, set_type_for_signatured_type>:
3272 New methods.
3273 <m_type_map>: New member.
3274 (struct signatured_type) <type>: Remove.
3275 * dwarf2/read.c
3276 (dwarf2_per_objfile::get_type_for_signatured_type,
3277 dwarf2_per_objfile::set_type_for_signatured_type): New.
3278 (get_signatured_type): Use new methods.
3279
8adb8487
TT
32802020-05-27 Tom Tromey <tom@tromey.com>
3281 Simon Marchi <simon.marchi@efficios.com>
3282
3283 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3284 (struct dwarf2_per_objfile) <type_units>: New member.
3285 <get_type_unit_group_unshareable>: New method.
3286 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3287 num_symtabs, symtabs>: Remove; move to
3288 type_unit_group_unshareable.
3289 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3290 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3291 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3292
127bbf4b
SM
32932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3294
3295 * dwarf2/read.h (struct dwarf2_per_cu_data):
3296 <dwarf2_per_objfile>: Remove.
3297 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3298 dwarf2_per_objfile.
3299 (create_signatured_type_table_from_index): Likewise.
3300 (create_signatured_type_table_from_debug_names): Likewise.
3301 (create_debug_type_hash_table): Likewise.
3302 (fill_in_sig_entry_from_dwo_entry): Likewise.
3303 (create_type_unit_group): Likewise.
3304 (read_comp_units_from_section): Likewise.
3305 (create_cus_hash_table): Likewise.
3306
f6e649dd
SM
33072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3308
3309 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3310 dwarf2_per_cu_data::dwarf2_per_objfile.
3311 (compute_compunit_symtab_includes): Likewise.
3312 (dwarf2_cu::start_symtab): Likewise.
3313
aa66c379
SM
33142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3315
3316 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3317 parameter.
3318 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3319 (read_namespace_alias): Update.
3320 (lookup_die_type): Update.
3321 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3322 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3323 Update.
3324 (disassemble_dwarf_expression): Update.
3325
120ce1b5
SM
33262020-05-27 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * dwarf2/read.h (struct dwarf2_queue_item): Add
3329 dwarf2_per_objfile parameter, assign new parameter.
3330 <per_objfile>: New field.
3331 * dwarf2/read.c (free_one_cached_comp_unit): Add
3332 dwarf2_per_objfile parameter.
3333 (queue_comp_unit): Likewise.
3334 (dw2_do_instantiate_symtab): Update.
3335 (process_psymtab_comp_unit): Update.
3336 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3337 (process_imported_unit_die): Update.
3338 (queue_and_load_dwo_tu): Update.
3339 (follow_die_offset): Update.
3340 (follow_die_sig_1): Update.
3341
9f47c707
SM
33422020-05-27 Simon Marchi <simon.marchi@efficios.com>
3343
3344 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3345 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3346 (read_call_site_scope): Assign per_objfile.
3347 (dwarf2_per_cu_data::objfile): Remove.
3348 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3349 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3350 dwarf2_per_objfile parameter.
3351 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3352 dwarf2_per_objfile parameter.
3353 (dwarf_expr_reg_to_entry_parameter): Add output
3354 dwarf2_per_objfile parameter.
3355 (locexpr_get_frame_base): Update.
3356 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3357 <push_dwarf_reg_entry_value>: Update.
3358 <call_site_to_target_addr>: Update.
3359 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3360 parameter.
3361 (value_of_dwarf_reg_entry): Update.
3362 (rw_pieced_value): Update.
3363 (indirect_synthetic_pointer): Update.
3364 (dwarf2_evaluate_property): Update.
3365 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3366 parameter.
3367 (locexpr_read_variable): Update.
3368 (locexpr_get_symbol_read_needs): Update.
3369 (loclist_read_variable): Update.
3370
14095eb3
SM
33712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3372
3373 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3374 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3375 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3376 parameter.
3377 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3378 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3379 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3380 parameter.
3381 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3382 sect_variable_value): Add dwarf2_per_objfile parameter.
3383 (class dwarf_evaluate_loc_desc) <dwarf_call,
3384 dwarf_variable_value>: Update.
3385 (fetch_const_value_from_synthetic_pointer): Add
3386 dwarf2_per_objfile parameter.
3387 (fetch_const_value_from_synthetic_pointer): Update.
3388 (coerced_pieced_ref): Update.
3389 (class symbol_needs_eval_context) <dwarf_call,
3390 dwarf_variable_value>: Update.
3391 (dwarf2_compile_expr_to_ax): Update.
3392
3c3cd3d4
SM
33932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3396 parameter.
3397 (dwarf2_evaluate_loc_desc_full): Update.
3398
82ca3f51
SM
33992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3400
3401 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3402 parameter.
3403 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3404 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3405 dwarf2_per_objfile parameter.
3406 (decode_debug_loc_dwo_addresses): Likewise.
3407 (dwarf2_find_location_expression): Update.
3408 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3409 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3410 parameter.
3411 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3412 parameter.
3413 (locexpr_describe_location_1): Likewise.
3414 (locexpr_describe_location): Update.
3415
4b167ea1
SM
34162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3417
3418 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3419 Remove.
3420 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3421 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3422 (dwarf2_compile_property_to_c): Update.
3423 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3424 use text offset from objfile.
3425 (locexpr_tracepoint_var_ref): Update.
3426 (locexpr_generate_c_location): Update.
3427 (loclist_describe_location): Update.
3428 (loclist_tracepoint_var_ref): Update.
3429 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3430 dwarf2_per_objfile parameter.
3431 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3432 use text offset from objfile.
3433 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3434
89b07335
SM
34352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3436
3437 * dwarf2/expr.h (struct dwarf_expr_context)
3438 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3439 <offset>: Remove.
3440 <per_objfile>: New member.
3441 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3442 dwarf2_per_objfile parameter. Don't set offset, set
3443 per_objfile.
3444 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3445 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3446 a dwarf2_per_objfile object instead of an offset.
3447 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3448 constructor.
3449 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3450 to dwarf2_expr_executor constructor. Don't set offset.
3451 (dwarf2_fetch_cfa_info): Update.
3452 (struct dwarf2_frame_cache) <text_offset>: Remove.
3453 <per_objfile>: New field.
3454 (dwarf2_frame_cache): Update.
3455 (dwarf2_frame_prev_register): Update.
3456 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3457 <dwarf_evaluate_loc_desc>: Add constructor.
3458 (dwarf2_evaluate_loc_desc_full): Update.
3459 (dwarf2_locexpr_baton_eval): Update.
3460 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3461 Add constructor.
3462 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3463
293e7e51
SM
34642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3467 addr_sized_int_type>: Move to dwarf2_cu.
3468 <int_type>: Move to dwarf2_per_objfile.
3469 (struct dwarf2_per_objfile) <int_type>: Move here.
3470 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3471 addr_sized_int_type>: Move here.
3472 (read_func_scope): Update.
3473 (read_array_type): Update.
3474 (read_tag_string_type): Update.
3475 (attr_to_dynamic_prop): Update.
3476 (dwarf2_per_cu_data::int_type): Rename to...
3477 (dwarf2_per_objfile::int_type): ... this.
3478 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3479 (dwarf2_cu::addr_sized_int_type): ... this.
3480 (read_subrange_type): Update.
3481 (dwarf2_per_cu_data::addr_type): Rename to...
3482 (dwarf2_cu::addr_type): ... this.
3483 (set_die_type): Update.
3484
64874a40
SM
34852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3486
3487 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3488 data through per_cu->cu.
3489
4ab09049
SM
34902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3491
3492 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3493 dwarf2_per_cu_data parameter fo dwarf2_cu.
3494 (lookup_dwo_type_unit): Likewise.
3495 (read_cutu_die_from_dwo): Likewise.
3496 (lookup_dwo_unit): Likewise.
3497 (open_and_init_dwo_file): Likewise.
3498 (lookup_dwo_cutu): Likewise.
3499 (lookup_dwo_comp_unit): Likewise.
3500 (lookup_dwo_type_unit): Likewise.
3501 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3502 (cutu_reader::cutu_reader): Update.
3503
47b14e86
SM
35042020-05-27 Simon Marchi <simon.marchi@efficios.com>
3505
3506 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3507 parameter.
3508 (process_full_type_unit): Likewise.
3509 (process_queue): Update.
3510
43182c09
SM
35112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3512
3513 * dwarf2/read.c (recursively_compute_inclusions): Add
3514 dwarf2_per_objfile parameter.
3515 (compute_compunit_symtab_includes): Likewise.
3516 (process_cu_includes): Update.
3517
7aa104c4
SM
35182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3521 parameter.
3522 (create_type_unit_group): Update.
3523 (process_psymtab_comp_unit_reader): Update.
3524 (build_type_psymtabs_reader): Update.
3525
e3beb21d
SM
35262020-05-27 Simon Marchi <simon.marchi@efficios.com>
3527
3528 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3529 object through m_this_cu->cu.
3530
d460f660
SM
35312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3532
3533 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3534 the info parameter.
3535 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3536
ab432490
SM
35372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3538
3539 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3540 per_objfile parameter.
3541 (load_full_type_unit): Add per_objfile parameter.
3542 (read_signatured_type): Likewise.
3543 (load_full_comp_unit): Likewise.
3544 (load_cu): Likewise.
3545 (dw2_do_instantiate_symtab): Likewise.
3546 (dw2_get_file_names): Likewise.
3547 (dw2_map_symtabs_matching_filename): Update.
3548 (dw_expand_symtabs_matching_file_matcher): Update.
3549 (dw2_map_symbol_filenames): Update.
3550 (process_psymtab_comp_unit): Add per_objfile parameter.
3551 (build_type_psymtabs_1): Update.
3552 (process_skeletonless_type_unit): Update.
3553 (dwarf2_build_psymtabs_hard): Update.
3554 (load_partial_comp_unit): Add per_objfile parameter.
3555 (scan_partial_symbols): Update.
3556 (load_full_comp_unit): Add per_objfile parameter.
3557 (process_imported_unit_die): Update.
3558 (create_cus_hash_table): Update.
3559 (find_partial_die): Update.
3560 (dwarf2_read_addr_index): Update.
3561 (follow_die_offset): Update.
3562 (dwarf2_fetch_die_loc_sect_off): Update.
3563 (dwarf2_fetch_constant_bytes): Update.
3564 (dwarf2_fetch_die_type_sect_off): Update.
3565 (follow_die_sig_1): Update.
3566 (load_full_type_unit): Add per_objfile parameter.
3567 (read_signatured_type): Likewise.
3568
313bad1b
SM
35692020-05-27 Simon Marchi <simon.marchi@efficios.com>
3570
3571 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3572 of objfile_name.
3573
c3699833
SM
35742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3575
3576 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3577 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3578 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3579 field.
3580 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3581 (create_cus_from_index): Update.
3582 (dwarf2_read_gdb_index): Update.
3583 (create_cus_from_debug_names): Update.
3584 (dwarf2_read_debug_names): Update.
3585 (get_abbrev_section_for_cu): Update.
3586 (create_all_comp_units): Update.
3587 (read_attribute_value): Update.
3588 (get_debug_line_section): Update.
3589 * dwarf2/index-cache.c (index_cache::store): Update.
3590 * dwarf2/index-write.c (save_gdb_index_command): Update.
3591 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3592
1859c670
SM
35932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3594
3595 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3596 member.
3597 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3598 dwarf2_per_cu_data::per_bfd.
3599 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3600 (create_type_unit_group): Likewise.
3601 (queue_comp_unit): Remove reference to
3602 per_cu->dwarf2_per_objfile.
3603 (maybe_queue_comp_unit): Likewise.
3604 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3605 (create_cus_hash_table): Assign new field.
3606
5e22e966
SM
36072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3608
3609 * dwarf2/read.c: Replace
3610 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3611 dwarf2_cu->per_objfile throughout.
3612
97a1449a
SM
36132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3616 parameter, don't use per_cu->dwarf2_per_objfile.
3617 (dw2_instantiate_symtab): Likewise.
3618 (dw2_find_last_source_symtab): Update.
3619 (dw2_map_expand_apply): Update.
3620 (dw2_lookup_symbol): Update.
3621 (dw2_expand_symtabs_for_function): Update.
3622 (dw2_expand_all_symtabs): Update.
3623 (dw2_expand_symtabs_with_fullname): Update.
3624 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3625 don't use per_cu->dwarf2_per_objfile.
3626 (dw2_expand_marked_cus): Update.
3627 (dw2_find_pc_sect_compunit_symtab): Update.
3628 (dw2_debug_names_lookup_symbol): Update.
3629 (dw2_debug_names_expand_symtabs_for_function): Update.
3630 (dw2_debug_names_map_matching_symbols): Update.
3631 (dwarf2_psymtab::expand_psymtab): Update.
3632
9e021579
SM
36332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3634
3635 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3636 <per_objfile>: New member.
3637 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3638 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3639 call to dwarf2_cu.
3640 (cutu_reader::cutu_reader): Update.
3641 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3642
ae090bdb
SM
36432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3644
3645 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3646 struct dwarf2_per_objfile.
3647 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3648 dwarf2_per_bfd.
3649 * dwarf2/read.c (set_die_type): Update.
3650 (get_die_type_at_offset): Update.
3651
af758d11
SM
36522020-05-27 Tom Tromey <tom@tromey.com>
3653 Simon Marchi <simon.marchi@efficios.com>
3654
3655 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3656 method.
3657 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3658 get_symtab, set_symtab>: New methods.
3659 <m_symtabs>: New field.
3660 (struct dwarf2_psymtab): Derive from partial_symtab.
3661 <readin_p, get_compunit_symtab>: Declare methods.
3662 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3663 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3664 New methods.
3665 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3666 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3667 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3668 (dw2_symtab_iter_next, dw2_print_stats)
3669 (dw2_expand_symtabs_with_fullname)
3670 (dw2_expand_symtabs_matching_one)
3671 (dw_expand_symtabs_matching_file_matcher)
3672 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3673 (dw2_debug_names_iterator::next)
3674 (dw2_debug_names_map_matching_symbols)
3675 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3676 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3677 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3678 New methods.
3679 (get_compunit_symtab, process_full_comp_unit)
3680 (process_full_type_unit): Update.
3681 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3682
5989a64e
SM
36832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3684
3685 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3686 then introduce a new dwarf2_per_objfile type.
3687 <read_line_string>: Move to the new dwarf2_per_objfile type.
3688 <objfile>: Likewise.
3689 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3690 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3691 dwarf2_per_objfile->per_bfd.
3692 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3693 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3694 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3695 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3696 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3697 (dwarf2_per_objfile::locate_sections): Rename to...
3698 (dwarf2_per_bfd::locate_sections): ... this.
3699 (dwarf2_per_objfile::get_cutu): Rename to...
3700 (dwarf2_per_bfd::get_cutu): ... this.
3701 (dwarf2_per_objfile::get_cu): Rename to...
3702 (dwarf2_per_bfd::get_cu): ... this.
3703 (dwarf2_per_objfile::get_tu): Rename to...
3704 (dwarf2_per_bfd::get_tu): ... this.
3705 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3706 (dwarf2_per_bfd::allocate_per_cu): ... this.
3707 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3708 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3709 (get_gdb_index_contents_ftype): Change parameter from
3710 dwarf2_per_objfile to dwarf2_per_bfd.
3711 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3712 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3713
a50264ba
TT
37142020-05-27 Tom Tromey <tom@tromey.com>
3715 Simon Marchi <simon.marchi@efficios.com>
3716
3717 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3718 (allocate_piece_closure): Set "per_objfile" member.
3719 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3720 (locexpr_describe_location, loclist_describe_location): Use new
3721 member.
3722 * dwarf2/read.c (read_call_site_scope)
3723 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3724 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3725 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3726 handle_data_member_location): Set per_objfile member.
3727 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3728 member.
3729 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3730
d3473f0c
TT
37312020-05-27 Tom Tromey <tom@tromey.com>
3732
3733 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3734 allocate_signatured_type>: Declare new methods.
3735 <m_num_psymtabs>: New member.
3736 (struct dwarf2_per_cu_data) <index>: New member.
3737 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3738 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3739 (create_cu_from_index_list): Use allocate_per_cu.
3740 (create_signatured_type_table_from_index)
3741 (create_signatured_type_table_from_debug_names)
3742 (create_debug_type_hash_table, add_type_unit)
3743 (read_comp_units_from_section): Use allocate_signatured_type.
3744
5717c425
TT
37452020-05-27 Tom Tromey <tom@tromey.com>
3746
3747 * psymtab.c (partial_map_expand_apply)
3748 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3749 (psym_lookup_global_symbol_language)
3750 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3751 (psym_print_stats, psym_expand_symtabs_for_function)
3752 (psym_map_symbol_filenames, psym_map_matching_symbols)
3753 (psym_expand_symtabs_matching)
3754 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3755 (maintenance_check_psymtabs): Update.
3756 * psympriv.h (struct partial_symtab) <readin_p,
3757 get_compunit_symtab>: Add objfile parameter.
3758 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3759 Likewise.
3760 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3761 get_compunit_symtab>: Likewise.
3762 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3763
45940949
TT
37642020-05-27 Tom Tromey <tom@tromey.com>
3765
3766 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3767 member.
3768 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3769 (create_cu_from_index_list)
3770 (create_signatured_type_table_from_index)
3771 (create_signatured_type_table_from_debug_names)
3772 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3773 (dwarf2_create_include_psymtab)
3774 (create_debug_type_hash_table, add_type_unit)
3775 (create_type_unit_group, read_comp_units_from_section)
3776 (dwarf2_compute_name, create_cus_hash_table)
3777 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3778 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3779 obstack.
3780 (dw2_get_real_path): Likewise. Change argument to
3781 dwarf2_per_objfile.
3782
f8c6d152
LM
37832020-05-27 Luis Machado <luis.machado@linaro.org>
3784
3785 PR tdep/26000
3786 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3787 for ldrd (immediate).
3788
e98d2e6d
PW
37892020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3790
3791 * command.h: Add comment giving the name of class_tui.
3792 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3793 create the fake command for the help for class_tui.
3794
53a47a3e
TT
37952020-05-26 Tom Tromey <tromey@adacore.com>
3796
3797 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3798 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3799 (val_atr): New function.
3800 (value_val_atr): Use it.
3801 * ada-valprint.c (print_optional_low_bound): Change low bound
3802 handling for enums.
3803 (val_print_packed_array_elements): Don't call discrete_position.
3804 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3805 discrete_position for enum types.
3806 * language.c (default_print_array_index): Change type.
3807 * language.h (struct language_defn) <la_print_array_index>: Add
3808 index_type parameter, change type of index_value.
3809 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3810 (default_print_array_index): Update.
3811 * valprint.c (maybe_print_array_index): Don't call
3812 value_from_longest. Update.
3813 (value_print_array_elements): Don't call discrete_position.
3814
0bc2354b
TT
38152020-05-26 Tom Tromey <tromey@adacore.com>
3816
3817 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3818 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3819
1218a4bf
CDA
38202020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3821
3822 PR gdb/13519
3823 * avr-tdep.c (avr_integer_to_address): Return data or code
3824 address accordingly to the second 'type' argument of the
3825 function.
3826
92651b1d
MW
38272020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3828
3829 * infcmd.c, inferior.h: (construct_inferior_arguments):
3830 Moved function from here to gdbsupport/common-inferior.{h,cc}
3831
0a4f5f8c
TT
38322020-05-23 Tom Tromey <tom@tromey.com>
3833
3834 Revert commit eca1f90c:
3835 * NEWS: Remove entry for completion styling.
3836 * completer.c (_rl_completion_prefix_display_length): Move
3837 declaration later.
3838 (gdb_fnprint): Revert.
3839 (gdb_display_match_list_1): Likewise.
3840 * cli/cli-style.c (completion_prefix_style)
3841 (completion_difference_style, completion_suffix_style): Remove.
3842 (_initialize_cli_style): Revert.
3843 * cli/cli-style.h (completion_prefix_style)
3844 (completion_difference_style, completion_suffix_style): Don't
3845 declare.
3846
e08bd6c5
PA
38472020-05-24 Pedro Alves <palves@redhat.com>
3848
3849 * symtab.c (completion_list_add_name): Return boolean indication
3850 of whether the symbol matched.
3851 (completion_list_add_symbol): Don't try to remove C++ aliases if
3852 the symbol didn't match in the first place.
3853 * symtab.h (completion_list_add_name): Return bool.
3854
ceacbf6e
SM
38552020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3856
3857 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3858 type::field.
3859
26f16254
JB
38602020-05-23 Joel Brobecker <brobecker@adacore.com>
3861
3862 GDB 9.2 released.
3863
eca1f90c
TT
38642020-05-23 Tom Tromey <tom@tromey.com>
3865
3866 * NEWS: Add entry for completion styling.
3867 * completer.c (_rl_completion_prefix_display_length): Move
3868 declaration earlier.
3869 (gdb_fnprint): Use completion_style.
3870 (gdb_display_match_list_1): Likewise.
3871 * cli/cli-style.c (completion_prefix_style)
3872 (completion_difference_style, completion_suffix_style): New
3873 globals.
3874 (_initialize_cli_style): Register new globals.
3875 * cli/cli-style.h (completion_prefix_style)
3876 (completion_difference_style, completion_suffix_style): Declare.
3877
51e2cfa2
PA
38782020-05-23 Pedro Alves <palves@redhat.com>
3879
3880 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3881 (parse_escape): Use ISDIGIT instead of isdigit.
3882 (puts_debug): Use gdb_isprint instead of isprint.
3883 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3884 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3885 ISSPACE instead of isspace.
3886 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3887 instead of isspace.
3888 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3889 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3890 instead of isxdigit and ISDIGIT instead of isdigit.
3891
80fc5e77
SM
38922020-05-22 Simon Marchi <simon.marchi@efficios.com>
3893
3894 * gdbtypes.h (struct type) <field>: New method.
3895 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3896 or type::field.
3897
3cabb6b0
SM
38982020-05-22 Simon Marchi <simon.marchi@efficios.com>
3899
3900 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3901 (TYPE_FIELDS): Use type::fields. Change all call sites that
3902 modify the propery to use type::set_fields instead.
3903
1f704f76
SM
39042020-05-22 Simon Marchi <simon.marchi@efficios.com>
3905
3906 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3907 type::num_fields instead.
3908
5e33d5f4
SM
39092020-05-22 Simon Marchi <simon.marchi@efficios.com>
3910
3911 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3912 methods.
3913 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3914 that modify the number of fields to use type::set_num_fields
3915 instead.
3916
9392ebb3
TT
39172020-05-22 Tom Tromey <tromey@adacore.com>
3918
3919 * compile/compile-object-load.h (munmap_list_free): Don't
3920 declare.
3921
7c13f4e8
AB
39222020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3923
3924 * annotate.c (annotate_source_line): Update return type, add call
3925 to update current symtab and line.
3926 * annotate.h (annotate_source_line): Update return type, and
3927 extend header comment.
3928 * source.c (info_line_command): Check annotation_level before
3929 calling annotate_source_line.
3930 * stack.c (print_frame_info): If calling annotate_source_line
3931 returns true, then don't print any other source line information.
3932
aa370940
SM
39332020-05-21 Simon Marchi <simon.marchi@efficios.com>
3934
3935 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3936
84d53fa9
SM
39372020-05-21 Simon Marchi <simon.marchi@efficios.com>
3938
3939 * coffread.c (patch_type): Remove NULL check before xfree.
3940 * corefile.c (set_gnutarget): Likewise.
3941 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3942 * exec.c (build_section_table): Likewise.
3943 * remote.c (remote_target::pass_signals): Likewise.
3944 * utils.c (n_spaces): Likewise.
3945 * cli/cli-script.c (document_command): Likewise.
3946 * i386-windows-tdep.c (core_process_module_section): Likewise.
3947 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3948
9d428aae
SM
39492020-05-20 Simon Marchi <simon.marchi@efficios.com>
3950
3951 * symfile.c (reread_symbols): Clear objfile's section_offsets
3952 vector and section indices, re-compute them by calling
3953 sym_offsets.
3954
250106a7
TT
39552020-05-20 Tom Tromey <tromey@adacore.com>
3956
3957 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3958 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3959
9a0bacfb
TV
39602020-05-20 Tom de Vries <tdevries@suse.de>
3961
3962 PR symtab/25833
3963 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3964
7b958a48
AM
39652020-05-20 Alan Modra <amodra@gmail.com>
3966
3967 PR 25993
3968 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3969 bfd_set_filename.
3970 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3971 passed to bfd_set_filename.
3972 * symfile-mem.c (add_vsyscall_page): Likewise for string
3973 passed to symbol_file_add_from_memory.
3974 (symbol_file_add_from_memory): Make name param a const char* and
3975 don't strdup.
3976
c7e97679
AM
39772020-05-20 Alan Modra <amodra@gmail.com>
3978
3979 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3980 rather than accessing bfd->filename directly.
3981 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3982 and use bfd_section_name.
3983 * dwarf2/frame.c (decode_frame_entry): Likewise.
3984 * exec.c (exec_set_section_address): Likewise.
3985 * solib-aix.c (solib_aix_bfd_open): Likewise.
3986 * stap-probe.c (get_stap_base_address): Likewise.
3987 * symfile.c (reread_symbols): Likewise.
3988
563c591b
TT
39892020-05-19 Tom Tromey <tromey@adacore.com>
3990
3991 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3992
f408d82c
SM
39932020-05-19 Simon Marchi <simon.marchi@efficios.com>
3994
3995 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3996
98c59b52
PA
39972020-05-19 Pedro Alves <palves@redhat.com>
3998
3999 * NEWS (set exec-file-mismatch): Adjust entry.
4000 * exec.c: Include "build-id.h".
4001 (validate_exec_file): Try to match build IDs instead of filenames.
4002 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4003 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4004 and pass down 'warn_if_slow'.
4005 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4006 gdb_bfd_open_closure to pass it down.
4007 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4008
4111f652
PA
40092020-05-19 Pedro Alves <palves@redhat.com>
4010
4011 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4012 * target.c (target_fileio_open_1): Rename to target_fileio_open
4013 and make extern. Use bool.
4014 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4015 (target_fileio_read_alloc_1): Adjust.
4016 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4017 (target_fileio_open_warn_if_slow): Delete declaration.
4018
ad80db5b
PA
40192020-05-19 Pedro Alves <palves@redhat.com>
4020
4021 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4022 Adjust all callers.
4023
1d6ce4d3
YS
40242020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4025
4026 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4027 whether disp is negative.
4028
9005fbbb
SM
40292020-05-19 Simon Marchi <simon.marchi@efficios.com>
4030
4031 * symfile.h (struct symfile_segment_data)
4032 <~symfile_segment_data>: Remove.
4033 <segment_info>: Change to std::vector.
4034 * symfile.c (default_symfile_segments): Update.
4035 * elfread.c (elf_symfile_segments): Update.
4036
68b888ff
SM
40372020-05-19 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4040 <segments>: New.
4041 <segment_bases, segment_sizes>: Remove.
4042 * symfile.c (default_symfile_segments): Update.
4043 * elfread.c (elf_symfile_segments): Update.
4044 * remote.c (remote_target::get_offsets): Update.
4045 * solib-target.c (solib_target_relocate_section_addresses):
4046 Update.
4047
62982abd
SM
40482020-05-19 Simon Marchi <simon.marchi@efficios.com>
4049
4050 * symfile.h (struct symfile_segment_data): Initialize fields.
4051 <~symfile_segment_data>: Add.
4052 (symfile_segment_data_up): New.
4053 (struct sym_fns) <sym_segments>: Return a
4054 symfile_segment_data_up.
4055 (default_symfile_segments): Return a symfile_segment_data_up.
4056 (free_symfile_segment_data): Remove.
4057 (get_symfile_segment_data): Return a symfile_segment_data_up.
4058 * symfile.c (default_symfile_segments): Likewise.
4059 (get_symfile_segment_data): Likewise.
4060 (free_symfile_segment_data): Remove.
4061 (symfile_find_segment_sections): Update.
4062 * elfread.c (elf_symfile_segments): Return a
4063 symfile_segment_data_up.
4064 * remote.c (remote_target::get_offsets): Update.
4065 * solib-target.c (solib_target_relocate_section_addresses):
4066 Update.
4067 * symfile-debug.c (debug_sym_segments): Return a
4068 symfile_segment_data_up.
4069
7f204339
RO
40702020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4071
e52a0f1b
RO
4072 PR build/25981
4073 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4074 Hardcode register numbers.
4075
7f204339
RO
4076 PR build/25981
4077 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4078 procfs_find_LDT_entry): Remove.
4079 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4080 procfs_find_LDT_entry): Remove.
4081 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4082 Remove.
4083
7f32a4d5
PA
40842020-05-17 Pedro Alves <palves@redhat.com>
4085 Andrew Burgess <andrew.burgess@embecosm.com>
4086 Keno Fischer <keno@juliacomputing.com>
4087
4088 PR gdb/25741
4089 * breakpoint.c (build_target_condition_list): Update comments.
4090 (build_target_command_list): Update comments and skip matching
4091 locations.
4092 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4093 a separate function. Simplify "set breakpoint auto-hw off"
4094 handling.
4095 (insert_breakpoints): Update comment.
4096 (tracepoint_locations_match): New parameter. For breakpoints,
4097 compare location types too, if the caller wants to.
4098 (handle_automatic_hardware_breakpoints): New functions.
4099 (bp_location_is_less_than): Also sort by location type and
4100 hardware breakpoint length.
4101 (update_global_location_list): Handle "set breakpoint auto-hw on"
4102 here.
4103 (update_breakpoint_locations): Ask breakpoint_locations_match to
4104 ignore location types.
4105
7d93a1e0
SM
41062020-05-16 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4109 type::name instead.
4110
d0e39ea2
SM
41112020-05-16 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * gdbtypes.h (struct type) <name, set_name>: New methods.
4114 (TYPE_CODE): Use type::name. Change all call sites used to set
4115 the name to use type::set_name instead.
4116
2dab0c7b
TT
41172020-05-16 Tom Tromey <tom@tromey.com>
4118
4119 * top.c (quit_force): Update.
4120 * infrun.c (handle_no_resumed): Update.
4121 * top.h (all_uis): New function.
4122 (ALL_UIS): Remove.
4123
59f7bd8d
SM
41242020-05-16 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4127
9bf058f0
PA
41282020-05-16 Pedro Alves <palves@redhat.com>
4129
4130 * ia64-linux-nat.c
4131 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4132 Declare method.
4133 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4134
8f86ae1a
SM
41352020-05-15 Simon Marchi <simon.marchi@efficios.com>
4136
4137 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4138 (sparc64_adi_info): Likewise.
4139
d6bc0792
TT
41402020-05-15 Tom Tromey <tom@tromey.com>
4141
4142 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4143 block_objfile.
4144 (lookup_objfile_from_block): Remove.
4145 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4146 (lookup_global_symbol): Use block_objfile.
4147 * symtab.h (lookup_objfile_from_block): Don't declare.
4148 * printcmd.c (clear_dangling_display_expressions): Use
4149 block_objfile.
4150 * parse.c (operator_check_standard): Use block_objfile.
4151
8c14c3a3
TT
41522020-05-15 Tom Tromey <tom@tromey.com>
4153
4154 * language.c (language_alloc_type_symbol): Set
4155 SYMBOL_SECTION.
4156 * symtab.c (initialize_objfile_symbol): Remove.
4157 (allocate_symbol): Remove.
4158 (allocate_template_symbol): Remove.
4159 * dwarf2/read.c (fixup_go_packaging): Use "new".
4160 (new_symbol): Use "new".
4161 (read_variable): Don't call initialize_objfile_symbol. Use
4162 "new".
4163 (read_func_scope): Use "new".
4164 * xcoffread.c (process_xcoff_symbol): Don't call
4165 initialize_objfile_symbol.
4166 (SYMBOL_DUP): Remove.
4167 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4168 "new".
4169 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4170 (allocate_template_symbol): Don't declare.
4171 (struct symbol): Add copy constructor. Change defaults.
4172 * jit.c (finalize_symtab): Use "new".
4173 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4174 Use "new".
4175 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4176 (common_block_end): Use "new".
4177 * mdebugread.c (parse_symbol): Use "new".
4178 (new_symbol): Likewise.
4179
5b4a1a8d
PW
41802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4181
4182 * NEWS: Mention changes to help and apropos.
4183
57b4f16e
PW
41842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4185
4186 * command.h (enum command_class): Improve comments, document
4187 that class_alias is for user-defined aliases, give the class
4188 name for each class, remove unused class_xdb.
4189 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4190 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4191 by a precise class.
4192 * infcmd.c (_initialize_infcmd): Likewise.
4193 * reverse.c (_initialize_reverse): Likewise.
4194 * stack.c (_initialize_stack): Likewise.
4195 * symfile.c (_initialize_symfile): Likewise.
4196 * tracepoint.c (_initialize_tracepoint): Likewise.
4197
7c05caf7
PW
41982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4199
4200 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4201 when their aliased command is traversed.
4202 (help_cmd): Add fput_command_names_styled call to
4203 output command name and aliases when command has an alias.
4204
3b3aaacb
PW
42052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4206
4207 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4208 * cli/cli-decode.c (help_cmd_list): Declare as static,
4209 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4210 a command together with the command.
4211 (fput_command_name_styled, fput_command_names_styled): New functions.
4212 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4213 fput_command_name_styled.
4214 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4215 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4216
7aa1b46f
PW
42172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4218
4219 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4220 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4221 * command.h (cmd_show_list): Likewise.
4222 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4223 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4224
89bcba74
PW
42252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4226
4227 * unittests/command-def-selftests.c (traverse_command_structure):
4228 Verify all commands of a list have the same prefix command and
4229 that only the top cmdlist commands have a null prefix.
4230
3f4d92eb
PW
42312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4232
4233 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4234 as prefix, not one of its aliases.
4235 (set_cmd_prefix): Remove.
4236 (do_add_cmd): Centralize the setting of the prefix of a command, when
4237 command is defined after its full chain of prefix commands.
4238 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4239 (add_setshow_cmd_full): Likewise.
4240 (update_prefix_field_of_prefixed_commands): New function.
4241 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4242 update_prefix_field_of_prefixed_commands.
4243 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4244 addresses of remote_set_cmdlist and remote_show_cmdlist given
4245 as argument, not the address of an argument.
4246 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4247 * gdb/remote.c (_initialize_remote): Likewise.
4248
0605465f
PW
42492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4250
4251 * cli/cli-cmds.c (alias_command): Check for an existing alias
4252 using lookup_cmd_composition, as valid_command_p is too strict
4253 and forbids aliases that are the prefix of an existing alias
4254 or command.
4255 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4256 command is properly recognised as a valid command.
4257
58e6ac70
PW
42582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4259
4260 * unittests/help-doc-selftests.c: Rename to
4261 unittests/command-def-selftests.c
4262 * unittests/command-def-selftests.c (help_doc_tests): Update some
4263 comments.
4264 (command_structure_tests, traverse_command_structure): New namespace
4265 and function.
4266 (command_structure_invariants_tests): New function.
4267 (_initialize_command_def_selftests) Renamed from
4268 _initialize_help_doc_selftests, register command_structure_invariants
4269 selftest.
4270
a7b9ceb8
PW
42712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4272
4273 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4274 an alias of 'show'.
4275
b2188a06
JB
42762020-05-15 Joel Brobecker <brobecker@adacore.com>
4277
4278 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4279 ada_is_fixed_point_type. Update all callers.
4280 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4281 all callers.
4282 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4283 Update all callers.
4284 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4285 print_fixed_point_type. Update all callers.
4286 * ada-valprint.c (ada_value_print_num): Replace call to
4287 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4288
a51951c2
KB
42892020-05-14 Kevin Buettner <kevinb@redhat.com>
4290
4291 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4292 processors.
4293 (cpu_supports_bts): Add CV_AMD case.
4294
29d6859f
LM
42952020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4296 Simon Marchi <simon.marchi@efficios.com>
4297
4298 * infrun.c (stop_all_threads): Collect multiple wait events at
4299 each pass.
4300
78134374
SM
43012020-05-14 Simon Marchi <simon.marchi@efficios.com>
4302
4303 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4304 type::code instead.
4305
67607e24
SM
43062020-05-14 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * gdbtypes.h (struct type) <code, set_code>: New methods.
4309 (TYPE_CODE): Use type::code. Change all call sites used to set
4310 the code to use type::set_code instead.
4311
a05575d3
TBA
43122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4313 Tom de Vries <tdevries@suse.de>
4314 Pedro Alves <palves@redhat.com>
4315
4316 PR threads/25478
4317 * infrun.c (stop_all_threads): Do NOT ignore
4318 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4319 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4320 received.
4321 (handle_no_resumed): Remove code handling a live inferior with no
4322 threads.
4323 * remote.c (has_single_non_exited_thread): New.
4324 (remote_target::update_thread_list): Do not delete a thread if is
4325 the last thread of the process.
4326 * thread.c (thread_select): Call delete_exited_threads instead of
4327 prune_threads.
4328
6ad82919
TBA
43292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4330
4331 * infrun.c (stop_all_threads): Enable/disable thread events of all
4332 targets. Move a debug message denoting the end of the function
4333 into the SCOPED_EXIT block.
4334
d890404b
TBA
43352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4336
4337 * process-stratum-target.h: Include <set>.
4338 (all_non_exited_process_targets, switch_to_target_no_thread): New
4339 function declarations.
4340 * process-stratum-target.c (all_non_exited_process_targets)
4341 (switch_to_target_no_thread): New function implementations.
4342
293b3ebc
TBA
43432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4344
4345 * infrun.c (handle_inferior_event): Extract out a piece of code
4346 into...
4347 (mark_non_executing_threads): ...this new function.
4348
7ca9b62a
TBA
43492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4350
4351 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4352 use.
4353
fc75c28b
TBA
43542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4355
4356 * regcache.c (regcache_read_pc_protected): New function
4357 implementation that returns 0 if the PC cannot read via
4358 'regcache_read_pc'.
4359 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4360 instead of 'regcache_read_pc'.
4361 (keep_going_pass_signal): Ditto.
4362
a89febbd
TT
43632020-05-13 Tom Tromey <tromey@adacore.com>
4364
4365 * ada-lang.c (align_value): Remove.
4366 (ada_template_to_fixed_record_type_1): Use align_up.
4367
f7e23710
TBA
43682020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4369
4370 * async-event.c: Update the copyright year.
4371 * async-event.h: Update the copyright year.
4372
02ff80c2
SM
43732020-05-12 Simon Marchi <simon.marchi@efficios.com>
4374
4375 * objfiles.h (is_addr_in_objfile,
4376 shared_objfile_contains_address_p): Return bool.
4377 * objfile.c (is_addr_in_objfile,
4378 shared_objfile_contains_address_p): Return bool.
4379
4fd6c7e8
TT
43802020-05-11 Tom Tromey <tromey@adacore.com>
4381
4382 * cli/cli-cmds.c (info_command): Restore.
4383 (_initialize_cli_cmds): Use add_prefix_command for "info".
4384 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4385
5eb68a39
TT
43862020-05-11 Tom Tromey <tromey@adacore.com>
4387
4388 * ada-lang.c (ada_value_primitive_field): Now public.
4389 * ada-lang.h (ada_value_primitive_field): Declare.
4390 * ada-valprint.c (print_field_values): Use
4391 ada_value_primitive_field for wrapper fields.
4392
7666722f
TV
43932020-05-11 Tom de Vries <tdevries@suse.de>
4394
4395 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4396 MODULE_DOMAIN.
4397
3ee6bb11
TV
43982020-05-11 Tom de Vries <tdevries@suse.de>
4399
4400 PR symtab/25941
4401 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4402 with length 0, if not gdb-produced.
4403 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4404
43434996
TV
44052020-05-09 Tom de Vries <tdevries@suse.de>
4406
4407 PR gdb/25955
4408 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4409 calculation.
4410
2f78cffc
TT
44112020-05-09 Tom Tromey <tom@tromey.com>
4412
4413 * top.c (server_command): Now bool.
4414 * top.h (server_command): Now bool.
4415
4f7bc5ed
TT
44162020-05-08 Tom Tromey <tromey@adacore.com>
4417
4418 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4419 already being processed.
4420
8be4b118
TT
44212020-05-08 Tom Tromey <tom@tromey.com>
4422
4423 * printcmd.c (struct display) <next>: Remove.
4424 <display>: New constructor.
4425 <exp_string>: Now a std::string.
4426 <enabled_p>: Now a bool.
4427 (display_number): Move definition earlier.
4428 (displays): Rename from display_chain. Now a std::vector.
4429 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4430 (display_command): Update.
4431 (do_one_display, disable_display)
4432 (enable_disable_display_command, do_enable_disable_display):
4433 Update.
4434 (free_display): Remove.
4435 (clear_displays): Rewrite.
4436 (delete_display): Update.
4437 (map_display_numbers): Use function_view. Remove "data"
4438 parameter. Update.
4439 (do_delete_display): Remove.
4440 (undisplay_command): Update.
4441 (do_one_display, do_displays, disable_display)
4442 (info_display_command): Update.
4443 (do_enable_disable_display): Remove.
4444 (enable_disable_display_command)
4445 (clear_dangling_display_expressions): Update.
4446
94c93c35
TT
44472020-05-08 Tom Tromey <tom@tromey.com>
4448
4449 * symtab.c (set_symbol_cache_size)
4450 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4451 (maintenance_print_symbol_cache_statistics): Update.
4452 * symmisc.c (print_symbol_bcache_statistics)
4453 (print_objfile_statistics, maintenance_print_objfiles)
4454 (maintenance_info_symtabs, maintenance_check_symtabs)
4455 (maintenance_expand_symtabs, maintenance_info_line_tables):
4456 Update.
4457 * symfile-debug.c (set_debug_symfile): Update.
4458 * source.c (forget_cached_source_info): Update.
4459 * python/python.c (gdbpy_progspaces): Update.
4460 * psymtab.c (maintenance_info_psymtabs): Update.
4461 * probe.c (parse_probes): Update.
4462 * linespec.c (iterate_over_all_matching_symtabs)
4463 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4464 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4465 * exec.c (exec_target::close): Update.
4466 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4467 * breakpoint.c (print_one_breakpoint_location)
4468 (create_longjmp_master_breakpoint)
4469 (create_std_terminate_master_breakpoint): Update.
4470 * progspace.c (program_spaces): Now a std::vector.
4471 (maybe_new_address_space): Update.
4472 (add_program_space): Remove.
4473 (program_space::program_space): Update.
4474 (remove_program_space): Update.
4475 (number_of_program_spaces): Remove.
4476 (print_program_space, update_address_spaces): Update.
4477 * progspace.h (program_spaces): Change type.
4478 (ALL_PSPACES): Remove.
4479 (number_of_program_spaces): Don't declare.
4480 (struct program_space) <next>: Remove.
4481
a1fd1ac9
TT
44822020-05-08 Tom Tromey <tom@tromey.com>
4483
4484 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4485 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4486 (enable_break): Update.
4487 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4488 (frv_fdpic_find_canonical_descriptor): Update.
4489 (frv_fetch_objfile_link_map): Update.
4490 * progspace.c (program_space::free_all_objfiles): Update.
4491 (program_space::solibs): New method.
4492 * progspace.h (struct program_space) <solibs>: New method.
4493 * solist.h (master_so_list): Don't declare.
4494 (ALL_SO_LIBS): Remove.
4495 * solib.h (so_list_head): Remove.
4496 (update_solib_list): Update comment.
4497 * solib.c (master_so_list): Remove.
4498 (solib_used, update_solib_list, solib_add)
4499 (info_sharedlibrary_command, clear_solib)
4500 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4501
38eae084
TT
45022020-05-08 Tom Tromey <tom@tromey.com>
4503
4504 * extension.c (extension_languages): Now a std::array.
4505 (ALL_EXTENSION_LANGUAGES): Remove.
4506 (get_ext_lang_defn, get_ext_lang_of_file)
4507 (eval_ext_lang_from_control_command): Update.
4508 (finish_ext_lang_initialization)
4509 (auto_load_ext_lang_scripts_for_objfile)
4510 (ext_lang_type_printers::ext_lang_type_printers)
4511 (apply_ext_lang_type_printers)
4512 (ext_lang_type_printers::~ext_lang_type_printers)
4513 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4514 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4515 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4516 (get_matching_xmethod_workers, ext_lang_colorize)
4517 (ext_lang_before_prompt): Update.
4518 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4519
596dc4ad
TT
45202020-05-08 Tom Tromey <tom@tromey.com>
4521
4522 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4523 overload.
4524 <swap_string, m_string>: Remove.
4525 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4526 Update.
4527 * stabsread.c (define_symbol, read_type): Update.
4528 * linespec.c (find_linespec_symbols): Update.
4529 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4530 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4531 * dbxread.c (read_dbx_symtab): Update.
4532 * cp-support.h (cp_canonicalize_string_full)
4533 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4534 Return unique_xmalloc_ptr.
4535 * cp-support.c (inspect_type): Update.
4536 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4537 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4538 Likewise.
4539 * c-typeprint.c (print_name_maybe_canonical): Update.
4540 * break-catch-throw.c (check_status_exception_catchpoint):
4541 Update.
4542
bf4cb9be
TV
45432020-05-08 Tom de Vries <tdevries@suse.de>
4544
4545 * infrun.c (follow_fork): Copy current_line and current_symtab to
4546 child thread.
4547
a1b68f28
SM
45482020-05-07 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * async-event.c (struct async_signal_handler, struct
4551 async_event_handler): Reformat, remove typedef.
4552
98d48915
SM
45532020-05-07 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4556 access thistype->main_type->dyn_prop_list directly.
4557
7aa91313
SM
45582020-05-07 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4561 (remove_dyn_prop): Remove. Update all users to use
4562 type::remove_dyn_prop.
4563 * gdbtypes.c (remove_dyn_prop): Rename to...
4564 (type::remove_dyn_prop): ... this.
4565
5c54719c
SM
45662020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4567
4568 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4569 (add_dyn_prop): Remove. Update all users to use
4570 type::add_dyn_prop.
4571 * gdbtypes.c (add_dyn_prop): Rename to...
4572 (type::add_dyn_prop): ... this.
4573
24e99c6c
SM
45742020-05-07 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4577 (get_dyn_prop): Remove. Update all users to use
4578 type::dyn_prop.
4579 * gdbtypes.c (get_dyn_prop): Rename to...
4580 (type::dyn_prop): ... this.
4581
0d4bf016
SM
45822020-05-06 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4585
ac4a4f1c
SM
45862020-05-06 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4589 instruction, skip it if it's there.
4590
a3bbacc1
SM
45912020-05-05 Simon Marchi <simon.marchi@efficios.com>
4592
4593 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4594
c3236f84
SM
45952020-05-04 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4598 * gdbtypes.c (recursive_dump_type): Remove use of
4599 TYPE_INCOMPLETE.
4600
3b6acaee
TT
46012020-05-03 Tom Tromey <tom@tromey.com>
4602
4603 * breakpoint.c (catch_command, tcatch_command): Remove.
4604 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4605 add_show_prefix_cmd.
4606 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4607 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4608 Remove.
4609 (add_internal_problem_command): Use add_basic_prefix_cmd,
4610 add_show_prefix_cmd.
4611 * mips-tdep.c (set_mipsfpu_command): Remove.
4612 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4613 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4614 (_initialize_index_cache): Use add_basic_prefix_cmd.
4615 * memattr.c (dummy_cmd): Remove.
4616 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4617 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4618 (_initialize_tui_win): Use add_basic_prefix_cmd,
4619 add_show_prefix_cmd.
4620 * cli/cli-logging.c (set_logging_command): Remove.
4621 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4622 add_show_prefix_cmd.
4623 (show_logging_command): Remove.
4624 * target.c (target_command): Remove.
4625 (add_target): Use add_basic_prefix_cmd.
4626
a51119cd
HD
46272020-05-02 Hannes Domani <ssbssa@yahoo.de>
4628
4629 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4630
652fc23a 46312020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4632
652fc23a
PW
4633 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4634 info_command.
4635
117539e6
KR
46362020-04-30 Kamil Rytarowski <n54@gmx.com>
4637
4638 * nbsd-nat.c (nbsd_enable_proc_events)
4639 (nbsd_nat_target::post_startup_inferior): Add.
4640 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4641 (nbsd_nat_target::update_thread_list): Rewrite.
4642 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4643 "PTRACE_LWP_CREATE".
4644 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4645
102e38eb 46462020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4647
102e38eb
PW
4648 * stack.c (_initialize_stack): Remove duplicated creation
4649 of "frame" command and "f" alias.
4650
ee9d1e5f
HD
46512020-04-30 Hannes Domani <ssbssa@yahoo.de>
4652
4653 PR gdb/18706
4654 * gdbtypes.c (check_typedef): Calculate size of array of
4655 stubbed type.
4656
627c7fb8
HD
46572020-04-30 Hannes Domani <ssbssa@yahoo.de>
4658
4659 PR gdb/15559
4660 * i386-tdep.c (i386_push_dummy_call): Call
4661 i386_thiscall_push_dummy_call.
4662 (i386_thiscall_push_dummy_call): New function.
4663 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4664 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4665 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4666
ffc2844e
SM
46672020-04-29 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbarch.sh (do_read): Add shellcheck disable directive for
4670 warning SC2162.
4671
1207375d
SM
46722020-04-29 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4675 "referenced but not assigned" warning.
4676
9fdb2916
SM
46772020-04-29 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * gdbarch.sh: Remove code that sets fallbackdefault.
4680
759cea5e
SM
46812020-04-29 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * gdbarch.sh: Use shell operators && and || instead of
4684 -a and -o.
4685
cb02ab24
SM
46862020-04-29 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * gdbarch.sh: Use $(...) instead of `...`.
4689
a6fc5ffc
SM
46902020-04-29 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * gdbarch.sh: Use double quotes around variables.
4693
8d113d13
SM
46942020-04-29 Simon Marchi <simon.marchi@efficios.com>
4695
4696 * gdbarch.sh: Use %s with printf, instead of variables in the
4697 format string.
4698
ed6acedd
TT
46992020-04-29 Tom Tromey <tromey@adacore.com>
4700
4701 PR ada/25875:
4702 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4703 type fields here.
4704 (read_enumeration_type): Call
4705 update_enumeration_type_from_children later. Update comments.
4706 (process_enumeration_scope): Don't create type fields.
4707
b68b1b58
KR
47082020-04-29 Kamil Rytarowski <n54@gmx.com>
4709
4710 * nbsd-tdep.c: Include "xml-syscall.h".
4711 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4712
f94b2e03
KR
47132020-04-29 Kamil Rytarowski <n54@gmx.com>
4714
4715 * nbsd-nat.c: Include "sys/wait.h".
4716 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4717 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4718 (nbsd_nat_target::remove_exec_catchpoint)
4719 (nbsd_nat_target::set_syscall_catchpoint): Add.
4720 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4721 (nbsd_nat_target::insert_exec_catchpoint)
4722 (nbsd_nat_target::remove_exec_catchpoint)
4723 (nbsd_nat_target::set_syscall_catchpoint): Add.
4724 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4725 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4726 `nbsd_get_syscall_number'.
4727
fc49bc72
TT
47282020-04-29 Tom Tromey <tom@tromey.com>
4729
4730 * stack.c (print_block_frame_labels): Remove.
4731
d642b692
HD
47322020-04-29 Hannes Domani <ssbssa@yahoo.de>
4733
4734 PR gdb/17320
4735 * ada-valprint.c (val_print_packed_array_elements): Move array
4736 end bracket to new line.
4737 (ada_val_print_string): Remove extra spaces before first array
4738 element.
4739 * c-valprint.c (c_value_print_array): Likewise.
4740 * m2-valprint.c (m2_print_array_contents): Likewise.
4741 (m2_value_print_inner): Likewise.
4742 * p-valprint.c (pascal_value_print_inner): Likewise.
4743 * valprint.c (generic_val_print_array): Likewise.
4744 (value_print_array_elements): Move first array element and array
4745 end bracket to new line.
4746
ea90f227
TV
47472020-04-29 Tom de Vries <tdevries@suse.de>
4748
4749 PR symtab/25889
4750 * linespec.c (find_method): Fix ix calculation.
4751
4498ef4f
KR
47522020-04-28 Kamil Rytarowski <n54@gmx.com>
4753
4754 * syscalls/update-netbsd.sh: New file.
4755 * syscalls/netbsd.xml: Regenerate.
4756 * data-directory/Makefile.in: Register `netbsd.xml' in
4757 `SYSCALLS_FILES'.
4758
a55e30b5
SM
47592020-04-28 Simon Marchi <simon.marchi@efficios.com>
4760
4761 * syscalls/update-freebsd.sh: Add double quotes.
4762
2b2fbab8
TT
47632020-04-28 Tom Tromey <tom@tromey.com>
4764
4765 * NEWS: Update.
4766 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4767 (cmdpy_init): Allow class_tui.
4768
a65189c9
TV
47692020-04-28 Mark Williams <mark@myosotissp.com>
4770
4771 PR gdb/24480
4772 * dwarf2read.c: Add missing assingments to list_in_scope when
4773 start_symtab was already called.
4774
1b95cdb7
SM
47752020-04-28 Simon Marchi <simon.marchi@efficios.com>
4776
4777 PR gdb/25881
4778 * dwarf2/read.c (offset_map_type): Use
4779 gdb:hash_enum<sect_offset> as hash function.
4780
15cd93d0
TV
47812020-04-28 Tom de Vries <tdevries@suse.de>
4782
4783 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4784 with DW_AT_signature.
4785
1eb39914
SM
47862020-04-27 Simon Marchi <simon.marchi@efficios.com>
4787
4788 * configure.ac: Remove check for fs_base/gs_base in
4789 user_regs_struct.
4790 * configure: Re-generate.
4791 * config.in: Re-generate.
4792 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4793 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4794 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4795
991a3e2e
LM
47962020-04-27 Luis Machado <luis.machado@linaro.org>
4797
4798 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4799 problematic inline frame unwinding situation.
4800 * frame.c (frame_id_computed_p): New function.
4801 * frame.h (frame_id_computed_p): New prototype.
4802
361ba0e8
TT
48032020-04-26 Tom Tromey <tom@tromey.com>
4804
4805 * command.h (enum command_class) <class_pseudo>: Remove.
4806
bc3609fd
PW
48072020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4808
4809 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4810 and whitespace.
4811
b9771db7
KR
48122020-04-25 Kamil Rytarowski <n54@gmx.com>
4813
ec16513e
SM
4814 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4815 `PT_GET_PROCESS_STATE' block.
b9771db7 4816
7151c1af
TT
48172020-04-24 Tom Tromey <tom@tromey.com>
4818
4819 * symtab.h (symbol_get_demangled_name): Don't declare.
4820 * symtab.c (symbol_get_demangled_name): Remove.
4821 (general_symbol_info::natural_name)
4822 (general_symbol_info::demangled_name): Update.
4823
906bb4c5
TT
48242020-04-24 Tom Tromey <tom@tromey.com>
4825
4826 PR rust/25025:
4827 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4828
bcfe6157
TT
48292020-04-24 Tom Tromey <tom@tromey.com>
4830
4831 PR symtab/12707:
4832 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4833 exists.
4834 (new_symbol): Likewise.
4835 * compile/compile-object-load.c (get_out_value_type): Use
4836 symbol_matches_search_name.
4837
f049a313
TT
48382020-04-24 Tom Tromey <tom@tromey.com>
4839
4840 * dwarf2/read.c (add_partial_symbol): Do not call
4841 compute_and_set_names.
4842
76e288d1
TT
48432020-04-24 Tom Tromey <tom@tromey.com>
4844
4845 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4846 overload.
4847
2467f4f6
TT
48482020-04-24 Tom Tromey <tom@tromey.com>
4849
4850 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4851 (add_psymbol_to_list): New overload. Make old overload call new
4852 one.
4853 * psympriv.h (add_psymbol_to_list): New overload.
4854
e61108c9
TT
48552020-04-24 Tom Tromey <tom@tromey.com>
4856
4857 * dwarf2/read.c (partial_die_info::read) <case
4858 DW_AT_linkage_name>: Use value_as_string.
4859 (dwarf2_string_attr): Use value_as_string.
4860 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4861 method.
4862 * dwarf2/attribute.c (attribute::value_as_string): New method.
4863
8c87a452
TT
48642020-04-24 Tom Tromey <tom@tromey.com>
4865
4866 * symtab.c (general_symbol_info::natural_name)
4867 (general_symbol_info::demangled_name): Check for language_rust.
4868
787de330
TT
48692020-04-24 Tom Tromey <tom@tromey.com>
4870
4871 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4872 (dwarf2_physname): ... from here.
4873 (partial_die_info::read): Add Rust "{" hack.
4874
ff985671
TT
48752020-04-24 Tom Tromey <tom@tromey.com>
4876
4877 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4878 method.
4879 (symbol_set_demangled_name): Don't declare.
4880 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4881 symbol_set_demangled_name.
4882 (general_symbol_info::set_language)
4883 (general_symbol_info::compute_and_set_names): Update.
4884 * minsyms.c (minimal_symbol_reader::install): Update.
4885 * dwarf2/read.c (new_symbol): Update.
4886
1acda803
TT
48872020-04-24 Tom Tromey <tromey@adacore.com>
4888
4889 PR python/23662:
4890 * python/py-type.c (convert_field): Handle
4891 FIELD_LOC_KIND_DWARF_BLOCK.
4892 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4893 (typy_get_dynamic): Nw function.
4894 (type_object_getset): Add "dynamic".
4895 * NEWS: Add entry.
4896
d656f129
TT
48972020-04-24 Tom Tromey <tromey@adacore.com>
4898
4899 * ada-typeprint.c (print_choices, print_variant_part)
4900 (print_record_field_types_dynamic): New functions.
4901 (print_record_field_types): Use print_record_field_types_dynamic.
4902
7d79de9a
TT
49032020-04-24 Tom Tromey <tromey@adacore.com>
4904
4905 * dwarf2/read.c (handle_data_member_location): New overload.
4906 (dwarf2_add_field): Use it.
4907 (decode_locdesc): Add "computed" parameter. Update comment.
4908 * gdbtypes.c (is_dynamic_type_internal): Also look for
4909 FIELD_LOC_KIND_DWARF_BLOCK.
4910 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4911 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4912 virtual base classes.
4913 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4914 FIELD_LOC_KIND_DWARF_BLOCK.
4915
f8e89861
TT
49162020-04-24 Tom Tromey <tromey@adacore.com>
4917
4918 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4919 * gdbtypes.c (is_dynamic_type_internal): Check
4920 TYPE_HAS_DYNAMIC_LENGTH.
4921 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4922 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4923 New macros.
4924 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4925 constant.
4926
9c6a1327
TT
49272020-04-24 Tom Tromey <tromey@adacore.com>
4928
4929 * dwarf2/read.c (struct variant_field): Rewrite.
4930 (struct variant_part_builder): New.
4931 (struct nextfield): Remove "variant" field. Add "offset".
4932 (struct field_info): Add "current_variant_part" and
4933 "variant_parts".
4934 (alloc_discriminant_info): Remove.
4935 (alloc_rust_variant): New function.
4936 (quirk_rust_enum): Update.
4937 (dwarf2_add_field): Set "offset" member. Don't handle
4938 DW_TAG_variant_part.
4939 (offset_map_type): New typedef.
4940 (convert_variant_range, create_one_variant)
4941 (create_one_variant_part, create_variant_parts)
4942 (add_variant_property): New functions.
4943 (dwarf2_attach_fields_to_type): Call add_variant_property.
4944 (read_structure_type): Don't handle DW_TAG_variant_part.
4945 (handle_variant_part, handle_variant): New functions.
4946 (handle_struct_member_die): Use them.
4947 (process_structure_scope): Don't handle variant parts.
4948 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4949 (struct discriminant_info): Remove.
4950 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4951 (struct main_type) <flag_discriminated_union>: Remove.
4952 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4953 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4954 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4955 Update.
4956 * valops.c (value_union_variant): Remove.
4957 * value.h (value_union_variant): Don't declare.
4958
b249d2c2
TT
49592020-04-24 Tom Tromey <tromey@adacore.com>
4960
4961 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4962 (ada_value_primitive_packed_val): Update.
4963 * ada-valprint.c (ada_value_print_1): Update.
4964 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4965 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4966 just an address. Use evaluate_for_locexpr_baton.
4967 (dwarf2_evaluate_property): Update.
4968 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4969 array_view.
4970 * findvar.c (default_read_var_value): Update.
4971 * gdbtypes.c (compute_variant_fields_inner)
4972 (resolve_dynamic_type_internal): Update.
4973 (resolve_dynamic_type): Change type of valaddr parameter.
4974 * gdbtypes.h (resolve_dynamic_type): Update.
4975 * valarith.c (value_subscripted_rvalue): Update.
4976 * value.c (value_from_contents_and_address): Update.
4977
61122aa9
TT
49782020-04-24 Tom Tromey <tromey@adacore.com>
4979
4980 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4981 "push_initial_value" parameter.
4982 (dwarf2_evaluate_property): Likewise.
4983 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4984
ef83a141
TT
49852020-04-24 Tom Tromey <tromey@adacore.com>
4986
4987 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4988 (variant::matches, compute_variant_fields_recurse)
4989 (compute_variant_fields_inner, compute_variant_fields): New
4990 functions.
4991 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4992 Use resolved_type after type is made.
4993 (operator==): Add new cases.
4994 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4995 (struct discriminant_range, struct variant, struct variant_part):
4996 New.
4997 (union dynamic_prop_data) <variant_parts, original_type>: New
4998 members.
4999 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5000 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5001 constants.
5002 * value.c (unpack_bits_as_long): Now public.
5003 * value.h (unpack_bits_as_long): Declare.
5004
675127ec
TT
50052020-04-24 Tom Tromey <tromey@adacore.com>
5006
5007 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5008 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5009
9852ceef
HD
50102020-04-24 Hannes Domani <ssbssa@yahoo.de>
5011
5012 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5013
7632c6ce
KR
50142020-04-24 Kamil Rytarowski <n54@gmx.com>
5015
5016 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5017 (remove_fork_catchpoint, post_startup_inferior)
5018 (post_attach): Move...
5019 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5020 (remove_fork_catchpoint, post_startup_inferior)
5021 (post_attach): ...here.
5022 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5023 (remove_fork_catchpoint, post_startup_inferior)
5024 (post_attach): Move...
5025 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5026 (remove_fork_catchpoint, post_startup_inferior)
5027 (post_attach): ...here.
5028
7be2bb4f
TT
50292020-04-24 Tom Tromey <tromey@adacore.com>
5030
5031 * nat/windows-nat.h (struct windows_thread_info)
5032 <pc_adjusted>: New member.
5033 * windows-nat.c (windows_fetch_one_register): Check
5034 pc_adjusted.
5035 (windows_nat_target::get_windows_debug_event)
5036 (windows_nat_target::wait): Set pc_adjusted.
5037
f80cb3b4
TV
50382020-04-24 Tom de Vries <tdevries@suse.de>
5039
5040 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5041 Run gdb-add-index inside temp dir.
5042
29514b87
TT
50432020-04-23 Tom Tromey <tromey@adacore.com>
5044
5045 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5046 in loop.
5047
5939967b
LM
50482020-04-23 Luis Machado <luis.machado@linaro.org>
5049
5050 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5051 get_frame_register instead of gdbarch_unwind_pc.
5052
70bc38f5
TV
50532020-04-23 Tom de Vries <tdevries@suse.de>
5054
5055 * symtab.c (lookup_global_symbol): Prefer def over decl.
5056
de82891c
TV
50572020-04-23 Tom de Vries <tdevries@suse.de>
5058
5059 PR symtab/25807
5060 * block.c (best_symbol, better_symbol): Promote to external.
5061 * block.h (best_symbol, better_symbol): Declare.
5062 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5063 decl.
5064
ecc6c606
TT
50652020-04-23 Tom Tromey <tromey@adacore.com>
5066
5067 PR ada/25837:
5068 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5069 "const char *", not a "const std::string &".
5070 <name_and_matcher::operator==>: Update.
5071 * unittests/lookup_name_info-selftests.c: Change type of
5072 "result".
5073
740480b8
TT
50742020-04-23 Tom Tromey <tom@tromey.com>
5075
5076 * inferior.h (iterate_over_inferiors): Don't declare.
5077 * inferior.c (iterate_over_inferiors): Remove.
5078 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5079 Remove.
5080 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5081 use iterate_over_inferiors.
5082 (darwin_resume_inferior_it)
5083 (struct resume_inferior_threads_param)
5084 (darwin_resume_inferior_threads_it): Remove.
5085 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5086
ae3ab1f0
TV
50872020-04-23 Tom de Vries <tdevries@suse.de>
5088
5089 * blockframe.c (find_pc_partial_function): Use
5090 find_pc_sect_compunit_symtab rather than
5091 objfile->sf->qf->find_pc_sect_compunit_symtab.
5092
317d2668
TV
50932020-04-22 Tom de Vries <tdevries@suse.de>
5094
5095 PR symtab/25764
5096 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5097 in psymtabs.
5098
eea9e357
TV
50992020-04-22 Tom de Vries <tdevries@suse.de>
5100
5101 PR symtab/25801
5102 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5103 symtabs.
5104
3d5afab3
TV
51052020-04-22 Tom de Vries <tdevries@suse.de>
5106
5107 PR symtab/25700
5108 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5109 CU if already created.
5110
d43b7a2d
TBA
51112020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5112
5113 * infrun.c (displaced_step_fixup): Switch to the event_thread
5114 before calling displaced_step_restore, not after.
5115
d89edf9b
MM
51162020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5117
5118 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5119 its inferior is not recorded by us.
5120 (record_btrace_target_open): Replace call to
5121 all_non_exited_threads () with call to current_inferior
5122 ()->non_exited_threads ().
5123 (record_btrace_target::stop_recording): Likewise.
5124 (record_btrace_target::close): Likewise.
5125 (record_btrace_target::wait): Likewise.
5126 (record_btrace_target::record_stop_replaying): Likewise.
5127
5897fd49
MM
51282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5129
5130 * btrace.c (btrace_enable): Throw an error on double enables and
5131 when enabling recording fails.
5132 (btrace_disable): Throw an error if the thread is not recorded.
5133
1a476b6d
MM
51342020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5135
5136 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5137 request if we do not have a thread_info.
5138
4778a5f8
TV
51392020-04-21 Tom de Vries <tdevries@suse.de>
5140
5141 PR gdb/25471
5142 * thread.c
5143 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5144 exception in get_frame_id.
5145
0fa7617d
TT
51462020-04-20 Tom Tromey <tromey@adacore.com>
5147
5148 * python/python.c (struct gdbpy_event): Mark move constructor as
5149 noexcept.
5150 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5151 constructor as noexcept.
5152 * completer.h (struct completion_result): Mark move constructor as
5153 noexcept.
5154 * completer.c (completion_result::completion_result): Use
5155 initialization style. Don't call reset_match_list.
5156
ad23bda0
MS
51572020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5158
5159 * MAINTAINERS (Write After Approval): Add myself.
5160
45e1f031
TT
51612020-04-18 Tom Tromey <tom@tromey.com>
5162
5163 * windows-tdep.c (init_w32_command_list)
5164 (w32_prefix_command_valid): Restore.
5165 (_initialize_windows_tdep): Call init_w32_command_list.
5166
08feed99
TT
51672020-04-18 Tom Tromey <tom@tromey.com>
5168
5169 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5170 * value.c (value_fn_field): Update.
5171 * valops.c (find_function_in_inferior)
5172 (value_allocate_space_in_inferior): Update.
5173 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5174 Update.
5175 * tui/tui-source.c (tui_source_window::set_contents): Update.
5176 * symtab.c (lookup_global_or_static_symbol)
5177 (find_function_start_sal_1, skip_prologue_sal)
5178 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5179 * symmisc.c (dump_msymbols, dump_symtab_1)
5180 (maintenance_print_one_line_table): Update.
5181 * symfile.c (init_entry_point_info, section_is_mapped)
5182 (list_overlays_command, simple_read_overlay_table)
5183 (simple_overlay_update_1): Update.
5184 * stap-probe.c (handle_stap_probe): Update.
5185 * stabsread.c (dbx_init_float_type, define_symbol)
5186 (read_one_struct_field, read_enum_type, read_range_type): Update.
5187 * source.c (info_line_command): Update.
5188 * python/python.c (gdbpy_source_objfile_script)
5189 (gdbpy_execute_objfile_script): Update.
5190 * python/py-type.c (save_objfile_types): Update.
5191 * python/py-objfile.c (py_free_objfile): Update.
5192 * python/py-inferior.c (python_new_objfile): Update.
5193 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5194 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5195 (maintenance_check_psymtabs): Update.
5196 * printcmd.c (info_address_command): Update.
5197 * objfiles.h (struct objfile) <arch>: New method, from
5198 get_objfile_arch.
5199 (get_objfile_arch): Don't declare.
5200 * objfiles.c (get_objfile_arch): Remove.
5201 (filter_overlapping_sections): Update.
5202 * minsyms.c (msymbol_is_function): Update.
5203 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5204 (output_nondebug_symbol): Update.
5205 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5206 (mdebug_expand_psymtab): Update.
5207 * machoread.c (macho_add_oso_symfile): Update.
5208 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5209 Update.
5210 * linux-fork.c (checkpoint_command): Update.
5211 * linespec.c (convert_linespec_to_sals): Update.
5212 * jit.c (finalize_symtab): Update.
5213 * infrun.c (insert_exception_resume_from_probe): Update.
5214 * ia64-tdep.c (ia64_find_unwind_table): Update.
5215 * hppa-tdep.c (internalize_unwinds): Update.
5216 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5217 Update.
5218 * gcore.c (call_target_sbrk): Update.
5219 * elfread.c (record_minimal_symbol, elf_symtab_read)
5220 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5221 (elf_gnu_ifunc_resolve_by_got): Update.
5222 * dwarf2/read.c (create_addrmap_from_index)
5223 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5224 (read_debug_names_from_section)
5225 (process_psymtab_comp_unit_reader, add_partial_symbol)
5226 (add_partial_subprogram, process_full_comp_unit)
5227 (read_file_scope, read_func_scope, read_lexical_block_scope)
5228 (read_call_site_scope, dwarf2_ranges_read)
5229 (dwarf2_record_block_ranges, dwarf2_add_field)
5230 (mark_common_block_symbol_computed, read_tag_pointer_type)
5231 (read_tag_string_type, dwarf2_init_float_type)
5232 (dwarf2_init_complex_target_type, read_base_type)
5233 (partial_die_info::read, partial_die_info::read)
5234 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5235 (dwarf2_fetch_die_loc_sect_off): Update.
5236 * dwarf2/loc.c (dwarf2_find_location_expression)
5237 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5238 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5239 (dwarf2_loc_desc_get_symbol_read_needs)
5240 (locexpr_describe_location_piece, locexpr_describe_location_1)
5241 (loclist_describe_location): Update.
5242 * dwarf2/index-write.c (write_debug_names): Update.
5243 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5244 * dtrace-probe.c (dtrace_process_dof): Update.
5245 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5246 (process_one_symbol): Update.
5247 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5248 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5249 (coff_read_enum_type): Update.
5250 * cli/cli-cmds.c (edit_command, list_command): Update.
5251 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5252 * breakpoint.c (create_overlay_event_breakpoint)
5253 (create_longjmp_master_breakpoint)
5254 (create_std_terminate_master_breakpoint)
5255 (create_exception_master_breakpoint, get_sal_arch): Update.
5256 * block.c (block_gdbarch): Update.
5257 * annotate.c (annotate_source_line): Update.
5258
0743fc83
TT
52592020-04-17 Tom Tromey <tromey@adacore.com>
5260
5261 * auto-load.c (show_auto_load_cmd): Remove.
5262 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5263 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5264 (maintenance_print_arc_command): Remove.
5265 * tui/tui-win.c (tui_command): Remove.
5266 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5267 * tui/tui-layout.c (tui_layout_command): Remove.
5268 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5269 * python/python.c (user_set_python, user_show_python): Remove.
5270 (_initialize_python): Use add_basic_prefix_cmd,
5271 add_show_prefix_cmd.
5272 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5273 (install_gdb_commands): Use add_basic_prefix_cmd,
5274 add_show_prefix_cmd.
5275 (info_guile_command): Remove.
5276 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5277 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5278 add_show_prefix_cmd.
5279 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5280 Remove do_set and do_show parameters.
5281 * cli/cli-style.c (set_style, show_style): Remove.
5282 (_initialize_cli_style): Use add_basic_prefix_cmd,
5283 add_show_prefix_cmd.
5284 (cli_style_option::add_setshow_commands): Remove do_set and
5285 do_show parameters.
5286 (cli_style_option::add_setshow_commands): Use
5287 add_basic_prefix_cmd, add_show_prefix_cmd.
5288 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5289 (set_style_name): Remove.
5290 * cli/cli-dump.c (dump_command, append_command): Remove.
5291 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5292 (tekhex_dump_command, binary_dump_command)
5293 (binary_append_command): Remove.
5294 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5295 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5296 (init_w32_command_list): Remove; move into ...
5297 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5298 * valprint.c (set_print, show_print, set_print_raw)
5299 (show_print_raw): Remove.
5300 (_initialize_valprint): Use add_basic_prefix_cmd,
5301 add_show_prefix_cmd.
5302 * typeprint.c (set_print_type, show_print_type): Remove.
5303 (_initialize_typeprint): Use add_basic_prefix_cmd,
5304 add_show_prefix_cmd.
5305 * record.c (set_record_command, show_record_command): Remove.
5306 (_initialize_record): Use add_basic_prefix_cmd,
5307 add_show_prefix_cmd.
5308 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5309 add_show_prefix_cmd.
5310 (info_command, show_command, set_debug, show_debug): Remove.
5311 * top.h (set_history, show_history): Don't declare.
5312 * top.c (set_history, show_history): Remove.
5313 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5314 (unset_tdesc_cmd): Remove.
5315 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5316 add_show_prefix_cmd.
5317 * symtab.c (info_module_command): Remove.
5318 (_initialize_symtab): Use add_basic_prefix_cmd.
5319 * symfile.c (overlay_command): Remove.
5320 (_initialize_symfile): Use add_basic_prefix_cmd.
5321 * sparc64-tdep.c (info_adi_command): Remove.
5322 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5323 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5324 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5325 add_show_prefix_cmd.
5326 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5327 (_initialize_serial): Use add_basic_prefix_cmd,
5328 add_show_prefix_cmd.
5329 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5330 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5331 add_show_prefix_cmd.
5332 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5333 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5334 add_show_prefix_cmd.
5335 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5336 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5337 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5338 add_show_prefix_cmd.
5339 * remote.c (remote_command, set_remote_cmd): Remove.
5340 (_initialize_remote): Use add_basic_prefix_cmd.
5341 * record-full.c (set_record_full_command)
5342 (show_record_full_command): Remove.
5343 (_initialize_record_full): Use add_basic_prefix_cmd,
5344 add_show_prefix_cmd.
5345 * record-btrace.c (cmd_set_record_btrace)
5346 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5347 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5348 (cmd_show_record_btrace_pt): Remove.
5349 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5350 add_show_prefix_cmd.
5351 * ravenscar-thread.c (set_ravenscar_command)
5352 (show_ravenscar_command): Remove.
5353 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5354 add_show_prefix_cmd.
5355 * mips-tdep.c (show_mips_command, set_mips_command)
5356 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5357 add_show_prefix_cmd.
5358 * maint.c (maintenance_command, maintenance_info_command)
5359 (maintenance_check_command, maintenance_print_command)
5360 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5361 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5362 add_show_prefix_cmd.
5363 (show_per_command_cmd): Remove.
5364 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5365 Remove.
5366 (maintenance_show_test_settings_cmd): Remove.
5367 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5368 add_show_prefix_cmd.
5369 * maint-test-options.c (maintenance_test_options_command):
5370 Remove.
5371 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5372 * macrocmd.c (macro_command): Remove
5373 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5374 * language.c (set_check, show_check): Remove.
5375 (_initialize_language): Use add_basic_prefix_cmd,
5376 add_show_prefix_cmd.
5377 * infcmd.c (unset_command): Remove.
5378 (_initialize_infcmd): Use add_basic_prefix_cmd.
5379 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5380 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5381 add_show_prefix_cmd.
5382 * go32-nat.c (go32_info_dos_command): Remove.
5383 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5384 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5385 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5386 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5387 (_initialize_frame): Use add_basic_prefix_cmd,
5388 add_show_prefix_cmd.
5389 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5390 (_initialize_dcache): Use add_basic_prefix_cmd,
5391 add_show_prefix_cmd.
5392 * cp-support.c (maint_cplus_command): Remove.
5393 (_initialize_cp_support): Use add_basic_prefix_cmd.
5394 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5395 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5396 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5397 add_basic_prefix_cmd, add_show_prefix_cmd.
5398 * breakpoint.c (save_command): Remove.
5399 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5400 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5401 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5402 add_show_prefix_cmd.
5403 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5404 (set_ada_command, show_ada_command): Remove.
5405 (_initialize_ada_language): Use add_basic_prefix_cmd,
5406 add_show_prefix_cmd.
5407 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5408
3557f442
KR
54092020-04-16 Kamil Rytarowski <n54@gmx.com>
5410
5411 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5412 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5413
16197208
SM
54142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5415
5416 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5417 warning messages.
5418
00ac85d3
SM
54192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5420
5421 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5422 import table is not at beginning of .idata section.
5423
381ce63f
PA
54242020-04-16 Pedro Alves <palves@redhat.com>
5425
5426 * inferior.c (delete_inferior): Use delete operator directly
5427 instead of delete_program_space.
5428 * progspace.c (add_program_space): New, factored out from
5429 program_space::program_space.
5430 (remove_program_space): New, factored out from
5431 delete_program_space.
5432 (program_space::program_space): Remove intro comment. Rewrite.
5433 (program_space::~program_space): Remove intro comment. Call
5434 remove_program_space.
5435 (delete_program_space): Delete.
5436 * progspace.h (program_space::program_space): Make explicit. Move
5437 intro comment here, adjusted.
5438 (program_space::~program_space): Move intro comment here,
5439 adjusted.
5440 (delete_program_space): Remove.
5441
a010605f
TT
54422020-04-16 Tom Tromey <tromey@adacore.com>
5443
5444 * windows-nat.c (windows_nat::handle_access_violation): New
5445 function.
5446 * nat/windows-nat.h (handle_access_violation): Declare.
5447 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5448 windows-nat.c. Call handle_access_violation.
5449
efba5c23
TV
54502020-04-16 Tom de Vries <tdevries@suse.de>
5451
5452 PR symtab/25791
5453 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5454 CUs without psymtab.
5455
97ed802d
KB
54562020-04-16 Kevin Buettner <kevinb@redhat.com>
5457
5458 * python/python.c (do_start_initialization): Don't call
5459 PyEval_InitThreads for Python 3.9 and beyond.
5460
c7d64809
KR
54612020-04-15 Kamil Rytarowski <n54@gmx.com>
5462
5463 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5464 thread functions.
5465 (obsd_nat_target::wait): Likewise.
5466
ce127a96
TT
54672020-04-15 Tom Tromey <tromey@adacore.com>
5468
5469 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5470 (DEBUG_EXCEPT): Use debug_printf.
5471
99f1bc6a
AB
54722020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5473
5474 * completer.c (class completion_tracker::completion_hash_entry)
5475 <hash_name>: New member function.
5476 (completion_tracker::discard_completions): New callback to hash a
5477 completion_hash_entry, pass this to htab_create_alloc.
5478
a0e9b532
JT
54792016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5480
5481 * windows-nat.c (windows_make_so): Warn rather than stopping with
5482 an error if realpath() fails.
5483
06ca5dd4
KR
54842020-04-14 Kamil Rytarowski <n54@gmx.com>
5485
5486 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5487 (nbsd_nat_target::info_proc): Add do_status.
5488
194d088f
TV
54892020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5490 Tom de Vries <tdevries@suse.de>
5491
5492 PR symtab/25718
5493 * psympriv.h (struct partial_symtab::read_symtab)
5494 (struct partial_symtab::expand_psymtab)
5495 (struct partial_symtab::read_dependencies): Update comments.
5496 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5497 read_symtab for includer.
5498 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5499 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5500 (struct dwarf2_include_psymtab::m_readin): Remove.
5501 (struct dwarf2_include_psymtab::includer): New member function.
5502 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5503
c1a66c06
TV
55042020-04-14 Tom de Vries <tdevries@suse.de>
5505
5506 PR symtab/25720
5507 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5508 with NULL symbol_matcher and lookup_name.
5509 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5510 and lookup_name.
5511 * dwarf2/read.c (dw2_expand_symtabs_matching)
5512 (dw2_debug_names_expand_symtabs_matching): Same.
5513 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5514 Make lookup_name a pointer. Update comment.
5515 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5516 lookup_name being a pointer.
5517 * symfile.c (expand_symtabs_matching): Same.
5518 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5519 * linespec.c (iterate_over_all_matching_symtabs): Same.
5520
400b5eca
TT
55212020-04-13 Tom Tromey <tom@tromey.com>
5522
5523 * run-on-main-thread.c: Update include.
5524 * unittests/main-thread-selftests.c: Update include.
5525 * tui/tui-win.c: Update include.
5526 * tui/tui-io.c: Update include.
5527 * tui/tui-interp.c: Update include.
5528 * tui/tui-hooks.c: Update include.
5529 * top.h: Update include.
5530 * top.c: Update include.
5531 * ser-base.c: Update include.
5532 * remote.c: Update include.
5533 * remote-notif.c: Update include.
5534 * remote-fileio.c: Update include.
5535 * record-full.c: Update include.
5536 * record-btrace.c: Update include.
5537 * python/python.c: Update include.
5538 * posix-hdep.c: Update include.
5539 * mingw-hdep.c: Update include.
5540 * mi/mi-main.c: Update include.
5541 * mi/mi-interp.c: Update include.
5542 * main.c: Update include.
5543 * linux-nat.c: Update include.
5544 * interps.c: Update include.
5545 * infrun.c: Update include.
5546 * inf-loop.c: Update include.
5547 * event-top.c: Update include.
5548 * event-loop.c: Move to ../gdbsupport/.
5549 * event-loop.h: Move to ../gdbsupport/.
5550 * async-event.h: Update include.
5551 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5552
93b54c8e
TT
55532020-04-13 Tom Tromey <tom@tromey.com>
5554
5555 * tui/tui-win.c: Include async-event.h.
5556 * remote.c: Include async-event.h.
5557 * remote-notif.c: Include async-event.h.
5558 * record-full.c: Include async-event.h.
5559 * record-btrace.c: Include async-event.h.
5560 * infrun.c: Include async-event.h.
5561 * event-top.c: Include async-event.h.
5562 * event-loop.h: Move some declarations to async-event.h.
5563 * event-loop.c: Don't include ser-event.h or top.h. Move some
5564 code to async-event.c.
5565 * async-event.h: New file.
5566 * async-event.c: New file.
5567 * Makefile.in (COMMON_SFILES): Add async-event.c.
5568 (HFILES_NO_SRCDIR): Add async-event.h.
5569
c1cd3163
TT
55702020-04-13 Tom Tromey <tom@tromey.com>
5571
5572 * utils.c (flush_streams): New function.
5573 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5574
29f2bf4f
TT
55752020-04-13 Tom Tromey <tom@tromey.com>
5576
5577 * event-loop.c (handle_file_event): Use warning, not
5578 printf_unfiltered.
5579
98029d02
TT
55802020-04-13 Tom Tromey <tom@tromey.com>
5581
5582 * event-loop.c: Include <chrono>.
5583
06cc9596
TT
55842020-04-13 Tom Tromey <tom@tromey.com>
5585
5586 * gdb_select.h: Move to ../gdbsupport/.
5587 * event-loop.c: Update include path.
5588 * top.c: Update include path.
5589 * ser-base.c: Update include path.
5590 * ui-file.c: Update include path.
5591 * ser-tcp.c: Update include path.
5592 * guile/scm-ports.c: Update include path.
5593 * posix-hdep.c: Update include path.
5594 * ser-unix.c: Update include path.
5595 * gdb_usleep.c: Update include path.
5596 * mingw-hdep.c: Update include path.
5597 * inflow.c: Update include path.
5598 * infrun.c: Update include path.
5599 * event-top.c: Update include path.
5600
8ae8e197
TT
56012020-04-13 Tom Tromey <tom@tromey.com>
5602
5603 * configure: Rebuild.
5604 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5605
58cf28e8
TT
56062020-04-13 Tom Tromey <tom@tromey.com>
5607
5608 * event-loop.h (start_event_loop): Don't declare.
5609 * event-loop.c (start_event_loop): Move...
5610 * main.c (start_event_loop): ...here. Now static.
5611
b7f999ae
SDJ
56122020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5613
5614 * MAINTAINERS: Update my email address.
5615
1085dfd4
KR
56162020-04-12 Kamil Rytarowski <n54@gmx.com>
5617
5618 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5619 IP_ALL.
5620
49d1d1f5
KR
56212020-04-12 Kamil Rytarowski <n54@gmx.com>
5622
5623 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5624 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5625
b4848d2a
KR
56262020-04-12 Kamil Rytarowski <n54@gmx.com>
5627
5628 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5629 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5630
51c133d5
KR
56312020-04-12 Kamil Rytarowski <n54@gmx.com>
5632
5633 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5634
54b8cbd0
KR
56352020-04-11 Kamil Rytarowski <n54@gmx.com>
5636
5637 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5638 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5639 (nbsd_nat_target::info_proc): New functions.
5640 * nbsd-nat.c (kinfo_get_vmmap): New function.
5641 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5642 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5643 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5644 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5645 functions.
5646 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5647 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5648 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5649 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5650 (KINFO_VME_FLAG_GROWS_DOWN): New.
5651
cf83625d
AS
56522020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5653
5654 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5655 bit shift.
5656
0c4311ab
TT
56572020-04-10 Tom Tromey <tromey@adacore.com>
5658
5659 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5660
3e65b3e9
TT
56612020-04-10 Tom Tromey <tromey@adacore.com>
5662
5663 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5664 separate debug files.
5665
13302e95
HD
56662020-04-10 Hannes Domani <ssbssa@yahoo.de>
5667
5668 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5669 Move to...
5670 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5671 ... here.
5672 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5673 Check for STATUS_WX86_BREAKPOINT.
5674 (windows_nat_target::wait): Same.
5675
bdfc1e8a
TV
56762020-04-10 Tom de Vries <tdevries@suse.de>
5677
5678 PR cli/25808
5679 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5680
f4460aec
SM
56812020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5682
5683 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5684 (Write After Approval): Remove Tom de Vries.
5685
a25198bb
BE
56862020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5687
5688 revert partially:
5689 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5690
aac66a4c
SM
5691 * buildsym.c (record_line): Fix undefined behavior and preserve
5692 lines at eof.
a25198bb 5693
206c98a6
KR
56942020-04-09 Kamil Rytarowski <n54@gmx.com>
5695
5696 * auxv.h (svr4_auxv_parse): New.
5697 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5698 and generic_auxv_parse.
5699 (svr4_auxv_parse): Add.
5700 * obsd-tdep.c: Include "auxv.h".
5701 (obsd_auxv_parse): Remove.
5702 (obsd_init_abi): Remove comment.
5703 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5704 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5705 * nbsd-tdep.c: Include "auxv.h".
5706 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5707
71fbdbaf
TT
57082020-04-08 Tom Tromey <tromey@adacore.com>
5709
5710 * nat/windows-nat.h (last_wait_event): Don't declare.
5711 (wait_for_debug_event): Update comment.
5712 * nat/windows-nat.c (last_wait_event): Now static.
5713
2c1d95e8
TT
57142020-04-08 Tom Tromey <tromey@adacore.com>
5715
5716 * windows-nat.c (wait_for_debug_event): Move to
5717 nat/windows-nat.c.
5718 * nat/windows-nat.h (wait_for_debug_event): Declare.
5719 * nat/windows-nat.c (wait_for_debug_event): Move from
5720 windows-nat.c. No longer static.
5721
d2977bc4
TT
57222020-04-08 Tom Tromey <tromey@adacore.com>
5723
5724 * windows-nat.c (get_windows_debug_event): Use
5725 fetch_pending_stop.
5726 * nat/windows-nat.h (fetch_pending_stop): Declare.
5727 * nat/windows-nat.c (fetch_pending_stop): New function.
5728
e758e19c
TT
57292020-04-08 Tom Tromey <tromey@adacore.com>
5730
5731 * windows-nat.c (windows_continue): Use matching_pending_stop and
5732 continue_last_debug_event.
5733 * nat/windows-nat.h (matching_pending_stop)
5734 (continue_last_debug_event): Declare.
5735 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5736 (matching_pending_stop, continue_last_debug_event): New
5737 functions.
5738
8d30e395
TT
57392020-04-08 Tom Tromey <tromey@adacore.com>
5740
5741 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5742 (handle_exception_result): Move to nat/windows-nat.h.
5743 (DEBUG_EXCEPTION_SIMPLE): Remove.
5744 (windows_nat::handle_ms_vc_exception): New function.
5745 (handle_exception): Move to nat/windows-nat.c.
5746 (get_windows_debug_event): Update.
5747 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5748 nat/windows-nat.c.
5749 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5750 (handle_exception_result): Move from windows-nat.c.
5751 (handle_exception): Declare.
5752 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5753 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5754 windows-nat.c.
5755
29de418d
TT
57562020-04-08 Tom Tromey <tromey@adacore.com>
5757
5758 * windows-nat.c (exception_count, event_count): Remove.
5759 (handle_exception, get_windows_debug_event)
5760 (do_initial_windows_stuff): Update.
5761
a816ba18
TT
57622020-04-08 Tom Tromey <tromey@adacore.com>
5763
5764 * windows-nat.c (windows_nat::handle_load_dll)
5765 (windows_nat::handle_unload_dll): Rename. No longer static.
5766 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5767 Declare.
5768
a00caa12
TT
57692020-04-08 Tom Tromey <tromey@adacore.com>
5770
5771 * complaints.h (stop_whining): Declare at top-level.
5772 (complaint): Don't declare stop_whining.
5773
d41b524f
TT
57742020-04-08 Tom Tromey <tromey@adacore.com>
5775
5776 * windows-nat.c (windows_nat::handle_output_debug_string):
5777 Rename. No longer static.
5778 * nat/windows-nat.h (handle_output_debug_string): Declare.
5779
3c76026d
TT
57802020-04-08 Tom Tromey <tromey@adacore.com>
5781
5782 * windows-nat.c (current_process_handle, current_process_id)
5783 (main_thread_id, last_sig, current_event, last_wait_event)
5784 (current_windows_thread, desired_stop_thread_id, pending_stops)
5785 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5786 (display_selectors, fake_create_process)
5787 (get_windows_debug_event): Update.
5788 * nat/windows-nat.h (current_process_handle, current_process_id)
5789 (main_thread_id, last_sig, current_event, last_wait_event)
5790 (current_windows_thread, desired_stop_thread_id, pending_stops)
5791 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5792 * nat/windows-nat.c (current_process_handle, current_process_id)
5793 (main_thread_id, last_sig, current_event, last_wait_event)
5794 (current_windows_thread, desired_stop_thread_id, pending_stops)
5795 (siginfo_er): New globals. Move from windows-nat.c.
5796
9d8679cc
TT
57972020-04-08 Tom Tromey <tromey@adacore.com>
5798
5799 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5800 (handle_load_dll): Update.
5801 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5802
28688adf
TT
58032020-04-08 Tom Tromey <tromey@adacore.com>
5804
5805 * windows-nat.c (enum thread_disposition_type): Move to
5806 nat/windows-nat.h.
5807 (windows_nat::thread_rec): Rename from thread_rec. No longer
5808 static.
5809 (windows_add_thread, windows_nat_target::fetch_registers)
5810 (windows_nat_target::store_registers, handle_exception)
5811 (windows_nat_target::resume, get_windows_debug_event)
5812 (windows_nat_target::get_tib_address)
5813 (windows_nat_target::thread_name)
5814 (windows_nat_target::thread_alive): Update.
5815 * nat/windows-nat.h (enum thread_disposition_type): Move from
5816 windows-nat.c.
5817 (thread_rec): Declare.
5818
4834dad0
TT
58192020-04-08 Tom Tromey <tromey@adacore.com>
5820
5821 * windows-nat.c: Add "using namespace".
5822 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5823 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5824
65bafd5b
TT
58252020-04-08 Tom Tromey <tromey@adacore.com>
5826
5827 * nat/windows-nat.h (struct windows_thread_info): Declare
5828 destructor.
5829 * nat/windows-nat.c (~windows_thread_info): New.
5830
0a4afda3
TT
58312020-04-08 Tom Tromey <tromey@adacore.com>
5832
5833 PR gdb/22992
5834 * windows-nat.c (current_event): Update comment.
5835 (last_wait_event, desired_stop_thread_id): New globals.
5836 (struct pending_stop): New.
5837 (pending_stops): New global.
5838 (windows_nat_target) <stopped_by_sw_breakpoint>
5839 <supports_stopped_by_sw_breakpoint>: New methods.
5840 (windows_fetch_one_register): Add assertions. Adjust PC.
5841 (windows_continue): Handle pending stops. Suspend other threads
5842 when stepping. Use last_wait_event
5843 (wait_for_debug_event): New function.
5844 (get_windows_debug_event): Use wait_for_debug_event. Handle
5845 pending stops. Queue spurious stops.
5846 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5847 (windows_nat_target::kill): Use wait_for_debug_event.
5848 * nat/windows-nat.h (struct windows_thread_info)
5849 <stopped_at_software_breakpoint>: New field.
5850 * nat/windows-nat.c (windows_thread_info::resume): Clear
5851 stopped_at_software_breakpoint.
5852
8e61ebec
TT
58532020-04-08 Tom Tromey <tromey@adacore.com>
5854
5855 * windows-nat.c (enum thread_disposition_type): New.
5856 (thread_rec): Replace "get_context" parameter with "disposition";
5857 change type.
5858 (windows_add_thread, windows_nat_target::fetch_registers)
5859 (windows_nat_target::store_registers, handle_exception)
5860 (windows_nat_target::resume, get_windows_debug_event)
5861 (windows_nat_target::get_tib_address)
5862 (windows_nat_target::thread_name)
5863 (windows_nat_target::thread_alive): Update.
5864
98a03287
TT
58652020-04-08 Tom Tromey <tromey@adacore.com>
5866
5867 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5868 (windows_continue): Use windows_continue::resume.
5869 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5870 resume>: Declare new methods.
5871 * nat/windows-nat.c: New file.
5872 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5873
7c7411bc
TT
58742020-04-08 Tom Tromey <tromey@adacore.com>
5875
5876 * windows-nat.c (windows_add_thread, windows_delete_thread)
5877 (windows_nat_target::fetch_registers)
5878 (windows_nat_target::store_registers, fake_create_process)
5879 (windows_nat_target::resume, windows_nat_target::resume)
5880 (get_windows_debug_event, windows_nat_target::wait)
5881 (windows_nat_target::pid_to_str)
5882 (windows_nat_target::get_tib_address)
5883 (windows_nat_target::get_ada_task_ptid)
5884 (windows_nat_target::thread_name)
5885 (windows_nat_target::thread_alive): Use lwp, not tid.
5886
2950fdf7
TT
58872020-04-08 Tom Tromey <tromey@adacore.com>
5888
5889 * windows-nat.c (handle_exception)
5890 (windows_nat_target::thread_name): Update.
5891 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5892 <name>: Now unique_xmalloc_ptr.
5893
62fe396b
TT
58942020-04-08 Tom Tromey <tromey@adacore.com>
5895
5896 * windows-nat.c (thread_rec)
5897 (windows_nat_target::fetch_registers): Update.
5898 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5899 Update comment.
5900 <debug_registers_changed, reload_context>: Now bool.
5901
e9534bd2
TT
59022020-04-08 Tom Tromey <tromey@adacore.com>
5903
5904 * windows-nat.c (windows_add_thread): Use new.
5905 (windows_init_thread_list, windows_delete_thread): Use delete.
5906 (get_windows_debug_event): Update.
5907 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5908 destructor, and initializers.
5909
ae1f8880
TT
59102020-04-08 Tom Tromey <tromey@adacore.com>
5911
5912 * windows-nat.c (struct windows_thread_info): Remove.
5913 * nat/windows-nat.h: New file.
5914
55a1e039
TT
59152020-04-08 Tom Tromey <tromey@adacore.com>
5916
5917 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5918 (thread_rec, windows_add_thread, windows_delete_thread)
5919 (windows_continue): Update.
5920
93366324
TT
59212020-04-08 Tom Tromey <tromey@adacore.com>
5922
5923 * windows-nat.c (struct windows_thread_info): Remove typedef.
5924 (thread_head): Remove.
5925 (thread_list): New global.
5926 (thread_rec, windows_add_thread, windows_init_thread_list)
5927 (windows_delete_thread, windows_continue): Update.
5928
0f2265e2
SM
59292020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5930
5931 * windows-tdep.h (windows_init_abi): Add comment.
5932 (cygwin_init_abi): New declaration.
5933 * windows-tdep.c: Split signal enumeration in two, one for
5934 Windows and one for Cygwin.
5935 (windows_gdb_signal_to_target): Only deal with signal of the
5936 Windows OS ABI.
5937 (cygwin_gdb_signal_to_target): New function.
5938 (windows_init_abi): Rename to windows_init_abi_common, don't set
5939 gdb_signal_to_target gdbarch method. Add new new function with
5940 this name.
5941 (cygwin_init_abi): New function.
5942 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5943 comment. Don't call windows_init_abi.
5944 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5945 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5946 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5947 i386_windows_init_abi_common, don't call windows_init_abi. Add
5948 a new function of this name.
5949 (i386_cygwin_init_abi): New function.
5950 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5951 OS ABI Cygwin.
5952
3810f182
SM
59532020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5954
5955 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5956 parameter.c.
5957 (dwarf2_read_gdb_index): Update.
5958
063f8e80
KR
59592020-04-07 Kamil Rytarowski <n54@gmx.com>
5960
5961 * nbsd-tdep.c: Include "objfiles.h".
5962 (nbsd_skip_solib_resolver): New.
5963 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5964
85a9510c 59652020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5966
5967 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5968 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5969 with DW_LLE_base_addressx are being emitted in DWARFv5.
5970 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5971 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5972 unsigned integer.
5973
9fc3eaae 59742020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5975
5976 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5977 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5978 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5979 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5980 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5981 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5982 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5983
5984
41144253 59852020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5986
5987 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5988 (read_loclist_index): New function definition.
5989 (lookup_loclist_base): New function definition.
5990 (read_loclist_header): New function definition.
5991 (dwarf2_cu): Add loclist_base and loclist_header field.
5992 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5993 (read_full_die_1): Read the value of DW_AT_loclists_base.
5994 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5995 (read_attribute_value): Handle DW_FORM_loclistx.
5996 (skip_one_die): Handle DW_FORM_loclistx.
5997 (loclist_header): New structure declaration.
5998 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5999
9f4e76a4
SM
60002020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6001
6002 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6003 constructor. Remove `addr` parameter from other constructor and
6004 add `per_cu` parameter.
6005 * dwarf2/read.c (create_partial_symtab): Update.
6006
25c11aca
TV
60072020-04-07 Tom de Vries <tdevries@suse.de>
6008
6009 PR symtab/25796
6010 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6011 (partial_die_info::fixup): Inherit has_const_value.
6012
5707e24b
TV
60132020-04-07 Tom de Vries <tdevries@suse.de>
6014
6015 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6016 symbols without address.
6017
05f00e22
KR
60182020-04-06 Kamil Rytarowski <n54@gmx.com>
6019
6020 * nbsd-nat.h (struct thread_info): Add forward declaration.
6021 (nbsd_nat_target::thread_alive): Add.
6022 (nbsd_nat_target::thread_name): Likewise.
6023 (nbsd_nat_target::update_thread_list): Likewise.
6024 (update_thread_list::post_attach): Likewise.
6025 (post_attach::pid_to_str): Likewise.
6026 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6027 (nbsd_thread_lister): Add.
6028 (nbsd_nat_target::thread_alive): Likewise.
6029 (nbsd_nat_target::thread_name): Likewise.
6030 (nbsd_add_threads): Likewise.
6031 (update_thread_list::post_attach): Likewise.
6032 (nbsd_nat_target::update_thread_list): Likewise.
6033 (post_attach::pid_to_str): Likewise.
6034
6ee448cc
TT
60352020-04-06 Tom Tromey <tromey@adacore.com>
6036
6037 * ada-valprint.c (print_variant_part): Extract the variant field.
6038 (print_field_values): Use the field as the outer value when
6039 recursing.
6040
dea34e8c
TT
60412020-04-06 Tom Tromey <tromey@adacore.com>
6042
6043 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6044 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6045 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6046 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6047 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6048
93689ce9
TT
60492020-04-06 Tom Tromey <tromey@adacore.com>
6050
6051 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6052 TYPE_CODE_ERROR.
6053
79743962
KR
60542020-04-06 Kamil Rytarowski <n54@gmx.com>
6055
6056 * nbsd-tdep.c: Include "gdbarch.h".
6057 Define enum with NetBSD signal numbers.
6058 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6059 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6060 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6061 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6062 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6063 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6064 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6065 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6066 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6067 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6068 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6069 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6070
9e7c9a03
HD
60712020-04-03 Hannes Domani <ssbssa@yahoo.de>
6072
6073 PR gdb/25325
6074 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6075
d9e49b61
TT
60762020-04-03 Tom Tromey <tromey@adacore.com>
6077
6078 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6079 Read constant block.
6080
e0fc5c3f
SM
60812020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6082
6083 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6084 (gdb_bfd_get_full_section_contents): New declaration.
6085 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6086 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6087 gdb_bfd_get_full_section_contents.
6088
e2ff18a0
SM
60892020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6090
6091 * exec.c (build_section_table): Replace internal_error with
6092 gdb_assert.
6093 (section_table_xfer_memory_partial): Likewise.
6094 * mdebugread.c (parse_partial_symbols): Likewise.
6095 * psymtab.c (lookup_partial_symbol): Likewise.
6096 * utils.c (wrap_here): Likewise.
6097
0830d301
TT
60982020-04-02 Tom Tromey <tromey@adacore.com>
6099
6100 * f-lang.c (build_fortran_types): Use arch_type to initialize
6101 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6102
e7da7f8f
TT
61032020-04-02 Tom Tromey <tromey@adacore.com>
6104
6105 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6106 of attributes.
6107
c90d28ac
AB
61082020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6109 Bernd Edlinger <bernd.edlinger@hotmail.de>
6110 Tom Tromey <tromey@adacore.com>
6111
6112 * buildsym.c (buildsym_compunit::record_line): Remove
6113 deduplication code.
6114
1aa98955
TV
61152020-04-02 Tom de Vries <tdevries@suse.de>
6116
6117 PR ada/24671
6118 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6119
d3214198
TV
61202020-04-02 Tom de Vries <tdevries@suse.de>
6121
6122 * dwarf2/read.c (dwarf2_gdb_index_functions,
6123 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6124 NULL.
6125 * psymtab.c (psym_lookup_global_symbol_language): New function.
6126 (psym_functions): Init psym_lookup_global_symbol_language with
6127 psym_lookup_global_symbol_language.
6128 * symfile-debug.c (debug_sym_quick_functions): Init
6129 lookup_global_symbol_language with NULL.
6130 * symfile.c (set_initial_language): Remove fixme comment.
6131 * symfile.h (struct quick_symbol_functions): Add
6132 lookup_global_symbol_language.
6133 * symtab.c (find_quick_global_symbol_language): New function.
6134 (find_main_name): Use find_quick_global_symbol_language.
6135
2836752f
SM
61362020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6137
6138 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6139
64dc2d4b
BE
61402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6141
6142 * buildsym.c (record_line): Fix undefined behavior and preserve
6143 lines at eof.
6144
bbe3dc41
BE
61452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6146
6147 * buildsym.c (record_line): Fix the resizing condition.
6148
6b4a335b
TT
61492020-04-01 Tom Tromey <tom@tromey.com>
6150
6151 * value.h (value_literal_complex): Add comment.
6152 * valops.c (value_literal_complex): Refer to value.h.
6153
3638a098
TT
61542020-04-01 Tom Tromey <tom@tromey.com>
6155
6156 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6157 (scalar_type): New rule, from typebase.
6158 (typebase): Use scalar_type. Recognize complex types.
6159 (field_name): Handle FLOAT_KEYWORD.
6160 (ident_tokens): Add _Complex and __complex__.
6161
c34e8714
TT
61622020-04-01 Tom Tromey <tom@tromey.com>
6163
6164 PR exp/25299:
6165 * valarith.c (promotion_type, complex_binop): New functions.
6166 (scalar_binop): Handle complex numbers. Use promotion_type.
6167 (value_pos, value_neg, value_complement): Handle complex numbers.
6168
fa649bb7
TT
61692020-04-01 Tom Tromey <tom@tromey.com>
6170
6171 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6172 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6173 (parse_number): Handle complex numbers.
6174
981c08ce
TT
61752020-04-01 Tom Tromey <tom@tromey.com>
6176
6177 * c-valprint.c (c_decorations): Change complex suffix to "i".
6178
4c99290d
TT
61792020-04-01 Tom Tromey <tom@tromey.com>
6180
6181 * valprint.c (generic_value_print_complex): Use accessors.
6182 * value.h (value_real_part, value_imaginary_part): Declare.
6183 * valops.c (value_real_part, value_imaginary_part): New
6184 functions.
6185 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6186
5b930b45
TT
61872020-04-01 Tom Tromey <tom@tromey.com>
6188
6189 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6190 (read_range_type): Update.
6191 * mdebugread.c (basic_type): Update.
6192 * go-lang.c (build_go_types): Use init_complex_type.
6193 * gdbtypes.h (struct main_type) <complex_type>: New member.
6194 (init_complex_type): Update.
6195 (arch_complex_type): Don't declare.
6196 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6197 Make name if none given. Use alloc_type_copy. Look for cached
6198 complex type.
6199 (arch_complex_type): Remove.
6200 (gdbtypes_post_init): Use init_complex_type.
6201 * f-lang.c (build_fortran_types): Use init_complex_type.
6202 * dwarf2/read.c (read_base_type): Update.
6203 * d-lang.c (build_d_types): Use init_complex_type.
6204 * ctfread.c (read_base_type): Update.
6205
53cccef1
TBA
62062020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6207
6208 * infrun.c (stop_all_threads): Update assertion, plus when
6209 stopping threads, take into account that we might be trying
6210 to stop an all-stop target.
6211 (stop_waiting): Call 'stop_all_threads' if there exists a
6212 non-stop target.
6213
a0714d30
TBA
62142020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6215
6216 * target.h (exists_non_stop_target): New function declaration.
6217 * target.c (exists_non_stop_target): New function.
6218
60e22c1e
HD
62192020-04-01 Hannes Domani <ssbssa@yahoo.de>
6220
6221 PR gdb/24789
6222 * eval.c (is_integral_or_integral_reference): New function.
6223 (evaluate_subexp_standard): Allow integer references in
6224 pointer arithmetic.
6225
e139a727
TBA
62262020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6227
6228 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6229 check for no ptid in the stop reply when the target is non-stop.
6230
e0802d59
TT
62312020-04-01 Tom Tromey <tromey@adacore.com>
6232
6233 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6234 "name" parameter to rvalue reference. Initialize m_name_holder.
6235 <lookup_name_info>: New overloads.
6236 <name>: Return gdb::string_view.
6237 <c_str>: New method.
6238 <make_ignore_params>: Update.
6239 <search_name_hash>: Update.
6240 <language_lookup_name>: Return const char *.
6241 <m_name>: Change type.
6242 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6243 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6244 (lookup_name_info::match_any): Update.
6245 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6246 Update.
6247 * minsyms.c (linkage_name_str): Update.
6248 * language.c (default_symbol_name_matcher): Update.
6249 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6250 Update.
6251 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6252 (ada_lookup_name_info::ada_lookup_name_info): Update.
6253 (literal_symbol_name_matcher): Update.
6254
8c072cb6
TT
62552020-04-01 Tom Tromey <tromey@adacore.com>
6256
6257 * psymtab.c (psymtab_search_name): Remove function.
6258 (psym_lookup_symbol): Create search name and lookup name here.
6259 (lookup_partial_symbol): Remove "name" parameter; add
6260 lookup_name.
6261 (psym_expand_symtabs_for_function): Update.
6262
6f29a534
TT
62632020-03-31 Joel Jones <joelkevinjones@gmail.com>
6264
6265 PR tui/25597:
6266 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6267
af62665e
TT
62682020-03-31 Tom Tromey <tromey@adacore.com>
6269
6270 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6271 memcpy.
6272
d1a89da5
NC
62732020-03-30 Nelson Chu <nelson.chu@sifive.com>
6274
6275 * features/riscv/32bit-csr.xml: Regenerated.
6276 * features/riscv/64bit-csr.xml: Regenerated.
6277
d8af9068
TT
62782020-03-30 Tom Tromey <tromey@adacore.com>
6279
6280 * ada-valprint.c (print_variant_part): Update.
6281 * ada-lang.h (ada_which_variant_applies): Update.
6282 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6283 outer_valaddr parameters; replace with "outer" value parameter.
6284 (to_fixed_variant_branch_type): Update.
6285
227c0bf4
PFC
62862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6287
6288 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6289 <list>. Remove inclusion of observable.h.
6290 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6291 (struct arch_lwp_info): New struct.
6292 (class ppc_linux_dreg_interface): New class.
6293 (struct ppc_linux_process_info): New struct.
6294 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6295 <low_new_clone, low_forget_process, low_prepare_to_resume>
6296 <copy_thread_dreg_state, mark_thread_stale>
6297 <mark_debug_registers_changed, register_hw_breakpoint>
6298 <clear_hw_breakpoint, register_wp, clear_wp>
6299 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6300 <num_memory_accesses, get_trigger_type>
6301 <create_watchpoint_request, hwdebug_point_cmp>
6302 <init_arch_lwp_info, get_arch_lwp_info>
6303 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6304 methods.
6305 <struct ptid_hash>: New inner struct.
6306 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6307 members.
6308 (saved_dabr_value, hwdebug_info, max_slots_number)
6309 (struct hw_break_tuple, struct thread_points, ppc_threads)
6310 (have_ptrace_hwdebug_interface)
6311 (hwdebug_find_thread_points_by_tid)
6312 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6313 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6314 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6315 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6316 use m_dreg_interface.
6317 (hwdebug_point_cmp): Change to...
6318 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6319 reference arguments instead of pointers.
6320 (ppc_linux_nat_target::ranged_break_num_registers): Use
6321 m_dreg_interface.
6322 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6323 m_dreg_interface. Call register_hw_breakpoint.
6324 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6325 m_dreg_interface. Call clear_hw_breakpoint.
6326 (get_trigger_type): Change to...
6327 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6328 comment.
6329 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6330 use m_dreg_interface. Call register_hw_breakpoint.
6331 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6332 use m_dreg_interface. Call clear_hw_breakpoint.
6333 (can_use_watchpoint_cond_accel): Change to...
6334 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6335 method. Update comment, use m_dreg_interface and
6336 m_process_info.
6337 (calculate_dvc): Change to...
6338 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6339 m_dreg_interface.
6340 (num_memory_accesses): Change to...
6341 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6342 (check_condition): Change to...
6343 (ppc_linux_nat_target::check_condition): ...this method.
6344 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6345 comment, use m_dreg_interface.
6346 (create_watchpoint_request): Change to...
6347 (ppc_linux_nat_target::create_watchpoint_request): ...this
6348 method. Use m_dreg_interface.
6349 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6350 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6351 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6352 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6353 (ppc_linux_nat_target::low_forget_process)
6354 (ppc_linux_nat_target::low_new_fork)
6355 (ppc_linux_nat_target::low_new_clone)
6356 (ppc_linux_nat_target::low_delete_thread)
6357 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6358 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6359 only call mark_thread_stale.
6360 (ppc_linux_thread_exit): Remove.
6361 (ppc_linux_nat_target::stopped_data_address): Change to...
6362 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6363 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6364 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6365 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6366 comment. Call low_stopped_data_address.
6367 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6368 m_dreg_interface.
6369 (ppc_linux_nat_target::masked_watch_num_registers): Use
6370 m_dreg_interface.
6371 (ppc_linux_nat_target::copy_thread_dreg_state)
6372 (ppc_linux_nat_target::mark_thread_stale)
6373 (ppc_linux_nat_target::mark_debug_registers_changed)
6374 (ppc_linux_nat_target::register_hw_breakpoint)
6375 (ppc_linux_nat_target::clear_hw_breakpoint)
6376 (ppc_linux_nat_target::register_wp)
6377 (ppc_linux_nat_target::clear_wp)
6378 (ppc_linux_nat_target::init_arch_lwp_info)
6379 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6380 (_initialize_ppc_linux_nat): Remove observer callback.
6381
4db10d8f
PFC
63822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6383
6384 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6385 (ppc_linux_nat_target::auxv_parse)
6386 (ppc_linux_nat_target::read_description)
6387 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6388 Move up.
6389
1310c1b0
PFC
63902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6391
6392 * linux-nat.h (low_new_clone): New method.
6393 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6394
69b037c3
SM
63952020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6396
6397 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6398 (dbx_expand_psymtab): ... this.
6399 (start_psymtab): Update.
6400 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6401 (mdebug_expand_psymtab): ... this.
6402 (parse_partial_symbols): Update.
6403 (new_psymtab): Update.
6404 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6405 (xcoff_expand_psymtab): ... this.
6406 (xcoff_start_psymtab): Update.
6407
48993951
SM
64082020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6409
6410 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6411 <expand_dependencies>: ... this.
6412 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6413 (partial_symtab::expand_dependencies): ... this.
6414 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6415 Update.
6416 (dwarf2_psymtab::expand_psymtab): Update.
6417 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6418 * mdebugread.c (psymtab_to_symtab_1): Update.
6419 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6420
3ad83046
SM
64212020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6422
6423 * psympriv.h (discard_psymtab): Remove.
6424 * dbxread.c (dbx_end_psymtab): Update.
6425 * xcoffread.c (xcoff_end_psymtab): Update.
6426
4d1b9ab6
TT
64272020-03-28 Tom Tromey <tom@tromey.com>
6428
6429 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6430 comment.
6431
f1749218
TT
64322020-03-28 Tom Tromey <tom@tromey.com>
6433
6434 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6435
ebea7626
HD
64362020-03-27 Hannes Domani <ssbssa@yahoo.de>
6437
6438 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6439
a879b4d5
JB
64402020-03-26 John Baldwin <jhb@FreeBSD.org>
6441
6442 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6443
0826b30a
TT
64442020-03-26 Tom Tromey <tom@tromey.com>
6445
6446 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6447 (mark_common_block_symbol_computed, read_tag_string_type)
6448 (attr_to_dynamic_prop, read_subrange_type): Update.
6449 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6450 to be methods on struct attribute.
6451 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6452 (read_call_site_scope, partial_die_info::read)
6453 (partial_die_info::read, lookup_die_type, follow_die_ref):
6454 Update.
6455 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6456 from dwarf2_get_ref_die_offset.
6457 (attribute::constant_value): New method, from
6458 dwarf2_get_attr_constant_value.
6459 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6460 Declare method.
6461 <constant_value>: New method.
6462
2b2558bf
TT
64632020-03-26 Tom Tromey <tom@tromey.com>
6464
6465 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6466 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6467 (dwarf_type_encoding_name): Move to stringify.c.
6468 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6469 * dwarf2/stringify.c: New file.
6470 * dwarf2/stringify.h: New file.
6471
eeb64781
TT
64722020-03-26 Tom Tromey <tom@tromey.com>
6473
6474 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6475 Rewrite.
6476
a39fdb41
TT
64772020-03-26 Tom Tromey <tom@tromey.com>
6478
6479 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6480 methods.
6481 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6482 (lookup_ranges_base): Likewise.
6483 (read_cutu_die_from_dwo, read_full_die_1): Update.
6484
436c571c
TT
64852020-03-26 Tom Tromey <tom@tromey.com>
6486
6487 * dwarf2/read.c (read_import_statement, read_file_scope)
6488 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6489 (read_lexical_block_scope, read_call_site_scope)
6490 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6491 (handle_struct_member_die, process_structure_scope)
6492 (update_enumeration_type_from_children)
6493 (process_enumeration_scope, read_array_type, read_common_block)
6494 (read_namespace, read_module, read_subroutine_type): Update.
6495 (sibling_die): Remove.
6496
052c8bb8
TT
64972020-03-26 Tom Tromey <tom@tromey.com>
6498
6499 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6500 (build_type_psymtabs_reader, read_structure_type)
6501 (read_enumeration_type, read_full_die_1): Update.
6502 (dwarf2_attr_no_follow): Move to die.h.
6503 * dwarf2/die.h (struct die_info) <attr>: New method.
6504
2b24b6e4
TT
65052020-03-26 Tom Tromey <tom@tromey.com>
6506
6507 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6508 <base_address>: Now an optional.
6509 (dwarf2_find_base_address, dwarf2_rnglists_process)
6510 (dwarf2_ranges_process, fill_in_loclist_baton)
6511 (dwarf2_symbol_mark_computed): Update.
6512
c2d50fd0
TT
65132020-03-26 Tom Tromey <tom@tromey.com>
6514
6515 * dwarf2/read.c (struct die_info): Move to die.h.
6516 * dwarf2/die.h: New file.
6517
0df7ad3a
TT
65182020-03-26 Tom Tromey <tom@tromey.com>
6519
6520 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6521 * dwarf2/read.c
6522 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6523 Move to line-header.c.
6524 (read_checked_initial_length_and_offset, read_formatted_entries):
6525 Likewise.
6526 (dwarf_decode_line_header): Split into two.
6527 * dwarf2/line-header.c
6528 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6529 Move from read.c.
6530 (read_checked_initial_length_and_offset, read_formatted_entries):
6531 Likewise.
6532 (dwarf_decode_line_header): New function, split from read.c.
6533
86c0bb4c
TT
65342020-03-26 Tom Tromey <tom@tromey.com>
6535
6536 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6537 Declare method.
6538 * dwarf2/read.c (read_attribute_value): Update.
6539 (dwarf2_per_objfile::read_line_string): Rename from
6540 read_indirect_line_string.
6541 (read_formatted_entries): Update.
6542
2ef46c2f
TT
65432020-03-26 Tom Tromey <tom@tromey.com>
6544
6545 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6546 variable.
6547
4f9c1eda
TT
65482020-03-26 Tom Tromey <tom@tromey.com>
6549
6550 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6551 const.
6552 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6553 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6554 parameter const.
6555
5a0e026f
TT
65562020-03-26 Tom Tromey <tom@tromey.com>
6557
6558 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6559 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6560 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6561 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6562
8844c11b
TT
65632020-03-26 Tom Tromey <tom@tromey.com>
6564
6565 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6566 file_names_size, file_full_name, file_file_name>: Use const.
6567 <file_name_at, file_names>: Add const overload.
6568 * dwarf2/line-header.c (line_header::file_file_name)
6569 (line_header::file_full_name): Update.
6570
c90ec28a
TT
65712020-03-26 Tom Tromey <tom@tromey.com>
6572
6573 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6574 (macro_start_file, consume_improper_spaces)
6575 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6576 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6577 (dwarf_decode_macros): Move to macro.c.
6578 * dwarf2/macro.c: New file.
6579 * dwarf2/macro.h: New file.
6580 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6581
4f44ae6c
TT
65822020-03-26 Tom Tromey <tom@tromey.com>
6583
6584 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6585 method.
6586 * dwarf2/section.c: New method. From
6587 read_indirect_string_at_offset_from.
6588 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6589 (read_indirect_string_at_offset_from): Move to section.c.
6590 (read_indirect_string_at_offset): Rewrite.
6591 (read_indirect_line_string_at_offset): Remove.
6592 (read_indirect_string, read_indirect_line_string)
6593 (dwarf_decode_macro_bytes): Update.
6594
a0194fa8
TT
65952020-03-26 Tom Tromey <tom@tromey.com>
6596
6597 * dwarf2/section.h (struct dwarf2_section_info)
6598 <overload_complaint>: Declare.
6599 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6600 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6601 Rename from dwarf2_section_buffer_overflow_complaint.
6602 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6603 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6604
3d27bbdb
TT
66052020-03-26 Tom Tromey <tom@tromey.com>
6606
6607 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6608 Declare.
6609 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6610 Move from read.c.
6611 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6612 to section.c.
6613
9eac9650
TT
66142020-03-26 Tom Tromey <tom@tromey.com>
6615
6616 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6617
bf80d710
TT
66182020-03-26 Tom Tromey <tom@tromey.com>
6619
6620 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6621 "builder".
6622 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6623 parameter.
6624 (dwarf_decode_macros): Update.
6625
0314b390
TT
66262020-03-26 Tom Tromey <tom@tromey.com>
6627
6628 * dwarf2/read.c (read_attribute_value): Update.
6629 (read_indirect_string_from_dwz): Move to dwz.c; change into
6630 method.
6631 (dwarf_decode_macro_bytes): Update.
6632 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6633 * dwarf2/dwz.c: New file.
6634 * Makefile.in (COMMON_SFILES): Add dwz.c.
6635
9fda78b6
TT
66362020-03-26 Tom Tromey <tom@tromey.com>
6637
6638 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6639 * dwarf2/read.c: Add include.
6640 * dwarf2/index-write.c: Add include.
6641 * dwarf2/index-cache.c: Add include.
6642 * dwarf2/dwz.h: New file.
6643
33aa3c10
TT
66442020-03-25 Tom Tromey <tom@tromey.com>
6645
6646 * compile/compile-object-load.c (get_out_value_type): Mention
6647 correct symbol name in error message.
6648
d503b685
HD
66492020-03-25 Hannes Domani <ssbssa@yahoo.de>
6650
6651 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6652
7b1eff95
TV
66532020-03-25 Tom de Vries <tdevries@suse.de>
6654
6655 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6656 * symmisc.c (dump_symtab_1): Print user and includes fields.
6657 (maintenance_info_symtabs): Same.
6658
dd895392
AB
66592020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6660
6661 PR gdb/25534
6662 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6663 (riscv_regcache_cooked_write): New function.
6664 (riscv_push_dummy_call): Use new function.
6665 (riscv_return_value): Likewise.
6666
5ab2fbf1
SM
66672020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6668
6669 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6670 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6671 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6672 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6673 * infrun.c (follow_fork): Likewise.
6674 (follow_fork_inferior): Likewise.
6675 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6676 * linux-nat.h (class linux_nat_target): Likewise.
6677 * remote.c (class remote_target) <follow_fork>: Likewise.
6678 (remote_target::follow_fork): Likewise.
6679 * target-delegates.c: Re-generate.
6680 * target.c (default_follow_fork): Likewise.
6681 (target_follow_fork): Likewise.
6682 * target.h (struct target_ops) <follow_fork>: Likewise.
6683 (target_follow_fork): Likewise.
6684
a64fafb5
TV
66852020-03-24 Tom de Vries <tdevries@suse.de>
6686
6687 * psymtab.c (maintenance_info_psymtabs): Print user field.
6688
fe26d3a3
TT
66892020-03-20 Tom Tromey <tromey@adacore.com>
6690
6691 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6692 const.
6693 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6694 const.
6695
c884cc46
SM
66962020-03-20 Simon Marchi <simon.marchi@efficios.com>
6697
6698 * ptrace.m4: Don't check for ptrace declaration.
6699 * config.in: Re-generate.
6700 * configure: Re-generate.
6701 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6702 not defined.
6703
1ff700c2
KR
67042020-03-20 Kamil Rytarowski <n54@gmx.com>
6705
6706 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6707 `PTRACE_TYPE_RET'.
6708 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6709 * sparc-nat.c (gdb_ptrace): Likewise.
6710 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6711
f7d4f0b1
TT
67122020-03-20 Tom Tromey <tromey@adacore.com>
6713
6714 * c-exp.y (lex_one_token): Fix assert.
6715
f67210ff
TT
67162020-03-20 Tom Tromey <tromey@adacore.com>
6717
6718 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6719 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6720 strncpy call.
6721
1773be9e
TT
67222020-03-20 Tom Tromey <tromey@adacore.com>
6723
6724 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6725
70304be9
TT
67262020-03-20 Tom Tromey <tromey@adacore.com>
6727
6728 * ada-valprint.c (print_variant_part): Remove parameters; switch
6729 to value-based API.
6730 (print_field_values): Likewise.
6731 (ada_val_print_struct_union): Likewise.
6732 (ada_value_print_1): Update.
6733
9faa006d
KR
67342020-03-20 Kamil Rytarowski <n54@gmx.com>
6735
6736 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6737 nbsd_nat_target instead of inf_ptrace_target.
6738 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6739 nbsd_nat_target.
6740
4a90f062
KR
67412020-03-20 Kamil Rytarowski <n54@gmx.com>
6742
6743 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6744 it to the ptrace call.
6745 * (store_registers): Likewise.
6746
67472020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6748
6749 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6750 it to the ptrace call.
6751 * (store_registers): Likewise.
6752
2d07da27
LM
67532020-03-19 Luis Machado <luis.machado@linaro.org>
6754
6755 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6756 valid, fetch vg value from ptrace.
6757
f09db380
KR
67582020-03-19 Kamil Rytarowski <n54@gmx.com>
6759 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6760 * inf-ptrace.c: Likewise.
6761 * (gdb_ptrace): Add.
6762 * (inf_ptrace_target::resume): Update.
6763 * (inf_ptrace_target::xfer_partial): Likewise.
6764 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6765 * (inf_ptrace_peek_poke): Update.
6766
fcc7376e
KR
67672020-03-19 Kamil Rytarowski <n54@gmx.com>
6768
6769 * x86-bsd-nat.c (gdb_ptrace): New.
6770 * (x86bsd_dr_set): Add new argument `ptid'.
6771 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6772 x86bsd_dr_set_addr): Update.
6773
cada5fc9
AB
67742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6775
6776 * remote.c (remote_target::process_stop_reply): Handle events for
6777 all threads differently.
6778
19a2740f
AB
67792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6780
6781 * completer.c (completion_tracker::remove_completion): Define new
6782 function.
6783 * completer.h (completion_tracker::remove_completion): Declare new
6784 function.
6785 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6786 when adding a C++ function symbol.
6787
724fd9ba
AB
67882020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6789
6790 * completer.c (completion_tracker::completion_hash_entry): Define
6791 new class.
6792 (advance_to_filename_complete_word_point): Call
6793 recompute_lowest_common_denominator.
6794 (completion_tracker::completion_tracker): Call discard_completions
6795 to setup the hash table.
6796 (completion_tracker::discard_completions): Allow for being called
6797 from the constructor, pass new equal function, and element deleter
6798 when constructing the hash table. Initialise new class member
6799 variables.
6800 (completion_tracker::maybe_add_completion): Remove use of
6801 m_entries_vec, and store more information into m_entries_hash.
6802 (completion_tracker::recompute_lcd_visitor): New function, most
6803 content taken from...
6804 (completion_tracker::recompute_lowest_common_denominator):
6805 ...here, this now just visits each item in the hash calling the
6806 above visitor.
6807 (completion_tracker::build_completion_result): Remove use of
6808 m_entries_vec, call recompute_lowest_common_denominator.
6809 * completer.h (completion_tracker::have_completions): Remove use
6810 of m_entries_vec.
6811 (completion_tracker::completion_hash_entry): Declare new class.
6812 (completion_tracker::recompute_lowest_common_denominator): Change
6813 function signature.
6814 (completion_tracker::recompute_lcd_visitor): Declare new function.
6815 (completion_tracker::m_entries_vec): Delete.
6816 (completion_tracker::m_entries_hash): Initialize to NULL.
6817 (completion_tracker::m_lowest_common_denominator_valid): New
6818 member variable.
6819 (completion_tracker::m_lowest_common_denominator_max_length): New
6820 member variable.
6821
5a82b8a1
KR
68222020-03-17 Kamil Rytarowski <n54@gmx.com>
6823
6824 * regformats/regdef.h: Put reg in gdb namespace.
6825
fb516a69
KR
68262020-03-17 Kamil Rytarowski <n54@gmx.com>
6827
6828 * i386-bsd-nat.c (gdb_ptrace): New.
6829 * (i386bsd_fetch_inferior_registers,
6830 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6831 * (i386bsd_fetch_inferior_registers,
6832 i386bsd_store_inferior_registers) Use gdb_ptrace.
6833
1c0aa1fb
KR
68342020-03-17 Kamil Rytarowski <n54@gmx.com>
6835
6836 * amd64-bsd-nat.c (gdb_ptrace): New.
6837 * (amd64bsd_fetch_inferior_registers,
6838 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6839 * (amd64bsd_fetch_inferior_registers,
6840 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6841
5ccd2fb7
KR
68422020-03-17 Kamil Rytarowski <n54@gmx.com>
6843
6844 * user-regs.c (user_reg::read): Rename to...
6845 (user_reg::xread): ...this.
6846 * (append_user_reg): Rename argument `read' to `xread'.
6847 * (user_reg_add_builtin): Likewise.
6848 * (user_reg_add): Likewise.
6849 * (value_of_user_reg): Likewise.
6850
2108a63a
KR
68512020-03-17 Kamil Rytarowski <n54@gmx.com>
6852
6853 * sparc-nat.c (gdb_ptrace): New.
6854 * sparc-nat.c (sparc_fetch_inferior_registers)
6855 (sparc_store_inferior_registers) Remove obsolete comment.
6856 * sparc-nat.c (sparc_fetch_inferior_registers)
6857 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6858 * sparc-nat.c (sparc_fetch_inferior_registers)
6859 (sparc_store_inferior_registers) Use gdb_ptrace.
6860
a225c9a8
KR
68612020-03-17 Kamil Rytarowski <n54@gmx.com>
6862
6863 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6864 it to the ptrace call.
6865 * sh-nbsd-nat.c (store_registers): Likewise.
6866
98097623
KR
68672020-03-17 Kamil Rytarowski <n54@gmx.com>
6868
6869 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6870 nbsd_nat_target instead of inf_ptrace_target.
6871 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6872 nbsd_nat_target.
6873
9e38d619
KR
68742020-03-17 Kamil Rytarowski <n54@gmx.com>
6875
6876 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6877
a2ecbe9f
KR
68782020-03-17 Kamil Rytarowski <n54@gmx.com>
6879
6880 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6881 <sys/sysctl.h>.
6882 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6883
58990295
TV
68842020-03-17 Tom de Vries <tdevries@suse.de>
6885
6886 PR gdb/23710
6887 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6888 fields.
6889 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6890 fields.
6891 (process_imported_unit_die): Skip import of c++ CUs.
6892
771dd3a8
TT
68932020-03-16 Tom Tromey <tom@tromey.com>
6894
6895 * p-valprint.c (pascal_object_print_value): Initialize
6896 base_value.
6897
817a7585
AK
68982020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6899 Shahab Vahedi <shahab@synopsys.com>
6900
6901 * Makefile.in: Add arch/arc.o
6902 * configure.tgt: Likewise.
6903 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6904 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6905 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6906 * arc-tdep.h (arc_read_description): Add proto type.
6907 * arch/arc.c: New file.
6908 * arch/arc.h: Likewise.
6909 * features/Makefile: Replace old target descriptions with new.
6910 * features/arc-arcompact.c: Remove.
6911 * features/arc-arcompact.xml: Likewise.
6912 * features/arc-v2.c: Likewise
6913 * features/arc-v2.xml: Likewise
6914 * features/arc/aux-arcompact.xml: New file.
6915 * features/arc/aux-v2.xml: Likewise.
6916 * features/arc/core-arcompact.xml: Likewise.
6917 * features/arc/core-v2.xml: Likewise.
6918 * features/arc/aux-arcompact.c: Generate.
6919 * features/arc/aux-v2.c: Likewise.
6920 * features/arc/core-arcompact.c: Likewise.
6921 * features/arc/core-v2.c: Likewise.
6922 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6923
67430cd0
TT
69242020-03-16 Tom Tromey <tromey@adacore.com>
6925
6926 PR gdb/25663:
6927 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6928 putting value into bcache.
6929
30efb6c7
SM
69302020-03-16 Simon Marchi <simon.marchi@efficios.com>
6931
6932 PR gdb/21500
6933 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6934 to...
6935 (amd64_windows_init_abi_common): ... this. Don't set size of
6936 long type.
6937 (amd64_windows_init_abi): New function.
6938 (amd64_cygwin_init_abi): New function.
6939 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6940 the Cygwin OS ABI.
6941 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6942 comment.
6943
8db52437
SM
69442020-03-16 Simon Marchi <simon.marchi@efficios.com>
6945
6946 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6947 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6948 (pe_import_directory_entry): New struct type.
6949 (is_linked_with_cygwin_dll): New function.
6950 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6951 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6952 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6953
5982a56a
SM
69542020-03-16 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6957 i386_cygwin_core_osabi_sniffer.
6958
7a1998df
SM
69592020-03-16 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * i386-cygwin-tdep.c: Rename to...
6962 * i386-windows-tdep.c: ... this.
6963 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6964 i386-windows-tdep.c.
6965 * configure.tgt: Likewise.
6966
053205cc
SM
69672020-03-16 Simon Marchi <simon.marchi@efficios.com>
6968
6969 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6970 * osabi.c (gdb_osabi_names): Add "Windows".
6971 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6972 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6973 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6974 i386_cygwin_osabi_sniffer.
6975 (_initialize_i386_cygwin_tdep): Register OS ABI
6976 GDB_OSABI_WINDOWS for i386.
6977 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6978 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6979 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6980 for x86-64.
6981 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6982 when the target matches '*-*-mingw*'.
6983
fe4b2ee6
SM
69842020-03-16 Simon Marchi <simon.marchi@efficios.com>
6985
6986 * defs.h (enum gdb_osabi): Move to...
6987 * osabi.h (enum gdb_osabi): ... here.
6988 * gdbarch.sh: Include osabi.h in gdbarch.h.
6989 * gdbarch.h: Re-generate.
6990
cb9b645d
SM
69912020-03-16 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6994 function.
6995 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6996
3293bbaf
TT
69972020-03-14 Tom Tromey <tom@tromey.com>
6998
6999 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7000 for C++.
7001 (c_type_print_modifier): Likewise. Add "language" parameter.
7002 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7003 (c_type_print_base_1): Update.
7004 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7005 constants.
7006 * type-stack.c (type_stack::insert): Handle tp_atomic and
7007 tp_restrict.
7008 (type_stack::follow_type_instance_flags): Likewise.
7009 (type_stack::follow_types): Likewise. Merge type-following code.
7010 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7011 (space_identifier, cv_with_space_id)
7012 (const_or_volatile_or_space_identifier_noopt)
7013 (const_or_volatile_or_space_identifier): Remove.
7014 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7015 rules.
7016 (ptr_operator, typebase): Update.
7017 (enum token_flag) <FLAG_C>: New constant.
7018 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7019 "_Atomic".
7020 (lex_one_token): Handle FLAG_C.
7021
154151a6
KR
70222020-03-14 Kamil Rytarowski <n54@gmx.com>
7023
7024 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7025 it to the ptrace call.
7026 * m68k-bsd-nat.c (store_registers): Likewise.
7027
bc107784
KR
70282020-03-14 Kamil Rytarowski <n54@gmx.com>
7029
7030 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7031 gdb_byte *.
7032 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7033 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7034 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7035
01a80117
KR
70362020-03-14 Kamil Rytarowski <n54@gmx.com>
7037
7038 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7039 nbsd_nat_target instead of inf_ptrace_target.
7040 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7041 nbsd_nat_target.
7042
f90280ca
KR
70432020-03-14 Kamil Rytarowski <n54@gmx.com>
7044
7045 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7046 register_t.
7047
6def66f1
KR
70482020-03-14 Kamil Rytarowski <n54@gmx.com>
7049
7050 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7051 it to the ptrace call.
7052 * alpha-bsd-nat.c (store_registers): Likewise.
7053
66eaca97
KR
70542020-03-14 Kamil Rytarowski <n54@gmx.com>
7055
7056 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7057 includes.
7058 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7059 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7060 fill_fpregset): Likewise.
7061
4fed520b
KR
70622020-03-14 Kamil Rytarowski <n54@gmx.com>
7063
7064 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7065 nbsd_nat_target instead of inf_ptrace_target.
7066 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7067 nbsd_nat_target.
7068
2190cf06
KR
70692020-03-14 Kamil Rytarowski <n54@gmx.com>
7070
7071 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7072 register_t.
7073
75c56d3d
KR
70742020-03-14 Kamil Rytarowski <n54@gmx.com>
7075
7076 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7077 it to the ptrace call.
7078 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7079 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7080 * arm-nbsd-nat.c (store_register): Likewise.
7081 * arm-nbsd-nat.c (store_regs): Likewise.
7082 * arm-nbsd-nat.c (store_fp_register): Likewise.
7083 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7084
6018d381
KR
70852020-03-14 Kamil Rytarowski <n54@gmx.com>
7086
7087 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7088 nbsd_nat_target instead of inf_ptrace_target.
7089 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7090 nbsd_nat_target.
7091
013f99f0
KR
70922020-03-14 Kamil Rytarowski <n54@gmx.com>
7093
7094 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7095 it to the ptrace call.
7096 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7097
12753073
KR
70982020-03-14 Kamil Rytarowski <n54@gmx.com>
7099
6227b330
KR
7100 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7101 it to the ptrace call.
7102 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7103
71042020-03-14 Kamil Rytarowski <n54@gmx.com>
7105
7106 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7107 gdb_byte *.
12753073
KR
7108 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7109
d5be5fa4
KR
71102020-03-14 Kamil Rytarowski <n54@gmx.com>
7111
7112 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7113 instead of inf_ptrace_target.
7114 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7115 nbsd_nat_target.
7116
8110f842
KR
71172020-03-14 Kamil Rytarowski <n54@gmx.com>
7118
7119 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7120 register_t.
7121
52feded7
KR
71222020-03-14 Kamil Rytarowski <n54@gmx.com>
7123
7124 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7125 register_t.
7126
25567eee
KR
71272020-03-14 Kamil Rytarowski <n54@gmx.com>
7128
7129 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7130 register_t.
7131
426a9c18
TT
71322020-03-13 Tom Tromey <tom@tromey.com>
7133
7134 * value.h (val_print): Don't declare.
7135 * valprint.h (val_print_array_elements)
7136 (val_print_scalar_formatted, generic_val_print): Don't declare.
7137 * valprint.c (generic_val_print_array): Take a struct value.
7138 (generic_val_print_ptr, generic_val_print_memberptr)
7139 (generic_val_print_bool, generic_val_print_int)
7140 (generic_val_print_char, generic_val_print_complex)
7141 (generic_val_print): Remove.
7142 (generic_value_print): Update.
7143 (do_val_print): Remove unused parameters. Don't call
7144 la_val_print.
7145 (val_print): Remove.
7146 (common_val_print): Update. Don't call value_check_printable.
7147 (val_print_scalar_formatted, val_print_array_elements): Remove.
7148 * rust-lang.c (rust_val_print): Remove.
7149 (rust_language_defn): Update.
7150 * p-valprint.c (pascal_val_print): Remove.
7151 (pascal_value_print_inner): Update.
7152 (pascal_object_print_val_fields, pascal_object_print_val):
7153 Remove.
7154 (pascal_object_print_static_field): Update.
7155 * p-lang.h (pascal_val_print): Don't declare.
7156 * p-lang.c (pascal_language_defn): Update.
7157 * opencl-lang.c (opencl_language_defn): Update.
7158 * objc-lang.c (objc_language_defn): Update.
7159 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7160 * m2-lang.h (m2_val_print): Don't declare.
7161 * m2-lang.c (m2_language_defn): Update.
7162 * language.h (struct language_defn) <la_val_print>: Remove.
7163 * language.c (unk_lang_value_print_inner): Rename. Change
7164 argument types.
7165 (unknown_language_defn, auto_language_defn): Update.
7166 * go-valprint.c (go_val_print): Remove.
7167 * go-lang.h (go_val_print): Don't declare.
7168 * go-lang.c (go_language_defn): Update.
7169 * f-valprint.c (f_val_print): Remove.
7170 * f-lang.h (f_value_print): Don't declare.
7171 * f-lang.c (f_language_defn): Update.
7172 * d-valprint.c (d_val_print): Remove.
7173 * d-lang.h (d_value_print): Don't declare.
7174 * d-lang.c (d_language_defn): Update.
7175 * cp-valprint.c (cp_print_value_fields)
7176 (cp_print_value_fields_rtti, cp_print_value): Remove.
7177 (cp_print_static_field): Update.
7178 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7179 (c_val_print_struct, c_val_print_union, c_val_print_int)
7180 (c_val_print_memberptr, c_val_print): Remove.
7181 * c-lang.h (c_val_print_array, cp_print_value_fields)
7182 (cp_print_value_fields_rtti): Don't declare.
7183 * c-lang.c (c_language_defn, cplus_language_defn)
7184 (asm_language_defn, minimal_language_defn): Update.
7185 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7186 (ada_val_print_enum): Take a struct value.
7187 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7188 (ada_val_print): Remove.
7189 (ada_value_print_1): Update.
7190 (printable_val_type): Remove.
7191 * ada-lang.h (ada_val_print): Don't declare.
7192 * ada-lang.c (ada_language_defn): Update.
7193
42331a1e
TT
71942020-03-13 Tom Tromey <tom@tromey.com>
7195
7196 * valprint.c (do_val_print): Update.
7197 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7198 a struct value.
7199 (value_to_value_object_no_release): Declare.
7200 * python/py-value.c (value_to_value_object_no_release): New
7201 function.
7202 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7203 struct value.
7204 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7205 function.
7206 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7207 a struct value.
7208 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7209 Declare.
7210 (gdbscm_apply_val_pretty_printer): Take a struct value.
7211 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7212 value.
7213 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7214 value.
7215 * extension-priv.h (struct extension_language_ops)
7216 <apply_val_pretty_printer>: Take a struct value.
7217 * cp-valprint.c (cp_print_value): Create a struct value.
7218 (cp_print_value): Update.
7219
3a916a97
TT
72202020-03-13 Tom Tromey <tom@tromey.com>
7221
7222 * ada-valprint.c (print_field_values): Call common_val_print.
7223
b59eac37
TT
72242020-03-13 Tom Tromey <tom@tromey.com>
7225
7226 * ada-valprint.c (val_print_packed_array_elements): Remove
7227 bitoffset and val parameters. Call common_val_print.
7228 (ada_val_print_string): Remove offset, address, and original_value
7229 parameters.
7230 (ada_val_print_array): Update.
7231 (ada_value_print_array): New function.
7232 (ada_value_print_1): Call it.
7233
03371129
TT
72342020-03-13 Tom Tromey <tom@tromey.com>
7235
7236 * ada-valprint.c (ada_value_print): Use common_val_print.
7237
2e088f8b
TT
72382020-03-13 Tom Tromey <tom@tromey.com>
7239
7240 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7241
39ef85a8
TT
72422020-03-13 Tom Tromey <tom@tromey.com>
7243
7244 * ada-valprint.c (ada_value_print_num): New function.
7245 (ada_value_print_1): Use it.
7246
b9fa6e07
TT
72472020-03-13 Tom Tromey <tom@tromey.com>
7248
7249 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7250
416595d6
TT
72512020-03-13 Tom Tromey <tom@tromey.com>
7252
7253 * ada-valprint.c (ada_value_print_ptr): New function.
7254 (ada_value_print_1): Use it.
7255
5b5e15ec
TT
72562020-03-13 Tom Tromey <tom@tromey.com>
7257
7258 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7259 call common_val_print.
7260 (ada_val_print_1): Update.
7261 (ada_value_print_1): New function.
7262 (ada_value_print_inner): Rewrite.
7263
fbf54e75
TT
72642020-03-13 Tom Tromey <tom@tromey.com>
7265
7266 * cp-valprint.c (cp_print_value_fields): Update.
7267 (cp_print_value): New function.
7268
64b653ca
TT
72692020-03-13 Tom Tromey <tom@tromey.com>
7270
7271 * m2-valprint.c (m2_value_print_inner): Use
7272 cp_print_value_fields.
7273 * cp-valprint.c (cp_print_value_fields): New function.
7274 * c-valprint.c (c_value_print_struct): New function.
7275 (c_value_print_inner): Use c_value_print_struct.
7276 * c-lang.h (cp_print_value_fields): Declare.
7277
6999f067
TT
72782020-03-13 Tom Tromey <tom@tromey.com>
7279
7280 * c-valprint.c (c_value_print_array): New function.
7281 (c_value_print_inner): Use it.
7282
ce80b8bd
TT
72832020-03-13 Tom Tromey <tom@tromey.com>
7284
7285 * c-valprint.c (c_value_print_memberptr): New function.
7286 (c_value_print_inner): Use it.
7287
2faac269
TT
72882020-03-13 Tom Tromey <tom@tromey.com>
7289
7290 * c-valprint.c (c_value_print_int): New function.
7291 (c_value_print_inner): Use it.
7292
da3e2c29
TT
72932020-03-13 Tom Tromey <tom@tromey.com>
7294
7295 * c-valprint.c (c_value_print_ptr): New function.
7296 (c_value_print_inner): Use it.
7297
50836231
TT
72982020-03-13 Tom Tromey <tom@tromey.com>
7299
7300 * c-valprint.c (c_value_print_inner): Rewrite.
7301
4f412b6e
TT
73022020-03-13 Tom Tromey <tom@tromey.com>
7303
7304 * valprint.c (generic_value_print_complex): New function.
7305 (generic_value_print): Use it.
7306
f5354008
TT
73072020-03-13 Tom Tromey <tom@tromey.com>
7308
7309 * valprint.c (generic_val_print_float): Don't call
7310 val_print_scalar_formatted.
7311 (generic_val_print, generic_value_print): Update.
7312
3eec3b05
TT
73132020-03-13 Tom Tromey <tom@tromey.com>
7314
7315 * valprint.c (generic_value_print_char): New function
7316 (generic_value_print): Use it.
7317
fdddfccb
TT
73182020-03-13 Tom Tromey <tom@tromey.com>
7319
7320 * valprint.c (generic_value_print_int): New function.
7321 (generic_value_print): Use it.
7322
6dde7521
TT
73232020-03-13 Tom Tromey <tom@tromey.com>
7324
7325 * valprint.c (generic_value_print_bool): New function.
7326 (generic_value_print): Use it.
7327
4112d2e6
TT
73282020-03-13 Tom Tromey <tom@tromey.com>
7329
7330 * valprint.c (generic_val_print_func): Simplify.
7331 (generic_val_print, generic_value_print): Update.
7332
65786af6
TT
73332020-03-13 Tom Tromey <tom@tromey.com>
7334
7335 * valprint.c (generic_val_print_flags): Remove.
7336 (generic_val_print, generic_value_print): Update.
7337 (val_print_type_code_flags): Add original_value parameter.
7338
40f3ce18
TT
73392020-03-13 Tom Tromey <tom@tromey.com>
7340
7341 * valprint.c (generic_val_print): Update.
7342 (generic_value_print): Update.
7343 * valprint.c (generic_val_print_enum): Don't call
7344 val_print_scalar_formatted.
7345
2a5b130b
TT
73462020-03-13 Tom Tromey <tom@tromey.com>
7347
7348 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7349 * valprint.c (generic_value_print_ptr): New function.
7350
abc66ce9
TT
73512020-03-13 Tom Tromey <tom@tromey.com>
7352
7353 * valprint.c (generic_value_print): Rewrite.
7354
07a32858
TT
73552020-03-13 Tom Tromey <tom@tromey.com>
7356
7357 * p-valprint.c (pascal_object_print_value_fields)
7358 (pascal_object_print_value): New functions.
7359
64d64d3a
TT
73602020-03-13 Tom Tromey <tom@tromey.com>
7361
7362 * p-valprint.c (pascal_value_print_inner): Rewrite.
7363
6a95a1f5
TT
73642020-03-13 Tom Tromey <tom@tromey.com>
7365
7366 * f-valprint.c (f_value_print_innner): Rewrite.
7367
59fcdac6
TT
73682020-03-13 Tom Tromey <tom@tromey.com>
7369
7370 * m2-valprint.c (m2_print_unbounded_array): New overload.
7371 (m2_print_unbounded_array): Update.
7372 (m2_print_array_contents): Take a struct value.
7373 (m2_value_print_inner): Rewrite.
7374
d133c3e1
TT
73752020-03-13 Tom Tromey <tom@tromey.com>
7376
7377 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7378 (d_value_print_inner): New function.
7379 * d-lang.h (d_value_print_inner): Declare.
7380 * d-lang.c (d_language_defn): Use d_value_print_inner.
7381
23b0f06b
TT
73822020-03-13 Tom Tromey <tom@tromey.com>
7383
7384 * go-valprint.c (go_value_print_inner): New function.
7385 * go-lang.h (go_value_print_inner): Declare.
7386 * go-lang.c (go_language_defn): Use go_value_print_inner.
7387
5f56f7cb
TT
73882020-03-13 Tom Tromey <tom@tromey.com>
7389
7390 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7391 API.
7392 (rust_val_print): Rewrite.
7393 (rust_value_print_inner): New function, from rust_val_print.
7394 (rust_language_defn): Use rust_value_print_inner.
7395
26792ee0
TT
73962020-03-13 Tom Tromey <tom@tromey.com>
7397
7398 * ada-valprint.c (ada_value_print_inner): New function.
7399 * ada-lang.h (ada_value_print_inner): Declare.
7400 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7401
24051bbe
TT
74022020-03-13 Tom Tromey <tom@tromey.com>
7403
7404 * f-valprint.c (f_value_print_innner): New function.
7405 * f-lang.h (f_value_print_innner): Declare.
7406 * f-lang.c (f_language_defn): Use f_value_print_innner.
7407
c0941be6
TT
74082020-03-13 Tom Tromey <tom@tromey.com>
7409
7410 * p-valprint.c (pascal_value_print_inner): New function.
7411 * p-lang.h (pascal_value_print_inner): Declare.
7412 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7413
62c4663d
TT
74142020-03-13 Tom Tromey <tom@tromey.com>
7415
7416 * m2-valprint.c (m2_value_print_inner): New function.
7417 * m2-lang.h (m2_value_print_inner): Declare.
7418 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7419
62182190
TT
74202020-03-13 Tom Tromey <tom@tromey.com>
7421
7422 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7423 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7424 * c-valprint.c (c_value_print_inner): New function.
7425 * c-lang.h (c_value_print_inner): Declare.
7426 * c-lang.c (c_language_defn, cplus_language_defn)
7427 (asm_language_defn, minimal_language_defn): Use
7428 c_value_print_inner.
7429
1e592a8a
TT
74302020-03-13 Tom Tromey <tom@tromey.com>
7431
7432 * p-valprint.c (pascal_object_print_value_fields): Now static.
7433 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7434
7fe471e9
TT
74352020-03-13 Tom Tromey <tom@tromey.com>
7436
7437 * c-valprint.c (c_val_print_array): Simplify.
7438
d121c6ce
TT
74392020-03-13 Tom Tromey <tom@tromey.com>
7440
7441 * valprint.c (value_print_array_elements): New function.
7442 * valprint.h (value_print_array_elements): Declare.
7443
4dba70ee
TT
74442020-03-13 Tom Tromey <tom@tromey.com>
7445
7446 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7447 * mips-tdep.c (mips_print_register): Use
7448 value_print_scalar_formatted.
7449
4f9ae810
TT
74502020-03-13 Tom Tromey <tom@tromey.com>
7451
7452 * valprint.h (value_print_scalar_formatted): Declare.
7453 * valprint.c (value_print_scalar_formatted): New function.
7454
156bfec9
TT
74552020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * valprint.h (generic_value_print): Declare.
7458 * valprint.c (generic_value_print): New function.
7459
2b4e573d
TT
74602020-03-13 Tom Tromey <tom@tromey.com>
7461
7462 * valprint.c (do_val_print): Call la_value_print_inner, if
7463 available.
7464 * rust-lang.c (rust_language_defn): Update.
7465 * p-lang.c (pascal_language_defn): Update.
7466 * opencl-lang.c (opencl_language_defn): Update.
7467 * objc-lang.c (objc_language_defn): Update.
7468 * m2-lang.c (m2_language_defn): Update.
7469 * language.h (struct language_defn) <la_value_print_inner>: New
7470 member.
7471 * language.c (unknown_language_defn, auto_language_defn): Update.
7472 * go-lang.c (go_language_defn): Update.
7473 * f-lang.c (f_language_defn): Update.
7474 * d-lang.c (d_language_defn): Update.
7475 * c-lang.c (c_language_defn, cplus_language_defn)
7476 (asm_language_defn, minimal_language_defn): Update.
7477 * ada-lang.c (ada_language_defn): Update.
7478
a1f6a07c
TT
74792020-03-13 Tom Tromey <tom@tromey.com>
7480
7481 * c-valprint.c (c_value_print): Use common_val_print.
7482
410cf315
TT
74832020-03-13 Tom Tromey <tom@tromey.com>
7484
7485 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7486
72a45c93
TT
74872020-03-13 Tom Tromey <tom@tromey.com>
7488
7489 * f-valprint.c (f77_print_array_1, f_val_print): Use
7490 common_val_print.
7491
040f66bd
TT
74922020-03-13 Tom Tromey <tom@tromey.com>
7493
7494 * riscv-tdep.c (riscv_print_one_register_info): Use
7495 common_val_print.
7496
a6e05a6c
TT
74972020-03-13 Tom Tromey <tom@tromey.com>
7498
7499 * mi/mi-main.c (output_register): Use common_val_print.
7500
3444c526
TT
75012020-03-13 Tom Tromey <tom@tromey.com>
7502
7503 * infcmd.c (default_print_one_register_info): Use
7504 common_val_print.
7505
c2a44efe
TT
75062020-03-13 Tom Tromey <tom@tromey.com>
7507
7508 * valprint.h (common_val_print_checked): Declare.
7509 * valprint.c (common_val_print_checked): New function.
7510 * stack.c (print_frame_arg): Use common_val_print_checked.
7511
b0c26e99
TT
75122020-03-13 Tom Tromey <tom@tromey.com>
7513
7514 * valprint.c (do_val_print): New function, from val_print.
7515 (val_print): Use do_val_print.
7516 (common_val_print): Use do_val_print.
7517
ce3acbe9
TT
75182020-03-13 Tom Tromey <tom@tromey.com>
7519
7520 * valprint.c (value_print): Use scoped_value_mark.
7521
96c7f873
TV
75222020-03-13 Tom de Vries <tdevries@suse.de>
7523
7524 PR symtab/25646
7525 * psymtab.c (partial_symtab::partial_symtab): Don't set
7526 globals_offset and statics_offset. Push element onto
7527 current_global_psymbols and current_static_psymbols stacks.
7528 (concat): New function.
7529 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7530 element from current_global_psymbols and current_static_psymbols
7531 stacks. Concat popped elements to global_psymbols and
7532 static_symbols.
7533 (add_psymbol_to_list): Use current_global_psymbols and
7534 current_static_psymbols stacks.
7535 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7536 current_static_psymbols fields.
7537
6ba0a321
CB
75382020-03-12 Christian Biesinger <cbiesinger@google.com>
7539
7540 * corelow.c (sniff_core_bfd): Remove.
7541 (class core_target) <m_core_vec>: Remove.
7542 (core_target::core_target): Update.
7543 (core_file_fns): Remove.
7544 (deprecated_add_core_fns): Remove.
7545 (default_core_sniffer): Remove.
7546 (sniff_core_bfd): Remove.
7547 (default_check_format): Remove.
7548 (gdb_check_format): Remove.
7549 (core_target_open): Update.
7550 (core_target::get_core_register_section): Update.
7551 (get_core_registers_cb): Update.
7552 (core_target::fetch_registers): Update.
7553 * gdbcore.h (struct core_fns): Remove.
7554 (deprecated_add_core_fns): Remove.
7555 (default_core_sniffer): Remove.
7556 (default_check_format): Remove.
7557
227031b2
TT
75582020-03-12 Tom Tromey <tom@tromey.com>
7559
7560 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7561 CORE_ADDR.
7562 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7563
53807e9f
TT
75642020-03-12 Tom Tromey <tom@tromey.com>
7565
7566 * remote.c (remote_target::download_tracepoint)
7567 (remote_target::enable_tracepoint)
7568 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7569 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7570 sprintf_vma.
7571
64f25102
TT
75722020-03-12 Tom Tromey <tom@tromey.com>
7573
7574 * symfile-mem.c: Update CORE_ADDR size assert.
7575
272cd5a3
SM
75762020-03-12 Simon Marchi <simon.marchi@efficios.com>
7577
7578 * selftest.m4: Move to gdbsupport/.
7579 * acinclude.m4: Update path to selftest.m4.
7580
74cd3f9d
SM
75812020-03-12 Simon Marchi <simon.marchi@efficios.com>
7582
7583 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7584 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7585 gdbarch-selfselftests.c and selftest-arch.c.
7586 (SUBDIR_UNITTESTS_OBS): Rename to...
7587 (SELFTESTS_OBS): ... this.
7588 (COMMON_SFILES): Remove disasm-selftests.c and
7589 gdbarch-selftests.c.
7590 * configure.ac: Don't add selftest-arch.{c,o} to
7591 CONFIG_{SRCS,OBS}.
7592 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7593 preprocessor conditions.
7594
db6878ac
SM
75952020-03-12 Simon Marchi <simon.marchi@efficios.com>
7596
7597 * configure.ac: Don't source bfd/development.sh.
7598 * selftest.m4: Modify comment.
7599 * configure: Re-generate.
7600
4d696a5c
SM
76012020-03-12 Simon Marchi <simon.marchi@efficios.com>
7602
7603 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7604 not "true" or "false".
7605 * configure: Re-generate.
7606
8dd8e1c7
CB
76072020-03-12 Christian Biesinger <cbiesinger@google.com>
7608
7609 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7610 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7611 renamed to arm_nbsd_supply_gregset.
7612 (fetch_register): Update to call arm_nbsd_supply_gregset.
7613 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7614 (arm_netbsd_nat_target::fetch_registers): Update.
7615 (fetch_elfcore_registers): Removed.
7616 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7617 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7618 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7619 not require NetBSD system headers.
7620 (arm_nbsd_regset): New struct.
7621 (arm_nbsd_iterate_over_regset_sections): New function.
7622 (arm_netbsd_init_abi_common): Updated to call
7623 set_gdbarch_iterate_over_regset_sections.
7624 * arm-nbsd-tdep.h: New file.
7625
dd69bf7a
KB
76262020-03-11 Kevin Buettner <kevinb@redhat.com>
7627
7628 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7629 recursion.
7630
a0761e34
SM
76312020-03-11 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * configure: Re-generate.
7634
e7a82140
TT
76352020-03-11 Tom Tromey <tromey@adacore.com>
7636
7637 * ada-typeprint.c (print_choices): Fix comment.
7638
dcc050c8
AB
76392020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7640
7641 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7642 previous item in the list, when the list has no items.
7643
1c33af77
TV
76442020-03-11 Tom de Vries <tdevries@suse.de>
7645
7646 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7647 PROP_LOCLIST handling code.
7648
8c95582d
AB
76492020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7650
7651 * buildsym-legacy.c (record_line): Pass extra parameter to
7652 record_line.
7653 * buildsym.c (buildsym_compunit::record_line): Take an extra
7654 parameter, reduce duplication in the line table, and record the
7655 is_stmt flag in the line table.
7656 * buildsym.h (buildsym_compunit::record_line): Add extra
7657 parameter.
7658 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7659 non-statement lines.
7660 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7661 this to the symtab builder.
7662 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7663 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7664 through to dwarf_record_line_1.
7665 * infrun.c (process_event_stop_test): When stepping, don't stop at
7666 a non-statement instruction, and only refresh the step info when
7667 we land in the middle of a line's range. Also add an extra
7668 comment.
7669 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7670 field.
7671 * record-btrace.c (btrace_find_line_range): Only record lines
7672 marked as is-statement.
7673 * stack.c (frame_show_address): Show the frame address if we are
7674 in a non-statement sal.
7675 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7676 (maintenance_print_one_line_table): Print a header for the is_stmt
7677 column, and include is_stmt information in the output.
7678 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7679 preference to non-statements.
7680 (find_pcs_for_symtab_line): Prefer is-statement entries.
7681 (find_line_common): Likewise.
7682 * symtab.h (struct linetable_entry): Add is_stmt field.
7683 (struct symtab_and_line): Likewise.
7684 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7685 arranging the line table.
7686
e4003a34
TV
76872020-03-07 Tom de Vries <tdevries@suse.de>
7688
7689 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7690 DIE.
7691
e8932576
TT
76922020-03-07 Tom Tromey <tom@tromey.com>
7693
7694 * valops.c (value_literal_complex): Remove obsolete comment.
7695 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7696 comment.
7697
29734269
SM
76982020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7699
7700 * infrun.h: Forward-declare thread_info.
7701 (set_step_info): Add thread_info parameter, add doc.
7702 * infrun.c (set_step_info): Add thread_info parameter, move doc
7703 to header.
7704 * infrun.c (process_event_stop_test): Pass thread to
7705 set_step_info call.
7706 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7707 set_step_info.
7708 (prepare_one_step): Add thread_info parameter, pass it to
7709 set_step_frame and prepare_one_step (recursive) call.
7710 (step_1): Pass thread to prepare_one_step call.
7711 (step_command_fsm::should_stop): Pass thread to
7712 prepare_one_step.
7713 (until_next_fsm): Pass thread to set_step_frame call.
7714 (finish_command): Pass thread to set_step_info call.
7715
b7d64b29
HD
77162020-03-06 Hannes Domani <ssbssa@yahoo.de>
7717
7718 * windows-tdep.c (windows_solib_create_inferior_hook):
7719 Check if inferior is running.
7720
09f2921c
TV
77212020-03-06 Tom de Vries <tdevries@suse.de>
7722
7723 * NEWS: Fix "the the".
7724 * ctfread.c: Same.
7725
fd760e79
TV
77262020-03-06 Tom de Vries <tdevries@suse.de>
7727
7728 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7729
20ea4a60
AB
77302020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7731
7732 * .dir-locals.el: Add a comment referencing the other copies of
7733 this file.
7734
0afbabf0
JB
77352020-03-05 John Baldwin <jhb@FreeBSD.org>
7736
7737 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7738 psargs.
7739
842806cb
TBA
77402020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7741
7742 * .gitattributes: New file.
7743
be1e3d3e
TT
77442020-03-04 Tom Tromey <tom@tromey.com>
7745
7746 * symmisc.c (print_symbol_bcache_statistics)
7747 (print_objfile_statistics): Update.
7748 * symfile.c (allocate_symtab): Use intern.
7749 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7750 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7751 macro_cache>: Remove.
7752 <string_cache>: New member.
7753 (struct objfile) <intern>: New methods.
7754 * elfread.c (elf_symtab_read): Use intern.
7755 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7756 (dwarf2_compute_name, dwarf2_physname)
7757 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7758 names.
7759 (guess_partial_die_structure_name): Update.
7760 (partial_die_info::fixup): Intern name.
7761 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7762 name.
7763 (dwarf2_name): Intern name. Update.
7764 * buildsym.c (buildsym_compunit::get_macro_table): Use
7765 string_cache.
7766
4e7625fd
TT
77672020-03-04 Tom Tromey <tom@tromey.com>
7768
7769 * jit.c (bfd_open_from_target_memory): Make "target" const.
7770 * corefile.c (gnutarget): Now const.
7771 * gdbcore.h (gnutarget): Now const.
7772
46f9f931
HD
77732020-03-04 Hannes Domani <ssbssa@yahoo.de>
7774
7775 * NEWS: Mention support for WOW64 processes.
7776 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7777 (amd64_windows_segment_register_p): Remove static.
7778 (_initialize_amd64_windows_nat): Update.
7779 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7780 * i386-windows-nat.c (context_offset): Update.
7781 (i386_mappings): Rename and remove static.
7782 (i386_windows_segment_register_p): Remove static.
7783 (_initialize_i386_windows_nat): Update.
7784 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7785 (STATUS_WX86_SINGLE_STEP): New macro.
7786 (EnumProcessModulesEx): New macro.
7787 (Wow64SuspendThread): New macro.
7788 (Wow64GetThreadContext): New macro.
7789 (Wow64SetThreadContext): New macro.
7790 (Wow64GetThreadSelectorEntry): New macro.
7791 (windows_set_context_register_offsets): Add static.
7792 (windows_set_segment_register_p): Likewise.
7793 (windows_add_thread): Adapt for WOW64 processes.
7794 (windows_fetch_one_register): Likewise.
7795 (windows_nat_target::fetch_registers): Likewise.
7796 (windows_store_one_register): Likewise.
7797 (display_selector): Likewise.
7798 (display_selectors): Likewise.
7799 (handle_exception): Likewise.
7800 (windows_continue): Likewise.
7801 (windows_nat_target::resume): Likewise.
7802 (windows_add_all_dlls): Likewise.
7803 (do_initial_windows_stuff): Likewise.
7804 (windows_nat_target::attach): Likewise.
7805 (windows_get_exec_module_filename): Likewise.
7806 (windows_nat_target::create_inferior): Likewise.
7807 (windows_xfer_siginfo): Likewise.
7808 (_initialize_loadable): Initialize Wow64SuspendThread,
7809 Wow64GetThreadContext, Wow64SetThreadContext,
7810 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7811 * windows-nat.h (windows_set_context_register_offsets):
7812 Remove declaration.
7813 (windows_set_segment_register_p): Likewise.
7814 (i386_windows_segment_register_p): Add declaration.
7815 (amd64_windows_segment_register_p): Likewise.
7816
440cf44e
LM
78172020-03-04 Luis Machado <luis.machado@linaro.org>
7818
7819 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7820 in "info registers" for AArch64/ARM.
7821
7822 The change caused "info registers" to not print GPR's.
7823
7824 gdb/ChangeLog:
7825
7826 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7827
7828 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7829 when reg->group is empty and reggroup is not.
7830
1009d92f
TT
78312020-03-03 Tom Tromey <tromey@adacore.com>
7832
7833 * dwarf2/frame.c (struct dwarf2_frame_cache)
7834 <checked_tailcall_bottom, entry_cfa_sp_offset,
7835 entry_cfa_sp_offset_p>: Remove members.
7836 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7837 (dwarf2_frame_prev_register): Don't call
7838 dwarf2_tailcall_sniffer_first.
7839 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7840 * frame-unwind.c (add_unwinder): New fuction.
7841 (frame_unwind_init): Use it. Add tailcall unwinder.
7842
5e5d66b6
AB
78432020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7844 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7845
7846 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7847 value should be printed as true.
7848
584cf46d
HD
78492020-03-03 Hannes Domani <ssbssa@yahoo.de>
7850
7851 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7852 (windows_init_abi): Set and use windows_so_ops.
7853
7b973adc
SDJ
78542020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7855
7856 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7857 when verifying if dealing with a convenience variable.
7858
bb7b70ab
LM
78592020-03-03 Luis Machado <luis.machado@linaro.org>
7860
7861 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7862
9822cb57
SM
78632020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7864
7865 * infrun.c (gdbarch_supports_displaced_stepping): New.
7866 (use_displaced_stepping): Break up conditions in smaller pieces.
7867 Use gdbarch_supports_displaced_stepping.
7868 (displaced_step_prepare_throw): Use
7869 gdbarch_supports_displaced_stepping.
7870
63e163f2
AB
78712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7872
7873 * NEWS: Mention new behaviour of the history filename.
7874 * top.c (write_history_p): Add comment.
7875 (show_write_history_p): Add header comment, give a different
7876 message when history writing is on, but the history filename is
7877 empty.
7878 (history_filename): Add comment.
7879 (history_filename_empty): New function.
7880 (show_history_filename): Add header comment, give a different
7881 message when the filename is empty.
7882 (init_history): Compare history_filename against nullptr, and only
7883 read history if the filename is not empty.
7884 (set_history_filename): Add header comment, and only make
7885 non-empty filenames absolute.
7886 (init_main): Make the filename argument to 'set history filename'
7887 optional.
7888
81b86b97
CB
78892020-03-02 Christian Biesinger <cbiesinger@google.com>
7890
7891 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7892 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7893 (fetch_fp_register): Update.
7894 (fetch_fp_regs): Update.
7895 (store_fp_register): Update.
7896 (store_fp_regs): Update.
7897 (arm_netbsd_nat_target::read_description): New function.
7898 (fetch_elfcore_registers): Update.
7899
24ed6739
AB
79002020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7901
7902 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7903 general_thread if the stop reply is missing a thread-id.
7904 (remote_target::process_stop_reply): Use the first non-exited
7905 thread if the target didn't pass a thread-id.
7906 * infrun.c (do_target_wait): Move call to
7907 switch_to_inferior_no_thread to ....
7908 (do_target_wait_1): ... here.
7909
a84bb2a0
JT
79102020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7911
7912 * debuginfod-support.c: Include defs.h first.
7913
658dadf0
TV
79142020-02-28 Tom de Vries <tdevries@suse.de>
7915
7916 * symfile.c (set_initial_language): Use default language for lookup.
7917
4ebe4877
SM
79182020-02-28 Simon Marchi <simon.marchi@efficios.com>
7919
7920 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7921 reader variable, pass `this` to read_cutu_die_from_dwo.
7922
e5da1139
AM
79232020-02-27 Aaron Merey <amerey@redhat.com>
7924
7925 * source.c (open_source_file): Check for nullptr when computing
7926 srcpath.
7927
317f7127
TT
79282020-02-27 Tom Tromey <tromey@adacore.com>
7929
7930 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7931 member.
7932 (dwarf2_add_field): Don't update nfields.
7933 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7934
3104d9ee
AB
79352020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7938 abs.
7939
b83470bf
TT
79402020-02-26 Tom Tromey <tom@tromey.com>
7941
7942 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7943 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7944 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7945 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7946 per_cu_data.
7947
edfe0a0c
TT
79482020-02-26 Tom Tromey <tom@tromey.com>
7949
7950 * dwarf2/index-write.c (psym_index_map): Change type.
7951 (add_address_entry_worker, write_one_signatured_type)
7952 (recursively_count_psymbols, recursively_write_psymbols)
7953 (class debug_names, psyms_seen_size, write_gdbindex)
7954 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7955
0d79cdc4
AM
79562020-02-26 Aaron Merey <amerey@redhat.com>
7957
7958 * Makefile.in: Handle optional debuginfod support.
7959 * NEWS: Update.
7960 * README: Add --with-debuginfod summary.
7961 * config.in: Regenerate.
7962 * configure: Regenerate.
7963 * configure.ac: Handle optional debuginfod support.
7964 * debuginfod-support.c: debuginfod helper functions.
7965 * debuginfod-support.h: Ditto.
7966 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7967 summary.
7968 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7969 when a dwz file cannot be found.
7970 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7971 debuginfo file cannot be found.
7972 * source.c (open_source_file): Query debuginfod servers when a
7973 source file cannot be found.
7974 * top.c (print_gdb_configuration): Include
7975 --{with,without}-debuginfod in the output.
7976
b65ce565
JG
79772020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7978
7979 * thread.c (thr_try_catch_cmd): Print thread name.
7980
d4c9a4f8
SM
79812020-02-26 Simon Marchi <simon.marchi@efficios.com>
7982
7983 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7984 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7985 dwarf2_fetch_die_type_sect_off): Move to...
7986 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7987 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7988 dwarf2_fetch_die_type_sect_off): ... here.
7989 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7990 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7991 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7992
0dce4280
TV
79932020-02-26 Tom de Vries <tdevries@suse.de>
7994
7995 PR gdb/25603
7996 * symfile.c (set_initial_language): Exit-early if
7997 language_mode == language_mode_manual.
7998
450a1bfc
SM
79992020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8000
8001 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8002 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8003 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8004
9e80cfa1
AB
80052020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8006
8007 * gdbtypes.c (create_array_type_with_stride): Handle negative
8008 array strides.
8009 * valarith.c (value_subscripted_rvalue): Likewise.
8010
09624f1f
LM
80112020-02-25 Luis Machado <luis.machado@linaro.org>
8012
8013 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8014
8cb5117c
SM
80152020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8016
8017 * loc.h (dwarf2_get_die_type): Move to...
8018 * read.h (dwarf2_get_die_type): ... here.
8019 * read.c (dwarf2_get_die_type): Move doc to header.
8020
c325c44e
JB
80212020-02-25 Joel Brobecker <brobecker@adacore.com>
8022
8023 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8024 'gnulib/Makefile.in' to the list.
8025
4ac93832
TT
80262020-02-24 Tom Tromey <tom@tromey.com>
8027
8028 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8029 Remove.
8030 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8031 XOBNEWVEC.
8032
197400e8
TT
80332020-02-24 Tom Tromey <tom@tromey.com>
8034
8035 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8036 New method.
8037 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8038 (dw2_do_instantiate_symtab, dw2_get_file_names)
8039 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8040
76935768
TT
80412020-02-24 Tom Tromey <tom@tromey.com>
8042
8043 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8044 make_scoped_restore.
8045 (dwarf2_psymtab::read_symtab): Don't clear
8046 reading_partial_symbols.
8047
a88ef40d
TV
80482020-02-24 Tom de Vries <tdevries@suse.de>
8049
8050 PR gdb/25592
8051 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8052
c9af6521
TV
80532020-02-24 Tom de Vries <tdevries@suse.de>
8054
8055 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8056 commands layout next/prev/regs.
8057
5707a07a
TT
80582020-02-22 Tom Tromey <tom@tromey.com>
8059
8060 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8061 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8062
3b0fb49e
TT
80632020-02-22 Tom Tromey <tom@tromey.com>
8064
8065 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8066
283be8bf
TT
80672020-02-22 Tom Tromey <tom@tromey.com>
8068
8069 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8070 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8071 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8072 * tui/tui.c (_initialize_tui): Add usage text.
8073
ca793b96
TT
80742020-02-22 Tom Tromey <tom@tromey.com>
8075
8076 * tui/tui-win.c (tui_set_focus_command)
8077 (tui_set_win_height_command): Use error_no_arg.
8078 (_initialize_tui_win): Update help text.
8079 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8080
432b5c40
TT
80812020-02-22 Tom Tromey <tom@tromey.com>
8082
8083 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8084 * tui/tui-disasm.h (struct tui_disasm_window)
8085 <display_start_addr>: Declare.
8086 * tui/tui-source.h (struct tui_source_window)
8087 <display_start_addr>: Declare.
8088 * tui/tui-winsource.h (struct tui_source_window_base)
8089 <show_source_line, display_start_addr>: New methods.
8090 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8091 Rename and move to protected section.
8092 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8093 (tui_source_window_base::do_erase_source_content): Update.
8094 (tui_source_window_base::show_source_line): Now a method.
8095 (tui_source_window_base::show_source_content)
8096 (tui_source_window_base::tui_source_window_base)
8097 (tui_source_window_base::rerender)
8098 (tui_source_window_base::refill)
8099 (tui_source_window_base::do_scroll_horizontal)
8100 (tui_source_window_base::set_is_exec_point_at)
8101 (tui_source_window_base::update_breakpoint_info)
8102 (tui_source_window_base::update_exec_info): Update.
8103 * tui/tui-source.c (tui_source_window::set_contents)
8104 (tui_source_window::showing_source_p)
8105 (tui_source_window::do_scroll_vertical)
8106 (tui_source_window::location_matches_p)
8107 (tui_source_window::line_is_displayed): Update.
8108 (tui_source_window::display_start_addr): New method.
8109 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8110 (tui_disasm_window::do_scroll_vertical)
8111 (tui_disasm_window::location_matches_p): Update.
8112 (tui_disasm_window::display_start_addr): New method.
8113
01b1af32
TT
81142020-02-22 Tom Tromey <tom@tromey.com>
8115
8116 * NEWS: Add entry for gdb.register_window_type.
8117 * tui/tui-layout.h (window_factory): New typedef.
8118 (tui_register_window): Declare.
8119 * tui/tui-layout.c (saved_tui_windows): New global.
8120 (tui_apply_current_layout): Use it.
8121 (tui_register_window): New function.
8122 * python/python.c (do_start_initialization): Call
8123 gdbpy_initialize_tui.
8124 (python_GdbMethods): Add "register_window_type" function.
8125 * python/python-internal.h (gdbpy_register_tui_window)
8126 (gdbpy_initialize_tui): Declare.
8127 * python/py-tui.c: New file.
8128 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8129
fc96d20b
TT
81302020-02-22 Tom Tromey <tom@tromey.com>
8131
8132 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8133
935c78c0
TT
81342020-02-22 Tom Tromey <tom@tromey.com>
8135
8136 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8137 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8138 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8139 (tui_set_win_focus_to): Move from tui-win.c.
8140
0240c8f1
TT
81412020-02-22 Tom Tromey <tom@tromey.com>
8142
8143 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8144 functions.
8145 (known_window_types): New global.
8146 (tui_get_window_by_name): Reimplement.
8147 (initialize_known_windows): New function.
8148 (validate_window_name): Rewrite.
8149 (_initialize_tui_layout): Call initialize_known_windows.
8150
fdb01f0c
TT
81512020-02-22 Tom Tromey <tom@tromey.com>
8152
8153 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8154 Remove constants.
8155 * tui/tui-winsource.h (struct tui_source_window_base)
8156 <tui_source_window_base>: Remove parameter.
8157 * tui/tui-winsource.c
8158 (tui_source_window_base::tui_source_window_base): Remove
8159 parameter.
8160 (tui_source_window_base::refill): Update.
8161 * tui/tui-stack.h (struct tui_locator_window)
8162 <tui_locator_window>: Update.
8163 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8164 Default the constructor.
8165 * tui/tui-regs.h (struct tui_data_item_window)
8166 <tui_data_item_window>: Default the constructor.
8167 (struct tui_data_window) <tui_data_window>: Likewise.
8168 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8169 Default the constructor.
8170 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8171 Default the constructor.
8172 <type>: Remove.
8173 (struct tui_win_info) <tui_win_info>: Default the constructor.
8174 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8175 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8176 Default the constructor.
8177
865a5aec
TT
81782020-02-22 Tom Tromey <tom@tromey.com>
8179
8180 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8181 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8182 * tui/tui-win.c (tui_resize_all): Don't call
8183 tui_delete_invisible_windows.
8184 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8185 done.
8186 (tui_set_layout): Update.
8187 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8188 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8189 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8190
e098d18c
TT
81912020-02-22 Tom Tromey <tom@tromey.com>
8192
8193 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8194 correctly.
8195
eb9c8874
TT
81962020-02-22 Tom Tromey <tom@tromey.com>
8197
8198 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8199
7eed1a8e
TT
82002020-02-22 Tom Tromey <tom@tromey.com>
8201
8202 * tui/tui-winsource.h (struct tui_source_window_iterator)
8203 <inner_iterator>: New etytypedef.
8204 <tui_source_window_iterator>: Take "end" parameter.
8205 <tui_source_window_iterator>: Take iterator.
8206 <operator*, advance>: Update.
8207 <m_iter>: Change type.
8208 <m_end>: New field.
8209 (struct tui_source_windows) <begin, end>: Update.
8210 * tui/tui-layout.c (tui_windows): New global.
8211 (tui_apply_current_layout): Clear tui_windows.
8212 (tui_layout_window::apply): Update tui_windows.
8213 * tui/tui-data.h (tui_windows): Declare.
8214 (all_tui_windows): Now inline function.
8215 (class tui_window_iterator, struct all_tui_windows): Remove.
8216
7c043ba6
TT
82172020-02-22 Tom Tromey <tom@tromey.com>
8218
8219 PR tui/17850:
8220 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8221 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8222 "height" argument.
8223 (class tui_layout_window) <get_sizes>: Likewise.
8224 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8225 argument.
8226 <get_sizes>: Add "height" argument.
8227 <m_vertical>: New field.
8228 * tui/tui-layout.c (tui_layout_split::clone): Update.
8229 (tui_layout_split::get_sizes): Add "height" argument.
8230 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8231 (tui_new_layout_command): Parse "-horizontal".
8232 (_initialize_tui_layout): Update help string.
8233 (tui_layout_split::specification): Add "-horizontal" when needed.
8234 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8235 argument.
8236 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8237 New methods.
8238
6bc56648
TT
82392020-02-22 Tom Tromey <tom@tromey.com>
8240
8241 * tui/tui-layout.h (enum tui_adjust_result): New.
8242 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8243 (class tui_layout_window) <adjust_size>: Return
8244 tui_adjust_result. Rewrite.
8245 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8246 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8247
c22fef7e
TT
82482020-02-22 Tom Tromey <tom@tromey.com>
8249
8250 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8251 parameter and return types.
8252 (class tui_layout_base) <specification>: Add "depth".
8253 (class tui_layout_window) <specification>: Add "depth".
8254 (class tui_layout_split) <specification>: Add "depth".
8255 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8256 and return types.
8257 (tui_new_layout_command): Parse sub-layouts.
8258 (_initialize_tui_layout): Update help string.
8259 (tui_layout_window::specification): Add "depth".
8260 (add_layout_command): Update.
8261
ee325b61
TT
82622020-02-22 Tom Tromey <tom@tromey.com>
8263
8264 * NEWS: Add "tui new-layout" item.
8265 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8266 Add new-layout command to help text.
8267 (validate_window_name): New function.
8268 (tui_new_layout_command): New function.
8269 (_initialize_tui_layout): Register "new-layout".
8270 (tui_layout_window::specification): New method.
8271 (tui_layout_window::specification): New method.
8272 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8273 method.
8274 (class tui_layout_window) <specification>: New method.
8275 (class tui_layout_split) <specification>: New method.
8276
416eb92d
TT
82772020-02-22 Tom Tromey <tom@tromey.com>
8278
8279 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8280 * tui/tui-win.c (window_name_completer): Update comment.
8281 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8282 Declare method.
8283 (class tui_layout_window) <replace_window>: Likewise.
8284 (class tui_layout_split) <replace_window>: Likewise.
8285 (tui_set_layout): Don't declare.
8286 (tui_set_initial_layout): Declare function.
8287 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8288 (asm_regs_layout): New globals.
8289 (tui_current_layout, show_layout): Remove.
8290 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8291 (find_layout, tui_apply_layout): New function.
8292 (layout_completer): Remove.
8293 (tui_next_layout): Reimplement.
8294 (tui_next_layout_command): New function.
8295 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8296 (tui_regs_layout): Reimplement.
8297 (tui_regs_layout_command): New function.
8298 (extract_display_start_addr): Rewrite.
8299 (next_layout, prev_layout): Remove.
8300 (tui_layout_window::replace_window): New method.
8301 (tui_layout_split::replace_window): New method.
8302 (destroy_layout): New function.
8303 (layout_list): New global.
8304 (add_layout_command): New function.
8305 (initialize_layouts): Update.
8306 (tui_layout_command): New function.
8307 (_initialize_tui_layout): Install "layout" commands.
8308 * tui/tui-data.h (enum tui_layout_type): Remove.
8309 (tui_current_layout): Don't declare.
8310
0dbc2fc7
TT
83112020-02-22 Tom Tromey <tom@tromey.com>
8312
8313 * tui/tui-regs.c (tui_reg_layout): Remove.
8314 (tui_reg_command): Use tui_regs_layout.
8315 * tui/tui-layout.h (tui_reg_command): Declare.
8316 * tui/tui-layout.c (tui_reg_command): New function.
8317
5afe342e
TT
83182020-02-22 Tom Tromey <tom@tromey.com>
8319
8320 * tui/tui.c (tui_rl_delete_other_windows): Call
8321 tui_remove_some_windows.
8322 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8323 Declare method.
8324 (class tui_layout_window) <remove_windows>: New method.
8325 (class tui_layout_split) <remove_windows>: Declare.
8326 (tui_remove_some_windows): Declare.
8327 * tui/tui-layout.c (tui_remove_some_windows): New function.
8328 (tui_layout_split::remove_windows): New method.
8329
427326a8
TT
83302020-02-22 Tom Tromey <tom@tromey.com>
8331
8332 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8333 * tui/tui-layout.h (tui_next_layout): Declare.
8334 * tui/tui-layout.c (tui_next_layout): New function.
8335
3fe12b6d
TT
83362020-02-22 Tom Tromey <tom@tromey.com>
8337
8338 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8339 correct coordinates.
8340
59b8b5d2
TT
83412020-02-22 Tom Tromey <tom@tromey.com>
8342
8343 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8344 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8345 DATA_WIN case.
8346
2a3d458b
TT
83472020-02-22 Tom Tromey <tom@tromey.com>
8348
8349 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8350 TUI_DISASM_WIN, not tui_win_list.
8351
3f0cbb04
TT
83522020-02-22 Tom Tromey <tom@tromey.com>
8353
8354 * valprint.c (generic_val_print_enum_1)
8355 (val_print_type_code_flags): Style member names.
8356 * rust-lang.c (val_print_struct, rust_print_enum)
8357 (rust_print_struct_def, rust_internal_print_type): Style member
8358 names.
8359 * p-valprint.c (pascal_object_print_value_fields): Style member
8360 names. Only call fprintf_symbol_filtered for static members.
8361 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8362 * f-valprint.c (f_val_print): Style member names.
8363 * f-typeprint.c (f_type_print_base): Style member names.
8364 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8365 call fprintf_symbol_filtered for static members.
8366 (cp_print_class_member): Style member names.
8367 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8368 member names.
8369 * ada-valprint.c (ada_print_scalar): Style enum names.
8370 (ada_val_print_enum): Likewise.
8371 * ada-typeprint.c (print_enum_type): Style enum names.
8372
d4d947ae
TT
83732020-02-21 Tom Tromey <tom@tromey.com>
8374
8375 * psympriv.h (struct partial_symtab): Update comment.
8376
e94e944b
TT
83772020-02-21 Tom Tromey <tromey@adacore.com>
8378
8379 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8380 type is CORE_ADDR.
8381
1eb73179
TV
83822020-02-21 Tom de Vries <tdevries@suse.de>
8383
8384 PR gdb/25534
8385 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8386 if dependencies[i]->user != NULL.
8387
4f180d53
AT
83882020-02-21 Ali Tamur <tamur@google.com>
8389
8390 * dwarf2/read.c (dwarf2_name): Add null check.
8391
22b6cd70
TT
83922020-02-20 Tom Tromey <tom@tromey.com>
8393
8394 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8395 ">=", in binary search.
8396 (dwarf2_find_containing_comp_unit): New overload.
8397 (run_test): New self-test.
8398 (_initialize_dwarf2_read): Register new test.
8399
bd0cf5a6
NC
84002020-02-20 Nelson Chu <nelson.chu@sifive.com>
8401
8402 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8403 * riscv-tdep.h: Likewise.
8404 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8405 rv32-only CSR.
8406 * features/riscv/64bit-csr.xml: Regenerated.
8407
3f702acd
SDJ
84082020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8409 Tom Tromey <tom@tromey.com>
8410
8411 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8412 of 'fputc_unfiltered'.
8413 (putchar_unfiltered): Call 'fputc_unfiltered'.
8414 (fputc_unfiltered): Call 'fputs_unfiltered'.
8415
d13c7322
AB
84162020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8417
8418 * config.in: Regenerate.
8419 * configure: Regenerate.
8420 * configure.ac: Add --with-python-libdir option.
8421 * main.c: Use WITH_PYTHON_LIBDIR.
8422
869d8950
TT
84232020-02-19 Tom Tromey <tom@tromey.com>
8424
8425 * symtab.c (general_symbol_info::compute_and_set_names): Use
8426 obstack_strndup. Simplify call to symbol_set_demangled_name.
8427
298e9637
SM
84282020-02-19 Simon Marchi <simon.marchi@efficios.com>
8429
8430 * dwarf2/read.c (allocate_signatured_type_table,
8431 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8432 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8433 Remove objfile parameter, update all callers.
8434
08410482
DE
84352020-02-19 Doug Evans <dje@google.com>
8436
8437 PR rust/25535
8438 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8439 rust_enum_variant calculation.
8440
dfdeeca1
TT
84412020-02-19 Tom Tromey <tromey@adacore.com>
8442
8443 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8444
2ef5453b
TT
84452020-02-19 Tom Tromey <tromey@adacore.com>
8446
8447 * ada-lang.c (cache_symbol): Use obstack_strdup.
8448
9f1528a1
AB
84492020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8450
8451 * configure: Regenerate.
8452
d3c22fa8
TT
84532020-02-19 Tom Tromey <tromey@adacore.com>
8454
8455 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8456 NULL check.
8457
bf84f706
MR
84582020-02-19 Maciej W. Rozycki <macro@wdc.com>
8459
8460 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8461
d1c9b20f
AB
84622020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8463
8464 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8465 if GDBSERVER is not defined.
8466 (riscv_tdesc_cache): Likewise, also store const target_desc.
8467 (STATIC_IN_GDB): Define.
8468 (riscv_create_target_description): Update declaration with
8469 STATIC_IN_GDB.
8470 (riscv_lookup_target_description): New function, only define if
8471 GDBSERVER is not defined.
8472 * arch/riscv.h (riscv_create_target_description): Declare only
8473 when GDBSERVER is defined.
8474 (riscv_lookup_target_description): New declaration when GDBSERVER
8475 is not defined.
8476 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8477 (riscv_linux_read_features): ...this, and return
8478 riscv_gdbarch_features instead of target_desc.
8479 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8480 (riscv_linux_read_description): Rename to...
8481 (riscv_linux_read_features): ...this.
8482 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8483 Update to use riscv_gdbarch_features and
8484 riscv_lookup_target_description.
8485 * riscv-tdep.c (riscv_find_default_target_description): Use
8486 riscv_lookup_target_description instead of
8487 riscv_create_target_description.
8488
373d7ac0
SM
84892020-02-18 Simon Marchi <simon.marchi@efficios.com>
8490
8491 * valprint.c (generic_val_print_enum_1): When printing a flag
8492 enum with value 0 and there is no enumerator with value 0, print
8493 just "0" instead of "(unknown: 0x0)".
8494
b29a2df0
SM
84952020-02-18 Simon Marchi <simon.marchi@efficios.com>
8496
8497 * valprint.c (generic_val_print_enum_1): Print unknown part of
8498 flag enum in hex.
8499
6740f0cc
SM
85002020-02-18 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8503 flag enums to contain duplicate enumerators.
8504 * valprint.c (generic_val_print_enum_1): Update comment.
8505
edd45eb0
SM
85062020-02-18 Simon Marchi <simon.marchi@efficios.com>
8507
8508 * dwarf2/read.c: Include "count-one-bits.h".
8509 (update_enumeration_type_from_children): If an enumerator has
8510 multiple bits set, don't treat the enumeration as a "flag enum".
8511 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8512 of flag enums have 0 or 1 bit set.
8513
6d0cf446
BE
85142020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8515
8516 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8517 conversion.
8518 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8519 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8520 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8521 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8522 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8523
7001c1b7
SM
85242020-02-18 Simon Marchi <simon.marchi@efficios.com>
8525
8526 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8527
fdb61c6c
SM
85282020-02-14 Simon Marchi <simon.marchi@efficios.com>
8529
8530 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8531 displaced_step_closure_up.
8532 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8533 (struct displaced_step_closure_up):
8534 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8535 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8536 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8537 Likewise.
8538 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8539 * gdbarch.c, gdbarch.h: Re-generate.
8540 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8541 displaced_step_closure_up.
8542 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8543 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8544 * infrun.h (displaced_step_closure_up): New type alias.
8545 (struct displaced_step_inferior_state) <step_closure>: Change
8546 type to displaced_step_closure_up.
8547 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8548 displaced_step_closure_up.
8549 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8550
a4a38eb4
TT
85512020-02-14 Tom Tromey <tom@tromey.com>
8552
8553 * minidebug.c (gnu_debug_key): New global.
8554 (find_separate_debug_file_in_section): Use it.
8555
e8217e61
SM
85562020-02-14 Simon Marchi <simon.marchi@efficios.com>
8557
8558 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8559 std::unique_ptr.
8560 * gdbarch.c: Re-generate.
8561 * gdbarch.h: Re-generate.
8562 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8563 change.
8564 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8565 type to std::unique_ptr.
8566 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8567 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8568 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8569 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8570 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8571 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8572 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8573 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8574 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8575
d8d83535
SM
85762020-02-14 Simon Marchi <simon.marchi@efficios.com>
8577
8578 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8579 std::unique_ptr.
8580 (displaced_step_clear): Rename to...
8581 (displaced_step_reset): ... this. Just call displaced->reset ().
8582 (displaced_step_clear_cleanup): Rename to...
8583 (displaced_step_reset_cleanup): ... this.
8584 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8585 (displaced_step_fixup): Likewise.
8586 (resume_1): Likewise.
8587 (handle_inferior_event): Restore child's memory before calling
8588 displaced_step_fixup on the parent.
8589 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8590 to std::unique_ptr.
8591 <step_closure>: Change type to std::unique_ptr.
8592
5f661e03
SM
85932020-02-14 Simon Marchi <simon.marchi@efficios.com>
8594
8595 * arm-tdep.c: Include count-one-bits.h.
8596 (cleanup_block_store_pc): Use count_one_bits.
8597 (cleanup_block_load_pc): Use count_one_bits.
8598 (arm_copy_block_xfer): Use count_one_bits.
8599 (thumb2_copy_block_xfer): Use count_one_bits.
8600 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8601 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8602 (thumb_get_next_pcs_raw): Use count_one_bits.
8603 (arm_get_next_pcs_raw): Use count_one_bits_l.
8604 * arch/arm.c (bitcount): Remove.
8605 * arch/arm.h (bitcount): Remove.
8606
8084e579
TT
86072020-02-14 Tom Tromey <tromey@adacore.com>
8608
8609 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8610 Update.
8611 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8612 * dwarf2/loc.c (call_site_find_chain_1): Return
8613 unique_xmalloc_ptr.
8614 (call_site_find_chain): Likewise.
8615
258bf0ee
RB
86162020-02-14 Richard Biener <rguenther@suse.de>
8617
8618 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8619 on expression with division operators.
8620
f98a8458
AKS
86212020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8622
8623 * MAINTAINERS (Write After Approval): Adding myself.
8624
d1437c0e
TT
86252020-02-12 Tom Tromey <tom@tromey.com>
8626
8627 * event-loop.c (event_data, gdb_event, event_handler_func):
8628 Remove.
8629
3d4560f7
TT
86302020-02-12 Tom Tromey <tom@tromey.com>
8631
8632 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8633 (dwarf2_frame_objfile_data): Add comment.
8634 (find_comp_unit, set_comp_unit): New functions.
8635 (dwarf2_frame_find_fde): Use find_comp_unit.
8636 (dwarf2_build_frame_info): Use set_comp_unit.
8637
21982304
TT
86382020-02-12 Tom Tromey <tom@tromey.com>
8639
8640 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8641 (comp_unit): Don't initialize objfile.
8642 (execute_cfa_program): Add text_offset parameter.
8643 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8644 (dwarf2_frame_cache): Update.
8645 (dwarf2_build_frame_info): Don't set "objfile" member.
8646
4debb237
TT
86472020-02-12 Tom Tromey <tom@tromey.com>
8648
8649 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8650 (decode_frame_entry): Likewise.
8651 (dwarf2_build_frame_info): Update.
8652
0d404d44
TT
86532020-02-12 Tom Tromey <tom@tromey.com>
8654
8655 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8656 (decode_frame_entry_1): Use the comp_unit obstack.
8657
a7a3ae5c
TT
86582020-02-12 Tom Tromey <tom@tromey.com>
8659
8660 * dwarf2/frame.c (struct comp_unit): Add initializers and
8661 constructor.
8662 (dwarf2_frame_objfile_data): Store a comp_unit.
8663 (dwarf2_frame_find_fde): Update.
8664 (dwarf2_build_frame_info): Use "new".
8665
a9d65418
TT
86662020-02-12 Tom Tromey <tom@tromey.com>
8667
8668 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8669 (dwarf2_fde_table): Typedef for std::vector.
8670 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8671 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8672 (decode_frame_entry): Update.
8673 (dwarf2_build_frame_info): Use "new".
8674
7559c217
CB
86752020-02-12 Christian Biesinger <cbiesinger@google.com>
8676
8677 * arm-tdep.c (arm_gdbarch_init): Update.
8678 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8679 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8680 have_neon, is_m>: Change to bool.
8681
aeefc73c
CB
86822020-02-12 Christian Biesinger <cbiesinger@google.com>
8683
8684 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8685
d27b8e5f
TT
86862020-02-12 Tom Tromey <tom@tromey.com>
8687
8688 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8689
cd5900f3
HD
86902020-02-12 Hannes Domani <ssbssa@yahoo.de>
8691
8692 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8693 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8694
f056b22b
TT
86952020-02-11 Tom Tromey <tom@tromey.com>
8696
8697 * psymtab.h: Update comment.
8698
f92ff6b5
TT
86992020-02-11 Tom Tromey <tom@tromey.com>
8700
8701 * gdb_obstack.h (struct auto_obstack): Use
8702 DISABLE_COPY_AND_ASSIGN.
8703
3fd6912b
TT
87042020-02-11 Tom Tromey <tom@tromey.com>
8705
8706 * dwarf2/frame.h (struct objfile): Don't forward declare.
8707
69ed9b74
CB
87082020-02-11 Christian Biesinger <cbiesinger@google.com>
8709
8710 * cris-tdep.c (cris_supply_gregset): Change signature to match
8711 what struct regset expects.
8712 (cris_regset): New struct.
8713 (fetch_core_registers): Remove.
8714 (cris_iterate_over_regset_sections): New function.
8715 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8716 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8717
bda874f6
CB
87182020-02-11 Christian Biesinger <cbiesinger@google.com>
8719
8720 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8721 registers.
8722
754e1564
CB
87232020-02-11 Christian Biesinger <cbiesinger@google.com>
8724
8725 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8726
8ddd8e0e
SM
87272020-02-11 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * configure: Re-generate.
8730
898e7f60
SM
87312020-02-11 Simon Marchi <simon.marchi@efficios.com>
8732
8733 * configure: Re-generate.
8734
58df732b
SM
87352020-02-11 Simon Marchi <simon.marchi@efficios.com>
8736
8737 * acinclude: Update warning.m4 path.
8738 * warning.m4: Move to gdbsupport.
8739
da5bd37e
TT
87402020-02-11 Tom Tromey <tromey@adacore.com>
8741
8742 * remote.c (remote_console_output): Update.
8743 * printcmd.c (printf_command): Update.
8744 * event-loop.c (gdb_wait_for_event): Update.
8745 * linux-nat.c (sigchld_handler): Update.
8746 * remote-sim.c (gdb_os_write_stdout): Update.
8747 (gdb_os_flush_stdout): Update.
8748 (gdb_os_flush_stderr): Update.
8749 (gdb_os_write_stderr): Update.
8750 * exceptions.c (print_exception): Update.
8751 * remote-fileio.c (remote_fileio_func_read): Update.
8752 (remote_fileio_func_write): Update.
8753 * tui/tui.c (tui_enable): Update.
8754 * tui/tui-interp.c (tui_interp::init): Update.
8755 * utils.c (init_page_info): Update.
8756 (putchar_unfiltered, fputc_unfiltered): Update.
8757 (gdb_flush): Update.
8758 (emit_style_escape): Update.
8759 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8760 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8761 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8762 (stderr_file::write): Update.
8763 (stderr_file::puts): Update.
8764 * ui-file.h (ui_file_isatty, ui_file_write)
8765 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8766 (ui_file_puts): Don't declare.
8767
85f0dd3c
TV
87682020-02-10 Tom de Vries <tdevries@suse.de>
8769
8770 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8771 sentinel to char *.
8772
2e927613
TV
87732020-02-09 Tom de Vries <tdevries@suse.de>
8774
8775 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8776 filename if it matches "<artificial>".
8777
6bafc845
HD
87782020-02-09 Hannes Domani <ssbssa@yahoo.de>
8779
8780 * windows-tdep.c (struct enum_value_name): New struct.
8781 (create_enum): New function.
8782 (windows_get_siginfo_type): Create and use enum types.
8783
7928d571
HD
87842020-02-09 Hannes Domani <ssbssa@yahoo.de>
8785
8786 * NEWS: Mention $_siginfo support for Windows.
8787 * windows-nat.c (handle_exception): Set siginfo_er.
8788 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8789 (windows_xfer_siginfo): New function.
8790 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8791 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8792 (init_windows_gdbarch_data): New function.
8793 (get_windows_gdbarch_data): New function.
8794 (windows_get_siginfo_type): New function.
8795 (windows_init_abi): Register windows_get_siginfo_type.
8796 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8797
6751ebae
TT
87982020-02-08 Tom Tromey <tom@tromey.com>
8799
8800 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8801 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8802 <keep>: Declare method.
8803 <m_keep>: Remove member.
8804 <~cutu_reader>: Remove.
8805 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8806 (cutu_reader::cutu_reader): Update.
8807 (cutu_reader::keep): Rename from ~cutu_reader.
8808 (process_psymtab_comp_unit, build_type_psymtabs_1)
8809 (process_skeletonless_type_unit, load_partial_comp_unit)
8810 (load_full_comp_unit, dwarf2_read_addr_index)
8811 (read_signatured_type): Update.
8812
135f5437
TT
88132020-02-08 Tom Tromey <tom@tromey.com>
8814
8815 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8816 "want_partial_unit" parameter.
8817 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8818 Inline check for DW_TAG_partial_unit.
8819 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8820
9f66ff1c
TT
88212020-02-08 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8824 read.c.
8825 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8826 read.c.
8827
c8a7a66f
TT
88282020-02-08 Tom Tromey <tom@tromey.com>
8829
8830 * dwarf2/read.c (read_address): Move to comp-unit.c.
8831 (dwarf2_rnglists_process, dwarf2_ranges_process)
8832 (read_attribute_value, dwarf_decode_lines_1)
8833 (var_decode_location, decode_locdesc): Update.
8834 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8835 read.c. Remove "cu" parameter.
8836 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8837 method.
8838
8266302d
TT
88392020-02-08 Tom Tromey <tom@tromey.com>
8840
8841 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8842 (read_indirect_line_string): Update.
8843 * dwarf2/comp-unit.c (read_offset): Remove.
8844 (read_comp_unit_head): Update.
8845 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8846 method.
8847 (read_offset): Don't declare.
8848
4057dfde
TT
88492020-02-08 Tom Tromey <tom@tromey.com>
8850
8851 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8852 * dwarf2/read.c (struct comp_unit_head): Move to
8853 dwarf2/comp-unit.h.
8854 (enum class rcuh_kind): Move to comp-unit.h.
8855 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8856 (read_comp_unit_head, error_check_comp_unit_head)
8857 (read_and_check_comp_unit_head): Move to comp-unit.c.
8858 (read_offset, dwarf_unit_type_name): Likewise.
8859 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8860 (cutu_reader::cutu_reader, read_call_site_scope)
8861 (find_partial_die, follow_die_offset): Update.
8862 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8863
24aa364d
TT
88642020-02-08 Tom Tromey <tom@tromey.com>
8865
8866 * dwarf2/read.c (read_offset_1): Move to leb.c.
8867 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8868 (dwarf_decode_macro_bytes): Update.
8869 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8870 * dwarf2/leb.h (read_offset): Declare.
8871
2c7d5afc
TT
88722020-02-08 Tom Tromey <tom@tromey.com>
8873
8874 * dwarf2/read.c (dwarf2_section_size): Remove.
8875 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8876 Update.
8877 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8878
4075cb26
TT
88792020-02-08 Tom Tromey <tom@tromey.com>
8880
8881 * dwarf2/read.c (read_initial_length): Move to leb.c.
8882 * dwarf2/leb.h (read_initial_length): Declare.
8883 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8884 handle_nonstd parameter.
8885 * dwarf2/frame.c (read_initial_length): Remove.
8886 (decode_frame_entry_1): Update.
8887
09ba997f
TT
88882020-02-08 Tom Tromey <tom@tromey.com>
8889
8890 * dwarf2/loc.c (dwarf2_find_location_expression)
8891 (dwarf_evaluate_loc_desc::get_tls_address)
8892 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8893 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8894 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8895 (dwarf2_compile_property_to_c)
8896 (dwarf2_loc_desc_get_symbol_read_needs)
8897 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8898 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8899 (loclist_describe_location, loclist_tracepoint_var_ref)
8900 (loclist_generate_c_location): Update.
8901 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8902 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8903 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8904 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8905 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8906 (dwarf2_per_cu_data::addr_size)
8907 (dwarf2_per_cu_data::ref_addr_size)
8908 (dwarf2_per_cu_data::text_offset)
8909 (dwarf2_per_cu_data::addr_type): Now methods.
8910 (per_cu_header_read_in): Make per_cu "const".
8911 (dwarf2_version): Remove.
8912 (dwarf2_per_cu_data::int_type): Now a method.
8913 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8914 (set_die_type, read_array_type, read_subrange_index_type)
8915 (read_tag_string_type, read_subrange_type): Update.
8916 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8917 offset_size, ref_addr_size, text_offset, addr_type, version,
8918 objfile, int_type, addr_sized_int_type>: Declare methods.
8919
96c738c0
TT
89202020-02-08 Tom Tromey <tom@tromey.com>
8921
8922 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8923 Move earlier.
8924
8fdd972c
TT
89252020-02-08 Tom Tromey <tom@tromey.com>
8926
8927 * dwarf2/read.h (dwarf_line_debug): Declare.
8928 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8929 * dwarf2/read.c: Move line_header code to new files.
8930 (dwarf_line_debug): No longer static.
8931 * dwarf2/line-header.c: New file.
8932 * dwarf2/line-header.h: New file.
8933
03075812
TT
89342020-02-08 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2/read.c (struct line_header) <file_full_name,
8937 file_file_name>: Return unique_xmalloc_ptr.
8938 (line_header::file_file_name): Update.
8939 (line_header::file_full_name): Update.
8940 (dw2_get_file_names_reader): Update.
8941 (macro_start_file): Update.
8942
bb822404
TT
89432020-02-08 Tom Tromey <tom@tromey.com>
8944
8945 * dwarf2/read.c (struct line_header) <file_full_name,
8946 file_file_name>: Declare methods.
8947 (dw2_get_file_names_reader): Update.
8948 (file_file_name): Now a method.
8949 (file_full_name): Likewise.
8950 (macro_start_file): Update.
8951
009b64fc
TT
89522020-02-08 Tom Tromey <tom@tromey.com>
8953
8954 * dwarf2/read.c (dwarf_always_disassemble)
8955 (show_dwarf_always_disassemble): Move to loc.c.
8956 (_initialize_dwarf2_read): Move "always-disassemble" registration
8957 to loc.c.
8958 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8959 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8960 static.
8961 (show_dwarf_always_disassemble): Move from read.c.
8962 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8963
5895093f
TT
89642020-02-08 Tom Tromey <tom@tromey.com>
8965
8966 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8967 (create_quick_file_names_table): Return htab_up.
8968 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8969 Update.
8970 * dwarf2/read.h (struct dwarf2_per_objfile)
8971 <quick_file_names_table>: Now htab_up.
8972
b3b32279
TT
89732020-02-08 Tom Tromey <tom@tromey.com>
8974
8975 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8976
1d33d811
TT
89772020-02-08 Tom Tromey <tom@tromey.com>
8978
8979 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8980 Rewrite.
8981 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8982 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8983 (abbrev_table::abbrev_table): No longer inline.
8984 (ABBREV_HASH_SIZE): Remove.
8985 (abbrev_table::m_abbrevs): Now an htab_up.
8986
86de1d91
TT
89872020-02-08 Tom Tromey <tom@tromey.com>
8988
8989 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8990 (cutu_reader): Update.
8991 (build_type_psymtabs_1): Update.
8992 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8993 (abbrev_table::alloc_abbrev): Update.
8994 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8995 (abbrev_table::read): New static method, renamed from
8996 abbrev_table_read_table.
8997 (abbrev_table::alloc_abbrev)
8998 (abbrev_table::add_abbrev): Now private.
8999 (abbrev_table::abbrev_table): Now private.
9000 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9001
0335378b
TT
90022020-02-08 Tom Tromey <tom@tromey.com>
9003
9004 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9005 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9006 htab_up.
9007
48b490f2
TT
90082020-02-08 Tom Tromey <tom@tromey.com>
9009
9010 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9011 htab_up.
9012 (lookup_dwo_unit_in_dwp): Update.
9013 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9014 on obstack.
9015
bc68fb19
TT
90162020-02-08 Tom Tromey <tom@tromey.com>
9017
9018 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9019 obstack.
9020
d15acc42
TT
90212020-02-08 Tom Tromey <tom@tromey.com>
9022
9023 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9024 line_header_hash.
9025 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9026 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9027 Change type to htab_up.
9028
eaa5fa8b
TT
90292020-02-08 Tom Tromey <tom@tromey.com>
9030
9031 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9032 htab_up. Don't allocate on obstack.
9033 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9034 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9035 Change type to htab_up.
9036
b0b6a987
TT
90372020-02-08 Tom Tromey <tom@tromey.com>
9038
9039 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9040 Change type to htab_up.
9041 * dwarf2/read.c (create_signatured_type_table_from_index)
9042 (create_signatured_type_table_from_debug_names)
9043 (create_all_type_units, add_type_unit)
9044 (lookup_dwo_signatured_type, lookup_signatured_type)
9045 (process_skeletonless_type_unit): Update.
9046 (create_debug_type_hash_table, create_debug_types_hash_table):
9047 Change type of types_htab.
9048 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9049 htab_up. Don't allocate on obstack.
9050 (create_cus_hash_table): Change type of cus_htab parameter.
9051 (struct dwo_file) <cus, tus>: Now htab_up.
9052 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9053 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9054 (queue_and_load_all_dwo_tus): Update.
9055 * dwarf2/index-write.c (write_gdbindex): Update.
9056 (write_debug_names): Update.
9057
39856def
TT
90582020-02-08 Tom Tromey <tom@tromey.com>
9059
9060 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9061 dwarf2/read.c. Remove "next" member. Add constructor ntad
9062 destructor.
9063 (struct dwarf2_per_objfile) <queue>: New member.
9064 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9065 dwarf2/read.h.
9066 (dwarf2_queue, dwarf2_queue_tail): Remove.
9067 (class dwarf2_queue_guard): Add parameter to constructor. Use
9068 DISABLE_COPY_AND_ASSIGN.
9069 <m_per_objfile>: New member.
9070 <~dwarf2_queue_guard>: Rewrite.
9071 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9072 Update.
9073 (~dwarf2_queue_item): New.
9074
3e225074
TT
90752020-02-08 Tom Tromey <tom@tromey.com>
9076
9077 * dwarf2/read.c (struct die_info) <has_children>: New member.
9078 (dw2_get_file_names_reader): Remove has_children.
9079 (dw2_get_file_names): Update.
9080 (read_cutu_die_from_dwo): Remove has_children.
9081 (cutu_reader::init_tu_and_read_dwo_dies)
9082 (cutu_reader::cutu_reader): Update.
9083 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9084 Remove has_children.
9085 (build_type_psymtabs_1, process_skeletonless_type_unit)
9086 (load_partial_comp_unit, load_full_comp_unit): Update.
9087 (create_dwo_cu_reader): Remove has_children.
9088 (create_cus_hash_table, read_die_and_children): Update.
9089 (read_full_die_1,read_full_die): Remove has_children.
9090 (read_signatured_type): Update.
9091 (class cutu_reader) <has_children>: Remove.
9092
82ca8957
TT
90932020-02-08 Tom Tromey <tom@tromey.com>
9094
9095 * dwarf2/expr.c: Rename from dwarf2expr.c.
9096 * dwarf2/expr.h: Rename from dwarf2expr.h.
9097 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9098 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9099 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9100 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9101 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9102 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9103 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9104 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9105 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9106 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9107 * dwarf2/loc.c: Rename from dwarf2loc.c.
9108 * dwarf2/loc.h: Rename from dwarf2loc.h.
9109 * dwarf2/read.c: Rename from dwarf2read.c.
9110 * dwarf2/read.h: Rename from dwarf2read.h.
9111 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9112 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9113 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9114 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9115 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9116 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9117 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9118 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9119 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9120 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9121 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9122 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9123 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9124 Update.
9125 * Makefile.in (COMMON_SFILES): Update.
9126 (HFILES_NO_SRCDIR): Update.
9127
9e35d499
TT
91282020-02-08 Tom Tromey <tom@tromey.com>
9129
9130 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9131 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9132
1eba2311
TT
91332020-02-08 Tom Tromey <tom@tromey.com>
9134
9135 * dwarf2read.h (struct die_info): Don't declare.
9136
e41c2da2
TT
91372020-02-08 Tom Tromey <tom@tromey.com>
9138
9139 * dwarf2read.h (die_info_ptr): Remove typedef.
9140
4fc6c0d5
TT
91412020-02-08 Tom Tromey <tom@tromey.com>
9142
9143 * dwarf2read.c (read_call_site_scope)
9144 (handle_data_member_location, dwarf2_add_member_fn)
9145 (mark_common_block_symbol_computed, read_common_block)
9146 (attr_to_dynamic_prop, partial_die_info::read)
9147 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9148 (dwarf2_symbol_mark_computed, set_die_type): Update.
9149 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9150 method.
9151 (attr_form_is_block): Don't declare.
9152 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9153
cd6c91b4
TT
91542020-02-08 Tom Tromey <tom@tromey.com>
9155
9156 * dwarf2read.c (dwarf2_find_base_address, )
9157 (read_call_site_scope, rust_containing_type)
9158 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9159 (handle_data_member_location, dwarf2_add_member_fn)
9160 (get_alignment, read_structure_type, process_structure_scope)
9161 (mark_common_block_symbol_computed, read_common_block)
9162 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9163 (partial_die_info::read, read_attribute_value, new_symbol)
9164 (lookup_die_type, dwarf2_get_ref_die_offset)
9165 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9166 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9167 (dwarf2_symbol_mark_computed): Update.
9168 * dwarf2/attribute.h (struct attribute) <value_as_address,
9169 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9170 methods.
9171 (value_as_address, attr_form_is_section_offset)
9172 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9173 * dwarf2/attribute.c (attribute::value_as_address)
9174 (attribute::form_is_section_offset, attribute::form_is_constant)
9175 (attribute::form_is_ref): Now methods.
9176
162dce55
TT
91772020-02-08 Tom Tromey <tom@tromey.com>
9178
9179 * dwarf2read.c (struct attribute, DW_STRING)
9180 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9181 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9182 (attr_form_is_block, attr_form_is_section_offset)
9183 (attr_form_is_constant, attr_form_is_ref): Move.
9184 * dwarf2/attribute.h: New file.
9185 * dwarf2/attribute.c: New file, from dwarf2read.c.
9186 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9187
3054dd54
TT
91882020-02-08 Tom Tromey <tom@tromey.com>
9189
9190 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9191 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9192 Move.
9193 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9194 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9195 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9196 abbrev.c.
9197 * dwarf2/abbrev.h: New file.
9198 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9199 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9200
96b79293
TT
92012020-02-08 Tom Tromey <tom@tromey.com>
9202
9203 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9204 (dwarf2_section_size, dwarf2_get_section_info)
9205 (create_signatured_type_table_from_debug_names)
9206 (create_addrmap_from_aranges, read_debug_names_from_section)
9207 (get_gdb_index_contents_from_section, read_comp_unit_head)
9208 (error_check_comp_unit_head, read_abbrev_offset)
9209 (create_debug_type_hash_table, init_cu_die_reader)
9210 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9211 (read_comp_units_from_section, create_cus_hash_table)
9212 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9213 (create_dwp_v2_section, dwarf2_rnglists_process)
9214 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9215 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9216 (read_indirect_string_from_dwz, read_addr_index_1)
9217 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9218 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9219 (fill_in_loclist_baton): Update.
9220 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9221 get_containing_section, get_bfd_owner, get_bfd_section,
9222 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9223 (dwarf2_read_section, get_section_name, get_section_file_name)
9224 (get_containing_section, get_section_bfd_owner)
9225 (get_section_bfd_section, get_section_name, get_section_file_name)
9226 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9227 declare.
9228 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9229 (dwarf2_section_info::get_bfd_owner)
9230 (dwarf2_section_info::get_bfd_section)
9231 (dwarf2_section_info::get_name)
9232 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9233 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9234 (dwarf2_section_info::read): Now methods.
9235 * dwarf-index-write.c (class debug_names): Update.
9236
2c86cff9
TT
92372020-02-08 Tom Tromey <tom@tromey.com>
9238
9239 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9240 Move to dwarf2/section.h.
9241 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9242 (get_section_bfd_section, get_section_name)
9243 (get_section_file_name, get_section_id, get_section_flags)
9244 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9245 dwarf2/section.c.
9246 * dwarf2/section.h: New file.
9247 * dwarf2/section.c: New file, from dwarf2read.c.
9248 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9249
f4382c45
TT
92502020-02-08 Tom Tromey <tom@tromey.com>
9251
9252 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9253 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9254 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9255 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9256 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9257 * dwarf2/leb.h: New file, from dwarf2read.c.
9258 * dwarf2/leb.c: New file, from dwarf2read.c.
9259 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9260 Remove.
9261 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9262 (COMMON_SFILES): Add dwarf2/leb.c.
9263
01840b7a
JB
92642020-02-08 Joel Brobecker <brobecker@adacore.com>
9265
9266 GDB 9.1 released.
9267
dfcb27e4
IB
92682020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9269
9270 PR gdb/25190:
aac66a4c
SM
9271 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9272 * gdb/remote.c (remote_console_output): Update.
9273 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9274 (ui_file_puts): ...this.
9275 * gdb/ui-file.h (ui_file_puts): Add declaration.
9276 * gdb/utils.c (emit_style_escape): Update.
9277 (flush_wrap_buffer): Update.
9278 (fputs_maybe_filtered): Update.
9279 (fputs_unfiltered): Add function.
dfcb27e4 9280
faa17681
IB
92812020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9282
aac66a4c
SM
9283 * gdb/event-loop.c (gdb_wait_for_event): Update.
9284 * gdb/printcmd.c (printf_command): Update.
9285 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9286 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9287 (gdb_os_flush_stderr): Update.
9288 * gdb/remote.c (remote_console_output): Update.
9289 * gdb/ui-file.c (gdb_flush): Rename to...
9290 (ui_file_flush): ...this.
9291 (stderr_file::write): Update.
9292 (stderr_file::puts): Update.
9293 * gdb/ui-file.h (gdb_flush): Rename to...
9294 (ui_file_flush): ...this.
9295 * gdb/utils.c (gdb_flush): Add function.
9296 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9297
5abbbe1d
TT
92982020-02-07 Tom Tromey <tromey@adacore.com>
9299
9300 PR breakpoints/24915:
9301 * source.c (find_and_open_source): Do not check basenames_may_differ.
9302
919adfe8
TT
93032020-02-07 Tom Tromey <tom@tromey.com>
9304
9305 * README: Update gdbserver documentation.
9306 * gdbserver: Move to top level.
9307 * configure.tgt (build_gdbserver): Remove.
9308 * configure.ac: Remove --enable-gdbserver.
9309 * configure: Rebuild.
9310 * Makefile.in (distclean): Don't mention gdbserver.
9311
1d5d29e7
SV
93122020-02-06 Shahab Vahedi <shahab@synopsys.com>
9313
9314 * source-cache.c (source_cache::ensure): Surround
9315 get_plain_source_lines with a try/catch.
9316 (source_cache::get_line_charpos): Get rid of try/catch
9317 and only check for the return value of "ensure".
9318 * tui/tui-source.c (tui_source_window::set_contents):
9319 Simplify "nlines" calculation.
9320
6eb1129c
SV
93212020-02-06 Shahab Vahedi <shahab@synopsys.com>
9322
9323 * MAINTAINERS (Write After Approval): Add myself.
9324
c6a42d11
CB
93252020-02-05 Christian Biesinger <cbiesinger@google.com>
9326
9327 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9328 function call.
9329
c8ecdda6
CB
93302020-02-05 Christian Biesinger <cbiesinger@google.com>
9331
9332 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9333
f6480e70
MR
93342020-02-05 Maciej W. Rozycki <macro@wdc.com>
9335
9336 * nat/riscv-linux-tdesc.h: New file.
9337 * nat/riscv-linux-tdesc.c: New file, taking code from...
9338 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9339 ... here.
9340 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9341 NATDEPFILES.
9342
dcc9fbc6
AB
93432020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9344
9345 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9346 we don't set the fake simulator ptid to the null_ptid.
9347
719546c4
SM
93482020-02-03 Simon Marchi <simon.marchi@efficios.com>
9349
9350 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9351 * gdbthread.h (class thread_info) <resumed>: Likewise.
9352 * infrun.c (resume_1): Likewise.
9353 (proceed): Likewise.
9354 (infrun_thread_stop_requested): Likewise.
9355 (stop_all_threads): Likewise.
9356 (handle_inferior_event): Likewise.
9357 (restart_threads): Likewise.
9358 (finish_step_over): Likewise.
9359 (keep_going_stepped_thread): Likewise.
9360 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9361 (linux_handle_extended_wait): Likewise.
9362 * record-btrace.c (get_thread_current_frame_id): Likewise.
9363 * record-full.c (record_full_wait_1): Likewise.
9364 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9365 * target.c (target_resume): Likewise.
9366 * thread.c (set_running_thread): Likewise.
9367
e409c542
AKS
93682020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9369
9370 * f-valprint.c (f77_print_array_1): Changed datatype of index
9371 variable to LONGEST from int to enable it to contain bound
9372 values correctly.
9373
ee98c0da
MR
93742020-02-03 Maciej W. Rozycki <macro@wdc.com>
9375
9376 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9377 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9378 offsets according to FLEN determined.
9379 (riscv_linux_nat_target::read_description): Determine FLEN
9380 dynamically.
9381 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9382 according to FLEN determined.
9383 (riscv_linux_nat_target::store_registers): Likewise.
9384
aa66aac4
SV
93852020-02-01 Shahab Vahedi <shahab@synopsys.com>
9386
9387 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9388 when reg->group is empty and reggroup is not.
9389
fd9faca8
TT
93902020-01-31 Tom Tromey <tromey@adacore.com>
9391
9392 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9393 Call beneath target's mourn_inferior after unpushing.
9394
42330a68
AB
93952020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9396
9397 PR tui/9765
9398 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9399 have enough lines to fill the screen, still return the lowest
9400 address we found.
9401
7a27a45b
AB
94022020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9403
9404 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9405 '-', '<', and '>' commands.
9406
c47f70e2
PA
94072020-01-29 Pedro Alves <palves@redhat.com>
9408 Sergio Durigan Junior <sergiodj@redhat.com>
9409
9410 * infcmd.c (construct_inferior_arguments): Assert that
9411 'argc' is greater than 0.
9412
5133a315
LM
94132020-01-29 Luis Machado <luis.machado@linaro.org>
9414
9415 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9416 (BRK_INSN_MASK): Define to 0xd4200000.
9417 (aarch64_program_breakpoint_here_p): New function.
9418 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9419 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9420 breakpoint.c.
9421 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9422 breakpoint.h
9423 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9424 call gdbarch_program_breakpoint_here_p.
9425 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9426 default_program_breakpoint_here_p, changed return type to bool and
9427 simplified.
9428 * breakpoint.h (program_breakpoint_here): Moved prototype to
9429 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9430 return type to bool.
9431 * gdbarch.c: Regenerate.
9432 * gdbarch.h: Regenerate.
9433 * gdbarch.sh (program_breakpoint_here_p): New method.
9434 * infrun.c (handle_signal_stop): Call
9435 gdbarch_program_breakpoint_here_p.
9436
168f8c6b
TT
94372020-01-26 Tom Tromey <tom@tromey.com>
9438
9439 * ctfread.c (struct ctf_fp_info): Reindent.
9440 (_initialize_ctfread): Remove.
9441
128a391f
TT
94422020-01-26 Tom Tromey <tom@tromey.com>
9443
9444 * psymtab.c (partial_map_expand_apply)
9445 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9446 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9447 (psym_print_stats, psym_expand_symtabs_for_function)
9448 (psym_map_symbol_filenames, psym_map_matching_symbols)
9449 (psym_expand_symtabs_matching)
9450 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9451 (maintenance_check_psymtabs): Use new methods.
9452 * psympriv.h (struct partial_symtab) <readin_p,
9453 get_compunit_symtab>: New methods.
9454 <readin, compunit_symtab>: Remove members.
9455 (struct standard_psymtab): New.
9456 (struct legacy_psymtab): Derive from standard_psymtab.
9457 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9458 standard_psymtab.
9459 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9460
0494dbec
TT
94612020-01-26 Tom Tromey <tom@tromey.com>
9462
9463 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9464 read_dependencies. Add assert.
9465 * psymtab.c (partial_symtab::read_dependencies): New method.
9466 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9467 method.
9468 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9469 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9470 read_dependencies.
9471 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9472 Add assert.
9473
8566b89b
TT
94742020-01-26 Tom Tromey <tom@tromey.com>
9475
9476 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9477 Call expand_psymtab.
9478 (xcoff_read_symtab): Call expand_psymtab.
9479 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9480 legacy_expand_psymtab.
9481 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9482 method.
9483 (struct legacy_psymtab) <expand_psymtab>: Implement.
9484 <legacy_expand_psymtab>: New member.
9485 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9486 (parse_partial_symbols): Set legacy_expand_psymtab.
9487 (psymtab_to_symtab_1): Change argument order. Call
9488 expand_psymtab.
9489 (new_psymtab): Set legacy_expand_psymtab.
9490 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9491 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9492 expand_psymtab.
9493 (dwarf2_psymtab::expand_psymtab): Rename from
9494 psymtab_to_symtab_1. Call expand_psymtab.
9495 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9496 (dbx_end_psymtab): Likewise.
9497 (dbx_psymtab_to_symtab_1): Change argument order. Call
9498 expand_psymtab.
9499 (dbx_read_symtab): Call expand_psymtab.
9500 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9501 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9502 (ctf_psymtab::read_symtab): Call expand_psymtab.
9503
077cbab2
TT
95042020-01-26 Tom Tromey <tom@tromey.com>
9505
9506 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9507 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9508 messages.
9509 * mdebugread.c (mdebug_read_symtab): Remove prints.
9510 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9511 assert.
9512 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9513
891813be
TT
95142020-01-26 Tom Tromey <tom@tromey.com>
9515
9516 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9517 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9518 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9519 legacy_symtab.
9520 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9521 * psymtab.c (psymtab_to_symtab): Call method.
9522 (dump_psymtab): Update.
9523 * psympriv.h (struct partial_symtab): Add virtual destructor.
9524 <read_symtab>: New method.
9525 (struct legacy_symtab): New.
9526 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9527 (struct pst_map) <pst>: Now a legacy_psymtab.
9528 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9529 (new_psymtab): Use legacy_psymtab.
9530 * dwarf2read.h (struct dwarf2_psymtab): New.
9531 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9532 * dwarf2read.c (dwarf2_create_include_psymtab)
9533 (dwarf2_build_include_psymtabs, create_type_unit_group)
9534 (create_partial_symtab, process_psymtab_comp_unit_reader)
9535 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9536 (set_partial_user): Use dwarf2_psymtab.
9537 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9538 (psymtab_to_symtab_1, process_full_comp_unit)
9539 (process_full_type_unit, dwarf2_ranges_read)
9540 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9541 (dwarf_decode_lines): Use dwarf2_psymtab.
9542 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9543 (add_address_entry_worker, write_one_signatured_type)
9544 (recursively_count_psymbols, recursively_write_psymbols)
9545 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9546 (write_debug_names): Likewise.
9547 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9548 <pst>: Now a legacy_psymtab.
9549 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9550 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9551 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9552 * ctfread.c (struct ctf_psymtab): New.
9553 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9554 ctf_psymtab.
9555 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9556 (create_partial_symtab): Return a ctf_psymtab.
9557 (scan_partial_symbols): Update.
9558
c3693a1d
TT
95592020-01-26 Tom Tromey <tom@tromey.com>
9560
9561 * xcoffread.c (xcoff_start_psymtab): Use new.
9562 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9563 renamed from start_psymtab_common.
9564 * psympriv.h (struct partial_symtab): Add new constructor.
9565 (start_psymtab_common): Don't declare.
9566 * mdebugread.c (parse_partial_symbols): Use new.
9567 * dwarf2read.c (create_partial_symtab): Use new.
9568 * dbxread.c (start_psymtab): Use new.
9569 * ctfread.c (create_partial_symtab): Use new.
9570
32caafd0
TT
95712020-01-26 Tom Tromey <tom@tromey.com>
9572
9573 * xcoffread.c (xcoff_end_psymtab): Use new.
9574 * psymtab.c (start_psymtab_common): Use new.
9575 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9576 Update.
9577 * psympriv.h (struct partial_symtab): Add parameters to
9578 constructor. Don't inline.
9579 (allocate_psymtab): Don't declare.
9580 * mdebugread.c (new_psymtab): Use new.
9581 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9582 * dbxread.c (dbx_end_psymtab): Use new.
9583
abaa2f23
TT
95842020-01-26 Tom Tromey <tom@tromey.com>
9585
9586 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9587 allocate_psymtab. Update documentation.
9588 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9589 allocate_psymtab. Do not use new.
9590 (allocate_psymtab): Use new. Update.
9591
6d94535f
TT
95922020-01-26 Tom Tromey <tom@tromey.com>
9593
9594 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9595 * psymtab.c (psym_print_stats): Update.
9596 * psympriv.h (struct partial_symtab) <readin,
9597 psymtabs_addrmap_supported, anonymous>: Now bool.
9598 * mdebugread.c (psymtab_to_symtab_1): Update.
9599 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9600 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9601 (process_full_comp_unit, process_full_type_unit): Update.
9602 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9603 * ctfread.c (psymtab_to_symtab): Update.
9604
6f17252b
TT
96052020-01-26 Tom Tromey <tom@tromey.com>
9606
9607 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9608 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9609 * psymtab.c (psymtab_storage): Delete psymtabs.
9610 (psymtab_storage::allocate_psymtab): Use new.
9611 (psymtab_storage::discard_psymtab): Use delete.
9612 * psympriv.h (struct partial_symtab): Add constructor and
9613 initializers.
9614
f6f1cebc
TT
96152020-01-26 Tom Tromey <tom@tromey.com>
9616
9617 * machoread.c: Do not include psympriv.h.
9618
e47e48f6
PW
96192020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9620
9621 * NEWS: Mention the new option and the set/show commands.
9622
a2fedca9
PW
96232020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9624
9625 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9626 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9627 (validate_exec_file): New variables, enums, functions.
9628 (exec_file_locate_attach, print_section_info): Style the filenames.
9629 (_initialize_exec): Install show_exec_file_mismatch_command and
9630 set_exec_file_mismatch_command.
9631 * gdbcore.h (validate_exec_file): Declare.
9632 * infcmd.c (attach_command): Call validate_exec_file.
9633 * remote.c ( remote_target::remote_add_inferior): Likewise.
9634
7ffa82e1
AB
96352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9636
9637 * frame.c (find_frame_sal): Move call to get_next_frame into more
9638 inner scope.
9639 * inline-frame.c (inilne_state) <inline_state>: Update argument
9640 types.
9641 (inilne_state) <skipped_symbol>: Rename to...
9642 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9643 (skip_inline_frames): Build vector of skipped symbols and use this
9644 to reate the inline_state.
9645 (inline_skipped_symbol): Add a comment and some assertions, fetch
9646 skipped symbol from the list.
9647
3d92a3e3
AB
96482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9649
9650 * buildsym.c (lte_is_less_than): Delete.
9651 (buildsym_compunit::end_symtab_with_blockvector): Create local
9652 lambda function to sort line table entries, and use
9653 std::stable_sort instead of std::sort.
9654 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9655 markers when looking for a previous line.
9656
94a72be7
AB
96572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9658
9659 * dwarf2read.c (lnp_state_machine::record_line): Include
9660 end_sequence parameter in debug print out. Record the line if we
9661 are at an end_sequence marker even if it's not the start of a
9662 statement.
9663 * symmisc.c (maintenance_print_one_line_table): Print end of
9664 sequence markers with 'END' not '0'.
9665
53af73bf
PA
96662020-01-24 Pedro Alves <palves@redhat.com>
9667
9668 PR gdb/25410
9669 * thread.c (scoped_restore_current_thread::restore): Use
9670 switch_to_inferior_no_thread.
9671 * exec.c: Include "progspace-and-thread.h".
9672 (add_target_sections, remove_target_sections):
9673 scoped_restore_current_pspace_and_thread instead of
9674 scoped_restore_current_thread.
9675 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9676 and aspace to the inferior before calling clone_program_space.
9677 Remove stale comment.
9678
3050c6f4
CB
96792020-01-24 Christian Biesinger <cbiesinger@google.com>
9680
9681 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9682 (arm_netbsd_nat_target::fetch_registers): ...this.
9683 (arm_nbsd_nat_target::store_registers): Rename to...
9684 (arm_netbsd_nat_target::store_registers): ...this.
9685
73685c7e
CB
96862020-01-24 Christian Biesinger <cbiesinger@google.com>
9687
9688 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9689 register_t.
9690
89203d40
CB
96912020-01-24 Christian Biesinger <cbiesinger@google.com>
9692
9693 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9694 Update comment.
9695 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9696 Likewise.
9697 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9698 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9699 the correct replacement (iterate_over_regset_sections).
9700 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9701 Update comment.
9702
1ba1ac88
AB
97032020-01-24 Graham Markall <graham.markall@embecosm.com>
9704
9705 PR gdb/23718
9706 * gdb/python/python.c (execute_gdb_command): Call
9707 async_enable_stdin in catch block.
9708
f3364a6d
AB
97092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9710
9711 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9712 SWITCH_THRU_ALL_UIS.
9713
733d0a67
AB
97142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9715
9716 PR tui/9765
9717 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9718 comment, add extra parameter, and update to store previous symbol
9719 when appropriate.
9720 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9721 add extra parameter.
9722 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9723 remove unneeded parameter, add try/catch around gdb_print_insn,
9724 rewrite to add items to asm_lines vector.
9725 (tui_find_backward_disassembly_start_address): New function.
9726 (tui_find_disassembly_address): Updated throughout.
9727 (tui_disasm_window::set_contents): Update for changes to
9728 tui_disassemble.
9729 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9730 number of lines to scroll.
9731
b3b3bada
SM
97322020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9733
9734 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9735 (SECT_OFF_DATA): Likewise.
9736 (SECT_OFF_RODATA): Likewise.
9737 (SECT_OFF_TEXT): Likewise.
9738 (SECT_OFF_BSS): Likewise.
9739 (struct objfile) <text_section_offset, data_section_offset>: New
9740 methods.
9741 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9742 objfile::text_section_offset.
9743 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9744 * coffread.c (coff_symtab_read): Likewise.
9745 (enter_linenos): Likewise.
9746 (process_coff_symbol): Likewise.
9747 * ctfread.c (get_objfile_text_range): Likewise.
9748 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9749 Use objfile::data_section_offset.
9750 * dwarf2-frame.c (execute_cfa_program): Use
9751 objfile::text_section_offset.
9752 (dwarf2_frame_find_fde): Likewise.
9753 * dwarf2read.c (create_addrmap_from_index): Likewise.
9754 (create_addrmap_from_aranges): Likewise.
9755 (dw2_find_pc_sect_compunit_symtab): Likewise.
9756 (process_psymtab_comp_unit_reader): Likewise.
9757 (add_partial_symbol): Likewise.
9758 (add_partial_subprogram): Likewise.
9759 (process_full_comp_unit): Likewise.
9760 (read_file_scope): Likewise.
9761 (read_func_scope): Likewise.
9762 (read_lexical_block_scope): Likewise.
9763 (read_call_site_scope): Likewise.
9764 (dwarf2_rnglists_process): Likewise.
9765 (dwarf2_ranges_process): Likewise.
9766 (dwarf2_ranges_read): Likewise.
9767 (dwarf_decode_lines_1): Likewise.
9768 (new_symbol): Likewise.
9769 (dwarf2_fetch_die_loc_sect_off): Likewise.
9770 (dwarf2_per_cu_text_offset): Likewise.
9771 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9772 * hppa-tdep.c (read_unwind_info): Likewise.
9773 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9774 * psympriv.h (struct partial_symtab): Likewise.
9775 * psymtab.c (find_pc_sect_psymtab): Likewise.
9776 * solib-svr4.c (enable_break): Likewise.
9777 * stap-probe.c (relocate_address): Use
9778 objfile::data_section_offset.
9779 * xcoffread.c (enter_line_range): Use
9780 objfile::text_section_offset.
9781 (read_xcoff_symtab): Likewise.
9782
ab53f382
SM
97832020-01-23 Simon Marchi <simon.marchi@efficios.com>
9784
9785 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9786 declaration to narrower scopes.
9787
e7eee665
SM
97882020-01-23 Simon Marchi <simon.marchi@efficios.com>
9789
9790 * darwin-nat.h (struct darwin_exception_msg, enum
9791 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9792 Move up.
9793 (class darwin_nat_target) <wait_1, check_new_threads,
9794 decode_exception_message, decode_message, stop_inferior,
9795 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9796 * darwin-nat.c (darwin_check_new_threads): Rename to...
9797 (darwin_nat_target::check_new_threads): ... this.
9798 (darwin_suspend_inferior_it): Remove.
9799 (darwin_decode_exception_message): Rename to...
9800 (darwin_nat_target::decode_exception_message): ... this.
9801 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9802 (darwin_decode_message): Rename to...
9803 (darwin_nat_target::decode_message): ... this.
9804 (cancel_breakpoint): Rename to...
9805 (darwin_nat_target::cancel_breakpoint): ... this.
9806 (darwin_wait): Rename to...
9807 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9808 instead of iterate_over_inferiors.
9809 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9810 (darwin_stop_inferior): Rename to...
9811 (darwin_nat_target::stop_inferior): ... this.
9812 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9813 (darwin_init_thread_list): Rename to...
9814 (darwin_nat_target::init_thread_list): ... this.
9815 (darwin_ptrace_him): Rename to...
9816 (darwin_nat_target::ptrace_him): ... this.
9817 (darwin_nat_target::create_inferior): Pass lambda function to
9818 fork_inferior.
9819 (darwin_nat_target::detach): Call stop_inferior instead of
9820 darwin_stop_inferior.
9821 * fork-inferior.h (fork_inferior): Change init_trace_fun
9822 parameter to gdb::function_view.
9823 * fork-inferior.c (fork_inferior): Likewise.
9824
c162ed3e
HD
98252020-01-23 Hannes Domani <ssbssa@yahoo.de>
9826
9827 * i386-cygwin-tdep.c (core_process_module_section): Update.
9828 * windows-nat.c (struct lm_info_windows): Add text_offset.
9829 (windows_xfer_shared_libraries): Update.
9830 * windows-tdep.c (windows_xfer_shared_library):
9831 Add text_offset_cached argument.
9832 * windows-tdep.h (windows_xfer_shared_library): Update.
9833
a1237872
SM
98342020-01-21 Simon Marchi <simon.marchi@efficios.com>
9835
9836 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9837
b3ee6dd9
SM
98382020-01-21 Simon Marchi <simon.marchi@efficios.com>
9839
9840 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9841 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9842 replace with range-based for.
9843 (gdbsim_interrupt_inferior): Remove.
9844 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9845 with a range-based for. Inline code from
9846 gdbsim_interrupt_inferior.
9847
f9fac3c8
SM
98482020-01-21 Simon Marchi <simon.marchi@efficios.com>
9849
9850 * infrun.c (proceed): Fix indentation.
9851
f6474de9
TT
98522020-01-21 Tom Tromey <tromey@adacore.com>
9853
9854 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9855 * python/python.c (python_extension_ops): Update.
9856 (gdbpy_colorize): New function.
9857 * python/lib/gdb/__init__.py (colorize): New function.
9858 * extension.h (ext_lang_colorize): Declare.
9859 * extension.c (ext_lang_colorize): New function.
9860 * extension-priv.h (struct extension_language_ops) <colorize>: New
9861 member.
9862 * cli/cli-style.c (_initialize_cli_style): Update help text.
9863
f0c702d4
LM
98642020-01-21 Luis Machado <luis.machado@linaro.org>
9865
9866 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9867 <cond>: Change type to bool.
9868 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9869 (aarch64_displaced_step_cb): Likewise.
9870 (aarch64_displaced_step_tb): Likewise.
9871
1ab139e5
LM
98722020-01-21 Luis Machado <luis.machado@linaro.org>
9873
9874 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9875 output.
9876
0c271889
LM
98772020-01-21 Luis Machado <luis.machado@linaro.org>
9878
9879 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9880 <pc_adjust>: Adjust the documentation.
9881 (aarch64_displaced_step_fixup): Check if PC really moved before
9882 adjusting it.
9883
4d89c1c7
TT
98842020-01-19 Tom Tromey <tom@tromey.com>
9885
9886 * disasm.c (~gdb_disassembler): New destructor.
9887 (gdb_buffered_insn_length): Call disassemble_free_target.
9888 * disasm.h (class gdb_disassembler): Declare destructor. Use
9889 DISABLE_COPY_AND_ASSIGN.
9890
c0ab21c2
TT
98912020-01-19 Tom Tromey <tom@tromey.com>
9892
9893 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9894 (die_reader_func_ftype): Remove.
9895 (cutu_reader): New class.
9896 (dw2_get_file_names_reader): Remove "data" parameter.
9897 (dw2_get_file_names): Use cutu_reader.
9898 (create_debug_type_hash_table): Update.
9899 (read_cutu_die_from_dwo): Update comment.
9900 (lookup_dwo_unit): Add dwo_name parameter.
9901 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9902 die_reader_func_ftype and data parameters.
9903 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9904 Remove die_reader_func_ftype and data parameters.
9905 (~cutu_reader): New; from init_cutu_and_read_dies.
9906 (cutu_reader::cutu_reader): Rename from
9907 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9908 and data parameters.
9909 (init_cutu_and_read_dies_simple): Remove.
9910 (struct process_psymtab_comp_unit_data): Remove.
9911 (process_psymtab_comp_unit_reader): Remove data parameter; add
9912 want_partial_unit and pretend_language parameters.
9913 (process_psymtab_comp_unit): Use cutu_reader.
9914 (build_type_psymtabs_reader): Remove data parameter.
9915 (build_type_psymtabs_1): Use cutu_reader.
9916 (process_skeletonless_type_unit): Likewise.
9917 (load_partial_comp_unit_reader): Remove.
9918 (load_partial_comp_unit): Use cutu_reader.
9919 (load_full_comp_unit_reader): Remove.
9920 (load_full_comp_unit): Use cutu_reader.
9921 (struct create_dwo_cu_data): Remove.
9922 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9923 dwo_unit parameters.
9924 (create_cus_hash_table): Use cutu_reader.
9925 (struct dwarf2_read_addr_index_data): Remove.
9926 (dwarf2_read_addr_index_reader): Remove.
9927 (dwarf2_read_addr_index): Use cutu_reader.
9928 (read_signatured_type_reader): Remove.
9929 (read_signatured_type): Use cutu_reader.
9930
45bbae5c
TT
99312020-01-19 Tom Tromey <tom@tromey.com>
9932
9933 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9934 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9935 (tui_wrefresh): Declare.
9936 * tui/tui-wingeneral.c (suppress_output): New global.
9937 (tui_suppress_output, ~tui_suppress_output): New constructor and
9938 destructor.
9939 (tui_wrefresh): New function.
9940 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9941 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9942 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9943 method.
9944 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9945 tui_wrefresh.
9946 (tui_data_window::no_refresh): New method.
9947 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9948 (tui_reg_command): Use tui_suppress_output
9949 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9950 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9951 method.
9952 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9953
4f13c1c0
TT
99542020-01-19 Tom Tromey <tom@tromey.com>
9955
9956 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9957 Handle case where symtab is null.
9958
fa47e446
SM
99592020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9960
9961 * linux-fork.c (one_fork_p): Simplify.
9962
26f42329
SM
99632020-01-17 Simon Marchi <simon.marchi@efficios.com>
9964
9965 * top.c (struct qt_args): Remove.
9966 (kill_or_detach): Change return type to void, replace `void *`
9967 parameter with a proper one.
9968 (print_inferior_quit_action): Likewise.
9969 (quit_confirm): Use range-based for loop to iterate over inferiors.
9970 (quit_force): Likewise.
9971
a9ac81b1
SM
99722020-01-17 Simon Marchi <simon.marchi@efficios.com>
9973
9974 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9975 `void *` parameter with proper parameters.
9976 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9977 (print_one_inferior): Change return type to void, replace `void *`
9978 parameter with proper parameters.
9979 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9980 inferiors.
9981 (get_other_inferior): Remove.
9982 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9983 inferiors.
9984
788eca49
SM
99852020-01-17 Simon Marchi <simon.marchi@efficios.com>
9986
9987 * mi/mi-interp.c (report_initial_inferior): Remove.
9988 (mi_interp::init): Use range-based for to iterate over inferiors.
9989
d9bc85b6
SM
99902020-01-17 Simon Marchi <simon.marchi@efficios.com>
9991
9992 * python/py-inferior.c (build_inferior_list): Remove.
9993 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9994
40c94099
CB
99952020-01-16 Christian Biesinger <cbiesinger@google.com>
9996
9997 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9998 (btrace_stitch_trace): Likewise.
9999 * charset.c (intermediate_encoding): Likewise (vaild).
10000 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10001 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10002 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10003
e0cdfe3c
HD
100042020-01-16 Hannes Domani <ssbssa@yahoo.de>
10005
10006 * windows-tdep.c (windows_get_tlb_type):
10007 Add rtl_user_process_parameters type.
10008
790f1718 100092020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10010 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10011
10012 PR build/24805
10013 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10014 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10015 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10016 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10017 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10018 (ps_plog): Redeclare exported functions with default visibility.
10019
3112ed97
NA
100202020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10021
10022 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10023 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10024
8dc3273e
SM
100252020-01-15 Simon Marchi <simon.marchi@efficios.com>
10026
10027 * infcmd.c (post_create_inferior): Use get_thread_regcache
10028 instead of get_current_regcache.
10029
ff47f4f0
TT
100302020-01-14 Tom Tromey <tom@tromey.com>
10031
10032 PR symtab/12535:
10033 * python/python.c (gdbpy_decode_line): Treat empty string the same
10034 as no argument.
10035
975f45b7
TT
100362020-01-14 Tom Tromey <tom@tromey.com>
10037
10038 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10039
25e57356
TT
100402020-01-14 Tom Tromey <tom@tromey.com>
10041
10042 * nat/linux-btrace.c: Don't include <config.h>.
10043 * nat/linux-ptrace.c: Don't include <config.h>.
10044 * nat/x86-linux-dregs.c: Don't include <config.h>.
10045
05ea2a05
TT
100462020-01-14 Tom Tromey <tom@tromey.com>
10047
10048 * configure: Rebuild.
10049 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10050
01027315
TT
100512020-01-14 Tom Tromey <tom@tromey.com>
10052
10053 * nat/x86-linux-dregs.c: Include configh.h.
10054 * nat/linux-ptrace.c: Include configh.h.
10055 * nat/linux-btrace.c: Include configh.h.
10056 * defs.h: Include config.h, bfd.h.
10057 * configure.ac: Don't source common.host.
10058 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10059 * configure: Rebuild.
10060 * acinclude.m4: Update path.
10061 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10062 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10063 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10064 (CLIBS): Add LIBSUPPORT.
10065 (CDEPS): Likewise.
10066 (COMMON_SFILES): Remove gdbsupport files.
10067 (HFILES_NO_SRCDIR): Likewise.
10068 (stamp-version): Update path to create-version.sh.
10069 (ALLDEPFILES): Remove gdbsupport files.
10070
b2ceabe8
TT
100712020-01-14 Tom Tromey <tom@tromey.com>
10072
10073 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10074 USE_WIN32API when needed.
10075 * configure.ac (USE_WIN32API): Don't define.
10076 (WIN32LIBS): Use WIN32APILIBS.
10077 * configure: Rebuild.
10078
25c51f71
TT
100792020-01-14 Tom Tromey <tom@tromey.com>
10080
10081 * configure: Rebuild.
10082 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10083
717c684d
BE
100842020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10085
10086 * skip.c (skip_function_command): Make skip w/o arguments use the
10087 name of the inlined function if pc is inside any inlined function.
10088
7da6a5b9
LM
100892020-01-14 Luis Machado <luis.machado@linaro.org>
10090
10091 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10092 * infrun.c (resume_1): Likewise.
10093 (handle_inferior_event): Remove stale comment.
10094 * linux-nat.c (linux_nat_target::resume): Update comments.
10095 (save_stop_reason): Likewise.
10096 (linux_nat_filter_event): Likewise.
10097 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10098
44e4c775
AB
100992020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10100
10101 * elfread.c (record_minimal_symbol): Set section index to 0 for
10102 non-allocatable sections.
10103
18a8505e
AT
10104
101052020-01-13 Ali Tamur <tamur@google.com>
10106
10107 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10108 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10109 to gdb::optional. Update comments.
10110 (dwo_file): Update comments.
10111 (read_attribute): Update API to take an additional out parameter,
10112 need_reprocess. This is used to mark attributes that need other
10113 attributes (e.g. str_offsets_base) for correct computation which may not
10114 have been read yet.
10115 (read_attribute_reprocess): New function declaration.
10116 (read_addr_index): Likewise.
10117 (read_dwo_str_index): Likewise.
10118 (read_stub_str_index): Likewise.
10119 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10120 (lookup_addr_base): New function definition.
10121 (lookup_ranges_base): Likewise.
10122 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10123 lookup_ranges_base.
10124 (init_cutu_and_read_dies): Update comments.
10125 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10126 unit. This is used to inherit parent's str_offsets_base and addr_base.
10127 Update comments.
10128 (init_cutu_and_read_dies_simple): Reflect API changes.
10129 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10130 (create_cus_hash_table): Change API to take parent compile unit.
10131 Reflect API changes.
10132 (open_and_init_dwo_file): Reflect API changes.
10133 (dwarf2_get_pc_bounds): Update comments.
10134 (dwarf2_record_block_ranges): Likewise.
10135 (read_full_die_1): Change implementation to reprocess attributes that
10136 need str_offsets_base and addr_base.
10137 (partial_die_info::read): Likewise.
10138 (read_attribute_reprocess): New function definition.
10139 (read_attribute_value): Change API to take an additional out parameter,
10140 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10141 when a non-dwo compile unit has index based attributes.
10142 (read_attribute): Reflect API changes.
10143 (read_addr_index_1): Reflect API changes. Update comments.
10144 (dwarf2_read_addr_index_data): Reflect API changes.
10145 (dwarf2_read_addr_index): Likewise.
10146 (read_str_index): Change API and implementation. This becomes a helper
10147 to be used by the new string index related methods. Update error
10148 message and comments.
10149 (read_dwo_str_index): New function definition.
10150 (read_stub_str_index): Likewise.
10151 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10152 * symfile.h (dwarf2_debug_sections): Likewise.
10153 * xcoffread.c (dwarf2_debug_sections): Likewise.
10154
0cac9354
SM
101552020-01-13 Simon Marchi <simon.marchi@efficios.com>
10156
10157 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10158 core_reg_sect type to gdb_byte *.
10159 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10160 * cris-tdep.c (fetch_core_registers): Likewise.
10161 * corelow.c (core_target::get_core_register_section): Change
10162 type of `contents` to gdb::byte_vector.
10163
9a6d629c
AB
101642020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10165
10166 * tui/tui-wingeneral.c (box_win): Position the title in the center
10167 of the border.
10168
d8b2f9e3
SM
101692020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10170
10171 * corelow.c (core_target::get_core_register_section): Use
10172 std::vector instead of alloca.
10173
bb564c58
SM
101742020-01-13 Simon Marchi <simon.marchi@efficios.com>
10175
10176 * warning.m4: Add -Wmissing-declarations to build_warnings.
10177 * configure: Re-generate.
10178
6b366111
SM
101792020-01-13 Simon Marchi <simon.marchi@efficios.com>
10180
10181 * python/python.c (init__gdb_module): Add declaration.
10182
6c265988
SM
101832020-01-13 Simon Marchi <simon.marchi@efficios.com>
10184
10185 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10186 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10187 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10188 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10189 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10190 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10191 * ada-exp.y (_initialize_ada_exp): Add declaration.
10192 * ada-lang.c (_initialize_ada_language): Add declaration.
10193 * ada-tasks.c (_initialize_tasks): Add declaration.
10194 * agent.c (_initialize_agent): Add declaration.
10195 * aix-thread.c (_initialize_aix_thread): Add declaration.
10196 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10197 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10198 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10199 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10200 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10201 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10202 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10203 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10204 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10205 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10206 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10207 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10208 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10209 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10210 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10211 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10212 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10213 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10214 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10215 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10216 * annotate.c (_initialize_annotate): Add declaration.
10217 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10218 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10219 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10220 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10221 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10222 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10223 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10224 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10225 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10226 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10227 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10228 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10229 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10230 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10231 * auto-load.c (_initialize_auto_load): Add declaration.
10232 * auxv.c (_initialize_auxv): Add declaration.
10233 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10234 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10235 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10236 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10237 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10238 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10239 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10240 * breakpoint.c (_initialize_breakpoint): Add declaration.
10241 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10242 * btrace.c (_initialize_btrace): Add declaration.
10243 * charset.c (_initialize_charset): Add declaration.
10244 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10245 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10246 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10247 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10248 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10249 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10250 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10251 * coffread.c (_initialize_coffread): Add declaration.
10252 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10253 * compile/compile.c (_initialize_compile): Add declaration.
10254 * complaints.c (_initialize_complaints): Add declaration.
10255 * completer.c (_initialize_completer): Add declaration.
10256 * copying.c (_initialize_copying): Add declaration.
10257 * corefile.c (_initialize_core): Add declaration.
10258 * corelow.c (_initialize_corelow): Add declaration.
10259 * cp-abi.c (_initialize_cp_abi): Add declaration.
10260 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10261 * cp-support.c (_initialize_cp_support): Add declaration.
10262 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10263 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10264 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10265 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10266 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10267 * ctfread.c (_initialize_ctfread): Add declaration.
10268 * d-lang.c (_initialize_d_language): Add declaration.
10269 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10270 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10271 * dbxread.c (_initialize_dbxread): Add declaration.
10272 * dcache.c (_initialize_dcache): Add declaration.
10273 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10274 * disasm.c (_initialize_disasm): Add declaration.
10275 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10276 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10277 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10278 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10279 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10280 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10281 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10282 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10283 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10284 * elfread.c (_initialize_elfread): Add declaration.
10285 * exec.c (_initialize_exec): Add declaration.
10286 * extension.c (_initialize_extension): Add declaration.
10287 * f-lang.c (_initialize_f_language): Add declaration.
10288 * f-valprint.c (_initialize_f_valprint): Add declaration.
10289 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10290 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10291 * filesystem.c (_initialize_filesystem): Add declaration.
10292 * findcmd.c (_initialize_mem_search): Add declaration.
10293 * findvar.c (_initialize_findvar): Add declaration.
10294 * fork-child.c (_initialize_fork_child): Add declaration.
10295 * frame-base.c (_initialize_frame_base): Add declaration.
10296 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10297 * frame.c (_initialize_frame): Add declaration.
10298 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10299 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10300 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10301 * gcore.c (_initialize_gcore): Add declaration.
10302 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10303 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10304 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10305 * gdbarch.c (_initialize_gdbarch): Add declaration.
10306 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10307 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10308 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10309 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10310 * go-lang.c (_initialize_go_language): Add declaration.
10311 * go32-nat.c (_initialize_go32_nat): Add declaration.
10312 * guile/guile.c (_initialize_guile): Add declaration.
10313 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10314 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10315 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10316 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10317 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10318 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10319 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10320 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10321 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10322 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10323 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10324 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10325 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10326 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10327 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10328 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10329 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10330 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10331 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10332 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10333 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10334 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10335 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10336 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10337 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10338 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10339 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10340 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10341 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10342 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10343 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10344 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10345 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10346 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10347 * infcall.c (_initialize_infcall): Add declaration.
10348 * infcmd.c (_initialize_infcmd): Add declaration.
10349 * inflow.c (_initialize_inflow): Add declaration.
10350 * infrun.c (_initialize_infrun): Add declaration.
10351 * interps.c (_initialize_interpreter): Add declaration.
10352 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10353 * jit.c (_initialize_jit): Add declaration.
10354 * language.c (_initialize_language): Add declaration.
10355 * linux-fork.c (_initialize_linux_fork): Add declaration.
10356 * linux-nat.c (_initialize_linux_nat): Add declaration.
10357 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10358 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10359 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10360 * m2-lang.c (_initialize_m2_language): Add declaration.
10361 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10362 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10363 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10364 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10365 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10366 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10367 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10368 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10369 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10370 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10371 * machoread.c (_initialize_machoread): Add declaration.
10372 * macrocmd.c (_initialize_macrocmd): Add declaration.
10373 * macroscope.c (_initialize_macroscope): Add declaration.
10374 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10375 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10376 * maint.c (_initialize_maint_cmds): Add declaration.
10377 * mdebugread.c (_initialize_mdebugread): Add declaration.
10378 * memattr.c (_initialize_mem): Add declaration.
10379 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10380 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10381 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10382 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10383 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10384 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10385 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10386 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10387 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10388 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10389 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10390 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10391 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10392 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10393 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10394 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10395 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10396 * mipsread.c (_initialize_mipsread): Add declaration.
10397 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10398 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10399 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10400 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10401 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10402 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10403 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10404 * nto-procfs.c (_initialize_procfs): Add declaration.
10405 * objc-lang.c (_initialize_objc_language): Add declaration.
10406 * observable.c (_initialize_observer): Add declaration.
10407 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10408 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10409 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10410 * osabi.c (_initialize_gdb_osabi): Add declaration.
10411 * osdata.c (_initialize_osdata): Add declaration.
10412 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10413 * parse.c (_initialize_parse): Add declaration.
10414 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10415 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10416 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10417 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10418 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10419 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10420 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10421 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10422 * printcmd.c (_initialize_printcmd): Add declaration.
10423 * probe.c (_initialize_probe): Add declaration.
10424 * proc-api.c (_initialize_proc_api): Add declaration.
10425 * proc-events.c (_initialize_proc_events): Add declaration.
10426 * proc-service.c (_initialize_proc_service): Add declaration.
10427 * procfs.c (_initialize_procfs): Add declaration.
10428 * producer.c (_initialize_producer): Add declaration.
10429 * psymtab.c (_initialize_psymtab): Add declaration.
10430 * python/python.c (_initialize_python): Add declaration.
10431 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10432 * record-btrace.c (_initialize_record_btrace): Add declaration.
10433 * record-full.c (_initialize_record_full): Add declaration.
10434 * record.c (_initialize_record): Add declaration.
10435 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10436 * regcache.c (_initialize_regcache): Add declaration.
10437 * reggroups.c (_initialize_reggroup): Add declaration.
10438 * remote-notif.c (_initialize_notif): Add declaration.
10439 * remote-sim.c (_initialize_remote_sim): Add declaration.
10440 * remote.c (_initialize_remote): Add declaration.
10441 * reverse.c (_initialize_reverse): Add declaration.
10442 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10443 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10444 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10445 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10446 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10447 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10448 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10449 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10450 Add declaration.
10451 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10452 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10453 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10454 * rust-exp.y (_initialize_rust_exp): Add declaration.
10455 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10456 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10457 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10458 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10459 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10460 * score-tdep.c (_initialize_score_tdep): Add declaration.
10461 * ser-go32.c (_initialize_ser_dos): Add declaration.
10462 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10463 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10464 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10465 * ser-uds.c (_initialize_ser_socket): Add declaration.
10466 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10467 * serial.c (_initialize_serial): Add declaration.
10468 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10469 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10470 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10471 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10472 * skip.c (_initialize_step_skip): Add declaration.
10473 * sol-thread.c (_initialize_sol_thread): Add declaration.
10474 * solib-aix.c (_initialize_solib_aix): Add declaration.
10475 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10476 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10477 * solib-frv.c (_initialize_frv_solib): Add declaration.
10478 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10479 * solib-target.c (_initialize_solib_target): Add declaration.
10480 * solib.c (_initialize_solib): Add declaration.
10481 * source-cache.c (_initialize_source_cache): Add declaration.
10482 * source.c (_initialize_source): Add declaration.
10483 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10484 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10485 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10486 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10487 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10488 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10489 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10490 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10491 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10492 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10493 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10494 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10495 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10496 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10497 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10498 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10499 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10500 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10501 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10502 * stabsread.c (_initialize_stabsread): Add declaration.
10503 * stack.c (_initialize_stack): Add declaration.
10504 * stap-probe.c (_initialize_stap_probe): Add declaration.
10505 * std-regs.c (_initialize_frame_reg): Add declaration.
10506 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10507 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10508 * symfile.c (_initialize_symfile): Add declaration.
10509 * symmisc.c (_initialize_symmisc): Add declaration.
10510 * symtab.c (_initialize_symtab): Add declaration.
10511 * target.c (_initialize_target): Add declaration.
10512 * target-connection.c (_initialize_target_connection): Add
10513 declaration.
10514 * target-dcache.c (_initialize_target_dcache): Add declaration.
10515 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10516 * thread.c (_initialize_thread): Add declaration.
10517 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10518 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10519 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10520 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10521 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10522 * tracectf.c (_initialize_ctf): Add declaration.
10523 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10524 * tracefile.c (_initialize_tracefile): Add declaration.
10525 * tracepoint.c (_initialize_tracepoint): Add declaration.
10526 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10527 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10528 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10529 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10530 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10531 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10532 * tui/tui.c (_initialize_tui): Add declaration.
10533 * typeprint.c (_initialize_typeprint): Add declaration.
10534 * ui-style.c (_initialize_ui_style): Add declaration.
10535 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10536 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10537 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10538 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10539 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10540 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10541 * unittests/filtered_iterator-selftests.c
10542 (_initialize_filtered_iterator_selftests): Add declaration.
10543 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10544 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10545 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10546 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10547 * unittests/main-thread-selftests.c
10548 (_initialize_main_thread_selftests): Add declaration.
10549 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10550 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10551 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10552 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10553 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10554 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10555 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10556 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10557 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10558 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10559 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10560 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10561 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10562 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10563 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10564 declaration.
10565 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10566 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10567 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10568 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10569 * user-regs.c (_initialize_user_regs): Add declaration.
10570 * utils.c (_initialize_utils): Add declaration.
10571 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10572 * valops.c (_initialize_valops): Add declaration.
10573 * valprint.c (_initialize_valprint): Add declaration.
10574 * value.c (_initialize_values): Add declaration.
10575 * varobj.c (_initialize_varobj): Add declaration.
10576 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10577 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10578 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10579 * windows-nat.c (_initialize_windows_nat): Add declaration.
10580 (_initialize_check_for_gdb_ini): Add declaration.
10581 (_initialize_loadable): Add declaration.
10582 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10583 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10584 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10585 * xcoffread.c (_initialize_xcoffread): Add declaration.
10586 * xml-support.c (_initialize_xml_support): Add declaration.
10587 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10588 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10589 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10590 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10591
e2de1eec
SM
105922020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10593
10594 * regformats/regdat.sh: Generate declaration for init function.
10595
e0037b4c
SM
105962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10597
10598 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10599 up.
10600 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10601 close_one_inferior>: New methods.
10602 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10603 pass down target to find_inferior_pid.
10604 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10605 Pass down target to find_inferior_ptid.
10606 (gdbsim_target::create_inferior): Pass down target to
10607 add_thread_silent.
10608 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10609 target down to find_inferior_ptid and switch_to_thread.
10610 (gdbsim_target::close): Update to call close_one_inferior.
10611 (struct resume_data): Remove.
10612 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10613 directly, rather than through a void pointer.
10614 (gdbsim_target::resume): Update to call resume_one_inferior.
10615
58920b5b
SM
106162020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10617
10618 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10619
4ec89149
PA
106202020-01-12 Pedro Alves <palves@redhat.com>
10621
10622 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10623 directly for the current inferior instead of
10624 discard_all_inferiors.
10625 (discard_all_inferiors): Delete.
10626
7c392d1d
TT
106272020-01-11 Tom Tromey <tom@tromey.com>
10628
10629 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10630 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10631 deprecated_safe_get_selected_frame.
10632
d9ebdab7
TBA
106332020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10634
10635 * inferior.c (print_inferior): Switch inferior before printing it.
10636
f3c469b9
PA
106372020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10638 Pedro Alves <palves@redhat.com>
10639
10640 * progspace-and-thread.c (switch_to_program_space_and_thread):
10641 Assert there's an inferior for PSPACE. Use
10642 switch_to_inferior_no_thread to switch the inferior too.
10643 * progspace.c (program_space::~program_space): Call
10644 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10645 (program_space::free_all_objfiles): Don't call clear_symtab_users
10646 here.
10647 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10648
65c574f6
PA
106492020-01-10 Pedro Alves <palves@redhat.com>
10650
10651 * NEWS: Mention multi-target debugging, "info connections", and
10652 "add-inferior -no-connection".
10653
2f4fcf00
PA
106542020-01-10 Pedro Alves <palves@redhat.com>
10655
10656 * infrun.c: Include "target-connection.h".
10657 (check_multi_target_resumption): New.
10658 (proceed): Call it.
10659 * target-connection.c (make_target_connection_string): Make
10660 extern.
10661 * target-connection.h (make_target_connection_string): Declare.
10662
121b3efd
PA
106632020-01-10 Pedro Alves <palves@redhat.com>
10664
10665 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10666 * inferior.c (uiout_field_connection): New function.
10667 (print_inferior): Add new "connection-id" column.
10668 (add_inferior_command): Show connection number/string of added
10669 inferior.
10670 * process-stratum-target.h
10671 (process_stratum_target::connection_string): New virtual method.
10672 (process_stratum_target::connection_number): New field.
10673 * remote.c (remote_target::connection_string): New override.
10674 * target-connection.c: New file.
10675 * target-connection.h: New file.
10676 * target.c (decref_target): Remove process_stratum targets from
10677 the connection list.
10678 (target_stack::push): Add process_stratum targets to the
10679 connection list.
10680
4f837581
PA
106812020-01-10 Pedro Alves <palves@redhat.com>
10682
10683 Revert:
10684 2016-04-12 Pedro Alves <palves@redhat.com>
10685 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10686 Remove references to name.
10687 * serial.h (struct serial) <name>: Delete.
10688
f4ec508e
PA
106892020-01-10 Pedro Alves <palves@redhat.com>
10690
10691 * gdbarch-selftests.c (register_to_value_test): Remove "target
10692 already pushed" check.
10693
5b6d1e4f
PA
106942020-01-10 Pedro Alves <palves@redhat.com>
10695 John Baldwin <jhb@FreeBSD.org>
10696
10697 * aarch64-linux-nat.c
10698 (aarch64_linux_nat_target::thread_architecture): Adjust.
10699 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10700 (task_command_1): Likewise.
10701 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10702 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10703 (aix_thread_target::store_registers)
10704 (aix_thread_target::thread_alive): Adjust.
10705 * amd64-fbsd-tdep.c: Include "inferior.h".
10706 (amd64fbsd_get_thread_local_address): Pass down target.
10707 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10708 thread's gdbarch instead of target_gdbarch.
10709 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10710 get_last_target_status.
10711 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10712 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10713 inferiors.
10714 (update_inserted_breakpoint_locations): Skip if inferiors with no
10715 execution.
10716 (update_global_location_list): When handling moribund locations,
10717 find representative inferior for location's pspace, and use thread
10718 count of its process_stratum target.
10719 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10720 * bsd-uthread.c (bsd_uthread_target::wait): Use
10721 as_process_stratum_target and adjust thread_change_ptid and
10722 add_thread calls.
10723 (bsd_uthread_target::update_thread_list): Use
10724 as_process_stratum_target and adjust find_thread_ptid,
10725 thread_change_ptid and add_thread calls.
10726 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10727 find_thread_ptid call.
10728 * corelow.c (add_to_thread_list): Adjust add_thread call.
10729 (core_target_open): Adjust add_thread_silent and thread_count
10730 calls.
10731 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10732 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10733 * event-top.c (async_disconnect): Pop targets from all inferiors.
10734 * exec.c (add_target_sections): Push exec target on all inferiors
10735 sharing the program space.
10736 (remove_target_sections): Remove the exec target from all
10737 inferiors sharing the program space.
10738 (exec_on_vfork): New.
10739 * exec.h (exec_on_vfork): Declare.
10740 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10741 Pass it down.
10742 (fbsd_nat_target::update_thread_list): Adjust.
10743 (fbsd_nat_target::resume): Adjust.
10744 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10745 down.
10746 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10747 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10748 get_thread_arch_regcache call.
10749 * fork-child.c (gdb_startup_inferior): Pass target down to
10750 startup_inferior and set_executing.
10751 * gdbthread.h (struct process_stratum_target): Forward declare.
10752 (add_thread, add_thread_silent, add_thread_with_info)
10753 (in_thread_list): Add process_stratum_target parameter.
10754 (find_thread_ptid(inferior*, ptid_t)): New overload.
10755 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10756 parameter.
10757 (all_threads()): Delete overload.
10758 (all_threads, all_non_exited_threads): Add process_stratum_target
10759 parameter.
10760 (all_threads_safe): Use brace initialization.
10761 (thread_count): Add process_stratum_target parameter.
10762 (set_resumed, set_running, set_stop_requested, set_executing)
10763 (threads_are_executing, finish_thread_state): Add
10764 process_stratum_target parameter.
10765 (switch_to_thread): Use is_current_thread.
10766 * i386-fbsd-tdep.c: Include "inferior.h".
10767 (i386fbsd_get_thread_local_address): Pass down target.
10768 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10769 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10770 have_inferiors check.
10771 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10772 (inf_ptrace_target::attach): Adjust.
10773 * infcall.c (run_inferior_call): Adjust.
10774 * infcmd.c (run_command_1): Pass target to
10775 scoped_finish_thread_state.
10776 (proceed_thread_callback): Skip inferiors with no execution.
10777 (continue_command): Rename 'all_threads' local to avoid hiding
10778 'all_threads' function. Adjust get_last_target_status call.
10779 (prepare_one_step): Adjust set_running call.
10780 (signal_command): Use user_visible_resume_target. Compare thread
10781 pointers instead of inferior_ptid.
10782 (info_program_command): Adjust to pass down target.
10783 (attach_command): Mark target's 'thread_executing' flag.
10784 (stop_current_target_threads_ns): New, factored out from ...
10785 (interrupt_target_1): ... this. Switch inferior before making
10786 target calls.
10787 * inferior-iter.h
10788 (struct all_inferiors_iterator, struct all_inferiors_range)
10789 (struct all_inferiors_safe_range)
10790 (struct all_non_exited_inferiors_range): Filter on
10791 process_stratum_target too. Remove explicit.
10792 * inferior.c (inferior::inferior): Push dummy target on target
10793 stack.
10794 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10795 Add process_stratum_target parameter, and pass it down.
10796 (have_live_inferiors): Adjust.
10797 (switch_to_inferior_and_push_target): New.
10798 (add_inferior_command, clone_inferior_command): Handle
10799 "-no-connection" parameter. Use
10800 switch_to_inferior_and_push_target.
10801 (_initialize_inferior): Mention "-no-connection" option in
10802 the help of "add-inferior" and "clone-inferior" commands.
10803 * inferior.h: Include "process-stratum-target.h".
10804 (interrupt_target_1): Use bool.
10805 (struct inferior) <push_target, unpush_target, target_is_pushed,
10806 find_target_beneath, top_target, process_target, target_at,
10807 m_stack>: New.
10808 (discard_all_inferiors): Delete.
10809 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10810 (all_inferiors, all_non_exited_inferiors): Add
10811 process_stratum_target parameter.
10812 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10813 (target_last_proc_target): New global.
10814 (follow_fork_inferior): Push target on new inferior. Pass target
10815 to add_thread_silent. Call exec_on_vfork. Handle target's
10816 reference count.
10817 (follow_fork): Adjust get_last_target_status call. Also consider
10818 target.
10819 (follow_exec): Push target on new inferior.
10820 (struct execution_control_state) <target>: New field.
10821 (user_visible_resume_target): New.
10822 (do_target_resume): Call target_async.
10823 (resume_1): Set target's threads_executing flag. Consider resume
10824 target.
10825 (commit_resume_all_targets): New.
10826 (proceed): Also consider resume target. Skip threads of inferiors
10827 with no execution. Commit resumtion in all targets.
10828 (start_remote): Pass current inferior to wait_for_inferior.
10829 (infrun_thread_stop_requested): Consider target as well. Pass
10830 thread_info pointer to clear_inline_frame_state instead of ptid.
10831 (infrun_thread_thread_exit): Consider target as well.
10832 (random_pending_event_thread): New inferior parameter. Use it.
10833 (do_target_wait): Rename to ...
10834 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10835 down.
10836 (threads_are_resumed_pending_p, do_target_wait): New.
10837 (prepare_for_detach): Adjust calls.
10838 (wait_for_inferior): New inferior parameter. Handle it. Use
10839 do_target_wait_1 instead of do_target_wait.
10840 (fetch_inferior_event): Adjust. Switch to representative
10841 inferior. Pass target down.
10842 (set_last_target_status): Add process_stratum_target parameter.
10843 Save target in global.
10844 (get_last_target_status): Add process_stratum_target parameter and
10845 handle it.
10846 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10847 (context_switch): Check inferior_ptid == null_ptid before calling
10848 inferior_thread().
10849 (get_inferior_stop_soon): Pass down target.
10850 (wait_one): Rename to ...
10851 (poll_one_curr_target): ... this.
10852 (struct wait_one_event): New.
10853 (wait_one): New.
10854 (stop_all_threads): Adjust.
10855 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10856 event's target.
10857 (switch_back_to_stepped_thread): Also consider target.
10858 (print_stop_event): Update.
10859 (normal_stop): Update. Also consider the resume target.
10860 * infrun.h (wait_for_inferior): Remove declaration.
10861 (user_visible_resume_target): New declaration.
10862 (get_last_target_status, set_last_target_status): New
10863 process_stratum_target parameter.
10864 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10865 process_stratum_target parameter, and use it.
10866 (clear_inline_frame_state (thread_info*)): New.
10867 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10868 process_stratum_target parameter.
10869 (clear_inline_frame_state (thread_info*)): Declare.
10870 * linux-fork.c (delete_checkpoint_command): Pass target down to
10871 find_thread_ptid.
10872 (checkpoint_command): Adjust.
10873 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10874 instead of just tweaking inferior_ptid.
10875 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10876 (exit_lwp): Pass target down to find_thread_ptid.
10877 (attach_proc_task_lwp_callback): Pass target down to
10878 add_thread/set_running/set_executing.
10879 (linux_nat_target::attach): Pass target down to
10880 thread_change_ptid.
10881 (get_detach_signal): Pass target down to find_thread_ptid.
10882 Consider last target status's target.
10883 (linux_resume_one_lwp_throw, resume_lwp)
10884 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10885 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10886 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10887 (linux_nat_target::async_wait_fd): New.
10888 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10889 target down.
10890 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10891 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10892 * linux-thread-db.c (struct thread_db_info::process_target): New
10893 field.
10894 (add_thread_db_info): Save target.
10895 (get_thread_db_info): New process_stratum_target parameter. Also
10896 match target.
10897 (delete_thread_db_info): New process_stratum_target parameter.
10898 Also match target.
10899 (thread_from_lwp): Adjust to pass down target.
10900 (thread_db_notice_clone): Pass down target.
10901 (check_thread_db_callback): Pass down target.
10902 (try_thread_db_load_1): Always push the thread_db target.
10903 (try_thread_db_load, record_thread): Pass target down.
10904 (thread_db_target::detach): Pass target down. Always unpush the
10905 thread_db target.
10906 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10907 target down. Always unpush the thread_db target.
10908 (find_new_threads_callback, thread_db_find_new_threads_2)
10909 (thread_db_target::update_thread_list): Pass target down.
10910 (thread_db_target::pid_to_str): Pass current inferior down.
10911 (thread_db_target::get_thread_local_address): Pass target down.
10912 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10913 target down.
10914 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10915 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10916 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10917 (procfs_init_inferior): Rename to ...
10918 (procfs_target::procfs_init_inferior): ... this and adjust.
10919 (procfs_target::create_inferior, procfs_notice_thread)
10920 (procfs_do_thread_registers): Adjust.
10921 * ppc-fbsd-tdep.c: Include "inferior.h".
10922 (ppcfbsd_get_thread_local_address): Pass down target.
10923 * proc-service.c (ps_xfer_memory): Switch current inferior and
10924 program space as well.
10925 (get_ps_regcache): Pass target down.
10926 * process-stratum-target.c
10927 (process_stratum_target::thread_address_space)
10928 (process_stratum_target::thread_architecture): Pass target down.
10929 * process-stratum-target.h
10930 (process_stratum_target::threads_executing): New field.
10931 (as_process_stratum_target): New.
10932 * ravenscar-thread.c
10933 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10934 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10935 down.
10936 * record-btrace.c (record_btrace_target::info_record): Adjust.
10937 (record_btrace_target::record_method)
10938 (record_btrace_target::record_is_replaying)
10939 (record_btrace_target::fetch_registers)
10940 (get_thread_current_frame_id, record_btrace_target::resume)
10941 (record_btrace_target::wait, record_btrace_target::stop): Pass
10942 target down.
10943 * record-full.c (record_full_wait_1): Switch to event thread.
10944 Pass target down.
10945 * regcache.c (regcache::regcache)
10946 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10947 process_stratum_target parameter and handle it.
10948 (current_thread_target): New global.
10949 (get_thread_regcache): Add process_stratum_target parameter and
10950 handle it. Switch inferior before calling target method.
10951 (get_thread_regcache): Pass target down.
10952 (get_thread_regcache_for_ptid): Pass target down.
10953 (registers_changed_ptid): Add process_stratum_target parameter and
10954 handle it.
10955 (registers_changed_thread, registers_changed): Pass target down.
10956 (test_get_thread_arch_aspace_regcache): New.
10957 (current_regcache_test): Define a couple local test_target_ops
10958 instances and use them for testing.
10959 (readwrite_regcache): Pass process_stratum_target parameter.
10960 (cooked_read_test, cooked_write_test): Pass mock_target down.
10961 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10962 (get_thread_arch_aspace_regcache): Add process_stratum_target
10963 parameter.
10964 (regcache::target): New method.
10965 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10966 (regcache::registers_changed_ptid): Add process_stratum_target
10967 parameter.
10968 (regcache::m_target): New field.
10969 (registers_changed_ptid): Add process_stratum_target parameter.
10970 * remote.c (remote_state::supports_vCont_probed): New field.
10971 (remote_target::async_wait_fd): New method.
10972 (remote_unpush_and_throw): Add remote_target parameter.
10973 (get_current_remote_target): Adjust.
10974 (remote_target::remote_add_inferior): Push target.
10975 (remote_target::remote_add_thread)
10976 (remote_target::remote_notice_new_inferior)
10977 (get_remote_thread_info): Pass target down.
10978 (remote_target::update_thread_list): Skip threads of inferiors
10979 bound to other targets. (remote_target::close): Don't discard
10980 inferiors. (remote_target::add_current_inferior_and_thread)
10981 (remote_target::process_initial_stop_replies)
10982 (remote_target::start_remote)
10983 (remote_target::remote_serial_quit_handler): Pass down target.
10984 (remote_target::remote_unpush_target): New remote_target
10985 parameter. Unpush the target from all inferiors.
10986 (remote_target::remote_unpush_and_throw): New remote_target
10987 parameter. Pass it down.
10988 (remote_target::open_1): Check whether the current inferior has
10989 execution instead of checking whether any inferior is live. Pass
10990 target down.
10991 (remote_target::remote_detach_1): Pass down target. Use
10992 remote_unpush_target.
10993 (extended_remote_target::attach): Pass down target.
10994 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10995 (remote_target::append_resumption): Pass down target.
10996 (remote_target::append_pending_thread_resumptions)
10997 (remote_target::remote_resume_with_hc, remote_target::resume)
10998 (remote_target::commit_resume): Pass down target.
10999 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11000 (remote_target::interrupt_query)
11001 (remote_target::remove_new_fork_children)
11002 (remote_target::check_pending_events_prevent_wildcard_vcont)
11003 (remote_target::remote_parse_stop_reply)
11004 (remote_target::process_stop_reply): Pass down target.
11005 (first_remote_resumed_thread): New remote_target parameter. Pass
11006 it down.
11007 (remote_target::wait_as): Pass down target.
11008 (unpush_and_perror): New remote_target parameter. Pass it down.
11009 (remote_target::readchar, remote_target::remote_serial_write)
11010 (remote_target::getpkt_or_notif_sane_1)
11011 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11012 down target.
11013 (remote_target::mourn_inferior): Pass down target. Use
11014 remote_unpush_target.
11015 (remote_target::core_of_thread)
11016 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11017 (remote_target::pid_to_exec_file)
11018 (remote_target::thread_handle_to_thread_info): Pass down target.
11019 (remote_target::async_wait_fd): New.
11020 * riscv-fbsd-tdep.c: Include "inferior.h".
11021 (riscv_fbsd_get_thread_local_address): Pass down target.
11022 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11023 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11024 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11025 Adjust.
11026 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11027 * solib-svr4.c (enable_break): Pass down target.
11028 * spu-multiarch.c (parse_spufs_run): Pass down target.
11029 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11030 * target-delegates.c: Regenerate.
11031 * target.c (g_target_stack): Delete.
11032 (current_top_target): Return the current inferior's top target.
11033 (target_has_execution_1): Refer to the passed-in inferior's top
11034 target.
11035 (target_supports_terminal_ours): Check whether the initial
11036 inferior was already created.
11037 (decref_target): New.
11038 (target_stack::push): Incref/decref the target.
11039 (push_target, push_target, unpush_target): Adjust.
11040 (target_stack::unpush): Defref target.
11041 (target_is_pushed): Return bool. Adjust to refer to the current
11042 inferior's target stack.
11043 (dispose_inferior): Delete, and inline parts ...
11044 (target_preopen): ... here. Only dispose of the current inferior.
11045 (target_detach): Hold strong target reference while detaching.
11046 Pass target down.
11047 (target_thread_name): Add assertion.
11048 (target_resume): Pass down target.
11049 (target_ops::beneath, find_target_at): Adjust to refer to the
11050 current inferior's target stack.
11051 (get_dummy_target): New.
11052 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11053 has a thread running.
11054 (initialize_targets): Rename to ...
11055 (_initialize_target): ... this.
11056 * target.h: Include "gdbsupport/refcounted-object.h".
11057 (struct target_ops): Inherit refcounted_object.
11058 (target_ops::shortname, target_ops::longname): Make const.
11059 (target_ops::async_wait_fd): New method.
11060 (decref_target): Declare.
11061 (struct target_ops_ref_policy): New.
11062 (target_ops_ref): New typedef.
11063 (get_dummy_target): Declare function.
11064 (target_is_pushed): Return bool.
11065 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11066 (all_matching_threads_iterator::all_matching_threads_iterator):
11067 Handle filter target.
11068 * thread-iter.h (struct all_matching_threads_iterator, struct
11069 all_matching_threads_range, class all_non_exited_threads_range):
11070 Filter by target too. Remove explicit.
11071 * thread.c (threads_executing): Delete.
11072 (inferior_thread): Pass down current inferior.
11073 (clear_thread_inferior_resources): Pass down thread pointer
11074 instead of ptid_t.
11075 (add_thread_silent, add_thread_with_info, add_thread): Add
11076 process_stratum_target parameter. Use it for thread and inferior
11077 searches.
11078 (is_current_thread): New.
11079 (thread_info::deletable): Use it.
11080 (find_thread_ptid, thread_count, in_thread_list)
11081 (thread_change_ptid, set_resumed, set_running): New
11082 process_stratum_target parameter. Pass it down.
11083 (set_executing): New process_stratum_target parameter. Pass it
11084 down. Adjust reference to 'threads_executing'.
11085 (threads_are_executing): New process_stratum_target parameter.
11086 Adjust reference to 'threads_executing'.
11087 (set_stop_requested, finish_thread_state): New
11088 process_stratum_target parameter. Pass it down.
11089 (switch_to_thread): Also match inferior.
11090 (switch_to_thread): New process_stratum_target parameter. Pass it
11091 down.
11092 (update_threads_executing): Reimplement.
11093 * top.c (quit_force): Pop targets from all inferior.
11094 (gdb_init): Don't call initialize_targets.
11095 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11096 Declare.
11097 (windows_add_thread, windows_delete_thread): Adjust.
11098 (get_windows_debug_event): Rename to ...
11099 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11100 * tracefile-tfile.c (tfile_target_open): Pass down target.
11101 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11102 Forward declare.
11103 (switch_to_thread): Add process_stratum_target parameter.
11104 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11105 parameter. Use it.
11106 (mi_on_resume): Pass target down.
11107 * nat/fork-inferior.c (startup_inferior): Add
11108 process_stratum_target parameter. Pass it down.
11109 * nat/fork-inferior.h (startup_inferior): Add
11110 process_stratum_target parameter.
11111 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11112
75c6c844
PA
111132020-01-10 Pedro Alves <palves@redhat.com>
11114
11115 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11116 directly. Instead find the first thread in the thread list and
11117 use switch_to_thread.
11118
78f2c40a
PA
111192020-01-10 Pedro Alves <palves@redhat.com>
11120
11121 * remote.c (remote_target::remote_add_inferior): Don't bind a
11122 process to the current inferior if the current inferior is already
11123 bound to a process.
11124
e7af6c70
TBA
111252020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11126 Pedro Alves <palves@redhat.com>
11127
11128 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11129 If no process is specified, return null_ptid instead of
11130 inferior_ptid.
11131 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11132 TARGET_WAITKIND_SIGNALLED with no pid.
11133
31ba933e
PA
111342020-01-10 Pedro Alves <palves@redhat.com>
11135
11136 * remote.c (first_remote_resumed_thread): New.
11137 (remote_target::wait_as): Use it as default event_ptid instead of
11138 inferior_ptid.
11139
735fc2ca
PA
111402020-01-10 Pedro Alves <palves@redhat.com>
11141
11142 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11143
c17e02e1
PA
111442020-01-10 Pedro Alves <palves@redhat.com>
11145
11146 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11147 not -1.
11148
ab1ddbcf
PA
111492020-01-10 Pedro Alves <palves@redhat.com>
11150
11151 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11152 ptid to get_last_target_status.
11153 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11154 ptid to get_last_target_status.
11155 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11156 get_last_target_status.
11157 (info_program_command): Don't pass a target_waitstatus to
11158 get_last_target_status.
11159 * infrun.c (init_wait_for_inferior): Use
11160 nullify_last_target_wait_ptid.
11161 (get_last_target_status): Handle nullptr arguments.
11162 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11163 (print_stop_event): Don't pass a ptid to get_last_target_status.
11164 (normal_stop): Don't pass a ptid to get_last_target_status.
11165 * infrun.h (get_last_target_status, set_last_target_status): Move
11166 comments here and update.
11167 (nullify_last_target_wait_ptid): Declare.
11168 * linux-fork.c (fork_load_infrun_state): Remove local extern
11169 declaration of nullify_last_target_wait_ptid.
11170 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11171 to get_last_target_status.
11172
f3f8ece4
PA
111732020-01-10 Pedro Alves <palves@redhat.com>
11174
11175 * gdbthread.h (scoped_restore_current_thread)
11176 <dont_restore, restore, m_dont_restore>: Declare.
11177 * thread.c (thread_alive): Add assertion. Return bool.
11178 (switch_to_thread_if_alive): New.
11179 (prune_threads): Switch inferior/thread.
11180 (print_thread_info_1): Switch thread before calling target methods.
11181 (scoped_restore_current_thread::restore): New, factored out from
11182 ...
11183 (scoped_restore_current_thread::~scoped_restore_current_thread):
11184 ... this.
11185 (scoped_restore_current_thread::scoped_restore_current_thread):
11186 Add assertion.
11187 (thread_apply_all_command, thread_select): Use
11188 switch_to_thread_if_alive.
11189 * infrun.c (proceed, restart_threads, handle_signal_stop)
11190 (switch_back_to_stepped_thread): Switch current thread before
11191 calling target methods.
11192
db2d40f7
PA
111932020-01-10 Pedro Alves <palves@redhat.com>
11194
11195 * inferior.c (switch_to_inferior_no_thread): New function,
11196 factored out from ...
11197 (inferior_command): ... here.
11198 * inferior.h (switch_to_inferior_no_thread): Declare.
11199 * mi/mi-main.c (run_one_inferior): Use
11200 switch_to_inferior_no_thread.
11201
bd420a2d
PA
112022020-01-10 Pedro Alves <palves@redhat.com>
11203
11204 * infcmd.c (kill_command): Remove dead code.
11205
ddf5db90
PA
112062020-01-10 Pedro Alves <palves@redhat.com>
11207
11208 * remote.c (remote_target::mourn_inferior): No longer check
11209 whether the target is running.
11210
5018ce90
PA
112112020-01-10 Pedro Alves <palves@redhat.com>
11212
11213 * corelow.c (core_target::has_execution): Change parameter type to
11214 inferior pointer.
11215 * inferior.c (number_of_live_inferiors): Use
11216 inferior::has_execution instead of target_has_execution_1.
11217 * inferior.h (inferior::has_execution): New.
11218 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11219 inferior::has_execution instead of target_has_execution_1.
11220 * process-stratum-target.c
11221 (process_stratum_target::has_execution): Change parameter type to
11222 inferior pointer. Check the inferior's PID instead of
11223 inferior_ptid.
11224 * process-stratum-target.h
11225 (process_stratum_target::has_execution): Change parameter type to
11226 inferior pointer.
11227 * record-full.c (record_full_core_target::has_execution): Change
11228 parameter type to inferior pointer.
11229 * target.c (target_has_execution_1): Change parameter type to
11230 inferior pointer.
11231 (target_has_execution_current): Adjust.
11232 * target.h (target_ops::has_execution): Change parameter type to
11233 inferior pointer.
11234 (target_has_execution_1): Change parameter type to inferior
11235 pointer. Change return type to bool.
11236 * tracefile.h (tracefile_target::has_execution): Change parameter
11237 type to inferior pointer.
11238
74375d18
PA
112392020-01-10 Pedro Alves <palves@redhat.com>
11240
11241 * exceptions.c (print_flush): Remove current_top_target() check.
11242
acdf84a6
PA
112432020-01-10 Pedro Alves <palves@redhat.com>
11244
11245 * remote.c (show_remote_exec_file): Show the current inferior's
11246 exec-file instead of the command variable's value.
11247
ec506636
PA
112482020-01-10 Pedro Alves <palves@redhat.com>
11249
11250 * record-full.c (record_full_resume_ptid): New global.
11251 (record_full_target::resume): Set it.
11252 (record_full_wait_1): Use record_full_resume_ptid instead of
11253 inferior_ptid.
11254
873657b9
PA
112552020-01-10 Pedro Alves <palves@redhat.com>
11256
11257 * gdbthread.h (scoped_restore_current_thread)
11258 <dont_restore, restore, m_dont_restore>: Declare.
11259 * thread.c (thread_alive): Add assertion. Return bool.
11260 (switch_to_thread_if_alive): New.
11261 (prune_threads): Switch inferior/thread.
11262 (print_thread_info_1): Switch thread before calling target methods.
11263 (scoped_restore_current_thread::restore): New, factored out from
11264 ...
11265 (scoped_restore_current_thread::~scoped_restore_current_thread):
11266 ... this.
11267 (scoped_restore_current_thread::scoped_restore_current_thread):
11268 Add assertion.
11269 (thread_apply_all_command, thread_select): Use
11270 switch_to_thread_if_alive.
11271
7f0ae84c
GB
112722020-01-10 George Barrett <bob@bob131.so>
11273
11274 * stap-probe.c (stap_modify_semaphore): Don't check for null
11275 semaphores.
11276 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11277 for null semaphores.
11278
f5a7c406
AB
112792020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11280
11281 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11282 all source windows, and maintain horizontal scroll status while
11283 doing so.
11284
9ae6bf64
TT
112852020-01-09 Tom Tromey <tom@tromey.com>
11286
11287 PR tui/18932:
11288 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11289 update_source_window, not print_source_lines.
11290
b2efe70c
AB
112912020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11292
11293 * tui/tui.c (tui_enable): Register tui hooks after calling
11294 tui_display_main.
11295
5f23a082
CB
112962020-01-09 Christian Biesinger <cbiesinger@google.com>
11297
11298 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11299
3061113b
SM
113002020-01-08 Simon Marchi <simon.marchi@efficios.com>
11301
11302 * thread.c (print_thread_info_1): Fix indentation.
11303
57d75002
CB
113042020-01-09 Christian Biesinger <cbiesinger@google.com>
11305
11306 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11307 unique_xmalloc_ptr outside the if to always free the demangled name.
11308
6a053cb1
TT
113092020-01-08 Tom Tromey <tromey@adacore.com>
11310
11311 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11312 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11313 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11314 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11315 Remove.
11316 (section_offsets): New typedef.
11317 * symtab.c (fixup_section, get_msymbol_address): Update.
11318 * symmisc.c (dump_msymbols): Update.
11319 * symfile.h (relative_addr_info_to_section_offsets)
11320 (symfile_map_offsets_to_segments): Update.
11321 * symfile.c (build_section_addr_info_from_objfile)
11322 (init_objfile_sect_indices): Update.
11323 (struct place_section_arg): Change type of "offsets".
11324 (place_section): Update.
11325 (relative_addr_info_to_section_offsets): Change type of
11326 "section_offsets". Remove "num_sections" parameter.
11327 (default_symfile_offsets, syms_from_objfile_1)
11328 (set_objfile_default_section_offset): Update.
11329 (reread_symbols): No need to preserve section offsets by hand.
11330 (symfile_map_offsets_to_segments): Change type of "offsets".
11331 * stap-probe.c (relocate_address): Update.
11332 * stabsread.h (process_one_symbol): Update.
11333 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11334 (solib_target_relocate_section_addresses): Update.
11335 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11336 Update.
11337 * solib-frv.c (frv_relocate_main_executable): Update.
11338 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11339 * solib-aix.c (solib_aix_get_section_offsets): Change return
11340 type.
11341 (solib_aix_solib_create_inferior_hook): Update.
11342 * remote.c (remote_target::get_offsets): Update.
11343 * psymtab.c (find_pc_sect_psymtab): Update.
11344 * psympriv.h (struct partial_symbol) <address, text_low,
11345 text_high>: Update.
11346 * objfiles.h (obj_section_offset): Update.
11347 (struct objfile) <section_offsets>: Change type.
11348 <num_sections>: Remove.
11349 (objfile_relocate): Update.
11350 * objfiles.c (entry_point_address_query): Update
11351 (relocate_one_symbol): Change type of "section_offsets".
11352 (objfile_relocate1, objfile_relocate1): Change type of
11353 "new_offsets".
11354 (objfile_rebase1): Update.
11355 * mipsread.c (mipscoff_symfile_read): Update.
11356 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11357 parameter.
11358 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11359 (parse_external, psymtab_to_symtab_1): Update.
11360 * machoread.c (macho_symfile_offsets): Update.
11361 * ia64-tdep.c (ia64_find_unwind_table): Update.
11362 * hppa-tdep.c (read_unwind_info): Update.
11363 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11364 * dwarf2read.c (create_addrmap_from_index)
11365 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11366 (process_psymtab_comp_unit_reader, add_partial_symbol)
11367 (add_partial_subprogram, process_full_comp_unit)
11368 (read_file_scope, read_func_scope, read_lexical_block_scope)
11369 (read_call_site_scope, dwarf2_rnglists_process)
11370 (dwarf2_ranges_process, dwarf2_ranges_read)
11371 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11372 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11373 Update.
11374 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11375 Update.
11376 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11377 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11378 (process_one_symbol): Change type of "section_offsets".
11379 * ctfread.c (get_objfile_text_range): Update.
11380 * coffread.c (coff_symtab_read, enter_linenos)
11381 (process_coff_symbol): Update.
11382 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11383 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11384
456e800a
TT
113852020-01-08 Tom Tromey <tromey@adacore.com>
11386
11387 * dwarf2read.c (parse_macro_definition): Use std::string.
11388 (parse_macro_definition): Likewise.
11389
6dfa2fc2
TT
113902020-01-08 Tom Tromey <tromey@adacore.com>
11391
11392 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11393 (ATTR_ALLOC_CHUNK): Remove.
11394
421d1616
TT
113952020-01-08 Tom Tromey <tromey@adacore.com>
11396
11397 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11398
43816ebc
TT
113992020-01-08 Tom Tromey <tromey@adacore.com>
11400
11401 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11402 (dwarf2_compute_name, open_dwo_file): Likewise.
11403 (process_enumeration_scope): Use std::vector.
11404 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11405 (partial_die_info::fixup, dwarf2_start_subfile)
11406 (guess_full_die_structure_name, dwarf2_name): Likewise.
11407 (determine_prefix): Update.
11408 (guess_full_die_structure_name): Make return type const.
11409 (partial_die_full_name): Return unique_xmalloc_ptr.
11410 (DW_FIELD_ALLOC_CHUNK): Remove.
11411
4212d509
TT
114122020-01-07 Tom Tromey <tromey@adacore.com>
11413
11414 PR build/24937:
11415 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11416
06a6207a
JT
114172020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11418
11419 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11420
153d79c4
AB
114212020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11422
11423 * stack.c (print_frame_info): Move disassemble_next_line code
11424 inside source_print block.
11425
66182876
EZ
114262020-01-06 Eli Zaretskii <eliz@gnu.org>
11427
11428 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11429 gdb/signals.h, as we are now using native signal symbols.
11430
cbfa8581
SV
114312020-01-06 Shahab Vahedi <shahab@synopsys.com>
11432
11433 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11434 overflow by an early check of content vs threshold.
aac66a4c 11435 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11436 Likewise.
11437
3f602821
EZ
114382020-01-06 Eli Zaretskii <eliz@gnu.org>
11439
11440 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11441
a08c904d
JT
114422020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11443
11444 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11445 export table if no section contains it's RVA.
11446
89a65580
EZ
114472020-01-06 Eli Zaretskii <eliz@gnu.org>
11448
11449 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11450
8b7fcda2
HD
114512020-01-06 Hannes Domani <ssbssa@yahoo.de>
11452
11453 * source.c (print_source_lines_base): Set last_line_listed.
11454
a61b4f69
SV
114552020-01-06 Shahab Vahedi <shahab@synopsys.com>
11456
11457 * tui/tui-disasm.c: Remove trailing spaces.
11458
559e7e50
EZ
114592020-01-06 Eli Zaretskii <eliz@gnu.org>
11460 Pedro Alves <palves@redhat.com>
11461
11462 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11463 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11464 (windows_gdb_signal_to_target): New function, uses the above
11465 enumeration to convert GDB internal signal codes to equivalent
11466 Windows codes.
11467 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11468 * windows-nat.c: Include "gdb_wait.h".
11469 (get_windows_debug_event): Extract the fatal exception from the
11470 exit status and convert to the equivalent Posix signal number.
11471 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11472 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11473 * gdbsupport/gdb_wait.c: New file, implements
11474 windows_status_to_termsig.
11475 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11476 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11477
f2302a34
AB
114782020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11479
11480 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11481 show_layout.
11482
6a5206eb
LM
114832020-01-05 Luis Machado <luis.machado@linaro.org>
11484
11485 * aarch64-linux-nat.c
11486 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11487 and bfd_mach_aarch64.
11488
6ec1d75e
PW
114892020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11490
11491 * ui-file.c (stdio_file::can_emit_style_escape)
11492 (tee_file::can_emit_style_escape): Ensure style is used also on
11493 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11494 to gdb_stdout.
11495 * main.c (set_gdb_data_directory): Use file style to output the
11496 warning that the given pathname is not a directory.
11497 * top.c (show_history_filename, gdb_safe_append_history)
11498 (show_gdb_datadir): Use file style.
11499
44f81a76
HD
115002020-01-03 Hannes Domani <ssbssa@yahoo.de>
11501
11502 * solib-target.c (struct lm_info_target):
11503 Change offsets to be a unique_xmalloc_ptr.
11504 (solib_target_relocate_section_addresses): Update.
11505
25057eb0
HD
115062020-01-03 Hannes Domani <ssbssa@yahoo.de>
11507
11508 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11509
6e2118f5
BE
115102020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11511
11512 * MAINTAINERS (Write After Approval): Add myself.
11513
8133c7dc
LM
115142020-01-02 Luis Machado <luis.machado@linaro.org>
11515
11516 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11517 Cell BE architecture.
11518 * target.h (struct target_ops) <thread_architecture>: Likewise.
11519
48189bec
HD
115202020-01-01 Hannes Domani <ssbssa@yahoo.de>
11521
11522 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11523
ead1063b
HD
115242020-01-01 Hannes Domani <ssbssa@yahoo.de>
11525
11526 * MAINTAINERS (Write After Approval): Add myself.
11527
e5d78223
JB
115282020-01-01 Joel Brobecker <brobecker@adacore.com>
11529
11530 * gdbarch.sh: Update copyright year range of generated files.
11531
b811d2c2
JB
115322020-01-01 Joel Brobecker <brobecker@adacore.com>
11533
11534 Update copyright year range in all GDB files.
11535
5f4def5c
JB
115362020-01-01 Joel Brobecker <brobecker@adacore.com>
11537
11538 * copyright.py: Convert to Python 3.
11539
51fd4002
JB
115402020-01-01 Joel Brobecker <brobecker@adacore.com>
11541
11542 * copyright.py: Adapt after move of gnulib directory from gdb
11543 directory to toplevel directory.
11544
5fb651f2
JB
115452020-01-01 Joel Brobecker <brobecker@adacore.com>
11546
11547 * copyright.py (main): Exit if run from the wrong directory.
11548
5dd8bf88
JB
115492020-01-01 Joel Brobecker <brobecker@adacore.com>
11550
11551 * top.c (print_gdb_version): Change copyright year to 2020.
11552
9f71dacb 115532020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11554
9f71dacb 11555 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11556
9f71dacb 11557For older changes see ChangeLog-2019.
c906108c
SS
11558\f
11559Local Variables:
11560mode: change-log
11561left-margin: 8
11562fill-column: 74
11563version-control: never
57da7796 11564coding: utf-8
c906108c 11565End: