]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
MIPS/binutils/testsuite: Correct mips.exp test ABI/emul/endian arrangement
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e79eb02f
AB
12020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 PR fortran/23051
4 PR fortran/26139
5 * valops.c (value_ind): Pass address to
6 readjust_indirect_value_type.
7 * value.c (readjust_indirect_value_type): Make parameter
8 non-const, and add extra address parameter. Resolve original type
9 before using it.
10 * value.h (readjust_indirect_value_type): Update function
11 signature and comment.
12
876518dd
TV
132020-07-25 Tom de Vries <tdevries@suse.de>
14
15 PR symtab/26243
16 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
17 entries.
18
f6720b1c
AM
192020-07-24 Aaron Merey <amerey@redhat.com>
20
21 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
22 * configure: Rebuild.
23
513487e1
KB
242020-07-23 Kevin Buettner <kevinb@redhat.com>
25
26 PR corefiles/26294
27 * corelow.c (_initialize_corelow): Add period to help text
28 for "maintenance print core-file-backed-mappings".
29
e7bc9db8
PA
302020-07-23 Pedro Alves <pedro@palves.net>
31
32 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
33 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
34 meanwhile.
35 * frame.c (frame_cache_generation, get_frame_cache_generation):
36 New.
37 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
38 (get_prev_frame_if_no_cycle): On exception, don't touch
39 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
40 * frame.h (get_frame_cache_generation): Declare.
41
90fcc466
TV
422020-07-23 Tom de Vries <tdevries@suse.de>
43
44 PR tui/26282
45 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
46 New default constructor.
47
78344df7
AB
482020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
49
50 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
51 exclude non-statement entries.
52
b089853a
KB
532020-07-22 Kevin Buettner <kevinb@redhat.com>
54
55 * NEWS (New commands): Mention new command
56 "maintenance print core-file-backed-mappings".
57
09c2f5d4
KB
582020-07-22 Kevin Buettner <kevinb@redhat.com>
59
60 * corelow.c (gdbcmd.h): Include.
61 (core_target::info_proc_mappings): New method.
62 (get_current_core_target): New function.
63 (maintenance_print_core_file_backed_mappings): New function.
64 (_initialize_corelow): Add core-file-backed-mappings to
65 "maint print" commands.
66
9c5ec5c2
KB
672020-07-22 Kevin Buettner <kevinb@redhat.com>
68
69 * linux-tdep.c (dump_note_entry_p): New function.
70 (linux_dump_mapping_p_ftype): New typedef.
71 (linux_find_memory_regions_full): Add new parameter,
72 should_dump_mapping_p.
73 (linux_find_memory_regions): Adjust call to
74 linux_find_memory_regions_full.
75 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
76 call to linux_find_memory_regions_full.
77
db082f59
KB
782020-07-22 Kevin Buettner <kevinb@redhat.com>
79
80 * corelow.c (solist.h, unordered_map): Include.
81 (class core_target): Add field m_core_file_mappings and
82 method build_file_mappings.
83 (core_target::core_target): Call build_file_mappings.
84 (core_target::~core_target): Free memory associated with
85 m_core_file_mappings.
86 (core_target::build_file_mappings): New method.
87 (core_target::xfer_partial): Use m_core_file_mappings
88 for memory transfers.
89 * linux-tdep.c (linux_read_core_file_mappings): New
90 function.
91 (linux_core_info_proc_mappings): Rewrite to use
92 linux_read_core_file_mappings.
93 (linux_init_abi): Register linux_read_core_file_mappings.
94
7e183d27
KB
952020-07-22 Kevin Buettner <kevinb@redhat.com>
96
97 * arch-utils.c (default_read_core_file_mappings): New function.
98 * arch-utils.c (default_read_core_file_mappings): Declare.
99 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
100 * gdbarch.h, gdbarch.c: Regenerate.
101
2735d421
KB
1022020-07-22 Kevin Buettner <kevinb@redhat.com>
103
104 PR corefiles/25631
105 * corelow.c (core_target:xfer_partial): Revise
106 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
107 case after first checking the stratum beneath the core
108 target.
109 (has_all_memory): Return true.
110 * target.c (raw_memory_xfer_partial): Revise comment
111 regarding use of has_all_memory.
112
e56cb451
KB
1132020-07-22 Kevin Buettner <kevinb@redhat.com>
114
115 * exec.h (section_table_xfer_memory): Revise declaration,
116 replacing section name parameter with an optional callback
117 predicate.
118 * exec.c (section_table_xfer_memory): Likewise.
119 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
120 of section_table_xfer_memory.
121
32fa152e
TT
1222020-07-22 Tom Tromey <tromey@adacore.com>
123
124 * mi/mi-cmd-stack.c (list_args_or_locals): Use
125 lookup_symbol_search_name.
126
a67a1c41
AB
1272020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * python/py-registers.c (gdbpy_register_object_data_init): Remove
130 redundant local variable.
131 (gdbpy_get_register_descriptor): Extract descriptor vector as a
132 reference, not pointer, update code accordingly.
133
a7b4ff4f
SM
1342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
135 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
136
137 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
138 * jit.c (jit_breakpoint_re_set_internal): Use the
139 `skip_jit_symbol_lookup` field.
140
2340e834
SM
1412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
142 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
143
144 * jit.c (jit_read_descriptor): Define the descriptor address once,
145 use twice.
146 (jit_breakpoint_deleted): Move the declaration of the loop variable
147 `iter` into the loop header.
148 (jit_breakpoint_re_set_internal): Move the declaration of the local
149 variable `objf_data` to the first point of definition.
150 (jit_event_handler): Move the declaration of local variables
151 `code_entry`, `entry_addr`, and `objf` to their first point of use.
152 Rename `objf` to `jited`.
153
c1072906
SM
1542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
155
156 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
157 Remove.
158 * jit.c (get_jiter_objfile_data): Update.
159
c8474dc3
TBA
1602020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
161 Simon Marchi <simon.marchi@polymtl.ca>
162
163 * jit.c (struct jit_program_space_data): Remove.
164 (jit_program_space_key): Remove.
165 (jiter_objfile_data::~jiter_objfile_data): Remove program space
166 stuff.
167 (get_jit_program_space_data): Remove.
168 (jit_breakpoint_deleted): Iterate on all of the program space's
169 objfiles.
170 (jit_inferior_init): Likewise.
171 (jit_breakpoint_re_set_internal): Likewise. Also change return
172 type to void.
173 (jit_breakpoint_re_set): Pass current_program_space to
174 jit_breakpoint_re_set_internal.
175
77208eb7
SM
1762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * jit.h (struct jiter_objfile_data) <cached_code_address,
179 jit_breakpoint>: Move to here from ...
180 * jit.c (jit_program_space_data): ... here.
181 (jiter_objfile_data::~jiter_objfile_data): Update.
182 (jit_breakpoint_deleted): Update.
183 (jit_breakpoint_re_set_internal): Update.
184
8c1c720f
SM
1852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
186
187 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
188 checks.
189 (jit_read_descriptor): Remove NULL check.
190 (jit_event_handler): Add an assertion.
191
0e74a041
SM
1922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
193
194 * jit.h (struct jit_objfile_data): Split into...
195 (struct jiter_objfile_data): ... this ...
196 (struct jited_objfile_data): ... and this.
197 * objfiles.h (struct objfile) <jit_data>: Remove.
198 <jiter_data, jited_data>: New fields.
199 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
200 (jiter_objfile_data::~jiter_objfile_data): ... this.
201 (get_jit_objfile_data): Rename to ...
202 (get_jiter_objfile_data): ... this.
203 (add_objfile_entry): Update.
204 (jit_read_descriptor): Use get_jiter_objfile_data.
205 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
206 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
207 (jit_inferior_exit_hook): Use objfile's jited_data field.
208
238b5c9f
SM
2092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * jit.h: Forward-declare `struct minimal_symbol`.
212 (struct jit_objfile_data): Migrate to here from jit.c; also add a
213 constructor, destructor, and an objfile* field.
214 * jit.c (jit_objfile_data): Remove.
215 (struct jit_objfile_data): Migrate from here to jit.h.
216 (jit_objfile_data::~jit_objfile_data): New destructor
217 implementation with code moved from free_objfile_data.
218 (free_objfile_data): Delete.
219 (get_jit_objfile_data): Update to use the jit_data field of objfile.
220 (jit_find_objf_with_entry_addr): Ditto.
221 (jit_inferior_exit_hook): Ditto.
222 (_initialize_jit): Remove the call to
223 register_objfile_data_with_cleanup.
224 * objfiles.h (struct objfile) <jit_data>: New field.
225
fe053b9e
TBA
2262020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
227
228 * jit.h: Forward-declare `struct objfile`.
229 (jit_event_handler): Add a second parameter, the JITer objfile.
230 * jit.c (jit_read_descriptor): Change the signature to take the
231 JITer objfile as an argument instead of the jit_program_space_data.
232 (jit_inferior_init): Update the call to jit_read_descriptor.
233 (jit_event_handler): Use the new JITer objfile argument when calling
234 jit_read_descriptor.
235 * breakpoint.c (handle_jit_event): Update the call to
236 jit_event_handler to pass the JITer objfile.
237
4cec0c66
JB
2382020-07-21 John Baldwin <jhb@FreeBSD.org>
239
240 * gdbarch.c: Regenerate.
241 * gdbarch.h: Regenerate.
242 * gdbarch.sh (handle_segmentation_fault): Remove method.
243 * infrun.c (handle_segmentation_fault): Remove.
244 (print_signal_received_reason): Remove call to
245 handle_segmentation_fault.
246
0e42f66a
JB
2472020-07-21 John Baldwin <jhb@FreeBSD.org>
248
249 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
250 Rename to sparc64_linux_report_signal_info and add siggnal
251 argument.
252 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
253 instead of sparc64_linux_handle_segmentation_fault.
254
77bdfeb2
JB
2552020-07-21 John Baldwin <jhb@FreeBSD.org>
256
257 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
258 i386_linux_report_signal_info instead of
259 i386_linux_handle_segmentation_fault.
260 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
261 to i386_linux_report_signal_info and add siggnal argument.
262 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
263 of i386_linux_handle_segmentation_fault.
264 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
265 to i386_linux_report_signal_info and add siggnal argument.
266
ad97bfc5
JB
2672020-07-21 John Baldwin <jhb@FreeBSD.org>
268
269 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
270 hook if present.
271
272bb05c
JB
2722020-07-21 John Baldwin <jhb@FreeBSD.org>
273
274 * gdbarch.c: Regenerate.
275 * gdbarch.h: Regenerate.
276 * gdbarch.sh (report_signal_info): New method.
277 * infrun.c (print_signal_received_reason): Invoke gdbarch
278 report_signal_info hook if present.
279
baf8791e
AB
2802020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
281
282 * python/py-registers.c : Add 'unordered_map' include.
283 (gdbpy_new_reggroup): Renamed to...
284 (gdbpy_get_reggroup): ...this. Update to only create register
285 group descriptors when needed.
286 (gdbpy_reggroup_iter_next): Update.
287
f7306dac
AB
2882020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * python/py-registers.c (gdbpy_register_object_data): New static
291 global.
292 (gdbpy_register_object_data_init): New function.
293 (gdbpy_new_register_descriptor): Renamed to...
294 (gdbpy_get_register_descriptor): ...this, and update to reuse
295 existing register descriptors where possible.
296 (gdbpy_register_descriptor_iter_next): Update.
297 (gdbpy_initialize_registers): Register new gdbarch data.
298
05c309a8
SM
2992020-07-21 Simon Marchi <simon.marchi@efficios.com>
300
301 * linux-nat.c (stopped_pids): Make static.
302
d1fd641e
SM
3032020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
304
305 PR ada/26235
306 * gdbtypes.c (ada_discrete_type_low_bound,
307 ada_discrete_type_high_bound): Handle undefined bounds.
308
1de14d77
KR
3092020-07-21 Kamil Rytarowski <n54@gmx.com>
310
311 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
312 declaration.
313 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
314 function.
315
ed810cc7
JB
3162020-07-20 John Baldwin <jhb@FreeBSD.org>
317
318 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
319 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
320 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
321 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
322 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
323 method.
324
ae5369e7
LC
3252020-07-20 Ludovic Courtès <ludo@gnu.org>
326
327 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
328 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
329 which are deprecated in Guile 3.0.
330 * configure.ac (try_guile_versions): Add "guile-3.0".
331 * configure (try_guile_versions): Regenerate.
332 * NEWS: Update entry.
333
68cf161c
LC
3342020-07-20 Ludovic Courtès <ludo@gnu.org>
335 Doug Evans <dje@google.com>
336
337 PR gdb/21104
338 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
339 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
340 USING_GUILE_BEFORE_2_2.
341 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
342 Change type to 'scm_t_port_type *'.
343 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
344 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
345 parameter and honor it. Update callers.
346 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
347 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
348 functions.
349 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
350 USING_GUILE_BEFORE_2_2.
351 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
352 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
353 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
354 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
355 and 'SCM_PORT_TYPE'.
356 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
357 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
358 (gdbscm_memory_port_read, gdbscm_memory_port_write)
359 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
360 [!USING_GUILE_BEFORE_2_2]: New functions.
361 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
362 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
363 'gdbscm_memory_port_read'.
364 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
365 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
366 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
367 function.
368 (ioscm_init_memory_port): Remove.
369 (ioscm_init_memory_port_stream): New function
370 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
371 function.
372 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
373 Return scm_from_uint (0).
374 (gdbscm_set_memory_port_read_buffer_size_x)
375 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
376 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
377 Return scm_from_uint (0).
378 (gdbscm_set_memory_port_write_buffer_size_x)
379 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
380 * configure.ac (try_guile_versions): Add "guile-2.2".
381 * configure: Regenerate.
382 * NEWS: Add entry.
383
aee91db3
TT
3842020-07-18 Tom Tromey <tom@tromey.com>
385
386 * linux-nat.c (linux_multi_process): Remove.
387 (linux_nat_target::supports_multi_process): Return true.
388
0e267416
AB
3892020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * arch/riscv.c (riscv_tdesc_cache): Change map type.
392 (riscv_lookup_target_description): Return pointer out of
393 unique_ptr.
394 * target-descriptions.c (allocate_target_description): Add
395 comment.
396 (target_desc_deleter::operator()): Likewise.
397 * target-descriptions.h (struct target_desc_deleter): Moved to
398 gdbsupport/tdesc.h.
399 (target_desc_up): Likewise.
400
f80c8ec4
TT
4012020-07-17 Tom Tromey <tromey@adacore.com>
402
403 * linux-nat.c (linux_nat_target::supports_non_stop)
404 (linux_nat_target::always_non_stop_p): Use "true".
405 (linux_nat_target::supports_disable_randomization): Use "true" and
406 "false".
407
d0ce17d8
CT
4082020-07-16 Caroline Tice <cmtice@google.com>
409
410 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
411 (RNGLIST_HEADER_SIZE64): New constant definition.
412 (struct dwop_section_names): Add rnglists_dwo.
413 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
414 (struct loclist_header): Rename to 'loclists_rnglists_header'.
415 (struct dwo_sections): Add rnglists field.
416 (read_attribut_reprocess): Add tag parameter.
417 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
418 (cu_debug_rnglists_section): New function (decl & definition).
419 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
420 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
421 die whose range is being checked; get rnglist section from
422 cu_debug_rnglists_section, to get from either objfile or dwo file as
423 appropriate. Add cases for DW_RLE_base_addressx,
424 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
425 the base address to DW_RLE_offset_pairs (not to all ranges), moving
426 test inside if-condition and updating complaint message.
427 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
428 dwarf2_rnglists_process.
429 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
430 dwarf2_ranges_process.
431 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
432 need_ranges_base and update comment appropriately. Also pass die tag
433 to dwarf2_ranges_read.
434 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
435 need_ranges_base and update comment appropriately. Also pass die tag
436 to dwarf2_ranges_process.
437 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
438 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
439 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
440 need_ranges_base and update comment appropriately. Also pass die tag
441 to read_attribute_reprocess and dwarf2_ranges_read.
442 (read_loclist_header): Rename function to read_loclists_rnglists_header,
443 and update function comment appropriately.
444 (read_loclist_index): Call read_loclists_rnglists_header instead of
445 read_loclist_header.
446 (read_rnglist_index): New function.
447 (read_attribute_reprocess): Add tag parameter. Add code for
448 DW_FORM_rnglistx, passing tag to read_rnglist_index.
449 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
450
3dcc261c
AB
4512020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
452
453 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
454 being resolved.
455
ccb9eba6
AB
4562020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 * arch-utils.c (show_architecture): Update formatting of messages.
459
cf88be68
SM
4602020-07-12 Simon Marchi <simon.marchi@efficios.com>
461
462 * gdbtypes.h (struct type) <bounds>: Handle array and string
463 types.
464 * ada-lang.c (assign_aggregate): Use type::bounds on
465 array/string type.
466 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
467 * c-varobj.c (c_number_of_children): Likewise.
468 (c_describe_child): Likewise.
469 * eval.c (evaluate_subexp_for_sizeof): Likewise.
470 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
471 (f_type_print_base): Likewise.
472 * f-valprint.c (f77_array_offset_tbl): Likewise.
473 (f77_get_upperbound): Likewise.
474 (f77_print_array_1): Likewise.
475 * guile/scm-type.c (gdbscm_type_range): Likewise.
476 * m2-typeprint.c (m2_array): Likewise.
477 (m2_is_long_set_of_type): Likewise.
478 * m2-valprint.c (get_long_set_bounds): Likewise.
479 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
480 * python/py-type.c (typy_range): Likewise.
481 * rust-lang.c (rust_internal_print_type): Likewise.
482 * type-stack.c (type_stack::follow_types): Likewise.
483 * valarith.c (value_subscripted_rvalue): Likewise.
484 * valops.c (value_cast): Likewise.
485
509971ae
SM
4862020-07-12 Simon Marchi <simon.marchi@efficios.com>
487
488 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
489 callers to use the equivalent accessor methods.
490
107406b7
SM
4912020-07-12 Simon Marchi <simon.marchi@efficios.com>
492
493 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
494 (struct type) <bit_stride>: New method.
495 (TYPE_BIT_STRIDE): Remove.
496 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
497
bb789949
SM
4982020-07-12 Simon Marchi <simon.marchi@efficios.com>
499
500 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
501 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
502 callers to use the equivalent accessor methods instead.
503
39498edb
SM
5042020-07-12 Simon Marchi <simon.marchi@efficios.com>
505
506 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
507 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
508 callers to use the equivalent accessor methods instead.
509
3b606f38
SM
5102020-07-12 Simon Marchi <simon.marchi@efficios.com>
511
512 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
513 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
514 to use dynamic_prop::kind.
515
064d9cb9
SM
5162020-07-12 Simon Marchi <simon.marchi@efficios.com>
517
518 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
519 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
520 to get the bound property's kind and check against
521 PROP_UNDEFINED.
522
5537ddd0
SM
5232020-07-12 Simon Marchi <simon.marchi@efficios.com>
524
525 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
526 all callers to use type::range_bounds followed by
527 dynamic_prop::{low,high}.
528
8c2e4e06
SM
5292020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
530
531 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
532 const_val, set_const_val, baton, set_locexpr, set_loclist,
533 set_addr_offset, variant_parts, set_variant_parts,
534 original_type, set_original_type>: New methods.
535 <kind>: Rename to...
536 <m_kind>: ... this. Update all users to use the new methods
537 instead.
538 <data>: Rename to...
539 <m_data>: ... this. Update all users to use the new methods
540 instead.
541
7c6f2712
SM
5422020-07-12 Simon Marchi <simon.marchi@efficios.com>
543
544 * gdbtypes.c (get_discrete_bounds): Return failure if
545 the range type's bounds are not both defined and constant
546 values.
547 (get_array_bounds): Update comment. Remove undefined bound check.
548
599088e3
SM
5492020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
550
551 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
552 the type::bounds method directly.
553
c4dfcb36
SM
5542020-07-12 Simon Marchi <simon.marchi@efficios.com>
555
556 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
557 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
558 are used to set the range type's bounds to use set_bounds.
559
0a278aa7
PW
5602020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
561
562 * exec.c (_initialize_exec): Update exec-file-mismatch help.
563
cce20f10
PA
5642020-07-10 Pedro Alves <pedro@palves.net>
565
566 * gdbthread.h (inferior_ref): Define.
567 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
568 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
569 * thread.c
570 (scoped_restore_current_thread::restore):
571 Adjust to gdb::ref_ptr.
572 (scoped_restore_current_thread::~scoped_restore_current_thread):
573 Remove manual decref handling.
574 (scoped_restore_current_thread::scoped_restore_current_thread):
575 Adjust to use
576 inferior_ref::new_reference/thread_info_ref::new_reference.
577 Incref the thread before calling get_frame_id instead of after.
578 Let TARGET_CLOSE_ERROR propagate.
579
6d7aa592
PA
5802020-07-10 Pedro Alves <pedro@palves.net>
581
582 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
583 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
584 NOT_AVAILABLE_ERROR.
585 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
586 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
587
b3e3a4c1
SM
5882020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
589 Pedro Alves <pedro@palves.net>
590
591 PR gdb/26199
592 * infrun.c (threads_are_resumed_pending_p): Delete.
593 (do_target_wait): Remove threads_are_executing and
594 threads_are_resumed_pending_p checks from the inferior_matches
595 lambda. Update comments.
596
d6cc5d98
PA
5972020-07-10 Pedro Alves <pedro@palves.net>
598
599 PR gdb/26199
600 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
601 executing threads.
602
7d3badc6
PA
6032020-07-10 Pedro Alves <pedro@palves.net>
604
605 PR gdb/26199
606 * infrun.c (handle_no_resumed): Handle multiple targets.
607
42bd97a6
PA
6082020-07-10 Pedro Alves <pedro@palves.net>
609
610 PR gdb/26199
611 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
612 target_is_async_p.
613
43667cc6
PA
6142020-07-10 Pedro Alves <pedro@palves.net>
615
616 PR gdb/26199
617 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
618 threads, not all threads.
619
96118d11
PA
6202020-07-10 Pedro Alves <pedro@palves.net>
621
622 PR gdb/26199
623 * remote.c (remote_target::open_1): Pass remote target pointer as
624 data to create_async_event_handler.
625 (remote_async_inferior_event_handler): Mark async event handler
626 before returning if the remote target still has either pending
627 events or unacknowledged notifications.
628
54904d81
JB
6292020-07-10 John Baldwin <jhb@FreeBSD.org>
630
631 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
632 declaration.
633 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
634 function.
635
f37e5866
JB
6362020-07-09 John Baldwin <jhb@FreeBSD.org>
637
638 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
639 inferior_ptid.
640
fc238d4a
JB
6412020-07-09 John Baldwin <jhb@FreeBSD.org>
642
643 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
644 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
645 AT_FREEBSD_PS_STRINGS.
646
6e2469ff
HD
6472020-07-08 Hannes Domani <ssbssa@yahoo.de>
648
649 * auto-load.c (auto_load_objfile_script_1): Convert drive part
650 of debugfile path on Windows.
651
d1076c41
JB
6522020-07-08 John Baldwin <jhb@FreeBSD.org>
653
654 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
655 argument to 'data'.
656
15f3b077
TT
6572020-07-08 Tom Tromey <tromey@adacore.com>
658
659 * ada-lang.c (ada_exception_message_1): Use read_memory.
660
9fc501fd
AB
6612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
662
663 PR python/22748
664 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
665 special handling for inline frames.
666 * findvar.c (value_of_register_lazy): Skip inline frames when
667 creating lazy register values.
668 * frame.c (frame_id_computed_p): Delete definition.
669 * frame.h (frame_id_computed_p): Delete declaration.
670
64cb3757
AB
6712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * NEWS: Mention additions to Python API.
674 * python/py-arch.c (archpy_register_groups): New function.
675 (arch_object_methods): Add 'register_groups' method.
676 * python/py-registers.c (reggroup_iterator_object): New struct.
677 (reggroup_object): New struct.
678 (gdbpy_new_reggroup): New function.
679 (gdbpy_reggroup_to_string): New function.
680 (gdbpy_reggroup_name): New function.
681 (gdbpy_reggroup_iter): New function.
682 (gdbpy_reggroup_iter_next): New function.
683 (gdbpy_new_reggroup_iterator): New function
684 (gdbpy_initialize_registers): Register new types.
685 (reggroup_iterator_object_type): Define new Python type.
686 (gdbpy_reggroup_getset): New static global.
687 (reggroup_object_type): Define new Python type.
688 * python/python-internal.h
689
0f767f94
AB
6902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
693 * python/py-arch.c (archpy_registers): New function.
694 (arch_object_methods): Add 'registers' method.
695 * python/py-registers.c: New file.
696 * python/python-internal.h
697 (gdbpy_new_register_descriptor_iterator): Declare.
698 (gdbpy_initialize_registers): Declare.
699 * python/python.c (do_start_initialization): Call
700 gdbpy_initialize_registers.
701 * NEWS: Mention additions to the Python API.
702
87dbc774
AB
7032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * NEWS: Mention new Python API method.
706 * python/py-unwind.c (pending_framepy_architecture): New function.
707 (pending_frame_object_methods): Add architecture method.
708
3bc98c0c
AB
7092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
710
711 * gdbarch.c: Regenerate.
712 * gdbarch.h: Regenerate.
713 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
714 (gdbarch_data): Use internal_error for the case where
715 deprecated_set_gdbarch_data was originally needed.
716 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
717 and use passed in obstack.
718 (libunwind_frame_set_descr): Should no longer get back NULL from
719 gdbarch_data.
720 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
721 type.
722 * user-regs.c (user_regs_init): Update parameters, and use passed
723 in obstack.
724 (user_reg_add): Should no longer get back NULL from gdbarch_data.
725 (_initialize_user_regs): Register as a pre-init gdbarch data type.
726
d8cc8af6
TV
7272020-07-06 Tom de Vries <tdevries@suse.de>
728
729 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
730 End-Of-Sequence in lte_is_less_than.
731 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
732 "gdb: Don't reorder line table entries too much when sorting".
733
947f7597
TV
7342020-07-06 Tom de Vries <tdevries@suse.de>
735
736 PR tui/26205
737 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
738
1e7c1b22
TV
7392020-07-05 Tom de Vries <tdevries@suse.de>
740
741 PR build/26187
742 * inferior.h (struct infcall_suspend_state_deleter): If available, use
743 std::uncaught_exceptions instead of deprecated
744 std::uncaught_exception.
745
a36158ec
SM
7462020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
747
748 * macroexp.h (macro_stringify): Return
749 gdb::unique_xmalloc_ptr<char>.
750 * macroexp.c (macro_stringify): Likewise.
751 * macrotab.c (fixup_definition): Update.
752
14d960c8
SM
7532020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
756 (lex_one_token): Update.
757 * macroexp.c (struct macro_buffer) <release>: Return
758 gdb::unique_xmalloc_ptr<char>.
759 (macro_stringify): Update.
760 (macro_expand): Update.
761 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
762 * macroexp.h (macro_expand_next): Likewise.
763
211d5b1c
SM
7642020-07-02 Simon Marchi <simon.marchi@efficios.com>
765
766 * macroexp.h (macro_lookup_ftype): Remove.
767 (macro_expand, macro_expand_once, macro_expand_next): Remove
768 lookup function parameters, add scope parameter.
769 * macroexp.c (scan, substitute_args, expand, maybe_expand,
770 macro_expand, macro_expand_once, macro_expand_next): Likewise.
771 * macroscope.h (standard_macro_lookup): Change parameter type
772 to macro_scope.
773 * macroscope.c (standard_macro_lookup): Likewise.
774 * c-exp.y (lex_one_token): Update.
775 * macrocmd.c (macro_expand_command): Likewise.
776 (macro_expand_once_command): Likewise.
777
b1a35af2
SM
7782020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
779
780 * inf-loop.c (inferior_event_handler): Remove client_data param.
781 * inf-loop.h (inferior_event_handler): Likewise.
782 * infcmd.c (step_1): Adjust.
783 * infrun.c (proceed): Adjust.
784 (fetch_inferior_event): Remove client_data param.
785 (infrun_async_inferior_event_handler): Adjust.
786 * infrun.h (fetch_inferior_event): Remove `void *` param.
787 * linux-nat.c (handle_target_event): Adjust.
788 * record-btrace.c (record_btrace_handle_async_inferior_event):
789 Adjust.
790 * record-full.c (record_full_async_inferior_event_handler):
791 Adjust.
792 * remote.c (remote_async_inferior_event_handler): Adjust.
793
1cdf9e33
TT
7942020-07-01 Tom Tromey <tom@tromey.com>
795
796 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
797 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
798
32c1e210
TT
7992020-07-01 Tom Tromey <tom@tromey.com>
800
801 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
802 tui_gen_win_info.
803 (tui_win_info::make_window): Merge with
804 tui_gen_win_info::make_window.
805 (tui_win_info::make_visible): Move from tui_gen_win_info.
806 * tui/tui-win.c (tui_win_info::max_width): Move from
807 tui_gen_win_info.
808 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
809 type.
810 <window_factory>: Likewise.
811 * tui/tui-layout.c (tui_win_info::resize): Move from
812 tui_gen_win_info.
813 (make_standard_window): Change return type.
814 (get_locator_window, tui_get_window_by_name): Likewise.
815 (tui_layout_window::apply): Remove a cast.
816 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
817 (struct tui_win_info): Merge with tui_gen_win_info.
818 (struct tui_gen_win_info): Remove.
819
a30cb6da
TT
8202020-07-01 Tom Tromey <tom@tromey.com>
821
822 * tui/tui-stack.h (struct tui_locator_window): Derive from
823 tui_win_info.
824 <do_scroll_horizontal, do_scroll_vertical>: New methods.
825 <can_box>: New method.
826
1eb2161f
TT
8272020-07-01 Tom Tromey <tom@tromey.com>
828
829 * tui/tui-stack.h (struct tui_locator_window): Remove body.
830
7134f2eb
TT
8312020-07-01 Tom Tromey <tom@tromey.com>
832
833 * tui/tui-regs.c (tui_data_window::display_registers_from)
834 (tui_data_window::display_registers_from)
835 (tui_data_window::first_data_item_displayed)
836 (tui_data_window::delete_data_content_windows): Update.
837 (tui_data_window::refresh_window, tui_data_window::no_refresh):
838 Remove.
839 (tui_data_window::check_register_values): Update.
840 (tui_data_item_window::rerender): Add parameters. Update.
841 (tui_data_item_window::refresh_window): Remove.
842 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
843 virtual.
844 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
845 tui_gen_win_info.
846 <refresh_window, max_height, min_height>: Remove.
847 <rerender>: Add parameters.
848 <x, y, visible>: New members.
849 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
850 <m_item_width>: New member.
851
22b7b041
TT
8522020-07-01 Tom Tromey <tom@tromey.com>
853
854 * tui/tui-regs.c (tui_data_window::show_register_group)
855 (tui_data_window::check_register_values): Update.
856 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
857 from item_no.
858
c9753adb
TT
8592020-07-01 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
862 useless "if".
863
9ab26b4a
TT
8642020-07-01 Tom Tromey <tom@tromey.com>
865
866 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
867 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
868
e555083f
TT
8692020-07-01 Tom Tromey <tom@tromey.com>
870
871 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
872 * tui/tui-winsource.h (enum tui_line_or_address_kind)
873 (struct tui_line_or_address): Move from tui-data.h.
874 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
875 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
876 (tui_cmd_window, tui_source_window_base, tui_source_window)
877 (tui_disasm_window): Don't declare.
878 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
879 to tui-winsource.h.
880 (SINGLE_KEY): Move to tui-stack.c.
881
7a02bab7
TT
8822020-07-01 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
885 std::string.
886 * tui/tui-regs.c (class tab_expansion_file): New.
887 (tab_expansion_file::write): New method.
888 (tui_register_format): Change return type. Use
889 tab_expansion_file.
890 (tui_get_register, tui_data_window::display_registers_from)
891 (tui_data_item_window::rerender): Update.
892 * tui/tui-io.h (tui_expand_tabs): Don't declare.
893 * tui/tui-io.c (tui_expand_tabs): Remove.
894
ea68593b
TT
8952020-07-01 Tom Tromey <tom@tromey.com>
896
897 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
898
a8caed5d
FS
8992020-07-01 Fangrui Song <maskray@google.com>
900
901 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
902
9cdf9820
AKS
9032020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
904
905 * dwarf2/read.c (set_die_type): Removed conditions to restrict
906 forms for DW_AT_associated and DW_AT_allocated attributes,
907 which is already checked in function attr_to_dynamic_prop.
908
a1520ad8
TT
9092020-06-30 Tom Tromey <tromey@adacore.com>
910
911 * dwarf2/read.c (quirk_rust_enum): Correctly call
912 alloc_rust_variant for default-less enum.
913
5ac58899
TT
9142020-06-30 Tom Tromey <tromey@adacore.com>
915
916 PR build/26183:
917 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
918 gdb::to_string.
919
19b187a9
SM
9202020-06-29 Simon Marchi <simon.marchi@efficios.com>
921
922 * gdbarch.sh (displaced_step_copy_insn): Update doc.
923 * gdbarch.h: Re-generate.
924
cd4c4c07
TT
9252020-06-28 Tom Tromey <tom@tromey.com>
926
927 * command.h (cmd_types): Remove.
928 (cmd_type): Don't declare.
929 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
930 typedef.
931 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
932 * cli/cli-decode.c (cmd_type): Remove.
933
05779d57
PA
9342020-06-27 Pedro Alves <palves@redhat.com>
935
936 * fork-child.c (prefork_hook): Adjust.
937 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
938 Delete.
939 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
940 * inferior.c (inferior::set_tty, inferior::tty): New methods.
941 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
942 Remove declarations.
943 (struct inferior) <set_tty, tty>: New methods.
944 (struct inferior) <terminal>: Rename to ...
945 (struct inferior) <m_terminal>: ... this and make private.
946 * main.c (captured_main_1): Adjust.
947 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
948 (mi_cmd_inferior_tty_show): Adjust.
949 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
950 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
951
1776e3e5
NA
9522020-06-26 Nick Alcock <nick.alcock@oracle.com>
953
954 * configure.ac: Add --enable-libctf: handle --disable-static
955 properly.
956 * acinclude.m4: sinclude ../config/enable.m4.
957 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
958 (LIBCTF): Substitute in.
959 (CTF_DEPS): New, likewise.
960 (CLIBS): libctf needs symbols from libbfd: move earlier.
961 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
962 flags.
963 * ctfread.c: Surround in ENABLE_LIBCTF.
964 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
965 * configure: Regenerate.
966 * config.in: Likewise.
967
58373b80
SM
9682020-06-25 Simon Marchi <simon.marchi@efficios.com>
969
970 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
971
277474ee
SM
9722020-06-25 Simon Marchi <simon.marchi@efficios.com>
973
974 * inferior.h (struct inferior) <terminal>: Change type to
975 gdb::unique_xmalloc_ptr<char>.
976 * inferior.c (inferior::~inferior): Don't free inf->terminal.
977 * infcmd.c (set_inferior_io_terminal): Don't free terminal
978 field, adjust to unique pointer.
979 (get_inferior_io_terminal): Adjust to unique pointer.
980
6d74da72
AB
9812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
982
983 * riscv-tdep.c (riscv_print_registers_info): Loop over all
984 registers, not just the known core set of registers.
985
2e52d038
AB
9862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
987
988 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
989 fflags, frm, and fcsr registers.
990 (riscv_register_reggroup_p): Remove unknown CSRs from save and
991 restore groups.
992 (riscv_tdesc_unknown_reg): New function.
993 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
994 tdesc_use_registers.
995 * riscv-tdep.h (struct gdbarch_tdep): Add
996 unknown_csrs_first_regnum, unknown_csrs_count,
997 duplicate_fflags_regnum, duplicate_frm_regnum, and
998 duplicate_fcsr_regnum fields.
999
be64fd07
AB
10002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1003 callback, use the callback (when not null) to help number unknown
1004 registers.
1005 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1006 (tdesc_use_registers): Add extra parameter to declaration.
1007
3b9fce96
AB
10082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1009
1010 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1011 in the file.
1012 (class riscv_pending_register_alias): Likewise.
1013 (riscv_register_feature::register_info): Change 'required_p' field
1014 to 'required', and change its type. Add 'check' member function.
1015 (riscv_register_feature::register_info::check): Define new member
1016 function.
1017 (riscv_xreg_feature): Change initialisation of 'required' field.
1018 (riscv_freg_feature): Likewise.
1019 (riscv_virtual_feature): Likewise.
1020 (riscv_csr_feature): Likewise.
1021 (riscv_check_tdesc_feature): Take extra parameter, the csr
1022 tdesc_feature, rewrite the function to use the new
1023 riscv_register_feature::register_info::check function.
1024 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1025
865bad26
AB
10262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1027
1028 * features/Makefile: Remove all references to the deleted files
1029 below.
1030 * features/riscv/32bit-csr.c: Deleted.
1031 * features/riscv/32bit-csr.xml: Deleted.
1032 * features/riscv/64bit-csr.c: Deleted.
1033 * features/riscv/64bit-csr.xml: Deleted.
1034 * features/riscv/rebuild-csr-xml.sh: Deleted.
1035
ed69cbc8
AB
10362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1037
1038 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1039 whitespace error for declaration of names member variable.
1040 (struct riscv_register_feature): Add new prefer_first_name member
1041 variable, and fix whitespace error in declaration of registers.
1042 (riscv_xreg_feature): Initialize prefer_first_name field.
1043 (riscv_freg_feature): Likewise.
1044 (riscv_virtual_feature): Likewise.
1045 (riscv_csr_feature): Likewise.
1046 (riscv_register_name): Expand on comments. Remove register name
1047 modifications for CSR and virtual registers.
1048
4445e8f5
AB
10492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1050
1051 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1052 errors.
1053
767a879e
AB
10542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1057 riscv-opc.h.
1058 (class riscv_pending_register_alias): New class.
1059 (riscv_check_tdesc_feature): Take vector of pending aliases and
1060 populate it as appropriate.
1061 (riscv_setup_register_aliases): Delete.
1062 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1063 to riscv_check_tdesc_feature in all cases. Use the vector to
1064 create the register aliases.
1065
bb6e55f3
RO
10662020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1067
1068 * sol2-tdep.c (sol2_static_transform_name): Remove.
1069 (sol2_init_abi): Don't register it.
1070 * gdbarch.sh (static_transform_name): Remove.
1071 * gdbarch.c, gdbarch.h: Regenerate.
1072
1073 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1074 gdbarch_static_transform_name.
1075 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1076 * stabsread.c (define_symbol) <'X'>: Remove.
1077 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1078 handling.
1079 <'V'>: Likewise.
1080 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1081 <'S'>: Remove call to gdbarch_static_transform_name.
1082
c6d36836
RO
10832020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1084
1085 * procfs.c (procfs_pre_trace): New function.
1086 (procfs_target::create_inferior): Pass it to fork_inferior.
1087
a7e6196b
RO
10882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1089
1090 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1091 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1092 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1093 sol2-tdep.o, sparc-sol2-tdep.o.
1094 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1095 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1096 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1097 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1098
d412e696
RO
10992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1100
1101 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1102 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1103 Call sol2_init_abi.
1104 Remove calls to set_gdbarch_skip_solib_resolver,
1105 set_gdbarch_core_pid_to_str.
1106 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1107 (i386_sol2_static_transform_name): Remove.
1108 (i386_sol2_init_abi): Call sol2_init_abi.
1109 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1110 set_gdbarch_static_transform_name,
1111 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1112 Use sol2_sigtramp_p.
1113 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1114 (sol2_sigtramp_p): New function.
1115 (sol2_static_transform_name): New function.
1116 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1117 (sol2_init_abi): New function.
1118 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1119 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1120 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1121 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1122 (sparc_sol2_static_transform_name): Remove.
1123 (sparc32_sol2_init_abi): Call sol2_init_abi.
1124 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1125 set_gdbarch_static_transform_name,
1126 set_gdbarch_skip_solib_resolver,
1127 set_gdbarch_core_pid_to_str.
1128 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1129 (sparc_sol2_static_transform_name): Remove
1130 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1131 call sol2_sigtramp_p.
1132 (sparc64_sol2_init_abi): Call sol2_init_abi.
1133 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1134 set_gdbarch_static_transform_name,
1135 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1136
a8654e7d
PW
11372020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1138
1139 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1140 * exec.c (validate_exec_file): If from_tty, set both
1141 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1142 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1143 and from_tty, unconditionally ask a confirmation.
1144
caa7fd04
AB
11452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * target-descriptions.c (tdesc_architecture_name): Protect against
1148 NULL pointer dereference.
1149 (maint_print_xml_tdesc_cmd): New function.
1150 (_initialize_target_descriptions): Register new 'maint print
1151 xml-tdesc' command and give it the filename completer.
1152 * NEWS: Mention new 'maint print xml-tdesc' command.
1153
fbf42f4e
AB
11542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * target-descriptions.c (class tdesc_compatible_info): New class.
1157 (struct target_desc): Change type of compatible vector.
1158 (tdesc_compatible_p): Update for change in type of
1159 target_desc::compatible.
1160 (tdesc_compatible_info_list): New function.
1161 (tdesc_compatible_info_arch_name): New function.
1162 (tdesc_add_compatible): Update for change in type of
1163 target_desc::compatible.
1164 (print_c_tdesc::visit_pre): Likewise.
1165
20821f4e
AB
11662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1169 whitespace to underscore.
1170 (maint_print_c_tdesc_cmd): Use fake filename for target
1171 descriptions that came from the target.
1172 (_initialize_target_descriptions): Add filename command completion
1173 for 'maint print c-tdesc'.
1174
1fb5ee62
SM
11752020-06-23 Simon Marchi <simon.marchi@efficios.com>
1176
1177 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1178 lines.
1179
fc3ecb3e
SM
11802020-06-23 Simon Marchi <simon.marchi@efficios.com>
1181
1182 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1183 lines.
1184 (dwarf2_find_location_expression): Likewise.
1185 (call_site_parameter_matches): Likewise.
1186 (dwarf2_compile_expr_to_ax): Likewise.
1187 (disassemble_dwarf_expression): Likewise.
1188 (loclist_describe_location): Likewise.
1189
236ef034
PA
11902020-06-23 Pedro Alves <palves@redhat.com>
1191
1192 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1193 progspace-and-thread.h. Include scoped-mock-context.h instead.
1194 (register_to_value_test): Use scoped_mock_context.
1195 * regcache.c: Include "scoped-mock-context.h".
1196 (cooked_read_test): Don't error out if a target is already pushed.
1197 Use scoped_mock_context. Adjust.
1198 * scoped-mock-context.h: New file.
1199
39e7ecca
AB
12002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1201
1202 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1203 initializer.
1204 (ada_language::is_string_type_p): New member function.
1205 * c-lang.c (c_language_data): Delete la_is_string_type_p
1206 initializer.
1207 (cplus_language_data): Likewise.
1208 (asm_language_data): Likewise.
1209 (minimal_language_data): Likewise.
1210 * d-lang.c (d_language_data): Likewise.
1211 * f-lang.c (f_is_string_type_p): Delete function, implementation
1212 moved to f_language::is_string_type_p.
1213 (f_language_data): Delete la_is_string_type_p initializer.
1214 (f_language::is_string_type_p): New member function,
1215 implementation from f_is_string_type_p.
1216 * go-lang.c (go_is_string_type_p): Delete function, implementation
1217 moved to go_language::is_string_type_p.
1218 (go_language_data): Delete la_is_string_type_p initializer.
1219 (go_language::is_string_type_p): New member function,
1220 implementation from go_is_string_type_p.
1221 * language.c (language_defn::is_string_type_p): Define new member
1222 function.
1223 (default_is_string_type_p): Make static, add comment copied from
1224 header file.
1225 (unknown_language_data): Delete la_is_string_type_p initializer.
1226 (unknown_language::is_string_type_p): New member function.
1227 (auto_language_data): Delete la_is_string_type_p initializer.
1228 (auto_language::is_string_type_p): New member function.
1229 * language.h (language_data): Delete la_is_string_type_p field.
1230 (language_defn::is_string_type_p): Declare new function.
1231 (default_is_string_type_p): Delete desclaration, move comment to
1232 definition.
1233 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1234 moved to m2_language::is_string_type_p.
1235 (m2_language_data): Delete la_is_string_type_p initializer.
1236 (m2_language::is_string_type_p): New member function,
1237 implementation from m2_is_string_type_p.
1238 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1239 initializer.
1240 * opencl-lang.c (opencl_language_data): Likewise.
1241 * p-lang.c (pascal_is_string_type_p): Delete function,
1242 implementation moved to pascal_language::is_string_type_p.
1243 (pascal_language_data): Delete la_is_string_type_p initializer.
1244 (pascal_language::is_string_type_p): New member function,
1245 implementation from pascal_is_string_type_p.
1246 * rust-lang.c (rust_is_string_type_p): Delete function,
1247 implementation moved to rust_language::is_string_type_p.
1248 (rust_language_data): Delete la_is_string_type_p initializer.
1249 (rust_language::is_string_type_p): New member function,
1250 implementation from rust_is_string_type_p.
1251 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1252 is_string_type_p.
1253
4ffc13fb
AB
12542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1255
1256 * ada-lang.c (ada_language_data): Delete la_print_typedef
1257 initializer.
1258 (ada_language::print_typedef): New member function.
1259 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1260 (cplus_language_data): Likewise.
1261 (asm_language_data): Likewise.
1262 (minimal_language_data): Likewise.
1263 * d-lang.c (d_language_data): Likewise.
1264 * f-lang.c (f_language_data): Likewise.
1265 (f_language::print_typedef): New member function.
1266 * go-lang.c (go_language_data): Delete la_print_typedef
1267 initializer.
1268 * language.c (language_defn::print_typedef): Define member
1269 function.
1270 (unknown_language_data): Delete la_print_typedef initializer.
1271 (unknown_language::print_typedef): New member function.
1272 (auto_language_data): Delete la_print_typedef initializer.
1273 (auto_language::print_typedef): New member function.
1274 * language.h (language_data): Delete la_print_typedef field.
1275 (language_defn::print_typedef): Declare new member function.
1276 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1277 (default_print_typedef): Delete declaration.
1278 * m2-lang.c (m2_language_data): Delete la_print_typedef
1279 initializer.
1280 (m2_language::print_typedef): New member function.
1281 * objc-lang.c (objc_language_data): Delete la_print_typedef
1282 initializer.
1283 * opencl-lang.c (opencl_language_data): Likewise.
1284 * p-lang.c (pascal_language_data): Likewise.
1285 (pascal_language::print_typedef): New member function.
1286 * rust-lang.c (rust_print_typedef): Delete function,
1287 implementation moved to rust_language::print_typedef.
1288 (rust_language): Delete la_print_typedef initializer.
1289 (rust_language::print_typedef): New member function,
1290 implementation from rust_print_typedef.
1291 * typeprint.c (default_print_typedef): Delete.
1292
d711ee67
AB
12932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1294
1295 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1296 (ada_language::printstr): New member function.
1297 * c-lang.c (c_language_data): Delete la_printstr initializer.
1298 (cplus_language_data): Likewise.
1299 (asm_language_data): Likewise.
1300 (minimal_language_data): Likewise.
1301 * d-lang.c (d_language_data): Likewise.
1302 * f-lang.c (f_printstr): Rename to f_language::printstr.
1303 (f_language_data): Delete la_printstr initializer.
1304 (f_language::printstr): New member function, implementation from
1305 f_printstr.
1306 * go-lang.c (go_language_data): Delete la_printstr initializer.
1307 * language.c (language_defn::printstr): Define new member
1308 function.
1309 (unk_lang_printstr): Delete.
1310 (unknown_language_data): Delete la_printstr initializer.
1311 (unknown_language::printstr): New member function.
1312 (auto_language_data): Delete la_printstr initializer.
1313 (auto_language::printstr): New member function.
1314 * language.h (language_data): Delete la_printstr field.
1315 (language_defn::printstr): Declare new member function.
1316 (LA_PRINT_STRING): Update call to printstr.
1317 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1318 (m2_language_data): Delete la_printstr initializer.
1319 (m2_language::printstr): New member function, implementation from
1320 m2_printstr.
1321 * objc-lang.c (objc_language_data): Delete la_printstr
1322 initializer.
1323 * opencl-lang.c (opencl_language_data): Likewise.
1324 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1325 (pascal_language_data): Delete la_printstr initializer.
1326 (pascal_language::printstr): New member function, implementation
1327 from pascal_printstr.
1328 * p-lang.h (pascal_printstr): Delete declaration.
1329 * rust-lang.c (rust_printstr): Update header comment.
1330 (rust_language_data): Delete la_printstr initializer.
1331 (rust_language::printstr): New member function.
1332
52b50f2c
AB
13332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1334
1335 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1336 (ada_language::printchar): New member function.
1337 * c-lang.c (c_language_data): Delete la_printchar initializer.
1338 (cplus_language_data): Likewise.
1339 (asm_language_data): Likewise.
1340 (minimal_language_data): Likewise.
1341 * d-lang.c (d_language_data): Likewise.
1342 * f-lang.c (f_printchar): Rename to f_language::printchar.
1343 (f_language_data): Delete la_printchar initializer.
1344 (f_language::printchar): New member function, implementation from
1345 f_printchar.
1346 * go-lang.c (go_language_data): Delete la_printchar initializer.
1347 * language.c (unk_lang_printchar): Delete.
1348 (language_defn::printchar): Define new member function.
1349 (unknown_language_data): Delete la_printchar initializer.
1350 (unknown_language::printchar): New member function.
1351 (auto_language_data): Delete la_printchar initializer.
1352 (auto_language::printchar): New member function.
1353 * language.h (language_data): Delete la_printchar field.
1354 (language_defn::printchar): Declare new member function.
1355 (LA_PRINT_CHAR): Update call to printchar.
1356 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1357 (m2_language::printchar): New member function.
1358 * objc-lang.c (objc_language_data): Delete la_printchar
1359 initializer.
1360 * opencl-lang.c (opencl_language_data): Likewise.
1361 * p-lang.c (pascal_language_data): Delete la_printchar
1362 initializer.
1363 (pascal_language::printchar): New member function.
1364 * rust-lang.c (rust_printchar): Rename to
1365 rust_language::printchar.
1366 (rust_language_data): Delete la_printchar initializer.
1367 (rust_language::printchar): New member function, implementation
1368 from rust_printchar.
1369
ec8cec5b
AB
13702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1373 (ada_language_data): Delete la_emitchar initializer.
1374 (ada_language::emitchar): New member function, implementation from
1375 emit_char.
1376 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1377 (cplus_language_data): Likewise.
1378 (asm_language_data): Likewise.
1379 (minimal_language_data): Likewise.
1380 * d-lang.c (d_language_data): Likewise.
1381 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1382 (f_language_data): Delete la_emitchar initializer.
1383 (f_language::emitchar): New member function, implementation from
1384 f_emit_char.
1385 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1386 * language.c (unk_lang_emit_char): Delete.
1387 (language_defn::emitchar): New member function definition.
1388 (unknown_language_data): Delete la_emitchar initializer.
1389 (unknown_language::emitchar): New member function.
1390 (auto_language_data): Delete la_emitchar initializer.
1391 (auto_language::emitchar): New member function.
1392 * language.h (language_data): Delete la_emitchar field.
1393 (language_defn::emitchar): New member field declaration.
1394 (LA_EMIT_CHAR): Update call to emitchar.
1395 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1396 (m2_language_data): Delete la_emitchar initializer.
1397 (m2_language::emitchar): New member function, implementation from
1398 m2_emit_char.
1399 * objc-lang.c (objc_language_data): Delete la_emitchar
1400 initializer.
1401 * opencl-lang.c (opencl_language_data): Likewise.
1402 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1403 (pascal_language_data): Delete la_emitchar initializer.
1404 (pascal_language::emitchar): New member function, implementation
1405 from pascal_emit_char.
1406 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1407 (rust_language_data): Delete la_emitchar initializer.
1408 (rust_language::emitchar): New member function, implementation
1409 from rust_emitchar.
1410
1bf9c363
AB
14112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1414 (ada_language_data): Delete la_post_parser initializer.
1415 (ada_language::post_parser): New member function.
1416 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1417 (cplus_language_data): Likewise.
1418 (asm_language_data): Likewise.
1419 (minimal_language_data): Likewise.
1420 * d-lang.c (d_language_data): Likewise.
1421 * f-lang.c (f_language_data): Likewise.
1422 * go-lang.c (go_language_data): Likewise.
1423 * language.c (unknown_language_data): Likewise.
1424 (auto_language_data): Likewise.
1425 * language.h (language_data): Delete la_post_parser field.
1426 (language_defn::post_parser): New member function.
1427 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1428 * objc-lang.c (objc_language_data): Likewise.
1429 * opencl-lang.c (opencl_language_data): Likewise.
1430 * p-lang.c (pascal_language_data): Likewise.
1431 * parse.c (parse_exp_in_context): Update call to post_parser.
1432 (null_post_parser): Delete definition.
1433 * parser-defs.h (null_post_parser): Delete declaration.
1434 * rust-lang.c (rust_language_data): Delete la_post_parser
1435 initializer.
1436
87afa652
AB
14372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * ada-lang.c (parse): Rename to ada_language::parser.
1440 (ada_language_data): Delete la_parser initializer.
1441 (ada_language::parser): New member function, implementation from
1442 parse.
1443 * c-lang.c (c_language_data): Delete la_parser initializer.
1444 (cplus_language_data): Likewise.
1445 (asm_language_data): Likewise.
1446 (minimal_language_data): Likewise.
1447 * d-lang.c (d_language_data): Likewise.
1448 (d_language::parser): New member function.
1449 * f-lang.c (f_language_data): Delete la_parser initializer.
1450 (f_language::parser): New member function.
1451 * go-lang.c (go_language_data): Delete la_parser initializer.
1452 (go_language::parser): New member function.
1453 * language.c (unk_lang_parser): Delete.
1454 (language_defn::parser): Define new member function.
1455 (unknown_language_data): Delete la_parser initializer.
1456 (unknown_language::parser): New member function.
1457 (auto_language_data): Delete la_parser initializer.
1458 (auto_language::parser): New member function.
1459 * language.h (language_data): Delete la_parser field.
1460 (language_defn::parser): Declare new member function.
1461 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1462 (m2_language::parser): New member function.
1463 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1464 * opencl-lang.c (opencl_language_data): Likewise.
1465 * p-lang.c (pascal_language_data): Likewise.
1466 (pascal_language::parser): New member function.
1467 * parse.c (parse_exp_in_context): Update call to parser.
1468 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1469 (rust_language::parser): New member function.
1470
37825800
AB
14712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * top.c (print_gdb_configuration): Print --with-python-libdir
1474 configuration value.
1475
5b860c93
PW
14762020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1477
1478 * NEWS: Mention change to the alias command.
1479
cf00cd6f
PW
14802020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1481
1482 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1483 (alias_command_completer)
1484 (make_alias_options_def_group): New functions.
1485 (alias_opts, alias_option_defs): New struct and array.
1486 (alias_usage_error): Update usage.
1487 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1488 Use option framework.
1489 (_initialize_cli_cmds): Update alias command help.
1490 Update aliases command help.
1491 (show_user):
1492 Add NULL for new default_args lookup_cmd argument.
1493 (valid_command_p): Rename to validate_aliased_command.
1494 Add NULL for new default_args lookup_cmd argument. Verify that the
1495 aliased_command has no default args.
1496 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1497 (lookup_cmd_1, lookup_cmd): New argument default_args.
1498 (add_alias_cmd):
1499 Add NULL for new default_args lookup_cmd argument.
1500 (print_help_for_command): Show default args under the layout
1501 alias some_alias = some_aliased_cmd some_alias_default_arg.
1502 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1503 xfree default_args in destructor.
1504 * cli/cli-script.c (process_next_line, do_define_command):
1505 Add NULL for new default_args lookup_cmd argument.
1506 * command.h: Declare new default_args argument in lookup_cmd
1507 and lookup_cmd_1.
1508 * completer.c (complete_line_internal_1):
1509 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1510 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1511 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1512 Likewise.
1513 * infcmd.c (_initialize_infcmd): Likewise.
1514 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1515 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1516 * python/py-param.c (add_setshow_generic): Likewise.
1517 * remote.c (_initialize_remote): Likewise.
1518 * top.c (execute_command): Prepend default_args if command has some.
1519 (set_verbose):
1520 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1521 * tracepoint.c (validate_actionline, encode_actions_1):
1522 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1523
bd920864
TBA
15242020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1525
1526 * jit.c (jit_read_descriptor): Use bool as the return type.
1527 (jit_breakpoint_re_set_internal): Use bool as the return type.
1528 Invert the return value logic; return true if the jit breakpoint
1529 has been successfully initialized.
1530 (jit_inferior_init): Update the call to
1531 jit_breakpoint_re_set_internal.
1532
f8098322
PA
15332020-06-22 Pedro Alves <palves@redhat.com>
1534
1535 PR gdb/25939
1536 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1537 Use the current inferior instead. Don't return
1538 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1539 wait again.
1540 * sol-thread.c (sol_thread_target::wait): Don't reference
1541 inferior_ptid.
1542 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1543 (sol_update_thread_list_callback): Use the current inferior's pid
1544 instead of inferior_ptid.
1545
196535a6
RO
15462020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1547
1548 * procfs.c: Cleanup many comments.
1549
1550 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1551 (AFTER_WATCHFLAG): Replace by value.
1552
1553 (MAIN_PROC_NAME_FORMAT): Inline ...
1554 (create_procinfo): ... here.
1555
1556 (procfs_debug_inferior): Remove SYS_exec handling.
1557 (syscall_is_exec): Likewise.
1558 (procfs_set_exec_trap): Likewise.
1559
1560 (syscall_is_lwp_exit): Inline in callers.
1561 (syscall_is_exit): Likewise.
1562 (syscall_is_exec): Likewise.
1563 (syscall_is_lwp_create): Likewise.
1564
1565 (invalidate_cache): Remove #if 0 code.
1566
1567 (make_signal_thread_runnable): Remove.
1568 (procfs_target::resume): Remove #if 0 code.
1569
cf6f3e86
RO
15702020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1571
1572 PR gdb/25939
1573 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1574 call ...
1575 (procfs_target::create_inferior): ... here.
1576
48e9cc84
PW
15772020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1578
1579 * exec.c (validate_exec_file): Ensure the build-id is up to
1580 date by calling reopen_exec_file (that checks file timestamp
1581 to decide to re-read the file).
1582
3922b302
PA
15832020-06-18 Pedro Alves <palves@redhat.com>
1584
1585 PR gdb/25412
1586 * gdbthread.h (delete_thread, delete_thread_silent)
1587 (find_thread_ptid): Update comments.
1588 * thread.c (current_thread_): New global.
1589 (is_current_thread): Move higher, and reimplement.
1590 (inferior_thread): Reimplement.
1591 (set_thread_exited): Use bool. Add assertions.
1592 (add_thread_silent): Simplify thread-reuse handling by always
1593 calling delete_thread.
1594 (delete_thread): Remove intro comment.
1595 (find_thread_ptid): Skip exited threads.
1596 (switch_to_thread_no_regs): Write to current_thread_.
1597 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1598 INFERIOR_PTID. Clear current_thread_.
1599
6dbdab44
PA
16002020-06-18 Pedro Alves <palves@redhat.com>
1601
1602 * aix-thread.c (pd_update): Use switch_to_thread.
1603
2da4b788
PA
16042020-06-18 Pedro Alves <palves@redhat.com>
1605
1606 * ravenscar-thread.c (ravenscar_thread_target): Update.
1607 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1608 (ravenscar_thread_target::add_active_thread): ... this. Don't
1609 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1610 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1611
50838d1b
PA
16122020-06-18 Pedro Alves <palves@redhat.com>
1613
1614 * nat/windows-nat.c (current_windows_thread): Remove.
1615 * nat/windows-nat.h (current_windows_thread): Remove.
1616 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1617 Adjust.
1618 (display_selectors): Adjust to fetch the current
1619 windows_thread_info based on inferior_ptid.
1620 (fake_create_process): No longer write to current_windows_thread.
1621 (windows_nat_target::get_windows_debug_event):
1622 Don't set inferior_ptid or current_windows_thread.
1623 (windows_nat_target::wait): Adjust to not rely on
1624 current_windows_thread.
1625 (do_initial_windows_stuff): Now a method of windows_nat_target.
1626 Switch to the last_ptid thread.
1627 (windows_nat_target::attach): Adjust.
1628 (windows_nat_target::detach): Use switch_to_no_thread instead of
1629 writing to inferior_ptid directly.
1630 (windows_nat_target::create_inferior): Adjust.
1631
31ce04e9
PA
16322020-06-18 Pedro Alves <palves@redhat.com>
1633
1634 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1635
1ee1a363
PA
16362020-06-18 Pedro Alves <palves@redhat.com>
1637
1638 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1639 after creating it, instead of writing to inferior_ptid. Don't
1640 write to inferior_ptid.
1641
6d350754
PA
16422020-06-18 Pedro Alves <palves@redhat.com>
1643
1644 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1645
5d971d48
PA
16462020-06-18 Pedro Alves <palves@redhat.com>
1647
1648 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1649 it, instead of writing to inferior_ptid.
1650
86e57d1b
PA
16512020-06-18 Pedro Alves <palves@redhat.com>
1652
1653 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1654 to inferior_ptid.
1655
f2e1c129
PA
16562020-06-18 Pedro Alves <palves@redhat.com>
1657
1658 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1659 instead of writing to inferior_ptid directly.
1660
60db1b85
PA
16612020-06-18 Pedro Alves <palves@redhat.com>
1662
1663 * corelow.c (core_target::close): Use switch_to_no_thread instead
1664 of writing to inferior_ptid directly.
1665 (add_to_thread_list, core_target_open): Use switch_to_thread
1666 instead of writing to inferior_ptid directly.
1667
fe7d6a8d
PA
16682020-06-18 Pedro Alves <palves@redhat.com>
1669
1670 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1671 inferior_ptid.
1672 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1673 inferior_ptid.
1674 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1675 inferior_ptid directly.
1676 (darwin_nat_target::init_thread_list): Switch to thread, instead
1677 of writing to inferior_ptid.
1678 (darwin_nat_target::attach): Don't write to inferior_ptid.
1679 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1680
975f8708
PA
16812020-06-18 Pedro Alves <palves@redhat.com>
1682
1683 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1684 thread.
1685 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1686 Instead use switch_to_thread.
1687 (gnu_nat_target::detach): Use switch_to_no_thread
1688 instead of writing to inferior_ptid directly. Used passed-in
1689 inferior instead of looking up the inferior by pid.
1690
1a204730
PA
16912020-06-18 Pedro Alves <palves@redhat.com>
1692
1693 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1694 inferior_ptid.
1695
ebe84f23
PA
16962020-06-18 Pedro Alves <palves@redhat.com>
1697
1698 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1699 inferior_ptid.
1700 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1701 thread.
1702 (nto_procfs_target::detach): Avoid referencing
1703 inferior_ptid. Use switch_to_no_thread instead of writing to
1704 inferior_ptid directly.
1705 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1706 instead of writing to inferior_ptid directly.
1707 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1708 to thread.
1709
191f02e5
PA
17102020-06-18 Pedro Alves <palves@redhat.com>
1711
1712 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1713 after creating it, instead of writing to inferior_ptid.
1714 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1715 to inferior_ptid directly.
1716 (gdbsim_target::wait): Don't write to inferior_ptid.
1717
0ac55310
PA
17182020-06-18 Pedro Alves <palves@redhat.com>
1719
1720 * remote.c (remote_target::remote_notice_new_inferior): Use
1721 switch_to_thread instead of writing to inferior_ptid directly.
1722 (remote_target::add_current_inferior_and_thread): Use
1723 switch_to_no_thread instead of writing to inferior_ptid directly.
1724 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1725 and switch_to_thread instead of using set_current_inferior or
1726 writing to inferior_ptid directly.
1727
5233f39b
PA
17282020-06-18 Pedro Alves <palves@redhat.com>
1729
1730 * tracectf.c (ctf_target_open): Switch to added thread instead of
1731 writing to inferior_ptid directly.
1732 (ctf_target::close): Use switch_to_no_thread instead of writing to
1733 inferior_ptid directly.
1734
087e161b
PA
17352020-06-18 Pedro Alves <palves@redhat.com>
1736
1737 * tracefile-tfile.c (tfile_target_open): Don't write to
1738 inferior_ptid directly, instead switch to added thread.
1739 (tfile_target::close): Use switch_to_no_thread instead of writing
1740 to inferior_ptid directly.
1741
7fb43e53
PA
17422020-06-18 Pedro Alves <palves@redhat.com>
1743
1744 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1745 (procfs_target::detach): Use switch_to_no_thread
1746 instead of writing to inferior_ptid directly.
1747 (do_attach): Change return type to void. Switch to the added
1748 thread.
1749 (procfs_target::create_inferior): Switch to the added thread.
1750 (procfs_do_thread_registers): Don't write to inferior_ptid.
1751
18493a00
PA
17522020-06-18 Pedro Alves <palves@redhat.com>
1753
1754 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1755 of writing to inferior_ptid.
1756 (scoped_restore_exited_inferior): Delete.
1757 (handle_vfork_child_exec_or_exit): Simplify using
1758 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1759 instead of writing to inferior_ptid.
1760 (THREAD_STOPPED_BY): Delete.
1761 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1762 (thread_stopped_by_hw_breakpoint): Delete.
1763 (save_waitstatus): Use
1764 scoped_restore_current_thread+switch_to_thread, and call
1765 target_stopped_by_watchpoint instead of
1766 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1767 instead of thread_stopped_by_sw_breakpoint, and
1768 target_stopped_by_hw_breakpoint instead of
1769 thread_stopped_by_hw_breakpoint.
1770 (handle_inferior_event)
1771 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1772 inferior_ptid directly, nor
1773 set_current_inferior/set_current_program_space. Use
1774 switch_to_thread / switch_to_inferior_no_thread instead.
1775
a0776b13
PA
17762020-06-18 Pedro Alves <palves@redhat.com>
1777
1778 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1779 instead of writing to inferior_ptid.
1780
6155c136
PA
17812020-06-18 Pedro Alves <palves@redhat.com>
1782
1783 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1784 added thread.
1785 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1786 to the added thread.
1787 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1788 instead of writing to inferior_ptid.
1789
c5316fc6
PA
17902020-06-18 Pedro Alves <palves@redhat.com>
1791
1792 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1793 (register_to_value_test): Mock a program_space too. Heap-allocate
1794 the address space. Don't write to inferior_ptid. Use
1795 switch_to_thread instead.
1796
8df01799
PA
17972020-06-18 Pedro Alves <palves@redhat.com>
1798
1799 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1800 Delete.
1801 (find_signalled_thread()): New, factored out from
1802 linux_make_corefile_notes and adjusted to handle exited threads.
1803 (linux_make_corefile_notes): Adjust to use the new
1804 find_signalled_thread.
1805
41792d68
PA
18062020-06-18 Pedro Alves <palves@redhat.com>
1807
1808 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1809 of saving/restoring inferior_ptid.
1810
612f258a
TT
18112020-06-17 Tom Tromey <tom@tromey.com>
1812
1813 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1814 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1815 declare.
1816 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1817
efb763a5
SM
18182020-06-15 Simon Marchi <simon.marchi@efficios.com>
1819
1820 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1821 of partial symtabs.
1822
2951f6c0
SM
18232020-06-17 Simon Marchi <simon.marchi@efficios.com>
1824
1825 * regformats/reg-arm.dat: Remove.
1826 * regformats/reg-bfin.dat: Remove.
1827 * regformats/reg-cris.dat: Remove.
1828 * regformats/reg-crisv32.dat: Remove.
1829 * regformats/reg-m32r.dat: Remove.
1830 * regformats/reg-tilegx.dat: Remove.
1831 * regformats/reg-tilegx32.dat: Remove.
1832
7d458ea5
SM
18332020-06-17 Simon Marchi <simon.marchi@efficios.com>
1834
1835 * features/Makefile (WHICH): Remove arm files.
1836 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1837 * regformats/arm/arm-with-neon.dat: Remove.
1838 * regformats/arm/arm-with-vfpv2.dat: Remove.
1839 * regformats/arm/arm-with-vfpv3.dat: Remove.
1840
3af96c0d
SM
18412020-06-17 Simon Marchi <simon.marchi@efficios.com>
1842
1843 * features/Makefile (XMLTOC): Remove rx.xml.
1844
b25e22fd
PA
18452020-06-17 Pedro Alves <palves@redhat.com>
1846
1847 * gdbthread.h (thread_control_state) <trap_expected> Update
1848 comments.
1849
a78a19b1
AB
18502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1851
1852 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1853 ada_language::lookup_symbol_nonlocal.
1854 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1855 (ada_language::lookup_symbol_nonlocal): New member function,
1856 implementation from ada_lookup_symbol_nonlocal.
1857 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1858 initializer.
1859 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1860 initializer.
1861 (cplus_language::lookup_symbol_nonlocal): New member function.
1862 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1863 (minimal_language_data) Likewise.
1864 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1865 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1866 initializer.
1867 (d_language::lookup_symbol_nonlocal): New member function.
1868 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1869 initializer.
1870 (f_language::lookup_symbol_nonlocal): New member function.
1871 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1872 initializer.
1873 * language.c (unknown_language_data): Likewise.
1874 (auto_language_data): Likewise.
1875 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1876 field.
1877 (language_defn::lookup_symbol_nonlocal): New member function.
1878 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1879 initializer.
1880 * objc-lang.c (objc_language_data): Likewise.
1881 * opencl-lang.c (opencl_language_data): Likewise.
1882 * p-lang.c (pascal_language_data): Likewise.
1883 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1884 rust_language::lookup_symbol_nonlocal.
1885 (rust_language_data): Delete la_lookup_symbol_nonlocal
1886 initializer.
1887 (rust_language::lookup_symbol_nonlocal): New member function,
1888 implementation from rust_lookup_symbol_nonlocal.
1889 * symtab.c (lookup_symbol_aux): Update call to
1890 lookup_symbol_nonlocal.
1891 (basic_lookup_symbol_nonlocal): Rename to...
1892 (language_defn::lookup_symbol_nonlocal): ...this, and update
1893 header comment. Remove language_defn parameter, and replace with
1894 uses of `this'.
1895 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1896
ebe2334e
AB
18972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1900 initializer.
1901 (ada_language::value_print_inner): New member function.
1902 * c-lang.c (c_language_data): Delete la_value_print_inner
1903 initializer.
1904 (cplus_language_data): Likewise.
1905 (asm_language_data): Likewise.
1906 (minimal_language_data): Likewise.
1907 * d-lang.c (d_language_data): Likewise.
1908 (d_language::value_print_inner): New member function.
1909 * f-lang.c (f_language_data): Delete la_value_print_inner
1910 initializer.
1911 (f_language::value_print_inner): New member function.
1912 * f-lang.h (f_value_print_innner): Rename to...
1913 (f_value_print_inner): ...this (note spelling of 'inner').
1914 * f-valprint.c (f_value_print_innner): Rename to...
1915 (f_value_print_inner): ...this (note spelling of 'inner').
1916 * go-lang.c (go_language_data): Delete la_value_print_inner
1917 initializer.
1918 (go_language::value_print_inner): New member function.
1919 * language.c (language_defn::value_print_inner): Define new member
1920 function.
1921 (unk_lang_value_print_inner): Delete.
1922 (unknown_language_data): Delete la_value_print_inner initializer.
1923 (unknown_language::value_print_inner): New member function.
1924 (auto_language_data): Delete la_value_print_inner initializer.
1925 (auto_language::value_print_inner): New member function.
1926 * language.h (language_data): Delete la_value_print_inner field.
1927 (language_defn::value_print_inner): Delcare new member function.
1928 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1929 initializer.
1930 (m2_language::value_print_inner): New member function.
1931 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1932 initializer.
1933 * opencl-lang.c (opencl_language_data): Likewise.
1934 * p-lang.c (pascal_language_data): Likewise.
1935 (pascal_language::value_print_inner): New member function.
1936 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1937 initializer.
1938 (rust_language::value_print_inner): New member function.
1939 * valprint.c (do_val_print): Update call to value_print_inner.
1940
a1d1fa3e
AB
19412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * ada-lang.c (ada_language_data): Delete la_value_print
1944 initializer.
1945 (ada_language::value_print): New member function.
1946 * c-lang.c (c_language_data): Delete la_value_print initializer.
1947 (cplus_language_data): Likewise.
1948 (asm_language_data): Likewise.
1949 (minimal_language_data): Likewise.
1950 * d-lang.c (d_language_data): Likewise.
1951 * f-lang.c (f_language_data): Likewise.
1952 * go-lang.c (go_language_data): Likewise.
1953 * language.c (unk_lang_value_print): Delete.
1954 (language_defn::value_print): Define new member function.
1955 (unknown_language_data): Delete la_value_print initializer.
1956 (unknown_language::value_print): New member function.
1957 (auto_language_data): Delete la_value_print initializer.
1958 (auto_language::value_print): New member function.
1959 * language.h (language_data): Delete la_value_print field.
1960 (language_defn::value_print): Declare new member function.
1961 (LA_VALUE_PRINT): Update call to value_print.
1962 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1963 * objc-lang.c (objc_language_data): Likewise.
1964 * opencl-lang.c (opencl_language_data): Likewise.
1965 * p-lang.c (pascal_language_data): Likewise.
1966 (pascal_language::value_print): New member function.
1967 * rust-lang.c (rust_language_data): Delete la_value_print
1968 initializer.
1969
f16a9f57
AB
19702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * ada-lang.c (ada_watch_location_expression): Rename to
1973 ada_language::watch_location_expression.
1974 (ada_language_data): Delete la_watch_location_expression
1975 initializer.
1976 (ada_language::watch_location_expression): New member function,
1977 implementation from ada_watch_location_expression.
1978 * breakpoint.c (watch_command_1): Update call to
1979 watch_location_expression.
1980 * c-lang.c (c_watch_location_expression): Rename to
1981 language_defn::watch_location_expression.
1982 (c_language_data): Delete la_watch_location_expression
1983 initializer.
1984 (cplus_language_data): Likewise.
1985 (asm_language_data): Likewise.
1986 (minimal_language_data): Likewise.
1987 * c-lang.h (c_watch_location_expression): Delete declaration.
1988 * d-lang.c (d_language_data): Delete la_watch_location_expression
1989 initializer.
1990 * f-lang.c (f_language_data): Likewise.
1991 * go-lang.c (go_language_data): Likewise.
1992 * language.c (language_defn::watch_location_expression): Member
1993 function implementation from c_watch_location_expression.
1994 (unknown_language_data): Delete la_watch_location_expression
1995 initializer.
1996 (auto_language_data): Likewise.
1997 * language.h (language_data): Delete la_watch_location_expression
1998 field.
1999 (language_defn::watch_location_expression): Declare new member
2000 function.
2001 * m2-lang.c (m2_language_data): Delete
2002 la_watch_location_expression initializer.
2003 * objc-lang.c (objc_language_data): Likewise.
2004 * opencl-lang.c (opencl_language_data): Likewise.
2005 * p-lang.c (pascal_language_data): Likewise.
2006 * rust-lang.c (rust_watch_location_expression): Rename to
2007 rust_language::watch_location_expression.
2008 (rust_language_data): Delete la_watch_location_expression
2009 initializer.
2010 (rust_language::watch_location_expression): New member function,
2011 implementation from rust_watch_location_expression.
2012
7e56227d
AB
20132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2016 ada_language::collect_symbol_completion_matches.
2017 (ada_language_data): Delete la_collect_symbol_completion_matches
2018 initializer.
2019 (ada_language::collect_symbol_completion_matches): New member
2020 function, implementation from
2021 ada_collect_symbol_completion_matches.
2022 * c-lang.c (c_language_data): Delete
2023 la_collect_symbol_completion_matches initializer.
2024 (cplus_language_data): Likewise.
2025 (asm_language_data): Likewise.
2026 (minimal_language_data): Likewise.
2027 * d-lang.c (d_language_data): Likewise.
2028 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2029 f_language::collect_symbol_completion_matches.
2030 (f_language_data): Delete la_collect_symbol_completion_matches
2031 initializer.
2032 (f_language::collect_symbol_completion_matches) New member
2033 function, implementation from f_collect_symbol_completion_matches.
2034 * go-lang.c (go_language_data): Delete
2035 la_collect_symbol_completion_matches initializer.
2036 * language.c (unknown_language_data): Likewise.
2037 (auto_language_data): Likewise.
2038 * language.h (language_data): Delete
2039 la_collect_symbol_completion_matches field.
2040 (language_defn::collect_symbol_completion_matches): New member
2041 function.
2042 * m2-lang.c (m2_language_data): Delete
2043 la_collect_symbol_completion_matches initializer.
2044 * objc-lang.c (objc_language_data): Likewise.
2045 * opencl-lang.c (opencl_language_data): Likewise.
2046 * p-lang.c (pascal_language_data): Likewise.
2047 * rust-lang.c (rust_language_data): Likewise.
2048 * symtab.c (default_collect_symbol_completion_matches): Delete.
2049 (collect_symbol_completion_matches): Update call to
2050 collect_symbol_completion_matches.
2051 (collect_symbol_completion_matches_type): Likewise.
2052 * symtab.h (default_collect_symbol_completion_matches): Delete
2053 declaration.
2054
53fc67f8
AB
20552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2056
2057 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2058 (ada_language_data): Delete la_word_break_characters initializer.
2059 (ada_language::word_break_characters): New member function.
2060 * c-lang.c (c_language_data): Delete la_word_break_characters
2061 initializer.
2062 (cplus_language_data): Likewise.
2063 (asm_language_data): Likewise.
2064 (minimal_language_data): Likewise.
2065 * completer.c: Update global comment.
2066 (advance_to_expression_complete_word_point): Update call to
2067 word_break_characters.
2068 (complete_files_symbols): Likewise.
2069 (complete_line_internal_1): Likewise.
2070 (default_completer_handle_brkchars): Likewise.
2071 (skip_quoted_chars): Likewise.
2072 * d-lang.c (d_language_data): Delete la_word_break_characters
2073 initializer.
2074 * f-lang.c (f_word_break_characters): Delete.
2075 (f_language_data): Delete la_word_break_characters initializer.
2076 (f_language::word_break_characters): New member function.
2077 * go-lang.c (go_language_data): Delete la_word_break_characters
2078 initializer.
2079 * language.c (unknown_language_data): Likewise.
2080 (auto_language_data): Likewise.
2081 * language.h (default_word_break_characters): Move declaration to
2082 earlier in the file.
2083 (language_data): Delete la_word_break_characters field.
2084 (language_defn::word_break_characters): New member function.
2085 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2086 initializer.
2087 * objc-lang.c (objc_language_data): Likewise.
2088 * opencl-lang.c (opencl_language_data): Likewise.
2089 * p-lang.c (pascal_language_data): Likewise.
2090 * rust-lang.c (rust_language_data): Likewise.
2091
c9debfb9
AB
20922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2093
2094 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2095 (ada_language_data): Delete la_get_symbol_name_matcher
2096 initializer.
2097 (language_defn::get_symbol_name_matcher_inner): New member
2098 function.
2099 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2100 initializer.
2101 (cplus_language_data): Likewise.
2102 (cplus_language::get_symbol_name_matcher_inner): New member
2103 function.
2104 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2105 (minimal_language_data): Likewise.
2106 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2107 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2108 initializer.
2109 * dictionary.c (iter_match_first_hashed): Update call to
2110 get_symbol_name_matcher.
2111 (iter_match_next_hashed): Likewise.
2112 (iter_match_next_linear): Likewise.
2113 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2114 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2115 initializer.
2116 (f_language::get_symbol_name_matcher_inner): New member function.
2117 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2118 initializer.
2119 * language.c (default_symbol_name_matcher): Update header comment,
2120 make static.
2121 (language_defn::get_symbol_name_matcher): New definition.
2122 (language_defn::get_symbol_name_matcher_inner): Likewise.
2123 (get_symbol_name_matcher): Delete.
2124 (unknown_language_data): Delete la_get_symbol_name_matcher
2125 initializer.
2126 (auto_language_data): Likewise.
2127 * language.h (language_data): Delete la_get_symbol_name_matcher
2128 field.
2129 (language_defn::get_symbol_name_matcher): New member function.
2130 (language_defn::get_symbol_name_matcher_inner): Likewise.
2131 (default_symbol_name_matcher): Delete declaration.
2132 * linespec.c (find_methods): Update call to
2133 get_symbol_name_matcher.
2134 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2135 initializer.
2136 * minsyms.c (lookup_minimal_symbol): Update call to
2137 get_symbol_name_matcher.
2138 (iterate_over_minimal_symbols): Likewise.
2139 * objc-lang.c (objc_language_data): Delete
2140 la_get_symbol_name_matcher initializer.
2141 * opencl-lang.c (opencl_language_data): Likewise.
2142 * p-lang.c (pascal_language_data): Likewise.
2143 * psymtab.c (psymbol_name_matches): Update call to
2144 get_symbol_name_matcher.
2145 * rust-lang.c (rust_language_data): Delete
2146 la_get_symbol_name_matcher initializer.
2147 * symtab.c (symbol_matches_search_name): Update call to
2148 get_symbol_name_matcher.
2149 (compare_symbol_name): Likewise.
2150
9a49ad8c
AB
21512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2152
2153 * ada-lang.c (ada_language_data): Delete la_compute_program
2154 initializer.
2155 * c-lang.c (c_language_data): Likewise.
2156 (c_language::compute_program): New member function.
2157 (cplus_language_data): Delete la_compute_program initializer.
2158 (cplus_language::compute_program): New member function.
2159 (asm_language_data): Delete la_compute_program initializer.
2160 (minimal_language_data): Likewise.
2161 * c-lang.h (c_compute_program): Update comment.
2162 (cplus_compute_program): Likewise.
2163 * compile/compile-c-support.c (c_compute_program): Likewise.
2164 (cplus_compute_program): Likewise.
2165 * compile/compile.c (compile_to_object): Update call to
2166 la_compute_program.
2167 * d-lang.c (d_language_data): Delete la_compute_program
2168 initializer.
2169 * f-lang.c (f_language_data): Likewise.
2170 * go-lang.c (go_language_data): Likewise.
2171 * language.c (unknown_language_data): Likewise.
2172 (auto_language_data): Likewise.
2173 * language.h (language_data): Delete la_compute_program field.
2174 (language_defn::compute_program): New member function.
2175 * m2-lang.c (m2_language_data): Delete la_compute_program
2176 initializer.
2177 * objc-lang.c (objc_language_data): Likewise.
2178 * opencl-lang.c (opencl_language_data): Likewise.
2179 * p-lang.c (pascal_language_data): Likewise.
2180 * rust-lang.c (rust_language_data): Likewise.
2181
eff93b4d
AB
21822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * ada-lang.c (ada_language_data) Delete
2185 la_class_name_from_physname initializer.
2186 * c-lang.c (c_language_data): Likewise.
2187 (cplus_language_data): Likewise.
2188 (cplus_language::class_name_from_physname): New member function.
2189 (asm_language_data): Delete la_class_name_from_physname
2190 initializer.
2191 (minimal_language_data): Likewise.
2192 * d-lang.c (d_language_data): Likewise.
2193 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2194 method on language_defn class.
2195 (guess_full_die_structure_name): Likewise.
2196 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2197 initializer.
2198 * go-lang.c (go_language_data): Likewise.
2199 * language.c (language_class_name_from_physname): Delete.
2200 (unk_lang_class_name): Delete.
2201 (unknown_language_data): Delete la_class_name_from_physname
2202 initializer.
2203 (auto_language_data): Likewise.
2204 * language.h (language_data): Delete la_class_name_from_physname
2205 field.
2206 (language_defn::class_name_from_physname): New function.
2207 (language_class_name_from_physname): Delete declaration.
2208 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2209 initializer.
2210 * objc-lang.c (objc_language_data): Likewise.
2211 * opencl-lang.c (opencl_language_data): Likewise.
2212 * p-lang.c (pascal_language_data): Likewise.
2213 * rust-lang.c (rust_language_data): Likewise.
2214
de543742
TT
22152020-06-16 Tom Tromey <tom@tromey.com>
2216
2217 * tui/tui-data.h (STATUS_NAME): New macro.
2218 * tui/tui-layout.c (tui_remove_some_windows)
2219 (initialize_known_windows, tui_register_window)
2220 (tui_layout_split::remove_windows, initialize_layouts)
2221 (tui_new_layout_command): Don't use hard-coded window names.
2222
a350efd4
TT
22232020-06-16 Tom Tromey <tom@tromey.com>
2224
2225 PR tui/25348:
2226 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2227 tui_initialize_readline. Only run once. Call rl_initialize.
2228 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2229 tui_initialize_readline.
2230 * tui/tui-io.c (tui_setup_io): Call
2231 tui_ensure_readline_initialized.
2232 * tui/tui-interp.c (tui_interp::init): Update.
2233
39ec0490
TT
22342020-06-16 Tom Tromey <tom@tromey.com>
2235
2236 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2237 Also preserve the status window.
2238
d2d1ea20
TT
22392020-06-16 Tom Tromey <tom@tromey.com>
2240
2241 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2242 where m_window==nullptr.
2243
66920317
TT
22442020-06-15 Tom Tromey <tromey@adacore.com>
2245
2246 * windows-nat.c (windows_nat::handle_output_debug_string):
2247 Update.
2248 (windows_nat::handle_ms_vc_exception): Update.
2249 * target.h (target_read_string): Change API.
2250 * target.c (target_read_string): Change API.
2251 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2252 Update.
2253 * solib-frv.c (frv_current_sos): Update.
2254 * solib-dsbt.c (dsbt_current_sos): Update.
2255 * solib-darwin.c (darwin_current_sos): Update.
2256 * linux-thread-db.c (inferior_has_bug): Update.
2257 * expprint.c (print_subexp_standard): Update.
2258 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2259 (ada_exception_message_1): Update.
2260
a5d871dd
TT
22612020-06-15 Tom Tromey <tromey@adacore.com>
2262
2263 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2264
670e35fa
TT
22652020-06-15 Tom Tromey <tromey@adacore.com>
2266
2267 * valprint.c (read_string): Update comment.
2268 * target.c (MIN): Remove.
2269 (target_read_string): Rewrite.
2270
f5272a3b
TT
22712020-06-15 Tom Tromey <tromey@adacore.com>
2272
2273 * corefile.c (read_memory_string): Remove.
2274 * ada-valprint.c (ada_value_print_ptr): Update.
2275 * ada-lang.h (ada_tag_name): Change return type.
2276 * ada-lang.c (type_from_tag): Update.
2277 (ada_tag_name_from_tsd): Change return type. Use
2278 target_read_string.
2279 (ada_tag_name): Likewise.
2280 * gdbcore.h (read_memory_string): Don't declare.
2281
2c074f49
HD
22822020-06-14 Hannes Domani <ssbssa@yahoo.de>
2283
2284 * symtab.c (rbreak_command): Ignore Windows drive colon.
2285
6a17d503
SM
22862020-06-12 Simon Marchi <simon.marchi@efficios.com>
2287
2288 * NEWS: Mention removed GDBserver host support.
2289
453c733f
NC
22902020-06-12 Nelson Chu <nelson.chu@sifive.com>
2291
2292 * features/riscv/rebuild-csr-xml.sh: Updated.
2293
2b4e6a3f
TT
22942020-06-11 Tom Tromey <tom@tromey.com>
2295
2296 PR gdb/18318:
2297 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2298
4412332f
JG
22992020-06-09 Jonny Grant <jg@jguk.org>
23002020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2301
2302 * main.c (captured_main_1): Don't print new line after help.
2303 (print_gdb_help): add mailing list and IRC channel information
2304 to --help. Add new lines between items in the footer. Remove
2305 quotes around bug url.
2306
2f33032a
KS
23072020-06-11 Keith Seitz <keiths@redhat.com>
2308
2309 PR gdb/21356
2310 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2311 Resolve typedefs for type length calculations.
2312
7ab96794
TV
23132020-06-10 Tom de Vries <tdevries@suse.de>
2314
2315 PR ada/24713
2316 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2317 (write_psymbols): Enable .gdb_index for ada.
2318 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2319 ada.
2320
e5f3ece2
TV
23212020-06-10 Tom de Vries <tdevries@suse.de>
2322
2323 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2324 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2325 namei" instead of "const char *name" argument.
2326 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2327 dw2_symtab_iter_init.
2328
940da03e
SM
23292020-06-08 Simon Marchi <simon.marchi@efficios.com>
2330
2331 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2332 to use type::field and field::type instead.
2333
b6cdac4b
SM
23342020-06-08 Simon Marchi <simon.marchi@efficios.com>
2335
2336 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2337 to use field::type instead.
2338
5d14b6e5
SM
23392020-06-08 Simon Marchi <simon.marchi@efficios.com>
2340
2341 * gdbtypes.h (struct field) <type, set_type>: New methods.
2342 Rename `type` field to...
2343 <m_type>: ... this. Change references throughout to use type or
2344 set_type methods.
2345 (FIELD_TYPE): Use field::type. Change call sites that modify
2346 the field's type to use field::set_type instead.
2347
3d967001
SM
23482020-06-08 Simon Marchi <simon.marchi@efficios.com>
2349
2350 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2351 to use type::index_type instead.
2352
262abc0d
SM
23532020-06-08 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2356 methods.
2357 (TYPE_INDEX_TYPE): Use type::index_type.
2358 * gdbtypes.c (create_array_type_with_stride): Likewise.
2359
82836c92
TT
23602020-06-07 Tom Tromey <tom@tromey.com>
2361
2362 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2363 parameter.
2364 (generic_value_print): Update.
2365
940dace9
AB
23662020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2367
2368 Revert commit 982a38f60b0.
2369 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2370
982a38f6
AB
23712020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2372
2373 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2374 avoid use after free.
2375
82f06518
TV
23762020-06-05 Tom de Vries <tdevries@suse.de>
2377
2378 * NEWS: Fix typos.
2379
f8c41851
SM
23802020-06-04 Simon Marchi <simon.marchi@efficios.com>
2381
2382 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2383 the per_bfd object.
2384 (dwarf2_read_debug_names): Likewise.
2385 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2386 object when re-using a per_bfd object with an index.
2387
f9b5d5ea
TV
23882020-06-03 Tom de Vries <tdevries@suse.de>
2389
2390 PR symtab/26046
2391 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2392 children for C++.
2393 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2394 DW_TAG_subprogram.
2395
f6eee2d0
AB
23962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2397
2398 * ada-lang.c (ada_language_data): Delete skip_trampoline
2399 initializer.
2400 * c-lang.c (c_language_data): Likewise.
2401 (cplus_language_data): Likewise.
2402 (cplus_language::skip_trampoline): New member function.
2403 (asm_language_data): Delete skip_trampoline initializer.
2404 (minimal_language_data): Likewise.
2405 * d-lang.c (d_language_data): Likewise.
2406 * f-lang.c (f_language_data): Likewise.
2407 * go-lang.c (go_language_data): Likewise.
2408 * language.c (unk_lang_trampoline): Delete function.
2409 (skip_language_trampoline): Update.
2410 (unknown_language_data): Delete skip_trampoline initializer.
2411 (auto_language_data): Likewise.
2412 * language.h (language_data): Delete skip_trampoline field.
2413 (language_defn::skip_trampoline): New function.
2414 * m2-lang.c (m2_language_data): Delete skip_trampoline
2415 initializer.
2416 * objc-lang.c (objc_skip_trampoline): Delete function, move
2417 implementation to objc_language::skip_trampoline.
2418 (objc_language_data): Delete skip_trampoline initializer.
2419 (objc_language::skip_trampoline): New member function with
2420 implementation from objc_skip_trampoline.
2421 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2422 initializer.
2423 * p-lang.c (pascal_language_data): Likewise.
2424 * rust-lang.c (rust_language_data): Likewise.
2425
0a50df5d
AB
24262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2429 (ada_language::demangle): New member function.
2430 * c-lang.c (c_language_data): Delete la_demangle initializer.
2431 (cplus_language_data): Delete la_demangle initializer.
2432 (cplus_language::demangle): New member function.
2433 (asm_language_data): Delete la_demangle initializer.
2434 (minimal_language_data): Delete la_demangle initializer.
2435 * d-lang.c (d_language_data): Delete la_demangle initializer.
2436 (d_language::demangle): New member function.
2437 * f-lang.c (f_language_data): Delete la_demangle initializer.
2438 (f_language::demangle): New member function.
2439 * go-lang.c (go_language_data): Delete la_demangle initializer.
2440 (go_language::demangle): New member function.
2441 * language.c (language_demangle): Update.
2442 (unk_lang_demangle): Delete.
2443 (unknown_language_data): Delete la_demangle initializer.
2444 (unknown_language::demangle): New member function.
2445 (auto_language_data): Delete la_demangle initializer.
2446 (auto_language::demangle): New member function.
2447 * language.h (language_data): Delete la_demangle field.
2448 (language_defn::demangle): New function.
2449 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2450 * objc-lang.c (objc_language_data): Delete la_demangle
2451 initializer.
2452 (objc_language::demangle): New member function.
2453 * opencl-lang.c (opencl_language_data): Delete la_demangle
2454 initializer.
2455 * p-lang.c (pascal_language_data): Likewise.
2456 * rust-lang.c (rust_language_data): Likewise.
2457 (rust_language::demangle): New member function.
2458
fbfb0a46
AB
24592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2460
2461 * ada-lang.c (ada_language_data): Delete la_print_type
2462 initializer.
2463 (ada_language::print_type): New member function.
2464 * c-lang.c (c_language_data): Delete la_print_type initializer.
2465 (c_language::print_type): New member function.
2466 (cplus_language_data): Delete la_print_type initializer.
2467 (cplus_language::print_type): New member function.
2468 (asm_language_data): Delete la_print_type initializer.
2469 (asm_language::print_type): New member function.
2470 (minimal_language_data): Delete la_print_type initializer.
2471 (minimal_language::print_type): New member function.
2472 * d-lang.c (d_language_data): Delete la_print_type initializer.
2473 (d_language::print_type): New member function.
2474 * f-lang.c (f_language_data): Delete la_print_type initializer.
2475 (f_language::print_type): New member function.
2476 * go-lang.c (go_language_data): Delete la_print_type initializer.
2477 (go_language::print_type): New member function.
2478 * language.c (unk_lang_print_type): Delete.
2479 (unknown_language_data): Delete la_print_type initializer.
2480 (unknown_language::print_type): New member function.
2481 (auto_language_data): Delete la_print_type initializer.
2482 (auto_language::print_type): New member function.
2483 * language.h (language_data): Delete la_print_type field.
2484 (language_defn::print_type): New function.
2485 (LA_PRINT_TYPE): Update.
2486 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2487 (m2_language::print_type): New member function.
2488 * objc-lang.c (objc_language_data): Delete la_print_type
2489 initializer.
2490 (objc_language::print_type): New member function.
2491 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2492 to opencl_language::print_type.
2493 (opencl_language_data): Delete la_print_type initializer.
2494 (opencl_language::print_type): New member function, implementation
2495 from opencl_print_type.
2496 * p-lang.c (pascal_language_data): Delete la_print_type
2497 initializer.
2498 (pascal_language::print_type): New member function.
2499 * rust-lang.c (rust_print_type): Delete, implementation moved to
2500 rust_language::print_type.
2501 (rust_language_data): Delete la_print_type initializer.
2502 (rust_language::print_type): New member function, implementation
2503 from rust_print_type.
2504
6f827019
AB
25052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2506
2507 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2508 implementation moves to...
2509 (ada_language::sniff_from_mangled_name): ...here. Update return
2510 type.
2511 (ada_language_data): Delete la_sniff_from_mangled_name
2512 initializer.
2513 * c-lang.c (c_language_data): Likewise.
2514 (cplus_language_data): Likewise.
2515 (cplus_language::sniff_from_mangled_name): New member function,
2516 implementation taken from gdb_sniff_from_mangled_name.
2517 (asm_language_data): Delete la_sniff_from_mangled_name
2518 initializer.
2519 (minimal_language_data): Likewise.
2520 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2521 implementation moves to cplus_language::sniff_from_mangled_name.
2522 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2523 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2524 moves to...
2525 (d_language::sniff_from_mangled_name): ...here.
2526 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2527 * f-lang.c (f_language_data): Likewise.
2528 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2529 moves to...
2530 (go_language::sniff_from_mangled_name): ...here.
2531 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2532 * language.c (language_sniff_from_mangled_name): Delete.
2533 (unknown_language_data): Delete la_sniff_from_mangled_name
2534 initializer.
2535 (auto_language_data): Likewise.
2536 * language.h (language_data): Delete la_sniff_from_mangled_name
2537 field.
2538 (language_defn::sniff_from_mangled_name): New function.
2539 (language_sniff_from_mangled_name): Delete declaration.
2540 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2541 field.
2542 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2543 implementation moves to...
2544 (objc_language::sniff_from_mangled_name): ...here.
2545 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2546 * opencl-lang.c (opencl_language_data): Likewise.
2547 * p-lang.c (pascal_language_data): Likewise.
2548 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2549 implementation moves to...
2550 (rust_language::sniff_from_mangled_name): ...here.
2551 (rust_language_data): Delete la_sniff_from_mangled_name
2552 initializer.
2553 * symtab.c (symbol_find_demangled_name): Call
2554 sniff_from_mangled_name member function.
2555
fb8006fd
AB
25562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2557
2558 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2559 initializer.
2560 * c-lang.c (c_language_data): Likewise.
2561 (cplus_language_data): Likewise.
2562 (cplus_language::search_name_hash): New member function.
2563 (asm_language_data): Delete la_search_name_hash initializer.
2564 (minimal_language_data): Likewise.
2565 * d-lang.c (d_language_data): Likewise.
2566 * dictionary.c (default_search_name_hash): Rename to...
2567 (language_defn::search_name_hash): ...this.
2568 * f-lang.c (f_language_data): Likewise.
2569 (f_language::search_name_hash): New member function.
2570 * go-lang.c (go_language_data): Delete la_search_name_hash
2571 initializer.
2572 * language.c (unknown_language_data): Likewise.
2573 (auto_language_data): Likewise.
2574 * language.h (struct language_data): Delete la_search_name_hash
2575 field.
2576 (language_defn::search_name_hash): Declare new member function.
2577 (default_search_name_hash): Delete declaration.
2578 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2579 initializer.
2580 * objc-lang.c (objc_language_data): Likewise.
2581 * opencl-lang.c (opencl_language_data): Likewise.
2582 * p-lang.c (pascal_language_data): Likewise.
2583 * rust-lang.c (rust_language_data): Likewise.
2584 * symtab.c (search_name_hash): Update call.
2585
8e25bafe
AB
25862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2589 initializer.
2590 * c-lang.c (class compile_instance): Declare.
2591 (c_language_data): Delete la_get_compile_instance initializer.
2592 (c_language::get_compile_instance): New member function.
2593 (cplus_language_data): Delete la_get_compile_instance initializer.
2594 (cplus_language::get_compile_instance): New member function.
2595 (asm_language_data): Delete la_get_compile_instance initializer.
2596 (minimal_language_data): Likewise.
2597 * c-lang.h (c_get_compile_context): Update comment.
2598 (cplus_get_compile_context): Update comment.
2599 * compile/compile.c (compile_to_object): Update calls, don't rely
2600 on function pointer being NULL.
2601 * d-lang.c (d_language_data): Delete la_get_compile_instance
2602 initializer.
2603 * f-lang.c (f_language_data): Likewise.
2604 * go-lang.c (go_language_data): Likewise.
2605 * language.c (unknown_language_data): Likewise.
2606 (auto_language_data): Likewise.
2607 * language.h (language_data): Delete la_get_compile_instance field.
2608 (language_defn::get_compile_instance): New member function.
2609 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2610 initializer.
2611 * objc-lang.c (objc_language_data): Likewise.
2612 * opencl-lang.c (opencl_language_data): Likewise.
2613 * p-lang.c (pascal_language_data): Likewise.
2614 * rust-lang.c (rust_language_data): Likewise.
2615
4009ee92
AB
26162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2617
2618 * ada-lang.c (ada_add_all_symbols): Update comment.
2619 (ada_iterate_over_symbols): Delete, move implementation to...
2620 (ada_language::iterate_over_symbols): ...here, a new member
2621 function, rewrite to use range based for loop.
2622 (ada_language_data): Delete la_iterate_over_symbols initializer.
2623 * c-lang.c (c_language_data): Likewise.
2624 (cplus_language_data): Likewise.
2625 (asm_language_data): Likewise.
2626 (minimal_language_data): Likewise.
2627 * d-lang.c (d_language_data): Likewise.
2628 * f-lang.c (f_language_data): Likewise.
2629 * go-lang.c (go_language_data): Likewise.
2630 * language.c (unknown_language_data): Likewise.
2631 (auto_language_data): Likewise.
2632 * language.h (language_data): Delete la_iterate_over_symbols field.
2633 (language_defn::iterate_over_symbols): New member function.
2634 (LA_ITERATE_OVER_SYMBOLS): Update.
2635 * linespec.c (iterate_over_all_matching_symtabs): Update.
2636 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2637 initializer.
2638 * objc-lang.c (objc_language_data): Likewise.
2639 * opencl-lang.c (opencl_language_data): Likewise.
2640 * p-lang.c (pascal_language_data): Likewise.
2641 * rust-lang.c (rust_language_data): Likewise.
2642
54f4ca46
AB
26432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2644
2645 * ada-lang.c (ada_language_data): Delete
2646 la_lookup_transparent_type initializer.
2647 * c-lang.c (c_language_data): Likewise.
2648 (cplus_language_data): Likewise.
2649 (cplus_language::lookup_transparent_type): New member function.
2650 (asm_language_data): Delete la_lookup_transparent_type
2651 initializer.
2652 (minimal_language_data): Likewise.
2653 * d-lang.c (d_language_data): Likewise.
2654 * f-lang.c (f_language_data): Likewise.
2655 * go-lang.c (go_language_data): Likewise.
2656 * language.c (unknown_language_data): Likewise.
2657 (auto_language_data): Likewise.
2658 * language.h (struct language_data): Delete
2659 la_lookup_transparent_type field.
2660 (language_defn::lookup_transparent_type): New member function.
2661 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2662 initializer.
2663 * objc-lang.c (objc_language_data): Likewise.
2664 * opencl-lang.c (opencl_language_data): Likewise.
2665 * p-lang.c (pascal_language_data): Likewise.
2666 * rust-lang.c (rust_language_data): Likewise.
2667 * symtab.c (symbol_matches_domain): Update call.
2668
1fb314aa
AB
26692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2670
2671 * ada-lang.c (ada_language_arch_info): Delete function, move
2672 implementation to...
2673 (ada_language::language_arch_info): ...here, a new member
2674 function.
2675 (ada_language_data): Delete la_language_arch_info.
2676 * c-lang.c (c_language_data): Likewise.
2677 (c_language::language_arch_info): New member function.
2678 (cplus_language_arch_info): Delete function, move
2679 implementation to...
2680 (cplus_language::language_arch_info): ...here, a new member
2681 function.
2682 (cplus_language_data): Delete la_language_arch_info.
2683 (asm_language_data): Likewise.
2684 (asm_language::language_arch_info): New member function.
2685 (minimal_language_data): Delete la_language_arch_info.
2686 (minimal_language::language_arch_info): New member function.
2687 * d-lang.c (d_language_arch_info): Delete function, move
2688 implementation to...
2689 (d_language::language_arch_info): ...here, a new member
2690 function.
2691 (d_language_data): Delete la_language_arch_info.
2692 * f-lang.c (f_language_arch_info): Delete function, move
2693 implementation to...
2694 (f_language::language_arch_info): ...here, a new member
2695 function.
2696 (f_language_data): Delete la_language_arch_info.
2697 * go-lang.c (go_language_arch_info): Delete function, move
2698 implementation to...
2699 (go_language::language_arch_info): ...here, a new member
2700 function.
2701 (go_language_data): Delete la_language_arch_info.
2702 * language.c (unknown_language_data): Likewise.
2703 (unknown_language::language_arch_info): New member function.
2704 (auto_language_data): Delete la_language_arch_info.
2705 (auto_language::language_arch_info): New member function.
2706 (language_gdbarch_post_init): Update call to
2707 la_language_arch_info.
2708 * language.h (language_data): Delete la_language_arch_info
2709 function pointer.
2710 (language_defn::language_arch_info): New function.
2711 * m2-lang.c (m2_language_arch_info): Delete function, move
2712 implementation to...
2713 (m2_language::language_arch_info): ...here, a new member
2714 function.
2715 (m2_language_data): Delete la_language_arch_info.
2716 * objc-lang.c (objc_language_arch_info): Delete function, move
2717 implementation to...
2718 (objc_language::language_arch_info): ...here, a new member
2719 function.
2720 (objc_language_data): Delete la_language_arch_info.
2721 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2722 implementation to...
2723 (opencl_language::language_arch_info): ...here, a new member
2724 function.
2725 (opencl_language_data): Delete la_language_arch_info.
2726 * p-lang.c (pascal_language_arch_info): Delete function, move
2727 implementation to...
2728 (pascal_language::language_arch_info): ...here, a new member
2729 function.
2730 (pascal_language_data): Delete la_language_arch_info.
2731 * rust-lang.c (rust_language_arch_info): Delete function, move
2732 implementation to...
2733 (rust_language::language_arch_info): ...here, a new member
2734 function.
2735 (rust_language_data): Delete la_language_arch_info.
2736
48448202
AB
27372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2738
2739 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2740 initializer.
2741 * c-lang.c (c_language_data): Likewise.
2742 (cplus_language_data): Likewise.
2743 (cplus_language::pass_by_reference_info): New method.
2744 (asm_language_data): Delete la_pass_by_reference initializer.
2745 (minimal_language_data): Likewise.
2746 * cp-abi.c (cp_pass_by_reference): Remove use of
2747 default_pass_by_reference.
2748 * d-lang.c (d_language_data): Likewise.
2749 * f-lang.c (f_language_data): Likewise.
2750 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2751 default_pass_by_reference.
2752 * go-lang.c (go_language_data): Likewise.
2753 * language.c (language_pass_by_reference): Update.
2754 (default_pass_by_reference): Delete.
2755 (unknown_language_data): Delete la_pass_by_reference
2756 initializer.
2757 (auto_language_data): Likewise.
2758 * language.h (struct language_data): Delete la_pass_by_reference
2759 field.
2760 (language_defn::pass_by_reference_info): New member function.
2761 (default_pass_by_reference): Delete declaration.
2762 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2763 initializer.
2764 * objc-lang.c (objc_language_data): Likewise.
2765 * opencl-lang.c (opencl_language_data): Likewise.
2766 * p-lang.c (pascal_language_data): Likewise.
2767 * rust-lang.c (rust_language_data): Likewise.
2768
15e5fd35
AB
27692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2770
2771 * ada-lang.c (ada_read_var_value): Delete function, move
2772 implementation to...
2773 (ada_language::read_var_value): ...here.
2774 (ada_language_data): Delete la_read_var_value initializer.
2775 * c-lang.c (c_language_data): Likewise.
2776 (cplus_language_data): Likewise.
2777 (minimal_language_data): Likewise.
2778 * d-lang.c (d_language_data): Likewise.
2779 * f-lang.c (f_language_data): Likewise.
2780 * findvar.c (default_read_var_value): Rename to...
2781 (language_defn::read_var_value): ...this.
2782 * findvar.c (read_var_value): Update header comment, and change to
2783 call member function instead of function pointer.
2784 * go-lang.c (go_language_data): Likewise.
2785 * language.c (unknown_language_data): Delete la_read_var_value
2786 initializer.
2787 (auto_language_data): Likewise.
2788 * language.h (struct language_data): Delete la_read_var_value
2789 field.
2790 (language_defn::read_var_value): New member function.
2791 (default_read_var_value): Delete declaration.
2792 * m2-lang.c (m2_language_data): Delete la_read_var_value
2793 initializer.
2794 * objc-lang.c (objc_language_data): Likewise.
2795 * opencl-lang.c (opencl_language_data): Likewise.
2796 * p-lang.c (pascal_language_data): Likewise.
2797 * rust-lang.c (rust_language_data): Likewise.
2798 * value.h (default_read_var_value): Delete declaration.
2799
5bd40f2a
AB
28002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2801
2802 * ada-lang.c (ada_print_array_index): Delete function, move
2803 implementation to...
2804 (ada_language::print_array_index): ...here.
2805 (ada_language_data): Delete la_print_array_index initializer.
2806 * c-lang.c (c_language_data): Likewise.
2807 (cplus_language_data): Likewise.
2808 (minimal_language_data): Likewise.
2809 * d-lang.c (d_language_data): Likewise.
2810 * f-lang.c (f_language_data): Likewise.
2811 * go-lang.c (go_language_data): Likewise.
2812 * language.c (default_print_array_index): Delete function, move
2813 implementation to...
2814 (language_defn::print_array_index): ...here.
2815 (unknown_language_data): Delete la_print_array_index initializer.
2816 (auto_language_data): Likewise.
2817 * language.h (struct language_data): Delete la_print_array_index
2818 field.
2819 (language_defn::print_array_index): New member function.
2820 (LA_PRINT_ARRAY_INDEX): Update.
2821 (default_print_array_index): Delete declaration.
2822 * m2-lang.c (m2_language_data): Delete la_print_array_index
2823 initializer.
2824 * objc-lang.c (objc_language_data): Likewise.
2825 * opencl-lang.c (opencl_language_data): Likewise.
2826 * p-lang.c (pascal_language_data): Likewise.
2827 * rust-lang.c (rust_language_data): Likewise.
2828
0874fd07
AB
28292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * gdb/ada-lang.c (ada_language_defn): Convert to...
2832 (ada_language_data): ...this.
2833 (class ada_language): New class.
2834 (ada_language_defn): New static global.
2835 * gdb/c-lang.c (c_language_defn): Convert to...
2836 (c_language_data): ...this.
2837 (class c_language): New class.
2838 (c_language_defn): New static global.
2839 (cplus_language_defn): Convert to...
2840 (cplus_language_data): ...this.
2841 (class cplus_language): New class.
2842 (cplus_language_defn): New static global.
2843 (asm_language_defn): Convert to...
2844 (asm_language_data): ...this.
2845 (class asm_language): New class.
2846 (asm_language_defn): New static global.
2847 (minimal_language_defn): Convert to...
2848 (minimal_language_data): ...this.
2849 (class minimal_language): New class.
2850 (minimal_language_defn): New static global.
2851 * gdb/d-lang.c (d_language_defn): Convert to...
2852 (d_language_data): ...this.
2853 (class d_language): New class.
2854 (d_language_defn): New static global.
2855 * gdb/f-lang.c (f_language_defn): Convert to...
2856 (f_language_data): ...this.
2857 (class f_language): New class.
2858 (f_language_defn): New static global.
2859 * gdb/go-lang.c (go_language_defn): Convert to...
2860 (go_language_data): ...this.
2861 (class go_language): New class.
2862 (go_language_defn): New static global.
2863 * gdb/language.c (unknown_language_defn): Remove declaration.
2864 (current_language): Initialize to nullptr, real initialization is
2865 moved to _initialize_language.
2866 (languages): Delete global.
2867 (language_defn::languages): Define.
2868 (set_language_command): Use language_defn::languages.
2869 (set_language): Likewise.
2870 (range_error): Likewise.
2871 (language_enum): Likewise.
2872 (language_def): Likewise.
2873 (add_set_language_command): Use language_def::languages for the
2874 language list, and language_def to lookup language pointers.
2875 (skip_language_trampoline): Use language_defn::languages.
2876 (unknown_language_defn): Convert to...
2877 (unknown_language_data): ...this.
2878 (class unknown_language): New class.
2879 (unknown_language_defn): New static global.
2880 (auto_language_defn): Convert to...
2881 (auto_language_data): ...this.
2882 (class auto_language): New class.
2883 (auto_language_defn): New static global.
2884 (language_gdbarch_post_init): Use language_defn::languages.
2885 (_initialize_language): Initialize current_language.
2886 * gdb/language.h (struct language_defn): Rename to...
2887 (struct language_data): ...this.
2888 (struct language_defn): New.
2889 (auto_language_defn): Delete.
2890 (unknown_language_defn): Delete.
2891 (minimal_language_defn): Delete.
2892 (ada_language_defn): Delete.
2893 (asm_language_defn): Delete.
2894 (c_language_defn): Delete.
2895 (cplus_language_defn): Delete.
2896 (d_language_defn): Delete.
2897 (f_language_defn): Delete.
2898 (go_language_defn): Delete.
2899 (m2_language_defn): Delete.
2900 (objc_language_defn): Delete.
2901 (opencl_language_defn): Delete.
2902 (pascal_language_defn): Delete.
2903 (rust_language_defn): Delete.
2904 * gdb/m2-lang.c (m2_language_defn): Convert to...
2905 (m2_language_data): ...this.
2906 (class m2_language): New class.
2907 (m2_language_defn): New static global.
2908 * gdb/objc-lang.c (objc_language_defn): Convert to...
2909 (objc_language_data): ...this.
2910 (class objc_language): New class.
2911 (objc_language_defn): New static global.
2912 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2913 (opencl_language_data): ...this.
2914 (class opencl_language): New class.
2915 (opencl_language_defn): New static global.
2916 * gdb/p-lang.c (pascal_language_defn): Convert to...
2917 (pascal_language_data): ...this.
2918 (class pascal_language): New class.
2919 (pascal_language_defn): New static global.
2920 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2921 language pointer, update comment format.
2922 * gdb/rust-lang.c (rust_language_defn): Convert to...
2923 (rust_language_data): ...this.
2924 (class rust_language): New class.
2925 (rust_language_defn): New static global.
2926
1313c56e
AB
29272020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2928
2929 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2930 member variable.
2931 <m_stmt_at_address>: New member variable.
2932 (lnp_state_machine::record_line): Don't record some lines, update
2933 tracking of is_stmt at the same address.
2934 (lnp_state_machine::lnp_state_machine): Initialise new member
2935 variables.
2936
b7ed9f3d
ST
29372020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2938
2939 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2940 "-include gnu-nat-mig.h".
2941 * gnu-nat-mig.h: New file.
2942 * gnu-nat.c: Include "gnu-nat-mig.h".
2943 (exc_server, msg_reply_server, notify_server,
2944 process_reply_server): Remove declarations.
2945
14a8ad62
ST
29462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2947
2948 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2949 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2950 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2951 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2952 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2953 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2954 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2955 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2956 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2957 to gnu_nat_target class.
2958 * gnu-nat.c: Likewise.
2959 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2960 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2961 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2962 object.
2963 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2964 instead of `gnu_target'.
2965
0af5e106
ST
29662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2967
2968 * i386-gnu-tdep.c: Include "gdbcore.h"
2969 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2970 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2971 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2972 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2973 i386_gnu_sigcontext_addr): New functions
2974 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2975 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2976 tdep.
2977
078f2fc9
ST
29782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2979
2980 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2981 before fork_inferior call. Avoid calling it if target_is_pushed returns
2982 true.
2983
53dff92c
ST
29842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2985
2986 * gnu-nat.h (gnu_target): New variable declaration.
2987 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2988 gnu_target.
2989 * gnu-nat.c (gnu_target): New variable.
2990 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2991 add_thread_silent, and add_thread calls.
2992 (gnu_nat_target::create_inferior): Pass gnu_target to
2993 add_thread_silent, thread_change_ptid call.
2994 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2995 call.
2996
5a8b8627
ST
29972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2998
2999 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3000 (gnu_nat_target::find_memory_regions): Remove unused
3001 `old_address' variable.
3002
366f550a
ST
30032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3004
3005 * gnu-nat.c: Include "gdbarch.h".
3006
f14871bf
ST
30072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3008
3009 * reply_mig_hack.awk (Error return): Cast function through
3010 void *, to bypass compiler function call check.
3011
c6887cfb
ST
30122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3013
3014 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3015 $(srcdir)/reply_mig_hack.awk.
3016
6930bffe
ST
30172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3018
3019 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3020
112c22ed
JG
30212020-05-30 Jonny Grant <jg@jguk.org>
3022
3023 * configure.ac (ACX_BUGURL): change bug URL to https.
3024
f68f85b5
PA
30252020-05-30 Pedro Alves <palves@redhat.com>
3026
3027 * cp-support.c (replace_typedefs_template): New.
3028 (replace_typedefs_qualified_name): Handle
3029 DEMANGLE_COMPONENT_TEMPLATE.
3030
976ca316
SM
30312020-05-29 Simon Marchi <simon.marchi@efficios.com>
3032
3033 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3034 dwarf2/index-cache.h, dwarf2/index-write.c,
3035 dwarf2/index-write.h, dwarf2/line-header.c,
3036 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3037 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3038 variables and fields from `dwarf2_per_objfile` to just
3039 `per_objfile` throughout.
3040
989ade05
SM
30412020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3042
3043 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3044 <push_dwarf_reg_entry_value>: Add comment.
3045
c47bae85
KB
30462020-05-28 Kevin Buettner <kevinb@redhat.com>
3047 Keith Seitz <keiths@redhat.com>
3048
3049 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3050 instead of PyEval_ReleaseLock.
3051 (class gdbpy_gil): Move to earlier in file.
3052 (finalize_python): Set gdb_python_initialized.
3053 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3054 when not initialized.
3055
44486dcf
SM
30562020-05-28 Simon Marchi <simon.marchi@efficios.com>
3057
3058 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3059 <push_dwarf_reg_entry_value>: Remove assert. Override
3060 per_objfile with caller_per_objfile.
3061
f030440d
TV
30622020-05-28 Tom de Vries <tdevries@suse.de>
3063
3064 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3065 PR gold/15646 workaround to symbol kind "type".
3066
f0fbb768
TT
30672020-05-27 Tom Tromey <tromey@adacore.com>
3068
3069 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3070
af0b2a3e
TT
30712020-05-27 Tom Tromey <tromey@adacore.com>
3072
3073 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3074 Use htab_find_with_hash.
3075 <add_abbrev>: Remove "abbrev_number" parameter.
3076 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3077 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3078 (hash_abbrev): Add comment.
3079 (abbrev_table::lookup_abbrev): Move to header file.
3080 (abbrev_table::read): Update.
3081
7d00ffec
TT
30822020-05-27 Tom Tromey <tromey@adacore.com>
3083
3084 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3085 method.
3086 <canonical_name>: New member.
3087 <raw_name>: Rename from "name".
3088 (partial_die_info): Initialize canonical_name.
3089 (scan_partial_symbols): Check raw_name.
3090 (partial_die_parent_scope, partial_die_full_name)
3091 (add_partial_symbol, add_partial_subprogram)
3092 (add_partial_enumeration, load_partial_dies): Use "name" method.
3093 (partial_die_info::name): New method.
3094 (partial_die_info::read, guess_partial_die_structure_name)
3095 (partial_die_info::fixup): Update.
3096
697bba18
TT
30972020-05-27 Tom Tromey <tromey@adacore.com>
3098
3099 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3100 <get_ref_die_offset>: Inline.
3101 <get_ref_die_offset_complaint>: New method.
3102 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3103 (attribute::get_ref_die_offset_complaint): Rename from
3104 get_ref_die_offset. Just issue complaint.
3105
c17ace43
HD
31062020-05-27 Hannes Domani <ssbssa@yahoo.de>
3107
3108 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3109
96445f0b
HD
31102020-05-27 Hannes Domani <ssbssa@yahoo.de>
3111
3112 * exec.c (exec_file_attach): Use errno value of first openp failure.
3113
ac637ec3
HD
31142020-05-27 Hannes Domani <ssbssa@yahoo.de>
3115
3116 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3117 Don't close thread handle.
3118
17ee85fc
TT
31192020-05-27 Tom Tromey <tom@tromey.com>
3120 Simon Marchi <simon.marchi@efficios.com>
3121
3122 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3123 shared_ptr.
3124 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3125 member.
3126 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3127 dwarf2_per_bfd_objfile_data_key>: New globals.
3128 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3129 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3130 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3131 shared.
3132 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3133 short-circuit when sharing.
3134 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3135 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3136
39b16f87
SM
31372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3138
3139 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3140 to...
3141 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3142 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3143
fcf23d5b
SM
31442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3145
3146 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3147 build_name_components, find_name_components_bounds>:
3148 Add per_objfile parameter.
3149 (struct mapped_index) <symbol_name_at>: Likewise.
3150 (struct mapped_debug_names): Remove constructor.
3151 <dwarf2_per_objfile>: Remove field.
3152 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3153 (mapped_index_base::find_name_components_bounds,
3154 mapped_index_base::build_name_components,
3155 dw2_expand_symtabs_matching_symbol): Likewise.
3156 (class mock_mapped_index) <symbol_name_at>: Likewise.
3157 (check_match): Likewise.
3158 (check_find_bounds_finds): Likewise.
3159 (test_mapped_index_find_name_component_bounds): Update.
3160 (CHECK_MATCH): Update.
3161 (dw2_expand_symtabs_matching): Update.
3162 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3163 per_objfile parameter.
3164 <find_vec_in_debug_names>: Likewise.
3165 <m_per_objfile>: New field.
3166 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3167 parameter.
3168 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3169 (dw2_debug_names_iterator::next): Update.
3170 (dw2_debug_names_lookup_symbol): Update.
3171 (dw2_debug_names_expand_symtabs_for_function): Update.
3172 (dw2_debug_names_map_matching_symbols): Update.
3173 (dw2_debug_names_expand_symtabs_matching): Update.
3174 (dwarf2_read_debug_names): Update.
3175
7188ed02
SM
31762020-05-27 Simon Marchi <simon.marchi@efficios.com>
3177
3178 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3179 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3180 move to dwarf2_per_objfile.
3181 <read_in_chain>: Remove.
3182 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3183 remove_all_cus, age_comp_units>: New methods.
3184 <m_dwarf2_cus>: New member.
3185 (struct dwarf2_per_cu_data) <cu>: Remove.
3186 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3187 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3188 moved to methods of dwarf2_per_objfile.
3189 (dwarf2_clear_marks): Remove.
3190 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3191 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3192 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3193 (dwarf2_per_objfile::remove_all_cus): New.
3194 (class free_cached_comp_units) <~free_cached_comp_units>:
3195 Update.
3196 (load_cu): Update.
3197 (dw2_do_instantiate_symtab): Adjust.
3198 (fill_in_sig_entry_from_dwo_entry): Adjust.
3199 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3200 (cutu_reader::cutu_reader): Likewise.
3201 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3202 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3203 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3204 and dwarf2_per_objfile::age_comp_units.
3205 (load_partial_comp_unit): Update.
3206 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3207 (process_queue): Likewise.
3208 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3209 backlink.
3210 (dwarf2_read_addr_index): Likewise.
3211 (follow_die_offset): Likewise.
3212 (dwarf2_fetch_die_loc_sect_off): Likewise.
3213 (dwarf2_fetch_constant_bytes): Likewise.
3214 (dwarf2_fetch_die_type_sect_off): Likewise.
3215 (follow_die_sig_1): Likewise.
3216 (load_full_type_unit): Likewise.
3217 (read_signatured_type): Likewise.
3218 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3219 (dwarf2_cu::~dwarf2_cu): Remove.
3220 (dwarf2_per_objfile::get_cu): New.
3221 (dwarf2_per_objfile::set_cu): New.
3222 (age_cached_comp_units): Rename to...
3223 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3224 to std::unordered_map.
3225 (free_one_cached_comp_unit): Rename to...
3226 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3227 to std::unordered_map.
3228 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3229 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3230 a dwarf2_per_objfile in data.
3231 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3232 (dwarf2_clear_marks): Remove.
3233
2e671100
SM
32342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3235
3236 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3237 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3238 (init_tu_and_read_dwo_dies): Likewise.
3239 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3240 (cutu_reader::cutu_reader): Likewise.
3241 (load_partial_comp_unit): Likewise.
3242 (process_psymtab_comp_unit): Update.
3243 (build_type_psymtabs_1): Update.
3244 (process_skeletonless_type_unit): Update.
3245 (load_full_comp_unit): Update.
3246 (find_partial_die): Update.
3247 (dwarf2_read_addr_index): Update.
3248 (read_signatured_type): Update.
3249
2e6a9f79
SM
32502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3251
3252 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3253 m_header_read_in>: New fields.
3254 <get_header>: New method.
3255 * dwarf2/read.c (per_cu_header_read_in): Remove.
3256 (dwarf2_per_cu_data::get_header): New.
3257 (dwarf2_per_cu_data::addr_size): Update.
3258 (dwarf2_per_cu_data::offset_size): Update.
3259 (dwarf2_per_cu_data::ref_addr_size): Update.
3260
1b555f17
SM
32612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3262
3263 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3264 (dw2_do_instantiate_symtab): Update.
3265 (queue_and_load_all_dwo_tus): Change parameter from
3266 dwarf2_per_cu_data to dwarf2_cu.
3267 (dwarf2_fetch_die_loc_sect_off): Update.
3268 (dwarf2_fetch_constant_bytes): Update.
3269 (dwarf2_fetch_die_type_sect_off): Update.
3270
8fc0b21d
SM
32712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3272
3273 * dwarf2/read.c (process_full_comp_unit,
3274 process_full_type_unit): Remove per_cu, per_objfile paramters.
3275 Add dwarf2_cu parameter.
3276 (process_queue): Update.
3277
168c9250
SM
32782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3279
3280 * dwarf2/read.c (create_cu_from_index_list): Replace
3281 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3282 (create_cus_from_index_list): Likewise.
3283 (create_cus_from_index): Likewise.
3284 (create_signatured_type_table_from_index): Likewise.
3285 (create_cus_from_debug_names_list): Likewise.
3286 (create_cus_from_debug_names): Likewise.
3287 (dwarf2_read_gdb_index): Update.
3288 (dwarf2_read_debug_names): Update.
3289
e286671b
TT
32902020-05-27 Tom Tromey <tom@tromey.com>
3291 Simon Marchi <simon.marchi@efficios.com>
3292
3293 * dwarf2/read.h (struct dwarf2_per_objfile)
3294 <get_type_for_signatured_type, set_type_for_signatured_type>:
3295 New methods.
3296 <m_type_map>: New member.
3297 (struct signatured_type) <type>: Remove.
3298 * dwarf2/read.c
3299 (dwarf2_per_objfile::get_type_for_signatured_type,
3300 dwarf2_per_objfile::set_type_for_signatured_type): New.
3301 (get_signatured_type): Use new methods.
3302
8adb8487
TT
33032020-05-27 Tom Tromey <tom@tromey.com>
3304 Simon Marchi <simon.marchi@efficios.com>
3305
3306 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3307 (struct dwarf2_per_objfile) <type_units>: New member.
3308 <get_type_unit_group_unshareable>: New method.
3309 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3310 num_symtabs, symtabs>: Remove; move to
3311 type_unit_group_unshareable.
3312 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3313 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3314 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3315
127bbf4b
SM
33162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3317
3318 * dwarf2/read.h (struct dwarf2_per_cu_data):
3319 <dwarf2_per_objfile>: Remove.
3320 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3321 dwarf2_per_objfile.
3322 (create_signatured_type_table_from_index): Likewise.
3323 (create_signatured_type_table_from_debug_names): Likewise.
3324 (create_debug_type_hash_table): Likewise.
3325 (fill_in_sig_entry_from_dwo_entry): Likewise.
3326 (create_type_unit_group): Likewise.
3327 (read_comp_units_from_section): Likewise.
3328 (create_cus_hash_table): Likewise.
3329
f6e649dd
SM
33302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3331
3332 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3333 dwarf2_per_cu_data::dwarf2_per_objfile.
3334 (compute_compunit_symtab_includes): Likewise.
3335 (dwarf2_cu::start_symtab): Likewise.
3336
aa66c379
SM
33372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3340 parameter.
3341 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3342 (read_namespace_alias): Update.
3343 (lookup_die_type): Update.
3344 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3345 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3346 Update.
3347 (disassemble_dwarf_expression): Update.
3348
120ce1b5
SM
33492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3350
3351 * dwarf2/read.h (struct dwarf2_queue_item): Add
3352 dwarf2_per_objfile parameter, assign new parameter.
3353 <per_objfile>: New field.
3354 * dwarf2/read.c (free_one_cached_comp_unit): Add
3355 dwarf2_per_objfile parameter.
3356 (queue_comp_unit): Likewise.
3357 (dw2_do_instantiate_symtab): Update.
3358 (process_psymtab_comp_unit): Update.
3359 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3360 (process_imported_unit_die): Update.
3361 (queue_and_load_dwo_tu): Update.
3362 (follow_die_offset): Update.
3363 (follow_die_sig_1): Update.
3364
9f47c707
SM
33652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3366
3367 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3368 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3369 (read_call_site_scope): Assign per_objfile.
3370 (dwarf2_per_cu_data::objfile): Remove.
3371 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3372 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3373 dwarf2_per_objfile parameter.
3374 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3375 dwarf2_per_objfile parameter.
3376 (dwarf_expr_reg_to_entry_parameter): Add output
3377 dwarf2_per_objfile parameter.
3378 (locexpr_get_frame_base): Update.
3379 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3380 <push_dwarf_reg_entry_value>: Update.
3381 <call_site_to_target_addr>: Update.
3382 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3383 parameter.
3384 (value_of_dwarf_reg_entry): Update.
3385 (rw_pieced_value): Update.
3386 (indirect_synthetic_pointer): Update.
3387 (dwarf2_evaluate_property): Update.
3388 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3389 parameter.
3390 (locexpr_read_variable): Update.
3391 (locexpr_get_symbol_read_needs): Update.
3392 (loclist_read_variable): Update.
3393
14095eb3
SM
33942020-05-27 Simon Marchi <simon.marchi@efficios.com>
3395
3396 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3397 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3398 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3399 parameter.
3400 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3401 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3402 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3403 parameter.
3404 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3405 sect_variable_value): Add dwarf2_per_objfile parameter.
3406 (class dwarf_evaluate_loc_desc) <dwarf_call,
3407 dwarf_variable_value>: Update.
3408 (fetch_const_value_from_synthetic_pointer): Add
3409 dwarf2_per_objfile parameter.
3410 (fetch_const_value_from_synthetic_pointer): Update.
3411 (coerced_pieced_ref): Update.
3412 (class symbol_needs_eval_context) <dwarf_call,
3413 dwarf_variable_value>: Update.
3414 (dwarf2_compile_expr_to_ax): Update.
3415
3c3cd3d4
SM
34162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3417
3418 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3419 parameter.
3420 (dwarf2_evaluate_loc_desc_full): Update.
3421
82ca3f51
SM
34222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3423
3424 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3425 parameter.
3426 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3427 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3428 dwarf2_per_objfile parameter.
3429 (decode_debug_loc_dwo_addresses): Likewise.
3430 (dwarf2_find_location_expression): Update.
3431 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3432 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3433 parameter.
3434 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3435 parameter.
3436 (locexpr_describe_location_1): Likewise.
3437 (locexpr_describe_location): Update.
3438
4b167ea1
SM
34392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3442 Remove.
3443 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3444 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3445 (dwarf2_compile_property_to_c): Update.
3446 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3447 use text offset from objfile.
3448 (locexpr_tracepoint_var_ref): Update.
3449 (locexpr_generate_c_location): Update.
3450 (loclist_describe_location): Update.
3451 (loclist_tracepoint_var_ref): Update.
3452 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3453 dwarf2_per_objfile parameter.
3454 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3455 use text offset from objfile.
3456 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3457
89b07335
SM
34582020-05-27 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * dwarf2/expr.h (struct dwarf_expr_context)
3461 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3462 <offset>: Remove.
3463 <per_objfile>: New member.
3464 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3465 dwarf2_per_objfile parameter. Don't set offset, set
3466 per_objfile.
3467 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3468 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3469 a dwarf2_per_objfile object instead of an offset.
3470 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3471 constructor.
3472 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3473 to dwarf2_expr_executor constructor. Don't set offset.
3474 (dwarf2_fetch_cfa_info): Update.
3475 (struct dwarf2_frame_cache) <text_offset>: Remove.
3476 <per_objfile>: New field.
3477 (dwarf2_frame_cache): Update.
3478 (dwarf2_frame_prev_register): Update.
3479 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3480 <dwarf_evaluate_loc_desc>: Add constructor.
3481 (dwarf2_evaluate_loc_desc_full): Update.
3482 (dwarf2_locexpr_baton_eval): Update.
3483 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3484 Add constructor.
3485 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3486
293e7e51
SM
34872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3488
3489 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3490 addr_sized_int_type>: Move to dwarf2_cu.
3491 <int_type>: Move to dwarf2_per_objfile.
3492 (struct dwarf2_per_objfile) <int_type>: Move here.
3493 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3494 addr_sized_int_type>: Move here.
3495 (read_func_scope): Update.
3496 (read_array_type): Update.
3497 (read_tag_string_type): Update.
3498 (attr_to_dynamic_prop): Update.
3499 (dwarf2_per_cu_data::int_type): Rename to...
3500 (dwarf2_per_objfile::int_type): ... this.
3501 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3502 (dwarf2_cu::addr_sized_int_type): ... this.
3503 (read_subrange_type): Update.
3504 (dwarf2_per_cu_data::addr_type): Rename to...
3505 (dwarf2_cu::addr_type): ... this.
3506 (set_die_type): Update.
3507
64874a40
SM
35082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3511 data through per_cu->cu.
3512
4ab09049
SM
35132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3514
3515 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3516 dwarf2_per_cu_data parameter fo dwarf2_cu.
3517 (lookup_dwo_type_unit): Likewise.
3518 (read_cutu_die_from_dwo): Likewise.
3519 (lookup_dwo_unit): Likewise.
3520 (open_and_init_dwo_file): Likewise.
3521 (lookup_dwo_cutu): Likewise.
3522 (lookup_dwo_comp_unit): Likewise.
3523 (lookup_dwo_type_unit): Likewise.
3524 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3525 (cutu_reader::cutu_reader): Update.
3526
47b14e86
SM
35272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3530 parameter.
3531 (process_full_type_unit): Likewise.
3532 (process_queue): Update.
3533
43182c09
SM
35342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * dwarf2/read.c (recursively_compute_inclusions): Add
3537 dwarf2_per_objfile parameter.
3538 (compute_compunit_symtab_includes): Likewise.
3539 (process_cu_includes): Update.
3540
7aa104c4
SM
35412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3542
3543 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3544 parameter.
3545 (create_type_unit_group): Update.
3546 (process_psymtab_comp_unit_reader): Update.
3547 (build_type_psymtabs_reader): Update.
3548
e3beb21d
SM
35492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3550
3551 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3552 object through m_this_cu->cu.
3553
d460f660
SM
35542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3555
3556 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3557 the info parameter.
3558 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3559
ab432490
SM
35602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3561
3562 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3563 per_objfile parameter.
3564 (load_full_type_unit): Add per_objfile parameter.
3565 (read_signatured_type): Likewise.
3566 (load_full_comp_unit): Likewise.
3567 (load_cu): Likewise.
3568 (dw2_do_instantiate_symtab): Likewise.
3569 (dw2_get_file_names): Likewise.
3570 (dw2_map_symtabs_matching_filename): Update.
3571 (dw_expand_symtabs_matching_file_matcher): Update.
3572 (dw2_map_symbol_filenames): Update.
3573 (process_psymtab_comp_unit): Add per_objfile parameter.
3574 (build_type_psymtabs_1): Update.
3575 (process_skeletonless_type_unit): Update.
3576 (dwarf2_build_psymtabs_hard): Update.
3577 (load_partial_comp_unit): Add per_objfile parameter.
3578 (scan_partial_symbols): Update.
3579 (load_full_comp_unit): Add per_objfile parameter.
3580 (process_imported_unit_die): Update.
3581 (create_cus_hash_table): Update.
3582 (find_partial_die): Update.
3583 (dwarf2_read_addr_index): Update.
3584 (follow_die_offset): Update.
3585 (dwarf2_fetch_die_loc_sect_off): Update.
3586 (dwarf2_fetch_constant_bytes): Update.
3587 (dwarf2_fetch_die_type_sect_off): Update.
3588 (follow_die_sig_1): Update.
3589 (load_full_type_unit): Add per_objfile parameter.
3590 (read_signatured_type): Likewise.
3591
313bad1b
SM
35922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3593
3594 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3595 of objfile_name.
3596
c3699833
SM
35972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3598
3599 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3600 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3601 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3602 field.
3603 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3604 (create_cus_from_index): Update.
3605 (dwarf2_read_gdb_index): Update.
3606 (create_cus_from_debug_names): Update.
3607 (dwarf2_read_debug_names): Update.
3608 (get_abbrev_section_for_cu): Update.
3609 (create_all_comp_units): Update.
3610 (read_attribute_value): Update.
3611 (get_debug_line_section): Update.
3612 * dwarf2/index-cache.c (index_cache::store): Update.
3613 * dwarf2/index-write.c (save_gdb_index_command): Update.
3614 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3615
1859c670
SM
36162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3617
3618 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3619 member.
3620 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3621 dwarf2_per_cu_data::per_bfd.
3622 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3623 (create_type_unit_group): Likewise.
3624 (queue_comp_unit): Remove reference to
3625 per_cu->dwarf2_per_objfile.
3626 (maybe_queue_comp_unit): Likewise.
3627 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3628 (create_cus_hash_table): Assign new field.
3629
5e22e966
SM
36302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3631
3632 * dwarf2/read.c: Replace
3633 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3634 dwarf2_cu->per_objfile throughout.
3635
97a1449a
SM
36362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3637
3638 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3639 parameter, don't use per_cu->dwarf2_per_objfile.
3640 (dw2_instantiate_symtab): Likewise.
3641 (dw2_find_last_source_symtab): Update.
3642 (dw2_map_expand_apply): Update.
3643 (dw2_lookup_symbol): Update.
3644 (dw2_expand_symtabs_for_function): Update.
3645 (dw2_expand_all_symtabs): Update.
3646 (dw2_expand_symtabs_with_fullname): Update.
3647 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3648 don't use per_cu->dwarf2_per_objfile.
3649 (dw2_expand_marked_cus): Update.
3650 (dw2_find_pc_sect_compunit_symtab): Update.
3651 (dw2_debug_names_lookup_symbol): Update.
3652 (dw2_debug_names_expand_symtabs_for_function): Update.
3653 (dw2_debug_names_map_matching_symbols): Update.
3654 (dwarf2_psymtab::expand_psymtab): Update.
3655
9e021579
SM
36562020-05-27 Simon Marchi <simon.marchi@efficios.com>
3657
3658 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3659 <per_objfile>: New member.
3660 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3661 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3662 call to dwarf2_cu.
3663 (cutu_reader::cutu_reader): Update.
3664 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3665
ae090bdb
SM
36662020-05-27 Simon Marchi <simon.marchi@efficios.com>
3667
3668 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3669 struct dwarf2_per_objfile.
3670 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3671 dwarf2_per_bfd.
3672 * dwarf2/read.c (set_die_type): Update.
3673 (get_die_type_at_offset): Update.
3674
af758d11
SM
36752020-05-27 Tom Tromey <tom@tromey.com>
3676 Simon Marchi <simon.marchi@efficios.com>
3677
3678 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3679 method.
3680 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3681 get_symtab, set_symtab>: New methods.
3682 <m_symtabs>: New field.
3683 (struct dwarf2_psymtab): Derive from partial_symtab.
3684 <readin_p, get_compunit_symtab>: Declare methods.
3685 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3686 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3687 New methods.
3688 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3689 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3690 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3691 (dw2_symtab_iter_next, dw2_print_stats)
3692 (dw2_expand_symtabs_with_fullname)
3693 (dw2_expand_symtabs_matching_one)
3694 (dw_expand_symtabs_matching_file_matcher)
3695 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3696 (dw2_debug_names_iterator::next)
3697 (dw2_debug_names_map_matching_symbols)
3698 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3699 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3700 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3701 New methods.
3702 (get_compunit_symtab, process_full_comp_unit)
3703 (process_full_type_unit): Update.
3704 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3705
5989a64e
SM
37062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3707
3708 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3709 then introduce a new dwarf2_per_objfile type.
3710 <read_line_string>: Move to the new dwarf2_per_objfile type.
3711 <objfile>: Likewise.
3712 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3713 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3714 dwarf2_per_objfile->per_bfd.
3715 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3716 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3717 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3718 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3719 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3720 (dwarf2_per_objfile::locate_sections): Rename to...
3721 (dwarf2_per_bfd::locate_sections): ... this.
3722 (dwarf2_per_objfile::get_cutu): Rename to...
3723 (dwarf2_per_bfd::get_cutu): ... this.
3724 (dwarf2_per_objfile::get_cu): Rename to...
3725 (dwarf2_per_bfd::get_cu): ... this.
3726 (dwarf2_per_objfile::get_tu): Rename to...
3727 (dwarf2_per_bfd::get_tu): ... this.
3728 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3729 (dwarf2_per_bfd::allocate_per_cu): ... this.
3730 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3731 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3732 (get_gdb_index_contents_ftype): Change parameter from
3733 dwarf2_per_objfile to dwarf2_per_bfd.
3734 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3735 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3736
a50264ba
TT
37372020-05-27 Tom Tromey <tom@tromey.com>
3738 Simon Marchi <simon.marchi@efficios.com>
3739
3740 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3741 (allocate_piece_closure): Set "per_objfile" member.
3742 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3743 (locexpr_describe_location, loclist_describe_location): Use new
3744 member.
3745 * dwarf2/read.c (read_call_site_scope)
3746 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3747 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3748 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3749 handle_data_member_location): Set per_objfile member.
3750 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3751 member.
3752 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3753
d3473f0c
TT
37542020-05-27 Tom Tromey <tom@tromey.com>
3755
3756 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3757 allocate_signatured_type>: Declare new methods.
3758 <m_num_psymtabs>: New member.
3759 (struct dwarf2_per_cu_data) <index>: New member.
3760 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3761 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3762 (create_cu_from_index_list): Use allocate_per_cu.
3763 (create_signatured_type_table_from_index)
3764 (create_signatured_type_table_from_debug_names)
3765 (create_debug_type_hash_table, add_type_unit)
3766 (read_comp_units_from_section): Use allocate_signatured_type.
3767
5717c425
TT
37682020-05-27 Tom Tromey <tom@tromey.com>
3769
3770 * psymtab.c (partial_map_expand_apply)
3771 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3772 (psym_lookup_global_symbol_language)
3773 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3774 (psym_print_stats, psym_expand_symtabs_for_function)
3775 (psym_map_symbol_filenames, psym_map_matching_symbols)
3776 (psym_expand_symtabs_matching)
3777 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3778 (maintenance_check_psymtabs): Update.
3779 * psympriv.h (struct partial_symtab) <readin_p,
3780 get_compunit_symtab>: Add objfile parameter.
3781 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3782 Likewise.
3783 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3784 get_compunit_symtab>: Likewise.
3785 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3786
45940949
TT
37872020-05-27 Tom Tromey <tom@tromey.com>
3788
3789 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3790 member.
3791 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3792 (create_cu_from_index_list)
3793 (create_signatured_type_table_from_index)
3794 (create_signatured_type_table_from_debug_names)
3795 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3796 (dwarf2_create_include_psymtab)
3797 (create_debug_type_hash_table, add_type_unit)
3798 (create_type_unit_group, read_comp_units_from_section)
3799 (dwarf2_compute_name, create_cus_hash_table)
3800 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3801 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3802 obstack.
3803 (dw2_get_real_path): Likewise. Change argument to
3804 dwarf2_per_objfile.
3805
f8c6d152
LM
38062020-05-27 Luis Machado <luis.machado@linaro.org>
3807
3808 PR tdep/26000
3809 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3810 for ldrd (immediate).
3811
e98d2e6d
PW
38122020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3813
3814 * command.h: Add comment giving the name of class_tui.
3815 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3816 create the fake command for the help for class_tui.
3817
53a47a3e
TT
38182020-05-26 Tom Tromey <tromey@adacore.com>
3819
3820 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3821 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3822 (val_atr): New function.
3823 (value_val_atr): Use it.
3824 * ada-valprint.c (print_optional_low_bound): Change low bound
3825 handling for enums.
3826 (val_print_packed_array_elements): Don't call discrete_position.
3827 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3828 discrete_position for enum types.
3829 * language.c (default_print_array_index): Change type.
3830 * language.h (struct language_defn) <la_print_array_index>: Add
3831 index_type parameter, change type of index_value.
3832 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3833 (default_print_array_index): Update.
3834 * valprint.c (maybe_print_array_index): Don't call
3835 value_from_longest. Update.
3836 (value_print_array_elements): Don't call discrete_position.
3837
0bc2354b
TT
38382020-05-26 Tom Tromey <tromey@adacore.com>
3839
3840 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3841 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3842
1218a4bf
CDA
38432020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3844
3845 PR gdb/13519
3846 * avr-tdep.c (avr_integer_to_address): Return data or code
3847 address accordingly to the second 'type' argument of the
3848 function.
3849
92651b1d
MW
38502020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3851
3852 * infcmd.c, inferior.h: (construct_inferior_arguments):
3853 Moved function from here to gdbsupport/common-inferior.{h,cc}
3854
0a4f5f8c
TT
38552020-05-23 Tom Tromey <tom@tromey.com>
3856
3857 Revert commit eca1f90c:
3858 * NEWS: Remove entry for completion styling.
3859 * completer.c (_rl_completion_prefix_display_length): Move
3860 declaration later.
3861 (gdb_fnprint): Revert.
3862 (gdb_display_match_list_1): Likewise.
3863 * cli/cli-style.c (completion_prefix_style)
3864 (completion_difference_style, completion_suffix_style): Remove.
3865 (_initialize_cli_style): Revert.
3866 * cli/cli-style.h (completion_prefix_style)
3867 (completion_difference_style, completion_suffix_style): Don't
3868 declare.
3869
e08bd6c5
PA
38702020-05-24 Pedro Alves <palves@redhat.com>
3871
3872 * symtab.c (completion_list_add_name): Return boolean indication
3873 of whether the symbol matched.
3874 (completion_list_add_symbol): Don't try to remove C++ aliases if
3875 the symbol didn't match in the first place.
3876 * symtab.h (completion_list_add_name): Return bool.
3877
ceacbf6e
SM
38782020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3879
3880 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3881 type::field.
3882
26f16254
JB
38832020-05-23 Joel Brobecker <brobecker@adacore.com>
3884
3885 GDB 9.2 released.
3886
eca1f90c
TT
38872020-05-23 Tom Tromey <tom@tromey.com>
3888
3889 * NEWS: Add entry for completion styling.
3890 * completer.c (_rl_completion_prefix_display_length): Move
3891 declaration earlier.
3892 (gdb_fnprint): Use completion_style.
3893 (gdb_display_match_list_1): Likewise.
3894 * cli/cli-style.c (completion_prefix_style)
3895 (completion_difference_style, completion_suffix_style): New
3896 globals.
3897 (_initialize_cli_style): Register new globals.
3898 * cli/cli-style.h (completion_prefix_style)
3899 (completion_difference_style, completion_suffix_style): Declare.
3900
51e2cfa2
PA
39012020-05-23 Pedro Alves <palves@redhat.com>
3902
3903 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3904 (parse_escape): Use ISDIGIT instead of isdigit.
3905 (puts_debug): Use gdb_isprint instead of isprint.
3906 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3907 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3908 ISSPACE instead of isspace.
3909 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3910 instead of isspace.
3911 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3912 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3913 instead of isxdigit and ISDIGIT instead of isdigit.
3914
80fc5e77
SM
39152020-05-22 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * gdbtypes.h (struct type) <field>: New method.
3918 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3919 or type::field.
3920
3cabb6b0
SM
39212020-05-22 Simon Marchi <simon.marchi@efficios.com>
3922
3923 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3924 (TYPE_FIELDS): Use type::fields. Change all call sites that
3925 modify the propery to use type::set_fields instead.
3926
1f704f76
SM
39272020-05-22 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3930 type::num_fields instead.
3931
5e33d5f4
SM
39322020-05-22 Simon Marchi <simon.marchi@efficios.com>
3933
3934 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3935 methods.
3936 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3937 that modify the number of fields to use type::set_num_fields
3938 instead.
3939
9392ebb3
TT
39402020-05-22 Tom Tromey <tromey@adacore.com>
3941
3942 * compile/compile-object-load.h (munmap_list_free): Don't
3943 declare.
3944
7c13f4e8
AB
39452020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * annotate.c (annotate_source_line): Update return type, add call
3948 to update current symtab and line.
3949 * annotate.h (annotate_source_line): Update return type, and
3950 extend header comment.
3951 * source.c (info_line_command): Check annotation_level before
3952 calling annotate_source_line.
3953 * stack.c (print_frame_info): If calling annotate_source_line
3954 returns true, then don't print any other source line information.
3955
aa370940
SM
39562020-05-21 Simon Marchi <simon.marchi@efficios.com>
3957
3958 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3959
84d53fa9
SM
39602020-05-21 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * coffread.c (patch_type): Remove NULL check before xfree.
3963 * corefile.c (set_gnutarget): Likewise.
3964 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3965 * exec.c (build_section_table): Likewise.
3966 * remote.c (remote_target::pass_signals): Likewise.
3967 * utils.c (n_spaces): Likewise.
3968 * cli/cli-script.c (document_command): Likewise.
3969 * i386-windows-tdep.c (core_process_module_section): Likewise.
3970 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3971
9d428aae
SM
39722020-05-20 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * symfile.c (reread_symbols): Clear objfile's section_offsets
3975 vector and section indices, re-compute them by calling
3976 sym_offsets.
3977
250106a7
TT
39782020-05-20 Tom Tromey <tromey@adacore.com>
3979
3980 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3981 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3982
9a0bacfb
TV
39832020-05-20 Tom de Vries <tdevries@suse.de>
3984
3985 PR symtab/25833
3986 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3987
7b958a48
AM
39882020-05-20 Alan Modra <amodra@gmail.com>
3989
3990 PR 25993
3991 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3992 bfd_set_filename.
3993 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3994 passed to bfd_set_filename.
3995 * symfile-mem.c (add_vsyscall_page): Likewise for string
3996 passed to symbol_file_add_from_memory.
3997 (symbol_file_add_from_memory): Make name param a const char* and
3998 don't strdup.
3999
c7e97679
AM
40002020-05-20 Alan Modra <amodra@gmail.com>
4001
4002 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4003 rather than accessing bfd->filename directly.
4004 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4005 and use bfd_section_name.
4006 * dwarf2/frame.c (decode_frame_entry): Likewise.
4007 * exec.c (exec_set_section_address): Likewise.
4008 * solib-aix.c (solib_aix_bfd_open): Likewise.
4009 * stap-probe.c (get_stap_base_address): Likewise.
4010 * symfile.c (reread_symbols): Likewise.
4011
563c591b
TT
40122020-05-19 Tom Tromey <tromey@adacore.com>
4013
4014 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4015
f408d82c
SM
40162020-05-19 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4019
98c59b52
PA
40202020-05-19 Pedro Alves <palves@redhat.com>
4021
4022 * NEWS (set exec-file-mismatch): Adjust entry.
4023 * exec.c: Include "build-id.h".
4024 (validate_exec_file): Try to match build IDs instead of filenames.
4025 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4026 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4027 and pass down 'warn_if_slow'.
4028 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4029 gdb_bfd_open_closure to pass it down.
4030 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4031
4111f652
PA
40322020-05-19 Pedro Alves <palves@redhat.com>
4033
4034 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4035 * target.c (target_fileio_open_1): Rename to target_fileio_open
4036 and make extern. Use bool.
4037 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4038 (target_fileio_read_alloc_1): Adjust.
4039 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4040 (target_fileio_open_warn_if_slow): Delete declaration.
4041
ad80db5b
PA
40422020-05-19 Pedro Alves <palves@redhat.com>
4043
4044 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4045 Adjust all callers.
4046
1d6ce4d3
YS
40472020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4048
4049 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4050 whether disp is negative.
4051
9005fbbb
SM
40522020-05-19 Simon Marchi <simon.marchi@efficios.com>
4053
4054 * symfile.h (struct symfile_segment_data)
4055 <~symfile_segment_data>: Remove.
4056 <segment_info>: Change to std::vector.
4057 * symfile.c (default_symfile_segments): Update.
4058 * elfread.c (elf_symfile_segments): Update.
4059
68b888ff
SM
40602020-05-19 Simon Marchi <simon.marchi@efficios.com>
4061
4062 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4063 <segments>: New.
4064 <segment_bases, segment_sizes>: Remove.
4065 * symfile.c (default_symfile_segments): Update.
4066 * elfread.c (elf_symfile_segments): Update.
4067 * remote.c (remote_target::get_offsets): Update.
4068 * solib-target.c (solib_target_relocate_section_addresses):
4069 Update.
4070
62982abd
SM
40712020-05-19 Simon Marchi <simon.marchi@efficios.com>
4072
4073 * symfile.h (struct symfile_segment_data): Initialize fields.
4074 <~symfile_segment_data>: Add.
4075 (symfile_segment_data_up): New.
4076 (struct sym_fns) <sym_segments>: Return a
4077 symfile_segment_data_up.
4078 (default_symfile_segments): Return a symfile_segment_data_up.
4079 (free_symfile_segment_data): Remove.
4080 (get_symfile_segment_data): Return a symfile_segment_data_up.
4081 * symfile.c (default_symfile_segments): Likewise.
4082 (get_symfile_segment_data): Likewise.
4083 (free_symfile_segment_data): Remove.
4084 (symfile_find_segment_sections): Update.
4085 * elfread.c (elf_symfile_segments): Return a
4086 symfile_segment_data_up.
4087 * remote.c (remote_target::get_offsets): Update.
4088 * solib-target.c (solib_target_relocate_section_addresses):
4089 Update.
4090 * symfile-debug.c (debug_sym_segments): Return a
4091 symfile_segment_data_up.
4092
7f204339
RO
40932020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4094
e52a0f1b
RO
4095 PR build/25981
4096 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4097 Hardcode register numbers.
4098
7f204339
RO
4099 PR build/25981
4100 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4101 procfs_find_LDT_entry): Remove.
4102 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4103 procfs_find_LDT_entry): Remove.
4104 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4105 Remove.
4106
7f32a4d5
PA
41072020-05-17 Pedro Alves <palves@redhat.com>
4108 Andrew Burgess <andrew.burgess@embecosm.com>
4109 Keno Fischer <keno@juliacomputing.com>
4110
4111 PR gdb/25741
4112 * breakpoint.c (build_target_condition_list): Update comments.
4113 (build_target_command_list): Update comments and skip matching
4114 locations.
4115 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4116 a separate function. Simplify "set breakpoint auto-hw off"
4117 handling.
4118 (insert_breakpoints): Update comment.
4119 (tracepoint_locations_match): New parameter. For breakpoints,
4120 compare location types too, if the caller wants to.
4121 (handle_automatic_hardware_breakpoints): New functions.
4122 (bp_location_is_less_than): Also sort by location type and
4123 hardware breakpoint length.
4124 (update_global_location_list): Handle "set breakpoint auto-hw on"
4125 here.
4126 (update_breakpoint_locations): Ask breakpoint_locations_match to
4127 ignore location types.
4128
7d93a1e0
SM
41292020-05-16 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4132 type::name instead.
4133
d0e39ea2
SM
41342020-05-16 Simon Marchi <simon.marchi@efficios.com>
4135
4136 * gdbtypes.h (struct type) <name, set_name>: New methods.
4137 (TYPE_CODE): Use type::name. Change all call sites used to set
4138 the name to use type::set_name instead.
4139
2dab0c7b
TT
41402020-05-16 Tom Tromey <tom@tromey.com>
4141
4142 * top.c (quit_force): Update.
4143 * infrun.c (handle_no_resumed): Update.
4144 * top.h (all_uis): New function.
4145 (ALL_UIS): Remove.
4146
59f7bd8d
SM
41472020-05-16 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4150
9bf058f0
PA
41512020-05-16 Pedro Alves <palves@redhat.com>
4152
4153 * ia64-linux-nat.c
4154 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4155 Declare method.
4156 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4157
8f86ae1a
SM
41582020-05-15 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4161 (sparc64_adi_info): Likewise.
4162
d6bc0792
TT
41632020-05-15 Tom Tromey <tom@tromey.com>
4164
4165 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4166 block_objfile.
4167 (lookup_objfile_from_block): Remove.
4168 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4169 (lookup_global_symbol): Use block_objfile.
4170 * symtab.h (lookup_objfile_from_block): Don't declare.
4171 * printcmd.c (clear_dangling_display_expressions): Use
4172 block_objfile.
4173 * parse.c (operator_check_standard): Use block_objfile.
4174
8c14c3a3
TT
41752020-05-15 Tom Tromey <tom@tromey.com>
4176
4177 * language.c (language_alloc_type_symbol): Set
4178 SYMBOL_SECTION.
4179 * symtab.c (initialize_objfile_symbol): Remove.
4180 (allocate_symbol): Remove.
4181 (allocate_template_symbol): Remove.
4182 * dwarf2/read.c (fixup_go_packaging): Use "new".
4183 (new_symbol): Use "new".
4184 (read_variable): Don't call initialize_objfile_symbol. Use
4185 "new".
4186 (read_func_scope): Use "new".
4187 * xcoffread.c (process_xcoff_symbol): Don't call
4188 initialize_objfile_symbol.
4189 (SYMBOL_DUP): Remove.
4190 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4191 "new".
4192 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4193 (allocate_template_symbol): Don't declare.
4194 (struct symbol): Add copy constructor. Change defaults.
4195 * jit.c (finalize_symtab): Use "new".
4196 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4197 Use "new".
4198 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4199 (common_block_end): Use "new".
4200 * mdebugread.c (parse_symbol): Use "new".
4201 (new_symbol): Likewise.
4202
5b4a1a8d
PW
42032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4204
4205 * NEWS: Mention changes to help and apropos.
4206
57b4f16e
PW
42072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4208
4209 * command.h (enum command_class): Improve comments, document
4210 that class_alias is for user-defined aliases, give the class
4211 name for each class, remove unused class_xdb.
4212 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4213 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4214 by a precise class.
4215 * infcmd.c (_initialize_infcmd): Likewise.
4216 * reverse.c (_initialize_reverse): Likewise.
4217 * stack.c (_initialize_stack): Likewise.
4218 * symfile.c (_initialize_symfile): Likewise.
4219 * tracepoint.c (_initialize_tracepoint): Likewise.
4220
7c05caf7
PW
42212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4222
4223 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4224 when their aliased command is traversed.
4225 (help_cmd): Add fput_command_names_styled call to
4226 output command name and aliases when command has an alias.
4227
3b3aaacb
PW
42282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4229
4230 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4231 * cli/cli-decode.c (help_cmd_list): Declare as static,
4232 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4233 a command together with the command.
4234 (fput_command_name_styled, fput_command_names_styled): New functions.
4235 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4236 fput_command_name_styled.
4237 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4238 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4239
7aa1b46f
PW
42402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4241
4242 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4243 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4244 * command.h (cmd_show_list): Likewise.
4245 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4246 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4247
89bcba74
PW
42482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4249
4250 * unittests/command-def-selftests.c (traverse_command_structure):
4251 Verify all commands of a list have the same prefix command and
4252 that only the top cmdlist commands have a null prefix.
4253
3f4d92eb
PW
42542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4255
4256 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4257 as prefix, not one of its aliases.
4258 (set_cmd_prefix): Remove.
4259 (do_add_cmd): Centralize the setting of the prefix of a command, when
4260 command is defined after its full chain of prefix commands.
4261 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4262 (add_setshow_cmd_full): Likewise.
4263 (update_prefix_field_of_prefixed_commands): New function.
4264 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4265 update_prefix_field_of_prefixed_commands.
4266 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4267 addresses of remote_set_cmdlist and remote_show_cmdlist given
4268 as argument, not the address of an argument.
4269 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4270 * gdb/remote.c (_initialize_remote): Likewise.
4271
0605465f
PW
42722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4273
4274 * cli/cli-cmds.c (alias_command): Check for an existing alias
4275 using lookup_cmd_composition, as valid_command_p is too strict
4276 and forbids aliases that are the prefix of an existing alias
4277 or command.
4278 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4279 command is properly recognised as a valid command.
4280
58e6ac70
PW
42812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4282
4283 * unittests/help-doc-selftests.c: Rename to
4284 unittests/command-def-selftests.c
4285 * unittests/command-def-selftests.c (help_doc_tests): Update some
4286 comments.
4287 (command_structure_tests, traverse_command_structure): New namespace
4288 and function.
4289 (command_structure_invariants_tests): New function.
4290 (_initialize_command_def_selftests) Renamed from
4291 _initialize_help_doc_selftests, register command_structure_invariants
4292 selftest.
4293
a7b9ceb8
PW
42942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4295
4296 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4297 an alias of 'show'.
4298
b2188a06
JB
42992020-05-15 Joel Brobecker <brobecker@adacore.com>
4300
4301 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4302 ada_is_fixed_point_type. Update all callers.
4303 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4304 all callers.
4305 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4306 Update all callers.
4307 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4308 print_fixed_point_type. Update all callers.
4309 * ada-valprint.c (ada_value_print_num): Replace call to
4310 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4311
a51951c2
KB
43122020-05-14 Kevin Buettner <kevinb@redhat.com>
4313
4314 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4315 processors.
4316 (cpu_supports_bts): Add CV_AMD case.
4317
29d6859f
LM
43182020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4319 Simon Marchi <simon.marchi@efficios.com>
4320
4321 * infrun.c (stop_all_threads): Collect multiple wait events at
4322 each pass.
4323
78134374
SM
43242020-05-14 Simon Marchi <simon.marchi@efficios.com>
4325
4326 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4327 type::code instead.
4328
67607e24
SM
43292020-05-14 Simon Marchi <simon.marchi@efficios.com>
4330
4331 * gdbtypes.h (struct type) <code, set_code>: New methods.
4332 (TYPE_CODE): Use type::code. Change all call sites used to set
4333 the code to use type::set_code instead.
4334
a05575d3
TBA
43352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4336 Tom de Vries <tdevries@suse.de>
4337 Pedro Alves <palves@redhat.com>
4338
4339 PR threads/25478
4340 * infrun.c (stop_all_threads): Do NOT ignore
4341 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4342 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4343 received.
4344 (handle_no_resumed): Remove code handling a live inferior with no
4345 threads.
4346 * remote.c (has_single_non_exited_thread): New.
4347 (remote_target::update_thread_list): Do not delete a thread if is
4348 the last thread of the process.
4349 * thread.c (thread_select): Call delete_exited_threads instead of
4350 prune_threads.
4351
6ad82919
TBA
43522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4353
4354 * infrun.c (stop_all_threads): Enable/disable thread events of all
4355 targets. Move a debug message denoting the end of the function
4356 into the SCOPED_EXIT block.
4357
d890404b
TBA
43582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4359
4360 * process-stratum-target.h: Include <set>.
4361 (all_non_exited_process_targets, switch_to_target_no_thread): New
4362 function declarations.
4363 * process-stratum-target.c (all_non_exited_process_targets)
4364 (switch_to_target_no_thread): New function implementations.
4365
293b3ebc
TBA
43662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4367
4368 * infrun.c (handle_inferior_event): Extract out a piece of code
4369 into...
4370 (mark_non_executing_threads): ...this new function.
4371
7ca9b62a
TBA
43722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4373
4374 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4375 use.
4376
fc75c28b
TBA
43772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4378
4379 * regcache.c (regcache_read_pc_protected): New function
4380 implementation that returns 0 if the PC cannot read via
4381 'regcache_read_pc'.
4382 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4383 instead of 'regcache_read_pc'.
4384 (keep_going_pass_signal): Ditto.
4385
a89febbd
TT
43862020-05-13 Tom Tromey <tromey@adacore.com>
4387
4388 * ada-lang.c (align_value): Remove.
4389 (ada_template_to_fixed_record_type_1): Use align_up.
4390
f7e23710
TBA
43912020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4392
4393 * async-event.c: Update the copyright year.
4394 * async-event.h: Update the copyright year.
4395
02ff80c2
SM
43962020-05-12 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * objfiles.h (is_addr_in_objfile,
4399 shared_objfile_contains_address_p): Return bool.
4400 * objfile.c (is_addr_in_objfile,
4401 shared_objfile_contains_address_p): Return bool.
4402
4fd6c7e8
TT
44032020-05-11 Tom Tromey <tromey@adacore.com>
4404
4405 * cli/cli-cmds.c (info_command): Restore.
4406 (_initialize_cli_cmds): Use add_prefix_command for "info".
4407 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4408
5eb68a39
TT
44092020-05-11 Tom Tromey <tromey@adacore.com>
4410
4411 * ada-lang.c (ada_value_primitive_field): Now public.
4412 * ada-lang.h (ada_value_primitive_field): Declare.
4413 * ada-valprint.c (print_field_values): Use
4414 ada_value_primitive_field for wrapper fields.
4415
7666722f
TV
44162020-05-11 Tom de Vries <tdevries@suse.de>
4417
4418 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4419 MODULE_DOMAIN.
4420
3ee6bb11
TV
44212020-05-11 Tom de Vries <tdevries@suse.de>
4422
4423 PR symtab/25941
4424 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4425 with length 0, if not gdb-produced.
4426 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4427
43434996
TV
44282020-05-09 Tom de Vries <tdevries@suse.de>
4429
4430 PR gdb/25955
4431 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4432 calculation.
4433
2f78cffc
TT
44342020-05-09 Tom Tromey <tom@tromey.com>
4435
4436 * top.c (server_command): Now bool.
4437 * top.h (server_command): Now bool.
4438
4f7bc5ed
TT
44392020-05-08 Tom Tromey <tromey@adacore.com>
4440
4441 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4442 already being processed.
4443
8be4b118
TT
44442020-05-08 Tom Tromey <tom@tromey.com>
4445
4446 * printcmd.c (struct display) <next>: Remove.
4447 <display>: New constructor.
4448 <exp_string>: Now a std::string.
4449 <enabled_p>: Now a bool.
4450 (display_number): Move definition earlier.
4451 (displays): Rename from display_chain. Now a std::vector.
4452 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4453 (display_command): Update.
4454 (do_one_display, disable_display)
4455 (enable_disable_display_command, do_enable_disable_display):
4456 Update.
4457 (free_display): Remove.
4458 (clear_displays): Rewrite.
4459 (delete_display): Update.
4460 (map_display_numbers): Use function_view. Remove "data"
4461 parameter. Update.
4462 (do_delete_display): Remove.
4463 (undisplay_command): Update.
4464 (do_one_display, do_displays, disable_display)
4465 (info_display_command): Update.
4466 (do_enable_disable_display): Remove.
4467 (enable_disable_display_command)
4468 (clear_dangling_display_expressions): Update.
4469
94c93c35
TT
44702020-05-08 Tom Tromey <tom@tromey.com>
4471
4472 * symtab.c (set_symbol_cache_size)
4473 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4474 (maintenance_print_symbol_cache_statistics): Update.
4475 * symmisc.c (print_symbol_bcache_statistics)
4476 (print_objfile_statistics, maintenance_print_objfiles)
4477 (maintenance_info_symtabs, maintenance_check_symtabs)
4478 (maintenance_expand_symtabs, maintenance_info_line_tables):
4479 Update.
4480 * symfile-debug.c (set_debug_symfile): Update.
4481 * source.c (forget_cached_source_info): Update.
4482 * python/python.c (gdbpy_progspaces): Update.
4483 * psymtab.c (maintenance_info_psymtabs): Update.
4484 * probe.c (parse_probes): Update.
4485 * linespec.c (iterate_over_all_matching_symtabs)
4486 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4487 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4488 * exec.c (exec_target::close): Update.
4489 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4490 * breakpoint.c (print_one_breakpoint_location)
4491 (create_longjmp_master_breakpoint)
4492 (create_std_terminate_master_breakpoint): Update.
4493 * progspace.c (program_spaces): Now a std::vector.
4494 (maybe_new_address_space): Update.
4495 (add_program_space): Remove.
4496 (program_space::program_space): Update.
4497 (remove_program_space): Update.
4498 (number_of_program_spaces): Remove.
4499 (print_program_space, update_address_spaces): Update.
4500 * progspace.h (program_spaces): Change type.
4501 (ALL_PSPACES): Remove.
4502 (number_of_program_spaces): Don't declare.
4503 (struct program_space) <next>: Remove.
4504
a1fd1ac9
TT
45052020-05-08 Tom Tromey <tom@tromey.com>
4506
4507 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4508 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4509 (enable_break): Update.
4510 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4511 (frv_fdpic_find_canonical_descriptor): Update.
4512 (frv_fetch_objfile_link_map): Update.
4513 * progspace.c (program_space::free_all_objfiles): Update.
4514 (program_space::solibs): New method.
4515 * progspace.h (struct program_space) <solibs>: New method.
4516 * solist.h (master_so_list): Don't declare.
4517 (ALL_SO_LIBS): Remove.
4518 * solib.h (so_list_head): Remove.
4519 (update_solib_list): Update comment.
4520 * solib.c (master_so_list): Remove.
4521 (solib_used, update_solib_list, solib_add)
4522 (info_sharedlibrary_command, clear_solib)
4523 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4524
38eae084
TT
45252020-05-08 Tom Tromey <tom@tromey.com>
4526
4527 * extension.c (extension_languages): Now a std::array.
4528 (ALL_EXTENSION_LANGUAGES): Remove.
4529 (get_ext_lang_defn, get_ext_lang_of_file)
4530 (eval_ext_lang_from_control_command): Update.
4531 (finish_ext_lang_initialization)
4532 (auto_load_ext_lang_scripts_for_objfile)
4533 (ext_lang_type_printers::ext_lang_type_printers)
4534 (apply_ext_lang_type_printers)
4535 (ext_lang_type_printers::~ext_lang_type_printers)
4536 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4537 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4538 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4539 (get_matching_xmethod_workers, ext_lang_colorize)
4540 (ext_lang_before_prompt): Update.
4541 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4542
596dc4ad
TT
45432020-05-08 Tom Tromey <tom@tromey.com>
4544
4545 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4546 overload.
4547 <swap_string, m_string>: Remove.
4548 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4549 Update.
4550 * stabsread.c (define_symbol, read_type): Update.
4551 * linespec.c (find_linespec_symbols): Update.
4552 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4553 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4554 * dbxread.c (read_dbx_symtab): Update.
4555 * cp-support.h (cp_canonicalize_string_full)
4556 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4557 Return unique_xmalloc_ptr.
4558 * cp-support.c (inspect_type): Update.
4559 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4560 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4561 Likewise.
4562 * c-typeprint.c (print_name_maybe_canonical): Update.
4563 * break-catch-throw.c (check_status_exception_catchpoint):
4564 Update.
4565
bf4cb9be
TV
45662020-05-08 Tom de Vries <tdevries@suse.de>
4567
4568 * infrun.c (follow_fork): Copy current_line and current_symtab to
4569 child thread.
4570
a1b68f28
SM
45712020-05-07 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * async-event.c (struct async_signal_handler, struct
4574 async_event_handler): Reformat, remove typedef.
4575
98d48915
SM
45762020-05-07 Simon Marchi <simon.marchi@efficios.com>
4577
4578 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4579 access thistype->main_type->dyn_prop_list directly.
4580
7aa91313
SM
45812020-05-07 Simon Marchi <simon.marchi@efficios.com>
4582
4583 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4584 (remove_dyn_prop): Remove. Update all users to use
4585 type::remove_dyn_prop.
4586 * gdbtypes.c (remove_dyn_prop): Rename to...
4587 (type::remove_dyn_prop): ... this.
4588
5c54719c
SM
45892020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4590
4591 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4592 (add_dyn_prop): Remove. Update all users to use
4593 type::add_dyn_prop.
4594 * gdbtypes.c (add_dyn_prop): Rename to...
4595 (type::add_dyn_prop): ... this.
4596
24e99c6c
SM
45972020-05-07 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4600 (get_dyn_prop): Remove. Update all users to use
4601 type::dyn_prop.
4602 * gdbtypes.c (get_dyn_prop): Rename to...
4603 (type::dyn_prop): ... this.
4604
0d4bf016
SM
46052020-05-06 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4608
ac4a4f1c
SM
46092020-05-06 Simon Marchi <simon.marchi@efficios.com>
4610
4611 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4612 instruction, skip it if it's there.
4613
a3bbacc1
SM
46142020-05-05 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4617
c3236f84
SM
46182020-05-04 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4621 * gdbtypes.c (recursive_dump_type): Remove use of
4622 TYPE_INCOMPLETE.
4623
3b6acaee
TT
46242020-05-03 Tom Tromey <tom@tromey.com>
4625
4626 * breakpoint.c (catch_command, tcatch_command): Remove.
4627 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4628 add_show_prefix_cmd.
4629 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4630 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4631 Remove.
4632 (add_internal_problem_command): Use add_basic_prefix_cmd,
4633 add_show_prefix_cmd.
4634 * mips-tdep.c (set_mipsfpu_command): Remove.
4635 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4636 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4637 (_initialize_index_cache): Use add_basic_prefix_cmd.
4638 * memattr.c (dummy_cmd): Remove.
4639 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4640 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4641 (_initialize_tui_win): Use add_basic_prefix_cmd,
4642 add_show_prefix_cmd.
4643 * cli/cli-logging.c (set_logging_command): Remove.
4644 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4645 add_show_prefix_cmd.
4646 (show_logging_command): Remove.
4647 * target.c (target_command): Remove.
4648 (add_target): Use add_basic_prefix_cmd.
4649
a51119cd
HD
46502020-05-02 Hannes Domani <ssbssa@yahoo.de>
4651
4652 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4653
652fc23a 46542020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4655
652fc23a
PW
4656 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4657 info_command.
4658
117539e6
KR
46592020-04-30 Kamil Rytarowski <n54@gmx.com>
4660
4661 * nbsd-nat.c (nbsd_enable_proc_events)
4662 (nbsd_nat_target::post_startup_inferior): Add.
4663 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4664 (nbsd_nat_target::update_thread_list): Rewrite.
4665 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4666 "PTRACE_LWP_CREATE".
4667 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4668
102e38eb 46692020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4670
102e38eb
PW
4671 * stack.c (_initialize_stack): Remove duplicated creation
4672 of "frame" command and "f" alias.
4673
ee9d1e5f
HD
46742020-04-30 Hannes Domani <ssbssa@yahoo.de>
4675
4676 PR gdb/18706
4677 * gdbtypes.c (check_typedef): Calculate size of array of
4678 stubbed type.
4679
627c7fb8
HD
46802020-04-30 Hannes Domani <ssbssa@yahoo.de>
4681
4682 PR gdb/15559
4683 * i386-tdep.c (i386_push_dummy_call): Call
4684 i386_thiscall_push_dummy_call.
4685 (i386_thiscall_push_dummy_call): New function.
4686 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4687 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4688 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4689
ffc2844e
SM
46902020-04-29 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * gdbarch.sh (do_read): Add shellcheck disable directive for
4693 warning SC2162.
4694
1207375d
SM
46952020-04-29 Simon Marchi <simon.marchi@efficios.com>
4696
4697 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4698 "referenced but not assigned" warning.
4699
9fdb2916
SM
47002020-04-29 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * gdbarch.sh: Remove code that sets fallbackdefault.
4703
759cea5e
SM
47042020-04-29 Simon Marchi <simon.marchi@efficios.com>
4705
4706 * gdbarch.sh: Use shell operators && and || instead of
4707 -a and -o.
4708
cb02ab24
SM
47092020-04-29 Simon Marchi <simon.marchi@efficios.com>
4710
4711 * gdbarch.sh: Use $(...) instead of `...`.
4712
a6fc5ffc
SM
47132020-04-29 Simon Marchi <simon.marchi@efficios.com>
4714
4715 * gdbarch.sh: Use double quotes around variables.
4716
8d113d13
SM
47172020-04-29 Simon Marchi <simon.marchi@efficios.com>
4718
4719 * gdbarch.sh: Use %s with printf, instead of variables in the
4720 format string.
4721
ed6acedd
TT
47222020-04-29 Tom Tromey <tromey@adacore.com>
4723
4724 PR ada/25875:
4725 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4726 type fields here.
4727 (read_enumeration_type): Call
4728 update_enumeration_type_from_children later. Update comments.
4729 (process_enumeration_scope): Don't create type fields.
4730
b68b1b58
KR
47312020-04-29 Kamil Rytarowski <n54@gmx.com>
4732
4733 * nbsd-tdep.c: Include "xml-syscall.h".
4734 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4735
f94b2e03
KR
47362020-04-29 Kamil Rytarowski <n54@gmx.com>
4737
4738 * nbsd-nat.c: Include "sys/wait.h".
4739 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4740 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4741 (nbsd_nat_target::remove_exec_catchpoint)
4742 (nbsd_nat_target::set_syscall_catchpoint): Add.
4743 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4744 (nbsd_nat_target::insert_exec_catchpoint)
4745 (nbsd_nat_target::remove_exec_catchpoint)
4746 (nbsd_nat_target::set_syscall_catchpoint): Add.
4747 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4748 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4749 `nbsd_get_syscall_number'.
4750
fc49bc72
TT
47512020-04-29 Tom Tromey <tom@tromey.com>
4752
4753 * stack.c (print_block_frame_labels): Remove.
4754
d642b692
HD
47552020-04-29 Hannes Domani <ssbssa@yahoo.de>
4756
4757 PR gdb/17320
4758 * ada-valprint.c (val_print_packed_array_elements): Move array
4759 end bracket to new line.
4760 (ada_val_print_string): Remove extra spaces before first array
4761 element.
4762 * c-valprint.c (c_value_print_array): Likewise.
4763 * m2-valprint.c (m2_print_array_contents): Likewise.
4764 (m2_value_print_inner): Likewise.
4765 * p-valprint.c (pascal_value_print_inner): Likewise.
4766 * valprint.c (generic_val_print_array): Likewise.
4767 (value_print_array_elements): Move first array element and array
4768 end bracket to new line.
4769
ea90f227
TV
47702020-04-29 Tom de Vries <tdevries@suse.de>
4771
4772 PR symtab/25889
4773 * linespec.c (find_method): Fix ix calculation.
4774
4498ef4f
KR
47752020-04-28 Kamil Rytarowski <n54@gmx.com>
4776
4777 * syscalls/update-netbsd.sh: New file.
4778 * syscalls/netbsd.xml: Regenerate.
4779 * data-directory/Makefile.in: Register `netbsd.xml' in
4780 `SYSCALLS_FILES'.
4781
a55e30b5
SM
47822020-04-28 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * syscalls/update-freebsd.sh: Add double quotes.
4785
2b2fbab8
TT
47862020-04-28 Tom Tromey <tom@tromey.com>
4787
4788 * NEWS: Update.
4789 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4790 (cmdpy_init): Allow class_tui.
4791
a65189c9
TV
47922020-04-28 Mark Williams <mark@myosotissp.com>
4793
4794 PR gdb/24480
4795 * dwarf2read.c: Add missing assingments to list_in_scope when
4796 start_symtab was already called.
4797
1b95cdb7
SM
47982020-04-28 Simon Marchi <simon.marchi@efficios.com>
4799
4800 PR gdb/25881
4801 * dwarf2/read.c (offset_map_type): Use
4802 gdb:hash_enum<sect_offset> as hash function.
4803
15cd93d0
TV
48042020-04-28 Tom de Vries <tdevries@suse.de>
4805
4806 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4807 with DW_AT_signature.
4808
1eb39914
SM
48092020-04-27 Simon Marchi <simon.marchi@efficios.com>
4810
4811 * configure.ac: Remove check for fs_base/gs_base in
4812 user_regs_struct.
4813 * configure: Re-generate.
4814 * config.in: Re-generate.
4815 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4816 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4817 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4818
991a3e2e
LM
48192020-04-27 Luis Machado <luis.machado@linaro.org>
4820
4821 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4822 problematic inline frame unwinding situation.
4823 * frame.c (frame_id_computed_p): New function.
4824 * frame.h (frame_id_computed_p): New prototype.
4825
361ba0e8
TT
48262020-04-26 Tom Tromey <tom@tromey.com>
4827
4828 * command.h (enum command_class) <class_pseudo>: Remove.
4829
bc3609fd
PW
48302020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4831
4832 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4833 and whitespace.
4834
b9771db7
KR
48352020-04-25 Kamil Rytarowski <n54@gmx.com>
4836
ec16513e
SM
4837 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4838 `PT_GET_PROCESS_STATE' block.
b9771db7 4839
7151c1af
TT
48402020-04-24 Tom Tromey <tom@tromey.com>
4841
4842 * symtab.h (symbol_get_demangled_name): Don't declare.
4843 * symtab.c (symbol_get_demangled_name): Remove.
4844 (general_symbol_info::natural_name)
4845 (general_symbol_info::demangled_name): Update.
4846
906bb4c5
TT
48472020-04-24 Tom Tromey <tom@tromey.com>
4848
4849 PR rust/25025:
4850 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4851
bcfe6157
TT
48522020-04-24 Tom Tromey <tom@tromey.com>
4853
4854 PR symtab/12707:
4855 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4856 exists.
4857 (new_symbol): Likewise.
4858 * compile/compile-object-load.c (get_out_value_type): Use
4859 symbol_matches_search_name.
4860
f049a313
TT
48612020-04-24 Tom Tromey <tom@tromey.com>
4862
4863 * dwarf2/read.c (add_partial_symbol): Do not call
4864 compute_and_set_names.
4865
76e288d1
TT
48662020-04-24 Tom Tromey <tom@tromey.com>
4867
4868 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4869 overload.
4870
2467f4f6
TT
48712020-04-24 Tom Tromey <tom@tromey.com>
4872
4873 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4874 (add_psymbol_to_list): New overload. Make old overload call new
4875 one.
4876 * psympriv.h (add_psymbol_to_list): New overload.
4877
e61108c9
TT
48782020-04-24 Tom Tromey <tom@tromey.com>
4879
4880 * dwarf2/read.c (partial_die_info::read) <case
4881 DW_AT_linkage_name>: Use value_as_string.
4882 (dwarf2_string_attr): Use value_as_string.
4883 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4884 method.
4885 * dwarf2/attribute.c (attribute::value_as_string): New method.
4886
8c87a452
TT
48872020-04-24 Tom Tromey <tom@tromey.com>
4888
4889 * symtab.c (general_symbol_info::natural_name)
4890 (general_symbol_info::demangled_name): Check for language_rust.
4891
787de330
TT
48922020-04-24 Tom Tromey <tom@tromey.com>
4893
4894 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4895 (dwarf2_physname): ... from here.
4896 (partial_die_info::read): Add Rust "{" hack.
4897
ff985671
TT
48982020-04-24 Tom Tromey <tom@tromey.com>
4899
4900 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4901 method.
4902 (symbol_set_demangled_name): Don't declare.
4903 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4904 symbol_set_demangled_name.
4905 (general_symbol_info::set_language)
4906 (general_symbol_info::compute_and_set_names): Update.
4907 * minsyms.c (minimal_symbol_reader::install): Update.
4908 * dwarf2/read.c (new_symbol): Update.
4909
1acda803
TT
49102020-04-24 Tom Tromey <tromey@adacore.com>
4911
4912 PR python/23662:
4913 * python/py-type.c (convert_field): Handle
4914 FIELD_LOC_KIND_DWARF_BLOCK.
4915 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4916 (typy_get_dynamic): Nw function.
4917 (type_object_getset): Add "dynamic".
4918 * NEWS: Add entry.
4919
d656f129
TT
49202020-04-24 Tom Tromey <tromey@adacore.com>
4921
4922 * ada-typeprint.c (print_choices, print_variant_part)
4923 (print_record_field_types_dynamic): New functions.
4924 (print_record_field_types): Use print_record_field_types_dynamic.
4925
7d79de9a
TT
49262020-04-24 Tom Tromey <tromey@adacore.com>
4927
4928 * dwarf2/read.c (handle_data_member_location): New overload.
4929 (dwarf2_add_field): Use it.
4930 (decode_locdesc): Add "computed" parameter. Update comment.
4931 * gdbtypes.c (is_dynamic_type_internal): Also look for
4932 FIELD_LOC_KIND_DWARF_BLOCK.
4933 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4934 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4935 virtual base classes.
4936 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4937 FIELD_LOC_KIND_DWARF_BLOCK.
4938
f8e89861
TT
49392020-04-24 Tom Tromey <tromey@adacore.com>
4940
4941 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4942 * gdbtypes.c (is_dynamic_type_internal): Check
4943 TYPE_HAS_DYNAMIC_LENGTH.
4944 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4945 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4946 New macros.
4947 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4948 constant.
4949
9c6a1327
TT
49502020-04-24 Tom Tromey <tromey@adacore.com>
4951
4952 * dwarf2/read.c (struct variant_field): Rewrite.
4953 (struct variant_part_builder): New.
4954 (struct nextfield): Remove "variant" field. Add "offset".
4955 (struct field_info): Add "current_variant_part" and
4956 "variant_parts".
4957 (alloc_discriminant_info): Remove.
4958 (alloc_rust_variant): New function.
4959 (quirk_rust_enum): Update.
4960 (dwarf2_add_field): Set "offset" member. Don't handle
4961 DW_TAG_variant_part.
4962 (offset_map_type): New typedef.
4963 (convert_variant_range, create_one_variant)
4964 (create_one_variant_part, create_variant_parts)
4965 (add_variant_property): New functions.
4966 (dwarf2_attach_fields_to_type): Call add_variant_property.
4967 (read_structure_type): Don't handle DW_TAG_variant_part.
4968 (handle_variant_part, handle_variant): New functions.
4969 (handle_struct_member_die): Use them.
4970 (process_structure_scope): Don't handle variant parts.
4971 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4972 (struct discriminant_info): Remove.
4973 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4974 (struct main_type) <flag_discriminated_union>: Remove.
4975 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4976 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4977 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4978 Update.
4979 * valops.c (value_union_variant): Remove.
4980 * value.h (value_union_variant): Don't declare.
4981
b249d2c2
TT
49822020-04-24 Tom Tromey <tromey@adacore.com>
4983
4984 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4985 (ada_value_primitive_packed_val): Update.
4986 * ada-valprint.c (ada_value_print_1): Update.
4987 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4988 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4989 just an address. Use evaluate_for_locexpr_baton.
4990 (dwarf2_evaluate_property): Update.
4991 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4992 array_view.
4993 * findvar.c (default_read_var_value): Update.
4994 * gdbtypes.c (compute_variant_fields_inner)
4995 (resolve_dynamic_type_internal): Update.
4996 (resolve_dynamic_type): Change type of valaddr parameter.
4997 * gdbtypes.h (resolve_dynamic_type): Update.
4998 * valarith.c (value_subscripted_rvalue): Update.
4999 * value.c (value_from_contents_and_address): Update.
5000
61122aa9
TT
50012020-04-24 Tom Tromey <tromey@adacore.com>
5002
5003 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5004 "push_initial_value" parameter.
5005 (dwarf2_evaluate_property): Likewise.
5006 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5007
ef83a141
TT
50082020-04-24 Tom Tromey <tromey@adacore.com>
5009
5010 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5011 (variant::matches, compute_variant_fields_recurse)
5012 (compute_variant_fields_inner, compute_variant_fields): New
5013 functions.
5014 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5015 Use resolved_type after type is made.
5016 (operator==): Add new cases.
5017 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5018 (struct discriminant_range, struct variant, struct variant_part):
5019 New.
5020 (union dynamic_prop_data) <variant_parts, original_type>: New
5021 members.
5022 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5023 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5024 constants.
5025 * value.c (unpack_bits_as_long): Now public.
5026 * value.h (unpack_bits_as_long): Declare.
5027
675127ec
TT
50282020-04-24 Tom Tromey <tromey@adacore.com>
5029
5030 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5031 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5032
9852ceef
HD
50332020-04-24 Hannes Domani <ssbssa@yahoo.de>
5034
5035 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5036
7632c6ce
KR
50372020-04-24 Kamil Rytarowski <n54@gmx.com>
5038
5039 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5040 (remove_fork_catchpoint, post_startup_inferior)
5041 (post_attach): Move...
5042 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5043 (remove_fork_catchpoint, post_startup_inferior)
5044 (post_attach): ...here.
5045 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5046 (remove_fork_catchpoint, post_startup_inferior)
5047 (post_attach): Move...
5048 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5049 (remove_fork_catchpoint, post_startup_inferior)
5050 (post_attach): ...here.
5051
7be2bb4f
TT
50522020-04-24 Tom Tromey <tromey@adacore.com>
5053
5054 * nat/windows-nat.h (struct windows_thread_info)
5055 <pc_adjusted>: New member.
5056 * windows-nat.c (windows_fetch_one_register): Check
5057 pc_adjusted.
5058 (windows_nat_target::get_windows_debug_event)
5059 (windows_nat_target::wait): Set pc_adjusted.
5060
f80cb3b4
TV
50612020-04-24 Tom de Vries <tdevries@suse.de>
5062
5063 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5064 Run gdb-add-index inside temp dir.
5065
29514b87
TT
50662020-04-23 Tom Tromey <tromey@adacore.com>
5067
5068 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5069 in loop.
5070
5939967b
LM
50712020-04-23 Luis Machado <luis.machado@linaro.org>
5072
5073 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5074 get_frame_register instead of gdbarch_unwind_pc.
5075
70bc38f5
TV
50762020-04-23 Tom de Vries <tdevries@suse.de>
5077
5078 * symtab.c (lookup_global_symbol): Prefer def over decl.
5079
de82891c
TV
50802020-04-23 Tom de Vries <tdevries@suse.de>
5081
5082 PR symtab/25807
5083 * block.c (best_symbol, better_symbol): Promote to external.
5084 * block.h (best_symbol, better_symbol): Declare.
5085 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5086 decl.
5087
ecc6c606
TT
50882020-04-23 Tom Tromey <tromey@adacore.com>
5089
5090 PR ada/25837:
5091 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5092 "const char *", not a "const std::string &".
5093 <name_and_matcher::operator==>: Update.
5094 * unittests/lookup_name_info-selftests.c: Change type of
5095 "result".
5096
740480b8
TT
50972020-04-23 Tom Tromey <tom@tromey.com>
5098
5099 * inferior.h (iterate_over_inferiors): Don't declare.
5100 * inferior.c (iterate_over_inferiors): Remove.
5101 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5102 Remove.
5103 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5104 use iterate_over_inferiors.
5105 (darwin_resume_inferior_it)
5106 (struct resume_inferior_threads_param)
5107 (darwin_resume_inferior_threads_it): Remove.
5108 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5109
ae3ab1f0
TV
51102020-04-23 Tom de Vries <tdevries@suse.de>
5111
5112 * blockframe.c (find_pc_partial_function): Use
5113 find_pc_sect_compunit_symtab rather than
5114 objfile->sf->qf->find_pc_sect_compunit_symtab.
5115
317d2668
TV
51162020-04-22 Tom de Vries <tdevries@suse.de>
5117
5118 PR symtab/25764
5119 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5120 in psymtabs.
5121
eea9e357
TV
51222020-04-22 Tom de Vries <tdevries@suse.de>
5123
5124 PR symtab/25801
5125 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5126 symtabs.
5127
3d5afab3
TV
51282020-04-22 Tom de Vries <tdevries@suse.de>
5129
5130 PR symtab/25700
5131 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5132 CU if already created.
5133
d43b7a2d
TBA
51342020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5135
5136 * infrun.c (displaced_step_fixup): Switch to the event_thread
5137 before calling displaced_step_restore, not after.
5138
d89edf9b
MM
51392020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5140
5141 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5142 its inferior is not recorded by us.
5143 (record_btrace_target_open): Replace call to
5144 all_non_exited_threads () with call to current_inferior
5145 ()->non_exited_threads ().
5146 (record_btrace_target::stop_recording): Likewise.
5147 (record_btrace_target::close): Likewise.
5148 (record_btrace_target::wait): Likewise.
5149 (record_btrace_target::record_stop_replaying): Likewise.
5150
5897fd49
MM
51512020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5152
5153 * btrace.c (btrace_enable): Throw an error on double enables and
5154 when enabling recording fails.
5155 (btrace_disable): Throw an error if the thread is not recorded.
5156
1a476b6d
MM
51572020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5158
5159 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5160 request if we do not have a thread_info.
5161
4778a5f8
TV
51622020-04-21 Tom de Vries <tdevries@suse.de>
5163
5164 PR gdb/25471
5165 * thread.c
5166 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5167 exception in get_frame_id.
5168
0fa7617d
TT
51692020-04-20 Tom Tromey <tromey@adacore.com>
5170
5171 * python/python.c (struct gdbpy_event): Mark move constructor as
5172 noexcept.
5173 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5174 constructor as noexcept.
5175 * completer.h (struct completion_result): Mark move constructor as
5176 noexcept.
5177 * completer.c (completion_result::completion_result): Use
5178 initialization style. Don't call reset_match_list.
5179
ad23bda0
MS
51802020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5181
5182 * MAINTAINERS (Write After Approval): Add myself.
5183
45e1f031
TT
51842020-04-18 Tom Tromey <tom@tromey.com>
5185
5186 * windows-tdep.c (init_w32_command_list)
5187 (w32_prefix_command_valid): Restore.
5188 (_initialize_windows_tdep): Call init_w32_command_list.
5189
08feed99
TT
51902020-04-18 Tom Tromey <tom@tromey.com>
5191
5192 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5193 * value.c (value_fn_field): Update.
5194 * valops.c (find_function_in_inferior)
5195 (value_allocate_space_in_inferior): Update.
5196 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5197 Update.
5198 * tui/tui-source.c (tui_source_window::set_contents): Update.
5199 * symtab.c (lookup_global_or_static_symbol)
5200 (find_function_start_sal_1, skip_prologue_sal)
5201 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5202 * symmisc.c (dump_msymbols, dump_symtab_1)
5203 (maintenance_print_one_line_table): Update.
5204 * symfile.c (init_entry_point_info, section_is_mapped)
5205 (list_overlays_command, simple_read_overlay_table)
5206 (simple_overlay_update_1): Update.
5207 * stap-probe.c (handle_stap_probe): Update.
5208 * stabsread.c (dbx_init_float_type, define_symbol)
5209 (read_one_struct_field, read_enum_type, read_range_type): Update.
5210 * source.c (info_line_command): Update.
5211 * python/python.c (gdbpy_source_objfile_script)
5212 (gdbpy_execute_objfile_script): Update.
5213 * python/py-type.c (save_objfile_types): Update.
5214 * python/py-objfile.c (py_free_objfile): Update.
5215 * python/py-inferior.c (python_new_objfile): Update.
5216 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5217 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5218 (maintenance_check_psymtabs): Update.
5219 * printcmd.c (info_address_command): Update.
5220 * objfiles.h (struct objfile) <arch>: New method, from
5221 get_objfile_arch.
5222 (get_objfile_arch): Don't declare.
5223 * objfiles.c (get_objfile_arch): Remove.
5224 (filter_overlapping_sections): Update.
5225 * minsyms.c (msymbol_is_function): Update.
5226 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5227 (output_nondebug_symbol): Update.
5228 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5229 (mdebug_expand_psymtab): Update.
5230 * machoread.c (macho_add_oso_symfile): Update.
5231 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5232 Update.
5233 * linux-fork.c (checkpoint_command): Update.
5234 * linespec.c (convert_linespec_to_sals): Update.
5235 * jit.c (finalize_symtab): Update.
5236 * infrun.c (insert_exception_resume_from_probe): Update.
5237 * ia64-tdep.c (ia64_find_unwind_table): Update.
5238 * hppa-tdep.c (internalize_unwinds): Update.
5239 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5240 Update.
5241 * gcore.c (call_target_sbrk): Update.
5242 * elfread.c (record_minimal_symbol, elf_symtab_read)
5243 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5244 (elf_gnu_ifunc_resolve_by_got): Update.
5245 * dwarf2/read.c (create_addrmap_from_index)
5246 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5247 (read_debug_names_from_section)
5248 (process_psymtab_comp_unit_reader, add_partial_symbol)
5249 (add_partial_subprogram, process_full_comp_unit)
5250 (read_file_scope, read_func_scope, read_lexical_block_scope)
5251 (read_call_site_scope, dwarf2_ranges_read)
5252 (dwarf2_record_block_ranges, dwarf2_add_field)
5253 (mark_common_block_symbol_computed, read_tag_pointer_type)
5254 (read_tag_string_type, dwarf2_init_float_type)
5255 (dwarf2_init_complex_target_type, read_base_type)
5256 (partial_die_info::read, partial_die_info::read)
5257 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5258 (dwarf2_fetch_die_loc_sect_off): Update.
5259 * dwarf2/loc.c (dwarf2_find_location_expression)
5260 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5261 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5262 (dwarf2_loc_desc_get_symbol_read_needs)
5263 (locexpr_describe_location_piece, locexpr_describe_location_1)
5264 (loclist_describe_location): Update.
5265 * dwarf2/index-write.c (write_debug_names): Update.
5266 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5267 * dtrace-probe.c (dtrace_process_dof): Update.
5268 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5269 (process_one_symbol): Update.
5270 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5271 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5272 (coff_read_enum_type): Update.
5273 * cli/cli-cmds.c (edit_command, list_command): Update.
5274 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5275 * breakpoint.c (create_overlay_event_breakpoint)
5276 (create_longjmp_master_breakpoint)
5277 (create_std_terminate_master_breakpoint)
5278 (create_exception_master_breakpoint, get_sal_arch): Update.
5279 * block.c (block_gdbarch): Update.
5280 * annotate.c (annotate_source_line): Update.
5281
0743fc83
TT
52822020-04-17 Tom Tromey <tromey@adacore.com>
5283
5284 * auto-load.c (show_auto_load_cmd): Remove.
5285 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5286 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5287 (maintenance_print_arc_command): Remove.
5288 * tui/tui-win.c (tui_command): Remove.
5289 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5290 * tui/tui-layout.c (tui_layout_command): Remove.
5291 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5292 * python/python.c (user_set_python, user_show_python): Remove.
5293 (_initialize_python): Use add_basic_prefix_cmd,
5294 add_show_prefix_cmd.
5295 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5296 (install_gdb_commands): Use add_basic_prefix_cmd,
5297 add_show_prefix_cmd.
5298 (info_guile_command): Remove.
5299 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5300 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5301 add_show_prefix_cmd.
5302 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5303 Remove do_set and do_show parameters.
5304 * cli/cli-style.c (set_style, show_style): Remove.
5305 (_initialize_cli_style): Use add_basic_prefix_cmd,
5306 add_show_prefix_cmd.
5307 (cli_style_option::add_setshow_commands): Remove do_set and
5308 do_show parameters.
5309 (cli_style_option::add_setshow_commands): Use
5310 add_basic_prefix_cmd, add_show_prefix_cmd.
5311 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5312 (set_style_name): Remove.
5313 * cli/cli-dump.c (dump_command, append_command): Remove.
5314 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5315 (tekhex_dump_command, binary_dump_command)
5316 (binary_append_command): Remove.
5317 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5318 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5319 (init_w32_command_list): Remove; move into ...
5320 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5321 * valprint.c (set_print, show_print, set_print_raw)
5322 (show_print_raw): Remove.
5323 (_initialize_valprint): Use add_basic_prefix_cmd,
5324 add_show_prefix_cmd.
5325 * typeprint.c (set_print_type, show_print_type): Remove.
5326 (_initialize_typeprint): Use add_basic_prefix_cmd,
5327 add_show_prefix_cmd.
5328 * record.c (set_record_command, show_record_command): Remove.
5329 (_initialize_record): Use add_basic_prefix_cmd,
5330 add_show_prefix_cmd.
5331 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5332 add_show_prefix_cmd.
5333 (info_command, show_command, set_debug, show_debug): Remove.
5334 * top.h (set_history, show_history): Don't declare.
5335 * top.c (set_history, show_history): Remove.
5336 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5337 (unset_tdesc_cmd): Remove.
5338 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5339 add_show_prefix_cmd.
5340 * symtab.c (info_module_command): Remove.
5341 (_initialize_symtab): Use add_basic_prefix_cmd.
5342 * symfile.c (overlay_command): Remove.
5343 (_initialize_symfile): Use add_basic_prefix_cmd.
5344 * sparc64-tdep.c (info_adi_command): Remove.
5345 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5346 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5347 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5348 add_show_prefix_cmd.
5349 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5350 (_initialize_serial): Use add_basic_prefix_cmd,
5351 add_show_prefix_cmd.
5352 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5353 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5354 add_show_prefix_cmd.
5355 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5356 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5357 add_show_prefix_cmd.
5358 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5359 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5360 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5361 add_show_prefix_cmd.
5362 * remote.c (remote_command, set_remote_cmd): Remove.
5363 (_initialize_remote): Use add_basic_prefix_cmd.
5364 * record-full.c (set_record_full_command)
5365 (show_record_full_command): Remove.
5366 (_initialize_record_full): Use add_basic_prefix_cmd,
5367 add_show_prefix_cmd.
5368 * record-btrace.c (cmd_set_record_btrace)
5369 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5370 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5371 (cmd_show_record_btrace_pt): Remove.
5372 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5373 add_show_prefix_cmd.
5374 * ravenscar-thread.c (set_ravenscar_command)
5375 (show_ravenscar_command): Remove.
5376 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5377 add_show_prefix_cmd.
5378 * mips-tdep.c (show_mips_command, set_mips_command)
5379 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5380 add_show_prefix_cmd.
5381 * maint.c (maintenance_command, maintenance_info_command)
5382 (maintenance_check_command, maintenance_print_command)
5383 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5384 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5385 add_show_prefix_cmd.
5386 (show_per_command_cmd): Remove.
5387 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5388 Remove.
5389 (maintenance_show_test_settings_cmd): Remove.
5390 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5391 add_show_prefix_cmd.
5392 * maint-test-options.c (maintenance_test_options_command):
5393 Remove.
5394 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5395 * macrocmd.c (macro_command): Remove
5396 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5397 * language.c (set_check, show_check): Remove.
5398 (_initialize_language): Use add_basic_prefix_cmd,
5399 add_show_prefix_cmd.
5400 * infcmd.c (unset_command): Remove.
5401 (_initialize_infcmd): Use add_basic_prefix_cmd.
5402 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5403 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5404 add_show_prefix_cmd.
5405 * go32-nat.c (go32_info_dos_command): Remove.
5406 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5407 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5408 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5409 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5410 (_initialize_frame): Use add_basic_prefix_cmd,
5411 add_show_prefix_cmd.
5412 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5413 (_initialize_dcache): Use add_basic_prefix_cmd,
5414 add_show_prefix_cmd.
5415 * cp-support.c (maint_cplus_command): Remove.
5416 (_initialize_cp_support): Use add_basic_prefix_cmd.
5417 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5418 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5419 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5420 add_basic_prefix_cmd, add_show_prefix_cmd.
5421 * breakpoint.c (save_command): Remove.
5422 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5423 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5424 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5425 add_show_prefix_cmd.
5426 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5427 (set_ada_command, show_ada_command): Remove.
5428 (_initialize_ada_language): Use add_basic_prefix_cmd,
5429 add_show_prefix_cmd.
5430 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5431
3557f442
KR
54322020-04-16 Kamil Rytarowski <n54@gmx.com>
5433
5434 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5435 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5436
16197208
SM
54372020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5438
5439 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5440 warning messages.
5441
00ac85d3
SM
54422020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5443
5444 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5445 import table is not at beginning of .idata section.
5446
381ce63f
PA
54472020-04-16 Pedro Alves <palves@redhat.com>
5448
5449 * inferior.c (delete_inferior): Use delete operator directly
5450 instead of delete_program_space.
5451 * progspace.c (add_program_space): New, factored out from
5452 program_space::program_space.
5453 (remove_program_space): New, factored out from
5454 delete_program_space.
5455 (program_space::program_space): Remove intro comment. Rewrite.
5456 (program_space::~program_space): Remove intro comment. Call
5457 remove_program_space.
5458 (delete_program_space): Delete.
5459 * progspace.h (program_space::program_space): Make explicit. Move
5460 intro comment here, adjusted.
5461 (program_space::~program_space): Move intro comment here,
5462 adjusted.
5463 (delete_program_space): Remove.
5464
a010605f
TT
54652020-04-16 Tom Tromey <tromey@adacore.com>
5466
5467 * windows-nat.c (windows_nat::handle_access_violation): New
5468 function.
5469 * nat/windows-nat.h (handle_access_violation): Declare.
5470 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5471 windows-nat.c. Call handle_access_violation.
5472
efba5c23
TV
54732020-04-16 Tom de Vries <tdevries@suse.de>
5474
5475 PR symtab/25791
5476 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5477 CUs without psymtab.
5478
97ed802d
KB
54792020-04-16 Kevin Buettner <kevinb@redhat.com>
5480
5481 * python/python.c (do_start_initialization): Don't call
5482 PyEval_InitThreads for Python 3.9 and beyond.
5483
c7d64809
KR
54842020-04-15 Kamil Rytarowski <n54@gmx.com>
5485
5486 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5487 thread functions.
5488 (obsd_nat_target::wait): Likewise.
5489
ce127a96
TT
54902020-04-15 Tom Tromey <tromey@adacore.com>
5491
5492 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5493 (DEBUG_EXCEPT): Use debug_printf.
5494
99f1bc6a
AB
54952020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5496
5497 * completer.c (class completion_tracker::completion_hash_entry)
5498 <hash_name>: New member function.
5499 (completion_tracker::discard_completions): New callback to hash a
5500 completion_hash_entry, pass this to htab_create_alloc.
5501
a0e9b532
JT
55022016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5503
5504 * windows-nat.c (windows_make_so): Warn rather than stopping with
5505 an error if realpath() fails.
5506
06ca5dd4
KR
55072020-04-14 Kamil Rytarowski <n54@gmx.com>
5508
5509 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5510 (nbsd_nat_target::info_proc): Add do_status.
5511
194d088f
TV
55122020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5513 Tom de Vries <tdevries@suse.de>
5514
5515 PR symtab/25718
5516 * psympriv.h (struct partial_symtab::read_symtab)
5517 (struct partial_symtab::expand_psymtab)
5518 (struct partial_symtab::read_dependencies): Update comments.
5519 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5520 read_symtab for includer.
5521 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5522 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5523 (struct dwarf2_include_psymtab::m_readin): Remove.
5524 (struct dwarf2_include_psymtab::includer): New member function.
5525 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5526
c1a66c06
TV
55272020-04-14 Tom de Vries <tdevries@suse.de>
5528
5529 PR symtab/25720
5530 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5531 with NULL symbol_matcher and lookup_name.
5532 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5533 and lookup_name.
5534 * dwarf2/read.c (dw2_expand_symtabs_matching)
5535 (dw2_debug_names_expand_symtabs_matching): Same.
5536 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5537 Make lookup_name a pointer. Update comment.
5538 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5539 lookup_name being a pointer.
5540 * symfile.c (expand_symtabs_matching): Same.
5541 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5542 * linespec.c (iterate_over_all_matching_symtabs): Same.
5543
400b5eca
TT
55442020-04-13 Tom Tromey <tom@tromey.com>
5545
5546 * run-on-main-thread.c: Update include.
5547 * unittests/main-thread-selftests.c: Update include.
5548 * tui/tui-win.c: Update include.
5549 * tui/tui-io.c: Update include.
5550 * tui/tui-interp.c: Update include.
5551 * tui/tui-hooks.c: Update include.
5552 * top.h: Update include.
5553 * top.c: Update include.
5554 * ser-base.c: Update include.
5555 * remote.c: Update include.
5556 * remote-notif.c: Update include.
5557 * remote-fileio.c: Update include.
5558 * record-full.c: Update include.
5559 * record-btrace.c: Update include.
5560 * python/python.c: Update include.
5561 * posix-hdep.c: Update include.
5562 * mingw-hdep.c: Update include.
5563 * mi/mi-main.c: Update include.
5564 * mi/mi-interp.c: Update include.
5565 * main.c: Update include.
5566 * linux-nat.c: Update include.
5567 * interps.c: Update include.
5568 * infrun.c: Update include.
5569 * inf-loop.c: Update include.
5570 * event-top.c: Update include.
5571 * event-loop.c: Move to ../gdbsupport/.
5572 * event-loop.h: Move to ../gdbsupport/.
5573 * async-event.h: Update include.
5574 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5575
93b54c8e
TT
55762020-04-13 Tom Tromey <tom@tromey.com>
5577
5578 * tui/tui-win.c: Include async-event.h.
5579 * remote.c: Include async-event.h.
5580 * remote-notif.c: Include async-event.h.
5581 * record-full.c: Include async-event.h.
5582 * record-btrace.c: Include async-event.h.
5583 * infrun.c: Include async-event.h.
5584 * event-top.c: Include async-event.h.
5585 * event-loop.h: Move some declarations to async-event.h.
5586 * event-loop.c: Don't include ser-event.h or top.h. Move some
5587 code to async-event.c.
5588 * async-event.h: New file.
5589 * async-event.c: New file.
5590 * Makefile.in (COMMON_SFILES): Add async-event.c.
5591 (HFILES_NO_SRCDIR): Add async-event.h.
5592
c1cd3163
TT
55932020-04-13 Tom Tromey <tom@tromey.com>
5594
5595 * utils.c (flush_streams): New function.
5596 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5597
29f2bf4f
TT
55982020-04-13 Tom Tromey <tom@tromey.com>
5599
5600 * event-loop.c (handle_file_event): Use warning, not
5601 printf_unfiltered.
5602
98029d02
TT
56032020-04-13 Tom Tromey <tom@tromey.com>
5604
5605 * event-loop.c: Include <chrono>.
5606
06cc9596
TT
56072020-04-13 Tom Tromey <tom@tromey.com>
5608
5609 * gdb_select.h: Move to ../gdbsupport/.
5610 * event-loop.c: Update include path.
5611 * top.c: Update include path.
5612 * ser-base.c: Update include path.
5613 * ui-file.c: Update include path.
5614 * ser-tcp.c: Update include path.
5615 * guile/scm-ports.c: Update include path.
5616 * posix-hdep.c: Update include path.
5617 * ser-unix.c: Update include path.
5618 * gdb_usleep.c: Update include path.
5619 * mingw-hdep.c: Update include path.
5620 * inflow.c: Update include path.
5621 * infrun.c: Update include path.
5622 * event-top.c: Update include path.
5623
8ae8e197
TT
56242020-04-13 Tom Tromey <tom@tromey.com>
5625
5626 * configure: Rebuild.
5627 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5628
58cf28e8
TT
56292020-04-13 Tom Tromey <tom@tromey.com>
5630
5631 * event-loop.h (start_event_loop): Don't declare.
5632 * event-loop.c (start_event_loop): Move...
5633 * main.c (start_event_loop): ...here. Now static.
5634
b7f999ae
SDJ
56352020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5636
5637 * MAINTAINERS: Update my email address.
5638
1085dfd4
KR
56392020-04-12 Kamil Rytarowski <n54@gmx.com>
5640
5641 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5642 IP_ALL.
5643
49d1d1f5
KR
56442020-04-12 Kamil Rytarowski <n54@gmx.com>
5645
5646 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5647 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5648
b4848d2a
KR
56492020-04-12 Kamil Rytarowski <n54@gmx.com>
5650
5651 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5652 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5653
51c133d5
KR
56542020-04-12 Kamil Rytarowski <n54@gmx.com>
5655
5656 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5657
54b8cbd0
KR
56582020-04-11 Kamil Rytarowski <n54@gmx.com>
5659
5660 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5661 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5662 (nbsd_nat_target::info_proc): New functions.
5663 * nbsd-nat.c (kinfo_get_vmmap): New function.
5664 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5665 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5666 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5667 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5668 functions.
5669 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5670 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5671 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5672 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5673 (KINFO_VME_FLAG_GROWS_DOWN): New.
5674
cf83625d
AS
56752020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5676
5677 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5678 bit shift.
5679
0c4311ab
TT
56802020-04-10 Tom Tromey <tromey@adacore.com>
5681
5682 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5683
3e65b3e9
TT
56842020-04-10 Tom Tromey <tromey@adacore.com>
5685
5686 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5687 separate debug files.
5688
13302e95
HD
56892020-04-10 Hannes Domani <ssbssa@yahoo.de>
5690
5691 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5692 Move to...
5693 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5694 ... here.
5695 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5696 Check for STATUS_WX86_BREAKPOINT.
5697 (windows_nat_target::wait): Same.
5698
bdfc1e8a
TV
56992020-04-10 Tom de Vries <tdevries@suse.de>
5700
5701 PR cli/25808
5702 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5703
f4460aec
SM
57042020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5705
5706 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5707 (Write After Approval): Remove Tom de Vries.
5708
a25198bb
BE
57092020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5710
5711 revert partially:
5712 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5713
aac66a4c
SM
5714 * buildsym.c (record_line): Fix undefined behavior and preserve
5715 lines at eof.
a25198bb 5716
206c98a6
KR
57172020-04-09 Kamil Rytarowski <n54@gmx.com>
5718
5719 * auxv.h (svr4_auxv_parse): New.
5720 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5721 and generic_auxv_parse.
5722 (svr4_auxv_parse): Add.
5723 * obsd-tdep.c: Include "auxv.h".
5724 (obsd_auxv_parse): Remove.
5725 (obsd_init_abi): Remove comment.
5726 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5727 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5728 * nbsd-tdep.c: Include "auxv.h".
5729 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5730
71fbdbaf
TT
57312020-04-08 Tom Tromey <tromey@adacore.com>
5732
5733 * nat/windows-nat.h (last_wait_event): Don't declare.
5734 (wait_for_debug_event): Update comment.
5735 * nat/windows-nat.c (last_wait_event): Now static.
5736
2c1d95e8
TT
57372020-04-08 Tom Tromey <tromey@adacore.com>
5738
5739 * windows-nat.c (wait_for_debug_event): Move to
5740 nat/windows-nat.c.
5741 * nat/windows-nat.h (wait_for_debug_event): Declare.
5742 * nat/windows-nat.c (wait_for_debug_event): Move from
5743 windows-nat.c. No longer static.
5744
d2977bc4
TT
57452020-04-08 Tom Tromey <tromey@adacore.com>
5746
5747 * windows-nat.c (get_windows_debug_event): Use
5748 fetch_pending_stop.
5749 * nat/windows-nat.h (fetch_pending_stop): Declare.
5750 * nat/windows-nat.c (fetch_pending_stop): New function.
5751
e758e19c
TT
57522020-04-08 Tom Tromey <tromey@adacore.com>
5753
5754 * windows-nat.c (windows_continue): Use matching_pending_stop and
5755 continue_last_debug_event.
5756 * nat/windows-nat.h (matching_pending_stop)
5757 (continue_last_debug_event): Declare.
5758 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5759 (matching_pending_stop, continue_last_debug_event): New
5760 functions.
5761
8d30e395
TT
57622020-04-08 Tom Tromey <tromey@adacore.com>
5763
5764 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5765 (handle_exception_result): Move to nat/windows-nat.h.
5766 (DEBUG_EXCEPTION_SIMPLE): Remove.
5767 (windows_nat::handle_ms_vc_exception): New function.
5768 (handle_exception): Move to nat/windows-nat.c.
5769 (get_windows_debug_event): Update.
5770 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5771 nat/windows-nat.c.
5772 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5773 (handle_exception_result): Move from windows-nat.c.
5774 (handle_exception): Declare.
5775 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5776 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5777 windows-nat.c.
5778
29de418d
TT
57792020-04-08 Tom Tromey <tromey@adacore.com>
5780
5781 * windows-nat.c (exception_count, event_count): Remove.
5782 (handle_exception, get_windows_debug_event)
5783 (do_initial_windows_stuff): Update.
5784
a816ba18
TT
57852020-04-08 Tom Tromey <tromey@adacore.com>
5786
5787 * windows-nat.c (windows_nat::handle_load_dll)
5788 (windows_nat::handle_unload_dll): Rename. No longer static.
5789 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5790 Declare.
5791
a00caa12
TT
57922020-04-08 Tom Tromey <tromey@adacore.com>
5793
5794 * complaints.h (stop_whining): Declare at top-level.
5795 (complaint): Don't declare stop_whining.
5796
d41b524f
TT
57972020-04-08 Tom Tromey <tromey@adacore.com>
5798
5799 * windows-nat.c (windows_nat::handle_output_debug_string):
5800 Rename. No longer static.
5801 * nat/windows-nat.h (handle_output_debug_string): Declare.
5802
3c76026d
TT
58032020-04-08 Tom Tromey <tromey@adacore.com>
5804
5805 * windows-nat.c (current_process_handle, current_process_id)
5806 (main_thread_id, last_sig, current_event, last_wait_event)
5807 (current_windows_thread, desired_stop_thread_id, pending_stops)
5808 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5809 (display_selectors, fake_create_process)
5810 (get_windows_debug_event): Update.
5811 * nat/windows-nat.h (current_process_handle, current_process_id)
5812 (main_thread_id, last_sig, current_event, last_wait_event)
5813 (current_windows_thread, desired_stop_thread_id, pending_stops)
5814 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5815 * nat/windows-nat.c (current_process_handle, current_process_id)
5816 (main_thread_id, last_sig, current_event, last_wait_event)
5817 (current_windows_thread, desired_stop_thread_id, pending_stops)
5818 (siginfo_er): New globals. Move from windows-nat.c.
5819
9d8679cc
TT
58202020-04-08 Tom Tromey <tromey@adacore.com>
5821
5822 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5823 (handle_load_dll): Update.
5824 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5825
28688adf
TT
58262020-04-08 Tom Tromey <tromey@adacore.com>
5827
5828 * windows-nat.c (enum thread_disposition_type): Move to
5829 nat/windows-nat.h.
5830 (windows_nat::thread_rec): Rename from thread_rec. No longer
5831 static.
5832 (windows_add_thread, windows_nat_target::fetch_registers)
5833 (windows_nat_target::store_registers, handle_exception)
5834 (windows_nat_target::resume, get_windows_debug_event)
5835 (windows_nat_target::get_tib_address)
5836 (windows_nat_target::thread_name)
5837 (windows_nat_target::thread_alive): Update.
5838 * nat/windows-nat.h (enum thread_disposition_type): Move from
5839 windows-nat.c.
5840 (thread_rec): Declare.
5841
4834dad0
TT
58422020-04-08 Tom Tromey <tromey@adacore.com>
5843
5844 * windows-nat.c: Add "using namespace".
5845 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5846 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5847
65bafd5b
TT
58482020-04-08 Tom Tromey <tromey@adacore.com>
5849
5850 * nat/windows-nat.h (struct windows_thread_info): Declare
5851 destructor.
5852 * nat/windows-nat.c (~windows_thread_info): New.
5853
0a4afda3
TT
58542020-04-08 Tom Tromey <tromey@adacore.com>
5855
5856 PR gdb/22992
5857 * windows-nat.c (current_event): Update comment.
5858 (last_wait_event, desired_stop_thread_id): New globals.
5859 (struct pending_stop): New.
5860 (pending_stops): New global.
5861 (windows_nat_target) <stopped_by_sw_breakpoint>
5862 <supports_stopped_by_sw_breakpoint>: New methods.
5863 (windows_fetch_one_register): Add assertions. Adjust PC.
5864 (windows_continue): Handle pending stops. Suspend other threads
5865 when stepping. Use last_wait_event
5866 (wait_for_debug_event): New function.
5867 (get_windows_debug_event): Use wait_for_debug_event. Handle
5868 pending stops. Queue spurious stops.
5869 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5870 (windows_nat_target::kill): Use wait_for_debug_event.
5871 * nat/windows-nat.h (struct windows_thread_info)
5872 <stopped_at_software_breakpoint>: New field.
5873 * nat/windows-nat.c (windows_thread_info::resume): Clear
5874 stopped_at_software_breakpoint.
5875
8e61ebec
TT
58762020-04-08 Tom Tromey <tromey@adacore.com>
5877
5878 * windows-nat.c (enum thread_disposition_type): New.
5879 (thread_rec): Replace "get_context" parameter with "disposition";
5880 change type.
5881 (windows_add_thread, windows_nat_target::fetch_registers)
5882 (windows_nat_target::store_registers, handle_exception)
5883 (windows_nat_target::resume, get_windows_debug_event)
5884 (windows_nat_target::get_tib_address)
5885 (windows_nat_target::thread_name)
5886 (windows_nat_target::thread_alive): Update.
5887
98a03287
TT
58882020-04-08 Tom Tromey <tromey@adacore.com>
5889
5890 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5891 (windows_continue): Use windows_continue::resume.
5892 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5893 resume>: Declare new methods.
5894 * nat/windows-nat.c: New file.
5895 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5896
7c7411bc
TT
58972020-04-08 Tom Tromey <tromey@adacore.com>
5898
5899 * windows-nat.c (windows_add_thread, windows_delete_thread)
5900 (windows_nat_target::fetch_registers)
5901 (windows_nat_target::store_registers, fake_create_process)
5902 (windows_nat_target::resume, windows_nat_target::resume)
5903 (get_windows_debug_event, windows_nat_target::wait)
5904 (windows_nat_target::pid_to_str)
5905 (windows_nat_target::get_tib_address)
5906 (windows_nat_target::get_ada_task_ptid)
5907 (windows_nat_target::thread_name)
5908 (windows_nat_target::thread_alive): Use lwp, not tid.
5909
2950fdf7
TT
59102020-04-08 Tom Tromey <tromey@adacore.com>
5911
5912 * windows-nat.c (handle_exception)
5913 (windows_nat_target::thread_name): Update.
5914 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5915 <name>: Now unique_xmalloc_ptr.
5916
62fe396b
TT
59172020-04-08 Tom Tromey <tromey@adacore.com>
5918
5919 * windows-nat.c (thread_rec)
5920 (windows_nat_target::fetch_registers): Update.
5921 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5922 Update comment.
5923 <debug_registers_changed, reload_context>: Now bool.
5924
e9534bd2
TT
59252020-04-08 Tom Tromey <tromey@adacore.com>
5926
5927 * windows-nat.c (windows_add_thread): Use new.
5928 (windows_init_thread_list, windows_delete_thread): Use delete.
5929 (get_windows_debug_event): Update.
5930 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5931 destructor, and initializers.
5932
ae1f8880
TT
59332020-04-08 Tom Tromey <tromey@adacore.com>
5934
5935 * windows-nat.c (struct windows_thread_info): Remove.
5936 * nat/windows-nat.h: New file.
5937
55a1e039
TT
59382020-04-08 Tom Tromey <tromey@adacore.com>
5939
5940 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5941 (thread_rec, windows_add_thread, windows_delete_thread)
5942 (windows_continue): Update.
5943
93366324
TT
59442020-04-08 Tom Tromey <tromey@adacore.com>
5945
5946 * windows-nat.c (struct windows_thread_info): Remove typedef.
5947 (thread_head): Remove.
5948 (thread_list): New global.
5949 (thread_rec, windows_add_thread, windows_init_thread_list)
5950 (windows_delete_thread, windows_continue): Update.
5951
0f2265e2
SM
59522020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5953
5954 * windows-tdep.h (windows_init_abi): Add comment.
5955 (cygwin_init_abi): New declaration.
5956 * windows-tdep.c: Split signal enumeration in two, one for
5957 Windows and one for Cygwin.
5958 (windows_gdb_signal_to_target): Only deal with signal of the
5959 Windows OS ABI.
5960 (cygwin_gdb_signal_to_target): New function.
5961 (windows_init_abi): Rename to windows_init_abi_common, don't set
5962 gdb_signal_to_target gdbarch method. Add new new function with
5963 this name.
5964 (cygwin_init_abi): New function.
5965 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5966 comment. Don't call windows_init_abi.
5967 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5968 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5969 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5970 i386_windows_init_abi_common, don't call windows_init_abi. Add
5971 a new function of this name.
5972 (i386_cygwin_init_abi): New function.
5973 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5974 OS ABI Cygwin.
5975
3810f182
SM
59762020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5977
5978 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5979 parameter.c.
5980 (dwarf2_read_gdb_index): Update.
5981
063f8e80
KR
59822020-04-07 Kamil Rytarowski <n54@gmx.com>
5983
5984 * nbsd-tdep.c: Include "objfiles.h".
5985 (nbsd_skip_solib_resolver): New.
5986 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5987
85a9510c 59882020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5989
5990 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5991 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5992 with DW_LLE_base_addressx are being emitted in DWARFv5.
5993 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5994 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5995 unsigned integer.
5996
9fc3eaae 59972020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5998
5999 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6000 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6001 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6002 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6003 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6004 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6005 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6006
6007
41144253 60082020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6009
6010 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6011 (read_loclist_index): New function definition.
6012 (lookup_loclist_base): New function definition.
6013 (read_loclist_header): New function definition.
6014 (dwarf2_cu): Add loclist_base and loclist_header field.
6015 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6016 (read_full_die_1): Read the value of DW_AT_loclists_base.
6017 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6018 (read_attribute_value): Handle DW_FORM_loclistx.
6019 (skip_one_die): Handle DW_FORM_loclistx.
6020 (loclist_header): New structure declaration.
6021 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6022
9f4e76a4
SM
60232020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6024
6025 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6026 constructor. Remove `addr` parameter from other constructor and
6027 add `per_cu` parameter.
6028 * dwarf2/read.c (create_partial_symtab): Update.
6029
25c11aca
TV
60302020-04-07 Tom de Vries <tdevries@suse.de>
6031
6032 PR symtab/25796
6033 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6034 (partial_die_info::fixup): Inherit has_const_value.
6035
5707e24b
TV
60362020-04-07 Tom de Vries <tdevries@suse.de>
6037
6038 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6039 symbols without address.
6040
05f00e22
KR
60412020-04-06 Kamil Rytarowski <n54@gmx.com>
6042
6043 * nbsd-nat.h (struct thread_info): Add forward declaration.
6044 (nbsd_nat_target::thread_alive): Add.
6045 (nbsd_nat_target::thread_name): Likewise.
6046 (nbsd_nat_target::update_thread_list): Likewise.
6047 (update_thread_list::post_attach): Likewise.
6048 (post_attach::pid_to_str): Likewise.
6049 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6050 (nbsd_thread_lister): Add.
6051 (nbsd_nat_target::thread_alive): Likewise.
6052 (nbsd_nat_target::thread_name): Likewise.
6053 (nbsd_add_threads): Likewise.
6054 (update_thread_list::post_attach): Likewise.
6055 (nbsd_nat_target::update_thread_list): Likewise.
6056 (post_attach::pid_to_str): Likewise.
6057
6ee448cc
TT
60582020-04-06 Tom Tromey <tromey@adacore.com>
6059
6060 * ada-valprint.c (print_variant_part): Extract the variant field.
6061 (print_field_values): Use the field as the outer value when
6062 recursing.
6063
dea34e8c
TT
60642020-04-06 Tom Tromey <tromey@adacore.com>
6065
6066 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6067 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6068 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6069 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6070 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6071
93689ce9
TT
60722020-04-06 Tom Tromey <tromey@adacore.com>
6073
6074 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6075 TYPE_CODE_ERROR.
6076
79743962
KR
60772020-04-06 Kamil Rytarowski <n54@gmx.com>
6078
6079 * nbsd-tdep.c: Include "gdbarch.h".
6080 Define enum with NetBSD signal numbers.
6081 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6082 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6083 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6084 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6085 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6086 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6087 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6088 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6089 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6090 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6091 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6092 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6093
9e7c9a03
HD
60942020-04-03 Hannes Domani <ssbssa@yahoo.de>
6095
6096 PR gdb/25325
6097 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6098
d9e49b61
TT
60992020-04-03 Tom Tromey <tromey@adacore.com>
6100
6101 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6102 Read constant block.
6103
e0fc5c3f
SM
61042020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6105
6106 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6107 (gdb_bfd_get_full_section_contents): New declaration.
6108 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6109 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6110 gdb_bfd_get_full_section_contents.
6111
e2ff18a0
SM
61122020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6113
6114 * exec.c (build_section_table): Replace internal_error with
6115 gdb_assert.
6116 (section_table_xfer_memory_partial): Likewise.
6117 * mdebugread.c (parse_partial_symbols): Likewise.
6118 * psymtab.c (lookup_partial_symbol): Likewise.
6119 * utils.c (wrap_here): Likewise.
6120
0830d301
TT
61212020-04-02 Tom Tromey <tromey@adacore.com>
6122
6123 * f-lang.c (build_fortran_types): Use arch_type to initialize
6124 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6125
e7da7f8f
TT
61262020-04-02 Tom Tromey <tromey@adacore.com>
6127
6128 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6129 of attributes.
6130
c90d28ac
AB
61312020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6132 Bernd Edlinger <bernd.edlinger@hotmail.de>
6133 Tom Tromey <tromey@adacore.com>
6134
6135 * buildsym.c (buildsym_compunit::record_line): Remove
6136 deduplication code.
6137
1aa98955
TV
61382020-04-02 Tom de Vries <tdevries@suse.de>
6139
6140 PR ada/24671
6141 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6142
d3214198
TV
61432020-04-02 Tom de Vries <tdevries@suse.de>
6144
6145 * dwarf2/read.c (dwarf2_gdb_index_functions,
6146 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6147 NULL.
6148 * psymtab.c (psym_lookup_global_symbol_language): New function.
6149 (psym_functions): Init psym_lookup_global_symbol_language with
6150 psym_lookup_global_symbol_language.
6151 * symfile-debug.c (debug_sym_quick_functions): Init
6152 lookup_global_symbol_language with NULL.
6153 * symfile.c (set_initial_language): Remove fixme comment.
6154 * symfile.h (struct quick_symbol_functions): Add
6155 lookup_global_symbol_language.
6156 * symtab.c (find_quick_global_symbol_language): New function.
6157 (find_main_name): Use find_quick_global_symbol_language.
6158
2836752f
SM
61592020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6160
6161 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6162
64dc2d4b
BE
61632020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6164
6165 * buildsym.c (record_line): Fix undefined behavior and preserve
6166 lines at eof.
6167
bbe3dc41
BE
61682020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6169
6170 * buildsym.c (record_line): Fix the resizing condition.
6171
6b4a335b
TT
61722020-04-01 Tom Tromey <tom@tromey.com>
6173
6174 * value.h (value_literal_complex): Add comment.
6175 * valops.c (value_literal_complex): Refer to value.h.
6176
3638a098
TT
61772020-04-01 Tom Tromey <tom@tromey.com>
6178
6179 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6180 (scalar_type): New rule, from typebase.
6181 (typebase): Use scalar_type. Recognize complex types.
6182 (field_name): Handle FLOAT_KEYWORD.
6183 (ident_tokens): Add _Complex and __complex__.
6184
c34e8714
TT
61852020-04-01 Tom Tromey <tom@tromey.com>
6186
6187 PR exp/25299:
6188 * valarith.c (promotion_type, complex_binop): New functions.
6189 (scalar_binop): Handle complex numbers. Use promotion_type.
6190 (value_pos, value_neg, value_complement): Handle complex numbers.
6191
fa649bb7
TT
61922020-04-01 Tom Tromey <tom@tromey.com>
6193
6194 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6195 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6196 (parse_number): Handle complex numbers.
6197
981c08ce
TT
61982020-04-01 Tom Tromey <tom@tromey.com>
6199
6200 * c-valprint.c (c_decorations): Change complex suffix to "i".
6201
4c99290d
TT
62022020-04-01 Tom Tromey <tom@tromey.com>
6203
6204 * valprint.c (generic_value_print_complex): Use accessors.
6205 * value.h (value_real_part, value_imaginary_part): Declare.
6206 * valops.c (value_real_part, value_imaginary_part): New
6207 functions.
6208 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6209
5b930b45
TT
62102020-04-01 Tom Tromey <tom@tromey.com>
6211
6212 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6213 (read_range_type): Update.
6214 * mdebugread.c (basic_type): Update.
6215 * go-lang.c (build_go_types): Use init_complex_type.
6216 * gdbtypes.h (struct main_type) <complex_type>: New member.
6217 (init_complex_type): Update.
6218 (arch_complex_type): Don't declare.
6219 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6220 Make name if none given. Use alloc_type_copy. Look for cached
6221 complex type.
6222 (arch_complex_type): Remove.
6223 (gdbtypes_post_init): Use init_complex_type.
6224 * f-lang.c (build_fortran_types): Use init_complex_type.
6225 * dwarf2/read.c (read_base_type): Update.
6226 * d-lang.c (build_d_types): Use init_complex_type.
6227 * ctfread.c (read_base_type): Update.
6228
53cccef1
TBA
62292020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6230
6231 * infrun.c (stop_all_threads): Update assertion, plus when
6232 stopping threads, take into account that we might be trying
6233 to stop an all-stop target.
6234 (stop_waiting): Call 'stop_all_threads' if there exists a
6235 non-stop target.
6236
a0714d30
TBA
62372020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6238
6239 * target.h (exists_non_stop_target): New function declaration.
6240 * target.c (exists_non_stop_target): New function.
6241
60e22c1e
HD
62422020-04-01 Hannes Domani <ssbssa@yahoo.de>
6243
6244 PR gdb/24789
6245 * eval.c (is_integral_or_integral_reference): New function.
6246 (evaluate_subexp_standard): Allow integer references in
6247 pointer arithmetic.
6248
e139a727
TBA
62492020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6250
6251 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6252 check for no ptid in the stop reply when the target is non-stop.
6253
e0802d59
TT
62542020-04-01 Tom Tromey <tromey@adacore.com>
6255
6256 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6257 "name" parameter to rvalue reference. Initialize m_name_holder.
6258 <lookup_name_info>: New overloads.
6259 <name>: Return gdb::string_view.
6260 <c_str>: New method.
6261 <make_ignore_params>: Update.
6262 <search_name_hash>: Update.
6263 <language_lookup_name>: Return const char *.
6264 <m_name>: Change type.
6265 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6266 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6267 (lookup_name_info::match_any): Update.
6268 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6269 Update.
6270 * minsyms.c (linkage_name_str): Update.
6271 * language.c (default_symbol_name_matcher): Update.
6272 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6273 Update.
6274 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6275 (ada_lookup_name_info::ada_lookup_name_info): Update.
6276 (literal_symbol_name_matcher): Update.
6277
8c072cb6
TT
62782020-04-01 Tom Tromey <tromey@adacore.com>
6279
6280 * psymtab.c (psymtab_search_name): Remove function.
6281 (psym_lookup_symbol): Create search name and lookup name here.
6282 (lookup_partial_symbol): Remove "name" parameter; add
6283 lookup_name.
6284 (psym_expand_symtabs_for_function): Update.
6285
6f29a534
TT
62862020-03-31 Joel Jones <joelkevinjones@gmail.com>
6287
6288 PR tui/25597:
6289 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6290
af62665e
TT
62912020-03-31 Tom Tromey <tromey@adacore.com>
6292
6293 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6294 memcpy.
6295
d1a89da5
NC
62962020-03-30 Nelson Chu <nelson.chu@sifive.com>
6297
6298 * features/riscv/32bit-csr.xml: Regenerated.
6299 * features/riscv/64bit-csr.xml: Regenerated.
6300
d8af9068
TT
63012020-03-30 Tom Tromey <tromey@adacore.com>
6302
6303 * ada-valprint.c (print_variant_part): Update.
6304 * ada-lang.h (ada_which_variant_applies): Update.
6305 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6306 outer_valaddr parameters; replace with "outer" value parameter.
6307 (to_fixed_variant_branch_type): Update.
6308
227c0bf4
PFC
63092020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6310
6311 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6312 <list>. Remove inclusion of observable.h.
6313 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6314 (struct arch_lwp_info): New struct.
6315 (class ppc_linux_dreg_interface): New class.
6316 (struct ppc_linux_process_info): New struct.
6317 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6318 <low_new_clone, low_forget_process, low_prepare_to_resume>
6319 <copy_thread_dreg_state, mark_thread_stale>
6320 <mark_debug_registers_changed, register_hw_breakpoint>
6321 <clear_hw_breakpoint, register_wp, clear_wp>
6322 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6323 <num_memory_accesses, get_trigger_type>
6324 <create_watchpoint_request, hwdebug_point_cmp>
6325 <init_arch_lwp_info, get_arch_lwp_info>
6326 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6327 methods.
6328 <struct ptid_hash>: New inner struct.
6329 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6330 members.
6331 (saved_dabr_value, hwdebug_info, max_slots_number)
6332 (struct hw_break_tuple, struct thread_points, ppc_threads)
6333 (have_ptrace_hwdebug_interface)
6334 (hwdebug_find_thread_points_by_tid)
6335 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6336 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6337 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6338 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6339 use m_dreg_interface.
6340 (hwdebug_point_cmp): Change to...
6341 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6342 reference arguments instead of pointers.
6343 (ppc_linux_nat_target::ranged_break_num_registers): Use
6344 m_dreg_interface.
6345 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6346 m_dreg_interface. Call register_hw_breakpoint.
6347 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6348 m_dreg_interface. Call clear_hw_breakpoint.
6349 (get_trigger_type): Change to...
6350 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6351 comment.
6352 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6353 use m_dreg_interface. Call register_hw_breakpoint.
6354 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6355 use m_dreg_interface. Call clear_hw_breakpoint.
6356 (can_use_watchpoint_cond_accel): Change to...
6357 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6358 method. Update comment, use m_dreg_interface and
6359 m_process_info.
6360 (calculate_dvc): Change to...
6361 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6362 m_dreg_interface.
6363 (num_memory_accesses): Change to...
6364 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6365 (check_condition): Change to...
6366 (ppc_linux_nat_target::check_condition): ...this method.
6367 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6368 comment, use m_dreg_interface.
6369 (create_watchpoint_request): Change to...
6370 (ppc_linux_nat_target::create_watchpoint_request): ...this
6371 method. Use m_dreg_interface.
6372 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6373 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6374 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6375 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6376 (ppc_linux_nat_target::low_forget_process)
6377 (ppc_linux_nat_target::low_new_fork)
6378 (ppc_linux_nat_target::low_new_clone)
6379 (ppc_linux_nat_target::low_delete_thread)
6380 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6381 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6382 only call mark_thread_stale.
6383 (ppc_linux_thread_exit): Remove.
6384 (ppc_linux_nat_target::stopped_data_address): Change to...
6385 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6386 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6387 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6388 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6389 comment. Call low_stopped_data_address.
6390 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6391 m_dreg_interface.
6392 (ppc_linux_nat_target::masked_watch_num_registers): Use
6393 m_dreg_interface.
6394 (ppc_linux_nat_target::copy_thread_dreg_state)
6395 (ppc_linux_nat_target::mark_thread_stale)
6396 (ppc_linux_nat_target::mark_debug_registers_changed)
6397 (ppc_linux_nat_target::register_hw_breakpoint)
6398 (ppc_linux_nat_target::clear_hw_breakpoint)
6399 (ppc_linux_nat_target::register_wp)
6400 (ppc_linux_nat_target::clear_wp)
6401 (ppc_linux_nat_target::init_arch_lwp_info)
6402 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6403 (_initialize_ppc_linux_nat): Remove observer callback.
6404
4db10d8f
PFC
64052020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6406
6407 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6408 (ppc_linux_nat_target::auxv_parse)
6409 (ppc_linux_nat_target::read_description)
6410 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6411 Move up.
6412
1310c1b0
PFC
64132020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6414
6415 * linux-nat.h (low_new_clone): New method.
6416 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6417
69b037c3
SM
64182020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6419
6420 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6421 (dbx_expand_psymtab): ... this.
6422 (start_psymtab): Update.
6423 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6424 (mdebug_expand_psymtab): ... this.
6425 (parse_partial_symbols): Update.
6426 (new_psymtab): Update.
6427 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6428 (xcoff_expand_psymtab): ... this.
6429 (xcoff_start_psymtab): Update.
6430
48993951
SM
64312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6432
6433 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6434 <expand_dependencies>: ... this.
6435 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6436 (partial_symtab::expand_dependencies): ... this.
6437 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6438 Update.
6439 (dwarf2_psymtab::expand_psymtab): Update.
6440 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6441 * mdebugread.c (psymtab_to_symtab_1): Update.
6442 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6443
3ad83046
SM
64442020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6445
6446 * psympriv.h (discard_psymtab): Remove.
6447 * dbxread.c (dbx_end_psymtab): Update.
6448 * xcoffread.c (xcoff_end_psymtab): Update.
6449
4d1b9ab6
TT
64502020-03-28 Tom Tromey <tom@tromey.com>
6451
6452 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6453 comment.
6454
f1749218
TT
64552020-03-28 Tom Tromey <tom@tromey.com>
6456
6457 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6458
ebea7626
HD
64592020-03-27 Hannes Domani <ssbssa@yahoo.de>
6460
6461 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6462
a879b4d5
JB
64632020-03-26 John Baldwin <jhb@FreeBSD.org>
6464
6465 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6466
0826b30a
TT
64672020-03-26 Tom Tromey <tom@tromey.com>
6468
6469 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6470 (mark_common_block_symbol_computed, read_tag_string_type)
6471 (attr_to_dynamic_prop, read_subrange_type): Update.
6472 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6473 to be methods on struct attribute.
6474 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6475 (read_call_site_scope, partial_die_info::read)
6476 (partial_die_info::read, lookup_die_type, follow_die_ref):
6477 Update.
6478 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6479 from dwarf2_get_ref_die_offset.
6480 (attribute::constant_value): New method, from
6481 dwarf2_get_attr_constant_value.
6482 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6483 Declare method.
6484 <constant_value>: New method.
6485
2b2558bf
TT
64862020-03-26 Tom Tromey <tom@tromey.com>
6487
6488 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6489 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6490 (dwarf_type_encoding_name): Move to stringify.c.
6491 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6492 * dwarf2/stringify.c: New file.
6493 * dwarf2/stringify.h: New file.
6494
eeb64781
TT
64952020-03-26 Tom Tromey <tom@tromey.com>
6496
6497 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6498 Rewrite.
6499
a39fdb41
TT
65002020-03-26 Tom Tromey <tom@tromey.com>
6501
6502 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6503 methods.
6504 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6505 (lookup_ranges_base): Likewise.
6506 (read_cutu_die_from_dwo, read_full_die_1): Update.
6507
436c571c
TT
65082020-03-26 Tom Tromey <tom@tromey.com>
6509
6510 * dwarf2/read.c (read_import_statement, read_file_scope)
6511 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6512 (read_lexical_block_scope, read_call_site_scope)
6513 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6514 (handle_struct_member_die, process_structure_scope)
6515 (update_enumeration_type_from_children)
6516 (process_enumeration_scope, read_array_type, read_common_block)
6517 (read_namespace, read_module, read_subroutine_type): Update.
6518 (sibling_die): Remove.
6519
052c8bb8
TT
65202020-03-26 Tom Tromey <tom@tromey.com>
6521
6522 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6523 (build_type_psymtabs_reader, read_structure_type)
6524 (read_enumeration_type, read_full_die_1): Update.
6525 (dwarf2_attr_no_follow): Move to die.h.
6526 * dwarf2/die.h (struct die_info) <attr>: New method.
6527
2b24b6e4
TT
65282020-03-26 Tom Tromey <tom@tromey.com>
6529
6530 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6531 <base_address>: Now an optional.
6532 (dwarf2_find_base_address, dwarf2_rnglists_process)
6533 (dwarf2_ranges_process, fill_in_loclist_baton)
6534 (dwarf2_symbol_mark_computed): Update.
6535
c2d50fd0
TT
65362020-03-26 Tom Tromey <tom@tromey.com>
6537
6538 * dwarf2/read.c (struct die_info): Move to die.h.
6539 * dwarf2/die.h: New file.
6540
0df7ad3a
TT
65412020-03-26 Tom Tromey <tom@tromey.com>
6542
6543 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6544 * dwarf2/read.c
6545 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6546 Move to line-header.c.
6547 (read_checked_initial_length_and_offset, read_formatted_entries):
6548 Likewise.
6549 (dwarf_decode_line_header): Split into two.
6550 * dwarf2/line-header.c
6551 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6552 Move from read.c.
6553 (read_checked_initial_length_and_offset, read_formatted_entries):
6554 Likewise.
6555 (dwarf_decode_line_header): New function, split from read.c.
6556
86c0bb4c
TT
65572020-03-26 Tom Tromey <tom@tromey.com>
6558
6559 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6560 Declare method.
6561 * dwarf2/read.c (read_attribute_value): Update.
6562 (dwarf2_per_objfile::read_line_string): Rename from
6563 read_indirect_line_string.
6564 (read_formatted_entries): Update.
6565
2ef46c2f
TT
65662020-03-26 Tom Tromey <tom@tromey.com>
6567
6568 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6569 variable.
6570
4f9c1eda
TT
65712020-03-26 Tom Tromey <tom@tromey.com>
6572
6573 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6574 const.
6575 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6576 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6577 parameter const.
6578
5a0e026f
TT
65792020-03-26 Tom Tromey <tom@tromey.com>
6580
6581 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6582 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6583 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6584 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6585
8844c11b
TT
65862020-03-26 Tom Tromey <tom@tromey.com>
6587
6588 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6589 file_names_size, file_full_name, file_file_name>: Use const.
6590 <file_name_at, file_names>: Add const overload.
6591 * dwarf2/line-header.c (line_header::file_file_name)
6592 (line_header::file_full_name): Update.
6593
c90ec28a
TT
65942020-03-26 Tom Tromey <tom@tromey.com>
6595
6596 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6597 (macro_start_file, consume_improper_spaces)
6598 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6599 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6600 (dwarf_decode_macros): Move to macro.c.
6601 * dwarf2/macro.c: New file.
6602 * dwarf2/macro.h: New file.
6603 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6604
4f44ae6c
TT
66052020-03-26 Tom Tromey <tom@tromey.com>
6606
6607 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6608 method.
6609 * dwarf2/section.c: New method. From
6610 read_indirect_string_at_offset_from.
6611 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6612 (read_indirect_string_at_offset_from): Move to section.c.
6613 (read_indirect_string_at_offset): Rewrite.
6614 (read_indirect_line_string_at_offset): Remove.
6615 (read_indirect_string, read_indirect_line_string)
6616 (dwarf_decode_macro_bytes): Update.
6617
a0194fa8
TT
66182020-03-26 Tom Tromey <tom@tromey.com>
6619
6620 * dwarf2/section.h (struct dwarf2_section_info)
6621 <overload_complaint>: Declare.
6622 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6623 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6624 Rename from dwarf2_section_buffer_overflow_complaint.
6625 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6626 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6627
3d27bbdb
TT
66282020-03-26 Tom Tromey <tom@tromey.com>
6629
6630 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6631 Declare.
6632 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6633 Move from read.c.
6634 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6635 to section.c.
6636
9eac9650
TT
66372020-03-26 Tom Tromey <tom@tromey.com>
6638
6639 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6640
bf80d710
TT
66412020-03-26 Tom Tromey <tom@tromey.com>
6642
6643 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6644 "builder".
6645 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6646 parameter.
6647 (dwarf_decode_macros): Update.
6648
0314b390
TT
66492020-03-26 Tom Tromey <tom@tromey.com>
6650
6651 * dwarf2/read.c (read_attribute_value): Update.
6652 (read_indirect_string_from_dwz): Move to dwz.c; change into
6653 method.
6654 (dwarf_decode_macro_bytes): Update.
6655 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6656 * dwarf2/dwz.c: New file.
6657 * Makefile.in (COMMON_SFILES): Add dwz.c.
6658
9fda78b6
TT
66592020-03-26 Tom Tromey <tom@tromey.com>
6660
6661 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6662 * dwarf2/read.c: Add include.
6663 * dwarf2/index-write.c: Add include.
6664 * dwarf2/index-cache.c: Add include.
6665 * dwarf2/dwz.h: New file.
6666
33aa3c10
TT
66672020-03-25 Tom Tromey <tom@tromey.com>
6668
6669 * compile/compile-object-load.c (get_out_value_type): Mention
6670 correct symbol name in error message.
6671
d503b685
HD
66722020-03-25 Hannes Domani <ssbssa@yahoo.de>
6673
6674 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6675
7b1eff95
TV
66762020-03-25 Tom de Vries <tdevries@suse.de>
6677
6678 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6679 * symmisc.c (dump_symtab_1): Print user and includes fields.
6680 (maintenance_info_symtabs): Same.
6681
dd895392
AB
66822020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6683
6684 PR gdb/25534
6685 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6686 (riscv_regcache_cooked_write): New function.
6687 (riscv_push_dummy_call): Use new function.
6688 (riscv_return_value): Likewise.
6689
5ab2fbf1
SM
66902020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6691
6692 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6693 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6694 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6695 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6696 * infrun.c (follow_fork): Likewise.
6697 (follow_fork_inferior): Likewise.
6698 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6699 * linux-nat.h (class linux_nat_target): Likewise.
6700 * remote.c (class remote_target) <follow_fork>: Likewise.
6701 (remote_target::follow_fork): Likewise.
6702 * target-delegates.c: Re-generate.
6703 * target.c (default_follow_fork): Likewise.
6704 (target_follow_fork): Likewise.
6705 * target.h (struct target_ops) <follow_fork>: Likewise.
6706 (target_follow_fork): Likewise.
6707
a64fafb5
TV
67082020-03-24 Tom de Vries <tdevries@suse.de>
6709
6710 * psymtab.c (maintenance_info_psymtabs): Print user field.
6711
fe26d3a3
TT
67122020-03-20 Tom Tromey <tromey@adacore.com>
6713
6714 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6715 const.
6716 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6717 const.
6718
c884cc46
SM
67192020-03-20 Simon Marchi <simon.marchi@efficios.com>
6720
6721 * ptrace.m4: Don't check for ptrace declaration.
6722 * config.in: Re-generate.
6723 * configure: Re-generate.
6724 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6725 not defined.
6726
1ff700c2
KR
67272020-03-20 Kamil Rytarowski <n54@gmx.com>
6728
6729 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6730 `PTRACE_TYPE_RET'.
6731 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6732 * sparc-nat.c (gdb_ptrace): Likewise.
6733 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6734
f7d4f0b1
TT
67352020-03-20 Tom Tromey <tromey@adacore.com>
6736
6737 * c-exp.y (lex_one_token): Fix assert.
6738
f67210ff
TT
67392020-03-20 Tom Tromey <tromey@adacore.com>
6740
6741 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6742 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6743 strncpy call.
6744
1773be9e
TT
67452020-03-20 Tom Tromey <tromey@adacore.com>
6746
6747 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6748
70304be9
TT
67492020-03-20 Tom Tromey <tromey@adacore.com>
6750
6751 * ada-valprint.c (print_variant_part): Remove parameters; switch
6752 to value-based API.
6753 (print_field_values): Likewise.
6754 (ada_val_print_struct_union): Likewise.
6755 (ada_value_print_1): Update.
6756
9faa006d
KR
67572020-03-20 Kamil Rytarowski <n54@gmx.com>
6758
6759 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6760 nbsd_nat_target instead of inf_ptrace_target.
6761 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6762 nbsd_nat_target.
6763
4a90f062
KR
67642020-03-20 Kamil Rytarowski <n54@gmx.com>
6765
6766 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6767 it to the ptrace call.
6768 * (store_registers): Likewise.
6769
67702020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6771
6772 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6773 it to the ptrace call.
6774 * (store_registers): Likewise.
6775
2d07da27
LM
67762020-03-19 Luis Machado <luis.machado@linaro.org>
6777
6778 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6779 valid, fetch vg value from ptrace.
6780
f09db380
KR
67812020-03-19 Kamil Rytarowski <n54@gmx.com>
6782 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6783 * inf-ptrace.c: Likewise.
6784 * (gdb_ptrace): Add.
6785 * (inf_ptrace_target::resume): Update.
6786 * (inf_ptrace_target::xfer_partial): Likewise.
6787 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6788 * (inf_ptrace_peek_poke): Update.
6789
fcc7376e
KR
67902020-03-19 Kamil Rytarowski <n54@gmx.com>
6791
6792 * x86-bsd-nat.c (gdb_ptrace): New.
6793 * (x86bsd_dr_set): Add new argument `ptid'.
6794 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6795 x86bsd_dr_set_addr): Update.
6796
cada5fc9
AB
67972020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6798
6799 * remote.c (remote_target::process_stop_reply): Handle events for
6800 all threads differently.
6801
19a2740f
AB
68022020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6803
6804 * completer.c (completion_tracker::remove_completion): Define new
6805 function.
6806 * completer.h (completion_tracker::remove_completion): Declare new
6807 function.
6808 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6809 when adding a C++ function symbol.
6810
724fd9ba
AB
68112020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6812
6813 * completer.c (completion_tracker::completion_hash_entry): Define
6814 new class.
6815 (advance_to_filename_complete_word_point): Call
6816 recompute_lowest_common_denominator.
6817 (completion_tracker::completion_tracker): Call discard_completions
6818 to setup the hash table.
6819 (completion_tracker::discard_completions): Allow for being called
6820 from the constructor, pass new equal function, and element deleter
6821 when constructing the hash table. Initialise new class member
6822 variables.
6823 (completion_tracker::maybe_add_completion): Remove use of
6824 m_entries_vec, and store more information into m_entries_hash.
6825 (completion_tracker::recompute_lcd_visitor): New function, most
6826 content taken from...
6827 (completion_tracker::recompute_lowest_common_denominator):
6828 ...here, this now just visits each item in the hash calling the
6829 above visitor.
6830 (completion_tracker::build_completion_result): Remove use of
6831 m_entries_vec, call recompute_lowest_common_denominator.
6832 * completer.h (completion_tracker::have_completions): Remove use
6833 of m_entries_vec.
6834 (completion_tracker::completion_hash_entry): Declare new class.
6835 (completion_tracker::recompute_lowest_common_denominator): Change
6836 function signature.
6837 (completion_tracker::recompute_lcd_visitor): Declare new function.
6838 (completion_tracker::m_entries_vec): Delete.
6839 (completion_tracker::m_entries_hash): Initialize to NULL.
6840 (completion_tracker::m_lowest_common_denominator_valid): New
6841 member variable.
6842 (completion_tracker::m_lowest_common_denominator_max_length): New
6843 member variable.
6844
5a82b8a1
KR
68452020-03-17 Kamil Rytarowski <n54@gmx.com>
6846
6847 * regformats/regdef.h: Put reg in gdb namespace.
6848
fb516a69
KR
68492020-03-17 Kamil Rytarowski <n54@gmx.com>
6850
6851 * i386-bsd-nat.c (gdb_ptrace): New.
6852 * (i386bsd_fetch_inferior_registers,
6853 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6854 * (i386bsd_fetch_inferior_registers,
6855 i386bsd_store_inferior_registers) Use gdb_ptrace.
6856
1c0aa1fb
KR
68572020-03-17 Kamil Rytarowski <n54@gmx.com>
6858
6859 * amd64-bsd-nat.c (gdb_ptrace): New.
6860 * (amd64bsd_fetch_inferior_registers,
6861 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6862 * (amd64bsd_fetch_inferior_registers,
6863 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6864
5ccd2fb7
KR
68652020-03-17 Kamil Rytarowski <n54@gmx.com>
6866
6867 * user-regs.c (user_reg::read): Rename to...
6868 (user_reg::xread): ...this.
6869 * (append_user_reg): Rename argument `read' to `xread'.
6870 * (user_reg_add_builtin): Likewise.
6871 * (user_reg_add): Likewise.
6872 * (value_of_user_reg): Likewise.
6873
2108a63a
KR
68742020-03-17 Kamil Rytarowski <n54@gmx.com>
6875
6876 * sparc-nat.c (gdb_ptrace): New.
6877 * sparc-nat.c (sparc_fetch_inferior_registers)
6878 (sparc_store_inferior_registers) Remove obsolete comment.
6879 * sparc-nat.c (sparc_fetch_inferior_registers)
6880 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6881 * sparc-nat.c (sparc_fetch_inferior_registers)
6882 (sparc_store_inferior_registers) Use gdb_ptrace.
6883
a225c9a8
KR
68842020-03-17 Kamil Rytarowski <n54@gmx.com>
6885
6886 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6887 it to the ptrace call.
6888 * sh-nbsd-nat.c (store_registers): Likewise.
6889
98097623
KR
68902020-03-17 Kamil Rytarowski <n54@gmx.com>
6891
6892 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6893 nbsd_nat_target instead of inf_ptrace_target.
6894 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6895 nbsd_nat_target.
6896
9e38d619
KR
68972020-03-17 Kamil Rytarowski <n54@gmx.com>
6898
6899 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6900
a2ecbe9f
KR
69012020-03-17 Kamil Rytarowski <n54@gmx.com>
6902
6903 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6904 <sys/sysctl.h>.
6905 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6906
58990295
TV
69072020-03-17 Tom de Vries <tdevries@suse.de>
6908
6909 PR gdb/23710
6910 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6911 fields.
6912 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6913 fields.
6914 (process_imported_unit_die): Skip import of c++ CUs.
6915
771dd3a8
TT
69162020-03-16 Tom Tromey <tom@tromey.com>
6917
6918 * p-valprint.c (pascal_object_print_value): Initialize
6919 base_value.
6920
817a7585
AK
69212020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6922 Shahab Vahedi <shahab@synopsys.com>
6923
6924 * Makefile.in: Add arch/arc.o
6925 * configure.tgt: Likewise.
6926 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6927 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6928 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6929 * arc-tdep.h (arc_read_description): Add proto type.
6930 * arch/arc.c: New file.
6931 * arch/arc.h: Likewise.
6932 * features/Makefile: Replace old target descriptions with new.
6933 * features/arc-arcompact.c: Remove.
6934 * features/arc-arcompact.xml: Likewise.
6935 * features/arc-v2.c: Likewise
6936 * features/arc-v2.xml: Likewise
6937 * features/arc/aux-arcompact.xml: New file.
6938 * features/arc/aux-v2.xml: Likewise.
6939 * features/arc/core-arcompact.xml: Likewise.
6940 * features/arc/core-v2.xml: Likewise.
6941 * features/arc/aux-arcompact.c: Generate.
6942 * features/arc/aux-v2.c: Likewise.
6943 * features/arc/core-arcompact.c: Likewise.
6944 * features/arc/core-v2.c: Likewise.
6945 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6946
67430cd0
TT
69472020-03-16 Tom Tromey <tromey@adacore.com>
6948
6949 PR gdb/25663:
6950 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6951 putting value into bcache.
6952
30efb6c7
SM
69532020-03-16 Simon Marchi <simon.marchi@efficios.com>
6954
6955 PR gdb/21500
6956 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6957 to...
6958 (amd64_windows_init_abi_common): ... this. Don't set size of
6959 long type.
6960 (amd64_windows_init_abi): New function.
6961 (amd64_cygwin_init_abi): New function.
6962 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6963 the Cygwin OS ABI.
6964 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6965 comment.
6966
8db52437
SM
69672020-03-16 Simon Marchi <simon.marchi@efficios.com>
6968
6969 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6970 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6971 (pe_import_directory_entry): New struct type.
6972 (is_linked_with_cygwin_dll): New function.
6973 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6974 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6975 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6976
5982a56a
SM
69772020-03-16 Simon Marchi <simon.marchi@efficios.com>
6978
6979 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6980 i386_cygwin_core_osabi_sniffer.
6981
7a1998df
SM
69822020-03-16 Simon Marchi <simon.marchi@efficios.com>
6983
6984 * i386-cygwin-tdep.c: Rename to...
6985 * i386-windows-tdep.c: ... this.
6986 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6987 i386-windows-tdep.c.
6988 * configure.tgt: Likewise.
6989
053205cc
SM
69902020-03-16 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6993 * osabi.c (gdb_osabi_names): Add "Windows".
6994 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6995 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6996 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6997 i386_cygwin_osabi_sniffer.
6998 (_initialize_i386_cygwin_tdep): Register OS ABI
6999 GDB_OSABI_WINDOWS for i386.
7000 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7001 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7002 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7003 for x86-64.
7004 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7005 when the target matches '*-*-mingw*'.
7006
fe4b2ee6
SM
70072020-03-16 Simon Marchi <simon.marchi@efficios.com>
7008
7009 * defs.h (enum gdb_osabi): Move to...
7010 * osabi.h (enum gdb_osabi): ... here.
7011 * gdbarch.sh: Include osabi.h in gdbarch.h.
7012 * gdbarch.h: Re-generate.
7013
cb9b645d
SM
70142020-03-16 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7017 function.
7018 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7019
3293bbaf
TT
70202020-03-14 Tom Tromey <tom@tromey.com>
7021
7022 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7023 for C++.
7024 (c_type_print_modifier): Likewise. Add "language" parameter.
7025 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7026 (c_type_print_base_1): Update.
7027 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7028 constants.
7029 * type-stack.c (type_stack::insert): Handle tp_atomic and
7030 tp_restrict.
7031 (type_stack::follow_type_instance_flags): Likewise.
7032 (type_stack::follow_types): Likewise. Merge type-following code.
7033 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7034 (space_identifier, cv_with_space_id)
7035 (const_or_volatile_or_space_identifier_noopt)
7036 (const_or_volatile_or_space_identifier): Remove.
7037 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7038 rules.
7039 (ptr_operator, typebase): Update.
7040 (enum token_flag) <FLAG_C>: New constant.
7041 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7042 "_Atomic".
7043 (lex_one_token): Handle FLAG_C.
7044
154151a6
KR
70452020-03-14 Kamil Rytarowski <n54@gmx.com>
7046
7047 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7048 it to the ptrace call.
7049 * m68k-bsd-nat.c (store_registers): Likewise.
7050
bc107784
KR
70512020-03-14 Kamil Rytarowski <n54@gmx.com>
7052
7053 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7054 gdb_byte *.
7055 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7056 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7057 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7058
01a80117
KR
70592020-03-14 Kamil Rytarowski <n54@gmx.com>
7060
7061 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7062 nbsd_nat_target instead of inf_ptrace_target.
7063 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7064 nbsd_nat_target.
7065
f90280ca
KR
70662020-03-14 Kamil Rytarowski <n54@gmx.com>
7067
7068 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7069 register_t.
7070
6def66f1
KR
70712020-03-14 Kamil Rytarowski <n54@gmx.com>
7072
7073 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7074 it to the ptrace call.
7075 * alpha-bsd-nat.c (store_registers): Likewise.
7076
66eaca97
KR
70772020-03-14 Kamil Rytarowski <n54@gmx.com>
7078
7079 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7080 includes.
7081 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7082 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7083 fill_fpregset): Likewise.
7084
4fed520b
KR
70852020-03-14 Kamil Rytarowski <n54@gmx.com>
7086
7087 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7088 nbsd_nat_target instead of inf_ptrace_target.
7089 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7090 nbsd_nat_target.
7091
2190cf06
KR
70922020-03-14 Kamil Rytarowski <n54@gmx.com>
7093
7094 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7095 register_t.
7096
75c56d3d
KR
70972020-03-14 Kamil Rytarowski <n54@gmx.com>
7098
7099 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7100 it to the ptrace call.
7101 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7102 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7103 * arm-nbsd-nat.c (store_register): Likewise.
7104 * arm-nbsd-nat.c (store_regs): Likewise.
7105 * arm-nbsd-nat.c (store_fp_register): Likewise.
7106 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7107
6018d381
KR
71082020-03-14 Kamil Rytarowski <n54@gmx.com>
7109
7110 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7111 nbsd_nat_target instead of inf_ptrace_target.
7112 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7113 nbsd_nat_target.
7114
013f99f0
KR
71152020-03-14 Kamil Rytarowski <n54@gmx.com>
7116
7117 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7118 it to the ptrace call.
7119 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7120
12753073
KR
71212020-03-14 Kamil Rytarowski <n54@gmx.com>
7122
6227b330
KR
7123 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7124 it to the ptrace call.
7125 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7126
71272020-03-14 Kamil Rytarowski <n54@gmx.com>
7128
7129 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7130 gdb_byte *.
12753073
KR
7131 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7132
d5be5fa4
KR
71332020-03-14 Kamil Rytarowski <n54@gmx.com>
7134
7135 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7136 instead of inf_ptrace_target.
7137 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7138 nbsd_nat_target.
7139
8110f842
KR
71402020-03-14 Kamil Rytarowski <n54@gmx.com>
7141
7142 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7143 register_t.
7144
52feded7
KR
71452020-03-14 Kamil Rytarowski <n54@gmx.com>
7146
7147 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7148 register_t.
7149
25567eee
KR
71502020-03-14 Kamil Rytarowski <n54@gmx.com>
7151
7152 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7153 register_t.
7154
426a9c18
TT
71552020-03-13 Tom Tromey <tom@tromey.com>
7156
7157 * value.h (val_print): Don't declare.
7158 * valprint.h (val_print_array_elements)
7159 (val_print_scalar_formatted, generic_val_print): Don't declare.
7160 * valprint.c (generic_val_print_array): Take a struct value.
7161 (generic_val_print_ptr, generic_val_print_memberptr)
7162 (generic_val_print_bool, generic_val_print_int)
7163 (generic_val_print_char, generic_val_print_complex)
7164 (generic_val_print): Remove.
7165 (generic_value_print): Update.
7166 (do_val_print): Remove unused parameters. Don't call
7167 la_val_print.
7168 (val_print): Remove.
7169 (common_val_print): Update. Don't call value_check_printable.
7170 (val_print_scalar_formatted, val_print_array_elements): Remove.
7171 * rust-lang.c (rust_val_print): Remove.
7172 (rust_language_defn): Update.
7173 * p-valprint.c (pascal_val_print): Remove.
7174 (pascal_value_print_inner): Update.
7175 (pascal_object_print_val_fields, pascal_object_print_val):
7176 Remove.
7177 (pascal_object_print_static_field): Update.
7178 * p-lang.h (pascal_val_print): Don't declare.
7179 * p-lang.c (pascal_language_defn): Update.
7180 * opencl-lang.c (opencl_language_defn): Update.
7181 * objc-lang.c (objc_language_defn): Update.
7182 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7183 * m2-lang.h (m2_val_print): Don't declare.
7184 * m2-lang.c (m2_language_defn): Update.
7185 * language.h (struct language_defn) <la_val_print>: Remove.
7186 * language.c (unk_lang_value_print_inner): Rename. Change
7187 argument types.
7188 (unknown_language_defn, auto_language_defn): Update.
7189 * go-valprint.c (go_val_print): Remove.
7190 * go-lang.h (go_val_print): Don't declare.
7191 * go-lang.c (go_language_defn): Update.
7192 * f-valprint.c (f_val_print): Remove.
7193 * f-lang.h (f_value_print): Don't declare.
7194 * f-lang.c (f_language_defn): Update.
7195 * d-valprint.c (d_val_print): Remove.
7196 * d-lang.h (d_value_print): Don't declare.
7197 * d-lang.c (d_language_defn): Update.
7198 * cp-valprint.c (cp_print_value_fields)
7199 (cp_print_value_fields_rtti, cp_print_value): Remove.
7200 (cp_print_static_field): Update.
7201 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7202 (c_val_print_struct, c_val_print_union, c_val_print_int)
7203 (c_val_print_memberptr, c_val_print): Remove.
7204 * c-lang.h (c_val_print_array, cp_print_value_fields)
7205 (cp_print_value_fields_rtti): Don't declare.
7206 * c-lang.c (c_language_defn, cplus_language_defn)
7207 (asm_language_defn, minimal_language_defn): Update.
7208 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7209 (ada_val_print_enum): Take a struct value.
7210 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7211 (ada_val_print): Remove.
7212 (ada_value_print_1): Update.
7213 (printable_val_type): Remove.
7214 * ada-lang.h (ada_val_print): Don't declare.
7215 * ada-lang.c (ada_language_defn): Update.
7216
42331a1e
TT
72172020-03-13 Tom Tromey <tom@tromey.com>
7218
7219 * valprint.c (do_val_print): Update.
7220 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7221 a struct value.
7222 (value_to_value_object_no_release): Declare.
7223 * python/py-value.c (value_to_value_object_no_release): New
7224 function.
7225 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7226 struct value.
7227 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7228 function.
7229 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7230 a struct value.
7231 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7232 Declare.
7233 (gdbscm_apply_val_pretty_printer): Take a struct value.
7234 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7235 value.
7236 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7237 value.
7238 * extension-priv.h (struct extension_language_ops)
7239 <apply_val_pretty_printer>: Take a struct value.
7240 * cp-valprint.c (cp_print_value): Create a struct value.
7241 (cp_print_value): Update.
7242
3a916a97
TT
72432020-03-13 Tom Tromey <tom@tromey.com>
7244
7245 * ada-valprint.c (print_field_values): Call common_val_print.
7246
b59eac37
TT
72472020-03-13 Tom Tromey <tom@tromey.com>
7248
7249 * ada-valprint.c (val_print_packed_array_elements): Remove
7250 bitoffset and val parameters. Call common_val_print.
7251 (ada_val_print_string): Remove offset, address, and original_value
7252 parameters.
7253 (ada_val_print_array): Update.
7254 (ada_value_print_array): New function.
7255 (ada_value_print_1): Call it.
7256
03371129
TT
72572020-03-13 Tom Tromey <tom@tromey.com>
7258
7259 * ada-valprint.c (ada_value_print): Use common_val_print.
7260
2e088f8b
TT
72612020-03-13 Tom Tromey <tom@tromey.com>
7262
7263 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7264
39ef85a8
TT
72652020-03-13 Tom Tromey <tom@tromey.com>
7266
7267 * ada-valprint.c (ada_value_print_num): New function.
7268 (ada_value_print_1): Use it.
7269
b9fa6e07
TT
72702020-03-13 Tom Tromey <tom@tromey.com>
7271
7272 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7273
416595d6
TT
72742020-03-13 Tom Tromey <tom@tromey.com>
7275
7276 * ada-valprint.c (ada_value_print_ptr): New function.
7277 (ada_value_print_1): Use it.
7278
5b5e15ec
TT
72792020-03-13 Tom Tromey <tom@tromey.com>
7280
7281 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7282 call common_val_print.
7283 (ada_val_print_1): Update.
7284 (ada_value_print_1): New function.
7285 (ada_value_print_inner): Rewrite.
7286
fbf54e75
TT
72872020-03-13 Tom Tromey <tom@tromey.com>
7288
7289 * cp-valprint.c (cp_print_value_fields): Update.
7290 (cp_print_value): New function.
7291
64b653ca
TT
72922020-03-13 Tom Tromey <tom@tromey.com>
7293
7294 * m2-valprint.c (m2_value_print_inner): Use
7295 cp_print_value_fields.
7296 * cp-valprint.c (cp_print_value_fields): New function.
7297 * c-valprint.c (c_value_print_struct): New function.
7298 (c_value_print_inner): Use c_value_print_struct.
7299 * c-lang.h (cp_print_value_fields): Declare.
7300
6999f067
TT
73012020-03-13 Tom Tromey <tom@tromey.com>
7302
7303 * c-valprint.c (c_value_print_array): New function.
7304 (c_value_print_inner): Use it.
7305
ce80b8bd
TT
73062020-03-13 Tom Tromey <tom@tromey.com>
7307
7308 * c-valprint.c (c_value_print_memberptr): New function.
7309 (c_value_print_inner): Use it.
7310
2faac269
TT
73112020-03-13 Tom Tromey <tom@tromey.com>
7312
7313 * c-valprint.c (c_value_print_int): New function.
7314 (c_value_print_inner): Use it.
7315
da3e2c29
TT
73162020-03-13 Tom Tromey <tom@tromey.com>
7317
7318 * c-valprint.c (c_value_print_ptr): New function.
7319 (c_value_print_inner): Use it.
7320
50836231
TT
73212020-03-13 Tom Tromey <tom@tromey.com>
7322
7323 * c-valprint.c (c_value_print_inner): Rewrite.
7324
4f412b6e
TT
73252020-03-13 Tom Tromey <tom@tromey.com>
7326
7327 * valprint.c (generic_value_print_complex): New function.
7328 (generic_value_print): Use it.
7329
f5354008
TT
73302020-03-13 Tom Tromey <tom@tromey.com>
7331
7332 * valprint.c (generic_val_print_float): Don't call
7333 val_print_scalar_formatted.
7334 (generic_val_print, generic_value_print): Update.
7335
3eec3b05
TT
73362020-03-13 Tom Tromey <tom@tromey.com>
7337
7338 * valprint.c (generic_value_print_char): New function
7339 (generic_value_print): Use it.
7340
fdddfccb
TT
73412020-03-13 Tom Tromey <tom@tromey.com>
7342
7343 * valprint.c (generic_value_print_int): New function.
7344 (generic_value_print): Use it.
7345
6dde7521
TT
73462020-03-13 Tom Tromey <tom@tromey.com>
7347
7348 * valprint.c (generic_value_print_bool): New function.
7349 (generic_value_print): Use it.
7350
4112d2e6
TT
73512020-03-13 Tom Tromey <tom@tromey.com>
7352
7353 * valprint.c (generic_val_print_func): Simplify.
7354 (generic_val_print, generic_value_print): Update.
7355
65786af6
TT
73562020-03-13 Tom Tromey <tom@tromey.com>
7357
7358 * valprint.c (generic_val_print_flags): Remove.
7359 (generic_val_print, generic_value_print): Update.
7360 (val_print_type_code_flags): Add original_value parameter.
7361
40f3ce18
TT
73622020-03-13 Tom Tromey <tom@tromey.com>
7363
7364 * valprint.c (generic_val_print): Update.
7365 (generic_value_print): Update.
7366 * valprint.c (generic_val_print_enum): Don't call
7367 val_print_scalar_formatted.
7368
2a5b130b
TT
73692020-03-13 Tom Tromey <tom@tromey.com>
7370
7371 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7372 * valprint.c (generic_value_print_ptr): New function.
7373
abc66ce9
TT
73742020-03-13 Tom Tromey <tom@tromey.com>
7375
7376 * valprint.c (generic_value_print): Rewrite.
7377
07a32858
TT
73782020-03-13 Tom Tromey <tom@tromey.com>
7379
7380 * p-valprint.c (pascal_object_print_value_fields)
7381 (pascal_object_print_value): New functions.
7382
64d64d3a
TT
73832020-03-13 Tom Tromey <tom@tromey.com>
7384
7385 * p-valprint.c (pascal_value_print_inner): Rewrite.
7386
6a95a1f5
TT
73872020-03-13 Tom Tromey <tom@tromey.com>
7388
7389 * f-valprint.c (f_value_print_innner): Rewrite.
7390
59fcdac6
TT
73912020-03-13 Tom Tromey <tom@tromey.com>
7392
7393 * m2-valprint.c (m2_print_unbounded_array): New overload.
7394 (m2_print_unbounded_array): Update.
7395 (m2_print_array_contents): Take a struct value.
7396 (m2_value_print_inner): Rewrite.
7397
d133c3e1
TT
73982020-03-13 Tom Tromey <tom@tromey.com>
7399
7400 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7401 (d_value_print_inner): New function.
7402 * d-lang.h (d_value_print_inner): Declare.
7403 * d-lang.c (d_language_defn): Use d_value_print_inner.
7404
23b0f06b
TT
74052020-03-13 Tom Tromey <tom@tromey.com>
7406
7407 * go-valprint.c (go_value_print_inner): New function.
7408 * go-lang.h (go_value_print_inner): Declare.
7409 * go-lang.c (go_language_defn): Use go_value_print_inner.
7410
5f56f7cb
TT
74112020-03-13 Tom Tromey <tom@tromey.com>
7412
7413 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7414 API.
7415 (rust_val_print): Rewrite.
7416 (rust_value_print_inner): New function, from rust_val_print.
7417 (rust_language_defn): Use rust_value_print_inner.
7418
26792ee0
TT
74192020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * ada-valprint.c (ada_value_print_inner): New function.
7422 * ada-lang.h (ada_value_print_inner): Declare.
7423 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7424
24051bbe
TT
74252020-03-13 Tom Tromey <tom@tromey.com>
7426
7427 * f-valprint.c (f_value_print_innner): New function.
7428 * f-lang.h (f_value_print_innner): Declare.
7429 * f-lang.c (f_language_defn): Use f_value_print_innner.
7430
c0941be6
TT
74312020-03-13 Tom Tromey <tom@tromey.com>
7432
7433 * p-valprint.c (pascal_value_print_inner): New function.
7434 * p-lang.h (pascal_value_print_inner): Declare.
7435 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7436
62c4663d
TT
74372020-03-13 Tom Tromey <tom@tromey.com>
7438
7439 * m2-valprint.c (m2_value_print_inner): New function.
7440 * m2-lang.h (m2_value_print_inner): Declare.
7441 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7442
62182190
TT
74432020-03-13 Tom Tromey <tom@tromey.com>
7444
7445 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7446 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7447 * c-valprint.c (c_value_print_inner): New function.
7448 * c-lang.h (c_value_print_inner): Declare.
7449 * c-lang.c (c_language_defn, cplus_language_defn)
7450 (asm_language_defn, minimal_language_defn): Use
7451 c_value_print_inner.
7452
1e592a8a
TT
74532020-03-13 Tom Tromey <tom@tromey.com>
7454
7455 * p-valprint.c (pascal_object_print_value_fields): Now static.
7456 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7457
7fe471e9
TT
74582020-03-13 Tom Tromey <tom@tromey.com>
7459
7460 * c-valprint.c (c_val_print_array): Simplify.
7461
d121c6ce
TT
74622020-03-13 Tom Tromey <tom@tromey.com>
7463
7464 * valprint.c (value_print_array_elements): New function.
7465 * valprint.h (value_print_array_elements): Declare.
7466
4dba70ee
TT
74672020-03-13 Tom Tromey <tom@tromey.com>
7468
7469 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7470 * mips-tdep.c (mips_print_register): Use
7471 value_print_scalar_formatted.
7472
4f9ae810
TT
74732020-03-13 Tom Tromey <tom@tromey.com>
7474
7475 * valprint.h (value_print_scalar_formatted): Declare.
7476 * valprint.c (value_print_scalar_formatted): New function.
7477
156bfec9
TT
74782020-03-13 Tom Tromey <tom@tromey.com>
7479
7480 * valprint.h (generic_value_print): Declare.
7481 * valprint.c (generic_value_print): New function.
7482
2b4e573d
TT
74832020-03-13 Tom Tromey <tom@tromey.com>
7484
7485 * valprint.c (do_val_print): Call la_value_print_inner, if
7486 available.
7487 * rust-lang.c (rust_language_defn): Update.
7488 * p-lang.c (pascal_language_defn): Update.
7489 * opencl-lang.c (opencl_language_defn): Update.
7490 * objc-lang.c (objc_language_defn): Update.
7491 * m2-lang.c (m2_language_defn): Update.
7492 * language.h (struct language_defn) <la_value_print_inner>: New
7493 member.
7494 * language.c (unknown_language_defn, auto_language_defn): Update.
7495 * go-lang.c (go_language_defn): Update.
7496 * f-lang.c (f_language_defn): Update.
7497 * d-lang.c (d_language_defn): Update.
7498 * c-lang.c (c_language_defn, cplus_language_defn)
7499 (asm_language_defn, minimal_language_defn): Update.
7500 * ada-lang.c (ada_language_defn): Update.
7501
a1f6a07c
TT
75022020-03-13 Tom Tromey <tom@tromey.com>
7503
7504 * c-valprint.c (c_value_print): Use common_val_print.
7505
410cf315
TT
75062020-03-13 Tom Tromey <tom@tromey.com>
7507
7508 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7509
72a45c93
TT
75102020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * f-valprint.c (f77_print_array_1, f_val_print): Use
7513 common_val_print.
7514
040f66bd
TT
75152020-03-13 Tom Tromey <tom@tromey.com>
7516
7517 * riscv-tdep.c (riscv_print_one_register_info): Use
7518 common_val_print.
7519
a6e05a6c
TT
75202020-03-13 Tom Tromey <tom@tromey.com>
7521
7522 * mi/mi-main.c (output_register): Use common_val_print.
7523
3444c526
TT
75242020-03-13 Tom Tromey <tom@tromey.com>
7525
7526 * infcmd.c (default_print_one_register_info): Use
7527 common_val_print.
7528
c2a44efe
TT
75292020-03-13 Tom Tromey <tom@tromey.com>
7530
7531 * valprint.h (common_val_print_checked): Declare.
7532 * valprint.c (common_val_print_checked): New function.
7533 * stack.c (print_frame_arg): Use common_val_print_checked.
7534
b0c26e99
TT
75352020-03-13 Tom Tromey <tom@tromey.com>
7536
7537 * valprint.c (do_val_print): New function, from val_print.
7538 (val_print): Use do_val_print.
7539 (common_val_print): Use do_val_print.
7540
ce3acbe9
TT
75412020-03-13 Tom Tromey <tom@tromey.com>
7542
7543 * valprint.c (value_print): Use scoped_value_mark.
7544
96c7f873
TV
75452020-03-13 Tom de Vries <tdevries@suse.de>
7546
7547 PR symtab/25646
7548 * psymtab.c (partial_symtab::partial_symtab): Don't set
7549 globals_offset and statics_offset. Push element onto
7550 current_global_psymbols and current_static_psymbols stacks.
7551 (concat): New function.
7552 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7553 element from current_global_psymbols and current_static_psymbols
7554 stacks. Concat popped elements to global_psymbols and
7555 static_symbols.
7556 (add_psymbol_to_list): Use current_global_psymbols and
7557 current_static_psymbols stacks.
7558 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7559 current_static_psymbols fields.
7560
6ba0a321
CB
75612020-03-12 Christian Biesinger <cbiesinger@google.com>
7562
7563 * corelow.c (sniff_core_bfd): Remove.
7564 (class core_target) <m_core_vec>: Remove.
7565 (core_target::core_target): Update.
7566 (core_file_fns): Remove.
7567 (deprecated_add_core_fns): Remove.
7568 (default_core_sniffer): Remove.
7569 (sniff_core_bfd): Remove.
7570 (default_check_format): Remove.
7571 (gdb_check_format): Remove.
7572 (core_target_open): Update.
7573 (core_target::get_core_register_section): Update.
7574 (get_core_registers_cb): Update.
7575 (core_target::fetch_registers): Update.
7576 * gdbcore.h (struct core_fns): Remove.
7577 (deprecated_add_core_fns): Remove.
7578 (default_core_sniffer): Remove.
7579 (default_check_format): Remove.
7580
227031b2
TT
75812020-03-12 Tom Tromey <tom@tromey.com>
7582
7583 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7584 CORE_ADDR.
7585 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7586
53807e9f
TT
75872020-03-12 Tom Tromey <tom@tromey.com>
7588
7589 * remote.c (remote_target::download_tracepoint)
7590 (remote_target::enable_tracepoint)
7591 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7592 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7593 sprintf_vma.
7594
64f25102
TT
75952020-03-12 Tom Tromey <tom@tromey.com>
7596
7597 * symfile-mem.c: Update CORE_ADDR size assert.
7598
272cd5a3
SM
75992020-03-12 Simon Marchi <simon.marchi@efficios.com>
7600
7601 * selftest.m4: Move to gdbsupport/.
7602 * acinclude.m4: Update path to selftest.m4.
7603
74cd3f9d
SM
76042020-03-12 Simon Marchi <simon.marchi@efficios.com>
7605
7606 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7607 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7608 gdbarch-selfselftests.c and selftest-arch.c.
7609 (SUBDIR_UNITTESTS_OBS): Rename to...
7610 (SELFTESTS_OBS): ... this.
7611 (COMMON_SFILES): Remove disasm-selftests.c and
7612 gdbarch-selftests.c.
7613 * configure.ac: Don't add selftest-arch.{c,o} to
7614 CONFIG_{SRCS,OBS}.
7615 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7616 preprocessor conditions.
7617
db6878ac
SM
76182020-03-12 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * configure.ac: Don't source bfd/development.sh.
7621 * selftest.m4: Modify comment.
7622 * configure: Re-generate.
7623
4d696a5c
SM
76242020-03-12 Simon Marchi <simon.marchi@efficios.com>
7625
7626 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7627 not "true" or "false".
7628 * configure: Re-generate.
7629
8dd8e1c7
CB
76302020-03-12 Christian Biesinger <cbiesinger@google.com>
7631
7632 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7633 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7634 renamed to arm_nbsd_supply_gregset.
7635 (fetch_register): Update to call arm_nbsd_supply_gregset.
7636 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7637 (arm_netbsd_nat_target::fetch_registers): Update.
7638 (fetch_elfcore_registers): Removed.
7639 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7640 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7641 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7642 not require NetBSD system headers.
7643 (arm_nbsd_regset): New struct.
7644 (arm_nbsd_iterate_over_regset_sections): New function.
7645 (arm_netbsd_init_abi_common): Updated to call
7646 set_gdbarch_iterate_over_regset_sections.
7647 * arm-nbsd-tdep.h: New file.
7648
dd69bf7a
KB
76492020-03-11 Kevin Buettner <kevinb@redhat.com>
7650
7651 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7652 recursion.
7653
a0761e34
SM
76542020-03-11 Simon Marchi <simon.marchi@efficios.com>
7655
7656 * configure: Re-generate.
7657
e7a82140
TT
76582020-03-11 Tom Tromey <tromey@adacore.com>
7659
7660 * ada-typeprint.c (print_choices): Fix comment.
7661
dcc050c8
AB
76622020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7663
7664 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7665 previous item in the list, when the list has no items.
7666
1c33af77
TV
76672020-03-11 Tom de Vries <tdevries@suse.de>
7668
7669 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7670 PROP_LOCLIST handling code.
7671
8c95582d
AB
76722020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7673
7674 * buildsym-legacy.c (record_line): Pass extra parameter to
7675 record_line.
7676 * buildsym.c (buildsym_compunit::record_line): Take an extra
7677 parameter, reduce duplication in the line table, and record the
7678 is_stmt flag in the line table.
7679 * buildsym.h (buildsym_compunit::record_line): Add extra
7680 parameter.
7681 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7682 non-statement lines.
7683 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7684 this to the symtab builder.
7685 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7686 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7687 through to dwarf_record_line_1.
7688 * infrun.c (process_event_stop_test): When stepping, don't stop at
7689 a non-statement instruction, and only refresh the step info when
7690 we land in the middle of a line's range. Also add an extra
7691 comment.
7692 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7693 field.
7694 * record-btrace.c (btrace_find_line_range): Only record lines
7695 marked as is-statement.
7696 * stack.c (frame_show_address): Show the frame address if we are
7697 in a non-statement sal.
7698 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7699 (maintenance_print_one_line_table): Print a header for the is_stmt
7700 column, and include is_stmt information in the output.
7701 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7702 preference to non-statements.
7703 (find_pcs_for_symtab_line): Prefer is-statement entries.
7704 (find_line_common): Likewise.
7705 * symtab.h (struct linetable_entry): Add is_stmt field.
7706 (struct symtab_and_line): Likewise.
7707 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7708 arranging the line table.
7709
e4003a34
TV
77102020-03-07 Tom de Vries <tdevries@suse.de>
7711
7712 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7713 DIE.
7714
e8932576
TT
77152020-03-07 Tom Tromey <tom@tromey.com>
7716
7717 * valops.c (value_literal_complex): Remove obsolete comment.
7718 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7719 comment.
7720
29734269
SM
77212020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7722
7723 * infrun.h: Forward-declare thread_info.
7724 (set_step_info): Add thread_info parameter, add doc.
7725 * infrun.c (set_step_info): Add thread_info parameter, move doc
7726 to header.
7727 * infrun.c (process_event_stop_test): Pass thread to
7728 set_step_info call.
7729 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7730 set_step_info.
7731 (prepare_one_step): Add thread_info parameter, pass it to
7732 set_step_frame and prepare_one_step (recursive) call.
7733 (step_1): Pass thread to prepare_one_step call.
7734 (step_command_fsm::should_stop): Pass thread to
7735 prepare_one_step.
7736 (until_next_fsm): Pass thread to set_step_frame call.
7737 (finish_command): Pass thread to set_step_info call.
7738
b7d64b29
HD
77392020-03-06 Hannes Domani <ssbssa@yahoo.de>
7740
7741 * windows-tdep.c (windows_solib_create_inferior_hook):
7742 Check if inferior is running.
7743
09f2921c
TV
77442020-03-06 Tom de Vries <tdevries@suse.de>
7745
7746 * NEWS: Fix "the the".
7747 * ctfread.c: Same.
7748
fd760e79
TV
77492020-03-06 Tom de Vries <tdevries@suse.de>
7750
7751 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7752
20ea4a60
AB
77532020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7754
7755 * .dir-locals.el: Add a comment referencing the other copies of
7756 this file.
7757
0afbabf0
JB
77582020-03-05 John Baldwin <jhb@FreeBSD.org>
7759
7760 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7761 psargs.
7762
842806cb
TBA
77632020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7764
7765 * .gitattributes: New file.
7766
be1e3d3e
TT
77672020-03-04 Tom Tromey <tom@tromey.com>
7768
7769 * symmisc.c (print_symbol_bcache_statistics)
7770 (print_objfile_statistics): Update.
7771 * symfile.c (allocate_symtab): Use intern.
7772 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7773 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7774 macro_cache>: Remove.
7775 <string_cache>: New member.
7776 (struct objfile) <intern>: New methods.
7777 * elfread.c (elf_symtab_read): Use intern.
7778 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7779 (dwarf2_compute_name, dwarf2_physname)
7780 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7781 names.
7782 (guess_partial_die_structure_name): Update.
7783 (partial_die_info::fixup): Intern name.
7784 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7785 name.
7786 (dwarf2_name): Intern name. Update.
7787 * buildsym.c (buildsym_compunit::get_macro_table): Use
7788 string_cache.
7789
4e7625fd
TT
77902020-03-04 Tom Tromey <tom@tromey.com>
7791
7792 * jit.c (bfd_open_from_target_memory): Make "target" const.
7793 * corefile.c (gnutarget): Now const.
7794 * gdbcore.h (gnutarget): Now const.
7795
46f9f931
HD
77962020-03-04 Hannes Domani <ssbssa@yahoo.de>
7797
7798 * NEWS: Mention support for WOW64 processes.
7799 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7800 (amd64_windows_segment_register_p): Remove static.
7801 (_initialize_amd64_windows_nat): Update.
7802 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7803 * i386-windows-nat.c (context_offset): Update.
7804 (i386_mappings): Rename and remove static.
7805 (i386_windows_segment_register_p): Remove static.
7806 (_initialize_i386_windows_nat): Update.
7807 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7808 (STATUS_WX86_SINGLE_STEP): New macro.
7809 (EnumProcessModulesEx): New macro.
7810 (Wow64SuspendThread): New macro.
7811 (Wow64GetThreadContext): New macro.
7812 (Wow64SetThreadContext): New macro.
7813 (Wow64GetThreadSelectorEntry): New macro.
7814 (windows_set_context_register_offsets): Add static.
7815 (windows_set_segment_register_p): Likewise.
7816 (windows_add_thread): Adapt for WOW64 processes.
7817 (windows_fetch_one_register): Likewise.
7818 (windows_nat_target::fetch_registers): Likewise.
7819 (windows_store_one_register): Likewise.
7820 (display_selector): Likewise.
7821 (display_selectors): Likewise.
7822 (handle_exception): Likewise.
7823 (windows_continue): Likewise.
7824 (windows_nat_target::resume): Likewise.
7825 (windows_add_all_dlls): Likewise.
7826 (do_initial_windows_stuff): Likewise.
7827 (windows_nat_target::attach): Likewise.
7828 (windows_get_exec_module_filename): Likewise.
7829 (windows_nat_target::create_inferior): Likewise.
7830 (windows_xfer_siginfo): Likewise.
7831 (_initialize_loadable): Initialize Wow64SuspendThread,
7832 Wow64GetThreadContext, Wow64SetThreadContext,
7833 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7834 * windows-nat.h (windows_set_context_register_offsets):
7835 Remove declaration.
7836 (windows_set_segment_register_p): Likewise.
7837 (i386_windows_segment_register_p): Add declaration.
7838 (amd64_windows_segment_register_p): Likewise.
7839
440cf44e
LM
78402020-03-04 Luis Machado <luis.machado@linaro.org>
7841
7842 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7843 in "info registers" for AArch64/ARM.
7844
7845 The change caused "info registers" to not print GPR's.
7846
7847 gdb/ChangeLog:
7848
7849 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7850
7851 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7852 when reg->group is empty and reggroup is not.
7853
1009d92f
TT
78542020-03-03 Tom Tromey <tromey@adacore.com>
7855
7856 * dwarf2/frame.c (struct dwarf2_frame_cache)
7857 <checked_tailcall_bottom, entry_cfa_sp_offset,
7858 entry_cfa_sp_offset_p>: Remove members.
7859 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7860 (dwarf2_frame_prev_register): Don't call
7861 dwarf2_tailcall_sniffer_first.
7862 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7863 * frame-unwind.c (add_unwinder): New fuction.
7864 (frame_unwind_init): Use it. Add tailcall unwinder.
7865
5e5d66b6
AB
78662020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7867 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7868
7869 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7870 value should be printed as true.
7871
584cf46d
HD
78722020-03-03 Hannes Domani <ssbssa@yahoo.de>
7873
7874 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7875 (windows_init_abi): Set and use windows_so_ops.
7876
7b973adc
SDJ
78772020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7878
7879 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7880 when verifying if dealing with a convenience variable.
7881
bb7b70ab
LM
78822020-03-03 Luis Machado <luis.machado@linaro.org>
7883
7884 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7885
9822cb57
SM
78862020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7887
7888 * infrun.c (gdbarch_supports_displaced_stepping): New.
7889 (use_displaced_stepping): Break up conditions in smaller pieces.
7890 Use gdbarch_supports_displaced_stepping.
7891 (displaced_step_prepare_throw): Use
7892 gdbarch_supports_displaced_stepping.
7893
63e163f2
AB
78942020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7895
7896 * NEWS: Mention new behaviour of the history filename.
7897 * top.c (write_history_p): Add comment.
7898 (show_write_history_p): Add header comment, give a different
7899 message when history writing is on, but the history filename is
7900 empty.
7901 (history_filename): Add comment.
7902 (history_filename_empty): New function.
7903 (show_history_filename): Add header comment, give a different
7904 message when the filename is empty.
7905 (init_history): Compare history_filename against nullptr, and only
7906 read history if the filename is not empty.
7907 (set_history_filename): Add header comment, and only make
7908 non-empty filenames absolute.
7909 (init_main): Make the filename argument to 'set history filename'
7910 optional.
7911
81b86b97
CB
79122020-03-02 Christian Biesinger <cbiesinger@google.com>
7913
7914 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7915 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7916 (fetch_fp_register): Update.
7917 (fetch_fp_regs): Update.
7918 (store_fp_register): Update.
7919 (store_fp_regs): Update.
7920 (arm_netbsd_nat_target::read_description): New function.
7921 (fetch_elfcore_registers): Update.
7922
24ed6739
AB
79232020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7924
7925 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7926 general_thread if the stop reply is missing a thread-id.
7927 (remote_target::process_stop_reply): Use the first non-exited
7928 thread if the target didn't pass a thread-id.
7929 * infrun.c (do_target_wait): Move call to
7930 switch_to_inferior_no_thread to ....
7931 (do_target_wait_1): ... here.
7932
a84bb2a0
JT
79332020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7934
7935 * debuginfod-support.c: Include defs.h first.
7936
658dadf0
TV
79372020-02-28 Tom de Vries <tdevries@suse.de>
7938
7939 * symfile.c (set_initial_language): Use default language for lookup.
7940
4ebe4877
SM
79412020-02-28 Simon Marchi <simon.marchi@efficios.com>
7942
7943 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7944 reader variable, pass `this` to read_cutu_die_from_dwo.
7945
e5da1139
AM
79462020-02-27 Aaron Merey <amerey@redhat.com>
7947
7948 * source.c (open_source_file): Check for nullptr when computing
7949 srcpath.
7950
317f7127
TT
79512020-02-27 Tom Tromey <tromey@adacore.com>
7952
7953 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7954 member.
7955 (dwarf2_add_field): Don't update nfields.
7956 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7957
3104d9ee
AB
79582020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7959
7960 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7961 abs.
7962
b83470bf
TT
79632020-02-26 Tom Tromey <tom@tromey.com>
7964
7965 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7966 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7967 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7968 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7969 per_cu_data.
7970
edfe0a0c
TT
79712020-02-26 Tom Tromey <tom@tromey.com>
7972
7973 * dwarf2/index-write.c (psym_index_map): Change type.
7974 (add_address_entry_worker, write_one_signatured_type)
7975 (recursively_count_psymbols, recursively_write_psymbols)
7976 (class debug_names, psyms_seen_size, write_gdbindex)
7977 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7978
0d79cdc4
AM
79792020-02-26 Aaron Merey <amerey@redhat.com>
7980
7981 * Makefile.in: Handle optional debuginfod support.
7982 * NEWS: Update.
7983 * README: Add --with-debuginfod summary.
7984 * config.in: Regenerate.
7985 * configure: Regenerate.
7986 * configure.ac: Handle optional debuginfod support.
7987 * debuginfod-support.c: debuginfod helper functions.
7988 * debuginfod-support.h: Ditto.
7989 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7990 summary.
7991 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7992 when a dwz file cannot be found.
7993 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7994 debuginfo file cannot be found.
7995 * source.c (open_source_file): Query debuginfod servers when a
7996 source file cannot be found.
7997 * top.c (print_gdb_configuration): Include
7998 --{with,without}-debuginfod in the output.
7999
b65ce565
JG
80002020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8001
8002 * thread.c (thr_try_catch_cmd): Print thread name.
8003
d4c9a4f8
SM
80042020-02-26 Simon Marchi <simon.marchi@efficios.com>
8005
8006 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8007 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8008 dwarf2_fetch_die_type_sect_off): Move to...
8009 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8010 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8011 dwarf2_fetch_die_type_sect_off): ... here.
8012 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8013 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8014 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8015
0dce4280
TV
80162020-02-26 Tom de Vries <tdevries@suse.de>
8017
8018 PR gdb/25603
8019 * symfile.c (set_initial_language): Exit-early if
8020 language_mode == language_mode_manual.
8021
450a1bfc
SM
80222020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8023
8024 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8025 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8026 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8027
9e80cfa1
AB
80282020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8029
8030 * gdbtypes.c (create_array_type_with_stride): Handle negative
8031 array strides.
8032 * valarith.c (value_subscripted_rvalue): Likewise.
8033
09624f1f
LM
80342020-02-25 Luis Machado <luis.machado@linaro.org>
8035
8036 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8037
8cb5117c
SM
80382020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8039
8040 * loc.h (dwarf2_get_die_type): Move to...
8041 * read.h (dwarf2_get_die_type): ... here.
8042 * read.c (dwarf2_get_die_type): Move doc to header.
8043
c325c44e
JB
80442020-02-25 Joel Brobecker <brobecker@adacore.com>
8045
8046 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8047 'gnulib/Makefile.in' to the list.
8048
4ac93832
TT
80492020-02-24 Tom Tromey <tom@tromey.com>
8050
8051 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8052 Remove.
8053 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8054 XOBNEWVEC.
8055
197400e8
TT
80562020-02-24 Tom Tromey <tom@tromey.com>
8057
8058 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8059 New method.
8060 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8061 (dw2_do_instantiate_symtab, dw2_get_file_names)
8062 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8063
76935768
TT
80642020-02-24 Tom Tromey <tom@tromey.com>
8065
8066 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8067 make_scoped_restore.
8068 (dwarf2_psymtab::read_symtab): Don't clear
8069 reading_partial_symbols.
8070
a88ef40d
TV
80712020-02-24 Tom de Vries <tdevries@suse.de>
8072
8073 PR gdb/25592
8074 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8075
c9af6521
TV
80762020-02-24 Tom de Vries <tdevries@suse.de>
8077
8078 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8079 commands layout next/prev/regs.
8080
5707a07a
TT
80812020-02-22 Tom Tromey <tom@tromey.com>
8082
8083 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8084 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8085
3b0fb49e
TT
80862020-02-22 Tom Tromey <tom@tromey.com>
8087
8088 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8089
283be8bf
TT
80902020-02-22 Tom Tromey <tom@tromey.com>
8091
8092 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8093 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8094 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8095 * tui/tui.c (_initialize_tui): Add usage text.
8096
ca793b96
TT
80972020-02-22 Tom Tromey <tom@tromey.com>
8098
8099 * tui/tui-win.c (tui_set_focus_command)
8100 (tui_set_win_height_command): Use error_no_arg.
8101 (_initialize_tui_win): Update help text.
8102 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8103
432b5c40
TT
81042020-02-22 Tom Tromey <tom@tromey.com>
8105
8106 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8107 * tui/tui-disasm.h (struct tui_disasm_window)
8108 <display_start_addr>: Declare.
8109 * tui/tui-source.h (struct tui_source_window)
8110 <display_start_addr>: Declare.
8111 * tui/tui-winsource.h (struct tui_source_window_base)
8112 <show_source_line, display_start_addr>: New methods.
8113 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8114 Rename and move to protected section.
8115 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8116 (tui_source_window_base::do_erase_source_content): Update.
8117 (tui_source_window_base::show_source_line): Now a method.
8118 (tui_source_window_base::show_source_content)
8119 (tui_source_window_base::tui_source_window_base)
8120 (tui_source_window_base::rerender)
8121 (tui_source_window_base::refill)
8122 (tui_source_window_base::do_scroll_horizontal)
8123 (tui_source_window_base::set_is_exec_point_at)
8124 (tui_source_window_base::update_breakpoint_info)
8125 (tui_source_window_base::update_exec_info): Update.
8126 * tui/tui-source.c (tui_source_window::set_contents)
8127 (tui_source_window::showing_source_p)
8128 (tui_source_window::do_scroll_vertical)
8129 (tui_source_window::location_matches_p)
8130 (tui_source_window::line_is_displayed): Update.
8131 (tui_source_window::display_start_addr): New method.
8132 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8133 (tui_disasm_window::do_scroll_vertical)
8134 (tui_disasm_window::location_matches_p): Update.
8135 (tui_disasm_window::display_start_addr): New method.
8136
01b1af32
TT
81372020-02-22 Tom Tromey <tom@tromey.com>
8138
8139 * NEWS: Add entry for gdb.register_window_type.
8140 * tui/tui-layout.h (window_factory): New typedef.
8141 (tui_register_window): Declare.
8142 * tui/tui-layout.c (saved_tui_windows): New global.
8143 (tui_apply_current_layout): Use it.
8144 (tui_register_window): New function.
8145 * python/python.c (do_start_initialization): Call
8146 gdbpy_initialize_tui.
8147 (python_GdbMethods): Add "register_window_type" function.
8148 * python/python-internal.h (gdbpy_register_tui_window)
8149 (gdbpy_initialize_tui): Declare.
8150 * python/py-tui.c: New file.
8151 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8152
fc96d20b
TT
81532020-02-22 Tom Tromey <tom@tromey.com>
8154
8155 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8156
935c78c0
TT
81572020-02-22 Tom Tromey <tom@tromey.com>
8158
8159 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8160 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8161 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8162 (tui_set_win_focus_to): Move from tui-win.c.
8163
0240c8f1
TT
81642020-02-22 Tom Tromey <tom@tromey.com>
8165
8166 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8167 functions.
8168 (known_window_types): New global.
8169 (tui_get_window_by_name): Reimplement.
8170 (initialize_known_windows): New function.
8171 (validate_window_name): Rewrite.
8172 (_initialize_tui_layout): Call initialize_known_windows.
8173
fdb01f0c
TT
81742020-02-22 Tom Tromey <tom@tromey.com>
8175
8176 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8177 Remove constants.
8178 * tui/tui-winsource.h (struct tui_source_window_base)
8179 <tui_source_window_base>: Remove parameter.
8180 * tui/tui-winsource.c
8181 (tui_source_window_base::tui_source_window_base): Remove
8182 parameter.
8183 (tui_source_window_base::refill): Update.
8184 * tui/tui-stack.h (struct tui_locator_window)
8185 <tui_locator_window>: Update.
8186 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8187 Default the constructor.
8188 * tui/tui-regs.h (struct tui_data_item_window)
8189 <tui_data_item_window>: Default the constructor.
8190 (struct tui_data_window) <tui_data_window>: Likewise.
8191 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8192 Default the constructor.
8193 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8194 Default the constructor.
8195 <type>: Remove.
8196 (struct tui_win_info) <tui_win_info>: Default the constructor.
8197 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8198 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8199 Default the constructor.
8200
865a5aec
TT
82012020-02-22 Tom Tromey <tom@tromey.com>
8202
8203 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8204 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8205 * tui/tui-win.c (tui_resize_all): Don't call
8206 tui_delete_invisible_windows.
8207 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8208 done.
8209 (tui_set_layout): Update.
8210 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8211 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8212 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8213
e098d18c
TT
82142020-02-22 Tom Tromey <tom@tromey.com>
8215
8216 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8217 correctly.
8218
eb9c8874
TT
82192020-02-22 Tom Tromey <tom@tromey.com>
8220
8221 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8222
7eed1a8e
TT
82232020-02-22 Tom Tromey <tom@tromey.com>
8224
8225 * tui/tui-winsource.h (struct tui_source_window_iterator)
8226 <inner_iterator>: New etytypedef.
8227 <tui_source_window_iterator>: Take "end" parameter.
8228 <tui_source_window_iterator>: Take iterator.
8229 <operator*, advance>: Update.
8230 <m_iter>: Change type.
8231 <m_end>: New field.
8232 (struct tui_source_windows) <begin, end>: Update.
8233 * tui/tui-layout.c (tui_windows): New global.
8234 (tui_apply_current_layout): Clear tui_windows.
8235 (tui_layout_window::apply): Update tui_windows.
8236 * tui/tui-data.h (tui_windows): Declare.
8237 (all_tui_windows): Now inline function.
8238 (class tui_window_iterator, struct all_tui_windows): Remove.
8239
7c043ba6
TT
82402020-02-22 Tom Tromey <tom@tromey.com>
8241
8242 PR tui/17850:
8243 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8244 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8245 "height" argument.
8246 (class tui_layout_window) <get_sizes>: Likewise.
8247 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8248 argument.
8249 <get_sizes>: Add "height" argument.
8250 <m_vertical>: New field.
8251 * tui/tui-layout.c (tui_layout_split::clone): Update.
8252 (tui_layout_split::get_sizes): Add "height" argument.
8253 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8254 (tui_new_layout_command): Parse "-horizontal".
8255 (_initialize_tui_layout): Update help string.
8256 (tui_layout_split::specification): Add "-horizontal" when needed.
8257 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8258 argument.
8259 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8260 New methods.
8261
6bc56648
TT
82622020-02-22 Tom Tromey <tom@tromey.com>
8263
8264 * tui/tui-layout.h (enum tui_adjust_result): New.
8265 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8266 (class tui_layout_window) <adjust_size>: Return
8267 tui_adjust_result. Rewrite.
8268 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8269 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8270
c22fef7e
TT
82712020-02-22 Tom Tromey <tom@tromey.com>
8272
8273 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8274 parameter and return types.
8275 (class tui_layout_base) <specification>: Add "depth".
8276 (class tui_layout_window) <specification>: Add "depth".
8277 (class tui_layout_split) <specification>: Add "depth".
8278 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8279 and return types.
8280 (tui_new_layout_command): Parse sub-layouts.
8281 (_initialize_tui_layout): Update help string.
8282 (tui_layout_window::specification): Add "depth".
8283 (add_layout_command): Update.
8284
ee325b61
TT
82852020-02-22 Tom Tromey <tom@tromey.com>
8286
8287 * NEWS: Add "tui new-layout" item.
8288 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8289 Add new-layout command to help text.
8290 (validate_window_name): New function.
8291 (tui_new_layout_command): New function.
8292 (_initialize_tui_layout): Register "new-layout".
8293 (tui_layout_window::specification): New method.
8294 (tui_layout_window::specification): New method.
8295 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8296 method.
8297 (class tui_layout_window) <specification>: New method.
8298 (class tui_layout_split) <specification>: New method.
8299
416eb92d
TT
83002020-02-22 Tom Tromey <tom@tromey.com>
8301
8302 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8303 * tui/tui-win.c (window_name_completer): Update comment.
8304 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8305 Declare method.
8306 (class tui_layout_window) <replace_window>: Likewise.
8307 (class tui_layout_split) <replace_window>: Likewise.
8308 (tui_set_layout): Don't declare.
8309 (tui_set_initial_layout): Declare function.
8310 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8311 (asm_regs_layout): New globals.
8312 (tui_current_layout, show_layout): Remove.
8313 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8314 (find_layout, tui_apply_layout): New function.
8315 (layout_completer): Remove.
8316 (tui_next_layout): Reimplement.
8317 (tui_next_layout_command): New function.
8318 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8319 (tui_regs_layout): Reimplement.
8320 (tui_regs_layout_command): New function.
8321 (extract_display_start_addr): Rewrite.
8322 (next_layout, prev_layout): Remove.
8323 (tui_layout_window::replace_window): New method.
8324 (tui_layout_split::replace_window): New method.
8325 (destroy_layout): New function.
8326 (layout_list): New global.
8327 (add_layout_command): New function.
8328 (initialize_layouts): Update.
8329 (tui_layout_command): New function.
8330 (_initialize_tui_layout): Install "layout" commands.
8331 * tui/tui-data.h (enum tui_layout_type): Remove.
8332 (tui_current_layout): Don't declare.
8333
0dbc2fc7
TT
83342020-02-22 Tom Tromey <tom@tromey.com>
8335
8336 * tui/tui-regs.c (tui_reg_layout): Remove.
8337 (tui_reg_command): Use tui_regs_layout.
8338 * tui/tui-layout.h (tui_reg_command): Declare.
8339 * tui/tui-layout.c (tui_reg_command): New function.
8340
5afe342e
TT
83412020-02-22 Tom Tromey <tom@tromey.com>
8342
8343 * tui/tui.c (tui_rl_delete_other_windows): Call
8344 tui_remove_some_windows.
8345 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8346 Declare method.
8347 (class tui_layout_window) <remove_windows>: New method.
8348 (class tui_layout_split) <remove_windows>: Declare.
8349 (tui_remove_some_windows): Declare.
8350 * tui/tui-layout.c (tui_remove_some_windows): New function.
8351 (tui_layout_split::remove_windows): New method.
8352
427326a8
TT
83532020-02-22 Tom Tromey <tom@tromey.com>
8354
8355 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8356 * tui/tui-layout.h (tui_next_layout): Declare.
8357 * tui/tui-layout.c (tui_next_layout): New function.
8358
3fe12b6d
TT
83592020-02-22 Tom Tromey <tom@tromey.com>
8360
8361 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8362 correct coordinates.
8363
59b8b5d2
TT
83642020-02-22 Tom Tromey <tom@tromey.com>
8365
8366 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8367 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8368 DATA_WIN case.
8369
2a3d458b
TT
83702020-02-22 Tom Tromey <tom@tromey.com>
8371
8372 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8373 TUI_DISASM_WIN, not tui_win_list.
8374
3f0cbb04
TT
83752020-02-22 Tom Tromey <tom@tromey.com>
8376
8377 * valprint.c (generic_val_print_enum_1)
8378 (val_print_type_code_flags): Style member names.
8379 * rust-lang.c (val_print_struct, rust_print_enum)
8380 (rust_print_struct_def, rust_internal_print_type): Style member
8381 names.
8382 * p-valprint.c (pascal_object_print_value_fields): Style member
8383 names. Only call fprintf_symbol_filtered for static members.
8384 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8385 * f-valprint.c (f_val_print): Style member names.
8386 * f-typeprint.c (f_type_print_base): Style member names.
8387 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8388 call fprintf_symbol_filtered for static members.
8389 (cp_print_class_member): Style member names.
8390 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8391 member names.
8392 * ada-valprint.c (ada_print_scalar): Style enum names.
8393 (ada_val_print_enum): Likewise.
8394 * ada-typeprint.c (print_enum_type): Style enum names.
8395
d4d947ae
TT
83962020-02-21 Tom Tromey <tom@tromey.com>
8397
8398 * psympriv.h (struct partial_symtab): Update comment.
8399
e94e944b
TT
84002020-02-21 Tom Tromey <tromey@adacore.com>
8401
8402 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8403 type is CORE_ADDR.
8404
1eb73179
TV
84052020-02-21 Tom de Vries <tdevries@suse.de>
8406
8407 PR gdb/25534
8408 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8409 if dependencies[i]->user != NULL.
8410
4f180d53
AT
84112020-02-21 Ali Tamur <tamur@google.com>
8412
8413 * dwarf2/read.c (dwarf2_name): Add null check.
8414
22b6cd70
TT
84152020-02-20 Tom Tromey <tom@tromey.com>
8416
8417 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8418 ">=", in binary search.
8419 (dwarf2_find_containing_comp_unit): New overload.
8420 (run_test): New self-test.
8421 (_initialize_dwarf2_read): Register new test.
8422
bd0cf5a6
NC
84232020-02-20 Nelson Chu <nelson.chu@sifive.com>
8424
8425 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8426 * riscv-tdep.h: Likewise.
8427 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8428 rv32-only CSR.
8429 * features/riscv/64bit-csr.xml: Regenerated.
8430
3f702acd
SDJ
84312020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8432 Tom Tromey <tom@tromey.com>
8433
8434 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8435 of 'fputc_unfiltered'.
8436 (putchar_unfiltered): Call 'fputc_unfiltered'.
8437 (fputc_unfiltered): Call 'fputs_unfiltered'.
8438
d13c7322
AB
84392020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8440
8441 * config.in: Regenerate.
8442 * configure: Regenerate.
8443 * configure.ac: Add --with-python-libdir option.
8444 * main.c: Use WITH_PYTHON_LIBDIR.
8445
869d8950
TT
84462020-02-19 Tom Tromey <tom@tromey.com>
8447
8448 * symtab.c (general_symbol_info::compute_and_set_names): Use
8449 obstack_strndup. Simplify call to symbol_set_demangled_name.
8450
298e9637
SM
84512020-02-19 Simon Marchi <simon.marchi@efficios.com>
8452
8453 * dwarf2/read.c (allocate_signatured_type_table,
8454 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8455 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8456 Remove objfile parameter, update all callers.
8457
08410482
DE
84582020-02-19 Doug Evans <dje@google.com>
8459
8460 PR rust/25535
8461 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8462 rust_enum_variant calculation.
8463
dfdeeca1
TT
84642020-02-19 Tom Tromey <tromey@adacore.com>
8465
8466 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8467
2ef5453b
TT
84682020-02-19 Tom Tromey <tromey@adacore.com>
8469
8470 * ada-lang.c (cache_symbol): Use obstack_strdup.
8471
9f1528a1
AB
84722020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8473
8474 * configure: Regenerate.
8475
d3c22fa8
TT
84762020-02-19 Tom Tromey <tromey@adacore.com>
8477
8478 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8479 NULL check.
8480
bf84f706
MR
84812020-02-19 Maciej W. Rozycki <macro@wdc.com>
8482
8483 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8484
d1c9b20f
AB
84852020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8486
8487 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8488 if GDBSERVER is not defined.
8489 (riscv_tdesc_cache): Likewise, also store const target_desc.
8490 (STATIC_IN_GDB): Define.
8491 (riscv_create_target_description): Update declaration with
8492 STATIC_IN_GDB.
8493 (riscv_lookup_target_description): New function, only define if
8494 GDBSERVER is not defined.
8495 * arch/riscv.h (riscv_create_target_description): Declare only
8496 when GDBSERVER is defined.
8497 (riscv_lookup_target_description): New declaration when GDBSERVER
8498 is not defined.
8499 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8500 (riscv_linux_read_features): ...this, and return
8501 riscv_gdbarch_features instead of target_desc.
8502 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8503 (riscv_linux_read_description): Rename to...
8504 (riscv_linux_read_features): ...this.
8505 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8506 Update to use riscv_gdbarch_features and
8507 riscv_lookup_target_description.
8508 * riscv-tdep.c (riscv_find_default_target_description): Use
8509 riscv_lookup_target_description instead of
8510 riscv_create_target_description.
8511
373d7ac0
SM
85122020-02-18 Simon Marchi <simon.marchi@efficios.com>
8513
8514 * valprint.c (generic_val_print_enum_1): When printing a flag
8515 enum with value 0 and there is no enumerator with value 0, print
8516 just "0" instead of "(unknown: 0x0)".
8517
b29a2df0
SM
85182020-02-18 Simon Marchi <simon.marchi@efficios.com>
8519
8520 * valprint.c (generic_val_print_enum_1): Print unknown part of
8521 flag enum in hex.
8522
6740f0cc
SM
85232020-02-18 Simon Marchi <simon.marchi@efficios.com>
8524
8525 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8526 flag enums to contain duplicate enumerators.
8527 * valprint.c (generic_val_print_enum_1): Update comment.
8528
edd45eb0
SM
85292020-02-18 Simon Marchi <simon.marchi@efficios.com>
8530
8531 * dwarf2/read.c: Include "count-one-bits.h".
8532 (update_enumeration_type_from_children): If an enumerator has
8533 multiple bits set, don't treat the enumeration as a "flag enum".
8534 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8535 of flag enums have 0 or 1 bit set.
8536
6d0cf446
BE
85372020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8538
8539 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8540 conversion.
8541 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8542 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8543 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8544 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8545 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8546
7001c1b7
SM
85472020-02-18 Simon Marchi <simon.marchi@efficios.com>
8548
8549 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8550
fdb61c6c
SM
85512020-02-14 Simon Marchi <simon.marchi@efficios.com>
8552
8553 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8554 displaced_step_closure_up.
8555 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8556 (struct displaced_step_closure_up):
8557 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8558 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8559 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8560 Likewise.
8561 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8562 * gdbarch.c, gdbarch.h: Re-generate.
8563 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8564 displaced_step_closure_up.
8565 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8566 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8567 * infrun.h (displaced_step_closure_up): New type alias.
8568 (struct displaced_step_inferior_state) <step_closure>: Change
8569 type to displaced_step_closure_up.
8570 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8571 displaced_step_closure_up.
8572 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8573
a4a38eb4
TT
85742020-02-14 Tom Tromey <tom@tromey.com>
8575
8576 * minidebug.c (gnu_debug_key): New global.
8577 (find_separate_debug_file_in_section): Use it.
8578
e8217e61
SM
85792020-02-14 Simon Marchi <simon.marchi@efficios.com>
8580
8581 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8582 std::unique_ptr.
8583 * gdbarch.c: Re-generate.
8584 * gdbarch.h: Re-generate.
8585 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8586 change.
8587 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8588 type to std::unique_ptr.
8589 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8590 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8591 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8592 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8593 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8594 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8595 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8596 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8597 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8598
d8d83535
SM
85992020-02-14 Simon Marchi <simon.marchi@efficios.com>
8600
8601 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8602 std::unique_ptr.
8603 (displaced_step_clear): Rename to...
8604 (displaced_step_reset): ... this. Just call displaced->reset ().
8605 (displaced_step_clear_cleanup): Rename to...
8606 (displaced_step_reset_cleanup): ... this.
8607 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8608 (displaced_step_fixup): Likewise.
8609 (resume_1): Likewise.
8610 (handle_inferior_event): Restore child's memory before calling
8611 displaced_step_fixup on the parent.
8612 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8613 to std::unique_ptr.
8614 <step_closure>: Change type to std::unique_ptr.
8615
5f661e03
SM
86162020-02-14 Simon Marchi <simon.marchi@efficios.com>
8617
8618 * arm-tdep.c: Include count-one-bits.h.
8619 (cleanup_block_store_pc): Use count_one_bits.
8620 (cleanup_block_load_pc): Use count_one_bits.
8621 (arm_copy_block_xfer): Use count_one_bits.
8622 (thumb2_copy_block_xfer): Use count_one_bits.
8623 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8624 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8625 (thumb_get_next_pcs_raw): Use count_one_bits.
8626 (arm_get_next_pcs_raw): Use count_one_bits_l.
8627 * arch/arm.c (bitcount): Remove.
8628 * arch/arm.h (bitcount): Remove.
8629
8084e579
TT
86302020-02-14 Tom Tromey <tromey@adacore.com>
8631
8632 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8633 Update.
8634 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8635 * dwarf2/loc.c (call_site_find_chain_1): Return
8636 unique_xmalloc_ptr.
8637 (call_site_find_chain): Likewise.
8638
258bf0ee
RB
86392020-02-14 Richard Biener <rguenther@suse.de>
8640
8641 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8642 on expression with division operators.
8643
f98a8458
AKS
86442020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8645
8646 * MAINTAINERS (Write After Approval): Adding myself.
8647
d1437c0e
TT
86482020-02-12 Tom Tromey <tom@tromey.com>
8649
8650 * event-loop.c (event_data, gdb_event, event_handler_func):
8651 Remove.
8652
3d4560f7
TT
86532020-02-12 Tom Tromey <tom@tromey.com>
8654
8655 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8656 (dwarf2_frame_objfile_data): Add comment.
8657 (find_comp_unit, set_comp_unit): New functions.
8658 (dwarf2_frame_find_fde): Use find_comp_unit.
8659 (dwarf2_build_frame_info): Use set_comp_unit.
8660
21982304
TT
86612020-02-12 Tom Tromey <tom@tromey.com>
8662
8663 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8664 (comp_unit): Don't initialize objfile.
8665 (execute_cfa_program): Add text_offset parameter.
8666 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8667 (dwarf2_frame_cache): Update.
8668 (dwarf2_build_frame_info): Don't set "objfile" member.
8669
4debb237
TT
86702020-02-12 Tom Tromey <tom@tromey.com>
8671
8672 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8673 (decode_frame_entry): Likewise.
8674 (dwarf2_build_frame_info): Update.
8675
0d404d44
TT
86762020-02-12 Tom Tromey <tom@tromey.com>
8677
8678 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8679 (decode_frame_entry_1): Use the comp_unit obstack.
8680
a7a3ae5c
TT
86812020-02-12 Tom Tromey <tom@tromey.com>
8682
8683 * dwarf2/frame.c (struct comp_unit): Add initializers and
8684 constructor.
8685 (dwarf2_frame_objfile_data): Store a comp_unit.
8686 (dwarf2_frame_find_fde): Update.
8687 (dwarf2_build_frame_info): Use "new".
8688
a9d65418
TT
86892020-02-12 Tom Tromey <tom@tromey.com>
8690
8691 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8692 (dwarf2_fde_table): Typedef for std::vector.
8693 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8694 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8695 (decode_frame_entry): Update.
8696 (dwarf2_build_frame_info): Use "new".
8697
7559c217
CB
86982020-02-12 Christian Biesinger <cbiesinger@google.com>
8699
8700 * arm-tdep.c (arm_gdbarch_init): Update.
8701 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8702 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8703 have_neon, is_m>: Change to bool.
8704
aeefc73c
CB
87052020-02-12 Christian Biesinger <cbiesinger@google.com>
8706
8707 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8708
d27b8e5f
TT
87092020-02-12 Tom Tromey <tom@tromey.com>
8710
8711 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8712
cd5900f3
HD
87132020-02-12 Hannes Domani <ssbssa@yahoo.de>
8714
8715 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8716 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8717
f056b22b
TT
87182020-02-11 Tom Tromey <tom@tromey.com>
8719
8720 * psymtab.h: Update comment.
8721
f92ff6b5
TT
87222020-02-11 Tom Tromey <tom@tromey.com>
8723
8724 * gdb_obstack.h (struct auto_obstack): Use
8725 DISABLE_COPY_AND_ASSIGN.
8726
3fd6912b
TT
87272020-02-11 Tom Tromey <tom@tromey.com>
8728
8729 * dwarf2/frame.h (struct objfile): Don't forward declare.
8730
69ed9b74
CB
87312020-02-11 Christian Biesinger <cbiesinger@google.com>
8732
8733 * cris-tdep.c (cris_supply_gregset): Change signature to match
8734 what struct regset expects.
8735 (cris_regset): New struct.
8736 (fetch_core_registers): Remove.
8737 (cris_iterate_over_regset_sections): New function.
8738 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8739 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8740
bda874f6
CB
87412020-02-11 Christian Biesinger <cbiesinger@google.com>
8742
8743 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8744 registers.
8745
754e1564
CB
87462020-02-11 Christian Biesinger <cbiesinger@google.com>
8747
8748 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8749
8ddd8e0e
SM
87502020-02-11 Simon Marchi <simon.marchi@efficios.com>
8751
8752 * configure: Re-generate.
8753
898e7f60
SM
87542020-02-11 Simon Marchi <simon.marchi@efficios.com>
8755
8756 * configure: Re-generate.
8757
58df732b
SM
87582020-02-11 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * acinclude: Update warning.m4 path.
8761 * warning.m4: Move to gdbsupport.
8762
da5bd37e
TT
87632020-02-11 Tom Tromey <tromey@adacore.com>
8764
8765 * remote.c (remote_console_output): Update.
8766 * printcmd.c (printf_command): Update.
8767 * event-loop.c (gdb_wait_for_event): Update.
8768 * linux-nat.c (sigchld_handler): Update.
8769 * remote-sim.c (gdb_os_write_stdout): Update.
8770 (gdb_os_flush_stdout): Update.
8771 (gdb_os_flush_stderr): Update.
8772 (gdb_os_write_stderr): Update.
8773 * exceptions.c (print_exception): Update.
8774 * remote-fileio.c (remote_fileio_func_read): Update.
8775 (remote_fileio_func_write): Update.
8776 * tui/tui.c (tui_enable): Update.
8777 * tui/tui-interp.c (tui_interp::init): Update.
8778 * utils.c (init_page_info): Update.
8779 (putchar_unfiltered, fputc_unfiltered): Update.
8780 (gdb_flush): Update.
8781 (emit_style_escape): Update.
8782 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8783 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8784 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8785 (stderr_file::write): Update.
8786 (stderr_file::puts): Update.
8787 * ui-file.h (ui_file_isatty, ui_file_write)
8788 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8789 (ui_file_puts): Don't declare.
8790
85f0dd3c
TV
87912020-02-10 Tom de Vries <tdevries@suse.de>
8792
8793 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8794 sentinel to char *.
8795
2e927613
TV
87962020-02-09 Tom de Vries <tdevries@suse.de>
8797
8798 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8799 filename if it matches "<artificial>".
8800
6bafc845
HD
88012020-02-09 Hannes Domani <ssbssa@yahoo.de>
8802
8803 * windows-tdep.c (struct enum_value_name): New struct.
8804 (create_enum): New function.
8805 (windows_get_siginfo_type): Create and use enum types.
8806
7928d571
HD
88072020-02-09 Hannes Domani <ssbssa@yahoo.de>
8808
8809 * NEWS: Mention $_siginfo support for Windows.
8810 * windows-nat.c (handle_exception): Set siginfo_er.
8811 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8812 (windows_xfer_siginfo): New function.
8813 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8814 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8815 (init_windows_gdbarch_data): New function.
8816 (get_windows_gdbarch_data): New function.
8817 (windows_get_siginfo_type): New function.
8818 (windows_init_abi): Register windows_get_siginfo_type.
8819 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8820
6751ebae
TT
88212020-02-08 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8824 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8825 <keep>: Declare method.
8826 <m_keep>: Remove member.
8827 <~cutu_reader>: Remove.
8828 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8829 (cutu_reader::cutu_reader): Update.
8830 (cutu_reader::keep): Rename from ~cutu_reader.
8831 (process_psymtab_comp_unit, build_type_psymtabs_1)
8832 (process_skeletonless_type_unit, load_partial_comp_unit)
8833 (load_full_comp_unit, dwarf2_read_addr_index)
8834 (read_signatured_type): Update.
8835
135f5437
TT
88362020-02-08 Tom Tromey <tom@tromey.com>
8837
8838 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8839 "want_partial_unit" parameter.
8840 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8841 Inline check for DW_TAG_partial_unit.
8842 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8843
9f66ff1c
TT
88442020-02-08 Tom Tromey <tom@tromey.com>
8845
8846 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8847 read.c.
8848 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8849 read.c.
8850
c8a7a66f
TT
88512020-02-08 Tom Tromey <tom@tromey.com>
8852
8853 * dwarf2/read.c (read_address): Move to comp-unit.c.
8854 (dwarf2_rnglists_process, dwarf2_ranges_process)
8855 (read_attribute_value, dwarf_decode_lines_1)
8856 (var_decode_location, decode_locdesc): Update.
8857 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8858 read.c. Remove "cu" parameter.
8859 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8860 method.
8861
8266302d
TT
88622020-02-08 Tom Tromey <tom@tromey.com>
8863
8864 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8865 (read_indirect_line_string): Update.
8866 * dwarf2/comp-unit.c (read_offset): Remove.
8867 (read_comp_unit_head): Update.
8868 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8869 method.
8870 (read_offset): Don't declare.
8871
4057dfde
TT
88722020-02-08 Tom Tromey <tom@tromey.com>
8873
8874 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8875 * dwarf2/read.c (struct comp_unit_head): Move to
8876 dwarf2/comp-unit.h.
8877 (enum class rcuh_kind): Move to comp-unit.h.
8878 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8879 (read_comp_unit_head, error_check_comp_unit_head)
8880 (read_and_check_comp_unit_head): Move to comp-unit.c.
8881 (read_offset, dwarf_unit_type_name): Likewise.
8882 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8883 (cutu_reader::cutu_reader, read_call_site_scope)
8884 (find_partial_die, follow_die_offset): Update.
8885 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8886
24aa364d
TT
88872020-02-08 Tom Tromey <tom@tromey.com>
8888
8889 * dwarf2/read.c (read_offset_1): Move to leb.c.
8890 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8891 (dwarf_decode_macro_bytes): Update.
8892 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8893 * dwarf2/leb.h (read_offset): Declare.
8894
2c7d5afc
TT
88952020-02-08 Tom Tromey <tom@tromey.com>
8896
8897 * dwarf2/read.c (dwarf2_section_size): Remove.
8898 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8899 Update.
8900 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8901
4075cb26
TT
89022020-02-08 Tom Tromey <tom@tromey.com>
8903
8904 * dwarf2/read.c (read_initial_length): Move to leb.c.
8905 * dwarf2/leb.h (read_initial_length): Declare.
8906 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8907 handle_nonstd parameter.
8908 * dwarf2/frame.c (read_initial_length): Remove.
8909 (decode_frame_entry_1): Update.
8910
09ba997f
TT
89112020-02-08 Tom Tromey <tom@tromey.com>
8912
8913 * dwarf2/loc.c (dwarf2_find_location_expression)
8914 (dwarf_evaluate_loc_desc::get_tls_address)
8915 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8916 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8917 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8918 (dwarf2_compile_property_to_c)
8919 (dwarf2_loc_desc_get_symbol_read_needs)
8920 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8921 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8922 (loclist_describe_location, loclist_tracepoint_var_ref)
8923 (loclist_generate_c_location): Update.
8924 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8925 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8926 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8927 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8928 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8929 (dwarf2_per_cu_data::addr_size)
8930 (dwarf2_per_cu_data::ref_addr_size)
8931 (dwarf2_per_cu_data::text_offset)
8932 (dwarf2_per_cu_data::addr_type): Now methods.
8933 (per_cu_header_read_in): Make per_cu "const".
8934 (dwarf2_version): Remove.
8935 (dwarf2_per_cu_data::int_type): Now a method.
8936 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8937 (set_die_type, read_array_type, read_subrange_index_type)
8938 (read_tag_string_type, read_subrange_type): Update.
8939 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8940 offset_size, ref_addr_size, text_offset, addr_type, version,
8941 objfile, int_type, addr_sized_int_type>: Declare methods.
8942
96c738c0
TT
89432020-02-08 Tom Tromey <tom@tromey.com>
8944
8945 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8946 Move earlier.
8947
8fdd972c
TT
89482020-02-08 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2/read.h (dwarf_line_debug): Declare.
8951 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8952 * dwarf2/read.c: Move line_header code to new files.
8953 (dwarf_line_debug): No longer static.
8954 * dwarf2/line-header.c: New file.
8955 * dwarf2/line-header.h: New file.
8956
03075812
TT
89572020-02-08 Tom Tromey <tom@tromey.com>
8958
8959 * dwarf2/read.c (struct line_header) <file_full_name,
8960 file_file_name>: Return unique_xmalloc_ptr.
8961 (line_header::file_file_name): Update.
8962 (line_header::file_full_name): Update.
8963 (dw2_get_file_names_reader): Update.
8964 (macro_start_file): Update.
8965
bb822404
TT
89662020-02-08 Tom Tromey <tom@tromey.com>
8967
8968 * dwarf2/read.c (struct line_header) <file_full_name,
8969 file_file_name>: Declare methods.
8970 (dw2_get_file_names_reader): Update.
8971 (file_file_name): Now a method.
8972 (file_full_name): Likewise.
8973 (macro_start_file): Update.
8974
009b64fc
TT
89752020-02-08 Tom Tromey <tom@tromey.com>
8976
8977 * dwarf2/read.c (dwarf_always_disassemble)
8978 (show_dwarf_always_disassemble): Move to loc.c.
8979 (_initialize_dwarf2_read): Move "always-disassemble" registration
8980 to loc.c.
8981 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8982 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8983 static.
8984 (show_dwarf_always_disassemble): Move from read.c.
8985 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8986
5895093f
TT
89872020-02-08 Tom Tromey <tom@tromey.com>
8988
8989 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8990 (create_quick_file_names_table): Return htab_up.
8991 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8992 Update.
8993 * dwarf2/read.h (struct dwarf2_per_objfile)
8994 <quick_file_names_table>: Now htab_up.
8995
b3b32279
TT
89962020-02-08 Tom Tromey <tom@tromey.com>
8997
8998 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8999
1d33d811
TT
90002020-02-08 Tom Tromey <tom@tromey.com>
9001
9002 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9003 Rewrite.
9004 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9005 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9006 (abbrev_table::abbrev_table): No longer inline.
9007 (ABBREV_HASH_SIZE): Remove.
9008 (abbrev_table::m_abbrevs): Now an htab_up.
9009
86de1d91
TT
90102020-02-08 Tom Tromey <tom@tromey.com>
9011
9012 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9013 (cutu_reader): Update.
9014 (build_type_psymtabs_1): Update.
9015 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9016 (abbrev_table::alloc_abbrev): Update.
9017 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9018 (abbrev_table::read): New static method, renamed from
9019 abbrev_table_read_table.
9020 (abbrev_table::alloc_abbrev)
9021 (abbrev_table::add_abbrev): Now private.
9022 (abbrev_table::abbrev_table): Now private.
9023 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9024
0335378b
TT
90252020-02-08 Tom Tromey <tom@tromey.com>
9026
9027 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9028 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9029 htab_up.
9030
48b490f2
TT
90312020-02-08 Tom Tromey <tom@tromey.com>
9032
9033 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9034 htab_up.
9035 (lookup_dwo_unit_in_dwp): Update.
9036 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9037 on obstack.
9038
bc68fb19
TT
90392020-02-08 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9042 obstack.
9043
d15acc42
TT
90442020-02-08 Tom Tromey <tom@tromey.com>
9045
9046 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9047 line_header_hash.
9048 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9049 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9050 Change type to htab_up.
9051
eaa5fa8b
TT
90522020-02-08 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9055 htab_up. Don't allocate on obstack.
9056 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9057 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9058 Change type to htab_up.
9059
b0b6a987
TT
90602020-02-08 Tom Tromey <tom@tromey.com>
9061
9062 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9063 Change type to htab_up.
9064 * dwarf2/read.c (create_signatured_type_table_from_index)
9065 (create_signatured_type_table_from_debug_names)
9066 (create_all_type_units, add_type_unit)
9067 (lookup_dwo_signatured_type, lookup_signatured_type)
9068 (process_skeletonless_type_unit): Update.
9069 (create_debug_type_hash_table, create_debug_types_hash_table):
9070 Change type of types_htab.
9071 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9072 htab_up. Don't allocate on obstack.
9073 (create_cus_hash_table): Change type of cus_htab parameter.
9074 (struct dwo_file) <cus, tus>: Now htab_up.
9075 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9076 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9077 (queue_and_load_all_dwo_tus): Update.
9078 * dwarf2/index-write.c (write_gdbindex): Update.
9079 (write_debug_names): Update.
9080
39856def
TT
90812020-02-08 Tom Tromey <tom@tromey.com>
9082
9083 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9084 dwarf2/read.c. Remove "next" member. Add constructor ntad
9085 destructor.
9086 (struct dwarf2_per_objfile) <queue>: New member.
9087 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9088 dwarf2/read.h.
9089 (dwarf2_queue, dwarf2_queue_tail): Remove.
9090 (class dwarf2_queue_guard): Add parameter to constructor. Use
9091 DISABLE_COPY_AND_ASSIGN.
9092 <m_per_objfile>: New member.
9093 <~dwarf2_queue_guard>: Rewrite.
9094 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9095 Update.
9096 (~dwarf2_queue_item): New.
9097
3e225074
TT
90982020-02-08 Tom Tromey <tom@tromey.com>
9099
9100 * dwarf2/read.c (struct die_info) <has_children>: New member.
9101 (dw2_get_file_names_reader): Remove has_children.
9102 (dw2_get_file_names): Update.
9103 (read_cutu_die_from_dwo): Remove has_children.
9104 (cutu_reader::init_tu_and_read_dwo_dies)
9105 (cutu_reader::cutu_reader): Update.
9106 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9107 Remove has_children.
9108 (build_type_psymtabs_1, process_skeletonless_type_unit)
9109 (load_partial_comp_unit, load_full_comp_unit): Update.
9110 (create_dwo_cu_reader): Remove has_children.
9111 (create_cus_hash_table, read_die_and_children): Update.
9112 (read_full_die_1,read_full_die): Remove has_children.
9113 (read_signatured_type): Update.
9114 (class cutu_reader) <has_children>: Remove.
9115
82ca8957
TT
91162020-02-08 Tom Tromey <tom@tromey.com>
9117
9118 * dwarf2/expr.c: Rename from dwarf2expr.c.
9119 * dwarf2/expr.h: Rename from dwarf2expr.h.
9120 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9121 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9122 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9123 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9124 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9125 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9126 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9127 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9128 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9129 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9130 * dwarf2/loc.c: Rename from dwarf2loc.c.
9131 * dwarf2/loc.h: Rename from dwarf2loc.h.
9132 * dwarf2/read.c: Rename from dwarf2read.c.
9133 * dwarf2/read.h: Rename from dwarf2read.h.
9134 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9135 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9136 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9137 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9138 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9139 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9140 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9141 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9142 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9143 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9144 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9145 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9146 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9147 Update.
9148 * Makefile.in (COMMON_SFILES): Update.
9149 (HFILES_NO_SRCDIR): Update.
9150
9e35d499
TT
91512020-02-08 Tom Tromey <tom@tromey.com>
9152
9153 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9154 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9155
1eba2311
TT
91562020-02-08 Tom Tromey <tom@tromey.com>
9157
9158 * dwarf2read.h (struct die_info): Don't declare.
9159
e41c2da2
TT
91602020-02-08 Tom Tromey <tom@tromey.com>
9161
9162 * dwarf2read.h (die_info_ptr): Remove typedef.
9163
4fc6c0d5
TT
91642020-02-08 Tom Tromey <tom@tromey.com>
9165
9166 * dwarf2read.c (read_call_site_scope)
9167 (handle_data_member_location, dwarf2_add_member_fn)
9168 (mark_common_block_symbol_computed, read_common_block)
9169 (attr_to_dynamic_prop, partial_die_info::read)
9170 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9171 (dwarf2_symbol_mark_computed, set_die_type): Update.
9172 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9173 method.
9174 (attr_form_is_block): Don't declare.
9175 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9176
cd6c91b4
TT
91772020-02-08 Tom Tromey <tom@tromey.com>
9178
9179 * dwarf2read.c (dwarf2_find_base_address, )
9180 (read_call_site_scope, rust_containing_type)
9181 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9182 (handle_data_member_location, dwarf2_add_member_fn)
9183 (get_alignment, read_structure_type, process_structure_scope)
9184 (mark_common_block_symbol_computed, read_common_block)
9185 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9186 (partial_die_info::read, read_attribute_value, new_symbol)
9187 (lookup_die_type, dwarf2_get_ref_die_offset)
9188 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9189 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9190 (dwarf2_symbol_mark_computed): Update.
9191 * dwarf2/attribute.h (struct attribute) <value_as_address,
9192 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9193 methods.
9194 (value_as_address, attr_form_is_section_offset)
9195 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9196 * dwarf2/attribute.c (attribute::value_as_address)
9197 (attribute::form_is_section_offset, attribute::form_is_constant)
9198 (attribute::form_is_ref): Now methods.
9199
162dce55
TT
92002020-02-08 Tom Tromey <tom@tromey.com>
9201
9202 * dwarf2read.c (struct attribute, DW_STRING)
9203 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9204 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9205 (attr_form_is_block, attr_form_is_section_offset)
9206 (attr_form_is_constant, attr_form_is_ref): Move.
9207 * dwarf2/attribute.h: New file.
9208 * dwarf2/attribute.c: New file, from dwarf2read.c.
9209 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9210
3054dd54
TT
92112020-02-08 Tom Tromey <tom@tromey.com>
9212
9213 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9214 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9215 Move.
9216 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9217 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9218 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9219 abbrev.c.
9220 * dwarf2/abbrev.h: New file.
9221 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9222 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9223
96b79293
TT
92242020-02-08 Tom Tromey <tom@tromey.com>
9225
9226 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9227 (dwarf2_section_size, dwarf2_get_section_info)
9228 (create_signatured_type_table_from_debug_names)
9229 (create_addrmap_from_aranges, read_debug_names_from_section)
9230 (get_gdb_index_contents_from_section, read_comp_unit_head)
9231 (error_check_comp_unit_head, read_abbrev_offset)
9232 (create_debug_type_hash_table, init_cu_die_reader)
9233 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9234 (read_comp_units_from_section, create_cus_hash_table)
9235 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9236 (create_dwp_v2_section, dwarf2_rnglists_process)
9237 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9238 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9239 (read_indirect_string_from_dwz, read_addr_index_1)
9240 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9241 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9242 (fill_in_loclist_baton): Update.
9243 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9244 get_containing_section, get_bfd_owner, get_bfd_section,
9245 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9246 (dwarf2_read_section, get_section_name, get_section_file_name)
9247 (get_containing_section, get_section_bfd_owner)
9248 (get_section_bfd_section, get_section_name, get_section_file_name)
9249 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9250 declare.
9251 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9252 (dwarf2_section_info::get_bfd_owner)
9253 (dwarf2_section_info::get_bfd_section)
9254 (dwarf2_section_info::get_name)
9255 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9256 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9257 (dwarf2_section_info::read): Now methods.
9258 * dwarf-index-write.c (class debug_names): Update.
9259
2c86cff9
TT
92602020-02-08 Tom Tromey <tom@tromey.com>
9261
9262 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9263 Move to dwarf2/section.h.
9264 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9265 (get_section_bfd_section, get_section_name)
9266 (get_section_file_name, get_section_id, get_section_flags)
9267 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9268 dwarf2/section.c.
9269 * dwarf2/section.h: New file.
9270 * dwarf2/section.c: New file, from dwarf2read.c.
9271 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9272
f4382c45
TT
92732020-02-08 Tom Tromey <tom@tromey.com>
9274
9275 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9276 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9277 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9278 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9279 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9280 * dwarf2/leb.h: New file, from dwarf2read.c.
9281 * dwarf2/leb.c: New file, from dwarf2read.c.
9282 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9283 Remove.
9284 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9285 (COMMON_SFILES): Add dwarf2/leb.c.
9286
01840b7a
JB
92872020-02-08 Joel Brobecker <brobecker@adacore.com>
9288
9289 GDB 9.1 released.
9290
dfcb27e4
IB
92912020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9292
9293 PR gdb/25190:
aac66a4c
SM
9294 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9295 * gdb/remote.c (remote_console_output): Update.
9296 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9297 (ui_file_puts): ...this.
9298 * gdb/ui-file.h (ui_file_puts): Add declaration.
9299 * gdb/utils.c (emit_style_escape): Update.
9300 (flush_wrap_buffer): Update.
9301 (fputs_maybe_filtered): Update.
9302 (fputs_unfiltered): Add function.
dfcb27e4 9303
faa17681
IB
93042020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9305
aac66a4c
SM
9306 * gdb/event-loop.c (gdb_wait_for_event): Update.
9307 * gdb/printcmd.c (printf_command): Update.
9308 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9309 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9310 (gdb_os_flush_stderr): Update.
9311 * gdb/remote.c (remote_console_output): Update.
9312 * gdb/ui-file.c (gdb_flush): Rename to...
9313 (ui_file_flush): ...this.
9314 (stderr_file::write): Update.
9315 (stderr_file::puts): Update.
9316 * gdb/ui-file.h (gdb_flush): Rename to...
9317 (ui_file_flush): ...this.
9318 * gdb/utils.c (gdb_flush): Add function.
9319 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9320
5abbbe1d
TT
93212020-02-07 Tom Tromey <tromey@adacore.com>
9322
9323 PR breakpoints/24915:
9324 * source.c (find_and_open_source): Do not check basenames_may_differ.
9325
919adfe8
TT
93262020-02-07 Tom Tromey <tom@tromey.com>
9327
9328 * README: Update gdbserver documentation.
9329 * gdbserver: Move to top level.
9330 * configure.tgt (build_gdbserver): Remove.
9331 * configure.ac: Remove --enable-gdbserver.
9332 * configure: Rebuild.
9333 * Makefile.in (distclean): Don't mention gdbserver.
9334
1d5d29e7
SV
93352020-02-06 Shahab Vahedi <shahab@synopsys.com>
9336
9337 * source-cache.c (source_cache::ensure): Surround
9338 get_plain_source_lines with a try/catch.
9339 (source_cache::get_line_charpos): Get rid of try/catch
9340 and only check for the return value of "ensure".
9341 * tui/tui-source.c (tui_source_window::set_contents):
9342 Simplify "nlines" calculation.
9343
6eb1129c
SV
93442020-02-06 Shahab Vahedi <shahab@synopsys.com>
9345
9346 * MAINTAINERS (Write After Approval): Add myself.
9347
c6a42d11
CB
93482020-02-05 Christian Biesinger <cbiesinger@google.com>
9349
9350 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9351 function call.
9352
c8ecdda6
CB
93532020-02-05 Christian Biesinger <cbiesinger@google.com>
9354
9355 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9356
f6480e70
MR
93572020-02-05 Maciej W. Rozycki <macro@wdc.com>
9358
9359 * nat/riscv-linux-tdesc.h: New file.
9360 * nat/riscv-linux-tdesc.c: New file, taking code from...
9361 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9362 ... here.
9363 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9364 NATDEPFILES.
9365
dcc9fbc6
AB
93662020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9367
9368 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9369 we don't set the fake simulator ptid to the null_ptid.
9370
719546c4
SM
93712020-02-03 Simon Marchi <simon.marchi@efficios.com>
9372
9373 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9374 * gdbthread.h (class thread_info) <resumed>: Likewise.
9375 * infrun.c (resume_1): Likewise.
9376 (proceed): Likewise.
9377 (infrun_thread_stop_requested): Likewise.
9378 (stop_all_threads): Likewise.
9379 (handle_inferior_event): Likewise.
9380 (restart_threads): Likewise.
9381 (finish_step_over): Likewise.
9382 (keep_going_stepped_thread): Likewise.
9383 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9384 (linux_handle_extended_wait): Likewise.
9385 * record-btrace.c (get_thread_current_frame_id): Likewise.
9386 * record-full.c (record_full_wait_1): Likewise.
9387 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9388 * target.c (target_resume): Likewise.
9389 * thread.c (set_running_thread): Likewise.
9390
e409c542
AKS
93912020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9392
9393 * f-valprint.c (f77_print_array_1): Changed datatype of index
9394 variable to LONGEST from int to enable it to contain bound
9395 values correctly.
9396
ee98c0da
MR
93972020-02-03 Maciej W. Rozycki <macro@wdc.com>
9398
9399 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9400 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9401 offsets according to FLEN determined.
9402 (riscv_linux_nat_target::read_description): Determine FLEN
9403 dynamically.
9404 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9405 according to FLEN determined.
9406 (riscv_linux_nat_target::store_registers): Likewise.
9407
aa66aac4
SV
94082020-02-01 Shahab Vahedi <shahab@synopsys.com>
9409
9410 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9411 when reg->group is empty and reggroup is not.
9412
fd9faca8
TT
94132020-01-31 Tom Tromey <tromey@adacore.com>
9414
9415 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9416 Call beneath target's mourn_inferior after unpushing.
9417
42330a68
AB
94182020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9419
9420 PR tui/9765
9421 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9422 have enough lines to fill the screen, still return the lowest
9423 address we found.
9424
7a27a45b
AB
94252020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9426
9427 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9428 '-', '<', and '>' commands.
9429
c47f70e2
PA
94302020-01-29 Pedro Alves <palves@redhat.com>
9431 Sergio Durigan Junior <sergiodj@redhat.com>
9432
9433 * infcmd.c (construct_inferior_arguments): Assert that
9434 'argc' is greater than 0.
9435
5133a315
LM
94362020-01-29 Luis Machado <luis.machado@linaro.org>
9437
9438 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9439 (BRK_INSN_MASK): Define to 0xd4200000.
9440 (aarch64_program_breakpoint_here_p): New function.
9441 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9442 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9443 breakpoint.c.
9444 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9445 breakpoint.h
9446 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9447 call gdbarch_program_breakpoint_here_p.
9448 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9449 default_program_breakpoint_here_p, changed return type to bool and
9450 simplified.
9451 * breakpoint.h (program_breakpoint_here): Moved prototype to
9452 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9453 return type to bool.
9454 * gdbarch.c: Regenerate.
9455 * gdbarch.h: Regenerate.
9456 * gdbarch.sh (program_breakpoint_here_p): New method.
9457 * infrun.c (handle_signal_stop): Call
9458 gdbarch_program_breakpoint_here_p.
9459
168f8c6b
TT
94602020-01-26 Tom Tromey <tom@tromey.com>
9461
9462 * ctfread.c (struct ctf_fp_info): Reindent.
9463 (_initialize_ctfread): Remove.
9464
128a391f
TT
94652020-01-26 Tom Tromey <tom@tromey.com>
9466
9467 * psymtab.c (partial_map_expand_apply)
9468 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9469 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9470 (psym_print_stats, psym_expand_symtabs_for_function)
9471 (psym_map_symbol_filenames, psym_map_matching_symbols)
9472 (psym_expand_symtabs_matching)
9473 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9474 (maintenance_check_psymtabs): Use new methods.
9475 * psympriv.h (struct partial_symtab) <readin_p,
9476 get_compunit_symtab>: New methods.
9477 <readin, compunit_symtab>: Remove members.
9478 (struct standard_psymtab): New.
9479 (struct legacy_psymtab): Derive from standard_psymtab.
9480 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9481 standard_psymtab.
9482 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9483
0494dbec
TT
94842020-01-26 Tom Tromey <tom@tromey.com>
9485
9486 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9487 read_dependencies. Add assert.
9488 * psymtab.c (partial_symtab::read_dependencies): New method.
9489 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9490 method.
9491 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9492 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9493 read_dependencies.
9494 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9495 Add assert.
9496
8566b89b
TT
94972020-01-26 Tom Tromey <tom@tromey.com>
9498
9499 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9500 Call expand_psymtab.
9501 (xcoff_read_symtab): Call expand_psymtab.
9502 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9503 legacy_expand_psymtab.
9504 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9505 method.
9506 (struct legacy_psymtab) <expand_psymtab>: Implement.
9507 <legacy_expand_psymtab>: New member.
9508 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9509 (parse_partial_symbols): Set legacy_expand_psymtab.
9510 (psymtab_to_symtab_1): Change argument order. Call
9511 expand_psymtab.
9512 (new_psymtab): Set legacy_expand_psymtab.
9513 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9514 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9515 expand_psymtab.
9516 (dwarf2_psymtab::expand_psymtab): Rename from
9517 psymtab_to_symtab_1. Call expand_psymtab.
9518 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9519 (dbx_end_psymtab): Likewise.
9520 (dbx_psymtab_to_symtab_1): Change argument order. Call
9521 expand_psymtab.
9522 (dbx_read_symtab): Call expand_psymtab.
9523 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9524 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9525 (ctf_psymtab::read_symtab): Call expand_psymtab.
9526
077cbab2
TT
95272020-01-26 Tom Tromey <tom@tromey.com>
9528
9529 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9530 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9531 messages.
9532 * mdebugread.c (mdebug_read_symtab): Remove prints.
9533 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9534 assert.
9535 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9536
891813be
TT
95372020-01-26 Tom Tromey <tom@tromey.com>
9538
9539 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9540 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9541 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9542 legacy_symtab.
9543 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9544 * psymtab.c (psymtab_to_symtab): Call method.
9545 (dump_psymtab): Update.
9546 * psympriv.h (struct partial_symtab): Add virtual destructor.
9547 <read_symtab>: New method.
9548 (struct legacy_symtab): New.
9549 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9550 (struct pst_map) <pst>: Now a legacy_psymtab.
9551 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9552 (new_psymtab): Use legacy_psymtab.
9553 * dwarf2read.h (struct dwarf2_psymtab): New.
9554 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9555 * dwarf2read.c (dwarf2_create_include_psymtab)
9556 (dwarf2_build_include_psymtabs, create_type_unit_group)
9557 (create_partial_symtab, process_psymtab_comp_unit_reader)
9558 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9559 (set_partial_user): Use dwarf2_psymtab.
9560 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9561 (psymtab_to_symtab_1, process_full_comp_unit)
9562 (process_full_type_unit, dwarf2_ranges_read)
9563 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9564 (dwarf_decode_lines): Use dwarf2_psymtab.
9565 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9566 (add_address_entry_worker, write_one_signatured_type)
9567 (recursively_count_psymbols, recursively_write_psymbols)
9568 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9569 (write_debug_names): Likewise.
9570 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9571 <pst>: Now a legacy_psymtab.
9572 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9573 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9574 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9575 * ctfread.c (struct ctf_psymtab): New.
9576 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9577 ctf_psymtab.
9578 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9579 (create_partial_symtab): Return a ctf_psymtab.
9580 (scan_partial_symbols): Update.
9581
c3693a1d
TT
95822020-01-26 Tom Tromey <tom@tromey.com>
9583
9584 * xcoffread.c (xcoff_start_psymtab): Use new.
9585 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9586 renamed from start_psymtab_common.
9587 * psympriv.h (struct partial_symtab): Add new constructor.
9588 (start_psymtab_common): Don't declare.
9589 * mdebugread.c (parse_partial_symbols): Use new.
9590 * dwarf2read.c (create_partial_symtab): Use new.
9591 * dbxread.c (start_psymtab): Use new.
9592 * ctfread.c (create_partial_symtab): Use new.
9593
32caafd0
TT
95942020-01-26 Tom Tromey <tom@tromey.com>
9595
9596 * xcoffread.c (xcoff_end_psymtab): Use new.
9597 * psymtab.c (start_psymtab_common): Use new.
9598 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9599 Update.
9600 * psympriv.h (struct partial_symtab): Add parameters to
9601 constructor. Don't inline.
9602 (allocate_psymtab): Don't declare.
9603 * mdebugread.c (new_psymtab): Use new.
9604 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9605 * dbxread.c (dbx_end_psymtab): Use new.
9606
abaa2f23
TT
96072020-01-26 Tom Tromey <tom@tromey.com>
9608
9609 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9610 allocate_psymtab. Update documentation.
9611 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9612 allocate_psymtab. Do not use new.
9613 (allocate_psymtab): Use new. Update.
9614
6d94535f
TT
96152020-01-26 Tom Tromey <tom@tromey.com>
9616
9617 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9618 * psymtab.c (psym_print_stats): Update.
9619 * psympriv.h (struct partial_symtab) <readin,
9620 psymtabs_addrmap_supported, anonymous>: Now bool.
9621 * mdebugread.c (psymtab_to_symtab_1): Update.
9622 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9623 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9624 (process_full_comp_unit, process_full_type_unit): Update.
9625 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9626 * ctfread.c (psymtab_to_symtab): Update.
9627
6f17252b
TT
96282020-01-26 Tom Tromey <tom@tromey.com>
9629
9630 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9631 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9632 * psymtab.c (psymtab_storage): Delete psymtabs.
9633 (psymtab_storage::allocate_psymtab): Use new.
9634 (psymtab_storage::discard_psymtab): Use delete.
9635 * psympriv.h (struct partial_symtab): Add constructor and
9636 initializers.
9637
f6f1cebc
TT
96382020-01-26 Tom Tromey <tom@tromey.com>
9639
9640 * machoread.c: Do not include psympriv.h.
9641
e47e48f6
PW
96422020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9643
9644 * NEWS: Mention the new option and the set/show commands.
9645
a2fedca9
PW
96462020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9647
9648 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9649 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9650 (validate_exec_file): New variables, enums, functions.
9651 (exec_file_locate_attach, print_section_info): Style the filenames.
9652 (_initialize_exec): Install show_exec_file_mismatch_command and
9653 set_exec_file_mismatch_command.
9654 * gdbcore.h (validate_exec_file): Declare.
9655 * infcmd.c (attach_command): Call validate_exec_file.
9656 * remote.c ( remote_target::remote_add_inferior): Likewise.
9657
7ffa82e1
AB
96582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9659
9660 * frame.c (find_frame_sal): Move call to get_next_frame into more
9661 inner scope.
9662 * inline-frame.c (inilne_state) <inline_state>: Update argument
9663 types.
9664 (inilne_state) <skipped_symbol>: Rename to...
9665 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9666 (skip_inline_frames): Build vector of skipped symbols and use this
9667 to reate the inline_state.
9668 (inline_skipped_symbol): Add a comment and some assertions, fetch
9669 skipped symbol from the list.
9670
3d92a3e3
AB
96712020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9672
9673 * buildsym.c (lte_is_less_than): Delete.
9674 (buildsym_compunit::end_symtab_with_blockvector): Create local
9675 lambda function to sort line table entries, and use
9676 std::stable_sort instead of std::sort.
9677 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9678 markers when looking for a previous line.
9679
94a72be7
AB
96802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9681
9682 * dwarf2read.c (lnp_state_machine::record_line): Include
9683 end_sequence parameter in debug print out. Record the line if we
9684 are at an end_sequence marker even if it's not the start of a
9685 statement.
9686 * symmisc.c (maintenance_print_one_line_table): Print end of
9687 sequence markers with 'END' not '0'.
9688
53af73bf
PA
96892020-01-24 Pedro Alves <palves@redhat.com>
9690
9691 PR gdb/25410
9692 * thread.c (scoped_restore_current_thread::restore): Use
9693 switch_to_inferior_no_thread.
9694 * exec.c: Include "progspace-and-thread.h".
9695 (add_target_sections, remove_target_sections):
9696 scoped_restore_current_pspace_and_thread instead of
9697 scoped_restore_current_thread.
9698 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9699 and aspace to the inferior before calling clone_program_space.
9700 Remove stale comment.
9701
3050c6f4
CB
97022020-01-24 Christian Biesinger <cbiesinger@google.com>
9703
9704 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9705 (arm_netbsd_nat_target::fetch_registers): ...this.
9706 (arm_nbsd_nat_target::store_registers): Rename to...
9707 (arm_netbsd_nat_target::store_registers): ...this.
9708
73685c7e
CB
97092020-01-24 Christian Biesinger <cbiesinger@google.com>
9710
9711 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9712 register_t.
9713
89203d40
CB
97142020-01-24 Christian Biesinger <cbiesinger@google.com>
9715
9716 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9717 Update comment.
9718 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9719 Likewise.
9720 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9721 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9722 the correct replacement (iterate_over_regset_sections).
9723 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9724 Update comment.
9725
1ba1ac88
AB
97262020-01-24 Graham Markall <graham.markall@embecosm.com>
9727
9728 PR gdb/23718
9729 * gdb/python/python.c (execute_gdb_command): Call
9730 async_enable_stdin in catch block.
9731
f3364a6d
AB
97322020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9733
9734 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9735 SWITCH_THRU_ALL_UIS.
9736
733d0a67
AB
97372020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9738
9739 PR tui/9765
9740 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9741 comment, add extra parameter, and update to store previous symbol
9742 when appropriate.
9743 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9744 add extra parameter.
9745 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9746 remove unneeded parameter, add try/catch around gdb_print_insn,
9747 rewrite to add items to asm_lines vector.
9748 (tui_find_backward_disassembly_start_address): New function.
9749 (tui_find_disassembly_address): Updated throughout.
9750 (tui_disasm_window::set_contents): Update for changes to
9751 tui_disassemble.
9752 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9753 number of lines to scroll.
9754
b3b3bada
SM
97552020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9756
9757 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9758 (SECT_OFF_DATA): Likewise.
9759 (SECT_OFF_RODATA): Likewise.
9760 (SECT_OFF_TEXT): Likewise.
9761 (SECT_OFF_BSS): Likewise.
9762 (struct objfile) <text_section_offset, data_section_offset>: New
9763 methods.
9764 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9765 objfile::text_section_offset.
9766 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9767 * coffread.c (coff_symtab_read): Likewise.
9768 (enter_linenos): Likewise.
9769 (process_coff_symbol): Likewise.
9770 * ctfread.c (get_objfile_text_range): Likewise.
9771 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9772 Use objfile::data_section_offset.
9773 * dwarf2-frame.c (execute_cfa_program): Use
9774 objfile::text_section_offset.
9775 (dwarf2_frame_find_fde): Likewise.
9776 * dwarf2read.c (create_addrmap_from_index): Likewise.
9777 (create_addrmap_from_aranges): Likewise.
9778 (dw2_find_pc_sect_compunit_symtab): Likewise.
9779 (process_psymtab_comp_unit_reader): Likewise.
9780 (add_partial_symbol): Likewise.
9781 (add_partial_subprogram): Likewise.
9782 (process_full_comp_unit): Likewise.
9783 (read_file_scope): Likewise.
9784 (read_func_scope): Likewise.
9785 (read_lexical_block_scope): Likewise.
9786 (read_call_site_scope): Likewise.
9787 (dwarf2_rnglists_process): Likewise.
9788 (dwarf2_ranges_process): Likewise.
9789 (dwarf2_ranges_read): Likewise.
9790 (dwarf_decode_lines_1): Likewise.
9791 (new_symbol): Likewise.
9792 (dwarf2_fetch_die_loc_sect_off): Likewise.
9793 (dwarf2_per_cu_text_offset): Likewise.
9794 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9795 * hppa-tdep.c (read_unwind_info): Likewise.
9796 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9797 * psympriv.h (struct partial_symtab): Likewise.
9798 * psymtab.c (find_pc_sect_psymtab): Likewise.
9799 * solib-svr4.c (enable_break): Likewise.
9800 * stap-probe.c (relocate_address): Use
9801 objfile::data_section_offset.
9802 * xcoffread.c (enter_line_range): Use
9803 objfile::text_section_offset.
9804 (read_xcoff_symtab): Likewise.
9805
ab53f382
SM
98062020-01-23 Simon Marchi <simon.marchi@efficios.com>
9807
9808 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9809 declaration to narrower scopes.
9810
e7eee665
SM
98112020-01-23 Simon Marchi <simon.marchi@efficios.com>
9812
9813 * darwin-nat.h (struct darwin_exception_msg, enum
9814 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9815 Move up.
9816 (class darwin_nat_target) <wait_1, check_new_threads,
9817 decode_exception_message, decode_message, stop_inferior,
9818 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9819 * darwin-nat.c (darwin_check_new_threads): Rename to...
9820 (darwin_nat_target::check_new_threads): ... this.
9821 (darwin_suspend_inferior_it): Remove.
9822 (darwin_decode_exception_message): Rename to...
9823 (darwin_nat_target::decode_exception_message): ... this.
9824 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9825 (darwin_decode_message): Rename to...
9826 (darwin_nat_target::decode_message): ... this.
9827 (cancel_breakpoint): Rename to...
9828 (darwin_nat_target::cancel_breakpoint): ... this.
9829 (darwin_wait): Rename to...
9830 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9831 instead of iterate_over_inferiors.
9832 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9833 (darwin_stop_inferior): Rename to...
9834 (darwin_nat_target::stop_inferior): ... this.
9835 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9836 (darwin_init_thread_list): Rename to...
9837 (darwin_nat_target::init_thread_list): ... this.
9838 (darwin_ptrace_him): Rename to...
9839 (darwin_nat_target::ptrace_him): ... this.
9840 (darwin_nat_target::create_inferior): Pass lambda function to
9841 fork_inferior.
9842 (darwin_nat_target::detach): Call stop_inferior instead of
9843 darwin_stop_inferior.
9844 * fork-inferior.h (fork_inferior): Change init_trace_fun
9845 parameter to gdb::function_view.
9846 * fork-inferior.c (fork_inferior): Likewise.
9847
c162ed3e
HD
98482020-01-23 Hannes Domani <ssbssa@yahoo.de>
9849
9850 * i386-cygwin-tdep.c (core_process_module_section): Update.
9851 * windows-nat.c (struct lm_info_windows): Add text_offset.
9852 (windows_xfer_shared_libraries): Update.
9853 * windows-tdep.c (windows_xfer_shared_library):
9854 Add text_offset_cached argument.
9855 * windows-tdep.h (windows_xfer_shared_library): Update.
9856
a1237872
SM
98572020-01-21 Simon Marchi <simon.marchi@efficios.com>
9858
9859 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9860
b3ee6dd9
SM
98612020-01-21 Simon Marchi <simon.marchi@efficios.com>
9862
9863 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9864 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9865 replace with range-based for.
9866 (gdbsim_interrupt_inferior): Remove.
9867 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9868 with a range-based for. Inline code from
9869 gdbsim_interrupt_inferior.
9870
f9fac3c8
SM
98712020-01-21 Simon Marchi <simon.marchi@efficios.com>
9872
9873 * infrun.c (proceed): Fix indentation.
9874
f6474de9
TT
98752020-01-21 Tom Tromey <tromey@adacore.com>
9876
9877 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9878 * python/python.c (python_extension_ops): Update.
9879 (gdbpy_colorize): New function.
9880 * python/lib/gdb/__init__.py (colorize): New function.
9881 * extension.h (ext_lang_colorize): Declare.
9882 * extension.c (ext_lang_colorize): New function.
9883 * extension-priv.h (struct extension_language_ops) <colorize>: New
9884 member.
9885 * cli/cli-style.c (_initialize_cli_style): Update help text.
9886
f0c702d4
LM
98872020-01-21 Luis Machado <luis.machado@linaro.org>
9888
9889 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9890 <cond>: Change type to bool.
9891 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9892 (aarch64_displaced_step_cb): Likewise.
9893 (aarch64_displaced_step_tb): Likewise.
9894
1ab139e5
LM
98952020-01-21 Luis Machado <luis.machado@linaro.org>
9896
9897 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9898 output.
9899
0c271889
LM
99002020-01-21 Luis Machado <luis.machado@linaro.org>
9901
9902 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9903 <pc_adjust>: Adjust the documentation.
9904 (aarch64_displaced_step_fixup): Check if PC really moved before
9905 adjusting it.
9906
4d89c1c7
TT
99072020-01-19 Tom Tromey <tom@tromey.com>
9908
9909 * disasm.c (~gdb_disassembler): New destructor.
9910 (gdb_buffered_insn_length): Call disassemble_free_target.
9911 * disasm.h (class gdb_disassembler): Declare destructor. Use
9912 DISABLE_COPY_AND_ASSIGN.
9913
c0ab21c2
TT
99142020-01-19 Tom Tromey <tom@tromey.com>
9915
9916 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9917 (die_reader_func_ftype): Remove.
9918 (cutu_reader): New class.
9919 (dw2_get_file_names_reader): Remove "data" parameter.
9920 (dw2_get_file_names): Use cutu_reader.
9921 (create_debug_type_hash_table): Update.
9922 (read_cutu_die_from_dwo): Update comment.
9923 (lookup_dwo_unit): Add dwo_name parameter.
9924 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9925 die_reader_func_ftype and data parameters.
9926 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9927 Remove die_reader_func_ftype and data parameters.
9928 (~cutu_reader): New; from init_cutu_and_read_dies.
9929 (cutu_reader::cutu_reader): Rename from
9930 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9931 and data parameters.
9932 (init_cutu_and_read_dies_simple): Remove.
9933 (struct process_psymtab_comp_unit_data): Remove.
9934 (process_psymtab_comp_unit_reader): Remove data parameter; add
9935 want_partial_unit and pretend_language parameters.
9936 (process_psymtab_comp_unit): Use cutu_reader.
9937 (build_type_psymtabs_reader): Remove data parameter.
9938 (build_type_psymtabs_1): Use cutu_reader.
9939 (process_skeletonless_type_unit): Likewise.
9940 (load_partial_comp_unit_reader): Remove.
9941 (load_partial_comp_unit): Use cutu_reader.
9942 (load_full_comp_unit_reader): Remove.
9943 (load_full_comp_unit): Use cutu_reader.
9944 (struct create_dwo_cu_data): Remove.
9945 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9946 dwo_unit parameters.
9947 (create_cus_hash_table): Use cutu_reader.
9948 (struct dwarf2_read_addr_index_data): Remove.
9949 (dwarf2_read_addr_index_reader): Remove.
9950 (dwarf2_read_addr_index): Use cutu_reader.
9951 (read_signatured_type_reader): Remove.
9952 (read_signatured_type): Use cutu_reader.
9953
45bbae5c
TT
99542020-01-19 Tom Tromey <tom@tromey.com>
9955
9956 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9957 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9958 (tui_wrefresh): Declare.
9959 * tui/tui-wingeneral.c (suppress_output): New global.
9960 (tui_suppress_output, ~tui_suppress_output): New constructor and
9961 destructor.
9962 (tui_wrefresh): New function.
9963 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9964 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9965 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9966 method.
9967 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9968 tui_wrefresh.
9969 (tui_data_window::no_refresh): New method.
9970 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9971 (tui_reg_command): Use tui_suppress_output
9972 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9973 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9974 method.
9975 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9976
4f13c1c0
TT
99772020-01-19 Tom Tromey <tom@tromey.com>
9978
9979 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9980 Handle case where symtab is null.
9981
fa47e446
SM
99822020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9983
9984 * linux-fork.c (one_fork_p): Simplify.
9985
26f42329
SM
99862020-01-17 Simon Marchi <simon.marchi@efficios.com>
9987
9988 * top.c (struct qt_args): Remove.
9989 (kill_or_detach): Change return type to void, replace `void *`
9990 parameter with a proper one.
9991 (print_inferior_quit_action): Likewise.
9992 (quit_confirm): Use range-based for loop to iterate over inferiors.
9993 (quit_force): Likewise.
9994
a9ac81b1
SM
99952020-01-17 Simon Marchi <simon.marchi@efficios.com>
9996
9997 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9998 `void *` parameter with proper parameters.
9999 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10000 (print_one_inferior): Change return type to void, replace `void *`
10001 parameter with proper parameters.
10002 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10003 inferiors.
10004 (get_other_inferior): Remove.
10005 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10006 inferiors.
10007
788eca49
SM
100082020-01-17 Simon Marchi <simon.marchi@efficios.com>
10009
10010 * mi/mi-interp.c (report_initial_inferior): Remove.
10011 (mi_interp::init): Use range-based for to iterate over inferiors.
10012
d9bc85b6
SM
100132020-01-17 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * python/py-inferior.c (build_inferior_list): Remove.
10016 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10017
40c94099
CB
100182020-01-16 Christian Biesinger <cbiesinger@google.com>
10019
10020 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10021 (btrace_stitch_trace): Likewise.
10022 * charset.c (intermediate_encoding): Likewise (vaild).
10023 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10024 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10025 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10026
e0cdfe3c
HD
100272020-01-16 Hannes Domani <ssbssa@yahoo.de>
10028
10029 * windows-tdep.c (windows_get_tlb_type):
10030 Add rtl_user_process_parameters type.
10031
790f1718 100322020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10033 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10034
10035 PR build/24805
10036 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10037 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10038 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10039 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10040 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10041 (ps_plog): Redeclare exported functions with default visibility.
10042
3112ed97
NA
100432020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10044
10045 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10046 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10047
8dc3273e
SM
100482020-01-15 Simon Marchi <simon.marchi@efficios.com>
10049
10050 * infcmd.c (post_create_inferior): Use get_thread_regcache
10051 instead of get_current_regcache.
10052
ff47f4f0
TT
100532020-01-14 Tom Tromey <tom@tromey.com>
10054
10055 PR symtab/12535:
10056 * python/python.c (gdbpy_decode_line): Treat empty string the same
10057 as no argument.
10058
975f45b7
TT
100592020-01-14 Tom Tromey <tom@tromey.com>
10060
10061 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10062
25e57356
TT
100632020-01-14 Tom Tromey <tom@tromey.com>
10064
10065 * nat/linux-btrace.c: Don't include <config.h>.
10066 * nat/linux-ptrace.c: Don't include <config.h>.
10067 * nat/x86-linux-dregs.c: Don't include <config.h>.
10068
05ea2a05
TT
100692020-01-14 Tom Tromey <tom@tromey.com>
10070
10071 * configure: Rebuild.
10072 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10073
01027315
TT
100742020-01-14 Tom Tromey <tom@tromey.com>
10075
10076 * nat/x86-linux-dregs.c: Include configh.h.
10077 * nat/linux-ptrace.c: Include configh.h.
10078 * nat/linux-btrace.c: Include configh.h.
10079 * defs.h: Include config.h, bfd.h.
10080 * configure.ac: Don't source common.host.
10081 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10082 * configure: Rebuild.
10083 * acinclude.m4: Update path.
10084 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10085 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10086 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10087 (CLIBS): Add LIBSUPPORT.
10088 (CDEPS): Likewise.
10089 (COMMON_SFILES): Remove gdbsupport files.
10090 (HFILES_NO_SRCDIR): Likewise.
10091 (stamp-version): Update path to create-version.sh.
10092 (ALLDEPFILES): Remove gdbsupport files.
10093
b2ceabe8
TT
100942020-01-14 Tom Tromey <tom@tromey.com>
10095
10096 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10097 USE_WIN32API when needed.
10098 * configure.ac (USE_WIN32API): Don't define.
10099 (WIN32LIBS): Use WIN32APILIBS.
10100 * configure: Rebuild.
10101
25c51f71
TT
101022020-01-14 Tom Tromey <tom@tromey.com>
10103
10104 * configure: Rebuild.
10105 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10106
717c684d
BE
101072020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10108
10109 * skip.c (skip_function_command): Make skip w/o arguments use the
10110 name of the inlined function if pc is inside any inlined function.
10111
7da6a5b9
LM
101122020-01-14 Luis Machado <luis.machado@linaro.org>
10113
10114 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10115 * infrun.c (resume_1): Likewise.
10116 (handle_inferior_event): Remove stale comment.
10117 * linux-nat.c (linux_nat_target::resume): Update comments.
10118 (save_stop_reason): Likewise.
10119 (linux_nat_filter_event): Likewise.
10120 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10121
44e4c775
AB
101222020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10123
10124 * elfread.c (record_minimal_symbol): Set section index to 0 for
10125 non-allocatable sections.
10126
18a8505e
AT
10127
101282020-01-13 Ali Tamur <tamur@google.com>
10129
10130 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10131 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10132 to gdb::optional. Update comments.
10133 (dwo_file): Update comments.
10134 (read_attribute): Update API to take an additional out parameter,
10135 need_reprocess. This is used to mark attributes that need other
10136 attributes (e.g. str_offsets_base) for correct computation which may not
10137 have been read yet.
10138 (read_attribute_reprocess): New function declaration.
10139 (read_addr_index): Likewise.
10140 (read_dwo_str_index): Likewise.
10141 (read_stub_str_index): Likewise.
10142 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10143 (lookup_addr_base): New function definition.
10144 (lookup_ranges_base): Likewise.
10145 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10146 lookup_ranges_base.
10147 (init_cutu_and_read_dies): Update comments.
10148 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10149 unit. This is used to inherit parent's str_offsets_base and addr_base.
10150 Update comments.
10151 (init_cutu_and_read_dies_simple): Reflect API changes.
10152 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10153 (create_cus_hash_table): Change API to take parent compile unit.
10154 Reflect API changes.
10155 (open_and_init_dwo_file): Reflect API changes.
10156 (dwarf2_get_pc_bounds): Update comments.
10157 (dwarf2_record_block_ranges): Likewise.
10158 (read_full_die_1): Change implementation to reprocess attributes that
10159 need str_offsets_base and addr_base.
10160 (partial_die_info::read): Likewise.
10161 (read_attribute_reprocess): New function definition.
10162 (read_attribute_value): Change API to take an additional out parameter,
10163 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10164 when a non-dwo compile unit has index based attributes.
10165 (read_attribute): Reflect API changes.
10166 (read_addr_index_1): Reflect API changes. Update comments.
10167 (dwarf2_read_addr_index_data): Reflect API changes.
10168 (dwarf2_read_addr_index): Likewise.
10169 (read_str_index): Change API and implementation. This becomes a helper
10170 to be used by the new string index related methods. Update error
10171 message and comments.
10172 (read_dwo_str_index): New function definition.
10173 (read_stub_str_index): Likewise.
10174 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10175 * symfile.h (dwarf2_debug_sections): Likewise.
10176 * xcoffread.c (dwarf2_debug_sections): Likewise.
10177
0cac9354
SM
101782020-01-13 Simon Marchi <simon.marchi@efficios.com>
10179
10180 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10181 core_reg_sect type to gdb_byte *.
10182 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10183 * cris-tdep.c (fetch_core_registers): Likewise.
10184 * corelow.c (core_target::get_core_register_section): Change
10185 type of `contents` to gdb::byte_vector.
10186
9a6d629c
AB
101872020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10188
10189 * tui/tui-wingeneral.c (box_win): Position the title in the center
10190 of the border.
10191
d8b2f9e3
SM
101922020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10193
10194 * corelow.c (core_target::get_core_register_section): Use
10195 std::vector instead of alloca.
10196
bb564c58
SM
101972020-01-13 Simon Marchi <simon.marchi@efficios.com>
10198
10199 * warning.m4: Add -Wmissing-declarations to build_warnings.
10200 * configure: Re-generate.
10201
6b366111
SM
102022020-01-13 Simon Marchi <simon.marchi@efficios.com>
10203
10204 * python/python.c (init__gdb_module): Add declaration.
10205
6c265988
SM
102062020-01-13 Simon Marchi <simon.marchi@efficios.com>
10207
10208 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10209 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10210 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10211 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10212 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10213 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10214 * ada-exp.y (_initialize_ada_exp): Add declaration.
10215 * ada-lang.c (_initialize_ada_language): Add declaration.
10216 * ada-tasks.c (_initialize_tasks): Add declaration.
10217 * agent.c (_initialize_agent): Add declaration.
10218 * aix-thread.c (_initialize_aix_thread): Add declaration.
10219 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10220 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10221 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10222 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10223 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10224 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10225 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10226 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10227 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10228 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10229 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10230 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10231 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10232 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10233 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10234 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10235 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10236 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10237 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10238 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10239 * annotate.c (_initialize_annotate): Add declaration.
10240 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10241 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10242 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10243 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10244 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10245 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10246 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10247 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10248 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10249 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10250 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10251 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10252 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10253 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10254 * auto-load.c (_initialize_auto_load): Add declaration.
10255 * auxv.c (_initialize_auxv): Add declaration.
10256 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10257 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10258 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10259 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10260 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10261 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10262 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10263 * breakpoint.c (_initialize_breakpoint): Add declaration.
10264 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10265 * btrace.c (_initialize_btrace): Add declaration.
10266 * charset.c (_initialize_charset): Add declaration.
10267 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10268 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10269 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10270 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10271 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10272 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10273 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10274 * coffread.c (_initialize_coffread): Add declaration.
10275 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10276 * compile/compile.c (_initialize_compile): Add declaration.
10277 * complaints.c (_initialize_complaints): Add declaration.
10278 * completer.c (_initialize_completer): Add declaration.
10279 * copying.c (_initialize_copying): Add declaration.
10280 * corefile.c (_initialize_core): Add declaration.
10281 * corelow.c (_initialize_corelow): Add declaration.
10282 * cp-abi.c (_initialize_cp_abi): Add declaration.
10283 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10284 * cp-support.c (_initialize_cp_support): Add declaration.
10285 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10286 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10287 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10288 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10289 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10290 * ctfread.c (_initialize_ctfread): Add declaration.
10291 * d-lang.c (_initialize_d_language): Add declaration.
10292 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10293 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10294 * dbxread.c (_initialize_dbxread): Add declaration.
10295 * dcache.c (_initialize_dcache): Add declaration.
10296 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10297 * disasm.c (_initialize_disasm): Add declaration.
10298 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10299 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10300 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10301 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10302 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10303 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10304 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10305 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10306 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10307 * elfread.c (_initialize_elfread): Add declaration.
10308 * exec.c (_initialize_exec): Add declaration.
10309 * extension.c (_initialize_extension): Add declaration.
10310 * f-lang.c (_initialize_f_language): Add declaration.
10311 * f-valprint.c (_initialize_f_valprint): Add declaration.
10312 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10313 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10314 * filesystem.c (_initialize_filesystem): Add declaration.
10315 * findcmd.c (_initialize_mem_search): Add declaration.
10316 * findvar.c (_initialize_findvar): Add declaration.
10317 * fork-child.c (_initialize_fork_child): Add declaration.
10318 * frame-base.c (_initialize_frame_base): Add declaration.
10319 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10320 * frame.c (_initialize_frame): Add declaration.
10321 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10322 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10323 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10324 * gcore.c (_initialize_gcore): Add declaration.
10325 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10326 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10327 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10328 * gdbarch.c (_initialize_gdbarch): Add declaration.
10329 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10330 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10331 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10332 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10333 * go-lang.c (_initialize_go_language): Add declaration.
10334 * go32-nat.c (_initialize_go32_nat): Add declaration.
10335 * guile/guile.c (_initialize_guile): Add declaration.
10336 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10337 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10338 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10339 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10340 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10341 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10342 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10343 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10344 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10345 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10346 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10347 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10348 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10349 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10350 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10351 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10352 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10353 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10354 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10355 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10356 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10357 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10358 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10359 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10360 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10361 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10362 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10363 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10364 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10365 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10366 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10367 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10368 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10369 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10370 * infcall.c (_initialize_infcall): Add declaration.
10371 * infcmd.c (_initialize_infcmd): Add declaration.
10372 * inflow.c (_initialize_inflow): Add declaration.
10373 * infrun.c (_initialize_infrun): Add declaration.
10374 * interps.c (_initialize_interpreter): Add declaration.
10375 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10376 * jit.c (_initialize_jit): Add declaration.
10377 * language.c (_initialize_language): Add declaration.
10378 * linux-fork.c (_initialize_linux_fork): Add declaration.
10379 * linux-nat.c (_initialize_linux_nat): Add declaration.
10380 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10381 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10382 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10383 * m2-lang.c (_initialize_m2_language): Add declaration.
10384 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10385 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10386 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10387 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10388 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10389 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10390 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10391 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10392 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10393 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10394 * machoread.c (_initialize_machoread): Add declaration.
10395 * macrocmd.c (_initialize_macrocmd): Add declaration.
10396 * macroscope.c (_initialize_macroscope): Add declaration.
10397 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10398 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10399 * maint.c (_initialize_maint_cmds): Add declaration.
10400 * mdebugread.c (_initialize_mdebugread): Add declaration.
10401 * memattr.c (_initialize_mem): Add declaration.
10402 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10403 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10404 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10405 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10406 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10407 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10408 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10409 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10410 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10411 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10412 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10413 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10414 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10415 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10416 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10417 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10418 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10419 * mipsread.c (_initialize_mipsread): Add declaration.
10420 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10421 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10422 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10423 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10424 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10425 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10426 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10427 * nto-procfs.c (_initialize_procfs): Add declaration.
10428 * objc-lang.c (_initialize_objc_language): Add declaration.
10429 * observable.c (_initialize_observer): Add declaration.
10430 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10431 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10432 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10433 * osabi.c (_initialize_gdb_osabi): Add declaration.
10434 * osdata.c (_initialize_osdata): Add declaration.
10435 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10436 * parse.c (_initialize_parse): Add declaration.
10437 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10438 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10439 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10440 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10441 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10442 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10443 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10444 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10445 * printcmd.c (_initialize_printcmd): Add declaration.
10446 * probe.c (_initialize_probe): Add declaration.
10447 * proc-api.c (_initialize_proc_api): Add declaration.
10448 * proc-events.c (_initialize_proc_events): Add declaration.
10449 * proc-service.c (_initialize_proc_service): Add declaration.
10450 * procfs.c (_initialize_procfs): Add declaration.
10451 * producer.c (_initialize_producer): Add declaration.
10452 * psymtab.c (_initialize_psymtab): Add declaration.
10453 * python/python.c (_initialize_python): Add declaration.
10454 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10455 * record-btrace.c (_initialize_record_btrace): Add declaration.
10456 * record-full.c (_initialize_record_full): Add declaration.
10457 * record.c (_initialize_record): Add declaration.
10458 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10459 * regcache.c (_initialize_regcache): Add declaration.
10460 * reggroups.c (_initialize_reggroup): Add declaration.
10461 * remote-notif.c (_initialize_notif): Add declaration.
10462 * remote-sim.c (_initialize_remote_sim): Add declaration.
10463 * remote.c (_initialize_remote): Add declaration.
10464 * reverse.c (_initialize_reverse): Add declaration.
10465 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10466 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10467 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10468 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10469 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10470 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10471 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10472 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10473 Add declaration.
10474 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10475 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10476 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10477 * rust-exp.y (_initialize_rust_exp): Add declaration.
10478 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10479 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10480 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10481 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10482 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10483 * score-tdep.c (_initialize_score_tdep): Add declaration.
10484 * ser-go32.c (_initialize_ser_dos): Add declaration.
10485 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10486 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10487 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10488 * ser-uds.c (_initialize_ser_socket): Add declaration.
10489 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10490 * serial.c (_initialize_serial): Add declaration.
10491 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10492 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10493 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10494 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10495 * skip.c (_initialize_step_skip): Add declaration.
10496 * sol-thread.c (_initialize_sol_thread): Add declaration.
10497 * solib-aix.c (_initialize_solib_aix): Add declaration.
10498 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10499 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10500 * solib-frv.c (_initialize_frv_solib): Add declaration.
10501 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10502 * solib-target.c (_initialize_solib_target): Add declaration.
10503 * solib.c (_initialize_solib): Add declaration.
10504 * source-cache.c (_initialize_source_cache): Add declaration.
10505 * source.c (_initialize_source): Add declaration.
10506 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10507 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10508 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10509 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10510 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10511 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10512 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10513 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10514 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10515 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10516 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10517 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10518 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10519 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10520 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10521 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10522 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10523 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10524 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10525 * stabsread.c (_initialize_stabsread): Add declaration.
10526 * stack.c (_initialize_stack): Add declaration.
10527 * stap-probe.c (_initialize_stap_probe): Add declaration.
10528 * std-regs.c (_initialize_frame_reg): Add declaration.
10529 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10530 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10531 * symfile.c (_initialize_symfile): Add declaration.
10532 * symmisc.c (_initialize_symmisc): Add declaration.
10533 * symtab.c (_initialize_symtab): Add declaration.
10534 * target.c (_initialize_target): Add declaration.
10535 * target-connection.c (_initialize_target_connection): Add
10536 declaration.
10537 * target-dcache.c (_initialize_target_dcache): Add declaration.
10538 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10539 * thread.c (_initialize_thread): Add declaration.
10540 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10541 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10542 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10543 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10544 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10545 * tracectf.c (_initialize_ctf): Add declaration.
10546 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10547 * tracefile.c (_initialize_tracefile): Add declaration.
10548 * tracepoint.c (_initialize_tracepoint): Add declaration.
10549 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10550 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10551 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10552 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10553 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10554 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10555 * tui/tui.c (_initialize_tui): Add declaration.
10556 * typeprint.c (_initialize_typeprint): Add declaration.
10557 * ui-style.c (_initialize_ui_style): Add declaration.
10558 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10559 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10560 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10561 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10562 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10563 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10564 * unittests/filtered_iterator-selftests.c
10565 (_initialize_filtered_iterator_selftests): Add declaration.
10566 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10567 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10568 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10569 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10570 * unittests/main-thread-selftests.c
10571 (_initialize_main_thread_selftests): Add declaration.
10572 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10573 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10574 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10575 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10576 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10577 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10578 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10579 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10580 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10581 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10582 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10583 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10584 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10585 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10586 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10587 declaration.
10588 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10589 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10590 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10591 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10592 * user-regs.c (_initialize_user_regs): Add declaration.
10593 * utils.c (_initialize_utils): Add declaration.
10594 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10595 * valops.c (_initialize_valops): Add declaration.
10596 * valprint.c (_initialize_valprint): Add declaration.
10597 * value.c (_initialize_values): Add declaration.
10598 * varobj.c (_initialize_varobj): Add declaration.
10599 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10600 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10601 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10602 * windows-nat.c (_initialize_windows_nat): Add declaration.
10603 (_initialize_check_for_gdb_ini): Add declaration.
10604 (_initialize_loadable): Add declaration.
10605 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10606 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10607 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10608 * xcoffread.c (_initialize_xcoffread): Add declaration.
10609 * xml-support.c (_initialize_xml_support): Add declaration.
10610 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10611 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10612 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10613 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10614
e2de1eec
SM
106152020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10616
10617 * regformats/regdat.sh: Generate declaration for init function.
10618
e0037b4c
SM
106192020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10620
10621 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10622 up.
10623 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10624 close_one_inferior>: New methods.
10625 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10626 pass down target to find_inferior_pid.
10627 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10628 Pass down target to find_inferior_ptid.
10629 (gdbsim_target::create_inferior): Pass down target to
10630 add_thread_silent.
10631 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10632 target down to find_inferior_ptid and switch_to_thread.
10633 (gdbsim_target::close): Update to call close_one_inferior.
10634 (struct resume_data): Remove.
10635 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10636 directly, rather than through a void pointer.
10637 (gdbsim_target::resume): Update to call resume_one_inferior.
10638
58920b5b
SM
106392020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10640
10641 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10642
4ec89149
PA
106432020-01-12 Pedro Alves <palves@redhat.com>
10644
10645 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10646 directly for the current inferior instead of
10647 discard_all_inferiors.
10648 (discard_all_inferiors): Delete.
10649
7c392d1d
TT
106502020-01-11 Tom Tromey <tom@tromey.com>
10651
10652 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10653 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10654 deprecated_safe_get_selected_frame.
10655
d9ebdab7
TBA
106562020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10657
10658 * inferior.c (print_inferior): Switch inferior before printing it.
10659
f3c469b9
PA
106602020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10661 Pedro Alves <palves@redhat.com>
10662
10663 * progspace-and-thread.c (switch_to_program_space_and_thread):
10664 Assert there's an inferior for PSPACE. Use
10665 switch_to_inferior_no_thread to switch the inferior too.
10666 * progspace.c (program_space::~program_space): Call
10667 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10668 (program_space::free_all_objfiles): Don't call clear_symtab_users
10669 here.
10670 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10671
65c574f6
PA
106722020-01-10 Pedro Alves <palves@redhat.com>
10673
10674 * NEWS: Mention multi-target debugging, "info connections", and
10675 "add-inferior -no-connection".
10676
2f4fcf00
PA
106772020-01-10 Pedro Alves <palves@redhat.com>
10678
10679 * infrun.c: Include "target-connection.h".
10680 (check_multi_target_resumption): New.
10681 (proceed): Call it.
10682 * target-connection.c (make_target_connection_string): Make
10683 extern.
10684 * target-connection.h (make_target_connection_string): Declare.
10685
121b3efd
PA
106862020-01-10 Pedro Alves <palves@redhat.com>
10687
10688 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10689 * inferior.c (uiout_field_connection): New function.
10690 (print_inferior): Add new "connection-id" column.
10691 (add_inferior_command): Show connection number/string of added
10692 inferior.
10693 * process-stratum-target.h
10694 (process_stratum_target::connection_string): New virtual method.
10695 (process_stratum_target::connection_number): New field.
10696 * remote.c (remote_target::connection_string): New override.
10697 * target-connection.c: New file.
10698 * target-connection.h: New file.
10699 * target.c (decref_target): Remove process_stratum targets from
10700 the connection list.
10701 (target_stack::push): Add process_stratum targets to the
10702 connection list.
10703
4f837581
PA
107042020-01-10 Pedro Alves <palves@redhat.com>
10705
10706 Revert:
10707 2016-04-12 Pedro Alves <palves@redhat.com>
10708 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10709 Remove references to name.
10710 * serial.h (struct serial) <name>: Delete.
10711
f4ec508e
PA
107122020-01-10 Pedro Alves <palves@redhat.com>
10713
10714 * gdbarch-selftests.c (register_to_value_test): Remove "target
10715 already pushed" check.
10716
5b6d1e4f
PA
107172020-01-10 Pedro Alves <palves@redhat.com>
10718 John Baldwin <jhb@FreeBSD.org>
10719
10720 * aarch64-linux-nat.c
10721 (aarch64_linux_nat_target::thread_architecture): Adjust.
10722 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10723 (task_command_1): Likewise.
10724 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10725 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10726 (aix_thread_target::store_registers)
10727 (aix_thread_target::thread_alive): Adjust.
10728 * amd64-fbsd-tdep.c: Include "inferior.h".
10729 (amd64fbsd_get_thread_local_address): Pass down target.
10730 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10731 thread's gdbarch instead of target_gdbarch.
10732 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10733 get_last_target_status.
10734 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10735 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10736 inferiors.
10737 (update_inserted_breakpoint_locations): Skip if inferiors with no
10738 execution.
10739 (update_global_location_list): When handling moribund locations,
10740 find representative inferior for location's pspace, and use thread
10741 count of its process_stratum target.
10742 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10743 * bsd-uthread.c (bsd_uthread_target::wait): Use
10744 as_process_stratum_target and adjust thread_change_ptid and
10745 add_thread calls.
10746 (bsd_uthread_target::update_thread_list): Use
10747 as_process_stratum_target and adjust find_thread_ptid,
10748 thread_change_ptid and add_thread calls.
10749 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10750 find_thread_ptid call.
10751 * corelow.c (add_to_thread_list): Adjust add_thread call.
10752 (core_target_open): Adjust add_thread_silent and thread_count
10753 calls.
10754 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10755 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10756 * event-top.c (async_disconnect): Pop targets from all inferiors.
10757 * exec.c (add_target_sections): Push exec target on all inferiors
10758 sharing the program space.
10759 (remove_target_sections): Remove the exec target from all
10760 inferiors sharing the program space.
10761 (exec_on_vfork): New.
10762 * exec.h (exec_on_vfork): Declare.
10763 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10764 Pass it down.
10765 (fbsd_nat_target::update_thread_list): Adjust.
10766 (fbsd_nat_target::resume): Adjust.
10767 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10768 down.
10769 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10770 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10771 get_thread_arch_regcache call.
10772 * fork-child.c (gdb_startup_inferior): Pass target down to
10773 startup_inferior and set_executing.
10774 * gdbthread.h (struct process_stratum_target): Forward declare.
10775 (add_thread, add_thread_silent, add_thread_with_info)
10776 (in_thread_list): Add process_stratum_target parameter.
10777 (find_thread_ptid(inferior*, ptid_t)): New overload.
10778 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10779 parameter.
10780 (all_threads()): Delete overload.
10781 (all_threads, all_non_exited_threads): Add process_stratum_target
10782 parameter.
10783 (all_threads_safe): Use brace initialization.
10784 (thread_count): Add process_stratum_target parameter.
10785 (set_resumed, set_running, set_stop_requested, set_executing)
10786 (threads_are_executing, finish_thread_state): Add
10787 process_stratum_target parameter.
10788 (switch_to_thread): Use is_current_thread.
10789 * i386-fbsd-tdep.c: Include "inferior.h".
10790 (i386fbsd_get_thread_local_address): Pass down target.
10791 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10792 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10793 have_inferiors check.
10794 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10795 (inf_ptrace_target::attach): Adjust.
10796 * infcall.c (run_inferior_call): Adjust.
10797 * infcmd.c (run_command_1): Pass target to
10798 scoped_finish_thread_state.
10799 (proceed_thread_callback): Skip inferiors with no execution.
10800 (continue_command): Rename 'all_threads' local to avoid hiding
10801 'all_threads' function. Adjust get_last_target_status call.
10802 (prepare_one_step): Adjust set_running call.
10803 (signal_command): Use user_visible_resume_target. Compare thread
10804 pointers instead of inferior_ptid.
10805 (info_program_command): Adjust to pass down target.
10806 (attach_command): Mark target's 'thread_executing' flag.
10807 (stop_current_target_threads_ns): New, factored out from ...
10808 (interrupt_target_1): ... this. Switch inferior before making
10809 target calls.
10810 * inferior-iter.h
10811 (struct all_inferiors_iterator, struct all_inferiors_range)
10812 (struct all_inferiors_safe_range)
10813 (struct all_non_exited_inferiors_range): Filter on
10814 process_stratum_target too. Remove explicit.
10815 * inferior.c (inferior::inferior): Push dummy target on target
10816 stack.
10817 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10818 Add process_stratum_target parameter, and pass it down.
10819 (have_live_inferiors): Adjust.
10820 (switch_to_inferior_and_push_target): New.
10821 (add_inferior_command, clone_inferior_command): Handle
10822 "-no-connection" parameter. Use
10823 switch_to_inferior_and_push_target.
10824 (_initialize_inferior): Mention "-no-connection" option in
10825 the help of "add-inferior" and "clone-inferior" commands.
10826 * inferior.h: Include "process-stratum-target.h".
10827 (interrupt_target_1): Use bool.
10828 (struct inferior) <push_target, unpush_target, target_is_pushed,
10829 find_target_beneath, top_target, process_target, target_at,
10830 m_stack>: New.
10831 (discard_all_inferiors): Delete.
10832 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10833 (all_inferiors, all_non_exited_inferiors): Add
10834 process_stratum_target parameter.
10835 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10836 (target_last_proc_target): New global.
10837 (follow_fork_inferior): Push target on new inferior. Pass target
10838 to add_thread_silent. Call exec_on_vfork. Handle target's
10839 reference count.
10840 (follow_fork): Adjust get_last_target_status call. Also consider
10841 target.
10842 (follow_exec): Push target on new inferior.
10843 (struct execution_control_state) <target>: New field.
10844 (user_visible_resume_target): New.
10845 (do_target_resume): Call target_async.
10846 (resume_1): Set target's threads_executing flag. Consider resume
10847 target.
10848 (commit_resume_all_targets): New.
10849 (proceed): Also consider resume target. Skip threads of inferiors
10850 with no execution. Commit resumtion in all targets.
10851 (start_remote): Pass current inferior to wait_for_inferior.
10852 (infrun_thread_stop_requested): Consider target as well. Pass
10853 thread_info pointer to clear_inline_frame_state instead of ptid.
10854 (infrun_thread_thread_exit): Consider target as well.
10855 (random_pending_event_thread): New inferior parameter. Use it.
10856 (do_target_wait): Rename to ...
10857 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10858 down.
10859 (threads_are_resumed_pending_p, do_target_wait): New.
10860 (prepare_for_detach): Adjust calls.
10861 (wait_for_inferior): New inferior parameter. Handle it. Use
10862 do_target_wait_1 instead of do_target_wait.
10863 (fetch_inferior_event): Adjust. Switch to representative
10864 inferior. Pass target down.
10865 (set_last_target_status): Add process_stratum_target parameter.
10866 Save target in global.
10867 (get_last_target_status): Add process_stratum_target parameter and
10868 handle it.
10869 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10870 (context_switch): Check inferior_ptid == null_ptid before calling
10871 inferior_thread().
10872 (get_inferior_stop_soon): Pass down target.
10873 (wait_one): Rename to ...
10874 (poll_one_curr_target): ... this.
10875 (struct wait_one_event): New.
10876 (wait_one): New.
10877 (stop_all_threads): Adjust.
10878 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10879 event's target.
10880 (switch_back_to_stepped_thread): Also consider target.
10881 (print_stop_event): Update.
10882 (normal_stop): Update. Also consider the resume target.
10883 * infrun.h (wait_for_inferior): Remove declaration.
10884 (user_visible_resume_target): New declaration.
10885 (get_last_target_status, set_last_target_status): New
10886 process_stratum_target parameter.
10887 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10888 process_stratum_target parameter, and use it.
10889 (clear_inline_frame_state (thread_info*)): New.
10890 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10891 process_stratum_target parameter.
10892 (clear_inline_frame_state (thread_info*)): Declare.
10893 * linux-fork.c (delete_checkpoint_command): Pass target down to
10894 find_thread_ptid.
10895 (checkpoint_command): Adjust.
10896 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10897 instead of just tweaking inferior_ptid.
10898 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10899 (exit_lwp): Pass target down to find_thread_ptid.
10900 (attach_proc_task_lwp_callback): Pass target down to
10901 add_thread/set_running/set_executing.
10902 (linux_nat_target::attach): Pass target down to
10903 thread_change_ptid.
10904 (get_detach_signal): Pass target down to find_thread_ptid.
10905 Consider last target status's target.
10906 (linux_resume_one_lwp_throw, resume_lwp)
10907 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10908 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10909 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10910 (linux_nat_target::async_wait_fd): New.
10911 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10912 target down.
10913 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10914 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10915 * linux-thread-db.c (struct thread_db_info::process_target): New
10916 field.
10917 (add_thread_db_info): Save target.
10918 (get_thread_db_info): New process_stratum_target parameter. Also
10919 match target.
10920 (delete_thread_db_info): New process_stratum_target parameter.
10921 Also match target.
10922 (thread_from_lwp): Adjust to pass down target.
10923 (thread_db_notice_clone): Pass down target.
10924 (check_thread_db_callback): Pass down target.
10925 (try_thread_db_load_1): Always push the thread_db target.
10926 (try_thread_db_load, record_thread): Pass target down.
10927 (thread_db_target::detach): Pass target down. Always unpush the
10928 thread_db target.
10929 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10930 target down. Always unpush the thread_db target.
10931 (find_new_threads_callback, thread_db_find_new_threads_2)
10932 (thread_db_target::update_thread_list): Pass target down.
10933 (thread_db_target::pid_to_str): Pass current inferior down.
10934 (thread_db_target::get_thread_local_address): Pass target down.
10935 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10936 target down.
10937 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10938 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10939 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10940 (procfs_init_inferior): Rename to ...
10941 (procfs_target::procfs_init_inferior): ... this and adjust.
10942 (procfs_target::create_inferior, procfs_notice_thread)
10943 (procfs_do_thread_registers): Adjust.
10944 * ppc-fbsd-tdep.c: Include "inferior.h".
10945 (ppcfbsd_get_thread_local_address): Pass down target.
10946 * proc-service.c (ps_xfer_memory): Switch current inferior and
10947 program space as well.
10948 (get_ps_regcache): Pass target down.
10949 * process-stratum-target.c
10950 (process_stratum_target::thread_address_space)
10951 (process_stratum_target::thread_architecture): Pass target down.
10952 * process-stratum-target.h
10953 (process_stratum_target::threads_executing): New field.
10954 (as_process_stratum_target): New.
10955 * ravenscar-thread.c
10956 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10957 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10958 down.
10959 * record-btrace.c (record_btrace_target::info_record): Adjust.
10960 (record_btrace_target::record_method)
10961 (record_btrace_target::record_is_replaying)
10962 (record_btrace_target::fetch_registers)
10963 (get_thread_current_frame_id, record_btrace_target::resume)
10964 (record_btrace_target::wait, record_btrace_target::stop): Pass
10965 target down.
10966 * record-full.c (record_full_wait_1): Switch to event thread.
10967 Pass target down.
10968 * regcache.c (regcache::regcache)
10969 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10970 process_stratum_target parameter and handle it.
10971 (current_thread_target): New global.
10972 (get_thread_regcache): Add process_stratum_target parameter and
10973 handle it. Switch inferior before calling target method.
10974 (get_thread_regcache): Pass target down.
10975 (get_thread_regcache_for_ptid): Pass target down.
10976 (registers_changed_ptid): Add process_stratum_target parameter and
10977 handle it.
10978 (registers_changed_thread, registers_changed): Pass target down.
10979 (test_get_thread_arch_aspace_regcache): New.
10980 (current_regcache_test): Define a couple local test_target_ops
10981 instances and use them for testing.
10982 (readwrite_regcache): Pass process_stratum_target parameter.
10983 (cooked_read_test, cooked_write_test): Pass mock_target down.
10984 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10985 (get_thread_arch_aspace_regcache): Add process_stratum_target
10986 parameter.
10987 (regcache::target): New method.
10988 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10989 (regcache::registers_changed_ptid): Add process_stratum_target
10990 parameter.
10991 (regcache::m_target): New field.
10992 (registers_changed_ptid): Add process_stratum_target parameter.
10993 * remote.c (remote_state::supports_vCont_probed): New field.
10994 (remote_target::async_wait_fd): New method.
10995 (remote_unpush_and_throw): Add remote_target parameter.
10996 (get_current_remote_target): Adjust.
10997 (remote_target::remote_add_inferior): Push target.
10998 (remote_target::remote_add_thread)
10999 (remote_target::remote_notice_new_inferior)
11000 (get_remote_thread_info): Pass target down.
11001 (remote_target::update_thread_list): Skip threads of inferiors
11002 bound to other targets. (remote_target::close): Don't discard
11003 inferiors. (remote_target::add_current_inferior_and_thread)
11004 (remote_target::process_initial_stop_replies)
11005 (remote_target::start_remote)
11006 (remote_target::remote_serial_quit_handler): Pass down target.
11007 (remote_target::remote_unpush_target): New remote_target
11008 parameter. Unpush the target from all inferiors.
11009 (remote_target::remote_unpush_and_throw): New remote_target
11010 parameter. Pass it down.
11011 (remote_target::open_1): Check whether the current inferior has
11012 execution instead of checking whether any inferior is live. Pass
11013 target down.
11014 (remote_target::remote_detach_1): Pass down target. Use
11015 remote_unpush_target.
11016 (extended_remote_target::attach): Pass down target.
11017 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11018 (remote_target::append_resumption): Pass down target.
11019 (remote_target::append_pending_thread_resumptions)
11020 (remote_target::remote_resume_with_hc, remote_target::resume)
11021 (remote_target::commit_resume): Pass down target.
11022 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11023 (remote_target::interrupt_query)
11024 (remote_target::remove_new_fork_children)
11025 (remote_target::check_pending_events_prevent_wildcard_vcont)
11026 (remote_target::remote_parse_stop_reply)
11027 (remote_target::process_stop_reply): Pass down target.
11028 (first_remote_resumed_thread): New remote_target parameter. Pass
11029 it down.
11030 (remote_target::wait_as): Pass down target.
11031 (unpush_and_perror): New remote_target parameter. Pass it down.
11032 (remote_target::readchar, remote_target::remote_serial_write)
11033 (remote_target::getpkt_or_notif_sane_1)
11034 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11035 down target.
11036 (remote_target::mourn_inferior): Pass down target. Use
11037 remote_unpush_target.
11038 (remote_target::core_of_thread)
11039 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11040 (remote_target::pid_to_exec_file)
11041 (remote_target::thread_handle_to_thread_info): Pass down target.
11042 (remote_target::async_wait_fd): New.
11043 * riscv-fbsd-tdep.c: Include "inferior.h".
11044 (riscv_fbsd_get_thread_local_address): Pass down target.
11045 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11046 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11047 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11048 Adjust.
11049 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11050 * solib-svr4.c (enable_break): Pass down target.
11051 * spu-multiarch.c (parse_spufs_run): Pass down target.
11052 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11053 * target-delegates.c: Regenerate.
11054 * target.c (g_target_stack): Delete.
11055 (current_top_target): Return the current inferior's top target.
11056 (target_has_execution_1): Refer to the passed-in inferior's top
11057 target.
11058 (target_supports_terminal_ours): Check whether the initial
11059 inferior was already created.
11060 (decref_target): New.
11061 (target_stack::push): Incref/decref the target.
11062 (push_target, push_target, unpush_target): Adjust.
11063 (target_stack::unpush): Defref target.
11064 (target_is_pushed): Return bool. Adjust to refer to the current
11065 inferior's target stack.
11066 (dispose_inferior): Delete, and inline parts ...
11067 (target_preopen): ... here. Only dispose of the current inferior.
11068 (target_detach): Hold strong target reference while detaching.
11069 Pass target down.
11070 (target_thread_name): Add assertion.
11071 (target_resume): Pass down target.
11072 (target_ops::beneath, find_target_at): Adjust to refer to the
11073 current inferior's target stack.
11074 (get_dummy_target): New.
11075 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11076 has a thread running.
11077 (initialize_targets): Rename to ...
11078 (_initialize_target): ... this.
11079 * target.h: Include "gdbsupport/refcounted-object.h".
11080 (struct target_ops): Inherit refcounted_object.
11081 (target_ops::shortname, target_ops::longname): Make const.
11082 (target_ops::async_wait_fd): New method.
11083 (decref_target): Declare.
11084 (struct target_ops_ref_policy): New.
11085 (target_ops_ref): New typedef.
11086 (get_dummy_target): Declare function.
11087 (target_is_pushed): Return bool.
11088 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11089 (all_matching_threads_iterator::all_matching_threads_iterator):
11090 Handle filter target.
11091 * thread-iter.h (struct all_matching_threads_iterator, struct
11092 all_matching_threads_range, class all_non_exited_threads_range):
11093 Filter by target too. Remove explicit.
11094 * thread.c (threads_executing): Delete.
11095 (inferior_thread): Pass down current inferior.
11096 (clear_thread_inferior_resources): Pass down thread pointer
11097 instead of ptid_t.
11098 (add_thread_silent, add_thread_with_info, add_thread): Add
11099 process_stratum_target parameter. Use it for thread and inferior
11100 searches.
11101 (is_current_thread): New.
11102 (thread_info::deletable): Use it.
11103 (find_thread_ptid, thread_count, in_thread_list)
11104 (thread_change_ptid, set_resumed, set_running): New
11105 process_stratum_target parameter. Pass it down.
11106 (set_executing): New process_stratum_target parameter. Pass it
11107 down. Adjust reference to 'threads_executing'.
11108 (threads_are_executing): New process_stratum_target parameter.
11109 Adjust reference to 'threads_executing'.
11110 (set_stop_requested, finish_thread_state): New
11111 process_stratum_target parameter. Pass it down.
11112 (switch_to_thread): Also match inferior.
11113 (switch_to_thread): New process_stratum_target parameter. Pass it
11114 down.
11115 (update_threads_executing): Reimplement.
11116 * top.c (quit_force): Pop targets from all inferior.
11117 (gdb_init): Don't call initialize_targets.
11118 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11119 Declare.
11120 (windows_add_thread, windows_delete_thread): Adjust.
11121 (get_windows_debug_event): Rename to ...
11122 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11123 * tracefile-tfile.c (tfile_target_open): Pass down target.
11124 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11125 Forward declare.
11126 (switch_to_thread): Add process_stratum_target parameter.
11127 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11128 parameter. Use it.
11129 (mi_on_resume): Pass target down.
11130 * nat/fork-inferior.c (startup_inferior): Add
11131 process_stratum_target parameter. Pass it down.
11132 * nat/fork-inferior.h (startup_inferior): Add
11133 process_stratum_target parameter.
11134 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11135
75c6c844
PA
111362020-01-10 Pedro Alves <palves@redhat.com>
11137
11138 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11139 directly. Instead find the first thread in the thread list and
11140 use switch_to_thread.
11141
78f2c40a
PA
111422020-01-10 Pedro Alves <palves@redhat.com>
11143
11144 * remote.c (remote_target::remote_add_inferior): Don't bind a
11145 process to the current inferior if the current inferior is already
11146 bound to a process.
11147
e7af6c70
TBA
111482020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11149 Pedro Alves <palves@redhat.com>
11150
11151 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11152 If no process is specified, return null_ptid instead of
11153 inferior_ptid.
11154 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11155 TARGET_WAITKIND_SIGNALLED with no pid.
11156
31ba933e
PA
111572020-01-10 Pedro Alves <palves@redhat.com>
11158
11159 * remote.c (first_remote_resumed_thread): New.
11160 (remote_target::wait_as): Use it as default event_ptid instead of
11161 inferior_ptid.
11162
735fc2ca
PA
111632020-01-10 Pedro Alves <palves@redhat.com>
11164
11165 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11166
c17e02e1
PA
111672020-01-10 Pedro Alves <palves@redhat.com>
11168
11169 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11170 not -1.
11171
ab1ddbcf
PA
111722020-01-10 Pedro Alves <palves@redhat.com>
11173
11174 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11175 ptid to get_last_target_status.
11176 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11177 ptid to get_last_target_status.
11178 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11179 get_last_target_status.
11180 (info_program_command): Don't pass a target_waitstatus to
11181 get_last_target_status.
11182 * infrun.c (init_wait_for_inferior): Use
11183 nullify_last_target_wait_ptid.
11184 (get_last_target_status): Handle nullptr arguments.
11185 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11186 (print_stop_event): Don't pass a ptid to get_last_target_status.
11187 (normal_stop): Don't pass a ptid to get_last_target_status.
11188 * infrun.h (get_last_target_status, set_last_target_status): Move
11189 comments here and update.
11190 (nullify_last_target_wait_ptid): Declare.
11191 * linux-fork.c (fork_load_infrun_state): Remove local extern
11192 declaration of nullify_last_target_wait_ptid.
11193 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11194 to get_last_target_status.
11195
f3f8ece4
PA
111962020-01-10 Pedro Alves <palves@redhat.com>
11197
11198 * gdbthread.h (scoped_restore_current_thread)
11199 <dont_restore, restore, m_dont_restore>: Declare.
11200 * thread.c (thread_alive): Add assertion. Return bool.
11201 (switch_to_thread_if_alive): New.
11202 (prune_threads): Switch inferior/thread.
11203 (print_thread_info_1): Switch thread before calling target methods.
11204 (scoped_restore_current_thread::restore): New, factored out from
11205 ...
11206 (scoped_restore_current_thread::~scoped_restore_current_thread):
11207 ... this.
11208 (scoped_restore_current_thread::scoped_restore_current_thread):
11209 Add assertion.
11210 (thread_apply_all_command, thread_select): Use
11211 switch_to_thread_if_alive.
11212 * infrun.c (proceed, restart_threads, handle_signal_stop)
11213 (switch_back_to_stepped_thread): Switch current thread before
11214 calling target methods.
11215
db2d40f7
PA
112162020-01-10 Pedro Alves <palves@redhat.com>
11217
11218 * inferior.c (switch_to_inferior_no_thread): New function,
11219 factored out from ...
11220 (inferior_command): ... here.
11221 * inferior.h (switch_to_inferior_no_thread): Declare.
11222 * mi/mi-main.c (run_one_inferior): Use
11223 switch_to_inferior_no_thread.
11224
bd420a2d
PA
112252020-01-10 Pedro Alves <palves@redhat.com>
11226
11227 * infcmd.c (kill_command): Remove dead code.
11228
ddf5db90
PA
112292020-01-10 Pedro Alves <palves@redhat.com>
11230
11231 * remote.c (remote_target::mourn_inferior): No longer check
11232 whether the target is running.
11233
5018ce90
PA
112342020-01-10 Pedro Alves <palves@redhat.com>
11235
11236 * corelow.c (core_target::has_execution): Change parameter type to
11237 inferior pointer.
11238 * inferior.c (number_of_live_inferiors): Use
11239 inferior::has_execution instead of target_has_execution_1.
11240 * inferior.h (inferior::has_execution): New.
11241 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11242 inferior::has_execution instead of target_has_execution_1.
11243 * process-stratum-target.c
11244 (process_stratum_target::has_execution): Change parameter type to
11245 inferior pointer. Check the inferior's PID instead of
11246 inferior_ptid.
11247 * process-stratum-target.h
11248 (process_stratum_target::has_execution): Change parameter type to
11249 inferior pointer.
11250 * record-full.c (record_full_core_target::has_execution): Change
11251 parameter type to inferior pointer.
11252 * target.c (target_has_execution_1): Change parameter type to
11253 inferior pointer.
11254 (target_has_execution_current): Adjust.
11255 * target.h (target_ops::has_execution): Change parameter type to
11256 inferior pointer.
11257 (target_has_execution_1): Change parameter type to inferior
11258 pointer. Change return type to bool.
11259 * tracefile.h (tracefile_target::has_execution): Change parameter
11260 type to inferior pointer.
11261
74375d18
PA
112622020-01-10 Pedro Alves <palves@redhat.com>
11263
11264 * exceptions.c (print_flush): Remove current_top_target() check.
11265
acdf84a6
PA
112662020-01-10 Pedro Alves <palves@redhat.com>
11267
11268 * remote.c (show_remote_exec_file): Show the current inferior's
11269 exec-file instead of the command variable's value.
11270
ec506636
PA
112712020-01-10 Pedro Alves <palves@redhat.com>
11272
11273 * record-full.c (record_full_resume_ptid): New global.
11274 (record_full_target::resume): Set it.
11275 (record_full_wait_1): Use record_full_resume_ptid instead of
11276 inferior_ptid.
11277
873657b9
PA
112782020-01-10 Pedro Alves <palves@redhat.com>
11279
11280 * gdbthread.h (scoped_restore_current_thread)
11281 <dont_restore, restore, m_dont_restore>: Declare.
11282 * thread.c (thread_alive): Add assertion. Return bool.
11283 (switch_to_thread_if_alive): New.
11284 (prune_threads): Switch inferior/thread.
11285 (print_thread_info_1): Switch thread before calling target methods.
11286 (scoped_restore_current_thread::restore): New, factored out from
11287 ...
11288 (scoped_restore_current_thread::~scoped_restore_current_thread):
11289 ... this.
11290 (scoped_restore_current_thread::scoped_restore_current_thread):
11291 Add assertion.
11292 (thread_apply_all_command, thread_select): Use
11293 switch_to_thread_if_alive.
11294
7f0ae84c
GB
112952020-01-10 George Barrett <bob@bob131.so>
11296
11297 * stap-probe.c (stap_modify_semaphore): Don't check for null
11298 semaphores.
11299 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11300 for null semaphores.
11301
f5a7c406
AB
113022020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11303
11304 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11305 all source windows, and maintain horizontal scroll status while
11306 doing so.
11307
9ae6bf64
TT
113082020-01-09 Tom Tromey <tom@tromey.com>
11309
11310 PR tui/18932:
11311 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11312 update_source_window, not print_source_lines.
11313
b2efe70c
AB
113142020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11315
11316 * tui/tui.c (tui_enable): Register tui hooks after calling
11317 tui_display_main.
11318
5f23a082
CB
113192020-01-09 Christian Biesinger <cbiesinger@google.com>
11320
11321 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11322
3061113b
SM
113232020-01-08 Simon Marchi <simon.marchi@efficios.com>
11324
11325 * thread.c (print_thread_info_1): Fix indentation.
11326
57d75002
CB
113272020-01-09 Christian Biesinger <cbiesinger@google.com>
11328
11329 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11330 unique_xmalloc_ptr outside the if to always free the demangled name.
11331
6a053cb1
TT
113322020-01-08 Tom Tromey <tromey@adacore.com>
11333
11334 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11335 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11336 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11337 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11338 Remove.
11339 (section_offsets): New typedef.
11340 * symtab.c (fixup_section, get_msymbol_address): Update.
11341 * symmisc.c (dump_msymbols): Update.
11342 * symfile.h (relative_addr_info_to_section_offsets)
11343 (symfile_map_offsets_to_segments): Update.
11344 * symfile.c (build_section_addr_info_from_objfile)
11345 (init_objfile_sect_indices): Update.
11346 (struct place_section_arg): Change type of "offsets".
11347 (place_section): Update.
11348 (relative_addr_info_to_section_offsets): Change type of
11349 "section_offsets". Remove "num_sections" parameter.
11350 (default_symfile_offsets, syms_from_objfile_1)
11351 (set_objfile_default_section_offset): Update.
11352 (reread_symbols): No need to preserve section offsets by hand.
11353 (symfile_map_offsets_to_segments): Change type of "offsets".
11354 * stap-probe.c (relocate_address): Update.
11355 * stabsread.h (process_one_symbol): Update.
11356 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11357 (solib_target_relocate_section_addresses): Update.
11358 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11359 Update.
11360 * solib-frv.c (frv_relocate_main_executable): Update.
11361 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11362 * solib-aix.c (solib_aix_get_section_offsets): Change return
11363 type.
11364 (solib_aix_solib_create_inferior_hook): Update.
11365 * remote.c (remote_target::get_offsets): Update.
11366 * psymtab.c (find_pc_sect_psymtab): Update.
11367 * psympriv.h (struct partial_symbol) <address, text_low,
11368 text_high>: Update.
11369 * objfiles.h (obj_section_offset): Update.
11370 (struct objfile) <section_offsets>: Change type.
11371 <num_sections>: Remove.
11372 (objfile_relocate): Update.
11373 * objfiles.c (entry_point_address_query): Update
11374 (relocate_one_symbol): Change type of "section_offsets".
11375 (objfile_relocate1, objfile_relocate1): Change type of
11376 "new_offsets".
11377 (objfile_rebase1): Update.
11378 * mipsread.c (mipscoff_symfile_read): Update.
11379 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11380 parameter.
11381 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11382 (parse_external, psymtab_to_symtab_1): Update.
11383 * machoread.c (macho_symfile_offsets): Update.
11384 * ia64-tdep.c (ia64_find_unwind_table): Update.
11385 * hppa-tdep.c (read_unwind_info): Update.
11386 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11387 * dwarf2read.c (create_addrmap_from_index)
11388 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11389 (process_psymtab_comp_unit_reader, add_partial_symbol)
11390 (add_partial_subprogram, process_full_comp_unit)
11391 (read_file_scope, read_func_scope, read_lexical_block_scope)
11392 (read_call_site_scope, dwarf2_rnglists_process)
11393 (dwarf2_ranges_process, dwarf2_ranges_read)
11394 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11395 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11396 Update.
11397 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11398 Update.
11399 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11400 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11401 (process_one_symbol): Change type of "section_offsets".
11402 * ctfread.c (get_objfile_text_range): Update.
11403 * coffread.c (coff_symtab_read, enter_linenos)
11404 (process_coff_symbol): Update.
11405 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11406 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11407
456e800a
TT
114082020-01-08 Tom Tromey <tromey@adacore.com>
11409
11410 * dwarf2read.c (parse_macro_definition): Use std::string.
11411 (parse_macro_definition): Likewise.
11412
6dfa2fc2
TT
114132020-01-08 Tom Tromey <tromey@adacore.com>
11414
11415 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11416 (ATTR_ALLOC_CHUNK): Remove.
11417
421d1616
TT
114182020-01-08 Tom Tromey <tromey@adacore.com>
11419
11420 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11421
43816ebc
TT
114222020-01-08 Tom Tromey <tromey@adacore.com>
11423
11424 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11425 (dwarf2_compute_name, open_dwo_file): Likewise.
11426 (process_enumeration_scope): Use std::vector.
11427 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11428 (partial_die_info::fixup, dwarf2_start_subfile)
11429 (guess_full_die_structure_name, dwarf2_name): Likewise.
11430 (determine_prefix): Update.
11431 (guess_full_die_structure_name): Make return type const.
11432 (partial_die_full_name): Return unique_xmalloc_ptr.
11433 (DW_FIELD_ALLOC_CHUNK): Remove.
11434
4212d509
TT
114352020-01-07 Tom Tromey <tromey@adacore.com>
11436
11437 PR build/24937:
11438 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11439
06a6207a
JT
114402020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11441
11442 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11443
153d79c4
AB
114442020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11445
11446 * stack.c (print_frame_info): Move disassemble_next_line code
11447 inside source_print block.
11448
66182876
EZ
114492020-01-06 Eli Zaretskii <eliz@gnu.org>
11450
11451 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11452 gdb/signals.h, as we are now using native signal symbols.
11453
cbfa8581
SV
114542020-01-06 Shahab Vahedi <shahab@synopsys.com>
11455
11456 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11457 overflow by an early check of content vs threshold.
aac66a4c 11458 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11459 Likewise.
11460
3f602821
EZ
114612020-01-06 Eli Zaretskii <eliz@gnu.org>
11462
11463 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11464
a08c904d
JT
114652020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11466
11467 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11468 export table if no section contains it's RVA.
11469
89a65580
EZ
114702020-01-06 Eli Zaretskii <eliz@gnu.org>
11471
11472 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11473
8b7fcda2
HD
114742020-01-06 Hannes Domani <ssbssa@yahoo.de>
11475
11476 * source.c (print_source_lines_base): Set last_line_listed.
11477
a61b4f69
SV
114782020-01-06 Shahab Vahedi <shahab@synopsys.com>
11479
11480 * tui/tui-disasm.c: Remove trailing spaces.
11481
559e7e50
EZ
114822020-01-06 Eli Zaretskii <eliz@gnu.org>
11483 Pedro Alves <palves@redhat.com>
11484
11485 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11486 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11487 (windows_gdb_signal_to_target): New function, uses the above
11488 enumeration to convert GDB internal signal codes to equivalent
11489 Windows codes.
11490 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11491 * windows-nat.c: Include "gdb_wait.h".
11492 (get_windows_debug_event): Extract the fatal exception from the
11493 exit status and convert to the equivalent Posix signal number.
11494 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11495 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11496 * gdbsupport/gdb_wait.c: New file, implements
11497 windows_status_to_termsig.
11498 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11499 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11500
f2302a34
AB
115012020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11502
11503 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11504 show_layout.
11505
6a5206eb
LM
115062020-01-05 Luis Machado <luis.machado@linaro.org>
11507
11508 * aarch64-linux-nat.c
11509 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11510 and bfd_mach_aarch64.
11511
6ec1d75e
PW
115122020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11513
11514 * ui-file.c (stdio_file::can_emit_style_escape)
11515 (tee_file::can_emit_style_escape): Ensure style is used also on
11516 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11517 to gdb_stdout.
11518 * main.c (set_gdb_data_directory): Use file style to output the
11519 warning that the given pathname is not a directory.
11520 * top.c (show_history_filename, gdb_safe_append_history)
11521 (show_gdb_datadir): Use file style.
11522
44f81a76
HD
115232020-01-03 Hannes Domani <ssbssa@yahoo.de>
11524
11525 * solib-target.c (struct lm_info_target):
11526 Change offsets to be a unique_xmalloc_ptr.
11527 (solib_target_relocate_section_addresses): Update.
11528
25057eb0
HD
115292020-01-03 Hannes Domani <ssbssa@yahoo.de>
11530
11531 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11532
6e2118f5
BE
115332020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11534
11535 * MAINTAINERS (Write After Approval): Add myself.
11536
8133c7dc
LM
115372020-01-02 Luis Machado <luis.machado@linaro.org>
11538
11539 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11540 Cell BE architecture.
11541 * target.h (struct target_ops) <thread_architecture>: Likewise.
11542
48189bec
HD
115432020-01-01 Hannes Domani <ssbssa@yahoo.de>
11544
11545 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11546
ead1063b
HD
115472020-01-01 Hannes Domani <ssbssa@yahoo.de>
11548
11549 * MAINTAINERS (Write After Approval): Add myself.
11550
e5d78223
JB
115512020-01-01 Joel Brobecker <brobecker@adacore.com>
11552
11553 * gdbarch.sh: Update copyright year range of generated files.
11554
b811d2c2
JB
115552020-01-01 Joel Brobecker <brobecker@adacore.com>
11556
11557 Update copyright year range in all GDB files.
11558
5f4def5c
JB
115592020-01-01 Joel Brobecker <brobecker@adacore.com>
11560
11561 * copyright.py: Convert to Python 3.
11562
51fd4002
JB
115632020-01-01 Joel Brobecker <brobecker@adacore.com>
11564
11565 * copyright.py: Adapt after move of gnulib directory from gdb
11566 directory to toplevel directory.
11567
5fb651f2
JB
115682020-01-01 Joel Brobecker <brobecker@adacore.com>
11569
11570 * copyright.py (main): Exit if run from the wrong directory.
11571
5dd8bf88
JB
115722020-01-01 Joel Brobecker <brobecker@adacore.com>
11573
11574 * top.c (print_gdb_version): Change copyright year to 2020.
11575
9f71dacb 115762020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11577
9f71dacb 11578 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11579
9f71dacb 11580For older changes see ChangeLog-2019.
c906108c
SS
11581\f
11582Local Variables:
11583mode: change-log
11584left-margin: 8
11585fill-column: 74
11586version-control: never
57da7796 11587coding: utf-8
c906108c 11588End: