]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
PR ld/26288: Allow the use of `--just-symbols' with ET_EXEC input
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e7bc9db8
PA
12020-07-23 Pedro Alves <pedro@palves.net>
2
3 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5 meanwhile.
6 * frame.c (frame_cache_generation, get_frame_cache_generation):
7 New.
8 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
9 (get_prev_frame_if_no_cycle): On exception, don't touch
10 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
11 * frame.h (get_frame_cache_generation): Declare.
12
90fcc466
TV
132020-07-23 Tom de Vries <tdevries@suse.de>
14
15 PR tui/26282
16 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
17 New default constructor.
18
78344df7
AB
192020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
20
21 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
22 exclude non-statement entries.
23
b089853a
KB
242020-07-22 Kevin Buettner <kevinb@redhat.com>
25
26 * NEWS (New commands): Mention new command
27 "maintenance print core-file-backed-mappings".
28
09c2f5d4
KB
292020-07-22 Kevin Buettner <kevinb@redhat.com>
30
31 * corelow.c (gdbcmd.h): Include.
32 (core_target::info_proc_mappings): New method.
33 (get_current_core_target): New function.
34 (maintenance_print_core_file_backed_mappings): New function.
35 (_initialize_corelow): Add core-file-backed-mappings to
36 "maint print" commands.
37
9c5ec5c2
KB
382020-07-22 Kevin Buettner <kevinb@redhat.com>
39
40 * linux-tdep.c (dump_note_entry_p): New function.
41 (linux_dump_mapping_p_ftype): New typedef.
42 (linux_find_memory_regions_full): Add new parameter,
43 should_dump_mapping_p.
44 (linux_find_memory_regions): Adjust call to
45 linux_find_memory_regions_full.
46 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
47 call to linux_find_memory_regions_full.
48
db082f59
KB
492020-07-22 Kevin Buettner <kevinb@redhat.com>
50
51 * corelow.c (solist.h, unordered_map): Include.
52 (class core_target): Add field m_core_file_mappings and
53 method build_file_mappings.
54 (core_target::core_target): Call build_file_mappings.
55 (core_target::~core_target): Free memory associated with
56 m_core_file_mappings.
57 (core_target::build_file_mappings): New method.
58 (core_target::xfer_partial): Use m_core_file_mappings
59 for memory transfers.
60 * linux-tdep.c (linux_read_core_file_mappings): New
61 function.
62 (linux_core_info_proc_mappings): Rewrite to use
63 linux_read_core_file_mappings.
64 (linux_init_abi): Register linux_read_core_file_mappings.
65
7e183d27
KB
662020-07-22 Kevin Buettner <kevinb@redhat.com>
67
68 * arch-utils.c (default_read_core_file_mappings): New function.
69 * arch-utils.c (default_read_core_file_mappings): Declare.
70 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
71 * gdbarch.h, gdbarch.c: Regenerate.
72
2735d421
KB
732020-07-22 Kevin Buettner <kevinb@redhat.com>
74
75 PR corefiles/25631
76 * corelow.c (core_target:xfer_partial): Revise
77 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
78 case after first checking the stratum beneath the core
79 target.
80 (has_all_memory): Return true.
81 * target.c (raw_memory_xfer_partial): Revise comment
82 regarding use of has_all_memory.
83
e56cb451
KB
842020-07-22 Kevin Buettner <kevinb@redhat.com>
85
86 * exec.h (section_table_xfer_memory): Revise declaration,
87 replacing section name parameter with an optional callback
88 predicate.
89 * exec.c (section_table_xfer_memory): Likewise.
90 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
91 of section_table_xfer_memory.
92
32fa152e
TT
932020-07-22 Tom Tromey <tromey@adacore.com>
94
95 * mi/mi-cmd-stack.c (list_args_or_locals): Use
96 lookup_symbol_search_name.
97
a67a1c41
AB
982020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 * python/py-registers.c (gdbpy_register_object_data_init): Remove
101 redundant local variable.
102 (gdbpy_get_register_descriptor): Extract descriptor vector as a
103 reference, not pointer, update code accordingly.
104
a7b4ff4f
SM
1052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
106 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
107
108 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
109 * jit.c (jit_breakpoint_re_set_internal): Use the
110 `skip_jit_symbol_lookup` field.
111
2340e834
SM
1122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
113 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
114
115 * jit.c (jit_read_descriptor): Define the descriptor address once,
116 use twice.
117 (jit_breakpoint_deleted): Move the declaration of the loop variable
118 `iter` into the loop header.
119 (jit_breakpoint_re_set_internal): Move the declaration of the local
120 variable `objf_data` to the first point of definition.
121 (jit_event_handler): Move the declaration of local variables
122 `code_entry`, `entry_addr`, and `objf` to their first point of use.
123 Rename `objf` to `jited`.
124
c1072906
SM
1252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
126
127 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
128 Remove.
129 * jit.c (get_jiter_objfile_data): Update.
130
c8474dc3
TBA
1312020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
132 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * jit.c (struct jit_program_space_data): Remove.
135 (jit_program_space_key): Remove.
136 (jiter_objfile_data::~jiter_objfile_data): Remove program space
137 stuff.
138 (get_jit_program_space_data): Remove.
139 (jit_breakpoint_deleted): Iterate on all of the program space's
140 objfiles.
141 (jit_inferior_init): Likewise.
142 (jit_breakpoint_re_set_internal): Likewise. Also change return
143 type to void.
144 (jit_breakpoint_re_set): Pass current_program_space to
145 jit_breakpoint_re_set_internal.
146
77208eb7
SM
1472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
148
149 * jit.h (struct jiter_objfile_data) <cached_code_address,
150 jit_breakpoint>: Move to here from ...
151 * jit.c (jit_program_space_data): ... here.
152 (jiter_objfile_data::~jiter_objfile_data): Update.
153 (jit_breakpoint_deleted): Update.
154 (jit_breakpoint_re_set_internal): Update.
155
8c1c720f
SM
1562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
157
158 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
159 checks.
160 (jit_read_descriptor): Remove NULL check.
161 (jit_event_handler): Add an assertion.
162
0e74a041
SM
1632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * jit.h (struct jit_objfile_data): Split into...
166 (struct jiter_objfile_data): ... this ...
167 (struct jited_objfile_data): ... and this.
168 * objfiles.h (struct objfile) <jit_data>: Remove.
169 <jiter_data, jited_data>: New fields.
170 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
171 (jiter_objfile_data::~jiter_objfile_data): ... this.
172 (get_jit_objfile_data): Rename to ...
173 (get_jiter_objfile_data): ... this.
174 (add_objfile_entry): Update.
175 (jit_read_descriptor): Use get_jiter_objfile_data.
176 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
177 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
178 (jit_inferior_exit_hook): Use objfile's jited_data field.
179
238b5c9f
SM
1802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
181
182 * jit.h: Forward-declare `struct minimal_symbol`.
183 (struct jit_objfile_data): Migrate to here from jit.c; also add a
184 constructor, destructor, and an objfile* field.
185 * jit.c (jit_objfile_data): Remove.
186 (struct jit_objfile_data): Migrate from here to jit.h.
187 (jit_objfile_data::~jit_objfile_data): New destructor
188 implementation with code moved from free_objfile_data.
189 (free_objfile_data): Delete.
190 (get_jit_objfile_data): Update to use the jit_data field of objfile.
191 (jit_find_objf_with_entry_addr): Ditto.
192 (jit_inferior_exit_hook): Ditto.
193 (_initialize_jit): Remove the call to
194 register_objfile_data_with_cleanup.
195 * objfiles.h (struct objfile) <jit_data>: New field.
196
fe053b9e
TBA
1972020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
198
199 * jit.h: Forward-declare `struct objfile`.
200 (jit_event_handler): Add a second parameter, the JITer objfile.
201 * jit.c (jit_read_descriptor): Change the signature to take the
202 JITer objfile as an argument instead of the jit_program_space_data.
203 (jit_inferior_init): Update the call to jit_read_descriptor.
204 (jit_event_handler): Use the new JITer objfile argument when calling
205 jit_read_descriptor.
206 * breakpoint.c (handle_jit_event): Update the call to
207 jit_event_handler to pass the JITer objfile.
208
4cec0c66
JB
2092020-07-21 John Baldwin <jhb@FreeBSD.org>
210
211 * gdbarch.c: Regenerate.
212 * gdbarch.h: Regenerate.
213 * gdbarch.sh (handle_segmentation_fault): Remove method.
214 * infrun.c (handle_segmentation_fault): Remove.
215 (print_signal_received_reason): Remove call to
216 handle_segmentation_fault.
217
0e42f66a
JB
2182020-07-21 John Baldwin <jhb@FreeBSD.org>
219
220 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
221 Rename to sparc64_linux_report_signal_info and add siggnal
222 argument.
223 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
224 instead of sparc64_linux_handle_segmentation_fault.
225
77bdfeb2
JB
2262020-07-21 John Baldwin <jhb@FreeBSD.org>
227
228 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
229 i386_linux_report_signal_info instead of
230 i386_linux_handle_segmentation_fault.
231 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
232 to i386_linux_report_signal_info and add siggnal argument.
233 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
234 of i386_linux_handle_segmentation_fault.
235 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
236 to i386_linux_report_signal_info and add siggnal argument.
237
ad97bfc5
JB
2382020-07-21 John Baldwin <jhb@FreeBSD.org>
239
240 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
241 hook if present.
242
272bb05c
JB
2432020-07-21 John Baldwin <jhb@FreeBSD.org>
244
245 * gdbarch.c: Regenerate.
246 * gdbarch.h: Regenerate.
247 * gdbarch.sh (report_signal_info): New method.
248 * infrun.c (print_signal_received_reason): Invoke gdbarch
249 report_signal_info hook if present.
250
baf8791e
AB
2512020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 * python/py-registers.c : Add 'unordered_map' include.
254 (gdbpy_new_reggroup): Renamed to...
255 (gdbpy_get_reggroup): ...this. Update to only create register
256 group descriptors when needed.
257 (gdbpy_reggroup_iter_next): Update.
258
f7306dac
AB
2592020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
260
261 * python/py-registers.c (gdbpy_register_object_data): New static
262 global.
263 (gdbpy_register_object_data_init): New function.
264 (gdbpy_new_register_descriptor): Renamed to...
265 (gdbpy_get_register_descriptor): ...this, and update to reuse
266 existing register descriptors where possible.
267 (gdbpy_register_descriptor_iter_next): Update.
268 (gdbpy_initialize_registers): Register new gdbarch data.
269
05c309a8
SM
2702020-07-21 Simon Marchi <simon.marchi@efficios.com>
271
272 * linux-nat.c (stopped_pids): Make static.
273
d1fd641e
SM
2742020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
275
276 PR ada/26235
277 * gdbtypes.c (ada_discrete_type_low_bound,
278 ada_discrete_type_high_bound): Handle undefined bounds.
279
1de14d77
KR
2802020-07-21 Kamil Rytarowski <n54@gmx.com>
281
282 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
283 declaration.
284 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
285 function.
286
ed810cc7
JB
2872020-07-20 John Baldwin <jhb@FreeBSD.org>
288
289 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
290 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
291 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
292 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
293 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
294 method.
295
ae5369e7
LC
2962020-07-20 Ludovic Courtès <ludo@gnu.org>
297
298 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
299 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
300 which are deprecated in Guile 3.0.
301 * configure.ac (try_guile_versions): Add "guile-3.0".
302 * configure (try_guile_versions): Regenerate.
303 * NEWS: Update entry.
304
68cf161c
LC
3052020-07-20 Ludovic Courtès <ludo@gnu.org>
306 Doug Evans <dje@google.com>
307
308 PR gdb/21104
309 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
310 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
311 USING_GUILE_BEFORE_2_2.
312 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
313 Change type to 'scm_t_port_type *'.
314 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
315 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
316 parameter and honor it. Update callers.
317 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
318 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
319 functions.
320 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
321 USING_GUILE_BEFORE_2_2.
322 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
323 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
324 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
325 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
326 and 'SCM_PORT_TYPE'.
327 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
328 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
329 (gdbscm_memory_port_read, gdbscm_memory_port_write)
330 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
331 [!USING_GUILE_BEFORE_2_2]: New functions.
332 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
333 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
334 'gdbscm_memory_port_read'.
335 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
336 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
337 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
338 function.
339 (ioscm_init_memory_port): Remove.
340 (ioscm_init_memory_port_stream): New function
341 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
342 function.
343 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
344 Return scm_from_uint (0).
345 (gdbscm_set_memory_port_read_buffer_size_x)
346 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
347 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
348 Return scm_from_uint (0).
349 (gdbscm_set_memory_port_write_buffer_size_x)
350 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
351 * configure.ac (try_guile_versions): Add "guile-2.2".
352 * configure: Regenerate.
353 * NEWS: Add entry.
354
aee91db3
TT
3552020-07-18 Tom Tromey <tom@tromey.com>
356
357 * linux-nat.c (linux_multi_process): Remove.
358 (linux_nat_target::supports_multi_process): Return true.
359
0e267416
AB
3602020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
361
362 * arch/riscv.c (riscv_tdesc_cache): Change map type.
363 (riscv_lookup_target_description): Return pointer out of
364 unique_ptr.
365 * target-descriptions.c (allocate_target_description): Add
366 comment.
367 (target_desc_deleter::operator()): Likewise.
368 * target-descriptions.h (struct target_desc_deleter): Moved to
369 gdbsupport/tdesc.h.
370 (target_desc_up): Likewise.
371
f80c8ec4
TT
3722020-07-17 Tom Tromey <tromey@adacore.com>
373
374 * linux-nat.c (linux_nat_target::supports_non_stop)
375 (linux_nat_target::always_non_stop_p): Use "true".
376 (linux_nat_target::supports_disable_randomization): Use "true" and
377 "false".
378
d0ce17d8
CT
3792020-07-16 Caroline Tice <cmtice@google.com>
380
381 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
382 (RNGLIST_HEADER_SIZE64): New constant definition.
383 (struct dwop_section_names): Add rnglists_dwo.
384 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
385 (struct loclist_header): Rename to 'loclists_rnglists_header'.
386 (struct dwo_sections): Add rnglists field.
387 (read_attribut_reprocess): Add tag parameter.
388 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
389 (cu_debug_rnglists_section): New function (decl & definition).
390 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
391 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
392 die whose range is being checked; get rnglist section from
393 cu_debug_rnglists_section, to get from either objfile or dwo file as
394 appropriate. Add cases for DW_RLE_base_addressx,
395 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
396 the base address to DW_RLE_offset_pairs (not to all ranges), moving
397 test inside if-condition and updating complaint message.
398 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
399 dwarf2_rnglists_process.
400 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
401 dwarf2_ranges_process.
402 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
403 need_ranges_base and update comment appropriately. Also pass die tag
404 to dwarf2_ranges_read.
405 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
406 need_ranges_base and update comment appropriately. Also pass die tag
407 to dwarf2_ranges_process.
408 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
409 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
410 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
411 need_ranges_base and update comment appropriately. Also pass die tag
412 to read_attribute_reprocess and dwarf2_ranges_read.
413 (read_loclist_header): Rename function to read_loclists_rnglists_header,
414 and update function comment appropriately.
415 (read_loclist_index): Call read_loclists_rnglists_header instead of
416 read_loclist_header.
417 (read_rnglist_index): New function.
418 (read_attribute_reprocess): Add tag parameter. Add code for
419 DW_FORM_rnglistx, passing tag to read_rnglist_index.
420 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
421
3dcc261c
AB
4222020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
423
424 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
425 being resolved.
426
ccb9eba6
AB
4272020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * arch-utils.c (show_architecture): Update formatting of messages.
430
cf88be68
SM
4312020-07-12 Simon Marchi <simon.marchi@efficios.com>
432
433 * gdbtypes.h (struct type) <bounds>: Handle array and string
434 types.
435 * ada-lang.c (assign_aggregate): Use type::bounds on
436 array/string type.
437 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
438 * c-varobj.c (c_number_of_children): Likewise.
439 (c_describe_child): Likewise.
440 * eval.c (evaluate_subexp_for_sizeof): Likewise.
441 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
442 (f_type_print_base): Likewise.
443 * f-valprint.c (f77_array_offset_tbl): Likewise.
444 (f77_get_upperbound): Likewise.
445 (f77_print_array_1): Likewise.
446 * guile/scm-type.c (gdbscm_type_range): Likewise.
447 * m2-typeprint.c (m2_array): Likewise.
448 (m2_is_long_set_of_type): Likewise.
449 * m2-valprint.c (get_long_set_bounds): Likewise.
450 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
451 * python/py-type.c (typy_range): Likewise.
452 * rust-lang.c (rust_internal_print_type): Likewise.
453 * type-stack.c (type_stack::follow_types): Likewise.
454 * valarith.c (value_subscripted_rvalue): Likewise.
455 * valops.c (value_cast): Likewise.
456
509971ae
SM
4572020-07-12 Simon Marchi <simon.marchi@efficios.com>
458
459 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
460 callers to use the equivalent accessor methods.
461
107406b7
SM
4622020-07-12 Simon Marchi <simon.marchi@efficios.com>
463
464 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
465 (struct type) <bit_stride>: New method.
466 (TYPE_BIT_STRIDE): Remove.
467 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
468
bb789949
SM
4692020-07-12 Simon Marchi <simon.marchi@efficios.com>
470
471 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
472 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
473 callers to use the equivalent accessor methods instead.
474
39498edb
SM
4752020-07-12 Simon Marchi <simon.marchi@efficios.com>
476
477 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
478 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
479 callers to use the equivalent accessor methods instead.
480
3b606f38
SM
4812020-07-12 Simon Marchi <simon.marchi@efficios.com>
482
483 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
484 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
485 to use dynamic_prop::kind.
486
064d9cb9
SM
4872020-07-12 Simon Marchi <simon.marchi@efficios.com>
488
489 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
490 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
491 to get the bound property's kind and check against
492 PROP_UNDEFINED.
493
5537ddd0
SM
4942020-07-12 Simon Marchi <simon.marchi@efficios.com>
495
496 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
497 all callers to use type::range_bounds followed by
498 dynamic_prop::{low,high}.
499
8c2e4e06
SM
5002020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
501
502 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
503 const_val, set_const_val, baton, set_locexpr, set_loclist,
504 set_addr_offset, variant_parts, set_variant_parts,
505 original_type, set_original_type>: New methods.
506 <kind>: Rename to...
507 <m_kind>: ... this. Update all users to use the new methods
508 instead.
509 <data>: Rename to...
510 <m_data>: ... this. Update all users to use the new methods
511 instead.
512
7c6f2712
SM
5132020-07-12 Simon Marchi <simon.marchi@efficios.com>
514
515 * gdbtypes.c (get_discrete_bounds): Return failure if
516 the range type's bounds are not both defined and constant
517 values.
518 (get_array_bounds): Update comment. Remove undefined bound check.
519
599088e3
SM
5202020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
521
522 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
523 the type::bounds method directly.
524
c4dfcb36
SM
5252020-07-12 Simon Marchi <simon.marchi@efficios.com>
526
527 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
528 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
529 are used to set the range type's bounds to use set_bounds.
530
0a278aa7
PW
5312020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
532
533 * exec.c (_initialize_exec): Update exec-file-mismatch help.
534
cce20f10
PA
5352020-07-10 Pedro Alves <pedro@palves.net>
536
537 * gdbthread.h (inferior_ref): Define.
538 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
539 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
540 * thread.c
541 (scoped_restore_current_thread::restore):
542 Adjust to gdb::ref_ptr.
543 (scoped_restore_current_thread::~scoped_restore_current_thread):
544 Remove manual decref handling.
545 (scoped_restore_current_thread::scoped_restore_current_thread):
546 Adjust to use
547 inferior_ref::new_reference/thread_info_ref::new_reference.
548 Incref the thread before calling get_frame_id instead of after.
549 Let TARGET_CLOSE_ERROR propagate.
550
6d7aa592
PA
5512020-07-10 Pedro Alves <pedro@palves.net>
552
553 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
554 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
555 NOT_AVAILABLE_ERROR.
556 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
557 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
558
b3e3a4c1
SM
5592020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
560 Pedro Alves <pedro@palves.net>
561
562 PR gdb/26199
563 * infrun.c (threads_are_resumed_pending_p): Delete.
564 (do_target_wait): Remove threads_are_executing and
565 threads_are_resumed_pending_p checks from the inferior_matches
566 lambda. Update comments.
567
d6cc5d98
PA
5682020-07-10 Pedro Alves <pedro@palves.net>
569
570 PR gdb/26199
571 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
572 executing threads.
573
7d3badc6
PA
5742020-07-10 Pedro Alves <pedro@palves.net>
575
576 PR gdb/26199
577 * infrun.c (handle_no_resumed): Handle multiple targets.
578
42bd97a6
PA
5792020-07-10 Pedro Alves <pedro@palves.net>
580
581 PR gdb/26199
582 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
583 target_is_async_p.
584
43667cc6
PA
5852020-07-10 Pedro Alves <pedro@palves.net>
586
587 PR gdb/26199
588 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
589 threads, not all threads.
590
96118d11
PA
5912020-07-10 Pedro Alves <pedro@palves.net>
592
593 PR gdb/26199
594 * remote.c (remote_target::open_1): Pass remote target pointer as
595 data to create_async_event_handler.
596 (remote_async_inferior_event_handler): Mark async event handler
597 before returning if the remote target still has either pending
598 events or unacknowledged notifications.
599
54904d81
JB
6002020-07-10 John Baldwin <jhb@FreeBSD.org>
601
602 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
603 declaration.
604 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
605 function.
606
f37e5866
JB
6072020-07-09 John Baldwin <jhb@FreeBSD.org>
608
609 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
610 inferior_ptid.
611
fc238d4a
JB
6122020-07-09 John Baldwin <jhb@FreeBSD.org>
613
614 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
615 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
616 AT_FREEBSD_PS_STRINGS.
617
6e2469ff
HD
6182020-07-08 Hannes Domani <ssbssa@yahoo.de>
619
620 * auto-load.c (auto_load_objfile_script_1): Convert drive part
621 of debugfile path on Windows.
622
d1076c41
JB
6232020-07-08 John Baldwin <jhb@FreeBSD.org>
624
625 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
626 argument to 'data'.
627
15f3b077
TT
6282020-07-08 Tom Tromey <tromey@adacore.com>
629
630 * ada-lang.c (ada_exception_message_1): Use read_memory.
631
9fc501fd
AB
6322020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
633
634 PR python/22748
635 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
636 special handling for inline frames.
637 * findvar.c (value_of_register_lazy): Skip inline frames when
638 creating lazy register values.
639 * frame.c (frame_id_computed_p): Delete definition.
640 * frame.h (frame_id_computed_p): Delete declaration.
641
64cb3757
AB
6422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
643
644 * NEWS: Mention additions to Python API.
645 * python/py-arch.c (archpy_register_groups): New function.
646 (arch_object_methods): Add 'register_groups' method.
647 * python/py-registers.c (reggroup_iterator_object): New struct.
648 (reggroup_object): New struct.
649 (gdbpy_new_reggroup): New function.
650 (gdbpy_reggroup_to_string): New function.
651 (gdbpy_reggroup_name): New function.
652 (gdbpy_reggroup_iter): New function.
653 (gdbpy_reggroup_iter_next): New function.
654 (gdbpy_new_reggroup_iterator): New function
655 (gdbpy_initialize_registers): Register new types.
656 (reggroup_iterator_object_type): Define new Python type.
657 (gdbpy_reggroup_getset): New static global.
658 (reggroup_object_type): Define new Python type.
659 * python/python-internal.h
660
0f767f94
AB
6612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
662
663 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
664 * python/py-arch.c (archpy_registers): New function.
665 (arch_object_methods): Add 'registers' method.
666 * python/py-registers.c: New file.
667 * python/python-internal.h
668 (gdbpy_new_register_descriptor_iterator): Declare.
669 (gdbpy_initialize_registers): Declare.
670 * python/python.c (do_start_initialization): Call
671 gdbpy_initialize_registers.
672 * NEWS: Mention additions to the Python API.
673
87dbc774
AB
6742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
675
676 * NEWS: Mention new Python API method.
677 * python/py-unwind.c (pending_framepy_architecture): New function.
678 (pending_frame_object_methods): Add architecture method.
679
3bc98c0c
AB
6802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
681
682 * gdbarch.c: Regenerate.
683 * gdbarch.h: Regenerate.
684 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
685 (gdbarch_data): Use internal_error for the case where
686 deprecated_set_gdbarch_data was originally needed.
687 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
688 and use passed in obstack.
689 (libunwind_frame_set_descr): Should no longer get back NULL from
690 gdbarch_data.
691 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
692 type.
693 * user-regs.c (user_regs_init): Update parameters, and use passed
694 in obstack.
695 (user_reg_add): Should no longer get back NULL from gdbarch_data.
696 (_initialize_user_regs): Register as a pre-init gdbarch data type.
697
d8cc8af6
TV
6982020-07-06 Tom de Vries <tdevries@suse.de>
699
700 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
701 End-Of-Sequence in lte_is_less_than.
702 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
703 "gdb: Don't reorder line table entries too much when sorting".
704
947f7597
TV
7052020-07-06 Tom de Vries <tdevries@suse.de>
706
707 PR tui/26205
708 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
709
1e7c1b22
TV
7102020-07-05 Tom de Vries <tdevries@suse.de>
711
712 PR build/26187
713 * inferior.h (struct infcall_suspend_state_deleter): If available, use
714 std::uncaught_exceptions instead of deprecated
715 std::uncaught_exception.
716
a36158ec
SM
7172020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
718
719 * macroexp.h (macro_stringify): Return
720 gdb::unique_xmalloc_ptr<char>.
721 * macroexp.c (macro_stringify): Likewise.
722 * macrotab.c (fixup_definition): Update.
723
14d960c8
SM
7242020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
725
726 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
727 (lex_one_token): Update.
728 * macroexp.c (struct macro_buffer) <release>: Return
729 gdb::unique_xmalloc_ptr<char>.
730 (macro_stringify): Update.
731 (macro_expand): Update.
732 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
733 * macroexp.h (macro_expand_next): Likewise.
734
211d5b1c
SM
7352020-07-02 Simon Marchi <simon.marchi@efficios.com>
736
737 * macroexp.h (macro_lookup_ftype): Remove.
738 (macro_expand, macro_expand_once, macro_expand_next): Remove
739 lookup function parameters, add scope parameter.
740 * macroexp.c (scan, substitute_args, expand, maybe_expand,
741 macro_expand, macro_expand_once, macro_expand_next): Likewise.
742 * macroscope.h (standard_macro_lookup): Change parameter type
743 to macro_scope.
744 * macroscope.c (standard_macro_lookup): Likewise.
745 * c-exp.y (lex_one_token): Update.
746 * macrocmd.c (macro_expand_command): Likewise.
747 (macro_expand_once_command): Likewise.
748
b1a35af2
SM
7492020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * inf-loop.c (inferior_event_handler): Remove client_data param.
752 * inf-loop.h (inferior_event_handler): Likewise.
753 * infcmd.c (step_1): Adjust.
754 * infrun.c (proceed): Adjust.
755 (fetch_inferior_event): Remove client_data param.
756 (infrun_async_inferior_event_handler): Adjust.
757 * infrun.h (fetch_inferior_event): Remove `void *` param.
758 * linux-nat.c (handle_target_event): Adjust.
759 * record-btrace.c (record_btrace_handle_async_inferior_event):
760 Adjust.
761 * record-full.c (record_full_async_inferior_event_handler):
762 Adjust.
763 * remote.c (remote_async_inferior_event_handler): Adjust.
764
1cdf9e33
TT
7652020-07-01 Tom Tromey <tom@tromey.com>
766
767 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
768 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
769
32c1e210
TT
7702020-07-01 Tom Tromey <tom@tromey.com>
771
772 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
773 tui_gen_win_info.
774 (tui_win_info::make_window): Merge with
775 tui_gen_win_info::make_window.
776 (tui_win_info::make_visible): Move from tui_gen_win_info.
777 * tui/tui-win.c (tui_win_info::max_width): Move from
778 tui_gen_win_info.
779 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
780 type.
781 <window_factory>: Likewise.
782 * tui/tui-layout.c (tui_win_info::resize): Move from
783 tui_gen_win_info.
784 (make_standard_window): Change return type.
785 (get_locator_window, tui_get_window_by_name): Likewise.
786 (tui_layout_window::apply): Remove a cast.
787 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
788 (struct tui_win_info): Merge with tui_gen_win_info.
789 (struct tui_gen_win_info): Remove.
790
a30cb6da
TT
7912020-07-01 Tom Tromey <tom@tromey.com>
792
793 * tui/tui-stack.h (struct tui_locator_window): Derive from
794 tui_win_info.
795 <do_scroll_horizontal, do_scroll_vertical>: New methods.
796 <can_box>: New method.
797
1eb2161f
TT
7982020-07-01 Tom Tromey <tom@tromey.com>
799
800 * tui/tui-stack.h (struct tui_locator_window): Remove body.
801
7134f2eb
TT
8022020-07-01 Tom Tromey <tom@tromey.com>
803
804 * tui/tui-regs.c (tui_data_window::display_registers_from)
805 (tui_data_window::display_registers_from)
806 (tui_data_window::first_data_item_displayed)
807 (tui_data_window::delete_data_content_windows): Update.
808 (tui_data_window::refresh_window, tui_data_window::no_refresh):
809 Remove.
810 (tui_data_window::check_register_values): Update.
811 (tui_data_item_window::rerender): Add parameters. Update.
812 (tui_data_item_window::refresh_window): Remove.
813 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
814 virtual.
815 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
816 tui_gen_win_info.
817 <refresh_window, max_height, min_height>: Remove.
818 <rerender>: Add parameters.
819 <x, y, visible>: New members.
820 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
821 <m_item_width>: New member.
822
22b7b041
TT
8232020-07-01 Tom Tromey <tom@tromey.com>
824
825 * tui/tui-regs.c (tui_data_window::show_register_group)
826 (tui_data_window::check_register_values): Update.
827 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
828 from item_no.
829
c9753adb
TT
8302020-07-01 Tom Tromey <tom@tromey.com>
831
832 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
833 useless "if".
834
9ab26b4a
TT
8352020-07-01 Tom Tromey <tom@tromey.com>
836
837 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
838 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
839
e555083f
TT
8402020-07-01 Tom Tromey <tom@tromey.com>
841
842 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
843 * tui/tui-winsource.h (enum tui_line_or_address_kind)
844 (struct tui_line_or_address): Move from tui-data.h.
845 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
846 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
847 (tui_cmd_window, tui_source_window_base, tui_source_window)
848 (tui_disasm_window): Don't declare.
849 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
850 to tui-winsource.h.
851 (SINGLE_KEY): Move to tui-stack.c.
852
7a02bab7
TT
8532020-07-01 Tom Tromey <tom@tromey.com>
854
855 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
856 std::string.
857 * tui/tui-regs.c (class tab_expansion_file): New.
858 (tab_expansion_file::write): New method.
859 (tui_register_format): Change return type. Use
860 tab_expansion_file.
861 (tui_get_register, tui_data_window::display_registers_from)
862 (tui_data_item_window::rerender): Update.
863 * tui/tui-io.h (tui_expand_tabs): Don't declare.
864 * tui/tui-io.c (tui_expand_tabs): Remove.
865
ea68593b
TT
8662020-07-01 Tom Tromey <tom@tromey.com>
867
868 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
869
a8caed5d
FS
8702020-07-01 Fangrui Song <maskray@google.com>
871
872 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
873
9cdf9820
AKS
8742020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
875
876 * dwarf2/read.c (set_die_type): Removed conditions to restrict
877 forms for DW_AT_associated and DW_AT_allocated attributes,
878 which is already checked in function attr_to_dynamic_prop.
879
a1520ad8
TT
8802020-06-30 Tom Tromey <tromey@adacore.com>
881
882 * dwarf2/read.c (quirk_rust_enum): Correctly call
883 alloc_rust_variant for default-less enum.
884
5ac58899
TT
8852020-06-30 Tom Tromey <tromey@adacore.com>
886
887 PR build/26183:
888 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
889 gdb::to_string.
890
19b187a9
SM
8912020-06-29 Simon Marchi <simon.marchi@efficios.com>
892
893 * gdbarch.sh (displaced_step_copy_insn): Update doc.
894 * gdbarch.h: Re-generate.
895
cd4c4c07
TT
8962020-06-28 Tom Tromey <tom@tromey.com>
897
898 * command.h (cmd_types): Remove.
899 (cmd_type): Don't declare.
900 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
901 typedef.
902 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
903 * cli/cli-decode.c (cmd_type): Remove.
904
05779d57
PA
9052020-06-27 Pedro Alves <palves@redhat.com>
906
907 * fork-child.c (prefork_hook): Adjust.
908 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
909 Delete.
910 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
911 * inferior.c (inferior::set_tty, inferior::tty): New methods.
912 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
913 Remove declarations.
914 (struct inferior) <set_tty, tty>: New methods.
915 (struct inferior) <terminal>: Rename to ...
916 (struct inferior) <m_terminal>: ... this and make private.
917 * main.c (captured_main_1): Adjust.
918 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
919 (mi_cmd_inferior_tty_show): Adjust.
920 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
921 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
922
1776e3e5
NA
9232020-06-26 Nick Alcock <nick.alcock@oracle.com>
924
925 * configure.ac: Add --enable-libctf: handle --disable-static
926 properly.
927 * acinclude.m4: sinclude ../config/enable.m4.
928 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
929 (LIBCTF): Substitute in.
930 (CTF_DEPS): New, likewise.
931 (CLIBS): libctf needs symbols from libbfd: move earlier.
932 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
933 flags.
934 * ctfread.c: Surround in ENABLE_LIBCTF.
935 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
936 * configure: Regenerate.
937 * config.in: Likewise.
938
58373b80
SM
9392020-06-25 Simon Marchi <simon.marchi@efficios.com>
940
941 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
942
277474ee
SM
9432020-06-25 Simon Marchi <simon.marchi@efficios.com>
944
945 * inferior.h (struct inferior) <terminal>: Change type to
946 gdb::unique_xmalloc_ptr<char>.
947 * inferior.c (inferior::~inferior): Don't free inf->terminal.
948 * infcmd.c (set_inferior_io_terminal): Don't free terminal
949 field, adjust to unique pointer.
950 (get_inferior_io_terminal): Adjust to unique pointer.
951
6d74da72
AB
9522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * riscv-tdep.c (riscv_print_registers_info): Loop over all
955 registers, not just the known core set of registers.
956
2e52d038
AB
9572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
958
959 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
960 fflags, frm, and fcsr registers.
961 (riscv_register_reggroup_p): Remove unknown CSRs from save and
962 restore groups.
963 (riscv_tdesc_unknown_reg): New function.
964 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
965 tdesc_use_registers.
966 * riscv-tdep.h (struct gdbarch_tdep): Add
967 unknown_csrs_first_regnum, unknown_csrs_count,
968 duplicate_fflags_regnum, duplicate_frm_regnum, and
969 duplicate_fcsr_regnum fields.
970
be64fd07
AB
9712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
972
973 * target-descriptions.c (tdesc_use_registers): Add new parameter a
974 callback, use the callback (when not null) to help number unknown
975 registers.
976 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
977 (tdesc_use_registers): Add extra parameter to declaration.
978
3b9fce96
AB
9792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
982 in the file.
983 (class riscv_pending_register_alias): Likewise.
984 (riscv_register_feature::register_info): Change 'required_p' field
985 to 'required', and change its type. Add 'check' member function.
986 (riscv_register_feature::register_info::check): Define new member
987 function.
988 (riscv_xreg_feature): Change initialisation of 'required' field.
989 (riscv_freg_feature): Likewise.
990 (riscv_virtual_feature): Likewise.
991 (riscv_csr_feature): Likewise.
992 (riscv_check_tdesc_feature): Take extra parameter, the csr
993 tdesc_feature, rewrite the function to use the new
994 riscv_register_feature::register_info::check function.
995 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
996
865bad26
AB
9972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
998
999 * features/Makefile: Remove all references to the deleted files
1000 below.
1001 * features/riscv/32bit-csr.c: Deleted.
1002 * features/riscv/32bit-csr.xml: Deleted.
1003 * features/riscv/64bit-csr.c: Deleted.
1004 * features/riscv/64bit-csr.xml: Deleted.
1005 * features/riscv/rebuild-csr-xml.sh: Deleted.
1006
ed69cbc8
AB
10072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1008
1009 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1010 whitespace error for declaration of names member variable.
1011 (struct riscv_register_feature): Add new prefer_first_name member
1012 variable, and fix whitespace error in declaration of registers.
1013 (riscv_xreg_feature): Initialize prefer_first_name field.
1014 (riscv_freg_feature): Likewise.
1015 (riscv_virtual_feature): Likewise.
1016 (riscv_csr_feature): Likewise.
1017 (riscv_register_name): Expand on comments. Remove register name
1018 modifications for CSR and virtual registers.
1019
4445e8f5
AB
10202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1021
1022 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1023 errors.
1024
767a879e
AB
10252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1026
1027 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1028 riscv-opc.h.
1029 (class riscv_pending_register_alias): New class.
1030 (riscv_check_tdesc_feature): Take vector of pending aliases and
1031 populate it as appropriate.
1032 (riscv_setup_register_aliases): Delete.
1033 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1034 to riscv_check_tdesc_feature in all cases. Use the vector to
1035 create the register aliases.
1036
bb6e55f3
RO
10372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1038
1039 * sol2-tdep.c (sol2_static_transform_name): Remove.
1040 (sol2_init_abi): Don't register it.
1041 * gdbarch.sh (static_transform_name): Remove.
1042 * gdbarch.c, gdbarch.h: Regenerate.
1043
1044 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1045 gdbarch_static_transform_name.
1046 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1047 * stabsread.c (define_symbol) <'X'>: Remove.
1048 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1049 handling.
1050 <'V'>: Likewise.
1051 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1052 <'S'>: Remove call to gdbarch_static_transform_name.
1053
c6d36836
RO
10542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1055
1056 * procfs.c (procfs_pre_trace): New function.
1057 (procfs_target::create_inferior): Pass it to fork_inferior.
1058
a7e6196b
RO
10592020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1060
1061 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1062 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1063 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1064 sol2-tdep.o, sparc-sol2-tdep.o.
1065 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1066 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1067 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1068 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1069
d412e696
RO
10702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1071
1072 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1073 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1074 Call sol2_init_abi.
1075 Remove calls to set_gdbarch_skip_solib_resolver,
1076 set_gdbarch_core_pid_to_str.
1077 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1078 (i386_sol2_static_transform_name): Remove.
1079 (i386_sol2_init_abi): Call sol2_init_abi.
1080 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1081 set_gdbarch_static_transform_name,
1082 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1083 Use sol2_sigtramp_p.
1084 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1085 (sol2_sigtramp_p): New function.
1086 (sol2_static_transform_name): New function.
1087 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1088 (sol2_init_abi): New function.
1089 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1090 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1091 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1092 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1093 (sparc_sol2_static_transform_name): Remove.
1094 (sparc32_sol2_init_abi): Call sol2_init_abi.
1095 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1096 set_gdbarch_static_transform_name,
1097 set_gdbarch_skip_solib_resolver,
1098 set_gdbarch_core_pid_to_str.
1099 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1100 (sparc_sol2_static_transform_name): Remove
1101 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1102 call sol2_sigtramp_p.
1103 (sparc64_sol2_init_abi): Call sol2_init_abi.
1104 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1105 set_gdbarch_static_transform_name,
1106 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1107
a8654e7d
PW
11082020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1109
1110 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1111 * exec.c (validate_exec_file): If from_tty, set both
1112 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1113 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1114 and from_tty, unconditionally ask a confirmation.
1115
caa7fd04
AB
11162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1117
1118 * target-descriptions.c (tdesc_architecture_name): Protect against
1119 NULL pointer dereference.
1120 (maint_print_xml_tdesc_cmd): New function.
1121 (_initialize_target_descriptions): Register new 'maint print
1122 xml-tdesc' command and give it the filename completer.
1123 * NEWS: Mention new 'maint print xml-tdesc' command.
1124
fbf42f4e
AB
11252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * target-descriptions.c (class tdesc_compatible_info): New class.
1128 (struct target_desc): Change type of compatible vector.
1129 (tdesc_compatible_p): Update for change in type of
1130 target_desc::compatible.
1131 (tdesc_compatible_info_list): New function.
1132 (tdesc_compatible_info_arch_name): New function.
1133 (tdesc_add_compatible): Update for change in type of
1134 target_desc::compatible.
1135 (print_c_tdesc::visit_pre): Likewise.
1136
20821f4e
AB
11372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1138
1139 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1140 whitespace to underscore.
1141 (maint_print_c_tdesc_cmd): Use fake filename for target
1142 descriptions that came from the target.
1143 (_initialize_target_descriptions): Add filename command completion
1144 for 'maint print c-tdesc'.
1145
1fb5ee62
SM
11462020-06-23 Simon Marchi <simon.marchi@efficios.com>
1147
1148 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1149 lines.
1150
fc3ecb3e
SM
11512020-06-23 Simon Marchi <simon.marchi@efficios.com>
1152
1153 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1154 lines.
1155 (dwarf2_find_location_expression): Likewise.
1156 (call_site_parameter_matches): Likewise.
1157 (dwarf2_compile_expr_to_ax): Likewise.
1158 (disassemble_dwarf_expression): Likewise.
1159 (loclist_describe_location): Likewise.
1160
236ef034
PA
11612020-06-23 Pedro Alves <palves@redhat.com>
1162
1163 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1164 progspace-and-thread.h. Include scoped-mock-context.h instead.
1165 (register_to_value_test): Use scoped_mock_context.
1166 * regcache.c: Include "scoped-mock-context.h".
1167 (cooked_read_test): Don't error out if a target is already pushed.
1168 Use scoped_mock_context. Adjust.
1169 * scoped-mock-context.h: New file.
1170
39e7ecca
AB
11712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1172
1173 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1174 initializer.
1175 (ada_language::is_string_type_p): New member function.
1176 * c-lang.c (c_language_data): Delete la_is_string_type_p
1177 initializer.
1178 (cplus_language_data): Likewise.
1179 (asm_language_data): Likewise.
1180 (minimal_language_data): Likewise.
1181 * d-lang.c (d_language_data): Likewise.
1182 * f-lang.c (f_is_string_type_p): Delete function, implementation
1183 moved to f_language::is_string_type_p.
1184 (f_language_data): Delete la_is_string_type_p initializer.
1185 (f_language::is_string_type_p): New member function,
1186 implementation from f_is_string_type_p.
1187 * go-lang.c (go_is_string_type_p): Delete function, implementation
1188 moved to go_language::is_string_type_p.
1189 (go_language_data): Delete la_is_string_type_p initializer.
1190 (go_language::is_string_type_p): New member function,
1191 implementation from go_is_string_type_p.
1192 * language.c (language_defn::is_string_type_p): Define new member
1193 function.
1194 (default_is_string_type_p): Make static, add comment copied from
1195 header file.
1196 (unknown_language_data): Delete la_is_string_type_p initializer.
1197 (unknown_language::is_string_type_p): New member function.
1198 (auto_language_data): Delete la_is_string_type_p initializer.
1199 (auto_language::is_string_type_p): New member function.
1200 * language.h (language_data): Delete la_is_string_type_p field.
1201 (language_defn::is_string_type_p): Declare new function.
1202 (default_is_string_type_p): Delete desclaration, move comment to
1203 definition.
1204 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1205 moved to m2_language::is_string_type_p.
1206 (m2_language_data): Delete la_is_string_type_p initializer.
1207 (m2_language::is_string_type_p): New member function,
1208 implementation from m2_is_string_type_p.
1209 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1210 initializer.
1211 * opencl-lang.c (opencl_language_data): Likewise.
1212 * p-lang.c (pascal_is_string_type_p): Delete function,
1213 implementation moved to pascal_language::is_string_type_p.
1214 (pascal_language_data): Delete la_is_string_type_p initializer.
1215 (pascal_language::is_string_type_p): New member function,
1216 implementation from pascal_is_string_type_p.
1217 * rust-lang.c (rust_is_string_type_p): Delete function,
1218 implementation moved to rust_language::is_string_type_p.
1219 (rust_language_data): Delete la_is_string_type_p initializer.
1220 (rust_language::is_string_type_p): New member function,
1221 implementation from rust_is_string_type_p.
1222 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1223 is_string_type_p.
1224
4ffc13fb
AB
12252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1226
1227 * ada-lang.c (ada_language_data): Delete la_print_typedef
1228 initializer.
1229 (ada_language::print_typedef): New member function.
1230 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1231 (cplus_language_data): Likewise.
1232 (asm_language_data): Likewise.
1233 (minimal_language_data): Likewise.
1234 * d-lang.c (d_language_data): Likewise.
1235 * f-lang.c (f_language_data): Likewise.
1236 (f_language::print_typedef): New member function.
1237 * go-lang.c (go_language_data): Delete la_print_typedef
1238 initializer.
1239 * language.c (language_defn::print_typedef): Define member
1240 function.
1241 (unknown_language_data): Delete la_print_typedef initializer.
1242 (unknown_language::print_typedef): New member function.
1243 (auto_language_data): Delete la_print_typedef initializer.
1244 (auto_language::print_typedef): New member function.
1245 * language.h (language_data): Delete la_print_typedef field.
1246 (language_defn::print_typedef): Declare new member function.
1247 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1248 (default_print_typedef): Delete declaration.
1249 * m2-lang.c (m2_language_data): Delete la_print_typedef
1250 initializer.
1251 (m2_language::print_typedef): New member function.
1252 * objc-lang.c (objc_language_data): Delete la_print_typedef
1253 initializer.
1254 * opencl-lang.c (opencl_language_data): Likewise.
1255 * p-lang.c (pascal_language_data): Likewise.
1256 (pascal_language::print_typedef): New member function.
1257 * rust-lang.c (rust_print_typedef): Delete function,
1258 implementation moved to rust_language::print_typedef.
1259 (rust_language): Delete la_print_typedef initializer.
1260 (rust_language::print_typedef): New member function,
1261 implementation from rust_print_typedef.
1262 * typeprint.c (default_print_typedef): Delete.
1263
d711ee67
AB
12642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1265
1266 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1267 (ada_language::printstr): New member function.
1268 * c-lang.c (c_language_data): Delete la_printstr initializer.
1269 (cplus_language_data): Likewise.
1270 (asm_language_data): Likewise.
1271 (minimal_language_data): Likewise.
1272 * d-lang.c (d_language_data): Likewise.
1273 * f-lang.c (f_printstr): Rename to f_language::printstr.
1274 (f_language_data): Delete la_printstr initializer.
1275 (f_language::printstr): New member function, implementation from
1276 f_printstr.
1277 * go-lang.c (go_language_data): Delete la_printstr initializer.
1278 * language.c (language_defn::printstr): Define new member
1279 function.
1280 (unk_lang_printstr): Delete.
1281 (unknown_language_data): Delete la_printstr initializer.
1282 (unknown_language::printstr): New member function.
1283 (auto_language_data): Delete la_printstr initializer.
1284 (auto_language::printstr): New member function.
1285 * language.h (language_data): Delete la_printstr field.
1286 (language_defn::printstr): Declare new member function.
1287 (LA_PRINT_STRING): Update call to printstr.
1288 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1289 (m2_language_data): Delete la_printstr initializer.
1290 (m2_language::printstr): New member function, implementation from
1291 m2_printstr.
1292 * objc-lang.c (objc_language_data): Delete la_printstr
1293 initializer.
1294 * opencl-lang.c (opencl_language_data): Likewise.
1295 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1296 (pascal_language_data): Delete la_printstr initializer.
1297 (pascal_language::printstr): New member function, implementation
1298 from pascal_printstr.
1299 * p-lang.h (pascal_printstr): Delete declaration.
1300 * rust-lang.c (rust_printstr): Update header comment.
1301 (rust_language_data): Delete la_printstr initializer.
1302 (rust_language::printstr): New member function.
1303
52b50f2c
AB
13042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1307 (ada_language::printchar): New member function.
1308 * c-lang.c (c_language_data): Delete la_printchar initializer.
1309 (cplus_language_data): Likewise.
1310 (asm_language_data): Likewise.
1311 (minimal_language_data): Likewise.
1312 * d-lang.c (d_language_data): Likewise.
1313 * f-lang.c (f_printchar): Rename to f_language::printchar.
1314 (f_language_data): Delete la_printchar initializer.
1315 (f_language::printchar): New member function, implementation from
1316 f_printchar.
1317 * go-lang.c (go_language_data): Delete la_printchar initializer.
1318 * language.c (unk_lang_printchar): Delete.
1319 (language_defn::printchar): Define new member function.
1320 (unknown_language_data): Delete la_printchar initializer.
1321 (unknown_language::printchar): New member function.
1322 (auto_language_data): Delete la_printchar initializer.
1323 (auto_language::printchar): New member function.
1324 * language.h (language_data): Delete la_printchar field.
1325 (language_defn::printchar): Declare new member function.
1326 (LA_PRINT_CHAR): Update call to printchar.
1327 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1328 (m2_language::printchar): New member function.
1329 * objc-lang.c (objc_language_data): Delete la_printchar
1330 initializer.
1331 * opencl-lang.c (opencl_language_data): Likewise.
1332 * p-lang.c (pascal_language_data): Delete la_printchar
1333 initializer.
1334 (pascal_language::printchar): New member function.
1335 * rust-lang.c (rust_printchar): Rename to
1336 rust_language::printchar.
1337 (rust_language_data): Delete la_printchar initializer.
1338 (rust_language::printchar): New member function, implementation
1339 from rust_printchar.
1340
ec8cec5b
AB
13412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1342
1343 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1344 (ada_language_data): Delete la_emitchar initializer.
1345 (ada_language::emitchar): New member function, implementation from
1346 emit_char.
1347 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1348 (cplus_language_data): Likewise.
1349 (asm_language_data): Likewise.
1350 (minimal_language_data): Likewise.
1351 * d-lang.c (d_language_data): Likewise.
1352 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1353 (f_language_data): Delete la_emitchar initializer.
1354 (f_language::emitchar): New member function, implementation from
1355 f_emit_char.
1356 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1357 * language.c (unk_lang_emit_char): Delete.
1358 (language_defn::emitchar): New member function definition.
1359 (unknown_language_data): Delete la_emitchar initializer.
1360 (unknown_language::emitchar): New member function.
1361 (auto_language_data): Delete la_emitchar initializer.
1362 (auto_language::emitchar): New member function.
1363 * language.h (language_data): Delete la_emitchar field.
1364 (language_defn::emitchar): New member field declaration.
1365 (LA_EMIT_CHAR): Update call to emitchar.
1366 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1367 (m2_language_data): Delete la_emitchar initializer.
1368 (m2_language::emitchar): New member function, implementation from
1369 m2_emit_char.
1370 * objc-lang.c (objc_language_data): Delete la_emitchar
1371 initializer.
1372 * opencl-lang.c (opencl_language_data): Likewise.
1373 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1374 (pascal_language_data): Delete la_emitchar initializer.
1375 (pascal_language::emitchar): New member function, implementation
1376 from pascal_emit_char.
1377 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1378 (rust_language_data): Delete la_emitchar initializer.
1379 (rust_language::emitchar): New member function, implementation
1380 from rust_emitchar.
1381
1bf9c363
AB
13822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1383
1384 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1385 (ada_language_data): Delete la_post_parser initializer.
1386 (ada_language::post_parser): New member function.
1387 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1388 (cplus_language_data): Likewise.
1389 (asm_language_data): Likewise.
1390 (minimal_language_data): Likewise.
1391 * d-lang.c (d_language_data): Likewise.
1392 * f-lang.c (f_language_data): Likewise.
1393 * go-lang.c (go_language_data): Likewise.
1394 * language.c (unknown_language_data): Likewise.
1395 (auto_language_data): Likewise.
1396 * language.h (language_data): Delete la_post_parser field.
1397 (language_defn::post_parser): New member function.
1398 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1399 * objc-lang.c (objc_language_data): Likewise.
1400 * opencl-lang.c (opencl_language_data): Likewise.
1401 * p-lang.c (pascal_language_data): Likewise.
1402 * parse.c (parse_exp_in_context): Update call to post_parser.
1403 (null_post_parser): Delete definition.
1404 * parser-defs.h (null_post_parser): Delete declaration.
1405 * rust-lang.c (rust_language_data): Delete la_post_parser
1406 initializer.
1407
87afa652
AB
14082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * ada-lang.c (parse): Rename to ada_language::parser.
1411 (ada_language_data): Delete la_parser initializer.
1412 (ada_language::parser): New member function, implementation from
1413 parse.
1414 * c-lang.c (c_language_data): Delete la_parser initializer.
1415 (cplus_language_data): Likewise.
1416 (asm_language_data): Likewise.
1417 (minimal_language_data): Likewise.
1418 * d-lang.c (d_language_data): Likewise.
1419 (d_language::parser): New member function.
1420 * f-lang.c (f_language_data): Delete la_parser initializer.
1421 (f_language::parser): New member function.
1422 * go-lang.c (go_language_data): Delete la_parser initializer.
1423 (go_language::parser): New member function.
1424 * language.c (unk_lang_parser): Delete.
1425 (language_defn::parser): Define new member function.
1426 (unknown_language_data): Delete la_parser initializer.
1427 (unknown_language::parser): New member function.
1428 (auto_language_data): Delete la_parser initializer.
1429 (auto_language::parser): New member function.
1430 * language.h (language_data): Delete la_parser field.
1431 (language_defn::parser): Declare new member function.
1432 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1433 (m2_language::parser): New member function.
1434 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1435 * opencl-lang.c (opencl_language_data): Likewise.
1436 * p-lang.c (pascal_language_data): Likewise.
1437 (pascal_language::parser): New member function.
1438 * parse.c (parse_exp_in_context): Update call to parser.
1439 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1440 (rust_language::parser): New member function.
1441
37825800
AB
14422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * top.c (print_gdb_configuration): Print --with-python-libdir
1445 configuration value.
1446
5b860c93
PW
14472020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1448
1449 * NEWS: Mention change to the alias command.
1450
cf00cd6f
PW
14512020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1452
1453 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1454 (alias_command_completer)
1455 (make_alias_options_def_group): New functions.
1456 (alias_opts, alias_option_defs): New struct and array.
1457 (alias_usage_error): Update usage.
1458 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1459 Use option framework.
1460 (_initialize_cli_cmds): Update alias command help.
1461 Update aliases command help.
1462 (show_user):
1463 Add NULL for new default_args lookup_cmd argument.
1464 (valid_command_p): Rename to validate_aliased_command.
1465 Add NULL for new default_args lookup_cmd argument. Verify that the
1466 aliased_command has no default args.
1467 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1468 (lookup_cmd_1, lookup_cmd): New argument default_args.
1469 (add_alias_cmd):
1470 Add NULL for new default_args lookup_cmd argument.
1471 (print_help_for_command): Show default args under the layout
1472 alias some_alias = some_aliased_cmd some_alias_default_arg.
1473 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1474 xfree default_args in destructor.
1475 * cli/cli-script.c (process_next_line, do_define_command):
1476 Add NULL for new default_args lookup_cmd argument.
1477 * command.h: Declare new default_args argument in lookup_cmd
1478 and lookup_cmd_1.
1479 * completer.c (complete_line_internal_1):
1480 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1481 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1482 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1483 Likewise.
1484 * infcmd.c (_initialize_infcmd): Likewise.
1485 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1486 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1487 * python/py-param.c (add_setshow_generic): Likewise.
1488 * remote.c (_initialize_remote): Likewise.
1489 * top.c (execute_command): Prepend default_args if command has some.
1490 (set_verbose):
1491 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1492 * tracepoint.c (validate_actionline, encode_actions_1):
1493 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1494
bd920864
TBA
14952020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1496
1497 * jit.c (jit_read_descriptor): Use bool as the return type.
1498 (jit_breakpoint_re_set_internal): Use bool as the return type.
1499 Invert the return value logic; return true if the jit breakpoint
1500 has been successfully initialized.
1501 (jit_inferior_init): Update the call to
1502 jit_breakpoint_re_set_internal.
1503
f8098322
PA
15042020-06-22 Pedro Alves <palves@redhat.com>
1505
1506 PR gdb/25939
1507 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1508 Use the current inferior instead. Don't return
1509 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1510 wait again.
1511 * sol-thread.c (sol_thread_target::wait): Don't reference
1512 inferior_ptid.
1513 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1514 (sol_update_thread_list_callback): Use the current inferior's pid
1515 instead of inferior_ptid.
1516
196535a6
RO
15172020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1518
1519 * procfs.c: Cleanup many comments.
1520
1521 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1522 (AFTER_WATCHFLAG): Replace by value.
1523
1524 (MAIN_PROC_NAME_FORMAT): Inline ...
1525 (create_procinfo): ... here.
1526
1527 (procfs_debug_inferior): Remove SYS_exec handling.
1528 (syscall_is_exec): Likewise.
1529 (procfs_set_exec_trap): Likewise.
1530
1531 (syscall_is_lwp_exit): Inline in callers.
1532 (syscall_is_exit): Likewise.
1533 (syscall_is_exec): Likewise.
1534 (syscall_is_lwp_create): Likewise.
1535
1536 (invalidate_cache): Remove #if 0 code.
1537
1538 (make_signal_thread_runnable): Remove.
1539 (procfs_target::resume): Remove #if 0 code.
1540
cf6f3e86
RO
15412020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1542
1543 PR gdb/25939
1544 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1545 call ...
1546 (procfs_target::create_inferior): ... here.
1547
48e9cc84
PW
15482020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1549
1550 * exec.c (validate_exec_file): Ensure the build-id is up to
1551 date by calling reopen_exec_file (that checks file timestamp
1552 to decide to re-read the file).
1553
3922b302
PA
15542020-06-18 Pedro Alves <palves@redhat.com>
1555
1556 PR gdb/25412
1557 * gdbthread.h (delete_thread, delete_thread_silent)
1558 (find_thread_ptid): Update comments.
1559 * thread.c (current_thread_): New global.
1560 (is_current_thread): Move higher, and reimplement.
1561 (inferior_thread): Reimplement.
1562 (set_thread_exited): Use bool. Add assertions.
1563 (add_thread_silent): Simplify thread-reuse handling by always
1564 calling delete_thread.
1565 (delete_thread): Remove intro comment.
1566 (find_thread_ptid): Skip exited threads.
1567 (switch_to_thread_no_regs): Write to current_thread_.
1568 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1569 INFERIOR_PTID. Clear current_thread_.
1570
6dbdab44
PA
15712020-06-18 Pedro Alves <palves@redhat.com>
1572
1573 * aix-thread.c (pd_update): Use switch_to_thread.
1574
2da4b788
PA
15752020-06-18 Pedro Alves <palves@redhat.com>
1576
1577 * ravenscar-thread.c (ravenscar_thread_target): Update.
1578 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1579 (ravenscar_thread_target::add_active_thread): ... this. Don't
1580 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1581 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1582
50838d1b
PA
15832020-06-18 Pedro Alves <palves@redhat.com>
1584
1585 * nat/windows-nat.c (current_windows_thread): Remove.
1586 * nat/windows-nat.h (current_windows_thread): Remove.
1587 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1588 Adjust.
1589 (display_selectors): Adjust to fetch the current
1590 windows_thread_info based on inferior_ptid.
1591 (fake_create_process): No longer write to current_windows_thread.
1592 (windows_nat_target::get_windows_debug_event):
1593 Don't set inferior_ptid or current_windows_thread.
1594 (windows_nat_target::wait): Adjust to not rely on
1595 current_windows_thread.
1596 (do_initial_windows_stuff): Now a method of windows_nat_target.
1597 Switch to the last_ptid thread.
1598 (windows_nat_target::attach): Adjust.
1599 (windows_nat_target::detach): Use switch_to_no_thread instead of
1600 writing to inferior_ptid directly.
1601 (windows_nat_target::create_inferior): Adjust.
1602
31ce04e9
PA
16032020-06-18 Pedro Alves <palves@redhat.com>
1604
1605 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1606
1ee1a363
PA
16072020-06-18 Pedro Alves <palves@redhat.com>
1608
1609 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1610 after creating it, instead of writing to inferior_ptid. Don't
1611 write to inferior_ptid.
1612
6d350754
PA
16132020-06-18 Pedro Alves <palves@redhat.com>
1614
1615 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1616
5d971d48
PA
16172020-06-18 Pedro Alves <palves@redhat.com>
1618
1619 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1620 it, instead of writing to inferior_ptid.
1621
86e57d1b
PA
16222020-06-18 Pedro Alves <palves@redhat.com>
1623
1624 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1625 to inferior_ptid.
1626
f2e1c129
PA
16272020-06-18 Pedro Alves <palves@redhat.com>
1628
1629 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1630 instead of writing to inferior_ptid directly.
1631
60db1b85
PA
16322020-06-18 Pedro Alves <palves@redhat.com>
1633
1634 * corelow.c (core_target::close): Use switch_to_no_thread instead
1635 of writing to inferior_ptid directly.
1636 (add_to_thread_list, core_target_open): Use switch_to_thread
1637 instead of writing to inferior_ptid directly.
1638
fe7d6a8d
PA
16392020-06-18 Pedro Alves <palves@redhat.com>
1640
1641 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1642 inferior_ptid.
1643 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1644 inferior_ptid.
1645 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1646 inferior_ptid directly.
1647 (darwin_nat_target::init_thread_list): Switch to thread, instead
1648 of writing to inferior_ptid.
1649 (darwin_nat_target::attach): Don't write to inferior_ptid.
1650 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1651
975f8708
PA
16522020-06-18 Pedro Alves <palves@redhat.com>
1653
1654 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1655 thread.
1656 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1657 Instead use switch_to_thread.
1658 (gnu_nat_target::detach): Use switch_to_no_thread
1659 instead of writing to inferior_ptid directly. Used passed-in
1660 inferior instead of looking up the inferior by pid.
1661
1a204730
PA
16622020-06-18 Pedro Alves <palves@redhat.com>
1663
1664 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1665 inferior_ptid.
1666
ebe84f23
PA
16672020-06-18 Pedro Alves <palves@redhat.com>
1668
1669 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1670 inferior_ptid.
1671 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1672 thread.
1673 (nto_procfs_target::detach): Avoid referencing
1674 inferior_ptid. Use switch_to_no_thread instead of writing to
1675 inferior_ptid directly.
1676 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1677 instead of writing to inferior_ptid directly.
1678 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1679 to thread.
1680
191f02e5
PA
16812020-06-18 Pedro Alves <palves@redhat.com>
1682
1683 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1684 after creating it, instead of writing to inferior_ptid.
1685 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1686 to inferior_ptid directly.
1687 (gdbsim_target::wait): Don't write to inferior_ptid.
1688
0ac55310
PA
16892020-06-18 Pedro Alves <palves@redhat.com>
1690
1691 * remote.c (remote_target::remote_notice_new_inferior): Use
1692 switch_to_thread instead of writing to inferior_ptid directly.
1693 (remote_target::add_current_inferior_and_thread): Use
1694 switch_to_no_thread instead of writing to inferior_ptid directly.
1695 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1696 and switch_to_thread instead of using set_current_inferior or
1697 writing to inferior_ptid directly.
1698
5233f39b
PA
16992020-06-18 Pedro Alves <palves@redhat.com>
1700
1701 * tracectf.c (ctf_target_open): Switch to added thread instead of
1702 writing to inferior_ptid directly.
1703 (ctf_target::close): Use switch_to_no_thread instead of writing to
1704 inferior_ptid directly.
1705
087e161b
PA
17062020-06-18 Pedro Alves <palves@redhat.com>
1707
1708 * tracefile-tfile.c (tfile_target_open): Don't write to
1709 inferior_ptid directly, instead switch to added thread.
1710 (tfile_target::close): Use switch_to_no_thread instead of writing
1711 to inferior_ptid directly.
1712
7fb43e53
PA
17132020-06-18 Pedro Alves <palves@redhat.com>
1714
1715 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1716 (procfs_target::detach): Use switch_to_no_thread
1717 instead of writing to inferior_ptid directly.
1718 (do_attach): Change return type to void. Switch to the added
1719 thread.
1720 (procfs_target::create_inferior): Switch to the added thread.
1721 (procfs_do_thread_registers): Don't write to inferior_ptid.
1722
18493a00
PA
17232020-06-18 Pedro Alves <palves@redhat.com>
1724
1725 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1726 of writing to inferior_ptid.
1727 (scoped_restore_exited_inferior): Delete.
1728 (handle_vfork_child_exec_or_exit): Simplify using
1729 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1730 instead of writing to inferior_ptid.
1731 (THREAD_STOPPED_BY): Delete.
1732 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1733 (thread_stopped_by_hw_breakpoint): Delete.
1734 (save_waitstatus): Use
1735 scoped_restore_current_thread+switch_to_thread, and call
1736 target_stopped_by_watchpoint instead of
1737 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1738 instead of thread_stopped_by_sw_breakpoint, and
1739 target_stopped_by_hw_breakpoint instead of
1740 thread_stopped_by_hw_breakpoint.
1741 (handle_inferior_event)
1742 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1743 inferior_ptid directly, nor
1744 set_current_inferior/set_current_program_space. Use
1745 switch_to_thread / switch_to_inferior_no_thread instead.
1746
a0776b13
PA
17472020-06-18 Pedro Alves <palves@redhat.com>
1748
1749 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1750 instead of writing to inferior_ptid.
1751
6155c136
PA
17522020-06-18 Pedro Alves <palves@redhat.com>
1753
1754 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1755 added thread.
1756 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1757 to the added thread.
1758 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1759 instead of writing to inferior_ptid.
1760
c5316fc6
PA
17612020-06-18 Pedro Alves <palves@redhat.com>
1762
1763 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1764 (register_to_value_test): Mock a program_space too. Heap-allocate
1765 the address space. Don't write to inferior_ptid. Use
1766 switch_to_thread instead.
1767
8df01799
PA
17682020-06-18 Pedro Alves <palves@redhat.com>
1769
1770 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1771 Delete.
1772 (find_signalled_thread()): New, factored out from
1773 linux_make_corefile_notes and adjusted to handle exited threads.
1774 (linux_make_corefile_notes): Adjust to use the new
1775 find_signalled_thread.
1776
41792d68
PA
17772020-06-18 Pedro Alves <palves@redhat.com>
1778
1779 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1780 of saving/restoring inferior_ptid.
1781
612f258a
TT
17822020-06-17 Tom Tromey <tom@tromey.com>
1783
1784 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1785 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1786 declare.
1787 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1788
efb763a5
SM
17892020-06-15 Simon Marchi <simon.marchi@efficios.com>
1790
1791 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1792 of partial symtabs.
1793
2951f6c0
SM
17942020-06-17 Simon Marchi <simon.marchi@efficios.com>
1795
1796 * regformats/reg-arm.dat: Remove.
1797 * regformats/reg-bfin.dat: Remove.
1798 * regformats/reg-cris.dat: Remove.
1799 * regformats/reg-crisv32.dat: Remove.
1800 * regformats/reg-m32r.dat: Remove.
1801 * regformats/reg-tilegx.dat: Remove.
1802 * regformats/reg-tilegx32.dat: Remove.
1803
7d458ea5
SM
18042020-06-17 Simon Marchi <simon.marchi@efficios.com>
1805
1806 * features/Makefile (WHICH): Remove arm files.
1807 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1808 * regformats/arm/arm-with-neon.dat: Remove.
1809 * regformats/arm/arm-with-vfpv2.dat: Remove.
1810 * regformats/arm/arm-with-vfpv3.dat: Remove.
1811
3af96c0d
SM
18122020-06-17 Simon Marchi <simon.marchi@efficios.com>
1813
1814 * features/Makefile (XMLTOC): Remove rx.xml.
1815
b25e22fd
PA
18162020-06-17 Pedro Alves <palves@redhat.com>
1817
1818 * gdbthread.h (thread_control_state) <trap_expected> Update
1819 comments.
1820
a78a19b1
AB
18212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1822
1823 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1824 ada_language::lookup_symbol_nonlocal.
1825 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1826 (ada_language::lookup_symbol_nonlocal): New member function,
1827 implementation from ada_lookup_symbol_nonlocal.
1828 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1829 initializer.
1830 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1831 initializer.
1832 (cplus_language::lookup_symbol_nonlocal): New member function.
1833 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1834 (minimal_language_data) Likewise.
1835 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1836 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1837 initializer.
1838 (d_language::lookup_symbol_nonlocal): New member function.
1839 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1840 initializer.
1841 (f_language::lookup_symbol_nonlocal): New member function.
1842 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1843 initializer.
1844 * language.c (unknown_language_data): Likewise.
1845 (auto_language_data): Likewise.
1846 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1847 field.
1848 (language_defn::lookup_symbol_nonlocal): New member function.
1849 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1850 initializer.
1851 * objc-lang.c (objc_language_data): Likewise.
1852 * opencl-lang.c (opencl_language_data): Likewise.
1853 * p-lang.c (pascal_language_data): Likewise.
1854 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1855 rust_language::lookup_symbol_nonlocal.
1856 (rust_language_data): Delete la_lookup_symbol_nonlocal
1857 initializer.
1858 (rust_language::lookup_symbol_nonlocal): New member function,
1859 implementation from rust_lookup_symbol_nonlocal.
1860 * symtab.c (lookup_symbol_aux): Update call to
1861 lookup_symbol_nonlocal.
1862 (basic_lookup_symbol_nonlocal): Rename to...
1863 (language_defn::lookup_symbol_nonlocal): ...this, and update
1864 header comment. Remove language_defn parameter, and replace with
1865 uses of `this'.
1866 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1867
ebe2334e
AB
18682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1871 initializer.
1872 (ada_language::value_print_inner): New member function.
1873 * c-lang.c (c_language_data): Delete la_value_print_inner
1874 initializer.
1875 (cplus_language_data): Likewise.
1876 (asm_language_data): Likewise.
1877 (minimal_language_data): Likewise.
1878 * d-lang.c (d_language_data): Likewise.
1879 (d_language::value_print_inner): New member function.
1880 * f-lang.c (f_language_data): Delete la_value_print_inner
1881 initializer.
1882 (f_language::value_print_inner): New member function.
1883 * f-lang.h (f_value_print_innner): Rename to...
1884 (f_value_print_inner): ...this (note spelling of 'inner').
1885 * f-valprint.c (f_value_print_innner): Rename to...
1886 (f_value_print_inner): ...this (note spelling of 'inner').
1887 * go-lang.c (go_language_data): Delete la_value_print_inner
1888 initializer.
1889 (go_language::value_print_inner): New member function.
1890 * language.c (language_defn::value_print_inner): Define new member
1891 function.
1892 (unk_lang_value_print_inner): Delete.
1893 (unknown_language_data): Delete la_value_print_inner initializer.
1894 (unknown_language::value_print_inner): New member function.
1895 (auto_language_data): Delete la_value_print_inner initializer.
1896 (auto_language::value_print_inner): New member function.
1897 * language.h (language_data): Delete la_value_print_inner field.
1898 (language_defn::value_print_inner): Delcare new member function.
1899 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1900 initializer.
1901 (m2_language::value_print_inner): New member function.
1902 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1903 initializer.
1904 * opencl-lang.c (opencl_language_data): Likewise.
1905 * p-lang.c (pascal_language_data): Likewise.
1906 (pascal_language::value_print_inner): New member function.
1907 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1908 initializer.
1909 (rust_language::value_print_inner): New member function.
1910 * valprint.c (do_val_print): Update call to value_print_inner.
1911
a1d1fa3e
AB
19122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * ada-lang.c (ada_language_data): Delete la_value_print
1915 initializer.
1916 (ada_language::value_print): New member function.
1917 * c-lang.c (c_language_data): Delete la_value_print initializer.
1918 (cplus_language_data): Likewise.
1919 (asm_language_data): Likewise.
1920 (minimal_language_data): Likewise.
1921 * d-lang.c (d_language_data): Likewise.
1922 * f-lang.c (f_language_data): Likewise.
1923 * go-lang.c (go_language_data): Likewise.
1924 * language.c (unk_lang_value_print): Delete.
1925 (language_defn::value_print): Define new member function.
1926 (unknown_language_data): Delete la_value_print initializer.
1927 (unknown_language::value_print): New member function.
1928 (auto_language_data): Delete la_value_print initializer.
1929 (auto_language::value_print): New member function.
1930 * language.h (language_data): Delete la_value_print field.
1931 (language_defn::value_print): Declare new member function.
1932 (LA_VALUE_PRINT): Update call to value_print.
1933 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1934 * objc-lang.c (objc_language_data): Likewise.
1935 * opencl-lang.c (opencl_language_data): Likewise.
1936 * p-lang.c (pascal_language_data): Likewise.
1937 (pascal_language::value_print): New member function.
1938 * rust-lang.c (rust_language_data): Delete la_value_print
1939 initializer.
1940
f16a9f57
AB
19412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * ada-lang.c (ada_watch_location_expression): Rename to
1944 ada_language::watch_location_expression.
1945 (ada_language_data): Delete la_watch_location_expression
1946 initializer.
1947 (ada_language::watch_location_expression): New member function,
1948 implementation from ada_watch_location_expression.
1949 * breakpoint.c (watch_command_1): Update call to
1950 watch_location_expression.
1951 * c-lang.c (c_watch_location_expression): Rename to
1952 language_defn::watch_location_expression.
1953 (c_language_data): Delete la_watch_location_expression
1954 initializer.
1955 (cplus_language_data): Likewise.
1956 (asm_language_data): Likewise.
1957 (minimal_language_data): Likewise.
1958 * c-lang.h (c_watch_location_expression): Delete declaration.
1959 * d-lang.c (d_language_data): Delete la_watch_location_expression
1960 initializer.
1961 * f-lang.c (f_language_data): Likewise.
1962 * go-lang.c (go_language_data): Likewise.
1963 * language.c (language_defn::watch_location_expression): Member
1964 function implementation from c_watch_location_expression.
1965 (unknown_language_data): Delete la_watch_location_expression
1966 initializer.
1967 (auto_language_data): Likewise.
1968 * language.h (language_data): Delete la_watch_location_expression
1969 field.
1970 (language_defn::watch_location_expression): Declare new member
1971 function.
1972 * m2-lang.c (m2_language_data): Delete
1973 la_watch_location_expression initializer.
1974 * objc-lang.c (objc_language_data): Likewise.
1975 * opencl-lang.c (opencl_language_data): Likewise.
1976 * p-lang.c (pascal_language_data): Likewise.
1977 * rust-lang.c (rust_watch_location_expression): Rename to
1978 rust_language::watch_location_expression.
1979 (rust_language_data): Delete la_watch_location_expression
1980 initializer.
1981 (rust_language::watch_location_expression): New member function,
1982 implementation from rust_watch_location_expression.
1983
7e56227d
AB
19842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1985
1986 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1987 ada_language::collect_symbol_completion_matches.
1988 (ada_language_data): Delete la_collect_symbol_completion_matches
1989 initializer.
1990 (ada_language::collect_symbol_completion_matches): New member
1991 function, implementation from
1992 ada_collect_symbol_completion_matches.
1993 * c-lang.c (c_language_data): Delete
1994 la_collect_symbol_completion_matches initializer.
1995 (cplus_language_data): Likewise.
1996 (asm_language_data): Likewise.
1997 (minimal_language_data): Likewise.
1998 * d-lang.c (d_language_data): Likewise.
1999 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2000 f_language::collect_symbol_completion_matches.
2001 (f_language_data): Delete la_collect_symbol_completion_matches
2002 initializer.
2003 (f_language::collect_symbol_completion_matches) New member
2004 function, implementation from f_collect_symbol_completion_matches.
2005 * go-lang.c (go_language_data): Delete
2006 la_collect_symbol_completion_matches initializer.
2007 * language.c (unknown_language_data): Likewise.
2008 (auto_language_data): Likewise.
2009 * language.h (language_data): Delete
2010 la_collect_symbol_completion_matches field.
2011 (language_defn::collect_symbol_completion_matches): New member
2012 function.
2013 * m2-lang.c (m2_language_data): Delete
2014 la_collect_symbol_completion_matches initializer.
2015 * objc-lang.c (objc_language_data): Likewise.
2016 * opencl-lang.c (opencl_language_data): Likewise.
2017 * p-lang.c (pascal_language_data): Likewise.
2018 * rust-lang.c (rust_language_data): Likewise.
2019 * symtab.c (default_collect_symbol_completion_matches): Delete.
2020 (collect_symbol_completion_matches): Update call to
2021 collect_symbol_completion_matches.
2022 (collect_symbol_completion_matches_type): Likewise.
2023 * symtab.h (default_collect_symbol_completion_matches): Delete
2024 declaration.
2025
53fc67f8
AB
20262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2027
2028 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2029 (ada_language_data): Delete la_word_break_characters initializer.
2030 (ada_language::word_break_characters): New member function.
2031 * c-lang.c (c_language_data): Delete la_word_break_characters
2032 initializer.
2033 (cplus_language_data): Likewise.
2034 (asm_language_data): Likewise.
2035 (minimal_language_data): Likewise.
2036 * completer.c: Update global comment.
2037 (advance_to_expression_complete_word_point): Update call to
2038 word_break_characters.
2039 (complete_files_symbols): Likewise.
2040 (complete_line_internal_1): Likewise.
2041 (default_completer_handle_brkchars): Likewise.
2042 (skip_quoted_chars): Likewise.
2043 * d-lang.c (d_language_data): Delete la_word_break_characters
2044 initializer.
2045 * f-lang.c (f_word_break_characters): Delete.
2046 (f_language_data): Delete la_word_break_characters initializer.
2047 (f_language::word_break_characters): New member function.
2048 * go-lang.c (go_language_data): Delete la_word_break_characters
2049 initializer.
2050 * language.c (unknown_language_data): Likewise.
2051 (auto_language_data): Likewise.
2052 * language.h (default_word_break_characters): Move declaration to
2053 earlier in the file.
2054 (language_data): Delete la_word_break_characters field.
2055 (language_defn::word_break_characters): New member function.
2056 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2057 initializer.
2058 * objc-lang.c (objc_language_data): Likewise.
2059 * opencl-lang.c (opencl_language_data): Likewise.
2060 * p-lang.c (pascal_language_data): Likewise.
2061 * rust-lang.c (rust_language_data): Likewise.
2062
c9debfb9
AB
20632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2064
2065 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2066 (ada_language_data): Delete la_get_symbol_name_matcher
2067 initializer.
2068 (language_defn::get_symbol_name_matcher_inner): New member
2069 function.
2070 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2071 initializer.
2072 (cplus_language_data): Likewise.
2073 (cplus_language::get_symbol_name_matcher_inner): New member
2074 function.
2075 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2076 (minimal_language_data): Likewise.
2077 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2078 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2079 initializer.
2080 * dictionary.c (iter_match_first_hashed): Update call to
2081 get_symbol_name_matcher.
2082 (iter_match_next_hashed): Likewise.
2083 (iter_match_next_linear): Likewise.
2084 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2085 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2086 initializer.
2087 (f_language::get_symbol_name_matcher_inner): New member function.
2088 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2089 initializer.
2090 * language.c (default_symbol_name_matcher): Update header comment,
2091 make static.
2092 (language_defn::get_symbol_name_matcher): New definition.
2093 (language_defn::get_symbol_name_matcher_inner): Likewise.
2094 (get_symbol_name_matcher): Delete.
2095 (unknown_language_data): Delete la_get_symbol_name_matcher
2096 initializer.
2097 (auto_language_data): Likewise.
2098 * language.h (language_data): Delete la_get_symbol_name_matcher
2099 field.
2100 (language_defn::get_symbol_name_matcher): New member function.
2101 (language_defn::get_symbol_name_matcher_inner): Likewise.
2102 (default_symbol_name_matcher): Delete declaration.
2103 * linespec.c (find_methods): Update call to
2104 get_symbol_name_matcher.
2105 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2106 initializer.
2107 * minsyms.c (lookup_minimal_symbol): Update call to
2108 get_symbol_name_matcher.
2109 (iterate_over_minimal_symbols): Likewise.
2110 * objc-lang.c (objc_language_data): Delete
2111 la_get_symbol_name_matcher initializer.
2112 * opencl-lang.c (opencl_language_data): Likewise.
2113 * p-lang.c (pascal_language_data): Likewise.
2114 * psymtab.c (psymbol_name_matches): Update call to
2115 get_symbol_name_matcher.
2116 * rust-lang.c (rust_language_data): Delete
2117 la_get_symbol_name_matcher initializer.
2118 * symtab.c (symbol_matches_search_name): Update call to
2119 get_symbol_name_matcher.
2120 (compare_symbol_name): Likewise.
2121
9a49ad8c
AB
21222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * ada-lang.c (ada_language_data): Delete la_compute_program
2125 initializer.
2126 * c-lang.c (c_language_data): Likewise.
2127 (c_language::compute_program): New member function.
2128 (cplus_language_data): Delete la_compute_program initializer.
2129 (cplus_language::compute_program): New member function.
2130 (asm_language_data): Delete la_compute_program initializer.
2131 (minimal_language_data): Likewise.
2132 * c-lang.h (c_compute_program): Update comment.
2133 (cplus_compute_program): Likewise.
2134 * compile/compile-c-support.c (c_compute_program): Likewise.
2135 (cplus_compute_program): Likewise.
2136 * compile/compile.c (compile_to_object): Update call to
2137 la_compute_program.
2138 * d-lang.c (d_language_data): Delete la_compute_program
2139 initializer.
2140 * f-lang.c (f_language_data): Likewise.
2141 * go-lang.c (go_language_data): Likewise.
2142 * language.c (unknown_language_data): Likewise.
2143 (auto_language_data): Likewise.
2144 * language.h (language_data): Delete la_compute_program field.
2145 (language_defn::compute_program): New member function.
2146 * m2-lang.c (m2_language_data): Delete la_compute_program
2147 initializer.
2148 * objc-lang.c (objc_language_data): Likewise.
2149 * opencl-lang.c (opencl_language_data): Likewise.
2150 * p-lang.c (pascal_language_data): Likewise.
2151 * rust-lang.c (rust_language_data): Likewise.
2152
eff93b4d
AB
21532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * ada-lang.c (ada_language_data) Delete
2156 la_class_name_from_physname initializer.
2157 * c-lang.c (c_language_data): Likewise.
2158 (cplus_language_data): Likewise.
2159 (cplus_language::class_name_from_physname): New member function.
2160 (asm_language_data): Delete la_class_name_from_physname
2161 initializer.
2162 (minimal_language_data): Likewise.
2163 * d-lang.c (d_language_data): Likewise.
2164 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2165 method on language_defn class.
2166 (guess_full_die_structure_name): Likewise.
2167 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2168 initializer.
2169 * go-lang.c (go_language_data): Likewise.
2170 * language.c (language_class_name_from_physname): Delete.
2171 (unk_lang_class_name): Delete.
2172 (unknown_language_data): Delete la_class_name_from_physname
2173 initializer.
2174 (auto_language_data): Likewise.
2175 * language.h (language_data): Delete la_class_name_from_physname
2176 field.
2177 (language_defn::class_name_from_physname): New function.
2178 (language_class_name_from_physname): Delete declaration.
2179 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2180 initializer.
2181 * objc-lang.c (objc_language_data): Likewise.
2182 * opencl-lang.c (opencl_language_data): Likewise.
2183 * p-lang.c (pascal_language_data): Likewise.
2184 * rust-lang.c (rust_language_data): Likewise.
2185
de543742
TT
21862020-06-16 Tom Tromey <tom@tromey.com>
2187
2188 * tui/tui-data.h (STATUS_NAME): New macro.
2189 * tui/tui-layout.c (tui_remove_some_windows)
2190 (initialize_known_windows, tui_register_window)
2191 (tui_layout_split::remove_windows, initialize_layouts)
2192 (tui_new_layout_command): Don't use hard-coded window names.
2193
a350efd4
TT
21942020-06-16 Tom Tromey <tom@tromey.com>
2195
2196 PR tui/25348:
2197 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2198 tui_initialize_readline. Only run once. Call rl_initialize.
2199 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2200 tui_initialize_readline.
2201 * tui/tui-io.c (tui_setup_io): Call
2202 tui_ensure_readline_initialized.
2203 * tui/tui-interp.c (tui_interp::init): Update.
2204
39ec0490
TT
22052020-06-16 Tom Tromey <tom@tromey.com>
2206
2207 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2208 Also preserve the status window.
2209
d2d1ea20
TT
22102020-06-16 Tom Tromey <tom@tromey.com>
2211
2212 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2213 where m_window==nullptr.
2214
66920317
TT
22152020-06-15 Tom Tromey <tromey@adacore.com>
2216
2217 * windows-nat.c (windows_nat::handle_output_debug_string):
2218 Update.
2219 (windows_nat::handle_ms_vc_exception): Update.
2220 * target.h (target_read_string): Change API.
2221 * target.c (target_read_string): Change API.
2222 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2223 Update.
2224 * solib-frv.c (frv_current_sos): Update.
2225 * solib-dsbt.c (dsbt_current_sos): Update.
2226 * solib-darwin.c (darwin_current_sos): Update.
2227 * linux-thread-db.c (inferior_has_bug): Update.
2228 * expprint.c (print_subexp_standard): Update.
2229 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2230 (ada_exception_message_1): Update.
2231
a5d871dd
TT
22322020-06-15 Tom Tromey <tromey@adacore.com>
2233
2234 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2235
670e35fa
TT
22362020-06-15 Tom Tromey <tromey@adacore.com>
2237
2238 * valprint.c (read_string): Update comment.
2239 * target.c (MIN): Remove.
2240 (target_read_string): Rewrite.
2241
f5272a3b
TT
22422020-06-15 Tom Tromey <tromey@adacore.com>
2243
2244 * corefile.c (read_memory_string): Remove.
2245 * ada-valprint.c (ada_value_print_ptr): Update.
2246 * ada-lang.h (ada_tag_name): Change return type.
2247 * ada-lang.c (type_from_tag): Update.
2248 (ada_tag_name_from_tsd): Change return type. Use
2249 target_read_string.
2250 (ada_tag_name): Likewise.
2251 * gdbcore.h (read_memory_string): Don't declare.
2252
2c074f49
HD
22532020-06-14 Hannes Domani <ssbssa@yahoo.de>
2254
2255 * symtab.c (rbreak_command): Ignore Windows drive colon.
2256
6a17d503
SM
22572020-06-12 Simon Marchi <simon.marchi@efficios.com>
2258
2259 * NEWS: Mention removed GDBserver host support.
2260
453c733f
NC
22612020-06-12 Nelson Chu <nelson.chu@sifive.com>
2262
2263 * features/riscv/rebuild-csr-xml.sh: Updated.
2264
2b4e6a3f
TT
22652020-06-11 Tom Tromey <tom@tromey.com>
2266
2267 PR gdb/18318:
2268 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2269
4412332f
JG
22702020-06-09 Jonny Grant <jg@jguk.org>
22712020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2272
2273 * main.c (captured_main_1): Don't print new line after help.
2274 (print_gdb_help): add mailing list and IRC channel information
2275 to --help. Add new lines between items in the footer. Remove
2276 quotes around bug url.
2277
2f33032a
KS
22782020-06-11 Keith Seitz <keiths@redhat.com>
2279
2280 PR gdb/21356
2281 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2282 Resolve typedefs for type length calculations.
2283
7ab96794
TV
22842020-06-10 Tom de Vries <tdevries@suse.de>
2285
2286 PR ada/24713
2287 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2288 (write_psymbols): Enable .gdb_index for ada.
2289 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2290 ada.
2291
e5f3ece2
TV
22922020-06-10 Tom de Vries <tdevries@suse.de>
2293
2294 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2295 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2296 namei" instead of "const char *name" argument.
2297 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2298 dw2_symtab_iter_init.
2299
940da03e
SM
23002020-06-08 Simon Marchi <simon.marchi@efficios.com>
2301
2302 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2303 to use type::field and field::type instead.
2304
b6cdac4b
SM
23052020-06-08 Simon Marchi <simon.marchi@efficios.com>
2306
2307 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2308 to use field::type instead.
2309
5d14b6e5
SM
23102020-06-08 Simon Marchi <simon.marchi@efficios.com>
2311
2312 * gdbtypes.h (struct field) <type, set_type>: New methods.
2313 Rename `type` field to...
2314 <m_type>: ... this. Change references throughout to use type or
2315 set_type methods.
2316 (FIELD_TYPE): Use field::type. Change call sites that modify
2317 the field's type to use field::set_type instead.
2318
3d967001
SM
23192020-06-08 Simon Marchi <simon.marchi@efficios.com>
2320
2321 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2322 to use type::index_type instead.
2323
262abc0d
SM
23242020-06-08 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2327 methods.
2328 (TYPE_INDEX_TYPE): Use type::index_type.
2329 * gdbtypes.c (create_array_type_with_stride): Likewise.
2330
82836c92
TT
23312020-06-07 Tom Tromey <tom@tromey.com>
2332
2333 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2334 parameter.
2335 (generic_value_print): Update.
2336
940dace9
AB
23372020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2338
2339 Revert commit 982a38f60b0.
2340 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2341
982a38f6
AB
23422020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2343
2344 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2345 avoid use after free.
2346
82f06518
TV
23472020-06-05 Tom de Vries <tdevries@suse.de>
2348
2349 * NEWS: Fix typos.
2350
f8c41851
SM
23512020-06-04 Simon Marchi <simon.marchi@efficios.com>
2352
2353 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2354 the per_bfd object.
2355 (dwarf2_read_debug_names): Likewise.
2356 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2357 object when re-using a per_bfd object with an index.
2358
f9b5d5ea
TV
23592020-06-03 Tom de Vries <tdevries@suse.de>
2360
2361 PR symtab/26046
2362 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2363 children for C++.
2364 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2365 DW_TAG_subprogram.
2366
f6eee2d0
AB
23672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * ada-lang.c (ada_language_data): Delete skip_trampoline
2370 initializer.
2371 * c-lang.c (c_language_data): Likewise.
2372 (cplus_language_data): Likewise.
2373 (cplus_language::skip_trampoline): New member function.
2374 (asm_language_data): Delete skip_trampoline initializer.
2375 (minimal_language_data): Likewise.
2376 * d-lang.c (d_language_data): Likewise.
2377 * f-lang.c (f_language_data): Likewise.
2378 * go-lang.c (go_language_data): Likewise.
2379 * language.c (unk_lang_trampoline): Delete function.
2380 (skip_language_trampoline): Update.
2381 (unknown_language_data): Delete skip_trampoline initializer.
2382 (auto_language_data): Likewise.
2383 * language.h (language_data): Delete skip_trampoline field.
2384 (language_defn::skip_trampoline): New function.
2385 * m2-lang.c (m2_language_data): Delete skip_trampoline
2386 initializer.
2387 * objc-lang.c (objc_skip_trampoline): Delete function, move
2388 implementation to objc_language::skip_trampoline.
2389 (objc_language_data): Delete skip_trampoline initializer.
2390 (objc_language::skip_trampoline): New member function with
2391 implementation from objc_skip_trampoline.
2392 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2393 initializer.
2394 * p-lang.c (pascal_language_data): Likewise.
2395 * rust-lang.c (rust_language_data): Likewise.
2396
0a50df5d
AB
23972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2398
2399 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2400 (ada_language::demangle): New member function.
2401 * c-lang.c (c_language_data): Delete la_demangle initializer.
2402 (cplus_language_data): Delete la_demangle initializer.
2403 (cplus_language::demangle): New member function.
2404 (asm_language_data): Delete la_demangle initializer.
2405 (minimal_language_data): Delete la_demangle initializer.
2406 * d-lang.c (d_language_data): Delete la_demangle initializer.
2407 (d_language::demangle): New member function.
2408 * f-lang.c (f_language_data): Delete la_demangle initializer.
2409 (f_language::demangle): New member function.
2410 * go-lang.c (go_language_data): Delete la_demangle initializer.
2411 (go_language::demangle): New member function.
2412 * language.c (language_demangle): Update.
2413 (unk_lang_demangle): Delete.
2414 (unknown_language_data): Delete la_demangle initializer.
2415 (unknown_language::demangle): New member function.
2416 (auto_language_data): Delete la_demangle initializer.
2417 (auto_language::demangle): New member function.
2418 * language.h (language_data): Delete la_demangle field.
2419 (language_defn::demangle): New function.
2420 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2421 * objc-lang.c (objc_language_data): Delete la_demangle
2422 initializer.
2423 (objc_language::demangle): New member function.
2424 * opencl-lang.c (opencl_language_data): Delete la_demangle
2425 initializer.
2426 * p-lang.c (pascal_language_data): Likewise.
2427 * rust-lang.c (rust_language_data): Likewise.
2428 (rust_language::demangle): New member function.
2429
fbfb0a46
AB
24302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2431
2432 * ada-lang.c (ada_language_data): Delete la_print_type
2433 initializer.
2434 (ada_language::print_type): New member function.
2435 * c-lang.c (c_language_data): Delete la_print_type initializer.
2436 (c_language::print_type): New member function.
2437 (cplus_language_data): Delete la_print_type initializer.
2438 (cplus_language::print_type): New member function.
2439 (asm_language_data): Delete la_print_type initializer.
2440 (asm_language::print_type): New member function.
2441 (minimal_language_data): Delete la_print_type initializer.
2442 (minimal_language::print_type): New member function.
2443 * d-lang.c (d_language_data): Delete la_print_type initializer.
2444 (d_language::print_type): New member function.
2445 * f-lang.c (f_language_data): Delete la_print_type initializer.
2446 (f_language::print_type): New member function.
2447 * go-lang.c (go_language_data): Delete la_print_type initializer.
2448 (go_language::print_type): New member function.
2449 * language.c (unk_lang_print_type): Delete.
2450 (unknown_language_data): Delete la_print_type initializer.
2451 (unknown_language::print_type): New member function.
2452 (auto_language_data): Delete la_print_type initializer.
2453 (auto_language::print_type): New member function.
2454 * language.h (language_data): Delete la_print_type field.
2455 (language_defn::print_type): New function.
2456 (LA_PRINT_TYPE): Update.
2457 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2458 (m2_language::print_type): New member function.
2459 * objc-lang.c (objc_language_data): Delete la_print_type
2460 initializer.
2461 (objc_language::print_type): New member function.
2462 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2463 to opencl_language::print_type.
2464 (opencl_language_data): Delete la_print_type initializer.
2465 (opencl_language::print_type): New member function, implementation
2466 from opencl_print_type.
2467 * p-lang.c (pascal_language_data): Delete la_print_type
2468 initializer.
2469 (pascal_language::print_type): New member function.
2470 * rust-lang.c (rust_print_type): Delete, implementation moved to
2471 rust_language::print_type.
2472 (rust_language_data): Delete la_print_type initializer.
2473 (rust_language::print_type): New member function, implementation
2474 from rust_print_type.
2475
6f827019
AB
24762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2477
2478 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2479 implementation moves to...
2480 (ada_language::sniff_from_mangled_name): ...here. Update return
2481 type.
2482 (ada_language_data): Delete la_sniff_from_mangled_name
2483 initializer.
2484 * c-lang.c (c_language_data): Likewise.
2485 (cplus_language_data): Likewise.
2486 (cplus_language::sniff_from_mangled_name): New member function,
2487 implementation taken from gdb_sniff_from_mangled_name.
2488 (asm_language_data): Delete la_sniff_from_mangled_name
2489 initializer.
2490 (minimal_language_data): Likewise.
2491 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2492 implementation moves to cplus_language::sniff_from_mangled_name.
2493 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2494 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2495 moves to...
2496 (d_language::sniff_from_mangled_name): ...here.
2497 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2498 * f-lang.c (f_language_data): Likewise.
2499 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2500 moves to...
2501 (go_language::sniff_from_mangled_name): ...here.
2502 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2503 * language.c (language_sniff_from_mangled_name): Delete.
2504 (unknown_language_data): Delete la_sniff_from_mangled_name
2505 initializer.
2506 (auto_language_data): Likewise.
2507 * language.h (language_data): Delete la_sniff_from_mangled_name
2508 field.
2509 (language_defn::sniff_from_mangled_name): New function.
2510 (language_sniff_from_mangled_name): Delete declaration.
2511 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2512 field.
2513 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2514 implementation moves to...
2515 (objc_language::sniff_from_mangled_name): ...here.
2516 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2517 * opencl-lang.c (opencl_language_data): Likewise.
2518 * p-lang.c (pascal_language_data): Likewise.
2519 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2520 implementation moves to...
2521 (rust_language::sniff_from_mangled_name): ...here.
2522 (rust_language_data): Delete la_sniff_from_mangled_name
2523 initializer.
2524 * symtab.c (symbol_find_demangled_name): Call
2525 sniff_from_mangled_name member function.
2526
fb8006fd
AB
25272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2530 initializer.
2531 * c-lang.c (c_language_data): Likewise.
2532 (cplus_language_data): Likewise.
2533 (cplus_language::search_name_hash): New member function.
2534 (asm_language_data): Delete la_search_name_hash initializer.
2535 (minimal_language_data): Likewise.
2536 * d-lang.c (d_language_data): Likewise.
2537 * dictionary.c (default_search_name_hash): Rename to...
2538 (language_defn::search_name_hash): ...this.
2539 * f-lang.c (f_language_data): Likewise.
2540 (f_language::search_name_hash): New member function.
2541 * go-lang.c (go_language_data): Delete la_search_name_hash
2542 initializer.
2543 * language.c (unknown_language_data): Likewise.
2544 (auto_language_data): Likewise.
2545 * language.h (struct language_data): Delete la_search_name_hash
2546 field.
2547 (language_defn::search_name_hash): Declare new member function.
2548 (default_search_name_hash): Delete declaration.
2549 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2550 initializer.
2551 * objc-lang.c (objc_language_data): Likewise.
2552 * opencl-lang.c (opencl_language_data): Likewise.
2553 * p-lang.c (pascal_language_data): Likewise.
2554 * rust-lang.c (rust_language_data): Likewise.
2555 * symtab.c (search_name_hash): Update call.
2556
8e25bafe
AB
25572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2560 initializer.
2561 * c-lang.c (class compile_instance): Declare.
2562 (c_language_data): Delete la_get_compile_instance initializer.
2563 (c_language::get_compile_instance): New member function.
2564 (cplus_language_data): Delete la_get_compile_instance initializer.
2565 (cplus_language::get_compile_instance): New member function.
2566 (asm_language_data): Delete la_get_compile_instance initializer.
2567 (minimal_language_data): Likewise.
2568 * c-lang.h (c_get_compile_context): Update comment.
2569 (cplus_get_compile_context): Update comment.
2570 * compile/compile.c (compile_to_object): Update calls, don't rely
2571 on function pointer being NULL.
2572 * d-lang.c (d_language_data): Delete la_get_compile_instance
2573 initializer.
2574 * f-lang.c (f_language_data): Likewise.
2575 * go-lang.c (go_language_data): Likewise.
2576 * language.c (unknown_language_data): Likewise.
2577 (auto_language_data): Likewise.
2578 * language.h (language_data): Delete la_get_compile_instance field.
2579 (language_defn::get_compile_instance): New member function.
2580 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2581 initializer.
2582 * objc-lang.c (objc_language_data): Likewise.
2583 * opencl-lang.c (opencl_language_data): Likewise.
2584 * p-lang.c (pascal_language_data): Likewise.
2585 * rust-lang.c (rust_language_data): Likewise.
2586
4009ee92
AB
25872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2588
2589 * ada-lang.c (ada_add_all_symbols): Update comment.
2590 (ada_iterate_over_symbols): Delete, move implementation to...
2591 (ada_language::iterate_over_symbols): ...here, a new member
2592 function, rewrite to use range based for loop.
2593 (ada_language_data): Delete la_iterate_over_symbols initializer.
2594 * c-lang.c (c_language_data): Likewise.
2595 (cplus_language_data): Likewise.
2596 (asm_language_data): Likewise.
2597 (minimal_language_data): Likewise.
2598 * d-lang.c (d_language_data): Likewise.
2599 * f-lang.c (f_language_data): Likewise.
2600 * go-lang.c (go_language_data): Likewise.
2601 * language.c (unknown_language_data): Likewise.
2602 (auto_language_data): Likewise.
2603 * language.h (language_data): Delete la_iterate_over_symbols field.
2604 (language_defn::iterate_over_symbols): New member function.
2605 (LA_ITERATE_OVER_SYMBOLS): Update.
2606 * linespec.c (iterate_over_all_matching_symtabs): Update.
2607 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2608 initializer.
2609 * objc-lang.c (objc_language_data): Likewise.
2610 * opencl-lang.c (opencl_language_data): Likewise.
2611 * p-lang.c (pascal_language_data): Likewise.
2612 * rust-lang.c (rust_language_data): Likewise.
2613
54f4ca46
AB
26142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2615
2616 * ada-lang.c (ada_language_data): Delete
2617 la_lookup_transparent_type initializer.
2618 * c-lang.c (c_language_data): Likewise.
2619 (cplus_language_data): Likewise.
2620 (cplus_language::lookup_transparent_type): New member function.
2621 (asm_language_data): Delete la_lookup_transparent_type
2622 initializer.
2623 (minimal_language_data): Likewise.
2624 * d-lang.c (d_language_data): Likewise.
2625 * f-lang.c (f_language_data): Likewise.
2626 * go-lang.c (go_language_data): Likewise.
2627 * language.c (unknown_language_data): Likewise.
2628 (auto_language_data): Likewise.
2629 * language.h (struct language_data): Delete
2630 la_lookup_transparent_type field.
2631 (language_defn::lookup_transparent_type): New member function.
2632 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2633 initializer.
2634 * objc-lang.c (objc_language_data): Likewise.
2635 * opencl-lang.c (opencl_language_data): Likewise.
2636 * p-lang.c (pascal_language_data): Likewise.
2637 * rust-lang.c (rust_language_data): Likewise.
2638 * symtab.c (symbol_matches_domain): Update call.
2639
1fb314aa
AB
26402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * ada-lang.c (ada_language_arch_info): Delete function, move
2643 implementation to...
2644 (ada_language::language_arch_info): ...here, a new member
2645 function.
2646 (ada_language_data): Delete la_language_arch_info.
2647 * c-lang.c (c_language_data): Likewise.
2648 (c_language::language_arch_info): New member function.
2649 (cplus_language_arch_info): Delete function, move
2650 implementation to...
2651 (cplus_language::language_arch_info): ...here, a new member
2652 function.
2653 (cplus_language_data): Delete la_language_arch_info.
2654 (asm_language_data): Likewise.
2655 (asm_language::language_arch_info): New member function.
2656 (minimal_language_data): Delete la_language_arch_info.
2657 (minimal_language::language_arch_info): New member function.
2658 * d-lang.c (d_language_arch_info): Delete function, move
2659 implementation to...
2660 (d_language::language_arch_info): ...here, a new member
2661 function.
2662 (d_language_data): Delete la_language_arch_info.
2663 * f-lang.c (f_language_arch_info): Delete function, move
2664 implementation to...
2665 (f_language::language_arch_info): ...here, a new member
2666 function.
2667 (f_language_data): Delete la_language_arch_info.
2668 * go-lang.c (go_language_arch_info): Delete function, move
2669 implementation to...
2670 (go_language::language_arch_info): ...here, a new member
2671 function.
2672 (go_language_data): Delete la_language_arch_info.
2673 * language.c (unknown_language_data): Likewise.
2674 (unknown_language::language_arch_info): New member function.
2675 (auto_language_data): Delete la_language_arch_info.
2676 (auto_language::language_arch_info): New member function.
2677 (language_gdbarch_post_init): Update call to
2678 la_language_arch_info.
2679 * language.h (language_data): Delete la_language_arch_info
2680 function pointer.
2681 (language_defn::language_arch_info): New function.
2682 * m2-lang.c (m2_language_arch_info): Delete function, move
2683 implementation to...
2684 (m2_language::language_arch_info): ...here, a new member
2685 function.
2686 (m2_language_data): Delete la_language_arch_info.
2687 * objc-lang.c (objc_language_arch_info): Delete function, move
2688 implementation to...
2689 (objc_language::language_arch_info): ...here, a new member
2690 function.
2691 (objc_language_data): Delete la_language_arch_info.
2692 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2693 implementation to...
2694 (opencl_language::language_arch_info): ...here, a new member
2695 function.
2696 (opencl_language_data): Delete la_language_arch_info.
2697 * p-lang.c (pascal_language_arch_info): Delete function, move
2698 implementation to...
2699 (pascal_language::language_arch_info): ...here, a new member
2700 function.
2701 (pascal_language_data): Delete la_language_arch_info.
2702 * rust-lang.c (rust_language_arch_info): Delete function, move
2703 implementation to...
2704 (rust_language::language_arch_info): ...here, a new member
2705 function.
2706 (rust_language_data): Delete la_language_arch_info.
2707
48448202
AB
27082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2711 initializer.
2712 * c-lang.c (c_language_data): Likewise.
2713 (cplus_language_data): Likewise.
2714 (cplus_language::pass_by_reference_info): New method.
2715 (asm_language_data): Delete la_pass_by_reference initializer.
2716 (minimal_language_data): Likewise.
2717 * cp-abi.c (cp_pass_by_reference): Remove use of
2718 default_pass_by_reference.
2719 * d-lang.c (d_language_data): Likewise.
2720 * f-lang.c (f_language_data): Likewise.
2721 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2722 default_pass_by_reference.
2723 * go-lang.c (go_language_data): Likewise.
2724 * language.c (language_pass_by_reference): Update.
2725 (default_pass_by_reference): Delete.
2726 (unknown_language_data): Delete la_pass_by_reference
2727 initializer.
2728 (auto_language_data): Likewise.
2729 * language.h (struct language_data): Delete la_pass_by_reference
2730 field.
2731 (language_defn::pass_by_reference_info): New member function.
2732 (default_pass_by_reference): Delete declaration.
2733 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2734 initializer.
2735 * objc-lang.c (objc_language_data): Likewise.
2736 * opencl-lang.c (opencl_language_data): Likewise.
2737 * p-lang.c (pascal_language_data): Likewise.
2738 * rust-lang.c (rust_language_data): Likewise.
2739
15e5fd35
AB
27402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 * ada-lang.c (ada_read_var_value): Delete function, move
2743 implementation to...
2744 (ada_language::read_var_value): ...here.
2745 (ada_language_data): Delete la_read_var_value initializer.
2746 * c-lang.c (c_language_data): Likewise.
2747 (cplus_language_data): Likewise.
2748 (minimal_language_data): Likewise.
2749 * d-lang.c (d_language_data): Likewise.
2750 * f-lang.c (f_language_data): Likewise.
2751 * findvar.c (default_read_var_value): Rename to...
2752 (language_defn::read_var_value): ...this.
2753 * findvar.c (read_var_value): Update header comment, and change to
2754 call member function instead of function pointer.
2755 * go-lang.c (go_language_data): Likewise.
2756 * language.c (unknown_language_data): Delete la_read_var_value
2757 initializer.
2758 (auto_language_data): Likewise.
2759 * language.h (struct language_data): Delete la_read_var_value
2760 field.
2761 (language_defn::read_var_value): New member function.
2762 (default_read_var_value): Delete declaration.
2763 * m2-lang.c (m2_language_data): Delete la_read_var_value
2764 initializer.
2765 * objc-lang.c (objc_language_data): Likewise.
2766 * opencl-lang.c (opencl_language_data): Likewise.
2767 * p-lang.c (pascal_language_data): Likewise.
2768 * rust-lang.c (rust_language_data): Likewise.
2769 * value.h (default_read_var_value): Delete declaration.
2770
5bd40f2a
AB
27712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2772
2773 * ada-lang.c (ada_print_array_index): Delete function, move
2774 implementation to...
2775 (ada_language::print_array_index): ...here.
2776 (ada_language_data): Delete la_print_array_index initializer.
2777 * c-lang.c (c_language_data): Likewise.
2778 (cplus_language_data): Likewise.
2779 (minimal_language_data): Likewise.
2780 * d-lang.c (d_language_data): Likewise.
2781 * f-lang.c (f_language_data): Likewise.
2782 * go-lang.c (go_language_data): Likewise.
2783 * language.c (default_print_array_index): Delete function, move
2784 implementation to...
2785 (language_defn::print_array_index): ...here.
2786 (unknown_language_data): Delete la_print_array_index initializer.
2787 (auto_language_data): Likewise.
2788 * language.h (struct language_data): Delete la_print_array_index
2789 field.
2790 (language_defn::print_array_index): New member function.
2791 (LA_PRINT_ARRAY_INDEX): Update.
2792 (default_print_array_index): Delete declaration.
2793 * m2-lang.c (m2_language_data): Delete la_print_array_index
2794 initializer.
2795 * objc-lang.c (objc_language_data): Likewise.
2796 * opencl-lang.c (opencl_language_data): Likewise.
2797 * p-lang.c (pascal_language_data): Likewise.
2798 * rust-lang.c (rust_language_data): Likewise.
2799
0874fd07
AB
28002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2801
2802 * gdb/ada-lang.c (ada_language_defn): Convert to...
2803 (ada_language_data): ...this.
2804 (class ada_language): New class.
2805 (ada_language_defn): New static global.
2806 * gdb/c-lang.c (c_language_defn): Convert to...
2807 (c_language_data): ...this.
2808 (class c_language): New class.
2809 (c_language_defn): New static global.
2810 (cplus_language_defn): Convert to...
2811 (cplus_language_data): ...this.
2812 (class cplus_language): New class.
2813 (cplus_language_defn): New static global.
2814 (asm_language_defn): Convert to...
2815 (asm_language_data): ...this.
2816 (class asm_language): New class.
2817 (asm_language_defn): New static global.
2818 (minimal_language_defn): Convert to...
2819 (minimal_language_data): ...this.
2820 (class minimal_language): New class.
2821 (minimal_language_defn): New static global.
2822 * gdb/d-lang.c (d_language_defn): Convert to...
2823 (d_language_data): ...this.
2824 (class d_language): New class.
2825 (d_language_defn): New static global.
2826 * gdb/f-lang.c (f_language_defn): Convert to...
2827 (f_language_data): ...this.
2828 (class f_language): New class.
2829 (f_language_defn): New static global.
2830 * gdb/go-lang.c (go_language_defn): Convert to...
2831 (go_language_data): ...this.
2832 (class go_language): New class.
2833 (go_language_defn): New static global.
2834 * gdb/language.c (unknown_language_defn): Remove declaration.
2835 (current_language): Initialize to nullptr, real initialization is
2836 moved to _initialize_language.
2837 (languages): Delete global.
2838 (language_defn::languages): Define.
2839 (set_language_command): Use language_defn::languages.
2840 (set_language): Likewise.
2841 (range_error): Likewise.
2842 (language_enum): Likewise.
2843 (language_def): Likewise.
2844 (add_set_language_command): Use language_def::languages for the
2845 language list, and language_def to lookup language pointers.
2846 (skip_language_trampoline): Use language_defn::languages.
2847 (unknown_language_defn): Convert to...
2848 (unknown_language_data): ...this.
2849 (class unknown_language): New class.
2850 (unknown_language_defn): New static global.
2851 (auto_language_defn): Convert to...
2852 (auto_language_data): ...this.
2853 (class auto_language): New class.
2854 (auto_language_defn): New static global.
2855 (language_gdbarch_post_init): Use language_defn::languages.
2856 (_initialize_language): Initialize current_language.
2857 * gdb/language.h (struct language_defn): Rename to...
2858 (struct language_data): ...this.
2859 (struct language_defn): New.
2860 (auto_language_defn): Delete.
2861 (unknown_language_defn): Delete.
2862 (minimal_language_defn): Delete.
2863 (ada_language_defn): Delete.
2864 (asm_language_defn): Delete.
2865 (c_language_defn): Delete.
2866 (cplus_language_defn): Delete.
2867 (d_language_defn): Delete.
2868 (f_language_defn): Delete.
2869 (go_language_defn): Delete.
2870 (m2_language_defn): Delete.
2871 (objc_language_defn): Delete.
2872 (opencl_language_defn): Delete.
2873 (pascal_language_defn): Delete.
2874 (rust_language_defn): Delete.
2875 * gdb/m2-lang.c (m2_language_defn): Convert to...
2876 (m2_language_data): ...this.
2877 (class m2_language): New class.
2878 (m2_language_defn): New static global.
2879 * gdb/objc-lang.c (objc_language_defn): Convert to...
2880 (objc_language_data): ...this.
2881 (class objc_language): New class.
2882 (objc_language_defn): New static global.
2883 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2884 (opencl_language_data): ...this.
2885 (class opencl_language): New class.
2886 (opencl_language_defn): New static global.
2887 * gdb/p-lang.c (pascal_language_defn): Convert to...
2888 (pascal_language_data): ...this.
2889 (class pascal_language): New class.
2890 (pascal_language_defn): New static global.
2891 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2892 language pointer, update comment format.
2893 * gdb/rust-lang.c (rust_language_defn): Convert to...
2894 (rust_language_data): ...this.
2895 (class rust_language): New class.
2896 (rust_language_defn): New static global.
2897
1313c56e
AB
28982020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2899
2900 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2901 member variable.
2902 <m_stmt_at_address>: New member variable.
2903 (lnp_state_machine::record_line): Don't record some lines, update
2904 tracking of is_stmt at the same address.
2905 (lnp_state_machine::lnp_state_machine): Initialise new member
2906 variables.
2907
b7ed9f3d
ST
29082020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2909
2910 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2911 "-include gnu-nat-mig.h".
2912 * gnu-nat-mig.h: New file.
2913 * gnu-nat.c: Include "gnu-nat-mig.h".
2914 (exc_server, msg_reply_server, notify_server,
2915 process_reply_server): Remove declarations.
2916
14a8ad62
ST
29172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2918
2919 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2920 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2921 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2922 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2923 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2924 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2925 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2926 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2927 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2928 to gnu_nat_target class.
2929 * gnu-nat.c: Likewise.
2930 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2931 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2932 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2933 object.
2934 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2935 instead of `gnu_target'.
2936
0af5e106
ST
29372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2938
2939 * i386-gnu-tdep.c: Include "gdbcore.h"
2940 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2941 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2942 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2943 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2944 i386_gnu_sigcontext_addr): New functions
2945 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2946 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2947 tdep.
2948
078f2fc9
ST
29492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2950
2951 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2952 before fork_inferior call. Avoid calling it if target_is_pushed returns
2953 true.
2954
53dff92c
ST
29552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2956
2957 * gnu-nat.h (gnu_target): New variable declaration.
2958 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2959 gnu_target.
2960 * gnu-nat.c (gnu_target): New variable.
2961 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2962 add_thread_silent, and add_thread calls.
2963 (gnu_nat_target::create_inferior): Pass gnu_target to
2964 add_thread_silent, thread_change_ptid call.
2965 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2966 call.
2967
5a8b8627
ST
29682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2969
2970 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2971 (gnu_nat_target::find_memory_regions): Remove unused
2972 `old_address' variable.
2973
366f550a
ST
29742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2975
2976 * gnu-nat.c: Include "gdbarch.h".
2977
f14871bf
ST
29782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2979
2980 * reply_mig_hack.awk (Error return): Cast function through
2981 void *, to bypass compiler function call check.
2982
c6887cfb
ST
29832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2984
2985 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2986 $(srcdir)/reply_mig_hack.awk.
2987
6930bffe
ST
29882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2989
2990 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2991
112c22ed
JG
29922020-05-30 Jonny Grant <jg@jguk.org>
2993
2994 * configure.ac (ACX_BUGURL): change bug URL to https.
2995
f68f85b5
PA
29962020-05-30 Pedro Alves <palves@redhat.com>
2997
2998 * cp-support.c (replace_typedefs_template): New.
2999 (replace_typedefs_qualified_name): Handle
3000 DEMANGLE_COMPONENT_TEMPLATE.
3001
976ca316
SM
30022020-05-29 Simon Marchi <simon.marchi@efficios.com>
3003
3004 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3005 dwarf2/index-cache.h, dwarf2/index-write.c,
3006 dwarf2/index-write.h, dwarf2/line-header.c,
3007 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3008 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3009 variables and fields from `dwarf2_per_objfile` to just
3010 `per_objfile` throughout.
3011
989ade05
SM
30122020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3013
3014 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3015 <push_dwarf_reg_entry_value>: Add comment.
3016
c47bae85
KB
30172020-05-28 Kevin Buettner <kevinb@redhat.com>
3018 Keith Seitz <keiths@redhat.com>
3019
3020 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3021 instead of PyEval_ReleaseLock.
3022 (class gdbpy_gil): Move to earlier in file.
3023 (finalize_python): Set gdb_python_initialized.
3024 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3025 when not initialized.
3026
44486dcf
SM
30272020-05-28 Simon Marchi <simon.marchi@efficios.com>
3028
3029 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3030 <push_dwarf_reg_entry_value>: Remove assert. Override
3031 per_objfile with caller_per_objfile.
3032
f030440d
TV
30332020-05-28 Tom de Vries <tdevries@suse.de>
3034
3035 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3036 PR gold/15646 workaround to symbol kind "type".
3037
f0fbb768
TT
30382020-05-27 Tom Tromey <tromey@adacore.com>
3039
3040 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3041
af0b2a3e
TT
30422020-05-27 Tom Tromey <tromey@adacore.com>
3043
3044 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3045 Use htab_find_with_hash.
3046 <add_abbrev>: Remove "abbrev_number" parameter.
3047 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3048 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3049 (hash_abbrev): Add comment.
3050 (abbrev_table::lookup_abbrev): Move to header file.
3051 (abbrev_table::read): Update.
3052
7d00ffec
TT
30532020-05-27 Tom Tromey <tromey@adacore.com>
3054
3055 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3056 method.
3057 <canonical_name>: New member.
3058 <raw_name>: Rename from "name".
3059 (partial_die_info): Initialize canonical_name.
3060 (scan_partial_symbols): Check raw_name.
3061 (partial_die_parent_scope, partial_die_full_name)
3062 (add_partial_symbol, add_partial_subprogram)
3063 (add_partial_enumeration, load_partial_dies): Use "name" method.
3064 (partial_die_info::name): New method.
3065 (partial_die_info::read, guess_partial_die_structure_name)
3066 (partial_die_info::fixup): Update.
3067
697bba18
TT
30682020-05-27 Tom Tromey <tromey@adacore.com>
3069
3070 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3071 <get_ref_die_offset>: Inline.
3072 <get_ref_die_offset_complaint>: New method.
3073 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3074 (attribute::get_ref_die_offset_complaint): Rename from
3075 get_ref_die_offset. Just issue complaint.
3076
c17ace43
HD
30772020-05-27 Hannes Domani <ssbssa@yahoo.de>
3078
3079 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3080
96445f0b
HD
30812020-05-27 Hannes Domani <ssbssa@yahoo.de>
3082
3083 * exec.c (exec_file_attach): Use errno value of first openp failure.
3084
ac637ec3
HD
30852020-05-27 Hannes Domani <ssbssa@yahoo.de>
3086
3087 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3088 Don't close thread handle.
3089
17ee85fc
TT
30902020-05-27 Tom Tromey <tom@tromey.com>
3091 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3094 shared_ptr.
3095 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3096 member.
3097 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3098 dwarf2_per_bfd_objfile_data_key>: New globals.
3099 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3100 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3101 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3102 shared.
3103 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3104 short-circuit when sharing.
3105 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3106 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3107
39b16f87
SM
31082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3111 to...
3112 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3113 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3114
fcf23d5b
SM
31152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3118 build_name_components, find_name_components_bounds>:
3119 Add per_objfile parameter.
3120 (struct mapped_index) <symbol_name_at>: Likewise.
3121 (struct mapped_debug_names): Remove constructor.
3122 <dwarf2_per_objfile>: Remove field.
3123 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3124 (mapped_index_base::find_name_components_bounds,
3125 mapped_index_base::build_name_components,
3126 dw2_expand_symtabs_matching_symbol): Likewise.
3127 (class mock_mapped_index) <symbol_name_at>: Likewise.
3128 (check_match): Likewise.
3129 (check_find_bounds_finds): Likewise.
3130 (test_mapped_index_find_name_component_bounds): Update.
3131 (CHECK_MATCH): Update.
3132 (dw2_expand_symtabs_matching): Update.
3133 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3134 per_objfile parameter.
3135 <find_vec_in_debug_names>: Likewise.
3136 <m_per_objfile>: New field.
3137 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3138 parameter.
3139 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3140 (dw2_debug_names_iterator::next): Update.
3141 (dw2_debug_names_lookup_symbol): Update.
3142 (dw2_debug_names_expand_symtabs_for_function): Update.
3143 (dw2_debug_names_map_matching_symbols): Update.
3144 (dw2_debug_names_expand_symtabs_matching): Update.
3145 (dwarf2_read_debug_names): Update.
3146
7188ed02
SM
31472020-05-27 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3150 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3151 move to dwarf2_per_objfile.
3152 <read_in_chain>: Remove.
3153 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3154 remove_all_cus, age_comp_units>: New methods.
3155 <m_dwarf2_cus>: New member.
3156 (struct dwarf2_per_cu_data) <cu>: Remove.
3157 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3158 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3159 moved to methods of dwarf2_per_objfile.
3160 (dwarf2_clear_marks): Remove.
3161 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3162 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3163 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3164 (dwarf2_per_objfile::remove_all_cus): New.
3165 (class free_cached_comp_units) <~free_cached_comp_units>:
3166 Update.
3167 (load_cu): Update.
3168 (dw2_do_instantiate_symtab): Adjust.
3169 (fill_in_sig_entry_from_dwo_entry): Adjust.
3170 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3171 (cutu_reader::cutu_reader): Likewise.
3172 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3173 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3174 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3175 and dwarf2_per_objfile::age_comp_units.
3176 (load_partial_comp_unit): Update.
3177 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3178 (process_queue): Likewise.
3179 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3180 backlink.
3181 (dwarf2_read_addr_index): Likewise.
3182 (follow_die_offset): Likewise.
3183 (dwarf2_fetch_die_loc_sect_off): Likewise.
3184 (dwarf2_fetch_constant_bytes): Likewise.
3185 (dwarf2_fetch_die_type_sect_off): Likewise.
3186 (follow_die_sig_1): Likewise.
3187 (load_full_type_unit): Likewise.
3188 (read_signatured_type): Likewise.
3189 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3190 (dwarf2_cu::~dwarf2_cu): Remove.
3191 (dwarf2_per_objfile::get_cu): New.
3192 (dwarf2_per_objfile::set_cu): New.
3193 (age_cached_comp_units): Rename to...
3194 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3195 to std::unordered_map.
3196 (free_one_cached_comp_unit): Rename to...
3197 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3198 to std::unordered_map.
3199 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3200 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3201 a dwarf2_per_objfile in data.
3202 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3203 (dwarf2_clear_marks): Remove.
3204
2e671100
SM
32052020-05-27 Simon Marchi <simon.marchi@efficios.com>
3206
3207 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3208 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3209 (init_tu_and_read_dwo_dies): Likewise.
3210 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3211 (cutu_reader::cutu_reader): Likewise.
3212 (load_partial_comp_unit): Likewise.
3213 (process_psymtab_comp_unit): Update.
3214 (build_type_psymtabs_1): Update.
3215 (process_skeletonless_type_unit): Update.
3216 (load_full_comp_unit): Update.
3217 (find_partial_die): Update.
3218 (dwarf2_read_addr_index): Update.
3219 (read_signatured_type): Update.
3220
2e6a9f79
SM
32212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3222
3223 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3224 m_header_read_in>: New fields.
3225 <get_header>: New method.
3226 * dwarf2/read.c (per_cu_header_read_in): Remove.
3227 (dwarf2_per_cu_data::get_header): New.
3228 (dwarf2_per_cu_data::addr_size): Update.
3229 (dwarf2_per_cu_data::offset_size): Update.
3230 (dwarf2_per_cu_data::ref_addr_size): Update.
3231
1b555f17
SM
32322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3233
3234 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3235 (dw2_do_instantiate_symtab): Update.
3236 (queue_and_load_all_dwo_tus): Change parameter from
3237 dwarf2_per_cu_data to dwarf2_cu.
3238 (dwarf2_fetch_die_loc_sect_off): Update.
3239 (dwarf2_fetch_constant_bytes): Update.
3240 (dwarf2_fetch_die_type_sect_off): Update.
3241
8fc0b21d
SM
32422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3243
3244 * dwarf2/read.c (process_full_comp_unit,
3245 process_full_type_unit): Remove per_cu, per_objfile paramters.
3246 Add dwarf2_cu parameter.
3247 (process_queue): Update.
3248
168c9250
SM
32492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * dwarf2/read.c (create_cu_from_index_list): Replace
3252 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3253 (create_cus_from_index_list): Likewise.
3254 (create_cus_from_index): Likewise.
3255 (create_signatured_type_table_from_index): Likewise.
3256 (create_cus_from_debug_names_list): Likewise.
3257 (create_cus_from_debug_names): Likewise.
3258 (dwarf2_read_gdb_index): Update.
3259 (dwarf2_read_debug_names): Update.
3260
e286671b
TT
32612020-05-27 Tom Tromey <tom@tromey.com>
3262 Simon Marchi <simon.marchi@efficios.com>
3263
3264 * dwarf2/read.h (struct dwarf2_per_objfile)
3265 <get_type_for_signatured_type, set_type_for_signatured_type>:
3266 New methods.
3267 <m_type_map>: New member.
3268 (struct signatured_type) <type>: Remove.
3269 * dwarf2/read.c
3270 (dwarf2_per_objfile::get_type_for_signatured_type,
3271 dwarf2_per_objfile::set_type_for_signatured_type): New.
3272 (get_signatured_type): Use new methods.
3273
8adb8487
TT
32742020-05-27 Tom Tromey <tom@tromey.com>
3275 Simon Marchi <simon.marchi@efficios.com>
3276
3277 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3278 (struct dwarf2_per_objfile) <type_units>: New member.
3279 <get_type_unit_group_unshareable>: New method.
3280 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3281 num_symtabs, symtabs>: Remove; move to
3282 type_unit_group_unshareable.
3283 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3284 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3285 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3286
127bbf4b
SM
32872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3288
3289 * dwarf2/read.h (struct dwarf2_per_cu_data):
3290 <dwarf2_per_objfile>: Remove.
3291 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3292 dwarf2_per_objfile.
3293 (create_signatured_type_table_from_index): Likewise.
3294 (create_signatured_type_table_from_debug_names): Likewise.
3295 (create_debug_type_hash_table): Likewise.
3296 (fill_in_sig_entry_from_dwo_entry): Likewise.
3297 (create_type_unit_group): Likewise.
3298 (read_comp_units_from_section): Likewise.
3299 (create_cus_hash_table): Likewise.
3300
f6e649dd
SM
33012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3302
3303 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3304 dwarf2_per_cu_data::dwarf2_per_objfile.
3305 (compute_compunit_symtab_includes): Likewise.
3306 (dwarf2_cu::start_symtab): Likewise.
3307
aa66c379
SM
33082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3309
3310 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3311 parameter.
3312 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3313 (read_namespace_alias): Update.
3314 (lookup_die_type): Update.
3315 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3316 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3317 Update.
3318 (disassemble_dwarf_expression): Update.
3319
120ce1b5
SM
33202020-05-27 Simon Marchi <simon.marchi@efficios.com>
3321
3322 * dwarf2/read.h (struct dwarf2_queue_item): Add
3323 dwarf2_per_objfile parameter, assign new parameter.
3324 <per_objfile>: New field.
3325 * dwarf2/read.c (free_one_cached_comp_unit): Add
3326 dwarf2_per_objfile parameter.
3327 (queue_comp_unit): Likewise.
3328 (dw2_do_instantiate_symtab): Update.
3329 (process_psymtab_comp_unit): Update.
3330 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3331 (process_imported_unit_die): Update.
3332 (queue_and_load_dwo_tu): Update.
3333 (follow_die_offset): Update.
3334 (follow_die_sig_1): Update.
3335
9f47c707
SM
33362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3337
3338 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3339 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3340 (read_call_site_scope): Assign per_objfile.
3341 (dwarf2_per_cu_data::objfile): Remove.
3342 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3343 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3344 dwarf2_per_objfile parameter.
3345 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3346 dwarf2_per_objfile parameter.
3347 (dwarf_expr_reg_to_entry_parameter): Add output
3348 dwarf2_per_objfile parameter.
3349 (locexpr_get_frame_base): Update.
3350 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3351 <push_dwarf_reg_entry_value>: Update.
3352 <call_site_to_target_addr>: Update.
3353 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3354 parameter.
3355 (value_of_dwarf_reg_entry): Update.
3356 (rw_pieced_value): Update.
3357 (indirect_synthetic_pointer): Update.
3358 (dwarf2_evaluate_property): Update.
3359 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3360 parameter.
3361 (locexpr_read_variable): Update.
3362 (locexpr_get_symbol_read_needs): Update.
3363 (loclist_read_variable): Update.
3364
14095eb3
SM
33652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3366
3367 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3368 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3369 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3370 parameter.
3371 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3372 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3373 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3374 parameter.
3375 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3376 sect_variable_value): Add dwarf2_per_objfile parameter.
3377 (class dwarf_evaluate_loc_desc) <dwarf_call,
3378 dwarf_variable_value>: Update.
3379 (fetch_const_value_from_synthetic_pointer): Add
3380 dwarf2_per_objfile parameter.
3381 (fetch_const_value_from_synthetic_pointer): Update.
3382 (coerced_pieced_ref): Update.
3383 (class symbol_needs_eval_context) <dwarf_call,
3384 dwarf_variable_value>: Update.
3385 (dwarf2_compile_expr_to_ax): Update.
3386
3c3cd3d4
SM
33872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3388
3389 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3390 parameter.
3391 (dwarf2_evaluate_loc_desc_full): Update.
3392
82ca3f51
SM
33932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3396 parameter.
3397 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3398 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3399 dwarf2_per_objfile parameter.
3400 (decode_debug_loc_dwo_addresses): Likewise.
3401 (dwarf2_find_location_expression): Update.
3402 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3403 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3404 parameter.
3405 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3406 parameter.
3407 (locexpr_describe_location_1): Likewise.
3408 (locexpr_describe_location): Update.
3409
4b167ea1
SM
34102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3411
3412 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3413 Remove.
3414 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3415 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3416 (dwarf2_compile_property_to_c): Update.
3417 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3418 use text offset from objfile.
3419 (locexpr_tracepoint_var_ref): Update.
3420 (locexpr_generate_c_location): Update.
3421 (loclist_describe_location): Update.
3422 (loclist_tracepoint_var_ref): Update.
3423 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3424 dwarf2_per_objfile parameter.
3425 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3426 use text offset from objfile.
3427 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3428
89b07335
SM
34292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * dwarf2/expr.h (struct dwarf_expr_context)
3432 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3433 <offset>: Remove.
3434 <per_objfile>: New member.
3435 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3436 dwarf2_per_objfile parameter. Don't set offset, set
3437 per_objfile.
3438 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3439 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3440 a dwarf2_per_objfile object instead of an offset.
3441 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3442 constructor.
3443 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3444 to dwarf2_expr_executor constructor. Don't set offset.
3445 (dwarf2_fetch_cfa_info): Update.
3446 (struct dwarf2_frame_cache) <text_offset>: Remove.
3447 <per_objfile>: New field.
3448 (dwarf2_frame_cache): Update.
3449 (dwarf2_frame_prev_register): Update.
3450 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3451 <dwarf_evaluate_loc_desc>: Add constructor.
3452 (dwarf2_evaluate_loc_desc_full): Update.
3453 (dwarf2_locexpr_baton_eval): Update.
3454 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3455 Add constructor.
3456 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3457
293e7e51
SM
34582020-05-27 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3461 addr_sized_int_type>: Move to dwarf2_cu.
3462 <int_type>: Move to dwarf2_per_objfile.
3463 (struct dwarf2_per_objfile) <int_type>: Move here.
3464 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3465 addr_sized_int_type>: Move here.
3466 (read_func_scope): Update.
3467 (read_array_type): Update.
3468 (read_tag_string_type): Update.
3469 (attr_to_dynamic_prop): Update.
3470 (dwarf2_per_cu_data::int_type): Rename to...
3471 (dwarf2_per_objfile::int_type): ... this.
3472 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3473 (dwarf2_cu::addr_sized_int_type): ... this.
3474 (read_subrange_type): Update.
3475 (dwarf2_per_cu_data::addr_type): Rename to...
3476 (dwarf2_cu::addr_type): ... this.
3477 (set_die_type): Update.
3478
64874a40
SM
34792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3480
3481 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3482 data through per_cu->cu.
3483
4ab09049
SM
34842020-05-27 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3487 dwarf2_per_cu_data parameter fo dwarf2_cu.
3488 (lookup_dwo_type_unit): Likewise.
3489 (read_cutu_die_from_dwo): Likewise.
3490 (lookup_dwo_unit): Likewise.
3491 (open_and_init_dwo_file): Likewise.
3492 (lookup_dwo_cutu): Likewise.
3493 (lookup_dwo_comp_unit): Likewise.
3494 (lookup_dwo_type_unit): Likewise.
3495 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3496 (cutu_reader::cutu_reader): Update.
3497
47b14e86
SM
34982020-05-27 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3501 parameter.
3502 (process_full_type_unit): Likewise.
3503 (process_queue): Update.
3504
43182c09
SM
35052020-05-27 Simon Marchi <simon.marchi@efficios.com>
3506
3507 * dwarf2/read.c (recursively_compute_inclusions): Add
3508 dwarf2_per_objfile parameter.
3509 (compute_compunit_symtab_includes): Likewise.
3510 (process_cu_includes): Update.
3511
7aa104c4
SM
35122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3513
3514 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3515 parameter.
3516 (create_type_unit_group): Update.
3517 (process_psymtab_comp_unit_reader): Update.
3518 (build_type_psymtabs_reader): Update.
3519
e3beb21d
SM
35202020-05-27 Simon Marchi <simon.marchi@efficios.com>
3521
3522 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3523 object through m_this_cu->cu.
3524
d460f660
SM
35252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3526
3527 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3528 the info parameter.
3529 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3530
ab432490
SM
35312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3532
3533 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3534 per_objfile parameter.
3535 (load_full_type_unit): Add per_objfile parameter.
3536 (read_signatured_type): Likewise.
3537 (load_full_comp_unit): Likewise.
3538 (load_cu): Likewise.
3539 (dw2_do_instantiate_symtab): Likewise.
3540 (dw2_get_file_names): Likewise.
3541 (dw2_map_symtabs_matching_filename): Update.
3542 (dw_expand_symtabs_matching_file_matcher): Update.
3543 (dw2_map_symbol_filenames): Update.
3544 (process_psymtab_comp_unit): Add per_objfile parameter.
3545 (build_type_psymtabs_1): Update.
3546 (process_skeletonless_type_unit): Update.
3547 (dwarf2_build_psymtabs_hard): Update.
3548 (load_partial_comp_unit): Add per_objfile parameter.
3549 (scan_partial_symbols): Update.
3550 (load_full_comp_unit): Add per_objfile parameter.
3551 (process_imported_unit_die): Update.
3552 (create_cus_hash_table): Update.
3553 (find_partial_die): Update.
3554 (dwarf2_read_addr_index): Update.
3555 (follow_die_offset): Update.
3556 (dwarf2_fetch_die_loc_sect_off): Update.
3557 (dwarf2_fetch_constant_bytes): Update.
3558 (dwarf2_fetch_die_type_sect_off): Update.
3559 (follow_die_sig_1): Update.
3560 (load_full_type_unit): Add per_objfile parameter.
3561 (read_signatured_type): Likewise.
3562
313bad1b
SM
35632020-05-27 Simon Marchi <simon.marchi@efficios.com>
3564
3565 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3566 of objfile_name.
3567
c3699833
SM
35682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3569
3570 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3571 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3572 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3573 field.
3574 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3575 (create_cus_from_index): Update.
3576 (dwarf2_read_gdb_index): Update.
3577 (create_cus_from_debug_names): Update.
3578 (dwarf2_read_debug_names): Update.
3579 (get_abbrev_section_for_cu): Update.
3580 (create_all_comp_units): Update.
3581 (read_attribute_value): Update.
3582 (get_debug_line_section): Update.
3583 * dwarf2/index-cache.c (index_cache::store): Update.
3584 * dwarf2/index-write.c (save_gdb_index_command): Update.
3585 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3586
1859c670
SM
35872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3588
3589 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3590 member.
3591 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3592 dwarf2_per_cu_data::per_bfd.
3593 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3594 (create_type_unit_group): Likewise.
3595 (queue_comp_unit): Remove reference to
3596 per_cu->dwarf2_per_objfile.
3597 (maybe_queue_comp_unit): Likewise.
3598 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3599 (create_cus_hash_table): Assign new field.
3600
5e22e966
SM
36012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3602
3603 * dwarf2/read.c: Replace
3604 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3605 dwarf2_cu->per_objfile throughout.
3606
97a1449a
SM
36072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3608
3609 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3610 parameter, don't use per_cu->dwarf2_per_objfile.
3611 (dw2_instantiate_symtab): Likewise.
3612 (dw2_find_last_source_symtab): Update.
3613 (dw2_map_expand_apply): Update.
3614 (dw2_lookup_symbol): Update.
3615 (dw2_expand_symtabs_for_function): Update.
3616 (dw2_expand_all_symtabs): Update.
3617 (dw2_expand_symtabs_with_fullname): Update.
3618 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3619 don't use per_cu->dwarf2_per_objfile.
3620 (dw2_expand_marked_cus): Update.
3621 (dw2_find_pc_sect_compunit_symtab): Update.
3622 (dw2_debug_names_lookup_symbol): Update.
3623 (dw2_debug_names_expand_symtabs_for_function): Update.
3624 (dw2_debug_names_map_matching_symbols): Update.
3625 (dwarf2_psymtab::expand_psymtab): Update.
3626
9e021579
SM
36272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3630 <per_objfile>: New member.
3631 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3632 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3633 call to dwarf2_cu.
3634 (cutu_reader::cutu_reader): Update.
3635 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3636
ae090bdb
SM
36372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3638
3639 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3640 struct dwarf2_per_objfile.
3641 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3642 dwarf2_per_bfd.
3643 * dwarf2/read.c (set_die_type): Update.
3644 (get_die_type_at_offset): Update.
3645
af758d11
SM
36462020-05-27 Tom Tromey <tom@tromey.com>
3647 Simon Marchi <simon.marchi@efficios.com>
3648
3649 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3650 method.
3651 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3652 get_symtab, set_symtab>: New methods.
3653 <m_symtabs>: New field.
3654 (struct dwarf2_psymtab): Derive from partial_symtab.
3655 <readin_p, get_compunit_symtab>: Declare methods.
3656 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3657 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3658 New methods.
3659 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3660 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3661 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3662 (dw2_symtab_iter_next, dw2_print_stats)
3663 (dw2_expand_symtabs_with_fullname)
3664 (dw2_expand_symtabs_matching_one)
3665 (dw_expand_symtabs_matching_file_matcher)
3666 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3667 (dw2_debug_names_iterator::next)
3668 (dw2_debug_names_map_matching_symbols)
3669 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3670 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3671 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3672 New methods.
3673 (get_compunit_symtab, process_full_comp_unit)
3674 (process_full_type_unit): Update.
3675 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3676
5989a64e
SM
36772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3678
3679 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3680 then introduce a new dwarf2_per_objfile type.
3681 <read_line_string>: Move to the new dwarf2_per_objfile type.
3682 <objfile>: Likewise.
3683 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3684 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3685 dwarf2_per_objfile->per_bfd.
3686 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3687 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3688 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3689 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3690 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3691 (dwarf2_per_objfile::locate_sections): Rename to...
3692 (dwarf2_per_bfd::locate_sections): ... this.
3693 (dwarf2_per_objfile::get_cutu): Rename to...
3694 (dwarf2_per_bfd::get_cutu): ... this.
3695 (dwarf2_per_objfile::get_cu): Rename to...
3696 (dwarf2_per_bfd::get_cu): ... this.
3697 (dwarf2_per_objfile::get_tu): Rename to...
3698 (dwarf2_per_bfd::get_tu): ... this.
3699 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3700 (dwarf2_per_bfd::allocate_per_cu): ... this.
3701 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3702 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3703 (get_gdb_index_contents_ftype): Change parameter from
3704 dwarf2_per_objfile to dwarf2_per_bfd.
3705 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3706 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3707
a50264ba
TT
37082020-05-27 Tom Tromey <tom@tromey.com>
3709 Simon Marchi <simon.marchi@efficios.com>
3710
3711 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3712 (allocate_piece_closure): Set "per_objfile" member.
3713 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3714 (locexpr_describe_location, loclist_describe_location): Use new
3715 member.
3716 * dwarf2/read.c (read_call_site_scope)
3717 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3718 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3719 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3720 handle_data_member_location): Set per_objfile member.
3721 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3722 member.
3723 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3724
d3473f0c
TT
37252020-05-27 Tom Tromey <tom@tromey.com>
3726
3727 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3728 allocate_signatured_type>: Declare new methods.
3729 <m_num_psymtabs>: New member.
3730 (struct dwarf2_per_cu_data) <index>: New member.
3731 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3732 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3733 (create_cu_from_index_list): Use allocate_per_cu.
3734 (create_signatured_type_table_from_index)
3735 (create_signatured_type_table_from_debug_names)
3736 (create_debug_type_hash_table, add_type_unit)
3737 (read_comp_units_from_section): Use allocate_signatured_type.
3738
5717c425
TT
37392020-05-27 Tom Tromey <tom@tromey.com>
3740
3741 * psymtab.c (partial_map_expand_apply)
3742 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3743 (psym_lookup_global_symbol_language)
3744 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3745 (psym_print_stats, psym_expand_symtabs_for_function)
3746 (psym_map_symbol_filenames, psym_map_matching_symbols)
3747 (psym_expand_symtabs_matching)
3748 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3749 (maintenance_check_psymtabs): Update.
3750 * psympriv.h (struct partial_symtab) <readin_p,
3751 get_compunit_symtab>: Add objfile parameter.
3752 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3753 Likewise.
3754 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3755 get_compunit_symtab>: Likewise.
3756 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3757
45940949
TT
37582020-05-27 Tom Tromey <tom@tromey.com>
3759
3760 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3761 member.
3762 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3763 (create_cu_from_index_list)
3764 (create_signatured_type_table_from_index)
3765 (create_signatured_type_table_from_debug_names)
3766 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3767 (dwarf2_create_include_psymtab)
3768 (create_debug_type_hash_table, add_type_unit)
3769 (create_type_unit_group, read_comp_units_from_section)
3770 (dwarf2_compute_name, create_cus_hash_table)
3771 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3772 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3773 obstack.
3774 (dw2_get_real_path): Likewise. Change argument to
3775 dwarf2_per_objfile.
3776
f8c6d152
LM
37772020-05-27 Luis Machado <luis.machado@linaro.org>
3778
3779 PR tdep/26000
3780 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3781 for ldrd (immediate).
3782
e98d2e6d
PW
37832020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3784
3785 * command.h: Add comment giving the name of class_tui.
3786 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3787 create the fake command for the help for class_tui.
3788
53a47a3e
TT
37892020-05-26 Tom Tromey <tromey@adacore.com>
3790
3791 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3792 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3793 (val_atr): New function.
3794 (value_val_atr): Use it.
3795 * ada-valprint.c (print_optional_low_bound): Change low bound
3796 handling for enums.
3797 (val_print_packed_array_elements): Don't call discrete_position.
3798 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3799 discrete_position for enum types.
3800 * language.c (default_print_array_index): Change type.
3801 * language.h (struct language_defn) <la_print_array_index>: Add
3802 index_type parameter, change type of index_value.
3803 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3804 (default_print_array_index): Update.
3805 * valprint.c (maybe_print_array_index): Don't call
3806 value_from_longest. Update.
3807 (value_print_array_elements): Don't call discrete_position.
3808
0bc2354b
TT
38092020-05-26 Tom Tromey <tromey@adacore.com>
3810
3811 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3812 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3813
1218a4bf
CDA
38142020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3815
3816 PR gdb/13519
3817 * avr-tdep.c (avr_integer_to_address): Return data or code
3818 address accordingly to the second 'type' argument of the
3819 function.
3820
92651b1d
MW
38212020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3822
3823 * infcmd.c, inferior.h: (construct_inferior_arguments):
3824 Moved function from here to gdbsupport/common-inferior.{h,cc}
3825
0a4f5f8c
TT
38262020-05-23 Tom Tromey <tom@tromey.com>
3827
3828 Revert commit eca1f90c:
3829 * NEWS: Remove entry for completion styling.
3830 * completer.c (_rl_completion_prefix_display_length): Move
3831 declaration later.
3832 (gdb_fnprint): Revert.
3833 (gdb_display_match_list_1): Likewise.
3834 * cli/cli-style.c (completion_prefix_style)
3835 (completion_difference_style, completion_suffix_style): Remove.
3836 (_initialize_cli_style): Revert.
3837 * cli/cli-style.h (completion_prefix_style)
3838 (completion_difference_style, completion_suffix_style): Don't
3839 declare.
3840
e08bd6c5
PA
38412020-05-24 Pedro Alves <palves@redhat.com>
3842
3843 * symtab.c (completion_list_add_name): Return boolean indication
3844 of whether the symbol matched.
3845 (completion_list_add_symbol): Don't try to remove C++ aliases if
3846 the symbol didn't match in the first place.
3847 * symtab.h (completion_list_add_name): Return bool.
3848
ceacbf6e
SM
38492020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3852 type::field.
3853
26f16254
JB
38542020-05-23 Joel Brobecker <brobecker@adacore.com>
3855
3856 GDB 9.2 released.
3857
eca1f90c
TT
38582020-05-23 Tom Tromey <tom@tromey.com>
3859
3860 * NEWS: Add entry for completion styling.
3861 * completer.c (_rl_completion_prefix_display_length): Move
3862 declaration earlier.
3863 (gdb_fnprint): Use completion_style.
3864 (gdb_display_match_list_1): Likewise.
3865 * cli/cli-style.c (completion_prefix_style)
3866 (completion_difference_style, completion_suffix_style): New
3867 globals.
3868 (_initialize_cli_style): Register new globals.
3869 * cli/cli-style.h (completion_prefix_style)
3870 (completion_difference_style, completion_suffix_style): Declare.
3871
51e2cfa2
PA
38722020-05-23 Pedro Alves <palves@redhat.com>
3873
3874 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3875 (parse_escape): Use ISDIGIT instead of isdigit.
3876 (puts_debug): Use gdb_isprint instead of isprint.
3877 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3878 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3879 ISSPACE instead of isspace.
3880 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3881 instead of isspace.
3882 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3883 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3884 instead of isxdigit and ISDIGIT instead of isdigit.
3885
80fc5e77
SM
38862020-05-22 Simon Marchi <simon.marchi@efficios.com>
3887
3888 * gdbtypes.h (struct type) <field>: New method.
3889 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3890 or type::field.
3891
3cabb6b0
SM
38922020-05-22 Simon Marchi <simon.marchi@efficios.com>
3893
3894 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3895 (TYPE_FIELDS): Use type::fields. Change all call sites that
3896 modify the propery to use type::set_fields instead.
3897
1f704f76
SM
38982020-05-22 Simon Marchi <simon.marchi@efficios.com>
3899
3900 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3901 type::num_fields instead.
3902
5e33d5f4
SM
39032020-05-22 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3906 methods.
3907 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3908 that modify the number of fields to use type::set_num_fields
3909 instead.
3910
9392ebb3
TT
39112020-05-22 Tom Tromey <tromey@adacore.com>
3912
3913 * compile/compile-object-load.h (munmap_list_free): Don't
3914 declare.
3915
7c13f4e8
AB
39162020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3917
3918 * annotate.c (annotate_source_line): Update return type, add call
3919 to update current symtab and line.
3920 * annotate.h (annotate_source_line): Update return type, and
3921 extend header comment.
3922 * source.c (info_line_command): Check annotation_level before
3923 calling annotate_source_line.
3924 * stack.c (print_frame_info): If calling annotate_source_line
3925 returns true, then don't print any other source line information.
3926
aa370940
SM
39272020-05-21 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3930
84d53fa9
SM
39312020-05-21 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * coffread.c (patch_type): Remove NULL check before xfree.
3934 * corefile.c (set_gnutarget): Likewise.
3935 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3936 * exec.c (build_section_table): Likewise.
3937 * remote.c (remote_target::pass_signals): Likewise.
3938 * utils.c (n_spaces): Likewise.
3939 * cli/cli-script.c (document_command): Likewise.
3940 * i386-windows-tdep.c (core_process_module_section): Likewise.
3941 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3942
9d428aae
SM
39432020-05-20 Simon Marchi <simon.marchi@efficios.com>
3944
3945 * symfile.c (reread_symbols): Clear objfile's section_offsets
3946 vector and section indices, re-compute them by calling
3947 sym_offsets.
3948
250106a7
TT
39492020-05-20 Tom Tromey <tromey@adacore.com>
3950
3951 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3952 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3953
9a0bacfb
TV
39542020-05-20 Tom de Vries <tdevries@suse.de>
3955
3956 PR symtab/25833
3957 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3958
7b958a48
AM
39592020-05-20 Alan Modra <amodra@gmail.com>
3960
3961 PR 25993
3962 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3963 bfd_set_filename.
3964 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3965 passed to bfd_set_filename.
3966 * symfile-mem.c (add_vsyscall_page): Likewise for string
3967 passed to symbol_file_add_from_memory.
3968 (symbol_file_add_from_memory): Make name param a const char* and
3969 don't strdup.
3970
c7e97679
AM
39712020-05-20 Alan Modra <amodra@gmail.com>
3972
3973 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3974 rather than accessing bfd->filename directly.
3975 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3976 and use bfd_section_name.
3977 * dwarf2/frame.c (decode_frame_entry): Likewise.
3978 * exec.c (exec_set_section_address): Likewise.
3979 * solib-aix.c (solib_aix_bfd_open): Likewise.
3980 * stap-probe.c (get_stap_base_address): Likewise.
3981 * symfile.c (reread_symbols): Likewise.
3982
563c591b
TT
39832020-05-19 Tom Tromey <tromey@adacore.com>
3984
3985 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3986
f408d82c
SM
39872020-05-19 Simon Marchi <simon.marchi@efficios.com>
3988
3989 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3990
98c59b52
PA
39912020-05-19 Pedro Alves <palves@redhat.com>
3992
3993 * NEWS (set exec-file-mismatch): Adjust entry.
3994 * exec.c: Include "build-id.h".
3995 (validate_exec_file): Try to match build IDs instead of filenames.
3996 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3997 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3998 and pass down 'warn_if_slow'.
3999 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4000 gdb_bfd_open_closure to pass it down.
4001 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4002
4111f652
PA
40032020-05-19 Pedro Alves <palves@redhat.com>
4004
4005 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4006 * target.c (target_fileio_open_1): Rename to target_fileio_open
4007 and make extern. Use bool.
4008 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4009 (target_fileio_read_alloc_1): Adjust.
4010 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4011 (target_fileio_open_warn_if_slow): Delete declaration.
4012
ad80db5b
PA
40132020-05-19 Pedro Alves <palves@redhat.com>
4014
4015 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4016 Adjust all callers.
4017
1d6ce4d3
YS
40182020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4019
4020 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4021 whether disp is negative.
4022
9005fbbb
SM
40232020-05-19 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * symfile.h (struct symfile_segment_data)
4026 <~symfile_segment_data>: Remove.
4027 <segment_info>: Change to std::vector.
4028 * symfile.c (default_symfile_segments): Update.
4029 * elfread.c (elf_symfile_segments): Update.
4030
68b888ff
SM
40312020-05-19 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4034 <segments>: New.
4035 <segment_bases, segment_sizes>: Remove.
4036 * symfile.c (default_symfile_segments): Update.
4037 * elfread.c (elf_symfile_segments): Update.
4038 * remote.c (remote_target::get_offsets): Update.
4039 * solib-target.c (solib_target_relocate_section_addresses):
4040 Update.
4041
62982abd
SM
40422020-05-19 Simon Marchi <simon.marchi@efficios.com>
4043
4044 * symfile.h (struct symfile_segment_data): Initialize fields.
4045 <~symfile_segment_data>: Add.
4046 (symfile_segment_data_up): New.
4047 (struct sym_fns) <sym_segments>: Return a
4048 symfile_segment_data_up.
4049 (default_symfile_segments): Return a symfile_segment_data_up.
4050 (free_symfile_segment_data): Remove.
4051 (get_symfile_segment_data): Return a symfile_segment_data_up.
4052 * symfile.c (default_symfile_segments): Likewise.
4053 (get_symfile_segment_data): Likewise.
4054 (free_symfile_segment_data): Remove.
4055 (symfile_find_segment_sections): Update.
4056 * elfread.c (elf_symfile_segments): Return a
4057 symfile_segment_data_up.
4058 * remote.c (remote_target::get_offsets): Update.
4059 * solib-target.c (solib_target_relocate_section_addresses):
4060 Update.
4061 * symfile-debug.c (debug_sym_segments): Return a
4062 symfile_segment_data_up.
4063
7f204339
RO
40642020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4065
e52a0f1b
RO
4066 PR build/25981
4067 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4068 Hardcode register numbers.
4069
7f204339
RO
4070 PR build/25981
4071 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4072 procfs_find_LDT_entry): Remove.
4073 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4074 procfs_find_LDT_entry): Remove.
4075 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4076 Remove.
4077
7f32a4d5
PA
40782020-05-17 Pedro Alves <palves@redhat.com>
4079 Andrew Burgess <andrew.burgess@embecosm.com>
4080 Keno Fischer <keno@juliacomputing.com>
4081
4082 PR gdb/25741
4083 * breakpoint.c (build_target_condition_list): Update comments.
4084 (build_target_command_list): Update comments and skip matching
4085 locations.
4086 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4087 a separate function. Simplify "set breakpoint auto-hw off"
4088 handling.
4089 (insert_breakpoints): Update comment.
4090 (tracepoint_locations_match): New parameter. For breakpoints,
4091 compare location types too, if the caller wants to.
4092 (handle_automatic_hardware_breakpoints): New functions.
4093 (bp_location_is_less_than): Also sort by location type and
4094 hardware breakpoint length.
4095 (update_global_location_list): Handle "set breakpoint auto-hw on"
4096 here.
4097 (update_breakpoint_locations): Ask breakpoint_locations_match to
4098 ignore location types.
4099
7d93a1e0
SM
41002020-05-16 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4103 type::name instead.
4104
d0e39ea2
SM
41052020-05-16 Simon Marchi <simon.marchi@efficios.com>
4106
4107 * gdbtypes.h (struct type) <name, set_name>: New methods.
4108 (TYPE_CODE): Use type::name. Change all call sites used to set
4109 the name to use type::set_name instead.
4110
2dab0c7b
TT
41112020-05-16 Tom Tromey <tom@tromey.com>
4112
4113 * top.c (quit_force): Update.
4114 * infrun.c (handle_no_resumed): Update.
4115 * top.h (all_uis): New function.
4116 (ALL_UIS): Remove.
4117
59f7bd8d
SM
41182020-05-16 Simon Marchi <simon.marchi@efficios.com>
4119
4120 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4121
9bf058f0
PA
41222020-05-16 Pedro Alves <palves@redhat.com>
4123
4124 * ia64-linux-nat.c
4125 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4126 Declare method.
4127 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4128
8f86ae1a
SM
41292020-05-15 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4132 (sparc64_adi_info): Likewise.
4133
d6bc0792
TT
41342020-05-15 Tom Tromey <tom@tromey.com>
4135
4136 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4137 block_objfile.
4138 (lookup_objfile_from_block): Remove.
4139 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4140 (lookup_global_symbol): Use block_objfile.
4141 * symtab.h (lookup_objfile_from_block): Don't declare.
4142 * printcmd.c (clear_dangling_display_expressions): Use
4143 block_objfile.
4144 * parse.c (operator_check_standard): Use block_objfile.
4145
8c14c3a3
TT
41462020-05-15 Tom Tromey <tom@tromey.com>
4147
4148 * language.c (language_alloc_type_symbol): Set
4149 SYMBOL_SECTION.
4150 * symtab.c (initialize_objfile_symbol): Remove.
4151 (allocate_symbol): Remove.
4152 (allocate_template_symbol): Remove.
4153 * dwarf2/read.c (fixup_go_packaging): Use "new".
4154 (new_symbol): Use "new".
4155 (read_variable): Don't call initialize_objfile_symbol. Use
4156 "new".
4157 (read_func_scope): Use "new".
4158 * xcoffread.c (process_xcoff_symbol): Don't call
4159 initialize_objfile_symbol.
4160 (SYMBOL_DUP): Remove.
4161 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4162 "new".
4163 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4164 (allocate_template_symbol): Don't declare.
4165 (struct symbol): Add copy constructor. Change defaults.
4166 * jit.c (finalize_symtab): Use "new".
4167 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4168 Use "new".
4169 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4170 (common_block_end): Use "new".
4171 * mdebugread.c (parse_symbol): Use "new".
4172 (new_symbol): Likewise.
4173
5b4a1a8d
PW
41742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4175
4176 * NEWS: Mention changes to help and apropos.
4177
57b4f16e
PW
41782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4179
4180 * command.h (enum command_class): Improve comments, document
4181 that class_alias is for user-defined aliases, give the class
4182 name for each class, remove unused class_xdb.
4183 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4184 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4185 by a precise class.
4186 * infcmd.c (_initialize_infcmd): Likewise.
4187 * reverse.c (_initialize_reverse): Likewise.
4188 * stack.c (_initialize_stack): Likewise.
4189 * symfile.c (_initialize_symfile): Likewise.
4190 * tracepoint.c (_initialize_tracepoint): Likewise.
4191
7c05caf7
PW
41922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4193
4194 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4195 when their aliased command is traversed.
4196 (help_cmd): Add fput_command_names_styled call to
4197 output command name and aliases when command has an alias.
4198
3b3aaacb
PW
41992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4200
4201 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4202 * cli/cli-decode.c (help_cmd_list): Declare as static,
4203 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4204 a command together with the command.
4205 (fput_command_name_styled, fput_command_names_styled): New functions.
4206 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4207 fput_command_name_styled.
4208 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4209 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4210
7aa1b46f
PW
42112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4212
4213 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4214 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4215 * command.h (cmd_show_list): Likewise.
4216 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4217 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4218
89bcba74
PW
42192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4220
4221 * unittests/command-def-selftests.c (traverse_command_structure):
4222 Verify all commands of a list have the same prefix command and
4223 that only the top cmdlist commands have a null prefix.
4224
3f4d92eb
PW
42252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4226
4227 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4228 as prefix, not one of its aliases.
4229 (set_cmd_prefix): Remove.
4230 (do_add_cmd): Centralize the setting of the prefix of a command, when
4231 command is defined after its full chain of prefix commands.
4232 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4233 (add_setshow_cmd_full): Likewise.
4234 (update_prefix_field_of_prefixed_commands): New function.
4235 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4236 update_prefix_field_of_prefixed_commands.
4237 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4238 addresses of remote_set_cmdlist and remote_show_cmdlist given
4239 as argument, not the address of an argument.
4240 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4241 * gdb/remote.c (_initialize_remote): Likewise.
4242
0605465f
PW
42432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4244
4245 * cli/cli-cmds.c (alias_command): Check for an existing alias
4246 using lookup_cmd_composition, as valid_command_p is too strict
4247 and forbids aliases that are the prefix of an existing alias
4248 or command.
4249 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4250 command is properly recognised as a valid command.
4251
58e6ac70
PW
42522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4253
4254 * unittests/help-doc-selftests.c: Rename to
4255 unittests/command-def-selftests.c
4256 * unittests/command-def-selftests.c (help_doc_tests): Update some
4257 comments.
4258 (command_structure_tests, traverse_command_structure): New namespace
4259 and function.
4260 (command_structure_invariants_tests): New function.
4261 (_initialize_command_def_selftests) Renamed from
4262 _initialize_help_doc_selftests, register command_structure_invariants
4263 selftest.
4264
a7b9ceb8
PW
42652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4266
4267 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4268 an alias of 'show'.
4269
b2188a06
JB
42702020-05-15 Joel Brobecker <brobecker@adacore.com>
4271
4272 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4273 ada_is_fixed_point_type. Update all callers.
4274 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4275 all callers.
4276 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4277 Update all callers.
4278 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4279 print_fixed_point_type. Update all callers.
4280 * ada-valprint.c (ada_value_print_num): Replace call to
4281 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4282
a51951c2
KB
42832020-05-14 Kevin Buettner <kevinb@redhat.com>
4284
4285 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4286 processors.
4287 (cpu_supports_bts): Add CV_AMD case.
4288
29d6859f
LM
42892020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4290 Simon Marchi <simon.marchi@efficios.com>
4291
4292 * infrun.c (stop_all_threads): Collect multiple wait events at
4293 each pass.
4294
78134374
SM
42952020-05-14 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4298 type::code instead.
4299
67607e24
SM
43002020-05-14 Simon Marchi <simon.marchi@efficios.com>
4301
4302 * gdbtypes.h (struct type) <code, set_code>: New methods.
4303 (TYPE_CODE): Use type::code. Change all call sites used to set
4304 the code to use type::set_code instead.
4305
a05575d3
TBA
43062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4307 Tom de Vries <tdevries@suse.de>
4308 Pedro Alves <palves@redhat.com>
4309
4310 PR threads/25478
4311 * infrun.c (stop_all_threads): Do NOT ignore
4312 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4313 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4314 received.
4315 (handle_no_resumed): Remove code handling a live inferior with no
4316 threads.
4317 * remote.c (has_single_non_exited_thread): New.
4318 (remote_target::update_thread_list): Do not delete a thread if is
4319 the last thread of the process.
4320 * thread.c (thread_select): Call delete_exited_threads instead of
4321 prune_threads.
4322
6ad82919
TBA
43232020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4324
4325 * infrun.c (stop_all_threads): Enable/disable thread events of all
4326 targets. Move a debug message denoting the end of the function
4327 into the SCOPED_EXIT block.
4328
d890404b
TBA
43292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4330
4331 * process-stratum-target.h: Include <set>.
4332 (all_non_exited_process_targets, switch_to_target_no_thread): New
4333 function declarations.
4334 * process-stratum-target.c (all_non_exited_process_targets)
4335 (switch_to_target_no_thread): New function implementations.
4336
293b3ebc
TBA
43372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4338
4339 * infrun.c (handle_inferior_event): Extract out a piece of code
4340 into...
4341 (mark_non_executing_threads): ...this new function.
4342
7ca9b62a
TBA
43432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4344
4345 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4346 use.
4347
fc75c28b
TBA
43482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4349
4350 * regcache.c (regcache_read_pc_protected): New function
4351 implementation that returns 0 if the PC cannot read via
4352 'regcache_read_pc'.
4353 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4354 instead of 'regcache_read_pc'.
4355 (keep_going_pass_signal): Ditto.
4356
a89febbd
TT
43572020-05-13 Tom Tromey <tromey@adacore.com>
4358
4359 * ada-lang.c (align_value): Remove.
4360 (ada_template_to_fixed_record_type_1): Use align_up.
4361
f7e23710
TBA
43622020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4363
4364 * async-event.c: Update the copyright year.
4365 * async-event.h: Update the copyright year.
4366
02ff80c2
SM
43672020-05-12 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * objfiles.h (is_addr_in_objfile,
4370 shared_objfile_contains_address_p): Return bool.
4371 * objfile.c (is_addr_in_objfile,
4372 shared_objfile_contains_address_p): Return bool.
4373
4fd6c7e8
TT
43742020-05-11 Tom Tromey <tromey@adacore.com>
4375
4376 * cli/cli-cmds.c (info_command): Restore.
4377 (_initialize_cli_cmds): Use add_prefix_command for "info".
4378 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4379
5eb68a39
TT
43802020-05-11 Tom Tromey <tromey@adacore.com>
4381
4382 * ada-lang.c (ada_value_primitive_field): Now public.
4383 * ada-lang.h (ada_value_primitive_field): Declare.
4384 * ada-valprint.c (print_field_values): Use
4385 ada_value_primitive_field for wrapper fields.
4386
7666722f
TV
43872020-05-11 Tom de Vries <tdevries@suse.de>
4388
4389 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4390 MODULE_DOMAIN.
4391
3ee6bb11
TV
43922020-05-11 Tom de Vries <tdevries@suse.de>
4393
4394 PR symtab/25941
4395 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4396 with length 0, if not gdb-produced.
4397 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4398
43434996
TV
43992020-05-09 Tom de Vries <tdevries@suse.de>
4400
4401 PR gdb/25955
4402 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4403 calculation.
4404
2f78cffc
TT
44052020-05-09 Tom Tromey <tom@tromey.com>
4406
4407 * top.c (server_command): Now bool.
4408 * top.h (server_command): Now bool.
4409
4f7bc5ed
TT
44102020-05-08 Tom Tromey <tromey@adacore.com>
4411
4412 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4413 already being processed.
4414
8be4b118
TT
44152020-05-08 Tom Tromey <tom@tromey.com>
4416
4417 * printcmd.c (struct display) <next>: Remove.
4418 <display>: New constructor.
4419 <exp_string>: Now a std::string.
4420 <enabled_p>: Now a bool.
4421 (display_number): Move definition earlier.
4422 (displays): Rename from display_chain. Now a std::vector.
4423 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4424 (display_command): Update.
4425 (do_one_display, disable_display)
4426 (enable_disable_display_command, do_enable_disable_display):
4427 Update.
4428 (free_display): Remove.
4429 (clear_displays): Rewrite.
4430 (delete_display): Update.
4431 (map_display_numbers): Use function_view. Remove "data"
4432 parameter. Update.
4433 (do_delete_display): Remove.
4434 (undisplay_command): Update.
4435 (do_one_display, do_displays, disable_display)
4436 (info_display_command): Update.
4437 (do_enable_disable_display): Remove.
4438 (enable_disable_display_command)
4439 (clear_dangling_display_expressions): Update.
4440
94c93c35
TT
44412020-05-08 Tom Tromey <tom@tromey.com>
4442
4443 * symtab.c (set_symbol_cache_size)
4444 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4445 (maintenance_print_symbol_cache_statistics): Update.
4446 * symmisc.c (print_symbol_bcache_statistics)
4447 (print_objfile_statistics, maintenance_print_objfiles)
4448 (maintenance_info_symtabs, maintenance_check_symtabs)
4449 (maintenance_expand_symtabs, maintenance_info_line_tables):
4450 Update.
4451 * symfile-debug.c (set_debug_symfile): Update.
4452 * source.c (forget_cached_source_info): Update.
4453 * python/python.c (gdbpy_progspaces): Update.
4454 * psymtab.c (maintenance_info_psymtabs): Update.
4455 * probe.c (parse_probes): Update.
4456 * linespec.c (iterate_over_all_matching_symtabs)
4457 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4458 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4459 * exec.c (exec_target::close): Update.
4460 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4461 * breakpoint.c (print_one_breakpoint_location)
4462 (create_longjmp_master_breakpoint)
4463 (create_std_terminate_master_breakpoint): Update.
4464 * progspace.c (program_spaces): Now a std::vector.
4465 (maybe_new_address_space): Update.
4466 (add_program_space): Remove.
4467 (program_space::program_space): Update.
4468 (remove_program_space): Update.
4469 (number_of_program_spaces): Remove.
4470 (print_program_space, update_address_spaces): Update.
4471 * progspace.h (program_spaces): Change type.
4472 (ALL_PSPACES): Remove.
4473 (number_of_program_spaces): Don't declare.
4474 (struct program_space) <next>: Remove.
4475
a1fd1ac9
TT
44762020-05-08 Tom Tromey <tom@tromey.com>
4477
4478 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4479 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4480 (enable_break): Update.
4481 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4482 (frv_fdpic_find_canonical_descriptor): Update.
4483 (frv_fetch_objfile_link_map): Update.
4484 * progspace.c (program_space::free_all_objfiles): Update.
4485 (program_space::solibs): New method.
4486 * progspace.h (struct program_space) <solibs>: New method.
4487 * solist.h (master_so_list): Don't declare.
4488 (ALL_SO_LIBS): Remove.
4489 * solib.h (so_list_head): Remove.
4490 (update_solib_list): Update comment.
4491 * solib.c (master_so_list): Remove.
4492 (solib_used, update_solib_list, solib_add)
4493 (info_sharedlibrary_command, clear_solib)
4494 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4495
38eae084
TT
44962020-05-08 Tom Tromey <tom@tromey.com>
4497
4498 * extension.c (extension_languages): Now a std::array.
4499 (ALL_EXTENSION_LANGUAGES): Remove.
4500 (get_ext_lang_defn, get_ext_lang_of_file)
4501 (eval_ext_lang_from_control_command): Update.
4502 (finish_ext_lang_initialization)
4503 (auto_load_ext_lang_scripts_for_objfile)
4504 (ext_lang_type_printers::ext_lang_type_printers)
4505 (apply_ext_lang_type_printers)
4506 (ext_lang_type_printers::~ext_lang_type_printers)
4507 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4508 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4509 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4510 (get_matching_xmethod_workers, ext_lang_colorize)
4511 (ext_lang_before_prompt): Update.
4512 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4513
596dc4ad
TT
45142020-05-08 Tom Tromey <tom@tromey.com>
4515
4516 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4517 overload.
4518 <swap_string, m_string>: Remove.
4519 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4520 Update.
4521 * stabsread.c (define_symbol, read_type): Update.
4522 * linespec.c (find_linespec_symbols): Update.
4523 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4524 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4525 * dbxread.c (read_dbx_symtab): Update.
4526 * cp-support.h (cp_canonicalize_string_full)
4527 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4528 Return unique_xmalloc_ptr.
4529 * cp-support.c (inspect_type): Update.
4530 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4531 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4532 Likewise.
4533 * c-typeprint.c (print_name_maybe_canonical): Update.
4534 * break-catch-throw.c (check_status_exception_catchpoint):
4535 Update.
4536
bf4cb9be
TV
45372020-05-08 Tom de Vries <tdevries@suse.de>
4538
4539 * infrun.c (follow_fork): Copy current_line and current_symtab to
4540 child thread.
4541
a1b68f28
SM
45422020-05-07 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * async-event.c (struct async_signal_handler, struct
4545 async_event_handler): Reformat, remove typedef.
4546
98d48915
SM
45472020-05-07 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4550 access thistype->main_type->dyn_prop_list directly.
4551
7aa91313
SM
45522020-05-07 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4555 (remove_dyn_prop): Remove. Update all users to use
4556 type::remove_dyn_prop.
4557 * gdbtypes.c (remove_dyn_prop): Rename to...
4558 (type::remove_dyn_prop): ... this.
4559
5c54719c
SM
45602020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4561
4562 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4563 (add_dyn_prop): Remove. Update all users to use
4564 type::add_dyn_prop.
4565 * gdbtypes.c (add_dyn_prop): Rename to...
4566 (type::add_dyn_prop): ... this.
4567
24e99c6c
SM
45682020-05-07 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4571 (get_dyn_prop): Remove. Update all users to use
4572 type::dyn_prop.
4573 * gdbtypes.c (get_dyn_prop): Rename to...
4574 (type::dyn_prop): ... this.
4575
0d4bf016
SM
45762020-05-06 Simon Marchi <simon.marchi@efficios.com>
4577
4578 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4579
ac4a4f1c
SM
45802020-05-06 Simon Marchi <simon.marchi@efficios.com>
4581
4582 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4583 instruction, skip it if it's there.
4584
a3bbacc1
SM
45852020-05-05 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4588
c3236f84
SM
45892020-05-04 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4592 * gdbtypes.c (recursive_dump_type): Remove use of
4593 TYPE_INCOMPLETE.
4594
3b6acaee
TT
45952020-05-03 Tom Tromey <tom@tromey.com>
4596
4597 * breakpoint.c (catch_command, tcatch_command): Remove.
4598 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4599 add_show_prefix_cmd.
4600 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4601 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4602 Remove.
4603 (add_internal_problem_command): Use add_basic_prefix_cmd,
4604 add_show_prefix_cmd.
4605 * mips-tdep.c (set_mipsfpu_command): Remove.
4606 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4607 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4608 (_initialize_index_cache): Use add_basic_prefix_cmd.
4609 * memattr.c (dummy_cmd): Remove.
4610 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4611 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4612 (_initialize_tui_win): Use add_basic_prefix_cmd,
4613 add_show_prefix_cmd.
4614 * cli/cli-logging.c (set_logging_command): Remove.
4615 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4616 add_show_prefix_cmd.
4617 (show_logging_command): Remove.
4618 * target.c (target_command): Remove.
4619 (add_target): Use add_basic_prefix_cmd.
4620
a51119cd
HD
46212020-05-02 Hannes Domani <ssbssa@yahoo.de>
4622
4623 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4624
652fc23a 46252020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4626
652fc23a
PW
4627 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4628 info_command.
4629
117539e6
KR
46302020-04-30 Kamil Rytarowski <n54@gmx.com>
4631
4632 * nbsd-nat.c (nbsd_enable_proc_events)
4633 (nbsd_nat_target::post_startup_inferior): Add.
4634 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4635 (nbsd_nat_target::update_thread_list): Rewrite.
4636 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4637 "PTRACE_LWP_CREATE".
4638 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4639
102e38eb 46402020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4641
102e38eb
PW
4642 * stack.c (_initialize_stack): Remove duplicated creation
4643 of "frame" command and "f" alias.
4644
ee9d1e5f
HD
46452020-04-30 Hannes Domani <ssbssa@yahoo.de>
4646
4647 PR gdb/18706
4648 * gdbtypes.c (check_typedef): Calculate size of array of
4649 stubbed type.
4650
627c7fb8
HD
46512020-04-30 Hannes Domani <ssbssa@yahoo.de>
4652
4653 PR gdb/15559
4654 * i386-tdep.c (i386_push_dummy_call): Call
4655 i386_thiscall_push_dummy_call.
4656 (i386_thiscall_push_dummy_call): New function.
4657 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4658 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4659 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4660
ffc2844e
SM
46612020-04-29 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * gdbarch.sh (do_read): Add shellcheck disable directive for
4664 warning SC2162.
4665
1207375d
SM
46662020-04-29 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4669 "referenced but not assigned" warning.
4670
9fdb2916
SM
46712020-04-29 Simon Marchi <simon.marchi@efficios.com>
4672
4673 * gdbarch.sh: Remove code that sets fallbackdefault.
4674
759cea5e
SM
46752020-04-29 Simon Marchi <simon.marchi@efficios.com>
4676
4677 * gdbarch.sh: Use shell operators && and || instead of
4678 -a and -o.
4679
cb02ab24
SM
46802020-04-29 Simon Marchi <simon.marchi@efficios.com>
4681
4682 * gdbarch.sh: Use $(...) instead of `...`.
4683
a6fc5ffc
SM
46842020-04-29 Simon Marchi <simon.marchi@efficios.com>
4685
4686 * gdbarch.sh: Use double quotes around variables.
4687
8d113d13
SM
46882020-04-29 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * gdbarch.sh: Use %s with printf, instead of variables in the
4691 format string.
4692
ed6acedd
TT
46932020-04-29 Tom Tromey <tromey@adacore.com>
4694
4695 PR ada/25875:
4696 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4697 type fields here.
4698 (read_enumeration_type): Call
4699 update_enumeration_type_from_children later. Update comments.
4700 (process_enumeration_scope): Don't create type fields.
4701
b68b1b58
KR
47022020-04-29 Kamil Rytarowski <n54@gmx.com>
4703
4704 * nbsd-tdep.c: Include "xml-syscall.h".
4705 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4706
f94b2e03
KR
47072020-04-29 Kamil Rytarowski <n54@gmx.com>
4708
4709 * nbsd-nat.c: Include "sys/wait.h".
4710 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4711 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4712 (nbsd_nat_target::remove_exec_catchpoint)
4713 (nbsd_nat_target::set_syscall_catchpoint): Add.
4714 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4715 (nbsd_nat_target::insert_exec_catchpoint)
4716 (nbsd_nat_target::remove_exec_catchpoint)
4717 (nbsd_nat_target::set_syscall_catchpoint): Add.
4718 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4719 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4720 `nbsd_get_syscall_number'.
4721
fc49bc72
TT
47222020-04-29 Tom Tromey <tom@tromey.com>
4723
4724 * stack.c (print_block_frame_labels): Remove.
4725
d642b692
HD
47262020-04-29 Hannes Domani <ssbssa@yahoo.de>
4727
4728 PR gdb/17320
4729 * ada-valprint.c (val_print_packed_array_elements): Move array
4730 end bracket to new line.
4731 (ada_val_print_string): Remove extra spaces before first array
4732 element.
4733 * c-valprint.c (c_value_print_array): Likewise.
4734 * m2-valprint.c (m2_print_array_contents): Likewise.
4735 (m2_value_print_inner): Likewise.
4736 * p-valprint.c (pascal_value_print_inner): Likewise.
4737 * valprint.c (generic_val_print_array): Likewise.
4738 (value_print_array_elements): Move first array element and array
4739 end bracket to new line.
4740
ea90f227
TV
47412020-04-29 Tom de Vries <tdevries@suse.de>
4742
4743 PR symtab/25889
4744 * linespec.c (find_method): Fix ix calculation.
4745
4498ef4f
KR
47462020-04-28 Kamil Rytarowski <n54@gmx.com>
4747
4748 * syscalls/update-netbsd.sh: New file.
4749 * syscalls/netbsd.xml: Regenerate.
4750 * data-directory/Makefile.in: Register `netbsd.xml' in
4751 `SYSCALLS_FILES'.
4752
a55e30b5
SM
47532020-04-28 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * syscalls/update-freebsd.sh: Add double quotes.
4756
2b2fbab8
TT
47572020-04-28 Tom Tromey <tom@tromey.com>
4758
4759 * NEWS: Update.
4760 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4761 (cmdpy_init): Allow class_tui.
4762
a65189c9
TV
47632020-04-28 Mark Williams <mark@myosotissp.com>
4764
4765 PR gdb/24480
4766 * dwarf2read.c: Add missing assingments to list_in_scope when
4767 start_symtab was already called.
4768
1b95cdb7
SM
47692020-04-28 Simon Marchi <simon.marchi@efficios.com>
4770
4771 PR gdb/25881
4772 * dwarf2/read.c (offset_map_type): Use
4773 gdb:hash_enum<sect_offset> as hash function.
4774
15cd93d0
TV
47752020-04-28 Tom de Vries <tdevries@suse.de>
4776
4777 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4778 with DW_AT_signature.
4779
1eb39914
SM
47802020-04-27 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * configure.ac: Remove check for fs_base/gs_base in
4783 user_regs_struct.
4784 * configure: Re-generate.
4785 * config.in: Re-generate.
4786 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4787 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4788 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4789
991a3e2e
LM
47902020-04-27 Luis Machado <luis.machado@linaro.org>
4791
4792 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4793 problematic inline frame unwinding situation.
4794 * frame.c (frame_id_computed_p): New function.
4795 * frame.h (frame_id_computed_p): New prototype.
4796
361ba0e8
TT
47972020-04-26 Tom Tromey <tom@tromey.com>
4798
4799 * command.h (enum command_class) <class_pseudo>: Remove.
4800
bc3609fd
PW
48012020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4802
4803 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4804 and whitespace.
4805
b9771db7
KR
48062020-04-25 Kamil Rytarowski <n54@gmx.com>
4807
ec16513e
SM
4808 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4809 `PT_GET_PROCESS_STATE' block.
b9771db7 4810
7151c1af
TT
48112020-04-24 Tom Tromey <tom@tromey.com>
4812
4813 * symtab.h (symbol_get_demangled_name): Don't declare.
4814 * symtab.c (symbol_get_demangled_name): Remove.
4815 (general_symbol_info::natural_name)
4816 (general_symbol_info::demangled_name): Update.
4817
906bb4c5
TT
48182020-04-24 Tom Tromey <tom@tromey.com>
4819
4820 PR rust/25025:
4821 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4822
bcfe6157
TT
48232020-04-24 Tom Tromey <tom@tromey.com>
4824
4825 PR symtab/12707:
4826 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4827 exists.
4828 (new_symbol): Likewise.
4829 * compile/compile-object-load.c (get_out_value_type): Use
4830 symbol_matches_search_name.
4831
f049a313
TT
48322020-04-24 Tom Tromey <tom@tromey.com>
4833
4834 * dwarf2/read.c (add_partial_symbol): Do not call
4835 compute_and_set_names.
4836
76e288d1
TT
48372020-04-24 Tom Tromey <tom@tromey.com>
4838
4839 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4840 overload.
4841
2467f4f6
TT
48422020-04-24 Tom Tromey <tom@tromey.com>
4843
4844 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4845 (add_psymbol_to_list): New overload. Make old overload call new
4846 one.
4847 * psympriv.h (add_psymbol_to_list): New overload.
4848
e61108c9
TT
48492020-04-24 Tom Tromey <tom@tromey.com>
4850
4851 * dwarf2/read.c (partial_die_info::read) <case
4852 DW_AT_linkage_name>: Use value_as_string.
4853 (dwarf2_string_attr): Use value_as_string.
4854 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4855 method.
4856 * dwarf2/attribute.c (attribute::value_as_string): New method.
4857
8c87a452
TT
48582020-04-24 Tom Tromey <tom@tromey.com>
4859
4860 * symtab.c (general_symbol_info::natural_name)
4861 (general_symbol_info::demangled_name): Check for language_rust.
4862
787de330
TT
48632020-04-24 Tom Tromey <tom@tromey.com>
4864
4865 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4866 (dwarf2_physname): ... from here.
4867 (partial_die_info::read): Add Rust "{" hack.
4868
ff985671
TT
48692020-04-24 Tom Tromey <tom@tromey.com>
4870
4871 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4872 method.
4873 (symbol_set_demangled_name): Don't declare.
4874 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4875 symbol_set_demangled_name.
4876 (general_symbol_info::set_language)
4877 (general_symbol_info::compute_and_set_names): Update.
4878 * minsyms.c (minimal_symbol_reader::install): Update.
4879 * dwarf2/read.c (new_symbol): Update.
4880
1acda803
TT
48812020-04-24 Tom Tromey <tromey@adacore.com>
4882
4883 PR python/23662:
4884 * python/py-type.c (convert_field): Handle
4885 FIELD_LOC_KIND_DWARF_BLOCK.
4886 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4887 (typy_get_dynamic): Nw function.
4888 (type_object_getset): Add "dynamic".
4889 * NEWS: Add entry.
4890
d656f129
TT
48912020-04-24 Tom Tromey <tromey@adacore.com>
4892
4893 * ada-typeprint.c (print_choices, print_variant_part)
4894 (print_record_field_types_dynamic): New functions.
4895 (print_record_field_types): Use print_record_field_types_dynamic.
4896
7d79de9a
TT
48972020-04-24 Tom Tromey <tromey@adacore.com>
4898
4899 * dwarf2/read.c (handle_data_member_location): New overload.
4900 (dwarf2_add_field): Use it.
4901 (decode_locdesc): Add "computed" parameter. Update comment.
4902 * gdbtypes.c (is_dynamic_type_internal): Also look for
4903 FIELD_LOC_KIND_DWARF_BLOCK.
4904 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4905 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4906 virtual base classes.
4907 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4908 FIELD_LOC_KIND_DWARF_BLOCK.
4909
f8e89861
TT
49102020-04-24 Tom Tromey <tromey@adacore.com>
4911
4912 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4913 * gdbtypes.c (is_dynamic_type_internal): Check
4914 TYPE_HAS_DYNAMIC_LENGTH.
4915 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4916 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4917 New macros.
4918 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4919 constant.
4920
9c6a1327
TT
49212020-04-24 Tom Tromey <tromey@adacore.com>
4922
4923 * dwarf2/read.c (struct variant_field): Rewrite.
4924 (struct variant_part_builder): New.
4925 (struct nextfield): Remove "variant" field. Add "offset".
4926 (struct field_info): Add "current_variant_part" and
4927 "variant_parts".
4928 (alloc_discriminant_info): Remove.
4929 (alloc_rust_variant): New function.
4930 (quirk_rust_enum): Update.
4931 (dwarf2_add_field): Set "offset" member. Don't handle
4932 DW_TAG_variant_part.
4933 (offset_map_type): New typedef.
4934 (convert_variant_range, create_one_variant)
4935 (create_one_variant_part, create_variant_parts)
4936 (add_variant_property): New functions.
4937 (dwarf2_attach_fields_to_type): Call add_variant_property.
4938 (read_structure_type): Don't handle DW_TAG_variant_part.
4939 (handle_variant_part, handle_variant): New functions.
4940 (handle_struct_member_die): Use them.
4941 (process_structure_scope): Don't handle variant parts.
4942 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4943 (struct discriminant_info): Remove.
4944 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4945 (struct main_type) <flag_discriminated_union>: Remove.
4946 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4947 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4948 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4949 Update.
4950 * valops.c (value_union_variant): Remove.
4951 * value.h (value_union_variant): Don't declare.
4952
b249d2c2
TT
49532020-04-24 Tom Tromey <tromey@adacore.com>
4954
4955 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4956 (ada_value_primitive_packed_val): Update.
4957 * ada-valprint.c (ada_value_print_1): Update.
4958 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4959 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4960 just an address. Use evaluate_for_locexpr_baton.
4961 (dwarf2_evaluate_property): Update.
4962 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4963 array_view.
4964 * findvar.c (default_read_var_value): Update.
4965 * gdbtypes.c (compute_variant_fields_inner)
4966 (resolve_dynamic_type_internal): Update.
4967 (resolve_dynamic_type): Change type of valaddr parameter.
4968 * gdbtypes.h (resolve_dynamic_type): Update.
4969 * valarith.c (value_subscripted_rvalue): Update.
4970 * value.c (value_from_contents_and_address): Update.
4971
61122aa9
TT
49722020-04-24 Tom Tromey <tromey@adacore.com>
4973
4974 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4975 "push_initial_value" parameter.
4976 (dwarf2_evaluate_property): Likewise.
4977 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4978
ef83a141
TT
49792020-04-24 Tom Tromey <tromey@adacore.com>
4980
4981 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4982 (variant::matches, compute_variant_fields_recurse)
4983 (compute_variant_fields_inner, compute_variant_fields): New
4984 functions.
4985 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4986 Use resolved_type after type is made.
4987 (operator==): Add new cases.
4988 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4989 (struct discriminant_range, struct variant, struct variant_part):
4990 New.
4991 (union dynamic_prop_data) <variant_parts, original_type>: New
4992 members.
4993 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4994 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4995 constants.
4996 * value.c (unpack_bits_as_long): Now public.
4997 * value.h (unpack_bits_as_long): Declare.
4998
675127ec
TT
49992020-04-24 Tom Tromey <tromey@adacore.com>
5000
5001 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5002 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5003
9852ceef
HD
50042020-04-24 Hannes Domani <ssbssa@yahoo.de>
5005
5006 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5007
7632c6ce
KR
50082020-04-24 Kamil Rytarowski <n54@gmx.com>
5009
5010 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5011 (remove_fork_catchpoint, post_startup_inferior)
5012 (post_attach): Move...
5013 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5014 (remove_fork_catchpoint, post_startup_inferior)
5015 (post_attach): ...here.
5016 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5017 (remove_fork_catchpoint, post_startup_inferior)
5018 (post_attach): Move...
5019 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5020 (remove_fork_catchpoint, post_startup_inferior)
5021 (post_attach): ...here.
5022
7be2bb4f
TT
50232020-04-24 Tom Tromey <tromey@adacore.com>
5024
5025 * nat/windows-nat.h (struct windows_thread_info)
5026 <pc_adjusted>: New member.
5027 * windows-nat.c (windows_fetch_one_register): Check
5028 pc_adjusted.
5029 (windows_nat_target::get_windows_debug_event)
5030 (windows_nat_target::wait): Set pc_adjusted.
5031
f80cb3b4
TV
50322020-04-24 Tom de Vries <tdevries@suse.de>
5033
5034 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5035 Run gdb-add-index inside temp dir.
5036
29514b87
TT
50372020-04-23 Tom Tromey <tromey@adacore.com>
5038
5039 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5040 in loop.
5041
5939967b
LM
50422020-04-23 Luis Machado <luis.machado@linaro.org>
5043
5044 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5045 get_frame_register instead of gdbarch_unwind_pc.
5046
70bc38f5
TV
50472020-04-23 Tom de Vries <tdevries@suse.de>
5048
5049 * symtab.c (lookup_global_symbol): Prefer def over decl.
5050
de82891c
TV
50512020-04-23 Tom de Vries <tdevries@suse.de>
5052
5053 PR symtab/25807
5054 * block.c (best_symbol, better_symbol): Promote to external.
5055 * block.h (best_symbol, better_symbol): Declare.
5056 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5057 decl.
5058
ecc6c606
TT
50592020-04-23 Tom Tromey <tromey@adacore.com>
5060
5061 PR ada/25837:
5062 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5063 "const char *", not a "const std::string &".
5064 <name_and_matcher::operator==>: Update.
5065 * unittests/lookup_name_info-selftests.c: Change type of
5066 "result".
5067
740480b8
TT
50682020-04-23 Tom Tromey <tom@tromey.com>
5069
5070 * inferior.h (iterate_over_inferiors): Don't declare.
5071 * inferior.c (iterate_over_inferiors): Remove.
5072 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5073 Remove.
5074 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5075 use iterate_over_inferiors.
5076 (darwin_resume_inferior_it)
5077 (struct resume_inferior_threads_param)
5078 (darwin_resume_inferior_threads_it): Remove.
5079 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5080
ae3ab1f0
TV
50812020-04-23 Tom de Vries <tdevries@suse.de>
5082
5083 * blockframe.c (find_pc_partial_function): Use
5084 find_pc_sect_compunit_symtab rather than
5085 objfile->sf->qf->find_pc_sect_compunit_symtab.
5086
317d2668
TV
50872020-04-22 Tom de Vries <tdevries@suse.de>
5088
5089 PR symtab/25764
5090 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5091 in psymtabs.
5092
eea9e357
TV
50932020-04-22 Tom de Vries <tdevries@suse.de>
5094
5095 PR symtab/25801
5096 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5097 symtabs.
5098
3d5afab3
TV
50992020-04-22 Tom de Vries <tdevries@suse.de>
5100
5101 PR symtab/25700
5102 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5103 CU if already created.
5104
d43b7a2d
TBA
51052020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5106
5107 * infrun.c (displaced_step_fixup): Switch to the event_thread
5108 before calling displaced_step_restore, not after.
5109
d89edf9b
MM
51102020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5111
5112 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5113 its inferior is not recorded by us.
5114 (record_btrace_target_open): Replace call to
5115 all_non_exited_threads () with call to current_inferior
5116 ()->non_exited_threads ().
5117 (record_btrace_target::stop_recording): Likewise.
5118 (record_btrace_target::close): Likewise.
5119 (record_btrace_target::wait): Likewise.
5120 (record_btrace_target::record_stop_replaying): Likewise.
5121
5897fd49
MM
51222020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5123
5124 * btrace.c (btrace_enable): Throw an error on double enables and
5125 when enabling recording fails.
5126 (btrace_disable): Throw an error if the thread is not recorded.
5127
1a476b6d
MM
51282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5129
5130 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5131 request if we do not have a thread_info.
5132
4778a5f8
TV
51332020-04-21 Tom de Vries <tdevries@suse.de>
5134
5135 PR gdb/25471
5136 * thread.c
5137 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5138 exception in get_frame_id.
5139
0fa7617d
TT
51402020-04-20 Tom Tromey <tromey@adacore.com>
5141
5142 * python/python.c (struct gdbpy_event): Mark move constructor as
5143 noexcept.
5144 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5145 constructor as noexcept.
5146 * completer.h (struct completion_result): Mark move constructor as
5147 noexcept.
5148 * completer.c (completion_result::completion_result): Use
5149 initialization style. Don't call reset_match_list.
5150
ad23bda0
MS
51512020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5152
5153 * MAINTAINERS (Write After Approval): Add myself.
5154
45e1f031
TT
51552020-04-18 Tom Tromey <tom@tromey.com>
5156
5157 * windows-tdep.c (init_w32_command_list)
5158 (w32_prefix_command_valid): Restore.
5159 (_initialize_windows_tdep): Call init_w32_command_list.
5160
08feed99
TT
51612020-04-18 Tom Tromey <tom@tromey.com>
5162
5163 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5164 * value.c (value_fn_field): Update.
5165 * valops.c (find_function_in_inferior)
5166 (value_allocate_space_in_inferior): Update.
5167 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5168 Update.
5169 * tui/tui-source.c (tui_source_window::set_contents): Update.
5170 * symtab.c (lookup_global_or_static_symbol)
5171 (find_function_start_sal_1, skip_prologue_sal)
5172 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5173 * symmisc.c (dump_msymbols, dump_symtab_1)
5174 (maintenance_print_one_line_table): Update.
5175 * symfile.c (init_entry_point_info, section_is_mapped)
5176 (list_overlays_command, simple_read_overlay_table)
5177 (simple_overlay_update_1): Update.
5178 * stap-probe.c (handle_stap_probe): Update.
5179 * stabsread.c (dbx_init_float_type, define_symbol)
5180 (read_one_struct_field, read_enum_type, read_range_type): Update.
5181 * source.c (info_line_command): Update.
5182 * python/python.c (gdbpy_source_objfile_script)
5183 (gdbpy_execute_objfile_script): Update.
5184 * python/py-type.c (save_objfile_types): Update.
5185 * python/py-objfile.c (py_free_objfile): Update.
5186 * python/py-inferior.c (python_new_objfile): Update.
5187 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5188 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5189 (maintenance_check_psymtabs): Update.
5190 * printcmd.c (info_address_command): Update.
5191 * objfiles.h (struct objfile) <arch>: New method, from
5192 get_objfile_arch.
5193 (get_objfile_arch): Don't declare.
5194 * objfiles.c (get_objfile_arch): Remove.
5195 (filter_overlapping_sections): Update.
5196 * minsyms.c (msymbol_is_function): Update.
5197 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5198 (output_nondebug_symbol): Update.
5199 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5200 (mdebug_expand_psymtab): Update.
5201 * machoread.c (macho_add_oso_symfile): Update.
5202 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5203 Update.
5204 * linux-fork.c (checkpoint_command): Update.
5205 * linespec.c (convert_linespec_to_sals): Update.
5206 * jit.c (finalize_symtab): Update.
5207 * infrun.c (insert_exception_resume_from_probe): Update.
5208 * ia64-tdep.c (ia64_find_unwind_table): Update.
5209 * hppa-tdep.c (internalize_unwinds): Update.
5210 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5211 Update.
5212 * gcore.c (call_target_sbrk): Update.
5213 * elfread.c (record_minimal_symbol, elf_symtab_read)
5214 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5215 (elf_gnu_ifunc_resolve_by_got): Update.
5216 * dwarf2/read.c (create_addrmap_from_index)
5217 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5218 (read_debug_names_from_section)
5219 (process_psymtab_comp_unit_reader, add_partial_symbol)
5220 (add_partial_subprogram, process_full_comp_unit)
5221 (read_file_scope, read_func_scope, read_lexical_block_scope)
5222 (read_call_site_scope, dwarf2_ranges_read)
5223 (dwarf2_record_block_ranges, dwarf2_add_field)
5224 (mark_common_block_symbol_computed, read_tag_pointer_type)
5225 (read_tag_string_type, dwarf2_init_float_type)
5226 (dwarf2_init_complex_target_type, read_base_type)
5227 (partial_die_info::read, partial_die_info::read)
5228 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5229 (dwarf2_fetch_die_loc_sect_off): Update.
5230 * dwarf2/loc.c (dwarf2_find_location_expression)
5231 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5232 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5233 (dwarf2_loc_desc_get_symbol_read_needs)
5234 (locexpr_describe_location_piece, locexpr_describe_location_1)
5235 (loclist_describe_location): Update.
5236 * dwarf2/index-write.c (write_debug_names): Update.
5237 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5238 * dtrace-probe.c (dtrace_process_dof): Update.
5239 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5240 (process_one_symbol): Update.
5241 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5242 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5243 (coff_read_enum_type): Update.
5244 * cli/cli-cmds.c (edit_command, list_command): Update.
5245 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5246 * breakpoint.c (create_overlay_event_breakpoint)
5247 (create_longjmp_master_breakpoint)
5248 (create_std_terminate_master_breakpoint)
5249 (create_exception_master_breakpoint, get_sal_arch): Update.
5250 * block.c (block_gdbarch): Update.
5251 * annotate.c (annotate_source_line): Update.
5252
0743fc83
TT
52532020-04-17 Tom Tromey <tromey@adacore.com>
5254
5255 * auto-load.c (show_auto_load_cmd): Remove.
5256 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5257 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5258 (maintenance_print_arc_command): Remove.
5259 * tui/tui-win.c (tui_command): Remove.
5260 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5261 * tui/tui-layout.c (tui_layout_command): Remove.
5262 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5263 * python/python.c (user_set_python, user_show_python): Remove.
5264 (_initialize_python): Use add_basic_prefix_cmd,
5265 add_show_prefix_cmd.
5266 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5267 (install_gdb_commands): Use add_basic_prefix_cmd,
5268 add_show_prefix_cmd.
5269 (info_guile_command): Remove.
5270 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5271 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5272 add_show_prefix_cmd.
5273 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5274 Remove do_set and do_show parameters.
5275 * cli/cli-style.c (set_style, show_style): Remove.
5276 (_initialize_cli_style): Use add_basic_prefix_cmd,
5277 add_show_prefix_cmd.
5278 (cli_style_option::add_setshow_commands): Remove do_set and
5279 do_show parameters.
5280 (cli_style_option::add_setshow_commands): Use
5281 add_basic_prefix_cmd, add_show_prefix_cmd.
5282 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5283 (set_style_name): Remove.
5284 * cli/cli-dump.c (dump_command, append_command): Remove.
5285 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5286 (tekhex_dump_command, binary_dump_command)
5287 (binary_append_command): Remove.
5288 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5289 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5290 (init_w32_command_list): Remove; move into ...
5291 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5292 * valprint.c (set_print, show_print, set_print_raw)
5293 (show_print_raw): Remove.
5294 (_initialize_valprint): Use add_basic_prefix_cmd,
5295 add_show_prefix_cmd.
5296 * typeprint.c (set_print_type, show_print_type): Remove.
5297 (_initialize_typeprint): Use add_basic_prefix_cmd,
5298 add_show_prefix_cmd.
5299 * record.c (set_record_command, show_record_command): Remove.
5300 (_initialize_record): Use add_basic_prefix_cmd,
5301 add_show_prefix_cmd.
5302 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5303 add_show_prefix_cmd.
5304 (info_command, show_command, set_debug, show_debug): Remove.
5305 * top.h (set_history, show_history): Don't declare.
5306 * top.c (set_history, show_history): Remove.
5307 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5308 (unset_tdesc_cmd): Remove.
5309 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5310 add_show_prefix_cmd.
5311 * symtab.c (info_module_command): Remove.
5312 (_initialize_symtab): Use add_basic_prefix_cmd.
5313 * symfile.c (overlay_command): Remove.
5314 (_initialize_symfile): Use add_basic_prefix_cmd.
5315 * sparc64-tdep.c (info_adi_command): Remove.
5316 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5317 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5318 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5319 add_show_prefix_cmd.
5320 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5321 (_initialize_serial): Use add_basic_prefix_cmd,
5322 add_show_prefix_cmd.
5323 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5324 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5325 add_show_prefix_cmd.
5326 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5327 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5328 add_show_prefix_cmd.
5329 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5330 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5331 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5332 add_show_prefix_cmd.
5333 * remote.c (remote_command, set_remote_cmd): Remove.
5334 (_initialize_remote): Use add_basic_prefix_cmd.
5335 * record-full.c (set_record_full_command)
5336 (show_record_full_command): Remove.
5337 (_initialize_record_full): Use add_basic_prefix_cmd,
5338 add_show_prefix_cmd.
5339 * record-btrace.c (cmd_set_record_btrace)
5340 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5341 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5342 (cmd_show_record_btrace_pt): Remove.
5343 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5344 add_show_prefix_cmd.
5345 * ravenscar-thread.c (set_ravenscar_command)
5346 (show_ravenscar_command): Remove.
5347 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5348 add_show_prefix_cmd.
5349 * mips-tdep.c (show_mips_command, set_mips_command)
5350 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5351 add_show_prefix_cmd.
5352 * maint.c (maintenance_command, maintenance_info_command)
5353 (maintenance_check_command, maintenance_print_command)
5354 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5355 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5356 add_show_prefix_cmd.
5357 (show_per_command_cmd): Remove.
5358 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5359 Remove.
5360 (maintenance_show_test_settings_cmd): Remove.
5361 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5362 add_show_prefix_cmd.
5363 * maint-test-options.c (maintenance_test_options_command):
5364 Remove.
5365 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5366 * macrocmd.c (macro_command): Remove
5367 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5368 * language.c (set_check, show_check): Remove.
5369 (_initialize_language): Use add_basic_prefix_cmd,
5370 add_show_prefix_cmd.
5371 * infcmd.c (unset_command): Remove.
5372 (_initialize_infcmd): Use add_basic_prefix_cmd.
5373 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5374 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5375 add_show_prefix_cmd.
5376 * go32-nat.c (go32_info_dos_command): Remove.
5377 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5378 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5379 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5380 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5381 (_initialize_frame): Use add_basic_prefix_cmd,
5382 add_show_prefix_cmd.
5383 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5384 (_initialize_dcache): Use add_basic_prefix_cmd,
5385 add_show_prefix_cmd.
5386 * cp-support.c (maint_cplus_command): Remove.
5387 (_initialize_cp_support): Use add_basic_prefix_cmd.
5388 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5389 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5390 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5391 add_basic_prefix_cmd, add_show_prefix_cmd.
5392 * breakpoint.c (save_command): Remove.
5393 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5394 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5395 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5396 add_show_prefix_cmd.
5397 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5398 (set_ada_command, show_ada_command): Remove.
5399 (_initialize_ada_language): Use add_basic_prefix_cmd,
5400 add_show_prefix_cmd.
5401 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5402
3557f442
KR
54032020-04-16 Kamil Rytarowski <n54@gmx.com>
5404
5405 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5406 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5407
16197208
SM
54082020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5409
5410 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5411 warning messages.
5412
00ac85d3
SM
54132020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5414
5415 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5416 import table is not at beginning of .idata section.
5417
381ce63f
PA
54182020-04-16 Pedro Alves <palves@redhat.com>
5419
5420 * inferior.c (delete_inferior): Use delete operator directly
5421 instead of delete_program_space.
5422 * progspace.c (add_program_space): New, factored out from
5423 program_space::program_space.
5424 (remove_program_space): New, factored out from
5425 delete_program_space.
5426 (program_space::program_space): Remove intro comment. Rewrite.
5427 (program_space::~program_space): Remove intro comment. Call
5428 remove_program_space.
5429 (delete_program_space): Delete.
5430 * progspace.h (program_space::program_space): Make explicit. Move
5431 intro comment here, adjusted.
5432 (program_space::~program_space): Move intro comment here,
5433 adjusted.
5434 (delete_program_space): Remove.
5435
a010605f
TT
54362020-04-16 Tom Tromey <tromey@adacore.com>
5437
5438 * windows-nat.c (windows_nat::handle_access_violation): New
5439 function.
5440 * nat/windows-nat.h (handle_access_violation): Declare.
5441 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5442 windows-nat.c. Call handle_access_violation.
5443
efba5c23
TV
54442020-04-16 Tom de Vries <tdevries@suse.de>
5445
5446 PR symtab/25791
5447 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5448 CUs without psymtab.
5449
97ed802d
KB
54502020-04-16 Kevin Buettner <kevinb@redhat.com>
5451
5452 * python/python.c (do_start_initialization): Don't call
5453 PyEval_InitThreads for Python 3.9 and beyond.
5454
c7d64809
KR
54552020-04-15 Kamil Rytarowski <n54@gmx.com>
5456
5457 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5458 thread functions.
5459 (obsd_nat_target::wait): Likewise.
5460
ce127a96
TT
54612020-04-15 Tom Tromey <tromey@adacore.com>
5462
5463 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5464 (DEBUG_EXCEPT): Use debug_printf.
5465
99f1bc6a
AB
54662020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5467
5468 * completer.c (class completion_tracker::completion_hash_entry)
5469 <hash_name>: New member function.
5470 (completion_tracker::discard_completions): New callback to hash a
5471 completion_hash_entry, pass this to htab_create_alloc.
5472
a0e9b532
JT
54732016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5474
5475 * windows-nat.c (windows_make_so): Warn rather than stopping with
5476 an error if realpath() fails.
5477
06ca5dd4
KR
54782020-04-14 Kamil Rytarowski <n54@gmx.com>
5479
5480 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5481 (nbsd_nat_target::info_proc): Add do_status.
5482
194d088f
TV
54832020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5484 Tom de Vries <tdevries@suse.de>
5485
5486 PR symtab/25718
5487 * psympriv.h (struct partial_symtab::read_symtab)
5488 (struct partial_symtab::expand_psymtab)
5489 (struct partial_symtab::read_dependencies): Update comments.
5490 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5491 read_symtab for includer.
5492 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5493 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5494 (struct dwarf2_include_psymtab::m_readin): Remove.
5495 (struct dwarf2_include_psymtab::includer): New member function.
5496 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5497
c1a66c06
TV
54982020-04-14 Tom de Vries <tdevries@suse.de>
5499
5500 PR symtab/25720
5501 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5502 with NULL symbol_matcher and lookup_name.
5503 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5504 and lookup_name.
5505 * dwarf2/read.c (dw2_expand_symtabs_matching)
5506 (dw2_debug_names_expand_symtabs_matching): Same.
5507 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5508 Make lookup_name a pointer. Update comment.
5509 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5510 lookup_name being a pointer.
5511 * symfile.c (expand_symtabs_matching): Same.
5512 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5513 * linespec.c (iterate_over_all_matching_symtabs): Same.
5514
400b5eca
TT
55152020-04-13 Tom Tromey <tom@tromey.com>
5516
5517 * run-on-main-thread.c: Update include.
5518 * unittests/main-thread-selftests.c: Update include.
5519 * tui/tui-win.c: Update include.
5520 * tui/tui-io.c: Update include.
5521 * tui/tui-interp.c: Update include.
5522 * tui/tui-hooks.c: Update include.
5523 * top.h: Update include.
5524 * top.c: Update include.
5525 * ser-base.c: Update include.
5526 * remote.c: Update include.
5527 * remote-notif.c: Update include.
5528 * remote-fileio.c: Update include.
5529 * record-full.c: Update include.
5530 * record-btrace.c: Update include.
5531 * python/python.c: Update include.
5532 * posix-hdep.c: Update include.
5533 * mingw-hdep.c: Update include.
5534 * mi/mi-main.c: Update include.
5535 * mi/mi-interp.c: Update include.
5536 * main.c: Update include.
5537 * linux-nat.c: Update include.
5538 * interps.c: Update include.
5539 * infrun.c: Update include.
5540 * inf-loop.c: Update include.
5541 * event-top.c: Update include.
5542 * event-loop.c: Move to ../gdbsupport/.
5543 * event-loop.h: Move to ../gdbsupport/.
5544 * async-event.h: Update include.
5545 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5546
93b54c8e
TT
55472020-04-13 Tom Tromey <tom@tromey.com>
5548
5549 * tui/tui-win.c: Include async-event.h.
5550 * remote.c: Include async-event.h.
5551 * remote-notif.c: Include async-event.h.
5552 * record-full.c: Include async-event.h.
5553 * record-btrace.c: Include async-event.h.
5554 * infrun.c: Include async-event.h.
5555 * event-top.c: Include async-event.h.
5556 * event-loop.h: Move some declarations to async-event.h.
5557 * event-loop.c: Don't include ser-event.h or top.h. Move some
5558 code to async-event.c.
5559 * async-event.h: New file.
5560 * async-event.c: New file.
5561 * Makefile.in (COMMON_SFILES): Add async-event.c.
5562 (HFILES_NO_SRCDIR): Add async-event.h.
5563
c1cd3163
TT
55642020-04-13 Tom Tromey <tom@tromey.com>
5565
5566 * utils.c (flush_streams): New function.
5567 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5568
29f2bf4f
TT
55692020-04-13 Tom Tromey <tom@tromey.com>
5570
5571 * event-loop.c (handle_file_event): Use warning, not
5572 printf_unfiltered.
5573
98029d02
TT
55742020-04-13 Tom Tromey <tom@tromey.com>
5575
5576 * event-loop.c: Include <chrono>.
5577
06cc9596
TT
55782020-04-13 Tom Tromey <tom@tromey.com>
5579
5580 * gdb_select.h: Move to ../gdbsupport/.
5581 * event-loop.c: Update include path.
5582 * top.c: Update include path.
5583 * ser-base.c: Update include path.
5584 * ui-file.c: Update include path.
5585 * ser-tcp.c: Update include path.
5586 * guile/scm-ports.c: Update include path.
5587 * posix-hdep.c: Update include path.
5588 * ser-unix.c: Update include path.
5589 * gdb_usleep.c: Update include path.
5590 * mingw-hdep.c: Update include path.
5591 * inflow.c: Update include path.
5592 * infrun.c: Update include path.
5593 * event-top.c: Update include path.
5594
8ae8e197
TT
55952020-04-13 Tom Tromey <tom@tromey.com>
5596
5597 * configure: Rebuild.
5598 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5599
58cf28e8
TT
56002020-04-13 Tom Tromey <tom@tromey.com>
5601
5602 * event-loop.h (start_event_loop): Don't declare.
5603 * event-loop.c (start_event_loop): Move...
5604 * main.c (start_event_loop): ...here. Now static.
5605
b7f999ae
SDJ
56062020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5607
5608 * MAINTAINERS: Update my email address.
5609
1085dfd4
KR
56102020-04-12 Kamil Rytarowski <n54@gmx.com>
5611
5612 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5613 IP_ALL.
5614
49d1d1f5
KR
56152020-04-12 Kamil Rytarowski <n54@gmx.com>
5616
5617 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5618 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5619
b4848d2a
KR
56202020-04-12 Kamil Rytarowski <n54@gmx.com>
5621
5622 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5623 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5624
51c133d5
KR
56252020-04-12 Kamil Rytarowski <n54@gmx.com>
5626
5627 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5628
54b8cbd0
KR
56292020-04-11 Kamil Rytarowski <n54@gmx.com>
5630
5631 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5632 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5633 (nbsd_nat_target::info_proc): New functions.
5634 * nbsd-nat.c (kinfo_get_vmmap): New function.
5635 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5636 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5637 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5638 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5639 functions.
5640 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5641 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5642 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5643 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5644 (KINFO_VME_FLAG_GROWS_DOWN): New.
5645
cf83625d
AS
56462020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5647
5648 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5649 bit shift.
5650
0c4311ab
TT
56512020-04-10 Tom Tromey <tromey@adacore.com>
5652
5653 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5654
3e65b3e9
TT
56552020-04-10 Tom Tromey <tromey@adacore.com>
5656
5657 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5658 separate debug files.
5659
13302e95
HD
56602020-04-10 Hannes Domani <ssbssa@yahoo.de>
5661
5662 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5663 Move to...
5664 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5665 ... here.
5666 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5667 Check for STATUS_WX86_BREAKPOINT.
5668 (windows_nat_target::wait): Same.
5669
bdfc1e8a
TV
56702020-04-10 Tom de Vries <tdevries@suse.de>
5671
5672 PR cli/25808
5673 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5674
f4460aec
SM
56752020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5676
5677 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5678 (Write After Approval): Remove Tom de Vries.
5679
a25198bb
BE
56802020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5681
5682 revert partially:
5683 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5684
aac66a4c
SM
5685 * buildsym.c (record_line): Fix undefined behavior and preserve
5686 lines at eof.
a25198bb 5687
206c98a6
KR
56882020-04-09 Kamil Rytarowski <n54@gmx.com>
5689
5690 * auxv.h (svr4_auxv_parse): New.
5691 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5692 and generic_auxv_parse.
5693 (svr4_auxv_parse): Add.
5694 * obsd-tdep.c: Include "auxv.h".
5695 (obsd_auxv_parse): Remove.
5696 (obsd_init_abi): Remove comment.
5697 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5698 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5699 * nbsd-tdep.c: Include "auxv.h".
5700 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5701
71fbdbaf
TT
57022020-04-08 Tom Tromey <tromey@adacore.com>
5703
5704 * nat/windows-nat.h (last_wait_event): Don't declare.
5705 (wait_for_debug_event): Update comment.
5706 * nat/windows-nat.c (last_wait_event): Now static.
5707
2c1d95e8
TT
57082020-04-08 Tom Tromey <tromey@adacore.com>
5709
5710 * windows-nat.c (wait_for_debug_event): Move to
5711 nat/windows-nat.c.
5712 * nat/windows-nat.h (wait_for_debug_event): Declare.
5713 * nat/windows-nat.c (wait_for_debug_event): Move from
5714 windows-nat.c. No longer static.
5715
d2977bc4
TT
57162020-04-08 Tom Tromey <tromey@adacore.com>
5717
5718 * windows-nat.c (get_windows_debug_event): Use
5719 fetch_pending_stop.
5720 * nat/windows-nat.h (fetch_pending_stop): Declare.
5721 * nat/windows-nat.c (fetch_pending_stop): New function.
5722
e758e19c
TT
57232020-04-08 Tom Tromey <tromey@adacore.com>
5724
5725 * windows-nat.c (windows_continue): Use matching_pending_stop and
5726 continue_last_debug_event.
5727 * nat/windows-nat.h (matching_pending_stop)
5728 (continue_last_debug_event): Declare.
5729 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5730 (matching_pending_stop, continue_last_debug_event): New
5731 functions.
5732
8d30e395
TT
57332020-04-08 Tom Tromey <tromey@adacore.com>
5734
5735 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5736 (handle_exception_result): Move to nat/windows-nat.h.
5737 (DEBUG_EXCEPTION_SIMPLE): Remove.
5738 (windows_nat::handle_ms_vc_exception): New function.
5739 (handle_exception): Move to nat/windows-nat.c.
5740 (get_windows_debug_event): Update.
5741 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5742 nat/windows-nat.c.
5743 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5744 (handle_exception_result): Move from windows-nat.c.
5745 (handle_exception): Declare.
5746 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5747 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5748 windows-nat.c.
5749
29de418d
TT
57502020-04-08 Tom Tromey <tromey@adacore.com>
5751
5752 * windows-nat.c (exception_count, event_count): Remove.
5753 (handle_exception, get_windows_debug_event)
5754 (do_initial_windows_stuff): Update.
5755
a816ba18
TT
57562020-04-08 Tom Tromey <tromey@adacore.com>
5757
5758 * windows-nat.c (windows_nat::handle_load_dll)
5759 (windows_nat::handle_unload_dll): Rename. No longer static.
5760 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5761 Declare.
5762
a00caa12
TT
57632020-04-08 Tom Tromey <tromey@adacore.com>
5764
5765 * complaints.h (stop_whining): Declare at top-level.
5766 (complaint): Don't declare stop_whining.
5767
d41b524f
TT
57682020-04-08 Tom Tromey <tromey@adacore.com>
5769
5770 * windows-nat.c (windows_nat::handle_output_debug_string):
5771 Rename. No longer static.
5772 * nat/windows-nat.h (handle_output_debug_string): Declare.
5773
3c76026d
TT
57742020-04-08 Tom Tromey <tromey@adacore.com>
5775
5776 * windows-nat.c (current_process_handle, current_process_id)
5777 (main_thread_id, last_sig, current_event, last_wait_event)
5778 (current_windows_thread, desired_stop_thread_id, pending_stops)
5779 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5780 (display_selectors, fake_create_process)
5781 (get_windows_debug_event): Update.
5782 * nat/windows-nat.h (current_process_handle, current_process_id)
5783 (main_thread_id, last_sig, current_event, last_wait_event)
5784 (current_windows_thread, desired_stop_thread_id, pending_stops)
5785 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5786 * nat/windows-nat.c (current_process_handle, current_process_id)
5787 (main_thread_id, last_sig, current_event, last_wait_event)
5788 (current_windows_thread, desired_stop_thread_id, pending_stops)
5789 (siginfo_er): New globals. Move from windows-nat.c.
5790
9d8679cc
TT
57912020-04-08 Tom Tromey <tromey@adacore.com>
5792
5793 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5794 (handle_load_dll): Update.
5795 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5796
28688adf
TT
57972020-04-08 Tom Tromey <tromey@adacore.com>
5798
5799 * windows-nat.c (enum thread_disposition_type): Move to
5800 nat/windows-nat.h.
5801 (windows_nat::thread_rec): Rename from thread_rec. No longer
5802 static.
5803 (windows_add_thread, windows_nat_target::fetch_registers)
5804 (windows_nat_target::store_registers, handle_exception)
5805 (windows_nat_target::resume, get_windows_debug_event)
5806 (windows_nat_target::get_tib_address)
5807 (windows_nat_target::thread_name)
5808 (windows_nat_target::thread_alive): Update.
5809 * nat/windows-nat.h (enum thread_disposition_type): Move from
5810 windows-nat.c.
5811 (thread_rec): Declare.
5812
4834dad0
TT
58132020-04-08 Tom Tromey <tromey@adacore.com>
5814
5815 * windows-nat.c: Add "using namespace".
5816 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5817 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5818
65bafd5b
TT
58192020-04-08 Tom Tromey <tromey@adacore.com>
5820
5821 * nat/windows-nat.h (struct windows_thread_info): Declare
5822 destructor.
5823 * nat/windows-nat.c (~windows_thread_info): New.
5824
0a4afda3
TT
58252020-04-08 Tom Tromey <tromey@adacore.com>
5826
5827 PR gdb/22992
5828 * windows-nat.c (current_event): Update comment.
5829 (last_wait_event, desired_stop_thread_id): New globals.
5830 (struct pending_stop): New.
5831 (pending_stops): New global.
5832 (windows_nat_target) <stopped_by_sw_breakpoint>
5833 <supports_stopped_by_sw_breakpoint>: New methods.
5834 (windows_fetch_one_register): Add assertions. Adjust PC.
5835 (windows_continue): Handle pending stops. Suspend other threads
5836 when stepping. Use last_wait_event
5837 (wait_for_debug_event): New function.
5838 (get_windows_debug_event): Use wait_for_debug_event. Handle
5839 pending stops. Queue spurious stops.
5840 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5841 (windows_nat_target::kill): Use wait_for_debug_event.
5842 * nat/windows-nat.h (struct windows_thread_info)
5843 <stopped_at_software_breakpoint>: New field.
5844 * nat/windows-nat.c (windows_thread_info::resume): Clear
5845 stopped_at_software_breakpoint.
5846
8e61ebec
TT
58472020-04-08 Tom Tromey <tromey@adacore.com>
5848
5849 * windows-nat.c (enum thread_disposition_type): New.
5850 (thread_rec): Replace "get_context" parameter with "disposition";
5851 change type.
5852 (windows_add_thread, windows_nat_target::fetch_registers)
5853 (windows_nat_target::store_registers, handle_exception)
5854 (windows_nat_target::resume, get_windows_debug_event)
5855 (windows_nat_target::get_tib_address)
5856 (windows_nat_target::thread_name)
5857 (windows_nat_target::thread_alive): Update.
5858
98a03287
TT
58592020-04-08 Tom Tromey <tromey@adacore.com>
5860
5861 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5862 (windows_continue): Use windows_continue::resume.
5863 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5864 resume>: Declare new methods.
5865 * nat/windows-nat.c: New file.
5866 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5867
7c7411bc
TT
58682020-04-08 Tom Tromey <tromey@adacore.com>
5869
5870 * windows-nat.c (windows_add_thread, windows_delete_thread)
5871 (windows_nat_target::fetch_registers)
5872 (windows_nat_target::store_registers, fake_create_process)
5873 (windows_nat_target::resume, windows_nat_target::resume)
5874 (get_windows_debug_event, windows_nat_target::wait)
5875 (windows_nat_target::pid_to_str)
5876 (windows_nat_target::get_tib_address)
5877 (windows_nat_target::get_ada_task_ptid)
5878 (windows_nat_target::thread_name)
5879 (windows_nat_target::thread_alive): Use lwp, not tid.
5880
2950fdf7
TT
58812020-04-08 Tom Tromey <tromey@adacore.com>
5882
5883 * windows-nat.c (handle_exception)
5884 (windows_nat_target::thread_name): Update.
5885 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5886 <name>: Now unique_xmalloc_ptr.
5887
62fe396b
TT
58882020-04-08 Tom Tromey <tromey@adacore.com>
5889
5890 * windows-nat.c (thread_rec)
5891 (windows_nat_target::fetch_registers): Update.
5892 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5893 Update comment.
5894 <debug_registers_changed, reload_context>: Now bool.
5895
e9534bd2
TT
58962020-04-08 Tom Tromey <tromey@adacore.com>
5897
5898 * windows-nat.c (windows_add_thread): Use new.
5899 (windows_init_thread_list, windows_delete_thread): Use delete.
5900 (get_windows_debug_event): Update.
5901 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5902 destructor, and initializers.
5903
ae1f8880
TT
59042020-04-08 Tom Tromey <tromey@adacore.com>
5905
5906 * windows-nat.c (struct windows_thread_info): Remove.
5907 * nat/windows-nat.h: New file.
5908
55a1e039
TT
59092020-04-08 Tom Tromey <tromey@adacore.com>
5910
5911 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5912 (thread_rec, windows_add_thread, windows_delete_thread)
5913 (windows_continue): Update.
5914
93366324
TT
59152020-04-08 Tom Tromey <tromey@adacore.com>
5916
5917 * windows-nat.c (struct windows_thread_info): Remove typedef.
5918 (thread_head): Remove.
5919 (thread_list): New global.
5920 (thread_rec, windows_add_thread, windows_init_thread_list)
5921 (windows_delete_thread, windows_continue): Update.
5922
0f2265e2
SM
59232020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5924
5925 * windows-tdep.h (windows_init_abi): Add comment.
5926 (cygwin_init_abi): New declaration.
5927 * windows-tdep.c: Split signal enumeration in two, one for
5928 Windows and one for Cygwin.
5929 (windows_gdb_signal_to_target): Only deal with signal of the
5930 Windows OS ABI.
5931 (cygwin_gdb_signal_to_target): New function.
5932 (windows_init_abi): Rename to windows_init_abi_common, don't set
5933 gdb_signal_to_target gdbarch method. Add new new function with
5934 this name.
5935 (cygwin_init_abi): New function.
5936 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5937 comment. Don't call windows_init_abi.
5938 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5939 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5940 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5941 i386_windows_init_abi_common, don't call windows_init_abi. Add
5942 a new function of this name.
5943 (i386_cygwin_init_abi): New function.
5944 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5945 OS ABI Cygwin.
5946
3810f182
SM
59472020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5948
5949 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5950 parameter.c.
5951 (dwarf2_read_gdb_index): Update.
5952
063f8e80
KR
59532020-04-07 Kamil Rytarowski <n54@gmx.com>
5954
5955 * nbsd-tdep.c: Include "objfiles.h".
5956 (nbsd_skip_solib_resolver): New.
5957 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5958
85a9510c 59592020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5960
5961 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5962 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5963 with DW_LLE_base_addressx are being emitted in DWARFv5.
5964 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5965 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5966 unsigned integer.
5967
9fc3eaae 59682020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5969
5970 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5971 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5972 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5973 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5974 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5975 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5976 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5977
5978
41144253 59792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5980
5981 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5982 (read_loclist_index): New function definition.
5983 (lookup_loclist_base): New function definition.
5984 (read_loclist_header): New function definition.
5985 (dwarf2_cu): Add loclist_base and loclist_header field.
5986 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5987 (read_full_die_1): Read the value of DW_AT_loclists_base.
5988 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5989 (read_attribute_value): Handle DW_FORM_loclistx.
5990 (skip_one_die): Handle DW_FORM_loclistx.
5991 (loclist_header): New structure declaration.
5992 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5993
9f4e76a4
SM
59942020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5995
5996 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5997 constructor. Remove `addr` parameter from other constructor and
5998 add `per_cu` parameter.
5999 * dwarf2/read.c (create_partial_symtab): Update.
6000
25c11aca
TV
60012020-04-07 Tom de Vries <tdevries@suse.de>
6002
6003 PR symtab/25796
6004 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6005 (partial_die_info::fixup): Inherit has_const_value.
6006
5707e24b
TV
60072020-04-07 Tom de Vries <tdevries@suse.de>
6008
6009 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6010 symbols without address.
6011
05f00e22
KR
60122020-04-06 Kamil Rytarowski <n54@gmx.com>
6013
6014 * nbsd-nat.h (struct thread_info): Add forward declaration.
6015 (nbsd_nat_target::thread_alive): Add.
6016 (nbsd_nat_target::thread_name): Likewise.
6017 (nbsd_nat_target::update_thread_list): Likewise.
6018 (update_thread_list::post_attach): Likewise.
6019 (post_attach::pid_to_str): Likewise.
6020 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6021 (nbsd_thread_lister): Add.
6022 (nbsd_nat_target::thread_alive): Likewise.
6023 (nbsd_nat_target::thread_name): Likewise.
6024 (nbsd_add_threads): Likewise.
6025 (update_thread_list::post_attach): Likewise.
6026 (nbsd_nat_target::update_thread_list): Likewise.
6027 (post_attach::pid_to_str): Likewise.
6028
6ee448cc
TT
60292020-04-06 Tom Tromey <tromey@adacore.com>
6030
6031 * ada-valprint.c (print_variant_part): Extract the variant field.
6032 (print_field_values): Use the field as the outer value when
6033 recursing.
6034
dea34e8c
TT
60352020-04-06 Tom Tromey <tromey@adacore.com>
6036
6037 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6038 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6039 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6040 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6041 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6042
93689ce9
TT
60432020-04-06 Tom Tromey <tromey@adacore.com>
6044
6045 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6046 TYPE_CODE_ERROR.
6047
79743962
KR
60482020-04-06 Kamil Rytarowski <n54@gmx.com>
6049
6050 * nbsd-tdep.c: Include "gdbarch.h".
6051 Define enum with NetBSD signal numbers.
6052 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6053 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6054 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6055 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6056 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6057 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6058 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6059 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6060 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6061 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6062 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6063 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6064
9e7c9a03
HD
60652020-04-03 Hannes Domani <ssbssa@yahoo.de>
6066
6067 PR gdb/25325
6068 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6069
d9e49b61
TT
60702020-04-03 Tom Tromey <tromey@adacore.com>
6071
6072 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6073 Read constant block.
6074
e0fc5c3f
SM
60752020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6076
6077 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6078 (gdb_bfd_get_full_section_contents): New declaration.
6079 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6080 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6081 gdb_bfd_get_full_section_contents.
6082
e2ff18a0
SM
60832020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6084
6085 * exec.c (build_section_table): Replace internal_error with
6086 gdb_assert.
6087 (section_table_xfer_memory_partial): Likewise.
6088 * mdebugread.c (parse_partial_symbols): Likewise.
6089 * psymtab.c (lookup_partial_symbol): Likewise.
6090 * utils.c (wrap_here): Likewise.
6091
0830d301
TT
60922020-04-02 Tom Tromey <tromey@adacore.com>
6093
6094 * f-lang.c (build_fortran_types): Use arch_type to initialize
6095 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6096
e7da7f8f
TT
60972020-04-02 Tom Tromey <tromey@adacore.com>
6098
6099 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6100 of attributes.
6101
c90d28ac
AB
61022020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6103 Bernd Edlinger <bernd.edlinger@hotmail.de>
6104 Tom Tromey <tromey@adacore.com>
6105
6106 * buildsym.c (buildsym_compunit::record_line): Remove
6107 deduplication code.
6108
1aa98955
TV
61092020-04-02 Tom de Vries <tdevries@suse.de>
6110
6111 PR ada/24671
6112 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6113
d3214198
TV
61142020-04-02 Tom de Vries <tdevries@suse.de>
6115
6116 * dwarf2/read.c (dwarf2_gdb_index_functions,
6117 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6118 NULL.
6119 * psymtab.c (psym_lookup_global_symbol_language): New function.
6120 (psym_functions): Init psym_lookup_global_symbol_language with
6121 psym_lookup_global_symbol_language.
6122 * symfile-debug.c (debug_sym_quick_functions): Init
6123 lookup_global_symbol_language with NULL.
6124 * symfile.c (set_initial_language): Remove fixme comment.
6125 * symfile.h (struct quick_symbol_functions): Add
6126 lookup_global_symbol_language.
6127 * symtab.c (find_quick_global_symbol_language): New function.
6128 (find_main_name): Use find_quick_global_symbol_language.
6129
2836752f
SM
61302020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6131
6132 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6133
64dc2d4b
BE
61342020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6135
6136 * buildsym.c (record_line): Fix undefined behavior and preserve
6137 lines at eof.
6138
bbe3dc41
BE
61392020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6140
6141 * buildsym.c (record_line): Fix the resizing condition.
6142
6b4a335b
TT
61432020-04-01 Tom Tromey <tom@tromey.com>
6144
6145 * value.h (value_literal_complex): Add comment.
6146 * valops.c (value_literal_complex): Refer to value.h.
6147
3638a098
TT
61482020-04-01 Tom Tromey <tom@tromey.com>
6149
6150 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6151 (scalar_type): New rule, from typebase.
6152 (typebase): Use scalar_type. Recognize complex types.
6153 (field_name): Handle FLOAT_KEYWORD.
6154 (ident_tokens): Add _Complex and __complex__.
6155
c34e8714
TT
61562020-04-01 Tom Tromey <tom@tromey.com>
6157
6158 PR exp/25299:
6159 * valarith.c (promotion_type, complex_binop): New functions.
6160 (scalar_binop): Handle complex numbers. Use promotion_type.
6161 (value_pos, value_neg, value_complement): Handle complex numbers.
6162
fa649bb7
TT
61632020-04-01 Tom Tromey <tom@tromey.com>
6164
6165 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6166 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6167 (parse_number): Handle complex numbers.
6168
981c08ce
TT
61692020-04-01 Tom Tromey <tom@tromey.com>
6170
6171 * c-valprint.c (c_decorations): Change complex suffix to "i".
6172
4c99290d
TT
61732020-04-01 Tom Tromey <tom@tromey.com>
6174
6175 * valprint.c (generic_value_print_complex): Use accessors.
6176 * value.h (value_real_part, value_imaginary_part): Declare.
6177 * valops.c (value_real_part, value_imaginary_part): New
6178 functions.
6179 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6180
5b930b45
TT
61812020-04-01 Tom Tromey <tom@tromey.com>
6182
6183 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6184 (read_range_type): Update.
6185 * mdebugread.c (basic_type): Update.
6186 * go-lang.c (build_go_types): Use init_complex_type.
6187 * gdbtypes.h (struct main_type) <complex_type>: New member.
6188 (init_complex_type): Update.
6189 (arch_complex_type): Don't declare.
6190 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6191 Make name if none given. Use alloc_type_copy. Look for cached
6192 complex type.
6193 (arch_complex_type): Remove.
6194 (gdbtypes_post_init): Use init_complex_type.
6195 * f-lang.c (build_fortran_types): Use init_complex_type.
6196 * dwarf2/read.c (read_base_type): Update.
6197 * d-lang.c (build_d_types): Use init_complex_type.
6198 * ctfread.c (read_base_type): Update.
6199
53cccef1
TBA
62002020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6201
6202 * infrun.c (stop_all_threads): Update assertion, plus when
6203 stopping threads, take into account that we might be trying
6204 to stop an all-stop target.
6205 (stop_waiting): Call 'stop_all_threads' if there exists a
6206 non-stop target.
6207
a0714d30
TBA
62082020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6209
6210 * target.h (exists_non_stop_target): New function declaration.
6211 * target.c (exists_non_stop_target): New function.
6212
60e22c1e
HD
62132020-04-01 Hannes Domani <ssbssa@yahoo.de>
6214
6215 PR gdb/24789
6216 * eval.c (is_integral_or_integral_reference): New function.
6217 (evaluate_subexp_standard): Allow integer references in
6218 pointer arithmetic.
6219
e139a727
TBA
62202020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6221
6222 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6223 check for no ptid in the stop reply when the target is non-stop.
6224
e0802d59
TT
62252020-04-01 Tom Tromey <tromey@adacore.com>
6226
6227 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6228 "name" parameter to rvalue reference. Initialize m_name_holder.
6229 <lookup_name_info>: New overloads.
6230 <name>: Return gdb::string_view.
6231 <c_str>: New method.
6232 <make_ignore_params>: Update.
6233 <search_name_hash>: Update.
6234 <language_lookup_name>: Return const char *.
6235 <m_name>: Change type.
6236 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6237 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6238 (lookup_name_info::match_any): Update.
6239 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6240 Update.
6241 * minsyms.c (linkage_name_str): Update.
6242 * language.c (default_symbol_name_matcher): Update.
6243 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6244 Update.
6245 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6246 (ada_lookup_name_info::ada_lookup_name_info): Update.
6247 (literal_symbol_name_matcher): Update.
6248
8c072cb6
TT
62492020-04-01 Tom Tromey <tromey@adacore.com>
6250
6251 * psymtab.c (psymtab_search_name): Remove function.
6252 (psym_lookup_symbol): Create search name and lookup name here.
6253 (lookup_partial_symbol): Remove "name" parameter; add
6254 lookup_name.
6255 (psym_expand_symtabs_for_function): Update.
6256
6f29a534
TT
62572020-03-31 Joel Jones <joelkevinjones@gmail.com>
6258
6259 PR tui/25597:
6260 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6261
af62665e
TT
62622020-03-31 Tom Tromey <tromey@adacore.com>
6263
6264 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6265 memcpy.
6266
d1a89da5
NC
62672020-03-30 Nelson Chu <nelson.chu@sifive.com>
6268
6269 * features/riscv/32bit-csr.xml: Regenerated.
6270 * features/riscv/64bit-csr.xml: Regenerated.
6271
d8af9068
TT
62722020-03-30 Tom Tromey <tromey@adacore.com>
6273
6274 * ada-valprint.c (print_variant_part): Update.
6275 * ada-lang.h (ada_which_variant_applies): Update.
6276 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6277 outer_valaddr parameters; replace with "outer" value parameter.
6278 (to_fixed_variant_branch_type): Update.
6279
227c0bf4
PFC
62802020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6281
6282 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6283 <list>. Remove inclusion of observable.h.
6284 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6285 (struct arch_lwp_info): New struct.
6286 (class ppc_linux_dreg_interface): New class.
6287 (struct ppc_linux_process_info): New struct.
6288 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6289 <low_new_clone, low_forget_process, low_prepare_to_resume>
6290 <copy_thread_dreg_state, mark_thread_stale>
6291 <mark_debug_registers_changed, register_hw_breakpoint>
6292 <clear_hw_breakpoint, register_wp, clear_wp>
6293 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6294 <num_memory_accesses, get_trigger_type>
6295 <create_watchpoint_request, hwdebug_point_cmp>
6296 <init_arch_lwp_info, get_arch_lwp_info>
6297 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6298 methods.
6299 <struct ptid_hash>: New inner struct.
6300 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6301 members.
6302 (saved_dabr_value, hwdebug_info, max_slots_number)
6303 (struct hw_break_tuple, struct thread_points, ppc_threads)
6304 (have_ptrace_hwdebug_interface)
6305 (hwdebug_find_thread_points_by_tid)
6306 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6307 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6308 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6309 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6310 use m_dreg_interface.
6311 (hwdebug_point_cmp): Change to...
6312 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6313 reference arguments instead of pointers.
6314 (ppc_linux_nat_target::ranged_break_num_registers): Use
6315 m_dreg_interface.
6316 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6317 m_dreg_interface. Call register_hw_breakpoint.
6318 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6319 m_dreg_interface. Call clear_hw_breakpoint.
6320 (get_trigger_type): Change to...
6321 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6322 comment.
6323 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6324 use m_dreg_interface. Call register_hw_breakpoint.
6325 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6326 use m_dreg_interface. Call clear_hw_breakpoint.
6327 (can_use_watchpoint_cond_accel): Change to...
6328 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6329 method. Update comment, use m_dreg_interface and
6330 m_process_info.
6331 (calculate_dvc): Change to...
6332 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6333 m_dreg_interface.
6334 (num_memory_accesses): Change to...
6335 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6336 (check_condition): Change to...
6337 (ppc_linux_nat_target::check_condition): ...this method.
6338 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6339 comment, use m_dreg_interface.
6340 (create_watchpoint_request): Change to...
6341 (ppc_linux_nat_target::create_watchpoint_request): ...this
6342 method. Use m_dreg_interface.
6343 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6344 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6345 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6346 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6347 (ppc_linux_nat_target::low_forget_process)
6348 (ppc_linux_nat_target::low_new_fork)
6349 (ppc_linux_nat_target::low_new_clone)
6350 (ppc_linux_nat_target::low_delete_thread)
6351 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6352 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6353 only call mark_thread_stale.
6354 (ppc_linux_thread_exit): Remove.
6355 (ppc_linux_nat_target::stopped_data_address): Change to...
6356 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6357 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6358 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6359 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6360 comment. Call low_stopped_data_address.
6361 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6362 m_dreg_interface.
6363 (ppc_linux_nat_target::masked_watch_num_registers): Use
6364 m_dreg_interface.
6365 (ppc_linux_nat_target::copy_thread_dreg_state)
6366 (ppc_linux_nat_target::mark_thread_stale)
6367 (ppc_linux_nat_target::mark_debug_registers_changed)
6368 (ppc_linux_nat_target::register_hw_breakpoint)
6369 (ppc_linux_nat_target::clear_hw_breakpoint)
6370 (ppc_linux_nat_target::register_wp)
6371 (ppc_linux_nat_target::clear_wp)
6372 (ppc_linux_nat_target::init_arch_lwp_info)
6373 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6374 (_initialize_ppc_linux_nat): Remove observer callback.
6375
4db10d8f
PFC
63762020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6377
6378 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6379 (ppc_linux_nat_target::auxv_parse)
6380 (ppc_linux_nat_target::read_description)
6381 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6382 Move up.
6383
1310c1b0
PFC
63842020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6385
6386 * linux-nat.h (low_new_clone): New method.
6387 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6388
69b037c3
SM
63892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6390
6391 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6392 (dbx_expand_psymtab): ... this.
6393 (start_psymtab): Update.
6394 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6395 (mdebug_expand_psymtab): ... this.
6396 (parse_partial_symbols): Update.
6397 (new_psymtab): Update.
6398 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6399 (xcoff_expand_psymtab): ... this.
6400 (xcoff_start_psymtab): Update.
6401
48993951
SM
64022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6403
6404 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6405 <expand_dependencies>: ... this.
6406 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6407 (partial_symtab::expand_dependencies): ... this.
6408 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6409 Update.
6410 (dwarf2_psymtab::expand_psymtab): Update.
6411 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6412 * mdebugread.c (psymtab_to_symtab_1): Update.
6413 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6414
3ad83046
SM
64152020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6416
6417 * psympriv.h (discard_psymtab): Remove.
6418 * dbxread.c (dbx_end_psymtab): Update.
6419 * xcoffread.c (xcoff_end_psymtab): Update.
6420
4d1b9ab6
TT
64212020-03-28 Tom Tromey <tom@tromey.com>
6422
6423 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6424 comment.
6425
f1749218
TT
64262020-03-28 Tom Tromey <tom@tromey.com>
6427
6428 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6429
ebea7626
HD
64302020-03-27 Hannes Domani <ssbssa@yahoo.de>
6431
6432 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6433
a879b4d5
JB
64342020-03-26 John Baldwin <jhb@FreeBSD.org>
6435
6436 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6437
0826b30a
TT
64382020-03-26 Tom Tromey <tom@tromey.com>
6439
6440 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6441 (mark_common_block_symbol_computed, read_tag_string_type)
6442 (attr_to_dynamic_prop, read_subrange_type): Update.
6443 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6444 to be methods on struct attribute.
6445 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6446 (read_call_site_scope, partial_die_info::read)
6447 (partial_die_info::read, lookup_die_type, follow_die_ref):
6448 Update.
6449 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6450 from dwarf2_get_ref_die_offset.
6451 (attribute::constant_value): New method, from
6452 dwarf2_get_attr_constant_value.
6453 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6454 Declare method.
6455 <constant_value>: New method.
6456
2b2558bf
TT
64572020-03-26 Tom Tromey <tom@tromey.com>
6458
6459 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6460 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6461 (dwarf_type_encoding_name): Move to stringify.c.
6462 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6463 * dwarf2/stringify.c: New file.
6464 * dwarf2/stringify.h: New file.
6465
eeb64781
TT
64662020-03-26 Tom Tromey <tom@tromey.com>
6467
6468 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6469 Rewrite.
6470
a39fdb41
TT
64712020-03-26 Tom Tromey <tom@tromey.com>
6472
6473 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6474 methods.
6475 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6476 (lookup_ranges_base): Likewise.
6477 (read_cutu_die_from_dwo, read_full_die_1): Update.
6478
436c571c
TT
64792020-03-26 Tom Tromey <tom@tromey.com>
6480
6481 * dwarf2/read.c (read_import_statement, read_file_scope)
6482 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6483 (read_lexical_block_scope, read_call_site_scope)
6484 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6485 (handle_struct_member_die, process_structure_scope)
6486 (update_enumeration_type_from_children)
6487 (process_enumeration_scope, read_array_type, read_common_block)
6488 (read_namespace, read_module, read_subroutine_type): Update.
6489 (sibling_die): Remove.
6490
052c8bb8
TT
64912020-03-26 Tom Tromey <tom@tromey.com>
6492
6493 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6494 (build_type_psymtabs_reader, read_structure_type)
6495 (read_enumeration_type, read_full_die_1): Update.
6496 (dwarf2_attr_no_follow): Move to die.h.
6497 * dwarf2/die.h (struct die_info) <attr>: New method.
6498
2b24b6e4
TT
64992020-03-26 Tom Tromey <tom@tromey.com>
6500
6501 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6502 <base_address>: Now an optional.
6503 (dwarf2_find_base_address, dwarf2_rnglists_process)
6504 (dwarf2_ranges_process, fill_in_loclist_baton)
6505 (dwarf2_symbol_mark_computed): Update.
6506
c2d50fd0
TT
65072020-03-26 Tom Tromey <tom@tromey.com>
6508
6509 * dwarf2/read.c (struct die_info): Move to die.h.
6510 * dwarf2/die.h: New file.
6511
0df7ad3a
TT
65122020-03-26 Tom Tromey <tom@tromey.com>
6513
6514 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6515 * dwarf2/read.c
6516 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6517 Move to line-header.c.
6518 (read_checked_initial_length_and_offset, read_formatted_entries):
6519 Likewise.
6520 (dwarf_decode_line_header): Split into two.
6521 * dwarf2/line-header.c
6522 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6523 Move from read.c.
6524 (read_checked_initial_length_and_offset, read_formatted_entries):
6525 Likewise.
6526 (dwarf_decode_line_header): New function, split from read.c.
6527
86c0bb4c
TT
65282020-03-26 Tom Tromey <tom@tromey.com>
6529
6530 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6531 Declare method.
6532 * dwarf2/read.c (read_attribute_value): Update.
6533 (dwarf2_per_objfile::read_line_string): Rename from
6534 read_indirect_line_string.
6535 (read_formatted_entries): Update.
6536
2ef46c2f
TT
65372020-03-26 Tom Tromey <tom@tromey.com>
6538
6539 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6540 variable.
6541
4f9c1eda
TT
65422020-03-26 Tom Tromey <tom@tromey.com>
6543
6544 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6545 const.
6546 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6547 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6548 parameter const.
6549
5a0e026f
TT
65502020-03-26 Tom Tromey <tom@tromey.com>
6551
6552 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6553 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6554 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6555 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6556
8844c11b
TT
65572020-03-26 Tom Tromey <tom@tromey.com>
6558
6559 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6560 file_names_size, file_full_name, file_file_name>: Use const.
6561 <file_name_at, file_names>: Add const overload.
6562 * dwarf2/line-header.c (line_header::file_file_name)
6563 (line_header::file_full_name): Update.
6564
c90ec28a
TT
65652020-03-26 Tom Tromey <tom@tromey.com>
6566
6567 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6568 (macro_start_file, consume_improper_spaces)
6569 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6570 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6571 (dwarf_decode_macros): Move to macro.c.
6572 * dwarf2/macro.c: New file.
6573 * dwarf2/macro.h: New file.
6574 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6575
4f44ae6c
TT
65762020-03-26 Tom Tromey <tom@tromey.com>
6577
6578 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6579 method.
6580 * dwarf2/section.c: New method. From
6581 read_indirect_string_at_offset_from.
6582 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6583 (read_indirect_string_at_offset_from): Move to section.c.
6584 (read_indirect_string_at_offset): Rewrite.
6585 (read_indirect_line_string_at_offset): Remove.
6586 (read_indirect_string, read_indirect_line_string)
6587 (dwarf_decode_macro_bytes): Update.
6588
a0194fa8
TT
65892020-03-26 Tom Tromey <tom@tromey.com>
6590
6591 * dwarf2/section.h (struct dwarf2_section_info)
6592 <overload_complaint>: Declare.
6593 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6594 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6595 Rename from dwarf2_section_buffer_overflow_complaint.
6596 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6597 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6598
3d27bbdb
TT
65992020-03-26 Tom Tromey <tom@tromey.com>
6600
6601 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6602 Declare.
6603 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6604 Move from read.c.
6605 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6606 to section.c.
6607
9eac9650
TT
66082020-03-26 Tom Tromey <tom@tromey.com>
6609
6610 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6611
bf80d710
TT
66122020-03-26 Tom Tromey <tom@tromey.com>
6613
6614 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6615 "builder".
6616 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6617 parameter.
6618 (dwarf_decode_macros): Update.
6619
0314b390
TT
66202020-03-26 Tom Tromey <tom@tromey.com>
6621
6622 * dwarf2/read.c (read_attribute_value): Update.
6623 (read_indirect_string_from_dwz): Move to dwz.c; change into
6624 method.
6625 (dwarf_decode_macro_bytes): Update.
6626 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6627 * dwarf2/dwz.c: New file.
6628 * Makefile.in (COMMON_SFILES): Add dwz.c.
6629
9fda78b6
TT
66302020-03-26 Tom Tromey <tom@tromey.com>
6631
6632 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6633 * dwarf2/read.c: Add include.
6634 * dwarf2/index-write.c: Add include.
6635 * dwarf2/index-cache.c: Add include.
6636 * dwarf2/dwz.h: New file.
6637
33aa3c10
TT
66382020-03-25 Tom Tromey <tom@tromey.com>
6639
6640 * compile/compile-object-load.c (get_out_value_type): Mention
6641 correct symbol name in error message.
6642
d503b685
HD
66432020-03-25 Hannes Domani <ssbssa@yahoo.de>
6644
6645 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6646
7b1eff95
TV
66472020-03-25 Tom de Vries <tdevries@suse.de>
6648
6649 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6650 * symmisc.c (dump_symtab_1): Print user and includes fields.
6651 (maintenance_info_symtabs): Same.
6652
dd895392
AB
66532020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6654
6655 PR gdb/25534
6656 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6657 (riscv_regcache_cooked_write): New function.
6658 (riscv_push_dummy_call): Use new function.
6659 (riscv_return_value): Likewise.
6660
5ab2fbf1
SM
66612020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6662
6663 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6664 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6665 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6666 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6667 * infrun.c (follow_fork): Likewise.
6668 (follow_fork_inferior): Likewise.
6669 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6670 * linux-nat.h (class linux_nat_target): Likewise.
6671 * remote.c (class remote_target) <follow_fork>: Likewise.
6672 (remote_target::follow_fork): Likewise.
6673 * target-delegates.c: Re-generate.
6674 * target.c (default_follow_fork): Likewise.
6675 (target_follow_fork): Likewise.
6676 * target.h (struct target_ops) <follow_fork>: Likewise.
6677 (target_follow_fork): Likewise.
6678
a64fafb5
TV
66792020-03-24 Tom de Vries <tdevries@suse.de>
6680
6681 * psymtab.c (maintenance_info_psymtabs): Print user field.
6682
fe26d3a3
TT
66832020-03-20 Tom Tromey <tromey@adacore.com>
6684
6685 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6686 const.
6687 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6688 const.
6689
c884cc46
SM
66902020-03-20 Simon Marchi <simon.marchi@efficios.com>
6691
6692 * ptrace.m4: Don't check for ptrace declaration.
6693 * config.in: Re-generate.
6694 * configure: Re-generate.
6695 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6696 not defined.
6697
1ff700c2
KR
66982020-03-20 Kamil Rytarowski <n54@gmx.com>
6699
6700 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6701 `PTRACE_TYPE_RET'.
6702 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6703 * sparc-nat.c (gdb_ptrace): Likewise.
6704 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6705
f7d4f0b1
TT
67062020-03-20 Tom Tromey <tromey@adacore.com>
6707
6708 * c-exp.y (lex_one_token): Fix assert.
6709
f67210ff
TT
67102020-03-20 Tom Tromey <tromey@adacore.com>
6711
6712 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6713 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6714 strncpy call.
6715
1773be9e
TT
67162020-03-20 Tom Tromey <tromey@adacore.com>
6717
6718 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6719
70304be9
TT
67202020-03-20 Tom Tromey <tromey@adacore.com>
6721
6722 * ada-valprint.c (print_variant_part): Remove parameters; switch
6723 to value-based API.
6724 (print_field_values): Likewise.
6725 (ada_val_print_struct_union): Likewise.
6726 (ada_value_print_1): Update.
6727
9faa006d
KR
67282020-03-20 Kamil Rytarowski <n54@gmx.com>
6729
6730 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6731 nbsd_nat_target instead of inf_ptrace_target.
6732 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6733 nbsd_nat_target.
6734
4a90f062
KR
67352020-03-20 Kamil Rytarowski <n54@gmx.com>
6736
6737 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6738 it to the ptrace call.
6739 * (store_registers): Likewise.
6740
67412020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6742
6743 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6744 it to the ptrace call.
6745 * (store_registers): Likewise.
6746
2d07da27
LM
67472020-03-19 Luis Machado <luis.machado@linaro.org>
6748
6749 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6750 valid, fetch vg value from ptrace.
6751
f09db380
KR
67522020-03-19 Kamil Rytarowski <n54@gmx.com>
6753 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6754 * inf-ptrace.c: Likewise.
6755 * (gdb_ptrace): Add.
6756 * (inf_ptrace_target::resume): Update.
6757 * (inf_ptrace_target::xfer_partial): Likewise.
6758 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6759 * (inf_ptrace_peek_poke): Update.
6760
fcc7376e
KR
67612020-03-19 Kamil Rytarowski <n54@gmx.com>
6762
6763 * x86-bsd-nat.c (gdb_ptrace): New.
6764 * (x86bsd_dr_set): Add new argument `ptid'.
6765 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6766 x86bsd_dr_set_addr): Update.
6767
cada5fc9
AB
67682020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6769
6770 * remote.c (remote_target::process_stop_reply): Handle events for
6771 all threads differently.
6772
19a2740f
AB
67732020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6774
6775 * completer.c (completion_tracker::remove_completion): Define new
6776 function.
6777 * completer.h (completion_tracker::remove_completion): Declare new
6778 function.
6779 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6780 when adding a C++ function symbol.
6781
724fd9ba
AB
67822020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6783
6784 * completer.c (completion_tracker::completion_hash_entry): Define
6785 new class.
6786 (advance_to_filename_complete_word_point): Call
6787 recompute_lowest_common_denominator.
6788 (completion_tracker::completion_tracker): Call discard_completions
6789 to setup the hash table.
6790 (completion_tracker::discard_completions): Allow for being called
6791 from the constructor, pass new equal function, and element deleter
6792 when constructing the hash table. Initialise new class member
6793 variables.
6794 (completion_tracker::maybe_add_completion): Remove use of
6795 m_entries_vec, and store more information into m_entries_hash.
6796 (completion_tracker::recompute_lcd_visitor): New function, most
6797 content taken from...
6798 (completion_tracker::recompute_lowest_common_denominator):
6799 ...here, this now just visits each item in the hash calling the
6800 above visitor.
6801 (completion_tracker::build_completion_result): Remove use of
6802 m_entries_vec, call recompute_lowest_common_denominator.
6803 * completer.h (completion_tracker::have_completions): Remove use
6804 of m_entries_vec.
6805 (completion_tracker::completion_hash_entry): Declare new class.
6806 (completion_tracker::recompute_lowest_common_denominator): Change
6807 function signature.
6808 (completion_tracker::recompute_lcd_visitor): Declare new function.
6809 (completion_tracker::m_entries_vec): Delete.
6810 (completion_tracker::m_entries_hash): Initialize to NULL.
6811 (completion_tracker::m_lowest_common_denominator_valid): New
6812 member variable.
6813 (completion_tracker::m_lowest_common_denominator_max_length): New
6814 member variable.
6815
5a82b8a1
KR
68162020-03-17 Kamil Rytarowski <n54@gmx.com>
6817
6818 * regformats/regdef.h: Put reg in gdb namespace.
6819
fb516a69
KR
68202020-03-17 Kamil Rytarowski <n54@gmx.com>
6821
6822 * i386-bsd-nat.c (gdb_ptrace): New.
6823 * (i386bsd_fetch_inferior_registers,
6824 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6825 * (i386bsd_fetch_inferior_registers,
6826 i386bsd_store_inferior_registers) Use gdb_ptrace.
6827
1c0aa1fb
KR
68282020-03-17 Kamil Rytarowski <n54@gmx.com>
6829
6830 * amd64-bsd-nat.c (gdb_ptrace): New.
6831 * (amd64bsd_fetch_inferior_registers,
6832 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6833 * (amd64bsd_fetch_inferior_registers,
6834 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6835
5ccd2fb7
KR
68362020-03-17 Kamil Rytarowski <n54@gmx.com>
6837
6838 * user-regs.c (user_reg::read): Rename to...
6839 (user_reg::xread): ...this.
6840 * (append_user_reg): Rename argument `read' to `xread'.
6841 * (user_reg_add_builtin): Likewise.
6842 * (user_reg_add): Likewise.
6843 * (value_of_user_reg): Likewise.
6844
2108a63a
KR
68452020-03-17 Kamil Rytarowski <n54@gmx.com>
6846
6847 * sparc-nat.c (gdb_ptrace): New.
6848 * sparc-nat.c (sparc_fetch_inferior_registers)
6849 (sparc_store_inferior_registers) Remove obsolete comment.
6850 * sparc-nat.c (sparc_fetch_inferior_registers)
6851 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6852 * sparc-nat.c (sparc_fetch_inferior_registers)
6853 (sparc_store_inferior_registers) Use gdb_ptrace.
6854
a225c9a8
KR
68552020-03-17 Kamil Rytarowski <n54@gmx.com>
6856
6857 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6858 it to the ptrace call.
6859 * sh-nbsd-nat.c (store_registers): Likewise.
6860
98097623
KR
68612020-03-17 Kamil Rytarowski <n54@gmx.com>
6862
6863 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6864 nbsd_nat_target instead of inf_ptrace_target.
6865 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6866 nbsd_nat_target.
6867
9e38d619
KR
68682020-03-17 Kamil Rytarowski <n54@gmx.com>
6869
6870 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6871
a2ecbe9f
KR
68722020-03-17 Kamil Rytarowski <n54@gmx.com>
6873
6874 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6875 <sys/sysctl.h>.
6876 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6877
58990295
TV
68782020-03-17 Tom de Vries <tdevries@suse.de>
6879
6880 PR gdb/23710
6881 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6882 fields.
6883 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6884 fields.
6885 (process_imported_unit_die): Skip import of c++ CUs.
6886
771dd3a8
TT
68872020-03-16 Tom Tromey <tom@tromey.com>
6888
6889 * p-valprint.c (pascal_object_print_value): Initialize
6890 base_value.
6891
817a7585
AK
68922020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6893 Shahab Vahedi <shahab@synopsys.com>
6894
6895 * Makefile.in: Add arch/arc.o
6896 * configure.tgt: Likewise.
6897 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6898 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6899 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6900 * arc-tdep.h (arc_read_description): Add proto type.
6901 * arch/arc.c: New file.
6902 * arch/arc.h: Likewise.
6903 * features/Makefile: Replace old target descriptions with new.
6904 * features/arc-arcompact.c: Remove.
6905 * features/arc-arcompact.xml: Likewise.
6906 * features/arc-v2.c: Likewise
6907 * features/arc-v2.xml: Likewise
6908 * features/arc/aux-arcompact.xml: New file.
6909 * features/arc/aux-v2.xml: Likewise.
6910 * features/arc/core-arcompact.xml: Likewise.
6911 * features/arc/core-v2.xml: Likewise.
6912 * features/arc/aux-arcompact.c: Generate.
6913 * features/arc/aux-v2.c: Likewise.
6914 * features/arc/core-arcompact.c: Likewise.
6915 * features/arc/core-v2.c: Likewise.
6916 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6917
67430cd0
TT
69182020-03-16 Tom Tromey <tromey@adacore.com>
6919
6920 PR gdb/25663:
6921 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6922 putting value into bcache.
6923
30efb6c7
SM
69242020-03-16 Simon Marchi <simon.marchi@efficios.com>
6925
6926 PR gdb/21500
6927 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6928 to...
6929 (amd64_windows_init_abi_common): ... this. Don't set size of
6930 long type.
6931 (amd64_windows_init_abi): New function.
6932 (amd64_cygwin_init_abi): New function.
6933 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6934 the Cygwin OS ABI.
6935 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6936 comment.
6937
8db52437
SM
69382020-03-16 Simon Marchi <simon.marchi@efficios.com>
6939
6940 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6941 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6942 (pe_import_directory_entry): New struct type.
6943 (is_linked_with_cygwin_dll): New function.
6944 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6945 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6946 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6947
5982a56a
SM
69482020-03-16 Simon Marchi <simon.marchi@efficios.com>
6949
6950 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6951 i386_cygwin_core_osabi_sniffer.
6952
7a1998df
SM
69532020-03-16 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * i386-cygwin-tdep.c: Rename to...
6956 * i386-windows-tdep.c: ... this.
6957 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6958 i386-windows-tdep.c.
6959 * configure.tgt: Likewise.
6960
053205cc
SM
69612020-03-16 Simon Marchi <simon.marchi@efficios.com>
6962
6963 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6964 * osabi.c (gdb_osabi_names): Add "Windows".
6965 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6966 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6967 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6968 i386_cygwin_osabi_sniffer.
6969 (_initialize_i386_cygwin_tdep): Register OS ABI
6970 GDB_OSABI_WINDOWS for i386.
6971 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6972 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6973 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6974 for x86-64.
6975 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6976 when the target matches '*-*-mingw*'.
6977
fe4b2ee6
SM
69782020-03-16 Simon Marchi <simon.marchi@efficios.com>
6979
6980 * defs.h (enum gdb_osabi): Move to...
6981 * osabi.h (enum gdb_osabi): ... here.
6982 * gdbarch.sh: Include osabi.h in gdbarch.h.
6983 * gdbarch.h: Re-generate.
6984
cb9b645d
SM
69852020-03-16 Simon Marchi <simon.marchi@efficios.com>
6986
6987 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6988 function.
6989 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6990
3293bbaf
TT
69912020-03-14 Tom Tromey <tom@tromey.com>
6992
6993 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6994 for C++.
6995 (c_type_print_modifier): Likewise. Add "language" parameter.
6996 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6997 (c_type_print_base_1): Update.
6998 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6999 constants.
7000 * type-stack.c (type_stack::insert): Handle tp_atomic and
7001 tp_restrict.
7002 (type_stack::follow_type_instance_flags): Likewise.
7003 (type_stack::follow_types): Likewise. Merge type-following code.
7004 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7005 (space_identifier, cv_with_space_id)
7006 (const_or_volatile_or_space_identifier_noopt)
7007 (const_or_volatile_or_space_identifier): Remove.
7008 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7009 rules.
7010 (ptr_operator, typebase): Update.
7011 (enum token_flag) <FLAG_C>: New constant.
7012 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7013 "_Atomic".
7014 (lex_one_token): Handle FLAG_C.
7015
154151a6
KR
70162020-03-14 Kamil Rytarowski <n54@gmx.com>
7017
7018 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7019 it to the ptrace call.
7020 * m68k-bsd-nat.c (store_registers): Likewise.
7021
bc107784
KR
70222020-03-14 Kamil Rytarowski <n54@gmx.com>
7023
7024 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7025 gdb_byte *.
7026 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7027 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7028 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7029
01a80117
KR
70302020-03-14 Kamil Rytarowski <n54@gmx.com>
7031
7032 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7033 nbsd_nat_target instead of inf_ptrace_target.
7034 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7035 nbsd_nat_target.
7036
f90280ca
KR
70372020-03-14 Kamil Rytarowski <n54@gmx.com>
7038
7039 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7040 register_t.
7041
6def66f1
KR
70422020-03-14 Kamil Rytarowski <n54@gmx.com>
7043
7044 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7045 it to the ptrace call.
7046 * alpha-bsd-nat.c (store_registers): Likewise.
7047
66eaca97
KR
70482020-03-14 Kamil Rytarowski <n54@gmx.com>
7049
7050 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7051 includes.
7052 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7053 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7054 fill_fpregset): Likewise.
7055
4fed520b
KR
70562020-03-14 Kamil Rytarowski <n54@gmx.com>
7057
7058 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7059 nbsd_nat_target instead of inf_ptrace_target.
7060 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7061 nbsd_nat_target.
7062
2190cf06
KR
70632020-03-14 Kamil Rytarowski <n54@gmx.com>
7064
7065 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7066 register_t.
7067
75c56d3d
KR
70682020-03-14 Kamil Rytarowski <n54@gmx.com>
7069
7070 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7071 it to the ptrace call.
7072 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7073 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7074 * arm-nbsd-nat.c (store_register): Likewise.
7075 * arm-nbsd-nat.c (store_regs): Likewise.
7076 * arm-nbsd-nat.c (store_fp_register): Likewise.
7077 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7078
6018d381
KR
70792020-03-14 Kamil Rytarowski <n54@gmx.com>
7080
7081 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7082 nbsd_nat_target instead of inf_ptrace_target.
7083 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7084 nbsd_nat_target.
7085
013f99f0
KR
70862020-03-14 Kamil Rytarowski <n54@gmx.com>
7087
7088 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7089 it to the ptrace call.
7090 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7091
12753073
KR
70922020-03-14 Kamil Rytarowski <n54@gmx.com>
7093
6227b330
KR
7094 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7095 it to the ptrace call.
7096 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7097
70982020-03-14 Kamil Rytarowski <n54@gmx.com>
7099
7100 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7101 gdb_byte *.
12753073
KR
7102 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7103
d5be5fa4
KR
71042020-03-14 Kamil Rytarowski <n54@gmx.com>
7105
7106 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7107 instead of inf_ptrace_target.
7108 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7109 nbsd_nat_target.
7110
8110f842
KR
71112020-03-14 Kamil Rytarowski <n54@gmx.com>
7112
7113 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7114 register_t.
7115
52feded7
KR
71162020-03-14 Kamil Rytarowski <n54@gmx.com>
7117
7118 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7119 register_t.
7120
25567eee
KR
71212020-03-14 Kamil Rytarowski <n54@gmx.com>
7122
7123 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7124 register_t.
7125
426a9c18
TT
71262020-03-13 Tom Tromey <tom@tromey.com>
7127
7128 * value.h (val_print): Don't declare.
7129 * valprint.h (val_print_array_elements)
7130 (val_print_scalar_formatted, generic_val_print): Don't declare.
7131 * valprint.c (generic_val_print_array): Take a struct value.
7132 (generic_val_print_ptr, generic_val_print_memberptr)
7133 (generic_val_print_bool, generic_val_print_int)
7134 (generic_val_print_char, generic_val_print_complex)
7135 (generic_val_print): Remove.
7136 (generic_value_print): Update.
7137 (do_val_print): Remove unused parameters. Don't call
7138 la_val_print.
7139 (val_print): Remove.
7140 (common_val_print): Update. Don't call value_check_printable.
7141 (val_print_scalar_formatted, val_print_array_elements): Remove.
7142 * rust-lang.c (rust_val_print): Remove.
7143 (rust_language_defn): Update.
7144 * p-valprint.c (pascal_val_print): Remove.
7145 (pascal_value_print_inner): Update.
7146 (pascal_object_print_val_fields, pascal_object_print_val):
7147 Remove.
7148 (pascal_object_print_static_field): Update.
7149 * p-lang.h (pascal_val_print): Don't declare.
7150 * p-lang.c (pascal_language_defn): Update.
7151 * opencl-lang.c (opencl_language_defn): Update.
7152 * objc-lang.c (objc_language_defn): Update.
7153 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7154 * m2-lang.h (m2_val_print): Don't declare.
7155 * m2-lang.c (m2_language_defn): Update.
7156 * language.h (struct language_defn) <la_val_print>: Remove.
7157 * language.c (unk_lang_value_print_inner): Rename. Change
7158 argument types.
7159 (unknown_language_defn, auto_language_defn): Update.
7160 * go-valprint.c (go_val_print): Remove.
7161 * go-lang.h (go_val_print): Don't declare.
7162 * go-lang.c (go_language_defn): Update.
7163 * f-valprint.c (f_val_print): Remove.
7164 * f-lang.h (f_value_print): Don't declare.
7165 * f-lang.c (f_language_defn): Update.
7166 * d-valprint.c (d_val_print): Remove.
7167 * d-lang.h (d_value_print): Don't declare.
7168 * d-lang.c (d_language_defn): Update.
7169 * cp-valprint.c (cp_print_value_fields)
7170 (cp_print_value_fields_rtti, cp_print_value): Remove.
7171 (cp_print_static_field): Update.
7172 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7173 (c_val_print_struct, c_val_print_union, c_val_print_int)
7174 (c_val_print_memberptr, c_val_print): Remove.
7175 * c-lang.h (c_val_print_array, cp_print_value_fields)
7176 (cp_print_value_fields_rtti): Don't declare.
7177 * c-lang.c (c_language_defn, cplus_language_defn)
7178 (asm_language_defn, minimal_language_defn): Update.
7179 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7180 (ada_val_print_enum): Take a struct value.
7181 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7182 (ada_val_print): Remove.
7183 (ada_value_print_1): Update.
7184 (printable_val_type): Remove.
7185 * ada-lang.h (ada_val_print): Don't declare.
7186 * ada-lang.c (ada_language_defn): Update.
7187
42331a1e
TT
71882020-03-13 Tom Tromey <tom@tromey.com>
7189
7190 * valprint.c (do_val_print): Update.
7191 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7192 a struct value.
7193 (value_to_value_object_no_release): Declare.
7194 * python/py-value.c (value_to_value_object_no_release): New
7195 function.
7196 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7197 struct value.
7198 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7199 function.
7200 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7201 a struct value.
7202 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7203 Declare.
7204 (gdbscm_apply_val_pretty_printer): Take a struct value.
7205 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7206 value.
7207 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7208 value.
7209 * extension-priv.h (struct extension_language_ops)
7210 <apply_val_pretty_printer>: Take a struct value.
7211 * cp-valprint.c (cp_print_value): Create a struct value.
7212 (cp_print_value): Update.
7213
3a916a97
TT
72142020-03-13 Tom Tromey <tom@tromey.com>
7215
7216 * ada-valprint.c (print_field_values): Call common_val_print.
7217
b59eac37
TT
72182020-03-13 Tom Tromey <tom@tromey.com>
7219
7220 * ada-valprint.c (val_print_packed_array_elements): Remove
7221 bitoffset and val parameters. Call common_val_print.
7222 (ada_val_print_string): Remove offset, address, and original_value
7223 parameters.
7224 (ada_val_print_array): Update.
7225 (ada_value_print_array): New function.
7226 (ada_value_print_1): Call it.
7227
03371129
TT
72282020-03-13 Tom Tromey <tom@tromey.com>
7229
7230 * ada-valprint.c (ada_value_print): Use common_val_print.
7231
2e088f8b
TT
72322020-03-13 Tom Tromey <tom@tromey.com>
7233
7234 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7235
39ef85a8
TT
72362020-03-13 Tom Tromey <tom@tromey.com>
7237
7238 * ada-valprint.c (ada_value_print_num): New function.
7239 (ada_value_print_1): Use it.
7240
b9fa6e07
TT
72412020-03-13 Tom Tromey <tom@tromey.com>
7242
7243 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7244
416595d6
TT
72452020-03-13 Tom Tromey <tom@tromey.com>
7246
7247 * ada-valprint.c (ada_value_print_ptr): New function.
7248 (ada_value_print_1): Use it.
7249
5b5e15ec
TT
72502020-03-13 Tom Tromey <tom@tromey.com>
7251
7252 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7253 call common_val_print.
7254 (ada_val_print_1): Update.
7255 (ada_value_print_1): New function.
7256 (ada_value_print_inner): Rewrite.
7257
fbf54e75
TT
72582020-03-13 Tom Tromey <tom@tromey.com>
7259
7260 * cp-valprint.c (cp_print_value_fields): Update.
7261 (cp_print_value): New function.
7262
64b653ca
TT
72632020-03-13 Tom Tromey <tom@tromey.com>
7264
7265 * m2-valprint.c (m2_value_print_inner): Use
7266 cp_print_value_fields.
7267 * cp-valprint.c (cp_print_value_fields): New function.
7268 * c-valprint.c (c_value_print_struct): New function.
7269 (c_value_print_inner): Use c_value_print_struct.
7270 * c-lang.h (cp_print_value_fields): Declare.
7271
6999f067
TT
72722020-03-13 Tom Tromey <tom@tromey.com>
7273
7274 * c-valprint.c (c_value_print_array): New function.
7275 (c_value_print_inner): Use it.
7276
ce80b8bd
TT
72772020-03-13 Tom Tromey <tom@tromey.com>
7278
7279 * c-valprint.c (c_value_print_memberptr): New function.
7280 (c_value_print_inner): Use it.
7281
2faac269
TT
72822020-03-13 Tom Tromey <tom@tromey.com>
7283
7284 * c-valprint.c (c_value_print_int): New function.
7285 (c_value_print_inner): Use it.
7286
da3e2c29
TT
72872020-03-13 Tom Tromey <tom@tromey.com>
7288
7289 * c-valprint.c (c_value_print_ptr): New function.
7290 (c_value_print_inner): Use it.
7291
50836231
TT
72922020-03-13 Tom Tromey <tom@tromey.com>
7293
7294 * c-valprint.c (c_value_print_inner): Rewrite.
7295
4f412b6e
TT
72962020-03-13 Tom Tromey <tom@tromey.com>
7297
7298 * valprint.c (generic_value_print_complex): New function.
7299 (generic_value_print): Use it.
7300
f5354008
TT
73012020-03-13 Tom Tromey <tom@tromey.com>
7302
7303 * valprint.c (generic_val_print_float): Don't call
7304 val_print_scalar_formatted.
7305 (generic_val_print, generic_value_print): Update.
7306
3eec3b05
TT
73072020-03-13 Tom Tromey <tom@tromey.com>
7308
7309 * valprint.c (generic_value_print_char): New function
7310 (generic_value_print): Use it.
7311
fdddfccb
TT
73122020-03-13 Tom Tromey <tom@tromey.com>
7313
7314 * valprint.c (generic_value_print_int): New function.
7315 (generic_value_print): Use it.
7316
6dde7521
TT
73172020-03-13 Tom Tromey <tom@tromey.com>
7318
7319 * valprint.c (generic_value_print_bool): New function.
7320 (generic_value_print): Use it.
7321
4112d2e6
TT
73222020-03-13 Tom Tromey <tom@tromey.com>
7323
7324 * valprint.c (generic_val_print_func): Simplify.
7325 (generic_val_print, generic_value_print): Update.
7326
65786af6
TT
73272020-03-13 Tom Tromey <tom@tromey.com>
7328
7329 * valprint.c (generic_val_print_flags): Remove.
7330 (generic_val_print, generic_value_print): Update.
7331 (val_print_type_code_flags): Add original_value parameter.
7332
40f3ce18
TT
73332020-03-13 Tom Tromey <tom@tromey.com>
7334
7335 * valprint.c (generic_val_print): Update.
7336 (generic_value_print): Update.
7337 * valprint.c (generic_val_print_enum): Don't call
7338 val_print_scalar_formatted.
7339
2a5b130b
TT
73402020-03-13 Tom Tromey <tom@tromey.com>
7341
7342 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7343 * valprint.c (generic_value_print_ptr): New function.
7344
abc66ce9
TT
73452020-03-13 Tom Tromey <tom@tromey.com>
7346
7347 * valprint.c (generic_value_print): Rewrite.
7348
07a32858
TT
73492020-03-13 Tom Tromey <tom@tromey.com>
7350
7351 * p-valprint.c (pascal_object_print_value_fields)
7352 (pascal_object_print_value): New functions.
7353
64d64d3a
TT
73542020-03-13 Tom Tromey <tom@tromey.com>
7355
7356 * p-valprint.c (pascal_value_print_inner): Rewrite.
7357
6a95a1f5
TT
73582020-03-13 Tom Tromey <tom@tromey.com>
7359
7360 * f-valprint.c (f_value_print_innner): Rewrite.
7361
59fcdac6
TT
73622020-03-13 Tom Tromey <tom@tromey.com>
7363
7364 * m2-valprint.c (m2_print_unbounded_array): New overload.
7365 (m2_print_unbounded_array): Update.
7366 (m2_print_array_contents): Take a struct value.
7367 (m2_value_print_inner): Rewrite.
7368
d133c3e1
TT
73692020-03-13 Tom Tromey <tom@tromey.com>
7370
7371 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7372 (d_value_print_inner): New function.
7373 * d-lang.h (d_value_print_inner): Declare.
7374 * d-lang.c (d_language_defn): Use d_value_print_inner.
7375
23b0f06b
TT
73762020-03-13 Tom Tromey <tom@tromey.com>
7377
7378 * go-valprint.c (go_value_print_inner): New function.
7379 * go-lang.h (go_value_print_inner): Declare.
7380 * go-lang.c (go_language_defn): Use go_value_print_inner.
7381
5f56f7cb
TT
73822020-03-13 Tom Tromey <tom@tromey.com>
7383
7384 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7385 API.
7386 (rust_val_print): Rewrite.
7387 (rust_value_print_inner): New function, from rust_val_print.
7388 (rust_language_defn): Use rust_value_print_inner.
7389
26792ee0
TT
73902020-03-13 Tom Tromey <tom@tromey.com>
7391
7392 * ada-valprint.c (ada_value_print_inner): New function.
7393 * ada-lang.h (ada_value_print_inner): Declare.
7394 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7395
24051bbe
TT
73962020-03-13 Tom Tromey <tom@tromey.com>
7397
7398 * f-valprint.c (f_value_print_innner): New function.
7399 * f-lang.h (f_value_print_innner): Declare.
7400 * f-lang.c (f_language_defn): Use f_value_print_innner.
7401
c0941be6
TT
74022020-03-13 Tom Tromey <tom@tromey.com>
7403
7404 * p-valprint.c (pascal_value_print_inner): New function.
7405 * p-lang.h (pascal_value_print_inner): Declare.
7406 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7407
62c4663d
TT
74082020-03-13 Tom Tromey <tom@tromey.com>
7409
7410 * m2-valprint.c (m2_value_print_inner): New function.
7411 * m2-lang.h (m2_value_print_inner): Declare.
7412 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7413
62182190
TT
74142020-03-13 Tom Tromey <tom@tromey.com>
7415
7416 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7417 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7418 * c-valprint.c (c_value_print_inner): New function.
7419 * c-lang.h (c_value_print_inner): Declare.
7420 * c-lang.c (c_language_defn, cplus_language_defn)
7421 (asm_language_defn, minimal_language_defn): Use
7422 c_value_print_inner.
7423
1e592a8a
TT
74242020-03-13 Tom Tromey <tom@tromey.com>
7425
7426 * p-valprint.c (pascal_object_print_value_fields): Now static.
7427 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7428
7fe471e9
TT
74292020-03-13 Tom Tromey <tom@tromey.com>
7430
7431 * c-valprint.c (c_val_print_array): Simplify.
7432
d121c6ce
TT
74332020-03-13 Tom Tromey <tom@tromey.com>
7434
7435 * valprint.c (value_print_array_elements): New function.
7436 * valprint.h (value_print_array_elements): Declare.
7437
4dba70ee
TT
74382020-03-13 Tom Tromey <tom@tromey.com>
7439
7440 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7441 * mips-tdep.c (mips_print_register): Use
7442 value_print_scalar_formatted.
7443
4f9ae810
TT
74442020-03-13 Tom Tromey <tom@tromey.com>
7445
7446 * valprint.h (value_print_scalar_formatted): Declare.
7447 * valprint.c (value_print_scalar_formatted): New function.
7448
156bfec9
TT
74492020-03-13 Tom Tromey <tom@tromey.com>
7450
7451 * valprint.h (generic_value_print): Declare.
7452 * valprint.c (generic_value_print): New function.
7453
2b4e573d
TT
74542020-03-13 Tom Tromey <tom@tromey.com>
7455
7456 * valprint.c (do_val_print): Call la_value_print_inner, if
7457 available.
7458 * rust-lang.c (rust_language_defn): Update.
7459 * p-lang.c (pascal_language_defn): Update.
7460 * opencl-lang.c (opencl_language_defn): Update.
7461 * objc-lang.c (objc_language_defn): Update.
7462 * m2-lang.c (m2_language_defn): Update.
7463 * language.h (struct language_defn) <la_value_print_inner>: New
7464 member.
7465 * language.c (unknown_language_defn, auto_language_defn): Update.
7466 * go-lang.c (go_language_defn): Update.
7467 * f-lang.c (f_language_defn): Update.
7468 * d-lang.c (d_language_defn): Update.
7469 * c-lang.c (c_language_defn, cplus_language_defn)
7470 (asm_language_defn, minimal_language_defn): Update.
7471 * ada-lang.c (ada_language_defn): Update.
7472
a1f6a07c
TT
74732020-03-13 Tom Tromey <tom@tromey.com>
7474
7475 * c-valprint.c (c_value_print): Use common_val_print.
7476
410cf315
TT
74772020-03-13 Tom Tromey <tom@tromey.com>
7478
7479 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7480
72a45c93
TT
74812020-03-13 Tom Tromey <tom@tromey.com>
7482
7483 * f-valprint.c (f77_print_array_1, f_val_print): Use
7484 common_val_print.
7485
040f66bd
TT
74862020-03-13 Tom Tromey <tom@tromey.com>
7487
7488 * riscv-tdep.c (riscv_print_one_register_info): Use
7489 common_val_print.
7490
a6e05a6c
TT
74912020-03-13 Tom Tromey <tom@tromey.com>
7492
7493 * mi/mi-main.c (output_register): Use common_val_print.
7494
3444c526
TT
74952020-03-13 Tom Tromey <tom@tromey.com>
7496
7497 * infcmd.c (default_print_one_register_info): Use
7498 common_val_print.
7499
c2a44efe
TT
75002020-03-13 Tom Tromey <tom@tromey.com>
7501
7502 * valprint.h (common_val_print_checked): Declare.
7503 * valprint.c (common_val_print_checked): New function.
7504 * stack.c (print_frame_arg): Use common_val_print_checked.
7505
b0c26e99
TT
75062020-03-13 Tom Tromey <tom@tromey.com>
7507
7508 * valprint.c (do_val_print): New function, from val_print.
7509 (val_print): Use do_val_print.
7510 (common_val_print): Use do_val_print.
7511
ce3acbe9
TT
75122020-03-13 Tom Tromey <tom@tromey.com>
7513
7514 * valprint.c (value_print): Use scoped_value_mark.
7515
96c7f873
TV
75162020-03-13 Tom de Vries <tdevries@suse.de>
7517
7518 PR symtab/25646
7519 * psymtab.c (partial_symtab::partial_symtab): Don't set
7520 globals_offset and statics_offset. Push element onto
7521 current_global_psymbols and current_static_psymbols stacks.
7522 (concat): New function.
7523 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7524 element from current_global_psymbols and current_static_psymbols
7525 stacks. Concat popped elements to global_psymbols and
7526 static_symbols.
7527 (add_psymbol_to_list): Use current_global_psymbols and
7528 current_static_psymbols stacks.
7529 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7530 current_static_psymbols fields.
7531
6ba0a321
CB
75322020-03-12 Christian Biesinger <cbiesinger@google.com>
7533
7534 * corelow.c (sniff_core_bfd): Remove.
7535 (class core_target) <m_core_vec>: Remove.
7536 (core_target::core_target): Update.
7537 (core_file_fns): Remove.
7538 (deprecated_add_core_fns): Remove.
7539 (default_core_sniffer): Remove.
7540 (sniff_core_bfd): Remove.
7541 (default_check_format): Remove.
7542 (gdb_check_format): Remove.
7543 (core_target_open): Update.
7544 (core_target::get_core_register_section): Update.
7545 (get_core_registers_cb): Update.
7546 (core_target::fetch_registers): Update.
7547 * gdbcore.h (struct core_fns): Remove.
7548 (deprecated_add_core_fns): Remove.
7549 (default_core_sniffer): Remove.
7550 (default_check_format): Remove.
7551
227031b2
TT
75522020-03-12 Tom Tromey <tom@tromey.com>
7553
7554 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7555 CORE_ADDR.
7556 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7557
53807e9f
TT
75582020-03-12 Tom Tromey <tom@tromey.com>
7559
7560 * remote.c (remote_target::download_tracepoint)
7561 (remote_target::enable_tracepoint)
7562 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7563 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7564 sprintf_vma.
7565
64f25102
TT
75662020-03-12 Tom Tromey <tom@tromey.com>
7567
7568 * symfile-mem.c: Update CORE_ADDR size assert.
7569
272cd5a3
SM
75702020-03-12 Simon Marchi <simon.marchi@efficios.com>
7571
7572 * selftest.m4: Move to gdbsupport/.
7573 * acinclude.m4: Update path to selftest.m4.
7574
74cd3f9d
SM
75752020-03-12 Simon Marchi <simon.marchi@efficios.com>
7576
7577 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7578 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7579 gdbarch-selfselftests.c and selftest-arch.c.
7580 (SUBDIR_UNITTESTS_OBS): Rename to...
7581 (SELFTESTS_OBS): ... this.
7582 (COMMON_SFILES): Remove disasm-selftests.c and
7583 gdbarch-selftests.c.
7584 * configure.ac: Don't add selftest-arch.{c,o} to
7585 CONFIG_{SRCS,OBS}.
7586 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7587 preprocessor conditions.
7588
db6878ac
SM
75892020-03-12 Simon Marchi <simon.marchi@efficios.com>
7590
7591 * configure.ac: Don't source bfd/development.sh.
7592 * selftest.m4: Modify comment.
7593 * configure: Re-generate.
7594
4d696a5c
SM
75952020-03-12 Simon Marchi <simon.marchi@efficios.com>
7596
7597 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7598 not "true" or "false".
7599 * configure: Re-generate.
7600
8dd8e1c7
CB
76012020-03-12 Christian Biesinger <cbiesinger@google.com>
7602
7603 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7604 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7605 renamed to arm_nbsd_supply_gregset.
7606 (fetch_register): Update to call arm_nbsd_supply_gregset.
7607 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7608 (arm_netbsd_nat_target::fetch_registers): Update.
7609 (fetch_elfcore_registers): Removed.
7610 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7611 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7612 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7613 not require NetBSD system headers.
7614 (arm_nbsd_regset): New struct.
7615 (arm_nbsd_iterate_over_regset_sections): New function.
7616 (arm_netbsd_init_abi_common): Updated to call
7617 set_gdbarch_iterate_over_regset_sections.
7618 * arm-nbsd-tdep.h: New file.
7619
dd69bf7a
KB
76202020-03-11 Kevin Buettner <kevinb@redhat.com>
7621
7622 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7623 recursion.
7624
a0761e34
SM
76252020-03-11 Simon Marchi <simon.marchi@efficios.com>
7626
7627 * configure: Re-generate.
7628
e7a82140
TT
76292020-03-11 Tom Tromey <tromey@adacore.com>
7630
7631 * ada-typeprint.c (print_choices): Fix comment.
7632
dcc050c8
AB
76332020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7634
7635 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7636 previous item in the list, when the list has no items.
7637
1c33af77
TV
76382020-03-11 Tom de Vries <tdevries@suse.de>
7639
7640 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7641 PROP_LOCLIST handling code.
7642
8c95582d
AB
76432020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7644
7645 * buildsym-legacy.c (record_line): Pass extra parameter to
7646 record_line.
7647 * buildsym.c (buildsym_compunit::record_line): Take an extra
7648 parameter, reduce duplication in the line table, and record the
7649 is_stmt flag in the line table.
7650 * buildsym.h (buildsym_compunit::record_line): Add extra
7651 parameter.
7652 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7653 non-statement lines.
7654 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7655 this to the symtab builder.
7656 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7657 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7658 through to dwarf_record_line_1.
7659 * infrun.c (process_event_stop_test): When stepping, don't stop at
7660 a non-statement instruction, and only refresh the step info when
7661 we land in the middle of a line's range. Also add an extra
7662 comment.
7663 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7664 field.
7665 * record-btrace.c (btrace_find_line_range): Only record lines
7666 marked as is-statement.
7667 * stack.c (frame_show_address): Show the frame address if we are
7668 in a non-statement sal.
7669 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7670 (maintenance_print_one_line_table): Print a header for the is_stmt
7671 column, and include is_stmt information in the output.
7672 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7673 preference to non-statements.
7674 (find_pcs_for_symtab_line): Prefer is-statement entries.
7675 (find_line_common): Likewise.
7676 * symtab.h (struct linetable_entry): Add is_stmt field.
7677 (struct symtab_and_line): Likewise.
7678 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7679 arranging the line table.
7680
e4003a34
TV
76812020-03-07 Tom de Vries <tdevries@suse.de>
7682
7683 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7684 DIE.
7685
e8932576
TT
76862020-03-07 Tom Tromey <tom@tromey.com>
7687
7688 * valops.c (value_literal_complex): Remove obsolete comment.
7689 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7690 comment.
7691
29734269
SM
76922020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7693
7694 * infrun.h: Forward-declare thread_info.
7695 (set_step_info): Add thread_info parameter, add doc.
7696 * infrun.c (set_step_info): Add thread_info parameter, move doc
7697 to header.
7698 * infrun.c (process_event_stop_test): Pass thread to
7699 set_step_info call.
7700 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7701 set_step_info.
7702 (prepare_one_step): Add thread_info parameter, pass it to
7703 set_step_frame and prepare_one_step (recursive) call.
7704 (step_1): Pass thread to prepare_one_step call.
7705 (step_command_fsm::should_stop): Pass thread to
7706 prepare_one_step.
7707 (until_next_fsm): Pass thread to set_step_frame call.
7708 (finish_command): Pass thread to set_step_info call.
7709
b7d64b29
HD
77102020-03-06 Hannes Domani <ssbssa@yahoo.de>
7711
7712 * windows-tdep.c (windows_solib_create_inferior_hook):
7713 Check if inferior is running.
7714
09f2921c
TV
77152020-03-06 Tom de Vries <tdevries@suse.de>
7716
7717 * NEWS: Fix "the the".
7718 * ctfread.c: Same.
7719
fd760e79
TV
77202020-03-06 Tom de Vries <tdevries@suse.de>
7721
7722 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7723
20ea4a60
AB
77242020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7725
7726 * .dir-locals.el: Add a comment referencing the other copies of
7727 this file.
7728
0afbabf0
JB
77292020-03-05 John Baldwin <jhb@FreeBSD.org>
7730
7731 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7732 psargs.
7733
842806cb
TBA
77342020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7735
7736 * .gitattributes: New file.
7737
be1e3d3e
TT
77382020-03-04 Tom Tromey <tom@tromey.com>
7739
7740 * symmisc.c (print_symbol_bcache_statistics)
7741 (print_objfile_statistics): Update.
7742 * symfile.c (allocate_symtab): Use intern.
7743 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7744 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7745 macro_cache>: Remove.
7746 <string_cache>: New member.
7747 (struct objfile) <intern>: New methods.
7748 * elfread.c (elf_symtab_read): Use intern.
7749 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7750 (dwarf2_compute_name, dwarf2_physname)
7751 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7752 names.
7753 (guess_partial_die_structure_name): Update.
7754 (partial_die_info::fixup): Intern name.
7755 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7756 name.
7757 (dwarf2_name): Intern name. Update.
7758 * buildsym.c (buildsym_compunit::get_macro_table): Use
7759 string_cache.
7760
4e7625fd
TT
77612020-03-04 Tom Tromey <tom@tromey.com>
7762
7763 * jit.c (bfd_open_from_target_memory): Make "target" const.
7764 * corefile.c (gnutarget): Now const.
7765 * gdbcore.h (gnutarget): Now const.
7766
46f9f931
HD
77672020-03-04 Hannes Domani <ssbssa@yahoo.de>
7768
7769 * NEWS: Mention support for WOW64 processes.
7770 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7771 (amd64_windows_segment_register_p): Remove static.
7772 (_initialize_amd64_windows_nat): Update.
7773 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7774 * i386-windows-nat.c (context_offset): Update.
7775 (i386_mappings): Rename and remove static.
7776 (i386_windows_segment_register_p): Remove static.
7777 (_initialize_i386_windows_nat): Update.
7778 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7779 (STATUS_WX86_SINGLE_STEP): New macro.
7780 (EnumProcessModulesEx): New macro.
7781 (Wow64SuspendThread): New macro.
7782 (Wow64GetThreadContext): New macro.
7783 (Wow64SetThreadContext): New macro.
7784 (Wow64GetThreadSelectorEntry): New macro.
7785 (windows_set_context_register_offsets): Add static.
7786 (windows_set_segment_register_p): Likewise.
7787 (windows_add_thread): Adapt for WOW64 processes.
7788 (windows_fetch_one_register): Likewise.
7789 (windows_nat_target::fetch_registers): Likewise.
7790 (windows_store_one_register): Likewise.
7791 (display_selector): Likewise.
7792 (display_selectors): Likewise.
7793 (handle_exception): Likewise.
7794 (windows_continue): Likewise.
7795 (windows_nat_target::resume): Likewise.
7796 (windows_add_all_dlls): Likewise.
7797 (do_initial_windows_stuff): Likewise.
7798 (windows_nat_target::attach): Likewise.
7799 (windows_get_exec_module_filename): Likewise.
7800 (windows_nat_target::create_inferior): Likewise.
7801 (windows_xfer_siginfo): Likewise.
7802 (_initialize_loadable): Initialize Wow64SuspendThread,
7803 Wow64GetThreadContext, Wow64SetThreadContext,
7804 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7805 * windows-nat.h (windows_set_context_register_offsets):
7806 Remove declaration.
7807 (windows_set_segment_register_p): Likewise.
7808 (i386_windows_segment_register_p): Add declaration.
7809 (amd64_windows_segment_register_p): Likewise.
7810
440cf44e
LM
78112020-03-04 Luis Machado <luis.machado@linaro.org>
7812
7813 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7814 in "info registers" for AArch64/ARM.
7815
7816 The change caused "info registers" to not print GPR's.
7817
7818 gdb/ChangeLog:
7819
7820 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7821
7822 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7823 when reg->group is empty and reggroup is not.
7824
1009d92f
TT
78252020-03-03 Tom Tromey <tromey@adacore.com>
7826
7827 * dwarf2/frame.c (struct dwarf2_frame_cache)
7828 <checked_tailcall_bottom, entry_cfa_sp_offset,
7829 entry_cfa_sp_offset_p>: Remove members.
7830 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7831 (dwarf2_frame_prev_register): Don't call
7832 dwarf2_tailcall_sniffer_first.
7833 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7834 * frame-unwind.c (add_unwinder): New fuction.
7835 (frame_unwind_init): Use it. Add tailcall unwinder.
7836
5e5d66b6
AB
78372020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7838 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7839
7840 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7841 value should be printed as true.
7842
584cf46d
HD
78432020-03-03 Hannes Domani <ssbssa@yahoo.de>
7844
7845 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7846 (windows_init_abi): Set and use windows_so_ops.
7847
7b973adc
SDJ
78482020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7849
7850 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7851 when verifying if dealing with a convenience variable.
7852
bb7b70ab
LM
78532020-03-03 Luis Machado <luis.machado@linaro.org>
7854
7855 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7856
9822cb57
SM
78572020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7858
7859 * infrun.c (gdbarch_supports_displaced_stepping): New.
7860 (use_displaced_stepping): Break up conditions in smaller pieces.
7861 Use gdbarch_supports_displaced_stepping.
7862 (displaced_step_prepare_throw): Use
7863 gdbarch_supports_displaced_stepping.
7864
63e163f2
AB
78652020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7866
7867 * NEWS: Mention new behaviour of the history filename.
7868 * top.c (write_history_p): Add comment.
7869 (show_write_history_p): Add header comment, give a different
7870 message when history writing is on, but the history filename is
7871 empty.
7872 (history_filename): Add comment.
7873 (history_filename_empty): New function.
7874 (show_history_filename): Add header comment, give a different
7875 message when the filename is empty.
7876 (init_history): Compare history_filename against nullptr, and only
7877 read history if the filename is not empty.
7878 (set_history_filename): Add header comment, and only make
7879 non-empty filenames absolute.
7880 (init_main): Make the filename argument to 'set history filename'
7881 optional.
7882
81b86b97
CB
78832020-03-02 Christian Biesinger <cbiesinger@google.com>
7884
7885 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7886 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7887 (fetch_fp_register): Update.
7888 (fetch_fp_regs): Update.
7889 (store_fp_register): Update.
7890 (store_fp_regs): Update.
7891 (arm_netbsd_nat_target::read_description): New function.
7892 (fetch_elfcore_registers): Update.
7893
24ed6739
AB
78942020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7895
7896 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7897 general_thread if the stop reply is missing a thread-id.
7898 (remote_target::process_stop_reply): Use the first non-exited
7899 thread if the target didn't pass a thread-id.
7900 * infrun.c (do_target_wait): Move call to
7901 switch_to_inferior_no_thread to ....
7902 (do_target_wait_1): ... here.
7903
a84bb2a0
JT
79042020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7905
7906 * debuginfod-support.c: Include defs.h first.
7907
658dadf0
TV
79082020-02-28 Tom de Vries <tdevries@suse.de>
7909
7910 * symfile.c (set_initial_language): Use default language for lookup.
7911
4ebe4877
SM
79122020-02-28 Simon Marchi <simon.marchi@efficios.com>
7913
7914 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7915 reader variable, pass `this` to read_cutu_die_from_dwo.
7916
e5da1139
AM
79172020-02-27 Aaron Merey <amerey@redhat.com>
7918
7919 * source.c (open_source_file): Check for nullptr when computing
7920 srcpath.
7921
317f7127
TT
79222020-02-27 Tom Tromey <tromey@adacore.com>
7923
7924 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7925 member.
7926 (dwarf2_add_field): Don't update nfields.
7927 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7928
3104d9ee
AB
79292020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7930
7931 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7932 abs.
7933
b83470bf
TT
79342020-02-26 Tom Tromey <tom@tromey.com>
7935
7936 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7937 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7938 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7939 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7940 per_cu_data.
7941
edfe0a0c
TT
79422020-02-26 Tom Tromey <tom@tromey.com>
7943
7944 * dwarf2/index-write.c (psym_index_map): Change type.
7945 (add_address_entry_worker, write_one_signatured_type)
7946 (recursively_count_psymbols, recursively_write_psymbols)
7947 (class debug_names, psyms_seen_size, write_gdbindex)
7948 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7949
0d79cdc4
AM
79502020-02-26 Aaron Merey <amerey@redhat.com>
7951
7952 * Makefile.in: Handle optional debuginfod support.
7953 * NEWS: Update.
7954 * README: Add --with-debuginfod summary.
7955 * config.in: Regenerate.
7956 * configure: Regenerate.
7957 * configure.ac: Handle optional debuginfod support.
7958 * debuginfod-support.c: debuginfod helper functions.
7959 * debuginfod-support.h: Ditto.
7960 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7961 summary.
7962 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7963 when a dwz file cannot be found.
7964 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7965 debuginfo file cannot be found.
7966 * source.c (open_source_file): Query debuginfod servers when a
7967 source file cannot be found.
7968 * top.c (print_gdb_configuration): Include
7969 --{with,without}-debuginfod in the output.
7970
b65ce565
JG
79712020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7972
7973 * thread.c (thr_try_catch_cmd): Print thread name.
7974
d4c9a4f8
SM
79752020-02-26 Simon Marchi <simon.marchi@efficios.com>
7976
7977 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7978 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7979 dwarf2_fetch_die_type_sect_off): Move to...
7980 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7981 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7982 dwarf2_fetch_die_type_sect_off): ... here.
7983 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7984 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7985 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7986
0dce4280
TV
79872020-02-26 Tom de Vries <tdevries@suse.de>
7988
7989 PR gdb/25603
7990 * symfile.c (set_initial_language): Exit-early if
7991 language_mode == language_mode_manual.
7992
450a1bfc
SM
79932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7994
7995 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7996 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7997 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7998
9e80cfa1
AB
79992020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8000
8001 * gdbtypes.c (create_array_type_with_stride): Handle negative
8002 array strides.
8003 * valarith.c (value_subscripted_rvalue): Likewise.
8004
09624f1f
LM
80052020-02-25 Luis Machado <luis.machado@linaro.org>
8006
8007 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8008
8cb5117c
SM
80092020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8010
8011 * loc.h (dwarf2_get_die_type): Move to...
8012 * read.h (dwarf2_get_die_type): ... here.
8013 * read.c (dwarf2_get_die_type): Move doc to header.
8014
c325c44e
JB
80152020-02-25 Joel Brobecker <brobecker@adacore.com>
8016
8017 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8018 'gnulib/Makefile.in' to the list.
8019
4ac93832
TT
80202020-02-24 Tom Tromey <tom@tromey.com>
8021
8022 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8023 Remove.
8024 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8025 XOBNEWVEC.
8026
197400e8
TT
80272020-02-24 Tom Tromey <tom@tromey.com>
8028
8029 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8030 New method.
8031 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8032 (dw2_do_instantiate_symtab, dw2_get_file_names)
8033 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8034
76935768
TT
80352020-02-24 Tom Tromey <tom@tromey.com>
8036
8037 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8038 make_scoped_restore.
8039 (dwarf2_psymtab::read_symtab): Don't clear
8040 reading_partial_symbols.
8041
a88ef40d
TV
80422020-02-24 Tom de Vries <tdevries@suse.de>
8043
8044 PR gdb/25592
8045 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8046
c9af6521
TV
80472020-02-24 Tom de Vries <tdevries@suse.de>
8048
8049 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8050 commands layout next/prev/regs.
8051
5707a07a
TT
80522020-02-22 Tom Tromey <tom@tromey.com>
8053
8054 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8055 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8056
3b0fb49e
TT
80572020-02-22 Tom Tromey <tom@tromey.com>
8058
8059 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8060
283be8bf
TT
80612020-02-22 Tom Tromey <tom@tromey.com>
8062
8063 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8064 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8065 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8066 * tui/tui.c (_initialize_tui): Add usage text.
8067
ca793b96
TT
80682020-02-22 Tom Tromey <tom@tromey.com>
8069
8070 * tui/tui-win.c (tui_set_focus_command)
8071 (tui_set_win_height_command): Use error_no_arg.
8072 (_initialize_tui_win): Update help text.
8073 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8074
432b5c40
TT
80752020-02-22 Tom Tromey <tom@tromey.com>
8076
8077 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8078 * tui/tui-disasm.h (struct tui_disasm_window)
8079 <display_start_addr>: Declare.
8080 * tui/tui-source.h (struct tui_source_window)
8081 <display_start_addr>: Declare.
8082 * tui/tui-winsource.h (struct tui_source_window_base)
8083 <show_source_line, display_start_addr>: New methods.
8084 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8085 Rename and move to protected section.
8086 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8087 (tui_source_window_base::do_erase_source_content): Update.
8088 (tui_source_window_base::show_source_line): Now a method.
8089 (tui_source_window_base::show_source_content)
8090 (tui_source_window_base::tui_source_window_base)
8091 (tui_source_window_base::rerender)
8092 (tui_source_window_base::refill)
8093 (tui_source_window_base::do_scroll_horizontal)
8094 (tui_source_window_base::set_is_exec_point_at)
8095 (tui_source_window_base::update_breakpoint_info)
8096 (tui_source_window_base::update_exec_info): Update.
8097 * tui/tui-source.c (tui_source_window::set_contents)
8098 (tui_source_window::showing_source_p)
8099 (tui_source_window::do_scroll_vertical)
8100 (tui_source_window::location_matches_p)
8101 (tui_source_window::line_is_displayed): Update.
8102 (tui_source_window::display_start_addr): New method.
8103 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8104 (tui_disasm_window::do_scroll_vertical)
8105 (tui_disasm_window::location_matches_p): Update.
8106 (tui_disasm_window::display_start_addr): New method.
8107
01b1af32
TT
81082020-02-22 Tom Tromey <tom@tromey.com>
8109
8110 * NEWS: Add entry for gdb.register_window_type.
8111 * tui/tui-layout.h (window_factory): New typedef.
8112 (tui_register_window): Declare.
8113 * tui/tui-layout.c (saved_tui_windows): New global.
8114 (tui_apply_current_layout): Use it.
8115 (tui_register_window): New function.
8116 * python/python.c (do_start_initialization): Call
8117 gdbpy_initialize_tui.
8118 (python_GdbMethods): Add "register_window_type" function.
8119 * python/python-internal.h (gdbpy_register_tui_window)
8120 (gdbpy_initialize_tui): Declare.
8121 * python/py-tui.c: New file.
8122 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8123
fc96d20b
TT
81242020-02-22 Tom Tromey <tom@tromey.com>
8125
8126 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8127
935c78c0
TT
81282020-02-22 Tom Tromey <tom@tromey.com>
8129
8130 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8131 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8132 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8133 (tui_set_win_focus_to): Move from tui-win.c.
8134
0240c8f1
TT
81352020-02-22 Tom Tromey <tom@tromey.com>
8136
8137 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8138 functions.
8139 (known_window_types): New global.
8140 (tui_get_window_by_name): Reimplement.
8141 (initialize_known_windows): New function.
8142 (validate_window_name): Rewrite.
8143 (_initialize_tui_layout): Call initialize_known_windows.
8144
fdb01f0c
TT
81452020-02-22 Tom Tromey <tom@tromey.com>
8146
8147 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8148 Remove constants.
8149 * tui/tui-winsource.h (struct tui_source_window_base)
8150 <tui_source_window_base>: Remove parameter.
8151 * tui/tui-winsource.c
8152 (tui_source_window_base::tui_source_window_base): Remove
8153 parameter.
8154 (tui_source_window_base::refill): Update.
8155 * tui/tui-stack.h (struct tui_locator_window)
8156 <tui_locator_window>: Update.
8157 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8158 Default the constructor.
8159 * tui/tui-regs.h (struct tui_data_item_window)
8160 <tui_data_item_window>: Default the constructor.
8161 (struct tui_data_window) <tui_data_window>: Likewise.
8162 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8163 Default the constructor.
8164 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8165 Default the constructor.
8166 <type>: Remove.
8167 (struct tui_win_info) <tui_win_info>: Default the constructor.
8168 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8169 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8170 Default the constructor.
8171
865a5aec
TT
81722020-02-22 Tom Tromey <tom@tromey.com>
8173
8174 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8175 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8176 * tui/tui-win.c (tui_resize_all): Don't call
8177 tui_delete_invisible_windows.
8178 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8179 done.
8180 (tui_set_layout): Update.
8181 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8182 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8183 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8184
e098d18c
TT
81852020-02-22 Tom Tromey <tom@tromey.com>
8186
8187 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8188 correctly.
8189
eb9c8874
TT
81902020-02-22 Tom Tromey <tom@tromey.com>
8191
8192 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8193
7eed1a8e
TT
81942020-02-22 Tom Tromey <tom@tromey.com>
8195
8196 * tui/tui-winsource.h (struct tui_source_window_iterator)
8197 <inner_iterator>: New etytypedef.
8198 <tui_source_window_iterator>: Take "end" parameter.
8199 <tui_source_window_iterator>: Take iterator.
8200 <operator*, advance>: Update.
8201 <m_iter>: Change type.
8202 <m_end>: New field.
8203 (struct tui_source_windows) <begin, end>: Update.
8204 * tui/tui-layout.c (tui_windows): New global.
8205 (tui_apply_current_layout): Clear tui_windows.
8206 (tui_layout_window::apply): Update tui_windows.
8207 * tui/tui-data.h (tui_windows): Declare.
8208 (all_tui_windows): Now inline function.
8209 (class tui_window_iterator, struct all_tui_windows): Remove.
8210
7c043ba6
TT
82112020-02-22 Tom Tromey <tom@tromey.com>
8212
8213 PR tui/17850:
8214 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8215 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8216 "height" argument.
8217 (class tui_layout_window) <get_sizes>: Likewise.
8218 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8219 argument.
8220 <get_sizes>: Add "height" argument.
8221 <m_vertical>: New field.
8222 * tui/tui-layout.c (tui_layout_split::clone): Update.
8223 (tui_layout_split::get_sizes): Add "height" argument.
8224 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8225 (tui_new_layout_command): Parse "-horizontal".
8226 (_initialize_tui_layout): Update help string.
8227 (tui_layout_split::specification): Add "-horizontal" when needed.
8228 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8229 argument.
8230 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8231 New methods.
8232
6bc56648
TT
82332020-02-22 Tom Tromey <tom@tromey.com>
8234
8235 * tui/tui-layout.h (enum tui_adjust_result): New.
8236 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8237 (class tui_layout_window) <adjust_size>: Return
8238 tui_adjust_result. Rewrite.
8239 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8240 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8241
c22fef7e
TT
82422020-02-22 Tom Tromey <tom@tromey.com>
8243
8244 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8245 parameter and return types.
8246 (class tui_layout_base) <specification>: Add "depth".
8247 (class tui_layout_window) <specification>: Add "depth".
8248 (class tui_layout_split) <specification>: Add "depth".
8249 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8250 and return types.
8251 (tui_new_layout_command): Parse sub-layouts.
8252 (_initialize_tui_layout): Update help string.
8253 (tui_layout_window::specification): Add "depth".
8254 (add_layout_command): Update.
8255
ee325b61
TT
82562020-02-22 Tom Tromey <tom@tromey.com>
8257
8258 * NEWS: Add "tui new-layout" item.
8259 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8260 Add new-layout command to help text.
8261 (validate_window_name): New function.
8262 (tui_new_layout_command): New function.
8263 (_initialize_tui_layout): Register "new-layout".
8264 (tui_layout_window::specification): New method.
8265 (tui_layout_window::specification): New method.
8266 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8267 method.
8268 (class tui_layout_window) <specification>: New method.
8269 (class tui_layout_split) <specification>: New method.
8270
416eb92d
TT
82712020-02-22 Tom Tromey <tom@tromey.com>
8272
8273 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8274 * tui/tui-win.c (window_name_completer): Update comment.
8275 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8276 Declare method.
8277 (class tui_layout_window) <replace_window>: Likewise.
8278 (class tui_layout_split) <replace_window>: Likewise.
8279 (tui_set_layout): Don't declare.
8280 (tui_set_initial_layout): Declare function.
8281 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8282 (asm_regs_layout): New globals.
8283 (tui_current_layout, show_layout): Remove.
8284 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8285 (find_layout, tui_apply_layout): New function.
8286 (layout_completer): Remove.
8287 (tui_next_layout): Reimplement.
8288 (tui_next_layout_command): New function.
8289 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8290 (tui_regs_layout): Reimplement.
8291 (tui_regs_layout_command): New function.
8292 (extract_display_start_addr): Rewrite.
8293 (next_layout, prev_layout): Remove.
8294 (tui_layout_window::replace_window): New method.
8295 (tui_layout_split::replace_window): New method.
8296 (destroy_layout): New function.
8297 (layout_list): New global.
8298 (add_layout_command): New function.
8299 (initialize_layouts): Update.
8300 (tui_layout_command): New function.
8301 (_initialize_tui_layout): Install "layout" commands.
8302 * tui/tui-data.h (enum tui_layout_type): Remove.
8303 (tui_current_layout): Don't declare.
8304
0dbc2fc7
TT
83052020-02-22 Tom Tromey <tom@tromey.com>
8306
8307 * tui/tui-regs.c (tui_reg_layout): Remove.
8308 (tui_reg_command): Use tui_regs_layout.
8309 * tui/tui-layout.h (tui_reg_command): Declare.
8310 * tui/tui-layout.c (tui_reg_command): New function.
8311
5afe342e
TT
83122020-02-22 Tom Tromey <tom@tromey.com>
8313
8314 * tui/tui.c (tui_rl_delete_other_windows): Call
8315 tui_remove_some_windows.
8316 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8317 Declare method.
8318 (class tui_layout_window) <remove_windows>: New method.
8319 (class tui_layout_split) <remove_windows>: Declare.
8320 (tui_remove_some_windows): Declare.
8321 * tui/tui-layout.c (tui_remove_some_windows): New function.
8322 (tui_layout_split::remove_windows): New method.
8323
427326a8
TT
83242020-02-22 Tom Tromey <tom@tromey.com>
8325
8326 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8327 * tui/tui-layout.h (tui_next_layout): Declare.
8328 * tui/tui-layout.c (tui_next_layout): New function.
8329
3fe12b6d
TT
83302020-02-22 Tom Tromey <tom@tromey.com>
8331
8332 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8333 correct coordinates.
8334
59b8b5d2
TT
83352020-02-22 Tom Tromey <tom@tromey.com>
8336
8337 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8338 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8339 DATA_WIN case.
8340
2a3d458b
TT
83412020-02-22 Tom Tromey <tom@tromey.com>
8342
8343 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8344 TUI_DISASM_WIN, not tui_win_list.
8345
3f0cbb04
TT
83462020-02-22 Tom Tromey <tom@tromey.com>
8347
8348 * valprint.c (generic_val_print_enum_1)
8349 (val_print_type_code_flags): Style member names.
8350 * rust-lang.c (val_print_struct, rust_print_enum)
8351 (rust_print_struct_def, rust_internal_print_type): Style member
8352 names.
8353 * p-valprint.c (pascal_object_print_value_fields): Style member
8354 names. Only call fprintf_symbol_filtered for static members.
8355 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8356 * f-valprint.c (f_val_print): Style member names.
8357 * f-typeprint.c (f_type_print_base): Style member names.
8358 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8359 call fprintf_symbol_filtered for static members.
8360 (cp_print_class_member): Style member names.
8361 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8362 member names.
8363 * ada-valprint.c (ada_print_scalar): Style enum names.
8364 (ada_val_print_enum): Likewise.
8365 * ada-typeprint.c (print_enum_type): Style enum names.
8366
d4d947ae
TT
83672020-02-21 Tom Tromey <tom@tromey.com>
8368
8369 * psympriv.h (struct partial_symtab): Update comment.
8370
e94e944b
TT
83712020-02-21 Tom Tromey <tromey@adacore.com>
8372
8373 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8374 type is CORE_ADDR.
8375
1eb73179
TV
83762020-02-21 Tom de Vries <tdevries@suse.de>
8377
8378 PR gdb/25534
8379 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8380 if dependencies[i]->user != NULL.
8381
4f180d53
AT
83822020-02-21 Ali Tamur <tamur@google.com>
8383
8384 * dwarf2/read.c (dwarf2_name): Add null check.
8385
22b6cd70
TT
83862020-02-20 Tom Tromey <tom@tromey.com>
8387
8388 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8389 ">=", in binary search.
8390 (dwarf2_find_containing_comp_unit): New overload.
8391 (run_test): New self-test.
8392 (_initialize_dwarf2_read): Register new test.
8393
bd0cf5a6
NC
83942020-02-20 Nelson Chu <nelson.chu@sifive.com>
8395
8396 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8397 * riscv-tdep.h: Likewise.
8398 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8399 rv32-only CSR.
8400 * features/riscv/64bit-csr.xml: Regenerated.
8401
3f702acd
SDJ
84022020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8403 Tom Tromey <tom@tromey.com>
8404
8405 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8406 of 'fputc_unfiltered'.
8407 (putchar_unfiltered): Call 'fputc_unfiltered'.
8408 (fputc_unfiltered): Call 'fputs_unfiltered'.
8409
d13c7322
AB
84102020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8411
8412 * config.in: Regenerate.
8413 * configure: Regenerate.
8414 * configure.ac: Add --with-python-libdir option.
8415 * main.c: Use WITH_PYTHON_LIBDIR.
8416
869d8950
TT
84172020-02-19 Tom Tromey <tom@tromey.com>
8418
8419 * symtab.c (general_symbol_info::compute_and_set_names): Use
8420 obstack_strndup. Simplify call to symbol_set_demangled_name.
8421
298e9637
SM
84222020-02-19 Simon Marchi <simon.marchi@efficios.com>
8423
8424 * dwarf2/read.c (allocate_signatured_type_table,
8425 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8426 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8427 Remove objfile parameter, update all callers.
8428
08410482
DE
84292020-02-19 Doug Evans <dje@google.com>
8430
8431 PR rust/25535
8432 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8433 rust_enum_variant calculation.
8434
dfdeeca1
TT
84352020-02-19 Tom Tromey <tromey@adacore.com>
8436
8437 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8438
2ef5453b
TT
84392020-02-19 Tom Tromey <tromey@adacore.com>
8440
8441 * ada-lang.c (cache_symbol): Use obstack_strdup.
8442
9f1528a1
AB
84432020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8444
8445 * configure: Regenerate.
8446
d3c22fa8
TT
84472020-02-19 Tom Tromey <tromey@adacore.com>
8448
8449 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8450 NULL check.
8451
bf84f706
MR
84522020-02-19 Maciej W. Rozycki <macro@wdc.com>
8453
8454 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8455
d1c9b20f
AB
84562020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8457
8458 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8459 if GDBSERVER is not defined.
8460 (riscv_tdesc_cache): Likewise, also store const target_desc.
8461 (STATIC_IN_GDB): Define.
8462 (riscv_create_target_description): Update declaration with
8463 STATIC_IN_GDB.
8464 (riscv_lookup_target_description): New function, only define if
8465 GDBSERVER is not defined.
8466 * arch/riscv.h (riscv_create_target_description): Declare only
8467 when GDBSERVER is defined.
8468 (riscv_lookup_target_description): New declaration when GDBSERVER
8469 is not defined.
8470 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8471 (riscv_linux_read_features): ...this, and return
8472 riscv_gdbarch_features instead of target_desc.
8473 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8474 (riscv_linux_read_description): Rename to...
8475 (riscv_linux_read_features): ...this.
8476 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8477 Update to use riscv_gdbarch_features and
8478 riscv_lookup_target_description.
8479 * riscv-tdep.c (riscv_find_default_target_description): Use
8480 riscv_lookup_target_description instead of
8481 riscv_create_target_description.
8482
373d7ac0
SM
84832020-02-18 Simon Marchi <simon.marchi@efficios.com>
8484
8485 * valprint.c (generic_val_print_enum_1): When printing a flag
8486 enum with value 0 and there is no enumerator with value 0, print
8487 just "0" instead of "(unknown: 0x0)".
8488
b29a2df0
SM
84892020-02-18 Simon Marchi <simon.marchi@efficios.com>
8490
8491 * valprint.c (generic_val_print_enum_1): Print unknown part of
8492 flag enum in hex.
8493
6740f0cc
SM
84942020-02-18 Simon Marchi <simon.marchi@efficios.com>
8495
8496 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8497 flag enums to contain duplicate enumerators.
8498 * valprint.c (generic_val_print_enum_1): Update comment.
8499
edd45eb0
SM
85002020-02-18 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * dwarf2/read.c: Include "count-one-bits.h".
8503 (update_enumeration_type_from_children): If an enumerator has
8504 multiple bits set, don't treat the enumeration as a "flag enum".
8505 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8506 of flag enums have 0 or 1 bit set.
8507
6d0cf446
BE
85082020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8509
8510 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8511 conversion.
8512 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8513 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8514 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8515 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8516 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8517
7001c1b7
SM
85182020-02-18 Simon Marchi <simon.marchi@efficios.com>
8519
8520 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8521
fdb61c6c
SM
85222020-02-14 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8525 displaced_step_closure_up.
8526 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8527 (struct displaced_step_closure_up):
8528 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8529 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8530 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8531 Likewise.
8532 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8533 * gdbarch.c, gdbarch.h: Re-generate.
8534 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8535 displaced_step_closure_up.
8536 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8537 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8538 * infrun.h (displaced_step_closure_up): New type alias.
8539 (struct displaced_step_inferior_state) <step_closure>: Change
8540 type to displaced_step_closure_up.
8541 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8542 displaced_step_closure_up.
8543 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8544
a4a38eb4
TT
85452020-02-14 Tom Tromey <tom@tromey.com>
8546
8547 * minidebug.c (gnu_debug_key): New global.
8548 (find_separate_debug_file_in_section): Use it.
8549
e8217e61
SM
85502020-02-14 Simon Marchi <simon.marchi@efficios.com>
8551
8552 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8553 std::unique_ptr.
8554 * gdbarch.c: Re-generate.
8555 * gdbarch.h: Re-generate.
8556 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8557 change.
8558 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8559 type to std::unique_ptr.
8560 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8561 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8562 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8563 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8564 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8565 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8566 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8567 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8568 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8569
d8d83535
SM
85702020-02-14 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8573 std::unique_ptr.
8574 (displaced_step_clear): Rename to...
8575 (displaced_step_reset): ... this. Just call displaced->reset ().
8576 (displaced_step_clear_cleanup): Rename to...
8577 (displaced_step_reset_cleanup): ... this.
8578 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8579 (displaced_step_fixup): Likewise.
8580 (resume_1): Likewise.
8581 (handle_inferior_event): Restore child's memory before calling
8582 displaced_step_fixup on the parent.
8583 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8584 to std::unique_ptr.
8585 <step_closure>: Change type to std::unique_ptr.
8586
5f661e03
SM
85872020-02-14 Simon Marchi <simon.marchi@efficios.com>
8588
8589 * arm-tdep.c: Include count-one-bits.h.
8590 (cleanup_block_store_pc): Use count_one_bits.
8591 (cleanup_block_load_pc): Use count_one_bits.
8592 (arm_copy_block_xfer): Use count_one_bits.
8593 (thumb2_copy_block_xfer): Use count_one_bits.
8594 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8595 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8596 (thumb_get_next_pcs_raw): Use count_one_bits.
8597 (arm_get_next_pcs_raw): Use count_one_bits_l.
8598 * arch/arm.c (bitcount): Remove.
8599 * arch/arm.h (bitcount): Remove.
8600
8084e579
TT
86012020-02-14 Tom Tromey <tromey@adacore.com>
8602
8603 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8604 Update.
8605 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8606 * dwarf2/loc.c (call_site_find_chain_1): Return
8607 unique_xmalloc_ptr.
8608 (call_site_find_chain): Likewise.
8609
258bf0ee
RB
86102020-02-14 Richard Biener <rguenther@suse.de>
8611
8612 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8613 on expression with division operators.
8614
f98a8458
AKS
86152020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8616
8617 * MAINTAINERS (Write After Approval): Adding myself.
8618
d1437c0e
TT
86192020-02-12 Tom Tromey <tom@tromey.com>
8620
8621 * event-loop.c (event_data, gdb_event, event_handler_func):
8622 Remove.
8623
3d4560f7
TT
86242020-02-12 Tom Tromey <tom@tromey.com>
8625
8626 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8627 (dwarf2_frame_objfile_data): Add comment.
8628 (find_comp_unit, set_comp_unit): New functions.
8629 (dwarf2_frame_find_fde): Use find_comp_unit.
8630 (dwarf2_build_frame_info): Use set_comp_unit.
8631
21982304
TT
86322020-02-12 Tom Tromey <tom@tromey.com>
8633
8634 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8635 (comp_unit): Don't initialize objfile.
8636 (execute_cfa_program): Add text_offset parameter.
8637 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8638 (dwarf2_frame_cache): Update.
8639 (dwarf2_build_frame_info): Don't set "objfile" member.
8640
4debb237
TT
86412020-02-12 Tom Tromey <tom@tromey.com>
8642
8643 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8644 (decode_frame_entry): Likewise.
8645 (dwarf2_build_frame_info): Update.
8646
0d404d44
TT
86472020-02-12 Tom Tromey <tom@tromey.com>
8648
8649 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8650 (decode_frame_entry_1): Use the comp_unit obstack.
8651
a7a3ae5c
TT
86522020-02-12 Tom Tromey <tom@tromey.com>
8653
8654 * dwarf2/frame.c (struct comp_unit): Add initializers and
8655 constructor.
8656 (dwarf2_frame_objfile_data): Store a comp_unit.
8657 (dwarf2_frame_find_fde): Update.
8658 (dwarf2_build_frame_info): Use "new".
8659
a9d65418
TT
86602020-02-12 Tom Tromey <tom@tromey.com>
8661
8662 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8663 (dwarf2_fde_table): Typedef for std::vector.
8664 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8665 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8666 (decode_frame_entry): Update.
8667 (dwarf2_build_frame_info): Use "new".
8668
7559c217
CB
86692020-02-12 Christian Biesinger <cbiesinger@google.com>
8670
8671 * arm-tdep.c (arm_gdbarch_init): Update.
8672 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8673 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8674 have_neon, is_m>: Change to bool.
8675
aeefc73c
CB
86762020-02-12 Christian Biesinger <cbiesinger@google.com>
8677
8678 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8679
d27b8e5f
TT
86802020-02-12 Tom Tromey <tom@tromey.com>
8681
8682 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8683
cd5900f3
HD
86842020-02-12 Hannes Domani <ssbssa@yahoo.de>
8685
8686 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8687 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8688
f056b22b
TT
86892020-02-11 Tom Tromey <tom@tromey.com>
8690
8691 * psymtab.h: Update comment.
8692
f92ff6b5
TT
86932020-02-11 Tom Tromey <tom@tromey.com>
8694
8695 * gdb_obstack.h (struct auto_obstack): Use
8696 DISABLE_COPY_AND_ASSIGN.
8697
3fd6912b
TT
86982020-02-11 Tom Tromey <tom@tromey.com>
8699
8700 * dwarf2/frame.h (struct objfile): Don't forward declare.
8701
69ed9b74
CB
87022020-02-11 Christian Biesinger <cbiesinger@google.com>
8703
8704 * cris-tdep.c (cris_supply_gregset): Change signature to match
8705 what struct regset expects.
8706 (cris_regset): New struct.
8707 (fetch_core_registers): Remove.
8708 (cris_iterate_over_regset_sections): New function.
8709 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8710 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8711
bda874f6
CB
87122020-02-11 Christian Biesinger <cbiesinger@google.com>
8713
8714 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8715 registers.
8716
754e1564
CB
87172020-02-11 Christian Biesinger <cbiesinger@google.com>
8718
8719 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8720
8ddd8e0e
SM
87212020-02-11 Simon Marchi <simon.marchi@efficios.com>
8722
8723 * configure: Re-generate.
8724
898e7f60
SM
87252020-02-11 Simon Marchi <simon.marchi@efficios.com>
8726
8727 * configure: Re-generate.
8728
58df732b
SM
87292020-02-11 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * acinclude: Update warning.m4 path.
8732 * warning.m4: Move to gdbsupport.
8733
da5bd37e
TT
87342020-02-11 Tom Tromey <tromey@adacore.com>
8735
8736 * remote.c (remote_console_output): Update.
8737 * printcmd.c (printf_command): Update.
8738 * event-loop.c (gdb_wait_for_event): Update.
8739 * linux-nat.c (sigchld_handler): Update.
8740 * remote-sim.c (gdb_os_write_stdout): Update.
8741 (gdb_os_flush_stdout): Update.
8742 (gdb_os_flush_stderr): Update.
8743 (gdb_os_write_stderr): Update.
8744 * exceptions.c (print_exception): Update.
8745 * remote-fileio.c (remote_fileio_func_read): Update.
8746 (remote_fileio_func_write): Update.
8747 * tui/tui.c (tui_enable): Update.
8748 * tui/tui-interp.c (tui_interp::init): Update.
8749 * utils.c (init_page_info): Update.
8750 (putchar_unfiltered, fputc_unfiltered): Update.
8751 (gdb_flush): Update.
8752 (emit_style_escape): Update.
8753 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8754 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8755 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8756 (stderr_file::write): Update.
8757 (stderr_file::puts): Update.
8758 * ui-file.h (ui_file_isatty, ui_file_write)
8759 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8760 (ui_file_puts): Don't declare.
8761
85f0dd3c
TV
87622020-02-10 Tom de Vries <tdevries@suse.de>
8763
8764 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8765 sentinel to char *.
8766
2e927613
TV
87672020-02-09 Tom de Vries <tdevries@suse.de>
8768
8769 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8770 filename if it matches "<artificial>".
8771
6bafc845
HD
87722020-02-09 Hannes Domani <ssbssa@yahoo.de>
8773
8774 * windows-tdep.c (struct enum_value_name): New struct.
8775 (create_enum): New function.
8776 (windows_get_siginfo_type): Create and use enum types.
8777
7928d571
HD
87782020-02-09 Hannes Domani <ssbssa@yahoo.de>
8779
8780 * NEWS: Mention $_siginfo support for Windows.
8781 * windows-nat.c (handle_exception): Set siginfo_er.
8782 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8783 (windows_xfer_siginfo): New function.
8784 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8785 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8786 (init_windows_gdbarch_data): New function.
8787 (get_windows_gdbarch_data): New function.
8788 (windows_get_siginfo_type): New function.
8789 (windows_init_abi): Register windows_get_siginfo_type.
8790 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8791
6751ebae
TT
87922020-02-08 Tom Tromey <tom@tromey.com>
8793
8794 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8795 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8796 <keep>: Declare method.
8797 <m_keep>: Remove member.
8798 <~cutu_reader>: Remove.
8799 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8800 (cutu_reader::cutu_reader): Update.
8801 (cutu_reader::keep): Rename from ~cutu_reader.
8802 (process_psymtab_comp_unit, build_type_psymtabs_1)
8803 (process_skeletonless_type_unit, load_partial_comp_unit)
8804 (load_full_comp_unit, dwarf2_read_addr_index)
8805 (read_signatured_type): Update.
8806
135f5437
TT
88072020-02-08 Tom Tromey <tom@tromey.com>
8808
8809 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8810 "want_partial_unit" parameter.
8811 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8812 Inline check for DW_TAG_partial_unit.
8813 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8814
9f66ff1c
TT
88152020-02-08 Tom Tromey <tom@tromey.com>
8816
8817 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8818 read.c.
8819 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8820 read.c.
8821
c8a7a66f
TT
88222020-02-08 Tom Tromey <tom@tromey.com>
8823
8824 * dwarf2/read.c (read_address): Move to comp-unit.c.
8825 (dwarf2_rnglists_process, dwarf2_ranges_process)
8826 (read_attribute_value, dwarf_decode_lines_1)
8827 (var_decode_location, decode_locdesc): Update.
8828 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8829 read.c. Remove "cu" parameter.
8830 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8831 method.
8832
8266302d
TT
88332020-02-08 Tom Tromey <tom@tromey.com>
8834
8835 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8836 (read_indirect_line_string): Update.
8837 * dwarf2/comp-unit.c (read_offset): Remove.
8838 (read_comp_unit_head): Update.
8839 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8840 method.
8841 (read_offset): Don't declare.
8842
4057dfde
TT
88432020-02-08 Tom Tromey <tom@tromey.com>
8844
8845 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8846 * dwarf2/read.c (struct comp_unit_head): Move to
8847 dwarf2/comp-unit.h.
8848 (enum class rcuh_kind): Move to comp-unit.h.
8849 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8850 (read_comp_unit_head, error_check_comp_unit_head)
8851 (read_and_check_comp_unit_head): Move to comp-unit.c.
8852 (read_offset, dwarf_unit_type_name): Likewise.
8853 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8854 (cutu_reader::cutu_reader, read_call_site_scope)
8855 (find_partial_die, follow_die_offset): Update.
8856 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8857
24aa364d
TT
88582020-02-08 Tom Tromey <tom@tromey.com>
8859
8860 * dwarf2/read.c (read_offset_1): Move to leb.c.
8861 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8862 (dwarf_decode_macro_bytes): Update.
8863 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8864 * dwarf2/leb.h (read_offset): Declare.
8865
2c7d5afc
TT
88662020-02-08 Tom Tromey <tom@tromey.com>
8867
8868 * dwarf2/read.c (dwarf2_section_size): Remove.
8869 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8870 Update.
8871 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8872
4075cb26
TT
88732020-02-08 Tom Tromey <tom@tromey.com>
8874
8875 * dwarf2/read.c (read_initial_length): Move to leb.c.
8876 * dwarf2/leb.h (read_initial_length): Declare.
8877 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8878 handle_nonstd parameter.
8879 * dwarf2/frame.c (read_initial_length): Remove.
8880 (decode_frame_entry_1): Update.
8881
09ba997f
TT
88822020-02-08 Tom Tromey <tom@tromey.com>
8883
8884 * dwarf2/loc.c (dwarf2_find_location_expression)
8885 (dwarf_evaluate_loc_desc::get_tls_address)
8886 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8887 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8888 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8889 (dwarf2_compile_property_to_c)
8890 (dwarf2_loc_desc_get_symbol_read_needs)
8891 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8892 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8893 (loclist_describe_location, loclist_tracepoint_var_ref)
8894 (loclist_generate_c_location): Update.
8895 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8896 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8897 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8898 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8899 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8900 (dwarf2_per_cu_data::addr_size)
8901 (dwarf2_per_cu_data::ref_addr_size)
8902 (dwarf2_per_cu_data::text_offset)
8903 (dwarf2_per_cu_data::addr_type): Now methods.
8904 (per_cu_header_read_in): Make per_cu "const".
8905 (dwarf2_version): Remove.
8906 (dwarf2_per_cu_data::int_type): Now a method.
8907 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8908 (set_die_type, read_array_type, read_subrange_index_type)
8909 (read_tag_string_type, read_subrange_type): Update.
8910 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8911 offset_size, ref_addr_size, text_offset, addr_type, version,
8912 objfile, int_type, addr_sized_int_type>: Declare methods.
8913
96c738c0
TT
89142020-02-08 Tom Tromey <tom@tromey.com>
8915
8916 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8917 Move earlier.
8918
8fdd972c
TT
89192020-02-08 Tom Tromey <tom@tromey.com>
8920
8921 * dwarf2/read.h (dwarf_line_debug): Declare.
8922 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8923 * dwarf2/read.c: Move line_header code to new files.
8924 (dwarf_line_debug): No longer static.
8925 * dwarf2/line-header.c: New file.
8926 * dwarf2/line-header.h: New file.
8927
03075812
TT
89282020-02-08 Tom Tromey <tom@tromey.com>
8929
8930 * dwarf2/read.c (struct line_header) <file_full_name,
8931 file_file_name>: Return unique_xmalloc_ptr.
8932 (line_header::file_file_name): Update.
8933 (line_header::file_full_name): Update.
8934 (dw2_get_file_names_reader): Update.
8935 (macro_start_file): Update.
8936
bb822404
TT
89372020-02-08 Tom Tromey <tom@tromey.com>
8938
8939 * dwarf2/read.c (struct line_header) <file_full_name,
8940 file_file_name>: Declare methods.
8941 (dw2_get_file_names_reader): Update.
8942 (file_file_name): Now a method.
8943 (file_full_name): Likewise.
8944 (macro_start_file): Update.
8945
009b64fc
TT
89462020-02-08 Tom Tromey <tom@tromey.com>
8947
8948 * dwarf2/read.c (dwarf_always_disassemble)
8949 (show_dwarf_always_disassemble): Move to loc.c.
8950 (_initialize_dwarf2_read): Move "always-disassemble" registration
8951 to loc.c.
8952 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8953 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8954 static.
8955 (show_dwarf_always_disassemble): Move from read.c.
8956 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8957
5895093f
TT
89582020-02-08 Tom Tromey <tom@tromey.com>
8959
8960 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8961 (create_quick_file_names_table): Return htab_up.
8962 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8963 Update.
8964 * dwarf2/read.h (struct dwarf2_per_objfile)
8965 <quick_file_names_table>: Now htab_up.
8966
b3b32279
TT
89672020-02-08 Tom Tromey <tom@tromey.com>
8968
8969 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8970
1d33d811
TT
89712020-02-08 Tom Tromey <tom@tromey.com>
8972
8973 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8974 Rewrite.
8975 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8976 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8977 (abbrev_table::abbrev_table): No longer inline.
8978 (ABBREV_HASH_SIZE): Remove.
8979 (abbrev_table::m_abbrevs): Now an htab_up.
8980
86de1d91
TT
89812020-02-08 Tom Tromey <tom@tromey.com>
8982
8983 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8984 (cutu_reader): Update.
8985 (build_type_psymtabs_1): Update.
8986 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8987 (abbrev_table::alloc_abbrev): Update.
8988 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8989 (abbrev_table::read): New static method, renamed from
8990 abbrev_table_read_table.
8991 (abbrev_table::alloc_abbrev)
8992 (abbrev_table::add_abbrev): Now private.
8993 (abbrev_table::abbrev_table): Now private.
8994 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8995
0335378b
TT
89962020-02-08 Tom Tromey <tom@tromey.com>
8997
8998 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8999 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9000 htab_up.
9001
48b490f2
TT
90022020-02-08 Tom Tromey <tom@tromey.com>
9003
9004 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9005 htab_up.
9006 (lookup_dwo_unit_in_dwp): Update.
9007 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9008 on obstack.
9009
bc68fb19
TT
90102020-02-08 Tom Tromey <tom@tromey.com>
9011
9012 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9013 obstack.
9014
d15acc42
TT
90152020-02-08 Tom Tromey <tom@tromey.com>
9016
9017 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9018 line_header_hash.
9019 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9020 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9021 Change type to htab_up.
9022
eaa5fa8b
TT
90232020-02-08 Tom Tromey <tom@tromey.com>
9024
9025 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9026 htab_up. Don't allocate on obstack.
9027 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9028 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9029 Change type to htab_up.
9030
b0b6a987
TT
90312020-02-08 Tom Tromey <tom@tromey.com>
9032
9033 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9034 Change type to htab_up.
9035 * dwarf2/read.c (create_signatured_type_table_from_index)
9036 (create_signatured_type_table_from_debug_names)
9037 (create_all_type_units, add_type_unit)
9038 (lookup_dwo_signatured_type, lookup_signatured_type)
9039 (process_skeletonless_type_unit): Update.
9040 (create_debug_type_hash_table, create_debug_types_hash_table):
9041 Change type of types_htab.
9042 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9043 htab_up. Don't allocate on obstack.
9044 (create_cus_hash_table): Change type of cus_htab parameter.
9045 (struct dwo_file) <cus, tus>: Now htab_up.
9046 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9047 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9048 (queue_and_load_all_dwo_tus): Update.
9049 * dwarf2/index-write.c (write_gdbindex): Update.
9050 (write_debug_names): Update.
9051
39856def
TT
90522020-02-08 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9055 dwarf2/read.c. Remove "next" member. Add constructor ntad
9056 destructor.
9057 (struct dwarf2_per_objfile) <queue>: New member.
9058 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9059 dwarf2/read.h.
9060 (dwarf2_queue, dwarf2_queue_tail): Remove.
9061 (class dwarf2_queue_guard): Add parameter to constructor. Use
9062 DISABLE_COPY_AND_ASSIGN.
9063 <m_per_objfile>: New member.
9064 <~dwarf2_queue_guard>: Rewrite.
9065 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9066 Update.
9067 (~dwarf2_queue_item): New.
9068
3e225074
TT
90692020-02-08 Tom Tromey <tom@tromey.com>
9070
9071 * dwarf2/read.c (struct die_info) <has_children>: New member.
9072 (dw2_get_file_names_reader): Remove has_children.
9073 (dw2_get_file_names): Update.
9074 (read_cutu_die_from_dwo): Remove has_children.
9075 (cutu_reader::init_tu_and_read_dwo_dies)
9076 (cutu_reader::cutu_reader): Update.
9077 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9078 Remove has_children.
9079 (build_type_psymtabs_1, process_skeletonless_type_unit)
9080 (load_partial_comp_unit, load_full_comp_unit): Update.
9081 (create_dwo_cu_reader): Remove has_children.
9082 (create_cus_hash_table, read_die_and_children): Update.
9083 (read_full_die_1,read_full_die): Remove has_children.
9084 (read_signatured_type): Update.
9085 (class cutu_reader) <has_children>: Remove.
9086
82ca8957
TT
90872020-02-08 Tom Tromey <tom@tromey.com>
9088
9089 * dwarf2/expr.c: Rename from dwarf2expr.c.
9090 * dwarf2/expr.h: Rename from dwarf2expr.h.
9091 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9092 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9093 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9094 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9095 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9096 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9097 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9098 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9099 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9100 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9101 * dwarf2/loc.c: Rename from dwarf2loc.c.
9102 * dwarf2/loc.h: Rename from dwarf2loc.h.
9103 * dwarf2/read.c: Rename from dwarf2read.c.
9104 * dwarf2/read.h: Rename from dwarf2read.h.
9105 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9106 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9107 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9108 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9109 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9110 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9111 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9112 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9113 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9114 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9115 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9116 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9117 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9118 Update.
9119 * Makefile.in (COMMON_SFILES): Update.
9120 (HFILES_NO_SRCDIR): Update.
9121
9e35d499
TT
91222020-02-08 Tom Tromey <tom@tromey.com>
9123
9124 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9125 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9126
1eba2311
TT
91272020-02-08 Tom Tromey <tom@tromey.com>
9128
9129 * dwarf2read.h (struct die_info): Don't declare.
9130
e41c2da2
TT
91312020-02-08 Tom Tromey <tom@tromey.com>
9132
9133 * dwarf2read.h (die_info_ptr): Remove typedef.
9134
4fc6c0d5
TT
91352020-02-08 Tom Tromey <tom@tromey.com>
9136
9137 * dwarf2read.c (read_call_site_scope)
9138 (handle_data_member_location, dwarf2_add_member_fn)
9139 (mark_common_block_symbol_computed, read_common_block)
9140 (attr_to_dynamic_prop, partial_die_info::read)
9141 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9142 (dwarf2_symbol_mark_computed, set_die_type): Update.
9143 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9144 method.
9145 (attr_form_is_block): Don't declare.
9146 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9147
cd6c91b4
TT
91482020-02-08 Tom Tromey <tom@tromey.com>
9149
9150 * dwarf2read.c (dwarf2_find_base_address, )
9151 (read_call_site_scope, rust_containing_type)
9152 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9153 (handle_data_member_location, dwarf2_add_member_fn)
9154 (get_alignment, read_structure_type, process_structure_scope)
9155 (mark_common_block_symbol_computed, read_common_block)
9156 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9157 (partial_die_info::read, read_attribute_value, new_symbol)
9158 (lookup_die_type, dwarf2_get_ref_die_offset)
9159 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9160 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9161 (dwarf2_symbol_mark_computed): Update.
9162 * dwarf2/attribute.h (struct attribute) <value_as_address,
9163 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9164 methods.
9165 (value_as_address, attr_form_is_section_offset)
9166 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9167 * dwarf2/attribute.c (attribute::value_as_address)
9168 (attribute::form_is_section_offset, attribute::form_is_constant)
9169 (attribute::form_is_ref): Now methods.
9170
162dce55
TT
91712020-02-08 Tom Tromey <tom@tromey.com>
9172
9173 * dwarf2read.c (struct attribute, DW_STRING)
9174 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9175 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9176 (attr_form_is_block, attr_form_is_section_offset)
9177 (attr_form_is_constant, attr_form_is_ref): Move.
9178 * dwarf2/attribute.h: New file.
9179 * dwarf2/attribute.c: New file, from dwarf2read.c.
9180 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9181
3054dd54
TT
91822020-02-08 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9185 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9186 Move.
9187 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9188 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9189 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9190 abbrev.c.
9191 * dwarf2/abbrev.h: New file.
9192 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9193 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9194
96b79293
TT
91952020-02-08 Tom Tromey <tom@tromey.com>
9196
9197 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9198 (dwarf2_section_size, dwarf2_get_section_info)
9199 (create_signatured_type_table_from_debug_names)
9200 (create_addrmap_from_aranges, read_debug_names_from_section)
9201 (get_gdb_index_contents_from_section, read_comp_unit_head)
9202 (error_check_comp_unit_head, read_abbrev_offset)
9203 (create_debug_type_hash_table, init_cu_die_reader)
9204 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9205 (read_comp_units_from_section, create_cus_hash_table)
9206 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9207 (create_dwp_v2_section, dwarf2_rnglists_process)
9208 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9209 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9210 (read_indirect_string_from_dwz, read_addr_index_1)
9211 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9212 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9213 (fill_in_loclist_baton): Update.
9214 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9215 get_containing_section, get_bfd_owner, get_bfd_section,
9216 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9217 (dwarf2_read_section, get_section_name, get_section_file_name)
9218 (get_containing_section, get_section_bfd_owner)
9219 (get_section_bfd_section, get_section_name, get_section_file_name)
9220 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9221 declare.
9222 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9223 (dwarf2_section_info::get_bfd_owner)
9224 (dwarf2_section_info::get_bfd_section)
9225 (dwarf2_section_info::get_name)
9226 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9227 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9228 (dwarf2_section_info::read): Now methods.
9229 * dwarf-index-write.c (class debug_names): Update.
9230
2c86cff9
TT
92312020-02-08 Tom Tromey <tom@tromey.com>
9232
9233 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9234 Move to dwarf2/section.h.
9235 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9236 (get_section_bfd_section, get_section_name)
9237 (get_section_file_name, get_section_id, get_section_flags)
9238 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9239 dwarf2/section.c.
9240 * dwarf2/section.h: New file.
9241 * dwarf2/section.c: New file, from dwarf2read.c.
9242 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9243
f4382c45
TT
92442020-02-08 Tom Tromey <tom@tromey.com>
9245
9246 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9247 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9248 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9249 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9250 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9251 * dwarf2/leb.h: New file, from dwarf2read.c.
9252 * dwarf2/leb.c: New file, from dwarf2read.c.
9253 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9254 Remove.
9255 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9256 (COMMON_SFILES): Add dwarf2/leb.c.
9257
01840b7a
JB
92582020-02-08 Joel Brobecker <brobecker@adacore.com>
9259
9260 GDB 9.1 released.
9261
dfcb27e4
IB
92622020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9263
9264 PR gdb/25190:
aac66a4c
SM
9265 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9266 * gdb/remote.c (remote_console_output): Update.
9267 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9268 (ui_file_puts): ...this.
9269 * gdb/ui-file.h (ui_file_puts): Add declaration.
9270 * gdb/utils.c (emit_style_escape): Update.
9271 (flush_wrap_buffer): Update.
9272 (fputs_maybe_filtered): Update.
9273 (fputs_unfiltered): Add function.
dfcb27e4 9274
faa17681
IB
92752020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9276
aac66a4c
SM
9277 * gdb/event-loop.c (gdb_wait_for_event): Update.
9278 * gdb/printcmd.c (printf_command): Update.
9279 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9280 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9281 (gdb_os_flush_stderr): Update.
9282 * gdb/remote.c (remote_console_output): Update.
9283 * gdb/ui-file.c (gdb_flush): Rename to...
9284 (ui_file_flush): ...this.
9285 (stderr_file::write): Update.
9286 (stderr_file::puts): Update.
9287 * gdb/ui-file.h (gdb_flush): Rename to...
9288 (ui_file_flush): ...this.
9289 * gdb/utils.c (gdb_flush): Add function.
9290 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9291
5abbbe1d
TT
92922020-02-07 Tom Tromey <tromey@adacore.com>
9293
9294 PR breakpoints/24915:
9295 * source.c (find_and_open_source): Do not check basenames_may_differ.
9296
919adfe8
TT
92972020-02-07 Tom Tromey <tom@tromey.com>
9298
9299 * README: Update gdbserver documentation.
9300 * gdbserver: Move to top level.
9301 * configure.tgt (build_gdbserver): Remove.
9302 * configure.ac: Remove --enable-gdbserver.
9303 * configure: Rebuild.
9304 * Makefile.in (distclean): Don't mention gdbserver.
9305
1d5d29e7
SV
93062020-02-06 Shahab Vahedi <shahab@synopsys.com>
9307
9308 * source-cache.c (source_cache::ensure): Surround
9309 get_plain_source_lines with a try/catch.
9310 (source_cache::get_line_charpos): Get rid of try/catch
9311 and only check for the return value of "ensure".
9312 * tui/tui-source.c (tui_source_window::set_contents):
9313 Simplify "nlines" calculation.
9314
6eb1129c
SV
93152020-02-06 Shahab Vahedi <shahab@synopsys.com>
9316
9317 * MAINTAINERS (Write After Approval): Add myself.
9318
c6a42d11
CB
93192020-02-05 Christian Biesinger <cbiesinger@google.com>
9320
9321 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9322 function call.
9323
c8ecdda6
CB
93242020-02-05 Christian Biesinger <cbiesinger@google.com>
9325
9326 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9327
f6480e70
MR
93282020-02-05 Maciej W. Rozycki <macro@wdc.com>
9329
9330 * nat/riscv-linux-tdesc.h: New file.
9331 * nat/riscv-linux-tdesc.c: New file, taking code from...
9332 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9333 ... here.
9334 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9335 NATDEPFILES.
9336
dcc9fbc6
AB
93372020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9338
9339 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9340 we don't set the fake simulator ptid to the null_ptid.
9341
719546c4
SM
93422020-02-03 Simon Marchi <simon.marchi@efficios.com>
9343
9344 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9345 * gdbthread.h (class thread_info) <resumed>: Likewise.
9346 * infrun.c (resume_1): Likewise.
9347 (proceed): Likewise.
9348 (infrun_thread_stop_requested): Likewise.
9349 (stop_all_threads): Likewise.
9350 (handle_inferior_event): Likewise.
9351 (restart_threads): Likewise.
9352 (finish_step_over): Likewise.
9353 (keep_going_stepped_thread): Likewise.
9354 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9355 (linux_handle_extended_wait): Likewise.
9356 * record-btrace.c (get_thread_current_frame_id): Likewise.
9357 * record-full.c (record_full_wait_1): Likewise.
9358 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9359 * target.c (target_resume): Likewise.
9360 * thread.c (set_running_thread): Likewise.
9361
e409c542
AKS
93622020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9363
9364 * f-valprint.c (f77_print_array_1): Changed datatype of index
9365 variable to LONGEST from int to enable it to contain bound
9366 values correctly.
9367
ee98c0da
MR
93682020-02-03 Maciej W. Rozycki <macro@wdc.com>
9369
9370 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9371 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9372 offsets according to FLEN determined.
9373 (riscv_linux_nat_target::read_description): Determine FLEN
9374 dynamically.
9375 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9376 according to FLEN determined.
9377 (riscv_linux_nat_target::store_registers): Likewise.
9378
aa66aac4
SV
93792020-02-01 Shahab Vahedi <shahab@synopsys.com>
9380
9381 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9382 when reg->group is empty and reggroup is not.
9383
fd9faca8
TT
93842020-01-31 Tom Tromey <tromey@adacore.com>
9385
9386 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9387 Call beneath target's mourn_inferior after unpushing.
9388
42330a68
AB
93892020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9390
9391 PR tui/9765
9392 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9393 have enough lines to fill the screen, still return the lowest
9394 address we found.
9395
7a27a45b
AB
93962020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9397
9398 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9399 '-', '<', and '>' commands.
9400
c47f70e2
PA
94012020-01-29 Pedro Alves <palves@redhat.com>
9402 Sergio Durigan Junior <sergiodj@redhat.com>
9403
9404 * infcmd.c (construct_inferior_arguments): Assert that
9405 'argc' is greater than 0.
9406
5133a315
LM
94072020-01-29 Luis Machado <luis.machado@linaro.org>
9408
9409 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9410 (BRK_INSN_MASK): Define to 0xd4200000.
9411 (aarch64_program_breakpoint_here_p): New function.
9412 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9413 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9414 breakpoint.c.
9415 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9416 breakpoint.h
9417 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9418 call gdbarch_program_breakpoint_here_p.
9419 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9420 default_program_breakpoint_here_p, changed return type to bool and
9421 simplified.
9422 * breakpoint.h (program_breakpoint_here): Moved prototype to
9423 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9424 return type to bool.
9425 * gdbarch.c: Regenerate.
9426 * gdbarch.h: Regenerate.
9427 * gdbarch.sh (program_breakpoint_here_p): New method.
9428 * infrun.c (handle_signal_stop): Call
9429 gdbarch_program_breakpoint_here_p.
9430
168f8c6b
TT
94312020-01-26 Tom Tromey <tom@tromey.com>
9432
9433 * ctfread.c (struct ctf_fp_info): Reindent.
9434 (_initialize_ctfread): Remove.
9435
128a391f
TT
94362020-01-26 Tom Tromey <tom@tromey.com>
9437
9438 * psymtab.c (partial_map_expand_apply)
9439 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9440 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9441 (psym_print_stats, psym_expand_symtabs_for_function)
9442 (psym_map_symbol_filenames, psym_map_matching_symbols)
9443 (psym_expand_symtabs_matching)
9444 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9445 (maintenance_check_psymtabs): Use new methods.
9446 * psympriv.h (struct partial_symtab) <readin_p,
9447 get_compunit_symtab>: New methods.
9448 <readin, compunit_symtab>: Remove members.
9449 (struct standard_psymtab): New.
9450 (struct legacy_psymtab): Derive from standard_psymtab.
9451 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9452 standard_psymtab.
9453 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9454
0494dbec
TT
94552020-01-26 Tom Tromey <tom@tromey.com>
9456
9457 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9458 read_dependencies. Add assert.
9459 * psymtab.c (partial_symtab::read_dependencies): New method.
9460 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9461 method.
9462 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9463 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9464 read_dependencies.
9465 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9466 Add assert.
9467
8566b89b
TT
94682020-01-26 Tom Tromey <tom@tromey.com>
9469
9470 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9471 Call expand_psymtab.
9472 (xcoff_read_symtab): Call expand_psymtab.
9473 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9474 legacy_expand_psymtab.
9475 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9476 method.
9477 (struct legacy_psymtab) <expand_psymtab>: Implement.
9478 <legacy_expand_psymtab>: New member.
9479 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9480 (parse_partial_symbols): Set legacy_expand_psymtab.
9481 (psymtab_to_symtab_1): Change argument order. Call
9482 expand_psymtab.
9483 (new_psymtab): Set legacy_expand_psymtab.
9484 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9485 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9486 expand_psymtab.
9487 (dwarf2_psymtab::expand_psymtab): Rename from
9488 psymtab_to_symtab_1. Call expand_psymtab.
9489 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9490 (dbx_end_psymtab): Likewise.
9491 (dbx_psymtab_to_symtab_1): Change argument order. Call
9492 expand_psymtab.
9493 (dbx_read_symtab): Call expand_psymtab.
9494 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9495 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9496 (ctf_psymtab::read_symtab): Call expand_psymtab.
9497
077cbab2
TT
94982020-01-26 Tom Tromey <tom@tromey.com>
9499
9500 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9501 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9502 messages.
9503 * mdebugread.c (mdebug_read_symtab): Remove prints.
9504 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9505 assert.
9506 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9507
891813be
TT
95082020-01-26 Tom Tromey <tom@tromey.com>
9509
9510 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9511 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9512 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9513 legacy_symtab.
9514 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9515 * psymtab.c (psymtab_to_symtab): Call method.
9516 (dump_psymtab): Update.
9517 * psympriv.h (struct partial_symtab): Add virtual destructor.
9518 <read_symtab>: New method.
9519 (struct legacy_symtab): New.
9520 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9521 (struct pst_map) <pst>: Now a legacy_psymtab.
9522 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9523 (new_psymtab): Use legacy_psymtab.
9524 * dwarf2read.h (struct dwarf2_psymtab): New.
9525 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9526 * dwarf2read.c (dwarf2_create_include_psymtab)
9527 (dwarf2_build_include_psymtabs, create_type_unit_group)
9528 (create_partial_symtab, process_psymtab_comp_unit_reader)
9529 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9530 (set_partial_user): Use dwarf2_psymtab.
9531 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9532 (psymtab_to_symtab_1, process_full_comp_unit)
9533 (process_full_type_unit, dwarf2_ranges_read)
9534 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9535 (dwarf_decode_lines): Use dwarf2_psymtab.
9536 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9537 (add_address_entry_worker, write_one_signatured_type)
9538 (recursively_count_psymbols, recursively_write_psymbols)
9539 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9540 (write_debug_names): Likewise.
9541 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9542 <pst>: Now a legacy_psymtab.
9543 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9544 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9545 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9546 * ctfread.c (struct ctf_psymtab): New.
9547 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9548 ctf_psymtab.
9549 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9550 (create_partial_symtab): Return a ctf_psymtab.
9551 (scan_partial_symbols): Update.
9552
c3693a1d
TT
95532020-01-26 Tom Tromey <tom@tromey.com>
9554
9555 * xcoffread.c (xcoff_start_psymtab): Use new.
9556 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9557 renamed from start_psymtab_common.
9558 * psympriv.h (struct partial_symtab): Add new constructor.
9559 (start_psymtab_common): Don't declare.
9560 * mdebugread.c (parse_partial_symbols): Use new.
9561 * dwarf2read.c (create_partial_symtab): Use new.
9562 * dbxread.c (start_psymtab): Use new.
9563 * ctfread.c (create_partial_symtab): Use new.
9564
32caafd0
TT
95652020-01-26 Tom Tromey <tom@tromey.com>
9566
9567 * xcoffread.c (xcoff_end_psymtab): Use new.
9568 * psymtab.c (start_psymtab_common): Use new.
9569 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9570 Update.
9571 * psympriv.h (struct partial_symtab): Add parameters to
9572 constructor. Don't inline.
9573 (allocate_psymtab): Don't declare.
9574 * mdebugread.c (new_psymtab): Use new.
9575 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9576 * dbxread.c (dbx_end_psymtab): Use new.
9577
abaa2f23
TT
95782020-01-26 Tom Tromey <tom@tromey.com>
9579
9580 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9581 allocate_psymtab. Update documentation.
9582 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9583 allocate_psymtab. Do not use new.
9584 (allocate_psymtab): Use new. Update.
9585
6d94535f
TT
95862020-01-26 Tom Tromey <tom@tromey.com>
9587
9588 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9589 * psymtab.c (psym_print_stats): Update.
9590 * psympriv.h (struct partial_symtab) <readin,
9591 psymtabs_addrmap_supported, anonymous>: Now bool.
9592 * mdebugread.c (psymtab_to_symtab_1): Update.
9593 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9594 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9595 (process_full_comp_unit, process_full_type_unit): Update.
9596 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9597 * ctfread.c (psymtab_to_symtab): Update.
9598
6f17252b
TT
95992020-01-26 Tom Tromey <tom@tromey.com>
9600
9601 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9602 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9603 * psymtab.c (psymtab_storage): Delete psymtabs.
9604 (psymtab_storage::allocate_psymtab): Use new.
9605 (psymtab_storage::discard_psymtab): Use delete.
9606 * psympriv.h (struct partial_symtab): Add constructor and
9607 initializers.
9608
f6f1cebc
TT
96092020-01-26 Tom Tromey <tom@tromey.com>
9610
9611 * machoread.c: Do not include psympriv.h.
9612
e47e48f6
PW
96132020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9614
9615 * NEWS: Mention the new option and the set/show commands.
9616
a2fedca9
PW
96172020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9618
9619 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9620 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9621 (validate_exec_file): New variables, enums, functions.
9622 (exec_file_locate_attach, print_section_info): Style the filenames.
9623 (_initialize_exec): Install show_exec_file_mismatch_command and
9624 set_exec_file_mismatch_command.
9625 * gdbcore.h (validate_exec_file): Declare.
9626 * infcmd.c (attach_command): Call validate_exec_file.
9627 * remote.c ( remote_target::remote_add_inferior): Likewise.
9628
7ffa82e1
AB
96292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9630
9631 * frame.c (find_frame_sal): Move call to get_next_frame into more
9632 inner scope.
9633 * inline-frame.c (inilne_state) <inline_state>: Update argument
9634 types.
9635 (inilne_state) <skipped_symbol>: Rename to...
9636 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9637 (skip_inline_frames): Build vector of skipped symbols and use this
9638 to reate the inline_state.
9639 (inline_skipped_symbol): Add a comment and some assertions, fetch
9640 skipped symbol from the list.
9641
3d92a3e3
AB
96422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9643
9644 * buildsym.c (lte_is_less_than): Delete.
9645 (buildsym_compunit::end_symtab_with_blockvector): Create local
9646 lambda function to sort line table entries, and use
9647 std::stable_sort instead of std::sort.
9648 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9649 markers when looking for a previous line.
9650
94a72be7
AB
96512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9652
9653 * dwarf2read.c (lnp_state_machine::record_line): Include
9654 end_sequence parameter in debug print out. Record the line if we
9655 are at an end_sequence marker even if it's not the start of a
9656 statement.
9657 * symmisc.c (maintenance_print_one_line_table): Print end of
9658 sequence markers with 'END' not '0'.
9659
53af73bf
PA
96602020-01-24 Pedro Alves <palves@redhat.com>
9661
9662 PR gdb/25410
9663 * thread.c (scoped_restore_current_thread::restore): Use
9664 switch_to_inferior_no_thread.
9665 * exec.c: Include "progspace-and-thread.h".
9666 (add_target_sections, remove_target_sections):
9667 scoped_restore_current_pspace_and_thread instead of
9668 scoped_restore_current_thread.
9669 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9670 and aspace to the inferior before calling clone_program_space.
9671 Remove stale comment.
9672
3050c6f4
CB
96732020-01-24 Christian Biesinger <cbiesinger@google.com>
9674
9675 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9676 (arm_netbsd_nat_target::fetch_registers): ...this.
9677 (arm_nbsd_nat_target::store_registers): Rename to...
9678 (arm_netbsd_nat_target::store_registers): ...this.
9679
73685c7e
CB
96802020-01-24 Christian Biesinger <cbiesinger@google.com>
9681
9682 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9683 register_t.
9684
89203d40
CB
96852020-01-24 Christian Biesinger <cbiesinger@google.com>
9686
9687 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9688 Update comment.
9689 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9690 Likewise.
9691 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9692 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9693 the correct replacement (iterate_over_regset_sections).
9694 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9695 Update comment.
9696
1ba1ac88
AB
96972020-01-24 Graham Markall <graham.markall@embecosm.com>
9698
9699 PR gdb/23718
9700 * gdb/python/python.c (execute_gdb_command): Call
9701 async_enable_stdin in catch block.
9702
f3364a6d
AB
97032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9704
9705 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9706 SWITCH_THRU_ALL_UIS.
9707
733d0a67
AB
97082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9709
9710 PR tui/9765
9711 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9712 comment, add extra parameter, and update to store previous symbol
9713 when appropriate.
9714 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9715 add extra parameter.
9716 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9717 remove unneeded parameter, add try/catch around gdb_print_insn,
9718 rewrite to add items to asm_lines vector.
9719 (tui_find_backward_disassembly_start_address): New function.
9720 (tui_find_disassembly_address): Updated throughout.
9721 (tui_disasm_window::set_contents): Update for changes to
9722 tui_disassemble.
9723 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9724 number of lines to scroll.
9725
b3b3bada
SM
97262020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9727
9728 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9729 (SECT_OFF_DATA): Likewise.
9730 (SECT_OFF_RODATA): Likewise.
9731 (SECT_OFF_TEXT): Likewise.
9732 (SECT_OFF_BSS): Likewise.
9733 (struct objfile) <text_section_offset, data_section_offset>: New
9734 methods.
9735 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9736 objfile::text_section_offset.
9737 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9738 * coffread.c (coff_symtab_read): Likewise.
9739 (enter_linenos): Likewise.
9740 (process_coff_symbol): Likewise.
9741 * ctfread.c (get_objfile_text_range): Likewise.
9742 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9743 Use objfile::data_section_offset.
9744 * dwarf2-frame.c (execute_cfa_program): Use
9745 objfile::text_section_offset.
9746 (dwarf2_frame_find_fde): Likewise.
9747 * dwarf2read.c (create_addrmap_from_index): Likewise.
9748 (create_addrmap_from_aranges): Likewise.
9749 (dw2_find_pc_sect_compunit_symtab): Likewise.
9750 (process_psymtab_comp_unit_reader): Likewise.
9751 (add_partial_symbol): Likewise.
9752 (add_partial_subprogram): Likewise.
9753 (process_full_comp_unit): Likewise.
9754 (read_file_scope): Likewise.
9755 (read_func_scope): Likewise.
9756 (read_lexical_block_scope): Likewise.
9757 (read_call_site_scope): Likewise.
9758 (dwarf2_rnglists_process): Likewise.
9759 (dwarf2_ranges_process): Likewise.
9760 (dwarf2_ranges_read): Likewise.
9761 (dwarf_decode_lines_1): Likewise.
9762 (new_symbol): Likewise.
9763 (dwarf2_fetch_die_loc_sect_off): Likewise.
9764 (dwarf2_per_cu_text_offset): Likewise.
9765 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9766 * hppa-tdep.c (read_unwind_info): Likewise.
9767 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9768 * psympriv.h (struct partial_symtab): Likewise.
9769 * psymtab.c (find_pc_sect_psymtab): Likewise.
9770 * solib-svr4.c (enable_break): Likewise.
9771 * stap-probe.c (relocate_address): Use
9772 objfile::data_section_offset.
9773 * xcoffread.c (enter_line_range): Use
9774 objfile::text_section_offset.
9775 (read_xcoff_symtab): Likewise.
9776
ab53f382
SM
97772020-01-23 Simon Marchi <simon.marchi@efficios.com>
9778
9779 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9780 declaration to narrower scopes.
9781
e7eee665
SM
97822020-01-23 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * darwin-nat.h (struct darwin_exception_msg, enum
9785 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9786 Move up.
9787 (class darwin_nat_target) <wait_1, check_new_threads,
9788 decode_exception_message, decode_message, stop_inferior,
9789 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9790 * darwin-nat.c (darwin_check_new_threads): Rename to...
9791 (darwin_nat_target::check_new_threads): ... this.
9792 (darwin_suspend_inferior_it): Remove.
9793 (darwin_decode_exception_message): Rename to...
9794 (darwin_nat_target::decode_exception_message): ... this.
9795 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9796 (darwin_decode_message): Rename to...
9797 (darwin_nat_target::decode_message): ... this.
9798 (cancel_breakpoint): Rename to...
9799 (darwin_nat_target::cancel_breakpoint): ... this.
9800 (darwin_wait): Rename to...
9801 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9802 instead of iterate_over_inferiors.
9803 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9804 (darwin_stop_inferior): Rename to...
9805 (darwin_nat_target::stop_inferior): ... this.
9806 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9807 (darwin_init_thread_list): Rename to...
9808 (darwin_nat_target::init_thread_list): ... this.
9809 (darwin_ptrace_him): Rename to...
9810 (darwin_nat_target::ptrace_him): ... this.
9811 (darwin_nat_target::create_inferior): Pass lambda function to
9812 fork_inferior.
9813 (darwin_nat_target::detach): Call stop_inferior instead of
9814 darwin_stop_inferior.
9815 * fork-inferior.h (fork_inferior): Change init_trace_fun
9816 parameter to gdb::function_view.
9817 * fork-inferior.c (fork_inferior): Likewise.
9818
c162ed3e
HD
98192020-01-23 Hannes Domani <ssbssa@yahoo.de>
9820
9821 * i386-cygwin-tdep.c (core_process_module_section): Update.
9822 * windows-nat.c (struct lm_info_windows): Add text_offset.
9823 (windows_xfer_shared_libraries): Update.
9824 * windows-tdep.c (windows_xfer_shared_library):
9825 Add text_offset_cached argument.
9826 * windows-tdep.h (windows_xfer_shared_library): Update.
9827
a1237872
SM
98282020-01-21 Simon Marchi <simon.marchi@efficios.com>
9829
9830 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9831
b3ee6dd9
SM
98322020-01-21 Simon Marchi <simon.marchi@efficios.com>
9833
9834 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9835 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9836 replace with range-based for.
9837 (gdbsim_interrupt_inferior): Remove.
9838 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9839 with a range-based for. Inline code from
9840 gdbsim_interrupt_inferior.
9841
f9fac3c8
SM
98422020-01-21 Simon Marchi <simon.marchi@efficios.com>
9843
9844 * infrun.c (proceed): Fix indentation.
9845
f6474de9
TT
98462020-01-21 Tom Tromey <tromey@adacore.com>
9847
9848 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9849 * python/python.c (python_extension_ops): Update.
9850 (gdbpy_colorize): New function.
9851 * python/lib/gdb/__init__.py (colorize): New function.
9852 * extension.h (ext_lang_colorize): Declare.
9853 * extension.c (ext_lang_colorize): New function.
9854 * extension-priv.h (struct extension_language_ops) <colorize>: New
9855 member.
9856 * cli/cli-style.c (_initialize_cli_style): Update help text.
9857
f0c702d4
LM
98582020-01-21 Luis Machado <luis.machado@linaro.org>
9859
9860 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9861 <cond>: Change type to bool.
9862 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9863 (aarch64_displaced_step_cb): Likewise.
9864 (aarch64_displaced_step_tb): Likewise.
9865
1ab139e5
LM
98662020-01-21 Luis Machado <luis.machado@linaro.org>
9867
9868 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9869 output.
9870
0c271889
LM
98712020-01-21 Luis Machado <luis.machado@linaro.org>
9872
9873 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9874 <pc_adjust>: Adjust the documentation.
9875 (aarch64_displaced_step_fixup): Check if PC really moved before
9876 adjusting it.
9877
4d89c1c7
TT
98782020-01-19 Tom Tromey <tom@tromey.com>
9879
9880 * disasm.c (~gdb_disassembler): New destructor.
9881 (gdb_buffered_insn_length): Call disassemble_free_target.
9882 * disasm.h (class gdb_disassembler): Declare destructor. Use
9883 DISABLE_COPY_AND_ASSIGN.
9884
c0ab21c2
TT
98852020-01-19 Tom Tromey <tom@tromey.com>
9886
9887 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9888 (die_reader_func_ftype): Remove.
9889 (cutu_reader): New class.
9890 (dw2_get_file_names_reader): Remove "data" parameter.
9891 (dw2_get_file_names): Use cutu_reader.
9892 (create_debug_type_hash_table): Update.
9893 (read_cutu_die_from_dwo): Update comment.
9894 (lookup_dwo_unit): Add dwo_name parameter.
9895 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9896 die_reader_func_ftype and data parameters.
9897 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9898 Remove die_reader_func_ftype and data parameters.
9899 (~cutu_reader): New; from init_cutu_and_read_dies.
9900 (cutu_reader::cutu_reader): Rename from
9901 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9902 and data parameters.
9903 (init_cutu_and_read_dies_simple): Remove.
9904 (struct process_psymtab_comp_unit_data): Remove.
9905 (process_psymtab_comp_unit_reader): Remove data parameter; add
9906 want_partial_unit and pretend_language parameters.
9907 (process_psymtab_comp_unit): Use cutu_reader.
9908 (build_type_psymtabs_reader): Remove data parameter.
9909 (build_type_psymtabs_1): Use cutu_reader.
9910 (process_skeletonless_type_unit): Likewise.
9911 (load_partial_comp_unit_reader): Remove.
9912 (load_partial_comp_unit): Use cutu_reader.
9913 (load_full_comp_unit_reader): Remove.
9914 (load_full_comp_unit): Use cutu_reader.
9915 (struct create_dwo_cu_data): Remove.
9916 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9917 dwo_unit parameters.
9918 (create_cus_hash_table): Use cutu_reader.
9919 (struct dwarf2_read_addr_index_data): Remove.
9920 (dwarf2_read_addr_index_reader): Remove.
9921 (dwarf2_read_addr_index): Use cutu_reader.
9922 (read_signatured_type_reader): Remove.
9923 (read_signatured_type): Use cutu_reader.
9924
45bbae5c
TT
99252020-01-19 Tom Tromey <tom@tromey.com>
9926
9927 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9928 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9929 (tui_wrefresh): Declare.
9930 * tui/tui-wingeneral.c (suppress_output): New global.
9931 (tui_suppress_output, ~tui_suppress_output): New constructor and
9932 destructor.
9933 (tui_wrefresh): New function.
9934 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9935 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9936 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9937 method.
9938 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9939 tui_wrefresh.
9940 (tui_data_window::no_refresh): New method.
9941 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9942 (tui_reg_command): Use tui_suppress_output
9943 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9944 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9945 method.
9946 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9947
4f13c1c0
TT
99482020-01-19 Tom Tromey <tom@tromey.com>
9949
9950 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9951 Handle case where symtab is null.
9952
fa47e446
SM
99532020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9954
9955 * linux-fork.c (one_fork_p): Simplify.
9956
26f42329
SM
99572020-01-17 Simon Marchi <simon.marchi@efficios.com>
9958
9959 * top.c (struct qt_args): Remove.
9960 (kill_or_detach): Change return type to void, replace `void *`
9961 parameter with a proper one.
9962 (print_inferior_quit_action): Likewise.
9963 (quit_confirm): Use range-based for loop to iterate over inferiors.
9964 (quit_force): Likewise.
9965
a9ac81b1
SM
99662020-01-17 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9969 `void *` parameter with proper parameters.
9970 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9971 (print_one_inferior): Change return type to void, replace `void *`
9972 parameter with proper parameters.
9973 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9974 inferiors.
9975 (get_other_inferior): Remove.
9976 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9977 inferiors.
9978
788eca49
SM
99792020-01-17 Simon Marchi <simon.marchi@efficios.com>
9980
9981 * mi/mi-interp.c (report_initial_inferior): Remove.
9982 (mi_interp::init): Use range-based for to iterate over inferiors.
9983
d9bc85b6
SM
99842020-01-17 Simon Marchi <simon.marchi@efficios.com>
9985
9986 * python/py-inferior.c (build_inferior_list): Remove.
9987 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9988
40c94099
CB
99892020-01-16 Christian Biesinger <cbiesinger@google.com>
9990
9991 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9992 (btrace_stitch_trace): Likewise.
9993 * charset.c (intermediate_encoding): Likewise (vaild).
9994 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9995 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9996 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9997
e0cdfe3c
HD
99982020-01-16 Hannes Domani <ssbssa@yahoo.de>
9999
10000 * windows-tdep.c (windows_get_tlb_type):
10001 Add rtl_user_process_parameters type.
10002
790f1718 100032020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10004 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10005
10006 PR build/24805
10007 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10008 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10009 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10010 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10011 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10012 (ps_plog): Redeclare exported functions with default visibility.
10013
3112ed97
NA
100142020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10015
10016 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10017 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10018
8dc3273e
SM
100192020-01-15 Simon Marchi <simon.marchi@efficios.com>
10020
10021 * infcmd.c (post_create_inferior): Use get_thread_regcache
10022 instead of get_current_regcache.
10023
ff47f4f0
TT
100242020-01-14 Tom Tromey <tom@tromey.com>
10025
10026 PR symtab/12535:
10027 * python/python.c (gdbpy_decode_line): Treat empty string the same
10028 as no argument.
10029
975f45b7
TT
100302020-01-14 Tom Tromey <tom@tromey.com>
10031
10032 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10033
25e57356
TT
100342020-01-14 Tom Tromey <tom@tromey.com>
10035
10036 * nat/linux-btrace.c: Don't include <config.h>.
10037 * nat/linux-ptrace.c: Don't include <config.h>.
10038 * nat/x86-linux-dregs.c: Don't include <config.h>.
10039
05ea2a05
TT
100402020-01-14 Tom Tromey <tom@tromey.com>
10041
10042 * configure: Rebuild.
10043 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10044
01027315
TT
100452020-01-14 Tom Tromey <tom@tromey.com>
10046
10047 * nat/x86-linux-dregs.c: Include configh.h.
10048 * nat/linux-ptrace.c: Include configh.h.
10049 * nat/linux-btrace.c: Include configh.h.
10050 * defs.h: Include config.h, bfd.h.
10051 * configure.ac: Don't source common.host.
10052 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10053 * configure: Rebuild.
10054 * acinclude.m4: Update path.
10055 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10056 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10057 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10058 (CLIBS): Add LIBSUPPORT.
10059 (CDEPS): Likewise.
10060 (COMMON_SFILES): Remove gdbsupport files.
10061 (HFILES_NO_SRCDIR): Likewise.
10062 (stamp-version): Update path to create-version.sh.
10063 (ALLDEPFILES): Remove gdbsupport files.
10064
b2ceabe8
TT
100652020-01-14 Tom Tromey <tom@tromey.com>
10066
10067 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10068 USE_WIN32API when needed.
10069 * configure.ac (USE_WIN32API): Don't define.
10070 (WIN32LIBS): Use WIN32APILIBS.
10071 * configure: Rebuild.
10072
25c51f71
TT
100732020-01-14 Tom Tromey <tom@tromey.com>
10074
10075 * configure: Rebuild.
10076 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10077
717c684d
BE
100782020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10079
10080 * skip.c (skip_function_command): Make skip w/o arguments use the
10081 name of the inlined function if pc is inside any inlined function.
10082
7da6a5b9
LM
100832020-01-14 Luis Machado <luis.machado@linaro.org>
10084
10085 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10086 * infrun.c (resume_1): Likewise.
10087 (handle_inferior_event): Remove stale comment.
10088 * linux-nat.c (linux_nat_target::resume): Update comments.
10089 (save_stop_reason): Likewise.
10090 (linux_nat_filter_event): Likewise.
10091 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10092
44e4c775
AB
100932020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10094
10095 * elfread.c (record_minimal_symbol): Set section index to 0 for
10096 non-allocatable sections.
10097
18a8505e
AT
10098
100992020-01-13 Ali Tamur <tamur@google.com>
10100
10101 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10102 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10103 to gdb::optional. Update comments.
10104 (dwo_file): Update comments.
10105 (read_attribute): Update API to take an additional out parameter,
10106 need_reprocess. This is used to mark attributes that need other
10107 attributes (e.g. str_offsets_base) for correct computation which may not
10108 have been read yet.
10109 (read_attribute_reprocess): New function declaration.
10110 (read_addr_index): Likewise.
10111 (read_dwo_str_index): Likewise.
10112 (read_stub_str_index): Likewise.
10113 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10114 (lookup_addr_base): New function definition.
10115 (lookup_ranges_base): Likewise.
10116 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10117 lookup_ranges_base.
10118 (init_cutu_and_read_dies): Update comments.
10119 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10120 unit. This is used to inherit parent's str_offsets_base and addr_base.
10121 Update comments.
10122 (init_cutu_and_read_dies_simple): Reflect API changes.
10123 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10124 (create_cus_hash_table): Change API to take parent compile unit.
10125 Reflect API changes.
10126 (open_and_init_dwo_file): Reflect API changes.
10127 (dwarf2_get_pc_bounds): Update comments.
10128 (dwarf2_record_block_ranges): Likewise.
10129 (read_full_die_1): Change implementation to reprocess attributes that
10130 need str_offsets_base and addr_base.
10131 (partial_die_info::read): Likewise.
10132 (read_attribute_reprocess): New function definition.
10133 (read_attribute_value): Change API to take an additional out parameter,
10134 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10135 when a non-dwo compile unit has index based attributes.
10136 (read_attribute): Reflect API changes.
10137 (read_addr_index_1): Reflect API changes. Update comments.
10138 (dwarf2_read_addr_index_data): Reflect API changes.
10139 (dwarf2_read_addr_index): Likewise.
10140 (read_str_index): Change API and implementation. This becomes a helper
10141 to be used by the new string index related methods. Update error
10142 message and comments.
10143 (read_dwo_str_index): New function definition.
10144 (read_stub_str_index): Likewise.
10145 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10146 * symfile.h (dwarf2_debug_sections): Likewise.
10147 * xcoffread.c (dwarf2_debug_sections): Likewise.
10148
0cac9354
SM
101492020-01-13 Simon Marchi <simon.marchi@efficios.com>
10150
10151 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10152 core_reg_sect type to gdb_byte *.
10153 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10154 * cris-tdep.c (fetch_core_registers): Likewise.
10155 * corelow.c (core_target::get_core_register_section): Change
10156 type of `contents` to gdb::byte_vector.
10157
9a6d629c
AB
101582020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10159
10160 * tui/tui-wingeneral.c (box_win): Position the title in the center
10161 of the border.
10162
d8b2f9e3
SM
101632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10164
10165 * corelow.c (core_target::get_core_register_section): Use
10166 std::vector instead of alloca.
10167
bb564c58
SM
101682020-01-13 Simon Marchi <simon.marchi@efficios.com>
10169
10170 * warning.m4: Add -Wmissing-declarations to build_warnings.
10171 * configure: Re-generate.
10172
6b366111
SM
101732020-01-13 Simon Marchi <simon.marchi@efficios.com>
10174
10175 * python/python.c (init__gdb_module): Add declaration.
10176
6c265988
SM
101772020-01-13 Simon Marchi <simon.marchi@efficios.com>
10178
10179 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10180 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10181 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10182 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10183 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10184 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10185 * ada-exp.y (_initialize_ada_exp): Add declaration.
10186 * ada-lang.c (_initialize_ada_language): Add declaration.
10187 * ada-tasks.c (_initialize_tasks): Add declaration.
10188 * agent.c (_initialize_agent): Add declaration.
10189 * aix-thread.c (_initialize_aix_thread): Add declaration.
10190 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10191 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10192 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10193 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10194 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10195 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10196 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10197 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10198 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10199 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10200 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10201 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10202 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10203 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10204 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10205 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10206 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10207 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10208 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10209 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10210 * annotate.c (_initialize_annotate): Add declaration.
10211 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10212 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10213 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10214 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10215 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10216 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10217 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10218 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10219 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10220 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10221 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10222 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10223 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10224 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10225 * auto-load.c (_initialize_auto_load): Add declaration.
10226 * auxv.c (_initialize_auxv): Add declaration.
10227 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10228 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10229 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10230 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10231 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10232 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10233 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10234 * breakpoint.c (_initialize_breakpoint): Add declaration.
10235 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10236 * btrace.c (_initialize_btrace): Add declaration.
10237 * charset.c (_initialize_charset): Add declaration.
10238 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10239 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10240 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10241 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10242 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10243 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10244 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10245 * coffread.c (_initialize_coffread): Add declaration.
10246 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10247 * compile/compile.c (_initialize_compile): Add declaration.
10248 * complaints.c (_initialize_complaints): Add declaration.
10249 * completer.c (_initialize_completer): Add declaration.
10250 * copying.c (_initialize_copying): Add declaration.
10251 * corefile.c (_initialize_core): Add declaration.
10252 * corelow.c (_initialize_corelow): Add declaration.
10253 * cp-abi.c (_initialize_cp_abi): Add declaration.
10254 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10255 * cp-support.c (_initialize_cp_support): Add declaration.
10256 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10257 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10258 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10259 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10260 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10261 * ctfread.c (_initialize_ctfread): Add declaration.
10262 * d-lang.c (_initialize_d_language): Add declaration.
10263 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10264 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10265 * dbxread.c (_initialize_dbxread): Add declaration.
10266 * dcache.c (_initialize_dcache): Add declaration.
10267 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10268 * disasm.c (_initialize_disasm): Add declaration.
10269 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10270 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10271 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10272 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10273 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10274 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10275 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10276 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10277 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10278 * elfread.c (_initialize_elfread): Add declaration.
10279 * exec.c (_initialize_exec): Add declaration.
10280 * extension.c (_initialize_extension): Add declaration.
10281 * f-lang.c (_initialize_f_language): Add declaration.
10282 * f-valprint.c (_initialize_f_valprint): Add declaration.
10283 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10284 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10285 * filesystem.c (_initialize_filesystem): Add declaration.
10286 * findcmd.c (_initialize_mem_search): Add declaration.
10287 * findvar.c (_initialize_findvar): Add declaration.
10288 * fork-child.c (_initialize_fork_child): Add declaration.
10289 * frame-base.c (_initialize_frame_base): Add declaration.
10290 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10291 * frame.c (_initialize_frame): Add declaration.
10292 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10293 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10294 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10295 * gcore.c (_initialize_gcore): Add declaration.
10296 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10297 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10298 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10299 * gdbarch.c (_initialize_gdbarch): Add declaration.
10300 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10301 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10302 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10303 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10304 * go-lang.c (_initialize_go_language): Add declaration.
10305 * go32-nat.c (_initialize_go32_nat): Add declaration.
10306 * guile/guile.c (_initialize_guile): Add declaration.
10307 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10308 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10309 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10310 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10311 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10312 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10313 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10314 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10315 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10316 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10317 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10318 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10319 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10320 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10321 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10322 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10323 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10324 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10325 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10326 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10327 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10328 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10329 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10330 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10331 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10332 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10333 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10334 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10335 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10336 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10337 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10338 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10339 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10340 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10341 * infcall.c (_initialize_infcall): Add declaration.
10342 * infcmd.c (_initialize_infcmd): Add declaration.
10343 * inflow.c (_initialize_inflow): Add declaration.
10344 * infrun.c (_initialize_infrun): Add declaration.
10345 * interps.c (_initialize_interpreter): Add declaration.
10346 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10347 * jit.c (_initialize_jit): Add declaration.
10348 * language.c (_initialize_language): Add declaration.
10349 * linux-fork.c (_initialize_linux_fork): Add declaration.
10350 * linux-nat.c (_initialize_linux_nat): Add declaration.
10351 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10352 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10353 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10354 * m2-lang.c (_initialize_m2_language): Add declaration.
10355 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10356 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10357 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10358 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10359 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10360 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10361 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10362 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10363 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10364 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10365 * machoread.c (_initialize_machoread): Add declaration.
10366 * macrocmd.c (_initialize_macrocmd): Add declaration.
10367 * macroscope.c (_initialize_macroscope): Add declaration.
10368 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10369 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10370 * maint.c (_initialize_maint_cmds): Add declaration.
10371 * mdebugread.c (_initialize_mdebugread): Add declaration.
10372 * memattr.c (_initialize_mem): Add declaration.
10373 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10374 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10375 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10376 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10377 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10378 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10379 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10380 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10381 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10382 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10383 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10384 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10385 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10386 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10387 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10388 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10389 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10390 * mipsread.c (_initialize_mipsread): Add declaration.
10391 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10392 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10393 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10394 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10395 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10396 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10397 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10398 * nto-procfs.c (_initialize_procfs): Add declaration.
10399 * objc-lang.c (_initialize_objc_language): Add declaration.
10400 * observable.c (_initialize_observer): Add declaration.
10401 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10402 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10403 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10404 * osabi.c (_initialize_gdb_osabi): Add declaration.
10405 * osdata.c (_initialize_osdata): Add declaration.
10406 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10407 * parse.c (_initialize_parse): Add declaration.
10408 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10409 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10410 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10411 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10412 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10413 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10414 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10415 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10416 * printcmd.c (_initialize_printcmd): Add declaration.
10417 * probe.c (_initialize_probe): Add declaration.
10418 * proc-api.c (_initialize_proc_api): Add declaration.
10419 * proc-events.c (_initialize_proc_events): Add declaration.
10420 * proc-service.c (_initialize_proc_service): Add declaration.
10421 * procfs.c (_initialize_procfs): Add declaration.
10422 * producer.c (_initialize_producer): Add declaration.
10423 * psymtab.c (_initialize_psymtab): Add declaration.
10424 * python/python.c (_initialize_python): Add declaration.
10425 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10426 * record-btrace.c (_initialize_record_btrace): Add declaration.
10427 * record-full.c (_initialize_record_full): Add declaration.
10428 * record.c (_initialize_record): Add declaration.
10429 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10430 * regcache.c (_initialize_regcache): Add declaration.
10431 * reggroups.c (_initialize_reggroup): Add declaration.
10432 * remote-notif.c (_initialize_notif): Add declaration.
10433 * remote-sim.c (_initialize_remote_sim): Add declaration.
10434 * remote.c (_initialize_remote): Add declaration.
10435 * reverse.c (_initialize_reverse): Add declaration.
10436 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10437 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10438 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10439 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10440 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10441 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10442 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10443 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10444 Add declaration.
10445 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10446 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10447 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10448 * rust-exp.y (_initialize_rust_exp): Add declaration.
10449 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10450 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10451 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10452 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10453 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10454 * score-tdep.c (_initialize_score_tdep): Add declaration.
10455 * ser-go32.c (_initialize_ser_dos): Add declaration.
10456 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10457 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10458 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10459 * ser-uds.c (_initialize_ser_socket): Add declaration.
10460 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10461 * serial.c (_initialize_serial): Add declaration.
10462 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10463 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10464 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10465 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10466 * skip.c (_initialize_step_skip): Add declaration.
10467 * sol-thread.c (_initialize_sol_thread): Add declaration.
10468 * solib-aix.c (_initialize_solib_aix): Add declaration.
10469 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10470 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10471 * solib-frv.c (_initialize_frv_solib): Add declaration.
10472 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10473 * solib-target.c (_initialize_solib_target): Add declaration.
10474 * solib.c (_initialize_solib): Add declaration.
10475 * source-cache.c (_initialize_source_cache): Add declaration.
10476 * source.c (_initialize_source): Add declaration.
10477 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10478 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10479 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10480 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10481 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10482 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10483 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10484 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10485 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10486 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10487 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10488 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10489 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10490 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10491 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10492 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10493 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10494 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10495 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10496 * stabsread.c (_initialize_stabsread): Add declaration.
10497 * stack.c (_initialize_stack): Add declaration.
10498 * stap-probe.c (_initialize_stap_probe): Add declaration.
10499 * std-regs.c (_initialize_frame_reg): Add declaration.
10500 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10501 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10502 * symfile.c (_initialize_symfile): Add declaration.
10503 * symmisc.c (_initialize_symmisc): Add declaration.
10504 * symtab.c (_initialize_symtab): Add declaration.
10505 * target.c (_initialize_target): Add declaration.
10506 * target-connection.c (_initialize_target_connection): Add
10507 declaration.
10508 * target-dcache.c (_initialize_target_dcache): Add declaration.
10509 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10510 * thread.c (_initialize_thread): Add declaration.
10511 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10512 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10513 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10514 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10515 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10516 * tracectf.c (_initialize_ctf): Add declaration.
10517 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10518 * tracefile.c (_initialize_tracefile): Add declaration.
10519 * tracepoint.c (_initialize_tracepoint): Add declaration.
10520 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10521 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10522 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10523 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10524 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10525 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10526 * tui/tui.c (_initialize_tui): Add declaration.
10527 * typeprint.c (_initialize_typeprint): Add declaration.
10528 * ui-style.c (_initialize_ui_style): Add declaration.
10529 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10530 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10531 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10532 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10533 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10534 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10535 * unittests/filtered_iterator-selftests.c
10536 (_initialize_filtered_iterator_selftests): Add declaration.
10537 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10538 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10539 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10540 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10541 * unittests/main-thread-selftests.c
10542 (_initialize_main_thread_selftests): Add declaration.
10543 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10544 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10545 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10546 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10547 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10548 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10549 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10550 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10551 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10552 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10553 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10554 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10555 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10556 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10557 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10558 declaration.
10559 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10560 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10561 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10562 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10563 * user-regs.c (_initialize_user_regs): Add declaration.
10564 * utils.c (_initialize_utils): Add declaration.
10565 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10566 * valops.c (_initialize_valops): Add declaration.
10567 * valprint.c (_initialize_valprint): Add declaration.
10568 * value.c (_initialize_values): Add declaration.
10569 * varobj.c (_initialize_varobj): Add declaration.
10570 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10571 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10572 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10573 * windows-nat.c (_initialize_windows_nat): Add declaration.
10574 (_initialize_check_for_gdb_ini): Add declaration.
10575 (_initialize_loadable): Add declaration.
10576 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10577 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10578 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10579 * xcoffread.c (_initialize_xcoffread): Add declaration.
10580 * xml-support.c (_initialize_xml_support): Add declaration.
10581 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10582 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10583 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10584 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10585
e2de1eec
SM
105862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10587
10588 * regformats/regdat.sh: Generate declaration for init function.
10589
e0037b4c
SM
105902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10591
10592 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10593 up.
10594 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10595 close_one_inferior>: New methods.
10596 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10597 pass down target to find_inferior_pid.
10598 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10599 Pass down target to find_inferior_ptid.
10600 (gdbsim_target::create_inferior): Pass down target to
10601 add_thread_silent.
10602 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10603 target down to find_inferior_ptid and switch_to_thread.
10604 (gdbsim_target::close): Update to call close_one_inferior.
10605 (struct resume_data): Remove.
10606 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10607 directly, rather than through a void pointer.
10608 (gdbsim_target::resume): Update to call resume_one_inferior.
10609
58920b5b
SM
106102020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10611
10612 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10613
4ec89149
PA
106142020-01-12 Pedro Alves <palves@redhat.com>
10615
10616 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10617 directly for the current inferior instead of
10618 discard_all_inferiors.
10619 (discard_all_inferiors): Delete.
10620
7c392d1d
TT
106212020-01-11 Tom Tromey <tom@tromey.com>
10622
10623 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10624 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10625 deprecated_safe_get_selected_frame.
10626
d9ebdab7
TBA
106272020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10628
10629 * inferior.c (print_inferior): Switch inferior before printing it.
10630
f3c469b9
PA
106312020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10632 Pedro Alves <palves@redhat.com>
10633
10634 * progspace-and-thread.c (switch_to_program_space_and_thread):
10635 Assert there's an inferior for PSPACE. Use
10636 switch_to_inferior_no_thread to switch the inferior too.
10637 * progspace.c (program_space::~program_space): Call
10638 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10639 (program_space::free_all_objfiles): Don't call clear_symtab_users
10640 here.
10641 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10642
65c574f6
PA
106432020-01-10 Pedro Alves <palves@redhat.com>
10644
10645 * NEWS: Mention multi-target debugging, "info connections", and
10646 "add-inferior -no-connection".
10647
2f4fcf00
PA
106482020-01-10 Pedro Alves <palves@redhat.com>
10649
10650 * infrun.c: Include "target-connection.h".
10651 (check_multi_target_resumption): New.
10652 (proceed): Call it.
10653 * target-connection.c (make_target_connection_string): Make
10654 extern.
10655 * target-connection.h (make_target_connection_string): Declare.
10656
121b3efd
PA
106572020-01-10 Pedro Alves <palves@redhat.com>
10658
10659 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10660 * inferior.c (uiout_field_connection): New function.
10661 (print_inferior): Add new "connection-id" column.
10662 (add_inferior_command): Show connection number/string of added
10663 inferior.
10664 * process-stratum-target.h
10665 (process_stratum_target::connection_string): New virtual method.
10666 (process_stratum_target::connection_number): New field.
10667 * remote.c (remote_target::connection_string): New override.
10668 * target-connection.c: New file.
10669 * target-connection.h: New file.
10670 * target.c (decref_target): Remove process_stratum targets from
10671 the connection list.
10672 (target_stack::push): Add process_stratum targets to the
10673 connection list.
10674
4f837581
PA
106752020-01-10 Pedro Alves <palves@redhat.com>
10676
10677 Revert:
10678 2016-04-12 Pedro Alves <palves@redhat.com>
10679 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10680 Remove references to name.
10681 * serial.h (struct serial) <name>: Delete.
10682
f4ec508e
PA
106832020-01-10 Pedro Alves <palves@redhat.com>
10684
10685 * gdbarch-selftests.c (register_to_value_test): Remove "target
10686 already pushed" check.
10687
5b6d1e4f
PA
106882020-01-10 Pedro Alves <palves@redhat.com>
10689 John Baldwin <jhb@FreeBSD.org>
10690
10691 * aarch64-linux-nat.c
10692 (aarch64_linux_nat_target::thread_architecture): Adjust.
10693 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10694 (task_command_1): Likewise.
10695 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10696 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10697 (aix_thread_target::store_registers)
10698 (aix_thread_target::thread_alive): Adjust.
10699 * amd64-fbsd-tdep.c: Include "inferior.h".
10700 (amd64fbsd_get_thread_local_address): Pass down target.
10701 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10702 thread's gdbarch instead of target_gdbarch.
10703 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10704 get_last_target_status.
10705 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10706 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10707 inferiors.
10708 (update_inserted_breakpoint_locations): Skip if inferiors with no
10709 execution.
10710 (update_global_location_list): When handling moribund locations,
10711 find representative inferior for location's pspace, and use thread
10712 count of its process_stratum target.
10713 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10714 * bsd-uthread.c (bsd_uthread_target::wait): Use
10715 as_process_stratum_target and adjust thread_change_ptid and
10716 add_thread calls.
10717 (bsd_uthread_target::update_thread_list): Use
10718 as_process_stratum_target and adjust find_thread_ptid,
10719 thread_change_ptid and add_thread calls.
10720 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10721 find_thread_ptid call.
10722 * corelow.c (add_to_thread_list): Adjust add_thread call.
10723 (core_target_open): Adjust add_thread_silent and thread_count
10724 calls.
10725 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10726 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10727 * event-top.c (async_disconnect): Pop targets from all inferiors.
10728 * exec.c (add_target_sections): Push exec target on all inferiors
10729 sharing the program space.
10730 (remove_target_sections): Remove the exec target from all
10731 inferiors sharing the program space.
10732 (exec_on_vfork): New.
10733 * exec.h (exec_on_vfork): Declare.
10734 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10735 Pass it down.
10736 (fbsd_nat_target::update_thread_list): Adjust.
10737 (fbsd_nat_target::resume): Adjust.
10738 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10739 down.
10740 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10741 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10742 get_thread_arch_regcache call.
10743 * fork-child.c (gdb_startup_inferior): Pass target down to
10744 startup_inferior and set_executing.
10745 * gdbthread.h (struct process_stratum_target): Forward declare.
10746 (add_thread, add_thread_silent, add_thread_with_info)
10747 (in_thread_list): Add process_stratum_target parameter.
10748 (find_thread_ptid(inferior*, ptid_t)): New overload.
10749 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10750 parameter.
10751 (all_threads()): Delete overload.
10752 (all_threads, all_non_exited_threads): Add process_stratum_target
10753 parameter.
10754 (all_threads_safe): Use brace initialization.
10755 (thread_count): Add process_stratum_target parameter.
10756 (set_resumed, set_running, set_stop_requested, set_executing)
10757 (threads_are_executing, finish_thread_state): Add
10758 process_stratum_target parameter.
10759 (switch_to_thread): Use is_current_thread.
10760 * i386-fbsd-tdep.c: Include "inferior.h".
10761 (i386fbsd_get_thread_local_address): Pass down target.
10762 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10763 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10764 have_inferiors check.
10765 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10766 (inf_ptrace_target::attach): Adjust.
10767 * infcall.c (run_inferior_call): Adjust.
10768 * infcmd.c (run_command_1): Pass target to
10769 scoped_finish_thread_state.
10770 (proceed_thread_callback): Skip inferiors with no execution.
10771 (continue_command): Rename 'all_threads' local to avoid hiding
10772 'all_threads' function. Adjust get_last_target_status call.
10773 (prepare_one_step): Adjust set_running call.
10774 (signal_command): Use user_visible_resume_target. Compare thread
10775 pointers instead of inferior_ptid.
10776 (info_program_command): Adjust to pass down target.
10777 (attach_command): Mark target's 'thread_executing' flag.
10778 (stop_current_target_threads_ns): New, factored out from ...
10779 (interrupt_target_1): ... this. Switch inferior before making
10780 target calls.
10781 * inferior-iter.h
10782 (struct all_inferiors_iterator, struct all_inferiors_range)
10783 (struct all_inferiors_safe_range)
10784 (struct all_non_exited_inferiors_range): Filter on
10785 process_stratum_target too. Remove explicit.
10786 * inferior.c (inferior::inferior): Push dummy target on target
10787 stack.
10788 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10789 Add process_stratum_target parameter, and pass it down.
10790 (have_live_inferiors): Adjust.
10791 (switch_to_inferior_and_push_target): New.
10792 (add_inferior_command, clone_inferior_command): Handle
10793 "-no-connection" parameter. Use
10794 switch_to_inferior_and_push_target.
10795 (_initialize_inferior): Mention "-no-connection" option in
10796 the help of "add-inferior" and "clone-inferior" commands.
10797 * inferior.h: Include "process-stratum-target.h".
10798 (interrupt_target_1): Use bool.
10799 (struct inferior) <push_target, unpush_target, target_is_pushed,
10800 find_target_beneath, top_target, process_target, target_at,
10801 m_stack>: New.
10802 (discard_all_inferiors): Delete.
10803 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10804 (all_inferiors, all_non_exited_inferiors): Add
10805 process_stratum_target parameter.
10806 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10807 (target_last_proc_target): New global.
10808 (follow_fork_inferior): Push target on new inferior. Pass target
10809 to add_thread_silent. Call exec_on_vfork. Handle target's
10810 reference count.
10811 (follow_fork): Adjust get_last_target_status call. Also consider
10812 target.
10813 (follow_exec): Push target on new inferior.
10814 (struct execution_control_state) <target>: New field.
10815 (user_visible_resume_target): New.
10816 (do_target_resume): Call target_async.
10817 (resume_1): Set target's threads_executing flag. Consider resume
10818 target.
10819 (commit_resume_all_targets): New.
10820 (proceed): Also consider resume target. Skip threads of inferiors
10821 with no execution. Commit resumtion in all targets.
10822 (start_remote): Pass current inferior to wait_for_inferior.
10823 (infrun_thread_stop_requested): Consider target as well. Pass
10824 thread_info pointer to clear_inline_frame_state instead of ptid.
10825 (infrun_thread_thread_exit): Consider target as well.
10826 (random_pending_event_thread): New inferior parameter. Use it.
10827 (do_target_wait): Rename to ...
10828 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10829 down.
10830 (threads_are_resumed_pending_p, do_target_wait): New.
10831 (prepare_for_detach): Adjust calls.
10832 (wait_for_inferior): New inferior parameter. Handle it. Use
10833 do_target_wait_1 instead of do_target_wait.
10834 (fetch_inferior_event): Adjust. Switch to representative
10835 inferior. Pass target down.
10836 (set_last_target_status): Add process_stratum_target parameter.
10837 Save target in global.
10838 (get_last_target_status): Add process_stratum_target parameter and
10839 handle it.
10840 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10841 (context_switch): Check inferior_ptid == null_ptid before calling
10842 inferior_thread().
10843 (get_inferior_stop_soon): Pass down target.
10844 (wait_one): Rename to ...
10845 (poll_one_curr_target): ... this.
10846 (struct wait_one_event): New.
10847 (wait_one): New.
10848 (stop_all_threads): Adjust.
10849 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10850 event's target.
10851 (switch_back_to_stepped_thread): Also consider target.
10852 (print_stop_event): Update.
10853 (normal_stop): Update. Also consider the resume target.
10854 * infrun.h (wait_for_inferior): Remove declaration.
10855 (user_visible_resume_target): New declaration.
10856 (get_last_target_status, set_last_target_status): New
10857 process_stratum_target parameter.
10858 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10859 process_stratum_target parameter, and use it.
10860 (clear_inline_frame_state (thread_info*)): New.
10861 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10862 process_stratum_target parameter.
10863 (clear_inline_frame_state (thread_info*)): Declare.
10864 * linux-fork.c (delete_checkpoint_command): Pass target down to
10865 find_thread_ptid.
10866 (checkpoint_command): Adjust.
10867 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10868 instead of just tweaking inferior_ptid.
10869 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10870 (exit_lwp): Pass target down to find_thread_ptid.
10871 (attach_proc_task_lwp_callback): Pass target down to
10872 add_thread/set_running/set_executing.
10873 (linux_nat_target::attach): Pass target down to
10874 thread_change_ptid.
10875 (get_detach_signal): Pass target down to find_thread_ptid.
10876 Consider last target status's target.
10877 (linux_resume_one_lwp_throw, resume_lwp)
10878 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10879 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10880 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10881 (linux_nat_target::async_wait_fd): New.
10882 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10883 target down.
10884 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10885 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10886 * linux-thread-db.c (struct thread_db_info::process_target): New
10887 field.
10888 (add_thread_db_info): Save target.
10889 (get_thread_db_info): New process_stratum_target parameter. Also
10890 match target.
10891 (delete_thread_db_info): New process_stratum_target parameter.
10892 Also match target.
10893 (thread_from_lwp): Adjust to pass down target.
10894 (thread_db_notice_clone): Pass down target.
10895 (check_thread_db_callback): Pass down target.
10896 (try_thread_db_load_1): Always push the thread_db target.
10897 (try_thread_db_load, record_thread): Pass target down.
10898 (thread_db_target::detach): Pass target down. Always unpush the
10899 thread_db target.
10900 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10901 target down. Always unpush the thread_db target.
10902 (find_new_threads_callback, thread_db_find_new_threads_2)
10903 (thread_db_target::update_thread_list): Pass target down.
10904 (thread_db_target::pid_to_str): Pass current inferior down.
10905 (thread_db_target::get_thread_local_address): Pass target down.
10906 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10907 target down.
10908 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10909 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10910 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10911 (procfs_init_inferior): Rename to ...
10912 (procfs_target::procfs_init_inferior): ... this and adjust.
10913 (procfs_target::create_inferior, procfs_notice_thread)
10914 (procfs_do_thread_registers): Adjust.
10915 * ppc-fbsd-tdep.c: Include "inferior.h".
10916 (ppcfbsd_get_thread_local_address): Pass down target.
10917 * proc-service.c (ps_xfer_memory): Switch current inferior and
10918 program space as well.
10919 (get_ps_regcache): Pass target down.
10920 * process-stratum-target.c
10921 (process_stratum_target::thread_address_space)
10922 (process_stratum_target::thread_architecture): Pass target down.
10923 * process-stratum-target.h
10924 (process_stratum_target::threads_executing): New field.
10925 (as_process_stratum_target): New.
10926 * ravenscar-thread.c
10927 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10928 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10929 down.
10930 * record-btrace.c (record_btrace_target::info_record): Adjust.
10931 (record_btrace_target::record_method)
10932 (record_btrace_target::record_is_replaying)
10933 (record_btrace_target::fetch_registers)
10934 (get_thread_current_frame_id, record_btrace_target::resume)
10935 (record_btrace_target::wait, record_btrace_target::stop): Pass
10936 target down.
10937 * record-full.c (record_full_wait_1): Switch to event thread.
10938 Pass target down.
10939 * regcache.c (regcache::regcache)
10940 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10941 process_stratum_target parameter and handle it.
10942 (current_thread_target): New global.
10943 (get_thread_regcache): Add process_stratum_target parameter and
10944 handle it. Switch inferior before calling target method.
10945 (get_thread_regcache): Pass target down.
10946 (get_thread_regcache_for_ptid): Pass target down.
10947 (registers_changed_ptid): Add process_stratum_target parameter and
10948 handle it.
10949 (registers_changed_thread, registers_changed): Pass target down.
10950 (test_get_thread_arch_aspace_regcache): New.
10951 (current_regcache_test): Define a couple local test_target_ops
10952 instances and use them for testing.
10953 (readwrite_regcache): Pass process_stratum_target parameter.
10954 (cooked_read_test, cooked_write_test): Pass mock_target down.
10955 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10956 (get_thread_arch_aspace_regcache): Add process_stratum_target
10957 parameter.
10958 (regcache::target): New method.
10959 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10960 (regcache::registers_changed_ptid): Add process_stratum_target
10961 parameter.
10962 (regcache::m_target): New field.
10963 (registers_changed_ptid): Add process_stratum_target parameter.
10964 * remote.c (remote_state::supports_vCont_probed): New field.
10965 (remote_target::async_wait_fd): New method.
10966 (remote_unpush_and_throw): Add remote_target parameter.
10967 (get_current_remote_target): Adjust.
10968 (remote_target::remote_add_inferior): Push target.
10969 (remote_target::remote_add_thread)
10970 (remote_target::remote_notice_new_inferior)
10971 (get_remote_thread_info): Pass target down.
10972 (remote_target::update_thread_list): Skip threads of inferiors
10973 bound to other targets. (remote_target::close): Don't discard
10974 inferiors. (remote_target::add_current_inferior_and_thread)
10975 (remote_target::process_initial_stop_replies)
10976 (remote_target::start_remote)
10977 (remote_target::remote_serial_quit_handler): Pass down target.
10978 (remote_target::remote_unpush_target): New remote_target
10979 parameter. Unpush the target from all inferiors.
10980 (remote_target::remote_unpush_and_throw): New remote_target
10981 parameter. Pass it down.
10982 (remote_target::open_1): Check whether the current inferior has
10983 execution instead of checking whether any inferior is live. Pass
10984 target down.
10985 (remote_target::remote_detach_1): Pass down target. Use
10986 remote_unpush_target.
10987 (extended_remote_target::attach): Pass down target.
10988 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10989 (remote_target::append_resumption): Pass down target.
10990 (remote_target::append_pending_thread_resumptions)
10991 (remote_target::remote_resume_with_hc, remote_target::resume)
10992 (remote_target::commit_resume): Pass down target.
10993 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10994 (remote_target::interrupt_query)
10995 (remote_target::remove_new_fork_children)
10996 (remote_target::check_pending_events_prevent_wildcard_vcont)
10997 (remote_target::remote_parse_stop_reply)
10998 (remote_target::process_stop_reply): Pass down target.
10999 (first_remote_resumed_thread): New remote_target parameter. Pass
11000 it down.
11001 (remote_target::wait_as): Pass down target.
11002 (unpush_and_perror): New remote_target parameter. Pass it down.
11003 (remote_target::readchar, remote_target::remote_serial_write)
11004 (remote_target::getpkt_or_notif_sane_1)
11005 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11006 down target.
11007 (remote_target::mourn_inferior): Pass down target. Use
11008 remote_unpush_target.
11009 (remote_target::core_of_thread)
11010 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11011 (remote_target::pid_to_exec_file)
11012 (remote_target::thread_handle_to_thread_info): Pass down target.
11013 (remote_target::async_wait_fd): New.
11014 * riscv-fbsd-tdep.c: Include "inferior.h".
11015 (riscv_fbsd_get_thread_local_address): Pass down target.
11016 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11017 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11018 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11019 Adjust.
11020 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11021 * solib-svr4.c (enable_break): Pass down target.
11022 * spu-multiarch.c (parse_spufs_run): Pass down target.
11023 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11024 * target-delegates.c: Regenerate.
11025 * target.c (g_target_stack): Delete.
11026 (current_top_target): Return the current inferior's top target.
11027 (target_has_execution_1): Refer to the passed-in inferior's top
11028 target.
11029 (target_supports_terminal_ours): Check whether the initial
11030 inferior was already created.
11031 (decref_target): New.
11032 (target_stack::push): Incref/decref the target.
11033 (push_target, push_target, unpush_target): Adjust.
11034 (target_stack::unpush): Defref target.
11035 (target_is_pushed): Return bool. Adjust to refer to the current
11036 inferior's target stack.
11037 (dispose_inferior): Delete, and inline parts ...
11038 (target_preopen): ... here. Only dispose of the current inferior.
11039 (target_detach): Hold strong target reference while detaching.
11040 Pass target down.
11041 (target_thread_name): Add assertion.
11042 (target_resume): Pass down target.
11043 (target_ops::beneath, find_target_at): Adjust to refer to the
11044 current inferior's target stack.
11045 (get_dummy_target): New.
11046 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11047 has a thread running.
11048 (initialize_targets): Rename to ...
11049 (_initialize_target): ... this.
11050 * target.h: Include "gdbsupport/refcounted-object.h".
11051 (struct target_ops): Inherit refcounted_object.
11052 (target_ops::shortname, target_ops::longname): Make const.
11053 (target_ops::async_wait_fd): New method.
11054 (decref_target): Declare.
11055 (struct target_ops_ref_policy): New.
11056 (target_ops_ref): New typedef.
11057 (get_dummy_target): Declare function.
11058 (target_is_pushed): Return bool.
11059 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11060 (all_matching_threads_iterator::all_matching_threads_iterator):
11061 Handle filter target.
11062 * thread-iter.h (struct all_matching_threads_iterator, struct
11063 all_matching_threads_range, class all_non_exited_threads_range):
11064 Filter by target too. Remove explicit.
11065 * thread.c (threads_executing): Delete.
11066 (inferior_thread): Pass down current inferior.
11067 (clear_thread_inferior_resources): Pass down thread pointer
11068 instead of ptid_t.
11069 (add_thread_silent, add_thread_with_info, add_thread): Add
11070 process_stratum_target parameter. Use it for thread and inferior
11071 searches.
11072 (is_current_thread): New.
11073 (thread_info::deletable): Use it.
11074 (find_thread_ptid, thread_count, in_thread_list)
11075 (thread_change_ptid, set_resumed, set_running): New
11076 process_stratum_target parameter. Pass it down.
11077 (set_executing): New process_stratum_target parameter. Pass it
11078 down. Adjust reference to 'threads_executing'.
11079 (threads_are_executing): New process_stratum_target parameter.
11080 Adjust reference to 'threads_executing'.
11081 (set_stop_requested, finish_thread_state): New
11082 process_stratum_target parameter. Pass it down.
11083 (switch_to_thread): Also match inferior.
11084 (switch_to_thread): New process_stratum_target parameter. Pass it
11085 down.
11086 (update_threads_executing): Reimplement.
11087 * top.c (quit_force): Pop targets from all inferior.
11088 (gdb_init): Don't call initialize_targets.
11089 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11090 Declare.
11091 (windows_add_thread, windows_delete_thread): Adjust.
11092 (get_windows_debug_event): Rename to ...
11093 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11094 * tracefile-tfile.c (tfile_target_open): Pass down target.
11095 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11096 Forward declare.
11097 (switch_to_thread): Add process_stratum_target parameter.
11098 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11099 parameter. Use it.
11100 (mi_on_resume): Pass target down.
11101 * nat/fork-inferior.c (startup_inferior): Add
11102 process_stratum_target parameter. Pass it down.
11103 * nat/fork-inferior.h (startup_inferior): Add
11104 process_stratum_target parameter.
11105 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11106
75c6c844
PA
111072020-01-10 Pedro Alves <palves@redhat.com>
11108
11109 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11110 directly. Instead find the first thread in the thread list and
11111 use switch_to_thread.
11112
78f2c40a
PA
111132020-01-10 Pedro Alves <palves@redhat.com>
11114
11115 * remote.c (remote_target::remote_add_inferior): Don't bind a
11116 process to the current inferior if the current inferior is already
11117 bound to a process.
11118
e7af6c70
TBA
111192020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11120 Pedro Alves <palves@redhat.com>
11121
11122 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11123 If no process is specified, return null_ptid instead of
11124 inferior_ptid.
11125 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11126 TARGET_WAITKIND_SIGNALLED with no pid.
11127
31ba933e
PA
111282020-01-10 Pedro Alves <palves@redhat.com>
11129
11130 * remote.c (first_remote_resumed_thread): New.
11131 (remote_target::wait_as): Use it as default event_ptid instead of
11132 inferior_ptid.
11133
735fc2ca
PA
111342020-01-10 Pedro Alves <palves@redhat.com>
11135
11136 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11137
c17e02e1
PA
111382020-01-10 Pedro Alves <palves@redhat.com>
11139
11140 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11141 not -1.
11142
ab1ddbcf
PA
111432020-01-10 Pedro Alves <palves@redhat.com>
11144
11145 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11146 ptid to get_last_target_status.
11147 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11148 ptid to get_last_target_status.
11149 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11150 get_last_target_status.
11151 (info_program_command): Don't pass a target_waitstatus to
11152 get_last_target_status.
11153 * infrun.c (init_wait_for_inferior): Use
11154 nullify_last_target_wait_ptid.
11155 (get_last_target_status): Handle nullptr arguments.
11156 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11157 (print_stop_event): Don't pass a ptid to get_last_target_status.
11158 (normal_stop): Don't pass a ptid to get_last_target_status.
11159 * infrun.h (get_last_target_status, set_last_target_status): Move
11160 comments here and update.
11161 (nullify_last_target_wait_ptid): Declare.
11162 * linux-fork.c (fork_load_infrun_state): Remove local extern
11163 declaration of nullify_last_target_wait_ptid.
11164 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11165 to get_last_target_status.
11166
f3f8ece4
PA
111672020-01-10 Pedro Alves <palves@redhat.com>
11168
11169 * gdbthread.h (scoped_restore_current_thread)
11170 <dont_restore, restore, m_dont_restore>: Declare.
11171 * thread.c (thread_alive): Add assertion. Return bool.
11172 (switch_to_thread_if_alive): New.
11173 (prune_threads): Switch inferior/thread.
11174 (print_thread_info_1): Switch thread before calling target methods.
11175 (scoped_restore_current_thread::restore): New, factored out from
11176 ...
11177 (scoped_restore_current_thread::~scoped_restore_current_thread):
11178 ... this.
11179 (scoped_restore_current_thread::scoped_restore_current_thread):
11180 Add assertion.
11181 (thread_apply_all_command, thread_select): Use
11182 switch_to_thread_if_alive.
11183 * infrun.c (proceed, restart_threads, handle_signal_stop)
11184 (switch_back_to_stepped_thread): Switch current thread before
11185 calling target methods.
11186
db2d40f7
PA
111872020-01-10 Pedro Alves <palves@redhat.com>
11188
11189 * inferior.c (switch_to_inferior_no_thread): New function,
11190 factored out from ...
11191 (inferior_command): ... here.
11192 * inferior.h (switch_to_inferior_no_thread): Declare.
11193 * mi/mi-main.c (run_one_inferior): Use
11194 switch_to_inferior_no_thread.
11195
bd420a2d
PA
111962020-01-10 Pedro Alves <palves@redhat.com>
11197
11198 * infcmd.c (kill_command): Remove dead code.
11199
ddf5db90
PA
112002020-01-10 Pedro Alves <palves@redhat.com>
11201
11202 * remote.c (remote_target::mourn_inferior): No longer check
11203 whether the target is running.
11204
5018ce90
PA
112052020-01-10 Pedro Alves <palves@redhat.com>
11206
11207 * corelow.c (core_target::has_execution): Change parameter type to
11208 inferior pointer.
11209 * inferior.c (number_of_live_inferiors): Use
11210 inferior::has_execution instead of target_has_execution_1.
11211 * inferior.h (inferior::has_execution): New.
11212 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11213 inferior::has_execution instead of target_has_execution_1.
11214 * process-stratum-target.c
11215 (process_stratum_target::has_execution): Change parameter type to
11216 inferior pointer. Check the inferior's PID instead of
11217 inferior_ptid.
11218 * process-stratum-target.h
11219 (process_stratum_target::has_execution): Change parameter type to
11220 inferior pointer.
11221 * record-full.c (record_full_core_target::has_execution): Change
11222 parameter type to inferior pointer.
11223 * target.c (target_has_execution_1): Change parameter type to
11224 inferior pointer.
11225 (target_has_execution_current): Adjust.
11226 * target.h (target_ops::has_execution): Change parameter type to
11227 inferior pointer.
11228 (target_has_execution_1): Change parameter type to inferior
11229 pointer. Change return type to bool.
11230 * tracefile.h (tracefile_target::has_execution): Change parameter
11231 type to inferior pointer.
11232
74375d18
PA
112332020-01-10 Pedro Alves <palves@redhat.com>
11234
11235 * exceptions.c (print_flush): Remove current_top_target() check.
11236
acdf84a6
PA
112372020-01-10 Pedro Alves <palves@redhat.com>
11238
11239 * remote.c (show_remote_exec_file): Show the current inferior's
11240 exec-file instead of the command variable's value.
11241
ec506636
PA
112422020-01-10 Pedro Alves <palves@redhat.com>
11243
11244 * record-full.c (record_full_resume_ptid): New global.
11245 (record_full_target::resume): Set it.
11246 (record_full_wait_1): Use record_full_resume_ptid instead of
11247 inferior_ptid.
11248
873657b9
PA
112492020-01-10 Pedro Alves <palves@redhat.com>
11250
11251 * gdbthread.h (scoped_restore_current_thread)
11252 <dont_restore, restore, m_dont_restore>: Declare.
11253 * thread.c (thread_alive): Add assertion. Return bool.
11254 (switch_to_thread_if_alive): New.
11255 (prune_threads): Switch inferior/thread.
11256 (print_thread_info_1): Switch thread before calling target methods.
11257 (scoped_restore_current_thread::restore): New, factored out from
11258 ...
11259 (scoped_restore_current_thread::~scoped_restore_current_thread):
11260 ... this.
11261 (scoped_restore_current_thread::scoped_restore_current_thread):
11262 Add assertion.
11263 (thread_apply_all_command, thread_select): Use
11264 switch_to_thread_if_alive.
11265
7f0ae84c
GB
112662020-01-10 George Barrett <bob@bob131.so>
11267
11268 * stap-probe.c (stap_modify_semaphore): Don't check for null
11269 semaphores.
11270 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11271 for null semaphores.
11272
f5a7c406
AB
112732020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11274
11275 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11276 all source windows, and maintain horizontal scroll status while
11277 doing so.
11278
9ae6bf64
TT
112792020-01-09 Tom Tromey <tom@tromey.com>
11280
11281 PR tui/18932:
11282 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11283 update_source_window, not print_source_lines.
11284
b2efe70c
AB
112852020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11286
11287 * tui/tui.c (tui_enable): Register tui hooks after calling
11288 tui_display_main.
11289
5f23a082
CB
112902020-01-09 Christian Biesinger <cbiesinger@google.com>
11291
11292 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11293
3061113b
SM
112942020-01-08 Simon Marchi <simon.marchi@efficios.com>
11295
11296 * thread.c (print_thread_info_1): Fix indentation.
11297
57d75002
CB
112982020-01-09 Christian Biesinger <cbiesinger@google.com>
11299
11300 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11301 unique_xmalloc_ptr outside the if to always free the demangled name.
11302
6a053cb1
TT
113032020-01-08 Tom Tromey <tromey@adacore.com>
11304
11305 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11306 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11307 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11308 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11309 Remove.
11310 (section_offsets): New typedef.
11311 * symtab.c (fixup_section, get_msymbol_address): Update.
11312 * symmisc.c (dump_msymbols): Update.
11313 * symfile.h (relative_addr_info_to_section_offsets)
11314 (symfile_map_offsets_to_segments): Update.
11315 * symfile.c (build_section_addr_info_from_objfile)
11316 (init_objfile_sect_indices): Update.
11317 (struct place_section_arg): Change type of "offsets".
11318 (place_section): Update.
11319 (relative_addr_info_to_section_offsets): Change type of
11320 "section_offsets". Remove "num_sections" parameter.
11321 (default_symfile_offsets, syms_from_objfile_1)
11322 (set_objfile_default_section_offset): Update.
11323 (reread_symbols): No need to preserve section offsets by hand.
11324 (symfile_map_offsets_to_segments): Change type of "offsets".
11325 * stap-probe.c (relocate_address): Update.
11326 * stabsread.h (process_one_symbol): Update.
11327 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11328 (solib_target_relocate_section_addresses): Update.
11329 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11330 Update.
11331 * solib-frv.c (frv_relocate_main_executable): Update.
11332 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11333 * solib-aix.c (solib_aix_get_section_offsets): Change return
11334 type.
11335 (solib_aix_solib_create_inferior_hook): Update.
11336 * remote.c (remote_target::get_offsets): Update.
11337 * psymtab.c (find_pc_sect_psymtab): Update.
11338 * psympriv.h (struct partial_symbol) <address, text_low,
11339 text_high>: Update.
11340 * objfiles.h (obj_section_offset): Update.
11341 (struct objfile) <section_offsets>: Change type.
11342 <num_sections>: Remove.
11343 (objfile_relocate): Update.
11344 * objfiles.c (entry_point_address_query): Update
11345 (relocate_one_symbol): Change type of "section_offsets".
11346 (objfile_relocate1, objfile_relocate1): Change type of
11347 "new_offsets".
11348 (objfile_rebase1): Update.
11349 * mipsread.c (mipscoff_symfile_read): Update.
11350 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11351 parameter.
11352 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11353 (parse_external, psymtab_to_symtab_1): Update.
11354 * machoread.c (macho_symfile_offsets): Update.
11355 * ia64-tdep.c (ia64_find_unwind_table): Update.
11356 * hppa-tdep.c (read_unwind_info): Update.
11357 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11358 * dwarf2read.c (create_addrmap_from_index)
11359 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11360 (process_psymtab_comp_unit_reader, add_partial_symbol)
11361 (add_partial_subprogram, process_full_comp_unit)
11362 (read_file_scope, read_func_scope, read_lexical_block_scope)
11363 (read_call_site_scope, dwarf2_rnglists_process)
11364 (dwarf2_ranges_process, dwarf2_ranges_read)
11365 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11366 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11367 Update.
11368 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11369 Update.
11370 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11371 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11372 (process_one_symbol): Change type of "section_offsets".
11373 * ctfread.c (get_objfile_text_range): Update.
11374 * coffread.c (coff_symtab_read, enter_linenos)
11375 (process_coff_symbol): Update.
11376 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11377 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11378
456e800a
TT
113792020-01-08 Tom Tromey <tromey@adacore.com>
11380
11381 * dwarf2read.c (parse_macro_definition): Use std::string.
11382 (parse_macro_definition): Likewise.
11383
6dfa2fc2
TT
113842020-01-08 Tom Tromey <tromey@adacore.com>
11385
11386 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11387 (ATTR_ALLOC_CHUNK): Remove.
11388
421d1616
TT
113892020-01-08 Tom Tromey <tromey@adacore.com>
11390
11391 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11392
43816ebc
TT
113932020-01-08 Tom Tromey <tromey@adacore.com>
11394
11395 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11396 (dwarf2_compute_name, open_dwo_file): Likewise.
11397 (process_enumeration_scope): Use std::vector.
11398 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11399 (partial_die_info::fixup, dwarf2_start_subfile)
11400 (guess_full_die_structure_name, dwarf2_name): Likewise.
11401 (determine_prefix): Update.
11402 (guess_full_die_structure_name): Make return type const.
11403 (partial_die_full_name): Return unique_xmalloc_ptr.
11404 (DW_FIELD_ALLOC_CHUNK): Remove.
11405
4212d509
TT
114062020-01-07 Tom Tromey <tromey@adacore.com>
11407
11408 PR build/24937:
11409 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11410
06a6207a
JT
114112020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11412
11413 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11414
153d79c4
AB
114152020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11416
11417 * stack.c (print_frame_info): Move disassemble_next_line code
11418 inside source_print block.
11419
66182876
EZ
114202020-01-06 Eli Zaretskii <eliz@gnu.org>
11421
11422 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11423 gdb/signals.h, as we are now using native signal symbols.
11424
cbfa8581
SV
114252020-01-06 Shahab Vahedi <shahab@synopsys.com>
11426
11427 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11428 overflow by an early check of content vs threshold.
aac66a4c 11429 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11430 Likewise.
11431
3f602821
EZ
114322020-01-06 Eli Zaretskii <eliz@gnu.org>
11433
11434 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11435
a08c904d
JT
114362020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11437
11438 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11439 export table if no section contains it's RVA.
11440
89a65580
EZ
114412020-01-06 Eli Zaretskii <eliz@gnu.org>
11442
11443 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11444
8b7fcda2
HD
114452020-01-06 Hannes Domani <ssbssa@yahoo.de>
11446
11447 * source.c (print_source_lines_base): Set last_line_listed.
11448
a61b4f69
SV
114492020-01-06 Shahab Vahedi <shahab@synopsys.com>
11450
11451 * tui/tui-disasm.c: Remove trailing spaces.
11452
559e7e50
EZ
114532020-01-06 Eli Zaretskii <eliz@gnu.org>
11454 Pedro Alves <palves@redhat.com>
11455
11456 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11457 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11458 (windows_gdb_signal_to_target): New function, uses the above
11459 enumeration to convert GDB internal signal codes to equivalent
11460 Windows codes.
11461 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11462 * windows-nat.c: Include "gdb_wait.h".
11463 (get_windows_debug_event): Extract the fatal exception from the
11464 exit status and convert to the equivalent Posix signal number.
11465 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11466 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11467 * gdbsupport/gdb_wait.c: New file, implements
11468 windows_status_to_termsig.
11469 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11470 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11471
f2302a34
AB
114722020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11473
11474 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11475 show_layout.
11476
6a5206eb
LM
114772020-01-05 Luis Machado <luis.machado@linaro.org>
11478
11479 * aarch64-linux-nat.c
11480 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11481 and bfd_mach_aarch64.
11482
6ec1d75e
PW
114832020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11484
11485 * ui-file.c (stdio_file::can_emit_style_escape)
11486 (tee_file::can_emit_style_escape): Ensure style is used also on
11487 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11488 to gdb_stdout.
11489 * main.c (set_gdb_data_directory): Use file style to output the
11490 warning that the given pathname is not a directory.
11491 * top.c (show_history_filename, gdb_safe_append_history)
11492 (show_gdb_datadir): Use file style.
11493
44f81a76
HD
114942020-01-03 Hannes Domani <ssbssa@yahoo.de>
11495
11496 * solib-target.c (struct lm_info_target):
11497 Change offsets to be a unique_xmalloc_ptr.
11498 (solib_target_relocate_section_addresses): Update.
11499
25057eb0
HD
115002020-01-03 Hannes Domani <ssbssa@yahoo.de>
11501
11502 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11503
6e2118f5
BE
115042020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11505
11506 * MAINTAINERS (Write After Approval): Add myself.
11507
8133c7dc
LM
115082020-01-02 Luis Machado <luis.machado@linaro.org>
11509
11510 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11511 Cell BE architecture.
11512 * target.h (struct target_ops) <thread_architecture>: Likewise.
11513
48189bec
HD
115142020-01-01 Hannes Domani <ssbssa@yahoo.de>
11515
11516 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11517
ead1063b
HD
115182020-01-01 Hannes Domani <ssbssa@yahoo.de>
11519
11520 * MAINTAINERS (Write After Approval): Add myself.
11521
e5d78223
JB
115222020-01-01 Joel Brobecker <brobecker@adacore.com>
11523
11524 * gdbarch.sh: Update copyright year range of generated files.
11525
b811d2c2
JB
115262020-01-01 Joel Brobecker <brobecker@adacore.com>
11527
11528 Update copyright year range in all GDB files.
11529
5f4def5c
JB
115302020-01-01 Joel Brobecker <brobecker@adacore.com>
11531
11532 * copyright.py: Convert to Python 3.
11533
51fd4002
JB
115342020-01-01 Joel Brobecker <brobecker@adacore.com>
11535
11536 * copyright.py: Adapt after move of gnulib directory from gdb
11537 directory to toplevel directory.
11538
5fb651f2
JB
115392020-01-01 Joel Brobecker <brobecker@adacore.com>
11540
11541 * copyright.py (main): Exit if run from the wrong directory.
11542
5dd8bf88
JB
115432020-01-01 Joel Brobecker <brobecker@adacore.com>
11544
11545 * top.c (print_gdb_version): Change copyright year to 2020.
11546
9f71dacb 115472020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11548
9f71dacb 11549 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11550
9f71dacb 11551For older changes see ChangeLog-2019.
c906108c
SS
11552\f
11553Local Variables:
11554mode: change-log
11555left-margin: 8
11556fill-column: 74
11557version-control: never
57da7796 11558coding: utf-8
c906108c 11559End: