]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[gdb/tui] Fix Wmaybe-uninitialized warning in tui-winsource.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
90fcc466
TV
12020-07-23 Tom de Vries <tdevries@suse.de>
2
3 PR tui/26282
4 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5 New default constructor.
6
78344df7
AB
72020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
10 exclude non-statement entries.
11
b089853a
KB
122020-07-22 Kevin Buettner <kevinb@redhat.com>
13
14 * NEWS (New commands): Mention new command
15 "maintenance print core-file-backed-mappings".
16
09c2f5d4
KB
172020-07-22 Kevin Buettner <kevinb@redhat.com>
18
19 * corelow.c (gdbcmd.h): Include.
20 (core_target::info_proc_mappings): New method.
21 (get_current_core_target): New function.
22 (maintenance_print_core_file_backed_mappings): New function.
23 (_initialize_corelow): Add core-file-backed-mappings to
24 "maint print" commands.
25
9c5ec5c2
KB
262020-07-22 Kevin Buettner <kevinb@redhat.com>
27
28 * linux-tdep.c (dump_note_entry_p): New function.
29 (linux_dump_mapping_p_ftype): New typedef.
30 (linux_find_memory_regions_full): Add new parameter,
31 should_dump_mapping_p.
32 (linux_find_memory_regions): Adjust call to
33 linux_find_memory_regions_full.
34 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
35 call to linux_find_memory_regions_full.
36
db082f59
KB
372020-07-22 Kevin Buettner <kevinb@redhat.com>
38
39 * corelow.c (solist.h, unordered_map): Include.
40 (class core_target): Add field m_core_file_mappings and
41 method build_file_mappings.
42 (core_target::core_target): Call build_file_mappings.
43 (core_target::~core_target): Free memory associated with
44 m_core_file_mappings.
45 (core_target::build_file_mappings): New method.
46 (core_target::xfer_partial): Use m_core_file_mappings
47 for memory transfers.
48 * linux-tdep.c (linux_read_core_file_mappings): New
49 function.
50 (linux_core_info_proc_mappings): Rewrite to use
51 linux_read_core_file_mappings.
52 (linux_init_abi): Register linux_read_core_file_mappings.
53
7e183d27
KB
542020-07-22 Kevin Buettner <kevinb@redhat.com>
55
56 * arch-utils.c (default_read_core_file_mappings): New function.
57 * arch-utils.c (default_read_core_file_mappings): Declare.
58 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
59 * gdbarch.h, gdbarch.c: Regenerate.
60
2735d421
KB
612020-07-22 Kevin Buettner <kevinb@redhat.com>
62
63 PR corefiles/25631
64 * corelow.c (core_target:xfer_partial): Revise
65 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
66 case after first checking the stratum beneath the core
67 target.
68 (has_all_memory): Return true.
69 * target.c (raw_memory_xfer_partial): Revise comment
70 regarding use of has_all_memory.
71
e56cb451
KB
722020-07-22 Kevin Buettner <kevinb@redhat.com>
73
74 * exec.h (section_table_xfer_memory): Revise declaration,
75 replacing section name parameter with an optional callback
76 predicate.
77 * exec.c (section_table_xfer_memory): Likewise.
78 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
79 of section_table_xfer_memory.
80
32fa152e
TT
812020-07-22 Tom Tromey <tromey@adacore.com>
82
83 * mi/mi-cmd-stack.c (list_args_or_locals): Use
84 lookup_symbol_search_name.
85
a67a1c41
AB
862020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
87
88 * python/py-registers.c (gdbpy_register_object_data_init): Remove
89 redundant local variable.
90 (gdbpy_get_register_descriptor): Extract descriptor vector as a
91 reference, not pointer, update code accordingly.
92
a7b4ff4f
SM
932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
94 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
95
96 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
97 * jit.c (jit_breakpoint_re_set_internal): Use the
98 `skip_jit_symbol_lookup` field.
99
2340e834
SM
1002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
101 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
102
103 * jit.c (jit_read_descriptor): Define the descriptor address once,
104 use twice.
105 (jit_breakpoint_deleted): Move the declaration of the loop variable
106 `iter` into the loop header.
107 (jit_breakpoint_re_set_internal): Move the declaration of the local
108 variable `objf_data` to the first point of definition.
109 (jit_event_handler): Move the declaration of local variables
110 `code_entry`, `entry_addr`, and `objf` to their first point of use.
111 Rename `objf` to `jited`.
112
c1072906
SM
1132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
114
115 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
116 Remove.
117 * jit.c (get_jiter_objfile_data): Update.
118
c8474dc3
TBA
1192020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
120 Simon Marchi <simon.marchi@polymtl.ca>
121
122 * jit.c (struct jit_program_space_data): Remove.
123 (jit_program_space_key): Remove.
124 (jiter_objfile_data::~jiter_objfile_data): Remove program space
125 stuff.
126 (get_jit_program_space_data): Remove.
127 (jit_breakpoint_deleted): Iterate on all of the program space's
128 objfiles.
129 (jit_inferior_init): Likewise.
130 (jit_breakpoint_re_set_internal): Likewise. Also change return
131 type to void.
132 (jit_breakpoint_re_set): Pass current_program_space to
133 jit_breakpoint_re_set_internal.
134
77208eb7
SM
1352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
136
137 * jit.h (struct jiter_objfile_data) <cached_code_address,
138 jit_breakpoint>: Move to here from ...
139 * jit.c (jit_program_space_data): ... here.
140 (jiter_objfile_data::~jiter_objfile_data): Update.
141 (jit_breakpoint_deleted): Update.
142 (jit_breakpoint_re_set_internal): Update.
143
8c1c720f
SM
1442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
147 checks.
148 (jit_read_descriptor): Remove NULL check.
149 (jit_event_handler): Add an assertion.
150
0e74a041
SM
1512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * jit.h (struct jit_objfile_data): Split into...
154 (struct jiter_objfile_data): ... this ...
155 (struct jited_objfile_data): ... and this.
156 * objfiles.h (struct objfile) <jit_data>: Remove.
157 <jiter_data, jited_data>: New fields.
158 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
159 (jiter_objfile_data::~jiter_objfile_data): ... this.
160 (get_jit_objfile_data): Rename to ...
161 (get_jiter_objfile_data): ... this.
162 (add_objfile_entry): Update.
163 (jit_read_descriptor): Use get_jiter_objfile_data.
164 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
165 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
166 (jit_inferior_exit_hook): Use objfile's jited_data field.
167
238b5c9f
SM
1682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * jit.h: Forward-declare `struct minimal_symbol`.
171 (struct jit_objfile_data): Migrate to here from jit.c; also add a
172 constructor, destructor, and an objfile* field.
173 * jit.c (jit_objfile_data): Remove.
174 (struct jit_objfile_data): Migrate from here to jit.h.
175 (jit_objfile_data::~jit_objfile_data): New destructor
176 implementation with code moved from free_objfile_data.
177 (free_objfile_data): Delete.
178 (get_jit_objfile_data): Update to use the jit_data field of objfile.
179 (jit_find_objf_with_entry_addr): Ditto.
180 (jit_inferior_exit_hook): Ditto.
181 (_initialize_jit): Remove the call to
182 register_objfile_data_with_cleanup.
183 * objfiles.h (struct objfile) <jit_data>: New field.
184
fe053b9e
TBA
1852020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
186
187 * jit.h: Forward-declare `struct objfile`.
188 (jit_event_handler): Add a second parameter, the JITer objfile.
189 * jit.c (jit_read_descriptor): Change the signature to take the
190 JITer objfile as an argument instead of the jit_program_space_data.
191 (jit_inferior_init): Update the call to jit_read_descriptor.
192 (jit_event_handler): Use the new JITer objfile argument when calling
193 jit_read_descriptor.
194 * breakpoint.c (handle_jit_event): Update the call to
195 jit_event_handler to pass the JITer objfile.
196
4cec0c66
JB
1972020-07-21 John Baldwin <jhb@FreeBSD.org>
198
199 * gdbarch.c: Regenerate.
200 * gdbarch.h: Regenerate.
201 * gdbarch.sh (handle_segmentation_fault): Remove method.
202 * infrun.c (handle_segmentation_fault): Remove.
203 (print_signal_received_reason): Remove call to
204 handle_segmentation_fault.
205
0e42f66a
JB
2062020-07-21 John Baldwin <jhb@FreeBSD.org>
207
208 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
209 Rename to sparc64_linux_report_signal_info and add siggnal
210 argument.
211 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
212 instead of sparc64_linux_handle_segmentation_fault.
213
77bdfeb2
JB
2142020-07-21 John Baldwin <jhb@FreeBSD.org>
215
216 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
217 i386_linux_report_signal_info instead of
218 i386_linux_handle_segmentation_fault.
219 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
220 to i386_linux_report_signal_info and add siggnal argument.
221 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
222 of i386_linux_handle_segmentation_fault.
223 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
224 to i386_linux_report_signal_info and add siggnal argument.
225
ad97bfc5
JB
2262020-07-21 John Baldwin <jhb@FreeBSD.org>
227
228 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
229 hook if present.
230
272bb05c
JB
2312020-07-21 John Baldwin <jhb@FreeBSD.org>
232
233 * gdbarch.c: Regenerate.
234 * gdbarch.h: Regenerate.
235 * gdbarch.sh (report_signal_info): New method.
236 * infrun.c (print_signal_received_reason): Invoke gdbarch
237 report_signal_info hook if present.
238
baf8791e
AB
2392020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
240
241 * python/py-registers.c : Add 'unordered_map' include.
242 (gdbpy_new_reggroup): Renamed to...
243 (gdbpy_get_reggroup): ...this. Update to only create register
244 group descriptors when needed.
245 (gdbpy_reggroup_iter_next): Update.
246
f7306dac
AB
2472020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
248
249 * python/py-registers.c (gdbpy_register_object_data): New static
250 global.
251 (gdbpy_register_object_data_init): New function.
252 (gdbpy_new_register_descriptor): Renamed to...
253 (gdbpy_get_register_descriptor): ...this, and update to reuse
254 existing register descriptors where possible.
255 (gdbpy_register_descriptor_iter_next): Update.
256 (gdbpy_initialize_registers): Register new gdbarch data.
257
05c309a8
SM
2582020-07-21 Simon Marchi <simon.marchi@efficios.com>
259
260 * linux-nat.c (stopped_pids): Make static.
261
d1fd641e
SM
2622020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
263
264 PR ada/26235
265 * gdbtypes.c (ada_discrete_type_low_bound,
266 ada_discrete_type_high_bound): Handle undefined bounds.
267
1de14d77
KR
2682020-07-21 Kamil Rytarowski <n54@gmx.com>
269
270 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
271 declaration.
272 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
273 function.
274
ed810cc7
JB
2752020-07-20 John Baldwin <jhb@FreeBSD.org>
276
277 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
278 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
279 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
280 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
281 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
282 method.
283
ae5369e7
LC
2842020-07-20 Ludovic Courtès <ludo@gnu.org>
285
286 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
287 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
288 which are deprecated in Guile 3.0.
289 * configure.ac (try_guile_versions): Add "guile-3.0".
290 * configure (try_guile_versions): Regenerate.
291 * NEWS: Update entry.
292
68cf161c
LC
2932020-07-20 Ludovic Courtès <ludo@gnu.org>
294 Doug Evans <dje@google.com>
295
296 PR gdb/21104
297 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
298 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
299 USING_GUILE_BEFORE_2_2.
300 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
301 Change type to 'scm_t_port_type *'.
302 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
303 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
304 parameter and honor it. Update callers.
305 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
306 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
307 functions.
308 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
309 USING_GUILE_BEFORE_2_2.
310 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
311 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
312 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
313 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
314 and 'SCM_PORT_TYPE'.
315 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
316 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
317 (gdbscm_memory_port_read, gdbscm_memory_port_write)
318 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
319 [!USING_GUILE_BEFORE_2_2]: New functions.
320 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
321 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
322 'gdbscm_memory_port_read'.
323 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
324 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
325 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
326 function.
327 (ioscm_init_memory_port): Remove.
328 (ioscm_init_memory_port_stream): New function
329 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
330 function.
331 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
332 Return scm_from_uint (0).
333 (gdbscm_set_memory_port_read_buffer_size_x)
334 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
335 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
336 Return scm_from_uint (0).
337 (gdbscm_set_memory_port_write_buffer_size_x)
338 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
339 * configure.ac (try_guile_versions): Add "guile-2.2".
340 * configure: Regenerate.
341 * NEWS: Add entry.
342
aee91db3
TT
3432020-07-18 Tom Tromey <tom@tromey.com>
344
345 * linux-nat.c (linux_multi_process): Remove.
346 (linux_nat_target::supports_multi_process): Return true.
347
0e267416
AB
3482020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
349
350 * arch/riscv.c (riscv_tdesc_cache): Change map type.
351 (riscv_lookup_target_description): Return pointer out of
352 unique_ptr.
353 * target-descriptions.c (allocate_target_description): Add
354 comment.
355 (target_desc_deleter::operator()): Likewise.
356 * target-descriptions.h (struct target_desc_deleter): Moved to
357 gdbsupport/tdesc.h.
358 (target_desc_up): Likewise.
359
f80c8ec4
TT
3602020-07-17 Tom Tromey <tromey@adacore.com>
361
362 * linux-nat.c (linux_nat_target::supports_non_stop)
363 (linux_nat_target::always_non_stop_p): Use "true".
364 (linux_nat_target::supports_disable_randomization): Use "true" and
365 "false".
366
d0ce17d8
CT
3672020-07-16 Caroline Tice <cmtice@google.com>
368
369 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
370 (RNGLIST_HEADER_SIZE64): New constant definition.
371 (struct dwop_section_names): Add rnglists_dwo.
372 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
373 (struct loclist_header): Rename to 'loclists_rnglists_header'.
374 (struct dwo_sections): Add rnglists field.
375 (read_attribut_reprocess): Add tag parameter.
376 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
377 (cu_debug_rnglists_section): New function (decl & definition).
378 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
379 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
380 die whose range is being checked; get rnglist section from
381 cu_debug_rnglists_section, to get from either objfile or dwo file as
382 appropriate. Add cases for DW_RLE_base_addressx,
383 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
384 the base address to DW_RLE_offset_pairs (not to all ranges), moving
385 test inside if-condition and updating complaint message.
386 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
387 dwarf2_rnglists_process.
388 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
389 dwarf2_ranges_process.
390 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
391 need_ranges_base and update comment appropriately. Also pass die tag
392 to dwarf2_ranges_read.
393 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
394 need_ranges_base and update comment appropriately. Also pass die tag
395 to dwarf2_ranges_process.
396 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
397 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
398 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
399 need_ranges_base and update comment appropriately. Also pass die tag
400 to read_attribute_reprocess and dwarf2_ranges_read.
401 (read_loclist_header): Rename function to read_loclists_rnglists_header,
402 and update function comment appropriately.
403 (read_loclist_index): Call read_loclists_rnglists_header instead of
404 read_loclist_header.
405 (read_rnglist_index): New function.
406 (read_attribute_reprocess): Add tag parameter. Add code for
407 DW_FORM_rnglistx, passing tag to read_rnglist_index.
408 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
409
3dcc261c
AB
4102020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
411
412 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
413 being resolved.
414
ccb9eba6
AB
4152020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
416
417 * arch-utils.c (show_architecture): Update formatting of messages.
418
cf88be68
SM
4192020-07-12 Simon Marchi <simon.marchi@efficios.com>
420
421 * gdbtypes.h (struct type) <bounds>: Handle array and string
422 types.
423 * ada-lang.c (assign_aggregate): Use type::bounds on
424 array/string type.
425 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
426 * c-varobj.c (c_number_of_children): Likewise.
427 (c_describe_child): Likewise.
428 * eval.c (evaluate_subexp_for_sizeof): Likewise.
429 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
430 (f_type_print_base): Likewise.
431 * f-valprint.c (f77_array_offset_tbl): Likewise.
432 (f77_get_upperbound): Likewise.
433 (f77_print_array_1): Likewise.
434 * guile/scm-type.c (gdbscm_type_range): Likewise.
435 * m2-typeprint.c (m2_array): Likewise.
436 (m2_is_long_set_of_type): Likewise.
437 * m2-valprint.c (get_long_set_bounds): Likewise.
438 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
439 * python/py-type.c (typy_range): Likewise.
440 * rust-lang.c (rust_internal_print_type): Likewise.
441 * type-stack.c (type_stack::follow_types): Likewise.
442 * valarith.c (value_subscripted_rvalue): Likewise.
443 * valops.c (value_cast): Likewise.
444
509971ae
SM
4452020-07-12 Simon Marchi <simon.marchi@efficios.com>
446
447 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
448 callers to use the equivalent accessor methods.
449
107406b7
SM
4502020-07-12 Simon Marchi <simon.marchi@efficios.com>
451
452 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
453 (struct type) <bit_stride>: New method.
454 (TYPE_BIT_STRIDE): Remove.
455 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
456
bb789949
SM
4572020-07-12 Simon Marchi <simon.marchi@efficios.com>
458
459 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
460 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
461 callers to use the equivalent accessor methods instead.
462
39498edb
SM
4632020-07-12 Simon Marchi <simon.marchi@efficios.com>
464
465 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
466 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
467 callers to use the equivalent accessor methods instead.
468
3b606f38
SM
4692020-07-12 Simon Marchi <simon.marchi@efficios.com>
470
471 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
472 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
473 to use dynamic_prop::kind.
474
064d9cb9
SM
4752020-07-12 Simon Marchi <simon.marchi@efficios.com>
476
477 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
478 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
479 to get the bound property's kind and check against
480 PROP_UNDEFINED.
481
5537ddd0
SM
4822020-07-12 Simon Marchi <simon.marchi@efficios.com>
483
484 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
485 all callers to use type::range_bounds followed by
486 dynamic_prop::{low,high}.
487
8c2e4e06
SM
4882020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
489
490 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
491 const_val, set_const_val, baton, set_locexpr, set_loclist,
492 set_addr_offset, variant_parts, set_variant_parts,
493 original_type, set_original_type>: New methods.
494 <kind>: Rename to...
495 <m_kind>: ... this. Update all users to use the new methods
496 instead.
497 <data>: Rename to...
498 <m_data>: ... this. Update all users to use the new methods
499 instead.
500
7c6f2712
SM
5012020-07-12 Simon Marchi <simon.marchi@efficios.com>
502
503 * gdbtypes.c (get_discrete_bounds): Return failure if
504 the range type's bounds are not both defined and constant
505 values.
506 (get_array_bounds): Update comment. Remove undefined bound check.
507
599088e3
SM
5082020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
511 the type::bounds method directly.
512
c4dfcb36
SM
5132020-07-12 Simon Marchi <simon.marchi@efficios.com>
514
515 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
516 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
517 are used to set the range type's bounds to use set_bounds.
518
0a278aa7
PW
5192020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
520
521 * exec.c (_initialize_exec): Update exec-file-mismatch help.
522
cce20f10
PA
5232020-07-10 Pedro Alves <pedro@palves.net>
524
525 * gdbthread.h (inferior_ref): Define.
526 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
527 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
528 * thread.c
529 (scoped_restore_current_thread::restore):
530 Adjust to gdb::ref_ptr.
531 (scoped_restore_current_thread::~scoped_restore_current_thread):
532 Remove manual decref handling.
533 (scoped_restore_current_thread::scoped_restore_current_thread):
534 Adjust to use
535 inferior_ref::new_reference/thread_info_ref::new_reference.
536 Incref the thread before calling get_frame_id instead of after.
537 Let TARGET_CLOSE_ERROR propagate.
538
6d7aa592
PA
5392020-07-10 Pedro Alves <pedro@palves.net>
540
541 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
542 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
543 NOT_AVAILABLE_ERROR.
544 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
545 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
546
b3e3a4c1
SM
5472020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
548 Pedro Alves <pedro@palves.net>
549
550 PR gdb/26199
551 * infrun.c (threads_are_resumed_pending_p): Delete.
552 (do_target_wait): Remove threads_are_executing and
553 threads_are_resumed_pending_p checks from the inferior_matches
554 lambda. Update comments.
555
d6cc5d98
PA
5562020-07-10 Pedro Alves <pedro@palves.net>
557
558 PR gdb/26199
559 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
560 executing threads.
561
7d3badc6
PA
5622020-07-10 Pedro Alves <pedro@palves.net>
563
564 PR gdb/26199
565 * infrun.c (handle_no_resumed): Handle multiple targets.
566
42bd97a6
PA
5672020-07-10 Pedro Alves <pedro@palves.net>
568
569 PR gdb/26199
570 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
571 target_is_async_p.
572
43667cc6
PA
5732020-07-10 Pedro Alves <pedro@palves.net>
574
575 PR gdb/26199
576 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
577 threads, not all threads.
578
96118d11
PA
5792020-07-10 Pedro Alves <pedro@palves.net>
580
581 PR gdb/26199
582 * remote.c (remote_target::open_1): Pass remote target pointer as
583 data to create_async_event_handler.
584 (remote_async_inferior_event_handler): Mark async event handler
585 before returning if the remote target still has either pending
586 events or unacknowledged notifications.
587
54904d81
JB
5882020-07-10 John Baldwin <jhb@FreeBSD.org>
589
590 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
591 declaration.
592 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
593 function.
594
f37e5866
JB
5952020-07-09 John Baldwin <jhb@FreeBSD.org>
596
597 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
598 inferior_ptid.
599
fc238d4a
JB
6002020-07-09 John Baldwin <jhb@FreeBSD.org>
601
602 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
603 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
604 AT_FREEBSD_PS_STRINGS.
605
6e2469ff
HD
6062020-07-08 Hannes Domani <ssbssa@yahoo.de>
607
608 * auto-load.c (auto_load_objfile_script_1): Convert drive part
609 of debugfile path on Windows.
610
d1076c41
JB
6112020-07-08 John Baldwin <jhb@FreeBSD.org>
612
613 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
614 argument to 'data'.
615
15f3b077
TT
6162020-07-08 Tom Tromey <tromey@adacore.com>
617
618 * ada-lang.c (ada_exception_message_1): Use read_memory.
619
9fc501fd
AB
6202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
621
622 PR python/22748
623 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
624 special handling for inline frames.
625 * findvar.c (value_of_register_lazy): Skip inline frames when
626 creating lazy register values.
627 * frame.c (frame_id_computed_p): Delete definition.
628 * frame.h (frame_id_computed_p): Delete declaration.
629
64cb3757
AB
6302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * NEWS: Mention additions to Python API.
633 * python/py-arch.c (archpy_register_groups): New function.
634 (arch_object_methods): Add 'register_groups' method.
635 * python/py-registers.c (reggroup_iterator_object): New struct.
636 (reggroup_object): New struct.
637 (gdbpy_new_reggroup): New function.
638 (gdbpy_reggroup_to_string): New function.
639 (gdbpy_reggroup_name): New function.
640 (gdbpy_reggroup_iter): New function.
641 (gdbpy_reggroup_iter_next): New function.
642 (gdbpy_new_reggroup_iterator): New function
643 (gdbpy_initialize_registers): Register new types.
644 (reggroup_iterator_object_type): Define new Python type.
645 (gdbpy_reggroup_getset): New static global.
646 (reggroup_object_type): Define new Python type.
647 * python/python-internal.h
648
0f767f94
AB
6492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
650
651 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
652 * python/py-arch.c (archpy_registers): New function.
653 (arch_object_methods): Add 'registers' method.
654 * python/py-registers.c: New file.
655 * python/python-internal.h
656 (gdbpy_new_register_descriptor_iterator): Declare.
657 (gdbpy_initialize_registers): Declare.
658 * python/python.c (do_start_initialization): Call
659 gdbpy_initialize_registers.
660 * NEWS: Mention additions to the Python API.
661
87dbc774
AB
6622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
663
664 * NEWS: Mention new Python API method.
665 * python/py-unwind.c (pending_framepy_architecture): New function.
666 (pending_frame_object_methods): Add architecture method.
667
3bc98c0c
AB
6682020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
669
670 * gdbarch.c: Regenerate.
671 * gdbarch.h: Regenerate.
672 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
673 (gdbarch_data): Use internal_error for the case where
674 deprecated_set_gdbarch_data was originally needed.
675 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
676 and use passed in obstack.
677 (libunwind_frame_set_descr): Should no longer get back NULL from
678 gdbarch_data.
679 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
680 type.
681 * user-regs.c (user_regs_init): Update parameters, and use passed
682 in obstack.
683 (user_reg_add): Should no longer get back NULL from gdbarch_data.
684 (_initialize_user_regs): Register as a pre-init gdbarch data type.
685
d8cc8af6
TV
6862020-07-06 Tom de Vries <tdevries@suse.de>
687
688 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
689 End-Of-Sequence in lte_is_less_than.
690 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
691 "gdb: Don't reorder line table entries too much when sorting".
692
947f7597
TV
6932020-07-06 Tom de Vries <tdevries@suse.de>
694
695 PR tui/26205
696 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
697
1e7c1b22
TV
6982020-07-05 Tom de Vries <tdevries@suse.de>
699
700 PR build/26187
701 * inferior.h (struct infcall_suspend_state_deleter): If available, use
702 std::uncaught_exceptions instead of deprecated
703 std::uncaught_exception.
704
a36158ec
SM
7052020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
706
707 * macroexp.h (macro_stringify): Return
708 gdb::unique_xmalloc_ptr<char>.
709 * macroexp.c (macro_stringify): Likewise.
710 * macrotab.c (fixup_definition): Update.
711
14d960c8
SM
7122020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
713
714 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
715 (lex_one_token): Update.
716 * macroexp.c (struct macro_buffer) <release>: Return
717 gdb::unique_xmalloc_ptr<char>.
718 (macro_stringify): Update.
719 (macro_expand): Update.
720 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
721 * macroexp.h (macro_expand_next): Likewise.
722
211d5b1c
SM
7232020-07-02 Simon Marchi <simon.marchi@efficios.com>
724
725 * macroexp.h (macro_lookup_ftype): Remove.
726 (macro_expand, macro_expand_once, macro_expand_next): Remove
727 lookup function parameters, add scope parameter.
728 * macroexp.c (scan, substitute_args, expand, maybe_expand,
729 macro_expand, macro_expand_once, macro_expand_next): Likewise.
730 * macroscope.h (standard_macro_lookup): Change parameter type
731 to macro_scope.
732 * macroscope.c (standard_macro_lookup): Likewise.
733 * c-exp.y (lex_one_token): Update.
734 * macrocmd.c (macro_expand_command): Likewise.
735 (macro_expand_once_command): Likewise.
736
b1a35af2
SM
7372020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * inf-loop.c (inferior_event_handler): Remove client_data param.
740 * inf-loop.h (inferior_event_handler): Likewise.
741 * infcmd.c (step_1): Adjust.
742 * infrun.c (proceed): Adjust.
743 (fetch_inferior_event): Remove client_data param.
744 (infrun_async_inferior_event_handler): Adjust.
745 * infrun.h (fetch_inferior_event): Remove `void *` param.
746 * linux-nat.c (handle_target_event): Adjust.
747 * record-btrace.c (record_btrace_handle_async_inferior_event):
748 Adjust.
749 * record-full.c (record_full_async_inferior_event_handler):
750 Adjust.
751 * remote.c (remote_async_inferior_event_handler): Adjust.
752
1cdf9e33
TT
7532020-07-01 Tom Tromey <tom@tromey.com>
754
755 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
756 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
757
32c1e210
TT
7582020-07-01 Tom Tromey <tom@tromey.com>
759
760 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
761 tui_gen_win_info.
762 (tui_win_info::make_window): Merge with
763 tui_gen_win_info::make_window.
764 (tui_win_info::make_visible): Move from tui_gen_win_info.
765 * tui/tui-win.c (tui_win_info::max_width): Move from
766 tui_gen_win_info.
767 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
768 type.
769 <window_factory>: Likewise.
770 * tui/tui-layout.c (tui_win_info::resize): Move from
771 tui_gen_win_info.
772 (make_standard_window): Change return type.
773 (get_locator_window, tui_get_window_by_name): Likewise.
774 (tui_layout_window::apply): Remove a cast.
775 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
776 (struct tui_win_info): Merge with tui_gen_win_info.
777 (struct tui_gen_win_info): Remove.
778
a30cb6da
TT
7792020-07-01 Tom Tromey <tom@tromey.com>
780
781 * tui/tui-stack.h (struct tui_locator_window): Derive from
782 tui_win_info.
783 <do_scroll_horizontal, do_scroll_vertical>: New methods.
784 <can_box>: New method.
785
1eb2161f
TT
7862020-07-01 Tom Tromey <tom@tromey.com>
787
788 * tui/tui-stack.h (struct tui_locator_window): Remove body.
789
7134f2eb
TT
7902020-07-01 Tom Tromey <tom@tromey.com>
791
792 * tui/tui-regs.c (tui_data_window::display_registers_from)
793 (tui_data_window::display_registers_from)
794 (tui_data_window::first_data_item_displayed)
795 (tui_data_window::delete_data_content_windows): Update.
796 (tui_data_window::refresh_window, tui_data_window::no_refresh):
797 Remove.
798 (tui_data_window::check_register_values): Update.
799 (tui_data_item_window::rerender): Add parameters. Update.
800 (tui_data_item_window::refresh_window): Remove.
801 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
802 virtual.
803 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
804 tui_gen_win_info.
805 <refresh_window, max_height, min_height>: Remove.
806 <rerender>: Add parameters.
807 <x, y, visible>: New members.
808 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
809 <m_item_width>: New member.
810
22b7b041
TT
8112020-07-01 Tom Tromey <tom@tromey.com>
812
813 * tui/tui-regs.c (tui_data_window::show_register_group)
814 (tui_data_window::check_register_values): Update.
815 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
816 from item_no.
817
c9753adb
TT
8182020-07-01 Tom Tromey <tom@tromey.com>
819
820 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
821 useless "if".
822
9ab26b4a
TT
8232020-07-01 Tom Tromey <tom@tromey.com>
824
825 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
826 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
827
e555083f
TT
8282020-07-01 Tom Tromey <tom@tromey.com>
829
830 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
831 * tui/tui-winsource.h (enum tui_line_or_address_kind)
832 (struct tui_line_or_address): Move from tui-data.h.
833 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
834 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
835 (tui_cmd_window, tui_source_window_base, tui_source_window)
836 (tui_disasm_window): Don't declare.
837 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
838 to tui-winsource.h.
839 (SINGLE_KEY): Move to tui-stack.c.
840
7a02bab7
TT
8412020-07-01 Tom Tromey <tom@tromey.com>
842
843 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
844 std::string.
845 * tui/tui-regs.c (class tab_expansion_file): New.
846 (tab_expansion_file::write): New method.
847 (tui_register_format): Change return type. Use
848 tab_expansion_file.
849 (tui_get_register, tui_data_window::display_registers_from)
850 (tui_data_item_window::rerender): Update.
851 * tui/tui-io.h (tui_expand_tabs): Don't declare.
852 * tui/tui-io.c (tui_expand_tabs): Remove.
853
ea68593b
TT
8542020-07-01 Tom Tromey <tom@tromey.com>
855
856 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
857
a8caed5d
FS
8582020-07-01 Fangrui Song <maskray@google.com>
859
860 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
861
9cdf9820
AKS
8622020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
863
864 * dwarf2/read.c (set_die_type): Removed conditions to restrict
865 forms for DW_AT_associated and DW_AT_allocated attributes,
866 which is already checked in function attr_to_dynamic_prop.
867
a1520ad8
TT
8682020-06-30 Tom Tromey <tromey@adacore.com>
869
870 * dwarf2/read.c (quirk_rust_enum): Correctly call
871 alloc_rust_variant for default-less enum.
872
5ac58899
TT
8732020-06-30 Tom Tromey <tromey@adacore.com>
874
875 PR build/26183:
876 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
877 gdb::to_string.
878
19b187a9
SM
8792020-06-29 Simon Marchi <simon.marchi@efficios.com>
880
881 * gdbarch.sh (displaced_step_copy_insn): Update doc.
882 * gdbarch.h: Re-generate.
883
cd4c4c07
TT
8842020-06-28 Tom Tromey <tom@tromey.com>
885
886 * command.h (cmd_types): Remove.
887 (cmd_type): Don't declare.
888 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
889 typedef.
890 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
891 * cli/cli-decode.c (cmd_type): Remove.
892
05779d57
PA
8932020-06-27 Pedro Alves <palves@redhat.com>
894
895 * fork-child.c (prefork_hook): Adjust.
896 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
897 Delete.
898 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
899 * inferior.c (inferior::set_tty, inferior::tty): New methods.
900 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
901 Remove declarations.
902 (struct inferior) <set_tty, tty>: New methods.
903 (struct inferior) <terminal>: Rename to ...
904 (struct inferior) <m_terminal>: ... this and make private.
905 * main.c (captured_main_1): Adjust.
906 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
907 (mi_cmd_inferior_tty_show): Adjust.
908 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
909 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
910
1776e3e5
NA
9112020-06-26 Nick Alcock <nick.alcock@oracle.com>
912
913 * configure.ac: Add --enable-libctf: handle --disable-static
914 properly.
915 * acinclude.m4: sinclude ../config/enable.m4.
916 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
917 (LIBCTF): Substitute in.
918 (CTF_DEPS): New, likewise.
919 (CLIBS): libctf needs symbols from libbfd: move earlier.
920 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
921 flags.
922 * ctfread.c: Surround in ENABLE_LIBCTF.
923 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
924 * configure: Regenerate.
925 * config.in: Likewise.
926
58373b80
SM
9272020-06-25 Simon Marchi <simon.marchi@efficios.com>
928
929 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
930
277474ee
SM
9312020-06-25 Simon Marchi <simon.marchi@efficios.com>
932
933 * inferior.h (struct inferior) <terminal>: Change type to
934 gdb::unique_xmalloc_ptr<char>.
935 * inferior.c (inferior::~inferior): Don't free inf->terminal.
936 * infcmd.c (set_inferior_io_terminal): Don't free terminal
937 field, adjust to unique pointer.
938 (get_inferior_io_terminal): Adjust to unique pointer.
939
6d74da72
AB
9402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 * riscv-tdep.c (riscv_print_registers_info): Loop over all
943 registers, not just the known core set of registers.
944
2e52d038
AB
9452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
946
947 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
948 fflags, frm, and fcsr registers.
949 (riscv_register_reggroup_p): Remove unknown CSRs from save and
950 restore groups.
951 (riscv_tdesc_unknown_reg): New function.
952 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
953 tdesc_use_registers.
954 * riscv-tdep.h (struct gdbarch_tdep): Add
955 unknown_csrs_first_regnum, unknown_csrs_count,
956 duplicate_fflags_regnum, duplicate_frm_regnum, and
957 duplicate_fcsr_regnum fields.
958
be64fd07
AB
9592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
960
961 * target-descriptions.c (tdesc_use_registers): Add new parameter a
962 callback, use the callback (when not null) to help number unknown
963 registers.
964 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
965 (tdesc_use_registers): Add extra parameter to declaration.
966
3b9fce96
AB
9672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
968
969 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
970 in the file.
971 (class riscv_pending_register_alias): Likewise.
972 (riscv_register_feature::register_info): Change 'required_p' field
973 to 'required', and change its type. Add 'check' member function.
974 (riscv_register_feature::register_info::check): Define new member
975 function.
976 (riscv_xreg_feature): Change initialisation of 'required' field.
977 (riscv_freg_feature): Likewise.
978 (riscv_virtual_feature): Likewise.
979 (riscv_csr_feature): Likewise.
980 (riscv_check_tdesc_feature): Take extra parameter, the csr
981 tdesc_feature, rewrite the function to use the new
982 riscv_register_feature::register_info::check function.
983 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
984
865bad26
AB
9852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * features/Makefile: Remove all references to the deleted files
988 below.
989 * features/riscv/32bit-csr.c: Deleted.
990 * features/riscv/32bit-csr.xml: Deleted.
991 * features/riscv/64bit-csr.c: Deleted.
992 * features/riscv/64bit-csr.xml: Deleted.
993 * features/riscv/rebuild-csr-xml.sh: Deleted.
994
ed69cbc8
AB
9952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
996
997 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
998 whitespace error for declaration of names member variable.
999 (struct riscv_register_feature): Add new prefer_first_name member
1000 variable, and fix whitespace error in declaration of registers.
1001 (riscv_xreg_feature): Initialize prefer_first_name field.
1002 (riscv_freg_feature): Likewise.
1003 (riscv_virtual_feature): Likewise.
1004 (riscv_csr_feature): Likewise.
1005 (riscv_register_name): Expand on comments. Remove register name
1006 modifications for CSR and virtual registers.
1007
4445e8f5
AB
10082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1009
1010 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1011 errors.
1012
767a879e
AB
10132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1014
1015 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1016 riscv-opc.h.
1017 (class riscv_pending_register_alias): New class.
1018 (riscv_check_tdesc_feature): Take vector of pending aliases and
1019 populate it as appropriate.
1020 (riscv_setup_register_aliases): Delete.
1021 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1022 to riscv_check_tdesc_feature in all cases. Use the vector to
1023 create the register aliases.
1024
bb6e55f3
RO
10252020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1026
1027 * sol2-tdep.c (sol2_static_transform_name): Remove.
1028 (sol2_init_abi): Don't register it.
1029 * gdbarch.sh (static_transform_name): Remove.
1030 * gdbarch.c, gdbarch.h: Regenerate.
1031
1032 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1033 gdbarch_static_transform_name.
1034 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1035 * stabsread.c (define_symbol) <'X'>: Remove.
1036 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1037 handling.
1038 <'V'>: Likewise.
1039 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1040 <'S'>: Remove call to gdbarch_static_transform_name.
1041
c6d36836
RO
10422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1043
1044 * procfs.c (procfs_pre_trace): New function.
1045 (procfs_target::create_inferior): Pass it to fork_inferior.
1046
a7e6196b
RO
10472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1048
1049 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1050 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1051 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1052 sol2-tdep.o, sparc-sol2-tdep.o.
1053 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1054 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1055 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1056 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1057
d412e696
RO
10582020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1059
1060 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1061 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1062 Call sol2_init_abi.
1063 Remove calls to set_gdbarch_skip_solib_resolver,
1064 set_gdbarch_core_pid_to_str.
1065 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1066 (i386_sol2_static_transform_name): Remove.
1067 (i386_sol2_init_abi): Call sol2_init_abi.
1068 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1069 set_gdbarch_static_transform_name,
1070 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1071 Use sol2_sigtramp_p.
1072 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1073 (sol2_sigtramp_p): New function.
1074 (sol2_static_transform_name): New function.
1075 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1076 (sol2_init_abi): New function.
1077 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1078 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1079 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1080 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1081 (sparc_sol2_static_transform_name): Remove.
1082 (sparc32_sol2_init_abi): Call sol2_init_abi.
1083 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1084 set_gdbarch_static_transform_name,
1085 set_gdbarch_skip_solib_resolver,
1086 set_gdbarch_core_pid_to_str.
1087 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1088 (sparc_sol2_static_transform_name): Remove
1089 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1090 call sol2_sigtramp_p.
1091 (sparc64_sol2_init_abi): Call sol2_init_abi.
1092 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1093 set_gdbarch_static_transform_name,
1094 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1095
a8654e7d
PW
10962020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1097
1098 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1099 * exec.c (validate_exec_file): If from_tty, set both
1100 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1101 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1102 and from_tty, unconditionally ask a confirmation.
1103
caa7fd04
AB
11042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * target-descriptions.c (tdesc_architecture_name): Protect against
1107 NULL pointer dereference.
1108 (maint_print_xml_tdesc_cmd): New function.
1109 (_initialize_target_descriptions): Register new 'maint print
1110 xml-tdesc' command and give it the filename completer.
1111 * NEWS: Mention new 'maint print xml-tdesc' command.
1112
fbf42f4e
AB
11132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * target-descriptions.c (class tdesc_compatible_info): New class.
1116 (struct target_desc): Change type of compatible vector.
1117 (tdesc_compatible_p): Update for change in type of
1118 target_desc::compatible.
1119 (tdesc_compatible_info_list): New function.
1120 (tdesc_compatible_info_arch_name): New function.
1121 (tdesc_add_compatible): Update for change in type of
1122 target_desc::compatible.
1123 (print_c_tdesc::visit_pre): Likewise.
1124
20821f4e
AB
11252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1128 whitespace to underscore.
1129 (maint_print_c_tdesc_cmd): Use fake filename for target
1130 descriptions that came from the target.
1131 (_initialize_target_descriptions): Add filename command completion
1132 for 'maint print c-tdesc'.
1133
1fb5ee62
SM
11342020-06-23 Simon Marchi <simon.marchi@efficios.com>
1135
1136 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1137 lines.
1138
fc3ecb3e
SM
11392020-06-23 Simon Marchi <simon.marchi@efficios.com>
1140
1141 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1142 lines.
1143 (dwarf2_find_location_expression): Likewise.
1144 (call_site_parameter_matches): Likewise.
1145 (dwarf2_compile_expr_to_ax): Likewise.
1146 (disassemble_dwarf_expression): Likewise.
1147 (loclist_describe_location): Likewise.
1148
236ef034
PA
11492020-06-23 Pedro Alves <palves@redhat.com>
1150
1151 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1152 progspace-and-thread.h. Include scoped-mock-context.h instead.
1153 (register_to_value_test): Use scoped_mock_context.
1154 * regcache.c: Include "scoped-mock-context.h".
1155 (cooked_read_test): Don't error out if a target is already pushed.
1156 Use scoped_mock_context. Adjust.
1157 * scoped-mock-context.h: New file.
1158
39e7ecca
AB
11592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1162 initializer.
1163 (ada_language::is_string_type_p): New member function.
1164 * c-lang.c (c_language_data): Delete la_is_string_type_p
1165 initializer.
1166 (cplus_language_data): Likewise.
1167 (asm_language_data): Likewise.
1168 (minimal_language_data): Likewise.
1169 * d-lang.c (d_language_data): Likewise.
1170 * f-lang.c (f_is_string_type_p): Delete function, implementation
1171 moved to f_language::is_string_type_p.
1172 (f_language_data): Delete la_is_string_type_p initializer.
1173 (f_language::is_string_type_p): New member function,
1174 implementation from f_is_string_type_p.
1175 * go-lang.c (go_is_string_type_p): Delete function, implementation
1176 moved to go_language::is_string_type_p.
1177 (go_language_data): Delete la_is_string_type_p initializer.
1178 (go_language::is_string_type_p): New member function,
1179 implementation from go_is_string_type_p.
1180 * language.c (language_defn::is_string_type_p): Define new member
1181 function.
1182 (default_is_string_type_p): Make static, add comment copied from
1183 header file.
1184 (unknown_language_data): Delete la_is_string_type_p initializer.
1185 (unknown_language::is_string_type_p): New member function.
1186 (auto_language_data): Delete la_is_string_type_p initializer.
1187 (auto_language::is_string_type_p): New member function.
1188 * language.h (language_data): Delete la_is_string_type_p field.
1189 (language_defn::is_string_type_p): Declare new function.
1190 (default_is_string_type_p): Delete desclaration, move comment to
1191 definition.
1192 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1193 moved to m2_language::is_string_type_p.
1194 (m2_language_data): Delete la_is_string_type_p initializer.
1195 (m2_language::is_string_type_p): New member function,
1196 implementation from m2_is_string_type_p.
1197 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1198 initializer.
1199 * opencl-lang.c (opencl_language_data): Likewise.
1200 * p-lang.c (pascal_is_string_type_p): Delete function,
1201 implementation moved to pascal_language::is_string_type_p.
1202 (pascal_language_data): Delete la_is_string_type_p initializer.
1203 (pascal_language::is_string_type_p): New member function,
1204 implementation from pascal_is_string_type_p.
1205 * rust-lang.c (rust_is_string_type_p): Delete function,
1206 implementation moved to rust_language::is_string_type_p.
1207 (rust_language_data): Delete la_is_string_type_p initializer.
1208 (rust_language::is_string_type_p): New member function,
1209 implementation from rust_is_string_type_p.
1210 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1211 is_string_type_p.
1212
4ffc13fb
AB
12132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1214
1215 * ada-lang.c (ada_language_data): Delete la_print_typedef
1216 initializer.
1217 (ada_language::print_typedef): New member function.
1218 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1219 (cplus_language_data): Likewise.
1220 (asm_language_data): Likewise.
1221 (minimal_language_data): Likewise.
1222 * d-lang.c (d_language_data): Likewise.
1223 * f-lang.c (f_language_data): Likewise.
1224 (f_language::print_typedef): New member function.
1225 * go-lang.c (go_language_data): Delete la_print_typedef
1226 initializer.
1227 * language.c (language_defn::print_typedef): Define member
1228 function.
1229 (unknown_language_data): Delete la_print_typedef initializer.
1230 (unknown_language::print_typedef): New member function.
1231 (auto_language_data): Delete la_print_typedef initializer.
1232 (auto_language::print_typedef): New member function.
1233 * language.h (language_data): Delete la_print_typedef field.
1234 (language_defn::print_typedef): Declare new member function.
1235 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1236 (default_print_typedef): Delete declaration.
1237 * m2-lang.c (m2_language_data): Delete la_print_typedef
1238 initializer.
1239 (m2_language::print_typedef): New member function.
1240 * objc-lang.c (objc_language_data): Delete la_print_typedef
1241 initializer.
1242 * opencl-lang.c (opencl_language_data): Likewise.
1243 * p-lang.c (pascal_language_data): Likewise.
1244 (pascal_language::print_typedef): New member function.
1245 * rust-lang.c (rust_print_typedef): Delete function,
1246 implementation moved to rust_language::print_typedef.
1247 (rust_language): Delete la_print_typedef initializer.
1248 (rust_language::print_typedef): New member function,
1249 implementation from rust_print_typedef.
1250 * typeprint.c (default_print_typedef): Delete.
1251
d711ee67
AB
12522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1253
1254 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1255 (ada_language::printstr): New member function.
1256 * c-lang.c (c_language_data): Delete la_printstr initializer.
1257 (cplus_language_data): Likewise.
1258 (asm_language_data): Likewise.
1259 (minimal_language_data): Likewise.
1260 * d-lang.c (d_language_data): Likewise.
1261 * f-lang.c (f_printstr): Rename to f_language::printstr.
1262 (f_language_data): Delete la_printstr initializer.
1263 (f_language::printstr): New member function, implementation from
1264 f_printstr.
1265 * go-lang.c (go_language_data): Delete la_printstr initializer.
1266 * language.c (language_defn::printstr): Define new member
1267 function.
1268 (unk_lang_printstr): Delete.
1269 (unknown_language_data): Delete la_printstr initializer.
1270 (unknown_language::printstr): New member function.
1271 (auto_language_data): Delete la_printstr initializer.
1272 (auto_language::printstr): New member function.
1273 * language.h (language_data): Delete la_printstr field.
1274 (language_defn::printstr): Declare new member function.
1275 (LA_PRINT_STRING): Update call to printstr.
1276 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1277 (m2_language_data): Delete la_printstr initializer.
1278 (m2_language::printstr): New member function, implementation from
1279 m2_printstr.
1280 * objc-lang.c (objc_language_data): Delete la_printstr
1281 initializer.
1282 * opencl-lang.c (opencl_language_data): Likewise.
1283 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1284 (pascal_language_data): Delete la_printstr initializer.
1285 (pascal_language::printstr): New member function, implementation
1286 from pascal_printstr.
1287 * p-lang.h (pascal_printstr): Delete declaration.
1288 * rust-lang.c (rust_printstr): Update header comment.
1289 (rust_language_data): Delete la_printstr initializer.
1290 (rust_language::printstr): New member function.
1291
52b50f2c
AB
12922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1295 (ada_language::printchar): New member function.
1296 * c-lang.c (c_language_data): Delete la_printchar initializer.
1297 (cplus_language_data): Likewise.
1298 (asm_language_data): Likewise.
1299 (minimal_language_data): Likewise.
1300 * d-lang.c (d_language_data): Likewise.
1301 * f-lang.c (f_printchar): Rename to f_language::printchar.
1302 (f_language_data): Delete la_printchar initializer.
1303 (f_language::printchar): New member function, implementation from
1304 f_printchar.
1305 * go-lang.c (go_language_data): Delete la_printchar initializer.
1306 * language.c (unk_lang_printchar): Delete.
1307 (language_defn::printchar): Define new member function.
1308 (unknown_language_data): Delete la_printchar initializer.
1309 (unknown_language::printchar): New member function.
1310 (auto_language_data): Delete la_printchar initializer.
1311 (auto_language::printchar): New member function.
1312 * language.h (language_data): Delete la_printchar field.
1313 (language_defn::printchar): Declare new member function.
1314 (LA_PRINT_CHAR): Update call to printchar.
1315 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1316 (m2_language::printchar): New member function.
1317 * objc-lang.c (objc_language_data): Delete la_printchar
1318 initializer.
1319 * opencl-lang.c (opencl_language_data): Likewise.
1320 * p-lang.c (pascal_language_data): Delete la_printchar
1321 initializer.
1322 (pascal_language::printchar): New member function.
1323 * rust-lang.c (rust_printchar): Rename to
1324 rust_language::printchar.
1325 (rust_language_data): Delete la_printchar initializer.
1326 (rust_language::printchar): New member function, implementation
1327 from rust_printchar.
1328
ec8cec5b
AB
13292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1332 (ada_language_data): Delete la_emitchar initializer.
1333 (ada_language::emitchar): New member function, implementation from
1334 emit_char.
1335 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1336 (cplus_language_data): Likewise.
1337 (asm_language_data): Likewise.
1338 (minimal_language_data): Likewise.
1339 * d-lang.c (d_language_data): Likewise.
1340 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1341 (f_language_data): Delete la_emitchar initializer.
1342 (f_language::emitchar): New member function, implementation from
1343 f_emit_char.
1344 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1345 * language.c (unk_lang_emit_char): Delete.
1346 (language_defn::emitchar): New member function definition.
1347 (unknown_language_data): Delete la_emitchar initializer.
1348 (unknown_language::emitchar): New member function.
1349 (auto_language_data): Delete la_emitchar initializer.
1350 (auto_language::emitchar): New member function.
1351 * language.h (language_data): Delete la_emitchar field.
1352 (language_defn::emitchar): New member field declaration.
1353 (LA_EMIT_CHAR): Update call to emitchar.
1354 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1355 (m2_language_data): Delete la_emitchar initializer.
1356 (m2_language::emitchar): New member function, implementation from
1357 m2_emit_char.
1358 * objc-lang.c (objc_language_data): Delete la_emitchar
1359 initializer.
1360 * opencl-lang.c (opencl_language_data): Likewise.
1361 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1362 (pascal_language_data): Delete la_emitchar initializer.
1363 (pascal_language::emitchar): New member function, implementation
1364 from pascal_emit_char.
1365 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1366 (rust_language_data): Delete la_emitchar initializer.
1367 (rust_language::emitchar): New member function, implementation
1368 from rust_emitchar.
1369
1bf9c363
AB
13702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1373 (ada_language_data): Delete la_post_parser initializer.
1374 (ada_language::post_parser): New member function.
1375 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1376 (cplus_language_data): Likewise.
1377 (asm_language_data): Likewise.
1378 (minimal_language_data): Likewise.
1379 * d-lang.c (d_language_data): Likewise.
1380 * f-lang.c (f_language_data): Likewise.
1381 * go-lang.c (go_language_data): Likewise.
1382 * language.c (unknown_language_data): Likewise.
1383 (auto_language_data): Likewise.
1384 * language.h (language_data): Delete la_post_parser field.
1385 (language_defn::post_parser): New member function.
1386 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1387 * objc-lang.c (objc_language_data): Likewise.
1388 * opencl-lang.c (opencl_language_data): Likewise.
1389 * p-lang.c (pascal_language_data): Likewise.
1390 * parse.c (parse_exp_in_context): Update call to post_parser.
1391 (null_post_parser): Delete definition.
1392 * parser-defs.h (null_post_parser): Delete declaration.
1393 * rust-lang.c (rust_language_data): Delete la_post_parser
1394 initializer.
1395
87afa652
AB
13962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1397
1398 * ada-lang.c (parse): Rename to ada_language::parser.
1399 (ada_language_data): Delete la_parser initializer.
1400 (ada_language::parser): New member function, implementation from
1401 parse.
1402 * c-lang.c (c_language_data): Delete la_parser initializer.
1403 (cplus_language_data): Likewise.
1404 (asm_language_data): Likewise.
1405 (minimal_language_data): Likewise.
1406 * d-lang.c (d_language_data): Likewise.
1407 (d_language::parser): New member function.
1408 * f-lang.c (f_language_data): Delete la_parser initializer.
1409 (f_language::parser): New member function.
1410 * go-lang.c (go_language_data): Delete la_parser initializer.
1411 (go_language::parser): New member function.
1412 * language.c (unk_lang_parser): Delete.
1413 (language_defn::parser): Define new member function.
1414 (unknown_language_data): Delete la_parser initializer.
1415 (unknown_language::parser): New member function.
1416 (auto_language_data): Delete la_parser initializer.
1417 (auto_language::parser): New member function.
1418 * language.h (language_data): Delete la_parser field.
1419 (language_defn::parser): Declare new member function.
1420 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1421 (m2_language::parser): New member function.
1422 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1423 * opencl-lang.c (opencl_language_data): Likewise.
1424 * p-lang.c (pascal_language_data): Likewise.
1425 (pascal_language::parser): New member function.
1426 * parse.c (parse_exp_in_context): Update call to parser.
1427 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1428 (rust_language::parser): New member function.
1429
37825800
AB
14302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * top.c (print_gdb_configuration): Print --with-python-libdir
1433 configuration value.
1434
5b860c93
PW
14352020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1436
1437 * NEWS: Mention change to the alias command.
1438
cf00cd6f
PW
14392020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1440
1441 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1442 (alias_command_completer)
1443 (make_alias_options_def_group): New functions.
1444 (alias_opts, alias_option_defs): New struct and array.
1445 (alias_usage_error): Update usage.
1446 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1447 Use option framework.
1448 (_initialize_cli_cmds): Update alias command help.
1449 Update aliases command help.
1450 (show_user):
1451 Add NULL for new default_args lookup_cmd argument.
1452 (valid_command_p): Rename to validate_aliased_command.
1453 Add NULL for new default_args lookup_cmd argument. Verify that the
1454 aliased_command has no default args.
1455 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1456 (lookup_cmd_1, lookup_cmd): New argument default_args.
1457 (add_alias_cmd):
1458 Add NULL for new default_args lookup_cmd argument.
1459 (print_help_for_command): Show default args under the layout
1460 alias some_alias = some_aliased_cmd some_alias_default_arg.
1461 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1462 xfree default_args in destructor.
1463 * cli/cli-script.c (process_next_line, do_define_command):
1464 Add NULL for new default_args lookup_cmd argument.
1465 * command.h: Declare new default_args argument in lookup_cmd
1466 and lookup_cmd_1.
1467 * completer.c (complete_line_internal_1):
1468 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1469 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1470 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1471 Likewise.
1472 * infcmd.c (_initialize_infcmd): Likewise.
1473 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1474 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1475 * python/py-param.c (add_setshow_generic): Likewise.
1476 * remote.c (_initialize_remote): Likewise.
1477 * top.c (execute_command): Prepend default_args if command has some.
1478 (set_verbose):
1479 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1480 * tracepoint.c (validate_actionline, encode_actions_1):
1481 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1482
bd920864
TBA
14832020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1484
1485 * jit.c (jit_read_descriptor): Use bool as the return type.
1486 (jit_breakpoint_re_set_internal): Use bool as the return type.
1487 Invert the return value logic; return true if the jit breakpoint
1488 has been successfully initialized.
1489 (jit_inferior_init): Update the call to
1490 jit_breakpoint_re_set_internal.
1491
f8098322
PA
14922020-06-22 Pedro Alves <palves@redhat.com>
1493
1494 PR gdb/25939
1495 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1496 Use the current inferior instead. Don't return
1497 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1498 wait again.
1499 * sol-thread.c (sol_thread_target::wait): Don't reference
1500 inferior_ptid.
1501 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1502 (sol_update_thread_list_callback): Use the current inferior's pid
1503 instead of inferior_ptid.
1504
196535a6
RO
15052020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1506
1507 * procfs.c: Cleanup many comments.
1508
1509 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1510 (AFTER_WATCHFLAG): Replace by value.
1511
1512 (MAIN_PROC_NAME_FORMAT): Inline ...
1513 (create_procinfo): ... here.
1514
1515 (procfs_debug_inferior): Remove SYS_exec handling.
1516 (syscall_is_exec): Likewise.
1517 (procfs_set_exec_trap): Likewise.
1518
1519 (syscall_is_lwp_exit): Inline in callers.
1520 (syscall_is_exit): Likewise.
1521 (syscall_is_exec): Likewise.
1522 (syscall_is_lwp_create): Likewise.
1523
1524 (invalidate_cache): Remove #if 0 code.
1525
1526 (make_signal_thread_runnable): Remove.
1527 (procfs_target::resume): Remove #if 0 code.
1528
cf6f3e86
RO
15292020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1530
1531 PR gdb/25939
1532 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1533 call ...
1534 (procfs_target::create_inferior): ... here.
1535
48e9cc84
PW
15362020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1537
1538 * exec.c (validate_exec_file): Ensure the build-id is up to
1539 date by calling reopen_exec_file (that checks file timestamp
1540 to decide to re-read the file).
1541
3922b302
PA
15422020-06-18 Pedro Alves <palves@redhat.com>
1543
1544 PR gdb/25412
1545 * gdbthread.h (delete_thread, delete_thread_silent)
1546 (find_thread_ptid): Update comments.
1547 * thread.c (current_thread_): New global.
1548 (is_current_thread): Move higher, and reimplement.
1549 (inferior_thread): Reimplement.
1550 (set_thread_exited): Use bool. Add assertions.
1551 (add_thread_silent): Simplify thread-reuse handling by always
1552 calling delete_thread.
1553 (delete_thread): Remove intro comment.
1554 (find_thread_ptid): Skip exited threads.
1555 (switch_to_thread_no_regs): Write to current_thread_.
1556 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1557 INFERIOR_PTID. Clear current_thread_.
1558
6dbdab44
PA
15592020-06-18 Pedro Alves <palves@redhat.com>
1560
1561 * aix-thread.c (pd_update): Use switch_to_thread.
1562
2da4b788
PA
15632020-06-18 Pedro Alves <palves@redhat.com>
1564
1565 * ravenscar-thread.c (ravenscar_thread_target): Update.
1566 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1567 (ravenscar_thread_target::add_active_thread): ... this. Don't
1568 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1569 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1570
50838d1b
PA
15712020-06-18 Pedro Alves <palves@redhat.com>
1572
1573 * nat/windows-nat.c (current_windows_thread): Remove.
1574 * nat/windows-nat.h (current_windows_thread): Remove.
1575 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1576 Adjust.
1577 (display_selectors): Adjust to fetch the current
1578 windows_thread_info based on inferior_ptid.
1579 (fake_create_process): No longer write to current_windows_thread.
1580 (windows_nat_target::get_windows_debug_event):
1581 Don't set inferior_ptid or current_windows_thread.
1582 (windows_nat_target::wait): Adjust to not rely on
1583 current_windows_thread.
1584 (do_initial_windows_stuff): Now a method of windows_nat_target.
1585 Switch to the last_ptid thread.
1586 (windows_nat_target::attach): Adjust.
1587 (windows_nat_target::detach): Use switch_to_no_thread instead of
1588 writing to inferior_ptid directly.
1589 (windows_nat_target::create_inferior): Adjust.
1590
31ce04e9
PA
15912020-06-18 Pedro Alves <palves@redhat.com>
1592
1593 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1594
1ee1a363
PA
15952020-06-18 Pedro Alves <palves@redhat.com>
1596
1597 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1598 after creating it, instead of writing to inferior_ptid. Don't
1599 write to inferior_ptid.
1600
6d350754
PA
16012020-06-18 Pedro Alves <palves@redhat.com>
1602
1603 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1604
5d971d48
PA
16052020-06-18 Pedro Alves <palves@redhat.com>
1606
1607 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1608 it, instead of writing to inferior_ptid.
1609
86e57d1b
PA
16102020-06-18 Pedro Alves <palves@redhat.com>
1611
1612 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1613 to inferior_ptid.
1614
f2e1c129
PA
16152020-06-18 Pedro Alves <palves@redhat.com>
1616
1617 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1618 instead of writing to inferior_ptid directly.
1619
60db1b85
PA
16202020-06-18 Pedro Alves <palves@redhat.com>
1621
1622 * corelow.c (core_target::close): Use switch_to_no_thread instead
1623 of writing to inferior_ptid directly.
1624 (add_to_thread_list, core_target_open): Use switch_to_thread
1625 instead of writing to inferior_ptid directly.
1626
fe7d6a8d
PA
16272020-06-18 Pedro Alves <palves@redhat.com>
1628
1629 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1630 inferior_ptid.
1631 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1632 inferior_ptid.
1633 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1634 inferior_ptid directly.
1635 (darwin_nat_target::init_thread_list): Switch to thread, instead
1636 of writing to inferior_ptid.
1637 (darwin_nat_target::attach): Don't write to inferior_ptid.
1638 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1639
975f8708
PA
16402020-06-18 Pedro Alves <palves@redhat.com>
1641
1642 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1643 thread.
1644 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1645 Instead use switch_to_thread.
1646 (gnu_nat_target::detach): Use switch_to_no_thread
1647 instead of writing to inferior_ptid directly. Used passed-in
1648 inferior instead of looking up the inferior by pid.
1649
1a204730
PA
16502020-06-18 Pedro Alves <palves@redhat.com>
1651
1652 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1653 inferior_ptid.
1654
ebe84f23
PA
16552020-06-18 Pedro Alves <palves@redhat.com>
1656
1657 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1658 inferior_ptid.
1659 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1660 thread.
1661 (nto_procfs_target::detach): Avoid referencing
1662 inferior_ptid. Use switch_to_no_thread instead of writing to
1663 inferior_ptid directly.
1664 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1665 instead of writing to inferior_ptid directly.
1666 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1667 to thread.
1668
191f02e5
PA
16692020-06-18 Pedro Alves <palves@redhat.com>
1670
1671 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1672 after creating it, instead of writing to inferior_ptid.
1673 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1674 to inferior_ptid directly.
1675 (gdbsim_target::wait): Don't write to inferior_ptid.
1676
0ac55310
PA
16772020-06-18 Pedro Alves <palves@redhat.com>
1678
1679 * remote.c (remote_target::remote_notice_new_inferior): Use
1680 switch_to_thread instead of writing to inferior_ptid directly.
1681 (remote_target::add_current_inferior_and_thread): Use
1682 switch_to_no_thread instead of writing to inferior_ptid directly.
1683 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1684 and switch_to_thread instead of using set_current_inferior or
1685 writing to inferior_ptid directly.
1686
5233f39b
PA
16872020-06-18 Pedro Alves <palves@redhat.com>
1688
1689 * tracectf.c (ctf_target_open): Switch to added thread instead of
1690 writing to inferior_ptid directly.
1691 (ctf_target::close): Use switch_to_no_thread instead of writing to
1692 inferior_ptid directly.
1693
087e161b
PA
16942020-06-18 Pedro Alves <palves@redhat.com>
1695
1696 * tracefile-tfile.c (tfile_target_open): Don't write to
1697 inferior_ptid directly, instead switch to added thread.
1698 (tfile_target::close): Use switch_to_no_thread instead of writing
1699 to inferior_ptid directly.
1700
7fb43e53
PA
17012020-06-18 Pedro Alves <palves@redhat.com>
1702
1703 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1704 (procfs_target::detach): Use switch_to_no_thread
1705 instead of writing to inferior_ptid directly.
1706 (do_attach): Change return type to void. Switch to the added
1707 thread.
1708 (procfs_target::create_inferior): Switch to the added thread.
1709 (procfs_do_thread_registers): Don't write to inferior_ptid.
1710
18493a00
PA
17112020-06-18 Pedro Alves <palves@redhat.com>
1712
1713 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1714 of writing to inferior_ptid.
1715 (scoped_restore_exited_inferior): Delete.
1716 (handle_vfork_child_exec_or_exit): Simplify using
1717 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1718 instead of writing to inferior_ptid.
1719 (THREAD_STOPPED_BY): Delete.
1720 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1721 (thread_stopped_by_hw_breakpoint): Delete.
1722 (save_waitstatus): Use
1723 scoped_restore_current_thread+switch_to_thread, and call
1724 target_stopped_by_watchpoint instead of
1725 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1726 instead of thread_stopped_by_sw_breakpoint, and
1727 target_stopped_by_hw_breakpoint instead of
1728 thread_stopped_by_hw_breakpoint.
1729 (handle_inferior_event)
1730 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1731 inferior_ptid directly, nor
1732 set_current_inferior/set_current_program_space. Use
1733 switch_to_thread / switch_to_inferior_no_thread instead.
1734
a0776b13
PA
17352020-06-18 Pedro Alves <palves@redhat.com>
1736
1737 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1738 instead of writing to inferior_ptid.
1739
6155c136
PA
17402020-06-18 Pedro Alves <palves@redhat.com>
1741
1742 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1743 added thread.
1744 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1745 to the added thread.
1746 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1747 instead of writing to inferior_ptid.
1748
c5316fc6
PA
17492020-06-18 Pedro Alves <palves@redhat.com>
1750
1751 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1752 (register_to_value_test): Mock a program_space too. Heap-allocate
1753 the address space. Don't write to inferior_ptid. Use
1754 switch_to_thread instead.
1755
8df01799
PA
17562020-06-18 Pedro Alves <palves@redhat.com>
1757
1758 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1759 Delete.
1760 (find_signalled_thread()): New, factored out from
1761 linux_make_corefile_notes and adjusted to handle exited threads.
1762 (linux_make_corefile_notes): Adjust to use the new
1763 find_signalled_thread.
1764
41792d68
PA
17652020-06-18 Pedro Alves <palves@redhat.com>
1766
1767 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1768 of saving/restoring inferior_ptid.
1769
612f258a
TT
17702020-06-17 Tom Tromey <tom@tromey.com>
1771
1772 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1773 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1774 declare.
1775 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1776
efb763a5
SM
17772020-06-15 Simon Marchi <simon.marchi@efficios.com>
1778
1779 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1780 of partial symtabs.
1781
2951f6c0
SM
17822020-06-17 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * regformats/reg-arm.dat: Remove.
1785 * regformats/reg-bfin.dat: Remove.
1786 * regformats/reg-cris.dat: Remove.
1787 * regformats/reg-crisv32.dat: Remove.
1788 * regformats/reg-m32r.dat: Remove.
1789 * regformats/reg-tilegx.dat: Remove.
1790 * regformats/reg-tilegx32.dat: Remove.
1791
7d458ea5
SM
17922020-06-17 Simon Marchi <simon.marchi@efficios.com>
1793
1794 * features/Makefile (WHICH): Remove arm files.
1795 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1796 * regformats/arm/arm-with-neon.dat: Remove.
1797 * regformats/arm/arm-with-vfpv2.dat: Remove.
1798 * regformats/arm/arm-with-vfpv3.dat: Remove.
1799
3af96c0d
SM
18002020-06-17 Simon Marchi <simon.marchi@efficios.com>
1801
1802 * features/Makefile (XMLTOC): Remove rx.xml.
1803
b25e22fd
PA
18042020-06-17 Pedro Alves <palves@redhat.com>
1805
1806 * gdbthread.h (thread_control_state) <trap_expected> Update
1807 comments.
1808
a78a19b1
AB
18092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1810
1811 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1812 ada_language::lookup_symbol_nonlocal.
1813 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1814 (ada_language::lookup_symbol_nonlocal): New member function,
1815 implementation from ada_lookup_symbol_nonlocal.
1816 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1817 initializer.
1818 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1819 initializer.
1820 (cplus_language::lookup_symbol_nonlocal): New member function.
1821 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1822 (minimal_language_data) Likewise.
1823 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1824 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1825 initializer.
1826 (d_language::lookup_symbol_nonlocal): New member function.
1827 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1828 initializer.
1829 (f_language::lookup_symbol_nonlocal): New member function.
1830 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1831 initializer.
1832 * language.c (unknown_language_data): Likewise.
1833 (auto_language_data): Likewise.
1834 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1835 field.
1836 (language_defn::lookup_symbol_nonlocal): New member function.
1837 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1838 initializer.
1839 * objc-lang.c (objc_language_data): Likewise.
1840 * opencl-lang.c (opencl_language_data): Likewise.
1841 * p-lang.c (pascal_language_data): Likewise.
1842 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1843 rust_language::lookup_symbol_nonlocal.
1844 (rust_language_data): Delete la_lookup_symbol_nonlocal
1845 initializer.
1846 (rust_language::lookup_symbol_nonlocal): New member function,
1847 implementation from rust_lookup_symbol_nonlocal.
1848 * symtab.c (lookup_symbol_aux): Update call to
1849 lookup_symbol_nonlocal.
1850 (basic_lookup_symbol_nonlocal): Rename to...
1851 (language_defn::lookup_symbol_nonlocal): ...this, and update
1852 header comment. Remove language_defn parameter, and replace with
1853 uses of `this'.
1854 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1855
ebe2334e
AB
18562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1857
1858 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1859 initializer.
1860 (ada_language::value_print_inner): New member function.
1861 * c-lang.c (c_language_data): Delete la_value_print_inner
1862 initializer.
1863 (cplus_language_data): Likewise.
1864 (asm_language_data): Likewise.
1865 (minimal_language_data): Likewise.
1866 * d-lang.c (d_language_data): Likewise.
1867 (d_language::value_print_inner): New member function.
1868 * f-lang.c (f_language_data): Delete la_value_print_inner
1869 initializer.
1870 (f_language::value_print_inner): New member function.
1871 * f-lang.h (f_value_print_innner): Rename to...
1872 (f_value_print_inner): ...this (note spelling of 'inner').
1873 * f-valprint.c (f_value_print_innner): Rename to...
1874 (f_value_print_inner): ...this (note spelling of 'inner').
1875 * go-lang.c (go_language_data): Delete la_value_print_inner
1876 initializer.
1877 (go_language::value_print_inner): New member function.
1878 * language.c (language_defn::value_print_inner): Define new member
1879 function.
1880 (unk_lang_value_print_inner): Delete.
1881 (unknown_language_data): Delete la_value_print_inner initializer.
1882 (unknown_language::value_print_inner): New member function.
1883 (auto_language_data): Delete la_value_print_inner initializer.
1884 (auto_language::value_print_inner): New member function.
1885 * language.h (language_data): Delete la_value_print_inner field.
1886 (language_defn::value_print_inner): Delcare new member function.
1887 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1888 initializer.
1889 (m2_language::value_print_inner): New member function.
1890 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1891 initializer.
1892 * opencl-lang.c (opencl_language_data): Likewise.
1893 * p-lang.c (pascal_language_data): Likewise.
1894 (pascal_language::value_print_inner): New member function.
1895 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1896 initializer.
1897 (rust_language::value_print_inner): New member function.
1898 * valprint.c (do_val_print): Update call to value_print_inner.
1899
a1d1fa3e
AB
19002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1901
1902 * ada-lang.c (ada_language_data): Delete la_value_print
1903 initializer.
1904 (ada_language::value_print): New member function.
1905 * c-lang.c (c_language_data): Delete la_value_print initializer.
1906 (cplus_language_data): Likewise.
1907 (asm_language_data): Likewise.
1908 (minimal_language_data): Likewise.
1909 * d-lang.c (d_language_data): Likewise.
1910 * f-lang.c (f_language_data): Likewise.
1911 * go-lang.c (go_language_data): Likewise.
1912 * language.c (unk_lang_value_print): Delete.
1913 (language_defn::value_print): Define new member function.
1914 (unknown_language_data): Delete la_value_print initializer.
1915 (unknown_language::value_print): New member function.
1916 (auto_language_data): Delete la_value_print initializer.
1917 (auto_language::value_print): New member function.
1918 * language.h (language_data): Delete la_value_print field.
1919 (language_defn::value_print): Declare new member function.
1920 (LA_VALUE_PRINT): Update call to value_print.
1921 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1922 * objc-lang.c (objc_language_data): Likewise.
1923 * opencl-lang.c (opencl_language_data): Likewise.
1924 * p-lang.c (pascal_language_data): Likewise.
1925 (pascal_language::value_print): New member function.
1926 * rust-lang.c (rust_language_data): Delete la_value_print
1927 initializer.
1928
f16a9f57
AB
19292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 * ada-lang.c (ada_watch_location_expression): Rename to
1932 ada_language::watch_location_expression.
1933 (ada_language_data): Delete la_watch_location_expression
1934 initializer.
1935 (ada_language::watch_location_expression): New member function,
1936 implementation from ada_watch_location_expression.
1937 * breakpoint.c (watch_command_1): Update call to
1938 watch_location_expression.
1939 * c-lang.c (c_watch_location_expression): Rename to
1940 language_defn::watch_location_expression.
1941 (c_language_data): Delete la_watch_location_expression
1942 initializer.
1943 (cplus_language_data): Likewise.
1944 (asm_language_data): Likewise.
1945 (minimal_language_data): Likewise.
1946 * c-lang.h (c_watch_location_expression): Delete declaration.
1947 * d-lang.c (d_language_data): Delete la_watch_location_expression
1948 initializer.
1949 * f-lang.c (f_language_data): Likewise.
1950 * go-lang.c (go_language_data): Likewise.
1951 * language.c (language_defn::watch_location_expression): Member
1952 function implementation from c_watch_location_expression.
1953 (unknown_language_data): Delete la_watch_location_expression
1954 initializer.
1955 (auto_language_data): Likewise.
1956 * language.h (language_data): Delete la_watch_location_expression
1957 field.
1958 (language_defn::watch_location_expression): Declare new member
1959 function.
1960 * m2-lang.c (m2_language_data): Delete
1961 la_watch_location_expression initializer.
1962 * objc-lang.c (objc_language_data): Likewise.
1963 * opencl-lang.c (opencl_language_data): Likewise.
1964 * p-lang.c (pascal_language_data): Likewise.
1965 * rust-lang.c (rust_watch_location_expression): Rename to
1966 rust_language::watch_location_expression.
1967 (rust_language_data): Delete la_watch_location_expression
1968 initializer.
1969 (rust_language::watch_location_expression): New member function,
1970 implementation from rust_watch_location_expression.
1971
7e56227d
AB
19722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1973
1974 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1975 ada_language::collect_symbol_completion_matches.
1976 (ada_language_data): Delete la_collect_symbol_completion_matches
1977 initializer.
1978 (ada_language::collect_symbol_completion_matches): New member
1979 function, implementation from
1980 ada_collect_symbol_completion_matches.
1981 * c-lang.c (c_language_data): Delete
1982 la_collect_symbol_completion_matches initializer.
1983 (cplus_language_data): Likewise.
1984 (asm_language_data): Likewise.
1985 (minimal_language_data): Likewise.
1986 * d-lang.c (d_language_data): Likewise.
1987 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1988 f_language::collect_symbol_completion_matches.
1989 (f_language_data): Delete la_collect_symbol_completion_matches
1990 initializer.
1991 (f_language::collect_symbol_completion_matches) New member
1992 function, implementation from f_collect_symbol_completion_matches.
1993 * go-lang.c (go_language_data): Delete
1994 la_collect_symbol_completion_matches initializer.
1995 * language.c (unknown_language_data): Likewise.
1996 (auto_language_data): Likewise.
1997 * language.h (language_data): Delete
1998 la_collect_symbol_completion_matches field.
1999 (language_defn::collect_symbol_completion_matches): New member
2000 function.
2001 * m2-lang.c (m2_language_data): Delete
2002 la_collect_symbol_completion_matches initializer.
2003 * objc-lang.c (objc_language_data): Likewise.
2004 * opencl-lang.c (opencl_language_data): Likewise.
2005 * p-lang.c (pascal_language_data): Likewise.
2006 * rust-lang.c (rust_language_data): Likewise.
2007 * symtab.c (default_collect_symbol_completion_matches): Delete.
2008 (collect_symbol_completion_matches): Update call to
2009 collect_symbol_completion_matches.
2010 (collect_symbol_completion_matches_type): Likewise.
2011 * symtab.h (default_collect_symbol_completion_matches): Delete
2012 declaration.
2013
53fc67f8
AB
20142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2017 (ada_language_data): Delete la_word_break_characters initializer.
2018 (ada_language::word_break_characters): New member function.
2019 * c-lang.c (c_language_data): Delete la_word_break_characters
2020 initializer.
2021 (cplus_language_data): Likewise.
2022 (asm_language_data): Likewise.
2023 (minimal_language_data): Likewise.
2024 * completer.c: Update global comment.
2025 (advance_to_expression_complete_word_point): Update call to
2026 word_break_characters.
2027 (complete_files_symbols): Likewise.
2028 (complete_line_internal_1): Likewise.
2029 (default_completer_handle_brkchars): Likewise.
2030 (skip_quoted_chars): Likewise.
2031 * d-lang.c (d_language_data): Delete la_word_break_characters
2032 initializer.
2033 * f-lang.c (f_word_break_characters): Delete.
2034 (f_language_data): Delete la_word_break_characters initializer.
2035 (f_language::word_break_characters): New member function.
2036 * go-lang.c (go_language_data): Delete la_word_break_characters
2037 initializer.
2038 * language.c (unknown_language_data): Likewise.
2039 (auto_language_data): Likewise.
2040 * language.h (default_word_break_characters): Move declaration to
2041 earlier in the file.
2042 (language_data): Delete la_word_break_characters field.
2043 (language_defn::word_break_characters): New member function.
2044 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2045 initializer.
2046 * objc-lang.c (objc_language_data): Likewise.
2047 * opencl-lang.c (opencl_language_data): Likewise.
2048 * p-lang.c (pascal_language_data): Likewise.
2049 * rust-lang.c (rust_language_data): Likewise.
2050
c9debfb9
AB
20512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2052
2053 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2054 (ada_language_data): Delete la_get_symbol_name_matcher
2055 initializer.
2056 (language_defn::get_symbol_name_matcher_inner): New member
2057 function.
2058 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2059 initializer.
2060 (cplus_language_data): Likewise.
2061 (cplus_language::get_symbol_name_matcher_inner): New member
2062 function.
2063 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2064 (minimal_language_data): Likewise.
2065 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2066 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2067 initializer.
2068 * dictionary.c (iter_match_first_hashed): Update call to
2069 get_symbol_name_matcher.
2070 (iter_match_next_hashed): Likewise.
2071 (iter_match_next_linear): Likewise.
2072 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2073 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2074 initializer.
2075 (f_language::get_symbol_name_matcher_inner): New member function.
2076 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2077 initializer.
2078 * language.c (default_symbol_name_matcher): Update header comment,
2079 make static.
2080 (language_defn::get_symbol_name_matcher): New definition.
2081 (language_defn::get_symbol_name_matcher_inner): Likewise.
2082 (get_symbol_name_matcher): Delete.
2083 (unknown_language_data): Delete la_get_symbol_name_matcher
2084 initializer.
2085 (auto_language_data): Likewise.
2086 * language.h (language_data): Delete la_get_symbol_name_matcher
2087 field.
2088 (language_defn::get_symbol_name_matcher): New member function.
2089 (language_defn::get_symbol_name_matcher_inner): Likewise.
2090 (default_symbol_name_matcher): Delete declaration.
2091 * linespec.c (find_methods): Update call to
2092 get_symbol_name_matcher.
2093 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2094 initializer.
2095 * minsyms.c (lookup_minimal_symbol): Update call to
2096 get_symbol_name_matcher.
2097 (iterate_over_minimal_symbols): Likewise.
2098 * objc-lang.c (objc_language_data): Delete
2099 la_get_symbol_name_matcher initializer.
2100 * opencl-lang.c (opencl_language_data): Likewise.
2101 * p-lang.c (pascal_language_data): Likewise.
2102 * psymtab.c (psymbol_name_matches): Update call to
2103 get_symbol_name_matcher.
2104 * rust-lang.c (rust_language_data): Delete
2105 la_get_symbol_name_matcher initializer.
2106 * symtab.c (symbol_matches_search_name): Update call to
2107 get_symbol_name_matcher.
2108 (compare_symbol_name): Likewise.
2109
9a49ad8c
AB
21102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2111
2112 * ada-lang.c (ada_language_data): Delete la_compute_program
2113 initializer.
2114 * c-lang.c (c_language_data): Likewise.
2115 (c_language::compute_program): New member function.
2116 (cplus_language_data): Delete la_compute_program initializer.
2117 (cplus_language::compute_program): New member function.
2118 (asm_language_data): Delete la_compute_program initializer.
2119 (minimal_language_data): Likewise.
2120 * c-lang.h (c_compute_program): Update comment.
2121 (cplus_compute_program): Likewise.
2122 * compile/compile-c-support.c (c_compute_program): Likewise.
2123 (cplus_compute_program): Likewise.
2124 * compile/compile.c (compile_to_object): Update call to
2125 la_compute_program.
2126 * d-lang.c (d_language_data): Delete la_compute_program
2127 initializer.
2128 * f-lang.c (f_language_data): Likewise.
2129 * go-lang.c (go_language_data): Likewise.
2130 * language.c (unknown_language_data): Likewise.
2131 (auto_language_data): Likewise.
2132 * language.h (language_data): Delete la_compute_program field.
2133 (language_defn::compute_program): New member function.
2134 * m2-lang.c (m2_language_data): Delete la_compute_program
2135 initializer.
2136 * objc-lang.c (objc_language_data): Likewise.
2137 * opencl-lang.c (opencl_language_data): Likewise.
2138 * p-lang.c (pascal_language_data): Likewise.
2139 * rust-lang.c (rust_language_data): Likewise.
2140
eff93b4d
AB
21412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * ada-lang.c (ada_language_data) Delete
2144 la_class_name_from_physname initializer.
2145 * c-lang.c (c_language_data): Likewise.
2146 (cplus_language_data): Likewise.
2147 (cplus_language::class_name_from_physname): New member function.
2148 (asm_language_data): Delete la_class_name_from_physname
2149 initializer.
2150 (minimal_language_data): Likewise.
2151 * d-lang.c (d_language_data): Likewise.
2152 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2153 method on language_defn class.
2154 (guess_full_die_structure_name): Likewise.
2155 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2156 initializer.
2157 * go-lang.c (go_language_data): Likewise.
2158 * language.c (language_class_name_from_physname): Delete.
2159 (unk_lang_class_name): Delete.
2160 (unknown_language_data): Delete la_class_name_from_physname
2161 initializer.
2162 (auto_language_data): Likewise.
2163 * language.h (language_data): Delete la_class_name_from_physname
2164 field.
2165 (language_defn::class_name_from_physname): New function.
2166 (language_class_name_from_physname): Delete declaration.
2167 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2168 initializer.
2169 * objc-lang.c (objc_language_data): Likewise.
2170 * opencl-lang.c (opencl_language_data): Likewise.
2171 * p-lang.c (pascal_language_data): Likewise.
2172 * rust-lang.c (rust_language_data): Likewise.
2173
de543742
TT
21742020-06-16 Tom Tromey <tom@tromey.com>
2175
2176 * tui/tui-data.h (STATUS_NAME): New macro.
2177 * tui/tui-layout.c (tui_remove_some_windows)
2178 (initialize_known_windows, tui_register_window)
2179 (tui_layout_split::remove_windows, initialize_layouts)
2180 (tui_new_layout_command): Don't use hard-coded window names.
2181
a350efd4
TT
21822020-06-16 Tom Tromey <tom@tromey.com>
2183
2184 PR tui/25348:
2185 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2186 tui_initialize_readline. Only run once. Call rl_initialize.
2187 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2188 tui_initialize_readline.
2189 * tui/tui-io.c (tui_setup_io): Call
2190 tui_ensure_readline_initialized.
2191 * tui/tui-interp.c (tui_interp::init): Update.
2192
39ec0490
TT
21932020-06-16 Tom Tromey <tom@tromey.com>
2194
2195 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2196 Also preserve the status window.
2197
d2d1ea20
TT
21982020-06-16 Tom Tromey <tom@tromey.com>
2199
2200 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2201 where m_window==nullptr.
2202
66920317
TT
22032020-06-15 Tom Tromey <tromey@adacore.com>
2204
2205 * windows-nat.c (windows_nat::handle_output_debug_string):
2206 Update.
2207 (windows_nat::handle_ms_vc_exception): Update.
2208 * target.h (target_read_string): Change API.
2209 * target.c (target_read_string): Change API.
2210 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2211 Update.
2212 * solib-frv.c (frv_current_sos): Update.
2213 * solib-dsbt.c (dsbt_current_sos): Update.
2214 * solib-darwin.c (darwin_current_sos): Update.
2215 * linux-thread-db.c (inferior_has_bug): Update.
2216 * expprint.c (print_subexp_standard): Update.
2217 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2218 (ada_exception_message_1): Update.
2219
a5d871dd
TT
22202020-06-15 Tom Tromey <tromey@adacore.com>
2221
2222 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2223
670e35fa
TT
22242020-06-15 Tom Tromey <tromey@adacore.com>
2225
2226 * valprint.c (read_string): Update comment.
2227 * target.c (MIN): Remove.
2228 (target_read_string): Rewrite.
2229
f5272a3b
TT
22302020-06-15 Tom Tromey <tromey@adacore.com>
2231
2232 * corefile.c (read_memory_string): Remove.
2233 * ada-valprint.c (ada_value_print_ptr): Update.
2234 * ada-lang.h (ada_tag_name): Change return type.
2235 * ada-lang.c (type_from_tag): Update.
2236 (ada_tag_name_from_tsd): Change return type. Use
2237 target_read_string.
2238 (ada_tag_name): Likewise.
2239 * gdbcore.h (read_memory_string): Don't declare.
2240
2c074f49
HD
22412020-06-14 Hannes Domani <ssbssa@yahoo.de>
2242
2243 * symtab.c (rbreak_command): Ignore Windows drive colon.
2244
6a17d503
SM
22452020-06-12 Simon Marchi <simon.marchi@efficios.com>
2246
2247 * NEWS: Mention removed GDBserver host support.
2248
453c733f
NC
22492020-06-12 Nelson Chu <nelson.chu@sifive.com>
2250
2251 * features/riscv/rebuild-csr-xml.sh: Updated.
2252
2b4e6a3f
TT
22532020-06-11 Tom Tromey <tom@tromey.com>
2254
2255 PR gdb/18318:
2256 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2257
4412332f
JG
22582020-06-09 Jonny Grant <jg@jguk.org>
22592020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2260
2261 * main.c (captured_main_1): Don't print new line after help.
2262 (print_gdb_help): add mailing list and IRC channel information
2263 to --help. Add new lines between items in the footer. Remove
2264 quotes around bug url.
2265
2f33032a
KS
22662020-06-11 Keith Seitz <keiths@redhat.com>
2267
2268 PR gdb/21356
2269 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2270 Resolve typedefs for type length calculations.
2271
7ab96794
TV
22722020-06-10 Tom de Vries <tdevries@suse.de>
2273
2274 PR ada/24713
2275 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2276 (write_psymbols): Enable .gdb_index for ada.
2277 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2278 ada.
2279
e5f3ece2
TV
22802020-06-10 Tom de Vries <tdevries@suse.de>
2281
2282 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2283 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2284 namei" instead of "const char *name" argument.
2285 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2286 dw2_symtab_iter_init.
2287
940da03e
SM
22882020-06-08 Simon Marchi <simon.marchi@efficios.com>
2289
2290 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2291 to use type::field and field::type instead.
2292
b6cdac4b
SM
22932020-06-08 Simon Marchi <simon.marchi@efficios.com>
2294
2295 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2296 to use field::type instead.
2297
5d14b6e5
SM
22982020-06-08 Simon Marchi <simon.marchi@efficios.com>
2299
2300 * gdbtypes.h (struct field) <type, set_type>: New methods.
2301 Rename `type` field to...
2302 <m_type>: ... this. Change references throughout to use type or
2303 set_type methods.
2304 (FIELD_TYPE): Use field::type. Change call sites that modify
2305 the field's type to use field::set_type instead.
2306
3d967001
SM
23072020-06-08 Simon Marchi <simon.marchi@efficios.com>
2308
2309 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2310 to use type::index_type instead.
2311
262abc0d
SM
23122020-06-08 Simon Marchi <simon.marchi@efficios.com>
2313
2314 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2315 methods.
2316 (TYPE_INDEX_TYPE): Use type::index_type.
2317 * gdbtypes.c (create_array_type_with_stride): Likewise.
2318
82836c92
TT
23192020-06-07 Tom Tromey <tom@tromey.com>
2320
2321 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2322 parameter.
2323 (generic_value_print): Update.
2324
940dace9
AB
23252020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2326
2327 Revert commit 982a38f60b0.
2328 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2329
982a38f6
AB
23302020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2333 avoid use after free.
2334
82f06518
TV
23352020-06-05 Tom de Vries <tdevries@suse.de>
2336
2337 * NEWS: Fix typos.
2338
f8c41851
SM
23392020-06-04 Simon Marchi <simon.marchi@efficios.com>
2340
2341 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2342 the per_bfd object.
2343 (dwarf2_read_debug_names): Likewise.
2344 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2345 object when re-using a per_bfd object with an index.
2346
f9b5d5ea
TV
23472020-06-03 Tom de Vries <tdevries@suse.de>
2348
2349 PR symtab/26046
2350 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2351 children for C++.
2352 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2353 DW_TAG_subprogram.
2354
f6eee2d0
AB
23552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2356
2357 * ada-lang.c (ada_language_data): Delete skip_trampoline
2358 initializer.
2359 * c-lang.c (c_language_data): Likewise.
2360 (cplus_language_data): Likewise.
2361 (cplus_language::skip_trampoline): New member function.
2362 (asm_language_data): Delete skip_trampoline initializer.
2363 (minimal_language_data): Likewise.
2364 * d-lang.c (d_language_data): Likewise.
2365 * f-lang.c (f_language_data): Likewise.
2366 * go-lang.c (go_language_data): Likewise.
2367 * language.c (unk_lang_trampoline): Delete function.
2368 (skip_language_trampoline): Update.
2369 (unknown_language_data): Delete skip_trampoline initializer.
2370 (auto_language_data): Likewise.
2371 * language.h (language_data): Delete skip_trampoline field.
2372 (language_defn::skip_trampoline): New function.
2373 * m2-lang.c (m2_language_data): Delete skip_trampoline
2374 initializer.
2375 * objc-lang.c (objc_skip_trampoline): Delete function, move
2376 implementation to objc_language::skip_trampoline.
2377 (objc_language_data): Delete skip_trampoline initializer.
2378 (objc_language::skip_trampoline): New member function with
2379 implementation from objc_skip_trampoline.
2380 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2381 initializer.
2382 * p-lang.c (pascal_language_data): Likewise.
2383 * rust-lang.c (rust_language_data): Likewise.
2384
0a50df5d
AB
23852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2386
2387 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2388 (ada_language::demangle): New member function.
2389 * c-lang.c (c_language_data): Delete la_demangle initializer.
2390 (cplus_language_data): Delete la_demangle initializer.
2391 (cplus_language::demangle): New member function.
2392 (asm_language_data): Delete la_demangle initializer.
2393 (minimal_language_data): Delete la_demangle initializer.
2394 * d-lang.c (d_language_data): Delete la_demangle initializer.
2395 (d_language::demangle): New member function.
2396 * f-lang.c (f_language_data): Delete la_demangle initializer.
2397 (f_language::demangle): New member function.
2398 * go-lang.c (go_language_data): Delete la_demangle initializer.
2399 (go_language::demangle): New member function.
2400 * language.c (language_demangle): Update.
2401 (unk_lang_demangle): Delete.
2402 (unknown_language_data): Delete la_demangle initializer.
2403 (unknown_language::demangle): New member function.
2404 (auto_language_data): Delete la_demangle initializer.
2405 (auto_language::demangle): New member function.
2406 * language.h (language_data): Delete la_demangle field.
2407 (language_defn::demangle): New function.
2408 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2409 * objc-lang.c (objc_language_data): Delete la_demangle
2410 initializer.
2411 (objc_language::demangle): New member function.
2412 * opencl-lang.c (opencl_language_data): Delete la_demangle
2413 initializer.
2414 * p-lang.c (pascal_language_data): Likewise.
2415 * rust-lang.c (rust_language_data): Likewise.
2416 (rust_language::demangle): New member function.
2417
fbfb0a46
AB
24182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2419
2420 * ada-lang.c (ada_language_data): Delete la_print_type
2421 initializer.
2422 (ada_language::print_type): New member function.
2423 * c-lang.c (c_language_data): Delete la_print_type initializer.
2424 (c_language::print_type): New member function.
2425 (cplus_language_data): Delete la_print_type initializer.
2426 (cplus_language::print_type): New member function.
2427 (asm_language_data): Delete la_print_type initializer.
2428 (asm_language::print_type): New member function.
2429 (minimal_language_data): Delete la_print_type initializer.
2430 (minimal_language::print_type): New member function.
2431 * d-lang.c (d_language_data): Delete la_print_type initializer.
2432 (d_language::print_type): New member function.
2433 * f-lang.c (f_language_data): Delete la_print_type initializer.
2434 (f_language::print_type): New member function.
2435 * go-lang.c (go_language_data): Delete la_print_type initializer.
2436 (go_language::print_type): New member function.
2437 * language.c (unk_lang_print_type): Delete.
2438 (unknown_language_data): Delete la_print_type initializer.
2439 (unknown_language::print_type): New member function.
2440 (auto_language_data): Delete la_print_type initializer.
2441 (auto_language::print_type): New member function.
2442 * language.h (language_data): Delete la_print_type field.
2443 (language_defn::print_type): New function.
2444 (LA_PRINT_TYPE): Update.
2445 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2446 (m2_language::print_type): New member function.
2447 * objc-lang.c (objc_language_data): Delete la_print_type
2448 initializer.
2449 (objc_language::print_type): New member function.
2450 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2451 to opencl_language::print_type.
2452 (opencl_language_data): Delete la_print_type initializer.
2453 (opencl_language::print_type): New member function, implementation
2454 from opencl_print_type.
2455 * p-lang.c (pascal_language_data): Delete la_print_type
2456 initializer.
2457 (pascal_language::print_type): New member function.
2458 * rust-lang.c (rust_print_type): Delete, implementation moved to
2459 rust_language::print_type.
2460 (rust_language_data): Delete la_print_type initializer.
2461 (rust_language::print_type): New member function, implementation
2462 from rust_print_type.
2463
6f827019
AB
24642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2467 implementation moves to...
2468 (ada_language::sniff_from_mangled_name): ...here. Update return
2469 type.
2470 (ada_language_data): Delete la_sniff_from_mangled_name
2471 initializer.
2472 * c-lang.c (c_language_data): Likewise.
2473 (cplus_language_data): Likewise.
2474 (cplus_language::sniff_from_mangled_name): New member function,
2475 implementation taken from gdb_sniff_from_mangled_name.
2476 (asm_language_data): Delete la_sniff_from_mangled_name
2477 initializer.
2478 (minimal_language_data): Likewise.
2479 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2480 implementation moves to cplus_language::sniff_from_mangled_name.
2481 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2482 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2483 moves to...
2484 (d_language::sniff_from_mangled_name): ...here.
2485 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2486 * f-lang.c (f_language_data): Likewise.
2487 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2488 moves to...
2489 (go_language::sniff_from_mangled_name): ...here.
2490 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2491 * language.c (language_sniff_from_mangled_name): Delete.
2492 (unknown_language_data): Delete la_sniff_from_mangled_name
2493 initializer.
2494 (auto_language_data): Likewise.
2495 * language.h (language_data): Delete la_sniff_from_mangled_name
2496 field.
2497 (language_defn::sniff_from_mangled_name): New function.
2498 (language_sniff_from_mangled_name): Delete declaration.
2499 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2500 field.
2501 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2502 implementation moves to...
2503 (objc_language::sniff_from_mangled_name): ...here.
2504 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2505 * opencl-lang.c (opencl_language_data): Likewise.
2506 * p-lang.c (pascal_language_data): Likewise.
2507 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2508 implementation moves to...
2509 (rust_language::sniff_from_mangled_name): ...here.
2510 (rust_language_data): Delete la_sniff_from_mangled_name
2511 initializer.
2512 * symtab.c (symbol_find_demangled_name): Call
2513 sniff_from_mangled_name member function.
2514
fb8006fd
AB
25152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2516
2517 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2518 initializer.
2519 * c-lang.c (c_language_data): Likewise.
2520 (cplus_language_data): Likewise.
2521 (cplus_language::search_name_hash): New member function.
2522 (asm_language_data): Delete la_search_name_hash initializer.
2523 (minimal_language_data): Likewise.
2524 * d-lang.c (d_language_data): Likewise.
2525 * dictionary.c (default_search_name_hash): Rename to...
2526 (language_defn::search_name_hash): ...this.
2527 * f-lang.c (f_language_data): Likewise.
2528 (f_language::search_name_hash): New member function.
2529 * go-lang.c (go_language_data): Delete la_search_name_hash
2530 initializer.
2531 * language.c (unknown_language_data): Likewise.
2532 (auto_language_data): Likewise.
2533 * language.h (struct language_data): Delete la_search_name_hash
2534 field.
2535 (language_defn::search_name_hash): Declare new member function.
2536 (default_search_name_hash): Delete declaration.
2537 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2538 initializer.
2539 * objc-lang.c (objc_language_data): Likewise.
2540 * opencl-lang.c (opencl_language_data): Likewise.
2541 * p-lang.c (pascal_language_data): Likewise.
2542 * rust-lang.c (rust_language_data): Likewise.
2543 * symtab.c (search_name_hash): Update call.
2544
8e25bafe
AB
25452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2546
2547 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2548 initializer.
2549 * c-lang.c (class compile_instance): Declare.
2550 (c_language_data): Delete la_get_compile_instance initializer.
2551 (c_language::get_compile_instance): New member function.
2552 (cplus_language_data): Delete la_get_compile_instance initializer.
2553 (cplus_language::get_compile_instance): New member function.
2554 (asm_language_data): Delete la_get_compile_instance initializer.
2555 (minimal_language_data): Likewise.
2556 * c-lang.h (c_get_compile_context): Update comment.
2557 (cplus_get_compile_context): Update comment.
2558 * compile/compile.c (compile_to_object): Update calls, don't rely
2559 on function pointer being NULL.
2560 * d-lang.c (d_language_data): Delete la_get_compile_instance
2561 initializer.
2562 * f-lang.c (f_language_data): Likewise.
2563 * go-lang.c (go_language_data): Likewise.
2564 * language.c (unknown_language_data): Likewise.
2565 (auto_language_data): Likewise.
2566 * language.h (language_data): Delete la_get_compile_instance field.
2567 (language_defn::get_compile_instance): New member function.
2568 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2569 initializer.
2570 * objc-lang.c (objc_language_data): Likewise.
2571 * opencl-lang.c (opencl_language_data): Likewise.
2572 * p-lang.c (pascal_language_data): Likewise.
2573 * rust-lang.c (rust_language_data): Likewise.
2574
4009ee92
AB
25752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2576
2577 * ada-lang.c (ada_add_all_symbols): Update comment.
2578 (ada_iterate_over_symbols): Delete, move implementation to...
2579 (ada_language::iterate_over_symbols): ...here, a new member
2580 function, rewrite to use range based for loop.
2581 (ada_language_data): Delete la_iterate_over_symbols initializer.
2582 * c-lang.c (c_language_data): Likewise.
2583 (cplus_language_data): Likewise.
2584 (asm_language_data): Likewise.
2585 (minimal_language_data): Likewise.
2586 * d-lang.c (d_language_data): Likewise.
2587 * f-lang.c (f_language_data): Likewise.
2588 * go-lang.c (go_language_data): Likewise.
2589 * language.c (unknown_language_data): Likewise.
2590 (auto_language_data): Likewise.
2591 * language.h (language_data): Delete la_iterate_over_symbols field.
2592 (language_defn::iterate_over_symbols): New member function.
2593 (LA_ITERATE_OVER_SYMBOLS): Update.
2594 * linespec.c (iterate_over_all_matching_symtabs): Update.
2595 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2596 initializer.
2597 * objc-lang.c (objc_language_data): Likewise.
2598 * opencl-lang.c (opencl_language_data): Likewise.
2599 * p-lang.c (pascal_language_data): Likewise.
2600 * rust-lang.c (rust_language_data): Likewise.
2601
54f4ca46
AB
26022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * ada-lang.c (ada_language_data): Delete
2605 la_lookup_transparent_type initializer.
2606 * c-lang.c (c_language_data): Likewise.
2607 (cplus_language_data): Likewise.
2608 (cplus_language::lookup_transparent_type): New member function.
2609 (asm_language_data): Delete la_lookup_transparent_type
2610 initializer.
2611 (minimal_language_data): Likewise.
2612 * d-lang.c (d_language_data): Likewise.
2613 * f-lang.c (f_language_data): Likewise.
2614 * go-lang.c (go_language_data): Likewise.
2615 * language.c (unknown_language_data): Likewise.
2616 (auto_language_data): Likewise.
2617 * language.h (struct language_data): Delete
2618 la_lookup_transparent_type field.
2619 (language_defn::lookup_transparent_type): New member function.
2620 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2621 initializer.
2622 * objc-lang.c (objc_language_data): Likewise.
2623 * opencl-lang.c (opencl_language_data): Likewise.
2624 * p-lang.c (pascal_language_data): Likewise.
2625 * rust-lang.c (rust_language_data): Likewise.
2626 * symtab.c (symbol_matches_domain): Update call.
2627
1fb314aa
AB
26282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2629
2630 * ada-lang.c (ada_language_arch_info): Delete function, move
2631 implementation to...
2632 (ada_language::language_arch_info): ...here, a new member
2633 function.
2634 (ada_language_data): Delete la_language_arch_info.
2635 * c-lang.c (c_language_data): Likewise.
2636 (c_language::language_arch_info): New member function.
2637 (cplus_language_arch_info): Delete function, move
2638 implementation to...
2639 (cplus_language::language_arch_info): ...here, a new member
2640 function.
2641 (cplus_language_data): Delete la_language_arch_info.
2642 (asm_language_data): Likewise.
2643 (asm_language::language_arch_info): New member function.
2644 (minimal_language_data): Delete la_language_arch_info.
2645 (minimal_language::language_arch_info): New member function.
2646 * d-lang.c (d_language_arch_info): Delete function, move
2647 implementation to...
2648 (d_language::language_arch_info): ...here, a new member
2649 function.
2650 (d_language_data): Delete la_language_arch_info.
2651 * f-lang.c (f_language_arch_info): Delete function, move
2652 implementation to...
2653 (f_language::language_arch_info): ...here, a new member
2654 function.
2655 (f_language_data): Delete la_language_arch_info.
2656 * go-lang.c (go_language_arch_info): Delete function, move
2657 implementation to...
2658 (go_language::language_arch_info): ...here, a new member
2659 function.
2660 (go_language_data): Delete la_language_arch_info.
2661 * language.c (unknown_language_data): Likewise.
2662 (unknown_language::language_arch_info): New member function.
2663 (auto_language_data): Delete la_language_arch_info.
2664 (auto_language::language_arch_info): New member function.
2665 (language_gdbarch_post_init): Update call to
2666 la_language_arch_info.
2667 * language.h (language_data): Delete la_language_arch_info
2668 function pointer.
2669 (language_defn::language_arch_info): New function.
2670 * m2-lang.c (m2_language_arch_info): Delete function, move
2671 implementation to...
2672 (m2_language::language_arch_info): ...here, a new member
2673 function.
2674 (m2_language_data): Delete la_language_arch_info.
2675 * objc-lang.c (objc_language_arch_info): Delete function, move
2676 implementation to...
2677 (objc_language::language_arch_info): ...here, a new member
2678 function.
2679 (objc_language_data): Delete la_language_arch_info.
2680 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2681 implementation to...
2682 (opencl_language::language_arch_info): ...here, a new member
2683 function.
2684 (opencl_language_data): Delete la_language_arch_info.
2685 * p-lang.c (pascal_language_arch_info): Delete function, move
2686 implementation to...
2687 (pascal_language::language_arch_info): ...here, a new member
2688 function.
2689 (pascal_language_data): Delete la_language_arch_info.
2690 * rust-lang.c (rust_language_arch_info): Delete function, move
2691 implementation to...
2692 (rust_language::language_arch_info): ...here, a new member
2693 function.
2694 (rust_language_data): Delete la_language_arch_info.
2695
48448202
AB
26962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2699 initializer.
2700 * c-lang.c (c_language_data): Likewise.
2701 (cplus_language_data): Likewise.
2702 (cplus_language::pass_by_reference_info): New method.
2703 (asm_language_data): Delete la_pass_by_reference initializer.
2704 (minimal_language_data): Likewise.
2705 * cp-abi.c (cp_pass_by_reference): Remove use of
2706 default_pass_by_reference.
2707 * d-lang.c (d_language_data): Likewise.
2708 * f-lang.c (f_language_data): Likewise.
2709 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2710 default_pass_by_reference.
2711 * go-lang.c (go_language_data): Likewise.
2712 * language.c (language_pass_by_reference): Update.
2713 (default_pass_by_reference): Delete.
2714 (unknown_language_data): Delete la_pass_by_reference
2715 initializer.
2716 (auto_language_data): Likewise.
2717 * language.h (struct language_data): Delete la_pass_by_reference
2718 field.
2719 (language_defn::pass_by_reference_info): New member function.
2720 (default_pass_by_reference): Delete declaration.
2721 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2722 initializer.
2723 * objc-lang.c (objc_language_data): Likewise.
2724 * opencl-lang.c (opencl_language_data): Likewise.
2725 * p-lang.c (pascal_language_data): Likewise.
2726 * rust-lang.c (rust_language_data): Likewise.
2727
15e5fd35
AB
27282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2729
2730 * ada-lang.c (ada_read_var_value): Delete function, move
2731 implementation to...
2732 (ada_language::read_var_value): ...here.
2733 (ada_language_data): Delete la_read_var_value initializer.
2734 * c-lang.c (c_language_data): Likewise.
2735 (cplus_language_data): Likewise.
2736 (minimal_language_data): Likewise.
2737 * d-lang.c (d_language_data): Likewise.
2738 * f-lang.c (f_language_data): Likewise.
2739 * findvar.c (default_read_var_value): Rename to...
2740 (language_defn::read_var_value): ...this.
2741 * findvar.c (read_var_value): Update header comment, and change to
2742 call member function instead of function pointer.
2743 * go-lang.c (go_language_data): Likewise.
2744 * language.c (unknown_language_data): Delete la_read_var_value
2745 initializer.
2746 (auto_language_data): Likewise.
2747 * language.h (struct language_data): Delete la_read_var_value
2748 field.
2749 (language_defn::read_var_value): New member function.
2750 (default_read_var_value): Delete declaration.
2751 * m2-lang.c (m2_language_data): Delete la_read_var_value
2752 initializer.
2753 * objc-lang.c (objc_language_data): Likewise.
2754 * opencl-lang.c (opencl_language_data): Likewise.
2755 * p-lang.c (pascal_language_data): Likewise.
2756 * rust-lang.c (rust_language_data): Likewise.
2757 * value.h (default_read_var_value): Delete declaration.
2758
5bd40f2a
AB
27592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2760
2761 * ada-lang.c (ada_print_array_index): Delete function, move
2762 implementation to...
2763 (ada_language::print_array_index): ...here.
2764 (ada_language_data): Delete la_print_array_index initializer.
2765 * c-lang.c (c_language_data): Likewise.
2766 (cplus_language_data): Likewise.
2767 (minimal_language_data): Likewise.
2768 * d-lang.c (d_language_data): Likewise.
2769 * f-lang.c (f_language_data): Likewise.
2770 * go-lang.c (go_language_data): Likewise.
2771 * language.c (default_print_array_index): Delete function, move
2772 implementation to...
2773 (language_defn::print_array_index): ...here.
2774 (unknown_language_data): Delete la_print_array_index initializer.
2775 (auto_language_data): Likewise.
2776 * language.h (struct language_data): Delete la_print_array_index
2777 field.
2778 (language_defn::print_array_index): New member function.
2779 (LA_PRINT_ARRAY_INDEX): Update.
2780 (default_print_array_index): Delete declaration.
2781 * m2-lang.c (m2_language_data): Delete la_print_array_index
2782 initializer.
2783 * objc-lang.c (objc_language_data): Likewise.
2784 * opencl-lang.c (opencl_language_data): Likewise.
2785 * p-lang.c (pascal_language_data): Likewise.
2786 * rust-lang.c (rust_language_data): Likewise.
2787
0874fd07
AB
27882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2789
2790 * gdb/ada-lang.c (ada_language_defn): Convert to...
2791 (ada_language_data): ...this.
2792 (class ada_language): New class.
2793 (ada_language_defn): New static global.
2794 * gdb/c-lang.c (c_language_defn): Convert to...
2795 (c_language_data): ...this.
2796 (class c_language): New class.
2797 (c_language_defn): New static global.
2798 (cplus_language_defn): Convert to...
2799 (cplus_language_data): ...this.
2800 (class cplus_language): New class.
2801 (cplus_language_defn): New static global.
2802 (asm_language_defn): Convert to...
2803 (asm_language_data): ...this.
2804 (class asm_language): New class.
2805 (asm_language_defn): New static global.
2806 (minimal_language_defn): Convert to...
2807 (minimal_language_data): ...this.
2808 (class minimal_language): New class.
2809 (minimal_language_defn): New static global.
2810 * gdb/d-lang.c (d_language_defn): Convert to...
2811 (d_language_data): ...this.
2812 (class d_language): New class.
2813 (d_language_defn): New static global.
2814 * gdb/f-lang.c (f_language_defn): Convert to...
2815 (f_language_data): ...this.
2816 (class f_language): New class.
2817 (f_language_defn): New static global.
2818 * gdb/go-lang.c (go_language_defn): Convert to...
2819 (go_language_data): ...this.
2820 (class go_language): New class.
2821 (go_language_defn): New static global.
2822 * gdb/language.c (unknown_language_defn): Remove declaration.
2823 (current_language): Initialize to nullptr, real initialization is
2824 moved to _initialize_language.
2825 (languages): Delete global.
2826 (language_defn::languages): Define.
2827 (set_language_command): Use language_defn::languages.
2828 (set_language): Likewise.
2829 (range_error): Likewise.
2830 (language_enum): Likewise.
2831 (language_def): Likewise.
2832 (add_set_language_command): Use language_def::languages for the
2833 language list, and language_def to lookup language pointers.
2834 (skip_language_trampoline): Use language_defn::languages.
2835 (unknown_language_defn): Convert to...
2836 (unknown_language_data): ...this.
2837 (class unknown_language): New class.
2838 (unknown_language_defn): New static global.
2839 (auto_language_defn): Convert to...
2840 (auto_language_data): ...this.
2841 (class auto_language): New class.
2842 (auto_language_defn): New static global.
2843 (language_gdbarch_post_init): Use language_defn::languages.
2844 (_initialize_language): Initialize current_language.
2845 * gdb/language.h (struct language_defn): Rename to...
2846 (struct language_data): ...this.
2847 (struct language_defn): New.
2848 (auto_language_defn): Delete.
2849 (unknown_language_defn): Delete.
2850 (minimal_language_defn): Delete.
2851 (ada_language_defn): Delete.
2852 (asm_language_defn): Delete.
2853 (c_language_defn): Delete.
2854 (cplus_language_defn): Delete.
2855 (d_language_defn): Delete.
2856 (f_language_defn): Delete.
2857 (go_language_defn): Delete.
2858 (m2_language_defn): Delete.
2859 (objc_language_defn): Delete.
2860 (opencl_language_defn): Delete.
2861 (pascal_language_defn): Delete.
2862 (rust_language_defn): Delete.
2863 * gdb/m2-lang.c (m2_language_defn): Convert to...
2864 (m2_language_data): ...this.
2865 (class m2_language): New class.
2866 (m2_language_defn): New static global.
2867 * gdb/objc-lang.c (objc_language_defn): Convert to...
2868 (objc_language_data): ...this.
2869 (class objc_language): New class.
2870 (objc_language_defn): New static global.
2871 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2872 (opencl_language_data): ...this.
2873 (class opencl_language): New class.
2874 (opencl_language_defn): New static global.
2875 * gdb/p-lang.c (pascal_language_defn): Convert to...
2876 (pascal_language_data): ...this.
2877 (class pascal_language): New class.
2878 (pascal_language_defn): New static global.
2879 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2880 language pointer, update comment format.
2881 * gdb/rust-lang.c (rust_language_defn): Convert to...
2882 (rust_language_data): ...this.
2883 (class rust_language): New class.
2884 (rust_language_defn): New static global.
2885
1313c56e
AB
28862020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2887
2888 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2889 member variable.
2890 <m_stmt_at_address>: New member variable.
2891 (lnp_state_machine::record_line): Don't record some lines, update
2892 tracking of is_stmt at the same address.
2893 (lnp_state_machine::lnp_state_machine): Initialise new member
2894 variables.
2895
b7ed9f3d
ST
28962020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2897
2898 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2899 "-include gnu-nat-mig.h".
2900 * gnu-nat-mig.h: New file.
2901 * gnu-nat.c: Include "gnu-nat-mig.h".
2902 (exc_server, msg_reply_server, notify_server,
2903 process_reply_server): Remove declarations.
2904
14a8ad62
ST
29052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2906
2907 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2908 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2909 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2910 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2911 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2912 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2913 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2914 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2915 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2916 to gnu_nat_target class.
2917 * gnu-nat.c: Likewise.
2918 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2919 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2920 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2921 object.
2922 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2923 instead of `gnu_target'.
2924
0af5e106
ST
29252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2926
2927 * i386-gnu-tdep.c: Include "gdbcore.h"
2928 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2929 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2930 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2931 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2932 i386_gnu_sigcontext_addr): New functions
2933 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2934 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2935 tdep.
2936
078f2fc9
ST
29372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2938
2939 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2940 before fork_inferior call. Avoid calling it if target_is_pushed returns
2941 true.
2942
53dff92c
ST
29432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2944
2945 * gnu-nat.h (gnu_target): New variable declaration.
2946 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2947 gnu_target.
2948 * gnu-nat.c (gnu_target): New variable.
2949 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2950 add_thread_silent, and add_thread calls.
2951 (gnu_nat_target::create_inferior): Pass gnu_target to
2952 add_thread_silent, thread_change_ptid call.
2953 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2954 call.
2955
5a8b8627
ST
29562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2957
2958 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2959 (gnu_nat_target::find_memory_regions): Remove unused
2960 `old_address' variable.
2961
366f550a
ST
29622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2963
2964 * gnu-nat.c: Include "gdbarch.h".
2965
f14871bf
ST
29662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2967
2968 * reply_mig_hack.awk (Error return): Cast function through
2969 void *, to bypass compiler function call check.
2970
c6887cfb
ST
29712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2972
2973 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2974 $(srcdir)/reply_mig_hack.awk.
2975
6930bffe
ST
29762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2977
2978 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2979
112c22ed
JG
29802020-05-30 Jonny Grant <jg@jguk.org>
2981
2982 * configure.ac (ACX_BUGURL): change bug URL to https.
2983
f68f85b5
PA
29842020-05-30 Pedro Alves <palves@redhat.com>
2985
2986 * cp-support.c (replace_typedefs_template): New.
2987 (replace_typedefs_qualified_name): Handle
2988 DEMANGLE_COMPONENT_TEMPLATE.
2989
976ca316
SM
29902020-05-29 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2993 dwarf2/index-cache.h, dwarf2/index-write.c,
2994 dwarf2/index-write.h, dwarf2/line-header.c,
2995 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2996 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2997 variables and fields from `dwarf2_per_objfile` to just
2998 `per_objfile` throughout.
2999
989ade05
SM
30002020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3001
3002 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3003 <push_dwarf_reg_entry_value>: Add comment.
3004
c47bae85
KB
30052020-05-28 Kevin Buettner <kevinb@redhat.com>
3006 Keith Seitz <keiths@redhat.com>
3007
3008 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3009 instead of PyEval_ReleaseLock.
3010 (class gdbpy_gil): Move to earlier in file.
3011 (finalize_python): Set gdb_python_initialized.
3012 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3013 when not initialized.
3014
44486dcf
SM
30152020-05-28 Simon Marchi <simon.marchi@efficios.com>
3016
3017 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3018 <push_dwarf_reg_entry_value>: Remove assert. Override
3019 per_objfile with caller_per_objfile.
3020
f030440d
TV
30212020-05-28 Tom de Vries <tdevries@suse.de>
3022
3023 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3024 PR gold/15646 workaround to symbol kind "type".
3025
f0fbb768
TT
30262020-05-27 Tom Tromey <tromey@adacore.com>
3027
3028 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3029
af0b2a3e
TT
30302020-05-27 Tom Tromey <tromey@adacore.com>
3031
3032 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3033 Use htab_find_with_hash.
3034 <add_abbrev>: Remove "abbrev_number" parameter.
3035 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3036 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3037 (hash_abbrev): Add comment.
3038 (abbrev_table::lookup_abbrev): Move to header file.
3039 (abbrev_table::read): Update.
3040
7d00ffec
TT
30412020-05-27 Tom Tromey <tromey@adacore.com>
3042
3043 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3044 method.
3045 <canonical_name>: New member.
3046 <raw_name>: Rename from "name".
3047 (partial_die_info): Initialize canonical_name.
3048 (scan_partial_symbols): Check raw_name.
3049 (partial_die_parent_scope, partial_die_full_name)
3050 (add_partial_symbol, add_partial_subprogram)
3051 (add_partial_enumeration, load_partial_dies): Use "name" method.
3052 (partial_die_info::name): New method.
3053 (partial_die_info::read, guess_partial_die_structure_name)
3054 (partial_die_info::fixup): Update.
3055
697bba18
TT
30562020-05-27 Tom Tromey <tromey@adacore.com>
3057
3058 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3059 <get_ref_die_offset>: Inline.
3060 <get_ref_die_offset_complaint>: New method.
3061 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3062 (attribute::get_ref_die_offset_complaint): Rename from
3063 get_ref_die_offset. Just issue complaint.
3064
c17ace43
HD
30652020-05-27 Hannes Domani <ssbssa@yahoo.de>
3066
3067 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3068
96445f0b
HD
30692020-05-27 Hannes Domani <ssbssa@yahoo.de>
3070
3071 * exec.c (exec_file_attach): Use errno value of first openp failure.
3072
ac637ec3
HD
30732020-05-27 Hannes Domani <ssbssa@yahoo.de>
3074
3075 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3076 Don't close thread handle.
3077
17ee85fc
TT
30782020-05-27 Tom Tromey <tom@tromey.com>
3079 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3082 shared_ptr.
3083 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3084 member.
3085 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3086 dwarf2_per_bfd_objfile_data_key>: New globals.
3087 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3088 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3089 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3090 shared.
3091 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3092 short-circuit when sharing.
3093 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3094 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3095
39b16f87
SM
30962020-05-27 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3099 to...
3100 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3101 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3102
fcf23d5b
SM
31032020-05-27 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3106 build_name_components, find_name_components_bounds>:
3107 Add per_objfile parameter.
3108 (struct mapped_index) <symbol_name_at>: Likewise.
3109 (struct mapped_debug_names): Remove constructor.
3110 <dwarf2_per_objfile>: Remove field.
3111 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3112 (mapped_index_base::find_name_components_bounds,
3113 mapped_index_base::build_name_components,
3114 dw2_expand_symtabs_matching_symbol): Likewise.
3115 (class mock_mapped_index) <symbol_name_at>: Likewise.
3116 (check_match): Likewise.
3117 (check_find_bounds_finds): Likewise.
3118 (test_mapped_index_find_name_component_bounds): Update.
3119 (CHECK_MATCH): Update.
3120 (dw2_expand_symtabs_matching): Update.
3121 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3122 per_objfile parameter.
3123 <find_vec_in_debug_names>: Likewise.
3124 <m_per_objfile>: New field.
3125 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3126 parameter.
3127 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3128 (dw2_debug_names_iterator::next): Update.
3129 (dw2_debug_names_lookup_symbol): Update.
3130 (dw2_debug_names_expand_symtabs_for_function): Update.
3131 (dw2_debug_names_map_matching_symbols): Update.
3132 (dw2_debug_names_expand_symtabs_matching): Update.
3133 (dwarf2_read_debug_names): Update.
3134
7188ed02
SM
31352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3136
3137 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3138 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3139 move to dwarf2_per_objfile.
3140 <read_in_chain>: Remove.
3141 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3142 remove_all_cus, age_comp_units>: New methods.
3143 <m_dwarf2_cus>: New member.
3144 (struct dwarf2_per_cu_data) <cu>: Remove.
3145 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3146 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3147 moved to methods of dwarf2_per_objfile.
3148 (dwarf2_clear_marks): Remove.
3149 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3150 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3151 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3152 (dwarf2_per_objfile::remove_all_cus): New.
3153 (class free_cached_comp_units) <~free_cached_comp_units>:
3154 Update.
3155 (load_cu): Update.
3156 (dw2_do_instantiate_symtab): Adjust.
3157 (fill_in_sig_entry_from_dwo_entry): Adjust.
3158 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3159 (cutu_reader::cutu_reader): Likewise.
3160 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3161 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3162 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3163 and dwarf2_per_objfile::age_comp_units.
3164 (load_partial_comp_unit): Update.
3165 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3166 (process_queue): Likewise.
3167 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3168 backlink.
3169 (dwarf2_read_addr_index): Likewise.
3170 (follow_die_offset): Likewise.
3171 (dwarf2_fetch_die_loc_sect_off): Likewise.
3172 (dwarf2_fetch_constant_bytes): Likewise.
3173 (dwarf2_fetch_die_type_sect_off): Likewise.
3174 (follow_die_sig_1): Likewise.
3175 (load_full_type_unit): Likewise.
3176 (read_signatured_type): Likewise.
3177 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3178 (dwarf2_cu::~dwarf2_cu): Remove.
3179 (dwarf2_per_objfile::get_cu): New.
3180 (dwarf2_per_objfile::set_cu): New.
3181 (age_cached_comp_units): Rename to...
3182 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3183 to std::unordered_map.
3184 (free_one_cached_comp_unit): Rename to...
3185 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3186 to std::unordered_map.
3187 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3188 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3189 a dwarf2_per_objfile in data.
3190 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3191 (dwarf2_clear_marks): Remove.
3192
2e671100
SM
31932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3194
3195 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3196 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3197 (init_tu_and_read_dwo_dies): Likewise.
3198 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3199 (cutu_reader::cutu_reader): Likewise.
3200 (load_partial_comp_unit): Likewise.
3201 (process_psymtab_comp_unit): Update.
3202 (build_type_psymtabs_1): Update.
3203 (process_skeletonless_type_unit): Update.
3204 (load_full_comp_unit): Update.
3205 (find_partial_die): Update.
3206 (dwarf2_read_addr_index): Update.
3207 (read_signatured_type): Update.
3208
2e6a9f79
SM
32092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3212 m_header_read_in>: New fields.
3213 <get_header>: New method.
3214 * dwarf2/read.c (per_cu_header_read_in): Remove.
3215 (dwarf2_per_cu_data::get_header): New.
3216 (dwarf2_per_cu_data::addr_size): Update.
3217 (dwarf2_per_cu_data::offset_size): Update.
3218 (dwarf2_per_cu_data::ref_addr_size): Update.
3219
1b555f17
SM
32202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3221
3222 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3223 (dw2_do_instantiate_symtab): Update.
3224 (queue_and_load_all_dwo_tus): Change parameter from
3225 dwarf2_per_cu_data to dwarf2_cu.
3226 (dwarf2_fetch_die_loc_sect_off): Update.
3227 (dwarf2_fetch_constant_bytes): Update.
3228 (dwarf2_fetch_die_type_sect_off): Update.
3229
8fc0b21d
SM
32302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3231
3232 * dwarf2/read.c (process_full_comp_unit,
3233 process_full_type_unit): Remove per_cu, per_objfile paramters.
3234 Add dwarf2_cu parameter.
3235 (process_queue): Update.
3236
168c9250
SM
32372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3238
3239 * dwarf2/read.c (create_cu_from_index_list): Replace
3240 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3241 (create_cus_from_index_list): Likewise.
3242 (create_cus_from_index): Likewise.
3243 (create_signatured_type_table_from_index): Likewise.
3244 (create_cus_from_debug_names_list): Likewise.
3245 (create_cus_from_debug_names): Likewise.
3246 (dwarf2_read_gdb_index): Update.
3247 (dwarf2_read_debug_names): Update.
3248
e286671b
TT
32492020-05-27 Tom Tromey <tom@tromey.com>
3250 Simon Marchi <simon.marchi@efficios.com>
3251
3252 * dwarf2/read.h (struct dwarf2_per_objfile)
3253 <get_type_for_signatured_type, set_type_for_signatured_type>:
3254 New methods.
3255 <m_type_map>: New member.
3256 (struct signatured_type) <type>: Remove.
3257 * dwarf2/read.c
3258 (dwarf2_per_objfile::get_type_for_signatured_type,
3259 dwarf2_per_objfile::set_type_for_signatured_type): New.
3260 (get_signatured_type): Use new methods.
3261
8adb8487
TT
32622020-05-27 Tom Tromey <tom@tromey.com>
3263 Simon Marchi <simon.marchi@efficios.com>
3264
3265 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3266 (struct dwarf2_per_objfile) <type_units>: New member.
3267 <get_type_unit_group_unshareable>: New method.
3268 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3269 num_symtabs, symtabs>: Remove; move to
3270 type_unit_group_unshareable.
3271 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3272 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3273 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3274
127bbf4b
SM
32752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3276
3277 * dwarf2/read.h (struct dwarf2_per_cu_data):
3278 <dwarf2_per_objfile>: Remove.
3279 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3280 dwarf2_per_objfile.
3281 (create_signatured_type_table_from_index): Likewise.
3282 (create_signatured_type_table_from_debug_names): Likewise.
3283 (create_debug_type_hash_table): Likewise.
3284 (fill_in_sig_entry_from_dwo_entry): Likewise.
3285 (create_type_unit_group): Likewise.
3286 (read_comp_units_from_section): Likewise.
3287 (create_cus_hash_table): Likewise.
3288
f6e649dd
SM
32892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3290
3291 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3292 dwarf2_per_cu_data::dwarf2_per_objfile.
3293 (compute_compunit_symtab_includes): Likewise.
3294 (dwarf2_cu::start_symtab): Likewise.
3295
aa66c379
SM
32962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3297
3298 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3299 parameter.
3300 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3301 (read_namespace_alias): Update.
3302 (lookup_die_type): Update.
3303 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3304 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3305 Update.
3306 (disassemble_dwarf_expression): Update.
3307
120ce1b5
SM
33082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * dwarf2/read.h (struct dwarf2_queue_item): Add
3311 dwarf2_per_objfile parameter, assign new parameter.
3312 <per_objfile>: New field.
3313 * dwarf2/read.c (free_one_cached_comp_unit): Add
3314 dwarf2_per_objfile parameter.
3315 (queue_comp_unit): Likewise.
3316 (dw2_do_instantiate_symtab): Update.
3317 (process_psymtab_comp_unit): Update.
3318 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3319 (process_imported_unit_die): Update.
3320 (queue_and_load_dwo_tu): Update.
3321 (follow_die_offset): Update.
3322 (follow_die_sig_1): Update.
3323
9f47c707
SM
33242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3325
3326 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3327 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3328 (read_call_site_scope): Assign per_objfile.
3329 (dwarf2_per_cu_data::objfile): Remove.
3330 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3331 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3332 dwarf2_per_objfile parameter.
3333 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3334 dwarf2_per_objfile parameter.
3335 (dwarf_expr_reg_to_entry_parameter): Add output
3336 dwarf2_per_objfile parameter.
3337 (locexpr_get_frame_base): Update.
3338 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3339 <push_dwarf_reg_entry_value>: Update.
3340 <call_site_to_target_addr>: Update.
3341 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3342 parameter.
3343 (value_of_dwarf_reg_entry): Update.
3344 (rw_pieced_value): Update.
3345 (indirect_synthetic_pointer): Update.
3346 (dwarf2_evaluate_property): Update.
3347 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3348 parameter.
3349 (locexpr_read_variable): Update.
3350 (locexpr_get_symbol_read_needs): Update.
3351 (loclist_read_variable): Update.
3352
14095eb3
SM
33532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3354
3355 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3356 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3357 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3358 parameter.
3359 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3360 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3361 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3362 parameter.
3363 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3364 sect_variable_value): Add dwarf2_per_objfile parameter.
3365 (class dwarf_evaluate_loc_desc) <dwarf_call,
3366 dwarf_variable_value>: Update.
3367 (fetch_const_value_from_synthetic_pointer): Add
3368 dwarf2_per_objfile parameter.
3369 (fetch_const_value_from_synthetic_pointer): Update.
3370 (coerced_pieced_ref): Update.
3371 (class symbol_needs_eval_context) <dwarf_call,
3372 dwarf_variable_value>: Update.
3373 (dwarf2_compile_expr_to_ax): Update.
3374
3c3cd3d4
SM
33752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3378 parameter.
3379 (dwarf2_evaluate_loc_desc_full): Update.
3380
82ca3f51
SM
33812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3384 parameter.
3385 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3386 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3387 dwarf2_per_objfile parameter.
3388 (decode_debug_loc_dwo_addresses): Likewise.
3389 (dwarf2_find_location_expression): Update.
3390 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3391 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3392 parameter.
3393 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3394 parameter.
3395 (locexpr_describe_location_1): Likewise.
3396 (locexpr_describe_location): Update.
3397
4b167ea1
SM
33982020-05-27 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3401 Remove.
3402 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3403 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3404 (dwarf2_compile_property_to_c): Update.
3405 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3406 use text offset from objfile.
3407 (locexpr_tracepoint_var_ref): Update.
3408 (locexpr_generate_c_location): Update.
3409 (loclist_describe_location): Update.
3410 (loclist_tracepoint_var_ref): Update.
3411 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3412 dwarf2_per_objfile parameter.
3413 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3414 use text offset from objfile.
3415 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3416
89b07335
SM
34172020-05-27 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * dwarf2/expr.h (struct dwarf_expr_context)
3420 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3421 <offset>: Remove.
3422 <per_objfile>: New member.
3423 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3424 dwarf2_per_objfile parameter. Don't set offset, set
3425 per_objfile.
3426 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3427 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3428 a dwarf2_per_objfile object instead of an offset.
3429 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3430 constructor.
3431 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3432 to dwarf2_expr_executor constructor. Don't set offset.
3433 (dwarf2_fetch_cfa_info): Update.
3434 (struct dwarf2_frame_cache) <text_offset>: Remove.
3435 <per_objfile>: New field.
3436 (dwarf2_frame_cache): Update.
3437 (dwarf2_frame_prev_register): Update.
3438 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3439 <dwarf_evaluate_loc_desc>: Add constructor.
3440 (dwarf2_evaluate_loc_desc_full): Update.
3441 (dwarf2_locexpr_baton_eval): Update.
3442 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3443 Add constructor.
3444 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3445
293e7e51
SM
34462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3447
3448 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3449 addr_sized_int_type>: Move to dwarf2_cu.
3450 <int_type>: Move to dwarf2_per_objfile.
3451 (struct dwarf2_per_objfile) <int_type>: Move here.
3452 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3453 addr_sized_int_type>: Move here.
3454 (read_func_scope): Update.
3455 (read_array_type): Update.
3456 (read_tag_string_type): Update.
3457 (attr_to_dynamic_prop): Update.
3458 (dwarf2_per_cu_data::int_type): Rename to...
3459 (dwarf2_per_objfile::int_type): ... this.
3460 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3461 (dwarf2_cu::addr_sized_int_type): ... this.
3462 (read_subrange_type): Update.
3463 (dwarf2_per_cu_data::addr_type): Rename to...
3464 (dwarf2_cu::addr_type): ... this.
3465 (set_die_type): Update.
3466
64874a40
SM
34672020-05-27 Simon Marchi <simon.marchi@efficios.com>
3468
3469 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3470 data through per_cu->cu.
3471
4ab09049
SM
34722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3475 dwarf2_per_cu_data parameter fo dwarf2_cu.
3476 (lookup_dwo_type_unit): Likewise.
3477 (read_cutu_die_from_dwo): Likewise.
3478 (lookup_dwo_unit): Likewise.
3479 (open_and_init_dwo_file): Likewise.
3480 (lookup_dwo_cutu): Likewise.
3481 (lookup_dwo_comp_unit): Likewise.
3482 (lookup_dwo_type_unit): Likewise.
3483 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3484 (cutu_reader::cutu_reader): Update.
3485
47b14e86
SM
34862020-05-27 Simon Marchi <simon.marchi@efficios.com>
3487
3488 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3489 parameter.
3490 (process_full_type_unit): Likewise.
3491 (process_queue): Update.
3492
43182c09
SM
34932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3494
3495 * dwarf2/read.c (recursively_compute_inclusions): Add
3496 dwarf2_per_objfile parameter.
3497 (compute_compunit_symtab_includes): Likewise.
3498 (process_cu_includes): Update.
3499
7aa104c4
SM
35002020-05-27 Simon Marchi <simon.marchi@efficios.com>
3501
3502 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3503 parameter.
3504 (create_type_unit_group): Update.
3505 (process_psymtab_comp_unit_reader): Update.
3506 (build_type_psymtabs_reader): Update.
3507
e3beb21d
SM
35082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3511 object through m_this_cu->cu.
3512
d460f660
SM
35132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3516 the info parameter.
3517 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3518
ab432490
SM
35192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3520
3521 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3522 per_objfile parameter.
3523 (load_full_type_unit): Add per_objfile parameter.
3524 (read_signatured_type): Likewise.
3525 (load_full_comp_unit): Likewise.
3526 (load_cu): Likewise.
3527 (dw2_do_instantiate_symtab): Likewise.
3528 (dw2_get_file_names): Likewise.
3529 (dw2_map_symtabs_matching_filename): Update.
3530 (dw_expand_symtabs_matching_file_matcher): Update.
3531 (dw2_map_symbol_filenames): Update.
3532 (process_psymtab_comp_unit): Add per_objfile parameter.
3533 (build_type_psymtabs_1): Update.
3534 (process_skeletonless_type_unit): Update.
3535 (dwarf2_build_psymtabs_hard): Update.
3536 (load_partial_comp_unit): Add per_objfile parameter.
3537 (scan_partial_symbols): Update.
3538 (load_full_comp_unit): Add per_objfile parameter.
3539 (process_imported_unit_die): Update.
3540 (create_cus_hash_table): Update.
3541 (find_partial_die): Update.
3542 (dwarf2_read_addr_index): Update.
3543 (follow_die_offset): Update.
3544 (dwarf2_fetch_die_loc_sect_off): Update.
3545 (dwarf2_fetch_constant_bytes): Update.
3546 (dwarf2_fetch_die_type_sect_off): Update.
3547 (follow_die_sig_1): Update.
3548 (load_full_type_unit): Add per_objfile parameter.
3549 (read_signatured_type): Likewise.
3550
313bad1b
SM
35512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3554 of objfile_name.
3555
c3699833
SM
35562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3559 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3560 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3561 field.
3562 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3563 (create_cus_from_index): Update.
3564 (dwarf2_read_gdb_index): Update.
3565 (create_cus_from_debug_names): Update.
3566 (dwarf2_read_debug_names): Update.
3567 (get_abbrev_section_for_cu): Update.
3568 (create_all_comp_units): Update.
3569 (read_attribute_value): Update.
3570 (get_debug_line_section): Update.
3571 * dwarf2/index-cache.c (index_cache::store): Update.
3572 * dwarf2/index-write.c (save_gdb_index_command): Update.
3573 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3574
1859c670
SM
35752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3576
3577 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3578 member.
3579 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3580 dwarf2_per_cu_data::per_bfd.
3581 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3582 (create_type_unit_group): Likewise.
3583 (queue_comp_unit): Remove reference to
3584 per_cu->dwarf2_per_objfile.
3585 (maybe_queue_comp_unit): Likewise.
3586 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3587 (create_cus_hash_table): Assign new field.
3588
5e22e966
SM
35892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3590
3591 * dwarf2/read.c: Replace
3592 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3593 dwarf2_cu->per_objfile throughout.
3594
97a1449a
SM
35952020-05-27 Simon Marchi <simon.marchi@efficios.com>
3596
3597 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3598 parameter, don't use per_cu->dwarf2_per_objfile.
3599 (dw2_instantiate_symtab): Likewise.
3600 (dw2_find_last_source_symtab): Update.
3601 (dw2_map_expand_apply): Update.
3602 (dw2_lookup_symbol): Update.
3603 (dw2_expand_symtabs_for_function): Update.
3604 (dw2_expand_all_symtabs): Update.
3605 (dw2_expand_symtabs_with_fullname): Update.
3606 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3607 don't use per_cu->dwarf2_per_objfile.
3608 (dw2_expand_marked_cus): Update.
3609 (dw2_find_pc_sect_compunit_symtab): Update.
3610 (dw2_debug_names_lookup_symbol): Update.
3611 (dw2_debug_names_expand_symtabs_for_function): Update.
3612 (dw2_debug_names_map_matching_symbols): Update.
3613 (dwarf2_psymtab::expand_psymtab): Update.
3614
9e021579
SM
36152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3616
3617 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3618 <per_objfile>: New member.
3619 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3620 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3621 call to dwarf2_cu.
3622 (cutu_reader::cutu_reader): Update.
3623 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3624
ae090bdb
SM
36252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3626
3627 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3628 struct dwarf2_per_objfile.
3629 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3630 dwarf2_per_bfd.
3631 * dwarf2/read.c (set_die_type): Update.
3632 (get_die_type_at_offset): Update.
3633
af758d11
SM
36342020-05-27 Tom Tromey <tom@tromey.com>
3635 Simon Marchi <simon.marchi@efficios.com>
3636
3637 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3638 method.
3639 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3640 get_symtab, set_symtab>: New methods.
3641 <m_symtabs>: New field.
3642 (struct dwarf2_psymtab): Derive from partial_symtab.
3643 <readin_p, get_compunit_symtab>: Declare methods.
3644 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3645 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3646 New methods.
3647 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3648 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3649 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3650 (dw2_symtab_iter_next, dw2_print_stats)
3651 (dw2_expand_symtabs_with_fullname)
3652 (dw2_expand_symtabs_matching_one)
3653 (dw_expand_symtabs_matching_file_matcher)
3654 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3655 (dw2_debug_names_iterator::next)
3656 (dw2_debug_names_map_matching_symbols)
3657 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3658 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3659 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3660 New methods.
3661 (get_compunit_symtab, process_full_comp_unit)
3662 (process_full_type_unit): Update.
3663 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3664
5989a64e
SM
36652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3666
3667 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3668 then introduce a new dwarf2_per_objfile type.
3669 <read_line_string>: Move to the new dwarf2_per_objfile type.
3670 <objfile>: Likewise.
3671 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3672 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3673 dwarf2_per_objfile->per_bfd.
3674 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3675 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3676 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3677 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3678 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3679 (dwarf2_per_objfile::locate_sections): Rename to...
3680 (dwarf2_per_bfd::locate_sections): ... this.
3681 (dwarf2_per_objfile::get_cutu): Rename to...
3682 (dwarf2_per_bfd::get_cutu): ... this.
3683 (dwarf2_per_objfile::get_cu): Rename to...
3684 (dwarf2_per_bfd::get_cu): ... this.
3685 (dwarf2_per_objfile::get_tu): Rename to...
3686 (dwarf2_per_bfd::get_tu): ... this.
3687 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3688 (dwarf2_per_bfd::allocate_per_cu): ... this.
3689 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3690 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3691 (get_gdb_index_contents_ftype): Change parameter from
3692 dwarf2_per_objfile to dwarf2_per_bfd.
3693 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3694 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3695
a50264ba
TT
36962020-05-27 Tom Tromey <tom@tromey.com>
3697 Simon Marchi <simon.marchi@efficios.com>
3698
3699 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3700 (allocate_piece_closure): Set "per_objfile" member.
3701 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3702 (locexpr_describe_location, loclist_describe_location): Use new
3703 member.
3704 * dwarf2/read.c (read_call_site_scope)
3705 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3706 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3707 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3708 handle_data_member_location): Set per_objfile member.
3709 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3710 member.
3711 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3712
d3473f0c
TT
37132020-05-27 Tom Tromey <tom@tromey.com>
3714
3715 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3716 allocate_signatured_type>: Declare new methods.
3717 <m_num_psymtabs>: New member.
3718 (struct dwarf2_per_cu_data) <index>: New member.
3719 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3720 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3721 (create_cu_from_index_list): Use allocate_per_cu.
3722 (create_signatured_type_table_from_index)
3723 (create_signatured_type_table_from_debug_names)
3724 (create_debug_type_hash_table, add_type_unit)
3725 (read_comp_units_from_section): Use allocate_signatured_type.
3726
5717c425
TT
37272020-05-27 Tom Tromey <tom@tromey.com>
3728
3729 * psymtab.c (partial_map_expand_apply)
3730 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3731 (psym_lookup_global_symbol_language)
3732 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3733 (psym_print_stats, psym_expand_symtabs_for_function)
3734 (psym_map_symbol_filenames, psym_map_matching_symbols)
3735 (psym_expand_symtabs_matching)
3736 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3737 (maintenance_check_psymtabs): Update.
3738 * psympriv.h (struct partial_symtab) <readin_p,
3739 get_compunit_symtab>: Add objfile parameter.
3740 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3741 Likewise.
3742 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3743 get_compunit_symtab>: Likewise.
3744 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3745
45940949
TT
37462020-05-27 Tom Tromey <tom@tromey.com>
3747
3748 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3749 member.
3750 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3751 (create_cu_from_index_list)
3752 (create_signatured_type_table_from_index)
3753 (create_signatured_type_table_from_debug_names)
3754 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3755 (dwarf2_create_include_psymtab)
3756 (create_debug_type_hash_table, add_type_unit)
3757 (create_type_unit_group, read_comp_units_from_section)
3758 (dwarf2_compute_name, create_cus_hash_table)
3759 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3760 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3761 obstack.
3762 (dw2_get_real_path): Likewise. Change argument to
3763 dwarf2_per_objfile.
3764
f8c6d152
LM
37652020-05-27 Luis Machado <luis.machado@linaro.org>
3766
3767 PR tdep/26000
3768 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3769 for ldrd (immediate).
3770
e98d2e6d
PW
37712020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3772
3773 * command.h: Add comment giving the name of class_tui.
3774 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3775 create the fake command for the help for class_tui.
3776
53a47a3e
TT
37772020-05-26 Tom Tromey <tromey@adacore.com>
3778
3779 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3780 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3781 (val_atr): New function.
3782 (value_val_atr): Use it.
3783 * ada-valprint.c (print_optional_low_bound): Change low bound
3784 handling for enums.
3785 (val_print_packed_array_elements): Don't call discrete_position.
3786 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3787 discrete_position for enum types.
3788 * language.c (default_print_array_index): Change type.
3789 * language.h (struct language_defn) <la_print_array_index>: Add
3790 index_type parameter, change type of index_value.
3791 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3792 (default_print_array_index): Update.
3793 * valprint.c (maybe_print_array_index): Don't call
3794 value_from_longest. Update.
3795 (value_print_array_elements): Don't call discrete_position.
3796
0bc2354b
TT
37972020-05-26 Tom Tromey <tromey@adacore.com>
3798
3799 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3800 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3801
1218a4bf
CDA
38022020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3803
3804 PR gdb/13519
3805 * avr-tdep.c (avr_integer_to_address): Return data or code
3806 address accordingly to the second 'type' argument of the
3807 function.
3808
92651b1d
MW
38092020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3810
3811 * infcmd.c, inferior.h: (construct_inferior_arguments):
3812 Moved function from here to gdbsupport/common-inferior.{h,cc}
3813
0a4f5f8c
TT
38142020-05-23 Tom Tromey <tom@tromey.com>
3815
3816 Revert commit eca1f90c:
3817 * NEWS: Remove entry for completion styling.
3818 * completer.c (_rl_completion_prefix_display_length): Move
3819 declaration later.
3820 (gdb_fnprint): Revert.
3821 (gdb_display_match_list_1): Likewise.
3822 * cli/cli-style.c (completion_prefix_style)
3823 (completion_difference_style, completion_suffix_style): Remove.
3824 (_initialize_cli_style): Revert.
3825 * cli/cli-style.h (completion_prefix_style)
3826 (completion_difference_style, completion_suffix_style): Don't
3827 declare.
3828
e08bd6c5
PA
38292020-05-24 Pedro Alves <palves@redhat.com>
3830
3831 * symtab.c (completion_list_add_name): Return boolean indication
3832 of whether the symbol matched.
3833 (completion_list_add_symbol): Don't try to remove C++ aliases if
3834 the symbol didn't match in the first place.
3835 * symtab.h (completion_list_add_name): Return bool.
3836
ceacbf6e
SM
38372020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3838
3839 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3840 type::field.
3841
26f16254
JB
38422020-05-23 Joel Brobecker <brobecker@adacore.com>
3843
3844 GDB 9.2 released.
3845
eca1f90c
TT
38462020-05-23 Tom Tromey <tom@tromey.com>
3847
3848 * NEWS: Add entry for completion styling.
3849 * completer.c (_rl_completion_prefix_display_length): Move
3850 declaration earlier.
3851 (gdb_fnprint): Use completion_style.
3852 (gdb_display_match_list_1): Likewise.
3853 * cli/cli-style.c (completion_prefix_style)
3854 (completion_difference_style, completion_suffix_style): New
3855 globals.
3856 (_initialize_cli_style): Register new globals.
3857 * cli/cli-style.h (completion_prefix_style)
3858 (completion_difference_style, completion_suffix_style): Declare.
3859
51e2cfa2
PA
38602020-05-23 Pedro Alves <palves@redhat.com>
3861
3862 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3863 (parse_escape): Use ISDIGIT instead of isdigit.
3864 (puts_debug): Use gdb_isprint instead of isprint.
3865 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3866 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3867 ISSPACE instead of isspace.
3868 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3869 instead of isspace.
3870 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3871 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3872 instead of isxdigit and ISDIGIT instead of isdigit.
3873
80fc5e77
SM
38742020-05-22 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * gdbtypes.h (struct type) <field>: New method.
3877 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3878 or type::field.
3879
3cabb6b0
SM
38802020-05-22 Simon Marchi <simon.marchi@efficios.com>
3881
3882 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3883 (TYPE_FIELDS): Use type::fields. Change all call sites that
3884 modify the propery to use type::set_fields instead.
3885
1f704f76
SM
38862020-05-22 Simon Marchi <simon.marchi@efficios.com>
3887
3888 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3889 type::num_fields instead.
3890
5e33d5f4
SM
38912020-05-22 Simon Marchi <simon.marchi@efficios.com>
3892
3893 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3894 methods.
3895 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3896 that modify the number of fields to use type::set_num_fields
3897 instead.
3898
9392ebb3
TT
38992020-05-22 Tom Tromey <tromey@adacore.com>
3900
3901 * compile/compile-object-load.h (munmap_list_free): Don't
3902 declare.
3903
7c13f4e8
AB
39042020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3905
3906 * annotate.c (annotate_source_line): Update return type, add call
3907 to update current symtab and line.
3908 * annotate.h (annotate_source_line): Update return type, and
3909 extend header comment.
3910 * source.c (info_line_command): Check annotation_level before
3911 calling annotate_source_line.
3912 * stack.c (print_frame_info): If calling annotate_source_line
3913 returns true, then don't print any other source line information.
3914
aa370940
SM
39152020-05-21 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3918
84d53fa9
SM
39192020-05-21 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * coffread.c (patch_type): Remove NULL check before xfree.
3922 * corefile.c (set_gnutarget): Likewise.
3923 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3924 * exec.c (build_section_table): Likewise.
3925 * remote.c (remote_target::pass_signals): Likewise.
3926 * utils.c (n_spaces): Likewise.
3927 * cli/cli-script.c (document_command): Likewise.
3928 * i386-windows-tdep.c (core_process_module_section): Likewise.
3929 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3930
9d428aae
SM
39312020-05-20 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * symfile.c (reread_symbols): Clear objfile's section_offsets
3934 vector and section indices, re-compute them by calling
3935 sym_offsets.
3936
250106a7
TT
39372020-05-20 Tom Tromey <tromey@adacore.com>
3938
3939 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3940 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3941
9a0bacfb
TV
39422020-05-20 Tom de Vries <tdevries@suse.de>
3943
3944 PR symtab/25833
3945 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3946
7b958a48
AM
39472020-05-20 Alan Modra <amodra@gmail.com>
3948
3949 PR 25993
3950 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3951 bfd_set_filename.
3952 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3953 passed to bfd_set_filename.
3954 * symfile-mem.c (add_vsyscall_page): Likewise for string
3955 passed to symbol_file_add_from_memory.
3956 (symbol_file_add_from_memory): Make name param a const char* and
3957 don't strdup.
3958
c7e97679
AM
39592020-05-20 Alan Modra <amodra@gmail.com>
3960
3961 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3962 rather than accessing bfd->filename directly.
3963 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3964 and use bfd_section_name.
3965 * dwarf2/frame.c (decode_frame_entry): Likewise.
3966 * exec.c (exec_set_section_address): Likewise.
3967 * solib-aix.c (solib_aix_bfd_open): Likewise.
3968 * stap-probe.c (get_stap_base_address): Likewise.
3969 * symfile.c (reread_symbols): Likewise.
3970
563c591b
TT
39712020-05-19 Tom Tromey <tromey@adacore.com>
3972
3973 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3974
f408d82c
SM
39752020-05-19 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3978
98c59b52
PA
39792020-05-19 Pedro Alves <palves@redhat.com>
3980
3981 * NEWS (set exec-file-mismatch): Adjust entry.
3982 * exec.c: Include "build-id.h".
3983 (validate_exec_file): Try to match build IDs instead of filenames.
3984 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3985 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3986 and pass down 'warn_if_slow'.
3987 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3988 gdb_bfd_open_closure to pass it down.
3989 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3990
4111f652
PA
39912020-05-19 Pedro Alves <palves@redhat.com>
3992
3993 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3994 * target.c (target_fileio_open_1): Rename to target_fileio_open
3995 and make extern. Use bool.
3996 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3997 (target_fileio_read_alloc_1): Adjust.
3998 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3999 (target_fileio_open_warn_if_slow): Delete declaration.
4000
ad80db5b
PA
40012020-05-19 Pedro Alves <palves@redhat.com>
4002
4003 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4004 Adjust all callers.
4005
1d6ce4d3
YS
40062020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4007
4008 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4009 whether disp is negative.
4010
9005fbbb
SM
40112020-05-19 Simon Marchi <simon.marchi@efficios.com>
4012
4013 * symfile.h (struct symfile_segment_data)
4014 <~symfile_segment_data>: Remove.
4015 <segment_info>: Change to std::vector.
4016 * symfile.c (default_symfile_segments): Update.
4017 * elfread.c (elf_symfile_segments): Update.
4018
68b888ff
SM
40192020-05-19 Simon Marchi <simon.marchi@efficios.com>
4020
4021 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4022 <segments>: New.
4023 <segment_bases, segment_sizes>: Remove.
4024 * symfile.c (default_symfile_segments): Update.
4025 * elfread.c (elf_symfile_segments): Update.
4026 * remote.c (remote_target::get_offsets): Update.
4027 * solib-target.c (solib_target_relocate_section_addresses):
4028 Update.
4029
62982abd
SM
40302020-05-19 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * symfile.h (struct symfile_segment_data): Initialize fields.
4033 <~symfile_segment_data>: Add.
4034 (symfile_segment_data_up): New.
4035 (struct sym_fns) <sym_segments>: Return a
4036 symfile_segment_data_up.
4037 (default_symfile_segments): Return a symfile_segment_data_up.
4038 (free_symfile_segment_data): Remove.
4039 (get_symfile_segment_data): Return a symfile_segment_data_up.
4040 * symfile.c (default_symfile_segments): Likewise.
4041 (get_symfile_segment_data): Likewise.
4042 (free_symfile_segment_data): Remove.
4043 (symfile_find_segment_sections): Update.
4044 * elfread.c (elf_symfile_segments): Return a
4045 symfile_segment_data_up.
4046 * remote.c (remote_target::get_offsets): Update.
4047 * solib-target.c (solib_target_relocate_section_addresses):
4048 Update.
4049 * symfile-debug.c (debug_sym_segments): Return a
4050 symfile_segment_data_up.
4051
7f204339
RO
40522020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4053
e52a0f1b
RO
4054 PR build/25981
4055 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4056 Hardcode register numbers.
4057
7f204339
RO
4058 PR build/25981
4059 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4060 procfs_find_LDT_entry): Remove.
4061 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4062 procfs_find_LDT_entry): Remove.
4063 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4064 Remove.
4065
7f32a4d5
PA
40662020-05-17 Pedro Alves <palves@redhat.com>
4067 Andrew Burgess <andrew.burgess@embecosm.com>
4068 Keno Fischer <keno@juliacomputing.com>
4069
4070 PR gdb/25741
4071 * breakpoint.c (build_target_condition_list): Update comments.
4072 (build_target_command_list): Update comments and skip matching
4073 locations.
4074 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4075 a separate function. Simplify "set breakpoint auto-hw off"
4076 handling.
4077 (insert_breakpoints): Update comment.
4078 (tracepoint_locations_match): New parameter. For breakpoints,
4079 compare location types too, if the caller wants to.
4080 (handle_automatic_hardware_breakpoints): New functions.
4081 (bp_location_is_less_than): Also sort by location type and
4082 hardware breakpoint length.
4083 (update_global_location_list): Handle "set breakpoint auto-hw on"
4084 here.
4085 (update_breakpoint_locations): Ask breakpoint_locations_match to
4086 ignore location types.
4087
7d93a1e0
SM
40882020-05-16 Simon Marchi <simon.marchi@efficios.com>
4089
4090 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4091 type::name instead.
4092
d0e39ea2
SM
40932020-05-16 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * gdbtypes.h (struct type) <name, set_name>: New methods.
4096 (TYPE_CODE): Use type::name. Change all call sites used to set
4097 the name to use type::set_name instead.
4098
2dab0c7b
TT
40992020-05-16 Tom Tromey <tom@tromey.com>
4100
4101 * top.c (quit_force): Update.
4102 * infrun.c (handle_no_resumed): Update.
4103 * top.h (all_uis): New function.
4104 (ALL_UIS): Remove.
4105
59f7bd8d
SM
41062020-05-16 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4109
9bf058f0
PA
41102020-05-16 Pedro Alves <palves@redhat.com>
4111
4112 * ia64-linux-nat.c
4113 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4114 Declare method.
4115 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4116
8f86ae1a
SM
41172020-05-15 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4120 (sparc64_adi_info): Likewise.
4121
d6bc0792
TT
41222020-05-15 Tom Tromey <tom@tromey.com>
4123
4124 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4125 block_objfile.
4126 (lookup_objfile_from_block): Remove.
4127 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4128 (lookup_global_symbol): Use block_objfile.
4129 * symtab.h (lookup_objfile_from_block): Don't declare.
4130 * printcmd.c (clear_dangling_display_expressions): Use
4131 block_objfile.
4132 * parse.c (operator_check_standard): Use block_objfile.
4133
8c14c3a3
TT
41342020-05-15 Tom Tromey <tom@tromey.com>
4135
4136 * language.c (language_alloc_type_symbol): Set
4137 SYMBOL_SECTION.
4138 * symtab.c (initialize_objfile_symbol): Remove.
4139 (allocate_symbol): Remove.
4140 (allocate_template_symbol): Remove.
4141 * dwarf2/read.c (fixup_go_packaging): Use "new".
4142 (new_symbol): Use "new".
4143 (read_variable): Don't call initialize_objfile_symbol. Use
4144 "new".
4145 (read_func_scope): Use "new".
4146 * xcoffread.c (process_xcoff_symbol): Don't call
4147 initialize_objfile_symbol.
4148 (SYMBOL_DUP): Remove.
4149 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4150 "new".
4151 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4152 (allocate_template_symbol): Don't declare.
4153 (struct symbol): Add copy constructor. Change defaults.
4154 * jit.c (finalize_symtab): Use "new".
4155 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4156 Use "new".
4157 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4158 (common_block_end): Use "new".
4159 * mdebugread.c (parse_symbol): Use "new".
4160 (new_symbol): Likewise.
4161
5b4a1a8d
PW
41622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4163
4164 * NEWS: Mention changes to help and apropos.
4165
57b4f16e
PW
41662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4167
4168 * command.h (enum command_class): Improve comments, document
4169 that class_alias is for user-defined aliases, give the class
4170 name for each class, remove unused class_xdb.
4171 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4172 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4173 by a precise class.
4174 * infcmd.c (_initialize_infcmd): Likewise.
4175 * reverse.c (_initialize_reverse): Likewise.
4176 * stack.c (_initialize_stack): Likewise.
4177 * symfile.c (_initialize_symfile): Likewise.
4178 * tracepoint.c (_initialize_tracepoint): Likewise.
4179
7c05caf7
PW
41802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4181
4182 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4183 when their aliased command is traversed.
4184 (help_cmd): Add fput_command_names_styled call to
4185 output command name and aliases when command has an alias.
4186
3b3aaacb
PW
41872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4188
4189 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4190 * cli/cli-decode.c (help_cmd_list): Declare as static,
4191 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4192 a command together with the command.
4193 (fput_command_name_styled, fput_command_names_styled): New functions.
4194 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4195 fput_command_name_styled.
4196 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4197 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4198
7aa1b46f
PW
41992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4200
4201 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4202 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4203 * command.h (cmd_show_list): Likewise.
4204 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4205 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4206
89bcba74
PW
42072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4208
4209 * unittests/command-def-selftests.c (traverse_command_structure):
4210 Verify all commands of a list have the same prefix command and
4211 that only the top cmdlist commands have a null prefix.
4212
3f4d92eb
PW
42132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4214
4215 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4216 as prefix, not one of its aliases.
4217 (set_cmd_prefix): Remove.
4218 (do_add_cmd): Centralize the setting of the prefix of a command, when
4219 command is defined after its full chain of prefix commands.
4220 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4221 (add_setshow_cmd_full): Likewise.
4222 (update_prefix_field_of_prefixed_commands): New function.
4223 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4224 update_prefix_field_of_prefixed_commands.
4225 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4226 addresses of remote_set_cmdlist and remote_show_cmdlist given
4227 as argument, not the address of an argument.
4228 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4229 * gdb/remote.c (_initialize_remote): Likewise.
4230
0605465f
PW
42312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4232
4233 * cli/cli-cmds.c (alias_command): Check for an existing alias
4234 using lookup_cmd_composition, as valid_command_p is too strict
4235 and forbids aliases that are the prefix of an existing alias
4236 or command.
4237 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4238 command is properly recognised as a valid command.
4239
58e6ac70
PW
42402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4241
4242 * unittests/help-doc-selftests.c: Rename to
4243 unittests/command-def-selftests.c
4244 * unittests/command-def-selftests.c (help_doc_tests): Update some
4245 comments.
4246 (command_structure_tests, traverse_command_structure): New namespace
4247 and function.
4248 (command_structure_invariants_tests): New function.
4249 (_initialize_command_def_selftests) Renamed from
4250 _initialize_help_doc_selftests, register command_structure_invariants
4251 selftest.
4252
a7b9ceb8
PW
42532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4254
4255 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4256 an alias of 'show'.
4257
b2188a06
JB
42582020-05-15 Joel Brobecker <brobecker@adacore.com>
4259
4260 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4261 ada_is_fixed_point_type. Update all callers.
4262 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4263 all callers.
4264 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4265 Update all callers.
4266 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4267 print_fixed_point_type. Update all callers.
4268 * ada-valprint.c (ada_value_print_num): Replace call to
4269 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4270
a51951c2
KB
42712020-05-14 Kevin Buettner <kevinb@redhat.com>
4272
4273 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4274 processors.
4275 (cpu_supports_bts): Add CV_AMD case.
4276
29d6859f
LM
42772020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4278 Simon Marchi <simon.marchi@efficios.com>
4279
4280 * infrun.c (stop_all_threads): Collect multiple wait events at
4281 each pass.
4282
78134374
SM
42832020-05-14 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4286 type::code instead.
4287
67607e24
SM
42882020-05-14 Simon Marchi <simon.marchi@efficios.com>
4289
4290 * gdbtypes.h (struct type) <code, set_code>: New methods.
4291 (TYPE_CODE): Use type::code. Change all call sites used to set
4292 the code to use type::set_code instead.
4293
a05575d3
TBA
42942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4295 Tom de Vries <tdevries@suse.de>
4296 Pedro Alves <palves@redhat.com>
4297
4298 PR threads/25478
4299 * infrun.c (stop_all_threads): Do NOT ignore
4300 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4301 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4302 received.
4303 (handle_no_resumed): Remove code handling a live inferior with no
4304 threads.
4305 * remote.c (has_single_non_exited_thread): New.
4306 (remote_target::update_thread_list): Do not delete a thread if is
4307 the last thread of the process.
4308 * thread.c (thread_select): Call delete_exited_threads instead of
4309 prune_threads.
4310
6ad82919
TBA
43112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4312
4313 * infrun.c (stop_all_threads): Enable/disable thread events of all
4314 targets. Move a debug message denoting the end of the function
4315 into the SCOPED_EXIT block.
4316
d890404b
TBA
43172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4318
4319 * process-stratum-target.h: Include <set>.
4320 (all_non_exited_process_targets, switch_to_target_no_thread): New
4321 function declarations.
4322 * process-stratum-target.c (all_non_exited_process_targets)
4323 (switch_to_target_no_thread): New function implementations.
4324
293b3ebc
TBA
43252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4326
4327 * infrun.c (handle_inferior_event): Extract out a piece of code
4328 into...
4329 (mark_non_executing_threads): ...this new function.
4330
7ca9b62a
TBA
43312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4332
4333 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4334 use.
4335
fc75c28b
TBA
43362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4337
4338 * regcache.c (regcache_read_pc_protected): New function
4339 implementation that returns 0 if the PC cannot read via
4340 'regcache_read_pc'.
4341 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4342 instead of 'regcache_read_pc'.
4343 (keep_going_pass_signal): Ditto.
4344
a89febbd
TT
43452020-05-13 Tom Tromey <tromey@adacore.com>
4346
4347 * ada-lang.c (align_value): Remove.
4348 (ada_template_to_fixed_record_type_1): Use align_up.
4349
f7e23710
TBA
43502020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4351
4352 * async-event.c: Update the copyright year.
4353 * async-event.h: Update the copyright year.
4354
02ff80c2
SM
43552020-05-12 Simon Marchi <simon.marchi@efficios.com>
4356
4357 * objfiles.h (is_addr_in_objfile,
4358 shared_objfile_contains_address_p): Return bool.
4359 * objfile.c (is_addr_in_objfile,
4360 shared_objfile_contains_address_p): Return bool.
4361
4fd6c7e8
TT
43622020-05-11 Tom Tromey <tromey@adacore.com>
4363
4364 * cli/cli-cmds.c (info_command): Restore.
4365 (_initialize_cli_cmds): Use add_prefix_command for "info".
4366 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4367
5eb68a39
TT
43682020-05-11 Tom Tromey <tromey@adacore.com>
4369
4370 * ada-lang.c (ada_value_primitive_field): Now public.
4371 * ada-lang.h (ada_value_primitive_field): Declare.
4372 * ada-valprint.c (print_field_values): Use
4373 ada_value_primitive_field for wrapper fields.
4374
7666722f
TV
43752020-05-11 Tom de Vries <tdevries@suse.de>
4376
4377 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4378 MODULE_DOMAIN.
4379
3ee6bb11
TV
43802020-05-11 Tom de Vries <tdevries@suse.de>
4381
4382 PR symtab/25941
4383 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4384 with length 0, if not gdb-produced.
4385 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4386
43434996
TV
43872020-05-09 Tom de Vries <tdevries@suse.de>
4388
4389 PR gdb/25955
4390 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4391 calculation.
4392
2f78cffc
TT
43932020-05-09 Tom Tromey <tom@tromey.com>
4394
4395 * top.c (server_command): Now bool.
4396 * top.h (server_command): Now bool.
4397
4f7bc5ed
TT
43982020-05-08 Tom Tromey <tromey@adacore.com>
4399
4400 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4401 already being processed.
4402
8be4b118
TT
44032020-05-08 Tom Tromey <tom@tromey.com>
4404
4405 * printcmd.c (struct display) <next>: Remove.
4406 <display>: New constructor.
4407 <exp_string>: Now a std::string.
4408 <enabled_p>: Now a bool.
4409 (display_number): Move definition earlier.
4410 (displays): Rename from display_chain. Now a std::vector.
4411 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4412 (display_command): Update.
4413 (do_one_display, disable_display)
4414 (enable_disable_display_command, do_enable_disable_display):
4415 Update.
4416 (free_display): Remove.
4417 (clear_displays): Rewrite.
4418 (delete_display): Update.
4419 (map_display_numbers): Use function_view. Remove "data"
4420 parameter. Update.
4421 (do_delete_display): Remove.
4422 (undisplay_command): Update.
4423 (do_one_display, do_displays, disable_display)
4424 (info_display_command): Update.
4425 (do_enable_disable_display): Remove.
4426 (enable_disable_display_command)
4427 (clear_dangling_display_expressions): Update.
4428
94c93c35
TT
44292020-05-08 Tom Tromey <tom@tromey.com>
4430
4431 * symtab.c (set_symbol_cache_size)
4432 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4433 (maintenance_print_symbol_cache_statistics): Update.
4434 * symmisc.c (print_symbol_bcache_statistics)
4435 (print_objfile_statistics, maintenance_print_objfiles)
4436 (maintenance_info_symtabs, maintenance_check_symtabs)
4437 (maintenance_expand_symtabs, maintenance_info_line_tables):
4438 Update.
4439 * symfile-debug.c (set_debug_symfile): Update.
4440 * source.c (forget_cached_source_info): Update.
4441 * python/python.c (gdbpy_progspaces): Update.
4442 * psymtab.c (maintenance_info_psymtabs): Update.
4443 * probe.c (parse_probes): Update.
4444 * linespec.c (iterate_over_all_matching_symtabs)
4445 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4446 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4447 * exec.c (exec_target::close): Update.
4448 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4449 * breakpoint.c (print_one_breakpoint_location)
4450 (create_longjmp_master_breakpoint)
4451 (create_std_terminate_master_breakpoint): Update.
4452 * progspace.c (program_spaces): Now a std::vector.
4453 (maybe_new_address_space): Update.
4454 (add_program_space): Remove.
4455 (program_space::program_space): Update.
4456 (remove_program_space): Update.
4457 (number_of_program_spaces): Remove.
4458 (print_program_space, update_address_spaces): Update.
4459 * progspace.h (program_spaces): Change type.
4460 (ALL_PSPACES): Remove.
4461 (number_of_program_spaces): Don't declare.
4462 (struct program_space) <next>: Remove.
4463
a1fd1ac9
TT
44642020-05-08 Tom Tromey <tom@tromey.com>
4465
4466 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4467 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4468 (enable_break): Update.
4469 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4470 (frv_fdpic_find_canonical_descriptor): Update.
4471 (frv_fetch_objfile_link_map): Update.
4472 * progspace.c (program_space::free_all_objfiles): Update.
4473 (program_space::solibs): New method.
4474 * progspace.h (struct program_space) <solibs>: New method.
4475 * solist.h (master_so_list): Don't declare.
4476 (ALL_SO_LIBS): Remove.
4477 * solib.h (so_list_head): Remove.
4478 (update_solib_list): Update comment.
4479 * solib.c (master_so_list): Remove.
4480 (solib_used, update_solib_list, solib_add)
4481 (info_sharedlibrary_command, clear_solib)
4482 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4483
38eae084
TT
44842020-05-08 Tom Tromey <tom@tromey.com>
4485
4486 * extension.c (extension_languages): Now a std::array.
4487 (ALL_EXTENSION_LANGUAGES): Remove.
4488 (get_ext_lang_defn, get_ext_lang_of_file)
4489 (eval_ext_lang_from_control_command): Update.
4490 (finish_ext_lang_initialization)
4491 (auto_load_ext_lang_scripts_for_objfile)
4492 (ext_lang_type_printers::ext_lang_type_printers)
4493 (apply_ext_lang_type_printers)
4494 (ext_lang_type_printers::~ext_lang_type_printers)
4495 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4496 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4497 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4498 (get_matching_xmethod_workers, ext_lang_colorize)
4499 (ext_lang_before_prompt): Update.
4500 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4501
596dc4ad
TT
45022020-05-08 Tom Tromey <tom@tromey.com>
4503
4504 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4505 overload.
4506 <swap_string, m_string>: Remove.
4507 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4508 Update.
4509 * stabsread.c (define_symbol, read_type): Update.
4510 * linespec.c (find_linespec_symbols): Update.
4511 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4512 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4513 * dbxread.c (read_dbx_symtab): Update.
4514 * cp-support.h (cp_canonicalize_string_full)
4515 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4516 Return unique_xmalloc_ptr.
4517 * cp-support.c (inspect_type): Update.
4518 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4519 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4520 Likewise.
4521 * c-typeprint.c (print_name_maybe_canonical): Update.
4522 * break-catch-throw.c (check_status_exception_catchpoint):
4523 Update.
4524
bf4cb9be
TV
45252020-05-08 Tom de Vries <tdevries@suse.de>
4526
4527 * infrun.c (follow_fork): Copy current_line and current_symtab to
4528 child thread.
4529
a1b68f28
SM
45302020-05-07 Simon Marchi <simon.marchi@efficios.com>
4531
4532 * async-event.c (struct async_signal_handler, struct
4533 async_event_handler): Reformat, remove typedef.
4534
98d48915
SM
45352020-05-07 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4538 access thistype->main_type->dyn_prop_list directly.
4539
7aa91313
SM
45402020-05-07 Simon Marchi <simon.marchi@efficios.com>
4541
4542 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4543 (remove_dyn_prop): Remove. Update all users to use
4544 type::remove_dyn_prop.
4545 * gdbtypes.c (remove_dyn_prop): Rename to...
4546 (type::remove_dyn_prop): ... this.
4547
5c54719c
SM
45482020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4549
4550 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4551 (add_dyn_prop): Remove. Update all users to use
4552 type::add_dyn_prop.
4553 * gdbtypes.c (add_dyn_prop): Rename to...
4554 (type::add_dyn_prop): ... this.
4555
24e99c6c
SM
45562020-05-07 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4559 (get_dyn_prop): Remove. Update all users to use
4560 type::dyn_prop.
4561 * gdbtypes.c (get_dyn_prop): Rename to...
4562 (type::dyn_prop): ... this.
4563
0d4bf016
SM
45642020-05-06 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4567
ac4a4f1c
SM
45682020-05-06 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4571 instruction, skip it if it's there.
4572
a3bbacc1
SM
45732020-05-05 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4576
c3236f84
SM
45772020-05-04 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4580 * gdbtypes.c (recursive_dump_type): Remove use of
4581 TYPE_INCOMPLETE.
4582
3b6acaee
TT
45832020-05-03 Tom Tromey <tom@tromey.com>
4584
4585 * breakpoint.c (catch_command, tcatch_command): Remove.
4586 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4587 add_show_prefix_cmd.
4588 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4589 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4590 Remove.
4591 (add_internal_problem_command): Use add_basic_prefix_cmd,
4592 add_show_prefix_cmd.
4593 * mips-tdep.c (set_mipsfpu_command): Remove.
4594 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4595 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4596 (_initialize_index_cache): Use add_basic_prefix_cmd.
4597 * memattr.c (dummy_cmd): Remove.
4598 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4599 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4600 (_initialize_tui_win): Use add_basic_prefix_cmd,
4601 add_show_prefix_cmd.
4602 * cli/cli-logging.c (set_logging_command): Remove.
4603 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4604 add_show_prefix_cmd.
4605 (show_logging_command): Remove.
4606 * target.c (target_command): Remove.
4607 (add_target): Use add_basic_prefix_cmd.
4608
a51119cd
HD
46092020-05-02 Hannes Domani <ssbssa@yahoo.de>
4610
4611 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4612
652fc23a 46132020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4614
652fc23a
PW
4615 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4616 info_command.
4617
117539e6
KR
46182020-04-30 Kamil Rytarowski <n54@gmx.com>
4619
4620 * nbsd-nat.c (nbsd_enable_proc_events)
4621 (nbsd_nat_target::post_startup_inferior): Add.
4622 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4623 (nbsd_nat_target::update_thread_list): Rewrite.
4624 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4625 "PTRACE_LWP_CREATE".
4626 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4627
102e38eb 46282020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4629
102e38eb
PW
4630 * stack.c (_initialize_stack): Remove duplicated creation
4631 of "frame" command and "f" alias.
4632
ee9d1e5f
HD
46332020-04-30 Hannes Domani <ssbssa@yahoo.de>
4634
4635 PR gdb/18706
4636 * gdbtypes.c (check_typedef): Calculate size of array of
4637 stubbed type.
4638
627c7fb8
HD
46392020-04-30 Hannes Domani <ssbssa@yahoo.de>
4640
4641 PR gdb/15559
4642 * i386-tdep.c (i386_push_dummy_call): Call
4643 i386_thiscall_push_dummy_call.
4644 (i386_thiscall_push_dummy_call): New function.
4645 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4646 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4647 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4648
ffc2844e
SM
46492020-04-29 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * gdbarch.sh (do_read): Add shellcheck disable directive for
4652 warning SC2162.
4653
1207375d
SM
46542020-04-29 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4657 "referenced but not assigned" warning.
4658
9fdb2916
SM
46592020-04-29 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * gdbarch.sh: Remove code that sets fallbackdefault.
4662
759cea5e
SM
46632020-04-29 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * gdbarch.sh: Use shell operators && and || instead of
4666 -a and -o.
4667
cb02ab24
SM
46682020-04-29 Simon Marchi <simon.marchi@efficios.com>
4669
4670 * gdbarch.sh: Use $(...) instead of `...`.
4671
a6fc5ffc
SM
46722020-04-29 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbarch.sh: Use double quotes around variables.
4675
8d113d13
SM
46762020-04-29 Simon Marchi <simon.marchi@efficios.com>
4677
4678 * gdbarch.sh: Use %s with printf, instead of variables in the
4679 format string.
4680
ed6acedd
TT
46812020-04-29 Tom Tromey <tromey@adacore.com>
4682
4683 PR ada/25875:
4684 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4685 type fields here.
4686 (read_enumeration_type): Call
4687 update_enumeration_type_from_children later. Update comments.
4688 (process_enumeration_scope): Don't create type fields.
4689
b68b1b58
KR
46902020-04-29 Kamil Rytarowski <n54@gmx.com>
4691
4692 * nbsd-tdep.c: Include "xml-syscall.h".
4693 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4694
f94b2e03
KR
46952020-04-29 Kamil Rytarowski <n54@gmx.com>
4696
4697 * nbsd-nat.c: Include "sys/wait.h".
4698 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4699 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4700 (nbsd_nat_target::remove_exec_catchpoint)
4701 (nbsd_nat_target::set_syscall_catchpoint): Add.
4702 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4703 (nbsd_nat_target::insert_exec_catchpoint)
4704 (nbsd_nat_target::remove_exec_catchpoint)
4705 (nbsd_nat_target::set_syscall_catchpoint): Add.
4706 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4707 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4708 `nbsd_get_syscall_number'.
4709
fc49bc72
TT
47102020-04-29 Tom Tromey <tom@tromey.com>
4711
4712 * stack.c (print_block_frame_labels): Remove.
4713
d642b692
HD
47142020-04-29 Hannes Domani <ssbssa@yahoo.de>
4715
4716 PR gdb/17320
4717 * ada-valprint.c (val_print_packed_array_elements): Move array
4718 end bracket to new line.
4719 (ada_val_print_string): Remove extra spaces before first array
4720 element.
4721 * c-valprint.c (c_value_print_array): Likewise.
4722 * m2-valprint.c (m2_print_array_contents): Likewise.
4723 (m2_value_print_inner): Likewise.
4724 * p-valprint.c (pascal_value_print_inner): Likewise.
4725 * valprint.c (generic_val_print_array): Likewise.
4726 (value_print_array_elements): Move first array element and array
4727 end bracket to new line.
4728
ea90f227
TV
47292020-04-29 Tom de Vries <tdevries@suse.de>
4730
4731 PR symtab/25889
4732 * linespec.c (find_method): Fix ix calculation.
4733
4498ef4f
KR
47342020-04-28 Kamil Rytarowski <n54@gmx.com>
4735
4736 * syscalls/update-netbsd.sh: New file.
4737 * syscalls/netbsd.xml: Regenerate.
4738 * data-directory/Makefile.in: Register `netbsd.xml' in
4739 `SYSCALLS_FILES'.
4740
a55e30b5
SM
47412020-04-28 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * syscalls/update-freebsd.sh: Add double quotes.
4744
2b2fbab8
TT
47452020-04-28 Tom Tromey <tom@tromey.com>
4746
4747 * NEWS: Update.
4748 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4749 (cmdpy_init): Allow class_tui.
4750
a65189c9
TV
47512020-04-28 Mark Williams <mark@myosotissp.com>
4752
4753 PR gdb/24480
4754 * dwarf2read.c: Add missing assingments to list_in_scope when
4755 start_symtab was already called.
4756
1b95cdb7
SM
47572020-04-28 Simon Marchi <simon.marchi@efficios.com>
4758
4759 PR gdb/25881
4760 * dwarf2/read.c (offset_map_type): Use
4761 gdb:hash_enum<sect_offset> as hash function.
4762
15cd93d0
TV
47632020-04-28 Tom de Vries <tdevries@suse.de>
4764
4765 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4766 with DW_AT_signature.
4767
1eb39914
SM
47682020-04-27 Simon Marchi <simon.marchi@efficios.com>
4769
4770 * configure.ac: Remove check for fs_base/gs_base in
4771 user_regs_struct.
4772 * configure: Re-generate.
4773 * config.in: Re-generate.
4774 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4775 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4776 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4777
991a3e2e
LM
47782020-04-27 Luis Machado <luis.machado@linaro.org>
4779
4780 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4781 problematic inline frame unwinding situation.
4782 * frame.c (frame_id_computed_p): New function.
4783 * frame.h (frame_id_computed_p): New prototype.
4784
361ba0e8
TT
47852020-04-26 Tom Tromey <tom@tromey.com>
4786
4787 * command.h (enum command_class) <class_pseudo>: Remove.
4788
bc3609fd
PW
47892020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4790
4791 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4792 and whitespace.
4793
b9771db7
KR
47942020-04-25 Kamil Rytarowski <n54@gmx.com>
4795
ec16513e
SM
4796 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4797 `PT_GET_PROCESS_STATE' block.
b9771db7 4798
7151c1af
TT
47992020-04-24 Tom Tromey <tom@tromey.com>
4800
4801 * symtab.h (symbol_get_demangled_name): Don't declare.
4802 * symtab.c (symbol_get_demangled_name): Remove.
4803 (general_symbol_info::natural_name)
4804 (general_symbol_info::demangled_name): Update.
4805
906bb4c5
TT
48062020-04-24 Tom Tromey <tom@tromey.com>
4807
4808 PR rust/25025:
4809 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4810
bcfe6157
TT
48112020-04-24 Tom Tromey <tom@tromey.com>
4812
4813 PR symtab/12707:
4814 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4815 exists.
4816 (new_symbol): Likewise.
4817 * compile/compile-object-load.c (get_out_value_type): Use
4818 symbol_matches_search_name.
4819
f049a313
TT
48202020-04-24 Tom Tromey <tom@tromey.com>
4821
4822 * dwarf2/read.c (add_partial_symbol): Do not call
4823 compute_and_set_names.
4824
76e288d1
TT
48252020-04-24 Tom Tromey <tom@tromey.com>
4826
4827 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4828 overload.
4829
2467f4f6
TT
48302020-04-24 Tom Tromey <tom@tromey.com>
4831
4832 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4833 (add_psymbol_to_list): New overload. Make old overload call new
4834 one.
4835 * psympriv.h (add_psymbol_to_list): New overload.
4836
e61108c9
TT
48372020-04-24 Tom Tromey <tom@tromey.com>
4838
4839 * dwarf2/read.c (partial_die_info::read) <case
4840 DW_AT_linkage_name>: Use value_as_string.
4841 (dwarf2_string_attr): Use value_as_string.
4842 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4843 method.
4844 * dwarf2/attribute.c (attribute::value_as_string): New method.
4845
8c87a452
TT
48462020-04-24 Tom Tromey <tom@tromey.com>
4847
4848 * symtab.c (general_symbol_info::natural_name)
4849 (general_symbol_info::demangled_name): Check for language_rust.
4850
787de330
TT
48512020-04-24 Tom Tromey <tom@tromey.com>
4852
4853 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4854 (dwarf2_physname): ... from here.
4855 (partial_die_info::read): Add Rust "{" hack.
4856
ff985671
TT
48572020-04-24 Tom Tromey <tom@tromey.com>
4858
4859 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4860 method.
4861 (symbol_set_demangled_name): Don't declare.
4862 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4863 symbol_set_demangled_name.
4864 (general_symbol_info::set_language)
4865 (general_symbol_info::compute_and_set_names): Update.
4866 * minsyms.c (minimal_symbol_reader::install): Update.
4867 * dwarf2/read.c (new_symbol): Update.
4868
1acda803
TT
48692020-04-24 Tom Tromey <tromey@adacore.com>
4870
4871 PR python/23662:
4872 * python/py-type.c (convert_field): Handle
4873 FIELD_LOC_KIND_DWARF_BLOCK.
4874 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4875 (typy_get_dynamic): Nw function.
4876 (type_object_getset): Add "dynamic".
4877 * NEWS: Add entry.
4878
d656f129
TT
48792020-04-24 Tom Tromey <tromey@adacore.com>
4880
4881 * ada-typeprint.c (print_choices, print_variant_part)
4882 (print_record_field_types_dynamic): New functions.
4883 (print_record_field_types): Use print_record_field_types_dynamic.
4884
7d79de9a
TT
48852020-04-24 Tom Tromey <tromey@adacore.com>
4886
4887 * dwarf2/read.c (handle_data_member_location): New overload.
4888 (dwarf2_add_field): Use it.
4889 (decode_locdesc): Add "computed" parameter. Update comment.
4890 * gdbtypes.c (is_dynamic_type_internal): Also look for
4891 FIELD_LOC_KIND_DWARF_BLOCK.
4892 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4893 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4894 virtual base classes.
4895 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4896 FIELD_LOC_KIND_DWARF_BLOCK.
4897
f8e89861
TT
48982020-04-24 Tom Tromey <tromey@adacore.com>
4899
4900 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4901 * gdbtypes.c (is_dynamic_type_internal): Check
4902 TYPE_HAS_DYNAMIC_LENGTH.
4903 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4904 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4905 New macros.
4906 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4907 constant.
4908
9c6a1327
TT
49092020-04-24 Tom Tromey <tromey@adacore.com>
4910
4911 * dwarf2/read.c (struct variant_field): Rewrite.
4912 (struct variant_part_builder): New.
4913 (struct nextfield): Remove "variant" field. Add "offset".
4914 (struct field_info): Add "current_variant_part" and
4915 "variant_parts".
4916 (alloc_discriminant_info): Remove.
4917 (alloc_rust_variant): New function.
4918 (quirk_rust_enum): Update.
4919 (dwarf2_add_field): Set "offset" member. Don't handle
4920 DW_TAG_variant_part.
4921 (offset_map_type): New typedef.
4922 (convert_variant_range, create_one_variant)
4923 (create_one_variant_part, create_variant_parts)
4924 (add_variant_property): New functions.
4925 (dwarf2_attach_fields_to_type): Call add_variant_property.
4926 (read_structure_type): Don't handle DW_TAG_variant_part.
4927 (handle_variant_part, handle_variant): New functions.
4928 (handle_struct_member_die): Use them.
4929 (process_structure_scope): Don't handle variant parts.
4930 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4931 (struct discriminant_info): Remove.
4932 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4933 (struct main_type) <flag_discriminated_union>: Remove.
4934 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4935 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4936 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4937 Update.
4938 * valops.c (value_union_variant): Remove.
4939 * value.h (value_union_variant): Don't declare.
4940
b249d2c2
TT
49412020-04-24 Tom Tromey <tromey@adacore.com>
4942
4943 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4944 (ada_value_primitive_packed_val): Update.
4945 * ada-valprint.c (ada_value_print_1): Update.
4946 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4947 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4948 just an address. Use evaluate_for_locexpr_baton.
4949 (dwarf2_evaluate_property): Update.
4950 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4951 array_view.
4952 * findvar.c (default_read_var_value): Update.
4953 * gdbtypes.c (compute_variant_fields_inner)
4954 (resolve_dynamic_type_internal): Update.
4955 (resolve_dynamic_type): Change type of valaddr parameter.
4956 * gdbtypes.h (resolve_dynamic_type): Update.
4957 * valarith.c (value_subscripted_rvalue): Update.
4958 * value.c (value_from_contents_and_address): Update.
4959
61122aa9
TT
49602020-04-24 Tom Tromey <tromey@adacore.com>
4961
4962 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4963 "push_initial_value" parameter.
4964 (dwarf2_evaluate_property): Likewise.
4965 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4966
ef83a141
TT
49672020-04-24 Tom Tromey <tromey@adacore.com>
4968
4969 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4970 (variant::matches, compute_variant_fields_recurse)
4971 (compute_variant_fields_inner, compute_variant_fields): New
4972 functions.
4973 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4974 Use resolved_type after type is made.
4975 (operator==): Add new cases.
4976 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4977 (struct discriminant_range, struct variant, struct variant_part):
4978 New.
4979 (union dynamic_prop_data) <variant_parts, original_type>: New
4980 members.
4981 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4982 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4983 constants.
4984 * value.c (unpack_bits_as_long): Now public.
4985 * value.h (unpack_bits_as_long): Declare.
4986
675127ec
TT
49872020-04-24 Tom Tromey <tromey@adacore.com>
4988
4989 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4990 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4991
9852ceef
HD
49922020-04-24 Hannes Domani <ssbssa@yahoo.de>
4993
4994 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4995
7632c6ce
KR
49962020-04-24 Kamil Rytarowski <n54@gmx.com>
4997
4998 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4999 (remove_fork_catchpoint, post_startup_inferior)
5000 (post_attach): Move...
5001 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5002 (remove_fork_catchpoint, post_startup_inferior)
5003 (post_attach): ...here.
5004 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5005 (remove_fork_catchpoint, post_startup_inferior)
5006 (post_attach): Move...
5007 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5008 (remove_fork_catchpoint, post_startup_inferior)
5009 (post_attach): ...here.
5010
7be2bb4f
TT
50112020-04-24 Tom Tromey <tromey@adacore.com>
5012
5013 * nat/windows-nat.h (struct windows_thread_info)
5014 <pc_adjusted>: New member.
5015 * windows-nat.c (windows_fetch_one_register): Check
5016 pc_adjusted.
5017 (windows_nat_target::get_windows_debug_event)
5018 (windows_nat_target::wait): Set pc_adjusted.
5019
f80cb3b4
TV
50202020-04-24 Tom de Vries <tdevries@suse.de>
5021
5022 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5023 Run gdb-add-index inside temp dir.
5024
29514b87
TT
50252020-04-23 Tom Tromey <tromey@adacore.com>
5026
5027 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5028 in loop.
5029
5939967b
LM
50302020-04-23 Luis Machado <luis.machado@linaro.org>
5031
5032 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5033 get_frame_register instead of gdbarch_unwind_pc.
5034
70bc38f5
TV
50352020-04-23 Tom de Vries <tdevries@suse.de>
5036
5037 * symtab.c (lookup_global_symbol): Prefer def over decl.
5038
de82891c
TV
50392020-04-23 Tom de Vries <tdevries@suse.de>
5040
5041 PR symtab/25807
5042 * block.c (best_symbol, better_symbol): Promote to external.
5043 * block.h (best_symbol, better_symbol): Declare.
5044 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5045 decl.
5046
ecc6c606
TT
50472020-04-23 Tom Tromey <tromey@adacore.com>
5048
5049 PR ada/25837:
5050 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5051 "const char *", not a "const std::string &".
5052 <name_and_matcher::operator==>: Update.
5053 * unittests/lookup_name_info-selftests.c: Change type of
5054 "result".
5055
740480b8
TT
50562020-04-23 Tom Tromey <tom@tromey.com>
5057
5058 * inferior.h (iterate_over_inferiors): Don't declare.
5059 * inferior.c (iterate_over_inferiors): Remove.
5060 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5061 Remove.
5062 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5063 use iterate_over_inferiors.
5064 (darwin_resume_inferior_it)
5065 (struct resume_inferior_threads_param)
5066 (darwin_resume_inferior_threads_it): Remove.
5067 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5068
ae3ab1f0
TV
50692020-04-23 Tom de Vries <tdevries@suse.de>
5070
5071 * blockframe.c (find_pc_partial_function): Use
5072 find_pc_sect_compunit_symtab rather than
5073 objfile->sf->qf->find_pc_sect_compunit_symtab.
5074
317d2668
TV
50752020-04-22 Tom de Vries <tdevries@suse.de>
5076
5077 PR symtab/25764
5078 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5079 in psymtabs.
5080
eea9e357
TV
50812020-04-22 Tom de Vries <tdevries@suse.de>
5082
5083 PR symtab/25801
5084 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5085 symtabs.
5086
3d5afab3
TV
50872020-04-22 Tom de Vries <tdevries@suse.de>
5088
5089 PR symtab/25700
5090 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5091 CU if already created.
5092
d43b7a2d
TBA
50932020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5094
5095 * infrun.c (displaced_step_fixup): Switch to the event_thread
5096 before calling displaced_step_restore, not after.
5097
d89edf9b
MM
50982020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5099
5100 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5101 its inferior is not recorded by us.
5102 (record_btrace_target_open): Replace call to
5103 all_non_exited_threads () with call to current_inferior
5104 ()->non_exited_threads ().
5105 (record_btrace_target::stop_recording): Likewise.
5106 (record_btrace_target::close): Likewise.
5107 (record_btrace_target::wait): Likewise.
5108 (record_btrace_target::record_stop_replaying): Likewise.
5109
5897fd49
MM
51102020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5111
5112 * btrace.c (btrace_enable): Throw an error on double enables and
5113 when enabling recording fails.
5114 (btrace_disable): Throw an error if the thread is not recorded.
5115
1a476b6d
MM
51162020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5117
5118 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5119 request if we do not have a thread_info.
5120
4778a5f8
TV
51212020-04-21 Tom de Vries <tdevries@suse.de>
5122
5123 PR gdb/25471
5124 * thread.c
5125 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5126 exception in get_frame_id.
5127
0fa7617d
TT
51282020-04-20 Tom Tromey <tromey@adacore.com>
5129
5130 * python/python.c (struct gdbpy_event): Mark move constructor as
5131 noexcept.
5132 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5133 constructor as noexcept.
5134 * completer.h (struct completion_result): Mark move constructor as
5135 noexcept.
5136 * completer.c (completion_result::completion_result): Use
5137 initialization style. Don't call reset_match_list.
5138
ad23bda0
MS
51392020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5140
5141 * MAINTAINERS (Write After Approval): Add myself.
5142
45e1f031
TT
51432020-04-18 Tom Tromey <tom@tromey.com>
5144
5145 * windows-tdep.c (init_w32_command_list)
5146 (w32_prefix_command_valid): Restore.
5147 (_initialize_windows_tdep): Call init_w32_command_list.
5148
08feed99
TT
51492020-04-18 Tom Tromey <tom@tromey.com>
5150
5151 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5152 * value.c (value_fn_field): Update.
5153 * valops.c (find_function_in_inferior)
5154 (value_allocate_space_in_inferior): Update.
5155 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5156 Update.
5157 * tui/tui-source.c (tui_source_window::set_contents): Update.
5158 * symtab.c (lookup_global_or_static_symbol)
5159 (find_function_start_sal_1, skip_prologue_sal)
5160 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5161 * symmisc.c (dump_msymbols, dump_symtab_1)
5162 (maintenance_print_one_line_table): Update.
5163 * symfile.c (init_entry_point_info, section_is_mapped)
5164 (list_overlays_command, simple_read_overlay_table)
5165 (simple_overlay_update_1): Update.
5166 * stap-probe.c (handle_stap_probe): Update.
5167 * stabsread.c (dbx_init_float_type, define_symbol)
5168 (read_one_struct_field, read_enum_type, read_range_type): Update.
5169 * source.c (info_line_command): Update.
5170 * python/python.c (gdbpy_source_objfile_script)
5171 (gdbpy_execute_objfile_script): Update.
5172 * python/py-type.c (save_objfile_types): Update.
5173 * python/py-objfile.c (py_free_objfile): Update.
5174 * python/py-inferior.c (python_new_objfile): Update.
5175 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5176 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5177 (maintenance_check_psymtabs): Update.
5178 * printcmd.c (info_address_command): Update.
5179 * objfiles.h (struct objfile) <arch>: New method, from
5180 get_objfile_arch.
5181 (get_objfile_arch): Don't declare.
5182 * objfiles.c (get_objfile_arch): Remove.
5183 (filter_overlapping_sections): Update.
5184 * minsyms.c (msymbol_is_function): Update.
5185 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5186 (output_nondebug_symbol): Update.
5187 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5188 (mdebug_expand_psymtab): Update.
5189 * machoread.c (macho_add_oso_symfile): Update.
5190 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5191 Update.
5192 * linux-fork.c (checkpoint_command): Update.
5193 * linespec.c (convert_linespec_to_sals): Update.
5194 * jit.c (finalize_symtab): Update.
5195 * infrun.c (insert_exception_resume_from_probe): Update.
5196 * ia64-tdep.c (ia64_find_unwind_table): Update.
5197 * hppa-tdep.c (internalize_unwinds): Update.
5198 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5199 Update.
5200 * gcore.c (call_target_sbrk): Update.
5201 * elfread.c (record_minimal_symbol, elf_symtab_read)
5202 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5203 (elf_gnu_ifunc_resolve_by_got): Update.
5204 * dwarf2/read.c (create_addrmap_from_index)
5205 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5206 (read_debug_names_from_section)
5207 (process_psymtab_comp_unit_reader, add_partial_symbol)
5208 (add_partial_subprogram, process_full_comp_unit)
5209 (read_file_scope, read_func_scope, read_lexical_block_scope)
5210 (read_call_site_scope, dwarf2_ranges_read)
5211 (dwarf2_record_block_ranges, dwarf2_add_field)
5212 (mark_common_block_symbol_computed, read_tag_pointer_type)
5213 (read_tag_string_type, dwarf2_init_float_type)
5214 (dwarf2_init_complex_target_type, read_base_type)
5215 (partial_die_info::read, partial_die_info::read)
5216 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5217 (dwarf2_fetch_die_loc_sect_off): Update.
5218 * dwarf2/loc.c (dwarf2_find_location_expression)
5219 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5220 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5221 (dwarf2_loc_desc_get_symbol_read_needs)
5222 (locexpr_describe_location_piece, locexpr_describe_location_1)
5223 (loclist_describe_location): Update.
5224 * dwarf2/index-write.c (write_debug_names): Update.
5225 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5226 * dtrace-probe.c (dtrace_process_dof): Update.
5227 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5228 (process_one_symbol): Update.
5229 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5230 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5231 (coff_read_enum_type): Update.
5232 * cli/cli-cmds.c (edit_command, list_command): Update.
5233 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5234 * breakpoint.c (create_overlay_event_breakpoint)
5235 (create_longjmp_master_breakpoint)
5236 (create_std_terminate_master_breakpoint)
5237 (create_exception_master_breakpoint, get_sal_arch): Update.
5238 * block.c (block_gdbarch): Update.
5239 * annotate.c (annotate_source_line): Update.
5240
0743fc83
TT
52412020-04-17 Tom Tromey <tromey@adacore.com>
5242
5243 * auto-load.c (show_auto_load_cmd): Remove.
5244 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5245 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5246 (maintenance_print_arc_command): Remove.
5247 * tui/tui-win.c (tui_command): Remove.
5248 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5249 * tui/tui-layout.c (tui_layout_command): Remove.
5250 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5251 * python/python.c (user_set_python, user_show_python): Remove.
5252 (_initialize_python): Use add_basic_prefix_cmd,
5253 add_show_prefix_cmd.
5254 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5255 (install_gdb_commands): Use add_basic_prefix_cmd,
5256 add_show_prefix_cmd.
5257 (info_guile_command): Remove.
5258 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5259 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5260 add_show_prefix_cmd.
5261 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5262 Remove do_set and do_show parameters.
5263 * cli/cli-style.c (set_style, show_style): Remove.
5264 (_initialize_cli_style): Use add_basic_prefix_cmd,
5265 add_show_prefix_cmd.
5266 (cli_style_option::add_setshow_commands): Remove do_set and
5267 do_show parameters.
5268 (cli_style_option::add_setshow_commands): Use
5269 add_basic_prefix_cmd, add_show_prefix_cmd.
5270 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5271 (set_style_name): Remove.
5272 * cli/cli-dump.c (dump_command, append_command): Remove.
5273 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5274 (tekhex_dump_command, binary_dump_command)
5275 (binary_append_command): Remove.
5276 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5277 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5278 (init_w32_command_list): Remove; move into ...
5279 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5280 * valprint.c (set_print, show_print, set_print_raw)
5281 (show_print_raw): Remove.
5282 (_initialize_valprint): Use add_basic_prefix_cmd,
5283 add_show_prefix_cmd.
5284 * typeprint.c (set_print_type, show_print_type): Remove.
5285 (_initialize_typeprint): Use add_basic_prefix_cmd,
5286 add_show_prefix_cmd.
5287 * record.c (set_record_command, show_record_command): Remove.
5288 (_initialize_record): Use add_basic_prefix_cmd,
5289 add_show_prefix_cmd.
5290 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5291 add_show_prefix_cmd.
5292 (info_command, show_command, set_debug, show_debug): Remove.
5293 * top.h (set_history, show_history): Don't declare.
5294 * top.c (set_history, show_history): Remove.
5295 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5296 (unset_tdesc_cmd): Remove.
5297 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5298 add_show_prefix_cmd.
5299 * symtab.c (info_module_command): Remove.
5300 (_initialize_symtab): Use add_basic_prefix_cmd.
5301 * symfile.c (overlay_command): Remove.
5302 (_initialize_symfile): Use add_basic_prefix_cmd.
5303 * sparc64-tdep.c (info_adi_command): Remove.
5304 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5305 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5306 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5307 add_show_prefix_cmd.
5308 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5309 (_initialize_serial): Use add_basic_prefix_cmd,
5310 add_show_prefix_cmd.
5311 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5312 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5313 add_show_prefix_cmd.
5314 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5315 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5316 add_show_prefix_cmd.
5317 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5318 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5319 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5320 add_show_prefix_cmd.
5321 * remote.c (remote_command, set_remote_cmd): Remove.
5322 (_initialize_remote): Use add_basic_prefix_cmd.
5323 * record-full.c (set_record_full_command)
5324 (show_record_full_command): Remove.
5325 (_initialize_record_full): Use add_basic_prefix_cmd,
5326 add_show_prefix_cmd.
5327 * record-btrace.c (cmd_set_record_btrace)
5328 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5329 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5330 (cmd_show_record_btrace_pt): Remove.
5331 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5332 add_show_prefix_cmd.
5333 * ravenscar-thread.c (set_ravenscar_command)
5334 (show_ravenscar_command): Remove.
5335 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5336 add_show_prefix_cmd.
5337 * mips-tdep.c (show_mips_command, set_mips_command)
5338 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5339 add_show_prefix_cmd.
5340 * maint.c (maintenance_command, maintenance_info_command)
5341 (maintenance_check_command, maintenance_print_command)
5342 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5343 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5344 add_show_prefix_cmd.
5345 (show_per_command_cmd): Remove.
5346 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5347 Remove.
5348 (maintenance_show_test_settings_cmd): Remove.
5349 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5350 add_show_prefix_cmd.
5351 * maint-test-options.c (maintenance_test_options_command):
5352 Remove.
5353 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5354 * macrocmd.c (macro_command): Remove
5355 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5356 * language.c (set_check, show_check): Remove.
5357 (_initialize_language): Use add_basic_prefix_cmd,
5358 add_show_prefix_cmd.
5359 * infcmd.c (unset_command): Remove.
5360 (_initialize_infcmd): Use add_basic_prefix_cmd.
5361 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5362 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5363 add_show_prefix_cmd.
5364 * go32-nat.c (go32_info_dos_command): Remove.
5365 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5366 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5367 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5368 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5369 (_initialize_frame): Use add_basic_prefix_cmd,
5370 add_show_prefix_cmd.
5371 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5372 (_initialize_dcache): Use add_basic_prefix_cmd,
5373 add_show_prefix_cmd.
5374 * cp-support.c (maint_cplus_command): Remove.
5375 (_initialize_cp_support): Use add_basic_prefix_cmd.
5376 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5377 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5378 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5379 add_basic_prefix_cmd, add_show_prefix_cmd.
5380 * breakpoint.c (save_command): Remove.
5381 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5382 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5383 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5384 add_show_prefix_cmd.
5385 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5386 (set_ada_command, show_ada_command): Remove.
5387 (_initialize_ada_language): Use add_basic_prefix_cmd,
5388 add_show_prefix_cmd.
5389 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5390
3557f442
KR
53912020-04-16 Kamil Rytarowski <n54@gmx.com>
5392
5393 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5394 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5395
16197208
SM
53962020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5397
5398 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5399 warning messages.
5400
00ac85d3
SM
54012020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5402
5403 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5404 import table is not at beginning of .idata section.
5405
381ce63f
PA
54062020-04-16 Pedro Alves <palves@redhat.com>
5407
5408 * inferior.c (delete_inferior): Use delete operator directly
5409 instead of delete_program_space.
5410 * progspace.c (add_program_space): New, factored out from
5411 program_space::program_space.
5412 (remove_program_space): New, factored out from
5413 delete_program_space.
5414 (program_space::program_space): Remove intro comment. Rewrite.
5415 (program_space::~program_space): Remove intro comment. Call
5416 remove_program_space.
5417 (delete_program_space): Delete.
5418 * progspace.h (program_space::program_space): Make explicit. Move
5419 intro comment here, adjusted.
5420 (program_space::~program_space): Move intro comment here,
5421 adjusted.
5422 (delete_program_space): Remove.
5423
a010605f
TT
54242020-04-16 Tom Tromey <tromey@adacore.com>
5425
5426 * windows-nat.c (windows_nat::handle_access_violation): New
5427 function.
5428 * nat/windows-nat.h (handle_access_violation): Declare.
5429 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5430 windows-nat.c. Call handle_access_violation.
5431
efba5c23
TV
54322020-04-16 Tom de Vries <tdevries@suse.de>
5433
5434 PR symtab/25791
5435 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5436 CUs without psymtab.
5437
97ed802d
KB
54382020-04-16 Kevin Buettner <kevinb@redhat.com>
5439
5440 * python/python.c (do_start_initialization): Don't call
5441 PyEval_InitThreads for Python 3.9 and beyond.
5442
c7d64809
KR
54432020-04-15 Kamil Rytarowski <n54@gmx.com>
5444
5445 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5446 thread functions.
5447 (obsd_nat_target::wait): Likewise.
5448
ce127a96
TT
54492020-04-15 Tom Tromey <tromey@adacore.com>
5450
5451 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5452 (DEBUG_EXCEPT): Use debug_printf.
5453
99f1bc6a
AB
54542020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5455
5456 * completer.c (class completion_tracker::completion_hash_entry)
5457 <hash_name>: New member function.
5458 (completion_tracker::discard_completions): New callback to hash a
5459 completion_hash_entry, pass this to htab_create_alloc.
5460
a0e9b532
JT
54612016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5462
5463 * windows-nat.c (windows_make_so): Warn rather than stopping with
5464 an error if realpath() fails.
5465
06ca5dd4
KR
54662020-04-14 Kamil Rytarowski <n54@gmx.com>
5467
5468 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5469 (nbsd_nat_target::info_proc): Add do_status.
5470
194d088f
TV
54712020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5472 Tom de Vries <tdevries@suse.de>
5473
5474 PR symtab/25718
5475 * psympriv.h (struct partial_symtab::read_symtab)
5476 (struct partial_symtab::expand_psymtab)
5477 (struct partial_symtab::read_dependencies): Update comments.
5478 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5479 read_symtab for includer.
5480 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5481 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5482 (struct dwarf2_include_psymtab::m_readin): Remove.
5483 (struct dwarf2_include_psymtab::includer): New member function.
5484 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5485
c1a66c06
TV
54862020-04-14 Tom de Vries <tdevries@suse.de>
5487
5488 PR symtab/25720
5489 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5490 with NULL symbol_matcher and lookup_name.
5491 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5492 and lookup_name.
5493 * dwarf2/read.c (dw2_expand_symtabs_matching)
5494 (dw2_debug_names_expand_symtabs_matching): Same.
5495 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5496 Make lookup_name a pointer. Update comment.
5497 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5498 lookup_name being a pointer.
5499 * symfile.c (expand_symtabs_matching): Same.
5500 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5501 * linespec.c (iterate_over_all_matching_symtabs): Same.
5502
400b5eca
TT
55032020-04-13 Tom Tromey <tom@tromey.com>
5504
5505 * run-on-main-thread.c: Update include.
5506 * unittests/main-thread-selftests.c: Update include.
5507 * tui/tui-win.c: Update include.
5508 * tui/tui-io.c: Update include.
5509 * tui/tui-interp.c: Update include.
5510 * tui/tui-hooks.c: Update include.
5511 * top.h: Update include.
5512 * top.c: Update include.
5513 * ser-base.c: Update include.
5514 * remote.c: Update include.
5515 * remote-notif.c: Update include.
5516 * remote-fileio.c: Update include.
5517 * record-full.c: Update include.
5518 * record-btrace.c: Update include.
5519 * python/python.c: Update include.
5520 * posix-hdep.c: Update include.
5521 * mingw-hdep.c: Update include.
5522 * mi/mi-main.c: Update include.
5523 * mi/mi-interp.c: Update include.
5524 * main.c: Update include.
5525 * linux-nat.c: Update include.
5526 * interps.c: Update include.
5527 * infrun.c: Update include.
5528 * inf-loop.c: Update include.
5529 * event-top.c: Update include.
5530 * event-loop.c: Move to ../gdbsupport/.
5531 * event-loop.h: Move to ../gdbsupport/.
5532 * async-event.h: Update include.
5533 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5534
93b54c8e
TT
55352020-04-13 Tom Tromey <tom@tromey.com>
5536
5537 * tui/tui-win.c: Include async-event.h.
5538 * remote.c: Include async-event.h.
5539 * remote-notif.c: Include async-event.h.
5540 * record-full.c: Include async-event.h.
5541 * record-btrace.c: Include async-event.h.
5542 * infrun.c: Include async-event.h.
5543 * event-top.c: Include async-event.h.
5544 * event-loop.h: Move some declarations to async-event.h.
5545 * event-loop.c: Don't include ser-event.h or top.h. Move some
5546 code to async-event.c.
5547 * async-event.h: New file.
5548 * async-event.c: New file.
5549 * Makefile.in (COMMON_SFILES): Add async-event.c.
5550 (HFILES_NO_SRCDIR): Add async-event.h.
5551
c1cd3163
TT
55522020-04-13 Tom Tromey <tom@tromey.com>
5553
5554 * utils.c (flush_streams): New function.
5555 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5556
29f2bf4f
TT
55572020-04-13 Tom Tromey <tom@tromey.com>
5558
5559 * event-loop.c (handle_file_event): Use warning, not
5560 printf_unfiltered.
5561
98029d02
TT
55622020-04-13 Tom Tromey <tom@tromey.com>
5563
5564 * event-loop.c: Include <chrono>.
5565
06cc9596
TT
55662020-04-13 Tom Tromey <tom@tromey.com>
5567
5568 * gdb_select.h: Move to ../gdbsupport/.
5569 * event-loop.c: Update include path.
5570 * top.c: Update include path.
5571 * ser-base.c: Update include path.
5572 * ui-file.c: Update include path.
5573 * ser-tcp.c: Update include path.
5574 * guile/scm-ports.c: Update include path.
5575 * posix-hdep.c: Update include path.
5576 * ser-unix.c: Update include path.
5577 * gdb_usleep.c: Update include path.
5578 * mingw-hdep.c: Update include path.
5579 * inflow.c: Update include path.
5580 * infrun.c: Update include path.
5581 * event-top.c: Update include path.
5582
8ae8e197
TT
55832020-04-13 Tom Tromey <tom@tromey.com>
5584
5585 * configure: Rebuild.
5586 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5587
58cf28e8
TT
55882020-04-13 Tom Tromey <tom@tromey.com>
5589
5590 * event-loop.h (start_event_loop): Don't declare.
5591 * event-loop.c (start_event_loop): Move...
5592 * main.c (start_event_loop): ...here. Now static.
5593
b7f999ae
SDJ
55942020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5595
5596 * MAINTAINERS: Update my email address.
5597
1085dfd4
KR
55982020-04-12 Kamil Rytarowski <n54@gmx.com>
5599
5600 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5601 IP_ALL.
5602
49d1d1f5
KR
56032020-04-12 Kamil Rytarowski <n54@gmx.com>
5604
5605 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5606 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5607
b4848d2a
KR
56082020-04-12 Kamil Rytarowski <n54@gmx.com>
5609
5610 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5611 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5612
51c133d5
KR
56132020-04-12 Kamil Rytarowski <n54@gmx.com>
5614
5615 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5616
54b8cbd0
KR
56172020-04-11 Kamil Rytarowski <n54@gmx.com>
5618
5619 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5620 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5621 (nbsd_nat_target::info_proc): New functions.
5622 * nbsd-nat.c (kinfo_get_vmmap): New function.
5623 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5624 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5625 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5626 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5627 functions.
5628 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5629 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5630 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5631 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5632 (KINFO_VME_FLAG_GROWS_DOWN): New.
5633
cf83625d
AS
56342020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5635
5636 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5637 bit shift.
5638
0c4311ab
TT
56392020-04-10 Tom Tromey <tromey@adacore.com>
5640
5641 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5642
3e65b3e9
TT
56432020-04-10 Tom Tromey <tromey@adacore.com>
5644
5645 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5646 separate debug files.
5647
13302e95
HD
56482020-04-10 Hannes Domani <ssbssa@yahoo.de>
5649
5650 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5651 Move to...
5652 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5653 ... here.
5654 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5655 Check for STATUS_WX86_BREAKPOINT.
5656 (windows_nat_target::wait): Same.
5657
bdfc1e8a
TV
56582020-04-10 Tom de Vries <tdevries@suse.de>
5659
5660 PR cli/25808
5661 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5662
f4460aec
SM
56632020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5664
5665 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5666 (Write After Approval): Remove Tom de Vries.
5667
a25198bb
BE
56682020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5669
5670 revert partially:
5671 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5672
aac66a4c
SM
5673 * buildsym.c (record_line): Fix undefined behavior and preserve
5674 lines at eof.
a25198bb 5675
206c98a6
KR
56762020-04-09 Kamil Rytarowski <n54@gmx.com>
5677
5678 * auxv.h (svr4_auxv_parse): New.
5679 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5680 and generic_auxv_parse.
5681 (svr4_auxv_parse): Add.
5682 * obsd-tdep.c: Include "auxv.h".
5683 (obsd_auxv_parse): Remove.
5684 (obsd_init_abi): Remove comment.
5685 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5686 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5687 * nbsd-tdep.c: Include "auxv.h".
5688 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5689
71fbdbaf
TT
56902020-04-08 Tom Tromey <tromey@adacore.com>
5691
5692 * nat/windows-nat.h (last_wait_event): Don't declare.
5693 (wait_for_debug_event): Update comment.
5694 * nat/windows-nat.c (last_wait_event): Now static.
5695
2c1d95e8
TT
56962020-04-08 Tom Tromey <tromey@adacore.com>
5697
5698 * windows-nat.c (wait_for_debug_event): Move to
5699 nat/windows-nat.c.
5700 * nat/windows-nat.h (wait_for_debug_event): Declare.
5701 * nat/windows-nat.c (wait_for_debug_event): Move from
5702 windows-nat.c. No longer static.
5703
d2977bc4
TT
57042020-04-08 Tom Tromey <tromey@adacore.com>
5705
5706 * windows-nat.c (get_windows_debug_event): Use
5707 fetch_pending_stop.
5708 * nat/windows-nat.h (fetch_pending_stop): Declare.
5709 * nat/windows-nat.c (fetch_pending_stop): New function.
5710
e758e19c
TT
57112020-04-08 Tom Tromey <tromey@adacore.com>
5712
5713 * windows-nat.c (windows_continue): Use matching_pending_stop and
5714 continue_last_debug_event.
5715 * nat/windows-nat.h (matching_pending_stop)
5716 (continue_last_debug_event): Declare.
5717 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5718 (matching_pending_stop, continue_last_debug_event): New
5719 functions.
5720
8d30e395
TT
57212020-04-08 Tom Tromey <tromey@adacore.com>
5722
5723 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5724 (handle_exception_result): Move to nat/windows-nat.h.
5725 (DEBUG_EXCEPTION_SIMPLE): Remove.
5726 (windows_nat::handle_ms_vc_exception): New function.
5727 (handle_exception): Move to nat/windows-nat.c.
5728 (get_windows_debug_event): Update.
5729 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5730 nat/windows-nat.c.
5731 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5732 (handle_exception_result): Move from windows-nat.c.
5733 (handle_exception): Declare.
5734 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5735 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5736 windows-nat.c.
5737
29de418d
TT
57382020-04-08 Tom Tromey <tromey@adacore.com>
5739
5740 * windows-nat.c (exception_count, event_count): Remove.
5741 (handle_exception, get_windows_debug_event)
5742 (do_initial_windows_stuff): Update.
5743
a816ba18
TT
57442020-04-08 Tom Tromey <tromey@adacore.com>
5745
5746 * windows-nat.c (windows_nat::handle_load_dll)
5747 (windows_nat::handle_unload_dll): Rename. No longer static.
5748 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5749 Declare.
5750
a00caa12
TT
57512020-04-08 Tom Tromey <tromey@adacore.com>
5752
5753 * complaints.h (stop_whining): Declare at top-level.
5754 (complaint): Don't declare stop_whining.
5755
d41b524f
TT
57562020-04-08 Tom Tromey <tromey@adacore.com>
5757
5758 * windows-nat.c (windows_nat::handle_output_debug_string):
5759 Rename. No longer static.
5760 * nat/windows-nat.h (handle_output_debug_string): Declare.
5761
3c76026d
TT
57622020-04-08 Tom Tromey <tromey@adacore.com>
5763
5764 * windows-nat.c (current_process_handle, current_process_id)
5765 (main_thread_id, last_sig, current_event, last_wait_event)
5766 (current_windows_thread, desired_stop_thread_id, pending_stops)
5767 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5768 (display_selectors, fake_create_process)
5769 (get_windows_debug_event): Update.
5770 * nat/windows-nat.h (current_process_handle, current_process_id)
5771 (main_thread_id, last_sig, current_event, last_wait_event)
5772 (current_windows_thread, desired_stop_thread_id, pending_stops)
5773 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5774 * nat/windows-nat.c (current_process_handle, current_process_id)
5775 (main_thread_id, last_sig, current_event, last_wait_event)
5776 (current_windows_thread, desired_stop_thread_id, pending_stops)
5777 (siginfo_er): New globals. Move from windows-nat.c.
5778
9d8679cc
TT
57792020-04-08 Tom Tromey <tromey@adacore.com>
5780
5781 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5782 (handle_load_dll): Update.
5783 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5784
28688adf
TT
57852020-04-08 Tom Tromey <tromey@adacore.com>
5786
5787 * windows-nat.c (enum thread_disposition_type): Move to
5788 nat/windows-nat.h.
5789 (windows_nat::thread_rec): Rename from thread_rec. No longer
5790 static.
5791 (windows_add_thread, windows_nat_target::fetch_registers)
5792 (windows_nat_target::store_registers, handle_exception)
5793 (windows_nat_target::resume, get_windows_debug_event)
5794 (windows_nat_target::get_tib_address)
5795 (windows_nat_target::thread_name)
5796 (windows_nat_target::thread_alive): Update.
5797 * nat/windows-nat.h (enum thread_disposition_type): Move from
5798 windows-nat.c.
5799 (thread_rec): Declare.
5800
4834dad0
TT
58012020-04-08 Tom Tromey <tromey@adacore.com>
5802
5803 * windows-nat.c: Add "using namespace".
5804 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5805 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5806
65bafd5b
TT
58072020-04-08 Tom Tromey <tromey@adacore.com>
5808
5809 * nat/windows-nat.h (struct windows_thread_info): Declare
5810 destructor.
5811 * nat/windows-nat.c (~windows_thread_info): New.
5812
0a4afda3
TT
58132020-04-08 Tom Tromey <tromey@adacore.com>
5814
5815 PR gdb/22992
5816 * windows-nat.c (current_event): Update comment.
5817 (last_wait_event, desired_stop_thread_id): New globals.
5818 (struct pending_stop): New.
5819 (pending_stops): New global.
5820 (windows_nat_target) <stopped_by_sw_breakpoint>
5821 <supports_stopped_by_sw_breakpoint>: New methods.
5822 (windows_fetch_one_register): Add assertions. Adjust PC.
5823 (windows_continue): Handle pending stops. Suspend other threads
5824 when stepping. Use last_wait_event
5825 (wait_for_debug_event): New function.
5826 (get_windows_debug_event): Use wait_for_debug_event. Handle
5827 pending stops. Queue spurious stops.
5828 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5829 (windows_nat_target::kill): Use wait_for_debug_event.
5830 * nat/windows-nat.h (struct windows_thread_info)
5831 <stopped_at_software_breakpoint>: New field.
5832 * nat/windows-nat.c (windows_thread_info::resume): Clear
5833 stopped_at_software_breakpoint.
5834
8e61ebec
TT
58352020-04-08 Tom Tromey <tromey@adacore.com>
5836
5837 * windows-nat.c (enum thread_disposition_type): New.
5838 (thread_rec): Replace "get_context" parameter with "disposition";
5839 change type.
5840 (windows_add_thread, windows_nat_target::fetch_registers)
5841 (windows_nat_target::store_registers, handle_exception)
5842 (windows_nat_target::resume, get_windows_debug_event)
5843 (windows_nat_target::get_tib_address)
5844 (windows_nat_target::thread_name)
5845 (windows_nat_target::thread_alive): Update.
5846
98a03287
TT
58472020-04-08 Tom Tromey <tromey@adacore.com>
5848
5849 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5850 (windows_continue): Use windows_continue::resume.
5851 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5852 resume>: Declare new methods.
5853 * nat/windows-nat.c: New file.
5854 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5855
7c7411bc
TT
58562020-04-08 Tom Tromey <tromey@adacore.com>
5857
5858 * windows-nat.c (windows_add_thread, windows_delete_thread)
5859 (windows_nat_target::fetch_registers)
5860 (windows_nat_target::store_registers, fake_create_process)
5861 (windows_nat_target::resume, windows_nat_target::resume)
5862 (get_windows_debug_event, windows_nat_target::wait)
5863 (windows_nat_target::pid_to_str)
5864 (windows_nat_target::get_tib_address)
5865 (windows_nat_target::get_ada_task_ptid)
5866 (windows_nat_target::thread_name)
5867 (windows_nat_target::thread_alive): Use lwp, not tid.
5868
2950fdf7
TT
58692020-04-08 Tom Tromey <tromey@adacore.com>
5870
5871 * windows-nat.c (handle_exception)
5872 (windows_nat_target::thread_name): Update.
5873 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5874 <name>: Now unique_xmalloc_ptr.
5875
62fe396b
TT
58762020-04-08 Tom Tromey <tromey@adacore.com>
5877
5878 * windows-nat.c (thread_rec)
5879 (windows_nat_target::fetch_registers): Update.
5880 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5881 Update comment.
5882 <debug_registers_changed, reload_context>: Now bool.
5883
e9534bd2
TT
58842020-04-08 Tom Tromey <tromey@adacore.com>
5885
5886 * windows-nat.c (windows_add_thread): Use new.
5887 (windows_init_thread_list, windows_delete_thread): Use delete.
5888 (get_windows_debug_event): Update.
5889 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5890 destructor, and initializers.
5891
ae1f8880
TT
58922020-04-08 Tom Tromey <tromey@adacore.com>
5893
5894 * windows-nat.c (struct windows_thread_info): Remove.
5895 * nat/windows-nat.h: New file.
5896
55a1e039
TT
58972020-04-08 Tom Tromey <tromey@adacore.com>
5898
5899 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5900 (thread_rec, windows_add_thread, windows_delete_thread)
5901 (windows_continue): Update.
5902
93366324
TT
59032020-04-08 Tom Tromey <tromey@adacore.com>
5904
5905 * windows-nat.c (struct windows_thread_info): Remove typedef.
5906 (thread_head): Remove.
5907 (thread_list): New global.
5908 (thread_rec, windows_add_thread, windows_init_thread_list)
5909 (windows_delete_thread, windows_continue): Update.
5910
0f2265e2
SM
59112020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * windows-tdep.h (windows_init_abi): Add comment.
5914 (cygwin_init_abi): New declaration.
5915 * windows-tdep.c: Split signal enumeration in two, one for
5916 Windows and one for Cygwin.
5917 (windows_gdb_signal_to_target): Only deal with signal of the
5918 Windows OS ABI.
5919 (cygwin_gdb_signal_to_target): New function.
5920 (windows_init_abi): Rename to windows_init_abi_common, don't set
5921 gdb_signal_to_target gdbarch method. Add new new function with
5922 this name.
5923 (cygwin_init_abi): New function.
5924 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5925 comment. Don't call windows_init_abi.
5926 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5927 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5928 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5929 i386_windows_init_abi_common, don't call windows_init_abi. Add
5930 a new function of this name.
5931 (i386_cygwin_init_abi): New function.
5932 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5933 OS ABI Cygwin.
5934
3810f182
SM
59352020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5936
5937 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5938 parameter.c.
5939 (dwarf2_read_gdb_index): Update.
5940
063f8e80
KR
59412020-04-07 Kamil Rytarowski <n54@gmx.com>
5942
5943 * nbsd-tdep.c: Include "objfiles.h".
5944 (nbsd_skip_solib_resolver): New.
5945 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5946
85a9510c 59472020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5948
5949 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5950 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5951 with DW_LLE_base_addressx are being emitted in DWARFv5.
5952 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5953 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5954 unsigned integer.
5955
9fc3eaae 59562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5957
5958 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5959 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5960 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5961 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5962 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5963 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5964 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5965
5966
41144253 59672020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5968
5969 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5970 (read_loclist_index): New function definition.
5971 (lookup_loclist_base): New function definition.
5972 (read_loclist_header): New function definition.
5973 (dwarf2_cu): Add loclist_base and loclist_header field.
5974 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5975 (read_full_die_1): Read the value of DW_AT_loclists_base.
5976 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5977 (read_attribute_value): Handle DW_FORM_loclistx.
5978 (skip_one_die): Handle DW_FORM_loclistx.
5979 (loclist_header): New structure declaration.
5980 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5981
9f4e76a4
SM
59822020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5983
5984 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5985 constructor. Remove `addr` parameter from other constructor and
5986 add `per_cu` parameter.
5987 * dwarf2/read.c (create_partial_symtab): Update.
5988
25c11aca
TV
59892020-04-07 Tom de Vries <tdevries@suse.de>
5990
5991 PR symtab/25796
5992 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5993 (partial_die_info::fixup): Inherit has_const_value.
5994
5707e24b
TV
59952020-04-07 Tom de Vries <tdevries@suse.de>
5996
5997 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5998 symbols without address.
5999
05f00e22
KR
60002020-04-06 Kamil Rytarowski <n54@gmx.com>
6001
6002 * nbsd-nat.h (struct thread_info): Add forward declaration.
6003 (nbsd_nat_target::thread_alive): Add.
6004 (nbsd_nat_target::thread_name): Likewise.
6005 (nbsd_nat_target::update_thread_list): Likewise.
6006 (update_thread_list::post_attach): Likewise.
6007 (post_attach::pid_to_str): Likewise.
6008 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6009 (nbsd_thread_lister): Add.
6010 (nbsd_nat_target::thread_alive): Likewise.
6011 (nbsd_nat_target::thread_name): Likewise.
6012 (nbsd_add_threads): Likewise.
6013 (update_thread_list::post_attach): Likewise.
6014 (nbsd_nat_target::update_thread_list): Likewise.
6015 (post_attach::pid_to_str): Likewise.
6016
6ee448cc
TT
60172020-04-06 Tom Tromey <tromey@adacore.com>
6018
6019 * ada-valprint.c (print_variant_part): Extract the variant field.
6020 (print_field_values): Use the field as the outer value when
6021 recursing.
6022
dea34e8c
TT
60232020-04-06 Tom Tromey <tromey@adacore.com>
6024
6025 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6026 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6027 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6028 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6029 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6030
93689ce9
TT
60312020-04-06 Tom Tromey <tromey@adacore.com>
6032
6033 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6034 TYPE_CODE_ERROR.
6035
79743962
KR
60362020-04-06 Kamil Rytarowski <n54@gmx.com>
6037
6038 * nbsd-tdep.c: Include "gdbarch.h".
6039 Define enum with NetBSD signal numbers.
6040 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6041 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6042 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6043 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6044 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6045 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6046 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6047 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6048 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6049 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6050 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6051 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6052
9e7c9a03
HD
60532020-04-03 Hannes Domani <ssbssa@yahoo.de>
6054
6055 PR gdb/25325
6056 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6057
d9e49b61
TT
60582020-04-03 Tom Tromey <tromey@adacore.com>
6059
6060 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6061 Read constant block.
6062
e0fc5c3f
SM
60632020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6064
6065 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6066 (gdb_bfd_get_full_section_contents): New declaration.
6067 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6068 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6069 gdb_bfd_get_full_section_contents.
6070
e2ff18a0
SM
60712020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6072
6073 * exec.c (build_section_table): Replace internal_error with
6074 gdb_assert.
6075 (section_table_xfer_memory_partial): Likewise.
6076 * mdebugread.c (parse_partial_symbols): Likewise.
6077 * psymtab.c (lookup_partial_symbol): Likewise.
6078 * utils.c (wrap_here): Likewise.
6079
0830d301
TT
60802020-04-02 Tom Tromey <tromey@adacore.com>
6081
6082 * f-lang.c (build_fortran_types): Use arch_type to initialize
6083 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6084
e7da7f8f
TT
60852020-04-02 Tom Tromey <tromey@adacore.com>
6086
6087 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6088 of attributes.
6089
c90d28ac
AB
60902020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6091 Bernd Edlinger <bernd.edlinger@hotmail.de>
6092 Tom Tromey <tromey@adacore.com>
6093
6094 * buildsym.c (buildsym_compunit::record_line): Remove
6095 deduplication code.
6096
1aa98955
TV
60972020-04-02 Tom de Vries <tdevries@suse.de>
6098
6099 PR ada/24671
6100 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6101
d3214198
TV
61022020-04-02 Tom de Vries <tdevries@suse.de>
6103
6104 * dwarf2/read.c (dwarf2_gdb_index_functions,
6105 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6106 NULL.
6107 * psymtab.c (psym_lookup_global_symbol_language): New function.
6108 (psym_functions): Init psym_lookup_global_symbol_language with
6109 psym_lookup_global_symbol_language.
6110 * symfile-debug.c (debug_sym_quick_functions): Init
6111 lookup_global_symbol_language with NULL.
6112 * symfile.c (set_initial_language): Remove fixme comment.
6113 * symfile.h (struct quick_symbol_functions): Add
6114 lookup_global_symbol_language.
6115 * symtab.c (find_quick_global_symbol_language): New function.
6116 (find_main_name): Use find_quick_global_symbol_language.
6117
2836752f
SM
61182020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6119
6120 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6121
64dc2d4b
BE
61222020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6123
6124 * buildsym.c (record_line): Fix undefined behavior and preserve
6125 lines at eof.
6126
bbe3dc41
BE
61272020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6128
6129 * buildsym.c (record_line): Fix the resizing condition.
6130
6b4a335b
TT
61312020-04-01 Tom Tromey <tom@tromey.com>
6132
6133 * value.h (value_literal_complex): Add comment.
6134 * valops.c (value_literal_complex): Refer to value.h.
6135
3638a098
TT
61362020-04-01 Tom Tromey <tom@tromey.com>
6137
6138 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6139 (scalar_type): New rule, from typebase.
6140 (typebase): Use scalar_type. Recognize complex types.
6141 (field_name): Handle FLOAT_KEYWORD.
6142 (ident_tokens): Add _Complex and __complex__.
6143
c34e8714
TT
61442020-04-01 Tom Tromey <tom@tromey.com>
6145
6146 PR exp/25299:
6147 * valarith.c (promotion_type, complex_binop): New functions.
6148 (scalar_binop): Handle complex numbers. Use promotion_type.
6149 (value_pos, value_neg, value_complement): Handle complex numbers.
6150
fa649bb7
TT
61512020-04-01 Tom Tromey <tom@tromey.com>
6152
6153 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6154 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6155 (parse_number): Handle complex numbers.
6156
981c08ce
TT
61572020-04-01 Tom Tromey <tom@tromey.com>
6158
6159 * c-valprint.c (c_decorations): Change complex suffix to "i".
6160
4c99290d
TT
61612020-04-01 Tom Tromey <tom@tromey.com>
6162
6163 * valprint.c (generic_value_print_complex): Use accessors.
6164 * value.h (value_real_part, value_imaginary_part): Declare.
6165 * valops.c (value_real_part, value_imaginary_part): New
6166 functions.
6167 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6168
5b930b45
TT
61692020-04-01 Tom Tromey <tom@tromey.com>
6170
6171 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6172 (read_range_type): Update.
6173 * mdebugread.c (basic_type): Update.
6174 * go-lang.c (build_go_types): Use init_complex_type.
6175 * gdbtypes.h (struct main_type) <complex_type>: New member.
6176 (init_complex_type): Update.
6177 (arch_complex_type): Don't declare.
6178 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6179 Make name if none given. Use alloc_type_copy. Look for cached
6180 complex type.
6181 (arch_complex_type): Remove.
6182 (gdbtypes_post_init): Use init_complex_type.
6183 * f-lang.c (build_fortran_types): Use init_complex_type.
6184 * dwarf2/read.c (read_base_type): Update.
6185 * d-lang.c (build_d_types): Use init_complex_type.
6186 * ctfread.c (read_base_type): Update.
6187
53cccef1
TBA
61882020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6189
6190 * infrun.c (stop_all_threads): Update assertion, plus when
6191 stopping threads, take into account that we might be trying
6192 to stop an all-stop target.
6193 (stop_waiting): Call 'stop_all_threads' if there exists a
6194 non-stop target.
6195
a0714d30
TBA
61962020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6197
6198 * target.h (exists_non_stop_target): New function declaration.
6199 * target.c (exists_non_stop_target): New function.
6200
60e22c1e
HD
62012020-04-01 Hannes Domani <ssbssa@yahoo.de>
6202
6203 PR gdb/24789
6204 * eval.c (is_integral_or_integral_reference): New function.
6205 (evaluate_subexp_standard): Allow integer references in
6206 pointer arithmetic.
6207
e139a727
TBA
62082020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6209
6210 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6211 check for no ptid in the stop reply when the target is non-stop.
6212
e0802d59
TT
62132020-04-01 Tom Tromey <tromey@adacore.com>
6214
6215 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6216 "name" parameter to rvalue reference. Initialize m_name_holder.
6217 <lookup_name_info>: New overloads.
6218 <name>: Return gdb::string_view.
6219 <c_str>: New method.
6220 <make_ignore_params>: Update.
6221 <search_name_hash>: Update.
6222 <language_lookup_name>: Return const char *.
6223 <m_name>: Change type.
6224 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6225 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6226 (lookup_name_info::match_any): Update.
6227 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6228 Update.
6229 * minsyms.c (linkage_name_str): Update.
6230 * language.c (default_symbol_name_matcher): Update.
6231 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6232 Update.
6233 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6234 (ada_lookup_name_info::ada_lookup_name_info): Update.
6235 (literal_symbol_name_matcher): Update.
6236
8c072cb6
TT
62372020-04-01 Tom Tromey <tromey@adacore.com>
6238
6239 * psymtab.c (psymtab_search_name): Remove function.
6240 (psym_lookup_symbol): Create search name and lookup name here.
6241 (lookup_partial_symbol): Remove "name" parameter; add
6242 lookup_name.
6243 (psym_expand_symtabs_for_function): Update.
6244
6f29a534
TT
62452020-03-31 Joel Jones <joelkevinjones@gmail.com>
6246
6247 PR tui/25597:
6248 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6249
af62665e
TT
62502020-03-31 Tom Tromey <tromey@adacore.com>
6251
6252 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6253 memcpy.
6254
d1a89da5
NC
62552020-03-30 Nelson Chu <nelson.chu@sifive.com>
6256
6257 * features/riscv/32bit-csr.xml: Regenerated.
6258 * features/riscv/64bit-csr.xml: Regenerated.
6259
d8af9068
TT
62602020-03-30 Tom Tromey <tromey@adacore.com>
6261
6262 * ada-valprint.c (print_variant_part): Update.
6263 * ada-lang.h (ada_which_variant_applies): Update.
6264 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6265 outer_valaddr parameters; replace with "outer" value parameter.
6266 (to_fixed_variant_branch_type): Update.
6267
227c0bf4
PFC
62682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6269
6270 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6271 <list>. Remove inclusion of observable.h.
6272 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6273 (struct arch_lwp_info): New struct.
6274 (class ppc_linux_dreg_interface): New class.
6275 (struct ppc_linux_process_info): New struct.
6276 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6277 <low_new_clone, low_forget_process, low_prepare_to_resume>
6278 <copy_thread_dreg_state, mark_thread_stale>
6279 <mark_debug_registers_changed, register_hw_breakpoint>
6280 <clear_hw_breakpoint, register_wp, clear_wp>
6281 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6282 <num_memory_accesses, get_trigger_type>
6283 <create_watchpoint_request, hwdebug_point_cmp>
6284 <init_arch_lwp_info, get_arch_lwp_info>
6285 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6286 methods.
6287 <struct ptid_hash>: New inner struct.
6288 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6289 members.
6290 (saved_dabr_value, hwdebug_info, max_slots_number)
6291 (struct hw_break_tuple, struct thread_points, ppc_threads)
6292 (have_ptrace_hwdebug_interface)
6293 (hwdebug_find_thread_points_by_tid)
6294 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6295 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6296 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6297 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6298 use m_dreg_interface.
6299 (hwdebug_point_cmp): Change to...
6300 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6301 reference arguments instead of pointers.
6302 (ppc_linux_nat_target::ranged_break_num_registers): Use
6303 m_dreg_interface.
6304 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6305 m_dreg_interface. Call register_hw_breakpoint.
6306 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6307 m_dreg_interface. Call clear_hw_breakpoint.
6308 (get_trigger_type): Change to...
6309 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6310 comment.
6311 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6312 use m_dreg_interface. Call register_hw_breakpoint.
6313 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6314 use m_dreg_interface. Call clear_hw_breakpoint.
6315 (can_use_watchpoint_cond_accel): Change to...
6316 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6317 method. Update comment, use m_dreg_interface and
6318 m_process_info.
6319 (calculate_dvc): Change to...
6320 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6321 m_dreg_interface.
6322 (num_memory_accesses): Change to...
6323 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6324 (check_condition): Change to...
6325 (ppc_linux_nat_target::check_condition): ...this method.
6326 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6327 comment, use m_dreg_interface.
6328 (create_watchpoint_request): Change to...
6329 (ppc_linux_nat_target::create_watchpoint_request): ...this
6330 method. Use m_dreg_interface.
6331 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6332 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6333 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6334 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6335 (ppc_linux_nat_target::low_forget_process)
6336 (ppc_linux_nat_target::low_new_fork)
6337 (ppc_linux_nat_target::low_new_clone)
6338 (ppc_linux_nat_target::low_delete_thread)
6339 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6340 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6341 only call mark_thread_stale.
6342 (ppc_linux_thread_exit): Remove.
6343 (ppc_linux_nat_target::stopped_data_address): Change to...
6344 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6345 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6346 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6347 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6348 comment. Call low_stopped_data_address.
6349 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6350 m_dreg_interface.
6351 (ppc_linux_nat_target::masked_watch_num_registers): Use
6352 m_dreg_interface.
6353 (ppc_linux_nat_target::copy_thread_dreg_state)
6354 (ppc_linux_nat_target::mark_thread_stale)
6355 (ppc_linux_nat_target::mark_debug_registers_changed)
6356 (ppc_linux_nat_target::register_hw_breakpoint)
6357 (ppc_linux_nat_target::clear_hw_breakpoint)
6358 (ppc_linux_nat_target::register_wp)
6359 (ppc_linux_nat_target::clear_wp)
6360 (ppc_linux_nat_target::init_arch_lwp_info)
6361 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6362 (_initialize_ppc_linux_nat): Remove observer callback.
6363
4db10d8f
PFC
63642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6365
6366 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6367 (ppc_linux_nat_target::auxv_parse)
6368 (ppc_linux_nat_target::read_description)
6369 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6370 Move up.
6371
1310c1b0
PFC
63722020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6373
6374 * linux-nat.h (low_new_clone): New method.
6375 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6376
69b037c3
SM
63772020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6378
6379 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6380 (dbx_expand_psymtab): ... this.
6381 (start_psymtab): Update.
6382 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6383 (mdebug_expand_psymtab): ... this.
6384 (parse_partial_symbols): Update.
6385 (new_psymtab): Update.
6386 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6387 (xcoff_expand_psymtab): ... this.
6388 (xcoff_start_psymtab): Update.
6389
48993951
SM
63902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6391
6392 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6393 <expand_dependencies>: ... this.
6394 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6395 (partial_symtab::expand_dependencies): ... this.
6396 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6397 Update.
6398 (dwarf2_psymtab::expand_psymtab): Update.
6399 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6400 * mdebugread.c (psymtab_to_symtab_1): Update.
6401 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6402
3ad83046
SM
64032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6404
6405 * psympriv.h (discard_psymtab): Remove.
6406 * dbxread.c (dbx_end_psymtab): Update.
6407 * xcoffread.c (xcoff_end_psymtab): Update.
6408
4d1b9ab6
TT
64092020-03-28 Tom Tromey <tom@tromey.com>
6410
6411 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6412 comment.
6413
f1749218
TT
64142020-03-28 Tom Tromey <tom@tromey.com>
6415
6416 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6417
ebea7626
HD
64182020-03-27 Hannes Domani <ssbssa@yahoo.de>
6419
6420 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6421
a879b4d5
JB
64222020-03-26 John Baldwin <jhb@FreeBSD.org>
6423
6424 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6425
0826b30a
TT
64262020-03-26 Tom Tromey <tom@tromey.com>
6427
6428 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6429 (mark_common_block_symbol_computed, read_tag_string_type)
6430 (attr_to_dynamic_prop, read_subrange_type): Update.
6431 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6432 to be methods on struct attribute.
6433 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6434 (read_call_site_scope, partial_die_info::read)
6435 (partial_die_info::read, lookup_die_type, follow_die_ref):
6436 Update.
6437 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6438 from dwarf2_get_ref_die_offset.
6439 (attribute::constant_value): New method, from
6440 dwarf2_get_attr_constant_value.
6441 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6442 Declare method.
6443 <constant_value>: New method.
6444
2b2558bf
TT
64452020-03-26 Tom Tromey <tom@tromey.com>
6446
6447 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6448 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6449 (dwarf_type_encoding_name): Move to stringify.c.
6450 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6451 * dwarf2/stringify.c: New file.
6452 * dwarf2/stringify.h: New file.
6453
eeb64781
TT
64542020-03-26 Tom Tromey <tom@tromey.com>
6455
6456 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6457 Rewrite.
6458
a39fdb41
TT
64592020-03-26 Tom Tromey <tom@tromey.com>
6460
6461 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6462 methods.
6463 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6464 (lookup_ranges_base): Likewise.
6465 (read_cutu_die_from_dwo, read_full_die_1): Update.
6466
436c571c
TT
64672020-03-26 Tom Tromey <tom@tromey.com>
6468
6469 * dwarf2/read.c (read_import_statement, read_file_scope)
6470 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6471 (read_lexical_block_scope, read_call_site_scope)
6472 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6473 (handle_struct_member_die, process_structure_scope)
6474 (update_enumeration_type_from_children)
6475 (process_enumeration_scope, read_array_type, read_common_block)
6476 (read_namespace, read_module, read_subroutine_type): Update.
6477 (sibling_die): Remove.
6478
052c8bb8
TT
64792020-03-26 Tom Tromey <tom@tromey.com>
6480
6481 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6482 (build_type_psymtabs_reader, read_structure_type)
6483 (read_enumeration_type, read_full_die_1): Update.
6484 (dwarf2_attr_no_follow): Move to die.h.
6485 * dwarf2/die.h (struct die_info) <attr>: New method.
6486
2b24b6e4
TT
64872020-03-26 Tom Tromey <tom@tromey.com>
6488
6489 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6490 <base_address>: Now an optional.
6491 (dwarf2_find_base_address, dwarf2_rnglists_process)
6492 (dwarf2_ranges_process, fill_in_loclist_baton)
6493 (dwarf2_symbol_mark_computed): Update.
6494
c2d50fd0
TT
64952020-03-26 Tom Tromey <tom@tromey.com>
6496
6497 * dwarf2/read.c (struct die_info): Move to die.h.
6498 * dwarf2/die.h: New file.
6499
0df7ad3a
TT
65002020-03-26 Tom Tromey <tom@tromey.com>
6501
6502 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6503 * dwarf2/read.c
6504 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6505 Move to line-header.c.
6506 (read_checked_initial_length_and_offset, read_formatted_entries):
6507 Likewise.
6508 (dwarf_decode_line_header): Split into two.
6509 * dwarf2/line-header.c
6510 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6511 Move from read.c.
6512 (read_checked_initial_length_and_offset, read_formatted_entries):
6513 Likewise.
6514 (dwarf_decode_line_header): New function, split from read.c.
6515
86c0bb4c
TT
65162020-03-26 Tom Tromey <tom@tromey.com>
6517
6518 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6519 Declare method.
6520 * dwarf2/read.c (read_attribute_value): Update.
6521 (dwarf2_per_objfile::read_line_string): Rename from
6522 read_indirect_line_string.
6523 (read_formatted_entries): Update.
6524
2ef46c2f
TT
65252020-03-26 Tom Tromey <tom@tromey.com>
6526
6527 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6528 variable.
6529
4f9c1eda
TT
65302020-03-26 Tom Tromey <tom@tromey.com>
6531
6532 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6533 const.
6534 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6535 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6536 parameter const.
6537
5a0e026f
TT
65382020-03-26 Tom Tromey <tom@tromey.com>
6539
6540 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6541 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6542 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6543 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6544
8844c11b
TT
65452020-03-26 Tom Tromey <tom@tromey.com>
6546
6547 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6548 file_names_size, file_full_name, file_file_name>: Use const.
6549 <file_name_at, file_names>: Add const overload.
6550 * dwarf2/line-header.c (line_header::file_file_name)
6551 (line_header::file_full_name): Update.
6552
c90ec28a
TT
65532020-03-26 Tom Tromey <tom@tromey.com>
6554
6555 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6556 (macro_start_file, consume_improper_spaces)
6557 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6558 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6559 (dwarf_decode_macros): Move to macro.c.
6560 * dwarf2/macro.c: New file.
6561 * dwarf2/macro.h: New file.
6562 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6563
4f44ae6c
TT
65642020-03-26 Tom Tromey <tom@tromey.com>
6565
6566 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6567 method.
6568 * dwarf2/section.c: New method. From
6569 read_indirect_string_at_offset_from.
6570 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6571 (read_indirect_string_at_offset_from): Move to section.c.
6572 (read_indirect_string_at_offset): Rewrite.
6573 (read_indirect_line_string_at_offset): Remove.
6574 (read_indirect_string, read_indirect_line_string)
6575 (dwarf_decode_macro_bytes): Update.
6576
a0194fa8
TT
65772020-03-26 Tom Tromey <tom@tromey.com>
6578
6579 * dwarf2/section.h (struct dwarf2_section_info)
6580 <overload_complaint>: Declare.
6581 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6582 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6583 Rename from dwarf2_section_buffer_overflow_complaint.
6584 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6585 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6586
3d27bbdb
TT
65872020-03-26 Tom Tromey <tom@tromey.com>
6588
6589 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6590 Declare.
6591 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6592 Move from read.c.
6593 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6594 to section.c.
6595
9eac9650
TT
65962020-03-26 Tom Tromey <tom@tromey.com>
6597
6598 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6599
bf80d710
TT
66002020-03-26 Tom Tromey <tom@tromey.com>
6601
6602 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6603 "builder".
6604 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6605 parameter.
6606 (dwarf_decode_macros): Update.
6607
0314b390
TT
66082020-03-26 Tom Tromey <tom@tromey.com>
6609
6610 * dwarf2/read.c (read_attribute_value): Update.
6611 (read_indirect_string_from_dwz): Move to dwz.c; change into
6612 method.
6613 (dwarf_decode_macro_bytes): Update.
6614 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6615 * dwarf2/dwz.c: New file.
6616 * Makefile.in (COMMON_SFILES): Add dwz.c.
6617
9fda78b6
TT
66182020-03-26 Tom Tromey <tom@tromey.com>
6619
6620 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6621 * dwarf2/read.c: Add include.
6622 * dwarf2/index-write.c: Add include.
6623 * dwarf2/index-cache.c: Add include.
6624 * dwarf2/dwz.h: New file.
6625
33aa3c10
TT
66262020-03-25 Tom Tromey <tom@tromey.com>
6627
6628 * compile/compile-object-load.c (get_out_value_type): Mention
6629 correct symbol name in error message.
6630
d503b685
HD
66312020-03-25 Hannes Domani <ssbssa@yahoo.de>
6632
6633 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6634
7b1eff95
TV
66352020-03-25 Tom de Vries <tdevries@suse.de>
6636
6637 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6638 * symmisc.c (dump_symtab_1): Print user and includes fields.
6639 (maintenance_info_symtabs): Same.
6640
dd895392
AB
66412020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6642
6643 PR gdb/25534
6644 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6645 (riscv_regcache_cooked_write): New function.
6646 (riscv_push_dummy_call): Use new function.
6647 (riscv_return_value): Likewise.
6648
5ab2fbf1
SM
66492020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6650
6651 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6652 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6653 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6654 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6655 * infrun.c (follow_fork): Likewise.
6656 (follow_fork_inferior): Likewise.
6657 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6658 * linux-nat.h (class linux_nat_target): Likewise.
6659 * remote.c (class remote_target) <follow_fork>: Likewise.
6660 (remote_target::follow_fork): Likewise.
6661 * target-delegates.c: Re-generate.
6662 * target.c (default_follow_fork): Likewise.
6663 (target_follow_fork): Likewise.
6664 * target.h (struct target_ops) <follow_fork>: Likewise.
6665 (target_follow_fork): Likewise.
6666
a64fafb5
TV
66672020-03-24 Tom de Vries <tdevries@suse.de>
6668
6669 * psymtab.c (maintenance_info_psymtabs): Print user field.
6670
fe26d3a3
TT
66712020-03-20 Tom Tromey <tromey@adacore.com>
6672
6673 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6674 const.
6675 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6676 const.
6677
c884cc46
SM
66782020-03-20 Simon Marchi <simon.marchi@efficios.com>
6679
6680 * ptrace.m4: Don't check for ptrace declaration.
6681 * config.in: Re-generate.
6682 * configure: Re-generate.
6683 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6684 not defined.
6685
1ff700c2
KR
66862020-03-20 Kamil Rytarowski <n54@gmx.com>
6687
6688 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6689 `PTRACE_TYPE_RET'.
6690 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6691 * sparc-nat.c (gdb_ptrace): Likewise.
6692 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6693
f7d4f0b1
TT
66942020-03-20 Tom Tromey <tromey@adacore.com>
6695
6696 * c-exp.y (lex_one_token): Fix assert.
6697
f67210ff
TT
66982020-03-20 Tom Tromey <tromey@adacore.com>
6699
6700 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6701 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6702 strncpy call.
6703
1773be9e
TT
67042020-03-20 Tom Tromey <tromey@adacore.com>
6705
6706 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6707
70304be9
TT
67082020-03-20 Tom Tromey <tromey@adacore.com>
6709
6710 * ada-valprint.c (print_variant_part): Remove parameters; switch
6711 to value-based API.
6712 (print_field_values): Likewise.
6713 (ada_val_print_struct_union): Likewise.
6714 (ada_value_print_1): Update.
6715
9faa006d
KR
67162020-03-20 Kamil Rytarowski <n54@gmx.com>
6717
6718 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6719 nbsd_nat_target instead of inf_ptrace_target.
6720 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6721 nbsd_nat_target.
6722
4a90f062
KR
67232020-03-20 Kamil Rytarowski <n54@gmx.com>
6724
6725 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6726 it to the ptrace call.
6727 * (store_registers): Likewise.
6728
67292020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6730
6731 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6732 it to the ptrace call.
6733 * (store_registers): Likewise.
6734
2d07da27
LM
67352020-03-19 Luis Machado <luis.machado@linaro.org>
6736
6737 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6738 valid, fetch vg value from ptrace.
6739
f09db380
KR
67402020-03-19 Kamil Rytarowski <n54@gmx.com>
6741 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6742 * inf-ptrace.c: Likewise.
6743 * (gdb_ptrace): Add.
6744 * (inf_ptrace_target::resume): Update.
6745 * (inf_ptrace_target::xfer_partial): Likewise.
6746 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6747 * (inf_ptrace_peek_poke): Update.
6748
fcc7376e
KR
67492020-03-19 Kamil Rytarowski <n54@gmx.com>
6750
6751 * x86-bsd-nat.c (gdb_ptrace): New.
6752 * (x86bsd_dr_set): Add new argument `ptid'.
6753 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6754 x86bsd_dr_set_addr): Update.
6755
cada5fc9
AB
67562020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6757
6758 * remote.c (remote_target::process_stop_reply): Handle events for
6759 all threads differently.
6760
19a2740f
AB
67612020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6762
6763 * completer.c (completion_tracker::remove_completion): Define new
6764 function.
6765 * completer.h (completion_tracker::remove_completion): Declare new
6766 function.
6767 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6768 when adding a C++ function symbol.
6769
724fd9ba
AB
67702020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6771
6772 * completer.c (completion_tracker::completion_hash_entry): Define
6773 new class.
6774 (advance_to_filename_complete_word_point): Call
6775 recompute_lowest_common_denominator.
6776 (completion_tracker::completion_tracker): Call discard_completions
6777 to setup the hash table.
6778 (completion_tracker::discard_completions): Allow for being called
6779 from the constructor, pass new equal function, and element deleter
6780 when constructing the hash table. Initialise new class member
6781 variables.
6782 (completion_tracker::maybe_add_completion): Remove use of
6783 m_entries_vec, and store more information into m_entries_hash.
6784 (completion_tracker::recompute_lcd_visitor): New function, most
6785 content taken from...
6786 (completion_tracker::recompute_lowest_common_denominator):
6787 ...here, this now just visits each item in the hash calling the
6788 above visitor.
6789 (completion_tracker::build_completion_result): Remove use of
6790 m_entries_vec, call recompute_lowest_common_denominator.
6791 * completer.h (completion_tracker::have_completions): Remove use
6792 of m_entries_vec.
6793 (completion_tracker::completion_hash_entry): Declare new class.
6794 (completion_tracker::recompute_lowest_common_denominator): Change
6795 function signature.
6796 (completion_tracker::recompute_lcd_visitor): Declare new function.
6797 (completion_tracker::m_entries_vec): Delete.
6798 (completion_tracker::m_entries_hash): Initialize to NULL.
6799 (completion_tracker::m_lowest_common_denominator_valid): New
6800 member variable.
6801 (completion_tracker::m_lowest_common_denominator_max_length): New
6802 member variable.
6803
5a82b8a1
KR
68042020-03-17 Kamil Rytarowski <n54@gmx.com>
6805
6806 * regformats/regdef.h: Put reg in gdb namespace.
6807
fb516a69
KR
68082020-03-17 Kamil Rytarowski <n54@gmx.com>
6809
6810 * i386-bsd-nat.c (gdb_ptrace): New.
6811 * (i386bsd_fetch_inferior_registers,
6812 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6813 * (i386bsd_fetch_inferior_registers,
6814 i386bsd_store_inferior_registers) Use gdb_ptrace.
6815
1c0aa1fb
KR
68162020-03-17 Kamil Rytarowski <n54@gmx.com>
6817
6818 * amd64-bsd-nat.c (gdb_ptrace): New.
6819 * (amd64bsd_fetch_inferior_registers,
6820 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6821 * (amd64bsd_fetch_inferior_registers,
6822 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6823
5ccd2fb7
KR
68242020-03-17 Kamil Rytarowski <n54@gmx.com>
6825
6826 * user-regs.c (user_reg::read): Rename to...
6827 (user_reg::xread): ...this.
6828 * (append_user_reg): Rename argument `read' to `xread'.
6829 * (user_reg_add_builtin): Likewise.
6830 * (user_reg_add): Likewise.
6831 * (value_of_user_reg): Likewise.
6832
2108a63a
KR
68332020-03-17 Kamil Rytarowski <n54@gmx.com>
6834
6835 * sparc-nat.c (gdb_ptrace): New.
6836 * sparc-nat.c (sparc_fetch_inferior_registers)
6837 (sparc_store_inferior_registers) Remove obsolete comment.
6838 * sparc-nat.c (sparc_fetch_inferior_registers)
6839 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6840 * sparc-nat.c (sparc_fetch_inferior_registers)
6841 (sparc_store_inferior_registers) Use gdb_ptrace.
6842
a225c9a8
KR
68432020-03-17 Kamil Rytarowski <n54@gmx.com>
6844
6845 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6846 it to the ptrace call.
6847 * sh-nbsd-nat.c (store_registers): Likewise.
6848
98097623
KR
68492020-03-17 Kamil Rytarowski <n54@gmx.com>
6850
6851 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6852 nbsd_nat_target instead of inf_ptrace_target.
6853 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6854 nbsd_nat_target.
6855
9e38d619
KR
68562020-03-17 Kamil Rytarowski <n54@gmx.com>
6857
6858 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6859
a2ecbe9f
KR
68602020-03-17 Kamil Rytarowski <n54@gmx.com>
6861
6862 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6863 <sys/sysctl.h>.
6864 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6865
58990295
TV
68662020-03-17 Tom de Vries <tdevries@suse.de>
6867
6868 PR gdb/23710
6869 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6870 fields.
6871 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6872 fields.
6873 (process_imported_unit_die): Skip import of c++ CUs.
6874
771dd3a8
TT
68752020-03-16 Tom Tromey <tom@tromey.com>
6876
6877 * p-valprint.c (pascal_object_print_value): Initialize
6878 base_value.
6879
817a7585
AK
68802020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6881 Shahab Vahedi <shahab@synopsys.com>
6882
6883 * Makefile.in: Add arch/arc.o
6884 * configure.tgt: Likewise.
6885 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6886 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6887 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6888 * arc-tdep.h (arc_read_description): Add proto type.
6889 * arch/arc.c: New file.
6890 * arch/arc.h: Likewise.
6891 * features/Makefile: Replace old target descriptions with new.
6892 * features/arc-arcompact.c: Remove.
6893 * features/arc-arcompact.xml: Likewise.
6894 * features/arc-v2.c: Likewise
6895 * features/arc-v2.xml: Likewise
6896 * features/arc/aux-arcompact.xml: New file.
6897 * features/arc/aux-v2.xml: Likewise.
6898 * features/arc/core-arcompact.xml: Likewise.
6899 * features/arc/core-v2.xml: Likewise.
6900 * features/arc/aux-arcompact.c: Generate.
6901 * features/arc/aux-v2.c: Likewise.
6902 * features/arc/core-arcompact.c: Likewise.
6903 * features/arc/core-v2.c: Likewise.
6904 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6905
67430cd0
TT
69062020-03-16 Tom Tromey <tromey@adacore.com>
6907
6908 PR gdb/25663:
6909 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6910 putting value into bcache.
6911
30efb6c7
SM
69122020-03-16 Simon Marchi <simon.marchi@efficios.com>
6913
6914 PR gdb/21500
6915 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6916 to...
6917 (amd64_windows_init_abi_common): ... this. Don't set size of
6918 long type.
6919 (amd64_windows_init_abi): New function.
6920 (amd64_cygwin_init_abi): New function.
6921 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6922 the Cygwin OS ABI.
6923 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6924 comment.
6925
8db52437
SM
69262020-03-16 Simon Marchi <simon.marchi@efficios.com>
6927
6928 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6929 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6930 (pe_import_directory_entry): New struct type.
6931 (is_linked_with_cygwin_dll): New function.
6932 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6933 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6934 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6935
5982a56a
SM
69362020-03-16 Simon Marchi <simon.marchi@efficios.com>
6937
6938 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6939 i386_cygwin_core_osabi_sniffer.
6940
7a1998df
SM
69412020-03-16 Simon Marchi <simon.marchi@efficios.com>
6942
6943 * i386-cygwin-tdep.c: Rename to...
6944 * i386-windows-tdep.c: ... this.
6945 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6946 i386-windows-tdep.c.
6947 * configure.tgt: Likewise.
6948
053205cc
SM
69492020-03-16 Simon Marchi <simon.marchi@efficios.com>
6950
6951 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6952 * osabi.c (gdb_osabi_names): Add "Windows".
6953 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6954 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6955 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6956 i386_cygwin_osabi_sniffer.
6957 (_initialize_i386_cygwin_tdep): Register OS ABI
6958 GDB_OSABI_WINDOWS for i386.
6959 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6960 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6961 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6962 for x86-64.
6963 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6964 when the target matches '*-*-mingw*'.
6965
fe4b2ee6
SM
69662020-03-16 Simon Marchi <simon.marchi@efficios.com>
6967
6968 * defs.h (enum gdb_osabi): Move to...
6969 * osabi.h (enum gdb_osabi): ... here.
6970 * gdbarch.sh: Include osabi.h in gdbarch.h.
6971 * gdbarch.h: Re-generate.
6972
cb9b645d
SM
69732020-03-16 Simon Marchi <simon.marchi@efficios.com>
6974
6975 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6976 function.
6977 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6978
3293bbaf
TT
69792020-03-14 Tom Tromey <tom@tromey.com>
6980
6981 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6982 for C++.
6983 (c_type_print_modifier): Likewise. Add "language" parameter.
6984 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6985 (c_type_print_base_1): Update.
6986 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6987 constants.
6988 * type-stack.c (type_stack::insert): Handle tp_atomic and
6989 tp_restrict.
6990 (type_stack::follow_type_instance_flags): Likewise.
6991 (type_stack::follow_types): Likewise. Merge type-following code.
6992 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6993 (space_identifier, cv_with_space_id)
6994 (const_or_volatile_or_space_identifier_noopt)
6995 (const_or_volatile_or_space_identifier): Remove.
6996 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6997 rules.
6998 (ptr_operator, typebase): Update.
6999 (enum token_flag) <FLAG_C>: New constant.
7000 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7001 "_Atomic".
7002 (lex_one_token): Handle FLAG_C.
7003
154151a6
KR
70042020-03-14 Kamil Rytarowski <n54@gmx.com>
7005
7006 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7007 it to the ptrace call.
7008 * m68k-bsd-nat.c (store_registers): Likewise.
7009
bc107784
KR
70102020-03-14 Kamil Rytarowski <n54@gmx.com>
7011
7012 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7013 gdb_byte *.
7014 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7015 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7016 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7017
01a80117
KR
70182020-03-14 Kamil Rytarowski <n54@gmx.com>
7019
7020 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7021 nbsd_nat_target instead of inf_ptrace_target.
7022 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7023 nbsd_nat_target.
7024
f90280ca
KR
70252020-03-14 Kamil Rytarowski <n54@gmx.com>
7026
7027 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7028 register_t.
7029
6def66f1
KR
70302020-03-14 Kamil Rytarowski <n54@gmx.com>
7031
7032 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7033 it to the ptrace call.
7034 * alpha-bsd-nat.c (store_registers): Likewise.
7035
66eaca97
KR
70362020-03-14 Kamil Rytarowski <n54@gmx.com>
7037
7038 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7039 includes.
7040 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7041 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7042 fill_fpregset): Likewise.
7043
4fed520b
KR
70442020-03-14 Kamil Rytarowski <n54@gmx.com>
7045
7046 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7047 nbsd_nat_target instead of inf_ptrace_target.
7048 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7049 nbsd_nat_target.
7050
2190cf06
KR
70512020-03-14 Kamil Rytarowski <n54@gmx.com>
7052
7053 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7054 register_t.
7055
75c56d3d
KR
70562020-03-14 Kamil Rytarowski <n54@gmx.com>
7057
7058 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7059 it to the ptrace call.
7060 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7061 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7062 * arm-nbsd-nat.c (store_register): Likewise.
7063 * arm-nbsd-nat.c (store_regs): Likewise.
7064 * arm-nbsd-nat.c (store_fp_register): Likewise.
7065 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7066
6018d381
KR
70672020-03-14 Kamil Rytarowski <n54@gmx.com>
7068
7069 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7070 nbsd_nat_target instead of inf_ptrace_target.
7071 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7072 nbsd_nat_target.
7073
013f99f0
KR
70742020-03-14 Kamil Rytarowski <n54@gmx.com>
7075
7076 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7077 it to the ptrace call.
7078 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7079
12753073
KR
70802020-03-14 Kamil Rytarowski <n54@gmx.com>
7081
6227b330
KR
7082 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7083 it to the ptrace call.
7084 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7085
70862020-03-14 Kamil Rytarowski <n54@gmx.com>
7087
7088 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7089 gdb_byte *.
12753073
KR
7090 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7091
d5be5fa4
KR
70922020-03-14 Kamil Rytarowski <n54@gmx.com>
7093
7094 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7095 instead of inf_ptrace_target.
7096 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7097 nbsd_nat_target.
7098
8110f842
KR
70992020-03-14 Kamil Rytarowski <n54@gmx.com>
7100
7101 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7102 register_t.
7103
52feded7
KR
71042020-03-14 Kamil Rytarowski <n54@gmx.com>
7105
7106 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7107 register_t.
7108
25567eee
KR
71092020-03-14 Kamil Rytarowski <n54@gmx.com>
7110
7111 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7112 register_t.
7113
426a9c18
TT
71142020-03-13 Tom Tromey <tom@tromey.com>
7115
7116 * value.h (val_print): Don't declare.
7117 * valprint.h (val_print_array_elements)
7118 (val_print_scalar_formatted, generic_val_print): Don't declare.
7119 * valprint.c (generic_val_print_array): Take a struct value.
7120 (generic_val_print_ptr, generic_val_print_memberptr)
7121 (generic_val_print_bool, generic_val_print_int)
7122 (generic_val_print_char, generic_val_print_complex)
7123 (generic_val_print): Remove.
7124 (generic_value_print): Update.
7125 (do_val_print): Remove unused parameters. Don't call
7126 la_val_print.
7127 (val_print): Remove.
7128 (common_val_print): Update. Don't call value_check_printable.
7129 (val_print_scalar_formatted, val_print_array_elements): Remove.
7130 * rust-lang.c (rust_val_print): Remove.
7131 (rust_language_defn): Update.
7132 * p-valprint.c (pascal_val_print): Remove.
7133 (pascal_value_print_inner): Update.
7134 (pascal_object_print_val_fields, pascal_object_print_val):
7135 Remove.
7136 (pascal_object_print_static_field): Update.
7137 * p-lang.h (pascal_val_print): Don't declare.
7138 * p-lang.c (pascal_language_defn): Update.
7139 * opencl-lang.c (opencl_language_defn): Update.
7140 * objc-lang.c (objc_language_defn): Update.
7141 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7142 * m2-lang.h (m2_val_print): Don't declare.
7143 * m2-lang.c (m2_language_defn): Update.
7144 * language.h (struct language_defn) <la_val_print>: Remove.
7145 * language.c (unk_lang_value_print_inner): Rename. Change
7146 argument types.
7147 (unknown_language_defn, auto_language_defn): Update.
7148 * go-valprint.c (go_val_print): Remove.
7149 * go-lang.h (go_val_print): Don't declare.
7150 * go-lang.c (go_language_defn): Update.
7151 * f-valprint.c (f_val_print): Remove.
7152 * f-lang.h (f_value_print): Don't declare.
7153 * f-lang.c (f_language_defn): Update.
7154 * d-valprint.c (d_val_print): Remove.
7155 * d-lang.h (d_value_print): Don't declare.
7156 * d-lang.c (d_language_defn): Update.
7157 * cp-valprint.c (cp_print_value_fields)
7158 (cp_print_value_fields_rtti, cp_print_value): Remove.
7159 (cp_print_static_field): Update.
7160 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7161 (c_val_print_struct, c_val_print_union, c_val_print_int)
7162 (c_val_print_memberptr, c_val_print): Remove.
7163 * c-lang.h (c_val_print_array, cp_print_value_fields)
7164 (cp_print_value_fields_rtti): Don't declare.
7165 * c-lang.c (c_language_defn, cplus_language_defn)
7166 (asm_language_defn, minimal_language_defn): Update.
7167 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7168 (ada_val_print_enum): Take a struct value.
7169 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7170 (ada_val_print): Remove.
7171 (ada_value_print_1): Update.
7172 (printable_val_type): Remove.
7173 * ada-lang.h (ada_val_print): Don't declare.
7174 * ada-lang.c (ada_language_defn): Update.
7175
42331a1e
TT
71762020-03-13 Tom Tromey <tom@tromey.com>
7177
7178 * valprint.c (do_val_print): Update.
7179 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7180 a struct value.
7181 (value_to_value_object_no_release): Declare.
7182 * python/py-value.c (value_to_value_object_no_release): New
7183 function.
7184 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7185 struct value.
7186 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7187 function.
7188 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7189 a struct value.
7190 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7191 Declare.
7192 (gdbscm_apply_val_pretty_printer): Take a struct value.
7193 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7194 value.
7195 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7196 value.
7197 * extension-priv.h (struct extension_language_ops)
7198 <apply_val_pretty_printer>: Take a struct value.
7199 * cp-valprint.c (cp_print_value): Create a struct value.
7200 (cp_print_value): Update.
7201
3a916a97
TT
72022020-03-13 Tom Tromey <tom@tromey.com>
7203
7204 * ada-valprint.c (print_field_values): Call common_val_print.
7205
b59eac37
TT
72062020-03-13 Tom Tromey <tom@tromey.com>
7207
7208 * ada-valprint.c (val_print_packed_array_elements): Remove
7209 bitoffset and val parameters. Call common_val_print.
7210 (ada_val_print_string): Remove offset, address, and original_value
7211 parameters.
7212 (ada_val_print_array): Update.
7213 (ada_value_print_array): New function.
7214 (ada_value_print_1): Call it.
7215
03371129
TT
72162020-03-13 Tom Tromey <tom@tromey.com>
7217
7218 * ada-valprint.c (ada_value_print): Use common_val_print.
7219
2e088f8b
TT
72202020-03-13 Tom Tromey <tom@tromey.com>
7221
7222 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7223
39ef85a8
TT
72242020-03-13 Tom Tromey <tom@tromey.com>
7225
7226 * ada-valprint.c (ada_value_print_num): New function.
7227 (ada_value_print_1): Use it.
7228
b9fa6e07
TT
72292020-03-13 Tom Tromey <tom@tromey.com>
7230
7231 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7232
416595d6
TT
72332020-03-13 Tom Tromey <tom@tromey.com>
7234
7235 * ada-valprint.c (ada_value_print_ptr): New function.
7236 (ada_value_print_1): Use it.
7237
5b5e15ec
TT
72382020-03-13 Tom Tromey <tom@tromey.com>
7239
7240 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7241 call common_val_print.
7242 (ada_val_print_1): Update.
7243 (ada_value_print_1): New function.
7244 (ada_value_print_inner): Rewrite.
7245
fbf54e75
TT
72462020-03-13 Tom Tromey <tom@tromey.com>
7247
7248 * cp-valprint.c (cp_print_value_fields): Update.
7249 (cp_print_value): New function.
7250
64b653ca
TT
72512020-03-13 Tom Tromey <tom@tromey.com>
7252
7253 * m2-valprint.c (m2_value_print_inner): Use
7254 cp_print_value_fields.
7255 * cp-valprint.c (cp_print_value_fields): New function.
7256 * c-valprint.c (c_value_print_struct): New function.
7257 (c_value_print_inner): Use c_value_print_struct.
7258 * c-lang.h (cp_print_value_fields): Declare.
7259
6999f067
TT
72602020-03-13 Tom Tromey <tom@tromey.com>
7261
7262 * c-valprint.c (c_value_print_array): New function.
7263 (c_value_print_inner): Use it.
7264
ce80b8bd
TT
72652020-03-13 Tom Tromey <tom@tromey.com>
7266
7267 * c-valprint.c (c_value_print_memberptr): New function.
7268 (c_value_print_inner): Use it.
7269
2faac269
TT
72702020-03-13 Tom Tromey <tom@tromey.com>
7271
7272 * c-valprint.c (c_value_print_int): New function.
7273 (c_value_print_inner): Use it.
7274
da3e2c29
TT
72752020-03-13 Tom Tromey <tom@tromey.com>
7276
7277 * c-valprint.c (c_value_print_ptr): New function.
7278 (c_value_print_inner): Use it.
7279
50836231
TT
72802020-03-13 Tom Tromey <tom@tromey.com>
7281
7282 * c-valprint.c (c_value_print_inner): Rewrite.
7283
4f412b6e
TT
72842020-03-13 Tom Tromey <tom@tromey.com>
7285
7286 * valprint.c (generic_value_print_complex): New function.
7287 (generic_value_print): Use it.
7288
f5354008
TT
72892020-03-13 Tom Tromey <tom@tromey.com>
7290
7291 * valprint.c (generic_val_print_float): Don't call
7292 val_print_scalar_formatted.
7293 (generic_val_print, generic_value_print): Update.
7294
3eec3b05
TT
72952020-03-13 Tom Tromey <tom@tromey.com>
7296
7297 * valprint.c (generic_value_print_char): New function
7298 (generic_value_print): Use it.
7299
fdddfccb
TT
73002020-03-13 Tom Tromey <tom@tromey.com>
7301
7302 * valprint.c (generic_value_print_int): New function.
7303 (generic_value_print): Use it.
7304
6dde7521
TT
73052020-03-13 Tom Tromey <tom@tromey.com>
7306
7307 * valprint.c (generic_value_print_bool): New function.
7308 (generic_value_print): Use it.
7309
4112d2e6
TT
73102020-03-13 Tom Tromey <tom@tromey.com>
7311
7312 * valprint.c (generic_val_print_func): Simplify.
7313 (generic_val_print, generic_value_print): Update.
7314
65786af6
TT
73152020-03-13 Tom Tromey <tom@tromey.com>
7316
7317 * valprint.c (generic_val_print_flags): Remove.
7318 (generic_val_print, generic_value_print): Update.
7319 (val_print_type_code_flags): Add original_value parameter.
7320
40f3ce18
TT
73212020-03-13 Tom Tromey <tom@tromey.com>
7322
7323 * valprint.c (generic_val_print): Update.
7324 (generic_value_print): Update.
7325 * valprint.c (generic_val_print_enum): Don't call
7326 val_print_scalar_formatted.
7327
2a5b130b
TT
73282020-03-13 Tom Tromey <tom@tromey.com>
7329
7330 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7331 * valprint.c (generic_value_print_ptr): New function.
7332
abc66ce9
TT
73332020-03-13 Tom Tromey <tom@tromey.com>
7334
7335 * valprint.c (generic_value_print): Rewrite.
7336
07a32858
TT
73372020-03-13 Tom Tromey <tom@tromey.com>
7338
7339 * p-valprint.c (pascal_object_print_value_fields)
7340 (pascal_object_print_value): New functions.
7341
64d64d3a
TT
73422020-03-13 Tom Tromey <tom@tromey.com>
7343
7344 * p-valprint.c (pascal_value_print_inner): Rewrite.
7345
6a95a1f5
TT
73462020-03-13 Tom Tromey <tom@tromey.com>
7347
7348 * f-valprint.c (f_value_print_innner): Rewrite.
7349
59fcdac6
TT
73502020-03-13 Tom Tromey <tom@tromey.com>
7351
7352 * m2-valprint.c (m2_print_unbounded_array): New overload.
7353 (m2_print_unbounded_array): Update.
7354 (m2_print_array_contents): Take a struct value.
7355 (m2_value_print_inner): Rewrite.
7356
d133c3e1
TT
73572020-03-13 Tom Tromey <tom@tromey.com>
7358
7359 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7360 (d_value_print_inner): New function.
7361 * d-lang.h (d_value_print_inner): Declare.
7362 * d-lang.c (d_language_defn): Use d_value_print_inner.
7363
23b0f06b
TT
73642020-03-13 Tom Tromey <tom@tromey.com>
7365
7366 * go-valprint.c (go_value_print_inner): New function.
7367 * go-lang.h (go_value_print_inner): Declare.
7368 * go-lang.c (go_language_defn): Use go_value_print_inner.
7369
5f56f7cb
TT
73702020-03-13 Tom Tromey <tom@tromey.com>
7371
7372 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7373 API.
7374 (rust_val_print): Rewrite.
7375 (rust_value_print_inner): New function, from rust_val_print.
7376 (rust_language_defn): Use rust_value_print_inner.
7377
26792ee0
TT
73782020-03-13 Tom Tromey <tom@tromey.com>
7379
7380 * ada-valprint.c (ada_value_print_inner): New function.
7381 * ada-lang.h (ada_value_print_inner): Declare.
7382 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7383
24051bbe
TT
73842020-03-13 Tom Tromey <tom@tromey.com>
7385
7386 * f-valprint.c (f_value_print_innner): New function.
7387 * f-lang.h (f_value_print_innner): Declare.
7388 * f-lang.c (f_language_defn): Use f_value_print_innner.
7389
c0941be6
TT
73902020-03-13 Tom Tromey <tom@tromey.com>
7391
7392 * p-valprint.c (pascal_value_print_inner): New function.
7393 * p-lang.h (pascal_value_print_inner): Declare.
7394 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7395
62c4663d
TT
73962020-03-13 Tom Tromey <tom@tromey.com>
7397
7398 * m2-valprint.c (m2_value_print_inner): New function.
7399 * m2-lang.h (m2_value_print_inner): Declare.
7400 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7401
62182190
TT
74022020-03-13 Tom Tromey <tom@tromey.com>
7403
7404 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7405 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7406 * c-valprint.c (c_value_print_inner): New function.
7407 * c-lang.h (c_value_print_inner): Declare.
7408 * c-lang.c (c_language_defn, cplus_language_defn)
7409 (asm_language_defn, minimal_language_defn): Use
7410 c_value_print_inner.
7411
1e592a8a
TT
74122020-03-13 Tom Tromey <tom@tromey.com>
7413
7414 * p-valprint.c (pascal_object_print_value_fields): Now static.
7415 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7416
7fe471e9
TT
74172020-03-13 Tom Tromey <tom@tromey.com>
7418
7419 * c-valprint.c (c_val_print_array): Simplify.
7420
d121c6ce
TT
74212020-03-13 Tom Tromey <tom@tromey.com>
7422
7423 * valprint.c (value_print_array_elements): New function.
7424 * valprint.h (value_print_array_elements): Declare.
7425
4dba70ee
TT
74262020-03-13 Tom Tromey <tom@tromey.com>
7427
7428 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7429 * mips-tdep.c (mips_print_register): Use
7430 value_print_scalar_formatted.
7431
4f9ae810
TT
74322020-03-13 Tom Tromey <tom@tromey.com>
7433
7434 * valprint.h (value_print_scalar_formatted): Declare.
7435 * valprint.c (value_print_scalar_formatted): New function.
7436
156bfec9
TT
74372020-03-13 Tom Tromey <tom@tromey.com>
7438
7439 * valprint.h (generic_value_print): Declare.
7440 * valprint.c (generic_value_print): New function.
7441
2b4e573d
TT
74422020-03-13 Tom Tromey <tom@tromey.com>
7443
7444 * valprint.c (do_val_print): Call la_value_print_inner, if
7445 available.
7446 * rust-lang.c (rust_language_defn): Update.
7447 * p-lang.c (pascal_language_defn): Update.
7448 * opencl-lang.c (opencl_language_defn): Update.
7449 * objc-lang.c (objc_language_defn): Update.
7450 * m2-lang.c (m2_language_defn): Update.
7451 * language.h (struct language_defn) <la_value_print_inner>: New
7452 member.
7453 * language.c (unknown_language_defn, auto_language_defn): Update.
7454 * go-lang.c (go_language_defn): Update.
7455 * f-lang.c (f_language_defn): Update.
7456 * d-lang.c (d_language_defn): Update.
7457 * c-lang.c (c_language_defn, cplus_language_defn)
7458 (asm_language_defn, minimal_language_defn): Update.
7459 * ada-lang.c (ada_language_defn): Update.
7460
a1f6a07c
TT
74612020-03-13 Tom Tromey <tom@tromey.com>
7462
7463 * c-valprint.c (c_value_print): Use common_val_print.
7464
410cf315
TT
74652020-03-13 Tom Tromey <tom@tromey.com>
7466
7467 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7468
72a45c93
TT
74692020-03-13 Tom Tromey <tom@tromey.com>
7470
7471 * f-valprint.c (f77_print_array_1, f_val_print): Use
7472 common_val_print.
7473
040f66bd
TT
74742020-03-13 Tom Tromey <tom@tromey.com>
7475
7476 * riscv-tdep.c (riscv_print_one_register_info): Use
7477 common_val_print.
7478
a6e05a6c
TT
74792020-03-13 Tom Tromey <tom@tromey.com>
7480
7481 * mi/mi-main.c (output_register): Use common_val_print.
7482
3444c526
TT
74832020-03-13 Tom Tromey <tom@tromey.com>
7484
7485 * infcmd.c (default_print_one_register_info): Use
7486 common_val_print.
7487
c2a44efe
TT
74882020-03-13 Tom Tromey <tom@tromey.com>
7489
7490 * valprint.h (common_val_print_checked): Declare.
7491 * valprint.c (common_val_print_checked): New function.
7492 * stack.c (print_frame_arg): Use common_val_print_checked.
7493
b0c26e99
TT
74942020-03-13 Tom Tromey <tom@tromey.com>
7495
7496 * valprint.c (do_val_print): New function, from val_print.
7497 (val_print): Use do_val_print.
7498 (common_val_print): Use do_val_print.
7499
ce3acbe9
TT
75002020-03-13 Tom Tromey <tom@tromey.com>
7501
7502 * valprint.c (value_print): Use scoped_value_mark.
7503
96c7f873
TV
75042020-03-13 Tom de Vries <tdevries@suse.de>
7505
7506 PR symtab/25646
7507 * psymtab.c (partial_symtab::partial_symtab): Don't set
7508 globals_offset and statics_offset. Push element onto
7509 current_global_psymbols and current_static_psymbols stacks.
7510 (concat): New function.
7511 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7512 element from current_global_psymbols and current_static_psymbols
7513 stacks. Concat popped elements to global_psymbols and
7514 static_symbols.
7515 (add_psymbol_to_list): Use current_global_psymbols and
7516 current_static_psymbols stacks.
7517 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7518 current_static_psymbols fields.
7519
6ba0a321
CB
75202020-03-12 Christian Biesinger <cbiesinger@google.com>
7521
7522 * corelow.c (sniff_core_bfd): Remove.
7523 (class core_target) <m_core_vec>: Remove.
7524 (core_target::core_target): Update.
7525 (core_file_fns): Remove.
7526 (deprecated_add_core_fns): Remove.
7527 (default_core_sniffer): Remove.
7528 (sniff_core_bfd): Remove.
7529 (default_check_format): Remove.
7530 (gdb_check_format): Remove.
7531 (core_target_open): Update.
7532 (core_target::get_core_register_section): Update.
7533 (get_core_registers_cb): Update.
7534 (core_target::fetch_registers): Update.
7535 * gdbcore.h (struct core_fns): Remove.
7536 (deprecated_add_core_fns): Remove.
7537 (default_core_sniffer): Remove.
7538 (default_check_format): Remove.
7539
227031b2
TT
75402020-03-12 Tom Tromey <tom@tromey.com>
7541
7542 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7543 CORE_ADDR.
7544 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7545
53807e9f
TT
75462020-03-12 Tom Tromey <tom@tromey.com>
7547
7548 * remote.c (remote_target::download_tracepoint)
7549 (remote_target::enable_tracepoint)
7550 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7551 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7552 sprintf_vma.
7553
64f25102
TT
75542020-03-12 Tom Tromey <tom@tromey.com>
7555
7556 * symfile-mem.c: Update CORE_ADDR size assert.
7557
272cd5a3
SM
75582020-03-12 Simon Marchi <simon.marchi@efficios.com>
7559
7560 * selftest.m4: Move to gdbsupport/.
7561 * acinclude.m4: Update path to selftest.m4.
7562
74cd3f9d
SM
75632020-03-12 Simon Marchi <simon.marchi@efficios.com>
7564
7565 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7566 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7567 gdbarch-selfselftests.c and selftest-arch.c.
7568 (SUBDIR_UNITTESTS_OBS): Rename to...
7569 (SELFTESTS_OBS): ... this.
7570 (COMMON_SFILES): Remove disasm-selftests.c and
7571 gdbarch-selftests.c.
7572 * configure.ac: Don't add selftest-arch.{c,o} to
7573 CONFIG_{SRCS,OBS}.
7574 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7575 preprocessor conditions.
7576
db6878ac
SM
75772020-03-12 Simon Marchi <simon.marchi@efficios.com>
7578
7579 * configure.ac: Don't source bfd/development.sh.
7580 * selftest.m4: Modify comment.
7581 * configure: Re-generate.
7582
4d696a5c
SM
75832020-03-12 Simon Marchi <simon.marchi@efficios.com>
7584
7585 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7586 not "true" or "false".
7587 * configure: Re-generate.
7588
8dd8e1c7
CB
75892020-03-12 Christian Biesinger <cbiesinger@google.com>
7590
7591 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7592 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7593 renamed to arm_nbsd_supply_gregset.
7594 (fetch_register): Update to call arm_nbsd_supply_gregset.
7595 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7596 (arm_netbsd_nat_target::fetch_registers): Update.
7597 (fetch_elfcore_registers): Removed.
7598 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7599 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7600 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7601 not require NetBSD system headers.
7602 (arm_nbsd_regset): New struct.
7603 (arm_nbsd_iterate_over_regset_sections): New function.
7604 (arm_netbsd_init_abi_common): Updated to call
7605 set_gdbarch_iterate_over_regset_sections.
7606 * arm-nbsd-tdep.h: New file.
7607
dd69bf7a
KB
76082020-03-11 Kevin Buettner <kevinb@redhat.com>
7609
7610 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7611 recursion.
7612
a0761e34
SM
76132020-03-11 Simon Marchi <simon.marchi@efficios.com>
7614
7615 * configure: Re-generate.
7616
e7a82140
TT
76172020-03-11 Tom Tromey <tromey@adacore.com>
7618
7619 * ada-typeprint.c (print_choices): Fix comment.
7620
dcc050c8
AB
76212020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7622
7623 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7624 previous item in the list, when the list has no items.
7625
1c33af77
TV
76262020-03-11 Tom de Vries <tdevries@suse.de>
7627
7628 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7629 PROP_LOCLIST handling code.
7630
8c95582d
AB
76312020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7632
7633 * buildsym-legacy.c (record_line): Pass extra parameter to
7634 record_line.
7635 * buildsym.c (buildsym_compunit::record_line): Take an extra
7636 parameter, reduce duplication in the line table, and record the
7637 is_stmt flag in the line table.
7638 * buildsym.h (buildsym_compunit::record_line): Add extra
7639 parameter.
7640 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7641 non-statement lines.
7642 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7643 this to the symtab builder.
7644 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7645 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7646 through to dwarf_record_line_1.
7647 * infrun.c (process_event_stop_test): When stepping, don't stop at
7648 a non-statement instruction, and only refresh the step info when
7649 we land in the middle of a line's range. Also add an extra
7650 comment.
7651 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7652 field.
7653 * record-btrace.c (btrace_find_line_range): Only record lines
7654 marked as is-statement.
7655 * stack.c (frame_show_address): Show the frame address if we are
7656 in a non-statement sal.
7657 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7658 (maintenance_print_one_line_table): Print a header for the is_stmt
7659 column, and include is_stmt information in the output.
7660 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7661 preference to non-statements.
7662 (find_pcs_for_symtab_line): Prefer is-statement entries.
7663 (find_line_common): Likewise.
7664 * symtab.h (struct linetable_entry): Add is_stmt field.
7665 (struct symtab_and_line): Likewise.
7666 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7667 arranging the line table.
7668
e4003a34
TV
76692020-03-07 Tom de Vries <tdevries@suse.de>
7670
7671 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7672 DIE.
7673
e8932576
TT
76742020-03-07 Tom Tromey <tom@tromey.com>
7675
7676 * valops.c (value_literal_complex): Remove obsolete comment.
7677 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7678 comment.
7679
29734269
SM
76802020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7681
7682 * infrun.h: Forward-declare thread_info.
7683 (set_step_info): Add thread_info parameter, add doc.
7684 * infrun.c (set_step_info): Add thread_info parameter, move doc
7685 to header.
7686 * infrun.c (process_event_stop_test): Pass thread to
7687 set_step_info call.
7688 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7689 set_step_info.
7690 (prepare_one_step): Add thread_info parameter, pass it to
7691 set_step_frame and prepare_one_step (recursive) call.
7692 (step_1): Pass thread to prepare_one_step call.
7693 (step_command_fsm::should_stop): Pass thread to
7694 prepare_one_step.
7695 (until_next_fsm): Pass thread to set_step_frame call.
7696 (finish_command): Pass thread to set_step_info call.
7697
b7d64b29
HD
76982020-03-06 Hannes Domani <ssbssa@yahoo.de>
7699
7700 * windows-tdep.c (windows_solib_create_inferior_hook):
7701 Check if inferior is running.
7702
09f2921c
TV
77032020-03-06 Tom de Vries <tdevries@suse.de>
7704
7705 * NEWS: Fix "the the".
7706 * ctfread.c: Same.
7707
fd760e79
TV
77082020-03-06 Tom de Vries <tdevries@suse.de>
7709
7710 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7711
20ea4a60
AB
77122020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7713
7714 * .dir-locals.el: Add a comment referencing the other copies of
7715 this file.
7716
0afbabf0
JB
77172020-03-05 John Baldwin <jhb@FreeBSD.org>
7718
7719 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7720 psargs.
7721
842806cb
TBA
77222020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7723
7724 * .gitattributes: New file.
7725
be1e3d3e
TT
77262020-03-04 Tom Tromey <tom@tromey.com>
7727
7728 * symmisc.c (print_symbol_bcache_statistics)
7729 (print_objfile_statistics): Update.
7730 * symfile.c (allocate_symtab): Use intern.
7731 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7732 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7733 macro_cache>: Remove.
7734 <string_cache>: New member.
7735 (struct objfile) <intern>: New methods.
7736 * elfread.c (elf_symtab_read): Use intern.
7737 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7738 (dwarf2_compute_name, dwarf2_physname)
7739 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7740 names.
7741 (guess_partial_die_structure_name): Update.
7742 (partial_die_info::fixup): Intern name.
7743 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7744 name.
7745 (dwarf2_name): Intern name. Update.
7746 * buildsym.c (buildsym_compunit::get_macro_table): Use
7747 string_cache.
7748
4e7625fd
TT
77492020-03-04 Tom Tromey <tom@tromey.com>
7750
7751 * jit.c (bfd_open_from_target_memory): Make "target" const.
7752 * corefile.c (gnutarget): Now const.
7753 * gdbcore.h (gnutarget): Now const.
7754
46f9f931
HD
77552020-03-04 Hannes Domani <ssbssa@yahoo.de>
7756
7757 * NEWS: Mention support for WOW64 processes.
7758 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7759 (amd64_windows_segment_register_p): Remove static.
7760 (_initialize_amd64_windows_nat): Update.
7761 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7762 * i386-windows-nat.c (context_offset): Update.
7763 (i386_mappings): Rename and remove static.
7764 (i386_windows_segment_register_p): Remove static.
7765 (_initialize_i386_windows_nat): Update.
7766 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7767 (STATUS_WX86_SINGLE_STEP): New macro.
7768 (EnumProcessModulesEx): New macro.
7769 (Wow64SuspendThread): New macro.
7770 (Wow64GetThreadContext): New macro.
7771 (Wow64SetThreadContext): New macro.
7772 (Wow64GetThreadSelectorEntry): New macro.
7773 (windows_set_context_register_offsets): Add static.
7774 (windows_set_segment_register_p): Likewise.
7775 (windows_add_thread): Adapt for WOW64 processes.
7776 (windows_fetch_one_register): Likewise.
7777 (windows_nat_target::fetch_registers): Likewise.
7778 (windows_store_one_register): Likewise.
7779 (display_selector): Likewise.
7780 (display_selectors): Likewise.
7781 (handle_exception): Likewise.
7782 (windows_continue): Likewise.
7783 (windows_nat_target::resume): Likewise.
7784 (windows_add_all_dlls): Likewise.
7785 (do_initial_windows_stuff): Likewise.
7786 (windows_nat_target::attach): Likewise.
7787 (windows_get_exec_module_filename): Likewise.
7788 (windows_nat_target::create_inferior): Likewise.
7789 (windows_xfer_siginfo): Likewise.
7790 (_initialize_loadable): Initialize Wow64SuspendThread,
7791 Wow64GetThreadContext, Wow64SetThreadContext,
7792 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7793 * windows-nat.h (windows_set_context_register_offsets):
7794 Remove declaration.
7795 (windows_set_segment_register_p): Likewise.
7796 (i386_windows_segment_register_p): Add declaration.
7797 (amd64_windows_segment_register_p): Likewise.
7798
440cf44e
LM
77992020-03-04 Luis Machado <luis.machado@linaro.org>
7800
7801 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7802 in "info registers" for AArch64/ARM.
7803
7804 The change caused "info registers" to not print GPR's.
7805
7806 gdb/ChangeLog:
7807
7808 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7809
7810 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7811 when reg->group is empty and reggroup is not.
7812
1009d92f
TT
78132020-03-03 Tom Tromey <tromey@adacore.com>
7814
7815 * dwarf2/frame.c (struct dwarf2_frame_cache)
7816 <checked_tailcall_bottom, entry_cfa_sp_offset,
7817 entry_cfa_sp_offset_p>: Remove members.
7818 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7819 (dwarf2_frame_prev_register): Don't call
7820 dwarf2_tailcall_sniffer_first.
7821 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7822 * frame-unwind.c (add_unwinder): New fuction.
7823 (frame_unwind_init): Use it. Add tailcall unwinder.
7824
5e5d66b6
AB
78252020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7826 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7827
7828 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7829 value should be printed as true.
7830
584cf46d
HD
78312020-03-03 Hannes Domani <ssbssa@yahoo.de>
7832
7833 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7834 (windows_init_abi): Set and use windows_so_ops.
7835
7b973adc
SDJ
78362020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7837
7838 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7839 when verifying if dealing with a convenience variable.
7840
bb7b70ab
LM
78412020-03-03 Luis Machado <luis.machado@linaro.org>
7842
7843 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7844
9822cb57
SM
78452020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7846
7847 * infrun.c (gdbarch_supports_displaced_stepping): New.
7848 (use_displaced_stepping): Break up conditions in smaller pieces.
7849 Use gdbarch_supports_displaced_stepping.
7850 (displaced_step_prepare_throw): Use
7851 gdbarch_supports_displaced_stepping.
7852
63e163f2
AB
78532020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7854
7855 * NEWS: Mention new behaviour of the history filename.
7856 * top.c (write_history_p): Add comment.
7857 (show_write_history_p): Add header comment, give a different
7858 message when history writing is on, but the history filename is
7859 empty.
7860 (history_filename): Add comment.
7861 (history_filename_empty): New function.
7862 (show_history_filename): Add header comment, give a different
7863 message when the filename is empty.
7864 (init_history): Compare history_filename against nullptr, and only
7865 read history if the filename is not empty.
7866 (set_history_filename): Add header comment, and only make
7867 non-empty filenames absolute.
7868 (init_main): Make the filename argument to 'set history filename'
7869 optional.
7870
81b86b97
CB
78712020-03-02 Christian Biesinger <cbiesinger@google.com>
7872
7873 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7874 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7875 (fetch_fp_register): Update.
7876 (fetch_fp_regs): Update.
7877 (store_fp_register): Update.
7878 (store_fp_regs): Update.
7879 (arm_netbsd_nat_target::read_description): New function.
7880 (fetch_elfcore_registers): Update.
7881
24ed6739
AB
78822020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7883
7884 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7885 general_thread if the stop reply is missing a thread-id.
7886 (remote_target::process_stop_reply): Use the first non-exited
7887 thread if the target didn't pass a thread-id.
7888 * infrun.c (do_target_wait): Move call to
7889 switch_to_inferior_no_thread to ....
7890 (do_target_wait_1): ... here.
7891
a84bb2a0
JT
78922020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7893
7894 * debuginfod-support.c: Include defs.h first.
7895
658dadf0
TV
78962020-02-28 Tom de Vries <tdevries@suse.de>
7897
7898 * symfile.c (set_initial_language): Use default language for lookup.
7899
4ebe4877
SM
79002020-02-28 Simon Marchi <simon.marchi@efficios.com>
7901
7902 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7903 reader variable, pass `this` to read_cutu_die_from_dwo.
7904
e5da1139
AM
79052020-02-27 Aaron Merey <amerey@redhat.com>
7906
7907 * source.c (open_source_file): Check for nullptr when computing
7908 srcpath.
7909
317f7127
TT
79102020-02-27 Tom Tromey <tromey@adacore.com>
7911
7912 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7913 member.
7914 (dwarf2_add_field): Don't update nfields.
7915 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7916
3104d9ee
AB
79172020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7918
7919 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7920 abs.
7921
b83470bf
TT
79222020-02-26 Tom Tromey <tom@tromey.com>
7923
7924 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7925 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7926 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7927 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7928 per_cu_data.
7929
edfe0a0c
TT
79302020-02-26 Tom Tromey <tom@tromey.com>
7931
7932 * dwarf2/index-write.c (psym_index_map): Change type.
7933 (add_address_entry_worker, write_one_signatured_type)
7934 (recursively_count_psymbols, recursively_write_psymbols)
7935 (class debug_names, psyms_seen_size, write_gdbindex)
7936 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7937
0d79cdc4
AM
79382020-02-26 Aaron Merey <amerey@redhat.com>
7939
7940 * Makefile.in: Handle optional debuginfod support.
7941 * NEWS: Update.
7942 * README: Add --with-debuginfod summary.
7943 * config.in: Regenerate.
7944 * configure: Regenerate.
7945 * configure.ac: Handle optional debuginfod support.
7946 * debuginfod-support.c: debuginfod helper functions.
7947 * debuginfod-support.h: Ditto.
7948 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7949 summary.
7950 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7951 when a dwz file cannot be found.
7952 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7953 debuginfo file cannot be found.
7954 * source.c (open_source_file): Query debuginfod servers when a
7955 source file cannot be found.
7956 * top.c (print_gdb_configuration): Include
7957 --{with,without}-debuginfod in the output.
7958
b65ce565
JG
79592020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7960
7961 * thread.c (thr_try_catch_cmd): Print thread name.
7962
d4c9a4f8
SM
79632020-02-26 Simon Marchi <simon.marchi@efficios.com>
7964
7965 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7966 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7967 dwarf2_fetch_die_type_sect_off): Move to...
7968 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7969 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7970 dwarf2_fetch_die_type_sect_off): ... here.
7971 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7972 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7973 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7974
0dce4280
TV
79752020-02-26 Tom de Vries <tdevries@suse.de>
7976
7977 PR gdb/25603
7978 * symfile.c (set_initial_language): Exit-early if
7979 language_mode == language_mode_manual.
7980
450a1bfc
SM
79812020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7982
7983 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7984 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7985 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7986
9e80cfa1
AB
79872020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7988
7989 * gdbtypes.c (create_array_type_with_stride): Handle negative
7990 array strides.
7991 * valarith.c (value_subscripted_rvalue): Likewise.
7992
09624f1f
LM
79932020-02-25 Luis Machado <luis.machado@linaro.org>
7994
7995 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7996
8cb5117c
SM
79972020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7998
7999 * loc.h (dwarf2_get_die_type): Move to...
8000 * read.h (dwarf2_get_die_type): ... here.
8001 * read.c (dwarf2_get_die_type): Move doc to header.
8002
c325c44e
JB
80032020-02-25 Joel Brobecker <brobecker@adacore.com>
8004
8005 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8006 'gnulib/Makefile.in' to the list.
8007
4ac93832
TT
80082020-02-24 Tom Tromey <tom@tromey.com>
8009
8010 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8011 Remove.
8012 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8013 XOBNEWVEC.
8014
197400e8
TT
80152020-02-24 Tom Tromey <tom@tromey.com>
8016
8017 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8018 New method.
8019 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8020 (dw2_do_instantiate_symtab, dw2_get_file_names)
8021 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8022
76935768
TT
80232020-02-24 Tom Tromey <tom@tromey.com>
8024
8025 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8026 make_scoped_restore.
8027 (dwarf2_psymtab::read_symtab): Don't clear
8028 reading_partial_symbols.
8029
a88ef40d
TV
80302020-02-24 Tom de Vries <tdevries@suse.de>
8031
8032 PR gdb/25592
8033 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8034
c9af6521
TV
80352020-02-24 Tom de Vries <tdevries@suse.de>
8036
8037 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8038 commands layout next/prev/regs.
8039
5707a07a
TT
80402020-02-22 Tom Tromey <tom@tromey.com>
8041
8042 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8043 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8044
3b0fb49e
TT
80452020-02-22 Tom Tromey <tom@tromey.com>
8046
8047 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8048
283be8bf
TT
80492020-02-22 Tom Tromey <tom@tromey.com>
8050
8051 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8052 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8053 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8054 * tui/tui.c (_initialize_tui): Add usage text.
8055
ca793b96
TT
80562020-02-22 Tom Tromey <tom@tromey.com>
8057
8058 * tui/tui-win.c (tui_set_focus_command)
8059 (tui_set_win_height_command): Use error_no_arg.
8060 (_initialize_tui_win): Update help text.
8061 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8062
432b5c40
TT
80632020-02-22 Tom Tromey <tom@tromey.com>
8064
8065 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8066 * tui/tui-disasm.h (struct tui_disasm_window)
8067 <display_start_addr>: Declare.
8068 * tui/tui-source.h (struct tui_source_window)
8069 <display_start_addr>: Declare.
8070 * tui/tui-winsource.h (struct tui_source_window_base)
8071 <show_source_line, display_start_addr>: New methods.
8072 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8073 Rename and move to protected section.
8074 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8075 (tui_source_window_base::do_erase_source_content): Update.
8076 (tui_source_window_base::show_source_line): Now a method.
8077 (tui_source_window_base::show_source_content)
8078 (tui_source_window_base::tui_source_window_base)
8079 (tui_source_window_base::rerender)
8080 (tui_source_window_base::refill)
8081 (tui_source_window_base::do_scroll_horizontal)
8082 (tui_source_window_base::set_is_exec_point_at)
8083 (tui_source_window_base::update_breakpoint_info)
8084 (tui_source_window_base::update_exec_info): Update.
8085 * tui/tui-source.c (tui_source_window::set_contents)
8086 (tui_source_window::showing_source_p)
8087 (tui_source_window::do_scroll_vertical)
8088 (tui_source_window::location_matches_p)
8089 (tui_source_window::line_is_displayed): Update.
8090 (tui_source_window::display_start_addr): New method.
8091 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8092 (tui_disasm_window::do_scroll_vertical)
8093 (tui_disasm_window::location_matches_p): Update.
8094 (tui_disasm_window::display_start_addr): New method.
8095
01b1af32
TT
80962020-02-22 Tom Tromey <tom@tromey.com>
8097
8098 * NEWS: Add entry for gdb.register_window_type.
8099 * tui/tui-layout.h (window_factory): New typedef.
8100 (tui_register_window): Declare.
8101 * tui/tui-layout.c (saved_tui_windows): New global.
8102 (tui_apply_current_layout): Use it.
8103 (tui_register_window): New function.
8104 * python/python.c (do_start_initialization): Call
8105 gdbpy_initialize_tui.
8106 (python_GdbMethods): Add "register_window_type" function.
8107 * python/python-internal.h (gdbpy_register_tui_window)
8108 (gdbpy_initialize_tui): Declare.
8109 * python/py-tui.c: New file.
8110 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8111
fc96d20b
TT
81122020-02-22 Tom Tromey <tom@tromey.com>
8113
8114 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8115
935c78c0
TT
81162020-02-22 Tom Tromey <tom@tromey.com>
8117
8118 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8119 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8120 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8121 (tui_set_win_focus_to): Move from tui-win.c.
8122
0240c8f1
TT
81232020-02-22 Tom Tromey <tom@tromey.com>
8124
8125 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8126 functions.
8127 (known_window_types): New global.
8128 (tui_get_window_by_name): Reimplement.
8129 (initialize_known_windows): New function.
8130 (validate_window_name): Rewrite.
8131 (_initialize_tui_layout): Call initialize_known_windows.
8132
fdb01f0c
TT
81332020-02-22 Tom Tromey <tom@tromey.com>
8134
8135 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8136 Remove constants.
8137 * tui/tui-winsource.h (struct tui_source_window_base)
8138 <tui_source_window_base>: Remove parameter.
8139 * tui/tui-winsource.c
8140 (tui_source_window_base::tui_source_window_base): Remove
8141 parameter.
8142 (tui_source_window_base::refill): Update.
8143 * tui/tui-stack.h (struct tui_locator_window)
8144 <tui_locator_window>: Update.
8145 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8146 Default the constructor.
8147 * tui/tui-regs.h (struct tui_data_item_window)
8148 <tui_data_item_window>: Default the constructor.
8149 (struct tui_data_window) <tui_data_window>: Likewise.
8150 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8151 Default the constructor.
8152 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8153 Default the constructor.
8154 <type>: Remove.
8155 (struct tui_win_info) <tui_win_info>: Default the constructor.
8156 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8157 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8158 Default the constructor.
8159
865a5aec
TT
81602020-02-22 Tom Tromey <tom@tromey.com>
8161
8162 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8163 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8164 * tui/tui-win.c (tui_resize_all): Don't call
8165 tui_delete_invisible_windows.
8166 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8167 done.
8168 (tui_set_layout): Update.
8169 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8170 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8171 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8172
e098d18c
TT
81732020-02-22 Tom Tromey <tom@tromey.com>
8174
8175 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8176 correctly.
8177
eb9c8874
TT
81782020-02-22 Tom Tromey <tom@tromey.com>
8179
8180 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8181
7eed1a8e
TT
81822020-02-22 Tom Tromey <tom@tromey.com>
8183
8184 * tui/tui-winsource.h (struct tui_source_window_iterator)
8185 <inner_iterator>: New etytypedef.
8186 <tui_source_window_iterator>: Take "end" parameter.
8187 <tui_source_window_iterator>: Take iterator.
8188 <operator*, advance>: Update.
8189 <m_iter>: Change type.
8190 <m_end>: New field.
8191 (struct tui_source_windows) <begin, end>: Update.
8192 * tui/tui-layout.c (tui_windows): New global.
8193 (tui_apply_current_layout): Clear tui_windows.
8194 (tui_layout_window::apply): Update tui_windows.
8195 * tui/tui-data.h (tui_windows): Declare.
8196 (all_tui_windows): Now inline function.
8197 (class tui_window_iterator, struct all_tui_windows): Remove.
8198
7c043ba6
TT
81992020-02-22 Tom Tromey <tom@tromey.com>
8200
8201 PR tui/17850:
8202 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8203 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8204 "height" argument.
8205 (class tui_layout_window) <get_sizes>: Likewise.
8206 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8207 argument.
8208 <get_sizes>: Add "height" argument.
8209 <m_vertical>: New field.
8210 * tui/tui-layout.c (tui_layout_split::clone): Update.
8211 (tui_layout_split::get_sizes): Add "height" argument.
8212 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8213 (tui_new_layout_command): Parse "-horizontal".
8214 (_initialize_tui_layout): Update help string.
8215 (tui_layout_split::specification): Add "-horizontal" when needed.
8216 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8217 argument.
8218 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8219 New methods.
8220
6bc56648
TT
82212020-02-22 Tom Tromey <tom@tromey.com>
8222
8223 * tui/tui-layout.h (enum tui_adjust_result): New.
8224 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8225 (class tui_layout_window) <adjust_size>: Return
8226 tui_adjust_result. Rewrite.
8227 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8228 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8229
c22fef7e
TT
82302020-02-22 Tom Tromey <tom@tromey.com>
8231
8232 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8233 parameter and return types.
8234 (class tui_layout_base) <specification>: Add "depth".
8235 (class tui_layout_window) <specification>: Add "depth".
8236 (class tui_layout_split) <specification>: Add "depth".
8237 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8238 and return types.
8239 (tui_new_layout_command): Parse sub-layouts.
8240 (_initialize_tui_layout): Update help string.
8241 (tui_layout_window::specification): Add "depth".
8242 (add_layout_command): Update.
8243
ee325b61
TT
82442020-02-22 Tom Tromey <tom@tromey.com>
8245
8246 * NEWS: Add "tui new-layout" item.
8247 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8248 Add new-layout command to help text.
8249 (validate_window_name): New function.
8250 (tui_new_layout_command): New function.
8251 (_initialize_tui_layout): Register "new-layout".
8252 (tui_layout_window::specification): New method.
8253 (tui_layout_window::specification): New method.
8254 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8255 method.
8256 (class tui_layout_window) <specification>: New method.
8257 (class tui_layout_split) <specification>: New method.
8258
416eb92d
TT
82592020-02-22 Tom Tromey <tom@tromey.com>
8260
8261 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8262 * tui/tui-win.c (window_name_completer): Update comment.
8263 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8264 Declare method.
8265 (class tui_layout_window) <replace_window>: Likewise.
8266 (class tui_layout_split) <replace_window>: Likewise.
8267 (tui_set_layout): Don't declare.
8268 (tui_set_initial_layout): Declare function.
8269 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8270 (asm_regs_layout): New globals.
8271 (tui_current_layout, show_layout): Remove.
8272 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8273 (find_layout, tui_apply_layout): New function.
8274 (layout_completer): Remove.
8275 (tui_next_layout): Reimplement.
8276 (tui_next_layout_command): New function.
8277 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8278 (tui_regs_layout): Reimplement.
8279 (tui_regs_layout_command): New function.
8280 (extract_display_start_addr): Rewrite.
8281 (next_layout, prev_layout): Remove.
8282 (tui_layout_window::replace_window): New method.
8283 (tui_layout_split::replace_window): New method.
8284 (destroy_layout): New function.
8285 (layout_list): New global.
8286 (add_layout_command): New function.
8287 (initialize_layouts): Update.
8288 (tui_layout_command): New function.
8289 (_initialize_tui_layout): Install "layout" commands.
8290 * tui/tui-data.h (enum tui_layout_type): Remove.
8291 (tui_current_layout): Don't declare.
8292
0dbc2fc7
TT
82932020-02-22 Tom Tromey <tom@tromey.com>
8294
8295 * tui/tui-regs.c (tui_reg_layout): Remove.
8296 (tui_reg_command): Use tui_regs_layout.
8297 * tui/tui-layout.h (tui_reg_command): Declare.
8298 * tui/tui-layout.c (tui_reg_command): New function.
8299
5afe342e
TT
83002020-02-22 Tom Tromey <tom@tromey.com>
8301
8302 * tui/tui.c (tui_rl_delete_other_windows): Call
8303 tui_remove_some_windows.
8304 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8305 Declare method.
8306 (class tui_layout_window) <remove_windows>: New method.
8307 (class tui_layout_split) <remove_windows>: Declare.
8308 (tui_remove_some_windows): Declare.
8309 * tui/tui-layout.c (tui_remove_some_windows): New function.
8310 (tui_layout_split::remove_windows): New method.
8311
427326a8
TT
83122020-02-22 Tom Tromey <tom@tromey.com>
8313
8314 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8315 * tui/tui-layout.h (tui_next_layout): Declare.
8316 * tui/tui-layout.c (tui_next_layout): New function.
8317
3fe12b6d
TT
83182020-02-22 Tom Tromey <tom@tromey.com>
8319
8320 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8321 correct coordinates.
8322
59b8b5d2
TT
83232020-02-22 Tom Tromey <tom@tromey.com>
8324
8325 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8326 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8327 DATA_WIN case.
8328
2a3d458b
TT
83292020-02-22 Tom Tromey <tom@tromey.com>
8330
8331 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8332 TUI_DISASM_WIN, not tui_win_list.
8333
3f0cbb04
TT
83342020-02-22 Tom Tromey <tom@tromey.com>
8335
8336 * valprint.c (generic_val_print_enum_1)
8337 (val_print_type_code_flags): Style member names.
8338 * rust-lang.c (val_print_struct, rust_print_enum)
8339 (rust_print_struct_def, rust_internal_print_type): Style member
8340 names.
8341 * p-valprint.c (pascal_object_print_value_fields): Style member
8342 names. Only call fprintf_symbol_filtered for static members.
8343 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8344 * f-valprint.c (f_val_print): Style member names.
8345 * f-typeprint.c (f_type_print_base): Style member names.
8346 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8347 call fprintf_symbol_filtered for static members.
8348 (cp_print_class_member): Style member names.
8349 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8350 member names.
8351 * ada-valprint.c (ada_print_scalar): Style enum names.
8352 (ada_val_print_enum): Likewise.
8353 * ada-typeprint.c (print_enum_type): Style enum names.
8354
d4d947ae
TT
83552020-02-21 Tom Tromey <tom@tromey.com>
8356
8357 * psympriv.h (struct partial_symtab): Update comment.
8358
e94e944b
TT
83592020-02-21 Tom Tromey <tromey@adacore.com>
8360
8361 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8362 type is CORE_ADDR.
8363
1eb73179
TV
83642020-02-21 Tom de Vries <tdevries@suse.de>
8365
8366 PR gdb/25534
8367 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8368 if dependencies[i]->user != NULL.
8369
4f180d53
AT
83702020-02-21 Ali Tamur <tamur@google.com>
8371
8372 * dwarf2/read.c (dwarf2_name): Add null check.
8373
22b6cd70
TT
83742020-02-20 Tom Tromey <tom@tromey.com>
8375
8376 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8377 ">=", in binary search.
8378 (dwarf2_find_containing_comp_unit): New overload.
8379 (run_test): New self-test.
8380 (_initialize_dwarf2_read): Register new test.
8381
bd0cf5a6
NC
83822020-02-20 Nelson Chu <nelson.chu@sifive.com>
8383
8384 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8385 * riscv-tdep.h: Likewise.
8386 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8387 rv32-only CSR.
8388 * features/riscv/64bit-csr.xml: Regenerated.
8389
3f702acd
SDJ
83902020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8391 Tom Tromey <tom@tromey.com>
8392
8393 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8394 of 'fputc_unfiltered'.
8395 (putchar_unfiltered): Call 'fputc_unfiltered'.
8396 (fputc_unfiltered): Call 'fputs_unfiltered'.
8397
d13c7322
AB
83982020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8399
8400 * config.in: Regenerate.
8401 * configure: Regenerate.
8402 * configure.ac: Add --with-python-libdir option.
8403 * main.c: Use WITH_PYTHON_LIBDIR.
8404
869d8950
TT
84052020-02-19 Tom Tromey <tom@tromey.com>
8406
8407 * symtab.c (general_symbol_info::compute_and_set_names): Use
8408 obstack_strndup. Simplify call to symbol_set_demangled_name.
8409
298e9637
SM
84102020-02-19 Simon Marchi <simon.marchi@efficios.com>
8411
8412 * dwarf2/read.c (allocate_signatured_type_table,
8413 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8414 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8415 Remove objfile parameter, update all callers.
8416
08410482
DE
84172020-02-19 Doug Evans <dje@google.com>
8418
8419 PR rust/25535
8420 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8421 rust_enum_variant calculation.
8422
dfdeeca1
TT
84232020-02-19 Tom Tromey <tromey@adacore.com>
8424
8425 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8426
2ef5453b
TT
84272020-02-19 Tom Tromey <tromey@adacore.com>
8428
8429 * ada-lang.c (cache_symbol): Use obstack_strdup.
8430
9f1528a1
AB
84312020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8432
8433 * configure: Regenerate.
8434
d3c22fa8
TT
84352020-02-19 Tom Tromey <tromey@adacore.com>
8436
8437 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8438 NULL check.
8439
bf84f706
MR
84402020-02-19 Maciej W. Rozycki <macro@wdc.com>
8441
8442 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8443
d1c9b20f
AB
84442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8445
8446 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8447 if GDBSERVER is not defined.
8448 (riscv_tdesc_cache): Likewise, also store const target_desc.
8449 (STATIC_IN_GDB): Define.
8450 (riscv_create_target_description): Update declaration with
8451 STATIC_IN_GDB.
8452 (riscv_lookup_target_description): New function, only define if
8453 GDBSERVER is not defined.
8454 * arch/riscv.h (riscv_create_target_description): Declare only
8455 when GDBSERVER is defined.
8456 (riscv_lookup_target_description): New declaration when GDBSERVER
8457 is not defined.
8458 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8459 (riscv_linux_read_features): ...this, and return
8460 riscv_gdbarch_features instead of target_desc.
8461 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8462 (riscv_linux_read_description): Rename to...
8463 (riscv_linux_read_features): ...this.
8464 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8465 Update to use riscv_gdbarch_features and
8466 riscv_lookup_target_description.
8467 * riscv-tdep.c (riscv_find_default_target_description): Use
8468 riscv_lookup_target_description instead of
8469 riscv_create_target_description.
8470
373d7ac0
SM
84712020-02-18 Simon Marchi <simon.marchi@efficios.com>
8472
8473 * valprint.c (generic_val_print_enum_1): When printing a flag
8474 enum with value 0 and there is no enumerator with value 0, print
8475 just "0" instead of "(unknown: 0x0)".
8476
b29a2df0
SM
84772020-02-18 Simon Marchi <simon.marchi@efficios.com>
8478
8479 * valprint.c (generic_val_print_enum_1): Print unknown part of
8480 flag enum in hex.
8481
6740f0cc
SM
84822020-02-18 Simon Marchi <simon.marchi@efficios.com>
8483
8484 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8485 flag enums to contain duplicate enumerators.
8486 * valprint.c (generic_val_print_enum_1): Update comment.
8487
edd45eb0
SM
84882020-02-18 Simon Marchi <simon.marchi@efficios.com>
8489
8490 * dwarf2/read.c: Include "count-one-bits.h".
8491 (update_enumeration_type_from_children): If an enumerator has
8492 multiple bits set, don't treat the enumeration as a "flag enum".
8493 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8494 of flag enums have 0 or 1 bit set.
8495
6d0cf446
BE
84962020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8497
8498 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8499 conversion.
8500 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8501 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8502 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8503 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8504 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8505
7001c1b7
SM
85062020-02-18 Simon Marchi <simon.marchi@efficios.com>
8507
8508 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8509
fdb61c6c
SM
85102020-02-14 Simon Marchi <simon.marchi@efficios.com>
8511
8512 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8513 displaced_step_closure_up.
8514 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8515 (struct displaced_step_closure_up):
8516 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8517 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8518 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8519 Likewise.
8520 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8521 * gdbarch.c, gdbarch.h: Re-generate.
8522 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8523 displaced_step_closure_up.
8524 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8525 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8526 * infrun.h (displaced_step_closure_up): New type alias.
8527 (struct displaced_step_inferior_state) <step_closure>: Change
8528 type to displaced_step_closure_up.
8529 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8530 displaced_step_closure_up.
8531 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8532
a4a38eb4
TT
85332020-02-14 Tom Tromey <tom@tromey.com>
8534
8535 * minidebug.c (gnu_debug_key): New global.
8536 (find_separate_debug_file_in_section): Use it.
8537
e8217e61
SM
85382020-02-14 Simon Marchi <simon.marchi@efficios.com>
8539
8540 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8541 std::unique_ptr.
8542 * gdbarch.c: Re-generate.
8543 * gdbarch.h: Re-generate.
8544 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8545 change.
8546 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8547 type to std::unique_ptr.
8548 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8549 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8550 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8551 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8552 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8553 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8554 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8555 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8556 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8557
d8d83535
SM
85582020-02-14 Simon Marchi <simon.marchi@efficios.com>
8559
8560 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8561 std::unique_ptr.
8562 (displaced_step_clear): Rename to...
8563 (displaced_step_reset): ... this. Just call displaced->reset ().
8564 (displaced_step_clear_cleanup): Rename to...
8565 (displaced_step_reset_cleanup): ... this.
8566 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8567 (displaced_step_fixup): Likewise.
8568 (resume_1): Likewise.
8569 (handle_inferior_event): Restore child's memory before calling
8570 displaced_step_fixup on the parent.
8571 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8572 to std::unique_ptr.
8573 <step_closure>: Change type to std::unique_ptr.
8574
5f661e03
SM
85752020-02-14 Simon Marchi <simon.marchi@efficios.com>
8576
8577 * arm-tdep.c: Include count-one-bits.h.
8578 (cleanup_block_store_pc): Use count_one_bits.
8579 (cleanup_block_load_pc): Use count_one_bits.
8580 (arm_copy_block_xfer): Use count_one_bits.
8581 (thumb2_copy_block_xfer): Use count_one_bits.
8582 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8583 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8584 (thumb_get_next_pcs_raw): Use count_one_bits.
8585 (arm_get_next_pcs_raw): Use count_one_bits_l.
8586 * arch/arm.c (bitcount): Remove.
8587 * arch/arm.h (bitcount): Remove.
8588
8084e579
TT
85892020-02-14 Tom Tromey <tromey@adacore.com>
8590
8591 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8592 Update.
8593 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8594 * dwarf2/loc.c (call_site_find_chain_1): Return
8595 unique_xmalloc_ptr.
8596 (call_site_find_chain): Likewise.
8597
258bf0ee
RB
85982020-02-14 Richard Biener <rguenther@suse.de>
8599
8600 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8601 on expression with division operators.
8602
f98a8458
AKS
86032020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8604
8605 * MAINTAINERS (Write After Approval): Adding myself.
8606
d1437c0e
TT
86072020-02-12 Tom Tromey <tom@tromey.com>
8608
8609 * event-loop.c (event_data, gdb_event, event_handler_func):
8610 Remove.
8611
3d4560f7
TT
86122020-02-12 Tom Tromey <tom@tromey.com>
8613
8614 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8615 (dwarf2_frame_objfile_data): Add comment.
8616 (find_comp_unit, set_comp_unit): New functions.
8617 (dwarf2_frame_find_fde): Use find_comp_unit.
8618 (dwarf2_build_frame_info): Use set_comp_unit.
8619
21982304
TT
86202020-02-12 Tom Tromey <tom@tromey.com>
8621
8622 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8623 (comp_unit): Don't initialize objfile.
8624 (execute_cfa_program): Add text_offset parameter.
8625 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8626 (dwarf2_frame_cache): Update.
8627 (dwarf2_build_frame_info): Don't set "objfile" member.
8628
4debb237
TT
86292020-02-12 Tom Tromey <tom@tromey.com>
8630
8631 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8632 (decode_frame_entry): Likewise.
8633 (dwarf2_build_frame_info): Update.
8634
0d404d44
TT
86352020-02-12 Tom Tromey <tom@tromey.com>
8636
8637 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8638 (decode_frame_entry_1): Use the comp_unit obstack.
8639
a7a3ae5c
TT
86402020-02-12 Tom Tromey <tom@tromey.com>
8641
8642 * dwarf2/frame.c (struct comp_unit): Add initializers and
8643 constructor.
8644 (dwarf2_frame_objfile_data): Store a comp_unit.
8645 (dwarf2_frame_find_fde): Update.
8646 (dwarf2_build_frame_info): Use "new".
8647
a9d65418
TT
86482020-02-12 Tom Tromey <tom@tromey.com>
8649
8650 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8651 (dwarf2_fde_table): Typedef for std::vector.
8652 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8653 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8654 (decode_frame_entry): Update.
8655 (dwarf2_build_frame_info): Use "new".
8656
7559c217
CB
86572020-02-12 Christian Biesinger <cbiesinger@google.com>
8658
8659 * arm-tdep.c (arm_gdbarch_init): Update.
8660 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8661 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8662 have_neon, is_m>: Change to bool.
8663
aeefc73c
CB
86642020-02-12 Christian Biesinger <cbiesinger@google.com>
8665
8666 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8667
d27b8e5f
TT
86682020-02-12 Tom Tromey <tom@tromey.com>
8669
8670 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8671
cd5900f3
HD
86722020-02-12 Hannes Domani <ssbssa@yahoo.de>
8673
8674 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8675 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8676
f056b22b
TT
86772020-02-11 Tom Tromey <tom@tromey.com>
8678
8679 * psymtab.h: Update comment.
8680
f92ff6b5
TT
86812020-02-11 Tom Tromey <tom@tromey.com>
8682
8683 * gdb_obstack.h (struct auto_obstack): Use
8684 DISABLE_COPY_AND_ASSIGN.
8685
3fd6912b
TT
86862020-02-11 Tom Tromey <tom@tromey.com>
8687
8688 * dwarf2/frame.h (struct objfile): Don't forward declare.
8689
69ed9b74
CB
86902020-02-11 Christian Biesinger <cbiesinger@google.com>
8691
8692 * cris-tdep.c (cris_supply_gregset): Change signature to match
8693 what struct regset expects.
8694 (cris_regset): New struct.
8695 (fetch_core_registers): Remove.
8696 (cris_iterate_over_regset_sections): New function.
8697 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8698 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8699
bda874f6
CB
87002020-02-11 Christian Biesinger <cbiesinger@google.com>
8701
8702 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8703 registers.
8704
754e1564
CB
87052020-02-11 Christian Biesinger <cbiesinger@google.com>
8706
8707 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8708
8ddd8e0e
SM
87092020-02-11 Simon Marchi <simon.marchi@efficios.com>
8710
8711 * configure: Re-generate.
8712
898e7f60
SM
87132020-02-11 Simon Marchi <simon.marchi@efficios.com>
8714
8715 * configure: Re-generate.
8716
58df732b
SM
87172020-02-11 Simon Marchi <simon.marchi@efficios.com>
8718
8719 * acinclude: Update warning.m4 path.
8720 * warning.m4: Move to gdbsupport.
8721
da5bd37e
TT
87222020-02-11 Tom Tromey <tromey@adacore.com>
8723
8724 * remote.c (remote_console_output): Update.
8725 * printcmd.c (printf_command): Update.
8726 * event-loop.c (gdb_wait_for_event): Update.
8727 * linux-nat.c (sigchld_handler): Update.
8728 * remote-sim.c (gdb_os_write_stdout): Update.
8729 (gdb_os_flush_stdout): Update.
8730 (gdb_os_flush_stderr): Update.
8731 (gdb_os_write_stderr): Update.
8732 * exceptions.c (print_exception): Update.
8733 * remote-fileio.c (remote_fileio_func_read): Update.
8734 (remote_fileio_func_write): Update.
8735 * tui/tui.c (tui_enable): Update.
8736 * tui/tui-interp.c (tui_interp::init): Update.
8737 * utils.c (init_page_info): Update.
8738 (putchar_unfiltered, fputc_unfiltered): Update.
8739 (gdb_flush): Update.
8740 (emit_style_escape): Update.
8741 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8742 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8743 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8744 (stderr_file::write): Update.
8745 (stderr_file::puts): Update.
8746 * ui-file.h (ui_file_isatty, ui_file_write)
8747 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8748 (ui_file_puts): Don't declare.
8749
85f0dd3c
TV
87502020-02-10 Tom de Vries <tdevries@suse.de>
8751
8752 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8753 sentinel to char *.
8754
2e927613
TV
87552020-02-09 Tom de Vries <tdevries@suse.de>
8756
8757 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8758 filename if it matches "<artificial>".
8759
6bafc845
HD
87602020-02-09 Hannes Domani <ssbssa@yahoo.de>
8761
8762 * windows-tdep.c (struct enum_value_name): New struct.
8763 (create_enum): New function.
8764 (windows_get_siginfo_type): Create and use enum types.
8765
7928d571
HD
87662020-02-09 Hannes Domani <ssbssa@yahoo.de>
8767
8768 * NEWS: Mention $_siginfo support for Windows.
8769 * windows-nat.c (handle_exception): Set siginfo_er.
8770 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8771 (windows_xfer_siginfo): New function.
8772 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8773 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8774 (init_windows_gdbarch_data): New function.
8775 (get_windows_gdbarch_data): New function.
8776 (windows_get_siginfo_type): New function.
8777 (windows_init_abi): Register windows_get_siginfo_type.
8778 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8779
6751ebae
TT
87802020-02-08 Tom Tromey <tom@tromey.com>
8781
8782 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8783 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8784 <keep>: Declare method.
8785 <m_keep>: Remove member.
8786 <~cutu_reader>: Remove.
8787 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8788 (cutu_reader::cutu_reader): Update.
8789 (cutu_reader::keep): Rename from ~cutu_reader.
8790 (process_psymtab_comp_unit, build_type_psymtabs_1)
8791 (process_skeletonless_type_unit, load_partial_comp_unit)
8792 (load_full_comp_unit, dwarf2_read_addr_index)
8793 (read_signatured_type): Update.
8794
135f5437
TT
87952020-02-08 Tom Tromey <tom@tromey.com>
8796
8797 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8798 "want_partial_unit" parameter.
8799 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8800 Inline check for DW_TAG_partial_unit.
8801 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8802
9f66ff1c
TT
88032020-02-08 Tom Tromey <tom@tromey.com>
8804
8805 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8806 read.c.
8807 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8808 read.c.
8809
c8a7a66f
TT
88102020-02-08 Tom Tromey <tom@tromey.com>
8811
8812 * dwarf2/read.c (read_address): Move to comp-unit.c.
8813 (dwarf2_rnglists_process, dwarf2_ranges_process)
8814 (read_attribute_value, dwarf_decode_lines_1)
8815 (var_decode_location, decode_locdesc): Update.
8816 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8817 read.c. Remove "cu" parameter.
8818 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8819 method.
8820
8266302d
TT
88212020-02-08 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8824 (read_indirect_line_string): Update.
8825 * dwarf2/comp-unit.c (read_offset): Remove.
8826 (read_comp_unit_head): Update.
8827 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8828 method.
8829 (read_offset): Don't declare.
8830
4057dfde
TT
88312020-02-08 Tom Tromey <tom@tromey.com>
8832
8833 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8834 * dwarf2/read.c (struct comp_unit_head): Move to
8835 dwarf2/comp-unit.h.
8836 (enum class rcuh_kind): Move to comp-unit.h.
8837 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8838 (read_comp_unit_head, error_check_comp_unit_head)
8839 (read_and_check_comp_unit_head): Move to comp-unit.c.
8840 (read_offset, dwarf_unit_type_name): Likewise.
8841 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8842 (cutu_reader::cutu_reader, read_call_site_scope)
8843 (find_partial_die, follow_die_offset): Update.
8844 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8845
24aa364d
TT
88462020-02-08 Tom Tromey <tom@tromey.com>
8847
8848 * dwarf2/read.c (read_offset_1): Move to leb.c.
8849 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8850 (dwarf_decode_macro_bytes): Update.
8851 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8852 * dwarf2/leb.h (read_offset): Declare.
8853
2c7d5afc
TT
88542020-02-08 Tom Tromey <tom@tromey.com>
8855
8856 * dwarf2/read.c (dwarf2_section_size): Remove.
8857 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8858 Update.
8859 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8860
4075cb26
TT
88612020-02-08 Tom Tromey <tom@tromey.com>
8862
8863 * dwarf2/read.c (read_initial_length): Move to leb.c.
8864 * dwarf2/leb.h (read_initial_length): Declare.
8865 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8866 handle_nonstd parameter.
8867 * dwarf2/frame.c (read_initial_length): Remove.
8868 (decode_frame_entry_1): Update.
8869
09ba997f
TT
88702020-02-08 Tom Tromey <tom@tromey.com>
8871
8872 * dwarf2/loc.c (dwarf2_find_location_expression)
8873 (dwarf_evaluate_loc_desc::get_tls_address)
8874 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8875 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8876 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8877 (dwarf2_compile_property_to_c)
8878 (dwarf2_loc_desc_get_symbol_read_needs)
8879 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8880 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8881 (loclist_describe_location, loclist_tracepoint_var_ref)
8882 (loclist_generate_c_location): Update.
8883 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8884 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8885 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8886 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8887 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8888 (dwarf2_per_cu_data::addr_size)
8889 (dwarf2_per_cu_data::ref_addr_size)
8890 (dwarf2_per_cu_data::text_offset)
8891 (dwarf2_per_cu_data::addr_type): Now methods.
8892 (per_cu_header_read_in): Make per_cu "const".
8893 (dwarf2_version): Remove.
8894 (dwarf2_per_cu_data::int_type): Now a method.
8895 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8896 (set_die_type, read_array_type, read_subrange_index_type)
8897 (read_tag_string_type, read_subrange_type): Update.
8898 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8899 offset_size, ref_addr_size, text_offset, addr_type, version,
8900 objfile, int_type, addr_sized_int_type>: Declare methods.
8901
96c738c0
TT
89022020-02-08 Tom Tromey <tom@tromey.com>
8903
8904 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8905 Move earlier.
8906
8fdd972c
TT
89072020-02-08 Tom Tromey <tom@tromey.com>
8908
8909 * dwarf2/read.h (dwarf_line_debug): Declare.
8910 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8911 * dwarf2/read.c: Move line_header code to new files.
8912 (dwarf_line_debug): No longer static.
8913 * dwarf2/line-header.c: New file.
8914 * dwarf2/line-header.h: New file.
8915
03075812
TT
89162020-02-08 Tom Tromey <tom@tromey.com>
8917
8918 * dwarf2/read.c (struct line_header) <file_full_name,
8919 file_file_name>: Return unique_xmalloc_ptr.
8920 (line_header::file_file_name): Update.
8921 (line_header::file_full_name): Update.
8922 (dw2_get_file_names_reader): Update.
8923 (macro_start_file): Update.
8924
bb822404
TT
89252020-02-08 Tom Tromey <tom@tromey.com>
8926
8927 * dwarf2/read.c (struct line_header) <file_full_name,
8928 file_file_name>: Declare methods.
8929 (dw2_get_file_names_reader): Update.
8930 (file_file_name): Now a method.
8931 (file_full_name): Likewise.
8932 (macro_start_file): Update.
8933
009b64fc
TT
89342020-02-08 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2/read.c (dwarf_always_disassemble)
8937 (show_dwarf_always_disassemble): Move to loc.c.
8938 (_initialize_dwarf2_read): Move "always-disassemble" registration
8939 to loc.c.
8940 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8941 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8942 static.
8943 (show_dwarf_always_disassemble): Move from read.c.
8944 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8945
5895093f
TT
89462020-02-08 Tom Tromey <tom@tromey.com>
8947
8948 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8949 (create_quick_file_names_table): Return htab_up.
8950 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8951 Update.
8952 * dwarf2/read.h (struct dwarf2_per_objfile)
8953 <quick_file_names_table>: Now htab_up.
8954
b3b32279
TT
89552020-02-08 Tom Tromey <tom@tromey.com>
8956
8957 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8958
1d33d811
TT
89592020-02-08 Tom Tromey <tom@tromey.com>
8960
8961 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8962 Rewrite.
8963 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8964 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8965 (abbrev_table::abbrev_table): No longer inline.
8966 (ABBREV_HASH_SIZE): Remove.
8967 (abbrev_table::m_abbrevs): Now an htab_up.
8968
86de1d91
TT
89692020-02-08 Tom Tromey <tom@tromey.com>
8970
8971 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8972 (cutu_reader): Update.
8973 (build_type_psymtabs_1): Update.
8974 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8975 (abbrev_table::alloc_abbrev): Update.
8976 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8977 (abbrev_table::read): New static method, renamed from
8978 abbrev_table_read_table.
8979 (abbrev_table::alloc_abbrev)
8980 (abbrev_table::add_abbrev): Now private.
8981 (abbrev_table::abbrev_table): Now private.
8982 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8983
0335378b
TT
89842020-02-08 Tom Tromey <tom@tromey.com>
8985
8986 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8987 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8988 htab_up.
8989
48b490f2
TT
89902020-02-08 Tom Tromey <tom@tromey.com>
8991
8992 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8993 htab_up.
8994 (lookup_dwo_unit_in_dwp): Update.
8995 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8996 on obstack.
8997
bc68fb19
TT
89982020-02-08 Tom Tromey <tom@tromey.com>
8999
9000 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9001 obstack.
9002
d15acc42
TT
90032020-02-08 Tom Tromey <tom@tromey.com>
9004
9005 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9006 line_header_hash.
9007 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9008 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9009 Change type to htab_up.
9010
eaa5fa8b
TT
90112020-02-08 Tom Tromey <tom@tromey.com>
9012
9013 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9014 htab_up. Don't allocate on obstack.
9015 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9016 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9017 Change type to htab_up.
9018
b0b6a987
TT
90192020-02-08 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9022 Change type to htab_up.
9023 * dwarf2/read.c (create_signatured_type_table_from_index)
9024 (create_signatured_type_table_from_debug_names)
9025 (create_all_type_units, add_type_unit)
9026 (lookup_dwo_signatured_type, lookup_signatured_type)
9027 (process_skeletonless_type_unit): Update.
9028 (create_debug_type_hash_table, create_debug_types_hash_table):
9029 Change type of types_htab.
9030 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9031 htab_up. Don't allocate on obstack.
9032 (create_cus_hash_table): Change type of cus_htab parameter.
9033 (struct dwo_file) <cus, tus>: Now htab_up.
9034 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9035 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9036 (queue_and_load_all_dwo_tus): Update.
9037 * dwarf2/index-write.c (write_gdbindex): Update.
9038 (write_debug_names): Update.
9039
39856def
TT
90402020-02-08 Tom Tromey <tom@tromey.com>
9041
9042 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9043 dwarf2/read.c. Remove "next" member. Add constructor ntad
9044 destructor.
9045 (struct dwarf2_per_objfile) <queue>: New member.
9046 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9047 dwarf2/read.h.
9048 (dwarf2_queue, dwarf2_queue_tail): Remove.
9049 (class dwarf2_queue_guard): Add parameter to constructor. Use
9050 DISABLE_COPY_AND_ASSIGN.
9051 <m_per_objfile>: New member.
9052 <~dwarf2_queue_guard>: Rewrite.
9053 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9054 Update.
9055 (~dwarf2_queue_item): New.
9056
3e225074
TT
90572020-02-08 Tom Tromey <tom@tromey.com>
9058
9059 * dwarf2/read.c (struct die_info) <has_children>: New member.
9060 (dw2_get_file_names_reader): Remove has_children.
9061 (dw2_get_file_names): Update.
9062 (read_cutu_die_from_dwo): Remove has_children.
9063 (cutu_reader::init_tu_and_read_dwo_dies)
9064 (cutu_reader::cutu_reader): Update.
9065 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9066 Remove has_children.
9067 (build_type_psymtabs_1, process_skeletonless_type_unit)
9068 (load_partial_comp_unit, load_full_comp_unit): Update.
9069 (create_dwo_cu_reader): Remove has_children.
9070 (create_cus_hash_table, read_die_and_children): Update.
9071 (read_full_die_1,read_full_die): Remove has_children.
9072 (read_signatured_type): Update.
9073 (class cutu_reader) <has_children>: Remove.
9074
82ca8957
TT
90752020-02-08 Tom Tromey <tom@tromey.com>
9076
9077 * dwarf2/expr.c: Rename from dwarf2expr.c.
9078 * dwarf2/expr.h: Rename from dwarf2expr.h.
9079 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9080 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9081 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9082 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9083 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9084 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9085 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9086 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9087 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9088 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9089 * dwarf2/loc.c: Rename from dwarf2loc.c.
9090 * dwarf2/loc.h: Rename from dwarf2loc.h.
9091 * dwarf2/read.c: Rename from dwarf2read.c.
9092 * dwarf2/read.h: Rename from dwarf2read.h.
9093 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9094 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9095 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9096 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9097 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9098 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9099 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9100 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9101 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9102 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9103 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9104 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9105 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9106 Update.
9107 * Makefile.in (COMMON_SFILES): Update.
9108 (HFILES_NO_SRCDIR): Update.
9109
9e35d499
TT
91102020-02-08 Tom Tromey <tom@tromey.com>
9111
9112 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9113 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9114
1eba2311
TT
91152020-02-08 Tom Tromey <tom@tromey.com>
9116
9117 * dwarf2read.h (struct die_info): Don't declare.
9118
e41c2da2
TT
91192020-02-08 Tom Tromey <tom@tromey.com>
9120
9121 * dwarf2read.h (die_info_ptr): Remove typedef.
9122
4fc6c0d5
TT
91232020-02-08 Tom Tromey <tom@tromey.com>
9124
9125 * dwarf2read.c (read_call_site_scope)
9126 (handle_data_member_location, dwarf2_add_member_fn)
9127 (mark_common_block_symbol_computed, read_common_block)
9128 (attr_to_dynamic_prop, partial_die_info::read)
9129 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9130 (dwarf2_symbol_mark_computed, set_die_type): Update.
9131 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9132 method.
9133 (attr_form_is_block): Don't declare.
9134 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9135
cd6c91b4
TT
91362020-02-08 Tom Tromey <tom@tromey.com>
9137
9138 * dwarf2read.c (dwarf2_find_base_address, )
9139 (read_call_site_scope, rust_containing_type)
9140 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9141 (handle_data_member_location, dwarf2_add_member_fn)
9142 (get_alignment, read_structure_type, process_structure_scope)
9143 (mark_common_block_symbol_computed, read_common_block)
9144 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9145 (partial_die_info::read, read_attribute_value, new_symbol)
9146 (lookup_die_type, dwarf2_get_ref_die_offset)
9147 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9148 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9149 (dwarf2_symbol_mark_computed): Update.
9150 * dwarf2/attribute.h (struct attribute) <value_as_address,
9151 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9152 methods.
9153 (value_as_address, attr_form_is_section_offset)
9154 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9155 * dwarf2/attribute.c (attribute::value_as_address)
9156 (attribute::form_is_section_offset, attribute::form_is_constant)
9157 (attribute::form_is_ref): Now methods.
9158
162dce55
TT
91592020-02-08 Tom Tromey <tom@tromey.com>
9160
9161 * dwarf2read.c (struct attribute, DW_STRING)
9162 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9163 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9164 (attr_form_is_block, attr_form_is_section_offset)
9165 (attr_form_is_constant, attr_form_is_ref): Move.
9166 * dwarf2/attribute.h: New file.
9167 * dwarf2/attribute.c: New file, from dwarf2read.c.
9168 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9169
3054dd54
TT
91702020-02-08 Tom Tromey <tom@tromey.com>
9171
9172 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9173 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9174 Move.
9175 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9176 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9177 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9178 abbrev.c.
9179 * dwarf2/abbrev.h: New file.
9180 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9181 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9182
96b79293
TT
91832020-02-08 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9186 (dwarf2_section_size, dwarf2_get_section_info)
9187 (create_signatured_type_table_from_debug_names)
9188 (create_addrmap_from_aranges, read_debug_names_from_section)
9189 (get_gdb_index_contents_from_section, read_comp_unit_head)
9190 (error_check_comp_unit_head, read_abbrev_offset)
9191 (create_debug_type_hash_table, init_cu_die_reader)
9192 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9193 (read_comp_units_from_section, create_cus_hash_table)
9194 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9195 (create_dwp_v2_section, dwarf2_rnglists_process)
9196 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9197 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9198 (read_indirect_string_from_dwz, read_addr_index_1)
9199 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9200 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9201 (fill_in_loclist_baton): Update.
9202 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9203 get_containing_section, get_bfd_owner, get_bfd_section,
9204 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9205 (dwarf2_read_section, get_section_name, get_section_file_name)
9206 (get_containing_section, get_section_bfd_owner)
9207 (get_section_bfd_section, get_section_name, get_section_file_name)
9208 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9209 declare.
9210 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9211 (dwarf2_section_info::get_bfd_owner)
9212 (dwarf2_section_info::get_bfd_section)
9213 (dwarf2_section_info::get_name)
9214 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9215 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9216 (dwarf2_section_info::read): Now methods.
9217 * dwarf-index-write.c (class debug_names): Update.
9218
2c86cff9
TT
92192020-02-08 Tom Tromey <tom@tromey.com>
9220
9221 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9222 Move to dwarf2/section.h.
9223 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9224 (get_section_bfd_section, get_section_name)
9225 (get_section_file_name, get_section_id, get_section_flags)
9226 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9227 dwarf2/section.c.
9228 * dwarf2/section.h: New file.
9229 * dwarf2/section.c: New file, from dwarf2read.c.
9230 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9231
f4382c45
TT
92322020-02-08 Tom Tromey <tom@tromey.com>
9233
9234 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9235 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9236 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9237 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9238 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9239 * dwarf2/leb.h: New file, from dwarf2read.c.
9240 * dwarf2/leb.c: New file, from dwarf2read.c.
9241 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9242 Remove.
9243 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9244 (COMMON_SFILES): Add dwarf2/leb.c.
9245
01840b7a
JB
92462020-02-08 Joel Brobecker <brobecker@adacore.com>
9247
9248 GDB 9.1 released.
9249
dfcb27e4
IB
92502020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9251
9252 PR gdb/25190:
aac66a4c
SM
9253 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9254 * gdb/remote.c (remote_console_output): Update.
9255 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9256 (ui_file_puts): ...this.
9257 * gdb/ui-file.h (ui_file_puts): Add declaration.
9258 * gdb/utils.c (emit_style_escape): Update.
9259 (flush_wrap_buffer): Update.
9260 (fputs_maybe_filtered): Update.
9261 (fputs_unfiltered): Add function.
dfcb27e4 9262
faa17681
IB
92632020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9264
aac66a4c
SM
9265 * gdb/event-loop.c (gdb_wait_for_event): Update.
9266 * gdb/printcmd.c (printf_command): Update.
9267 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9268 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9269 (gdb_os_flush_stderr): Update.
9270 * gdb/remote.c (remote_console_output): Update.
9271 * gdb/ui-file.c (gdb_flush): Rename to...
9272 (ui_file_flush): ...this.
9273 (stderr_file::write): Update.
9274 (stderr_file::puts): Update.
9275 * gdb/ui-file.h (gdb_flush): Rename to...
9276 (ui_file_flush): ...this.
9277 * gdb/utils.c (gdb_flush): Add function.
9278 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9279
5abbbe1d
TT
92802020-02-07 Tom Tromey <tromey@adacore.com>
9281
9282 PR breakpoints/24915:
9283 * source.c (find_and_open_source): Do not check basenames_may_differ.
9284
919adfe8
TT
92852020-02-07 Tom Tromey <tom@tromey.com>
9286
9287 * README: Update gdbserver documentation.
9288 * gdbserver: Move to top level.
9289 * configure.tgt (build_gdbserver): Remove.
9290 * configure.ac: Remove --enable-gdbserver.
9291 * configure: Rebuild.
9292 * Makefile.in (distclean): Don't mention gdbserver.
9293
1d5d29e7
SV
92942020-02-06 Shahab Vahedi <shahab@synopsys.com>
9295
9296 * source-cache.c (source_cache::ensure): Surround
9297 get_plain_source_lines with a try/catch.
9298 (source_cache::get_line_charpos): Get rid of try/catch
9299 and only check for the return value of "ensure".
9300 * tui/tui-source.c (tui_source_window::set_contents):
9301 Simplify "nlines" calculation.
9302
6eb1129c
SV
93032020-02-06 Shahab Vahedi <shahab@synopsys.com>
9304
9305 * MAINTAINERS (Write After Approval): Add myself.
9306
c6a42d11
CB
93072020-02-05 Christian Biesinger <cbiesinger@google.com>
9308
9309 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9310 function call.
9311
c8ecdda6
CB
93122020-02-05 Christian Biesinger <cbiesinger@google.com>
9313
9314 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9315
f6480e70
MR
93162020-02-05 Maciej W. Rozycki <macro@wdc.com>
9317
9318 * nat/riscv-linux-tdesc.h: New file.
9319 * nat/riscv-linux-tdesc.c: New file, taking code from...
9320 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9321 ... here.
9322 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9323 NATDEPFILES.
9324
dcc9fbc6
AB
93252020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9326
9327 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9328 we don't set the fake simulator ptid to the null_ptid.
9329
719546c4
SM
93302020-02-03 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9333 * gdbthread.h (class thread_info) <resumed>: Likewise.
9334 * infrun.c (resume_1): Likewise.
9335 (proceed): Likewise.
9336 (infrun_thread_stop_requested): Likewise.
9337 (stop_all_threads): Likewise.
9338 (handle_inferior_event): Likewise.
9339 (restart_threads): Likewise.
9340 (finish_step_over): Likewise.
9341 (keep_going_stepped_thread): Likewise.
9342 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9343 (linux_handle_extended_wait): Likewise.
9344 * record-btrace.c (get_thread_current_frame_id): Likewise.
9345 * record-full.c (record_full_wait_1): Likewise.
9346 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9347 * target.c (target_resume): Likewise.
9348 * thread.c (set_running_thread): Likewise.
9349
e409c542
AKS
93502020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9351
9352 * f-valprint.c (f77_print_array_1): Changed datatype of index
9353 variable to LONGEST from int to enable it to contain bound
9354 values correctly.
9355
ee98c0da
MR
93562020-02-03 Maciej W. Rozycki <macro@wdc.com>
9357
9358 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9359 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9360 offsets according to FLEN determined.
9361 (riscv_linux_nat_target::read_description): Determine FLEN
9362 dynamically.
9363 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9364 according to FLEN determined.
9365 (riscv_linux_nat_target::store_registers): Likewise.
9366
aa66aac4
SV
93672020-02-01 Shahab Vahedi <shahab@synopsys.com>
9368
9369 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9370 when reg->group is empty and reggroup is not.
9371
fd9faca8
TT
93722020-01-31 Tom Tromey <tromey@adacore.com>
9373
9374 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9375 Call beneath target's mourn_inferior after unpushing.
9376
42330a68
AB
93772020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9378
9379 PR tui/9765
9380 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9381 have enough lines to fill the screen, still return the lowest
9382 address we found.
9383
7a27a45b
AB
93842020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9385
9386 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9387 '-', '<', and '>' commands.
9388
c47f70e2
PA
93892020-01-29 Pedro Alves <palves@redhat.com>
9390 Sergio Durigan Junior <sergiodj@redhat.com>
9391
9392 * infcmd.c (construct_inferior_arguments): Assert that
9393 'argc' is greater than 0.
9394
5133a315
LM
93952020-01-29 Luis Machado <luis.machado@linaro.org>
9396
9397 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9398 (BRK_INSN_MASK): Define to 0xd4200000.
9399 (aarch64_program_breakpoint_here_p): New function.
9400 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9401 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9402 breakpoint.c.
9403 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9404 breakpoint.h
9405 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9406 call gdbarch_program_breakpoint_here_p.
9407 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9408 default_program_breakpoint_here_p, changed return type to bool and
9409 simplified.
9410 * breakpoint.h (program_breakpoint_here): Moved prototype to
9411 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9412 return type to bool.
9413 * gdbarch.c: Regenerate.
9414 * gdbarch.h: Regenerate.
9415 * gdbarch.sh (program_breakpoint_here_p): New method.
9416 * infrun.c (handle_signal_stop): Call
9417 gdbarch_program_breakpoint_here_p.
9418
168f8c6b
TT
94192020-01-26 Tom Tromey <tom@tromey.com>
9420
9421 * ctfread.c (struct ctf_fp_info): Reindent.
9422 (_initialize_ctfread): Remove.
9423
128a391f
TT
94242020-01-26 Tom Tromey <tom@tromey.com>
9425
9426 * psymtab.c (partial_map_expand_apply)
9427 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9428 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9429 (psym_print_stats, psym_expand_symtabs_for_function)
9430 (psym_map_symbol_filenames, psym_map_matching_symbols)
9431 (psym_expand_symtabs_matching)
9432 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9433 (maintenance_check_psymtabs): Use new methods.
9434 * psympriv.h (struct partial_symtab) <readin_p,
9435 get_compunit_symtab>: New methods.
9436 <readin, compunit_symtab>: Remove members.
9437 (struct standard_psymtab): New.
9438 (struct legacy_psymtab): Derive from standard_psymtab.
9439 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9440 standard_psymtab.
9441 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9442
0494dbec
TT
94432020-01-26 Tom Tromey <tom@tromey.com>
9444
9445 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9446 read_dependencies. Add assert.
9447 * psymtab.c (partial_symtab::read_dependencies): New method.
9448 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9449 method.
9450 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9451 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9452 read_dependencies.
9453 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9454 Add assert.
9455
8566b89b
TT
94562020-01-26 Tom Tromey <tom@tromey.com>
9457
9458 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9459 Call expand_psymtab.
9460 (xcoff_read_symtab): Call expand_psymtab.
9461 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9462 legacy_expand_psymtab.
9463 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9464 method.
9465 (struct legacy_psymtab) <expand_psymtab>: Implement.
9466 <legacy_expand_psymtab>: New member.
9467 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9468 (parse_partial_symbols): Set legacy_expand_psymtab.
9469 (psymtab_to_symtab_1): Change argument order. Call
9470 expand_psymtab.
9471 (new_psymtab): Set legacy_expand_psymtab.
9472 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9473 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9474 expand_psymtab.
9475 (dwarf2_psymtab::expand_psymtab): Rename from
9476 psymtab_to_symtab_1. Call expand_psymtab.
9477 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9478 (dbx_end_psymtab): Likewise.
9479 (dbx_psymtab_to_symtab_1): Change argument order. Call
9480 expand_psymtab.
9481 (dbx_read_symtab): Call expand_psymtab.
9482 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9483 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9484 (ctf_psymtab::read_symtab): Call expand_psymtab.
9485
077cbab2
TT
94862020-01-26 Tom Tromey <tom@tromey.com>
9487
9488 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9489 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9490 messages.
9491 * mdebugread.c (mdebug_read_symtab): Remove prints.
9492 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9493 assert.
9494 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9495
891813be
TT
94962020-01-26 Tom Tromey <tom@tromey.com>
9497
9498 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9499 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9500 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9501 legacy_symtab.
9502 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9503 * psymtab.c (psymtab_to_symtab): Call method.
9504 (dump_psymtab): Update.
9505 * psympriv.h (struct partial_symtab): Add virtual destructor.
9506 <read_symtab>: New method.
9507 (struct legacy_symtab): New.
9508 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9509 (struct pst_map) <pst>: Now a legacy_psymtab.
9510 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9511 (new_psymtab): Use legacy_psymtab.
9512 * dwarf2read.h (struct dwarf2_psymtab): New.
9513 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9514 * dwarf2read.c (dwarf2_create_include_psymtab)
9515 (dwarf2_build_include_psymtabs, create_type_unit_group)
9516 (create_partial_symtab, process_psymtab_comp_unit_reader)
9517 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9518 (set_partial_user): Use dwarf2_psymtab.
9519 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9520 (psymtab_to_symtab_1, process_full_comp_unit)
9521 (process_full_type_unit, dwarf2_ranges_read)
9522 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9523 (dwarf_decode_lines): Use dwarf2_psymtab.
9524 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9525 (add_address_entry_worker, write_one_signatured_type)
9526 (recursively_count_psymbols, recursively_write_psymbols)
9527 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9528 (write_debug_names): Likewise.
9529 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9530 <pst>: Now a legacy_psymtab.
9531 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9532 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9533 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9534 * ctfread.c (struct ctf_psymtab): New.
9535 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9536 ctf_psymtab.
9537 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9538 (create_partial_symtab): Return a ctf_psymtab.
9539 (scan_partial_symbols): Update.
9540
c3693a1d
TT
95412020-01-26 Tom Tromey <tom@tromey.com>
9542
9543 * xcoffread.c (xcoff_start_psymtab): Use new.
9544 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9545 renamed from start_psymtab_common.
9546 * psympriv.h (struct partial_symtab): Add new constructor.
9547 (start_psymtab_common): Don't declare.
9548 * mdebugread.c (parse_partial_symbols): Use new.
9549 * dwarf2read.c (create_partial_symtab): Use new.
9550 * dbxread.c (start_psymtab): Use new.
9551 * ctfread.c (create_partial_symtab): Use new.
9552
32caafd0
TT
95532020-01-26 Tom Tromey <tom@tromey.com>
9554
9555 * xcoffread.c (xcoff_end_psymtab): Use new.
9556 * psymtab.c (start_psymtab_common): Use new.
9557 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9558 Update.
9559 * psympriv.h (struct partial_symtab): Add parameters to
9560 constructor. Don't inline.
9561 (allocate_psymtab): Don't declare.
9562 * mdebugread.c (new_psymtab): Use new.
9563 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9564 * dbxread.c (dbx_end_psymtab): Use new.
9565
abaa2f23
TT
95662020-01-26 Tom Tromey <tom@tromey.com>
9567
9568 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9569 allocate_psymtab. Update documentation.
9570 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9571 allocate_psymtab. Do not use new.
9572 (allocate_psymtab): Use new. Update.
9573
6d94535f
TT
95742020-01-26 Tom Tromey <tom@tromey.com>
9575
9576 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9577 * psymtab.c (psym_print_stats): Update.
9578 * psympriv.h (struct partial_symtab) <readin,
9579 psymtabs_addrmap_supported, anonymous>: Now bool.
9580 * mdebugread.c (psymtab_to_symtab_1): Update.
9581 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9582 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9583 (process_full_comp_unit, process_full_type_unit): Update.
9584 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9585 * ctfread.c (psymtab_to_symtab): Update.
9586
6f17252b
TT
95872020-01-26 Tom Tromey <tom@tromey.com>
9588
9589 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9590 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9591 * psymtab.c (psymtab_storage): Delete psymtabs.
9592 (psymtab_storage::allocate_psymtab): Use new.
9593 (psymtab_storage::discard_psymtab): Use delete.
9594 * psympriv.h (struct partial_symtab): Add constructor and
9595 initializers.
9596
f6f1cebc
TT
95972020-01-26 Tom Tromey <tom@tromey.com>
9598
9599 * machoread.c: Do not include psympriv.h.
9600
e47e48f6
PW
96012020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9602
9603 * NEWS: Mention the new option and the set/show commands.
9604
a2fedca9
PW
96052020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9606
9607 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9608 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9609 (validate_exec_file): New variables, enums, functions.
9610 (exec_file_locate_attach, print_section_info): Style the filenames.
9611 (_initialize_exec): Install show_exec_file_mismatch_command and
9612 set_exec_file_mismatch_command.
9613 * gdbcore.h (validate_exec_file): Declare.
9614 * infcmd.c (attach_command): Call validate_exec_file.
9615 * remote.c ( remote_target::remote_add_inferior): Likewise.
9616
7ffa82e1
AB
96172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9618
9619 * frame.c (find_frame_sal): Move call to get_next_frame into more
9620 inner scope.
9621 * inline-frame.c (inilne_state) <inline_state>: Update argument
9622 types.
9623 (inilne_state) <skipped_symbol>: Rename to...
9624 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9625 (skip_inline_frames): Build vector of skipped symbols and use this
9626 to reate the inline_state.
9627 (inline_skipped_symbol): Add a comment and some assertions, fetch
9628 skipped symbol from the list.
9629
3d92a3e3
AB
96302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9631
9632 * buildsym.c (lte_is_less_than): Delete.
9633 (buildsym_compunit::end_symtab_with_blockvector): Create local
9634 lambda function to sort line table entries, and use
9635 std::stable_sort instead of std::sort.
9636 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9637 markers when looking for a previous line.
9638
94a72be7
AB
96392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9640
9641 * dwarf2read.c (lnp_state_machine::record_line): Include
9642 end_sequence parameter in debug print out. Record the line if we
9643 are at an end_sequence marker even if it's not the start of a
9644 statement.
9645 * symmisc.c (maintenance_print_one_line_table): Print end of
9646 sequence markers with 'END' not '0'.
9647
53af73bf
PA
96482020-01-24 Pedro Alves <palves@redhat.com>
9649
9650 PR gdb/25410
9651 * thread.c (scoped_restore_current_thread::restore): Use
9652 switch_to_inferior_no_thread.
9653 * exec.c: Include "progspace-and-thread.h".
9654 (add_target_sections, remove_target_sections):
9655 scoped_restore_current_pspace_and_thread instead of
9656 scoped_restore_current_thread.
9657 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9658 and aspace to the inferior before calling clone_program_space.
9659 Remove stale comment.
9660
3050c6f4
CB
96612020-01-24 Christian Biesinger <cbiesinger@google.com>
9662
9663 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9664 (arm_netbsd_nat_target::fetch_registers): ...this.
9665 (arm_nbsd_nat_target::store_registers): Rename to...
9666 (arm_netbsd_nat_target::store_registers): ...this.
9667
73685c7e
CB
96682020-01-24 Christian Biesinger <cbiesinger@google.com>
9669
9670 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9671 register_t.
9672
89203d40
CB
96732020-01-24 Christian Biesinger <cbiesinger@google.com>
9674
9675 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9676 Update comment.
9677 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9678 Likewise.
9679 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9680 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9681 the correct replacement (iterate_over_regset_sections).
9682 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9683 Update comment.
9684
1ba1ac88
AB
96852020-01-24 Graham Markall <graham.markall@embecosm.com>
9686
9687 PR gdb/23718
9688 * gdb/python/python.c (execute_gdb_command): Call
9689 async_enable_stdin in catch block.
9690
f3364a6d
AB
96912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9692
9693 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9694 SWITCH_THRU_ALL_UIS.
9695
733d0a67
AB
96962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9697
9698 PR tui/9765
9699 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9700 comment, add extra parameter, and update to store previous symbol
9701 when appropriate.
9702 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9703 add extra parameter.
9704 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9705 remove unneeded parameter, add try/catch around gdb_print_insn,
9706 rewrite to add items to asm_lines vector.
9707 (tui_find_backward_disassembly_start_address): New function.
9708 (tui_find_disassembly_address): Updated throughout.
9709 (tui_disasm_window::set_contents): Update for changes to
9710 tui_disassemble.
9711 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9712 number of lines to scroll.
9713
b3b3bada
SM
97142020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9715
9716 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9717 (SECT_OFF_DATA): Likewise.
9718 (SECT_OFF_RODATA): Likewise.
9719 (SECT_OFF_TEXT): Likewise.
9720 (SECT_OFF_BSS): Likewise.
9721 (struct objfile) <text_section_offset, data_section_offset>: New
9722 methods.
9723 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9724 objfile::text_section_offset.
9725 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9726 * coffread.c (coff_symtab_read): Likewise.
9727 (enter_linenos): Likewise.
9728 (process_coff_symbol): Likewise.
9729 * ctfread.c (get_objfile_text_range): Likewise.
9730 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9731 Use objfile::data_section_offset.
9732 * dwarf2-frame.c (execute_cfa_program): Use
9733 objfile::text_section_offset.
9734 (dwarf2_frame_find_fde): Likewise.
9735 * dwarf2read.c (create_addrmap_from_index): Likewise.
9736 (create_addrmap_from_aranges): Likewise.
9737 (dw2_find_pc_sect_compunit_symtab): Likewise.
9738 (process_psymtab_comp_unit_reader): Likewise.
9739 (add_partial_symbol): Likewise.
9740 (add_partial_subprogram): Likewise.
9741 (process_full_comp_unit): Likewise.
9742 (read_file_scope): Likewise.
9743 (read_func_scope): Likewise.
9744 (read_lexical_block_scope): Likewise.
9745 (read_call_site_scope): Likewise.
9746 (dwarf2_rnglists_process): Likewise.
9747 (dwarf2_ranges_process): Likewise.
9748 (dwarf2_ranges_read): Likewise.
9749 (dwarf_decode_lines_1): Likewise.
9750 (new_symbol): Likewise.
9751 (dwarf2_fetch_die_loc_sect_off): Likewise.
9752 (dwarf2_per_cu_text_offset): Likewise.
9753 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9754 * hppa-tdep.c (read_unwind_info): Likewise.
9755 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9756 * psympriv.h (struct partial_symtab): Likewise.
9757 * psymtab.c (find_pc_sect_psymtab): Likewise.
9758 * solib-svr4.c (enable_break): Likewise.
9759 * stap-probe.c (relocate_address): Use
9760 objfile::data_section_offset.
9761 * xcoffread.c (enter_line_range): Use
9762 objfile::text_section_offset.
9763 (read_xcoff_symtab): Likewise.
9764
ab53f382
SM
97652020-01-23 Simon Marchi <simon.marchi@efficios.com>
9766
9767 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9768 declaration to narrower scopes.
9769
e7eee665
SM
97702020-01-23 Simon Marchi <simon.marchi@efficios.com>
9771
9772 * darwin-nat.h (struct darwin_exception_msg, enum
9773 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9774 Move up.
9775 (class darwin_nat_target) <wait_1, check_new_threads,
9776 decode_exception_message, decode_message, stop_inferior,
9777 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9778 * darwin-nat.c (darwin_check_new_threads): Rename to...
9779 (darwin_nat_target::check_new_threads): ... this.
9780 (darwin_suspend_inferior_it): Remove.
9781 (darwin_decode_exception_message): Rename to...
9782 (darwin_nat_target::decode_exception_message): ... this.
9783 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9784 (darwin_decode_message): Rename to...
9785 (darwin_nat_target::decode_message): ... this.
9786 (cancel_breakpoint): Rename to...
9787 (darwin_nat_target::cancel_breakpoint): ... this.
9788 (darwin_wait): Rename to...
9789 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9790 instead of iterate_over_inferiors.
9791 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9792 (darwin_stop_inferior): Rename to...
9793 (darwin_nat_target::stop_inferior): ... this.
9794 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9795 (darwin_init_thread_list): Rename to...
9796 (darwin_nat_target::init_thread_list): ... this.
9797 (darwin_ptrace_him): Rename to...
9798 (darwin_nat_target::ptrace_him): ... this.
9799 (darwin_nat_target::create_inferior): Pass lambda function to
9800 fork_inferior.
9801 (darwin_nat_target::detach): Call stop_inferior instead of
9802 darwin_stop_inferior.
9803 * fork-inferior.h (fork_inferior): Change init_trace_fun
9804 parameter to gdb::function_view.
9805 * fork-inferior.c (fork_inferior): Likewise.
9806
c162ed3e
HD
98072020-01-23 Hannes Domani <ssbssa@yahoo.de>
9808
9809 * i386-cygwin-tdep.c (core_process_module_section): Update.
9810 * windows-nat.c (struct lm_info_windows): Add text_offset.
9811 (windows_xfer_shared_libraries): Update.
9812 * windows-tdep.c (windows_xfer_shared_library):
9813 Add text_offset_cached argument.
9814 * windows-tdep.h (windows_xfer_shared_library): Update.
9815
a1237872
SM
98162020-01-21 Simon Marchi <simon.marchi@efficios.com>
9817
9818 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9819
b3ee6dd9
SM
98202020-01-21 Simon Marchi <simon.marchi@efficios.com>
9821
9822 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9823 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9824 replace with range-based for.
9825 (gdbsim_interrupt_inferior): Remove.
9826 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9827 with a range-based for. Inline code from
9828 gdbsim_interrupt_inferior.
9829
f9fac3c8
SM
98302020-01-21 Simon Marchi <simon.marchi@efficios.com>
9831
9832 * infrun.c (proceed): Fix indentation.
9833
f6474de9
TT
98342020-01-21 Tom Tromey <tromey@adacore.com>
9835
9836 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9837 * python/python.c (python_extension_ops): Update.
9838 (gdbpy_colorize): New function.
9839 * python/lib/gdb/__init__.py (colorize): New function.
9840 * extension.h (ext_lang_colorize): Declare.
9841 * extension.c (ext_lang_colorize): New function.
9842 * extension-priv.h (struct extension_language_ops) <colorize>: New
9843 member.
9844 * cli/cli-style.c (_initialize_cli_style): Update help text.
9845
f0c702d4
LM
98462020-01-21 Luis Machado <luis.machado@linaro.org>
9847
9848 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9849 <cond>: Change type to bool.
9850 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9851 (aarch64_displaced_step_cb): Likewise.
9852 (aarch64_displaced_step_tb): Likewise.
9853
1ab139e5
LM
98542020-01-21 Luis Machado <luis.machado@linaro.org>
9855
9856 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9857 output.
9858
0c271889
LM
98592020-01-21 Luis Machado <luis.machado@linaro.org>
9860
9861 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9862 <pc_adjust>: Adjust the documentation.
9863 (aarch64_displaced_step_fixup): Check if PC really moved before
9864 adjusting it.
9865
4d89c1c7
TT
98662020-01-19 Tom Tromey <tom@tromey.com>
9867
9868 * disasm.c (~gdb_disassembler): New destructor.
9869 (gdb_buffered_insn_length): Call disassemble_free_target.
9870 * disasm.h (class gdb_disassembler): Declare destructor. Use
9871 DISABLE_COPY_AND_ASSIGN.
9872
c0ab21c2
TT
98732020-01-19 Tom Tromey <tom@tromey.com>
9874
9875 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9876 (die_reader_func_ftype): Remove.
9877 (cutu_reader): New class.
9878 (dw2_get_file_names_reader): Remove "data" parameter.
9879 (dw2_get_file_names): Use cutu_reader.
9880 (create_debug_type_hash_table): Update.
9881 (read_cutu_die_from_dwo): Update comment.
9882 (lookup_dwo_unit): Add dwo_name parameter.
9883 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9884 die_reader_func_ftype and data parameters.
9885 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9886 Remove die_reader_func_ftype and data parameters.
9887 (~cutu_reader): New; from init_cutu_and_read_dies.
9888 (cutu_reader::cutu_reader): Rename from
9889 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9890 and data parameters.
9891 (init_cutu_and_read_dies_simple): Remove.
9892 (struct process_psymtab_comp_unit_data): Remove.
9893 (process_psymtab_comp_unit_reader): Remove data parameter; add
9894 want_partial_unit and pretend_language parameters.
9895 (process_psymtab_comp_unit): Use cutu_reader.
9896 (build_type_psymtabs_reader): Remove data parameter.
9897 (build_type_psymtabs_1): Use cutu_reader.
9898 (process_skeletonless_type_unit): Likewise.
9899 (load_partial_comp_unit_reader): Remove.
9900 (load_partial_comp_unit): Use cutu_reader.
9901 (load_full_comp_unit_reader): Remove.
9902 (load_full_comp_unit): Use cutu_reader.
9903 (struct create_dwo_cu_data): Remove.
9904 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9905 dwo_unit parameters.
9906 (create_cus_hash_table): Use cutu_reader.
9907 (struct dwarf2_read_addr_index_data): Remove.
9908 (dwarf2_read_addr_index_reader): Remove.
9909 (dwarf2_read_addr_index): Use cutu_reader.
9910 (read_signatured_type_reader): Remove.
9911 (read_signatured_type): Use cutu_reader.
9912
45bbae5c
TT
99132020-01-19 Tom Tromey <tom@tromey.com>
9914
9915 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9916 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9917 (tui_wrefresh): Declare.
9918 * tui/tui-wingeneral.c (suppress_output): New global.
9919 (tui_suppress_output, ~tui_suppress_output): New constructor and
9920 destructor.
9921 (tui_wrefresh): New function.
9922 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9923 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9924 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9925 method.
9926 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9927 tui_wrefresh.
9928 (tui_data_window::no_refresh): New method.
9929 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9930 (tui_reg_command): Use tui_suppress_output
9931 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9932 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9933 method.
9934 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9935
4f13c1c0
TT
99362020-01-19 Tom Tromey <tom@tromey.com>
9937
9938 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9939 Handle case where symtab is null.
9940
fa47e446
SM
99412020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9942
9943 * linux-fork.c (one_fork_p): Simplify.
9944
26f42329
SM
99452020-01-17 Simon Marchi <simon.marchi@efficios.com>
9946
9947 * top.c (struct qt_args): Remove.
9948 (kill_or_detach): Change return type to void, replace `void *`
9949 parameter with a proper one.
9950 (print_inferior_quit_action): Likewise.
9951 (quit_confirm): Use range-based for loop to iterate over inferiors.
9952 (quit_force): Likewise.
9953
a9ac81b1
SM
99542020-01-17 Simon Marchi <simon.marchi@efficios.com>
9955
9956 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9957 `void *` parameter with proper parameters.
9958 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9959 (print_one_inferior): Change return type to void, replace `void *`
9960 parameter with proper parameters.
9961 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9962 inferiors.
9963 (get_other_inferior): Remove.
9964 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9965 inferiors.
9966
788eca49
SM
99672020-01-17 Simon Marchi <simon.marchi@efficios.com>
9968
9969 * mi/mi-interp.c (report_initial_inferior): Remove.
9970 (mi_interp::init): Use range-based for to iterate over inferiors.
9971
d9bc85b6
SM
99722020-01-17 Simon Marchi <simon.marchi@efficios.com>
9973
9974 * python/py-inferior.c (build_inferior_list): Remove.
9975 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9976
40c94099
CB
99772020-01-16 Christian Biesinger <cbiesinger@google.com>
9978
9979 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9980 (btrace_stitch_trace): Likewise.
9981 * charset.c (intermediate_encoding): Likewise (vaild).
9982 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9983 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9984 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9985
e0cdfe3c
HD
99862020-01-16 Hannes Domani <ssbssa@yahoo.de>
9987
9988 * windows-tdep.c (windows_get_tlb_type):
9989 Add rtl_user_process_parameters type.
9990
790f1718 99912020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9992 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9993
9994 PR build/24805
9995 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9996 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9997 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9998 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9999 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10000 (ps_plog): Redeclare exported functions with default visibility.
10001
3112ed97
NA
100022020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10003
10004 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10005 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10006
8dc3273e
SM
100072020-01-15 Simon Marchi <simon.marchi@efficios.com>
10008
10009 * infcmd.c (post_create_inferior): Use get_thread_regcache
10010 instead of get_current_regcache.
10011
ff47f4f0
TT
100122020-01-14 Tom Tromey <tom@tromey.com>
10013
10014 PR symtab/12535:
10015 * python/python.c (gdbpy_decode_line): Treat empty string the same
10016 as no argument.
10017
975f45b7
TT
100182020-01-14 Tom Tromey <tom@tromey.com>
10019
10020 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10021
25e57356
TT
100222020-01-14 Tom Tromey <tom@tromey.com>
10023
10024 * nat/linux-btrace.c: Don't include <config.h>.
10025 * nat/linux-ptrace.c: Don't include <config.h>.
10026 * nat/x86-linux-dregs.c: Don't include <config.h>.
10027
05ea2a05
TT
100282020-01-14 Tom Tromey <tom@tromey.com>
10029
10030 * configure: Rebuild.
10031 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10032
01027315
TT
100332020-01-14 Tom Tromey <tom@tromey.com>
10034
10035 * nat/x86-linux-dregs.c: Include configh.h.
10036 * nat/linux-ptrace.c: Include configh.h.
10037 * nat/linux-btrace.c: Include configh.h.
10038 * defs.h: Include config.h, bfd.h.
10039 * configure.ac: Don't source common.host.
10040 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10041 * configure: Rebuild.
10042 * acinclude.m4: Update path.
10043 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10044 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10045 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10046 (CLIBS): Add LIBSUPPORT.
10047 (CDEPS): Likewise.
10048 (COMMON_SFILES): Remove gdbsupport files.
10049 (HFILES_NO_SRCDIR): Likewise.
10050 (stamp-version): Update path to create-version.sh.
10051 (ALLDEPFILES): Remove gdbsupport files.
10052
b2ceabe8
TT
100532020-01-14 Tom Tromey <tom@tromey.com>
10054
10055 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10056 USE_WIN32API when needed.
10057 * configure.ac (USE_WIN32API): Don't define.
10058 (WIN32LIBS): Use WIN32APILIBS.
10059 * configure: Rebuild.
10060
25c51f71
TT
100612020-01-14 Tom Tromey <tom@tromey.com>
10062
10063 * configure: Rebuild.
10064 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10065
717c684d
BE
100662020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10067
10068 * skip.c (skip_function_command): Make skip w/o arguments use the
10069 name of the inlined function if pc is inside any inlined function.
10070
7da6a5b9
LM
100712020-01-14 Luis Machado <luis.machado@linaro.org>
10072
10073 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10074 * infrun.c (resume_1): Likewise.
10075 (handle_inferior_event): Remove stale comment.
10076 * linux-nat.c (linux_nat_target::resume): Update comments.
10077 (save_stop_reason): Likewise.
10078 (linux_nat_filter_event): Likewise.
10079 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10080
44e4c775
AB
100812020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10082
10083 * elfread.c (record_minimal_symbol): Set section index to 0 for
10084 non-allocatable sections.
10085
18a8505e
AT
10086
100872020-01-13 Ali Tamur <tamur@google.com>
10088
10089 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10090 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10091 to gdb::optional. Update comments.
10092 (dwo_file): Update comments.
10093 (read_attribute): Update API to take an additional out parameter,
10094 need_reprocess. This is used to mark attributes that need other
10095 attributes (e.g. str_offsets_base) for correct computation which may not
10096 have been read yet.
10097 (read_attribute_reprocess): New function declaration.
10098 (read_addr_index): Likewise.
10099 (read_dwo_str_index): Likewise.
10100 (read_stub_str_index): Likewise.
10101 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10102 (lookup_addr_base): New function definition.
10103 (lookup_ranges_base): Likewise.
10104 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10105 lookup_ranges_base.
10106 (init_cutu_and_read_dies): Update comments.
10107 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10108 unit. This is used to inherit parent's str_offsets_base and addr_base.
10109 Update comments.
10110 (init_cutu_and_read_dies_simple): Reflect API changes.
10111 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10112 (create_cus_hash_table): Change API to take parent compile unit.
10113 Reflect API changes.
10114 (open_and_init_dwo_file): Reflect API changes.
10115 (dwarf2_get_pc_bounds): Update comments.
10116 (dwarf2_record_block_ranges): Likewise.
10117 (read_full_die_1): Change implementation to reprocess attributes that
10118 need str_offsets_base and addr_base.
10119 (partial_die_info::read): Likewise.
10120 (read_attribute_reprocess): New function definition.
10121 (read_attribute_value): Change API to take an additional out parameter,
10122 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10123 when a non-dwo compile unit has index based attributes.
10124 (read_attribute): Reflect API changes.
10125 (read_addr_index_1): Reflect API changes. Update comments.
10126 (dwarf2_read_addr_index_data): Reflect API changes.
10127 (dwarf2_read_addr_index): Likewise.
10128 (read_str_index): Change API and implementation. This becomes a helper
10129 to be used by the new string index related methods. Update error
10130 message and comments.
10131 (read_dwo_str_index): New function definition.
10132 (read_stub_str_index): Likewise.
10133 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10134 * symfile.h (dwarf2_debug_sections): Likewise.
10135 * xcoffread.c (dwarf2_debug_sections): Likewise.
10136
0cac9354
SM
101372020-01-13 Simon Marchi <simon.marchi@efficios.com>
10138
10139 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10140 core_reg_sect type to gdb_byte *.
10141 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10142 * cris-tdep.c (fetch_core_registers): Likewise.
10143 * corelow.c (core_target::get_core_register_section): Change
10144 type of `contents` to gdb::byte_vector.
10145
9a6d629c
AB
101462020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10147
10148 * tui/tui-wingeneral.c (box_win): Position the title in the center
10149 of the border.
10150
d8b2f9e3
SM
101512020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10152
10153 * corelow.c (core_target::get_core_register_section): Use
10154 std::vector instead of alloca.
10155
bb564c58
SM
101562020-01-13 Simon Marchi <simon.marchi@efficios.com>
10157
10158 * warning.m4: Add -Wmissing-declarations to build_warnings.
10159 * configure: Re-generate.
10160
6b366111
SM
101612020-01-13 Simon Marchi <simon.marchi@efficios.com>
10162
10163 * python/python.c (init__gdb_module): Add declaration.
10164
6c265988
SM
101652020-01-13 Simon Marchi <simon.marchi@efficios.com>
10166
10167 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10168 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10169 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10170 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10171 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10172 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10173 * ada-exp.y (_initialize_ada_exp): Add declaration.
10174 * ada-lang.c (_initialize_ada_language): Add declaration.
10175 * ada-tasks.c (_initialize_tasks): Add declaration.
10176 * agent.c (_initialize_agent): Add declaration.
10177 * aix-thread.c (_initialize_aix_thread): Add declaration.
10178 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10179 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10180 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10181 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10182 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10183 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10184 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10185 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10186 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10187 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10188 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10189 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10190 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10191 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10192 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10193 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10194 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10195 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10196 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10197 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10198 * annotate.c (_initialize_annotate): Add declaration.
10199 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10200 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10201 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10202 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10203 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10204 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10205 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10206 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10207 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10208 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10209 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10210 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10211 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10212 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10213 * auto-load.c (_initialize_auto_load): Add declaration.
10214 * auxv.c (_initialize_auxv): Add declaration.
10215 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10216 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10217 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10218 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10219 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10220 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10221 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10222 * breakpoint.c (_initialize_breakpoint): Add declaration.
10223 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10224 * btrace.c (_initialize_btrace): Add declaration.
10225 * charset.c (_initialize_charset): Add declaration.
10226 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10227 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10228 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10229 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10230 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10231 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10232 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10233 * coffread.c (_initialize_coffread): Add declaration.
10234 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10235 * compile/compile.c (_initialize_compile): Add declaration.
10236 * complaints.c (_initialize_complaints): Add declaration.
10237 * completer.c (_initialize_completer): Add declaration.
10238 * copying.c (_initialize_copying): Add declaration.
10239 * corefile.c (_initialize_core): Add declaration.
10240 * corelow.c (_initialize_corelow): Add declaration.
10241 * cp-abi.c (_initialize_cp_abi): Add declaration.
10242 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10243 * cp-support.c (_initialize_cp_support): Add declaration.
10244 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10245 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10246 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10247 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10248 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10249 * ctfread.c (_initialize_ctfread): Add declaration.
10250 * d-lang.c (_initialize_d_language): Add declaration.
10251 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10252 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10253 * dbxread.c (_initialize_dbxread): Add declaration.
10254 * dcache.c (_initialize_dcache): Add declaration.
10255 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10256 * disasm.c (_initialize_disasm): Add declaration.
10257 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10258 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10259 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10260 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10261 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10262 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10263 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10264 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10265 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10266 * elfread.c (_initialize_elfread): Add declaration.
10267 * exec.c (_initialize_exec): Add declaration.
10268 * extension.c (_initialize_extension): Add declaration.
10269 * f-lang.c (_initialize_f_language): Add declaration.
10270 * f-valprint.c (_initialize_f_valprint): Add declaration.
10271 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10272 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10273 * filesystem.c (_initialize_filesystem): Add declaration.
10274 * findcmd.c (_initialize_mem_search): Add declaration.
10275 * findvar.c (_initialize_findvar): Add declaration.
10276 * fork-child.c (_initialize_fork_child): Add declaration.
10277 * frame-base.c (_initialize_frame_base): Add declaration.
10278 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10279 * frame.c (_initialize_frame): Add declaration.
10280 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10281 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10282 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10283 * gcore.c (_initialize_gcore): Add declaration.
10284 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10285 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10286 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10287 * gdbarch.c (_initialize_gdbarch): Add declaration.
10288 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10289 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10290 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10291 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10292 * go-lang.c (_initialize_go_language): Add declaration.
10293 * go32-nat.c (_initialize_go32_nat): Add declaration.
10294 * guile/guile.c (_initialize_guile): Add declaration.
10295 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10296 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10297 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10298 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10299 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10300 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10301 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10302 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10303 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10304 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10305 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10306 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10307 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10308 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10309 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10310 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10311 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10312 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10313 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10314 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10315 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10316 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10317 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10318 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10319 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10320 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10321 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10322 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10323 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10324 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10325 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10326 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10327 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10328 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10329 * infcall.c (_initialize_infcall): Add declaration.
10330 * infcmd.c (_initialize_infcmd): Add declaration.
10331 * inflow.c (_initialize_inflow): Add declaration.
10332 * infrun.c (_initialize_infrun): Add declaration.
10333 * interps.c (_initialize_interpreter): Add declaration.
10334 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10335 * jit.c (_initialize_jit): Add declaration.
10336 * language.c (_initialize_language): Add declaration.
10337 * linux-fork.c (_initialize_linux_fork): Add declaration.
10338 * linux-nat.c (_initialize_linux_nat): Add declaration.
10339 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10340 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10341 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10342 * m2-lang.c (_initialize_m2_language): Add declaration.
10343 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10344 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10345 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10346 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10347 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10348 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10349 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10350 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10351 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10352 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10353 * machoread.c (_initialize_machoread): Add declaration.
10354 * macrocmd.c (_initialize_macrocmd): Add declaration.
10355 * macroscope.c (_initialize_macroscope): Add declaration.
10356 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10357 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10358 * maint.c (_initialize_maint_cmds): Add declaration.
10359 * mdebugread.c (_initialize_mdebugread): Add declaration.
10360 * memattr.c (_initialize_mem): Add declaration.
10361 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10362 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10363 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10364 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10365 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10366 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10367 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10368 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10369 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10370 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10371 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10372 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10373 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10374 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10375 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10376 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10377 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10378 * mipsread.c (_initialize_mipsread): Add declaration.
10379 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10380 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10381 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10382 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10383 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10384 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10385 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10386 * nto-procfs.c (_initialize_procfs): Add declaration.
10387 * objc-lang.c (_initialize_objc_language): Add declaration.
10388 * observable.c (_initialize_observer): Add declaration.
10389 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10390 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10391 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10392 * osabi.c (_initialize_gdb_osabi): Add declaration.
10393 * osdata.c (_initialize_osdata): Add declaration.
10394 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10395 * parse.c (_initialize_parse): Add declaration.
10396 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10397 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10398 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10399 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10400 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10401 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10402 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10403 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10404 * printcmd.c (_initialize_printcmd): Add declaration.
10405 * probe.c (_initialize_probe): Add declaration.
10406 * proc-api.c (_initialize_proc_api): Add declaration.
10407 * proc-events.c (_initialize_proc_events): Add declaration.
10408 * proc-service.c (_initialize_proc_service): Add declaration.
10409 * procfs.c (_initialize_procfs): Add declaration.
10410 * producer.c (_initialize_producer): Add declaration.
10411 * psymtab.c (_initialize_psymtab): Add declaration.
10412 * python/python.c (_initialize_python): Add declaration.
10413 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10414 * record-btrace.c (_initialize_record_btrace): Add declaration.
10415 * record-full.c (_initialize_record_full): Add declaration.
10416 * record.c (_initialize_record): Add declaration.
10417 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10418 * regcache.c (_initialize_regcache): Add declaration.
10419 * reggroups.c (_initialize_reggroup): Add declaration.
10420 * remote-notif.c (_initialize_notif): Add declaration.
10421 * remote-sim.c (_initialize_remote_sim): Add declaration.
10422 * remote.c (_initialize_remote): Add declaration.
10423 * reverse.c (_initialize_reverse): Add declaration.
10424 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10425 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10426 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10427 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10428 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10429 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10430 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10431 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10432 Add declaration.
10433 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10434 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10435 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10436 * rust-exp.y (_initialize_rust_exp): Add declaration.
10437 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10438 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10439 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10440 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10441 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10442 * score-tdep.c (_initialize_score_tdep): Add declaration.
10443 * ser-go32.c (_initialize_ser_dos): Add declaration.
10444 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10445 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10446 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10447 * ser-uds.c (_initialize_ser_socket): Add declaration.
10448 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10449 * serial.c (_initialize_serial): Add declaration.
10450 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10451 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10452 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10453 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10454 * skip.c (_initialize_step_skip): Add declaration.
10455 * sol-thread.c (_initialize_sol_thread): Add declaration.
10456 * solib-aix.c (_initialize_solib_aix): Add declaration.
10457 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10458 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10459 * solib-frv.c (_initialize_frv_solib): Add declaration.
10460 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10461 * solib-target.c (_initialize_solib_target): Add declaration.
10462 * solib.c (_initialize_solib): Add declaration.
10463 * source-cache.c (_initialize_source_cache): Add declaration.
10464 * source.c (_initialize_source): Add declaration.
10465 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10466 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10467 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10468 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10469 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10470 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10471 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10472 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10473 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10474 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10475 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10476 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10477 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10478 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10479 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10480 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10481 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10482 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10483 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10484 * stabsread.c (_initialize_stabsread): Add declaration.
10485 * stack.c (_initialize_stack): Add declaration.
10486 * stap-probe.c (_initialize_stap_probe): Add declaration.
10487 * std-regs.c (_initialize_frame_reg): Add declaration.
10488 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10489 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10490 * symfile.c (_initialize_symfile): Add declaration.
10491 * symmisc.c (_initialize_symmisc): Add declaration.
10492 * symtab.c (_initialize_symtab): Add declaration.
10493 * target.c (_initialize_target): Add declaration.
10494 * target-connection.c (_initialize_target_connection): Add
10495 declaration.
10496 * target-dcache.c (_initialize_target_dcache): Add declaration.
10497 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10498 * thread.c (_initialize_thread): Add declaration.
10499 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10500 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10501 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10502 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10503 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10504 * tracectf.c (_initialize_ctf): Add declaration.
10505 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10506 * tracefile.c (_initialize_tracefile): Add declaration.
10507 * tracepoint.c (_initialize_tracepoint): Add declaration.
10508 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10509 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10510 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10511 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10512 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10513 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10514 * tui/tui.c (_initialize_tui): Add declaration.
10515 * typeprint.c (_initialize_typeprint): Add declaration.
10516 * ui-style.c (_initialize_ui_style): Add declaration.
10517 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10518 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10519 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10520 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10521 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10522 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10523 * unittests/filtered_iterator-selftests.c
10524 (_initialize_filtered_iterator_selftests): Add declaration.
10525 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10526 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10527 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10528 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10529 * unittests/main-thread-selftests.c
10530 (_initialize_main_thread_selftests): Add declaration.
10531 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10532 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10533 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10534 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10535 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10536 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10537 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10538 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10539 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10540 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10541 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10542 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10543 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10544 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10545 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10546 declaration.
10547 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10548 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10549 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10550 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10551 * user-regs.c (_initialize_user_regs): Add declaration.
10552 * utils.c (_initialize_utils): Add declaration.
10553 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10554 * valops.c (_initialize_valops): Add declaration.
10555 * valprint.c (_initialize_valprint): Add declaration.
10556 * value.c (_initialize_values): Add declaration.
10557 * varobj.c (_initialize_varobj): Add declaration.
10558 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10559 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10560 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10561 * windows-nat.c (_initialize_windows_nat): Add declaration.
10562 (_initialize_check_for_gdb_ini): Add declaration.
10563 (_initialize_loadable): Add declaration.
10564 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10565 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10566 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10567 * xcoffread.c (_initialize_xcoffread): Add declaration.
10568 * xml-support.c (_initialize_xml_support): Add declaration.
10569 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10570 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10571 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10572 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10573
e2de1eec
SM
105742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10575
10576 * regformats/regdat.sh: Generate declaration for init function.
10577
e0037b4c
SM
105782020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10579
10580 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10581 up.
10582 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10583 close_one_inferior>: New methods.
10584 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10585 pass down target to find_inferior_pid.
10586 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10587 Pass down target to find_inferior_ptid.
10588 (gdbsim_target::create_inferior): Pass down target to
10589 add_thread_silent.
10590 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10591 target down to find_inferior_ptid and switch_to_thread.
10592 (gdbsim_target::close): Update to call close_one_inferior.
10593 (struct resume_data): Remove.
10594 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10595 directly, rather than through a void pointer.
10596 (gdbsim_target::resume): Update to call resume_one_inferior.
10597
58920b5b
SM
105982020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10599
10600 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10601
4ec89149
PA
106022020-01-12 Pedro Alves <palves@redhat.com>
10603
10604 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10605 directly for the current inferior instead of
10606 discard_all_inferiors.
10607 (discard_all_inferiors): Delete.
10608
7c392d1d
TT
106092020-01-11 Tom Tromey <tom@tromey.com>
10610
10611 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10612 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10613 deprecated_safe_get_selected_frame.
10614
d9ebdab7
TBA
106152020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10616
10617 * inferior.c (print_inferior): Switch inferior before printing it.
10618
f3c469b9
PA
106192020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10620 Pedro Alves <palves@redhat.com>
10621
10622 * progspace-and-thread.c (switch_to_program_space_and_thread):
10623 Assert there's an inferior for PSPACE. Use
10624 switch_to_inferior_no_thread to switch the inferior too.
10625 * progspace.c (program_space::~program_space): Call
10626 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10627 (program_space::free_all_objfiles): Don't call clear_symtab_users
10628 here.
10629 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10630
65c574f6
PA
106312020-01-10 Pedro Alves <palves@redhat.com>
10632
10633 * NEWS: Mention multi-target debugging, "info connections", and
10634 "add-inferior -no-connection".
10635
2f4fcf00
PA
106362020-01-10 Pedro Alves <palves@redhat.com>
10637
10638 * infrun.c: Include "target-connection.h".
10639 (check_multi_target_resumption): New.
10640 (proceed): Call it.
10641 * target-connection.c (make_target_connection_string): Make
10642 extern.
10643 * target-connection.h (make_target_connection_string): Declare.
10644
121b3efd
PA
106452020-01-10 Pedro Alves <palves@redhat.com>
10646
10647 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10648 * inferior.c (uiout_field_connection): New function.
10649 (print_inferior): Add new "connection-id" column.
10650 (add_inferior_command): Show connection number/string of added
10651 inferior.
10652 * process-stratum-target.h
10653 (process_stratum_target::connection_string): New virtual method.
10654 (process_stratum_target::connection_number): New field.
10655 * remote.c (remote_target::connection_string): New override.
10656 * target-connection.c: New file.
10657 * target-connection.h: New file.
10658 * target.c (decref_target): Remove process_stratum targets from
10659 the connection list.
10660 (target_stack::push): Add process_stratum targets to the
10661 connection list.
10662
4f837581
PA
106632020-01-10 Pedro Alves <palves@redhat.com>
10664
10665 Revert:
10666 2016-04-12 Pedro Alves <palves@redhat.com>
10667 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10668 Remove references to name.
10669 * serial.h (struct serial) <name>: Delete.
10670
f4ec508e
PA
106712020-01-10 Pedro Alves <palves@redhat.com>
10672
10673 * gdbarch-selftests.c (register_to_value_test): Remove "target
10674 already pushed" check.
10675
5b6d1e4f
PA
106762020-01-10 Pedro Alves <palves@redhat.com>
10677 John Baldwin <jhb@FreeBSD.org>
10678
10679 * aarch64-linux-nat.c
10680 (aarch64_linux_nat_target::thread_architecture): Adjust.
10681 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10682 (task_command_1): Likewise.
10683 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10684 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10685 (aix_thread_target::store_registers)
10686 (aix_thread_target::thread_alive): Adjust.
10687 * amd64-fbsd-tdep.c: Include "inferior.h".
10688 (amd64fbsd_get_thread_local_address): Pass down target.
10689 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10690 thread's gdbarch instead of target_gdbarch.
10691 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10692 get_last_target_status.
10693 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10694 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10695 inferiors.
10696 (update_inserted_breakpoint_locations): Skip if inferiors with no
10697 execution.
10698 (update_global_location_list): When handling moribund locations,
10699 find representative inferior for location's pspace, and use thread
10700 count of its process_stratum target.
10701 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10702 * bsd-uthread.c (bsd_uthread_target::wait): Use
10703 as_process_stratum_target and adjust thread_change_ptid and
10704 add_thread calls.
10705 (bsd_uthread_target::update_thread_list): Use
10706 as_process_stratum_target and adjust find_thread_ptid,
10707 thread_change_ptid and add_thread calls.
10708 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10709 find_thread_ptid call.
10710 * corelow.c (add_to_thread_list): Adjust add_thread call.
10711 (core_target_open): Adjust add_thread_silent and thread_count
10712 calls.
10713 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10714 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10715 * event-top.c (async_disconnect): Pop targets from all inferiors.
10716 * exec.c (add_target_sections): Push exec target on all inferiors
10717 sharing the program space.
10718 (remove_target_sections): Remove the exec target from all
10719 inferiors sharing the program space.
10720 (exec_on_vfork): New.
10721 * exec.h (exec_on_vfork): Declare.
10722 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10723 Pass it down.
10724 (fbsd_nat_target::update_thread_list): Adjust.
10725 (fbsd_nat_target::resume): Adjust.
10726 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10727 down.
10728 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10729 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10730 get_thread_arch_regcache call.
10731 * fork-child.c (gdb_startup_inferior): Pass target down to
10732 startup_inferior and set_executing.
10733 * gdbthread.h (struct process_stratum_target): Forward declare.
10734 (add_thread, add_thread_silent, add_thread_with_info)
10735 (in_thread_list): Add process_stratum_target parameter.
10736 (find_thread_ptid(inferior*, ptid_t)): New overload.
10737 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10738 parameter.
10739 (all_threads()): Delete overload.
10740 (all_threads, all_non_exited_threads): Add process_stratum_target
10741 parameter.
10742 (all_threads_safe): Use brace initialization.
10743 (thread_count): Add process_stratum_target parameter.
10744 (set_resumed, set_running, set_stop_requested, set_executing)
10745 (threads_are_executing, finish_thread_state): Add
10746 process_stratum_target parameter.
10747 (switch_to_thread): Use is_current_thread.
10748 * i386-fbsd-tdep.c: Include "inferior.h".
10749 (i386fbsd_get_thread_local_address): Pass down target.
10750 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10751 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10752 have_inferiors check.
10753 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10754 (inf_ptrace_target::attach): Adjust.
10755 * infcall.c (run_inferior_call): Adjust.
10756 * infcmd.c (run_command_1): Pass target to
10757 scoped_finish_thread_state.
10758 (proceed_thread_callback): Skip inferiors with no execution.
10759 (continue_command): Rename 'all_threads' local to avoid hiding
10760 'all_threads' function. Adjust get_last_target_status call.
10761 (prepare_one_step): Adjust set_running call.
10762 (signal_command): Use user_visible_resume_target. Compare thread
10763 pointers instead of inferior_ptid.
10764 (info_program_command): Adjust to pass down target.
10765 (attach_command): Mark target's 'thread_executing' flag.
10766 (stop_current_target_threads_ns): New, factored out from ...
10767 (interrupt_target_1): ... this. Switch inferior before making
10768 target calls.
10769 * inferior-iter.h
10770 (struct all_inferiors_iterator, struct all_inferiors_range)
10771 (struct all_inferiors_safe_range)
10772 (struct all_non_exited_inferiors_range): Filter on
10773 process_stratum_target too. Remove explicit.
10774 * inferior.c (inferior::inferior): Push dummy target on target
10775 stack.
10776 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10777 Add process_stratum_target parameter, and pass it down.
10778 (have_live_inferiors): Adjust.
10779 (switch_to_inferior_and_push_target): New.
10780 (add_inferior_command, clone_inferior_command): Handle
10781 "-no-connection" parameter. Use
10782 switch_to_inferior_and_push_target.
10783 (_initialize_inferior): Mention "-no-connection" option in
10784 the help of "add-inferior" and "clone-inferior" commands.
10785 * inferior.h: Include "process-stratum-target.h".
10786 (interrupt_target_1): Use bool.
10787 (struct inferior) <push_target, unpush_target, target_is_pushed,
10788 find_target_beneath, top_target, process_target, target_at,
10789 m_stack>: New.
10790 (discard_all_inferiors): Delete.
10791 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10792 (all_inferiors, all_non_exited_inferiors): Add
10793 process_stratum_target parameter.
10794 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10795 (target_last_proc_target): New global.
10796 (follow_fork_inferior): Push target on new inferior. Pass target
10797 to add_thread_silent. Call exec_on_vfork. Handle target's
10798 reference count.
10799 (follow_fork): Adjust get_last_target_status call. Also consider
10800 target.
10801 (follow_exec): Push target on new inferior.
10802 (struct execution_control_state) <target>: New field.
10803 (user_visible_resume_target): New.
10804 (do_target_resume): Call target_async.
10805 (resume_1): Set target's threads_executing flag. Consider resume
10806 target.
10807 (commit_resume_all_targets): New.
10808 (proceed): Also consider resume target. Skip threads of inferiors
10809 with no execution. Commit resumtion in all targets.
10810 (start_remote): Pass current inferior to wait_for_inferior.
10811 (infrun_thread_stop_requested): Consider target as well. Pass
10812 thread_info pointer to clear_inline_frame_state instead of ptid.
10813 (infrun_thread_thread_exit): Consider target as well.
10814 (random_pending_event_thread): New inferior parameter. Use it.
10815 (do_target_wait): Rename to ...
10816 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10817 down.
10818 (threads_are_resumed_pending_p, do_target_wait): New.
10819 (prepare_for_detach): Adjust calls.
10820 (wait_for_inferior): New inferior parameter. Handle it. Use
10821 do_target_wait_1 instead of do_target_wait.
10822 (fetch_inferior_event): Adjust. Switch to representative
10823 inferior. Pass target down.
10824 (set_last_target_status): Add process_stratum_target parameter.
10825 Save target in global.
10826 (get_last_target_status): Add process_stratum_target parameter and
10827 handle it.
10828 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10829 (context_switch): Check inferior_ptid == null_ptid before calling
10830 inferior_thread().
10831 (get_inferior_stop_soon): Pass down target.
10832 (wait_one): Rename to ...
10833 (poll_one_curr_target): ... this.
10834 (struct wait_one_event): New.
10835 (wait_one): New.
10836 (stop_all_threads): Adjust.
10837 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10838 event's target.
10839 (switch_back_to_stepped_thread): Also consider target.
10840 (print_stop_event): Update.
10841 (normal_stop): Update. Also consider the resume target.
10842 * infrun.h (wait_for_inferior): Remove declaration.
10843 (user_visible_resume_target): New declaration.
10844 (get_last_target_status, set_last_target_status): New
10845 process_stratum_target parameter.
10846 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10847 process_stratum_target parameter, and use it.
10848 (clear_inline_frame_state (thread_info*)): New.
10849 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10850 process_stratum_target parameter.
10851 (clear_inline_frame_state (thread_info*)): Declare.
10852 * linux-fork.c (delete_checkpoint_command): Pass target down to
10853 find_thread_ptid.
10854 (checkpoint_command): Adjust.
10855 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10856 instead of just tweaking inferior_ptid.
10857 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10858 (exit_lwp): Pass target down to find_thread_ptid.
10859 (attach_proc_task_lwp_callback): Pass target down to
10860 add_thread/set_running/set_executing.
10861 (linux_nat_target::attach): Pass target down to
10862 thread_change_ptid.
10863 (get_detach_signal): Pass target down to find_thread_ptid.
10864 Consider last target status's target.
10865 (linux_resume_one_lwp_throw, resume_lwp)
10866 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10867 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10868 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10869 (linux_nat_target::async_wait_fd): New.
10870 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10871 target down.
10872 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10873 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10874 * linux-thread-db.c (struct thread_db_info::process_target): New
10875 field.
10876 (add_thread_db_info): Save target.
10877 (get_thread_db_info): New process_stratum_target parameter. Also
10878 match target.
10879 (delete_thread_db_info): New process_stratum_target parameter.
10880 Also match target.
10881 (thread_from_lwp): Adjust to pass down target.
10882 (thread_db_notice_clone): Pass down target.
10883 (check_thread_db_callback): Pass down target.
10884 (try_thread_db_load_1): Always push the thread_db target.
10885 (try_thread_db_load, record_thread): Pass target down.
10886 (thread_db_target::detach): Pass target down. Always unpush the
10887 thread_db target.
10888 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10889 target down. Always unpush the thread_db target.
10890 (find_new_threads_callback, thread_db_find_new_threads_2)
10891 (thread_db_target::update_thread_list): Pass target down.
10892 (thread_db_target::pid_to_str): Pass current inferior down.
10893 (thread_db_target::get_thread_local_address): Pass target down.
10894 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10895 target down.
10896 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10897 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10898 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10899 (procfs_init_inferior): Rename to ...
10900 (procfs_target::procfs_init_inferior): ... this and adjust.
10901 (procfs_target::create_inferior, procfs_notice_thread)
10902 (procfs_do_thread_registers): Adjust.
10903 * ppc-fbsd-tdep.c: Include "inferior.h".
10904 (ppcfbsd_get_thread_local_address): Pass down target.
10905 * proc-service.c (ps_xfer_memory): Switch current inferior and
10906 program space as well.
10907 (get_ps_regcache): Pass target down.
10908 * process-stratum-target.c
10909 (process_stratum_target::thread_address_space)
10910 (process_stratum_target::thread_architecture): Pass target down.
10911 * process-stratum-target.h
10912 (process_stratum_target::threads_executing): New field.
10913 (as_process_stratum_target): New.
10914 * ravenscar-thread.c
10915 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10916 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10917 down.
10918 * record-btrace.c (record_btrace_target::info_record): Adjust.
10919 (record_btrace_target::record_method)
10920 (record_btrace_target::record_is_replaying)
10921 (record_btrace_target::fetch_registers)
10922 (get_thread_current_frame_id, record_btrace_target::resume)
10923 (record_btrace_target::wait, record_btrace_target::stop): Pass
10924 target down.
10925 * record-full.c (record_full_wait_1): Switch to event thread.
10926 Pass target down.
10927 * regcache.c (regcache::regcache)
10928 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10929 process_stratum_target parameter and handle it.
10930 (current_thread_target): New global.
10931 (get_thread_regcache): Add process_stratum_target parameter and
10932 handle it. Switch inferior before calling target method.
10933 (get_thread_regcache): Pass target down.
10934 (get_thread_regcache_for_ptid): Pass target down.
10935 (registers_changed_ptid): Add process_stratum_target parameter and
10936 handle it.
10937 (registers_changed_thread, registers_changed): Pass target down.
10938 (test_get_thread_arch_aspace_regcache): New.
10939 (current_regcache_test): Define a couple local test_target_ops
10940 instances and use them for testing.
10941 (readwrite_regcache): Pass process_stratum_target parameter.
10942 (cooked_read_test, cooked_write_test): Pass mock_target down.
10943 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10944 (get_thread_arch_aspace_regcache): Add process_stratum_target
10945 parameter.
10946 (regcache::target): New method.
10947 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10948 (regcache::registers_changed_ptid): Add process_stratum_target
10949 parameter.
10950 (regcache::m_target): New field.
10951 (registers_changed_ptid): Add process_stratum_target parameter.
10952 * remote.c (remote_state::supports_vCont_probed): New field.
10953 (remote_target::async_wait_fd): New method.
10954 (remote_unpush_and_throw): Add remote_target parameter.
10955 (get_current_remote_target): Adjust.
10956 (remote_target::remote_add_inferior): Push target.
10957 (remote_target::remote_add_thread)
10958 (remote_target::remote_notice_new_inferior)
10959 (get_remote_thread_info): Pass target down.
10960 (remote_target::update_thread_list): Skip threads of inferiors
10961 bound to other targets. (remote_target::close): Don't discard
10962 inferiors. (remote_target::add_current_inferior_and_thread)
10963 (remote_target::process_initial_stop_replies)
10964 (remote_target::start_remote)
10965 (remote_target::remote_serial_quit_handler): Pass down target.
10966 (remote_target::remote_unpush_target): New remote_target
10967 parameter. Unpush the target from all inferiors.
10968 (remote_target::remote_unpush_and_throw): New remote_target
10969 parameter. Pass it down.
10970 (remote_target::open_1): Check whether the current inferior has
10971 execution instead of checking whether any inferior is live. Pass
10972 target down.
10973 (remote_target::remote_detach_1): Pass down target. Use
10974 remote_unpush_target.
10975 (extended_remote_target::attach): Pass down target.
10976 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10977 (remote_target::append_resumption): Pass down target.
10978 (remote_target::append_pending_thread_resumptions)
10979 (remote_target::remote_resume_with_hc, remote_target::resume)
10980 (remote_target::commit_resume): Pass down target.
10981 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10982 (remote_target::interrupt_query)
10983 (remote_target::remove_new_fork_children)
10984 (remote_target::check_pending_events_prevent_wildcard_vcont)
10985 (remote_target::remote_parse_stop_reply)
10986 (remote_target::process_stop_reply): Pass down target.
10987 (first_remote_resumed_thread): New remote_target parameter. Pass
10988 it down.
10989 (remote_target::wait_as): Pass down target.
10990 (unpush_and_perror): New remote_target parameter. Pass it down.
10991 (remote_target::readchar, remote_target::remote_serial_write)
10992 (remote_target::getpkt_or_notif_sane_1)
10993 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10994 down target.
10995 (remote_target::mourn_inferior): Pass down target. Use
10996 remote_unpush_target.
10997 (remote_target::core_of_thread)
10998 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10999 (remote_target::pid_to_exec_file)
11000 (remote_target::thread_handle_to_thread_info): Pass down target.
11001 (remote_target::async_wait_fd): New.
11002 * riscv-fbsd-tdep.c: Include "inferior.h".
11003 (riscv_fbsd_get_thread_local_address): Pass down target.
11004 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11005 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11006 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11007 Adjust.
11008 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11009 * solib-svr4.c (enable_break): Pass down target.
11010 * spu-multiarch.c (parse_spufs_run): Pass down target.
11011 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11012 * target-delegates.c: Regenerate.
11013 * target.c (g_target_stack): Delete.
11014 (current_top_target): Return the current inferior's top target.
11015 (target_has_execution_1): Refer to the passed-in inferior's top
11016 target.
11017 (target_supports_terminal_ours): Check whether the initial
11018 inferior was already created.
11019 (decref_target): New.
11020 (target_stack::push): Incref/decref the target.
11021 (push_target, push_target, unpush_target): Adjust.
11022 (target_stack::unpush): Defref target.
11023 (target_is_pushed): Return bool. Adjust to refer to the current
11024 inferior's target stack.
11025 (dispose_inferior): Delete, and inline parts ...
11026 (target_preopen): ... here. Only dispose of the current inferior.
11027 (target_detach): Hold strong target reference while detaching.
11028 Pass target down.
11029 (target_thread_name): Add assertion.
11030 (target_resume): Pass down target.
11031 (target_ops::beneath, find_target_at): Adjust to refer to the
11032 current inferior's target stack.
11033 (get_dummy_target): New.
11034 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11035 has a thread running.
11036 (initialize_targets): Rename to ...
11037 (_initialize_target): ... this.
11038 * target.h: Include "gdbsupport/refcounted-object.h".
11039 (struct target_ops): Inherit refcounted_object.
11040 (target_ops::shortname, target_ops::longname): Make const.
11041 (target_ops::async_wait_fd): New method.
11042 (decref_target): Declare.
11043 (struct target_ops_ref_policy): New.
11044 (target_ops_ref): New typedef.
11045 (get_dummy_target): Declare function.
11046 (target_is_pushed): Return bool.
11047 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11048 (all_matching_threads_iterator::all_matching_threads_iterator):
11049 Handle filter target.
11050 * thread-iter.h (struct all_matching_threads_iterator, struct
11051 all_matching_threads_range, class all_non_exited_threads_range):
11052 Filter by target too. Remove explicit.
11053 * thread.c (threads_executing): Delete.
11054 (inferior_thread): Pass down current inferior.
11055 (clear_thread_inferior_resources): Pass down thread pointer
11056 instead of ptid_t.
11057 (add_thread_silent, add_thread_with_info, add_thread): Add
11058 process_stratum_target parameter. Use it for thread and inferior
11059 searches.
11060 (is_current_thread): New.
11061 (thread_info::deletable): Use it.
11062 (find_thread_ptid, thread_count, in_thread_list)
11063 (thread_change_ptid, set_resumed, set_running): New
11064 process_stratum_target parameter. Pass it down.
11065 (set_executing): New process_stratum_target parameter. Pass it
11066 down. Adjust reference to 'threads_executing'.
11067 (threads_are_executing): New process_stratum_target parameter.
11068 Adjust reference to 'threads_executing'.
11069 (set_stop_requested, finish_thread_state): New
11070 process_stratum_target parameter. Pass it down.
11071 (switch_to_thread): Also match inferior.
11072 (switch_to_thread): New process_stratum_target parameter. Pass it
11073 down.
11074 (update_threads_executing): Reimplement.
11075 * top.c (quit_force): Pop targets from all inferior.
11076 (gdb_init): Don't call initialize_targets.
11077 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11078 Declare.
11079 (windows_add_thread, windows_delete_thread): Adjust.
11080 (get_windows_debug_event): Rename to ...
11081 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11082 * tracefile-tfile.c (tfile_target_open): Pass down target.
11083 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11084 Forward declare.
11085 (switch_to_thread): Add process_stratum_target parameter.
11086 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11087 parameter. Use it.
11088 (mi_on_resume): Pass target down.
11089 * nat/fork-inferior.c (startup_inferior): Add
11090 process_stratum_target parameter. Pass it down.
11091 * nat/fork-inferior.h (startup_inferior): Add
11092 process_stratum_target parameter.
11093 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11094
75c6c844
PA
110952020-01-10 Pedro Alves <palves@redhat.com>
11096
11097 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11098 directly. Instead find the first thread in the thread list and
11099 use switch_to_thread.
11100
78f2c40a
PA
111012020-01-10 Pedro Alves <palves@redhat.com>
11102
11103 * remote.c (remote_target::remote_add_inferior): Don't bind a
11104 process to the current inferior if the current inferior is already
11105 bound to a process.
11106
e7af6c70
TBA
111072020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11108 Pedro Alves <palves@redhat.com>
11109
11110 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11111 If no process is specified, return null_ptid instead of
11112 inferior_ptid.
11113 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11114 TARGET_WAITKIND_SIGNALLED with no pid.
11115
31ba933e
PA
111162020-01-10 Pedro Alves <palves@redhat.com>
11117
11118 * remote.c (first_remote_resumed_thread): New.
11119 (remote_target::wait_as): Use it as default event_ptid instead of
11120 inferior_ptid.
11121
735fc2ca
PA
111222020-01-10 Pedro Alves <palves@redhat.com>
11123
11124 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11125
c17e02e1
PA
111262020-01-10 Pedro Alves <palves@redhat.com>
11127
11128 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11129 not -1.
11130
ab1ddbcf
PA
111312020-01-10 Pedro Alves <palves@redhat.com>
11132
11133 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11134 ptid to get_last_target_status.
11135 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11136 ptid to get_last_target_status.
11137 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11138 get_last_target_status.
11139 (info_program_command): Don't pass a target_waitstatus to
11140 get_last_target_status.
11141 * infrun.c (init_wait_for_inferior): Use
11142 nullify_last_target_wait_ptid.
11143 (get_last_target_status): Handle nullptr arguments.
11144 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11145 (print_stop_event): Don't pass a ptid to get_last_target_status.
11146 (normal_stop): Don't pass a ptid to get_last_target_status.
11147 * infrun.h (get_last_target_status, set_last_target_status): Move
11148 comments here and update.
11149 (nullify_last_target_wait_ptid): Declare.
11150 * linux-fork.c (fork_load_infrun_state): Remove local extern
11151 declaration of nullify_last_target_wait_ptid.
11152 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11153 to get_last_target_status.
11154
f3f8ece4
PA
111552020-01-10 Pedro Alves <palves@redhat.com>
11156
11157 * gdbthread.h (scoped_restore_current_thread)
11158 <dont_restore, restore, m_dont_restore>: Declare.
11159 * thread.c (thread_alive): Add assertion. Return bool.
11160 (switch_to_thread_if_alive): New.
11161 (prune_threads): Switch inferior/thread.
11162 (print_thread_info_1): Switch thread before calling target methods.
11163 (scoped_restore_current_thread::restore): New, factored out from
11164 ...
11165 (scoped_restore_current_thread::~scoped_restore_current_thread):
11166 ... this.
11167 (scoped_restore_current_thread::scoped_restore_current_thread):
11168 Add assertion.
11169 (thread_apply_all_command, thread_select): Use
11170 switch_to_thread_if_alive.
11171 * infrun.c (proceed, restart_threads, handle_signal_stop)
11172 (switch_back_to_stepped_thread): Switch current thread before
11173 calling target methods.
11174
db2d40f7
PA
111752020-01-10 Pedro Alves <palves@redhat.com>
11176
11177 * inferior.c (switch_to_inferior_no_thread): New function,
11178 factored out from ...
11179 (inferior_command): ... here.
11180 * inferior.h (switch_to_inferior_no_thread): Declare.
11181 * mi/mi-main.c (run_one_inferior): Use
11182 switch_to_inferior_no_thread.
11183
bd420a2d
PA
111842020-01-10 Pedro Alves <palves@redhat.com>
11185
11186 * infcmd.c (kill_command): Remove dead code.
11187
ddf5db90
PA
111882020-01-10 Pedro Alves <palves@redhat.com>
11189
11190 * remote.c (remote_target::mourn_inferior): No longer check
11191 whether the target is running.
11192
5018ce90
PA
111932020-01-10 Pedro Alves <palves@redhat.com>
11194
11195 * corelow.c (core_target::has_execution): Change parameter type to
11196 inferior pointer.
11197 * inferior.c (number_of_live_inferiors): Use
11198 inferior::has_execution instead of target_has_execution_1.
11199 * inferior.h (inferior::has_execution): New.
11200 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11201 inferior::has_execution instead of target_has_execution_1.
11202 * process-stratum-target.c
11203 (process_stratum_target::has_execution): Change parameter type to
11204 inferior pointer. Check the inferior's PID instead of
11205 inferior_ptid.
11206 * process-stratum-target.h
11207 (process_stratum_target::has_execution): Change parameter type to
11208 inferior pointer.
11209 * record-full.c (record_full_core_target::has_execution): Change
11210 parameter type to inferior pointer.
11211 * target.c (target_has_execution_1): Change parameter type to
11212 inferior pointer.
11213 (target_has_execution_current): Adjust.
11214 * target.h (target_ops::has_execution): Change parameter type to
11215 inferior pointer.
11216 (target_has_execution_1): Change parameter type to inferior
11217 pointer. Change return type to bool.
11218 * tracefile.h (tracefile_target::has_execution): Change parameter
11219 type to inferior pointer.
11220
74375d18
PA
112212020-01-10 Pedro Alves <palves@redhat.com>
11222
11223 * exceptions.c (print_flush): Remove current_top_target() check.
11224
acdf84a6
PA
112252020-01-10 Pedro Alves <palves@redhat.com>
11226
11227 * remote.c (show_remote_exec_file): Show the current inferior's
11228 exec-file instead of the command variable's value.
11229
ec506636
PA
112302020-01-10 Pedro Alves <palves@redhat.com>
11231
11232 * record-full.c (record_full_resume_ptid): New global.
11233 (record_full_target::resume): Set it.
11234 (record_full_wait_1): Use record_full_resume_ptid instead of
11235 inferior_ptid.
11236
873657b9
PA
112372020-01-10 Pedro Alves <palves@redhat.com>
11238
11239 * gdbthread.h (scoped_restore_current_thread)
11240 <dont_restore, restore, m_dont_restore>: Declare.
11241 * thread.c (thread_alive): Add assertion. Return bool.
11242 (switch_to_thread_if_alive): New.
11243 (prune_threads): Switch inferior/thread.
11244 (print_thread_info_1): Switch thread before calling target methods.
11245 (scoped_restore_current_thread::restore): New, factored out from
11246 ...
11247 (scoped_restore_current_thread::~scoped_restore_current_thread):
11248 ... this.
11249 (scoped_restore_current_thread::scoped_restore_current_thread):
11250 Add assertion.
11251 (thread_apply_all_command, thread_select): Use
11252 switch_to_thread_if_alive.
11253
7f0ae84c
GB
112542020-01-10 George Barrett <bob@bob131.so>
11255
11256 * stap-probe.c (stap_modify_semaphore): Don't check for null
11257 semaphores.
11258 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11259 for null semaphores.
11260
f5a7c406
AB
112612020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11262
11263 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11264 all source windows, and maintain horizontal scroll status while
11265 doing so.
11266
9ae6bf64
TT
112672020-01-09 Tom Tromey <tom@tromey.com>
11268
11269 PR tui/18932:
11270 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11271 update_source_window, not print_source_lines.
11272
b2efe70c
AB
112732020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11274
11275 * tui/tui.c (tui_enable): Register tui hooks after calling
11276 tui_display_main.
11277
5f23a082
CB
112782020-01-09 Christian Biesinger <cbiesinger@google.com>
11279
11280 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11281
3061113b
SM
112822020-01-08 Simon Marchi <simon.marchi@efficios.com>
11283
11284 * thread.c (print_thread_info_1): Fix indentation.
11285
57d75002
CB
112862020-01-09 Christian Biesinger <cbiesinger@google.com>
11287
11288 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11289 unique_xmalloc_ptr outside the if to always free the demangled name.
11290
6a053cb1
TT
112912020-01-08 Tom Tromey <tromey@adacore.com>
11292
11293 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11294 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11295 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11296 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11297 Remove.
11298 (section_offsets): New typedef.
11299 * symtab.c (fixup_section, get_msymbol_address): Update.
11300 * symmisc.c (dump_msymbols): Update.
11301 * symfile.h (relative_addr_info_to_section_offsets)
11302 (symfile_map_offsets_to_segments): Update.
11303 * symfile.c (build_section_addr_info_from_objfile)
11304 (init_objfile_sect_indices): Update.
11305 (struct place_section_arg): Change type of "offsets".
11306 (place_section): Update.
11307 (relative_addr_info_to_section_offsets): Change type of
11308 "section_offsets". Remove "num_sections" parameter.
11309 (default_symfile_offsets, syms_from_objfile_1)
11310 (set_objfile_default_section_offset): Update.
11311 (reread_symbols): No need to preserve section offsets by hand.
11312 (symfile_map_offsets_to_segments): Change type of "offsets".
11313 * stap-probe.c (relocate_address): Update.
11314 * stabsread.h (process_one_symbol): Update.
11315 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11316 (solib_target_relocate_section_addresses): Update.
11317 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11318 Update.
11319 * solib-frv.c (frv_relocate_main_executable): Update.
11320 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11321 * solib-aix.c (solib_aix_get_section_offsets): Change return
11322 type.
11323 (solib_aix_solib_create_inferior_hook): Update.
11324 * remote.c (remote_target::get_offsets): Update.
11325 * psymtab.c (find_pc_sect_psymtab): Update.
11326 * psympriv.h (struct partial_symbol) <address, text_low,
11327 text_high>: Update.
11328 * objfiles.h (obj_section_offset): Update.
11329 (struct objfile) <section_offsets>: Change type.
11330 <num_sections>: Remove.
11331 (objfile_relocate): Update.
11332 * objfiles.c (entry_point_address_query): Update
11333 (relocate_one_symbol): Change type of "section_offsets".
11334 (objfile_relocate1, objfile_relocate1): Change type of
11335 "new_offsets".
11336 (objfile_rebase1): Update.
11337 * mipsread.c (mipscoff_symfile_read): Update.
11338 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11339 parameter.
11340 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11341 (parse_external, psymtab_to_symtab_1): Update.
11342 * machoread.c (macho_symfile_offsets): Update.
11343 * ia64-tdep.c (ia64_find_unwind_table): Update.
11344 * hppa-tdep.c (read_unwind_info): Update.
11345 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11346 * dwarf2read.c (create_addrmap_from_index)
11347 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11348 (process_psymtab_comp_unit_reader, add_partial_symbol)
11349 (add_partial_subprogram, process_full_comp_unit)
11350 (read_file_scope, read_func_scope, read_lexical_block_scope)
11351 (read_call_site_scope, dwarf2_rnglists_process)
11352 (dwarf2_ranges_process, dwarf2_ranges_read)
11353 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11354 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11355 Update.
11356 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11357 Update.
11358 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11359 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11360 (process_one_symbol): Change type of "section_offsets".
11361 * ctfread.c (get_objfile_text_range): Update.
11362 * coffread.c (coff_symtab_read, enter_linenos)
11363 (process_coff_symbol): Update.
11364 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11365 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11366
456e800a
TT
113672020-01-08 Tom Tromey <tromey@adacore.com>
11368
11369 * dwarf2read.c (parse_macro_definition): Use std::string.
11370 (parse_macro_definition): Likewise.
11371
6dfa2fc2
TT
113722020-01-08 Tom Tromey <tromey@adacore.com>
11373
11374 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11375 (ATTR_ALLOC_CHUNK): Remove.
11376
421d1616
TT
113772020-01-08 Tom Tromey <tromey@adacore.com>
11378
11379 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11380
43816ebc
TT
113812020-01-08 Tom Tromey <tromey@adacore.com>
11382
11383 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11384 (dwarf2_compute_name, open_dwo_file): Likewise.
11385 (process_enumeration_scope): Use std::vector.
11386 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11387 (partial_die_info::fixup, dwarf2_start_subfile)
11388 (guess_full_die_structure_name, dwarf2_name): Likewise.
11389 (determine_prefix): Update.
11390 (guess_full_die_structure_name): Make return type const.
11391 (partial_die_full_name): Return unique_xmalloc_ptr.
11392 (DW_FIELD_ALLOC_CHUNK): Remove.
11393
4212d509
TT
113942020-01-07 Tom Tromey <tromey@adacore.com>
11395
11396 PR build/24937:
11397 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11398
06a6207a
JT
113992020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11400
11401 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11402
153d79c4
AB
114032020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11404
11405 * stack.c (print_frame_info): Move disassemble_next_line code
11406 inside source_print block.
11407
66182876
EZ
114082020-01-06 Eli Zaretskii <eliz@gnu.org>
11409
11410 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11411 gdb/signals.h, as we are now using native signal symbols.
11412
cbfa8581
SV
114132020-01-06 Shahab Vahedi <shahab@synopsys.com>
11414
11415 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11416 overflow by an early check of content vs threshold.
aac66a4c 11417 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11418 Likewise.
11419
3f602821
EZ
114202020-01-06 Eli Zaretskii <eliz@gnu.org>
11421
11422 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11423
a08c904d
JT
114242020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11425
11426 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11427 export table if no section contains it's RVA.
11428
89a65580
EZ
114292020-01-06 Eli Zaretskii <eliz@gnu.org>
11430
11431 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11432
8b7fcda2
HD
114332020-01-06 Hannes Domani <ssbssa@yahoo.de>
11434
11435 * source.c (print_source_lines_base): Set last_line_listed.
11436
a61b4f69
SV
114372020-01-06 Shahab Vahedi <shahab@synopsys.com>
11438
11439 * tui/tui-disasm.c: Remove trailing spaces.
11440
559e7e50
EZ
114412020-01-06 Eli Zaretskii <eliz@gnu.org>
11442 Pedro Alves <palves@redhat.com>
11443
11444 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11445 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11446 (windows_gdb_signal_to_target): New function, uses the above
11447 enumeration to convert GDB internal signal codes to equivalent
11448 Windows codes.
11449 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11450 * windows-nat.c: Include "gdb_wait.h".
11451 (get_windows_debug_event): Extract the fatal exception from the
11452 exit status and convert to the equivalent Posix signal number.
11453 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11454 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11455 * gdbsupport/gdb_wait.c: New file, implements
11456 windows_status_to_termsig.
11457 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11458 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11459
f2302a34
AB
114602020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11461
11462 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11463 show_layout.
11464
6a5206eb
LM
114652020-01-05 Luis Machado <luis.machado@linaro.org>
11466
11467 * aarch64-linux-nat.c
11468 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11469 and bfd_mach_aarch64.
11470
6ec1d75e
PW
114712020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11472
11473 * ui-file.c (stdio_file::can_emit_style_escape)
11474 (tee_file::can_emit_style_escape): Ensure style is used also on
11475 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11476 to gdb_stdout.
11477 * main.c (set_gdb_data_directory): Use file style to output the
11478 warning that the given pathname is not a directory.
11479 * top.c (show_history_filename, gdb_safe_append_history)
11480 (show_gdb_datadir): Use file style.
11481
44f81a76
HD
114822020-01-03 Hannes Domani <ssbssa@yahoo.de>
11483
11484 * solib-target.c (struct lm_info_target):
11485 Change offsets to be a unique_xmalloc_ptr.
11486 (solib_target_relocate_section_addresses): Update.
11487
25057eb0
HD
114882020-01-03 Hannes Domani <ssbssa@yahoo.de>
11489
11490 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11491
6e2118f5
BE
114922020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11493
11494 * MAINTAINERS (Write After Approval): Add myself.
11495
8133c7dc
LM
114962020-01-02 Luis Machado <luis.machado@linaro.org>
11497
11498 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11499 Cell BE architecture.
11500 * target.h (struct target_ops) <thread_architecture>: Likewise.
11501
48189bec
HD
115022020-01-01 Hannes Domani <ssbssa@yahoo.de>
11503
11504 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11505
ead1063b
HD
115062020-01-01 Hannes Domani <ssbssa@yahoo.de>
11507
11508 * MAINTAINERS (Write After Approval): Add myself.
11509
e5d78223
JB
115102020-01-01 Joel Brobecker <brobecker@adacore.com>
11511
11512 * gdbarch.sh: Update copyright year range of generated files.
11513
b811d2c2
JB
115142020-01-01 Joel Brobecker <brobecker@adacore.com>
11515
11516 Update copyright year range in all GDB files.
11517
5f4def5c
JB
115182020-01-01 Joel Brobecker <brobecker@adacore.com>
11519
11520 * copyright.py: Convert to Python 3.
11521
51fd4002
JB
115222020-01-01 Joel Brobecker <brobecker@adacore.com>
11523
11524 * copyright.py: Adapt after move of gnulib directory from gdb
11525 directory to toplevel directory.
11526
5fb651f2
JB
115272020-01-01 Joel Brobecker <brobecker@adacore.com>
11528
11529 * copyright.py (main): Exit if run from the wrong directory.
11530
5dd8bf88
JB
115312020-01-01 Joel Brobecker <brobecker@adacore.com>
11532
11533 * top.c (print_gdb_version): Change copyright year to 2020.
11534
9f71dacb 115352020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11536
9f71dacb 11537 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11538
9f71dacb 11539For older changes see ChangeLog-2019.
c906108c
SS
11540\f
11541Local Variables:
11542mode: change-log
11543left-margin: 8
11544fill-column: 74
11545version-control: never
57da7796 11546coding: utf-8
c906108c 11547End: