gdb/disassembly: Update to handle non-statement addresses
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
78344df7
AB
12020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4 exclude non-statement entries.
5
b089853a
KB
62020-07-22 Kevin Buettner <kevinb@redhat.com>
7
8 * NEWS (New commands): Mention new command
9 "maintenance print core-file-backed-mappings".
10
09c2f5d4
KB
112020-07-22 Kevin Buettner <kevinb@redhat.com>
12
13 * corelow.c (gdbcmd.h): Include.
14 (core_target::info_proc_mappings): New method.
15 (get_current_core_target): New function.
16 (maintenance_print_core_file_backed_mappings): New function.
17 (_initialize_corelow): Add core-file-backed-mappings to
18 "maint print" commands.
19
9c5ec5c2
KB
202020-07-22 Kevin Buettner <kevinb@redhat.com>
21
22 * linux-tdep.c (dump_note_entry_p): New function.
23 (linux_dump_mapping_p_ftype): New typedef.
24 (linux_find_memory_regions_full): Add new parameter,
25 should_dump_mapping_p.
26 (linux_find_memory_regions): Adjust call to
27 linux_find_memory_regions_full.
28 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
29 call to linux_find_memory_regions_full.
30
db082f59
KB
312020-07-22 Kevin Buettner <kevinb@redhat.com>
32
33 * corelow.c (solist.h, unordered_map): Include.
34 (class core_target): Add field m_core_file_mappings and
35 method build_file_mappings.
36 (core_target::core_target): Call build_file_mappings.
37 (core_target::~core_target): Free memory associated with
38 m_core_file_mappings.
39 (core_target::build_file_mappings): New method.
40 (core_target::xfer_partial): Use m_core_file_mappings
41 for memory transfers.
42 * linux-tdep.c (linux_read_core_file_mappings): New
43 function.
44 (linux_core_info_proc_mappings): Rewrite to use
45 linux_read_core_file_mappings.
46 (linux_init_abi): Register linux_read_core_file_mappings.
47
7e183d27
KB
482020-07-22 Kevin Buettner <kevinb@redhat.com>
49
50 * arch-utils.c (default_read_core_file_mappings): New function.
51 * arch-utils.c (default_read_core_file_mappings): Declare.
52 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
53 * gdbarch.h, gdbarch.c: Regenerate.
54
2735d421
KB
552020-07-22 Kevin Buettner <kevinb@redhat.com>
56
57 PR corefiles/25631
58 * corelow.c (core_target:xfer_partial): Revise
59 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
60 case after first checking the stratum beneath the core
61 target.
62 (has_all_memory): Return true.
63 * target.c (raw_memory_xfer_partial): Revise comment
64 regarding use of has_all_memory.
65
e56cb451
KB
662020-07-22 Kevin Buettner <kevinb@redhat.com>
67
68 * exec.h (section_table_xfer_memory): Revise declaration,
69 replacing section name parameter with an optional callback
70 predicate.
71 * exec.c (section_table_xfer_memory): Likewise.
72 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
73 of section_table_xfer_memory.
74
32fa152e
TT
752020-07-22 Tom Tromey <tromey@adacore.com>
76
77 * mi/mi-cmd-stack.c (list_args_or_locals): Use
78 lookup_symbol_search_name.
79
a67a1c41
AB
802020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
81
82 * python/py-registers.c (gdbpy_register_object_data_init): Remove
83 redundant local variable.
84 (gdbpy_get_register_descriptor): Extract descriptor vector as a
85 reference, not pointer, update code accordingly.
86
a7b4ff4f
SM
872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
88 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
89
90 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
91 * jit.c (jit_breakpoint_re_set_internal): Use the
92 `skip_jit_symbol_lookup` field.
93
2340e834
SM
942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
95 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
96
97 * jit.c (jit_read_descriptor): Define the descriptor address once,
98 use twice.
99 (jit_breakpoint_deleted): Move the declaration of the loop variable
100 `iter` into the loop header.
101 (jit_breakpoint_re_set_internal): Move the declaration of the local
102 variable `objf_data` to the first point of definition.
103 (jit_event_handler): Move the declaration of local variables
104 `code_entry`, `entry_addr`, and `objf` to their first point of use.
105 Rename `objf` to `jited`.
106
c1072906
SM
1072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
110 Remove.
111 * jit.c (get_jiter_objfile_data): Update.
112
c8474dc3
TBA
1132020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
114 Simon Marchi <simon.marchi@polymtl.ca>
115
116 * jit.c (struct jit_program_space_data): Remove.
117 (jit_program_space_key): Remove.
118 (jiter_objfile_data::~jiter_objfile_data): Remove program space
119 stuff.
120 (get_jit_program_space_data): Remove.
121 (jit_breakpoint_deleted): Iterate on all of the program space's
122 objfiles.
123 (jit_inferior_init): Likewise.
124 (jit_breakpoint_re_set_internal): Likewise. Also change return
125 type to void.
126 (jit_breakpoint_re_set): Pass current_program_space to
127 jit_breakpoint_re_set_internal.
128
77208eb7
SM
1292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
130
131 * jit.h (struct jiter_objfile_data) <cached_code_address,
132 jit_breakpoint>: Move to here from ...
133 * jit.c (jit_program_space_data): ... here.
134 (jiter_objfile_data::~jiter_objfile_data): Update.
135 (jit_breakpoint_deleted): Update.
136 (jit_breakpoint_re_set_internal): Update.
137
8c1c720f
SM
1382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
141 checks.
142 (jit_read_descriptor): Remove NULL check.
143 (jit_event_handler): Add an assertion.
144
0e74a041
SM
1452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
146
147 * jit.h (struct jit_objfile_data): Split into...
148 (struct jiter_objfile_data): ... this ...
149 (struct jited_objfile_data): ... and this.
150 * objfiles.h (struct objfile) <jit_data>: Remove.
151 <jiter_data, jited_data>: New fields.
152 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
153 (jiter_objfile_data::~jiter_objfile_data): ... this.
154 (get_jit_objfile_data): Rename to ...
155 (get_jiter_objfile_data): ... this.
156 (add_objfile_entry): Update.
157 (jit_read_descriptor): Use get_jiter_objfile_data.
158 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
159 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
160 (jit_inferior_exit_hook): Use objfile's jited_data field.
161
238b5c9f
SM
1622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * jit.h: Forward-declare `struct minimal_symbol`.
165 (struct jit_objfile_data): Migrate to here from jit.c; also add a
166 constructor, destructor, and an objfile* field.
167 * jit.c (jit_objfile_data): Remove.
168 (struct jit_objfile_data): Migrate from here to jit.h.
169 (jit_objfile_data::~jit_objfile_data): New destructor
170 implementation with code moved from free_objfile_data.
171 (free_objfile_data): Delete.
172 (get_jit_objfile_data): Update to use the jit_data field of objfile.
173 (jit_find_objf_with_entry_addr): Ditto.
174 (jit_inferior_exit_hook): Ditto.
175 (_initialize_jit): Remove the call to
176 register_objfile_data_with_cleanup.
177 * objfiles.h (struct objfile) <jit_data>: New field.
178
fe053b9e
TBA
1792020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
180
181 * jit.h: Forward-declare `struct objfile`.
182 (jit_event_handler): Add a second parameter, the JITer objfile.
183 * jit.c (jit_read_descriptor): Change the signature to take the
184 JITer objfile as an argument instead of the jit_program_space_data.
185 (jit_inferior_init): Update the call to jit_read_descriptor.
186 (jit_event_handler): Use the new JITer objfile argument when calling
187 jit_read_descriptor.
188 * breakpoint.c (handle_jit_event): Update the call to
189 jit_event_handler to pass the JITer objfile.
190
4cec0c66
JB
1912020-07-21 John Baldwin <jhb@FreeBSD.org>
192
193 * gdbarch.c: Regenerate.
194 * gdbarch.h: Regenerate.
195 * gdbarch.sh (handle_segmentation_fault): Remove method.
196 * infrun.c (handle_segmentation_fault): Remove.
197 (print_signal_received_reason): Remove call to
198 handle_segmentation_fault.
199
0e42f66a
JB
2002020-07-21 John Baldwin <jhb@FreeBSD.org>
201
202 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
203 Rename to sparc64_linux_report_signal_info and add siggnal
204 argument.
205 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
206 instead of sparc64_linux_handle_segmentation_fault.
207
77bdfeb2
JB
2082020-07-21 John Baldwin <jhb@FreeBSD.org>
209
210 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
211 i386_linux_report_signal_info instead of
212 i386_linux_handle_segmentation_fault.
213 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
214 to i386_linux_report_signal_info and add siggnal argument.
215 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
216 of i386_linux_handle_segmentation_fault.
217 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
218 to i386_linux_report_signal_info and add siggnal argument.
219
ad97bfc5
JB
2202020-07-21 John Baldwin <jhb@FreeBSD.org>
221
222 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
223 hook if present.
224
272bb05c
JB
2252020-07-21 John Baldwin <jhb@FreeBSD.org>
226
227 * gdbarch.c: Regenerate.
228 * gdbarch.h: Regenerate.
229 * gdbarch.sh (report_signal_info): New method.
230 * infrun.c (print_signal_received_reason): Invoke gdbarch
231 report_signal_info hook if present.
232
baf8791e
AB
2332020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
234
235 * python/py-registers.c : Add 'unordered_map' include.
236 (gdbpy_new_reggroup): Renamed to...
237 (gdbpy_get_reggroup): ...this. Update to only create register
238 group descriptors when needed.
239 (gdbpy_reggroup_iter_next): Update.
240
f7306dac
AB
2412020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 * python/py-registers.c (gdbpy_register_object_data): New static
244 global.
245 (gdbpy_register_object_data_init): New function.
246 (gdbpy_new_register_descriptor): Renamed to...
247 (gdbpy_get_register_descriptor): ...this, and update to reuse
248 existing register descriptors where possible.
249 (gdbpy_register_descriptor_iter_next): Update.
250 (gdbpy_initialize_registers): Register new gdbarch data.
251
05c309a8
SM
2522020-07-21 Simon Marchi <simon.marchi@efficios.com>
253
254 * linux-nat.c (stopped_pids): Make static.
255
d1fd641e
SM
2562020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
257
258 PR ada/26235
259 * gdbtypes.c (ada_discrete_type_low_bound,
260 ada_discrete_type_high_bound): Handle undefined bounds.
261
1de14d77
KR
2622020-07-21 Kamil Rytarowski <n54@gmx.com>
263
264 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
265 declaration.
266 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
267 function.
268
ed810cc7
JB
2692020-07-20 John Baldwin <jhb@FreeBSD.org>
270
271 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
272 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
273 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
274 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
275 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
276 method.
277
ae5369e7
LC
2782020-07-20 Ludovic Courtès <ludo@gnu.org>
279
280 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
281 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
282 which are deprecated in Guile 3.0.
283 * configure.ac (try_guile_versions): Add "guile-3.0".
284 * configure (try_guile_versions): Regenerate.
285 * NEWS: Update entry.
286
68cf161c
LC
2872020-07-20 Ludovic Courtès <ludo@gnu.org>
288 Doug Evans <dje@google.com>
289
290 PR gdb/21104
291 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
292 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
293 USING_GUILE_BEFORE_2_2.
294 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
295 Change type to 'scm_t_port_type *'.
296 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
297 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
298 parameter and honor it. Update callers.
299 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
300 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
301 functions.
302 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
303 USING_GUILE_BEFORE_2_2.
304 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
305 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
306 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
307 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
308 and 'SCM_PORT_TYPE'.
309 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
310 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
311 (gdbscm_memory_port_read, gdbscm_memory_port_write)
312 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
313 [!USING_GUILE_BEFORE_2_2]: New functions.
314 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
315 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
316 'gdbscm_memory_port_read'.
317 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
318 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
319 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
320 function.
321 (ioscm_init_memory_port): Remove.
322 (ioscm_init_memory_port_stream): New function
323 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
324 function.
325 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
326 Return scm_from_uint (0).
327 (gdbscm_set_memory_port_read_buffer_size_x)
328 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
329 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
330 Return scm_from_uint (0).
331 (gdbscm_set_memory_port_write_buffer_size_x)
332 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
333 * configure.ac (try_guile_versions): Add "guile-2.2".
334 * configure: Regenerate.
335 * NEWS: Add entry.
336
aee91db3
TT
3372020-07-18 Tom Tromey <tom@tromey.com>
338
339 * linux-nat.c (linux_multi_process): Remove.
340 (linux_nat_target::supports_multi_process): Return true.
341
0e267416
AB
3422020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
343
344 * arch/riscv.c (riscv_tdesc_cache): Change map type.
345 (riscv_lookup_target_description): Return pointer out of
346 unique_ptr.
347 * target-descriptions.c (allocate_target_description): Add
348 comment.
349 (target_desc_deleter::operator()): Likewise.
350 * target-descriptions.h (struct target_desc_deleter): Moved to
351 gdbsupport/tdesc.h.
352 (target_desc_up): Likewise.
353
f80c8ec4
TT
3542020-07-17 Tom Tromey <tromey@adacore.com>
355
356 * linux-nat.c (linux_nat_target::supports_non_stop)
357 (linux_nat_target::always_non_stop_p): Use "true".
358 (linux_nat_target::supports_disable_randomization): Use "true" and
359 "false".
360
d0ce17d8
CT
3612020-07-16 Caroline Tice <cmtice@google.com>
362
363 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
364 (RNGLIST_HEADER_SIZE64): New constant definition.
365 (struct dwop_section_names): Add rnglists_dwo.
366 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
367 (struct loclist_header): Rename to 'loclists_rnglists_header'.
368 (struct dwo_sections): Add rnglists field.
369 (read_attribut_reprocess): Add tag parameter.
370 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
371 (cu_debug_rnglists_section): New function (decl & definition).
372 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
373 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
374 die whose range is being checked; get rnglist section from
375 cu_debug_rnglists_section, to get from either objfile or dwo file as
376 appropriate. Add cases for DW_RLE_base_addressx,
377 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
378 the base address to DW_RLE_offset_pairs (not to all ranges), moving
379 test inside if-condition and updating complaint message.
380 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
381 dwarf2_rnglists_process.
382 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
383 dwarf2_ranges_process.
384 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
385 need_ranges_base and update comment appropriately. Also pass die tag
386 to dwarf2_ranges_read.
387 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
388 need_ranges_base and update comment appropriately. Also pass die tag
389 to dwarf2_ranges_process.
390 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
391 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
392 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
393 need_ranges_base and update comment appropriately. Also pass die tag
394 to read_attribute_reprocess and dwarf2_ranges_read.
395 (read_loclist_header): Rename function to read_loclists_rnglists_header,
396 and update function comment appropriately.
397 (read_loclist_index): Call read_loclists_rnglists_header instead of
398 read_loclist_header.
399 (read_rnglist_index): New function.
400 (read_attribute_reprocess): Add tag parameter. Add code for
401 DW_FORM_rnglistx, passing tag to read_rnglist_index.
402 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
403
3dcc261c
AB
4042020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
405
406 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
407 being resolved.
408
ccb9eba6
AB
4092020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * arch-utils.c (show_architecture): Update formatting of messages.
412
cf88be68
SM
4132020-07-12 Simon Marchi <simon.marchi@efficios.com>
414
415 * gdbtypes.h (struct type) <bounds>: Handle array and string
416 types.
417 * ada-lang.c (assign_aggregate): Use type::bounds on
418 array/string type.
419 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
420 * c-varobj.c (c_number_of_children): Likewise.
421 (c_describe_child): Likewise.
422 * eval.c (evaluate_subexp_for_sizeof): Likewise.
423 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
424 (f_type_print_base): Likewise.
425 * f-valprint.c (f77_array_offset_tbl): Likewise.
426 (f77_get_upperbound): Likewise.
427 (f77_print_array_1): Likewise.
428 * guile/scm-type.c (gdbscm_type_range): Likewise.
429 * m2-typeprint.c (m2_array): Likewise.
430 (m2_is_long_set_of_type): Likewise.
431 * m2-valprint.c (get_long_set_bounds): Likewise.
432 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
433 * python/py-type.c (typy_range): Likewise.
434 * rust-lang.c (rust_internal_print_type): Likewise.
435 * type-stack.c (type_stack::follow_types): Likewise.
436 * valarith.c (value_subscripted_rvalue): Likewise.
437 * valops.c (value_cast): Likewise.
438
509971ae
SM
4392020-07-12 Simon Marchi <simon.marchi@efficios.com>
440
441 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
442 callers to use the equivalent accessor methods.
443
107406b7
SM
4442020-07-12 Simon Marchi <simon.marchi@efficios.com>
445
446 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
447 (struct type) <bit_stride>: New method.
448 (TYPE_BIT_STRIDE): Remove.
449 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
450
bb789949
SM
4512020-07-12 Simon Marchi <simon.marchi@efficios.com>
452
453 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
454 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
455 callers to use the equivalent accessor methods instead.
456
39498edb
SM
4572020-07-12 Simon Marchi <simon.marchi@efficios.com>
458
459 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
460 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
461 callers to use the equivalent accessor methods instead.
462
3b606f38
SM
4632020-07-12 Simon Marchi <simon.marchi@efficios.com>
464
465 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
466 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
467 to use dynamic_prop::kind.
468
064d9cb9
SM
4692020-07-12 Simon Marchi <simon.marchi@efficios.com>
470
471 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
472 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
473 to get the bound property's kind and check against
474 PROP_UNDEFINED.
475
5537ddd0
SM
4762020-07-12 Simon Marchi <simon.marchi@efficios.com>
477
478 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
479 all callers to use type::range_bounds followed by
480 dynamic_prop::{low,high}.
481
8c2e4e06
SM
4822020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
483
484 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
485 const_val, set_const_val, baton, set_locexpr, set_loclist,
486 set_addr_offset, variant_parts, set_variant_parts,
487 original_type, set_original_type>: New methods.
488 <kind>: Rename to...
489 <m_kind>: ... this. Update all users to use the new methods
490 instead.
491 <data>: Rename to...
492 <m_data>: ... this. Update all users to use the new methods
493 instead.
494
7c6f2712
SM
4952020-07-12 Simon Marchi <simon.marchi@efficios.com>
496
497 * gdbtypes.c (get_discrete_bounds): Return failure if
498 the range type's bounds are not both defined and constant
499 values.
500 (get_array_bounds): Update comment. Remove undefined bound check.
501
599088e3
SM
5022020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
503
504 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
505 the type::bounds method directly.
506
c4dfcb36
SM
5072020-07-12 Simon Marchi <simon.marchi@efficios.com>
508
509 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
510 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
511 are used to set the range type's bounds to use set_bounds.
512
0a278aa7
PW
5132020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
514
515 * exec.c (_initialize_exec): Update exec-file-mismatch help.
516
cce20f10
PA
5172020-07-10 Pedro Alves <pedro@palves.net>
518
519 * gdbthread.h (inferior_ref): Define.
520 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
521 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
522 * thread.c
523 (scoped_restore_current_thread::restore):
524 Adjust to gdb::ref_ptr.
525 (scoped_restore_current_thread::~scoped_restore_current_thread):
526 Remove manual decref handling.
527 (scoped_restore_current_thread::scoped_restore_current_thread):
528 Adjust to use
529 inferior_ref::new_reference/thread_info_ref::new_reference.
530 Incref the thread before calling get_frame_id instead of after.
531 Let TARGET_CLOSE_ERROR propagate.
532
6d7aa592
PA
5332020-07-10 Pedro Alves <pedro@palves.net>
534
535 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
536 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
537 NOT_AVAILABLE_ERROR.
538 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
539 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
540
b3e3a4c1
SM
5412020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
542 Pedro Alves <pedro@palves.net>
543
544 PR gdb/26199
545 * infrun.c (threads_are_resumed_pending_p): Delete.
546 (do_target_wait): Remove threads_are_executing and
547 threads_are_resumed_pending_p checks from the inferior_matches
548 lambda. Update comments.
549
d6cc5d98
PA
5502020-07-10 Pedro Alves <pedro@palves.net>
551
552 PR gdb/26199
553 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
554 executing threads.
555
7d3badc6
PA
5562020-07-10 Pedro Alves <pedro@palves.net>
557
558 PR gdb/26199
559 * infrun.c (handle_no_resumed): Handle multiple targets.
560
42bd97a6
PA
5612020-07-10 Pedro Alves <pedro@palves.net>
562
563 PR gdb/26199
564 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
565 target_is_async_p.
566
43667cc6
PA
5672020-07-10 Pedro Alves <pedro@palves.net>
568
569 PR gdb/26199
570 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
571 threads, not all threads.
572
96118d11
PA
5732020-07-10 Pedro Alves <pedro@palves.net>
574
575 PR gdb/26199
576 * remote.c (remote_target::open_1): Pass remote target pointer as
577 data to create_async_event_handler.
578 (remote_async_inferior_event_handler): Mark async event handler
579 before returning if the remote target still has either pending
580 events or unacknowledged notifications.
581
54904d81
JB
5822020-07-10 John Baldwin <jhb@FreeBSD.org>
583
584 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
585 declaration.
586 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
587 function.
588
f37e5866
JB
5892020-07-09 John Baldwin <jhb@FreeBSD.org>
590
591 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
592 inferior_ptid.
593
fc238d4a
JB
5942020-07-09 John Baldwin <jhb@FreeBSD.org>
595
596 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
597 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
598 AT_FREEBSD_PS_STRINGS.
599
6e2469ff
HD
6002020-07-08 Hannes Domani <ssbssa@yahoo.de>
601
602 * auto-load.c (auto_load_objfile_script_1): Convert drive part
603 of debugfile path on Windows.
604
d1076c41
JB
6052020-07-08 John Baldwin <jhb@FreeBSD.org>
606
607 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
608 argument to 'data'.
609
15f3b077
TT
6102020-07-08 Tom Tromey <tromey@adacore.com>
611
612 * ada-lang.c (ada_exception_message_1): Use read_memory.
613
9fc501fd
AB
6142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 PR python/22748
617 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
618 special handling for inline frames.
619 * findvar.c (value_of_register_lazy): Skip inline frames when
620 creating lazy register values.
621 * frame.c (frame_id_computed_p): Delete definition.
622 * frame.h (frame_id_computed_p): Delete declaration.
623
64cb3757
AB
6242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 * NEWS: Mention additions to Python API.
627 * python/py-arch.c (archpy_register_groups): New function.
628 (arch_object_methods): Add 'register_groups' method.
629 * python/py-registers.c (reggroup_iterator_object): New struct.
630 (reggroup_object): New struct.
631 (gdbpy_new_reggroup): New function.
632 (gdbpy_reggroup_to_string): New function.
633 (gdbpy_reggroup_name): New function.
634 (gdbpy_reggroup_iter): New function.
635 (gdbpy_reggroup_iter_next): New function.
636 (gdbpy_new_reggroup_iterator): New function
637 (gdbpy_initialize_registers): Register new types.
638 (reggroup_iterator_object_type): Define new Python type.
639 (gdbpy_reggroup_getset): New static global.
640 (reggroup_object_type): Define new Python type.
641 * python/python-internal.h
642
0f767f94
AB
6432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
644
645 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
646 * python/py-arch.c (archpy_registers): New function.
647 (arch_object_methods): Add 'registers' method.
648 * python/py-registers.c: New file.
649 * python/python-internal.h
650 (gdbpy_new_register_descriptor_iterator): Declare.
651 (gdbpy_initialize_registers): Declare.
652 * python/python.c (do_start_initialization): Call
653 gdbpy_initialize_registers.
654 * NEWS: Mention additions to the Python API.
655
87dbc774
AB
6562020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
657
658 * NEWS: Mention new Python API method.
659 * python/py-unwind.c (pending_framepy_architecture): New function.
660 (pending_frame_object_methods): Add architecture method.
661
3bc98c0c
AB
6622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
663
664 * gdbarch.c: Regenerate.
665 * gdbarch.h: Regenerate.
666 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
667 (gdbarch_data): Use internal_error for the case where
668 deprecated_set_gdbarch_data was originally needed.
669 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
670 and use passed in obstack.
671 (libunwind_frame_set_descr): Should no longer get back NULL from
672 gdbarch_data.
673 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
674 type.
675 * user-regs.c (user_regs_init): Update parameters, and use passed
676 in obstack.
677 (user_reg_add): Should no longer get back NULL from gdbarch_data.
678 (_initialize_user_regs): Register as a pre-init gdbarch data type.
679
d8cc8af6
TV
6802020-07-06 Tom de Vries <tdevries@suse.de>
681
682 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
683 End-Of-Sequence in lte_is_less_than.
684 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
685 "gdb: Don't reorder line table entries too much when sorting".
686
947f7597
TV
6872020-07-06 Tom de Vries <tdevries@suse.de>
688
689 PR tui/26205
690 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
691
1e7c1b22
TV
6922020-07-05 Tom de Vries <tdevries@suse.de>
693
694 PR build/26187
695 * inferior.h (struct infcall_suspend_state_deleter): If available, use
696 std::uncaught_exceptions instead of deprecated
697 std::uncaught_exception.
698
a36158ec
SM
6992020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
700
701 * macroexp.h (macro_stringify): Return
702 gdb::unique_xmalloc_ptr<char>.
703 * macroexp.c (macro_stringify): Likewise.
704 * macrotab.c (fixup_definition): Update.
705
14d960c8
SM
7062020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
707
708 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
709 (lex_one_token): Update.
710 * macroexp.c (struct macro_buffer) <release>: Return
711 gdb::unique_xmalloc_ptr<char>.
712 (macro_stringify): Update.
713 (macro_expand): Update.
714 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
715 * macroexp.h (macro_expand_next): Likewise.
716
211d5b1c
SM
7172020-07-02 Simon Marchi <simon.marchi@efficios.com>
718
719 * macroexp.h (macro_lookup_ftype): Remove.
720 (macro_expand, macro_expand_once, macro_expand_next): Remove
721 lookup function parameters, add scope parameter.
722 * macroexp.c (scan, substitute_args, expand, maybe_expand,
723 macro_expand, macro_expand_once, macro_expand_next): Likewise.
724 * macroscope.h (standard_macro_lookup): Change parameter type
725 to macro_scope.
726 * macroscope.c (standard_macro_lookup): Likewise.
727 * c-exp.y (lex_one_token): Update.
728 * macrocmd.c (macro_expand_command): Likewise.
729 (macro_expand_once_command): Likewise.
730
b1a35af2
SM
7312020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
732
733 * inf-loop.c (inferior_event_handler): Remove client_data param.
734 * inf-loop.h (inferior_event_handler): Likewise.
735 * infcmd.c (step_1): Adjust.
736 * infrun.c (proceed): Adjust.
737 (fetch_inferior_event): Remove client_data param.
738 (infrun_async_inferior_event_handler): Adjust.
739 * infrun.h (fetch_inferior_event): Remove `void *` param.
740 * linux-nat.c (handle_target_event): Adjust.
741 * record-btrace.c (record_btrace_handle_async_inferior_event):
742 Adjust.
743 * record-full.c (record_full_async_inferior_event_handler):
744 Adjust.
745 * remote.c (remote_async_inferior_event_handler): Adjust.
746
1cdf9e33
TT
7472020-07-01 Tom Tromey <tom@tromey.com>
748
749 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
750 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
751
32c1e210
TT
7522020-07-01 Tom Tromey <tom@tromey.com>
753
754 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
755 tui_gen_win_info.
756 (tui_win_info::make_window): Merge with
757 tui_gen_win_info::make_window.
758 (tui_win_info::make_visible): Move from tui_gen_win_info.
759 * tui/tui-win.c (tui_win_info::max_width): Move from
760 tui_gen_win_info.
761 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
762 type.
763 <window_factory>: Likewise.
764 * tui/tui-layout.c (tui_win_info::resize): Move from
765 tui_gen_win_info.
766 (make_standard_window): Change return type.
767 (get_locator_window, tui_get_window_by_name): Likewise.
768 (tui_layout_window::apply): Remove a cast.
769 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
770 (struct tui_win_info): Merge with tui_gen_win_info.
771 (struct tui_gen_win_info): Remove.
772
a30cb6da
TT
7732020-07-01 Tom Tromey <tom@tromey.com>
774
775 * tui/tui-stack.h (struct tui_locator_window): Derive from
776 tui_win_info.
777 <do_scroll_horizontal, do_scroll_vertical>: New methods.
778 <can_box>: New method.
779
1eb2161f
TT
7802020-07-01 Tom Tromey <tom@tromey.com>
781
782 * tui/tui-stack.h (struct tui_locator_window): Remove body.
783
7134f2eb
TT
7842020-07-01 Tom Tromey <tom@tromey.com>
785
786 * tui/tui-regs.c (tui_data_window::display_registers_from)
787 (tui_data_window::display_registers_from)
788 (tui_data_window::first_data_item_displayed)
789 (tui_data_window::delete_data_content_windows): Update.
790 (tui_data_window::refresh_window, tui_data_window::no_refresh):
791 Remove.
792 (tui_data_window::check_register_values): Update.
793 (tui_data_item_window::rerender): Add parameters. Update.
794 (tui_data_item_window::refresh_window): Remove.
795 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
796 virtual.
797 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
798 tui_gen_win_info.
799 <refresh_window, max_height, min_height>: Remove.
800 <rerender>: Add parameters.
801 <x, y, visible>: New members.
802 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
803 <m_item_width>: New member.
804
22b7b041
TT
8052020-07-01 Tom Tromey <tom@tromey.com>
806
807 * tui/tui-regs.c (tui_data_window::show_register_group)
808 (tui_data_window::check_register_values): Update.
809 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
810 from item_no.
811
c9753adb
TT
8122020-07-01 Tom Tromey <tom@tromey.com>
813
814 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
815 useless "if".
816
9ab26b4a
TT
8172020-07-01 Tom Tromey <tom@tromey.com>
818
819 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
820 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
821
e555083f
TT
8222020-07-01 Tom Tromey <tom@tromey.com>
823
824 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
825 * tui/tui-winsource.h (enum tui_line_or_address_kind)
826 (struct tui_line_or_address): Move from tui-data.h.
827 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
828 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
829 (tui_cmd_window, tui_source_window_base, tui_source_window)
830 (tui_disasm_window): Don't declare.
831 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
832 to tui-winsource.h.
833 (SINGLE_KEY): Move to tui-stack.c.
834
7a02bab7
TT
8352020-07-01 Tom Tromey <tom@tromey.com>
836
837 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
838 std::string.
839 * tui/tui-regs.c (class tab_expansion_file): New.
840 (tab_expansion_file::write): New method.
841 (tui_register_format): Change return type. Use
842 tab_expansion_file.
843 (tui_get_register, tui_data_window::display_registers_from)
844 (tui_data_item_window::rerender): Update.
845 * tui/tui-io.h (tui_expand_tabs): Don't declare.
846 * tui/tui-io.c (tui_expand_tabs): Remove.
847
ea68593b
TT
8482020-07-01 Tom Tromey <tom@tromey.com>
849
850 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
851
a8caed5d
FS
8522020-07-01 Fangrui Song <maskray@google.com>
853
854 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
855
9cdf9820
AKS
8562020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
857
858 * dwarf2/read.c (set_die_type): Removed conditions to restrict
859 forms for DW_AT_associated and DW_AT_allocated attributes,
860 which is already checked in function attr_to_dynamic_prop.
861
a1520ad8
TT
8622020-06-30 Tom Tromey <tromey@adacore.com>
863
864 * dwarf2/read.c (quirk_rust_enum): Correctly call
865 alloc_rust_variant for default-less enum.
866
5ac58899
TT
8672020-06-30 Tom Tromey <tromey@adacore.com>
868
869 PR build/26183:
870 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
871 gdb::to_string.
872
19b187a9
SM
8732020-06-29 Simon Marchi <simon.marchi@efficios.com>
874
875 * gdbarch.sh (displaced_step_copy_insn): Update doc.
876 * gdbarch.h: Re-generate.
877
cd4c4c07
TT
8782020-06-28 Tom Tromey <tom@tromey.com>
879
880 * command.h (cmd_types): Remove.
881 (cmd_type): Don't declare.
882 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
883 typedef.
884 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
885 * cli/cli-decode.c (cmd_type): Remove.
886
05779d57
PA
8872020-06-27 Pedro Alves <palves@redhat.com>
888
889 * fork-child.c (prefork_hook): Adjust.
890 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
891 Delete.
892 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
893 * inferior.c (inferior::set_tty, inferior::tty): New methods.
894 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
895 Remove declarations.
896 (struct inferior) <set_tty, tty>: New methods.
897 (struct inferior) <terminal>: Rename to ...
898 (struct inferior) <m_terminal>: ... this and make private.
899 * main.c (captured_main_1): Adjust.
900 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
901 (mi_cmd_inferior_tty_show): Adjust.
902 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
903 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
904
1776e3e5
NA
9052020-06-26 Nick Alcock <nick.alcock@oracle.com>
906
907 * configure.ac: Add --enable-libctf: handle --disable-static
908 properly.
909 * acinclude.m4: sinclude ../config/enable.m4.
910 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
911 (LIBCTF): Substitute in.
912 (CTF_DEPS): New, likewise.
913 (CLIBS): libctf needs symbols from libbfd: move earlier.
914 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
915 flags.
916 * ctfread.c: Surround in ENABLE_LIBCTF.
917 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
918 * configure: Regenerate.
919 * config.in: Likewise.
920
58373b80
SM
9212020-06-25 Simon Marchi <simon.marchi@efficios.com>
922
923 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
924
277474ee
SM
9252020-06-25 Simon Marchi <simon.marchi@efficios.com>
926
927 * inferior.h (struct inferior) <terminal>: Change type to
928 gdb::unique_xmalloc_ptr<char>.
929 * inferior.c (inferior::~inferior): Don't free inf->terminal.
930 * infcmd.c (set_inferior_io_terminal): Don't free terminal
931 field, adjust to unique pointer.
932 (get_inferior_io_terminal): Adjust to unique pointer.
933
6d74da72
AB
9342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
935
936 * riscv-tdep.c (riscv_print_registers_info): Loop over all
937 registers, not just the known core set of registers.
938
2e52d038
AB
9392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
940
941 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
942 fflags, frm, and fcsr registers.
943 (riscv_register_reggroup_p): Remove unknown CSRs from save and
944 restore groups.
945 (riscv_tdesc_unknown_reg): New function.
946 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
947 tdesc_use_registers.
948 * riscv-tdep.h (struct gdbarch_tdep): Add
949 unknown_csrs_first_regnum, unknown_csrs_count,
950 duplicate_fflags_regnum, duplicate_frm_regnum, and
951 duplicate_fcsr_regnum fields.
952
be64fd07
AB
9532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
954
955 * target-descriptions.c (tdesc_use_registers): Add new parameter a
956 callback, use the callback (when not null) to help number unknown
957 registers.
958 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
959 (tdesc_use_registers): Add extra parameter to declaration.
960
3b9fce96
AB
9612020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
962
963 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
964 in the file.
965 (class riscv_pending_register_alias): Likewise.
966 (riscv_register_feature::register_info): Change 'required_p' field
967 to 'required', and change its type. Add 'check' member function.
968 (riscv_register_feature::register_info::check): Define new member
969 function.
970 (riscv_xreg_feature): Change initialisation of 'required' field.
971 (riscv_freg_feature): Likewise.
972 (riscv_virtual_feature): Likewise.
973 (riscv_csr_feature): Likewise.
974 (riscv_check_tdesc_feature): Take extra parameter, the csr
975 tdesc_feature, rewrite the function to use the new
976 riscv_register_feature::register_info::check function.
977 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
978
865bad26
AB
9792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * features/Makefile: Remove all references to the deleted files
982 below.
983 * features/riscv/32bit-csr.c: Deleted.
984 * features/riscv/32bit-csr.xml: Deleted.
985 * features/riscv/64bit-csr.c: Deleted.
986 * features/riscv/64bit-csr.xml: Deleted.
987 * features/riscv/rebuild-csr-xml.sh: Deleted.
988
ed69cbc8
AB
9892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
990
991 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
992 whitespace error for declaration of names member variable.
993 (struct riscv_register_feature): Add new prefer_first_name member
994 variable, and fix whitespace error in declaration of registers.
995 (riscv_xreg_feature): Initialize prefer_first_name field.
996 (riscv_freg_feature): Likewise.
997 (riscv_virtual_feature): Likewise.
998 (riscv_csr_feature): Likewise.
999 (riscv_register_name): Expand on comments. Remove register name
1000 modifications for CSR and virtual registers.
1001
4445e8f5
AB
10022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1003
1004 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1005 errors.
1006
767a879e
AB
10072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1008
1009 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1010 riscv-opc.h.
1011 (class riscv_pending_register_alias): New class.
1012 (riscv_check_tdesc_feature): Take vector of pending aliases and
1013 populate it as appropriate.
1014 (riscv_setup_register_aliases): Delete.
1015 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1016 to riscv_check_tdesc_feature in all cases. Use the vector to
1017 create the register aliases.
1018
bb6e55f3
RO
10192020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1020
1021 * sol2-tdep.c (sol2_static_transform_name): Remove.
1022 (sol2_init_abi): Don't register it.
1023 * gdbarch.sh (static_transform_name): Remove.
1024 * gdbarch.c, gdbarch.h: Regenerate.
1025
1026 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1027 gdbarch_static_transform_name.
1028 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1029 * stabsread.c (define_symbol) <'X'>: Remove.
1030 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1031 handling.
1032 <'V'>: Likewise.
1033 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1034 <'S'>: Remove call to gdbarch_static_transform_name.
1035
c6d36836
RO
10362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1037
1038 * procfs.c (procfs_pre_trace): New function.
1039 (procfs_target::create_inferior): Pass it to fork_inferior.
1040
a7e6196b
RO
10412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1042
1043 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1044 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1045 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1046 sol2-tdep.o, sparc-sol2-tdep.o.
1047 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1048 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1049 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1050 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1051
d412e696
RO
10522020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1053
1054 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1055 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1056 Call sol2_init_abi.
1057 Remove calls to set_gdbarch_skip_solib_resolver,
1058 set_gdbarch_core_pid_to_str.
1059 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1060 (i386_sol2_static_transform_name): Remove.
1061 (i386_sol2_init_abi): Call sol2_init_abi.
1062 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1063 set_gdbarch_static_transform_name,
1064 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1065 Use sol2_sigtramp_p.
1066 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1067 (sol2_sigtramp_p): New function.
1068 (sol2_static_transform_name): New function.
1069 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1070 (sol2_init_abi): New function.
1071 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1072 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1073 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1074 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1075 (sparc_sol2_static_transform_name): Remove.
1076 (sparc32_sol2_init_abi): Call sol2_init_abi.
1077 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1078 set_gdbarch_static_transform_name,
1079 set_gdbarch_skip_solib_resolver,
1080 set_gdbarch_core_pid_to_str.
1081 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1082 (sparc_sol2_static_transform_name): Remove
1083 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1084 call sol2_sigtramp_p.
1085 (sparc64_sol2_init_abi): Call sol2_init_abi.
1086 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1087 set_gdbarch_static_transform_name,
1088 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1089
a8654e7d
PW
10902020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1091
1092 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1093 * exec.c (validate_exec_file): If from_tty, set both
1094 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1095 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1096 and from_tty, unconditionally ask a confirmation.
1097
caa7fd04
AB
10982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * target-descriptions.c (tdesc_architecture_name): Protect against
1101 NULL pointer dereference.
1102 (maint_print_xml_tdesc_cmd): New function.
1103 (_initialize_target_descriptions): Register new 'maint print
1104 xml-tdesc' command and give it the filename completer.
1105 * NEWS: Mention new 'maint print xml-tdesc' command.
1106
fbf42f4e
AB
11072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1108
1109 * target-descriptions.c (class tdesc_compatible_info): New class.
1110 (struct target_desc): Change type of compatible vector.
1111 (tdesc_compatible_p): Update for change in type of
1112 target_desc::compatible.
1113 (tdesc_compatible_info_list): New function.
1114 (tdesc_compatible_info_arch_name): New function.
1115 (tdesc_add_compatible): Update for change in type of
1116 target_desc::compatible.
1117 (print_c_tdesc::visit_pre): Likewise.
1118
20821f4e
AB
11192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1122 whitespace to underscore.
1123 (maint_print_c_tdesc_cmd): Use fake filename for target
1124 descriptions that came from the target.
1125 (_initialize_target_descriptions): Add filename command completion
1126 for 'maint print c-tdesc'.
1127
1fb5ee62
SM
11282020-06-23 Simon Marchi <simon.marchi@efficios.com>
1129
1130 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1131 lines.
1132
fc3ecb3e
SM
11332020-06-23 Simon Marchi <simon.marchi@efficios.com>
1134
1135 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1136 lines.
1137 (dwarf2_find_location_expression): Likewise.
1138 (call_site_parameter_matches): Likewise.
1139 (dwarf2_compile_expr_to_ax): Likewise.
1140 (disassemble_dwarf_expression): Likewise.
1141 (loclist_describe_location): Likewise.
1142
236ef034
PA
11432020-06-23 Pedro Alves <palves@redhat.com>
1144
1145 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1146 progspace-and-thread.h. Include scoped-mock-context.h instead.
1147 (register_to_value_test): Use scoped_mock_context.
1148 * regcache.c: Include "scoped-mock-context.h".
1149 (cooked_read_test): Don't error out if a target is already pushed.
1150 Use scoped_mock_context. Adjust.
1151 * scoped-mock-context.h: New file.
1152
39e7ecca
AB
11532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1156 initializer.
1157 (ada_language::is_string_type_p): New member function.
1158 * c-lang.c (c_language_data): Delete la_is_string_type_p
1159 initializer.
1160 (cplus_language_data): Likewise.
1161 (asm_language_data): Likewise.
1162 (minimal_language_data): Likewise.
1163 * d-lang.c (d_language_data): Likewise.
1164 * f-lang.c (f_is_string_type_p): Delete function, implementation
1165 moved to f_language::is_string_type_p.
1166 (f_language_data): Delete la_is_string_type_p initializer.
1167 (f_language::is_string_type_p): New member function,
1168 implementation from f_is_string_type_p.
1169 * go-lang.c (go_is_string_type_p): Delete function, implementation
1170 moved to go_language::is_string_type_p.
1171 (go_language_data): Delete la_is_string_type_p initializer.
1172 (go_language::is_string_type_p): New member function,
1173 implementation from go_is_string_type_p.
1174 * language.c (language_defn::is_string_type_p): Define new member
1175 function.
1176 (default_is_string_type_p): Make static, add comment copied from
1177 header file.
1178 (unknown_language_data): Delete la_is_string_type_p initializer.
1179 (unknown_language::is_string_type_p): New member function.
1180 (auto_language_data): Delete la_is_string_type_p initializer.
1181 (auto_language::is_string_type_p): New member function.
1182 * language.h (language_data): Delete la_is_string_type_p field.
1183 (language_defn::is_string_type_p): Declare new function.
1184 (default_is_string_type_p): Delete desclaration, move comment to
1185 definition.
1186 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1187 moved to m2_language::is_string_type_p.
1188 (m2_language_data): Delete la_is_string_type_p initializer.
1189 (m2_language::is_string_type_p): New member function,
1190 implementation from m2_is_string_type_p.
1191 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1192 initializer.
1193 * opencl-lang.c (opencl_language_data): Likewise.
1194 * p-lang.c (pascal_is_string_type_p): Delete function,
1195 implementation moved to pascal_language::is_string_type_p.
1196 (pascal_language_data): Delete la_is_string_type_p initializer.
1197 (pascal_language::is_string_type_p): New member function,
1198 implementation from pascal_is_string_type_p.
1199 * rust-lang.c (rust_is_string_type_p): Delete function,
1200 implementation moved to rust_language::is_string_type_p.
1201 (rust_language_data): Delete la_is_string_type_p initializer.
1202 (rust_language::is_string_type_p): New member function,
1203 implementation from rust_is_string_type_p.
1204 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1205 is_string_type_p.
1206
4ffc13fb
AB
12072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1208
1209 * ada-lang.c (ada_language_data): Delete la_print_typedef
1210 initializer.
1211 (ada_language::print_typedef): New member function.
1212 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1213 (cplus_language_data): Likewise.
1214 (asm_language_data): Likewise.
1215 (minimal_language_data): Likewise.
1216 * d-lang.c (d_language_data): Likewise.
1217 * f-lang.c (f_language_data): Likewise.
1218 (f_language::print_typedef): New member function.
1219 * go-lang.c (go_language_data): Delete la_print_typedef
1220 initializer.
1221 * language.c (language_defn::print_typedef): Define member
1222 function.
1223 (unknown_language_data): Delete la_print_typedef initializer.
1224 (unknown_language::print_typedef): New member function.
1225 (auto_language_data): Delete la_print_typedef initializer.
1226 (auto_language::print_typedef): New member function.
1227 * language.h (language_data): Delete la_print_typedef field.
1228 (language_defn::print_typedef): Declare new member function.
1229 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1230 (default_print_typedef): Delete declaration.
1231 * m2-lang.c (m2_language_data): Delete la_print_typedef
1232 initializer.
1233 (m2_language::print_typedef): New member function.
1234 * objc-lang.c (objc_language_data): Delete la_print_typedef
1235 initializer.
1236 * opencl-lang.c (opencl_language_data): Likewise.
1237 * p-lang.c (pascal_language_data): Likewise.
1238 (pascal_language::print_typedef): New member function.
1239 * rust-lang.c (rust_print_typedef): Delete function,
1240 implementation moved to rust_language::print_typedef.
1241 (rust_language): Delete la_print_typedef initializer.
1242 (rust_language::print_typedef): New member function,
1243 implementation from rust_print_typedef.
1244 * typeprint.c (default_print_typedef): Delete.
1245
d711ee67
AB
12462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1247
1248 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1249 (ada_language::printstr): New member function.
1250 * c-lang.c (c_language_data): Delete la_printstr initializer.
1251 (cplus_language_data): Likewise.
1252 (asm_language_data): Likewise.
1253 (minimal_language_data): Likewise.
1254 * d-lang.c (d_language_data): Likewise.
1255 * f-lang.c (f_printstr): Rename to f_language::printstr.
1256 (f_language_data): Delete la_printstr initializer.
1257 (f_language::printstr): New member function, implementation from
1258 f_printstr.
1259 * go-lang.c (go_language_data): Delete la_printstr initializer.
1260 * language.c (language_defn::printstr): Define new member
1261 function.
1262 (unk_lang_printstr): Delete.
1263 (unknown_language_data): Delete la_printstr initializer.
1264 (unknown_language::printstr): New member function.
1265 (auto_language_data): Delete la_printstr initializer.
1266 (auto_language::printstr): New member function.
1267 * language.h (language_data): Delete la_printstr field.
1268 (language_defn::printstr): Declare new member function.
1269 (LA_PRINT_STRING): Update call to printstr.
1270 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1271 (m2_language_data): Delete la_printstr initializer.
1272 (m2_language::printstr): New member function, implementation from
1273 m2_printstr.
1274 * objc-lang.c (objc_language_data): Delete la_printstr
1275 initializer.
1276 * opencl-lang.c (opencl_language_data): Likewise.
1277 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1278 (pascal_language_data): Delete la_printstr initializer.
1279 (pascal_language::printstr): New member function, implementation
1280 from pascal_printstr.
1281 * p-lang.h (pascal_printstr): Delete declaration.
1282 * rust-lang.c (rust_printstr): Update header comment.
1283 (rust_language_data): Delete la_printstr initializer.
1284 (rust_language::printstr): New member function.
1285
52b50f2c
AB
12862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1289 (ada_language::printchar): New member function.
1290 * c-lang.c (c_language_data): Delete la_printchar initializer.
1291 (cplus_language_data): Likewise.
1292 (asm_language_data): Likewise.
1293 (minimal_language_data): Likewise.
1294 * d-lang.c (d_language_data): Likewise.
1295 * f-lang.c (f_printchar): Rename to f_language::printchar.
1296 (f_language_data): Delete la_printchar initializer.
1297 (f_language::printchar): New member function, implementation from
1298 f_printchar.
1299 * go-lang.c (go_language_data): Delete la_printchar initializer.
1300 * language.c (unk_lang_printchar): Delete.
1301 (language_defn::printchar): Define new member function.
1302 (unknown_language_data): Delete la_printchar initializer.
1303 (unknown_language::printchar): New member function.
1304 (auto_language_data): Delete la_printchar initializer.
1305 (auto_language::printchar): New member function.
1306 * language.h (language_data): Delete la_printchar field.
1307 (language_defn::printchar): Declare new member function.
1308 (LA_PRINT_CHAR): Update call to printchar.
1309 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1310 (m2_language::printchar): New member function.
1311 * objc-lang.c (objc_language_data): Delete la_printchar
1312 initializer.
1313 * opencl-lang.c (opencl_language_data): Likewise.
1314 * p-lang.c (pascal_language_data): Delete la_printchar
1315 initializer.
1316 (pascal_language::printchar): New member function.
1317 * rust-lang.c (rust_printchar): Rename to
1318 rust_language::printchar.
1319 (rust_language_data): Delete la_printchar initializer.
1320 (rust_language::printchar): New member function, implementation
1321 from rust_printchar.
1322
ec8cec5b
AB
13232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1324
1325 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1326 (ada_language_data): Delete la_emitchar initializer.
1327 (ada_language::emitchar): New member function, implementation from
1328 emit_char.
1329 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1330 (cplus_language_data): Likewise.
1331 (asm_language_data): Likewise.
1332 (minimal_language_data): Likewise.
1333 * d-lang.c (d_language_data): Likewise.
1334 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1335 (f_language_data): Delete la_emitchar initializer.
1336 (f_language::emitchar): New member function, implementation from
1337 f_emit_char.
1338 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1339 * language.c (unk_lang_emit_char): Delete.
1340 (language_defn::emitchar): New member function definition.
1341 (unknown_language_data): Delete la_emitchar initializer.
1342 (unknown_language::emitchar): New member function.
1343 (auto_language_data): Delete la_emitchar initializer.
1344 (auto_language::emitchar): New member function.
1345 * language.h (language_data): Delete la_emitchar field.
1346 (language_defn::emitchar): New member field declaration.
1347 (LA_EMIT_CHAR): Update call to emitchar.
1348 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1349 (m2_language_data): Delete la_emitchar initializer.
1350 (m2_language::emitchar): New member function, implementation from
1351 m2_emit_char.
1352 * objc-lang.c (objc_language_data): Delete la_emitchar
1353 initializer.
1354 * opencl-lang.c (opencl_language_data): Likewise.
1355 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1356 (pascal_language_data): Delete la_emitchar initializer.
1357 (pascal_language::emitchar): New member function, implementation
1358 from pascal_emit_char.
1359 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1360 (rust_language_data): Delete la_emitchar initializer.
1361 (rust_language::emitchar): New member function, implementation
1362 from rust_emitchar.
1363
1bf9c363
AB
13642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1365
1366 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1367 (ada_language_data): Delete la_post_parser initializer.
1368 (ada_language::post_parser): New member function.
1369 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1370 (cplus_language_data): Likewise.
1371 (asm_language_data): Likewise.
1372 (minimal_language_data): Likewise.
1373 * d-lang.c (d_language_data): Likewise.
1374 * f-lang.c (f_language_data): Likewise.
1375 * go-lang.c (go_language_data): Likewise.
1376 * language.c (unknown_language_data): Likewise.
1377 (auto_language_data): Likewise.
1378 * language.h (language_data): Delete la_post_parser field.
1379 (language_defn::post_parser): New member function.
1380 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1381 * objc-lang.c (objc_language_data): Likewise.
1382 * opencl-lang.c (opencl_language_data): Likewise.
1383 * p-lang.c (pascal_language_data): Likewise.
1384 * parse.c (parse_exp_in_context): Update call to post_parser.
1385 (null_post_parser): Delete definition.
1386 * parser-defs.h (null_post_parser): Delete declaration.
1387 * rust-lang.c (rust_language_data): Delete la_post_parser
1388 initializer.
1389
87afa652
AB
13902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * ada-lang.c (parse): Rename to ada_language::parser.
1393 (ada_language_data): Delete la_parser initializer.
1394 (ada_language::parser): New member function, implementation from
1395 parse.
1396 * c-lang.c (c_language_data): Delete la_parser initializer.
1397 (cplus_language_data): Likewise.
1398 (asm_language_data): Likewise.
1399 (minimal_language_data): Likewise.
1400 * d-lang.c (d_language_data): Likewise.
1401 (d_language::parser): New member function.
1402 * f-lang.c (f_language_data): Delete la_parser initializer.
1403 (f_language::parser): New member function.
1404 * go-lang.c (go_language_data): Delete la_parser initializer.
1405 (go_language::parser): New member function.
1406 * language.c (unk_lang_parser): Delete.
1407 (language_defn::parser): Define new member function.
1408 (unknown_language_data): Delete la_parser initializer.
1409 (unknown_language::parser): New member function.
1410 (auto_language_data): Delete la_parser initializer.
1411 (auto_language::parser): New member function.
1412 * language.h (language_data): Delete la_parser field.
1413 (language_defn::parser): Declare new member function.
1414 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1415 (m2_language::parser): New member function.
1416 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1417 * opencl-lang.c (opencl_language_data): Likewise.
1418 * p-lang.c (pascal_language_data): Likewise.
1419 (pascal_language::parser): New member function.
1420 * parse.c (parse_exp_in_context): Update call to parser.
1421 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1422 (rust_language::parser): New member function.
1423
37825800
AB
14242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * top.c (print_gdb_configuration): Print --with-python-libdir
1427 configuration value.
1428
5b860c93
PW
14292020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1430
1431 * NEWS: Mention change to the alias command.
1432
cf00cd6f
PW
14332020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1434
1435 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1436 (alias_command_completer)
1437 (make_alias_options_def_group): New functions.
1438 (alias_opts, alias_option_defs): New struct and array.
1439 (alias_usage_error): Update usage.
1440 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1441 Use option framework.
1442 (_initialize_cli_cmds): Update alias command help.
1443 Update aliases command help.
1444 (show_user):
1445 Add NULL for new default_args lookup_cmd argument.
1446 (valid_command_p): Rename to validate_aliased_command.
1447 Add NULL for new default_args lookup_cmd argument. Verify that the
1448 aliased_command has no default args.
1449 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1450 (lookup_cmd_1, lookup_cmd): New argument default_args.
1451 (add_alias_cmd):
1452 Add NULL for new default_args lookup_cmd argument.
1453 (print_help_for_command): Show default args under the layout
1454 alias some_alias = some_aliased_cmd some_alias_default_arg.
1455 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1456 xfree default_args in destructor.
1457 * cli/cli-script.c (process_next_line, do_define_command):
1458 Add NULL for new default_args lookup_cmd argument.
1459 * command.h: Declare new default_args argument in lookup_cmd
1460 and lookup_cmd_1.
1461 * completer.c (complete_line_internal_1):
1462 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1463 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1464 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1465 Likewise.
1466 * infcmd.c (_initialize_infcmd): Likewise.
1467 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1468 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1469 * python/py-param.c (add_setshow_generic): Likewise.
1470 * remote.c (_initialize_remote): Likewise.
1471 * top.c (execute_command): Prepend default_args if command has some.
1472 (set_verbose):
1473 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1474 * tracepoint.c (validate_actionline, encode_actions_1):
1475 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1476
bd920864
TBA
14772020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1478
1479 * jit.c (jit_read_descriptor): Use bool as the return type.
1480 (jit_breakpoint_re_set_internal): Use bool as the return type.
1481 Invert the return value logic; return true if the jit breakpoint
1482 has been successfully initialized.
1483 (jit_inferior_init): Update the call to
1484 jit_breakpoint_re_set_internal.
1485
f8098322
PA
14862020-06-22 Pedro Alves <palves@redhat.com>
1487
1488 PR gdb/25939
1489 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1490 Use the current inferior instead. Don't return
1491 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1492 wait again.
1493 * sol-thread.c (sol_thread_target::wait): Don't reference
1494 inferior_ptid.
1495 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1496 (sol_update_thread_list_callback): Use the current inferior's pid
1497 instead of inferior_ptid.
1498
196535a6
RO
14992020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1500
1501 * procfs.c: Cleanup many comments.
1502
1503 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1504 (AFTER_WATCHFLAG): Replace by value.
1505
1506 (MAIN_PROC_NAME_FORMAT): Inline ...
1507 (create_procinfo): ... here.
1508
1509 (procfs_debug_inferior): Remove SYS_exec handling.
1510 (syscall_is_exec): Likewise.
1511 (procfs_set_exec_trap): Likewise.
1512
1513 (syscall_is_lwp_exit): Inline in callers.
1514 (syscall_is_exit): Likewise.
1515 (syscall_is_exec): Likewise.
1516 (syscall_is_lwp_create): Likewise.
1517
1518 (invalidate_cache): Remove #if 0 code.
1519
1520 (make_signal_thread_runnable): Remove.
1521 (procfs_target::resume): Remove #if 0 code.
1522
cf6f3e86
RO
15232020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1524
1525 PR gdb/25939
1526 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1527 call ...
1528 (procfs_target::create_inferior): ... here.
1529
48e9cc84
PW
15302020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1531
1532 * exec.c (validate_exec_file): Ensure the build-id is up to
1533 date by calling reopen_exec_file (that checks file timestamp
1534 to decide to re-read the file).
1535
3922b302
PA
15362020-06-18 Pedro Alves <palves@redhat.com>
1537
1538 PR gdb/25412
1539 * gdbthread.h (delete_thread, delete_thread_silent)
1540 (find_thread_ptid): Update comments.
1541 * thread.c (current_thread_): New global.
1542 (is_current_thread): Move higher, and reimplement.
1543 (inferior_thread): Reimplement.
1544 (set_thread_exited): Use bool. Add assertions.
1545 (add_thread_silent): Simplify thread-reuse handling by always
1546 calling delete_thread.
1547 (delete_thread): Remove intro comment.
1548 (find_thread_ptid): Skip exited threads.
1549 (switch_to_thread_no_regs): Write to current_thread_.
1550 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1551 INFERIOR_PTID. Clear current_thread_.
1552
6dbdab44
PA
15532020-06-18 Pedro Alves <palves@redhat.com>
1554
1555 * aix-thread.c (pd_update): Use switch_to_thread.
1556
2da4b788
PA
15572020-06-18 Pedro Alves <palves@redhat.com>
1558
1559 * ravenscar-thread.c (ravenscar_thread_target): Update.
1560 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1561 (ravenscar_thread_target::add_active_thread): ... this. Don't
1562 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1563 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1564
50838d1b
PA
15652020-06-18 Pedro Alves <palves@redhat.com>
1566
1567 * nat/windows-nat.c (current_windows_thread): Remove.
1568 * nat/windows-nat.h (current_windows_thread): Remove.
1569 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1570 Adjust.
1571 (display_selectors): Adjust to fetch the current
1572 windows_thread_info based on inferior_ptid.
1573 (fake_create_process): No longer write to current_windows_thread.
1574 (windows_nat_target::get_windows_debug_event):
1575 Don't set inferior_ptid or current_windows_thread.
1576 (windows_nat_target::wait): Adjust to not rely on
1577 current_windows_thread.
1578 (do_initial_windows_stuff): Now a method of windows_nat_target.
1579 Switch to the last_ptid thread.
1580 (windows_nat_target::attach): Adjust.
1581 (windows_nat_target::detach): Use switch_to_no_thread instead of
1582 writing to inferior_ptid directly.
1583 (windows_nat_target::create_inferior): Adjust.
1584
31ce04e9
PA
15852020-06-18 Pedro Alves <palves@redhat.com>
1586
1587 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1588
1ee1a363
PA
15892020-06-18 Pedro Alves <palves@redhat.com>
1590
1591 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1592 after creating it, instead of writing to inferior_ptid. Don't
1593 write to inferior_ptid.
1594
6d350754
PA
15952020-06-18 Pedro Alves <palves@redhat.com>
1596
1597 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1598
5d971d48
PA
15992020-06-18 Pedro Alves <palves@redhat.com>
1600
1601 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1602 it, instead of writing to inferior_ptid.
1603
86e57d1b
PA
16042020-06-18 Pedro Alves <palves@redhat.com>
1605
1606 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1607 to inferior_ptid.
1608
f2e1c129
PA
16092020-06-18 Pedro Alves <palves@redhat.com>
1610
1611 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1612 instead of writing to inferior_ptid directly.
1613
60db1b85
PA
16142020-06-18 Pedro Alves <palves@redhat.com>
1615
1616 * corelow.c (core_target::close): Use switch_to_no_thread instead
1617 of writing to inferior_ptid directly.
1618 (add_to_thread_list, core_target_open): Use switch_to_thread
1619 instead of writing to inferior_ptid directly.
1620
fe7d6a8d
PA
16212020-06-18 Pedro Alves <palves@redhat.com>
1622
1623 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1624 inferior_ptid.
1625 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1626 inferior_ptid.
1627 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1628 inferior_ptid directly.
1629 (darwin_nat_target::init_thread_list): Switch to thread, instead
1630 of writing to inferior_ptid.
1631 (darwin_nat_target::attach): Don't write to inferior_ptid.
1632 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1633
975f8708
PA
16342020-06-18 Pedro Alves <palves@redhat.com>
1635
1636 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1637 thread.
1638 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1639 Instead use switch_to_thread.
1640 (gnu_nat_target::detach): Use switch_to_no_thread
1641 instead of writing to inferior_ptid directly. Used passed-in
1642 inferior instead of looking up the inferior by pid.
1643
1a204730
PA
16442020-06-18 Pedro Alves <palves@redhat.com>
1645
1646 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1647 inferior_ptid.
1648
ebe84f23
PA
16492020-06-18 Pedro Alves <palves@redhat.com>
1650
1651 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1652 inferior_ptid.
1653 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1654 thread.
1655 (nto_procfs_target::detach): Avoid referencing
1656 inferior_ptid. Use switch_to_no_thread instead of writing to
1657 inferior_ptid directly.
1658 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1659 instead of writing to inferior_ptid directly.
1660 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1661 to thread.
1662
191f02e5
PA
16632020-06-18 Pedro Alves <palves@redhat.com>
1664
1665 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1666 after creating it, instead of writing to inferior_ptid.
1667 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1668 to inferior_ptid directly.
1669 (gdbsim_target::wait): Don't write to inferior_ptid.
1670
0ac55310
PA
16712020-06-18 Pedro Alves <palves@redhat.com>
1672
1673 * remote.c (remote_target::remote_notice_new_inferior): Use
1674 switch_to_thread instead of writing to inferior_ptid directly.
1675 (remote_target::add_current_inferior_and_thread): Use
1676 switch_to_no_thread instead of writing to inferior_ptid directly.
1677 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1678 and switch_to_thread instead of using set_current_inferior or
1679 writing to inferior_ptid directly.
1680
5233f39b
PA
16812020-06-18 Pedro Alves <palves@redhat.com>
1682
1683 * tracectf.c (ctf_target_open): Switch to added thread instead of
1684 writing to inferior_ptid directly.
1685 (ctf_target::close): Use switch_to_no_thread instead of writing to
1686 inferior_ptid directly.
1687
087e161b
PA
16882020-06-18 Pedro Alves <palves@redhat.com>
1689
1690 * tracefile-tfile.c (tfile_target_open): Don't write to
1691 inferior_ptid directly, instead switch to added thread.
1692 (tfile_target::close): Use switch_to_no_thread instead of writing
1693 to inferior_ptid directly.
1694
7fb43e53
PA
16952020-06-18 Pedro Alves <palves@redhat.com>
1696
1697 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1698 (procfs_target::detach): Use switch_to_no_thread
1699 instead of writing to inferior_ptid directly.
1700 (do_attach): Change return type to void. Switch to the added
1701 thread.
1702 (procfs_target::create_inferior): Switch to the added thread.
1703 (procfs_do_thread_registers): Don't write to inferior_ptid.
1704
18493a00
PA
17052020-06-18 Pedro Alves <palves@redhat.com>
1706
1707 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1708 of writing to inferior_ptid.
1709 (scoped_restore_exited_inferior): Delete.
1710 (handle_vfork_child_exec_or_exit): Simplify using
1711 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1712 instead of writing to inferior_ptid.
1713 (THREAD_STOPPED_BY): Delete.
1714 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1715 (thread_stopped_by_hw_breakpoint): Delete.
1716 (save_waitstatus): Use
1717 scoped_restore_current_thread+switch_to_thread, and call
1718 target_stopped_by_watchpoint instead of
1719 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1720 instead of thread_stopped_by_sw_breakpoint, and
1721 target_stopped_by_hw_breakpoint instead of
1722 thread_stopped_by_hw_breakpoint.
1723 (handle_inferior_event)
1724 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1725 inferior_ptid directly, nor
1726 set_current_inferior/set_current_program_space. Use
1727 switch_to_thread / switch_to_inferior_no_thread instead.
1728
a0776b13
PA
17292020-06-18 Pedro Alves <palves@redhat.com>
1730
1731 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1732 instead of writing to inferior_ptid.
1733
6155c136
PA
17342020-06-18 Pedro Alves <palves@redhat.com>
1735
1736 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1737 added thread.
1738 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1739 to the added thread.
1740 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1741 instead of writing to inferior_ptid.
1742
c5316fc6
PA
17432020-06-18 Pedro Alves <palves@redhat.com>
1744
1745 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1746 (register_to_value_test): Mock a program_space too. Heap-allocate
1747 the address space. Don't write to inferior_ptid. Use
1748 switch_to_thread instead.
1749
8df01799
PA
17502020-06-18 Pedro Alves <palves@redhat.com>
1751
1752 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1753 Delete.
1754 (find_signalled_thread()): New, factored out from
1755 linux_make_corefile_notes and adjusted to handle exited threads.
1756 (linux_make_corefile_notes): Adjust to use the new
1757 find_signalled_thread.
1758
41792d68
PA
17592020-06-18 Pedro Alves <palves@redhat.com>
1760
1761 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1762 of saving/restoring inferior_ptid.
1763
612f258a
TT
17642020-06-17 Tom Tromey <tom@tromey.com>
1765
1766 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1767 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1768 declare.
1769 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1770
efb763a5
SM
17712020-06-15 Simon Marchi <simon.marchi@efficios.com>
1772
1773 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1774 of partial symtabs.
1775
2951f6c0
SM
17762020-06-17 Simon Marchi <simon.marchi@efficios.com>
1777
1778 * regformats/reg-arm.dat: Remove.
1779 * regformats/reg-bfin.dat: Remove.
1780 * regformats/reg-cris.dat: Remove.
1781 * regformats/reg-crisv32.dat: Remove.
1782 * regformats/reg-m32r.dat: Remove.
1783 * regformats/reg-tilegx.dat: Remove.
1784 * regformats/reg-tilegx32.dat: Remove.
1785
7d458ea5
SM
17862020-06-17 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * features/Makefile (WHICH): Remove arm files.
1789 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1790 * regformats/arm/arm-with-neon.dat: Remove.
1791 * regformats/arm/arm-with-vfpv2.dat: Remove.
1792 * regformats/arm/arm-with-vfpv3.dat: Remove.
1793
3af96c0d
SM
17942020-06-17 Simon Marchi <simon.marchi@efficios.com>
1795
1796 * features/Makefile (XMLTOC): Remove rx.xml.
1797
b25e22fd
PA
17982020-06-17 Pedro Alves <palves@redhat.com>
1799
1800 * gdbthread.h (thread_control_state) <trap_expected> Update
1801 comments.
1802
a78a19b1
AB
18032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1806 ada_language::lookup_symbol_nonlocal.
1807 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1808 (ada_language::lookup_symbol_nonlocal): New member function,
1809 implementation from ada_lookup_symbol_nonlocal.
1810 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1811 initializer.
1812 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1813 initializer.
1814 (cplus_language::lookup_symbol_nonlocal): New member function.
1815 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1816 (minimal_language_data) Likewise.
1817 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1818 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1819 initializer.
1820 (d_language::lookup_symbol_nonlocal): New member function.
1821 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1822 initializer.
1823 (f_language::lookup_symbol_nonlocal): New member function.
1824 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1825 initializer.
1826 * language.c (unknown_language_data): Likewise.
1827 (auto_language_data): Likewise.
1828 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1829 field.
1830 (language_defn::lookup_symbol_nonlocal): New member function.
1831 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1832 initializer.
1833 * objc-lang.c (objc_language_data): Likewise.
1834 * opencl-lang.c (opencl_language_data): Likewise.
1835 * p-lang.c (pascal_language_data): Likewise.
1836 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1837 rust_language::lookup_symbol_nonlocal.
1838 (rust_language_data): Delete la_lookup_symbol_nonlocal
1839 initializer.
1840 (rust_language::lookup_symbol_nonlocal): New member function,
1841 implementation from rust_lookup_symbol_nonlocal.
1842 * symtab.c (lookup_symbol_aux): Update call to
1843 lookup_symbol_nonlocal.
1844 (basic_lookup_symbol_nonlocal): Rename to...
1845 (language_defn::lookup_symbol_nonlocal): ...this, and update
1846 header comment. Remove language_defn parameter, and replace with
1847 uses of `this'.
1848 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1849
ebe2334e
AB
18502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1851
1852 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1853 initializer.
1854 (ada_language::value_print_inner): New member function.
1855 * c-lang.c (c_language_data): Delete la_value_print_inner
1856 initializer.
1857 (cplus_language_data): Likewise.
1858 (asm_language_data): Likewise.
1859 (minimal_language_data): Likewise.
1860 * d-lang.c (d_language_data): Likewise.
1861 (d_language::value_print_inner): New member function.
1862 * f-lang.c (f_language_data): Delete la_value_print_inner
1863 initializer.
1864 (f_language::value_print_inner): New member function.
1865 * f-lang.h (f_value_print_innner): Rename to...
1866 (f_value_print_inner): ...this (note spelling of 'inner').
1867 * f-valprint.c (f_value_print_innner): Rename to...
1868 (f_value_print_inner): ...this (note spelling of 'inner').
1869 * go-lang.c (go_language_data): Delete la_value_print_inner
1870 initializer.
1871 (go_language::value_print_inner): New member function.
1872 * language.c (language_defn::value_print_inner): Define new member
1873 function.
1874 (unk_lang_value_print_inner): Delete.
1875 (unknown_language_data): Delete la_value_print_inner initializer.
1876 (unknown_language::value_print_inner): New member function.
1877 (auto_language_data): Delete la_value_print_inner initializer.
1878 (auto_language::value_print_inner): New member function.
1879 * language.h (language_data): Delete la_value_print_inner field.
1880 (language_defn::value_print_inner): Delcare new member function.
1881 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1882 initializer.
1883 (m2_language::value_print_inner): New member function.
1884 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1885 initializer.
1886 * opencl-lang.c (opencl_language_data): Likewise.
1887 * p-lang.c (pascal_language_data): Likewise.
1888 (pascal_language::value_print_inner): New member function.
1889 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1890 initializer.
1891 (rust_language::value_print_inner): New member function.
1892 * valprint.c (do_val_print): Update call to value_print_inner.
1893
a1d1fa3e
AB
18942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1895
1896 * ada-lang.c (ada_language_data): Delete la_value_print
1897 initializer.
1898 (ada_language::value_print): New member function.
1899 * c-lang.c (c_language_data): Delete la_value_print initializer.
1900 (cplus_language_data): Likewise.
1901 (asm_language_data): Likewise.
1902 (minimal_language_data): Likewise.
1903 * d-lang.c (d_language_data): Likewise.
1904 * f-lang.c (f_language_data): Likewise.
1905 * go-lang.c (go_language_data): Likewise.
1906 * language.c (unk_lang_value_print): Delete.
1907 (language_defn::value_print): Define new member function.
1908 (unknown_language_data): Delete la_value_print initializer.
1909 (unknown_language::value_print): New member function.
1910 (auto_language_data): Delete la_value_print initializer.
1911 (auto_language::value_print): New member function.
1912 * language.h (language_data): Delete la_value_print field.
1913 (language_defn::value_print): Declare new member function.
1914 (LA_VALUE_PRINT): Update call to value_print.
1915 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1916 * objc-lang.c (objc_language_data): Likewise.
1917 * opencl-lang.c (opencl_language_data): Likewise.
1918 * p-lang.c (pascal_language_data): Likewise.
1919 (pascal_language::value_print): New member function.
1920 * rust-lang.c (rust_language_data): Delete la_value_print
1921 initializer.
1922
f16a9f57
AB
19232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1924
1925 * ada-lang.c (ada_watch_location_expression): Rename to
1926 ada_language::watch_location_expression.
1927 (ada_language_data): Delete la_watch_location_expression
1928 initializer.
1929 (ada_language::watch_location_expression): New member function,
1930 implementation from ada_watch_location_expression.
1931 * breakpoint.c (watch_command_1): Update call to
1932 watch_location_expression.
1933 * c-lang.c (c_watch_location_expression): Rename to
1934 language_defn::watch_location_expression.
1935 (c_language_data): Delete la_watch_location_expression
1936 initializer.
1937 (cplus_language_data): Likewise.
1938 (asm_language_data): Likewise.
1939 (minimal_language_data): Likewise.
1940 * c-lang.h (c_watch_location_expression): Delete declaration.
1941 * d-lang.c (d_language_data): Delete la_watch_location_expression
1942 initializer.
1943 * f-lang.c (f_language_data): Likewise.
1944 * go-lang.c (go_language_data): Likewise.
1945 * language.c (language_defn::watch_location_expression): Member
1946 function implementation from c_watch_location_expression.
1947 (unknown_language_data): Delete la_watch_location_expression
1948 initializer.
1949 (auto_language_data): Likewise.
1950 * language.h (language_data): Delete la_watch_location_expression
1951 field.
1952 (language_defn::watch_location_expression): Declare new member
1953 function.
1954 * m2-lang.c (m2_language_data): Delete
1955 la_watch_location_expression initializer.
1956 * objc-lang.c (objc_language_data): Likewise.
1957 * opencl-lang.c (opencl_language_data): Likewise.
1958 * p-lang.c (pascal_language_data): Likewise.
1959 * rust-lang.c (rust_watch_location_expression): Rename to
1960 rust_language::watch_location_expression.
1961 (rust_language_data): Delete la_watch_location_expression
1962 initializer.
1963 (rust_language::watch_location_expression): New member function,
1964 implementation from rust_watch_location_expression.
1965
7e56227d
AB
19662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1967
1968 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1969 ada_language::collect_symbol_completion_matches.
1970 (ada_language_data): Delete la_collect_symbol_completion_matches
1971 initializer.
1972 (ada_language::collect_symbol_completion_matches): New member
1973 function, implementation from
1974 ada_collect_symbol_completion_matches.
1975 * c-lang.c (c_language_data): Delete
1976 la_collect_symbol_completion_matches initializer.
1977 (cplus_language_data): Likewise.
1978 (asm_language_data): Likewise.
1979 (minimal_language_data): Likewise.
1980 * d-lang.c (d_language_data): Likewise.
1981 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1982 f_language::collect_symbol_completion_matches.
1983 (f_language_data): Delete la_collect_symbol_completion_matches
1984 initializer.
1985 (f_language::collect_symbol_completion_matches) New member
1986 function, implementation from f_collect_symbol_completion_matches.
1987 * go-lang.c (go_language_data): Delete
1988 la_collect_symbol_completion_matches initializer.
1989 * language.c (unknown_language_data): Likewise.
1990 (auto_language_data): Likewise.
1991 * language.h (language_data): Delete
1992 la_collect_symbol_completion_matches field.
1993 (language_defn::collect_symbol_completion_matches): New member
1994 function.
1995 * m2-lang.c (m2_language_data): Delete
1996 la_collect_symbol_completion_matches initializer.
1997 * objc-lang.c (objc_language_data): Likewise.
1998 * opencl-lang.c (opencl_language_data): Likewise.
1999 * p-lang.c (pascal_language_data): Likewise.
2000 * rust-lang.c (rust_language_data): Likewise.
2001 * symtab.c (default_collect_symbol_completion_matches): Delete.
2002 (collect_symbol_completion_matches): Update call to
2003 collect_symbol_completion_matches.
2004 (collect_symbol_completion_matches_type): Likewise.
2005 * symtab.h (default_collect_symbol_completion_matches): Delete
2006 declaration.
2007
53fc67f8
AB
20082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2011 (ada_language_data): Delete la_word_break_characters initializer.
2012 (ada_language::word_break_characters): New member function.
2013 * c-lang.c (c_language_data): Delete la_word_break_characters
2014 initializer.
2015 (cplus_language_data): Likewise.
2016 (asm_language_data): Likewise.
2017 (minimal_language_data): Likewise.
2018 * completer.c: Update global comment.
2019 (advance_to_expression_complete_word_point): Update call to
2020 word_break_characters.
2021 (complete_files_symbols): Likewise.
2022 (complete_line_internal_1): Likewise.
2023 (default_completer_handle_brkchars): Likewise.
2024 (skip_quoted_chars): Likewise.
2025 * d-lang.c (d_language_data): Delete la_word_break_characters
2026 initializer.
2027 * f-lang.c (f_word_break_characters): Delete.
2028 (f_language_data): Delete la_word_break_characters initializer.
2029 (f_language::word_break_characters): New member function.
2030 * go-lang.c (go_language_data): Delete la_word_break_characters
2031 initializer.
2032 * language.c (unknown_language_data): Likewise.
2033 (auto_language_data): Likewise.
2034 * language.h (default_word_break_characters): Move declaration to
2035 earlier in the file.
2036 (language_data): Delete la_word_break_characters field.
2037 (language_defn::word_break_characters): New member function.
2038 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2039 initializer.
2040 * objc-lang.c (objc_language_data): Likewise.
2041 * opencl-lang.c (opencl_language_data): Likewise.
2042 * p-lang.c (pascal_language_data): Likewise.
2043 * rust-lang.c (rust_language_data): Likewise.
2044
c9debfb9
AB
20452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2046
2047 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2048 (ada_language_data): Delete la_get_symbol_name_matcher
2049 initializer.
2050 (language_defn::get_symbol_name_matcher_inner): New member
2051 function.
2052 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2053 initializer.
2054 (cplus_language_data): Likewise.
2055 (cplus_language::get_symbol_name_matcher_inner): New member
2056 function.
2057 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2058 (minimal_language_data): Likewise.
2059 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2060 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2061 initializer.
2062 * dictionary.c (iter_match_first_hashed): Update call to
2063 get_symbol_name_matcher.
2064 (iter_match_next_hashed): Likewise.
2065 (iter_match_next_linear): Likewise.
2066 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2067 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2068 initializer.
2069 (f_language::get_symbol_name_matcher_inner): New member function.
2070 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2071 initializer.
2072 * language.c (default_symbol_name_matcher): Update header comment,
2073 make static.
2074 (language_defn::get_symbol_name_matcher): New definition.
2075 (language_defn::get_symbol_name_matcher_inner): Likewise.
2076 (get_symbol_name_matcher): Delete.
2077 (unknown_language_data): Delete la_get_symbol_name_matcher
2078 initializer.
2079 (auto_language_data): Likewise.
2080 * language.h (language_data): Delete la_get_symbol_name_matcher
2081 field.
2082 (language_defn::get_symbol_name_matcher): New member function.
2083 (language_defn::get_symbol_name_matcher_inner): Likewise.
2084 (default_symbol_name_matcher): Delete declaration.
2085 * linespec.c (find_methods): Update call to
2086 get_symbol_name_matcher.
2087 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2088 initializer.
2089 * minsyms.c (lookup_minimal_symbol): Update call to
2090 get_symbol_name_matcher.
2091 (iterate_over_minimal_symbols): Likewise.
2092 * objc-lang.c (objc_language_data): Delete
2093 la_get_symbol_name_matcher initializer.
2094 * opencl-lang.c (opencl_language_data): Likewise.
2095 * p-lang.c (pascal_language_data): Likewise.
2096 * psymtab.c (psymbol_name_matches): Update call to
2097 get_symbol_name_matcher.
2098 * rust-lang.c (rust_language_data): Delete
2099 la_get_symbol_name_matcher initializer.
2100 * symtab.c (symbol_matches_search_name): Update call to
2101 get_symbol_name_matcher.
2102 (compare_symbol_name): Likewise.
2103
9a49ad8c
AB
21042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * ada-lang.c (ada_language_data): Delete la_compute_program
2107 initializer.
2108 * c-lang.c (c_language_data): Likewise.
2109 (c_language::compute_program): New member function.
2110 (cplus_language_data): Delete la_compute_program initializer.
2111 (cplus_language::compute_program): New member function.
2112 (asm_language_data): Delete la_compute_program initializer.
2113 (minimal_language_data): Likewise.
2114 * c-lang.h (c_compute_program): Update comment.
2115 (cplus_compute_program): Likewise.
2116 * compile/compile-c-support.c (c_compute_program): Likewise.
2117 (cplus_compute_program): Likewise.
2118 * compile/compile.c (compile_to_object): Update call to
2119 la_compute_program.
2120 * d-lang.c (d_language_data): Delete la_compute_program
2121 initializer.
2122 * f-lang.c (f_language_data): Likewise.
2123 * go-lang.c (go_language_data): Likewise.
2124 * language.c (unknown_language_data): Likewise.
2125 (auto_language_data): Likewise.
2126 * language.h (language_data): Delete la_compute_program field.
2127 (language_defn::compute_program): New member function.
2128 * m2-lang.c (m2_language_data): Delete la_compute_program
2129 initializer.
2130 * objc-lang.c (objc_language_data): Likewise.
2131 * opencl-lang.c (opencl_language_data): Likewise.
2132 * p-lang.c (pascal_language_data): Likewise.
2133 * rust-lang.c (rust_language_data): Likewise.
2134
eff93b4d
AB
21352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 * ada-lang.c (ada_language_data) Delete
2138 la_class_name_from_physname initializer.
2139 * c-lang.c (c_language_data): Likewise.
2140 (cplus_language_data): Likewise.
2141 (cplus_language::class_name_from_physname): New member function.
2142 (asm_language_data): Delete la_class_name_from_physname
2143 initializer.
2144 (minimal_language_data): Likewise.
2145 * d-lang.c (d_language_data): Likewise.
2146 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2147 method on language_defn class.
2148 (guess_full_die_structure_name): Likewise.
2149 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2150 initializer.
2151 * go-lang.c (go_language_data): Likewise.
2152 * language.c (language_class_name_from_physname): Delete.
2153 (unk_lang_class_name): Delete.
2154 (unknown_language_data): Delete la_class_name_from_physname
2155 initializer.
2156 (auto_language_data): Likewise.
2157 * language.h (language_data): Delete la_class_name_from_physname
2158 field.
2159 (language_defn::class_name_from_physname): New function.
2160 (language_class_name_from_physname): Delete declaration.
2161 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2162 initializer.
2163 * objc-lang.c (objc_language_data): Likewise.
2164 * opencl-lang.c (opencl_language_data): Likewise.
2165 * p-lang.c (pascal_language_data): Likewise.
2166 * rust-lang.c (rust_language_data): Likewise.
2167
de543742
TT
21682020-06-16 Tom Tromey <tom@tromey.com>
2169
2170 * tui/tui-data.h (STATUS_NAME): New macro.
2171 * tui/tui-layout.c (tui_remove_some_windows)
2172 (initialize_known_windows, tui_register_window)
2173 (tui_layout_split::remove_windows, initialize_layouts)
2174 (tui_new_layout_command): Don't use hard-coded window names.
2175
a350efd4
TT
21762020-06-16 Tom Tromey <tom@tromey.com>
2177
2178 PR tui/25348:
2179 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2180 tui_initialize_readline. Only run once. Call rl_initialize.
2181 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2182 tui_initialize_readline.
2183 * tui/tui-io.c (tui_setup_io): Call
2184 tui_ensure_readline_initialized.
2185 * tui/tui-interp.c (tui_interp::init): Update.
2186
39ec0490
TT
21872020-06-16 Tom Tromey <tom@tromey.com>
2188
2189 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2190 Also preserve the status window.
2191
d2d1ea20
TT
21922020-06-16 Tom Tromey <tom@tromey.com>
2193
2194 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2195 where m_window==nullptr.
2196
66920317
TT
21972020-06-15 Tom Tromey <tromey@adacore.com>
2198
2199 * windows-nat.c (windows_nat::handle_output_debug_string):
2200 Update.
2201 (windows_nat::handle_ms_vc_exception): Update.
2202 * target.h (target_read_string): Change API.
2203 * target.c (target_read_string): Change API.
2204 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2205 Update.
2206 * solib-frv.c (frv_current_sos): Update.
2207 * solib-dsbt.c (dsbt_current_sos): Update.
2208 * solib-darwin.c (darwin_current_sos): Update.
2209 * linux-thread-db.c (inferior_has_bug): Update.
2210 * expprint.c (print_subexp_standard): Update.
2211 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2212 (ada_exception_message_1): Update.
2213
a5d871dd
TT
22142020-06-15 Tom Tromey <tromey@adacore.com>
2215
2216 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2217
670e35fa
TT
22182020-06-15 Tom Tromey <tromey@adacore.com>
2219
2220 * valprint.c (read_string): Update comment.
2221 * target.c (MIN): Remove.
2222 (target_read_string): Rewrite.
2223
f5272a3b
TT
22242020-06-15 Tom Tromey <tromey@adacore.com>
2225
2226 * corefile.c (read_memory_string): Remove.
2227 * ada-valprint.c (ada_value_print_ptr): Update.
2228 * ada-lang.h (ada_tag_name): Change return type.
2229 * ada-lang.c (type_from_tag): Update.
2230 (ada_tag_name_from_tsd): Change return type. Use
2231 target_read_string.
2232 (ada_tag_name): Likewise.
2233 * gdbcore.h (read_memory_string): Don't declare.
2234
2c074f49
HD
22352020-06-14 Hannes Domani <ssbssa@yahoo.de>
2236
2237 * symtab.c (rbreak_command): Ignore Windows drive colon.
2238
6a17d503
SM
22392020-06-12 Simon Marchi <simon.marchi@efficios.com>
2240
2241 * NEWS: Mention removed GDBserver host support.
2242
453c733f
NC
22432020-06-12 Nelson Chu <nelson.chu@sifive.com>
2244
2245 * features/riscv/rebuild-csr-xml.sh: Updated.
2246
2b4e6a3f
TT
22472020-06-11 Tom Tromey <tom@tromey.com>
2248
2249 PR gdb/18318:
2250 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2251
4412332f
JG
22522020-06-09 Jonny Grant <jg@jguk.org>
22532020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2254
2255 * main.c (captured_main_1): Don't print new line after help.
2256 (print_gdb_help): add mailing list and IRC channel information
2257 to --help. Add new lines between items in the footer. Remove
2258 quotes around bug url.
2259
2f33032a
KS
22602020-06-11 Keith Seitz <keiths@redhat.com>
2261
2262 PR gdb/21356
2263 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2264 Resolve typedefs for type length calculations.
2265
7ab96794
TV
22662020-06-10 Tom de Vries <tdevries@suse.de>
2267
2268 PR ada/24713
2269 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2270 (write_psymbols): Enable .gdb_index for ada.
2271 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2272 ada.
2273
e5f3ece2
TV
22742020-06-10 Tom de Vries <tdevries@suse.de>
2275
2276 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2277 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2278 namei" instead of "const char *name" argument.
2279 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2280 dw2_symtab_iter_init.
2281
940da03e
SM
22822020-06-08 Simon Marchi <simon.marchi@efficios.com>
2283
2284 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2285 to use type::field and field::type instead.
2286
b6cdac4b
SM
22872020-06-08 Simon Marchi <simon.marchi@efficios.com>
2288
2289 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2290 to use field::type instead.
2291
5d14b6e5
SM
22922020-06-08 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * gdbtypes.h (struct field) <type, set_type>: New methods.
2295 Rename `type` field to...
2296 <m_type>: ... this. Change references throughout to use type or
2297 set_type methods.
2298 (FIELD_TYPE): Use field::type. Change call sites that modify
2299 the field's type to use field::set_type instead.
2300
3d967001
SM
23012020-06-08 Simon Marchi <simon.marchi@efficios.com>
2302
2303 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2304 to use type::index_type instead.
2305
262abc0d
SM
23062020-06-08 Simon Marchi <simon.marchi@efficios.com>
2307
2308 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2309 methods.
2310 (TYPE_INDEX_TYPE): Use type::index_type.
2311 * gdbtypes.c (create_array_type_with_stride): Likewise.
2312
82836c92
TT
23132020-06-07 Tom Tromey <tom@tromey.com>
2314
2315 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2316 parameter.
2317 (generic_value_print): Update.
2318
940dace9
AB
23192020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 Revert commit 982a38f60b0.
2322 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2323
982a38f6
AB
23242020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2325
2326 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2327 avoid use after free.
2328
82f06518
TV
23292020-06-05 Tom de Vries <tdevries@suse.de>
2330
2331 * NEWS: Fix typos.
2332
f8c41851
SM
23332020-06-04 Simon Marchi <simon.marchi@efficios.com>
2334
2335 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2336 the per_bfd object.
2337 (dwarf2_read_debug_names): Likewise.
2338 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2339 object when re-using a per_bfd object with an index.
2340
f9b5d5ea
TV
23412020-06-03 Tom de Vries <tdevries@suse.de>
2342
2343 PR symtab/26046
2344 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2345 children for C++.
2346 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2347 DW_TAG_subprogram.
2348
f6eee2d0
AB
23492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * ada-lang.c (ada_language_data): Delete skip_trampoline
2352 initializer.
2353 * c-lang.c (c_language_data): Likewise.
2354 (cplus_language_data): Likewise.
2355 (cplus_language::skip_trampoline): New member function.
2356 (asm_language_data): Delete skip_trampoline initializer.
2357 (minimal_language_data): Likewise.
2358 * d-lang.c (d_language_data): Likewise.
2359 * f-lang.c (f_language_data): Likewise.
2360 * go-lang.c (go_language_data): Likewise.
2361 * language.c (unk_lang_trampoline): Delete function.
2362 (skip_language_trampoline): Update.
2363 (unknown_language_data): Delete skip_trampoline initializer.
2364 (auto_language_data): Likewise.
2365 * language.h (language_data): Delete skip_trampoline field.
2366 (language_defn::skip_trampoline): New function.
2367 * m2-lang.c (m2_language_data): Delete skip_trampoline
2368 initializer.
2369 * objc-lang.c (objc_skip_trampoline): Delete function, move
2370 implementation to objc_language::skip_trampoline.
2371 (objc_language_data): Delete skip_trampoline initializer.
2372 (objc_language::skip_trampoline): New member function with
2373 implementation from objc_skip_trampoline.
2374 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2375 initializer.
2376 * p-lang.c (pascal_language_data): Likewise.
2377 * rust-lang.c (rust_language_data): Likewise.
2378
0a50df5d
AB
23792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2382 (ada_language::demangle): New member function.
2383 * c-lang.c (c_language_data): Delete la_demangle initializer.
2384 (cplus_language_data): Delete la_demangle initializer.
2385 (cplus_language::demangle): New member function.
2386 (asm_language_data): Delete la_demangle initializer.
2387 (minimal_language_data): Delete la_demangle initializer.
2388 * d-lang.c (d_language_data): Delete la_demangle initializer.
2389 (d_language::demangle): New member function.
2390 * f-lang.c (f_language_data): Delete la_demangle initializer.
2391 (f_language::demangle): New member function.
2392 * go-lang.c (go_language_data): Delete la_demangle initializer.
2393 (go_language::demangle): New member function.
2394 * language.c (language_demangle): Update.
2395 (unk_lang_demangle): Delete.
2396 (unknown_language_data): Delete la_demangle initializer.
2397 (unknown_language::demangle): New member function.
2398 (auto_language_data): Delete la_demangle initializer.
2399 (auto_language::demangle): New member function.
2400 * language.h (language_data): Delete la_demangle field.
2401 (language_defn::demangle): New function.
2402 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2403 * objc-lang.c (objc_language_data): Delete la_demangle
2404 initializer.
2405 (objc_language::demangle): New member function.
2406 * opencl-lang.c (opencl_language_data): Delete la_demangle
2407 initializer.
2408 * p-lang.c (pascal_language_data): Likewise.
2409 * rust-lang.c (rust_language_data): Likewise.
2410 (rust_language::demangle): New member function.
2411
fbfb0a46
AB
24122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * ada-lang.c (ada_language_data): Delete la_print_type
2415 initializer.
2416 (ada_language::print_type): New member function.
2417 * c-lang.c (c_language_data): Delete la_print_type initializer.
2418 (c_language::print_type): New member function.
2419 (cplus_language_data): Delete la_print_type initializer.
2420 (cplus_language::print_type): New member function.
2421 (asm_language_data): Delete la_print_type initializer.
2422 (asm_language::print_type): New member function.
2423 (minimal_language_data): Delete la_print_type initializer.
2424 (minimal_language::print_type): New member function.
2425 * d-lang.c (d_language_data): Delete la_print_type initializer.
2426 (d_language::print_type): New member function.
2427 * f-lang.c (f_language_data): Delete la_print_type initializer.
2428 (f_language::print_type): New member function.
2429 * go-lang.c (go_language_data): Delete la_print_type initializer.
2430 (go_language::print_type): New member function.
2431 * language.c (unk_lang_print_type): Delete.
2432 (unknown_language_data): Delete la_print_type initializer.
2433 (unknown_language::print_type): New member function.
2434 (auto_language_data): Delete la_print_type initializer.
2435 (auto_language::print_type): New member function.
2436 * language.h (language_data): Delete la_print_type field.
2437 (language_defn::print_type): New function.
2438 (LA_PRINT_TYPE): Update.
2439 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2440 (m2_language::print_type): New member function.
2441 * objc-lang.c (objc_language_data): Delete la_print_type
2442 initializer.
2443 (objc_language::print_type): New member function.
2444 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2445 to opencl_language::print_type.
2446 (opencl_language_data): Delete la_print_type initializer.
2447 (opencl_language::print_type): New member function, implementation
2448 from opencl_print_type.
2449 * p-lang.c (pascal_language_data): Delete la_print_type
2450 initializer.
2451 (pascal_language::print_type): New member function.
2452 * rust-lang.c (rust_print_type): Delete, implementation moved to
2453 rust_language::print_type.
2454 (rust_language_data): Delete la_print_type initializer.
2455 (rust_language::print_type): New member function, implementation
2456 from rust_print_type.
2457
6f827019
AB
24582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2459
2460 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2461 implementation moves to...
2462 (ada_language::sniff_from_mangled_name): ...here. Update return
2463 type.
2464 (ada_language_data): Delete la_sniff_from_mangled_name
2465 initializer.
2466 * c-lang.c (c_language_data): Likewise.
2467 (cplus_language_data): Likewise.
2468 (cplus_language::sniff_from_mangled_name): New member function,
2469 implementation taken from gdb_sniff_from_mangled_name.
2470 (asm_language_data): Delete la_sniff_from_mangled_name
2471 initializer.
2472 (minimal_language_data): Likewise.
2473 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2474 implementation moves to cplus_language::sniff_from_mangled_name.
2475 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2476 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2477 moves to...
2478 (d_language::sniff_from_mangled_name): ...here.
2479 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2480 * f-lang.c (f_language_data): Likewise.
2481 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2482 moves to...
2483 (go_language::sniff_from_mangled_name): ...here.
2484 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2485 * language.c (language_sniff_from_mangled_name): Delete.
2486 (unknown_language_data): Delete la_sniff_from_mangled_name
2487 initializer.
2488 (auto_language_data): Likewise.
2489 * language.h (language_data): Delete la_sniff_from_mangled_name
2490 field.
2491 (language_defn::sniff_from_mangled_name): New function.
2492 (language_sniff_from_mangled_name): Delete declaration.
2493 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2494 field.
2495 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2496 implementation moves to...
2497 (objc_language::sniff_from_mangled_name): ...here.
2498 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2499 * opencl-lang.c (opencl_language_data): Likewise.
2500 * p-lang.c (pascal_language_data): Likewise.
2501 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2502 implementation moves to...
2503 (rust_language::sniff_from_mangled_name): ...here.
2504 (rust_language_data): Delete la_sniff_from_mangled_name
2505 initializer.
2506 * symtab.c (symbol_find_demangled_name): Call
2507 sniff_from_mangled_name member function.
2508
fb8006fd
AB
25092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2512 initializer.
2513 * c-lang.c (c_language_data): Likewise.
2514 (cplus_language_data): Likewise.
2515 (cplus_language::search_name_hash): New member function.
2516 (asm_language_data): Delete la_search_name_hash initializer.
2517 (minimal_language_data): Likewise.
2518 * d-lang.c (d_language_data): Likewise.
2519 * dictionary.c (default_search_name_hash): Rename to...
2520 (language_defn::search_name_hash): ...this.
2521 * f-lang.c (f_language_data): Likewise.
2522 (f_language::search_name_hash): New member function.
2523 * go-lang.c (go_language_data): Delete la_search_name_hash
2524 initializer.
2525 * language.c (unknown_language_data): Likewise.
2526 (auto_language_data): Likewise.
2527 * language.h (struct language_data): Delete la_search_name_hash
2528 field.
2529 (language_defn::search_name_hash): Declare new member function.
2530 (default_search_name_hash): Delete declaration.
2531 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2532 initializer.
2533 * objc-lang.c (objc_language_data): Likewise.
2534 * opencl-lang.c (opencl_language_data): Likewise.
2535 * p-lang.c (pascal_language_data): Likewise.
2536 * rust-lang.c (rust_language_data): Likewise.
2537 * symtab.c (search_name_hash): Update call.
2538
8e25bafe
AB
25392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2542 initializer.
2543 * c-lang.c (class compile_instance): Declare.
2544 (c_language_data): Delete la_get_compile_instance initializer.
2545 (c_language::get_compile_instance): New member function.
2546 (cplus_language_data): Delete la_get_compile_instance initializer.
2547 (cplus_language::get_compile_instance): New member function.
2548 (asm_language_data): Delete la_get_compile_instance initializer.
2549 (minimal_language_data): Likewise.
2550 * c-lang.h (c_get_compile_context): Update comment.
2551 (cplus_get_compile_context): Update comment.
2552 * compile/compile.c (compile_to_object): Update calls, don't rely
2553 on function pointer being NULL.
2554 * d-lang.c (d_language_data): Delete la_get_compile_instance
2555 initializer.
2556 * f-lang.c (f_language_data): Likewise.
2557 * go-lang.c (go_language_data): Likewise.
2558 * language.c (unknown_language_data): Likewise.
2559 (auto_language_data): Likewise.
2560 * language.h (language_data): Delete la_get_compile_instance field.
2561 (language_defn::get_compile_instance): New member function.
2562 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2563 initializer.
2564 * objc-lang.c (objc_language_data): Likewise.
2565 * opencl-lang.c (opencl_language_data): Likewise.
2566 * p-lang.c (pascal_language_data): Likewise.
2567 * rust-lang.c (rust_language_data): Likewise.
2568
4009ee92
AB
25692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2570
2571 * ada-lang.c (ada_add_all_symbols): Update comment.
2572 (ada_iterate_over_symbols): Delete, move implementation to...
2573 (ada_language::iterate_over_symbols): ...here, a new member
2574 function, rewrite to use range based for loop.
2575 (ada_language_data): Delete la_iterate_over_symbols initializer.
2576 * c-lang.c (c_language_data): Likewise.
2577 (cplus_language_data): Likewise.
2578 (asm_language_data): Likewise.
2579 (minimal_language_data): Likewise.
2580 * d-lang.c (d_language_data): Likewise.
2581 * f-lang.c (f_language_data): Likewise.
2582 * go-lang.c (go_language_data): Likewise.
2583 * language.c (unknown_language_data): Likewise.
2584 (auto_language_data): Likewise.
2585 * language.h (language_data): Delete la_iterate_over_symbols field.
2586 (language_defn::iterate_over_symbols): New member function.
2587 (LA_ITERATE_OVER_SYMBOLS): Update.
2588 * linespec.c (iterate_over_all_matching_symtabs): Update.
2589 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2590 initializer.
2591 * objc-lang.c (objc_language_data): Likewise.
2592 * opencl-lang.c (opencl_language_data): Likewise.
2593 * p-lang.c (pascal_language_data): Likewise.
2594 * rust-lang.c (rust_language_data): Likewise.
2595
54f4ca46
AB
25962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2597
2598 * ada-lang.c (ada_language_data): Delete
2599 la_lookup_transparent_type initializer.
2600 * c-lang.c (c_language_data): Likewise.
2601 (cplus_language_data): Likewise.
2602 (cplus_language::lookup_transparent_type): New member function.
2603 (asm_language_data): Delete la_lookup_transparent_type
2604 initializer.
2605 (minimal_language_data): Likewise.
2606 * d-lang.c (d_language_data): Likewise.
2607 * f-lang.c (f_language_data): Likewise.
2608 * go-lang.c (go_language_data): Likewise.
2609 * language.c (unknown_language_data): Likewise.
2610 (auto_language_data): Likewise.
2611 * language.h (struct language_data): Delete
2612 la_lookup_transparent_type field.
2613 (language_defn::lookup_transparent_type): New member function.
2614 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2615 initializer.
2616 * objc-lang.c (objc_language_data): Likewise.
2617 * opencl-lang.c (opencl_language_data): Likewise.
2618 * p-lang.c (pascal_language_data): Likewise.
2619 * rust-lang.c (rust_language_data): Likewise.
2620 * symtab.c (symbol_matches_domain): Update call.
2621
1fb314aa
AB
26222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2623
2624 * ada-lang.c (ada_language_arch_info): Delete function, move
2625 implementation to...
2626 (ada_language::language_arch_info): ...here, a new member
2627 function.
2628 (ada_language_data): Delete la_language_arch_info.
2629 * c-lang.c (c_language_data): Likewise.
2630 (c_language::language_arch_info): New member function.
2631 (cplus_language_arch_info): Delete function, move
2632 implementation to...
2633 (cplus_language::language_arch_info): ...here, a new member
2634 function.
2635 (cplus_language_data): Delete la_language_arch_info.
2636 (asm_language_data): Likewise.
2637 (asm_language::language_arch_info): New member function.
2638 (minimal_language_data): Delete la_language_arch_info.
2639 (minimal_language::language_arch_info): New member function.
2640 * d-lang.c (d_language_arch_info): Delete function, move
2641 implementation to...
2642 (d_language::language_arch_info): ...here, a new member
2643 function.
2644 (d_language_data): Delete la_language_arch_info.
2645 * f-lang.c (f_language_arch_info): Delete function, move
2646 implementation to...
2647 (f_language::language_arch_info): ...here, a new member
2648 function.
2649 (f_language_data): Delete la_language_arch_info.
2650 * go-lang.c (go_language_arch_info): Delete function, move
2651 implementation to...
2652 (go_language::language_arch_info): ...here, a new member
2653 function.
2654 (go_language_data): Delete la_language_arch_info.
2655 * language.c (unknown_language_data): Likewise.
2656 (unknown_language::language_arch_info): New member function.
2657 (auto_language_data): Delete la_language_arch_info.
2658 (auto_language::language_arch_info): New member function.
2659 (language_gdbarch_post_init): Update call to
2660 la_language_arch_info.
2661 * language.h (language_data): Delete la_language_arch_info
2662 function pointer.
2663 (language_defn::language_arch_info): New function.
2664 * m2-lang.c (m2_language_arch_info): Delete function, move
2665 implementation to...
2666 (m2_language::language_arch_info): ...here, a new member
2667 function.
2668 (m2_language_data): Delete la_language_arch_info.
2669 * objc-lang.c (objc_language_arch_info): Delete function, move
2670 implementation to...
2671 (objc_language::language_arch_info): ...here, a new member
2672 function.
2673 (objc_language_data): Delete la_language_arch_info.
2674 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2675 implementation to...
2676 (opencl_language::language_arch_info): ...here, a new member
2677 function.
2678 (opencl_language_data): Delete la_language_arch_info.
2679 * p-lang.c (pascal_language_arch_info): Delete function, move
2680 implementation to...
2681 (pascal_language::language_arch_info): ...here, a new member
2682 function.
2683 (pascal_language_data): Delete la_language_arch_info.
2684 * rust-lang.c (rust_language_arch_info): Delete function, move
2685 implementation to...
2686 (rust_language::language_arch_info): ...here, a new member
2687 function.
2688 (rust_language_data): Delete la_language_arch_info.
2689
48448202
AB
26902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2691
2692 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2693 initializer.
2694 * c-lang.c (c_language_data): Likewise.
2695 (cplus_language_data): Likewise.
2696 (cplus_language::pass_by_reference_info): New method.
2697 (asm_language_data): Delete la_pass_by_reference initializer.
2698 (minimal_language_data): Likewise.
2699 * cp-abi.c (cp_pass_by_reference): Remove use of
2700 default_pass_by_reference.
2701 * d-lang.c (d_language_data): Likewise.
2702 * f-lang.c (f_language_data): Likewise.
2703 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2704 default_pass_by_reference.
2705 * go-lang.c (go_language_data): Likewise.
2706 * language.c (language_pass_by_reference): Update.
2707 (default_pass_by_reference): Delete.
2708 (unknown_language_data): Delete la_pass_by_reference
2709 initializer.
2710 (auto_language_data): Likewise.
2711 * language.h (struct language_data): Delete la_pass_by_reference
2712 field.
2713 (language_defn::pass_by_reference_info): New member function.
2714 (default_pass_by_reference): Delete declaration.
2715 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2716 initializer.
2717 * objc-lang.c (objc_language_data): Likewise.
2718 * opencl-lang.c (opencl_language_data): Likewise.
2719 * p-lang.c (pascal_language_data): Likewise.
2720 * rust-lang.c (rust_language_data): Likewise.
2721
15e5fd35
AB
27222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2723
2724 * ada-lang.c (ada_read_var_value): Delete function, move
2725 implementation to...
2726 (ada_language::read_var_value): ...here.
2727 (ada_language_data): Delete la_read_var_value initializer.
2728 * c-lang.c (c_language_data): Likewise.
2729 (cplus_language_data): Likewise.
2730 (minimal_language_data): Likewise.
2731 * d-lang.c (d_language_data): Likewise.
2732 * f-lang.c (f_language_data): Likewise.
2733 * findvar.c (default_read_var_value): Rename to...
2734 (language_defn::read_var_value): ...this.
2735 * findvar.c (read_var_value): Update header comment, and change to
2736 call member function instead of function pointer.
2737 * go-lang.c (go_language_data): Likewise.
2738 * language.c (unknown_language_data): Delete la_read_var_value
2739 initializer.
2740 (auto_language_data): Likewise.
2741 * language.h (struct language_data): Delete la_read_var_value
2742 field.
2743 (language_defn::read_var_value): New member function.
2744 (default_read_var_value): Delete declaration.
2745 * m2-lang.c (m2_language_data): Delete la_read_var_value
2746 initializer.
2747 * objc-lang.c (objc_language_data): Likewise.
2748 * opencl-lang.c (opencl_language_data): Likewise.
2749 * p-lang.c (pascal_language_data): Likewise.
2750 * rust-lang.c (rust_language_data): Likewise.
2751 * value.h (default_read_var_value): Delete declaration.
2752
5bd40f2a
AB
27532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2754
2755 * ada-lang.c (ada_print_array_index): Delete function, move
2756 implementation to...
2757 (ada_language::print_array_index): ...here.
2758 (ada_language_data): Delete la_print_array_index initializer.
2759 * c-lang.c (c_language_data): Likewise.
2760 (cplus_language_data): Likewise.
2761 (minimal_language_data): Likewise.
2762 * d-lang.c (d_language_data): Likewise.
2763 * f-lang.c (f_language_data): Likewise.
2764 * go-lang.c (go_language_data): Likewise.
2765 * language.c (default_print_array_index): Delete function, move
2766 implementation to...
2767 (language_defn::print_array_index): ...here.
2768 (unknown_language_data): Delete la_print_array_index initializer.
2769 (auto_language_data): Likewise.
2770 * language.h (struct language_data): Delete la_print_array_index
2771 field.
2772 (language_defn::print_array_index): New member function.
2773 (LA_PRINT_ARRAY_INDEX): Update.
2774 (default_print_array_index): Delete declaration.
2775 * m2-lang.c (m2_language_data): Delete la_print_array_index
2776 initializer.
2777 * objc-lang.c (objc_language_data): Likewise.
2778 * opencl-lang.c (opencl_language_data): Likewise.
2779 * p-lang.c (pascal_language_data): Likewise.
2780 * rust-lang.c (rust_language_data): Likewise.
2781
0874fd07
AB
27822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2783
2784 * gdb/ada-lang.c (ada_language_defn): Convert to...
2785 (ada_language_data): ...this.
2786 (class ada_language): New class.
2787 (ada_language_defn): New static global.
2788 * gdb/c-lang.c (c_language_defn): Convert to...
2789 (c_language_data): ...this.
2790 (class c_language): New class.
2791 (c_language_defn): New static global.
2792 (cplus_language_defn): Convert to...
2793 (cplus_language_data): ...this.
2794 (class cplus_language): New class.
2795 (cplus_language_defn): New static global.
2796 (asm_language_defn): Convert to...
2797 (asm_language_data): ...this.
2798 (class asm_language): New class.
2799 (asm_language_defn): New static global.
2800 (minimal_language_defn): Convert to...
2801 (minimal_language_data): ...this.
2802 (class minimal_language): New class.
2803 (minimal_language_defn): New static global.
2804 * gdb/d-lang.c (d_language_defn): Convert to...
2805 (d_language_data): ...this.
2806 (class d_language): New class.
2807 (d_language_defn): New static global.
2808 * gdb/f-lang.c (f_language_defn): Convert to...
2809 (f_language_data): ...this.
2810 (class f_language): New class.
2811 (f_language_defn): New static global.
2812 * gdb/go-lang.c (go_language_defn): Convert to...
2813 (go_language_data): ...this.
2814 (class go_language): New class.
2815 (go_language_defn): New static global.
2816 * gdb/language.c (unknown_language_defn): Remove declaration.
2817 (current_language): Initialize to nullptr, real initialization is
2818 moved to _initialize_language.
2819 (languages): Delete global.
2820 (language_defn::languages): Define.
2821 (set_language_command): Use language_defn::languages.
2822 (set_language): Likewise.
2823 (range_error): Likewise.
2824 (language_enum): Likewise.
2825 (language_def): Likewise.
2826 (add_set_language_command): Use language_def::languages for the
2827 language list, and language_def to lookup language pointers.
2828 (skip_language_trampoline): Use language_defn::languages.
2829 (unknown_language_defn): Convert to...
2830 (unknown_language_data): ...this.
2831 (class unknown_language): New class.
2832 (unknown_language_defn): New static global.
2833 (auto_language_defn): Convert to...
2834 (auto_language_data): ...this.
2835 (class auto_language): New class.
2836 (auto_language_defn): New static global.
2837 (language_gdbarch_post_init): Use language_defn::languages.
2838 (_initialize_language): Initialize current_language.
2839 * gdb/language.h (struct language_defn): Rename to...
2840 (struct language_data): ...this.
2841 (struct language_defn): New.
2842 (auto_language_defn): Delete.
2843 (unknown_language_defn): Delete.
2844 (minimal_language_defn): Delete.
2845 (ada_language_defn): Delete.
2846 (asm_language_defn): Delete.
2847 (c_language_defn): Delete.
2848 (cplus_language_defn): Delete.
2849 (d_language_defn): Delete.
2850 (f_language_defn): Delete.
2851 (go_language_defn): Delete.
2852 (m2_language_defn): Delete.
2853 (objc_language_defn): Delete.
2854 (opencl_language_defn): Delete.
2855 (pascal_language_defn): Delete.
2856 (rust_language_defn): Delete.
2857 * gdb/m2-lang.c (m2_language_defn): Convert to...
2858 (m2_language_data): ...this.
2859 (class m2_language): New class.
2860 (m2_language_defn): New static global.
2861 * gdb/objc-lang.c (objc_language_defn): Convert to...
2862 (objc_language_data): ...this.
2863 (class objc_language): New class.
2864 (objc_language_defn): New static global.
2865 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2866 (opencl_language_data): ...this.
2867 (class opencl_language): New class.
2868 (opencl_language_defn): New static global.
2869 * gdb/p-lang.c (pascal_language_defn): Convert to...
2870 (pascal_language_data): ...this.
2871 (class pascal_language): New class.
2872 (pascal_language_defn): New static global.
2873 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2874 language pointer, update comment format.
2875 * gdb/rust-lang.c (rust_language_defn): Convert to...
2876 (rust_language_data): ...this.
2877 (class rust_language): New class.
2878 (rust_language_defn): New static global.
2879
1313c56e
AB
28802020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2881
2882 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2883 member variable.
2884 <m_stmt_at_address>: New member variable.
2885 (lnp_state_machine::record_line): Don't record some lines, update
2886 tracking of is_stmt at the same address.
2887 (lnp_state_machine::lnp_state_machine): Initialise new member
2888 variables.
2889
b7ed9f3d
ST
28902020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2891
2892 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2893 "-include gnu-nat-mig.h".
2894 * gnu-nat-mig.h: New file.
2895 * gnu-nat.c: Include "gnu-nat-mig.h".
2896 (exc_server, msg_reply_server, notify_server,
2897 process_reply_server): Remove declarations.
2898
14a8ad62
ST
28992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2900
2901 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2902 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2903 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2904 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2905 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2906 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2907 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2908 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2909 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2910 to gnu_nat_target class.
2911 * gnu-nat.c: Likewise.
2912 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2913 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2914 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2915 object.
2916 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2917 instead of `gnu_target'.
2918
0af5e106
ST
29192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2920
2921 * i386-gnu-tdep.c: Include "gdbcore.h"
2922 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2923 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2924 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2925 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2926 i386_gnu_sigcontext_addr): New functions
2927 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2928 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2929 tdep.
2930
078f2fc9
ST
29312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2932
2933 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2934 before fork_inferior call. Avoid calling it if target_is_pushed returns
2935 true.
2936
53dff92c
ST
29372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2938
2939 * gnu-nat.h (gnu_target): New variable declaration.
2940 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2941 gnu_target.
2942 * gnu-nat.c (gnu_target): New variable.
2943 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2944 add_thread_silent, and add_thread calls.
2945 (gnu_nat_target::create_inferior): Pass gnu_target to
2946 add_thread_silent, thread_change_ptid call.
2947 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2948 call.
2949
5a8b8627
ST
29502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2951
2952 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2953 (gnu_nat_target::find_memory_regions): Remove unused
2954 `old_address' variable.
2955
366f550a
ST
29562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2957
2958 * gnu-nat.c: Include "gdbarch.h".
2959
f14871bf
ST
29602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2961
2962 * reply_mig_hack.awk (Error return): Cast function through
2963 void *, to bypass compiler function call check.
2964
c6887cfb
ST
29652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2966
2967 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2968 $(srcdir)/reply_mig_hack.awk.
2969
6930bffe
ST
29702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2971
2972 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2973
112c22ed
JG
29742020-05-30 Jonny Grant <jg@jguk.org>
2975
2976 * configure.ac (ACX_BUGURL): change bug URL to https.
2977
f68f85b5
PA
29782020-05-30 Pedro Alves <palves@redhat.com>
2979
2980 * cp-support.c (replace_typedefs_template): New.
2981 (replace_typedefs_qualified_name): Handle
2982 DEMANGLE_COMPONENT_TEMPLATE.
2983
976ca316
SM
29842020-05-29 Simon Marchi <simon.marchi@efficios.com>
2985
2986 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2987 dwarf2/index-cache.h, dwarf2/index-write.c,
2988 dwarf2/index-write.h, dwarf2/line-header.c,
2989 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2990 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2991 variables and fields from `dwarf2_per_objfile` to just
2992 `per_objfile` throughout.
2993
989ade05
SM
29942020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2995
2996 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2997 <push_dwarf_reg_entry_value>: Add comment.
2998
c47bae85
KB
29992020-05-28 Kevin Buettner <kevinb@redhat.com>
3000 Keith Seitz <keiths@redhat.com>
3001
3002 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3003 instead of PyEval_ReleaseLock.
3004 (class gdbpy_gil): Move to earlier in file.
3005 (finalize_python): Set gdb_python_initialized.
3006 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3007 when not initialized.
3008
44486dcf
SM
30092020-05-28 Simon Marchi <simon.marchi@efficios.com>
3010
3011 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3012 <push_dwarf_reg_entry_value>: Remove assert. Override
3013 per_objfile with caller_per_objfile.
3014
f030440d
TV
30152020-05-28 Tom de Vries <tdevries@suse.de>
3016
3017 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3018 PR gold/15646 workaround to symbol kind "type".
3019
f0fbb768
TT
30202020-05-27 Tom Tromey <tromey@adacore.com>
3021
3022 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3023
af0b2a3e
TT
30242020-05-27 Tom Tromey <tromey@adacore.com>
3025
3026 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3027 Use htab_find_with_hash.
3028 <add_abbrev>: Remove "abbrev_number" parameter.
3029 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3030 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3031 (hash_abbrev): Add comment.
3032 (abbrev_table::lookup_abbrev): Move to header file.
3033 (abbrev_table::read): Update.
3034
7d00ffec
TT
30352020-05-27 Tom Tromey <tromey@adacore.com>
3036
3037 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3038 method.
3039 <canonical_name>: New member.
3040 <raw_name>: Rename from "name".
3041 (partial_die_info): Initialize canonical_name.
3042 (scan_partial_symbols): Check raw_name.
3043 (partial_die_parent_scope, partial_die_full_name)
3044 (add_partial_symbol, add_partial_subprogram)
3045 (add_partial_enumeration, load_partial_dies): Use "name" method.
3046 (partial_die_info::name): New method.
3047 (partial_die_info::read, guess_partial_die_structure_name)
3048 (partial_die_info::fixup): Update.
3049
697bba18
TT
30502020-05-27 Tom Tromey <tromey@adacore.com>
3051
3052 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3053 <get_ref_die_offset>: Inline.
3054 <get_ref_die_offset_complaint>: New method.
3055 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3056 (attribute::get_ref_die_offset_complaint): Rename from
3057 get_ref_die_offset. Just issue complaint.
3058
c17ace43
HD
30592020-05-27 Hannes Domani <ssbssa@yahoo.de>
3060
3061 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3062
96445f0b
HD
30632020-05-27 Hannes Domani <ssbssa@yahoo.de>
3064
3065 * exec.c (exec_file_attach): Use errno value of first openp failure.
3066
ac637ec3
HD
30672020-05-27 Hannes Domani <ssbssa@yahoo.de>
3068
3069 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3070 Don't close thread handle.
3071
17ee85fc
TT
30722020-05-27 Tom Tromey <tom@tromey.com>
3073 Simon Marchi <simon.marchi@efficios.com>
3074
3075 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3076 shared_ptr.
3077 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3078 member.
3079 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3080 dwarf2_per_bfd_objfile_data_key>: New globals.
3081 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3082 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3083 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3084 shared.
3085 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3086 short-circuit when sharing.
3087 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3088 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3089
39b16f87
SM
30902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3091
3092 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3093 to...
3094 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3095 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3096
fcf23d5b
SM
30972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3098
3099 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3100 build_name_components, find_name_components_bounds>:
3101 Add per_objfile parameter.
3102 (struct mapped_index) <symbol_name_at>: Likewise.
3103 (struct mapped_debug_names): Remove constructor.
3104 <dwarf2_per_objfile>: Remove field.
3105 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3106 (mapped_index_base::find_name_components_bounds,
3107 mapped_index_base::build_name_components,
3108 dw2_expand_symtabs_matching_symbol): Likewise.
3109 (class mock_mapped_index) <symbol_name_at>: Likewise.
3110 (check_match): Likewise.
3111 (check_find_bounds_finds): Likewise.
3112 (test_mapped_index_find_name_component_bounds): Update.
3113 (CHECK_MATCH): Update.
3114 (dw2_expand_symtabs_matching): Update.
3115 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3116 per_objfile parameter.
3117 <find_vec_in_debug_names>: Likewise.
3118 <m_per_objfile>: New field.
3119 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3120 parameter.
3121 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3122 (dw2_debug_names_iterator::next): Update.
3123 (dw2_debug_names_lookup_symbol): Update.
3124 (dw2_debug_names_expand_symtabs_for_function): Update.
3125 (dw2_debug_names_map_matching_symbols): Update.
3126 (dw2_debug_names_expand_symtabs_matching): Update.
3127 (dwarf2_read_debug_names): Update.
3128
7188ed02
SM
31292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3130
3131 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3132 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3133 move to dwarf2_per_objfile.
3134 <read_in_chain>: Remove.
3135 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3136 remove_all_cus, age_comp_units>: New methods.
3137 <m_dwarf2_cus>: New member.
3138 (struct dwarf2_per_cu_data) <cu>: Remove.
3139 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3140 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3141 moved to methods of dwarf2_per_objfile.
3142 (dwarf2_clear_marks): Remove.
3143 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3144 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3145 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3146 (dwarf2_per_objfile::remove_all_cus): New.
3147 (class free_cached_comp_units) <~free_cached_comp_units>:
3148 Update.
3149 (load_cu): Update.
3150 (dw2_do_instantiate_symtab): Adjust.
3151 (fill_in_sig_entry_from_dwo_entry): Adjust.
3152 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3153 (cutu_reader::cutu_reader): Likewise.
3154 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3155 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3156 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3157 and dwarf2_per_objfile::age_comp_units.
3158 (load_partial_comp_unit): Update.
3159 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3160 (process_queue): Likewise.
3161 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3162 backlink.
3163 (dwarf2_read_addr_index): Likewise.
3164 (follow_die_offset): Likewise.
3165 (dwarf2_fetch_die_loc_sect_off): Likewise.
3166 (dwarf2_fetch_constant_bytes): Likewise.
3167 (dwarf2_fetch_die_type_sect_off): Likewise.
3168 (follow_die_sig_1): Likewise.
3169 (load_full_type_unit): Likewise.
3170 (read_signatured_type): Likewise.
3171 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3172 (dwarf2_cu::~dwarf2_cu): Remove.
3173 (dwarf2_per_objfile::get_cu): New.
3174 (dwarf2_per_objfile::set_cu): New.
3175 (age_cached_comp_units): Rename to...
3176 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3177 to std::unordered_map.
3178 (free_one_cached_comp_unit): Rename to...
3179 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3180 to std::unordered_map.
3181 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3182 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3183 a dwarf2_per_objfile in data.
3184 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3185 (dwarf2_clear_marks): Remove.
3186
2e671100
SM
31872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3188
3189 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3190 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3191 (init_tu_and_read_dwo_dies): Likewise.
3192 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3193 (cutu_reader::cutu_reader): Likewise.
3194 (load_partial_comp_unit): Likewise.
3195 (process_psymtab_comp_unit): Update.
3196 (build_type_psymtabs_1): Update.
3197 (process_skeletonless_type_unit): Update.
3198 (load_full_comp_unit): Update.
3199 (find_partial_die): Update.
3200 (dwarf2_read_addr_index): Update.
3201 (read_signatured_type): Update.
3202
2e6a9f79
SM
32032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3204
3205 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3206 m_header_read_in>: New fields.
3207 <get_header>: New method.
3208 * dwarf2/read.c (per_cu_header_read_in): Remove.
3209 (dwarf2_per_cu_data::get_header): New.
3210 (dwarf2_per_cu_data::addr_size): Update.
3211 (dwarf2_per_cu_data::offset_size): Update.
3212 (dwarf2_per_cu_data::ref_addr_size): Update.
3213
1b555f17
SM
32142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3215
3216 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3217 (dw2_do_instantiate_symtab): Update.
3218 (queue_and_load_all_dwo_tus): Change parameter from
3219 dwarf2_per_cu_data to dwarf2_cu.
3220 (dwarf2_fetch_die_loc_sect_off): Update.
3221 (dwarf2_fetch_constant_bytes): Update.
3222 (dwarf2_fetch_die_type_sect_off): Update.
3223
8fc0b21d
SM
32242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3225
3226 * dwarf2/read.c (process_full_comp_unit,
3227 process_full_type_unit): Remove per_cu, per_objfile paramters.
3228 Add dwarf2_cu parameter.
3229 (process_queue): Update.
3230
168c9250
SM
32312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3232
3233 * dwarf2/read.c (create_cu_from_index_list): Replace
3234 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3235 (create_cus_from_index_list): Likewise.
3236 (create_cus_from_index): Likewise.
3237 (create_signatured_type_table_from_index): Likewise.
3238 (create_cus_from_debug_names_list): Likewise.
3239 (create_cus_from_debug_names): Likewise.
3240 (dwarf2_read_gdb_index): Update.
3241 (dwarf2_read_debug_names): Update.
3242
e286671b
TT
32432020-05-27 Tom Tromey <tom@tromey.com>
3244 Simon Marchi <simon.marchi@efficios.com>
3245
3246 * dwarf2/read.h (struct dwarf2_per_objfile)
3247 <get_type_for_signatured_type, set_type_for_signatured_type>:
3248 New methods.
3249 <m_type_map>: New member.
3250 (struct signatured_type) <type>: Remove.
3251 * dwarf2/read.c
3252 (dwarf2_per_objfile::get_type_for_signatured_type,
3253 dwarf2_per_objfile::set_type_for_signatured_type): New.
3254 (get_signatured_type): Use new methods.
3255
8adb8487
TT
32562020-05-27 Tom Tromey <tom@tromey.com>
3257 Simon Marchi <simon.marchi@efficios.com>
3258
3259 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3260 (struct dwarf2_per_objfile) <type_units>: New member.
3261 <get_type_unit_group_unshareable>: New method.
3262 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3263 num_symtabs, symtabs>: Remove; move to
3264 type_unit_group_unshareable.
3265 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3266 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3267 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3268
127bbf4b
SM
32692020-05-27 Simon Marchi <simon.marchi@efficios.com>
3270
3271 * dwarf2/read.h (struct dwarf2_per_cu_data):
3272 <dwarf2_per_objfile>: Remove.
3273 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3274 dwarf2_per_objfile.
3275 (create_signatured_type_table_from_index): Likewise.
3276 (create_signatured_type_table_from_debug_names): Likewise.
3277 (create_debug_type_hash_table): Likewise.
3278 (fill_in_sig_entry_from_dwo_entry): Likewise.
3279 (create_type_unit_group): Likewise.
3280 (read_comp_units_from_section): Likewise.
3281 (create_cus_hash_table): Likewise.
3282
f6e649dd
SM
32832020-05-27 Simon Marchi <simon.marchi@efficios.com>
3284
3285 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3286 dwarf2_per_cu_data::dwarf2_per_objfile.
3287 (compute_compunit_symtab_includes): Likewise.
3288 (dwarf2_cu::start_symtab): Likewise.
3289
aa66c379
SM
32902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3291
3292 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3293 parameter.
3294 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3295 (read_namespace_alias): Update.
3296 (lookup_die_type): Update.
3297 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3298 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3299 Update.
3300 (disassemble_dwarf_expression): Update.
3301
120ce1b5
SM
33022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3303
3304 * dwarf2/read.h (struct dwarf2_queue_item): Add
3305 dwarf2_per_objfile parameter, assign new parameter.
3306 <per_objfile>: New field.
3307 * dwarf2/read.c (free_one_cached_comp_unit): Add
3308 dwarf2_per_objfile parameter.
3309 (queue_comp_unit): Likewise.
3310 (dw2_do_instantiate_symtab): Update.
3311 (process_psymtab_comp_unit): Update.
3312 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3313 (process_imported_unit_die): Update.
3314 (queue_and_load_dwo_tu): Update.
3315 (follow_die_offset): Update.
3316 (follow_die_sig_1): Update.
3317
9f47c707
SM
33182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3319
3320 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3321 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3322 (read_call_site_scope): Assign per_objfile.
3323 (dwarf2_per_cu_data::objfile): Remove.
3324 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3325 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3326 dwarf2_per_objfile parameter.
3327 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3328 dwarf2_per_objfile parameter.
3329 (dwarf_expr_reg_to_entry_parameter): Add output
3330 dwarf2_per_objfile parameter.
3331 (locexpr_get_frame_base): Update.
3332 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3333 <push_dwarf_reg_entry_value>: Update.
3334 <call_site_to_target_addr>: Update.
3335 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3336 parameter.
3337 (value_of_dwarf_reg_entry): Update.
3338 (rw_pieced_value): Update.
3339 (indirect_synthetic_pointer): Update.
3340 (dwarf2_evaluate_property): Update.
3341 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3342 parameter.
3343 (locexpr_read_variable): Update.
3344 (locexpr_get_symbol_read_needs): Update.
3345 (loclist_read_variable): Update.
3346
14095eb3
SM
33472020-05-27 Simon Marchi <simon.marchi@efficios.com>
3348
3349 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3350 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3351 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3352 parameter.
3353 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3354 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3355 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3356 parameter.
3357 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3358 sect_variable_value): Add dwarf2_per_objfile parameter.
3359 (class dwarf_evaluate_loc_desc) <dwarf_call,
3360 dwarf_variable_value>: Update.
3361 (fetch_const_value_from_synthetic_pointer): Add
3362 dwarf2_per_objfile parameter.
3363 (fetch_const_value_from_synthetic_pointer): Update.
3364 (coerced_pieced_ref): Update.
3365 (class symbol_needs_eval_context) <dwarf_call,
3366 dwarf_variable_value>: Update.
3367 (dwarf2_compile_expr_to_ax): Update.
3368
3c3cd3d4
SM
33692020-05-27 Simon Marchi <simon.marchi@efficios.com>
3370
3371 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3372 parameter.
3373 (dwarf2_evaluate_loc_desc_full): Update.
3374
82ca3f51
SM
33752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3378 parameter.
3379 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3380 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3381 dwarf2_per_objfile parameter.
3382 (decode_debug_loc_dwo_addresses): Likewise.
3383 (dwarf2_find_location_expression): Update.
3384 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3385 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3386 parameter.
3387 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3388 parameter.
3389 (locexpr_describe_location_1): Likewise.
3390 (locexpr_describe_location): Update.
3391
4b167ea1
SM
33922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3393
3394 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3395 Remove.
3396 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3397 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3398 (dwarf2_compile_property_to_c): Update.
3399 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3400 use text offset from objfile.
3401 (locexpr_tracepoint_var_ref): Update.
3402 (locexpr_generate_c_location): Update.
3403 (loclist_describe_location): Update.
3404 (loclist_tracepoint_var_ref): Update.
3405 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3406 dwarf2_per_objfile parameter.
3407 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3408 use text offset from objfile.
3409 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3410
89b07335
SM
34112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3412
3413 * dwarf2/expr.h (struct dwarf_expr_context)
3414 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3415 <offset>: Remove.
3416 <per_objfile>: New member.
3417 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3418 dwarf2_per_objfile parameter. Don't set offset, set
3419 per_objfile.
3420 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3421 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3422 a dwarf2_per_objfile object instead of an offset.
3423 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3424 constructor.
3425 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3426 to dwarf2_expr_executor constructor. Don't set offset.
3427 (dwarf2_fetch_cfa_info): Update.
3428 (struct dwarf2_frame_cache) <text_offset>: Remove.
3429 <per_objfile>: New field.
3430 (dwarf2_frame_cache): Update.
3431 (dwarf2_frame_prev_register): Update.
3432 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3433 <dwarf_evaluate_loc_desc>: Add constructor.
3434 (dwarf2_evaluate_loc_desc_full): Update.
3435 (dwarf2_locexpr_baton_eval): Update.
3436 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3437 Add constructor.
3438 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3439
293e7e51
SM
34402020-05-27 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3443 addr_sized_int_type>: Move to dwarf2_cu.
3444 <int_type>: Move to dwarf2_per_objfile.
3445 (struct dwarf2_per_objfile) <int_type>: Move here.
3446 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3447 addr_sized_int_type>: Move here.
3448 (read_func_scope): Update.
3449 (read_array_type): Update.
3450 (read_tag_string_type): Update.
3451 (attr_to_dynamic_prop): Update.
3452 (dwarf2_per_cu_data::int_type): Rename to...
3453 (dwarf2_per_objfile::int_type): ... this.
3454 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3455 (dwarf2_cu::addr_sized_int_type): ... this.
3456 (read_subrange_type): Update.
3457 (dwarf2_per_cu_data::addr_type): Rename to...
3458 (dwarf2_cu::addr_type): ... this.
3459 (set_die_type): Update.
3460
64874a40
SM
34612020-05-27 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3464 data through per_cu->cu.
3465
4ab09049
SM
34662020-05-27 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3469 dwarf2_per_cu_data parameter fo dwarf2_cu.
3470 (lookup_dwo_type_unit): Likewise.
3471 (read_cutu_die_from_dwo): Likewise.
3472 (lookup_dwo_unit): Likewise.
3473 (open_and_init_dwo_file): Likewise.
3474 (lookup_dwo_cutu): Likewise.
3475 (lookup_dwo_comp_unit): Likewise.
3476 (lookup_dwo_type_unit): Likewise.
3477 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3478 (cutu_reader::cutu_reader): Update.
3479
47b14e86
SM
34802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3481
3482 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3483 parameter.
3484 (process_full_type_unit): Likewise.
3485 (process_queue): Update.
3486
43182c09
SM
34872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3488
3489 * dwarf2/read.c (recursively_compute_inclusions): Add
3490 dwarf2_per_objfile parameter.
3491 (compute_compunit_symtab_includes): Likewise.
3492 (process_cu_includes): Update.
3493
7aa104c4
SM
34942020-05-27 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3497 parameter.
3498 (create_type_unit_group): Update.
3499 (process_psymtab_comp_unit_reader): Update.
3500 (build_type_psymtabs_reader): Update.
3501
e3beb21d
SM
35022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3503
3504 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3505 object through m_this_cu->cu.
3506
d460f660
SM
35072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3508
3509 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3510 the info parameter.
3511 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3512
ab432490
SM
35132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3516 per_objfile parameter.
3517 (load_full_type_unit): Add per_objfile parameter.
3518 (read_signatured_type): Likewise.
3519 (load_full_comp_unit): Likewise.
3520 (load_cu): Likewise.
3521 (dw2_do_instantiate_symtab): Likewise.
3522 (dw2_get_file_names): Likewise.
3523 (dw2_map_symtabs_matching_filename): Update.
3524 (dw_expand_symtabs_matching_file_matcher): Update.
3525 (dw2_map_symbol_filenames): Update.
3526 (process_psymtab_comp_unit): Add per_objfile parameter.
3527 (build_type_psymtabs_1): Update.
3528 (process_skeletonless_type_unit): Update.
3529 (dwarf2_build_psymtabs_hard): Update.
3530 (load_partial_comp_unit): Add per_objfile parameter.
3531 (scan_partial_symbols): Update.
3532 (load_full_comp_unit): Add per_objfile parameter.
3533 (process_imported_unit_die): Update.
3534 (create_cus_hash_table): Update.
3535 (find_partial_die): Update.
3536 (dwarf2_read_addr_index): Update.
3537 (follow_die_offset): Update.
3538 (dwarf2_fetch_die_loc_sect_off): Update.
3539 (dwarf2_fetch_constant_bytes): Update.
3540 (dwarf2_fetch_die_type_sect_off): Update.
3541 (follow_die_sig_1): Update.
3542 (load_full_type_unit): Add per_objfile parameter.
3543 (read_signatured_type): Likewise.
3544
313bad1b
SM
35452020-05-27 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3548 of objfile_name.
3549
c3699833
SM
35502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3551
3552 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3553 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3554 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3555 field.
3556 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3557 (create_cus_from_index): Update.
3558 (dwarf2_read_gdb_index): Update.
3559 (create_cus_from_debug_names): Update.
3560 (dwarf2_read_debug_names): Update.
3561 (get_abbrev_section_for_cu): Update.
3562 (create_all_comp_units): Update.
3563 (read_attribute_value): Update.
3564 (get_debug_line_section): Update.
3565 * dwarf2/index-cache.c (index_cache::store): Update.
3566 * dwarf2/index-write.c (save_gdb_index_command): Update.
3567 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3568
1859c670
SM
35692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3570
3571 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3572 member.
3573 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3574 dwarf2_per_cu_data::per_bfd.
3575 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3576 (create_type_unit_group): Likewise.
3577 (queue_comp_unit): Remove reference to
3578 per_cu->dwarf2_per_objfile.
3579 (maybe_queue_comp_unit): Likewise.
3580 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3581 (create_cus_hash_table): Assign new field.
3582
5e22e966
SM
35832020-05-27 Simon Marchi <simon.marchi@efficios.com>
3584
3585 * dwarf2/read.c: Replace
3586 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3587 dwarf2_cu->per_objfile throughout.
3588
97a1449a
SM
35892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3590
3591 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3592 parameter, don't use per_cu->dwarf2_per_objfile.
3593 (dw2_instantiate_symtab): Likewise.
3594 (dw2_find_last_source_symtab): Update.
3595 (dw2_map_expand_apply): Update.
3596 (dw2_lookup_symbol): Update.
3597 (dw2_expand_symtabs_for_function): Update.
3598 (dw2_expand_all_symtabs): Update.
3599 (dw2_expand_symtabs_with_fullname): Update.
3600 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3601 don't use per_cu->dwarf2_per_objfile.
3602 (dw2_expand_marked_cus): Update.
3603 (dw2_find_pc_sect_compunit_symtab): Update.
3604 (dw2_debug_names_lookup_symbol): Update.
3605 (dw2_debug_names_expand_symtabs_for_function): Update.
3606 (dw2_debug_names_map_matching_symbols): Update.
3607 (dwarf2_psymtab::expand_psymtab): Update.
3608
9e021579
SM
36092020-05-27 Simon Marchi <simon.marchi@efficios.com>
3610
3611 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3612 <per_objfile>: New member.
3613 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3614 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3615 call to dwarf2_cu.
3616 (cutu_reader::cutu_reader): Update.
3617 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3618
ae090bdb
SM
36192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3622 struct dwarf2_per_objfile.
3623 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3624 dwarf2_per_bfd.
3625 * dwarf2/read.c (set_die_type): Update.
3626 (get_die_type_at_offset): Update.
3627
af758d11
SM
36282020-05-27 Tom Tromey <tom@tromey.com>
3629 Simon Marchi <simon.marchi@efficios.com>
3630
3631 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3632 method.
3633 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3634 get_symtab, set_symtab>: New methods.
3635 <m_symtabs>: New field.
3636 (struct dwarf2_psymtab): Derive from partial_symtab.
3637 <readin_p, get_compunit_symtab>: Declare methods.
3638 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3639 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3640 New methods.
3641 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3642 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3643 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3644 (dw2_symtab_iter_next, dw2_print_stats)
3645 (dw2_expand_symtabs_with_fullname)
3646 (dw2_expand_symtabs_matching_one)
3647 (dw_expand_symtabs_matching_file_matcher)
3648 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3649 (dw2_debug_names_iterator::next)
3650 (dw2_debug_names_map_matching_symbols)
3651 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3652 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3653 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3654 New methods.
3655 (get_compunit_symtab, process_full_comp_unit)
3656 (process_full_type_unit): Update.
3657 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3658
5989a64e
SM
36592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3660
3661 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3662 then introduce a new dwarf2_per_objfile type.
3663 <read_line_string>: Move to the new dwarf2_per_objfile type.
3664 <objfile>: Likewise.
3665 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3666 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3667 dwarf2_per_objfile->per_bfd.
3668 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3669 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3670 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3671 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3672 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3673 (dwarf2_per_objfile::locate_sections): Rename to...
3674 (dwarf2_per_bfd::locate_sections): ... this.
3675 (dwarf2_per_objfile::get_cutu): Rename to...
3676 (dwarf2_per_bfd::get_cutu): ... this.
3677 (dwarf2_per_objfile::get_cu): Rename to...
3678 (dwarf2_per_bfd::get_cu): ... this.
3679 (dwarf2_per_objfile::get_tu): Rename to...
3680 (dwarf2_per_bfd::get_tu): ... this.
3681 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3682 (dwarf2_per_bfd::allocate_per_cu): ... this.
3683 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3684 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3685 (get_gdb_index_contents_ftype): Change parameter from
3686 dwarf2_per_objfile to dwarf2_per_bfd.
3687 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3688 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3689
a50264ba
TT
36902020-05-27 Tom Tromey <tom@tromey.com>
3691 Simon Marchi <simon.marchi@efficios.com>
3692
3693 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3694 (allocate_piece_closure): Set "per_objfile" member.
3695 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3696 (locexpr_describe_location, loclist_describe_location): Use new
3697 member.
3698 * dwarf2/read.c (read_call_site_scope)
3699 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3700 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3701 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3702 handle_data_member_location): Set per_objfile member.
3703 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3704 member.
3705 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3706
d3473f0c
TT
37072020-05-27 Tom Tromey <tom@tromey.com>
3708
3709 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3710 allocate_signatured_type>: Declare new methods.
3711 <m_num_psymtabs>: New member.
3712 (struct dwarf2_per_cu_data) <index>: New member.
3713 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3714 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3715 (create_cu_from_index_list): Use allocate_per_cu.
3716 (create_signatured_type_table_from_index)
3717 (create_signatured_type_table_from_debug_names)
3718 (create_debug_type_hash_table, add_type_unit)
3719 (read_comp_units_from_section): Use allocate_signatured_type.
3720
5717c425
TT
37212020-05-27 Tom Tromey <tom@tromey.com>
3722
3723 * psymtab.c (partial_map_expand_apply)
3724 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3725 (psym_lookup_global_symbol_language)
3726 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3727 (psym_print_stats, psym_expand_symtabs_for_function)
3728 (psym_map_symbol_filenames, psym_map_matching_symbols)
3729 (psym_expand_symtabs_matching)
3730 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3731 (maintenance_check_psymtabs): Update.
3732 * psympriv.h (struct partial_symtab) <readin_p,
3733 get_compunit_symtab>: Add objfile parameter.
3734 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3735 Likewise.
3736 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3737 get_compunit_symtab>: Likewise.
3738 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3739
45940949
TT
37402020-05-27 Tom Tromey <tom@tromey.com>
3741
3742 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3743 member.
3744 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3745 (create_cu_from_index_list)
3746 (create_signatured_type_table_from_index)
3747 (create_signatured_type_table_from_debug_names)
3748 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3749 (dwarf2_create_include_psymtab)
3750 (create_debug_type_hash_table, add_type_unit)
3751 (create_type_unit_group, read_comp_units_from_section)
3752 (dwarf2_compute_name, create_cus_hash_table)
3753 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3754 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3755 obstack.
3756 (dw2_get_real_path): Likewise. Change argument to
3757 dwarf2_per_objfile.
3758
f8c6d152
LM
37592020-05-27 Luis Machado <luis.machado@linaro.org>
3760
3761 PR tdep/26000
3762 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3763 for ldrd (immediate).
3764
e98d2e6d
PW
37652020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3766
3767 * command.h: Add comment giving the name of class_tui.
3768 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3769 create the fake command for the help for class_tui.
3770
53a47a3e
TT
37712020-05-26 Tom Tromey <tromey@adacore.com>
3772
3773 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3774 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3775 (val_atr): New function.
3776 (value_val_atr): Use it.
3777 * ada-valprint.c (print_optional_low_bound): Change low bound
3778 handling for enums.
3779 (val_print_packed_array_elements): Don't call discrete_position.
3780 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3781 discrete_position for enum types.
3782 * language.c (default_print_array_index): Change type.
3783 * language.h (struct language_defn) <la_print_array_index>: Add
3784 index_type parameter, change type of index_value.
3785 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3786 (default_print_array_index): Update.
3787 * valprint.c (maybe_print_array_index): Don't call
3788 value_from_longest. Update.
3789 (value_print_array_elements): Don't call discrete_position.
3790
0bc2354b
TT
37912020-05-26 Tom Tromey <tromey@adacore.com>
3792
3793 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3794 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3795
1218a4bf
CDA
37962020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3797
3798 PR gdb/13519
3799 * avr-tdep.c (avr_integer_to_address): Return data or code
3800 address accordingly to the second 'type' argument of the
3801 function.
3802
92651b1d
MW
38032020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3804
3805 * infcmd.c, inferior.h: (construct_inferior_arguments):
3806 Moved function from here to gdbsupport/common-inferior.{h,cc}
3807
0a4f5f8c
TT
38082020-05-23 Tom Tromey <tom@tromey.com>
3809
3810 Revert commit eca1f90c:
3811 * NEWS: Remove entry for completion styling.
3812 * completer.c (_rl_completion_prefix_display_length): Move
3813 declaration later.
3814 (gdb_fnprint): Revert.
3815 (gdb_display_match_list_1): Likewise.
3816 * cli/cli-style.c (completion_prefix_style)
3817 (completion_difference_style, completion_suffix_style): Remove.
3818 (_initialize_cli_style): Revert.
3819 * cli/cli-style.h (completion_prefix_style)
3820 (completion_difference_style, completion_suffix_style): Don't
3821 declare.
3822
e08bd6c5
PA
38232020-05-24 Pedro Alves <palves@redhat.com>
3824
3825 * symtab.c (completion_list_add_name): Return boolean indication
3826 of whether the symbol matched.
3827 (completion_list_add_symbol): Don't try to remove C++ aliases if
3828 the symbol didn't match in the first place.
3829 * symtab.h (completion_list_add_name): Return bool.
3830
ceacbf6e
SM
38312020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3832
3833 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3834 type::field.
3835
26f16254
JB
38362020-05-23 Joel Brobecker <brobecker@adacore.com>
3837
3838 GDB 9.2 released.
3839
eca1f90c
TT
38402020-05-23 Tom Tromey <tom@tromey.com>
3841
3842 * NEWS: Add entry for completion styling.
3843 * completer.c (_rl_completion_prefix_display_length): Move
3844 declaration earlier.
3845 (gdb_fnprint): Use completion_style.
3846 (gdb_display_match_list_1): Likewise.
3847 * cli/cli-style.c (completion_prefix_style)
3848 (completion_difference_style, completion_suffix_style): New
3849 globals.
3850 (_initialize_cli_style): Register new globals.
3851 * cli/cli-style.h (completion_prefix_style)
3852 (completion_difference_style, completion_suffix_style): Declare.
3853
51e2cfa2
PA
38542020-05-23 Pedro Alves <palves@redhat.com>
3855
3856 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3857 (parse_escape): Use ISDIGIT instead of isdigit.
3858 (puts_debug): Use gdb_isprint instead of isprint.
3859 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3860 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3861 ISSPACE instead of isspace.
3862 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3863 instead of isspace.
3864 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3865 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3866 instead of isxdigit and ISDIGIT instead of isdigit.
3867
80fc5e77
SM
38682020-05-22 Simon Marchi <simon.marchi@efficios.com>
3869
3870 * gdbtypes.h (struct type) <field>: New method.
3871 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3872 or type::field.
3873
3cabb6b0
SM
38742020-05-22 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3877 (TYPE_FIELDS): Use type::fields. Change all call sites that
3878 modify the propery to use type::set_fields instead.
3879
1f704f76
SM
38802020-05-22 Simon Marchi <simon.marchi@efficios.com>
3881
3882 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3883 type::num_fields instead.
3884
5e33d5f4
SM
38852020-05-22 Simon Marchi <simon.marchi@efficios.com>
3886
3887 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3888 methods.
3889 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3890 that modify the number of fields to use type::set_num_fields
3891 instead.
3892
9392ebb3
TT
38932020-05-22 Tom Tromey <tromey@adacore.com>
3894
3895 * compile/compile-object-load.h (munmap_list_free): Don't
3896 declare.
3897
7c13f4e8
AB
38982020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * annotate.c (annotate_source_line): Update return type, add call
3901 to update current symtab and line.
3902 * annotate.h (annotate_source_line): Update return type, and
3903 extend header comment.
3904 * source.c (info_line_command): Check annotation_level before
3905 calling annotate_source_line.
3906 * stack.c (print_frame_info): If calling annotate_source_line
3907 returns true, then don't print any other source line information.
3908
aa370940
SM
39092020-05-21 Simon Marchi <simon.marchi@efficios.com>
3910
3911 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3912
84d53fa9
SM
39132020-05-21 Simon Marchi <simon.marchi@efficios.com>
3914
3915 * coffread.c (patch_type): Remove NULL check before xfree.
3916 * corefile.c (set_gnutarget): Likewise.
3917 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3918 * exec.c (build_section_table): Likewise.
3919 * remote.c (remote_target::pass_signals): Likewise.
3920 * utils.c (n_spaces): Likewise.
3921 * cli/cli-script.c (document_command): Likewise.
3922 * i386-windows-tdep.c (core_process_module_section): Likewise.
3923 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3924
9d428aae
SM
39252020-05-20 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * symfile.c (reread_symbols): Clear objfile's section_offsets
3928 vector and section indices, re-compute them by calling
3929 sym_offsets.
3930
250106a7
TT
39312020-05-20 Tom Tromey <tromey@adacore.com>
3932
3933 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3934 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3935
9a0bacfb
TV
39362020-05-20 Tom de Vries <tdevries@suse.de>
3937
3938 PR symtab/25833
3939 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3940
7b958a48
AM
39412020-05-20 Alan Modra <amodra@gmail.com>
3942
3943 PR 25993
3944 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3945 bfd_set_filename.
3946 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3947 passed to bfd_set_filename.
3948 * symfile-mem.c (add_vsyscall_page): Likewise for string
3949 passed to symbol_file_add_from_memory.
3950 (symbol_file_add_from_memory): Make name param a const char* and
3951 don't strdup.
3952
c7e97679
AM
39532020-05-20 Alan Modra <amodra@gmail.com>
3954
3955 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3956 rather than accessing bfd->filename directly.
3957 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3958 and use bfd_section_name.
3959 * dwarf2/frame.c (decode_frame_entry): Likewise.
3960 * exec.c (exec_set_section_address): Likewise.
3961 * solib-aix.c (solib_aix_bfd_open): Likewise.
3962 * stap-probe.c (get_stap_base_address): Likewise.
3963 * symfile.c (reread_symbols): Likewise.
3964
563c591b
TT
39652020-05-19 Tom Tromey <tromey@adacore.com>
3966
3967 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3968
f408d82c
SM
39692020-05-19 Simon Marchi <simon.marchi@efficios.com>
3970
3971 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3972
98c59b52
PA
39732020-05-19 Pedro Alves <palves@redhat.com>
3974
3975 * NEWS (set exec-file-mismatch): Adjust entry.
3976 * exec.c: Include "build-id.h".
3977 (validate_exec_file): Try to match build IDs instead of filenames.
3978 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3979 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3980 and pass down 'warn_if_slow'.
3981 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3982 gdb_bfd_open_closure to pass it down.
3983 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3984
4111f652
PA
39852020-05-19 Pedro Alves <palves@redhat.com>
3986
3987 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3988 * target.c (target_fileio_open_1): Rename to target_fileio_open
3989 and make extern. Use bool.
3990 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3991 (target_fileio_read_alloc_1): Adjust.
3992 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3993 (target_fileio_open_warn_if_slow): Delete declaration.
3994
ad80db5b
PA
39952020-05-19 Pedro Alves <palves@redhat.com>
3996
3997 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3998 Adjust all callers.
3999
1d6ce4d3
YS
40002020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4001
4002 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4003 whether disp is negative.
4004
9005fbbb
SM
40052020-05-19 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * symfile.h (struct symfile_segment_data)
4008 <~symfile_segment_data>: Remove.
4009 <segment_info>: Change to std::vector.
4010 * symfile.c (default_symfile_segments): Update.
4011 * elfread.c (elf_symfile_segments): Update.
4012
68b888ff
SM
40132020-05-19 Simon Marchi <simon.marchi@efficios.com>
4014
4015 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4016 <segments>: New.
4017 <segment_bases, segment_sizes>: Remove.
4018 * symfile.c (default_symfile_segments): Update.
4019 * elfread.c (elf_symfile_segments): Update.
4020 * remote.c (remote_target::get_offsets): Update.
4021 * solib-target.c (solib_target_relocate_section_addresses):
4022 Update.
4023
62982abd
SM
40242020-05-19 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * symfile.h (struct symfile_segment_data): Initialize fields.
4027 <~symfile_segment_data>: Add.
4028 (symfile_segment_data_up): New.
4029 (struct sym_fns) <sym_segments>: Return a
4030 symfile_segment_data_up.
4031 (default_symfile_segments): Return a symfile_segment_data_up.
4032 (free_symfile_segment_data): Remove.
4033 (get_symfile_segment_data): Return a symfile_segment_data_up.
4034 * symfile.c (default_symfile_segments): Likewise.
4035 (get_symfile_segment_data): Likewise.
4036 (free_symfile_segment_data): Remove.
4037 (symfile_find_segment_sections): Update.
4038 * elfread.c (elf_symfile_segments): Return a
4039 symfile_segment_data_up.
4040 * remote.c (remote_target::get_offsets): Update.
4041 * solib-target.c (solib_target_relocate_section_addresses):
4042 Update.
4043 * symfile-debug.c (debug_sym_segments): Return a
4044 symfile_segment_data_up.
4045
7f204339
RO
40462020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4047
e52a0f1b
RO
4048 PR build/25981
4049 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4050 Hardcode register numbers.
4051
7f204339
RO
4052 PR build/25981
4053 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4054 procfs_find_LDT_entry): Remove.
4055 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4056 procfs_find_LDT_entry): Remove.
4057 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4058 Remove.
4059
7f32a4d5
PA
40602020-05-17 Pedro Alves <palves@redhat.com>
4061 Andrew Burgess <andrew.burgess@embecosm.com>
4062 Keno Fischer <keno@juliacomputing.com>
4063
4064 PR gdb/25741
4065 * breakpoint.c (build_target_condition_list): Update comments.
4066 (build_target_command_list): Update comments and skip matching
4067 locations.
4068 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4069 a separate function. Simplify "set breakpoint auto-hw off"
4070 handling.
4071 (insert_breakpoints): Update comment.
4072 (tracepoint_locations_match): New parameter. For breakpoints,
4073 compare location types too, if the caller wants to.
4074 (handle_automatic_hardware_breakpoints): New functions.
4075 (bp_location_is_less_than): Also sort by location type and
4076 hardware breakpoint length.
4077 (update_global_location_list): Handle "set breakpoint auto-hw on"
4078 here.
4079 (update_breakpoint_locations): Ask breakpoint_locations_match to
4080 ignore location types.
4081
7d93a1e0
SM
40822020-05-16 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4085 type::name instead.
4086
d0e39ea2
SM
40872020-05-16 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * gdbtypes.h (struct type) <name, set_name>: New methods.
4090 (TYPE_CODE): Use type::name. Change all call sites used to set
4091 the name to use type::set_name instead.
4092
2dab0c7b
TT
40932020-05-16 Tom Tromey <tom@tromey.com>
4094
4095 * top.c (quit_force): Update.
4096 * infrun.c (handle_no_resumed): Update.
4097 * top.h (all_uis): New function.
4098 (ALL_UIS): Remove.
4099
59f7bd8d
SM
41002020-05-16 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4103
9bf058f0
PA
41042020-05-16 Pedro Alves <palves@redhat.com>
4105
4106 * ia64-linux-nat.c
4107 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4108 Declare method.
4109 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4110
8f86ae1a
SM
41112020-05-15 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4114 (sparc64_adi_info): Likewise.
4115
d6bc0792
TT
41162020-05-15 Tom Tromey <tom@tromey.com>
4117
4118 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4119 block_objfile.
4120 (lookup_objfile_from_block): Remove.
4121 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4122 (lookup_global_symbol): Use block_objfile.
4123 * symtab.h (lookup_objfile_from_block): Don't declare.
4124 * printcmd.c (clear_dangling_display_expressions): Use
4125 block_objfile.
4126 * parse.c (operator_check_standard): Use block_objfile.
4127
8c14c3a3
TT
41282020-05-15 Tom Tromey <tom@tromey.com>
4129
4130 * language.c (language_alloc_type_symbol): Set
4131 SYMBOL_SECTION.
4132 * symtab.c (initialize_objfile_symbol): Remove.
4133 (allocate_symbol): Remove.
4134 (allocate_template_symbol): Remove.
4135 * dwarf2/read.c (fixup_go_packaging): Use "new".
4136 (new_symbol): Use "new".
4137 (read_variable): Don't call initialize_objfile_symbol. Use
4138 "new".
4139 (read_func_scope): Use "new".
4140 * xcoffread.c (process_xcoff_symbol): Don't call
4141 initialize_objfile_symbol.
4142 (SYMBOL_DUP): Remove.
4143 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4144 "new".
4145 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4146 (allocate_template_symbol): Don't declare.
4147 (struct symbol): Add copy constructor. Change defaults.
4148 * jit.c (finalize_symtab): Use "new".
4149 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4150 Use "new".
4151 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4152 (common_block_end): Use "new".
4153 * mdebugread.c (parse_symbol): Use "new".
4154 (new_symbol): Likewise.
4155
5b4a1a8d
PW
41562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4157
4158 * NEWS: Mention changes to help and apropos.
4159
57b4f16e
PW
41602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4161
4162 * command.h (enum command_class): Improve comments, document
4163 that class_alias is for user-defined aliases, give the class
4164 name for each class, remove unused class_xdb.
4165 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4166 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4167 by a precise class.
4168 * infcmd.c (_initialize_infcmd): Likewise.
4169 * reverse.c (_initialize_reverse): Likewise.
4170 * stack.c (_initialize_stack): Likewise.
4171 * symfile.c (_initialize_symfile): Likewise.
4172 * tracepoint.c (_initialize_tracepoint): Likewise.
4173
7c05caf7
PW
41742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4175
4176 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4177 when their aliased command is traversed.
4178 (help_cmd): Add fput_command_names_styled call to
4179 output command name and aliases when command has an alias.
4180
3b3aaacb
PW
41812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4182
4183 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4184 * cli/cli-decode.c (help_cmd_list): Declare as static,
4185 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4186 a command together with the command.
4187 (fput_command_name_styled, fput_command_names_styled): New functions.
4188 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4189 fput_command_name_styled.
4190 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4191 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4192
7aa1b46f
PW
41932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4194
4195 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4196 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4197 * command.h (cmd_show_list): Likewise.
4198 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4199 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4200
89bcba74
PW
42012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4202
4203 * unittests/command-def-selftests.c (traverse_command_structure):
4204 Verify all commands of a list have the same prefix command and
4205 that only the top cmdlist commands have a null prefix.
4206
3f4d92eb
PW
42072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4208
4209 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4210 as prefix, not one of its aliases.
4211 (set_cmd_prefix): Remove.
4212 (do_add_cmd): Centralize the setting of the prefix of a command, when
4213 command is defined after its full chain of prefix commands.
4214 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4215 (add_setshow_cmd_full): Likewise.
4216 (update_prefix_field_of_prefixed_commands): New function.
4217 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4218 update_prefix_field_of_prefixed_commands.
4219 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4220 addresses of remote_set_cmdlist and remote_show_cmdlist given
4221 as argument, not the address of an argument.
4222 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4223 * gdb/remote.c (_initialize_remote): Likewise.
4224
0605465f
PW
42252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4226
4227 * cli/cli-cmds.c (alias_command): Check for an existing alias
4228 using lookup_cmd_composition, as valid_command_p is too strict
4229 and forbids aliases that are the prefix of an existing alias
4230 or command.
4231 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4232 command is properly recognised as a valid command.
4233
58e6ac70
PW
42342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4235
4236 * unittests/help-doc-selftests.c: Rename to
4237 unittests/command-def-selftests.c
4238 * unittests/command-def-selftests.c (help_doc_tests): Update some
4239 comments.
4240 (command_structure_tests, traverse_command_structure): New namespace
4241 and function.
4242 (command_structure_invariants_tests): New function.
4243 (_initialize_command_def_selftests) Renamed from
4244 _initialize_help_doc_selftests, register command_structure_invariants
4245 selftest.
4246
a7b9ceb8
PW
42472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4248
4249 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4250 an alias of 'show'.
4251
b2188a06
JB
42522020-05-15 Joel Brobecker <brobecker@adacore.com>
4253
4254 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4255 ada_is_fixed_point_type. Update all callers.
4256 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4257 all callers.
4258 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4259 Update all callers.
4260 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4261 print_fixed_point_type. Update all callers.
4262 * ada-valprint.c (ada_value_print_num): Replace call to
4263 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4264
a51951c2
KB
42652020-05-14 Kevin Buettner <kevinb@redhat.com>
4266
4267 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4268 processors.
4269 (cpu_supports_bts): Add CV_AMD case.
4270
29d6859f
LM
42712020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4272 Simon Marchi <simon.marchi@efficios.com>
4273
4274 * infrun.c (stop_all_threads): Collect multiple wait events at
4275 each pass.
4276
78134374
SM
42772020-05-14 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4280 type::code instead.
4281
67607e24
SM
42822020-05-14 Simon Marchi <simon.marchi@efficios.com>
4283
4284 * gdbtypes.h (struct type) <code, set_code>: New methods.
4285 (TYPE_CODE): Use type::code. Change all call sites used to set
4286 the code to use type::set_code instead.
4287
a05575d3
TBA
42882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4289 Tom de Vries <tdevries@suse.de>
4290 Pedro Alves <palves@redhat.com>
4291
4292 PR threads/25478
4293 * infrun.c (stop_all_threads): Do NOT ignore
4294 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4295 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4296 received.
4297 (handle_no_resumed): Remove code handling a live inferior with no
4298 threads.
4299 * remote.c (has_single_non_exited_thread): New.
4300 (remote_target::update_thread_list): Do not delete a thread if is
4301 the last thread of the process.
4302 * thread.c (thread_select): Call delete_exited_threads instead of
4303 prune_threads.
4304
6ad82919
TBA
43052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4306
4307 * infrun.c (stop_all_threads): Enable/disable thread events of all
4308 targets. Move a debug message denoting the end of the function
4309 into the SCOPED_EXIT block.
4310
d890404b
TBA
43112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4312
4313 * process-stratum-target.h: Include <set>.
4314 (all_non_exited_process_targets, switch_to_target_no_thread): New
4315 function declarations.
4316 * process-stratum-target.c (all_non_exited_process_targets)
4317 (switch_to_target_no_thread): New function implementations.
4318
293b3ebc
TBA
43192020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4320
4321 * infrun.c (handle_inferior_event): Extract out a piece of code
4322 into...
4323 (mark_non_executing_threads): ...this new function.
4324
7ca9b62a
TBA
43252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4326
4327 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4328 use.
4329
fc75c28b
TBA
43302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4331
4332 * regcache.c (regcache_read_pc_protected): New function
4333 implementation that returns 0 if the PC cannot read via
4334 'regcache_read_pc'.
4335 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4336 instead of 'regcache_read_pc'.
4337 (keep_going_pass_signal): Ditto.
4338
a89febbd
TT
43392020-05-13 Tom Tromey <tromey@adacore.com>
4340
4341 * ada-lang.c (align_value): Remove.
4342 (ada_template_to_fixed_record_type_1): Use align_up.
4343
f7e23710
TBA
43442020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4345
4346 * async-event.c: Update the copyright year.
4347 * async-event.h: Update the copyright year.
4348
02ff80c2
SM
43492020-05-12 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * objfiles.h (is_addr_in_objfile,
4352 shared_objfile_contains_address_p): Return bool.
4353 * objfile.c (is_addr_in_objfile,
4354 shared_objfile_contains_address_p): Return bool.
4355
4fd6c7e8
TT
43562020-05-11 Tom Tromey <tromey@adacore.com>
4357
4358 * cli/cli-cmds.c (info_command): Restore.
4359 (_initialize_cli_cmds): Use add_prefix_command for "info".
4360 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4361
5eb68a39
TT
43622020-05-11 Tom Tromey <tromey@adacore.com>
4363
4364 * ada-lang.c (ada_value_primitive_field): Now public.
4365 * ada-lang.h (ada_value_primitive_field): Declare.
4366 * ada-valprint.c (print_field_values): Use
4367 ada_value_primitive_field for wrapper fields.
4368
7666722f
TV
43692020-05-11 Tom de Vries <tdevries@suse.de>
4370
4371 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4372 MODULE_DOMAIN.
4373
3ee6bb11
TV
43742020-05-11 Tom de Vries <tdevries@suse.de>
4375
4376 PR symtab/25941
4377 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4378 with length 0, if not gdb-produced.
4379 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4380
43434996
TV
43812020-05-09 Tom de Vries <tdevries@suse.de>
4382
4383 PR gdb/25955
4384 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4385 calculation.
4386
2f78cffc
TT
43872020-05-09 Tom Tromey <tom@tromey.com>
4388
4389 * top.c (server_command): Now bool.
4390 * top.h (server_command): Now bool.
4391
4f7bc5ed
TT
43922020-05-08 Tom Tromey <tromey@adacore.com>
4393
4394 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4395 already being processed.
4396
8be4b118
TT
43972020-05-08 Tom Tromey <tom@tromey.com>
4398
4399 * printcmd.c (struct display) <next>: Remove.
4400 <display>: New constructor.
4401 <exp_string>: Now a std::string.
4402 <enabled_p>: Now a bool.
4403 (display_number): Move definition earlier.
4404 (displays): Rename from display_chain. Now a std::vector.
4405 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4406 (display_command): Update.
4407 (do_one_display, disable_display)
4408 (enable_disable_display_command, do_enable_disable_display):
4409 Update.
4410 (free_display): Remove.
4411 (clear_displays): Rewrite.
4412 (delete_display): Update.
4413 (map_display_numbers): Use function_view. Remove "data"
4414 parameter. Update.
4415 (do_delete_display): Remove.
4416 (undisplay_command): Update.
4417 (do_one_display, do_displays, disable_display)
4418 (info_display_command): Update.
4419 (do_enable_disable_display): Remove.
4420 (enable_disable_display_command)
4421 (clear_dangling_display_expressions): Update.
4422
94c93c35
TT
44232020-05-08 Tom Tromey <tom@tromey.com>
4424
4425 * symtab.c (set_symbol_cache_size)
4426 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4427 (maintenance_print_symbol_cache_statistics): Update.
4428 * symmisc.c (print_symbol_bcache_statistics)
4429 (print_objfile_statistics, maintenance_print_objfiles)
4430 (maintenance_info_symtabs, maintenance_check_symtabs)
4431 (maintenance_expand_symtabs, maintenance_info_line_tables):
4432 Update.
4433 * symfile-debug.c (set_debug_symfile): Update.
4434 * source.c (forget_cached_source_info): Update.
4435 * python/python.c (gdbpy_progspaces): Update.
4436 * psymtab.c (maintenance_info_psymtabs): Update.
4437 * probe.c (parse_probes): Update.
4438 * linespec.c (iterate_over_all_matching_symtabs)
4439 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4440 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4441 * exec.c (exec_target::close): Update.
4442 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4443 * breakpoint.c (print_one_breakpoint_location)
4444 (create_longjmp_master_breakpoint)
4445 (create_std_terminate_master_breakpoint): Update.
4446 * progspace.c (program_spaces): Now a std::vector.
4447 (maybe_new_address_space): Update.
4448 (add_program_space): Remove.
4449 (program_space::program_space): Update.
4450 (remove_program_space): Update.
4451 (number_of_program_spaces): Remove.
4452 (print_program_space, update_address_spaces): Update.
4453 * progspace.h (program_spaces): Change type.
4454 (ALL_PSPACES): Remove.
4455 (number_of_program_spaces): Don't declare.
4456 (struct program_space) <next>: Remove.
4457
a1fd1ac9
TT
44582020-05-08 Tom Tromey <tom@tromey.com>
4459
4460 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4461 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4462 (enable_break): Update.
4463 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4464 (frv_fdpic_find_canonical_descriptor): Update.
4465 (frv_fetch_objfile_link_map): Update.
4466 * progspace.c (program_space::free_all_objfiles): Update.
4467 (program_space::solibs): New method.
4468 * progspace.h (struct program_space) <solibs>: New method.
4469 * solist.h (master_so_list): Don't declare.
4470 (ALL_SO_LIBS): Remove.
4471 * solib.h (so_list_head): Remove.
4472 (update_solib_list): Update comment.
4473 * solib.c (master_so_list): Remove.
4474 (solib_used, update_solib_list, solib_add)
4475 (info_sharedlibrary_command, clear_solib)
4476 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4477
38eae084
TT
44782020-05-08 Tom Tromey <tom@tromey.com>
4479
4480 * extension.c (extension_languages): Now a std::array.
4481 (ALL_EXTENSION_LANGUAGES): Remove.
4482 (get_ext_lang_defn, get_ext_lang_of_file)
4483 (eval_ext_lang_from_control_command): Update.
4484 (finish_ext_lang_initialization)
4485 (auto_load_ext_lang_scripts_for_objfile)
4486 (ext_lang_type_printers::ext_lang_type_printers)
4487 (apply_ext_lang_type_printers)
4488 (ext_lang_type_printers::~ext_lang_type_printers)
4489 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4490 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4491 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4492 (get_matching_xmethod_workers, ext_lang_colorize)
4493 (ext_lang_before_prompt): Update.
4494 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4495
596dc4ad
TT
44962020-05-08 Tom Tromey <tom@tromey.com>
4497
4498 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4499 overload.
4500 <swap_string, m_string>: Remove.
4501 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4502 Update.
4503 * stabsread.c (define_symbol, read_type): Update.
4504 * linespec.c (find_linespec_symbols): Update.
4505 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4506 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4507 * dbxread.c (read_dbx_symtab): Update.
4508 * cp-support.h (cp_canonicalize_string_full)
4509 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4510 Return unique_xmalloc_ptr.
4511 * cp-support.c (inspect_type): Update.
4512 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4513 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4514 Likewise.
4515 * c-typeprint.c (print_name_maybe_canonical): Update.
4516 * break-catch-throw.c (check_status_exception_catchpoint):
4517 Update.
4518
bf4cb9be
TV
45192020-05-08 Tom de Vries <tdevries@suse.de>
4520
4521 * infrun.c (follow_fork): Copy current_line and current_symtab to
4522 child thread.
4523
a1b68f28
SM
45242020-05-07 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * async-event.c (struct async_signal_handler, struct
4527 async_event_handler): Reformat, remove typedef.
4528
98d48915
SM
45292020-05-07 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4532 access thistype->main_type->dyn_prop_list directly.
4533
7aa91313
SM
45342020-05-07 Simon Marchi <simon.marchi@efficios.com>
4535
4536 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4537 (remove_dyn_prop): Remove. Update all users to use
4538 type::remove_dyn_prop.
4539 * gdbtypes.c (remove_dyn_prop): Rename to...
4540 (type::remove_dyn_prop): ... this.
4541
5c54719c
SM
45422020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4543
4544 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4545 (add_dyn_prop): Remove. Update all users to use
4546 type::add_dyn_prop.
4547 * gdbtypes.c (add_dyn_prop): Rename to...
4548 (type::add_dyn_prop): ... this.
4549
24e99c6c
SM
45502020-05-07 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4553 (get_dyn_prop): Remove. Update all users to use
4554 type::dyn_prop.
4555 * gdbtypes.c (get_dyn_prop): Rename to...
4556 (type::dyn_prop): ... this.
4557
0d4bf016
SM
45582020-05-06 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4561
ac4a4f1c
SM
45622020-05-06 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4565 instruction, skip it if it's there.
4566
a3bbacc1
SM
45672020-05-05 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4570
c3236f84
SM
45712020-05-04 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4574 * gdbtypes.c (recursive_dump_type): Remove use of
4575 TYPE_INCOMPLETE.
4576
3b6acaee
TT
45772020-05-03 Tom Tromey <tom@tromey.com>
4578
4579 * breakpoint.c (catch_command, tcatch_command): Remove.
4580 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4581 add_show_prefix_cmd.
4582 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4583 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4584 Remove.
4585 (add_internal_problem_command): Use add_basic_prefix_cmd,
4586 add_show_prefix_cmd.
4587 * mips-tdep.c (set_mipsfpu_command): Remove.
4588 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4589 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4590 (_initialize_index_cache): Use add_basic_prefix_cmd.
4591 * memattr.c (dummy_cmd): Remove.
4592 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4593 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4594 (_initialize_tui_win): Use add_basic_prefix_cmd,
4595 add_show_prefix_cmd.
4596 * cli/cli-logging.c (set_logging_command): Remove.
4597 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4598 add_show_prefix_cmd.
4599 (show_logging_command): Remove.
4600 * target.c (target_command): Remove.
4601 (add_target): Use add_basic_prefix_cmd.
4602
a51119cd
HD
46032020-05-02 Hannes Domani <ssbssa@yahoo.de>
4604
4605 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4606
652fc23a 46072020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4608
652fc23a
PW
4609 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4610 info_command.
4611
117539e6
KR
46122020-04-30 Kamil Rytarowski <n54@gmx.com>
4613
4614 * nbsd-nat.c (nbsd_enable_proc_events)
4615 (nbsd_nat_target::post_startup_inferior): Add.
4616 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4617 (nbsd_nat_target::update_thread_list): Rewrite.
4618 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4619 "PTRACE_LWP_CREATE".
4620 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4621
102e38eb 46222020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4623
102e38eb
PW
4624 * stack.c (_initialize_stack): Remove duplicated creation
4625 of "frame" command and "f" alias.
4626
ee9d1e5f
HD
46272020-04-30 Hannes Domani <ssbssa@yahoo.de>
4628
4629 PR gdb/18706
4630 * gdbtypes.c (check_typedef): Calculate size of array of
4631 stubbed type.
4632
627c7fb8
HD
46332020-04-30 Hannes Domani <ssbssa@yahoo.de>
4634
4635 PR gdb/15559
4636 * i386-tdep.c (i386_push_dummy_call): Call
4637 i386_thiscall_push_dummy_call.
4638 (i386_thiscall_push_dummy_call): New function.
4639 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4640 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4641 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4642
ffc2844e
SM
46432020-04-29 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * gdbarch.sh (do_read): Add shellcheck disable directive for
4646 warning SC2162.
4647
1207375d
SM
46482020-04-29 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4651 "referenced but not assigned" warning.
4652
9fdb2916
SM
46532020-04-29 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * gdbarch.sh: Remove code that sets fallbackdefault.
4656
759cea5e
SM
46572020-04-29 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * gdbarch.sh: Use shell operators && and || instead of
4660 -a and -o.
4661
cb02ab24
SM
46622020-04-29 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbarch.sh: Use $(...) instead of `...`.
4665
a6fc5ffc
SM
46662020-04-29 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * gdbarch.sh: Use double quotes around variables.
4669
8d113d13
SM
46702020-04-29 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * gdbarch.sh: Use %s with printf, instead of variables in the
4673 format string.
4674
ed6acedd
TT
46752020-04-29 Tom Tromey <tromey@adacore.com>
4676
4677 PR ada/25875:
4678 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4679 type fields here.
4680 (read_enumeration_type): Call
4681 update_enumeration_type_from_children later. Update comments.
4682 (process_enumeration_scope): Don't create type fields.
4683
b68b1b58
KR
46842020-04-29 Kamil Rytarowski <n54@gmx.com>
4685
4686 * nbsd-tdep.c: Include "xml-syscall.h".
4687 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4688
f94b2e03
KR
46892020-04-29 Kamil Rytarowski <n54@gmx.com>
4690
4691 * nbsd-nat.c: Include "sys/wait.h".
4692 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4693 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4694 (nbsd_nat_target::remove_exec_catchpoint)
4695 (nbsd_nat_target::set_syscall_catchpoint): Add.
4696 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4697 (nbsd_nat_target::insert_exec_catchpoint)
4698 (nbsd_nat_target::remove_exec_catchpoint)
4699 (nbsd_nat_target::set_syscall_catchpoint): Add.
4700 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4701 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4702 `nbsd_get_syscall_number'.
4703
fc49bc72
TT
47042020-04-29 Tom Tromey <tom@tromey.com>
4705
4706 * stack.c (print_block_frame_labels): Remove.
4707
d642b692
HD
47082020-04-29 Hannes Domani <ssbssa@yahoo.de>
4709
4710 PR gdb/17320
4711 * ada-valprint.c (val_print_packed_array_elements): Move array
4712 end bracket to new line.
4713 (ada_val_print_string): Remove extra spaces before first array
4714 element.
4715 * c-valprint.c (c_value_print_array): Likewise.
4716 * m2-valprint.c (m2_print_array_contents): Likewise.
4717 (m2_value_print_inner): Likewise.
4718 * p-valprint.c (pascal_value_print_inner): Likewise.
4719 * valprint.c (generic_val_print_array): Likewise.
4720 (value_print_array_elements): Move first array element and array
4721 end bracket to new line.
4722
ea90f227
TV
47232020-04-29 Tom de Vries <tdevries@suse.de>
4724
4725 PR symtab/25889
4726 * linespec.c (find_method): Fix ix calculation.
4727
4498ef4f
KR
47282020-04-28 Kamil Rytarowski <n54@gmx.com>
4729
4730 * syscalls/update-netbsd.sh: New file.
4731 * syscalls/netbsd.xml: Regenerate.
4732 * data-directory/Makefile.in: Register `netbsd.xml' in
4733 `SYSCALLS_FILES'.
4734
a55e30b5
SM
47352020-04-28 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * syscalls/update-freebsd.sh: Add double quotes.
4738
2b2fbab8
TT
47392020-04-28 Tom Tromey <tom@tromey.com>
4740
4741 * NEWS: Update.
4742 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4743 (cmdpy_init): Allow class_tui.
4744
a65189c9
TV
47452020-04-28 Mark Williams <mark@myosotissp.com>
4746
4747 PR gdb/24480
4748 * dwarf2read.c: Add missing assingments to list_in_scope when
4749 start_symtab was already called.
4750
1b95cdb7
SM
47512020-04-28 Simon Marchi <simon.marchi@efficios.com>
4752
4753 PR gdb/25881
4754 * dwarf2/read.c (offset_map_type): Use
4755 gdb:hash_enum<sect_offset> as hash function.
4756
15cd93d0
TV
47572020-04-28 Tom de Vries <tdevries@suse.de>
4758
4759 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4760 with DW_AT_signature.
4761
1eb39914
SM
47622020-04-27 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * configure.ac: Remove check for fs_base/gs_base in
4765 user_regs_struct.
4766 * configure: Re-generate.
4767 * config.in: Re-generate.
4768 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4769 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4770 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4771
991a3e2e
LM
47722020-04-27 Luis Machado <luis.machado@linaro.org>
4773
4774 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4775 problematic inline frame unwinding situation.
4776 * frame.c (frame_id_computed_p): New function.
4777 * frame.h (frame_id_computed_p): New prototype.
4778
361ba0e8
TT
47792020-04-26 Tom Tromey <tom@tromey.com>
4780
4781 * command.h (enum command_class) <class_pseudo>: Remove.
4782
bc3609fd
PW
47832020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4784
4785 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4786 and whitespace.
4787
b9771db7
KR
47882020-04-25 Kamil Rytarowski <n54@gmx.com>
4789
ec16513e
SM
4790 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4791 `PT_GET_PROCESS_STATE' block.
b9771db7 4792
7151c1af
TT
47932020-04-24 Tom Tromey <tom@tromey.com>
4794
4795 * symtab.h (symbol_get_demangled_name): Don't declare.
4796 * symtab.c (symbol_get_demangled_name): Remove.
4797 (general_symbol_info::natural_name)
4798 (general_symbol_info::demangled_name): Update.
4799
906bb4c5
TT
48002020-04-24 Tom Tromey <tom@tromey.com>
4801
4802 PR rust/25025:
4803 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4804
bcfe6157
TT
48052020-04-24 Tom Tromey <tom@tromey.com>
4806
4807 PR symtab/12707:
4808 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4809 exists.
4810 (new_symbol): Likewise.
4811 * compile/compile-object-load.c (get_out_value_type): Use
4812 symbol_matches_search_name.
4813
f049a313
TT
48142020-04-24 Tom Tromey <tom@tromey.com>
4815
4816 * dwarf2/read.c (add_partial_symbol): Do not call
4817 compute_and_set_names.
4818
76e288d1
TT
48192020-04-24 Tom Tromey <tom@tromey.com>
4820
4821 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4822 overload.
4823
2467f4f6
TT
48242020-04-24 Tom Tromey <tom@tromey.com>
4825
4826 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4827 (add_psymbol_to_list): New overload. Make old overload call new
4828 one.
4829 * psympriv.h (add_psymbol_to_list): New overload.
4830
e61108c9
TT
48312020-04-24 Tom Tromey <tom@tromey.com>
4832
4833 * dwarf2/read.c (partial_die_info::read) <case
4834 DW_AT_linkage_name>: Use value_as_string.
4835 (dwarf2_string_attr): Use value_as_string.
4836 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4837 method.
4838 * dwarf2/attribute.c (attribute::value_as_string): New method.
4839
8c87a452
TT
48402020-04-24 Tom Tromey <tom@tromey.com>
4841
4842 * symtab.c (general_symbol_info::natural_name)
4843 (general_symbol_info::demangled_name): Check for language_rust.
4844
787de330
TT
48452020-04-24 Tom Tromey <tom@tromey.com>
4846
4847 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4848 (dwarf2_physname): ... from here.
4849 (partial_die_info::read): Add Rust "{" hack.
4850
ff985671
TT
48512020-04-24 Tom Tromey <tom@tromey.com>
4852
4853 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4854 method.
4855 (symbol_set_demangled_name): Don't declare.
4856 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4857 symbol_set_demangled_name.
4858 (general_symbol_info::set_language)
4859 (general_symbol_info::compute_and_set_names): Update.
4860 * minsyms.c (minimal_symbol_reader::install): Update.
4861 * dwarf2/read.c (new_symbol): Update.
4862
1acda803
TT
48632020-04-24 Tom Tromey <tromey@adacore.com>
4864
4865 PR python/23662:
4866 * python/py-type.c (convert_field): Handle
4867 FIELD_LOC_KIND_DWARF_BLOCK.
4868 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4869 (typy_get_dynamic): Nw function.
4870 (type_object_getset): Add "dynamic".
4871 * NEWS: Add entry.
4872
d656f129
TT
48732020-04-24 Tom Tromey <tromey@adacore.com>
4874
4875 * ada-typeprint.c (print_choices, print_variant_part)
4876 (print_record_field_types_dynamic): New functions.
4877 (print_record_field_types): Use print_record_field_types_dynamic.
4878
7d79de9a
TT
48792020-04-24 Tom Tromey <tromey@adacore.com>
4880
4881 * dwarf2/read.c (handle_data_member_location): New overload.
4882 (dwarf2_add_field): Use it.
4883 (decode_locdesc): Add "computed" parameter. Update comment.
4884 * gdbtypes.c (is_dynamic_type_internal): Also look for
4885 FIELD_LOC_KIND_DWARF_BLOCK.
4886 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4887 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4888 virtual base classes.
4889 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4890 FIELD_LOC_KIND_DWARF_BLOCK.
4891
f8e89861
TT
48922020-04-24 Tom Tromey <tromey@adacore.com>
4893
4894 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4895 * gdbtypes.c (is_dynamic_type_internal): Check
4896 TYPE_HAS_DYNAMIC_LENGTH.
4897 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4898 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4899 New macros.
4900 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4901 constant.
4902
9c6a1327
TT
49032020-04-24 Tom Tromey <tromey@adacore.com>
4904
4905 * dwarf2/read.c (struct variant_field): Rewrite.
4906 (struct variant_part_builder): New.
4907 (struct nextfield): Remove "variant" field. Add "offset".
4908 (struct field_info): Add "current_variant_part" and
4909 "variant_parts".
4910 (alloc_discriminant_info): Remove.
4911 (alloc_rust_variant): New function.
4912 (quirk_rust_enum): Update.
4913 (dwarf2_add_field): Set "offset" member. Don't handle
4914 DW_TAG_variant_part.
4915 (offset_map_type): New typedef.
4916 (convert_variant_range, create_one_variant)
4917 (create_one_variant_part, create_variant_parts)
4918 (add_variant_property): New functions.
4919 (dwarf2_attach_fields_to_type): Call add_variant_property.
4920 (read_structure_type): Don't handle DW_TAG_variant_part.
4921 (handle_variant_part, handle_variant): New functions.
4922 (handle_struct_member_die): Use them.
4923 (process_structure_scope): Don't handle variant parts.
4924 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4925 (struct discriminant_info): Remove.
4926 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4927 (struct main_type) <flag_discriminated_union>: Remove.
4928 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4929 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4930 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4931 Update.
4932 * valops.c (value_union_variant): Remove.
4933 * value.h (value_union_variant): Don't declare.
4934
b249d2c2
TT
49352020-04-24 Tom Tromey <tromey@adacore.com>
4936
4937 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4938 (ada_value_primitive_packed_val): Update.
4939 * ada-valprint.c (ada_value_print_1): Update.
4940 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4941 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4942 just an address. Use evaluate_for_locexpr_baton.
4943 (dwarf2_evaluate_property): Update.
4944 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4945 array_view.
4946 * findvar.c (default_read_var_value): Update.
4947 * gdbtypes.c (compute_variant_fields_inner)
4948 (resolve_dynamic_type_internal): Update.
4949 (resolve_dynamic_type): Change type of valaddr parameter.
4950 * gdbtypes.h (resolve_dynamic_type): Update.
4951 * valarith.c (value_subscripted_rvalue): Update.
4952 * value.c (value_from_contents_and_address): Update.
4953
61122aa9
TT
49542020-04-24 Tom Tromey <tromey@adacore.com>
4955
4956 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4957 "push_initial_value" parameter.
4958 (dwarf2_evaluate_property): Likewise.
4959 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4960
ef83a141
TT
49612020-04-24 Tom Tromey <tromey@adacore.com>
4962
4963 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4964 (variant::matches, compute_variant_fields_recurse)
4965 (compute_variant_fields_inner, compute_variant_fields): New
4966 functions.
4967 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4968 Use resolved_type after type is made.
4969 (operator==): Add new cases.
4970 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4971 (struct discriminant_range, struct variant, struct variant_part):
4972 New.
4973 (union dynamic_prop_data) <variant_parts, original_type>: New
4974 members.
4975 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4976 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4977 constants.
4978 * value.c (unpack_bits_as_long): Now public.
4979 * value.h (unpack_bits_as_long): Declare.
4980
675127ec
TT
49812020-04-24 Tom Tromey <tromey@adacore.com>
4982
4983 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4984 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4985
9852ceef
HD
49862020-04-24 Hannes Domani <ssbssa@yahoo.de>
4987
4988 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4989
7632c6ce
KR
49902020-04-24 Kamil Rytarowski <n54@gmx.com>
4991
4992 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4993 (remove_fork_catchpoint, post_startup_inferior)
4994 (post_attach): Move...
4995 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4996 (remove_fork_catchpoint, post_startup_inferior)
4997 (post_attach): ...here.
4998 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4999 (remove_fork_catchpoint, post_startup_inferior)
5000 (post_attach): Move...
5001 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5002 (remove_fork_catchpoint, post_startup_inferior)
5003 (post_attach): ...here.
5004
7be2bb4f
TT
50052020-04-24 Tom Tromey <tromey@adacore.com>
5006
5007 * nat/windows-nat.h (struct windows_thread_info)
5008 <pc_adjusted>: New member.
5009 * windows-nat.c (windows_fetch_one_register): Check
5010 pc_adjusted.
5011 (windows_nat_target::get_windows_debug_event)
5012 (windows_nat_target::wait): Set pc_adjusted.
5013
f80cb3b4
TV
50142020-04-24 Tom de Vries <tdevries@suse.de>
5015
5016 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5017 Run gdb-add-index inside temp dir.
5018
29514b87
TT
50192020-04-23 Tom Tromey <tromey@adacore.com>
5020
5021 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5022 in loop.
5023
5939967b
LM
50242020-04-23 Luis Machado <luis.machado@linaro.org>
5025
5026 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5027 get_frame_register instead of gdbarch_unwind_pc.
5028
70bc38f5
TV
50292020-04-23 Tom de Vries <tdevries@suse.de>
5030
5031 * symtab.c (lookup_global_symbol): Prefer def over decl.
5032
de82891c
TV
50332020-04-23 Tom de Vries <tdevries@suse.de>
5034
5035 PR symtab/25807
5036 * block.c (best_symbol, better_symbol): Promote to external.
5037 * block.h (best_symbol, better_symbol): Declare.
5038 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5039 decl.
5040
ecc6c606
TT
50412020-04-23 Tom Tromey <tromey@adacore.com>
5042
5043 PR ada/25837:
5044 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5045 "const char *", not a "const std::string &".
5046 <name_and_matcher::operator==>: Update.
5047 * unittests/lookup_name_info-selftests.c: Change type of
5048 "result".
5049
740480b8
TT
50502020-04-23 Tom Tromey <tom@tromey.com>
5051
5052 * inferior.h (iterate_over_inferiors): Don't declare.
5053 * inferior.c (iterate_over_inferiors): Remove.
5054 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5055 Remove.
5056 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5057 use iterate_over_inferiors.
5058 (darwin_resume_inferior_it)
5059 (struct resume_inferior_threads_param)
5060 (darwin_resume_inferior_threads_it): Remove.
5061 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5062
ae3ab1f0
TV
50632020-04-23 Tom de Vries <tdevries@suse.de>
5064
5065 * blockframe.c (find_pc_partial_function): Use
5066 find_pc_sect_compunit_symtab rather than
5067 objfile->sf->qf->find_pc_sect_compunit_symtab.
5068
317d2668
TV
50692020-04-22 Tom de Vries <tdevries@suse.de>
5070
5071 PR symtab/25764
5072 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5073 in psymtabs.
5074
eea9e357
TV
50752020-04-22 Tom de Vries <tdevries@suse.de>
5076
5077 PR symtab/25801
5078 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5079 symtabs.
5080
3d5afab3
TV
50812020-04-22 Tom de Vries <tdevries@suse.de>
5082
5083 PR symtab/25700
5084 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5085 CU if already created.
5086
d43b7a2d
TBA
50872020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5088
5089 * infrun.c (displaced_step_fixup): Switch to the event_thread
5090 before calling displaced_step_restore, not after.
5091
d89edf9b
MM
50922020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5093
5094 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5095 its inferior is not recorded by us.
5096 (record_btrace_target_open): Replace call to
5097 all_non_exited_threads () with call to current_inferior
5098 ()->non_exited_threads ().
5099 (record_btrace_target::stop_recording): Likewise.
5100 (record_btrace_target::close): Likewise.
5101 (record_btrace_target::wait): Likewise.
5102 (record_btrace_target::record_stop_replaying): Likewise.
5103
5897fd49
MM
51042020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5105
5106 * btrace.c (btrace_enable): Throw an error on double enables and
5107 when enabling recording fails.
5108 (btrace_disable): Throw an error if the thread is not recorded.
5109
1a476b6d
MM
51102020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5111
5112 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5113 request if we do not have a thread_info.
5114
4778a5f8
TV
51152020-04-21 Tom de Vries <tdevries@suse.de>
5116
5117 PR gdb/25471
5118 * thread.c
5119 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5120 exception in get_frame_id.
5121
0fa7617d
TT
51222020-04-20 Tom Tromey <tromey@adacore.com>
5123
5124 * python/python.c (struct gdbpy_event): Mark move constructor as
5125 noexcept.
5126 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5127 constructor as noexcept.
5128 * completer.h (struct completion_result): Mark move constructor as
5129 noexcept.
5130 * completer.c (completion_result::completion_result): Use
5131 initialization style. Don't call reset_match_list.
5132
ad23bda0
MS
51332020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5134
5135 * MAINTAINERS (Write After Approval): Add myself.
5136
45e1f031
TT
51372020-04-18 Tom Tromey <tom@tromey.com>
5138
5139 * windows-tdep.c (init_w32_command_list)
5140 (w32_prefix_command_valid): Restore.
5141 (_initialize_windows_tdep): Call init_w32_command_list.
5142
08feed99
TT
51432020-04-18 Tom Tromey <tom@tromey.com>
5144
5145 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5146 * value.c (value_fn_field): Update.
5147 * valops.c (find_function_in_inferior)
5148 (value_allocate_space_in_inferior): Update.
5149 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5150 Update.
5151 * tui/tui-source.c (tui_source_window::set_contents): Update.
5152 * symtab.c (lookup_global_or_static_symbol)
5153 (find_function_start_sal_1, skip_prologue_sal)
5154 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5155 * symmisc.c (dump_msymbols, dump_symtab_1)
5156 (maintenance_print_one_line_table): Update.
5157 * symfile.c (init_entry_point_info, section_is_mapped)
5158 (list_overlays_command, simple_read_overlay_table)
5159 (simple_overlay_update_1): Update.
5160 * stap-probe.c (handle_stap_probe): Update.
5161 * stabsread.c (dbx_init_float_type, define_symbol)
5162 (read_one_struct_field, read_enum_type, read_range_type): Update.
5163 * source.c (info_line_command): Update.
5164 * python/python.c (gdbpy_source_objfile_script)
5165 (gdbpy_execute_objfile_script): Update.
5166 * python/py-type.c (save_objfile_types): Update.
5167 * python/py-objfile.c (py_free_objfile): Update.
5168 * python/py-inferior.c (python_new_objfile): Update.
5169 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5170 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5171 (maintenance_check_psymtabs): Update.
5172 * printcmd.c (info_address_command): Update.
5173 * objfiles.h (struct objfile) <arch>: New method, from
5174 get_objfile_arch.
5175 (get_objfile_arch): Don't declare.
5176 * objfiles.c (get_objfile_arch): Remove.
5177 (filter_overlapping_sections): Update.
5178 * minsyms.c (msymbol_is_function): Update.
5179 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5180 (output_nondebug_symbol): Update.
5181 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5182 (mdebug_expand_psymtab): Update.
5183 * machoread.c (macho_add_oso_symfile): Update.
5184 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5185 Update.
5186 * linux-fork.c (checkpoint_command): Update.
5187 * linespec.c (convert_linespec_to_sals): Update.
5188 * jit.c (finalize_symtab): Update.
5189 * infrun.c (insert_exception_resume_from_probe): Update.
5190 * ia64-tdep.c (ia64_find_unwind_table): Update.
5191 * hppa-tdep.c (internalize_unwinds): Update.
5192 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5193 Update.
5194 * gcore.c (call_target_sbrk): Update.
5195 * elfread.c (record_minimal_symbol, elf_symtab_read)
5196 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5197 (elf_gnu_ifunc_resolve_by_got): Update.
5198 * dwarf2/read.c (create_addrmap_from_index)
5199 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5200 (read_debug_names_from_section)
5201 (process_psymtab_comp_unit_reader, add_partial_symbol)
5202 (add_partial_subprogram, process_full_comp_unit)
5203 (read_file_scope, read_func_scope, read_lexical_block_scope)
5204 (read_call_site_scope, dwarf2_ranges_read)
5205 (dwarf2_record_block_ranges, dwarf2_add_field)
5206 (mark_common_block_symbol_computed, read_tag_pointer_type)
5207 (read_tag_string_type, dwarf2_init_float_type)
5208 (dwarf2_init_complex_target_type, read_base_type)
5209 (partial_die_info::read, partial_die_info::read)
5210 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5211 (dwarf2_fetch_die_loc_sect_off): Update.
5212 * dwarf2/loc.c (dwarf2_find_location_expression)
5213 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5214 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5215 (dwarf2_loc_desc_get_symbol_read_needs)
5216 (locexpr_describe_location_piece, locexpr_describe_location_1)
5217 (loclist_describe_location): Update.
5218 * dwarf2/index-write.c (write_debug_names): Update.
5219 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5220 * dtrace-probe.c (dtrace_process_dof): Update.
5221 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5222 (process_one_symbol): Update.
5223 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5224 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5225 (coff_read_enum_type): Update.
5226 * cli/cli-cmds.c (edit_command, list_command): Update.
5227 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5228 * breakpoint.c (create_overlay_event_breakpoint)
5229 (create_longjmp_master_breakpoint)
5230 (create_std_terminate_master_breakpoint)
5231 (create_exception_master_breakpoint, get_sal_arch): Update.
5232 * block.c (block_gdbarch): Update.
5233 * annotate.c (annotate_source_line): Update.
5234
0743fc83
TT
52352020-04-17 Tom Tromey <tromey@adacore.com>
5236
5237 * auto-load.c (show_auto_load_cmd): Remove.
5238 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5239 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5240 (maintenance_print_arc_command): Remove.
5241 * tui/tui-win.c (tui_command): Remove.
5242 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5243 * tui/tui-layout.c (tui_layout_command): Remove.
5244 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5245 * python/python.c (user_set_python, user_show_python): Remove.
5246 (_initialize_python): Use add_basic_prefix_cmd,
5247 add_show_prefix_cmd.
5248 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5249 (install_gdb_commands): Use add_basic_prefix_cmd,
5250 add_show_prefix_cmd.
5251 (info_guile_command): Remove.
5252 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5253 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5254 add_show_prefix_cmd.
5255 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5256 Remove do_set and do_show parameters.
5257 * cli/cli-style.c (set_style, show_style): Remove.
5258 (_initialize_cli_style): Use add_basic_prefix_cmd,
5259 add_show_prefix_cmd.
5260 (cli_style_option::add_setshow_commands): Remove do_set and
5261 do_show parameters.
5262 (cli_style_option::add_setshow_commands): Use
5263 add_basic_prefix_cmd, add_show_prefix_cmd.
5264 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5265 (set_style_name): Remove.
5266 * cli/cli-dump.c (dump_command, append_command): Remove.
5267 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5268 (tekhex_dump_command, binary_dump_command)
5269 (binary_append_command): Remove.
5270 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5271 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5272 (init_w32_command_list): Remove; move into ...
5273 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5274 * valprint.c (set_print, show_print, set_print_raw)
5275 (show_print_raw): Remove.
5276 (_initialize_valprint): Use add_basic_prefix_cmd,
5277 add_show_prefix_cmd.
5278 * typeprint.c (set_print_type, show_print_type): Remove.
5279 (_initialize_typeprint): Use add_basic_prefix_cmd,
5280 add_show_prefix_cmd.
5281 * record.c (set_record_command, show_record_command): Remove.
5282 (_initialize_record): Use add_basic_prefix_cmd,
5283 add_show_prefix_cmd.
5284 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5285 add_show_prefix_cmd.
5286 (info_command, show_command, set_debug, show_debug): Remove.
5287 * top.h (set_history, show_history): Don't declare.
5288 * top.c (set_history, show_history): Remove.
5289 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5290 (unset_tdesc_cmd): Remove.
5291 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5292 add_show_prefix_cmd.
5293 * symtab.c (info_module_command): Remove.
5294 (_initialize_symtab): Use add_basic_prefix_cmd.
5295 * symfile.c (overlay_command): Remove.
5296 (_initialize_symfile): Use add_basic_prefix_cmd.
5297 * sparc64-tdep.c (info_adi_command): Remove.
5298 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5299 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5300 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5301 add_show_prefix_cmd.
5302 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5303 (_initialize_serial): Use add_basic_prefix_cmd,
5304 add_show_prefix_cmd.
5305 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5306 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5307 add_show_prefix_cmd.
5308 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5309 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5310 add_show_prefix_cmd.
5311 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5312 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5313 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5314 add_show_prefix_cmd.
5315 * remote.c (remote_command, set_remote_cmd): Remove.
5316 (_initialize_remote): Use add_basic_prefix_cmd.
5317 * record-full.c (set_record_full_command)
5318 (show_record_full_command): Remove.
5319 (_initialize_record_full): Use add_basic_prefix_cmd,
5320 add_show_prefix_cmd.
5321 * record-btrace.c (cmd_set_record_btrace)
5322 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5323 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5324 (cmd_show_record_btrace_pt): Remove.
5325 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5326 add_show_prefix_cmd.
5327 * ravenscar-thread.c (set_ravenscar_command)
5328 (show_ravenscar_command): Remove.
5329 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5330 add_show_prefix_cmd.
5331 * mips-tdep.c (show_mips_command, set_mips_command)
5332 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5333 add_show_prefix_cmd.
5334 * maint.c (maintenance_command, maintenance_info_command)
5335 (maintenance_check_command, maintenance_print_command)
5336 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5337 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5338 add_show_prefix_cmd.
5339 (show_per_command_cmd): Remove.
5340 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5341 Remove.
5342 (maintenance_show_test_settings_cmd): Remove.
5343 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5344 add_show_prefix_cmd.
5345 * maint-test-options.c (maintenance_test_options_command):
5346 Remove.
5347 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5348 * macrocmd.c (macro_command): Remove
5349 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5350 * language.c (set_check, show_check): Remove.
5351 (_initialize_language): Use add_basic_prefix_cmd,
5352 add_show_prefix_cmd.
5353 * infcmd.c (unset_command): Remove.
5354 (_initialize_infcmd): Use add_basic_prefix_cmd.
5355 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5356 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5357 add_show_prefix_cmd.
5358 * go32-nat.c (go32_info_dos_command): Remove.
5359 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5360 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5361 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5362 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5363 (_initialize_frame): Use add_basic_prefix_cmd,
5364 add_show_prefix_cmd.
5365 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5366 (_initialize_dcache): Use add_basic_prefix_cmd,
5367 add_show_prefix_cmd.
5368 * cp-support.c (maint_cplus_command): Remove.
5369 (_initialize_cp_support): Use add_basic_prefix_cmd.
5370 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5371 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5372 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5373 add_basic_prefix_cmd, add_show_prefix_cmd.
5374 * breakpoint.c (save_command): Remove.
5375 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5376 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5377 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5378 add_show_prefix_cmd.
5379 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5380 (set_ada_command, show_ada_command): Remove.
5381 (_initialize_ada_language): Use add_basic_prefix_cmd,
5382 add_show_prefix_cmd.
5383 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5384
3557f442
KR
53852020-04-16 Kamil Rytarowski <n54@gmx.com>
5386
5387 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5388 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5389
16197208
SM
53902020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5391
5392 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5393 warning messages.
5394
00ac85d3
SM
53952020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5396
5397 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5398 import table is not at beginning of .idata section.
5399
381ce63f
PA
54002020-04-16 Pedro Alves <palves@redhat.com>
5401
5402 * inferior.c (delete_inferior): Use delete operator directly
5403 instead of delete_program_space.
5404 * progspace.c (add_program_space): New, factored out from
5405 program_space::program_space.
5406 (remove_program_space): New, factored out from
5407 delete_program_space.
5408 (program_space::program_space): Remove intro comment. Rewrite.
5409 (program_space::~program_space): Remove intro comment. Call
5410 remove_program_space.
5411 (delete_program_space): Delete.
5412 * progspace.h (program_space::program_space): Make explicit. Move
5413 intro comment here, adjusted.
5414 (program_space::~program_space): Move intro comment here,
5415 adjusted.
5416 (delete_program_space): Remove.
5417
a010605f
TT
54182020-04-16 Tom Tromey <tromey@adacore.com>
5419
5420 * windows-nat.c (windows_nat::handle_access_violation): New
5421 function.
5422 * nat/windows-nat.h (handle_access_violation): Declare.
5423 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5424 windows-nat.c. Call handle_access_violation.
5425
efba5c23
TV
54262020-04-16 Tom de Vries <tdevries@suse.de>
5427
5428 PR symtab/25791
5429 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5430 CUs without psymtab.
5431
97ed802d
KB
54322020-04-16 Kevin Buettner <kevinb@redhat.com>
5433
5434 * python/python.c (do_start_initialization): Don't call
5435 PyEval_InitThreads for Python 3.9 and beyond.
5436
c7d64809
KR
54372020-04-15 Kamil Rytarowski <n54@gmx.com>
5438
5439 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5440 thread functions.
5441 (obsd_nat_target::wait): Likewise.
5442
ce127a96
TT
54432020-04-15 Tom Tromey <tromey@adacore.com>
5444
5445 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5446 (DEBUG_EXCEPT): Use debug_printf.
5447
99f1bc6a
AB
54482020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5449
5450 * completer.c (class completion_tracker::completion_hash_entry)
5451 <hash_name>: New member function.
5452 (completion_tracker::discard_completions): New callback to hash a
5453 completion_hash_entry, pass this to htab_create_alloc.
5454
a0e9b532
JT
54552016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5456
5457 * windows-nat.c (windows_make_so): Warn rather than stopping with
5458 an error if realpath() fails.
5459
06ca5dd4
KR
54602020-04-14 Kamil Rytarowski <n54@gmx.com>
5461
5462 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5463 (nbsd_nat_target::info_proc): Add do_status.
5464
194d088f
TV
54652020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5466 Tom de Vries <tdevries@suse.de>
5467
5468 PR symtab/25718
5469 * psympriv.h (struct partial_symtab::read_symtab)
5470 (struct partial_symtab::expand_psymtab)
5471 (struct partial_symtab::read_dependencies): Update comments.
5472 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5473 read_symtab for includer.
5474 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5475 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5476 (struct dwarf2_include_psymtab::m_readin): Remove.
5477 (struct dwarf2_include_psymtab::includer): New member function.
5478 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5479
c1a66c06
TV
54802020-04-14 Tom de Vries <tdevries@suse.de>
5481
5482 PR symtab/25720
5483 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5484 with NULL symbol_matcher and lookup_name.
5485 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5486 and lookup_name.
5487 * dwarf2/read.c (dw2_expand_symtabs_matching)
5488 (dw2_debug_names_expand_symtabs_matching): Same.
5489 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5490 Make lookup_name a pointer. Update comment.
5491 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5492 lookup_name being a pointer.
5493 * symfile.c (expand_symtabs_matching): Same.
5494 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5495 * linespec.c (iterate_over_all_matching_symtabs): Same.
5496
400b5eca
TT
54972020-04-13 Tom Tromey <tom@tromey.com>
5498
5499 * run-on-main-thread.c: Update include.
5500 * unittests/main-thread-selftests.c: Update include.
5501 * tui/tui-win.c: Update include.
5502 * tui/tui-io.c: Update include.
5503 * tui/tui-interp.c: Update include.
5504 * tui/tui-hooks.c: Update include.
5505 * top.h: Update include.
5506 * top.c: Update include.
5507 * ser-base.c: Update include.
5508 * remote.c: Update include.
5509 * remote-notif.c: Update include.
5510 * remote-fileio.c: Update include.
5511 * record-full.c: Update include.
5512 * record-btrace.c: Update include.
5513 * python/python.c: Update include.
5514 * posix-hdep.c: Update include.
5515 * mingw-hdep.c: Update include.
5516 * mi/mi-main.c: Update include.
5517 * mi/mi-interp.c: Update include.
5518 * main.c: Update include.
5519 * linux-nat.c: Update include.
5520 * interps.c: Update include.
5521 * infrun.c: Update include.
5522 * inf-loop.c: Update include.
5523 * event-top.c: Update include.
5524 * event-loop.c: Move to ../gdbsupport/.
5525 * event-loop.h: Move to ../gdbsupport/.
5526 * async-event.h: Update include.
5527 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5528
93b54c8e
TT
55292020-04-13 Tom Tromey <tom@tromey.com>
5530
5531 * tui/tui-win.c: Include async-event.h.
5532 * remote.c: Include async-event.h.
5533 * remote-notif.c: Include async-event.h.
5534 * record-full.c: Include async-event.h.
5535 * record-btrace.c: Include async-event.h.
5536 * infrun.c: Include async-event.h.
5537 * event-top.c: Include async-event.h.
5538 * event-loop.h: Move some declarations to async-event.h.
5539 * event-loop.c: Don't include ser-event.h or top.h. Move some
5540 code to async-event.c.
5541 * async-event.h: New file.
5542 * async-event.c: New file.
5543 * Makefile.in (COMMON_SFILES): Add async-event.c.
5544 (HFILES_NO_SRCDIR): Add async-event.h.
5545
c1cd3163
TT
55462020-04-13 Tom Tromey <tom@tromey.com>
5547
5548 * utils.c (flush_streams): New function.
5549 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5550
29f2bf4f
TT
55512020-04-13 Tom Tromey <tom@tromey.com>
5552
5553 * event-loop.c (handle_file_event): Use warning, not
5554 printf_unfiltered.
5555
98029d02
TT
55562020-04-13 Tom Tromey <tom@tromey.com>
5557
5558 * event-loop.c: Include <chrono>.
5559
06cc9596
TT
55602020-04-13 Tom Tromey <tom@tromey.com>
5561
5562 * gdb_select.h: Move to ../gdbsupport/.
5563 * event-loop.c: Update include path.
5564 * top.c: Update include path.
5565 * ser-base.c: Update include path.
5566 * ui-file.c: Update include path.
5567 * ser-tcp.c: Update include path.
5568 * guile/scm-ports.c: Update include path.
5569 * posix-hdep.c: Update include path.
5570 * ser-unix.c: Update include path.
5571 * gdb_usleep.c: Update include path.
5572 * mingw-hdep.c: Update include path.
5573 * inflow.c: Update include path.
5574 * infrun.c: Update include path.
5575 * event-top.c: Update include path.
5576
8ae8e197
TT
55772020-04-13 Tom Tromey <tom@tromey.com>
5578
5579 * configure: Rebuild.
5580 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5581
58cf28e8
TT
55822020-04-13 Tom Tromey <tom@tromey.com>
5583
5584 * event-loop.h (start_event_loop): Don't declare.
5585 * event-loop.c (start_event_loop): Move...
5586 * main.c (start_event_loop): ...here. Now static.
5587
b7f999ae
SDJ
55882020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5589
5590 * MAINTAINERS: Update my email address.
5591
1085dfd4
KR
55922020-04-12 Kamil Rytarowski <n54@gmx.com>
5593
5594 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5595 IP_ALL.
5596
49d1d1f5
KR
55972020-04-12 Kamil Rytarowski <n54@gmx.com>
5598
5599 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5600 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5601
b4848d2a
KR
56022020-04-12 Kamil Rytarowski <n54@gmx.com>
5603
5604 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5605 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5606
51c133d5
KR
56072020-04-12 Kamil Rytarowski <n54@gmx.com>
5608
5609 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5610
54b8cbd0
KR
56112020-04-11 Kamil Rytarowski <n54@gmx.com>
5612
5613 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5614 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5615 (nbsd_nat_target::info_proc): New functions.
5616 * nbsd-nat.c (kinfo_get_vmmap): New function.
5617 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5618 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5619 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5620 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5621 functions.
5622 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5623 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5624 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5625 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5626 (KINFO_VME_FLAG_GROWS_DOWN): New.
5627
cf83625d
AS
56282020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5629
5630 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5631 bit shift.
5632
0c4311ab
TT
56332020-04-10 Tom Tromey <tromey@adacore.com>
5634
5635 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5636
3e65b3e9
TT
56372020-04-10 Tom Tromey <tromey@adacore.com>
5638
5639 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5640 separate debug files.
5641
13302e95
HD
56422020-04-10 Hannes Domani <ssbssa@yahoo.de>
5643
5644 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5645 Move to...
5646 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5647 ... here.
5648 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5649 Check for STATUS_WX86_BREAKPOINT.
5650 (windows_nat_target::wait): Same.
5651
bdfc1e8a
TV
56522020-04-10 Tom de Vries <tdevries@suse.de>
5653
5654 PR cli/25808
5655 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5656
f4460aec
SM
56572020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5658
5659 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5660 (Write After Approval): Remove Tom de Vries.
5661
a25198bb
BE
56622020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5663
5664 revert partially:
5665 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5666
aac66a4c
SM
5667 * buildsym.c (record_line): Fix undefined behavior and preserve
5668 lines at eof.
a25198bb 5669
206c98a6
KR
56702020-04-09 Kamil Rytarowski <n54@gmx.com>
5671
5672 * auxv.h (svr4_auxv_parse): New.
5673 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5674 and generic_auxv_parse.
5675 (svr4_auxv_parse): Add.
5676 * obsd-tdep.c: Include "auxv.h".
5677 (obsd_auxv_parse): Remove.
5678 (obsd_init_abi): Remove comment.
5679 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5680 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5681 * nbsd-tdep.c: Include "auxv.h".
5682 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5683
71fbdbaf
TT
56842020-04-08 Tom Tromey <tromey@adacore.com>
5685
5686 * nat/windows-nat.h (last_wait_event): Don't declare.
5687 (wait_for_debug_event): Update comment.
5688 * nat/windows-nat.c (last_wait_event): Now static.
5689
2c1d95e8
TT
56902020-04-08 Tom Tromey <tromey@adacore.com>
5691
5692 * windows-nat.c (wait_for_debug_event): Move to
5693 nat/windows-nat.c.
5694 * nat/windows-nat.h (wait_for_debug_event): Declare.
5695 * nat/windows-nat.c (wait_for_debug_event): Move from
5696 windows-nat.c. No longer static.
5697
d2977bc4
TT
56982020-04-08 Tom Tromey <tromey@adacore.com>
5699
5700 * windows-nat.c (get_windows_debug_event): Use
5701 fetch_pending_stop.
5702 * nat/windows-nat.h (fetch_pending_stop): Declare.
5703 * nat/windows-nat.c (fetch_pending_stop): New function.
5704
e758e19c
TT
57052020-04-08 Tom Tromey <tromey@adacore.com>
5706
5707 * windows-nat.c (windows_continue): Use matching_pending_stop and
5708 continue_last_debug_event.
5709 * nat/windows-nat.h (matching_pending_stop)
5710 (continue_last_debug_event): Declare.
5711 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5712 (matching_pending_stop, continue_last_debug_event): New
5713 functions.
5714
8d30e395
TT
57152020-04-08 Tom Tromey <tromey@adacore.com>
5716
5717 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5718 (handle_exception_result): Move to nat/windows-nat.h.
5719 (DEBUG_EXCEPTION_SIMPLE): Remove.
5720 (windows_nat::handle_ms_vc_exception): New function.
5721 (handle_exception): Move to nat/windows-nat.c.
5722 (get_windows_debug_event): Update.
5723 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5724 nat/windows-nat.c.
5725 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5726 (handle_exception_result): Move from windows-nat.c.
5727 (handle_exception): Declare.
5728 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5729 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5730 windows-nat.c.
5731
29de418d
TT
57322020-04-08 Tom Tromey <tromey@adacore.com>
5733
5734 * windows-nat.c (exception_count, event_count): Remove.
5735 (handle_exception, get_windows_debug_event)
5736 (do_initial_windows_stuff): Update.
5737
a816ba18
TT
57382020-04-08 Tom Tromey <tromey@adacore.com>
5739
5740 * windows-nat.c (windows_nat::handle_load_dll)
5741 (windows_nat::handle_unload_dll): Rename. No longer static.
5742 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5743 Declare.
5744
a00caa12
TT
57452020-04-08 Tom Tromey <tromey@adacore.com>
5746
5747 * complaints.h (stop_whining): Declare at top-level.
5748 (complaint): Don't declare stop_whining.
5749
d41b524f
TT
57502020-04-08 Tom Tromey <tromey@adacore.com>
5751
5752 * windows-nat.c (windows_nat::handle_output_debug_string):
5753 Rename. No longer static.
5754 * nat/windows-nat.h (handle_output_debug_string): Declare.
5755
3c76026d
TT
57562020-04-08 Tom Tromey <tromey@adacore.com>
5757
5758 * windows-nat.c (current_process_handle, current_process_id)
5759 (main_thread_id, last_sig, current_event, last_wait_event)
5760 (current_windows_thread, desired_stop_thread_id, pending_stops)
5761 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5762 (display_selectors, fake_create_process)
5763 (get_windows_debug_event): Update.
5764 * nat/windows-nat.h (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 from windows-nat.c.
5768 * nat/windows-nat.c (current_process_handle, current_process_id)
5769 (main_thread_id, last_sig, current_event, last_wait_event)
5770 (current_windows_thread, desired_stop_thread_id, pending_stops)
5771 (siginfo_er): New globals. Move from windows-nat.c.
5772
9d8679cc
TT
57732020-04-08 Tom Tromey <tromey@adacore.com>
5774
5775 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5776 (handle_load_dll): Update.
5777 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5778
28688adf
TT
57792020-04-08 Tom Tromey <tromey@adacore.com>
5780
5781 * windows-nat.c (enum thread_disposition_type): Move to
5782 nat/windows-nat.h.
5783 (windows_nat::thread_rec): Rename from thread_rec. No longer
5784 static.
5785 (windows_add_thread, windows_nat_target::fetch_registers)
5786 (windows_nat_target::store_registers, handle_exception)
5787 (windows_nat_target::resume, get_windows_debug_event)
5788 (windows_nat_target::get_tib_address)
5789 (windows_nat_target::thread_name)
5790 (windows_nat_target::thread_alive): Update.
5791 * nat/windows-nat.h (enum thread_disposition_type): Move from
5792 windows-nat.c.
5793 (thread_rec): Declare.
5794
4834dad0
TT
57952020-04-08 Tom Tromey <tromey@adacore.com>
5796
5797 * windows-nat.c: Add "using namespace".
5798 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5799 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5800
65bafd5b
TT
58012020-04-08 Tom Tromey <tromey@adacore.com>
5802
5803 * nat/windows-nat.h (struct windows_thread_info): Declare
5804 destructor.
5805 * nat/windows-nat.c (~windows_thread_info): New.
5806
0a4afda3
TT
58072020-04-08 Tom Tromey <tromey@adacore.com>
5808
5809 PR gdb/22992
5810 * windows-nat.c (current_event): Update comment.
5811 (last_wait_event, desired_stop_thread_id): New globals.
5812 (struct pending_stop): New.
5813 (pending_stops): New global.
5814 (windows_nat_target) <stopped_by_sw_breakpoint>
5815 <supports_stopped_by_sw_breakpoint>: New methods.
5816 (windows_fetch_one_register): Add assertions. Adjust PC.
5817 (windows_continue): Handle pending stops. Suspend other threads
5818 when stepping. Use last_wait_event
5819 (wait_for_debug_event): New function.
5820 (get_windows_debug_event): Use wait_for_debug_event. Handle
5821 pending stops. Queue spurious stops.
5822 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5823 (windows_nat_target::kill): Use wait_for_debug_event.
5824 * nat/windows-nat.h (struct windows_thread_info)
5825 <stopped_at_software_breakpoint>: New field.
5826 * nat/windows-nat.c (windows_thread_info::resume): Clear
5827 stopped_at_software_breakpoint.
5828
8e61ebec
TT
58292020-04-08 Tom Tromey <tromey@adacore.com>
5830
5831 * windows-nat.c (enum thread_disposition_type): New.
5832 (thread_rec): Replace "get_context" parameter with "disposition";
5833 change type.
5834 (windows_add_thread, windows_nat_target::fetch_registers)
5835 (windows_nat_target::store_registers, handle_exception)
5836 (windows_nat_target::resume, get_windows_debug_event)
5837 (windows_nat_target::get_tib_address)
5838 (windows_nat_target::thread_name)
5839 (windows_nat_target::thread_alive): Update.
5840
98a03287
TT
58412020-04-08 Tom Tromey <tromey@adacore.com>
5842
5843 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5844 (windows_continue): Use windows_continue::resume.
5845 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5846 resume>: Declare new methods.
5847 * nat/windows-nat.c: New file.
5848 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5849
7c7411bc
TT
58502020-04-08 Tom Tromey <tromey@adacore.com>
5851
5852 * windows-nat.c (windows_add_thread, windows_delete_thread)
5853 (windows_nat_target::fetch_registers)
5854 (windows_nat_target::store_registers, fake_create_process)
5855 (windows_nat_target::resume, windows_nat_target::resume)
5856 (get_windows_debug_event, windows_nat_target::wait)
5857 (windows_nat_target::pid_to_str)
5858 (windows_nat_target::get_tib_address)
5859 (windows_nat_target::get_ada_task_ptid)
5860 (windows_nat_target::thread_name)
5861 (windows_nat_target::thread_alive): Use lwp, not tid.
5862
2950fdf7
TT
58632020-04-08 Tom Tromey <tromey@adacore.com>
5864
5865 * windows-nat.c (handle_exception)
5866 (windows_nat_target::thread_name): Update.
5867 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5868 <name>: Now unique_xmalloc_ptr.
5869
62fe396b
TT
58702020-04-08 Tom Tromey <tromey@adacore.com>
5871
5872 * windows-nat.c (thread_rec)
5873 (windows_nat_target::fetch_registers): Update.
5874 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5875 Update comment.
5876 <debug_registers_changed, reload_context>: Now bool.
5877
e9534bd2
TT
58782020-04-08 Tom Tromey <tromey@adacore.com>
5879
5880 * windows-nat.c (windows_add_thread): Use new.
5881 (windows_init_thread_list, windows_delete_thread): Use delete.
5882 (get_windows_debug_event): Update.
5883 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5884 destructor, and initializers.
5885
ae1f8880
TT
58862020-04-08 Tom Tromey <tromey@adacore.com>
5887
5888 * windows-nat.c (struct windows_thread_info): Remove.
5889 * nat/windows-nat.h: New file.
5890
55a1e039
TT
58912020-04-08 Tom Tromey <tromey@adacore.com>
5892
5893 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5894 (thread_rec, windows_add_thread, windows_delete_thread)
5895 (windows_continue): Update.
5896
93366324
TT
58972020-04-08 Tom Tromey <tromey@adacore.com>
5898
5899 * windows-nat.c (struct windows_thread_info): Remove typedef.
5900 (thread_head): Remove.
5901 (thread_list): New global.
5902 (thread_rec, windows_add_thread, windows_init_thread_list)
5903 (windows_delete_thread, windows_continue): Update.
5904
0f2265e2
SM
59052020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5906
5907 * windows-tdep.h (windows_init_abi): Add comment.
5908 (cygwin_init_abi): New declaration.
5909 * windows-tdep.c: Split signal enumeration in two, one for
5910 Windows and one for Cygwin.
5911 (windows_gdb_signal_to_target): Only deal with signal of the
5912 Windows OS ABI.
5913 (cygwin_gdb_signal_to_target): New function.
5914 (windows_init_abi): Rename to windows_init_abi_common, don't set
5915 gdb_signal_to_target gdbarch method. Add new new function with
5916 this name.
5917 (cygwin_init_abi): New function.
5918 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5919 comment. Don't call windows_init_abi.
5920 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5921 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5922 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5923 i386_windows_init_abi_common, don't call windows_init_abi. Add
5924 a new function of this name.
5925 (i386_cygwin_init_abi): New function.
5926 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5927 OS ABI Cygwin.
5928
3810f182
SM
59292020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5930
5931 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5932 parameter.c.
5933 (dwarf2_read_gdb_index): Update.
5934
063f8e80
KR
59352020-04-07 Kamil Rytarowski <n54@gmx.com>
5936
5937 * nbsd-tdep.c: Include "objfiles.h".
5938 (nbsd_skip_solib_resolver): New.
5939 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5940
85a9510c 59412020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5942
5943 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5944 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5945 with DW_LLE_base_addressx are being emitted in DWARFv5.
5946 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5947 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5948 unsigned integer.
5949
9fc3eaae 59502020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5951
5952 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5953 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5954 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5955 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5956 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5957 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5958 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5959
5960
41144253 59612020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5962
5963 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5964 (read_loclist_index): New function definition.
5965 (lookup_loclist_base): New function definition.
5966 (read_loclist_header): New function definition.
5967 (dwarf2_cu): Add loclist_base and loclist_header field.
5968 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5969 (read_full_die_1): Read the value of DW_AT_loclists_base.
5970 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5971 (read_attribute_value): Handle DW_FORM_loclistx.
5972 (skip_one_die): Handle DW_FORM_loclistx.
5973 (loclist_header): New structure declaration.
5974 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5975
9f4e76a4
SM
59762020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5977
5978 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5979 constructor. Remove `addr` parameter from other constructor and
5980 add `per_cu` parameter.
5981 * dwarf2/read.c (create_partial_symtab): Update.
5982
25c11aca
TV
59832020-04-07 Tom de Vries <tdevries@suse.de>
5984
5985 PR symtab/25796
5986 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5987 (partial_die_info::fixup): Inherit has_const_value.
5988
5707e24b
TV
59892020-04-07 Tom de Vries <tdevries@suse.de>
5990
5991 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5992 symbols without address.
5993
05f00e22
KR
59942020-04-06 Kamil Rytarowski <n54@gmx.com>
5995
5996 * nbsd-nat.h (struct thread_info): Add forward declaration.
5997 (nbsd_nat_target::thread_alive): Add.
5998 (nbsd_nat_target::thread_name): Likewise.
5999 (nbsd_nat_target::update_thread_list): Likewise.
6000 (update_thread_list::post_attach): Likewise.
6001 (post_attach::pid_to_str): Likewise.
6002 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6003 (nbsd_thread_lister): Add.
6004 (nbsd_nat_target::thread_alive): Likewise.
6005 (nbsd_nat_target::thread_name): Likewise.
6006 (nbsd_add_threads): Likewise.
6007 (update_thread_list::post_attach): Likewise.
6008 (nbsd_nat_target::update_thread_list): Likewise.
6009 (post_attach::pid_to_str): Likewise.
6010
6ee448cc
TT
60112020-04-06 Tom Tromey <tromey@adacore.com>
6012
6013 * ada-valprint.c (print_variant_part): Extract the variant field.
6014 (print_field_values): Use the field as the outer value when
6015 recursing.
6016
dea34e8c
TT
60172020-04-06 Tom Tromey <tromey@adacore.com>
6018
6019 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6020 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6021 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6022 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6023 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6024
93689ce9
TT
60252020-04-06 Tom Tromey <tromey@adacore.com>
6026
6027 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6028 TYPE_CODE_ERROR.
6029
79743962
KR
60302020-04-06 Kamil Rytarowski <n54@gmx.com>
6031
6032 * nbsd-tdep.c: Include "gdbarch.h".
6033 Define enum with NetBSD signal numbers.
6034 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6035 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6036 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6037 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6038 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6039 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6040 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6041 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6042 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6043 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6044 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6045 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6046
9e7c9a03
HD
60472020-04-03 Hannes Domani <ssbssa@yahoo.de>
6048
6049 PR gdb/25325
6050 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6051
d9e49b61
TT
60522020-04-03 Tom Tromey <tromey@adacore.com>
6053
6054 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6055 Read constant block.
6056
e0fc5c3f
SM
60572020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6058
6059 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6060 (gdb_bfd_get_full_section_contents): New declaration.
6061 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6062 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6063 gdb_bfd_get_full_section_contents.
6064
e2ff18a0
SM
60652020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6066
6067 * exec.c (build_section_table): Replace internal_error with
6068 gdb_assert.
6069 (section_table_xfer_memory_partial): Likewise.
6070 * mdebugread.c (parse_partial_symbols): Likewise.
6071 * psymtab.c (lookup_partial_symbol): Likewise.
6072 * utils.c (wrap_here): Likewise.
6073
0830d301
TT
60742020-04-02 Tom Tromey <tromey@adacore.com>
6075
6076 * f-lang.c (build_fortran_types): Use arch_type to initialize
6077 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6078
e7da7f8f
TT
60792020-04-02 Tom Tromey <tromey@adacore.com>
6080
6081 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6082 of attributes.
6083
c90d28ac
AB
60842020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6085 Bernd Edlinger <bernd.edlinger@hotmail.de>
6086 Tom Tromey <tromey@adacore.com>
6087
6088 * buildsym.c (buildsym_compunit::record_line): Remove
6089 deduplication code.
6090
1aa98955
TV
60912020-04-02 Tom de Vries <tdevries@suse.de>
6092
6093 PR ada/24671
6094 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6095
d3214198
TV
60962020-04-02 Tom de Vries <tdevries@suse.de>
6097
6098 * dwarf2/read.c (dwarf2_gdb_index_functions,
6099 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6100 NULL.
6101 * psymtab.c (psym_lookup_global_symbol_language): New function.
6102 (psym_functions): Init psym_lookup_global_symbol_language with
6103 psym_lookup_global_symbol_language.
6104 * symfile-debug.c (debug_sym_quick_functions): Init
6105 lookup_global_symbol_language with NULL.
6106 * symfile.c (set_initial_language): Remove fixme comment.
6107 * symfile.h (struct quick_symbol_functions): Add
6108 lookup_global_symbol_language.
6109 * symtab.c (find_quick_global_symbol_language): New function.
6110 (find_main_name): Use find_quick_global_symbol_language.
6111
2836752f
SM
61122020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6113
6114 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6115
64dc2d4b
BE
61162020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6117
6118 * buildsym.c (record_line): Fix undefined behavior and preserve
6119 lines at eof.
6120
bbe3dc41
BE
61212020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6122
6123 * buildsym.c (record_line): Fix the resizing condition.
6124
6b4a335b
TT
61252020-04-01 Tom Tromey <tom@tromey.com>
6126
6127 * value.h (value_literal_complex): Add comment.
6128 * valops.c (value_literal_complex): Refer to value.h.
6129
3638a098
TT
61302020-04-01 Tom Tromey <tom@tromey.com>
6131
6132 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6133 (scalar_type): New rule, from typebase.
6134 (typebase): Use scalar_type. Recognize complex types.
6135 (field_name): Handle FLOAT_KEYWORD.
6136 (ident_tokens): Add _Complex and __complex__.
6137
c34e8714
TT
61382020-04-01 Tom Tromey <tom@tromey.com>
6139
6140 PR exp/25299:
6141 * valarith.c (promotion_type, complex_binop): New functions.
6142 (scalar_binop): Handle complex numbers. Use promotion_type.
6143 (value_pos, value_neg, value_complement): Handle complex numbers.
6144
fa649bb7
TT
61452020-04-01 Tom Tromey <tom@tromey.com>
6146
6147 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6148 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6149 (parse_number): Handle complex numbers.
6150
981c08ce
TT
61512020-04-01 Tom Tromey <tom@tromey.com>
6152
6153 * c-valprint.c (c_decorations): Change complex suffix to "i".
6154
4c99290d
TT
61552020-04-01 Tom Tromey <tom@tromey.com>
6156
6157 * valprint.c (generic_value_print_complex): Use accessors.
6158 * value.h (value_real_part, value_imaginary_part): Declare.
6159 * valops.c (value_real_part, value_imaginary_part): New
6160 functions.
6161 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6162
5b930b45
TT
61632020-04-01 Tom Tromey <tom@tromey.com>
6164
6165 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6166 (read_range_type): Update.
6167 * mdebugread.c (basic_type): Update.
6168 * go-lang.c (build_go_types): Use init_complex_type.
6169 * gdbtypes.h (struct main_type) <complex_type>: New member.
6170 (init_complex_type): Update.
6171 (arch_complex_type): Don't declare.
6172 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6173 Make name if none given. Use alloc_type_copy. Look for cached
6174 complex type.
6175 (arch_complex_type): Remove.
6176 (gdbtypes_post_init): Use init_complex_type.
6177 * f-lang.c (build_fortran_types): Use init_complex_type.
6178 * dwarf2/read.c (read_base_type): Update.
6179 * d-lang.c (build_d_types): Use init_complex_type.
6180 * ctfread.c (read_base_type): Update.
6181
53cccef1
TBA
61822020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6183
6184 * infrun.c (stop_all_threads): Update assertion, plus when
6185 stopping threads, take into account that we might be trying
6186 to stop an all-stop target.
6187 (stop_waiting): Call 'stop_all_threads' if there exists a
6188 non-stop target.
6189
a0714d30
TBA
61902020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6191
6192 * target.h (exists_non_stop_target): New function declaration.
6193 * target.c (exists_non_stop_target): New function.
6194
60e22c1e
HD
61952020-04-01 Hannes Domani <ssbssa@yahoo.de>
6196
6197 PR gdb/24789
6198 * eval.c (is_integral_or_integral_reference): New function.
6199 (evaluate_subexp_standard): Allow integer references in
6200 pointer arithmetic.
6201
e139a727
TBA
62022020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6203
6204 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6205 check for no ptid in the stop reply when the target is non-stop.
6206
e0802d59
TT
62072020-04-01 Tom Tromey <tromey@adacore.com>
6208
6209 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6210 "name" parameter to rvalue reference. Initialize m_name_holder.
6211 <lookup_name_info>: New overloads.
6212 <name>: Return gdb::string_view.
6213 <c_str>: New method.
6214 <make_ignore_params>: Update.
6215 <search_name_hash>: Update.
6216 <language_lookup_name>: Return const char *.
6217 <m_name>: Change type.
6218 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6219 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6220 (lookup_name_info::match_any): Update.
6221 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6222 Update.
6223 * minsyms.c (linkage_name_str): Update.
6224 * language.c (default_symbol_name_matcher): Update.
6225 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6226 Update.
6227 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6228 (ada_lookup_name_info::ada_lookup_name_info): Update.
6229 (literal_symbol_name_matcher): Update.
6230
8c072cb6
TT
62312020-04-01 Tom Tromey <tromey@adacore.com>
6232
6233 * psymtab.c (psymtab_search_name): Remove function.
6234 (psym_lookup_symbol): Create search name and lookup name here.
6235 (lookup_partial_symbol): Remove "name" parameter; add
6236 lookup_name.
6237 (psym_expand_symtabs_for_function): Update.
6238
6f29a534
TT
62392020-03-31 Joel Jones <joelkevinjones@gmail.com>
6240
6241 PR tui/25597:
6242 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6243
af62665e
TT
62442020-03-31 Tom Tromey <tromey@adacore.com>
6245
6246 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6247 memcpy.
6248
d1a89da5
NC
62492020-03-30 Nelson Chu <nelson.chu@sifive.com>
6250
6251 * features/riscv/32bit-csr.xml: Regenerated.
6252 * features/riscv/64bit-csr.xml: Regenerated.
6253
d8af9068
TT
62542020-03-30 Tom Tromey <tromey@adacore.com>
6255
6256 * ada-valprint.c (print_variant_part): Update.
6257 * ada-lang.h (ada_which_variant_applies): Update.
6258 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6259 outer_valaddr parameters; replace with "outer" value parameter.
6260 (to_fixed_variant_branch_type): Update.
6261
227c0bf4
PFC
62622020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6263
6264 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6265 <list>. Remove inclusion of observable.h.
6266 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6267 (struct arch_lwp_info): New struct.
6268 (class ppc_linux_dreg_interface): New class.
6269 (struct ppc_linux_process_info): New struct.
6270 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6271 <low_new_clone, low_forget_process, low_prepare_to_resume>
6272 <copy_thread_dreg_state, mark_thread_stale>
6273 <mark_debug_registers_changed, register_hw_breakpoint>
6274 <clear_hw_breakpoint, register_wp, clear_wp>
6275 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6276 <num_memory_accesses, get_trigger_type>
6277 <create_watchpoint_request, hwdebug_point_cmp>
6278 <init_arch_lwp_info, get_arch_lwp_info>
6279 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6280 methods.
6281 <struct ptid_hash>: New inner struct.
6282 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6283 members.
6284 (saved_dabr_value, hwdebug_info, max_slots_number)
6285 (struct hw_break_tuple, struct thread_points, ppc_threads)
6286 (have_ptrace_hwdebug_interface)
6287 (hwdebug_find_thread_points_by_tid)
6288 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6289 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6290 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6291 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6292 use m_dreg_interface.
6293 (hwdebug_point_cmp): Change to...
6294 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6295 reference arguments instead of pointers.
6296 (ppc_linux_nat_target::ranged_break_num_registers): Use
6297 m_dreg_interface.
6298 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6299 m_dreg_interface. Call register_hw_breakpoint.
6300 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6301 m_dreg_interface. Call clear_hw_breakpoint.
6302 (get_trigger_type): Change to...
6303 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6304 comment.
6305 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6306 use m_dreg_interface. Call register_hw_breakpoint.
6307 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6308 use m_dreg_interface. Call clear_hw_breakpoint.
6309 (can_use_watchpoint_cond_accel): Change to...
6310 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6311 method. Update comment, use m_dreg_interface and
6312 m_process_info.
6313 (calculate_dvc): Change to...
6314 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6315 m_dreg_interface.
6316 (num_memory_accesses): Change to...
6317 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6318 (check_condition): Change to...
6319 (ppc_linux_nat_target::check_condition): ...this method.
6320 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6321 comment, use m_dreg_interface.
6322 (create_watchpoint_request): Change to...
6323 (ppc_linux_nat_target::create_watchpoint_request): ...this
6324 method. Use m_dreg_interface.
6325 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6326 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6327 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6328 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6329 (ppc_linux_nat_target::low_forget_process)
6330 (ppc_linux_nat_target::low_new_fork)
6331 (ppc_linux_nat_target::low_new_clone)
6332 (ppc_linux_nat_target::low_delete_thread)
6333 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6334 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6335 only call mark_thread_stale.
6336 (ppc_linux_thread_exit): Remove.
6337 (ppc_linux_nat_target::stopped_data_address): Change to...
6338 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6339 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6340 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6341 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6342 comment. Call low_stopped_data_address.
6343 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6344 m_dreg_interface.
6345 (ppc_linux_nat_target::masked_watch_num_registers): Use
6346 m_dreg_interface.
6347 (ppc_linux_nat_target::copy_thread_dreg_state)
6348 (ppc_linux_nat_target::mark_thread_stale)
6349 (ppc_linux_nat_target::mark_debug_registers_changed)
6350 (ppc_linux_nat_target::register_hw_breakpoint)
6351 (ppc_linux_nat_target::clear_hw_breakpoint)
6352 (ppc_linux_nat_target::register_wp)
6353 (ppc_linux_nat_target::clear_wp)
6354 (ppc_linux_nat_target::init_arch_lwp_info)
6355 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6356 (_initialize_ppc_linux_nat): Remove observer callback.
6357
4db10d8f
PFC
63582020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6359
6360 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6361 (ppc_linux_nat_target::auxv_parse)
6362 (ppc_linux_nat_target::read_description)
6363 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6364 Move up.
6365
1310c1b0
PFC
63662020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6367
6368 * linux-nat.h (low_new_clone): New method.
6369 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6370
69b037c3
SM
63712020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6372
6373 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6374 (dbx_expand_psymtab): ... this.
6375 (start_psymtab): Update.
6376 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6377 (mdebug_expand_psymtab): ... this.
6378 (parse_partial_symbols): Update.
6379 (new_psymtab): Update.
6380 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6381 (xcoff_expand_psymtab): ... this.
6382 (xcoff_start_psymtab): Update.
6383
48993951
SM
63842020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6385
6386 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6387 <expand_dependencies>: ... this.
6388 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6389 (partial_symtab::expand_dependencies): ... this.
6390 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6391 Update.
6392 (dwarf2_psymtab::expand_psymtab): Update.
6393 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6394 * mdebugread.c (psymtab_to_symtab_1): Update.
6395 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6396
3ad83046
SM
63972020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6398
6399 * psympriv.h (discard_psymtab): Remove.
6400 * dbxread.c (dbx_end_psymtab): Update.
6401 * xcoffread.c (xcoff_end_psymtab): Update.
6402
4d1b9ab6
TT
64032020-03-28 Tom Tromey <tom@tromey.com>
6404
6405 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6406 comment.
6407
f1749218
TT
64082020-03-28 Tom Tromey <tom@tromey.com>
6409
6410 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6411
ebea7626
HD
64122020-03-27 Hannes Domani <ssbssa@yahoo.de>
6413
6414 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6415
a879b4d5
JB
64162020-03-26 John Baldwin <jhb@FreeBSD.org>
6417
6418 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6419
0826b30a
TT
64202020-03-26 Tom Tromey <tom@tromey.com>
6421
6422 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6423 (mark_common_block_symbol_computed, read_tag_string_type)
6424 (attr_to_dynamic_prop, read_subrange_type): Update.
6425 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6426 to be methods on struct attribute.
6427 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6428 (read_call_site_scope, partial_die_info::read)
6429 (partial_die_info::read, lookup_die_type, follow_die_ref):
6430 Update.
6431 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6432 from dwarf2_get_ref_die_offset.
6433 (attribute::constant_value): New method, from
6434 dwarf2_get_attr_constant_value.
6435 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6436 Declare method.
6437 <constant_value>: New method.
6438
2b2558bf
TT
64392020-03-26 Tom Tromey <tom@tromey.com>
6440
6441 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6442 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6443 (dwarf_type_encoding_name): Move to stringify.c.
6444 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6445 * dwarf2/stringify.c: New file.
6446 * dwarf2/stringify.h: New file.
6447
eeb64781
TT
64482020-03-26 Tom Tromey <tom@tromey.com>
6449
6450 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6451 Rewrite.
6452
a39fdb41
TT
64532020-03-26 Tom Tromey <tom@tromey.com>
6454
6455 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6456 methods.
6457 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6458 (lookup_ranges_base): Likewise.
6459 (read_cutu_die_from_dwo, read_full_die_1): Update.
6460
436c571c
TT
64612020-03-26 Tom Tromey <tom@tromey.com>
6462
6463 * dwarf2/read.c (read_import_statement, read_file_scope)
6464 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6465 (read_lexical_block_scope, read_call_site_scope)
6466 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6467 (handle_struct_member_die, process_structure_scope)
6468 (update_enumeration_type_from_children)
6469 (process_enumeration_scope, read_array_type, read_common_block)
6470 (read_namespace, read_module, read_subroutine_type): Update.
6471 (sibling_die): Remove.
6472
052c8bb8
TT
64732020-03-26 Tom Tromey <tom@tromey.com>
6474
6475 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6476 (build_type_psymtabs_reader, read_structure_type)
6477 (read_enumeration_type, read_full_die_1): Update.
6478 (dwarf2_attr_no_follow): Move to die.h.
6479 * dwarf2/die.h (struct die_info) <attr>: New method.
6480
2b24b6e4
TT
64812020-03-26 Tom Tromey <tom@tromey.com>
6482
6483 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6484 <base_address>: Now an optional.
6485 (dwarf2_find_base_address, dwarf2_rnglists_process)
6486 (dwarf2_ranges_process, fill_in_loclist_baton)
6487 (dwarf2_symbol_mark_computed): Update.
6488
c2d50fd0
TT
64892020-03-26 Tom Tromey <tom@tromey.com>
6490
6491 * dwarf2/read.c (struct die_info): Move to die.h.
6492 * dwarf2/die.h: New file.
6493
0df7ad3a
TT
64942020-03-26 Tom Tromey <tom@tromey.com>
6495
6496 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6497 * dwarf2/read.c
6498 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6499 Move to line-header.c.
6500 (read_checked_initial_length_and_offset, read_formatted_entries):
6501 Likewise.
6502 (dwarf_decode_line_header): Split into two.
6503 * dwarf2/line-header.c
6504 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6505 Move from read.c.
6506 (read_checked_initial_length_and_offset, read_formatted_entries):
6507 Likewise.
6508 (dwarf_decode_line_header): New function, split from read.c.
6509
86c0bb4c
TT
65102020-03-26 Tom Tromey <tom@tromey.com>
6511
6512 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6513 Declare method.
6514 * dwarf2/read.c (read_attribute_value): Update.
6515 (dwarf2_per_objfile::read_line_string): Rename from
6516 read_indirect_line_string.
6517 (read_formatted_entries): Update.
6518
2ef46c2f
TT
65192020-03-26 Tom Tromey <tom@tromey.com>
6520
6521 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6522 variable.
6523
4f9c1eda
TT
65242020-03-26 Tom Tromey <tom@tromey.com>
6525
6526 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6527 const.
6528 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6529 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6530 parameter const.
6531
5a0e026f
TT
65322020-03-26 Tom Tromey <tom@tromey.com>
6533
6534 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6535 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6536 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6537 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6538
8844c11b
TT
65392020-03-26 Tom Tromey <tom@tromey.com>
6540
6541 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6542 file_names_size, file_full_name, file_file_name>: Use const.
6543 <file_name_at, file_names>: Add const overload.
6544 * dwarf2/line-header.c (line_header::file_file_name)
6545 (line_header::file_full_name): Update.
6546
c90ec28a
TT
65472020-03-26 Tom Tromey <tom@tromey.com>
6548
6549 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6550 (macro_start_file, consume_improper_spaces)
6551 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6552 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6553 (dwarf_decode_macros): Move to macro.c.
6554 * dwarf2/macro.c: New file.
6555 * dwarf2/macro.h: New file.
6556 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6557
4f44ae6c
TT
65582020-03-26 Tom Tromey <tom@tromey.com>
6559
6560 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6561 method.
6562 * dwarf2/section.c: New method. From
6563 read_indirect_string_at_offset_from.
6564 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6565 (read_indirect_string_at_offset_from): Move to section.c.
6566 (read_indirect_string_at_offset): Rewrite.
6567 (read_indirect_line_string_at_offset): Remove.
6568 (read_indirect_string, read_indirect_line_string)
6569 (dwarf_decode_macro_bytes): Update.
6570
a0194fa8
TT
65712020-03-26 Tom Tromey <tom@tromey.com>
6572
6573 * dwarf2/section.h (struct dwarf2_section_info)
6574 <overload_complaint>: Declare.
6575 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6576 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6577 Rename from dwarf2_section_buffer_overflow_complaint.
6578 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6579 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6580
3d27bbdb
TT
65812020-03-26 Tom Tromey <tom@tromey.com>
6582
6583 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6584 Declare.
6585 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6586 Move from read.c.
6587 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6588 to section.c.
6589
9eac9650
TT
65902020-03-26 Tom Tromey <tom@tromey.com>
6591
6592 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6593
bf80d710
TT
65942020-03-26 Tom Tromey <tom@tromey.com>
6595
6596 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6597 "builder".
6598 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6599 parameter.
6600 (dwarf_decode_macros): Update.
6601
0314b390
TT
66022020-03-26 Tom Tromey <tom@tromey.com>
6603
6604 * dwarf2/read.c (read_attribute_value): Update.
6605 (read_indirect_string_from_dwz): Move to dwz.c; change into
6606 method.
6607 (dwarf_decode_macro_bytes): Update.
6608 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6609 * dwarf2/dwz.c: New file.
6610 * Makefile.in (COMMON_SFILES): Add dwz.c.
6611
9fda78b6
TT
66122020-03-26 Tom Tromey <tom@tromey.com>
6613
6614 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6615 * dwarf2/read.c: Add include.
6616 * dwarf2/index-write.c: Add include.
6617 * dwarf2/index-cache.c: Add include.
6618 * dwarf2/dwz.h: New file.
6619
33aa3c10
TT
66202020-03-25 Tom Tromey <tom@tromey.com>
6621
6622 * compile/compile-object-load.c (get_out_value_type): Mention
6623 correct symbol name in error message.
6624
d503b685
HD
66252020-03-25 Hannes Domani <ssbssa@yahoo.de>
6626
6627 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6628
7b1eff95
TV
66292020-03-25 Tom de Vries <tdevries@suse.de>
6630
6631 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6632 * symmisc.c (dump_symtab_1): Print user and includes fields.
6633 (maintenance_info_symtabs): Same.
6634
dd895392
AB
66352020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 PR gdb/25534
6638 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6639 (riscv_regcache_cooked_write): New function.
6640 (riscv_push_dummy_call): Use new function.
6641 (riscv_return_value): Likewise.
6642
5ab2fbf1
SM
66432020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6644
6645 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6646 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6647 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6648 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6649 * infrun.c (follow_fork): Likewise.
6650 (follow_fork_inferior): Likewise.
6651 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6652 * linux-nat.h (class linux_nat_target): Likewise.
6653 * remote.c (class remote_target) <follow_fork>: Likewise.
6654 (remote_target::follow_fork): Likewise.
6655 * target-delegates.c: Re-generate.
6656 * target.c (default_follow_fork): Likewise.
6657 (target_follow_fork): Likewise.
6658 * target.h (struct target_ops) <follow_fork>: Likewise.
6659 (target_follow_fork): Likewise.
6660
a64fafb5
TV
66612020-03-24 Tom de Vries <tdevries@suse.de>
6662
6663 * psymtab.c (maintenance_info_psymtabs): Print user field.
6664
fe26d3a3
TT
66652020-03-20 Tom Tromey <tromey@adacore.com>
6666
6667 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6668 const.
6669 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6670 const.
6671
c884cc46
SM
66722020-03-20 Simon Marchi <simon.marchi@efficios.com>
6673
6674 * ptrace.m4: Don't check for ptrace declaration.
6675 * config.in: Re-generate.
6676 * configure: Re-generate.
6677 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6678 not defined.
6679
1ff700c2
KR
66802020-03-20 Kamil Rytarowski <n54@gmx.com>
6681
6682 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6683 `PTRACE_TYPE_RET'.
6684 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6685 * sparc-nat.c (gdb_ptrace): Likewise.
6686 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6687
f7d4f0b1
TT
66882020-03-20 Tom Tromey <tromey@adacore.com>
6689
6690 * c-exp.y (lex_one_token): Fix assert.
6691
f67210ff
TT
66922020-03-20 Tom Tromey <tromey@adacore.com>
6693
6694 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6695 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6696 strncpy call.
6697
1773be9e
TT
66982020-03-20 Tom Tromey <tromey@adacore.com>
6699
6700 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6701
70304be9
TT
67022020-03-20 Tom Tromey <tromey@adacore.com>
6703
6704 * ada-valprint.c (print_variant_part): Remove parameters; switch
6705 to value-based API.
6706 (print_field_values): Likewise.
6707 (ada_val_print_struct_union): Likewise.
6708 (ada_value_print_1): Update.
6709
9faa006d
KR
67102020-03-20 Kamil Rytarowski <n54@gmx.com>
6711
6712 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6713 nbsd_nat_target instead of inf_ptrace_target.
6714 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6715 nbsd_nat_target.
6716
4a90f062
KR
67172020-03-20 Kamil Rytarowski <n54@gmx.com>
6718
6719 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6720 it to the ptrace call.
6721 * (store_registers): Likewise.
6722
67232020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6724
6725 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6726 it to the ptrace call.
6727 * (store_registers): Likewise.
6728
2d07da27
LM
67292020-03-19 Luis Machado <luis.machado@linaro.org>
6730
6731 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6732 valid, fetch vg value from ptrace.
6733
f09db380
KR
67342020-03-19 Kamil Rytarowski <n54@gmx.com>
6735 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6736 * inf-ptrace.c: Likewise.
6737 * (gdb_ptrace): Add.
6738 * (inf_ptrace_target::resume): Update.
6739 * (inf_ptrace_target::xfer_partial): Likewise.
6740 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6741 * (inf_ptrace_peek_poke): Update.
6742
fcc7376e
KR
67432020-03-19 Kamil Rytarowski <n54@gmx.com>
6744
6745 * x86-bsd-nat.c (gdb_ptrace): New.
6746 * (x86bsd_dr_set): Add new argument `ptid'.
6747 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6748 x86bsd_dr_set_addr): Update.
6749
cada5fc9
AB
67502020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6751
6752 * remote.c (remote_target::process_stop_reply): Handle events for
6753 all threads differently.
6754
19a2740f
AB
67552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6756
6757 * completer.c (completion_tracker::remove_completion): Define new
6758 function.
6759 * completer.h (completion_tracker::remove_completion): Declare new
6760 function.
6761 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6762 when adding a C++ function symbol.
6763
724fd9ba
AB
67642020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6765
6766 * completer.c (completion_tracker::completion_hash_entry): Define
6767 new class.
6768 (advance_to_filename_complete_word_point): Call
6769 recompute_lowest_common_denominator.
6770 (completion_tracker::completion_tracker): Call discard_completions
6771 to setup the hash table.
6772 (completion_tracker::discard_completions): Allow for being called
6773 from the constructor, pass new equal function, and element deleter
6774 when constructing the hash table. Initialise new class member
6775 variables.
6776 (completion_tracker::maybe_add_completion): Remove use of
6777 m_entries_vec, and store more information into m_entries_hash.
6778 (completion_tracker::recompute_lcd_visitor): New function, most
6779 content taken from...
6780 (completion_tracker::recompute_lowest_common_denominator):
6781 ...here, this now just visits each item in the hash calling the
6782 above visitor.
6783 (completion_tracker::build_completion_result): Remove use of
6784 m_entries_vec, call recompute_lowest_common_denominator.
6785 * completer.h (completion_tracker::have_completions): Remove use
6786 of m_entries_vec.
6787 (completion_tracker::completion_hash_entry): Declare new class.
6788 (completion_tracker::recompute_lowest_common_denominator): Change
6789 function signature.
6790 (completion_tracker::recompute_lcd_visitor): Declare new function.
6791 (completion_tracker::m_entries_vec): Delete.
6792 (completion_tracker::m_entries_hash): Initialize to NULL.
6793 (completion_tracker::m_lowest_common_denominator_valid): New
6794 member variable.
6795 (completion_tracker::m_lowest_common_denominator_max_length): New
6796 member variable.
6797
5a82b8a1
KR
67982020-03-17 Kamil Rytarowski <n54@gmx.com>
6799
6800 * regformats/regdef.h: Put reg in gdb namespace.
6801
fb516a69
KR
68022020-03-17 Kamil Rytarowski <n54@gmx.com>
6803
6804 * i386-bsd-nat.c (gdb_ptrace): New.
6805 * (i386bsd_fetch_inferior_registers,
6806 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6807 * (i386bsd_fetch_inferior_registers,
6808 i386bsd_store_inferior_registers) Use gdb_ptrace.
6809
1c0aa1fb
KR
68102020-03-17 Kamil Rytarowski <n54@gmx.com>
6811
6812 * amd64-bsd-nat.c (gdb_ptrace): New.
6813 * (amd64bsd_fetch_inferior_registers,
6814 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6815 * (amd64bsd_fetch_inferior_registers,
6816 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6817
5ccd2fb7
KR
68182020-03-17 Kamil Rytarowski <n54@gmx.com>
6819
6820 * user-regs.c (user_reg::read): Rename to...
6821 (user_reg::xread): ...this.
6822 * (append_user_reg): Rename argument `read' to `xread'.
6823 * (user_reg_add_builtin): Likewise.
6824 * (user_reg_add): Likewise.
6825 * (value_of_user_reg): Likewise.
6826
2108a63a
KR
68272020-03-17 Kamil Rytarowski <n54@gmx.com>
6828
6829 * sparc-nat.c (gdb_ptrace): New.
6830 * sparc-nat.c (sparc_fetch_inferior_registers)
6831 (sparc_store_inferior_registers) Remove obsolete comment.
6832 * sparc-nat.c (sparc_fetch_inferior_registers)
6833 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6834 * sparc-nat.c (sparc_fetch_inferior_registers)
6835 (sparc_store_inferior_registers) Use gdb_ptrace.
6836
a225c9a8
KR
68372020-03-17 Kamil Rytarowski <n54@gmx.com>
6838
6839 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6840 it to the ptrace call.
6841 * sh-nbsd-nat.c (store_registers): Likewise.
6842
98097623
KR
68432020-03-17 Kamil Rytarowski <n54@gmx.com>
6844
6845 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6846 nbsd_nat_target instead of inf_ptrace_target.
6847 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6848 nbsd_nat_target.
6849
9e38d619
KR
68502020-03-17 Kamil Rytarowski <n54@gmx.com>
6851
6852 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6853
a2ecbe9f
KR
68542020-03-17 Kamil Rytarowski <n54@gmx.com>
6855
6856 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6857 <sys/sysctl.h>.
6858 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6859
58990295
TV
68602020-03-17 Tom de Vries <tdevries@suse.de>
6861
6862 PR gdb/23710
6863 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6864 fields.
6865 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6866 fields.
6867 (process_imported_unit_die): Skip import of c++ CUs.
6868
771dd3a8
TT
68692020-03-16 Tom Tromey <tom@tromey.com>
6870
6871 * p-valprint.c (pascal_object_print_value): Initialize
6872 base_value.
6873
817a7585
AK
68742020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6875 Shahab Vahedi <shahab@synopsys.com>
6876
6877 * Makefile.in: Add arch/arc.o
6878 * configure.tgt: Likewise.
6879 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6880 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6881 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6882 * arc-tdep.h (arc_read_description): Add proto type.
6883 * arch/arc.c: New file.
6884 * arch/arc.h: Likewise.
6885 * features/Makefile: Replace old target descriptions with new.
6886 * features/arc-arcompact.c: Remove.
6887 * features/arc-arcompact.xml: Likewise.
6888 * features/arc-v2.c: Likewise
6889 * features/arc-v2.xml: Likewise
6890 * features/arc/aux-arcompact.xml: New file.
6891 * features/arc/aux-v2.xml: Likewise.
6892 * features/arc/core-arcompact.xml: Likewise.
6893 * features/arc/core-v2.xml: Likewise.
6894 * features/arc/aux-arcompact.c: Generate.
6895 * features/arc/aux-v2.c: Likewise.
6896 * features/arc/core-arcompact.c: Likewise.
6897 * features/arc/core-v2.c: Likewise.
6898 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6899
67430cd0
TT
69002020-03-16 Tom Tromey <tromey@adacore.com>
6901
6902 PR gdb/25663:
6903 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6904 putting value into bcache.
6905
30efb6c7
SM
69062020-03-16 Simon Marchi <simon.marchi@efficios.com>
6907
6908 PR gdb/21500
6909 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6910 to...
6911 (amd64_windows_init_abi_common): ... this. Don't set size of
6912 long type.
6913 (amd64_windows_init_abi): New function.
6914 (amd64_cygwin_init_abi): New function.
6915 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6916 the Cygwin OS ABI.
6917 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6918 comment.
6919
8db52437
SM
69202020-03-16 Simon Marchi <simon.marchi@efficios.com>
6921
6922 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6923 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6924 (pe_import_directory_entry): New struct type.
6925 (is_linked_with_cygwin_dll): New function.
6926 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6927 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6928 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6929
5982a56a
SM
69302020-03-16 Simon Marchi <simon.marchi@efficios.com>
6931
6932 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6933 i386_cygwin_core_osabi_sniffer.
6934
7a1998df
SM
69352020-03-16 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * i386-cygwin-tdep.c: Rename to...
6938 * i386-windows-tdep.c: ... this.
6939 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6940 i386-windows-tdep.c.
6941 * configure.tgt: Likewise.
6942
053205cc
SM
69432020-03-16 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6946 * osabi.c (gdb_osabi_names): Add "Windows".
6947 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6948 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6949 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6950 i386_cygwin_osabi_sniffer.
6951 (_initialize_i386_cygwin_tdep): Register OS ABI
6952 GDB_OSABI_WINDOWS for i386.
6953 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6954 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6955 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6956 for x86-64.
6957 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6958 when the target matches '*-*-mingw*'.
6959
fe4b2ee6
SM
69602020-03-16 Simon Marchi <simon.marchi@efficios.com>
6961
6962 * defs.h (enum gdb_osabi): Move to...
6963 * osabi.h (enum gdb_osabi): ... here.
6964 * gdbarch.sh: Include osabi.h in gdbarch.h.
6965 * gdbarch.h: Re-generate.
6966
cb9b645d
SM
69672020-03-16 Simon Marchi <simon.marchi@efficios.com>
6968
6969 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6970 function.
6971 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6972
3293bbaf
TT
69732020-03-14 Tom Tromey <tom@tromey.com>
6974
6975 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6976 for C++.
6977 (c_type_print_modifier): Likewise. Add "language" parameter.
6978 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6979 (c_type_print_base_1): Update.
6980 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6981 constants.
6982 * type-stack.c (type_stack::insert): Handle tp_atomic and
6983 tp_restrict.
6984 (type_stack::follow_type_instance_flags): Likewise.
6985 (type_stack::follow_types): Likewise. Merge type-following code.
6986 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6987 (space_identifier, cv_with_space_id)
6988 (const_or_volatile_or_space_identifier_noopt)
6989 (const_or_volatile_or_space_identifier): Remove.
6990 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6991 rules.
6992 (ptr_operator, typebase): Update.
6993 (enum token_flag) <FLAG_C>: New constant.
6994 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6995 "_Atomic".
6996 (lex_one_token): Handle FLAG_C.
6997
154151a6
KR
69982020-03-14 Kamil Rytarowski <n54@gmx.com>
6999
7000 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7001 it to the ptrace call.
7002 * m68k-bsd-nat.c (store_registers): Likewise.
7003
bc107784
KR
70042020-03-14 Kamil Rytarowski <n54@gmx.com>
7005
7006 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7007 gdb_byte *.
7008 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7009 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7010 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7011
01a80117
KR
70122020-03-14 Kamil Rytarowski <n54@gmx.com>
7013
7014 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7015 nbsd_nat_target instead of inf_ptrace_target.
7016 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7017 nbsd_nat_target.
7018
f90280ca
KR
70192020-03-14 Kamil Rytarowski <n54@gmx.com>
7020
7021 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7022 register_t.
7023
6def66f1
KR
70242020-03-14 Kamil Rytarowski <n54@gmx.com>
7025
7026 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7027 it to the ptrace call.
7028 * alpha-bsd-nat.c (store_registers): Likewise.
7029
66eaca97
KR
70302020-03-14 Kamil Rytarowski <n54@gmx.com>
7031
7032 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7033 includes.
7034 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7035 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7036 fill_fpregset): Likewise.
7037
4fed520b
KR
70382020-03-14 Kamil Rytarowski <n54@gmx.com>
7039
7040 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7041 nbsd_nat_target instead of inf_ptrace_target.
7042 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7043 nbsd_nat_target.
7044
2190cf06
KR
70452020-03-14 Kamil Rytarowski <n54@gmx.com>
7046
7047 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7048 register_t.
7049
75c56d3d
KR
70502020-03-14 Kamil Rytarowski <n54@gmx.com>
7051
7052 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7053 it to the ptrace call.
7054 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7055 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7056 * arm-nbsd-nat.c (store_register): Likewise.
7057 * arm-nbsd-nat.c (store_regs): Likewise.
7058 * arm-nbsd-nat.c (store_fp_register): Likewise.
7059 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7060
6018d381
KR
70612020-03-14 Kamil Rytarowski <n54@gmx.com>
7062
7063 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7064 nbsd_nat_target instead of inf_ptrace_target.
7065 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7066 nbsd_nat_target.
7067
013f99f0
KR
70682020-03-14 Kamil Rytarowski <n54@gmx.com>
7069
7070 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7071 it to the ptrace call.
7072 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7073
12753073
KR
70742020-03-14 Kamil Rytarowski <n54@gmx.com>
7075
6227b330
KR
7076 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7077 it to the ptrace call.
7078 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7079
70802020-03-14 Kamil Rytarowski <n54@gmx.com>
7081
7082 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7083 gdb_byte *.
12753073
KR
7084 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7085
d5be5fa4
KR
70862020-03-14 Kamil Rytarowski <n54@gmx.com>
7087
7088 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7089 instead of inf_ptrace_target.
7090 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7091 nbsd_nat_target.
7092
8110f842
KR
70932020-03-14 Kamil Rytarowski <n54@gmx.com>
7094
7095 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7096 register_t.
7097
52feded7
KR
70982020-03-14 Kamil Rytarowski <n54@gmx.com>
7099
7100 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7101 register_t.
7102
25567eee
KR
71032020-03-14 Kamil Rytarowski <n54@gmx.com>
7104
7105 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7106 register_t.
7107
426a9c18
TT
71082020-03-13 Tom Tromey <tom@tromey.com>
7109
7110 * value.h (val_print): Don't declare.
7111 * valprint.h (val_print_array_elements)
7112 (val_print_scalar_formatted, generic_val_print): Don't declare.
7113 * valprint.c (generic_val_print_array): Take a struct value.
7114 (generic_val_print_ptr, generic_val_print_memberptr)
7115 (generic_val_print_bool, generic_val_print_int)
7116 (generic_val_print_char, generic_val_print_complex)
7117 (generic_val_print): Remove.
7118 (generic_value_print): Update.
7119 (do_val_print): Remove unused parameters. Don't call
7120 la_val_print.
7121 (val_print): Remove.
7122 (common_val_print): Update. Don't call value_check_printable.
7123 (val_print_scalar_formatted, val_print_array_elements): Remove.
7124 * rust-lang.c (rust_val_print): Remove.
7125 (rust_language_defn): Update.
7126 * p-valprint.c (pascal_val_print): Remove.
7127 (pascal_value_print_inner): Update.
7128 (pascal_object_print_val_fields, pascal_object_print_val):
7129 Remove.
7130 (pascal_object_print_static_field): Update.
7131 * p-lang.h (pascal_val_print): Don't declare.
7132 * p-lang.c (pascal_language_defn): Update.
7133 * opencl-lang.c (opencl_language_defn): Update.
7134 * objc-lang.c (objc_language_defn): Update.
7135 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7136 * m2-lang.h (m2_val_print): Don't declare.
7137 * m2-lang.c (m2_language_defn): Update.
7138 * language.h (struct language_defn) <la_val_print>: Remove.
7139 * language.c (unk_lang_value_print_inner): Rename. Change
7140 argument types.
7141 (unknown_language_defn, auto_language_defn): Update.
7142 * go-valprint.c (go_val_print): Remove.
7143 * go-lang.h (go_val_print): Don't declare.
7144 * go-lang.c (go_language_defn): Update.
7145 * f-valprint.c (f_val_print): Remove.
7146 * f-lang.h (f_value_print): Don't declare.
7147 * f-lang.c (f_language_defn): Update.
7148 * d-valprint.c (d_val_print): Remove.
7149 * d-lang.h (d_value_print): Don't declare.
7150 * d-lang.c (d_language_defn): Update.
7151 * cp-valprint.c (cp_print_value_fields)
7152 (cp_print_value_fields_rtti, cp_print_value): Remove.
7153 (cp_print_static_field): Update.
7154 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7155 (c_val_print_struct, c_val_print_union, c_val_print_int)
7156 (c_val_print_memberptr, c_val_print): Remove.
7157 * c-lang.h (c_val_print_array, cp_print_value_fields)
7158 (cp_print_value_fields_rtti): Don't declare.
7159 * c-lang.c (c_language_defn, cplus_language_defn)
7160 (asm_language_defn, minimal_language_defn): Update.
7161 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7162 (ada_val_print_enum): Take a struct value.
7163 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7164 (ada_val_print): Remove.
7165 (ada_value_print_1): Update.
7166 (printable_val_type): Remove.
7167 * ada-lang.h (ada_val_print): Don't declare.
7168 * ada-lang.c (ada_language_defn): Update.
7169
42331a1e
TT
71702020-03-13 Tom Tromey <tom@tromey.com>
7171
7172 * valprint.c (do_val_print): Update.
7173 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7174 a struct value.
7175 (value_to_value_object_no_release): Declare.
7176 * python/py-value.c (value_to_value_object_no_release): New
7177 function.
7178 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7179 struct value.
7180 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7181 function.
7182 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7183 a struct value.
7184 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7185 Declare.
7186 (gdbscm_apply_val_pretty_printer): Take a struct value.
7187 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7188 value.
7189 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7190 value.
7191 * extension-priv.h (struct extension_language_ops)
7192 <apply_val_pretty_printer>: Take a struct value.
7193 * cp-valprint.c (cp_print_value): Create a struct value.
7194 (cp_print_value): Update.
7195
3a916a97
TT
71962020-03-13 Tom Tromey <tom@tromey.com>
7197
7198 * ada-valprint.c (print_field_values): Call common_val_print.
7199
b59eac37
TT
72002020-03-13 Tom Tromey <tom@tromey.com>
7201
7202 * ada-valprint.c (val_print_packed_array_elements): Remove
7203 bitoffset and val parameters. Call common_val_print.
7204 (ada_val_print_string): Remove offset, address, and original_value
7205 parameters.
7206 (ada_val_print_array): Update.
7207 (ada_value_print_array): New function.
7208 (ada_value_print_1): Call it.
7209
03371129
TT
72102020-03-13 Tom Tromey <tom@tromey.com>
7211
7212 * ada-valprint.c (ada_value_print): Use common_val_print.
7213
2e088f8b
TT
72142020-03-13 Tom Tromey <tom@tromey.com>
7215
7216 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7217
39ef85a8
TT
72182020-03-13 Tom Tromey <tom@tromey.com>
7219
7220 * ada-valprint.c (ada_value_print_num): New function.
7221 (ada_value_print_1): Use it.
7222
b9fa6e07
TT
72232020-03-13 Tom Tromey <tom@tromey.com>
7224
7225 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7226
416595d6
TT
72272020-03-13 Tom Tromey <tom@tromey.com>
7228
7229 * ada-valprint.c (ada_value_print_ptr): New function.
7230 (ada_value_print_1): Use it.
7231
5b5e15ec
TT
72322020-03-13 Tom Tromey <tom@tromey.com>
7233
7234 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7235 call common_val_print.
7236 (ada_val_print_1): Update.
7237 (ada_value_print_1): New function.
7238 (ada_value_print_inner): Rewrite.
7239
fbf54e75
TT
72402020-03-13 Tom Tromey <tom@tromey.com>
7241
7242 * cp-valprint.c (cp_print_value_fields): Update.
7243 (cp_print_value): New function.
7244
64b653ca
TT
72452020-03-13 Tom Tromey <tom@tromey.com>
7246
7247 * m2-valprint.c (m2_value_print_inner): Use
7248 cp_print_value_fields.
7249 * cp-valprint.c (cp_print_value_fields): New function.
7250 * c-valprint.c (c_value_print_struct): New function.
7251 (c_value_print_inner): Use c_value_print_struct.
7252 * c-lang.h (cp_print_value_fields): Declare.
7253
6999f067
TT
72542020-03-13 Tom Tromey <tom@tromey.com>
7255
7256 * c-valprint.c (c_value_print_array): New function.
7257 (c_value_print_inner): Use it.
7258
ce80b8bd
TT
72592020-03-13 Tom Tromey <tom@tromey.com>
7260
7261 * c-valprint.c (c_value_print_memberptr): New function.
7262 (c_value_print_inner): Use it.
7263
2faac269
TT
72642020-03-13 Tom Tromey <tom@tromey.com>
7265
7266 * c-valprint.c (c_value_print_int): New function.
7267 (c_value_print_inner): Use it.
7268
da3e2c29
TT
72692020-03-13 Tom Tromey <tom@tromey.com>
7270
7271 * c-valprint.c (c_value_print_ptr): New function.
7272 (c_value_print_inner): Use it.
7273
50836231
TT
72742020-03-13 Tom Tromey <tom@tromey.com>
7275
7276 * c-valprint.c (c_value_print_inner): Rewrite.
7277
4f412b6e
TT
72782020-03-13 Tom Tromey <tom@tromey.com>
7279
7280 * valprint.c (generic_value_print_complex): New function.
7281 (generic_value_print): Use it.
7282
f5354008
TT
72832020-03-13 Tom Tromey <tom@tromey.com>
7284
7285 * valprint.c (generic_val_print_float): Don't call
7286 val_print_scalar_formatted.
7287 (generic_val_print, generic_value_print): Update.
7288
3eec3b05
TT
72892020-03-13 Tom Tromey <tom@tromey.com>
7290
7291 * valprint.c (generic_value_print_char): New function
7292 (generic_value_print): Use it.
7293
fdddfccb
TT
72942020-03-13 Tom Tromey <tom@tromey.com>
7295
7296 * valprint.c (generic_value_print_int): New function.
7297 (generic_value_print): Use it.
7298
6dde7521
TT
72992020-03-13 Tom Tromey <tom@tromey.com>
7300
7301 * valprint.c (generic_value_print_bool): New function.
7302 (generic_value_print): Use it.
7303
4112d2e6
TT
73042020-03-13 Tom Tromey <tom@tromey.com>
7305
7306 * valprint.c (generic_val_print_func): Simplify.
7307 (generic_val_print, generic_value_print): Update.
7308
65786af6
TT
73092020-03-13 Tom Tromey <tom@tromey.com>
7310
7311 * valprint.c (generic_val_print_flags): Remove.
7312 (generic_val_print, generic_value_print): Update.
7313 (val_print_type_code_flags): Add original_value parameter.
7314
40f3ce18
TT
73152020-03-13 Tom Tromey <tom@tromey.com>
7316
7317 * valprint.c (generic_val_print): Update.
7318 (generic_value_print): Update.
7319 * valprint.c (generic_val_print_enum): Don't call
7320 val_print_scalar_formatted.
7321
2a5b130b
TT
73222020-03-13 Tom Tromey <tom@tromey.com>
7323
7324 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7325 * valprint.c (generic_value_print_ptr): New function.
7326
abc66ce9
TT
73272020-03-13 Tom Tromey <tom@tromey.com>
7328
7329 * valprint.c (generic_value_print): Rewrite.
7330
07a32858
TT
73312020-03-13 Tom Tromey <tom@tromey.com>
7332
7333 * p-valprint.c (pascal_object_print_value_fields)
7334 (pascal_object_print_value): New functions.
7335
64d64d3a
TT
73362020-03-13 Tom Tromey <tom@tromey.com>
7337
7338 * p-valprint.c (pascal_value_print_inner): Rewrite.
7339
6a95a1f5
TT
73402020-03-13 Tom Tromey <tom@tromey.com>
7341
7342 * f-valprint.c (f_value_print_innner): Rewrite.
7343
59fcdac6
TT
73442020-03-13 Tom Tromey <tom@tromey.com>
7345
7346 * m2-valprint.c (m2_print_unbounded_array): New overload.
7347 (m2_print_unbounded_array): Update.
7348 (m2_print_array_contents): Take a struct value.
7349 (m2_value_print_inner): Rewrite.
7350
d133c3e1
TT
73512020-03-13 Tom Tromey <tom@tromey.com>
7352
7353 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7354 (d_value_print_inner): New function.
7355 * d-lang.h (d_value_print_inner): Declare.
7356 * d-lang.c (d_language_defn): Use d_value_print_inner.
7357
23b0f06b
TT
73582020-03-13 Tom Tromey <tom@tromey.com>
7359
7360 * go-valprint.c (go_value_print_inner): New function.
7361 * go-lang.h (go_value_print_inner): Declare.
7362 * go-lang.c (go_language_defn): Use go_value_print_inner.
7363
5f56f7cb
TT
73642020-03-13 Tom Tromey <tom@tromey.com>
7365
7366 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7367 API.
7368 (rust_val_print): Rewrite.
7369 (rust_value_print_inner): New function, from rust_val_print.
7370 (rust_language_defn): Use rust_value_print_inner.
7371
26792ee0
TT
73722020-03-13 Tom Tromey <tom@tromey.com>
7373
7374 * ada-valprint.c (ada_value_print_inner): New function.
7375 * ada-lang.h (ada_value_print_inner): Declare.
7376 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7377
24051bbe
TT
73782020-03-13 Tom Tromey <tom@tromey.com>
7379
7380 * f-valprint.c (f_value_print_innner): New function.
7381 * f-lang.h (f_value_print_innner): Declare.
7382 * f-lang.c (f_language_defn): Use f_value_print_innner.
7383
c0941be6
TT
73842020-03-13 Tom Tromey <tom@tromey.com>
7385
7386 * p-valprint.c (pascal_value_print_inner): New function.
7387 * p-lang.h (pascal_value_print_inner): Declare.
7388 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7389
62c4663d
TT
73902020-03-13 Tom Tromey <tom@tromey.com>
7391
7392 * m2-valprint.c (m2_value_print_inner): New function.
7393 * m2-lang.h (m2_value_print_inner): Declare.
7394 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7395
62182190
TT
73962020-03-13 Tom Tromey <tom@tromey.com>
7397
7398 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7399 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7400 * c-valprint.c (c_value_print_inner): New function.
7401 * c-lang.h (c_value_print_inner): Declare.
7402 * c-lang.c (c_language_defn, cplus_language_defn)
7403 (asm_language_defn, minimal_language_defn): Use
7404 c_value_print_inner.
7405
1e592a8a
TT
74062020-03-13 Tom Tromey <tom@tromey.com>
7407
7408 * p-valprint.c (pascal_object_print_value_fields): Now static.
7409 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7410
7fe471e9
TT
74112020-03-13 Tom Tromey <tom@tromey.com>
7412
7413 * c-valprint.c (c_val_print_array): Simplify.
7414
d121c6ce
TT
74152020-03-13 Tom Tromey <tom@tromey.com>
7416
7417 * valprint.c (value_print_array_elements): New function.
7418 * valprint.h (value_print_array_elements): Declare.
7419
4dba70ee
TT
74202020-03-13 Tom Tromey <tom@tromey.com>
7421
7422 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7423 * mips-tdep.c (mips_print_register): Use
7424 value_print_scalar_formatted.
7425
4f9ae810
TT
74262020-03-13 Tom Tromey <tom@tromey.com>
7427
7428 * valprint.h (value_print_scalar_formatted): Declare.
7429 * valprint.c (value_print_scalar_formatted): New function.
7430
156bfec9
TT
74312020-03-13 Tom Tromey <tom@tromey.com>
7432
7433 * valprint.h (generic_value_print): Declare.
7434 * valprint.c (generic_value_print): New function.
7435
2b4e573d
TT
74362020-03-13 Tom Tromey <tom@tromey.com>
7437
7438 * valprint.c (do_val_print): Call la_value_print_inner, if
7439 available.
7440 * rust-lang.c (rust_language_defn): Update.
7441 * p-lang.c (pascal_language_defn): Update.
7442 * opencl-lang.c (opencl_language_defn): Update.
7443 * objc-lang.c (objc_language_defn): Update.
7444 * m2-lang.c (m2_language_defn): Update.
7445 * language.h (struct language_defn) <la_value_print_inner>: New
7446 member.
7447 * language.c (unknown_language_defn, auto_language_defn): Update.
7448 * go-lang.c (go_language_defn): Update.
7449 * f-lang.c (f_language_defn): Update.
7450 * d-lang.c (d_language_defn): Update.
7451 * c-lang.c (c_language_defn, cplus_language_defn)
7452 (asm_language_defn, minimal_language_defn): Update.
7453 * ada-lang.c (ada_language_defn): Update.
7454
a1f6a07c
TT
74552020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * c-valprint.c (c_value_print): Use common_val_print.
7458
410cf315
TT
74592020-03-13 Tom Tromey <tom@tromey.com>
7460
7461 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7462
72a45c93
TT
74632020-03-13 Tom Tromey <tom@tromey.com>
7464
7465 * f-valprint.c (f77_print_array_1, f_val_print): Use
7466 common_val_print.
7467
040f66bd
TT
74682020-03-13 Tom Tromey <tom@tromey.com>
7469
7470 * riscv-tdep.c (riscv_print_one_register_info): Use
7471 common_val_print.
7472
a6e05a6c
TT
74732020-03-13 Tom Tromey <tom@tromey.com>
7474
7475 * mi/mi-main.c (output_register): Use common_val_print.
7476
3444c526
TT
74772020-03-13 Tom Tromey <tom@tromey.com>
7478
7479 * infcmd.c (default_print_one_register_info): Use
7480 common_val_print.
7481
c2a44efe
TT
74822020-03-13 Tom Tromey <tom@tromey.com>
7483
7484 * valprint.h (common_val_print_checked): Declare.
7485 * valprint.c (common_val_print_checked): New function.
7486 * stack.c (print_frame_arg): Use common_val_print_checked.
7487
b0c26e99
TT
74882020-03-13 Tom Tromey <tom@tromey.com>
7489
7490 * valprint.c (do_val_print): New function, from val_print.
7491 (val_print): Use do_val_print.
7492 (common_val_print): Use do_val_print.
7493
ce3acbe9
TT
74942020-03-13 Tom Tromey <tom@tromey.com>
7495
7496 * valprint.c (value_print): Use scoped_value_mark.
7497
96c7f873
TV
74982020-03-13 Tom de Vries <tdevries@suse.de>
7499
7500 PR symtab/25646
7501 * psymtab.c (partial_symtab::partial_symtab): Don't set
7502 globals_offset and statics_offset. Push element onto
7503 current_global_psymbols and current_static_psymbols stacks.
7504 (concat): New function.
7505 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7506 element from current_global_psymbols and current_static_psymbols
7507 stacks. Concat popped elements to global_psymbols and
7508 static_symbols.
7509 (add_psymbol_to_list): Use current_global_psymbols and
7510 current_static_psymbols stacks.
7511 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7512 current_static_psymbols fields.
7513
6ba0a321
CB
75142020-03-12 Christian Biesinger <cbiesinger@google.com>
7515
7516 * corelow.c (sniff_core_bfd): Remove.
7517 (class core_target) <m_core_vec>: Remove.
7518 (core_target::core_target): Update.
7519 (core_file_fns): Remove.
7520 (deprecated_add_core_fns): Remove.
7521 (default_core_sniffer): Remove.
7522 (sniff_core_bfd): Remove.
7523 (default_check_format): Remove.
7524 (gdb_check_format): Remove.
7525 (core_target_open): Update.
7526 (core_target::get_core_register_section): Update.
7527 (get_core_registers_cb): Update.
7528 (core_target::fetch_registers): Update.
7529 * gdbcore.h (struct core_fns): Remove.
7530 (deprecated_add_core_fns): Remove.
7531 (default_core_sniffer): Remove.
7532 (default_check_format): Remove.
7533
227031b2
TT
75342020-03-12 Tom Tromey <tom@tromey.com>
7535
7536 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7537 CORE_ADDR.
7538 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7539
53807e9f
TT
75402020-03-12 Tom Tromey <tom@tromey.com>
7541
7542 * remote.c (remote_target::download_tracepoint)
7543 (remote_target::enable_tracepoint)
7544 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7545 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7546 sprintf_vma.
7547
64f25102
TT
75482020-03-12 Tom Tromey <tom@tromey.com>
7549
7550 * symfile-mem.c: Update CORE_ADDR size assert.
7551
272cd5a3
SM
75522020-03-12 Simon Marchi <simon.marchi@efficios.com>
7553
7554 * selftest.m4: Move to gdbsupport/.
7555 * acinclude.m4: Update path to selftest.m4.
7556
74cd3f9d
SM
75572020-03-12 Simon Marchi <simon.marchi@efficios.com>
7558
7559 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7560 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7561 gdbarch-selfselftests.c and selftest-arch.c.
7562 (SUBDIR_UNITTESTS_OBS): Rename to...
7563 (SELFTESTS_OBS): ... this.
7564 (COMMON_SFILES): Remove disasm-selftests.c and
7565 gdbarch-selftests.c.
7566 * configure.ac: Don't add selftest-arch.{c,o} to
7567 CONFIG_{SRCS,OBS}.
7568 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7569 preprocessor conditions.
7570
db6878ac
SM
75712020-03-12 Simon Marchi <simon.marchi@efficios.com>
7572
7573 * configure.ac: Don't source bfd/development.sh.
7574 * selftest.m4: Modify comment.
7575 * configure: Re-generate.
7576
4d696a5c
SM
75772020-03-12 Simon Marchi <simon.marchi@efficios.com>
7578
7579 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7580 not "true" or "false".
7581 * configure: Re-generate.
7582
8dd8e1c7
CB
75832020-03-12 Christian Biesinger <cbiesinger@google.com>
7584
7585 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7586 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7587 renamed to arm_nbsd_supply_gregset.
7588 (fetch_register): Update to call arm_nbsd_supply_gregset.
7589 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7590 (arm_netbsd_nat_target::fetch_registers): Update.
7591 (fetch_elfcore_registers): Removed.
7592 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7593 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7594 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7595 not require NetBSD system headers.
7596 (arm_nbsd_regset): New struct.
7597 (arm_nbsd_iterate_over_regset_sections): New function.
7598 (arm_netbsd_init_abi_common): Updated to call
7599 set_gdbarch_iterate_over_regset_sections.
7600 * arm-nbsd-tdep.h: New file.
7601
dd69bf7a
KB
76022020-03-11 Kevin Buettner <kevinb@redhat.com>
7603
7604 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7605 recursion.
7606
a0761e34
SM
76072020-03-11 Simon Marchi <simon.marchi@efficios.com>
7608
7609 * configure: Re-generate.
7610
e7a82140
TT
76112020-03-11 Tom Tromey <tromey@adacore.com>
7612
7613 * ada-typeprint.c (print_choices): Fix comment.
7614
dcc050c8
AB
76152020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7616
7617 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7618 previous item in the list, when the list has no items.
7619
1c33af77
TV
76202020-03-11 Tom de Vries <tdevries@suse.de>
7621
7622 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7623 PROP_LOCLIST handling code.
7624
8c95582d
AB
76252020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7626
7627 * buildsym-legacy.c (record_line): Pass extra parameter to
7628 record_line.
7629 * buildsym.c (buildsym_compunit::record_line): Take an extra
7630 parameter, reduce duplication in the line table, and record the
7631 is_stmt flag in the line table.
7632 * buildsym.h (buildsym_compunit::record_line): Add extra
7633 parameter.
7634 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7635 non-statement lines.
7636 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7637 this to the symtab builder.
7638 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7639 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7640 through to dwarf_record_line_1.
7641 * infrun.c (process_event_stop_test): When stepping, don't stop at
7642 a non-statement instruction, and only refresh the step info when
7643 we land in the middle of a line's range. Also add an extra
7644 comment.
7645 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7646 field.
7647 * record-btrace.c (btrace_find_line_range): Only record lines
7648 marked as is-statement.
7649 * stack.c (frame_show_address): Show the frame address if we are
7650 in a non-statement sal.
7651 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7652 (maintenance_print_one_line_table): Print a header for the is_stmt
7653 column, and include is_stmt information in the output.
7654 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7655 preference to non-statements.
7656 (find_pcs_for_symtab_line): Prefer is-statement entries.
7657 (find_line_common): Likewise.
7658 * symtab.h (struct linetable_entry): Add is_stmt field.
7659 (struct symtab_and_line): Likewise.
7660 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7661 arranging the line table.
7662
e4003a34
TV
76632020-03-07 Tom de Vries <tdevries@suse.de>
7664
7665 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7666 DIE.
7667
e8932576
TT
76682020-03-07 Tom Tromey <tom@tromey.com>
7669
7670 * valops.c (value_literal_complex): Remove obsolete comment.
7671 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7672 comment.
7673
29734269
SM
76742020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7675
7676 * infrun.h: Forward-declare thread_info.
7677 (set_step_info): Add thread_info parameter, add doc.
7678 * infrun.c (set_step_info): Add thread_info parameter, move doc
7679 to header.
7680 * infrun.c (process_event_stop_test): Pass thread to
7681 set_step_info call.
7682 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7683 set_step_info.
7684 (prepare_one_step): Add thread_info parameter, pass it to
7685 set_step_frame and prepare_one_step (recursive) call.
7686 (step_1): Pass thread to prepare_one_step call.
7687 (step_command_fsm::should_stop): Pass thread to
7688 prepare_one_step.
7689 (until_next_fsm): Pass thread to set_step_frame call.
7690 (finish_command): Pass thread to set_step_info call.
7691
b7d64b29
HD
76922020-03-06 Hannes Domani <ssbssa@yahoo.de>
7693
7694 * windows-tdep.c (windows_solib_create_inferior_hook):
7695 Check if inferior is running.
7696
09f2921c
TV
76972020-03-06 Tom de Vries <tdevries@suse.de>
7698
7699 * NEWS: Fix "the the".
7700 * ctfread.c: Same.
7701
fd760e79
TV
77022020-03-06 Tom de Vries <tdevries@suse.de>
7703
7704 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7705
20ea4a60
AB
77062020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7707
7708 * .dir-locals.el: Add a comment referencing the other copies of
7709 this file.
7710
0afbabf0
JB
77112020-03-05 John Baldwin <jhb@FreeBSD.org>
7712
7713 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7714 psargs.
7715
842806cb
TBA
77162020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7717
7718 * .gitattributes: New file.
7719
be1e3d3e
TT
77202020-03-04 Tom Tromey <tom@tromey.com>
7721
7722 * symmisc.c (print_symbol_bcache_statistics)
7723 (print_objfile_statistics): Update.
7724 * symfile.c (allocate_symtab): Use intern.
7725 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7726 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7727 macro_cache>: Remove.
7728 <string_cache>: New member.
7729 (struct objfile) <intern>: New methods.
7730 * elfread.c (elf_symtab_read): Use intern.
7731 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7732 (dwarf2_compute_name, dwarf2_physname)
7733 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7734 names.
7735 (guess_partial_die_structure_name): Update.
7736 (partial_die_info::fixup): Intern name.
7737 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7738 name.
7739 (dwarf2_name): Intern name. Update.
7740 * buildsym.c (buildsym_compunit::get_macro_table): Use
7741 string_cache.
7742
4e7625fd
TT
77432020-03-04 Tom Tromey <tom@tromey.com>
7744
7745 * jit.c (bfd_open_from_target_memory): Make "target" const.
7746 * corefile.c (gnutarget): Now const.
7747 * gdbcore.h (gnutarget): Now const.
7748
46f9f931
HD
77492020-03-04 Hannes Domani <ssbssa@yahoo.de>
7750
7751 * NEWS: Mention support for WOW64 processes.
7752 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7753 (amd64_windows_segment_register_p): Remove static.
7754 (_initialize_amd64_windows_nat): Update.
7755 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7756 * i386-windows-nat.c (context_offset): Update.
7757 (i386_mappings): Rename and remove static.
7758 (i386_windows_segment_register_p): Remove static.
7759 (_initialize_i386_windows_nat): Update.
7760 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7761 (STATUS_WX86_SINGLE_STEP): New macro.
7762 (EnumProcessModulesEx): New macro.
7763 (Wow64SuspendThread): New macro.
7764 (Wow64GetThreadContext): New macro.
7765 (Wow64SetThreadContext): New macro.
7766 (Wow64GetThreadSelectorEntry): New macro.
7767 (windows_set_context_register_offsets): Add static.
7768 (windows_set_segment_register_p): Likewise.
7769 (windows_add_thread): Adapt for WOW64 processes.
7770 (windows_fetch_one_register): Likewise.
7771 (windows_nat_target::fetch_registers): Likewise.
7772 (windows_store_one_register): Likewise.
7773 (display_selector): Likewise.
7774 (display_selectors): Likewise.
7775 (handle_exception): Likewise.
7776 (windows_continue): Likewise.
7777 (windows_nat_target::resume): Likewise.
7778 (windows_add_all_dlls): Likewise.
7779 (do_initial_windows_stuff): Likewise.
7780 (windows_nat_target::attach): Likewise.
7781 (windows_get_exec_module_filename): Likewise.
7782 (windows_nat_target::create_inferior): Likewise.
7783 (windows_xfer_siginfo): Likewise.
7784 (_initialize_loadable): Initialize Wow64SuspendThread,
7785 Wow64GetThreadContext, Wow64SetThreadContext,
7786 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7787 * windows-nat.h (windows_set_context_register_offsets):
7788 Remove declaration.
7789 (windows_set_segment_register_p): Likewise.
7790 (i386_windows_segment_register_p): Add declaration.
7791 (amd64_windows_segment_register_p): Likewise.
7792
440cf44e
LM
77932020-03-04 Luis Machado <luis.machado@linaro.org>
7794
7795 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7796 in "info registers" for AArch64/ARM.
7797
7798 The change caused "info registers" to not print GPR's.
7799
7800 gdb/ChangeLog:
7801
7802 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7803
7804 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7805 when reg->group is empty and reggroup is not.
7806
1009d92f
TT
78072020-03-03 Tom Tromey <tromey@adacore.com>
7808
7809 * dwarf2/frame.c (struct dwarf2_frame_cache)
7810 <checked_tailcall_bottom, entry_cfa_sp_offset,
7811 entry_cfa_sp_offset_p>: Remove members.
7812 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7813 (dwarf2_frame_prev_register): Don't call
7814 dwarf2_tailcall_sniffer_first.
7815 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7816 * frame-unwind.c (add_unwinder): New fuction.
7817 (frame_unwind_init): Use it. Add tailcall unwinder.
7818
5e5d66b6
AB
78192020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7820 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7821
7822 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7823 value should be printed as true.
7824
584cf46d
HD
78252020-03-03 Hannes Domani <ssbssa@yahoo.de>
7826
7827 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7828 (windows_init_abi): Set and use windows_so_ops.
7829
7b973adc
SDJ
78302020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7831
7832 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7833 when verifying if dealing with a convenience variable.
7834
bb7b70ab
LM
78352020-03-03 Luis Machado <luis.machado@linaro.org>
7836
7837 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7838
9822cb57
SM
78392020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7840
7841 * infrun.c (gdbarch_supports_displaced_stepping): New.
7842 (use_displaced_stepping): Break up conditions in smaller pieces.
7843 Use gdbarch_supports_displaced_stepping.
7844 (displaced_step_prepare_throw): Use
7845 gdbarch_supports_displaced_stepping.
7846
63e163f2
AB
78472020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7848
7849 * NEWS: Mention new behaviour of the history filename.
7850 * top.c (write_history_p): Add comment.
7851 (show_write_history_p): Add header comment, give a different
7852 message when history writing is on, but the history filename is
7853 empty.
7854 (history_filename): Add comment.
7855 (history_filename_empty): New function.
7856 (show_history_filename): Add header comment, give a different
7857 message when the filename is empty.
7858 (init_history): Compare history_filename against nullptr, and only
7859 read history if the filename is not empty.
7860 (set_history_filename): Add header comment, and only make
7861 non-empty filenames absolute.
7862 (init_main): Make the filename argument to 'set history filename'
7863 optional.
7864
81b86b97
CB
78652020-03-02 Christian Biesinger <cbiesinger@google.com>
7866
7867 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7868 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7869 (fetch_fp_register): Update.
7870 (fetch_fp_regs): Update.
7871 (store_fp_register): Update.
7872 (store_fp_regs): Update.
7873 (arm_netbsd_nat_target::read_description): New function.
7874 (fetch_elfcore_registers): Update.
7875
24ed6739
AB
78762020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7879 general_thread if the stop reply is missing a thread-id.
7880 (remote_target::process_stop_reply): Use the first non-exited
7881 thread if the target didn't pass a thread-id.
7882 * infrun.c (do_target_wait): Move call to
7883 switch_to_inferior_no_thread to ....
7884 (do_target_wait_1): ... here.
7885
a84bb2a0
JT
78862020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7887
7888 * debuginfod-support.c: Include defs.h first.
7889
658dadf0
TV
78902020-02-28 Tom de Vries <tdevries@suse.de>
7891
7892 * symfile.c (set_initial_language): Use default language for lookup.
7893
4ebe4877
SM
78942020-02-28 Simon Marchi <simon.marchi@efficios.com>
7895
7896 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7897 reader variable, pass `this` to read_cutu_die_from_dwo.
7898
e5da1139
AM
78992020-02-27 Aaron Merey <amerey@redhat.com>
7900
7901 * source.c (open_source_file): Check for nullptr when computing
7902 srcpath.
7903
317f7127
TT
79042020-02-27 Tom Tromey <tromey@adacore.com>
7905
7906 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7907 member.
7908 (dwarf2_add_field): Don't update nfields.
7909 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7910
3104d9ee
AB
79112020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7912
7913 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7914 abs.
7915
b83470bf
TT
79162020-02-26 Tom Tromey <tom@tromey.com>
7917
7918 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7919 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7920 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7921 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7922 per_cu_data.
7923
edfe0a0c
TT
79242020-02-26 Tom Tromey <tom@tromey.com>
7925
7926 * dwarf2/index-write.c (psym_index_map): Change type.
7927 (add_address_entry_worker, write_one_signatured_type)
7928 (recursively_count_psymbols, recursively_write_psymbols)
7929 (class debug_names, psyms_seen_size, write_gdbindex)
7930 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7931
0d79cdc4
AM
79322020-02-26 Aaron Merey <amerey@redhat.com>
7933
7934 * Makefile.in: Handle optional debuginfod support.
7935 * NEWS: Update.
7936 * README: Add --with-debuginfod summary.
7937 * config.in: Regenerate.
7938 * configure: Regenerate.
7939 * configure.ac: Handle optional debuginfod support.
7940 * debuginfod-support.c: debuginfod helper functions.
7941 * debuginfod-support.h: Ditto.
7942 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7943 summary.
7944 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7945 when a dwz file cannot be found.
7946 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7947 debuginfo file cannot be found.
7948 * source.c (open_source_file): Query debuginfod servers when a
7949 source file cannot be found.
7950 * top.c (print_gdb_configuration): Include
7951 --{with,without}-debuginfod in the output.
7952
b65ce565
JG
79532020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7954
7955 * thread.c (thr_try_catch_cmd): Print thread name.
7956
d4c9a4f8
SM
79572020-02-26 Simon Marchi <simon.marchi@efficios.com>
7958
7959 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7960 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7961 dwarf2_fetch_die_type_sect_off): Move to...
7962 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7963 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7964 dwarf2_fetch_die_type_sect_off): ... here.
7965 * dwarf2/read.c (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 doc to header file.
7968
0dce4280
TV
79692020-02-26 Tom de Vries <tdevries@suse.de>
7970
7971 PR gdb/25603
7972 * symfile.c (set_initial_language): Exit-early if
7973 language_mode == language_mode_manual.
7974
450a1bfc
SM
79752020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7976
7977 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7978 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7979 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7980
9e80cfa1
AB
79812020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7982
7983 * gdbtypes.c (create_array_type_with_stride): Handle negative
7984 array strides.
7985 * valarith.c (value_subscripted_rvalue): Likewise.
7986
09624f1f
LM
79872020-02-25 Luis Machado <luis.machado@linaro.org>
7988
7989 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7990
8cb5117c
SM
79912020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7992
7993 * loc.h (dwarf2_get_die_type): Move to...
7994 * read.h (dwarf2_get_die_type): ... here.
7995 * read.c (dwarf2_get_die_type): Move doc to header.
7996
c325c44e
JB
79972020-02-25 Joel Brobecker <brobecker@adacore.com>
7998
7999 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8000 'gnulib/Makefile.in' to the list.
8001
4ac93832
TT
80022020-02-24 Tom Tromey <tom@tromey.com>
8003
8004 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8005 Remove.
8006 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8007 XOBNEWVEC.
8008
197400e8
TT
80092020-02-24 Tom Tromey <tom@tromey.com>
8010
8011 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8012 New method.
8013 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8014 (dw2_do_instantiate_symtab, dw2_get_file_names)
8015 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8016
76935768
TT
80172020-02-24 Tom Tromey <tom@tromey.com>
8018
8019 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8020 make_scoped_restore.
8021 (dwarf2_psymtab::read_symtab): Don't clear
8022 reading_partial_symbols.
8023
a88ef40d
TV
80242020-02-24 Tom de Vries <tdevries@suse.de>
8025
8026 PR gdb/25592
8027 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8028
c9af6521
TV
80292020-02-24 Tom de Vries <tdevries@suse.de>
8030
8031 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8032 commands layout next/prev/regs.
8033
5707a07a
TT
80342020-02-22 Tom Tromey <tom@tromey.com>
8035
8036 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8037 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8038
3b0fb49e
TT
80392020-02-22 Tom Tromey <tom@tromey.com>
8040
8041 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8042
283be8bf
TT
80432020-02-22 Tom Tromey <tom@tromey.com>
8044
8045 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8046 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8047 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8048 * tui/tui.c (_initialize_tui): Add usage text.
8049
ca793b96
TT
80502020-02-22 Tom Tromey <tom@tromey.com>
8051
8052 * tui/tui-win.c (tui_set_focus_command)
8053 (tui_set_win_height_command): Use error_no_arg.
8054 (_initialize_tui_win): Update help text.
8055 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8056
432b5c40
TT
80572020-02-22 Tom Tromey <tom@tromey.com>
8058
8059 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8060 * tui/tui-disasm.h (struct tui_disasm_window)
8061 <display_start_addr>: Declare.
8062 * tui/tui-source.h (struct tui_source_window)
8063 <display_start_addr>: Declare.
8064 * tui/tui-winsource.h (struct tui_source_window_base)
8065 <show_source_line, display_start_addr>: New methods.
8066 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8067 Rename and move to protected section.
8068 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8069 (tui_source_window_base::do_erase_source_content): Update.
8070 (tui_source_window_base::show_source_line): Now a method.
8071 (tui_source_window_base::show_source_content)
8072 (tui_source_window_base::tui_source_window_base)
8073 (tui_source_window_base::rerender)
8074 (tui_source_window_base::refill)
8075 (tui_source_window_base::do_scroll_horizontal)
8076 (tui_source_window_base::set_is_exec_point_at)
8077 (tui_source_window_base::update_breakpoint_info)
8078 (tui_source_window_base::update_exec_info): Update.
8079 * tui/tui-source.c (tui_source_window::set_contents)
8080 (tui_source_window::showing_source_p)
8081 (tui_source_window::do_scroll_vertical)
8082 (tui_source_window::location_matches_p)
8083 (tui_source_window::line_is_displayed): Update.
8084 (tui_source_window::display_start_addr): New method.
8085 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8086 (tui_disasm_window::do_scroll_vertical)
8087 (tui_disasm_window::location_matches_p): Update.
8088 (tui_disasm_window::display_start_addr): New method.
8089
01b1af32
TT
80902020-02-22 Tom Tromey <tom@tromey.com>
8091
8092 * NEWS: Add entry for gdb.register_window_type.
8093 * tui/tui-layout.h (window_factory): New typedef.
8094 (tui_register_window): Declare.
8095 * tui/tui-layout.c (saved_tui_windows): New global.
8096 (tui_apply_current_layout): Use it.
8097 (tui_register_window): New function.
8098 * python/python.c (do_start_initialization): Call
8099 gdbpy_initialize_tui.
8100 (python_GdbMethods): Add "register_window_type" function.
8101 * python/python-internal.h (gdbpy_register_tui_window)
8102 (gdbpy_initialize_tui): Declare.
8103 * python/py-tui.c: New file.
8104 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8105
fc96d20b
TT
81062020-02-22 Tom Tromey <tom@tromey.com>
8107
8108 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8109
935c78c0
TT
81102020-02-22 Tom Tromey <tom@tromey.com>
8111
8112 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8113 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8114 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8115 (tui_set_win_focus_to): Move from tui-win.c.
8116
0240c8f1
TT
81172020-02-22 Tom Tromey <tom@tromey.com>
8118
8119 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8120 functions.
8121 (known_window_types): New global.
8122 (tui_get_window_by_name): Reimplement.
8123 (initialize_known_windows): New function.
8124 (validate_window_name): Rewrite.
8125 (_initialize_tui_layout): Call initialize_known_windows.
8126
fdb01f0c
TT
81272020-02-22 Tom Tromey <tom@tromey.com>
8128
8129 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8130 Remove constants.
8131 * tui/tui-winsource.h (struct tui_source_window_base)
8132 <tui_source_window_base>: Remove parameter.
8133 * tui/tui-winsource.c
8134 (tui_source_window_base::tui_source_window_base): Remove
8135 parameter.
8136 (tui_source_window_base::refill): Update.
8137 * tui/tui-stack.h (struct tui_locator_window)
8138 <tui_locator_window>: Update.
8139 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8140 Default the constructor.
8141 * tui/tui-regs.h (struct tui_data_item_window)
8142 <tui_data_item_window>: Default the constructor.
8143 (struct tui_data_window) <tui_data_window>: Likewise.
8144 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8145 Default the constructor.
8146 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8147 Default the constructor.
8148 <type>: Remove.
8149 (struct tui_win_info) <tui_win_info>: Default the constructor.
8150 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8151 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8152 Default the constructor.
8153
865a5aec
TT
81542020-02-22 Tom Tromey <tom@tromey.com>
8155
8156 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8157 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8158 * tui/tui-win.c (tui_resize_all): Don't call
8159 tui_delete_invisible_windows.
8160 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8161 done.
8162 (tui_set_layout): Update.
8163 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8164 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8165 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8166
e098d18c
TT
81672020-02-22 Tom Tromey <tom@tromey.com>
8168
8169 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8170 correctly.
8171
eb9c8874
TT
81722020-02-22 Tom Tromey <tom@tromey.com>
8173
8174 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8175
7eed1a8e
TT
81762020-02-22 Tom Tromey <tom@tromey.com>
8177
8178 * tui/tui-winsource.h (struct tui_source_window_iterator)
8179 <inner_iterator>: New etytypedef.
8180 <tui_source_window_iterator>: Take "end" parameter.
8181 <tui_source_window_iterator>: Take iterator.
8182 <operator*, advance>: Update.
8183 <m_iter>: Change type.
8184 <m_end>: New field.
8185 (struct tui_source_windows) <begin, end>: Update.
8186 * tui/tui-layout.c (tui_windows): New global.
8187 (tui_apply_current_layout): Clear tui_windows.
8188 (tui_layout_window::apply): Update tui_windows.
8189 * tui/tui-data.h (tui_windows): Declare.
8190 (all_tui_windows): Now inline function.
8191 (class tui_window_iterator, struct all_tui_windows): Remove.
8192
7c043ba6
TT
81932020-02-22 Tom Tromey <tom@tromey.com>
8194
8195 PR tui/17850:
8196 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8197 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8198 "height" argument.
8199 (class tui_layout_window) <get_sizes>: Likewise.
8200 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8201 argument.
8202 <get_sizes>: Add "height" argument.
8203 <m_vertical>: New field.
8204 * tui/tui-layout.c (tui_layout_split::clone): Update.
8205 (tui_layout_split::get_sizes): Add "height" argument.
8206 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8207 (tui_new_layout_command): Parse "-horizontal".
8208 (_initialize_tui_layout): Update help string.
8209 (tui_layout_split::specification): Add "-horizontal" when needed.
8210 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8211 argument.
8212 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8213 New methods.
8214
6bc56648
TT
82152020-02-22 Tom Tromey <tom@tromey.com>
8216
8217 * tui/tui-layout.h (enum tui_adjust_result): New.
8218 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8219 (class tui_layout_window) <adjust_size>: Return
8220 tui_adjust_result. Rewrite.
8221 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8222 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8223
c22fef7e
TT
82242020-02-22 Tom Tromey <tom@tromey.com>
8225
8226 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8227 parameter and return types.
8228 (class tui_layout_base) <specification>: Add "depth".
8229 (class tui_layout_window) <specification>: Add "depth".
8230 (class tui_layout_split) <specification>: Add "depth".
8231 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8232 and return types.
8233 (tui_new_layout_command): Parse sub-layouts.
8234 (_initialize_tui_layout): Update help string.
8235 (tui_layout_window::specification): Add "depth".
8236 (add_layout_command): Update.
8237
ee325b61
TT
82382020-02-22 Tom Tromey <tom@tromey.com>
8239
8240 * NEWS: Add "tui new-layout" item.
8241 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8242 Add new-layout command to help text.
8243 (validate_window_name): New function.
8244 (tui_new_layout_command): New function.
8245 (_initialize_tui_layout): Register "new-layout".
8246 (tui_layout_window::specification): New method.
8247 (tui_layout_window::specification): New method.
8248 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8249 method.
8250 (class tui_layout_window) <specification>: New method.
8251 (class tui_layout_split) <specification>: New method.
8252
416eb92d
TT
82532020-02-22 Tom Tromey <tom@tromey.com>
8254
8255 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8256 * tui/tui-win.c (window_name_completer): Update comment.
8257 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8258 Declare method.
8259 (class tui_layout_window) <replace_window>: Likewise.
8260 (class tui_layout_split) <replace_window>: Likewise.
8261 (tui_set_layout): Don't declare.
8262 (tui_set_initial_layout): Declare function.
8263 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8264 (asm_regs_layout): New globals.
8265 (tui_current_layout, show_layout): Remove.
8266 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8267 (find_layout, tui_apply_layout): New function.
8268 (layout_completer): Remove.
8269 (tui_next_layout): Reimplement.
8270 (tui_next_layout_command): New function.
8271 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8272 (tui_regs_layout): Reimplement.
8273 (tui_regs_layout_command): New function.
8274 (extract_display_start_addr): Rewrite.
8275 (next_layout, prev_layout): Remove.
8276 (tui_layout_window::replace_window): New method.
8277 (tui_layout_split::replace_window): New method.
8278 (destroy_layout): New function.
8279 (layout_list): New global.
8280 (add_layout_command): New function.
8281 (initialize_layouts): Update.
8282 (tui_layout_command): New function.
8283 (_initialize_tui_layout): Install "layout" commands.
8284 * tui/tui-data.h (enum tui_layout_type): Remove.
8285 (tui_current_layout): Don't declare.
8286
0dbc2fc7
TT
82872020-02-22 Tom Tromey <tom@tromey.com>
8288
8289 * tui/tui-regs.c (tui_reg_layout): Remove.
8290 (tui_reg_command): Use tui_regs_layout.
8291 * tui/tui-layout.h (tui_reg_command): Declare.
8292 * tui/tui-layout.c (tui_reg_command): New function.
8293
5afe342e
TT
82942020-02-22 Tom Tromey <tom@tromey.com>
8295
8296 * tui/tui.c (tui_rl_delete_other_windows): Call
8297 tui_remove_some_windows.
8298 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8299 Declare method.
8300 (class tui_layout_window) <remove_windows>: New method.
8301 (class tui_layout_split) <remove_windows>: Declare.
8302 (tui_remove_some_windows): Declare.
8303 * tui/tui-layout.c (tui_remove_some_windows): New function.
8304 (tui_layout_split::remove_windows): New method.
8305
427326a8
TT
83062020-02-22 Tom Tromey <tom@tromey.com>
8307
8308 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8309 * tui/tui-layout.h (tui_next_layout): Declare.
8310 * tui/tui-layout.c (tui_next_layout): New function.
8311
3fe12b6d
TT
83122020-02-22 Tom Tromey <tom@tromey.com>
8313
8314 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8315 correct coordinates.
8316
59b8b5d2
TT
83172020-02-22 Tom Tromey <tom@tromey.com>
8318
8319 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8320 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8321 DATA_WIN case.
8322
2a3d458b
TT
83232020-02-22 Tom Tromey <tom@tromey.com>
8324
8325 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8326 TUI_DISASM_WIN, not tui_win_list.
8327
3f0cbb04
TT
83282020-02-22 Tom Tromey <tom@tromey.com>
8329
8330 * valprint.c (generic_val_print_enum_1)
8331 (val_print_type_code_flags): Style member names.
8332 * rust-lang.c (val_print_struct, rust_print_enum)
8333 (rust_print_struct_def, rust_internal_print_type): Style member
8334 names.
8335 * p-valprint.c (pascal_object_print_value_fields): Style member
8336 names. Only call fprintf_symbol_filtered for static members.
8337 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8338 * f-valprint.c (f_val_print): Style member names.
8339 * f-typeprint.c (f_type_print_base): Style member names.
8340 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8341 call fprintf_symbol_filtered for static members.
8342 (cp_print_class_member): Style member names.
8343 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8344 member names.
8345 * ada-valprint.c (ada_print_scalar): Style enum names.
8346 (ada_val_print_enum): Likewise.
8347 * ada-typeprint.c (print_enum_type): Style enum names.
8348
d4d947ae
TT
83492020-02-21 Tom Tromey <tom@tromey.com>
8350
8351 * psympriv.h (struct partial_symtab): Update comment.
8352
e94e944b
TT
83532020-02-21 Tom Tromey <tromey@adacore.com>
8354
8355 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8356 type is CORE_ADDR.
8357
1eb73179
TV
83582020-02-21 Tom de Vries <tdevries@suse.de>
8359
8360 PR gdb/25534
8361 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8362 if dependencies[i]->user != NULL.
8363
4f180d53
AT
83642020-02-21 Ali Tamur <tamur@google.com>
8365
8366 * dwarf2/read.c (dwarf2_name): Add null check.
8367
22b6cd70
TT
83682020-02-20 Tom Tromey <tom@tromey.com>
8369
8370 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8371 ">=", in binary search.
8372 (dwarf2_find_containing_comp_unit): New overload.
8373 (run_test): New self-test.
8374 (_initialize_dwarf2_read): Register new test.
8375
bd0cf5a6
NC
83762020-02-20 Nelson Chu <nelson.chu@sifive.com>
8377
8378 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8379 * riscv-tdep.h: Likewise.
8380 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8381 rv32-only CSR.
8382 * features/riscv/64bit-csr.xml: Regenerated.
8383
3f702acd
SDJ
83842020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8385 Tom Tromey <tom@tromey.com>
8386
8387 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8388 of 'fputc_unfiltered'.
8389 (putchar_unfiltered): Call 'fputc_unfiltered'.
8390 (fputc_unfiltered): Call 'fputs_unfiltered'.
8391
d13c7322
AB
83922020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8393
8394 * config.in: Regenerate.
8395 * configure: Regenerate.
8396 * configure.ac: Add --with-python-libdir option.
8397 * main.c: Use WITH_PYTHON_LIBDIR.
8398
869d8950
TT
83992020-02-19 Tom Tromey <tom@tromey.com>
8400
8401 * symtab.c (general_symbol_info::compute_and_set_names): Use
8402 obstack_strndup. Simplify call to symbol_set_demangled_name.
8403
298e9637
SM
84042020-02-19 Simon Marchi <simon.marchi@efficios.com>
8405
8406 * dwarf2/read.c (allocate_signatured_type_table,
8407 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8408 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8409 Remove objfile parameter, update all callers.
8410
08410482
DE
84112020-02-19 Doug Evans <dje@google.com>
8412
8413 PR rust/25535
8414 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8415 rust_enum_variant calculation.
8416
dfdeeca1
TT
84172020-02-19 Tom Tromey <tromey@adacore.com>
8418
8419 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8420
2ef5453b
TT
84212020-02-19 Tom Tromey <tromey@adacore.com>
8422
8423 * ada-lang.c (cache_symbol): Use obstack_strdup.
8424
9f1528a1
AB
84252020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8426
8427 * configure: Regenerate.
8428
d3c22fa8
TT
84292020-02-19 Tom Tromey <tromey@adacore.com>
8430
8431 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8432 NULL check.
8433
bf84f706
MR
84342020-02-19 Maciej W. Rozycki <macro@wdc.com>
8435
8436 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8437
d1c9b20f
AB
84382020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8439
8440 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8441 if GDBSERVER is not defined.
8442 (riscv_tdesc_cache): Likewise, also store const target_desc.
8443 (STATIC_IN_GDB): Define.
8444 (riscv_create_target_description): Update declaration with
8445 STATIC_IN_GDB.
8446 (riscv_lookup_target_description): New function, only define if
8447 GDBSERVER is not defined.
8448 * arch/riscv.h (riscv_create_target_description): Declare only
8449 when GDBSERVER is defined.
8450 (riscv_lookup_target_description): New declaration when GDBSERVER
8451 is not defined.
8452 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8453 (riscv_linux_read_features): ...this, and return
8454 riscv_gdbarch_features instead of target_desc.
8455 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8456 (riscv_linux_read_description): Rename to...
8457 (riscv_linux_read_features): ...this.
8458 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8459 Update to use riscv_gdbarch_features and
8460 riscv_lookup_target_description.
8461 * riscv-tdep.c (riscv_find_default_target_description): Use
8462 riscv_lookup_target_description instead of
8463 riscv_create_target_description.
8464
373d7ac0
SM
84652020-02-18 Simon Marchi <simon.marchi@efficios.com>
8466
8467 * valprint.c (generic_val_print_enum_1): When printing a flag
8468 enum with value 0 and there is no enumerator with value 0, print
8469 just "0" instead of "(unknown: 0x0)".
8470
b29a2df0
SM
84712020-02-18 Simon Marchi <simon.marchi@efficios.com>
8472
8473 * valprint.c (generic_val_print_enum_1): Print unknown part of
8474 flag enum in hex.
8475
6740f0cc
SM
84762020-02-18 Simon Marchi <simon.marchi@efficios.com>
8477
8478 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8479 flag enums to contain duplicate enumerators.
8480 * valprint.c (generic_val_print_enum_1): Update comment.
8481
edd45eb0
SM
84822020-02-18 Simon Marchi <simon.marchi@efficios.com>
8483
8484 * dwarf2/read.c: Include "count-one-bits.h".
8485 (update_enumeration_type_from_children): If an enumerator has
8486 multiple bits set, don't treat the enumeration as a "flag enum".
8487 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8488 of flag enums have 0 or 1 bit set.
8489
6d0cf446
BE
84902020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8491
8492 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8493 conversion.
8494 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8495 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8496 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8497 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8498 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8499
7001c1b7
SM
85002020-02-18 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8503
fdb61c6c
SM
85042020-02-14 Simon Marchi <simon.marchi@efficios.com>
8505
8506 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8507 displaced_step_closure_up.
8508 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8509 (struct displaced_step_closure_up):
8510 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8511 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8512 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8513 Likewise.
8514 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8515 * gdbarch.c, gdbarch.h: Re-generate.
8516 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8517 displaced_step_closure_up.
8518 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8519 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8520 * infrun.h (displaced_step_closure_up): New type alias.
8521 (struct displaced_step_inferior_state) <step_closure>: Change
8522 type to displaced_step_closure_up.
8523 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8524 displaced_step_closure_up.
8525 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8526
a4a38eb4
TT
85272020-02-14 Tom Tromey <tom@tromey.com>
8528
8529 * minidebug.c (gnu_debug_key): New global.
8530 (find_separate_debug_file_in_section): Use it.
8531
e8217e61
SM
85322020-02-14 Simon Marchi <simon.marchi@efficios.com>
8533
8534 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8535 std::unique_ptr.
8536 * gdbarch.c: Re-generate.
8537 * gdbarch.h: Re-generate.
8538 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8539 change.
8540 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8541 type to std::unique_ptr.
8542 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8543 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8544 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8545 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8546 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8547 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8548 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8549 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8550 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8551
d8d83535
SM
85522020-02-14 Simon Marchi <simon.marchi@efficios.com>
8553
8554 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8555 std::unique_ptr.
8556 (displaced_step_clear): Rename to...
8557 (displaced_step_reset): ... this. Just call displaced->reset ().
8558 (displaced_step_clear_cleanup): Rename to...
8559 (displaced_step_reset_cleanup): ... this.
8560 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8561 (displaced_step_fixup): Likewise.
8562 (resume_1): Likewise.
8563 (handle_inferior_event): Restore child's memory before calling
8564 displaced_step_fixup on the parent.
8565 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8566 to std::unique_ptr.
8567 <step_closure>: Change type to std::unique_ptr.
8568
5f661e03
SM
85692020-02-14 Simon Marchi <simon.marchi@efficios.com>
8570
8571 * arm-tdep.c: Include count-one-bits.h.
8572 (cleanup_block_store_pc): Use count_one_bits.
8573 (cleanup_block_load_pc): Use count_one_bits.
8574 (arm_copy_block_xfer): Use count_one_bits.
8575 (thumb2_copy_block_xfer): Use count_one_bits.
8576 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8577 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8578 (thumb_get_next_pcs_raw): Use count_one_bits.
8579 (arm_get_next_pcs_raw): Use count_one_bits_l.
8580 * arch/arm.c (bitcount): Remove.
8581 * arch/arm.h (bitcount): Remove.
8582
8084e579
TT
85832020-02-14 Tom Tromey <tromey@adacore.com>
8584
8585 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8586 Update.
8587 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8588 * dwarf2/loc.c (call_site_find_chain_1): Return
8589 unique_xmalloc_ptr.
8590 (call_site_find_chain): Likewise.
8591
258bf0ee
RB
85922020-02-14 Richard Biener <rguenther@suse.de>
8593
8594 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8595 on expression with division operators.
8596
f98a8458
AKS
85972020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8598
8599 * MAINTAINERS (Write After Approval): Adding myself.
8600
d1437c0e
TT
86012020-02-12 Tom Tromey <tom@tromey.com>
8602
8603 * event-loop.c (event_data, gdb_event, event_handler_func):
8604 Remove.
8605
3d4560f7
TT
86062020-02-12 Tom Tromey <tom@tromey.com>
8607
8608 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8609 (dwarf2_frame_objfile_data): Add comment.
8610 (find_comp_unit, set_comp_unit): New functions.
8611 (dwarf2_frame_find_fde): Use find_comp_unit.
8612 (dwarf2_build_frame_info): Use set_comp_unit.
8613
21982304
TT
86142020-02-12 Tom Tromey <tom@tromey.com>
8615
8616 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8617 (comp_unit): Don't initialize objfile.
8618 (execute_cfa_program): Add text_offset parameter.
8619 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8620 (dwarf2_frame_cache): Update.
8621 (dwarf2_build_frame_info): Don't set "objfile" member.
8622
4debb237
TT
86232020-02-12 Tom Tromey <tom@tromey.com>
8624
8625 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8626 (decode_frame_entry): Likewise.
8627 (dwarf2_build_frame_info): Update.
8628
0d404d44
TT
86292020-02-12 Tom Tromey <tom@tromey.com>
8630
8631 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8632 (decode_frame_entry_1): Use the comp_unit obstack.
8633
a7a3ae5c
TT
86342020-02-12 Tom Tromey <tom@tromey.com>
8635
8636 * dwarf2/frame.c (struct comp_unit): Add initializers and
8637 constructor.
8638 (dwarf2_frame_objfile_data): Store a comp_unit.
8639 (dwarf2_frame_find_fde): Update.
8640 (dwarf2_build_frame_info): Use "new".
8641
a9d65418
TT
86422020-02-12 Tom Tromey <tom@tromey.com>
8643
8644 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8645 (dwarf2_fde_table): Typedef for std::vector.
8646 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8647 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8648 (decode_frame_entry): Update.
8649 (dwarf2_build_frame_info): Use "new".
8650
7559c217
CB
86512020-02-12 Christian Biesinger <cbiesinger@google.com>
8652
8653 * arm-tdep.c (arm_gdbarch_init): Update.
8654 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8655 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8656 have_neon, is_m>: Change to bool.
8657
aeefc73c
CB
86582020-02-12 Christian Biesinger <cbiesinger@google.com>
8659
8660 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8661
d27b8e5f
TT
86622020-02-12 Tom Tromey <tom@tromey.com>
8663
8664 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8665
cd5900f3
HD
86662020-02-12 Hannes Domani <ssbssa@yahoo.de>
8667
8668 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8669 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8670
f056b22b
TT
86712020-02-11 Tom Tromey <tom@tromey.com>
8672
8673 * psymtab.h: Update comment.
8674
f92ff6b5
TT
86752020-02-11 Tom Tromey <tom@tromey.com>
8676
8677 * gdb_obstack.h (struct auto_obstack): Use
8678 DISABLE_COPY_AND_ASSIGN.
8679
3fd6912b
TT
86802020-02-11 Tom Tromey <tom@tromey.com>
8681
8682 * dwarf2/frame.h (struct objfile): Don't forward declare.
8683
69ed9b74
CB
86842020-02-11 Christian Biesinger <cbiesinger@google.com>
8685
8686 * cris-tdep.c (cris_supply_gregset): Change signature to match
8687 what struct regset expects.
8688 (cris_regset): New struct.
8689 (fetch_core_registers): Remove.
8690 (cris_iterate_over_regset_sections): New function.
8691 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8692 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8693
bda874f6
CB
86942020-02-11 Christian Biesinger <cbiesinger@google.com>
8695
8696 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8697 registers.
8698
754e1564
CB
86992020-02-11 Christian Biesinger <cbiesinger@google.com>
8700
8701 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8702
8ddd8e0e
SM
87032020-02-11 Simon Marchi <simon.marchi@efficios.com>
8704
8705 * configure: Re-generate.
8706
898e7f60
SM
87072020-02-11 Simon Marchi <simon.marchi@efficios.com>
8708
8709 * configure: Re-generate.
8710
58df732b
SM
87112020-02-11 Simon Marchi <simon.marchi@efficios.com>
8712
8713 * acinclude: Update warning.m4 path.
8714 * warning.m4: Move to gdbsupport.
8715
da5bd37e
TT
87162020-02-11 Tom Tromey <tromey@adacore.com>
8717
8718 * remote.c (remote_console_output): Update.
8719 * printcmd.c (printf_command): Update.
8720 * event-loop.c (gdb_wait_for_event): Update.
8721 * linux-nat.c (sigchld_handler): Update.
8722 * remote-sim.c (gdb_os_write_stdout): Update.
8723 (gdb_os_flush_stdout): Update.
8724 (gdb_os_flush_stderr): Update.
8725 (gdb_os_write_stderr): Update.
8726 * exceptions.c (print_exception): Update.
8727 * remote-fileio.c (remote_fileio_func_read): Update.
8728 (remote_fileio_func_write): Update.
8729 * tui/tui.c (tui_enable): Update.
8730 * tui/tui-interp.c (tui_interp::init): Update.
8731 * utils.c (init_page_info): Update.
8732 (putchar_unfiltered, fputc_unfiltered): Update.
8733 (gdb_flush): Update.
8734 (emit_style_escape): Update.
8735 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8736 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8737 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8738 (stderr_file::write): Update.
8739 (stderr_file::puts): Update.
8740 * ui-file.h (ui_file_isatty, ui_file_write)
8741 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8742 (ui_file_puts): Don't declare.
8743
85f0dd3c
TV
87442020-02-10 Tom de Vries <tdevries@suse.de>
8745
8746 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8747 sentinel to char *.
8748
2e927613
TV
87492020-02-09 Tom de Vries <tdevries@suse.de>
8750
8751 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8752 filename if it matches "<artificial>".
8753
6bafc845
HD
87542020-02-09 Hannes Domani <ssbssa@yahoo.de>
8755
8756 * windows-tdep.c (struct enum_value_name): New struct.
8757 (create_enum): New function.
8758 (windows_get_siginfo_type): Create and use enum types.
8759
7928d571
HD
87602020-02-09 Hannes Domani <ssbssa@yahoo.de>
8761
8762 * NEWS: Mention $_siginfo support for Windows.
8763 * windows-nat.c (handle_exception): Set siginfo_er.
8764 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8765 (windows_xfer_siginfo): New function.
8766 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8767 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8768 (init_windows_gdbarch_data): New function.
8769 (get_windows_gdbarch_data): New function.
8770 (windows_get_siginfo_type): New function.
8771 (windows_init_abi): Register windows_get_siginfo_type.
8772 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8773
6751ebae
TT
87742020-02-08 Tom Tromey <tom@tromey.com>
8775
8776 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8777 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8778 <keep>: Declare method.
8779 <m_keep>: Remove member.
8780 <~cutu_reader>: Remove.
8781 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8782 (cutu_reader::cutu_reader): Update.
8783 (cutu_reader::keep): Rename from ~cutu_reader.
8784 (process_psymtab_comp_unit, build_type_psymtabs_1)
8785 (process_skeletonless_type_unit, load_partial_comp_unit)
8786 (load_full_comp_unit, dwarf2_read_addr_index)
8787 (read_signatured_type): Update.
8788
135f5437
TT
87892020-02-08 Tom Tromey <tom@tromey.com>
8790
8791 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8792 "want_partial_unit" parameter.
8793 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8794 Inline check for DW_TAG_partial_unit.
8795 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8796
9f66ff1c
TT
87972020-02-08 Tom Tromey <tom@tromey.com>
8798
8799 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8800 read.c.
8801 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8802 read.c.
8803
c8a7a66f
TT
88042020-02-08 Tom Tromey <tom@tromey.com>
8805
8806 * dwarf2/read.c (read_address): Move to comp-unit.c.
8807 (dwarf2_rnglists_process, dwarf2_ranges_process)
8808 (read_attribute_value, dwarf_decode_lines_1)
8809 (var_decode_location, decode_locdesc): Update.
8810 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8811 read.c. Remove "cu" parameter.
8812 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8813 method.
8814
8266302d
TT
88152020-02-08 Tom Tromey <tom@tromey.com>
8816
8817 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8818 (read_indirect_line_string): Update.
8819 * dwarf2/comp-unit.c (read_offset): Remove.
8820 (read_comp_unit_head): Update.
8821 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8822 method.
8823 (read_offset): Don't declare.
8824
4057dfde
TT
88252020-02-08 Tom Tromey <tom@tromey.com>
8826
8827 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8828 * dwarf2/read.c (struct comp_unit_head): Move to
8829 dwarf2/comp-unit.h.
8830 (enum class rcuh_kind): Move to comp-unit.h.
8831 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8832 (read_comp_unit_head, error_check_comp_unit_head)
8833 (read_and_check_comp_unit_head): Move to comp-unit.c.
8834 (read_offset, dwarf_unit_type_name): Likewise.
8835 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8836 (cutu_reader::cutu_reader, read_call_site_scope)
8837 (find_partial_die, follow_die_offset): Update.
8838 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8839
24aa364d
TT
88402020-02-08 Tom Tromey <tom@tromey.com>
8841
8842 * dwarf2/read.c (read_offset_1): Move to leb.c.
8843 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8844 (dwarf_decode_macro_bytes): Update.
8845 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8846 * dwarf2/leb.h (read_offset): Declare.
8847
2c7d5afc
TT
88482020-02-08 Tom Tromey <tom@tromey.com>
8849
8850 * dwarf2/read.c (dwarf2_section_size): Remove.
8851 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8852 Update.
8853 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8854
4075cb26
TT
88552020-02-08 Tom Tromey <tom@tromey.com>
8856
8857 * dwarf2/read.c (read_initial_length): Move to leb.c.
8858 * dwarf2/leb.h (read_initial_length): Declare.
8859 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8860 handle_nonstd parameter.
8861 * dwarf2/frame.c (read_initial_length): Remove.
8862 (decode_frame_entry_1): Update.
8863
09ba997f
TT
88642020-02-08 Tom Tromey <tom@tromey.com>
8865
8866 * dwarf2/loc.c (dwarf2_find_location_expression)
8867 (dwarf_evaluate_loc_desc::get_tls_address)
8868 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8869 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8870 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8871 (dwarf2_compile_property_to_c)
8872 (dwarf2_loc_desc_get_symbol_read_needs)
8873 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8874 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8875 (loclist_describe_location, loclist_tracepoint_var_ref)
8876 (loclist_generate_c_location): Update.
8877 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8878 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8879 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8880 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8881 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8882 (dwarf2_per_cu_data::addr_size)
8883 (dwarf2_per_cu_data::ref_addr_size)
8884 (dwarf2_per_cu_data::text_offset)
8885 (dwarf2_per_cu_data::addr_type): Now methods.
8886 (per_cu_header_read_in): Make per_cu "const".
8887 (dwarf2_version): Remove.
8888 (dwarf2_per_cu_data::int_type): Now a method.
8889 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8890 (set_die_type, read_array_type, read_subrange_index_type)
8891 (read_tag_string_type, read_subrange_type): Update.
8892 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8893 offset_size, ref_addr_size, text_offset, addr_type, version,
8894 objfile, int_type, addr_sized_int_type>: Declare methods.
8895
96c738c0
TT
88962020-02-08 Tom Tromey <tom@tromey.com>
8897
8898 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8899 Move earlier.
8900
8fdd972c
TT
89012020-02-08 Tom Tromey <tom@tromey.com>
8902
8903 * dwarf2/read.h (dwarf_line_debug): Declare.
8904 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8905 * dwarf2/read.c: Move line_header code to new files.
8906 (dwarf_line_debug): No longer static.
8907 * dwarf2/line-header.c: New file.
8908 * dwarf2/line-header.h: New file.
8909
03075812
TT
89102020-02-08 Tom Tromey <tom@tromey.com>
8911
8912 * dwarf2/read.c (struct line_header) <file_full_name,
8913 file_file_name>: Return unique_xmalloc_ptr.
8914 (line_header::file_file_name): Update.
8915 (line_header::file_full_name): Update.
8916 (dw2_get_file_names_reader): Update.
8917 (macro_start_file): Update.
8918
bb822404
TT
89192020-02-08 Tom Tromey <tom@tromey.com>
8920
8921 * dwarf2/read.c (struct line_header) <file_full_name,
8922 file_file_name>: Declare methods.
8923 (dw2_get_file_names_reader): Update.
8924 (file_file_name): Now a method.
8925 (file_full_name): Likewise.
8926 (macro_start_file): Update.
8927
009b64fc
TT
89282020-02-08 Tom Tromey <tom@tromey.com>
8929
8930 * dwarf2/read.c (dwarf_always_disassemble)
8931 (show_dwarf_always_disassemble): Move to loc.c.
8932 (_initialize_dwarf2_read): Move "always-disassemble" registration
8933 to loc.c.
8934 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8935 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8936 static.
8937 (show_dwarf_always_disassemble): Move from read.c.
8938 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8939
5895093f
TT
89402020-02-08 Tom Tromey <tom@tromey.com>
8941
8942 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8943 (create_quick_file_names_table): Return htab_up.
8944 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8945 Update.
8946 * dwarf2/read.h (struct dwarf2_per_objfile)
8947 <quick_file_names_table>: Now htab_up.
8948
b3b32279
TT
89492020-02-08 Tom Tromey <tom@tromey.com>
8950
8951 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8952
1d33d811
TT
89532020-02-08 Tom Tromey <tom@tromey.com>
8954
8955 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8956 Rewrite.
8957 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8958 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8959 (abbrev_table::abbrev_table): No longer inline.
8960 (ABBREV_HASH_SIZE): Remove.
8961 (abbrev_table::m_abbrevs): Now an htab_up.
8962
86de1d91
TT
89632020-02-08 Tom Tromey <tom@tromey.com>
8964
8965 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8966 (cutu_reader): Update.
8967 (build_type_psymtabs_1): Update.
8968 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8969 (abbrev_table::alloc_abbrev): Update.
8970 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8971 (abbrev_table::read): New static method, renamed from
8972 abbrev_table_read_table.
8973 (abbrev_table::alloc_abbrev)
8974 (abbrev_table::add_abbrev): Now private.
8975 (abbrev_table::abbrev_table): Now private.
8976 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8977
0335378b
TT
89782020-02-08 Tom Tromey <tom@tromey.com>
8979
8980 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8981 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8982 htab_up.
8983
48b490f2
TT
89842020-02-08 Tom Tromey <tom@tromey.com>
8985
8986 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8987 htab_up.
8988 (lookup_dwo_unit_in_dwp): Update.
8989 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8990 on obstack.
8991
bc68fb19
TT
89922020-02-08 Tom Tromey <tom@tromey.com>
8993
8994 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8995 obstack.
8996
d15acc42
TT
89972020-02-08 Tom Tromey <tom@tromey.com>
8998
8999 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9000 line_header_hash.
9001 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9002 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9003 Change type to htab_up.
9004
eaa5fa8b
TT
90052020-02-08 Tom Tromey <tom@tromey.com>
9006
9007 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9008 htab_up. Don't allocate on obstack.
9009 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9010 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9011 Change type to htab_up.
9012
b0b6a987
TT
90132020-02-08 Tom Tromey <tom@tromey.com>
9014
9015 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9016 Change type to htab_up.
9017 * dwarf2/read.c (create_signatured_type_table_from_index)
9018 (create_signatured_type_table_from_debug_names)
9019 (create_all_type_units, add_type_unit)
9020 (lookup_dwo_signatured_type, lookup_signatured_type)
9021 (process_skeletonless_type_unit): Update.
9022 (create_debug_type_hash_table, create_debug_types_hash_table):
9023 Change type of types_htab.
9024 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9025 htab_up. Don't allocate on obstack.
9026 (create_cus_hash_table): Change type of cus_htab parameter.
9027 (struct dwo_file) <cus, tus>: Now htab_up.
9028 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9029 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9030 (queue_and_load_all_dwo_tus): Update.
9031 * dwarf2/index-write.c (write_gdbindex): Update.
9032 (write_debug_names): Update.
9033
39856def
TT
90342020-02-08 Tom Tromey <tom@tromey.com>
9035
9036 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9037 dwarf2/read.c. Remove "next" member. Add constructor ntad
9038 destructor.
9039 (struct dwarf2_per_objfile) <queue>: New member.
9040 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9041 dwarf2/read.h.
9042 (dwarf2_queue, dwarf2_queue_tail): Remove.
9043 (class dwarf2_queue_guard): Add parameter to constructor. Use
9044 DISABLE_COPY_AND_ASSIGN.
9045 <m_per_objfile>: New member.
9046 <~dwarf2_queue_guard>: Rewrite.
9047 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9048 Update.
9049 (~dwarf2_queue_item): New.
9050
3e225074
TT
90512020-02-08 Tom Tromey <tom@tromey.com>
9052
9053 * dwarf2/read.c (struct die_info) <has_children>: New member.
9054 (dw2_get_file_names_reader): Remove has_children.
9055 (dw2_get_file_names): Update.
9056 (read_cutu_die_from_dwo): Remove has_children.
9057 (cutu_reader::init_tu_and_read_dwo_dies)
9058 (cutu_reader::cutu_reader): Update.
9059 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9060 Remove has_children.
9061 (build_type_psymtabs_1, process_skeletonless_type_unit)
9062 (load_partial_comp_unit, load_full_comp_unit): Update.
9063 (create_dwo_cu_reader): Remove has_children.
9064 (create_cus_hash_table, read_die_and_children): Update.
9065 (read_full_die_1,read_full_die): Remove has_children.
9066 (read_signatured_type): Update.
9067 (class cutu_reader) <has_children>: Remove.
9068
82ca8957
TT
90692020-02-08 Tom Tromey <tom@tromey.com>
9070
9071 * dwarf2/expr.c: Rename from dwarf2expr.c.
9072 * dwarf2/expr.h: Rename from dwarf2expr.h.
9073 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9074 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9075 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9076 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9077 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9078 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9079 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9080 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9081 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9082 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9083 * dwarf2/loc.c: Rename from dwarf2loc.c.
9084 * dwarf2/loc.h: Rename from dwarf2loc.h.
9085 * dwarf2/read.c: Rename from dwarf2read.c.
9086 * dwarf2/read.h: Rename from dwarf2read.h.
9087 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9088 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9089 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9090 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9091 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9092 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9093 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9094 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9095 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9096 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9097 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9098 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9099 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9100 Update.
9101 * Makefile.in (COMMON_SFILES): Update.
9102 (HFILES_NO_SRCDIR): Update.
9103
9e35d499
TT
91042020-02-08 Tom Tromey <tom@tromey.com>
9105
9106 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9107 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9108
1eba2311
TT
91092020-02-08 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2read.h (struct die_info): Don't declare.
9112
e41c2da2
TT
91132020-02-08 Tom Tromey <tom@tromey.com>
9114
9115 * dwarf2read.h (die_info_ptr): Remove typedef.
9116
4fc6c0d5
TT
91172020-02-08 Tom Tromey <tom@tromey.com>
9118
9119 * dwarf2read.c (read_call_site_scope)
9120 (handle_data_member_location, dwarf2_add_member_fn)
9121 (mark_common_block_symbol_computed, read_common_block)
9122 (attr_to_dynamic_prop, partial_die_info::read)
9123 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9124 (dwarf2_symbol_mark_computed, set_die_type): Update.
9125 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9126 method.
9127 (attr_form_is_block): Don't declare.
9128 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9129
cd6c91b4
TT
91302020-02-08 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2read.c (dwarf2_find_base_address, )
9133 (read_call_site_scope, rust_containing_type)
9134 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9135 (handle_data_member_location, dwarf2_add_member_fn)
9136 (get_alignment, read_structure_type, process_structure_scope)
9137 (mark_common_block_symbol_computed, read_common_block)
9138 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9139 (partial_die_info::read, read_attribute_value, new_symbol)
9140 (lookup_die_type, dwarf2_get_ref_die_offset)
9141 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9142 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9143 (dwarf2_symbol_mark_computed): Update.
9144 * dwarf2/attribute.h (struct attribute) <value_as_address,
9145 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9146 methods.
9147 (value_as_address, attr_form_is_section_offset)
9148 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9149 * dwarf2/attribute.c (attribute::value_as_address)
9150 (attribute::form_is_section_offset, attribute::form_is_constant)
9151 (attribute::form_is_ref): Now methods.
9152
162dce55
TT
91532020-02-08 Tom Tromey <tom@tromey.com>
9154
9155 * dwarf2read.c (struct attribute, DW_STRING)
9156 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9157 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9158 (attr_form_is_block, attr_form_is_section_offset)
9159 (attr_form_is_constant, attr_form_is_ref): Move.
9160 * dwarf2/attribute.h: New file.
9161 * dwarf2/attribute.c: New file, from dwarf2read.c.
9162 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9163
3054dd54
TT
91642020-02-08 Tom Tromey <tom@tromey.com>
9165
9166 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9167 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9168 Move.
9169 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9170 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9171 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9172 abbrev.c.
9173 * dwarf2/abbrev.h: New file.
9174 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9175 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9176
96b79293
TT
91772020-02-08 Tom Tromey <tom@tromey.com>
9178
9179 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9180 (dwarf2_section_size, dwarf2_get_section_info)
9181 (create_signatured_type_table_from_debug_names)
9182 (create_addrmap_from_aranges, read_debug_names_from_section)
9183 (get_gdb_index_contents_from_section, read_comp_unit_head)
9184 (error_check_comp_unit_head, read_abbrev_offset)
9185 (create_debug_type_hash_table, init_cu_die_reader)
9186 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9187 (read_comp_units_from_section, create_cus_hash_table)
9188 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9189 (create_dwp_v2_section, dwarf2_rnglists_process)
9190 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9191 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9192 (read_indirect_string_from_dwz, read_addr_index_1)
9193 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9194 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9195 (fill_in_loclist_baton): Update.
9196 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9197 get_containing_section, get_bfd_owner, get_bfd_section,
9198 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9199 (dwarf2_read_section, get_section_name, get_section_file_name)
9200 (get_containing_section, get_section_bfd_owner)
9201 (get_section_bfd_section, get_section_name, get_section_file_name)
9202 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9203 declare.
9204 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9205 (dwarf2_section_info::get_bfd_owner)
9206 (dwarf2_section_info::get_bfd_section)
9207 (dwarf2_section_info::get_name)
9208 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9209 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9210 (dwarf2_section_info::read): Now methods.
9211 * dwarf-index-write.c (class debug_names): Update.
9212
2c86cff9
TT
92132020-02-08 Tom Tromey <tom@tromey.com>
9214
9215 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9216 Move to dwarf2/section.h.
9217 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9218 (get_section_bfd_section, get_section_name)
9219 (get_section_file_name, get_section_id, get_section_flags)
9220 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9221 dwarf2/section.c.
9222 * dwarf2/section.h: New file.
9223 * dwarf2/section.c: New file, from dwarf2read.c.
9224 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9225
f4382c45
TT
92262020-02-08 Tom Tromey <tom@tromey.com>
9227
9228 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9229 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9230 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9231 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9232 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9233 * dwarf2/leb.h: New file, from dwarf2read.c.
9234 * dwarf2/leb.c: New file, from dwarf2read.c.
9235 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9236 Remove.
9237 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9238 (COMMON_SFILES): Add dwarf2/leb.c.
9239
01840b7a
JB
92402020-02-08 Joel Brobecker <brobecker@adacore.com>
9241
9242 GDB 9.1 released.
9243
dfcb27e4
IB
92442020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9245
9246 PR gdb/25190:
aac66a4c
SM
9247 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9248 * gdb/remote.c (remote_console_output): Update.
9249 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9250 (ui_file_puts): ...this.
9251 * gdb/ui-file.h (ui_file_puts): Add declaration.
9252 * gdb/utils.c (emit_style_escape): Update.
9253 (flush_wrap_buffer): Update.
9254 (fputs_maybe_filtered): Update.
9255 (fputs_unfiltered): Add function.
dfcb27e4 9256
faa17681
IB
92572020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9258
aac66a4c
SM
9259 * gdb/event-loop.c (gdb_wait_for_event): Update.
9260 * gdb/printcmd.c (printf_command): Update.
9261 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9262 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9263 (gdb_os_flush_stderr): Update.
9264 * gdb/remote.c (remote_console_output): Update.
9265 * gdb/ui-file.c (gdb_flush): Rename to...
9266 (ui_file_flush): ...this.
9267 (stderr_file::write): Update.
9268 (stderr_file::puts): Update.
9269 * gdb/ui-file.h (gdb_flush): Rename to...
9270 (ui_file_flush): ...this.
9271 * gdb/utils.c (gdb_flush): Add function.
9272 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9273
5abbbe1d
TT
92742020-02-07 Tom Tromey <tromey@adacore.com>
9275
9276 PR breakpoints/24915:
9277 * source.c (find_and_open_source): Do not check basenames_may_differ.
9278
919adfe8
TT
92792020-02-07 Tom Tromey <tom@tromey.com>
9280
9281 * README: Update gdbserver documentation.
9282 * gdbserver: Move to top level.
9283 * configure.tgt (build_gdbserver): Remove.
9284 * configure.ac: Remove --enable-gdbserver.
9285 * configure: Rebuild.
9286 * Makefile.in (distclean): Don't mention gdbserver.
9287
1d5d29e7
SV
92882020-02-06 Shahab Vahedi <shahab@synopsys.com>
9289
9290 * source-cache.c (source_cache::ensure): Surround
9291 get_plain_source_lines with a try/catch.
9292 (source_cache::get_line_charpos): Get rid of try/catch
9293 and only check for the return value of "ensure".
9294 * tui/tui-source.c (tui_source_window::set_contents):
9295 Simplify "nlines" calculation.
9296
6eb1129c
SV
92972020-02-06 Shahab Vahedi <shahab@synopsys.com>
9298
9299 * MAINTAINERS (Write After Approval): Add myself.
9300
c6a42d11
CB
93012020-02-05 Christian Biesinger <cbiesinger@google.com>
9302
9303 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9304 function call.
9305
c8ecdda6
CB
93062020-02-05 Christian Biesinger <cbiesinger@google.com>
9307
9308 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9309
f6480e70
MR
93102020-02-05 Maciej W. Rozycki <macro@wdc.com>
9311
9312 * nat/riscv-linux-tdesc.h: New file.
9313 * nat/riscv-linux-tdesc.c: New file, taking code from...
9314 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9315 ... here.
9316 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9317 NATDEPFILES.
9318
dcc9fbc6
AB
93192020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9320
9321 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9322 we don't set the fake simulator ptid to the null_ptid.
9323
719546c4
SM
93242020-02-03 Simon Marchi <simon.marchi@efficios.com>
9325
9326 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9327 * gdbthread.h (class thread_info) <resumed>: Likewise.
9328 * infrun.c (resume_1): Likewise.
9329 (proceed): Likewise.
9330 (infrun_thread_stop_requested): Likewise.
9331 (stop_all_threads): Likewise.
9332 (handle_inferior_event): Likewise.
9333 (restart_threads): Likewise.
9334 (finish_step_over): Likewise.
9335 (keep_going_stepped_thread): Likewise.
9336 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9337 (linux_handle_extended_wait): Likewise.
9338 * record-btrace.c (get_thread_current_frame_id): Likewise.
9339 * record-full.c (record_full_wait_1): Likewise.
9340 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9341 * target.c (target_resume): Likewise.
9342 * thread.c (set_running_thread): Likewise.
9343
e409c542
AKS
93442020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9345
9346 * f-valprint.c (f77_print_array_1): Changed datatype of index
9347 variable to LONGEST from int to enable it to contain bound
9348 values correctly.
9349
ee98c0da
MR
93502020-02-03 Maciej W. Rozycki <macro@wdc.com>
9351
9352 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9353 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9354 offsets according to FLEN determined.
9355 (riscv_linux_nat_target::read_description): Determine FLEN
9356 dynamically.
9357 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9358 according to FLEN determined.
9359 (riscv_linux_nat_target::store_registers): Likewise.
9360
aa66aac4
SV
93612020-02-01 Shahab Vahedi <shahab@synopsys.com>
9362
9363 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9364 when reg->group is empty and reggroup is not.
9365
fd9faca8
TT
93662020-01-31 Tom Tromey <tromey@adacore.com>
9367
9368 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9369 Call beneath target's mourn_inferior after unpushing.
9370
42330a68
AB
93712020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9372
9373 PR tui/9765
9374 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9375 have enough lines to fill the screen, still return the lowest
9376 address we found.
9377
7a27a45b
AB
93782020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9379
9380 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9381 '-', '<', and '>' commands.
9382
c47f70e2
PA
93832020-01-29 Pedro Alves <palves@redhat.com>
9384 Sergio Durigan Junior <sergiodj@redhat.com>
9385
9386 * infcmd.c (construct_inferior_arguments): Assert that
9387 'argc' is greater than 0.
9388
5133a315
LM
93892020-01-29 Luis Machado <luis.machado@linaro.org>
9390
9391 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9392 (BRK_INSN_MASK): Define to 0xd4200000.
9393 (aarch64_program_breakpoint_here_p): New function.
9394 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9395 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9396 breakpoint.c.
9397 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9398 breakpoint.h
9399 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9400 call gdbarch_program_breakpoint_here_p.
9401 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9402 default_program_breakpoint_here_p, changed return type to bool and
9403 simplified.
9404 * breakpoint.h (program_breakpoint_here): Moved prototype to
9405 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9406 return type to bool.
9407 * gdbarch.c: Regenerate.
9408 * gdbarch.h: Regenerate.
9409 * gdbarch.sh (program_breakpoint_here_p): New method.
9410 * infrun.c (handle_signal_stop): Call
9411 gdbarch_program_breakpoint_here_p.
9412
168f8c6b
TT
94132020-01-26 Tom Tromey <tom@tromey.com>
9414
9415 * ctfread.c (struct ctf_fp_info): Reindent.
9416 (_initialize_ctfread): Remove.
9417
128a391f
TT
94182020-01-26 Tom Tromey <tom@tromey.com>
9419
9420 * psymtab.c (partial_map_expand_apply)
9421 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9422 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9423 (psym_print_stats, psym_expand_symtabs_for_function)
9424 (psym_map_symbol_filenames, psym_map_matching_symbols)
9425 (psym_expand_symtabs_matching)
9426 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9427 (maintenance_check_psymtabs): Use new methods.
9428 * psympriv.h (struct partial_symtab) <readin_p,
9429 get_compunit_symtab>: New methods.
9430 <readin, compunit_symtab>: Remove members.
9431 (struct standard_psymtab): New.
9432 (struct legacy_psymtab): Derive from standard_psymtab.
9433 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9434 standard_psymtab.
9435 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9436
0494dbec
TT
94372020-01-26 Tom Tromey <tom@tromey.com>
9438
9439 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9440 read_dependencies. Add assert.
9441 * psymtab.c (partial_symtab::read_dependencies): New method.
9442 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9443 method.
9444 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9445 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9446 read_dependencies.
9447 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9448 Add assert.
9449
8566b89b
TT
94502020-01-26 Tom Tromey <tom@tromey.com>
9451
9452 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9453 Call expand_psymtab.
9454 (xcoff_read_symtab): Call expand_psymtab.
9455 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9456 legacy_expand_psymtab.
9457 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9458 method.
9459 (struct legacy_psymtab) <expand_psymtab>: Implement.
9460 <legacy_expand_psymtab>: New member.
9461 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9462 (parse_partial_symbols): Set legacy_expand_psymtab.
9463 (psymtab_to_symtab_1): Change argument order. Call
9464 expand_psymtab.
9465 (new_psymtab): Set legacy_expand_psymtab.
9466 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9467 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9468 expand_psymtab.
9469 (dwarf2_psymtab::expand_psymtab): Rename from
9470 psymtab_to_symtab_1. Call expand_psymtab.
9471 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9472 (dbx_end_psymtab): Likewise.
9473 (dbx_psymtab_to_symtab_1): Change argument order. Call
9474 expand_psymtab.
9475 (dbx_read_symtab): Call expand_psymtab.
9476 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9477 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9478 (ctf_psymtab::read_symtab): Call expand_psymtab.
9479
077cbab2
TT
94802020-01-26 Tom Tromey <tom@tromey.com>
9481
9482 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9483 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9484 messages.
9485 * mdebugread.c (mdebug_read_symtab): Remove prints.
9486 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9487 assert.
9488 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9489
891813be
TT
94902020-01-26 Tom Tromey <tom@tromey.com>
9491
9492 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9493 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9494 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9495 legacy_symtab.
9496 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9497 * psymtab.c (psymtab_to_symtab): Call method.
9498 (dump_psymtab): Update.
9499 * psympriv.h (struct partial_symtab): Add virtual destructor.
9500 <read_symtab>: New method.
9501 (struct legacy_symtab): New.
9502 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9503 (struct pst_map) <pst>: Now a legacy_psymtab.
9504 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9505 (new_psymtab): Use legacy_psymtab.
9506 * dwarf2read.h (struct dwarf2_psymtab): New.
9507 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9508 * dwarf2read.c (dwarf2_create_include_psymtab)
9509 (dwarf2_build_include_psymtabs, create_type_unit_group)
9510 (create_partial_symtab, process_psymtab_comp_unit_reader)
9511 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9512 (set_partial_user): Use dwarf2_psymtab.
9513 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9514 (psymtab_to_symtab_1, process_full_comp_unit)
9515 (process_full_type_unit, dwarf2_ranges_read)
9516 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9517 (dwarf_decode_lines): Use dwarf2_psymtab.
9518 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9519 (add_address_entry_worker, write_one_signatured_type)
9520 (recursively_count_psymbols, recursively_write_psymbols)
9521 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9522 (write_debug_names): Likewise.
9523 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9524 <pst>: Now a legacy_psymtab.
9525 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9526 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9527 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9528 * ctfread.c (struct ctf_psymtab): New.
9529 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9530 ctf_psymtab.
9531 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9532 (create_partial_symtab): Return a ctf_psymtab.
9533 (scan_partial_symbols): Update.
9534
c3693a1d
TT
95352020-01-26 Tom Tromey <tom@tromey.com>
9536
9537 * xcoffread.c (xcoff_start_psymtab): Use new.
9538 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9539 renamed from start_psymtab_common.
9540 * psympriv.h (struct partial_symtab): Add new constructor.
9541 (start_psymtab_common): Don't declare.
9542 * mdebugread.c (parse_partial_symbols): Use new.
9543 * dwarf2read.c (create_partial_symtab): Use new.
9544 * dbxread.c (start_psymtab): Use new.
9545 * ctfread.c (create_partial_symtab): Use new.
9546
32caafd0
TT
95472020-01-26 Tom Tromey <tom@tromey.com>
9548
9549 * xcoffread.c (xcoff_end_psymtab): Use new.
9550 * psymtab.c (start_psymtab_common): Use new.
9551 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9552 Update.
9553 * psympriv.h (struct partial_symtab): Add parameters to
9554 constructor. Don't inline.
9555 (allocate_psymtab): Don't declare.
9556 * mdebugread.c (new_psymtab): Use new.
9557 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9558 * dbxread.c (dbx_end_psymtab): Use new.
9559
abaa2f23
TT
95602020-01-26 Tom Tromey <tom@tromey.com>
9561
9562 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9563 allocate_psymtab. Update documentation.
9564 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9565 allocate_psymtab. Do not use new.
9566 (allocate_psymtab): Use new. Update.
9567
6d94535f
TT
95682020-01-26 Tom Tromey <tom@tromey.com>
9569
9570 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9571 * psymtab.c (psym_print_stats): Update.
9572 * psympriv.h (struct partial_symtab) <readin,
9573 psymtabs_addrmap_supported, anonymous>: Now bool.
9574 * mdebugread.c (psymtab_to_symtab_1): Update.
9575 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9576 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9577 (process_full_comp_unit, process_full_type_unit): Update.
9578 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9579 * ctfread.c (psymtab_to_symtab): Update.
9580
6f17252b
TT
95812020-01-26 Tom Tromey <tom@tromey.com>
9582
9583 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9584 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9585 * psymtab.c (psymtab_storage): Delete psymtabs.
9586 (psymtab_storage::allocate_psymtab): Use new.
9587 (psymtab_storage::discard_psymtab): Use delete.
9588 * psympriv.h (struct partial_symtab): Add constructor and
9589 initializers.
9590
f6f1cebc
TT
95912020-01-26 Tom Tromey <tom@tromey.com>
9592
9593 * machoread.c: Do not include psympriv.h.
9594
e47e48f6
PW
95952020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9596
9597 * NEWS: Mention the new option and the set/show commands.
9598
a2fedca9
PW
95992020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9600
9601 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9602 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9603 (validate_exec_file): New variables, enums, functions.
9604 (exec_file_locate_attach, print_section_info): Style the filenames.
9605 (_initialize_exec): Install show_exec_file_mismatch_command and
9606 set_exec_file_mismatch_command.
9607 * gdbcore.h (validate_exec_file): Declare.
9608 * infcmd.c (attach_command): Call validate_exec_file.
9609 * remote.c ( remote_target::remote_add_inferior): Likewise.
9610
7ffa82e1
AB
96112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9612
9613 * frame.c (find_frame_sal): Move call to get_next_frame into more
9614 inner scope.
9615 * inline-frame.c (inilne_state) <inline_state>: Update argument
9616 types.
9617 (inilne_state) <skipped_symbol>: Rename to...
9618 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9619 (skip_inline_frames): Build vector of skipped symbols and use this
9620 to reate the inline_state.
9621 (inline_skipped_symbol): Add a comment and some assertions, fetch
9622 skipped symbol from the list.
9623
3d92a3e3
AB
96242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9625
9626 * buildsym.c (lte_is_less_than): Delete.
9627 (buildsym_compunit::end_symtab_with_blockvector): Create local
9628 lambda function to sort line table entries, and use
9629 std::stable_sort instead of std::sort.
9630 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9631 markers when looking for a previous line.
9632
94a72be7
AB
96332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9634
9635 * dwarf2read.c (lnp_state_machine::record_line): Include
9636 end_sequence parameter in debug print out. Record the line if we
9637 are at an end_sequence marker even if it's not the start of a
9638 statement.
9639 * symmisc.c (maintenance_print_one_line_table): Print end of
9640 sequence markers with 'END' not '0'.
9641
53af73bf
PA
96422020-01-24 Pedro Alves <palves@redhat.com>
9643
9644 PR gdb/25410
9645 * thread.c (scoped_restore_current_thread::restore): Use
9646 switch_to_inferior_no_thread.
9647 * exec.c: Include "progspace-and-thread.h".
9648 (add_target_sections, remove_target_sections):
9649 scoped_restore_current_pspace_and_thread instead of
9650 scoped_restore_current_thread.
9651 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9652 and aspace to the inferior before calling clone_program_space.
9653 Remove stale comment.
9654
3050c6f4
CB
96552020-01-24 Christian Biesinger <cbiesinger@google.com>
9656
9657 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9658 (arm_netbsd_nat_target::fetch_registers): ...this.
9659 (arm_nbsd_nat_target::store_registers): Rename to...
9660 (arm_netbsd_nat_target::store_registers): ...this.
9661
73685c7e
CB
96622020-01-24 Christian Biesinger <cbiesinger@google.com>
9663
9664 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9665 register_t.
9666
89203d40
CB
96672020-01-24 Christian Biesinger <cbiesinger@google.com>
9668
9669 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9670 Update comment.
9671 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9672 Likewise.
9673 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9674 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9675 the correct replacement (iterate_over_regset_sections).
9676 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9677 Update comment.
9678
1ba1ac88
AB
96792020-01-24 Graham Markall <graham.markall@embecosm.com>
9680
9681 PR gdb/23718
9682 * gdb/python/python.c (execute_gdb_command): Call
9683 async_enable_stdin in catch block.
9684
f3364a6d
AB
96852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9686
9687 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9688 SWITCH_THRU_ALL_UIS.
9689
733d0a67
AB
96902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9691
9692 PR tui/9765
9693 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9694 comment, add extra parameter, and update to store previous symbol
9695 when appropriate.
9696 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9697 add extra parameter.
9698 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9699 remove unneeded parameter, add try/catch around gdb_print_insn,
9700 rewrite to add items to asm_lines vector.
9701 (tui_find_backward_disassembly_start_address): New function.
9702 (tui_find_disassembly_address): Updated throughout.
9703 (tui_disasm_window::set_contents): Update for changes to
9704 tui_disassemble.
9705 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9706 number of lines to scroll.
9707
b3b3bada
SM
97082020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9709
9710 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9711 (SECT_OFF_DATA): Likewise.
9712 (SECT_OFF_RODATA): Likewise.
9713 (SECT_OFF_TEXT): Likewise.
9714 (SECT_OFF_BSS): Likewise.
9715 (struct objfile) <text_section_offset, data_section_offset>: New
9716 methods.
9717 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9718 objfile::text_section_offset.
9719 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9720 * coffread.c (coff_symtab_read): Likewise.
9721 (enter_linenos): Likewise.
9722 (process_coff_symbol): Likewise.
9723 * ctfread.c (get_objfile_text_range): Likewise.
9724 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9725 Use objfile::data_section_offset.
9726 * dwarf2-frame.c (execute_cfa_program): Use
9727 objfile::text_section_offset.
9728 (dwarf2_frame_find_fde): Likewise.
9729 * dwarf2read.c (create_addrmap_from_index): Likewise.
9730 (create_addrmap_from_aranges): Likewise.
9731 (dw2_find_pc_sect_compunit_symtab): Likewise.
9732 (process_psymtab_comp_unit_reader): Likewise.
9733 (add_partial_symbol): Likewise.
9734 (add_partial_subprogram): Likewise.
9735 (process_full_comp_unit): Likewise.
9736 (read_file_scope): Likewise.
9737 (read_func_scope): Likewise.
9738 (read_lexical_block_scope): Likewise.
9739 (read_call_site_scope): Likewise.
9740 (dwarf2_rnglists_process): Likewise.
9741 (dwarf2_ranges_process): Likewise.
9742 (dwarf2_ranges_read): Likewise.
9743 (dwarf_decode_lines_1): Likewise.
9744 (new_symbol): Likewise.
9745 (dwarf2_fetch_die_loc_sect_off): Likewise.
9746 (dwarf2_per_cu_text_offset): Likewise.
9747 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9748 * hppa-tdep.c (read_unwind_info): Likewise.
9749 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9750 * psympriv.h (struct partial_symtab): Likewise.
9751 * psymtab.c (find_pc_sect_psymtab): Likewise.
9752 * solib-svr4.c (enable_break): Likewise.
9753 * stap-probe.c (relocate_address): Use
9754 objfile::data_section_offset.
9755 * xcoffread.c (enter_line_range): Use
9756 objfile::text_section_offset.
9757 (read_xcoff_symtab): Likewise.
9758
ab53f382
SM
97592020-01-23 Simon Marchi <simon.marchi@efficios.com>
9760
9761 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9762 declaration to narrower scopes.
9763
e7eee665
SM
97642020-01-23 Simon Marchi <simon.marchi@efficios.com>
9765
9766 * darwin-nat.h (struct darwin_exception_msg, enum
9767 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9768 Move up.
9769 (class darwin_nat_target) <wait_1, check_new_threads,
9770 decode_exception_message, decode_message, stop_inferior,
9771 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9772 * darwin-nat.c (darwin_check_new_threads): Rename to...
9773 (darwin_nat_target::check_new_threads): ... this.
9774 (darwin_suspend_inferior_it): Remove.
9775 (darwin_decode_exception_message): Rename to...
9776 (darwin_nat_target::decode_exception_message): ... this.
9777 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9778 (darwin_decode_message): Rename to...
9779 (darwin_nat_target::decode_message): ... this.
9780 (cancel_breakpoint): Rename to...
9781 (darwin_nat_target::cancel_breakpoint): ... this.
9782 (darwin_wait): Rename to...
9783 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9784 instead of iterate_over_inferiors.
9785 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9786 (darwin_stop_inferior): Rename to...
9787 (darwin_nat_target::stop_inferior): ... this.
9788 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9789 (darwin_init_thread_list): Rename to...
9790 (darwin_nat_target::init_thread_list): ... this.
9791 (darwin_ptrace_him): Rename to...
9792 (darwin_nat_target::ptrace_him): ... this.
9793 (darwin_nat_target::create_inferior): Pass lambda function to
9794 fork_inferior.
9795 (darwin_nat_target::detach): Call stop_inferior instead of
9796 darwin_stop_inferior.
9797 * fork-inferior.h (fork_inferior): Change init_trace_fun
9798 parameter to gdb::function_view.
9799 * fork-inferior.c (fork_inferior): Likewise.
9800
c162ed3e
HD
98012020-01-23 Hannes Domani <ssbssa@yahoo.de>
9802
9803 * i386-cygwin-tdep.c (core_process_module_section): Update.
9804 * windows-nat.c (struct lm_info_windows): Add text_offset.
9805 (windows_xfer_shared_libraries): Update.
9806 * windows-tdep.c (windows_xfer_shared_library):
9807 Add text_offset_cached argument.
9808 * windows-tdep.h (windows_xfer_shared_library): Update.
9809
a1237872
SM
98102020-01-21 Simon Marchi <simon.marchi@efficios.com>
9811
9812 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9813
b3ee6dd9
SM
98142020-01-21 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9817 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9818 replace with range-based for.
9819 (gdbsim_interrupt_inferior): Remove.
9820 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9821 with a range-based for. Inline code from
9822 gdbsim_interrupt_inferior.
9823
f9fac3c8
SM
98242020-01-21 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * infrun.c (proceed): Fix indentation.
9827
f6474de9
TT
98282020-01-21 Tom Tromey <tromey@adacore.com>
9829
9830 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9831 * python/python.c (python_extension_ops): Update.
9832 (gdbpy_colorize): New function.
9833 * python/lib/gdb/__init__.py (colorize): New function.
9834 * extension.h (ext_lang_colorize): Declare.
9835 * extension.c (ext_lang_colorize): New function.
9836 * extension-priv.h (struct extension_language_ops) <colorize>: New
9837 member.
9838 * cli/cli-style.c (_initialize_cli_style): Update help text.
9839
f0c702d4
LM
98402020-01-21 Luis Machado <luis.machado@linaro.org>
9841
9842 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9843 <cond>: Change type to bool.
9844 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9845 (aarch64_displaced_step_cb): Likewise.
9846 (aarch64_displaced_step_tb): Likewise.
9847
1ab139e5
LM
98482020-01-21 Luis Machado <luis.machado@linaro.org>
9849
9850 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9851 output.
9852
0c271889
LM
98532020-01-21 Luis Machado <luis.machado@linaro.org>
9854
9855 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9856 <pc_adjust>: Adjust the documentation.
9857 (aarch64_displaced_step_fixup): Check if PC really moved before
9858 adjusting it.
9859
4d89c1c7
TT
98602020-01-19 Tom Tromey <tom@tromey.com>
9861
9862 * disasm.c (~gdb_disassembler): New destructor.
9863 (gdb_buffered_insn_length): Call disassemble_free_target.
9864 * disasm.h (class gdb_disassembler): Declare destructor. Use
9865 DISABLE_COPY_AND_ASSIGN.
9866
c0ab21c2
TT
98672020-01-19 Tom Tromey <tom@tromey.com>
9868
9869 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9870 (die_reader_func_ftype): Remove.
9871 (cutu_reader): New class.
9872 (dw2_get_file_names_reader): Remove "data" parameter.
9873 (dw2_get_file_names): Use cutu_reader.
9874 (create_debug_type_hash_table): Update.
9875 (read_cutu_die_from_dwo): Update comment.
9876 (lookup_dwo_unit): Add dwo_name parameter.
9877 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9878 die_reader_func_ftype and data parameters.
9879 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9880 Remove die_reader_func_ftype and data parameters.
9881 (~cutu_reader): New; from init_cutu_and_read_dies.
9882 (cutu_reader::cutu_reader): Rename from
9883 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9884 and data parameters.
9885 (init_cutu_and_read_dies_simple): Remove.
9886 (struct process_psymtab_comp_unit_data): Remove.
9887 (process_psymtab_comp_unit_reader): Remove data parameter; add
9888 want_partial_unit and pretend_language parameters.
9889 (process_psymtab_comp_unit): Use cutu_reader.
9890 (build_type_psymtabs_reader): Remove data parameter.
9891 (build_type_psymtabs_1): Use cutu_reader.
9892 (process_skeletonless_type_unit): Likewise.
9893 (load_partial_comp_unit_reader): Remove.
9894 (load_partial_comp_unit): Use cutu_reader.
9895 (load_full_comp_unit_reader): Remove.
9896 (load_full_comp_unit): Use cutu_reader.
9897 (struct create_dwo_cu_data): Remove.
9898 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9899 dwo_unit parameters.
9900 (create_cus_hash_table): Use cutu_reader.
9901 (struct dwarf2_read_addr_index_data): Remove.
9902 (dwarf2_read_addr_index_reader): Remove.
9903 (dwarf2_read_addr_index): Use cutu_reader.
9904 (read_signatured_type_reader): Remove.
9905 (read_signatured_type): Use cutu_reader.
9906
45bbae5c
TT
99072020-01-19 Tom Tromey <tom@tromey.com>
9908
9909 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9910 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9911 (tui_wrefresh): Declare.
9912 * tui/tui-wingeneral.c (suppress_output): New global.
9913 (tui_suppress_output, ~tui_suppress_output): New constructor and
9914 destructor.
9915 (tui_wrefresh): New function.
9916 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9917 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9918 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9919 method.
9920 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9921 tui_wrefresh.
9922 (tui_data_window::no_refresh): New method.
9923 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9924 (tui_reg_command): Use tui_suppress_output
9925 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9926 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9927 method.
9928 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9929
4f13c1c0
TT
99302020-01-19 Tom Tromey <tom@tromey.com>
9931
9932 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9933 Handle case where symtab is null.
9934
fa47e446
SM
99352020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9936
9937 * linux-fork.c (one_fork_p): Simplify.
9938
26f42329
SM
99392020-01-17 Simon Marchi <simon.marchi@efficios.com>
9940
9941 * top.c (struct qt_args): Remove.
9942 (kill_or_detach): Change return type to void, replace `void *`
9943 parameter with a proper one.
9944 (print_inferior_quit_action): Likewise.
9945 (quit_confirm): Use range-based for loop to iterate over inferiors.
9946 (quit_force): Likewise.
9947
a9ac81b1
SM
99482020-01-17 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9951 `void *` parameter with proper parameters.
9952 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9953 (print_one_inferior): Change return type to void, replace `void *`
9954 parameter with proper parameters.
9955 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9956 inferiors.
9957 (get_other_inferior): Remove.
9958 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9959 inferiors.
9960
788eca49
SM
99612020-01-17 Simon Marchi <simon.marchi@efficios.com>
9962
9963 * mi/mi-interp.c (report_initial_inferior): Remove.
9964 (mi_interp::init): Use range-based for to iterate over inferiors.
9965
d9bc85b6
SM
99662020-01-17 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * python/py-inferior.c (build_inferior_list): Remove.
9969 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9970
40c94099
CB
99712020-01-16 Christian Biesinger <cbiesinger@google.com>
9972
9973 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9974 (btrace_stitch_trace): Likewise.
9975 * charset.c (intermediate_encoding): Likewise (vaild).
9976 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9977 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9978 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9979
e0cdfe3c
HD
99802020-01-16 Hannes Domani <ssbssa@yahoo.de>
9981
9982 * windows-tdep.c (windows_get_tlb_type):
9983 Add rtl_user_process_parameters type.
9984
790f1718 99852020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9986 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9987
9988 PR build/24805
9989 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9990 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9991 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9992 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9993 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9994 (ps_plog): Redeclare exported functions with default visibility.
9995
3112ed97
NA
99962020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9997
9998 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9999 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10000
8dc3273e
SM
100012020-01-15 Simon Marchi <simon.marchi@efficios.com>
10002
10003 * infcmd.c (post_create_inferior): Use get_thread_regcache
10004 instead of get_current_regcache.
10005
ff47f4f0
TT
100062020-01-14 Tom Tromey <tom@tromey.com>
10007
10008 PR symtab/12535:
10009 * python/python.c (gdbpy_decode_line): Treat empty string the same
10010 as no argument.
10011
975f45b7
TT
100122020-01-14 Tom Tromey <tom@tromey.com>
10013
10014 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10015
25e57356
TT
100162020-01-14 Tom Tromey <tom@tromey.com>
10017
10018 * nat/linux-btrace.c: Don't include <config.h>.
10019 * nat/linux-ptrace.c: Don't include <config.h>.
10020 * nat/x86-linux-dregs.c: Don't include <config.h>.
10021
05ea2a05
TT
100222020-01-14 Tom Tromey <tom@tromey.com>
10023
10024 * configure: Rebuild.
10025 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10026
01027315
TT
100272020-01-14 Tom Tromey <tom@tromey.com>
10028
10029 * nat/x86-linux-dregs.c: Include configh.h.
10030 * nat/linux-ptrace.c: Include configh.h.
10031 * nat/linux-btrace.c: Include configh.h.
10032 * defs.h: Include config.h, bfd.h.
10033 * configure.ac: Don't source common.host.
10034 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10035 * configure: Rebuild.
10036 * acinclude.m4: Update path.
10037 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10038 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10039 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10040 (CLIBS): Add LIBSUPPORT.
10041 (CDEPS): Likewise.
10042 (COMMON_SFILES): Remove gdbsupport files.
10043 (HFILES_NO_SRCDIR): Likewise.
10044 (stamp-version): Update path to create-version.sh.
10045 (ALLDEPFILES): Remove gdbsupport files.
10046
b2ceabe8
TT
100472020-01-14 Tom Tromey <tom@tromey.com>
10048
10049 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10050 USE_WIN32API when needed.
10051 * configure.ac (USE_WIN32API): Don't define.
10052 (WIN32LIBS): Use WIN32APILIBS.
10053 * configure: Rebuild.
10054
25c51f71
TT
100552020-01-14 Tom Tromey <tom@tromey.com>
10056
10057 * configure: Rebuild.
10058 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10059
717c684d
BE
100602020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10061
10062 * skip.c (skip_function_command): Make skip w/o arguments use the
10063 name of the inlined function if pc is inside any inlined function.
10064
7da6a5b9
LM
100652020-01-14 Luis Machado <luis.machado@linaro.org>
10066
10067 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10068 * infrun.c (resume_1): Likewise.
10069 (handle_inferior_event): Remove stale comment.
10070 * linux-nat.c (linux_nat_target::resume): Update comments.
10071 (save_stop_reason): Likewise.
10072 (linux_nat_filter_event): Likewise.
10073 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10074
44e4c775
AB
100752020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10076
10077 * elfread.c (record_minimal_symbol): Set section index to 0 for
10078 non-allocatable sections.
10079
18a8505e
AT
10080
100812020-01-13 Ali Tamur <tamur@google.com>
10082
10083 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10084 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10085 to gdb::optional. Update comments.
10086 (dwo_file): Update comments.
10087 (read_attribute): Update API to take an additional out parameter,
10088 need_reprocess. This is used to mark attributes that need other
10089 attributes (e.g. str_offsets_base) for correct computation which may not
10090 have been read yet.
10091 (read_attribute_reprocess): New function declaration.
10092 (read_addr_index): Likewise.
10093 (read_dwo_str_index): Likewise.
10094 (read_stub_str_index): Likewise.
10095 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10096 (lookup_addr_base): New function definition.
10097 (lookup_ranges_base): Likewise.
10098 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10099 lookup_ranges_base.
10100 (init_cutu_and_read_dies): Update comments.
10101 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10102 unit. This is used to inherit parent's str_offsets_base and addr_base.
10103 Update comments.
10104 (init_cutu_and_read_dies_simple): Reflect API changes.
10105 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10106 (create_cus_hash_table): Change API to take parent compile unit.
10107 Reflect API changes.
10108 (open_and_init_dwo_file): Reflect API changes.
10109 (dwarf2_get_pc_bounds): Update comments.
10110 (dwarf2_record_block_ranges): Likewise.
10111 (read_full_die_1): Change implementation to reprocess attributes that
10112 need str_offsets_base and addr_base.
10113 (partial_die_info::read): Likewise.
10114 (read_attribute_reprocess): New function definition.
10115 (read_attribute_value): Change API to take an additional out parameter,
10116 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10117 when a non-dwo compile unit has index based attributes.
10118 (read_attribute): Reflect API changes.
10119 (read_addr_index_1): Reflect API changes. Update comments.
10120 (dwarf2_read_addr_index_data): Reflect API changes.
10121 (dwarf2_read_addr_index): Likewise.
10122 (read_str_index): Change API and implementation. This becomes a helper
10123 to be used by the new string index related methods. Update error
10124 message and comments.
10125 (read_dwo_str_index): New function definition.
10126 (read_stub_str_index): Likewise.
10127 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10128 * symfile.h (dwarf2_debug_sections): Likewise.
10129 * xcoffread.c (dwarf2_debug_sections): Likewise.
10130
0cac9354
SM
101312020-01-13 Simon Marchi <simon.marchi@efficios.com>
10132
10133 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10134 core_reg_sect type to gdb_byte *.
10135 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10136 * cris-tdep.c (fetch_core_registers): Likewise.
10137 * corelow.c (core_target::get_core_register_section): Change
10138 type of `contents` to gdb::byte_vector.
10139
9a6d629c
AB
101402020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10141
10142 * tui/tui-wingeneral.c (box_win): Position the title in the center
10143 of the border.
10144
d8b2f9e3
SM
101452020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10146
10147 * corelow.c (core_target::get_core_register_section): Use
10148 std::vector instead of alloca.
10149
bb564c58
SM
101502020-01-13 Simon Marchi <simon.marchi@efficios.com>
10151
10152 * warning.m4: Add -Wmissing-declarations to build_warnings.
10153 * configure: Re-generate.
10154
6b366111
SM
101552020-01-13 Simon Marchi <simon.marchi@efficios.com>
10156
10157 * python/python.c (init__gdb_module): Add declaration.
10158
6c265988
SM
101592020-01-13 Simon Marchi <simon.marchi@efficios.com>
10160
10161 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10162 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10163 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10164 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10165 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10166 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10167 * ada-exp.y (_initialize_ada_exp): Add declaration.
10168 * ada-lang.c (_initialize_ada_language): Add declaration.
10169 * ada-tasks.c (_initialize_tasks): Add declaration.
10170 * agent.c (_initialize_agent): Add declaration.
10171 * aix-thread.c (_initialize_aix_thread): Add declaration.
10172 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10173 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10174 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10175 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10176 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10177 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10178 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10179 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10180 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10181 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10182 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10183 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10184 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10185 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10186 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10187 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10188 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10189 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10190 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10191 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10192 * annotate.c (_initialize_annotate): Add declaration.
10193 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10194 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10195 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10196 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10197 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10198 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10199 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10200 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10201 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10202 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10203 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10204 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10205 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10206 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10207 * auto-load.c (_initialize_auto_load): Add declaration.
10208 * auxv.c (_initialize_auxv): Add declaration.
10209 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10210 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10211 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10212 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10213 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10214 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10215 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10216 * breakpoint.c (_initialize_breakpoint): Add declaration.
10217 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10218 * btrace.c (_initialize_btrace): Add declaration.
10219 * charset.c (_initialize_charset): Add declaration.
10220 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10221 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10222 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10223 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10224 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10225 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10226 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10227 * coffread.c (_initialize_coffread): Add declaration.
10228 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10229 * compile/compile.c (_initialize_compile): Add declaration.
10230 * complaints.c (_initialize_complaints): Add declaration.
10231 * completer.c (_initialize_completer): Add declaration.
10232 * copying.c (_initialize_copying): Add declaration.
10233 * corefile.c (_initialize_core): Add declaration.
10234 * corelow.c (_initialize_corelow): Add declaration.
10235 * cp-abi.c (_initialize_cp_abi): Add declaration.
10236 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10237 * cp-support.c (_initialize_cp_support): Add declaration.
10238 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10239 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10240 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10241 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10242 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10243 * ctfread.c (_initialize_ctfread): Add declaration.
10244 * d-lang.c (_initialize_d_language): Add declaration.
10245 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10246 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10247 * dbxread.c (_initialize_dbxread): Add declaration.
10248 * dcache.c (_initialize_dcache): Add declaration.
10249 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10250 * disasm.c (_initialize_disasm): Add declaration.
10251 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10252 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10253 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10254 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10255 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10256 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10257 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10258 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10259 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10260 * elfread.c (_initialize_elfread): Add declaration.
10261 * exec.c (_initialize_exec): Add declaration.
10262 * extension.c (_initialize_extension): Add declaration.
10263 * f-lang.c (_initialize_f_language): Add declaration.
10264 * f-valprint.c (_initialize_f_valprint): Add declaration.
10265 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10266 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10267 * filesystem.c (_initialize_filesystem): Add declaration.
10268 * findcmd.c (_initialize_mem_search): Add declaration.
10269 * findvar.c (_initialize_findvar): Add declaration.
10270 * fork-child.c (_initialize_fork_child): Add declaration.
10271 * frame-base.c (_initialize_frame_base): Add declaration.
10272 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10273 * frame.c (_initialize_frame): Add declaration.
10274 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10275 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10276 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10277 * gcore.c (_initialize_gcore): Add declaration.
10278 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10279 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10280 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10281 * gdbarch.c (_initialize_gdbarch): Add declaration.
10282 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10283 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10284 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10285 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10286 * go-lang.c (_initialize_go_language): Add declaration.
10287 * go32-nat.c (_initialize_go32_nat): Add declaration.
10288 * guile/guile.c (_initialize_guile): Add declaration.
10289 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10290 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10291 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10292 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10293 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10294 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10295 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10296 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10297 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10298 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10299 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10300 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10301 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10302 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10303 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10304 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10305 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10306 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10307 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10308 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10309 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10310 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10311 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10312 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10313 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10314 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10315 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10316 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10317 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10318 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10319 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10320 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10321 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10322 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10323 * infcall.c (_initialize_infcall): Add declaration.
10324 * infcmd.c (_initialize_infcmd): Add declaration.
10325 * inflow.c (_initialize_inflow): Add declaration.
10326 * infrun.c (_initialize_infrun): Add declaration.
10327 * interps.c (_initialize_interpreter): Add declaration.
10328 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10329 * jit.c (_initialize_jit): Add declaration.
10330 * language.c (_initialize_language): Add declaration.
10331 * linux-fork.c (_initialize_linux_fork): Add declaration.
10332 * linux-nat.c (_initialize_linux_nat): Add declaration.
10333 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10334 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10335 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10336 * m2-lang.c (_initialize_m2_language): Add declaration.
10337 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10338 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10339 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10340 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10341 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10342 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10343 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10344 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10345 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10346 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10347 * machoread.c (_initialize_machoread): Add declaration.
10348 * macrocmd.c (_initialize_macrocmd): Add declaration.
10349 * macroscope.c (_initialize_macroscope): Add declaration.
10350 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10351 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10352 * maint.c (_initialize_maint_cmds): Add declaration.
10353 * mdebugread.c (_initialize_mdebugread): Add declaration.
10354 * memattr.c (_initialize_mem): Add declaration.
10355 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10356 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10357 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10358 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10359 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10360 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10361 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10362 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10363 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10364 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10365 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10366 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10367 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10368 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10369 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10370 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10371 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10372 * mipsread.c (_initialize_mipsread): Add declaration.
10373 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10374 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10375 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10376 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10377 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10378 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10379 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10380 * nto-procfs.c (_initialize_procfs): Add declaration.
10381 * objc-lang.c (_initialize_objc_language): Add declaration.
10382 * observable.c (_initialize_observer): Add declaration.
10383 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10384 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10385 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10386 * osabi.c (_initialize_gdb_osabi): Add declaration.
10387 * osdata.c (_initialize_osdata): Add declaration.
10388 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10389 * parse.c (_initialize_parse): Add declaration.
10390 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10391 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10392 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10393 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10394 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10395 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10396 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10397 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10398 * printcmd.c (_initialize_printcmd): Add declaration.
10399 * probe.c (_initialize_probe): Add declaration.
10400 * proc-api.c (_initialize_proc_api): Add declaration.
10401 * proc-events.c (_initialize_proc_events): Add declaration.
10402 * proc-service.c (_initialize_proc_service): Add declaration.
10403 * procfs.c (_initialize_procfs): Add declaration.
10404 * producer.c (_initialize_producer): Add declaration.
10405 * psymtab.c (_initialize_psymtab): Add declaration.
10406 * python/python.c (_initialize_python): Add declaration.
10407 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10408 * record-btrace.c (_initialize_record_btrace): Add declaration.
10409 * record-full.c (_initialize_record_full): Add declaration.
10410 * record.c (_initialize_record): Add declaration.
10411 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10412 * regcache.c (_initialize_regcache): Add declaration.
10413 * reggroups.c (_initialize_reggroup): Add declaration.
10414 * remote-notif.c (_initialize_notif): Add declaration.
10415 * remote-sim.c (_initialize_remote_sim): Add declaration.
10416 * remote.c (_initialize_remote): Add declaration.
10417 * reverse.c (_initialize_reverse): Add declaration.
10418 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10419 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10420 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10421 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10422 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10423 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10424 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10425 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10426 Add declaration.
10427 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10428 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10429 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10430 * rust-exp.y (_initialize_rust_exp): Add declaration.
10431 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10432 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10433 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10434 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10435 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10436 * score-tdep.c (_initialize_score_tdep): Add declaration.
10437 * ser-go32.c (_initialize_ser_dos): Add declaration.
10438 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10439 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10440 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10441 * ser-uds.c (_initialize_ser_socket): Add declaration.
10442 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10443 * serial.c (_initialize_serial): Add declaration.
10444 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10445 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10446 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10447 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10448 * skip.c (_initialize_step_skip): Add declaration.
10449 * sol-thread.c (_initialize_sol_thread): Add declaration.
10450 * solib-aix.c (_initialize_solib_aix): Add declaration.
10451 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10452 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10453 * solib-frv.c (_initialize_frv_solib): Add declaration.
10454 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10455 * solib-target.c (_initialize_solib_target): Add declaration.
10456 * solib.c (_initialize_solib): Add declaration.
10457 * source-cache.c (_initialize_source_cache): Add declaration.
10458 * source.c (_initialize_source): Add declaration.
10459 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10460 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10461 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10462 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10463 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10464 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10465 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10466 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10467 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10468 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10469 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10470 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10471 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10472 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10473 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10474 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10475 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10476 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10477 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10478 * stabsread.c (_initialize_stabsread): Add declaration.
10479 * stack.c (_initialize_stack): Add declaration.
10480 * stap-probe.c (_initialize_stap_probe): Add declaration.
10481 * std-regs.c (_initialize_frame_reg): Add declaration.
10482 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10483 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10484 * symfile.c (_initialize_symfile): Add declaration.
10485 * symmisc.c (_initialize_symmisc): Add declaration.
10486 * symtab.c (_initialize_symtab): Add declaration.
10487 * target.c (_initialize_target): Add declaration.
10488 * target-connection.c (_initialize_target_connection): Add
10489 declaration.
10490 * target-dcache.c (_initialize_target_dcache): Add declaration.
10491 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10492 * thread.c (_initialize_thread): Add declaration.
10493 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10494 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10495 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10496 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10497 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10498 * tracectf.c (_initialize_ctf): Add declaration.
10499 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10500 * tracefile.c (_initialize_tracefile): Add declaration.
10501 * tracepoint.c (_initialize_tracepoint): Add declaration.
10502 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10503 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10504 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10505 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10506 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10507 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10508 * tui/tui.c (_initialize_tui): Add declaration.
10509 * typeprint.c (_initialize_typeprint): Add declaration.
10510 * ui-style.c (_initialize_ui_style): Add declaration.
10511 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10512 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10513 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10514 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10515 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10516 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10517 * unittests/filtered_iterator-selftests.c
10518 (_initialize_filtered_iterator_selftests): Add declaration.
10519 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10520 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10521 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10522 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10523 * unittests/main-thread-selftests.c
10524 (_initialize_main_thread_selftests): Add declaration.
10525 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10526 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10527 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10528 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10529 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10530 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10531 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10532 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10533 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10534 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10535 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10536 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10537 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10538 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10539 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10540 declaration.
10541 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10542 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10543 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10544 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10545 * user-regs.c (_initialize_user_regs): Add declaration.
10546 * utils.c (_initialize_utils): Add declaration.
10547 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10548 * valops.c (_initialize_valops): Add declaration.
10549 * valprint.c (_initialize_valprint): Add declaration.
10550 * value.c (_initialize_values): Add declaration.
10551 * varobj.c (_initialize_varobj): Add declaration.
10552 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10553 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10554 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10555 * windows-nat.c (_initialize_windows_nat): Add declaration.
10556 (_initialize_check_for_gdb_ini): Add declaration.
10557 (_initialize_loadable): Add declaration.
10558 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10559 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10560 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10561 * xcoffread.c (_initialize_xcoffread): Add declaration.
10562 * xml-support.c (_initialize_xml_support): Add declaration.
10563 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10564 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10565 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10566 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10567
e2de1eec
SM
105682020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10569
10570 * regformats/regdat.sh: Generate declaration for init function.
10571
e0037b4c
SM
105722020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10573
10574 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10575 up.
10576 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10577 close_one_inferior>: New methods.
10578 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10579 pass down target to find_inferior_pid.
10580 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10581 Pass down target to find_inferior_ptid.
10582 (gdbsim_target::create_inferior): Pass down target to
10583 add_thread_silent.
10584 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10585 target down to find_inferior_ptid and switch_to_thread.
10586 (gdbsim_target::close): Update to call close_one_inferior.
10587 (struct resume_data): Remove.
10588 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10589 directly, rather than through a void pointer.
10590 (gdbsim_target::resume): Update to call resume_one_inferior.
10591
58920b5b
SM
105922020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10593
10594 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10595
4ec89149
PA
105962020-01-12 Pedro Alves <palves@redhat.com>
10597
10598 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10599 directly for the current inferior instead of
10600 discard_all_inferiors.
10601 (discard_all_inferiors): Delete.
10602
7c392d1d
TT
106032020-01-11 Tom Tromey <tom@tromey.com>
10604
10605 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10606 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10607 deprecated_safe_get_selected_frame.
10608
d9ebdab7
TBA
106092020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10610
10611 * inferior.c (print_inferior): Switch inferior before printing it.
10612
f3c469b9
PA
106132020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10614 Pedro Alves <palves@redhat.com>
10615
10616 * progspace-and-thread.c (switch_to_program_space_and_thread):
10617 Assert there's an inferior for PSPACE. Use
10618 switch_to_inferior_no_thread to switch the inferior too.
10619 * progspace.c (program_space::~program_space): Call
10620 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10621 (program_space::free_all_objfiles): Don't call clear_symtab_users
10622 here.
10623 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10624
65c574f6
PA
106252020-01-10 Pedro Alves <palves@redhat.com>
10626
10627 * NEWS: Mention multi-target debugging, "info connections", and
10628 "add-inferior -no-connection".
10629
2f4fcf00
PA
106302020-01-10 Pedro Alves <palves@redhat.com>
10631
10632 * infrun.c: Include "target-connection.h".
10633 (check_multi_target_resumption): New.
10634 (proceed): Call it.
10635 * target-connection.c (make_target_connection_string): Make
10636 extern.
10637 * target-connection.h (make_target_connection_string): Declare.
10638
121b3efd
PA
106392020-01-10 Pedro Alves <palves@redhat.com>
10640
10641 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10642 * inferior.c (uiout_field_connection): New function.
10643 (print_inferior): Add new "connection-id" column.
10644 (add_inferior_command): Show connection number/string of added
10645 inferior.
10646 * process-stratum-target.h
10647 (process_stratum_target::connection_string): New virtual method.
10648 (process_stratum_target::connection_number): New field.
10649 * remote.c (remote_target::connection_string): New override.
10650 * target-connection.c: New file.
10651 * target-connection.h: New file.
10652 * target.c (decref_target): Remove process_stratum targets from
10653 the connection list.
10654 (target_stack::push): Add process_stratum targets to the
10655 connection list.
10656
4f837581
PA
106572020-01-10 Pedro Alves <palves@redhat.com>
10658
10659 Revert:
10660 2016-04-12 Pedro Alves <palves@redhat.com>
10661 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10662 Remove references to name.
10663 * serial.h (struct serial) <name>: Delete.
10664
f4ec508e
PA
106652020-01-10 Pedro Alves <palves@redhat.com>
10666
10667 * gdbarch-selftests.c (register_to_value_test): Remove "target
10668 already pushed" check.
10669
5b6d1e4f
PA
106702020-01-10 Pedro Alves <palves@redhat.com>
10671 John Baldwin <jhb@FreeBSD.org>
10672
10673 * aarch64-linux-nat.c
10674 (aarch64_linux_nat_target::thread_architecture): Adjust.
10675 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10676 (task_command_1): Likewise.
10677 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10678 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10679 (aix_thread_target::store_registers)
10680 (aix_thread_target::thread_alive): Adjust.
10681 * amd64-fbsd-tdep.c: Include "inferior.h".
10682 (amd64fbsd_get_thread_local_address): Pass down target.
10683 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10684 thread's gdbarch instead of target_gdbarch.
10685 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10686 get_last_target_status.
10687 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10688 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10689 inferiors.
10690 (update_inserted_breakpoint_locations): Skip if inferiors with no
10691 execution.
10692 (update_global_location_list): When handling moribund locations,
10693 find representative inferior for location's pspace, and use thread
10694 count of its process_stratum target.
10695 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10696 * bsd-uthread.c (bsd_uthread_target::wait): Use
10697 as_process_stratum_target and adjust thread_change_ptid and
10698 add_thread calls.
10699 (bsd_uthread_target::update_thread_list): Use
10700 as_process_stratum_target and adjust find_thread_ptid,
10701 thread_change_ptid and add_thread calls.
10702 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10703 find_thread_ptid call.
10704 * corelow.c (add_to_thread_list): Adjust add_thread call.
10705 (core_target_open): Adjust add_thread_silent and thread_count
10706 calls.
10707 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10708 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10709 * event-top.c (async_disconnect): Pop targets from all inferiors.
10710 * exec.c (add_target_sections): Push exec target on all inferiors
10711 sharing the program space.
10712 (remove_target_sections): Remove the exec target from all
10713 inferiors sharing the program space.
10714 (exec_on_vfork): New.
10715 * exec.h (exec_on_vfork): Declare.
10716 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10717 Pass it down.
10718 (fbsd_nat_target::update_thread_list): Adjust.
10719 (fbsd_nat_target::resume): Adjust.
10720 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10721 down.
10722 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10723 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10724 get_thread_arch_regcache call.
10725 * fork-child.c (gdb_startup_inferior): Pass target down to
10726 startup_inferior and set_executing.
10727 * gdbthread.h (struct process_stratum_target): Forward declare.
10728 (add_thread, add_thread_silent, add_thread_with_info)
10729 (in_thread_list): Add process_stratum_target parameter.
10730 (find_thread_ptid(inferior*, ptid_t)): New overload.
10731 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10732 parameter.
10733 (all_threads()): Delete overload.
10734 (all_threads, all_non_exited_threads): Add process_stratum_target
10735 parameter.
10736 (all_threads_safe): Use brace initialization.
10737 (thread_count): Add process_stratum_target parameter.
10738 (set_resumed, set_running, set_stop_requested, set_executing)
10739 (threads_are_executing, finish_thread_state): Add
10740 process_stratum_target parameter.
10741 (switch_to_thread): Use is_current_thread.
10742 * i386-fbsd-tdep.c: Include "inferior.h".
10743 (i386fbsd_get_thread_local_address): Pass down target.
10744 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10745 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10746 have_inferiors check.
10747 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10748 (inf_ptrace_target::attach): Adjust.
10749 * infcall.c (run_inferior_call): Adjust.
10750 * infcmd.c (run_command_1): Pass target to
10751 scoped_finish_thread_state.
10752 (proceed_thread_callback): Skip inferiors with no execution.
10753 (continue_command): Rename 'all_threads' local to avoid hiding
10754 'all_threads' function. Adjust get_last_target_status call.
10755 (prepare_one_step): Adjust set_running call.
10756 (signal_command): Use user_visible_resume_target. Compare thread
10757 pointers instead of inferior_ptid.
10758 (info_program_command): Adjust to pass down target.
10759 (attach_command): Mark target's 'thread_executing' flag.
10760 (stop_current_target_threads_ns): New, factored out from ...
10761 (interrupt_target_1): ... this. Switch inferior before making
10762 target calls.
10763 * inferior-iter.h
10764 (struct all_inferiors_iterator, struct all_inferiors_range)
10765 (struct all_inferiors_safe_range)
10766 (struct all_non_exited_inferiors_range): Filter on
10767 process_stratum_target too. Remove explicit.
10768 * inferior.c (inferior::inferior): Push dummy target on target
10769 stack.
10770 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10771 Add process_stratum_target parameter, and pass it down.
10772 (have_live_inferiors): Adjust.
10773 (switch_to_inferior_and_push_target): New.
10774 (add_inferior_command, clone_inferior_command): Handle
10775 "-no-connection" parameter. Use
10776 switch_to_inferior_and_push_target.
10777 (_initialize_inferior): Mention "-no-connection" option in
10778 the help of "add-inferior" and "clone-inferior" commands.
10779 * inferior.h: Include "process-stratum-target.h".
10780 (interrupt_target_1): Use bool.
10781 (struct inferior) <push_target, unpush_target, target_is_pushed,
10782 find_target_beneath, top_target, process_target, target_at,
10783 m_stack>: New.
10784 (discard_all_inferiors): Delete.
10785 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10786 (all_inferiors, all_non_exited_inferiors): Add
10787 process_stratum_target parameter.
10788 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10789 (target_last_proc_target): New global.
10790 (follow_fork_inferior): Push target on new inferior. Pass target
10791 to add_thread_silent. Call exec_on_vfork. Handle target's
10792 reference count.
10793 (follow_fork): Adjust get_last_target_status call. Also consider
10794 target.
10795 (follow_exec): Push target on new inferior.
10796 (struct execution_control_state) <target>: New field.
10797 (user_visible_resume_target): New.
10798 (do_target_resume): Call target_async.
10799 (resume_1): Set target's threads_executing flag. Consider resume
10800 target.
10801 (commit_resume_all_targets): New.
10802 (proceed): Also consider resume target. Skip threads of inferiors
10803 with no execution. Commit resumtion in all targets.
10804 (start_remote): Pass current inferior to wait_for_inferior.
10805 (infrun_thread_stop_requested): Consider target as well. Pass
10806 thread_info pointer to clear_inline_frame_state instead of ptid.
10807 (infrun_thread_thread_exit): Consider target as well.
10808 (random_pending_event_thread): New inferior parameter. Use it.
10809 (do_target_wait): Rename to ...
10810 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10811 down.
10812 (threads_are_resumed_pending_p, do_target_wait): New.
10813 (prepare_for_detach): Adjust calls.
10814 (wait_for_inferior): New inferior parameter. Handle it. Use
10815 do_target_wait_1 instead of do_target_wait.
10816 (fetch_inferior_event): Adjust. Switch to representative
10817 inferior. Pass target down.
10818 (set_last_target_status): Add process_stratum_target parameter.
10819 Save target in global.
10820 (get_last_target_status): Add process_stratum_target parameter and
10821 handle it.
10822 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10823 (context_switch): Check inferior_ptid == null_ptid before calling
10824 inferior_thread().
10825 (get_inferior_stop_soon): Pass down target.
10826 (wait_one): Rename to ...
10827 (poll_one_curr_target): ... this.
10828 (struct wait_one_event): New.
10829 (wait_one): New.
10830 (stop_all_threads): Adjust.
10831 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10832 event's target.
10833 (switch_back_to_stepped_thread): Also consider target.
10834 (print_stop_event): Update.
10835 (normal_stop): Update. Also consider the resume target.
10836 * infrun.h (wait_for_inferior): Remove declaration.
10837 (user_visible_resume_target): New declaration.
10838 (get_last_target_status, set_last_target_status): New
10839 process_stratum_target parameter.
10840 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10841 process_stratum_target parameter, and use it.
10842 (clear_inline_frame_state (thread_info*)): New.
10843 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10844 process_stratum_target parameter.
10845 (clear_inline_frame_state (thread_info*)): Declare.
10846 * linux-fork.c (delete_checkpoint_command): Pass target down to
10847 find_thread_ptid.
10848 (checkpoint_command): Adjust.
10849 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10850 instead of just tweaking inferior_ptid.
10851 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10852 (exit_lwp): Pass target down to find_thread_ptid.
10853 (attach_proc_task_lwp_callback): Pass target down to
10854 add_thread/set_running/set_executing.
10855 (linux_nat_target::attach): Pass target down to
10856 thread_change_ptid.
10857 (get_detach_signal): Pass target down to find_thread_ptid.
10858 Consider last target status's target.
10859 (linux_resume_one_lwp_throw, resume_lwp)
10860 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10861 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10862 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10863 (linux_nat_target::async_wait_fd): New.
10864 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10865 target down.
10866 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10867 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10868 * linux-thread-db.c (struct thread_db_info::process_target): New
10869 field.
10870 (add_thread_db_info): Save target.
10871 (get_thread_db_info): New process_stratum_target parameter. Also
10872 match target.
10873 (delete_thread_db_info): New process_stratum_target parameter.
10874 Also match target.
10875 (thread_from_lwp): Adjust to pass down target.
10876 (thread_db_notice_clone): Pass down target.
10877 (check_thread_db_callback): Pass down target.
10878 (try_thread_db_load_1): Always push the thread_db target.
10879 (try_thread_db_load, record_thread): Pass target down.
10880 (thread_db_target::detach): Pass target down. Always unpush the
10881 thread_db target.
10882 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10883 target down. Always unpush the thread_db target.
10884 (find_new_threads_callback, thread_db_find_new_threads_2)
10885 (thread_db_target::update_thread_list): Pass target down.
10886 (thread_db_target::pid_to_str): Pass current inferior down.
10887 (thread_db_target::get_thread_local_address): Pass target down.
10888 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10889 target down.
10890 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10891 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10892 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10893 (procfs_init_inferior): Rename to ...
10894 (procfs_target::procfs_init_inferior): ... this and adjust.
10895 (procfs_target::create_inferior, procfs_notice_thread)
10896 (procfs_do_thread_registers): Adjust.
10897 * ppc-fbsd-tdep.c: Include "inferior.h".
10898 (ppcfbsd_get_thread_local_address): Pass down target.
10899 * proc-service.c (ps_xfer_memory): Switch current inferior and
10900 program space as well.
10901 (get_ps_regcache): Pass target down.
10902 * process-stratum-target.c
10903 (process_stratum_target::thread_address_space)
10904 (process_stratum_target::thread_architecture): Pass target down.
10905 * process-stratum-target.h
10906 (process_stratum_target::threads_executing): New field.
10907 (as_process_stratum_target): New.
10908 * ravenscar-thread.c
10909 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10910 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10911 down.
10912 * record-btrace.c (record_btrace_target::info_record): Adjust.
10913 (record_btrace_target::record_method)
10914 (record_btrace_target::record_is_replaying)
10915 (record_btrace_target::fetch_registers)
10916 (get_thread_current_frame_id, record_btrace_target::resume)
10917 (record_btrace_target::wait, record_btrace_target::stop): Pass
10918 target down.
10919 * record-full.c (record_full_wait_1): Switch to event thread.
10920 Pass target down.
10921 * regcache.c (regcache::regcache)
10922 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10923 process_stratum_target parameter and handle it.
10924 (current_thread_target): New global.
10925 (get_thread_regcache): Add process_stratum_target parameter and
10926 handle it. Switch inferior before calling target method.
10927 (get_thread_regcache): Pass target down.
10928 (get_thread_regcache_for_ptid): Pass target down.
10929 (registers_changed_ptid): Add process_stratum_target parameter and
10930 handle it.
10931 (registers_changed_thread, registers_changed): Pass target down.
10932 (test_get_thread_arch_aspace_regcache): New.
10933 (current_regcache_test): Define a couple local test_target_ops
10934 instances and use them for testing.
10935 (readwrite_regcache): Pass process_stratum_target parameter.
10936 (cooked_read_test, cooked_write_test): Pass mock_target down.
10937 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10938 (get_thread_arch_aspace_regcache): Add process_stratum_target
10939 parameter.
10940 (regcache::target): New method.
10941 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10942 (regcache::registers_changed_ptid): Add process_stratum_target
10943 parameter.
10944 (regcache::m_target): New field.
10945 (registers_changed_ptid): Add process_stratum_target parameter.
10946 * remote.c (remote_state::supports_vCont_probed): New field.
10947 (remote_target::async_wait_fd): New method.
10948 (remote_unpush_and_throw): Add remote_target parameter.
10949 (get_current_remote_target): Adjust.
10950 (remote_target::remote_add_inferior): Push target.
10951 (remote_target::remote_add_thread)
10952 (remote_target::remote_notice_new_inferior)
10953 (get_remote_thread_info): Pass target down.
10954 (remote_target::update_thread_list): Skip threads of inferiors
10955 bound to other targets. (remote_target::close): Don't discard
10956 inferiors. (remote_target::add_current_inferior_and_thread)
10957 (remote_target::process_initial_stop_replies)
10958 (remote_target::start_remote)
10959 (remote_target::remote_serial_quit_handler): Pass down target.
10960 (remote_target::remote_unpush_target): New remote_target
10961 parameter. Unpush the target from all inferiors.
10962 (remote_target::remote_unpush_and_throw): New remote_target
10963 parameter. Pass it down.
10964 (remote_target::open_1): Check whether the current inferior has
10965 execution instead of checking whether any inferior is live. Pass
10966 target down.
10967 (remote_target::remote_detach_1): Pass down target. Use
10968 remote_unpush_target.
10969 (extended_remote_target::attach): Pass down target.
10970 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10971 (remote_target::append_resumption): Pass down target.
10972 (remote_target::append_pending_thread_resumptions)
10973 (remote_target::remote_resume_with_hc, remote_target::resume)
10974 (remote_target::commit_resume): Pass down target.
10975 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10976 (remote_target::interrupt_query)
10977 (remote_target::remove_new_fork_children)
10978 (remote_target::check_pending_events_prevent_wildcard_vcont)
10979 (remote_target::remote_parse_stop_reply)
10980 (remote_target::process_stop_reply): Pass down target.
10981 (first_remote_resumed_thread): New remote_target parameter. Pass
10982 it down.
10983 (remote_target::wait_as): Pass down target.
10984 (unpush_and_perror): New remote_target parameter. Pass it down.
10985 (remote_target::readchar, remote_target::remote_serial_write)
10986 (remote_target::getpkt_or_notif_sane_1)
10987 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10988 down target.
10989 (remote_target::mourn_inferior): Pass down target. Use
10990 remote_unpush_target.
10991 (remote_target::core_of_thread)
10992 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10993 (remote_target::pid_to_exec_file)
10994 (remote_target::thread_handle_to_thread_info): Pass down target.
10995 (remote_target::async_wait_fd): New.
10996 * riscv-fbsd-tdep.c: Include "inferior.h".
10997 (riscv_fbsd_get_thread_local_address): Pass down target.
10998 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10999 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11000 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11001 Adjust.
11002 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11003 * solib-svr4.c (enable_break): Pass down target.
11004 * spu-multiarch.c (parse_spufs_run): Pass down target.
11005 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11006 * target-delegates.c: Regenerate.
11007 * target.c (g_target_stack): Delete.
11008 (current_top_target): Return the current inferior's top target.
11009 (target_has_execution_1): Refer to the passed-in inferior's top
11010 target.
11011 (target_supports_terminal_ours): Check whether the initial
11012 inferior was already created.
11013 (decref_target): New.
11014 (target_stack::push): Incref/decref the target.
11015 (push_target, push_target, unpush_target): Adjust.
11016 (target_stack::unpush): Defref target.
11017 (target_is_pushed): Return bool. Adjust to refer to the current
11018 inferior's target stack.
11019 (dispose_inferior): Delete, and inline parts ...
11020 (target_preopen): ... here. Only dispose of the current inferior.
11021 (target_detach): Hold strong target reference while detaching.
11022 Pass target down.
11023 (target_thread_name): Add assertion.
11024 (target_resume): Pass down target.
11025 (target_ops::beneath, find_target_at): Adjust to refer to the
11026 current inferior's target stack.
11027 (get_dummy_target): New.
11028 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11029 has a thread running.
11030 (initialize_targets): Rename to ...
11031 (_initialize_target): ... this.
11032 * target.h: Include "gdbsupport/refcounted-object.h".
11033 (struct target_ops): Inherit refcounted_object.
11034 (target_ops::shortname, target_ops::longname): Make const.
11035 (target_ops::async_wait_fd): New method.
11036 (decref_target): Declare.
11037 (struct target_ops_ref_policy): New.
11038 (target_ops_ref): New typedef.
11039 (get_dummy_target): Declare function.
11040 (target_is_pushed): Return bool.
11041 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11042 (all_matching_threads_iterator::all_matching_threads_iterator):
11043 Handle filter target.
11044 * thread-iter.h (struct all_matching_threads_iterator, struct
11045 all_matching_threads_range, class all_non_exited_threads_range):
11046 Filter by target too. Remove explicit.
11047 * thread.c (threads_executing): Delete.
11048 (inferior_thread): Pass down current inferior.
11049 (clear_thread_inferior_resources): Pass down thread pointer
11050 instead of ptid_t.
11051 (add_thread_silent, add_thread_with_info, add_thread): Add
11052 process_stratum_target parameter. Use it for thread and inferior
11053 searches.
11054 (is_current_thread): New.
11055 (thread_info::deletable): Use it.
11056 (find_thread_ptid, thread_count, in_thread_list)
11057 (thread_change_ptid, set_resumed, set_running): New
11058 process_stratum_target parameter. Pass it down.
11059 (set_executing): New process_stratum_target parameter. Pass it
11060 down. Adjust reference to 'threads_executing'.
11061 (threads_are_executing): New process_stratum_target parameter.
11062 Adjust reference to 'threads_executing'.
11063 (set_stop_requested, finish_thread_state): New
11064 process_stratum_target parameter. Pass it down.
11065 (switch_to_thread): Also match inferior.
11066 (switch_to_thread): New process_stratum_target parameter. Pass it
11067 down.
11068 (update_threads_executing): Reimplement.
11069 * top.c (quit_force): Pop targets from all inferior.
11070 (gdb_init): Don't call initialize_targets.
11071 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11072 Declare.
11073 (windows_add_thread, windows_delete_thread): Adjust.
11074 (get_windows_debug_event): Rename to ...
11075 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11076 * tracefile-tfile.c (tfile_target_open): Pass down target.
11077 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11078 Forward declare.
11079 (switch_to_thread): Add process_stratum_target parameter.
11080 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11081 parameter. Use it.
11082 (mi_on_resume): Pass target down.
11083 * nat/fork-inferior.c (startup_inferior): Add
11084 process_stratum_target parameter. Pass it down.
11085 * nat/fork-inferior.h (startup_inferior): Add
11086 process_stratum_target parameter.
11087 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11088
75c6c844
PA
110892020-01-10 Pedro Alves <palves@redhat.com>
11090
11091 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11092 directly. Instead find the first thread in the thread list and
11093 use switch_to_thread.
11094
78f2c40a
PA
110952020-01-10 Pedro Alves <palves@redhat.com>
11096
11097 * remote.c (remote_target::remote_add_inferior): Don't bind a
11098 process to the current inferior if the current inferior is already
11099 bound to a process.
11100
e7af6c70
TBA
111012020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11102 Pedro Alves <palves@redhat.com>
11103
11104 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11105 If no process is specified, return null_ptid instead of
11106 inferior_ptid.
11107 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11108 TARGET_WAITKIND_SIGNALLED with no pid.
11109
31ba933e
PA
111102020-01-10 Pedro Alves <palves@redhat.com>
11111
11112 * remote.c (first_remote_resumed_thread): New.
11113 (remote_target::wait_as): Use it as default event_ptid instead of
11114 inferior_ptid.
11115
735fc2ca
PA
111162020-01-10 Pedro Alves <palves@redhat.com>
11117
11118 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11119
c17e02e1
PA
111202020-01-10 Pedro Alves <palves@redhat.com>
11121
11122 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11123 not -1.
11124
ab1ddbcf
PA
111252020-01-10 Pedro Alves <palves@redhat.com>
11126
11127 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11128 ptid to get_last_target_status.
11129 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11130 ptid to get_last_target_status.
11131 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11132 get_last_target_status.
11133 (info_program_command): Don't pass a target_waitstatus to
11134 get_last_target_status.
11135 * infrun.c (init_wait_for_inferior): Use
11136 nullify_last_target_wait_ptid.
11137 (get_last_target_status): Handle nullptr arguments.
11138 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11139 (print_stop_event): Don't pass a ptid to get_last_target_status.
11140 (normal_stop): Don't pass a ptid to get_last_target_status.
11141 * infrun.h (get_last_target_status, set_last_target_status): Move
11142 comments here and update.
11143 (nullify_last_target_wait_ptid): Declare.
11144 * linux-fork.c (fork_load_infrun_state): Remove local extern
11145 declaration of nullify_last_target_wait_ptid.
11146 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11147 to get_last_target_status.
11148
f3f8ece4
PA
111492020-01-10 Pedro Alves <palves@redhat.com>
11150
11151 * gdbthread.h (scoped_restore_current_thread)
11152 <dont_restore, restore, m_dont_restore>: Declare.
11153 * thread.c (thread_alive): Add assertion. Return bool.
11154 (switch_to_thread_if_alive): New.
11155 (prune_threads): Switch inferior/thread.
11156 (print_thread_info_1): Switch thread before calling target methods.
11157 (scoped_restore_current_thread::restore): New, factored out from
11158 ...
11159 (scoped_restore_current_thread::~scoped_restore_current_thread):
11160 ... this.
11161 (scoped_restore_current_thread::scoped_restore_current_thread):
11162 Add assertion.
11163 (thread_apply_all_command, thread_select): Use
11164 switch_to_thread_if_alive.
11165 * infrun.c (proceed, restart_threads, handle_signal_stop)
11166 (switch_back_to_stepped_thread): Switch current thread before
11167 calling target methods.
11168
db2d40f7
PA
111692020-01-10 Pedro Alves <palves@redhat.com>
11170
11171 * inferior.c (switch_to_inferior_no_thread): New function,
11172 factored out from ...
11173 (inferior_command): ... here.
11174 * inferior.h (switch_to_inferior_no_thread): Declare.
11175 * mi/mi-main.c (run_one_inferior): Use
11176 switch_to_inferior_no_thread.
11177
bd420a2d
PA
111782020-01-10 Pedro Alves <palves@redhat.com>
11179
11180 * infcmd.c (kill_command): Remove dead code.
11181
ddf5db90
PA
111822020-01-10 Pedro Alves <palves@redhat.com>
11183
11184 * remote.c (remote_target::mourn_inferior): No longer check
11185 whether the target is running.
11186
5018ce90
PA
111872020-01-10 Pedro Alves <palves@redhat.com>
11188
11189 * corelow.c (core_target::has_execution): Change parameter type to
11190 inferior pointer.
11191 * inferior.c (number_of_live_inferiors): Use
11192 inferior::has_execution instead of target_has_execution_1.
11193 * inferior.h (inferior::has_execution): New.
11194 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11195 inferior::has_execution instead of target_has_execution_1.
11196 * process-stratum-target.c
11197 (process_stratum_target::has_execution): Change parameter type to
11198 inferior pointer. Check the inferior's PID instead of
11199 inferior_ptid.
11200 * process-stratum-target.h
11201 (process_stratum_target::has_execution): Change parameter type to
11202 inferior pointer.
11203 * record-full.c (record_full_core_target::has_execution): Change
11204 parameter type to inferior pointer.
11205 * target.c (target_has_execution_1): Change parameter type to
11206 inferior pointer.
11207 (target_has_execution_current): Adjust.
11208 * target.h (target_ops::has_execution): Change parameter type to
11209 inferior pointer.
11210 (target_has_execution_1): Change parameter type to inferior
11211 pointer. Change return type to bool.
11212 * tracefile.h (tracefile_target::has_execution): Change parameter
11213 type to inferior pointer.
11214
74375d18
PA
112152020-01-10 Pedro Alves <palves@redhat.com>
11216
11217 * exceptions.c (print_flush): Remove current_top_target() check.
11218
acdf84a6
PA
112192020-01-10 Pedro Alves <palves@redhat.com>
11220
11221 * remote.c (show_remote_exec_file): Show the current inferior's
11222 exec-file instead of the command variable's value.
11223
ec506636
PA
112242020-01-10 Pedro Alves <palves@redhat.com>
11225
11226 * record-full.c (record_full_resume_ptid): New global.
11227 (record_full_target::resume): Set it.
11228 (record_full_wait_1): Use record_full_resume_ptid instead of
11229 inferior_ptid.
11230
873657b9
PA
112312020-01-10 Pedro Alves <palves@redhat.com>
11232
11233 * gdbthread.h (scoped_restore_current_thread)
11234 <dont_restore, restore, m_dont_restore>: Declare.
11235 * thread.c (thread_alive): Add assertion. Return bool.
11236 (switch_to_thread_if_alive): New.
11237 (prune_threads): Switch inferior/thread.
11238 (print_thread_info_1): Switch thread before calling target methods.
11239 (scoped_restore_current_thread::restore): New, factored out from
11240 ...
11241 (scoped_restore_current_thread::~scoped_restore_current_thread):
11242 ... this.
11243 (scoped_restore_current_thread::scoped_restore_current_thread):
11244 Add assertion.
11245 (thread_apply_all_command, thread_select): Use
11246 switch_to_thread_if_alive.
11247
7f0ae84c
GB
112482020-01-10 George Barrett <bob@bob131.so>
11249
11250 * stap-probe.c (stap_modify_semaphore): Don't check for null
11251 semaphores.
11252 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11253 for null semaphores.
11254
f5a7c406
AB
112552020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11256
11257 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11258 all source windows, and maintain horizontal scroll status while
11259 doing so.
11260
9ae6bf64
TT
112612020-01-09 Tom Tromey <tom@tromey.com>
11262
11263 PR tui/18932:
11264 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11265 update_source_window, not print_source_lines.
11266
b2efe70c
AB
112672020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11268
11269 * tui/tui.c (tui_enable): Register tui hooks after calling
11270 tui_display_main.
11271
5f23a082
CB
112722020-01-09 Christian Biesinger <cbiesinger@google.com>
11273
11274 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11275
3061113b
SM
112762020-01-08 Simon Marchi <simon.marchi@efficios.com>
11277
11278 * thread.c (print_thread_info_1): Fix indentation.
11279
57d75002
CB
112802020-01-09 Christian Biesinger <cbiesinger@google.com>
11281
11282 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11283 unique_xmalloc_ptr outside the if to always free the demangled name.
11284
6a053cb1
TT
112852020-01-08 Tom Tromey <tromey@adacore.com>
11286
11287 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11288 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11289 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11290 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11291 Remove.
11292 (section_offsets): New typedef.
11293 * symtab.c (fixup_section, get_msymbol_address): Update.
11294 * symmisc.c (dump_msymbols): Update.
11295 * symfile.h (relative_addr_info_to_section_offsets)
11296 (symfile_map_offsets_to_segments): Update.
11297 * symfile.c (build_section_addr_info_from_objfile)
11298 (init_objfile_sect_indices): Update.
11299 (struct place_section_arg): Change type of "offsets".
11300 (place_section): Update.
11301 (relative_addr_info_to_section_offsets): Change type of
11302 "section_offsets". Remove "num_sections" parameter.
11303 (default_symfile_offsets, syms_from_objfile_1)
11304 (set_objfile_default_section_offset): Update.
11305 (reread_symbols): No need to preserve section offsets by hand.
11306 (symfile_map_offsets_to_segments): Change type of "offsets".
11307 * stap-probe.c (relocate_address): Update.
11308 * stabsread.h (process_one_symbol): Update.
11309 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11310 (solib_target_relocate_section_addresses): Update.
11311 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11312 Update.
11313 * solib-frv.c (frv_relocate_main_executable): Update.
11314 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11315 * solib-aix.c (solib_aix_get_section_offsets): Change return
11316 type.
11317 (solib_aix_solib_create_inferior_hook): Update.
11318 * remote.c (remote_target::get_offsets): Update.
11319 * psymtab.c (find_pc_sect_psymtab): Update.
11320 * psympriv.h (struct partial_symbol) <address, text_low,
11321 text_high>: Update.
11322 * objfiles.h (obj_section_offset): Update.
11323 (struct objfile) <section_offsets>: Change type.
11324 <num_sections>: Remove.
11325 (objfile_relocate): Update.
11326 * objfiles.c (entry_point_address_query): Update
11327 (relocate_one_symbol): Change type of "section_offsets".
11328 (objfile_relocate1, objfile_relocate1): Change type of
11329 "new_offsets".
11330 (objfile_rebase1): Update.
11331 * mipsread.c (mipscoff_symfile_read): Update.
11332 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11333 parameter.
11334 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11335 (parse_external, psymtab_to_symtab_1): Update.
11336 * machoread.c (macho_symfile_offsets): Update.
11337 * ia64-tdep.c (ia64_find_unwind_table): Update.
11338 * hppa-tdep.c (read_unwind_info): Update.
11339 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11340 * dwarf2read.c (create_addrmap_from_index)
11341 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11342 (process_psymtab_comp_unit_reader, add_partial_symbol)
11343 (add_partial_subprogram, process_full_comp_unit)
11344 (read_file_scope, read_func_scope, read_lexical_block_scope)
11345 (read_call_site_scope, dwarf2_rnglists_process)
11346 (dwarf2_ranges_process, dwarf2_ranges_read)
11347 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11348 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11349 Update.
11350 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11351 Update.
11352 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11353 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11354 (process_one_symbol): Change type of "section_offsets".
11355 * ctfread.c (get_objfile_text_range): Update.
11356 * coffread.c (coff_symtab_read, enter_linenos)
11357 (process_coff_symbol): Update.
11358 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11359 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11360
456e800a
TT
113612020-01-08 Tom Tromey <tromey@adacore.com>
11362
11363 * dwarf2read.c (parse_macro_definition): Use std::string.
11364 (parse_macro_definition): Likewise.
11365
6dfa2fc2
TT
113662020-01-08 Tom Tromey <tromey@adacore.com>
11367
11368 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11369 (ATTR_ALLOC_CHUNK): Remove.
11370
421d1616
TT
113712020-01-08 Tom Tromey <tromey@adacore.com>
11372
11373 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11374
43816ebc
TT
113752020-01-08 Tom Tromey <tromey@adacore.com>
11376
11377 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11378 (dwarf2_compute_name, open_dwo_file): Likewise.
11379 (process_enumeration_scope): Use std::vector.
11380 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11381 (partial_die_info::fixup, dwarf2_start_subfile)
11382 (guess_full_die_structure_name, dwarf2_name): Likewise.
11383 (determine_prefix): Update.
11384 (guess_full_die_structure_name): Make return type const.
11385 (partial_die_full_name): Return unique_xmalloc_ptr.
11386 (DW_FIELD_ALLOC_CHUNK): Remove.
11387
4212d509
TT
113882020-01-07 Tom Tromey <tromey@adacore.com>
11389
11390 PR build/24937:
11391 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11392
06a6207a
JT
113932020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11394
11395 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11396
153d79c4
AB
113972020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11398
11399 * stack.c (print_frame_info): Move disassemble_next_line code
11400 inside source_print block.
11401
66182876
EZ
114022020-01-06 Eli Zaretskii <eliz@gnu.org>
11403
11404 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11405 gdb/signals.h, as we are now using native signal symbols.
11406
cbfa8581
SV
114072020-01-06 Shahab Vahedi <shahab@synopsys.com>
11408
11409 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11410 overflow by an early check of content vs threshold.
aac66a4c 11411 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11412 Likewise.
11413
3f602821
EZ
114142020-01-06 Eli Zaretskii <eliz@gnu.org>
11415
11416 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11417
a08c904d
JT
114182020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11419
11420 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11421 export table if no section contains it's RVA.
11422
89a65580
EZ
114232020-01-06 Eli Zaretskii <eliz@gnu.org>
11424
11425 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11426
8b7fcda2
HD
114272020-01-06 Hannes Domani <ssbssa@yahoo.de>
11428
11429 * source.c (print_source_lines_base): Set last_line_listed.
11430
a61b4f69
SV
114312020-01-06 Shahab Vahedi <shahab@synopsys.com>
11432
11433 * tui/tui-disasm.c: Remove trailing spaces.
11434
559e7e50
EZ
114352020-01-06 Eli Zaretskii <eliz@gnu.org>
11436 Pedro Alves <palves@redhat.com>
11437
11438 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11439 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11440 (windows_gdb_signal_to_target): New function, uses the above
11441 enumeration to convert GDB internal signal codes to equivalent
11442 Windows codes.
11443 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11444 * windows-nat.c: Include "gdb_wait.h".
11445 (get_windows_debug_event): Extract the fatal exception from the
11446 exit status and convert to the equivalent Posix signal number.
11447 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11448 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11449 * gdbsupport/gdb_wait.c: New file, implements
11450 windows_status_to_termsig.
11451 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11452 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11453
f2302a34
AB
114542020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11455
11456 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11457 show_layout.
11458
6a5206eb
LM
114592020-01-05 Luis Machado <luis.machado@linaro.org>
11460
11461 * aarch64-linux-nat.c
11462 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11463 and bfd_mach_aarch64.
11464
6ec1d75e
PW
114652020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11466
11467 * ui-file.c (stdio_file::can_emit_style_escape)
11468 (tee_file::can_emit_style_escape): Ensure style is used also on
11469 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11470 to gdb_stdout.
11471 * main.c (set_gdb_data_directory): Use file style to output the
11472 warning that the given pathname is not a directory.
11473 * top.c (show_history_filename, gdb_safe_append_history)
11474 (show_gdb_datadir): Use file style.
11475
44f81a76
HD
114762020-01-03 Hannes Domani <ssbssa@yahoo.de>
11477
11478 * solib-target.c (struct lm_info_target):
11479 Change offsets to be a unique_xmalloc_ptr.
11480 (solib_target_relocate_section_addresses): Update.
11481
25057eb0
HD
114822020-01-03 Hannes Domani <ssbssa@yahoo.de>
11483
11484 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11485
6e2118f5
BE
114862020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11487
11488 * MAINTAINERS (Write After Approval): Add myself.
11489
8133c7dc
LM
114902020-01-02 Luis Machado <luis.machado@linaro.org>
11491
11492 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11493 Cell BE architecture.
11494 * target.h (struct target_ops) <thread_architecture>: Likewise.
11495
48189bec
HD
114962020-01-01 Hannes Domani <ssbssa@yahoo.de>
11497
11498 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11499
ead1063b
HD
115002020-01-01 Hannes Domani <ssbssa@yahoo.de>
11501
11502 * MAINTAINERS (Write After Approval): Add myself.
11503
e5d78223
JB
115042020-01-01 Joel Brobecker <brobecker@adacore.com>
11505
11506 * gdbarch.sh: Update copyright year range of generated files.
11507
b811d2c2
JB
115082020-01-01 Joel Brobecker <brobecker@adacore.com>
11509
11510 Update copyright year range in all GDB files.
11511
5f4def5c
JB
115122020-01-01 Joel Brobecker <brobecker@adacore.com>
11513
11514 * copyright.py: Convert to Python 3.
11515
51fd4002
JB
115162020-01-01 Joel Brobecker <brobecker@adacore.com>
11517
11518 * copyright.py: Adapt after move of gnulib directory from gdb
11519 directory to toplevel directory.
11520
5fb651f2
JB
115212020-01-01 Joel Brobecker <brobecker@adacore.com>
11522
11523 * copyright.py (main): Exit if run from the wrong directory.
11524
5dd8bf88
JB
115252020-01-01 Joel Brobecker <brobecker@adacore.com>
11526
11527 * top.c (print_gdb_version): Change copyright year to 2020.
11528
9f71dacb 115292020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11530
9f71dacb 11531 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11532
9f71dacb 11533For older changes see ChangeLog-2019.
c906108c
SS
11534\f
11535Local Variables:
11536mode: change-log
11537left-margin: 8
11538fill-column: 74
11539version-control: never
57da7796 11540coding: utf-8
c906108c 11541End:
This page took 3.278151 seconds and 4 git commands to generate.