]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Allow new just-symbols test to run on XCOFF and PE
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
95420d30
TV
12020-07-27 Tom de Vries <tdevries@suse.de>
2
3 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4 * config.in: Regenerate.
5 * configure: Regenerate.
6
05a6b8c2
EZ
72020-07-26 Eli Zaretskii <eliz@gnu.org>
8
9 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
10 ws2tcpip.h. When checking whether socklen_t type is defined, use
11 ws2tcpip.h if it is available and sys/socket.h isn't.
12 * configure: Regenerate.
13 * config.in: Regenerate.
14
e79eb02f
AB
152020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 PR fortran/23051
18 PR fortran/26139
19 * valops.c (value_ind): Pass address to
20 readjust_indirect_value_type.
21 * value.c (readjust_indirect_value_type): Make parameter
22 non-const, and add extra address parameter. Resolve original type
23 before using it.
24 * value.h (readjust_indirect_value_type): Update function
25 signature and comment.
26
876518dd
TV
272020-07-25 Tom de Vries <tdevries@suse.de>
28
29 PR symtab/26243
30 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
31 entries.
32
f6720b1c
AM
332020-07-24 Aaron Merey <amerey@redhat.com>
34
35 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
36 * configure: Rebuild.
37
513487e1
KB
382020-07-23 Kevin Buettner <kevinb@redhat.com>
39
40 PR corefiles/26294
41 * corelow.c (_initialize_corelow): Add period to help text
42 for "maintenance print core-file-backed-mappings".
43
e7bc9db8
PA
442020-07-23 Pedro Alves <pedro@palves.net>
45
46 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
47 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
48 meanwhile.
49 * frame.c (frame_cache_generation, get_frame_cache_generation):
50 New.
51 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
52 (get_prev_frame_if_no_cycle): On exception, don't touch
53 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
54 * frame.h (get_frame_cache_generation): Declare.
55
90fcc466
TV
562020-07-23 Tom de Vries <tdevries@suse.de>
57
58 PR tui/26282
59 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
60 New default constructor.
61
78344df7
AB
622020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
65 exclude non-statement entries.
66
b089853a
KB
672020-07-22 Kevin Buettner <kevinb@redhat.com>
68
69 * NEWS (New commands): Mention new command
70 "maintenance print core-file-backed-mappings".
71
09c2f5d4
KB
722020-07-22 Kevin Buettner <kevinb@redhat.com>
73
74 * corelow.c (gdbcmd.h): Include.
75 (core_target::info_proc_mappings): New method.
76 (get_current_core_target): New function.
77 (maintenance_print_core_file_backed_mappings): New function.
78 (_initialize_corelow): Add core-file-backed-mappings to
79 "maint print" commands.
80
9c5ec5c2
KB
812020-07-22 Kevin Buettner <kevinb@redhat.com>
82
83 * linux-tdep.c (dump_note_entry_p): New function.
84 (linux_dump_mapping_p_ftype): New typedef.
85 (linux_find_memory_regions_full): Add new parameter,
86 should_dump_mapping_p.
87 (linux_find_memory_regions): Adjust call to
88 linux_find_memory_regions_full.
89 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
90 call to linux_find_memory_regions_full.
91
db082f59
KB
922020-07-22 Kevin Buettner <kevinb@redhat.com>
93
94 * corelow.c (solist.h, unordered_map): Include.
95 (class core_target): Add field m_core_file_mappings and
96 method build_file_mappings.
97 (core_target::core_target): Call build_file_mappings.
98 (core_target::~core_target): Free memory associated with
99 m_core_file_mappings.
100 (core_target::build_file_mappings): New method.
101 (core_target::xfer_partial): Use m_core_file_mappings
102 for memory transfers.
103 * linux-tdep.c (linux_read_core_file_mappings): New
104 function.
105 (linux_core_info_proc_mappings): Rewrite to use
106 linux_read_core_file_mappings.
107 (linux_init_abi): Register linux_read_core_file_mappings.
108
7e183d27
KB
1092020-07-22 Kevin Buettner <kevinb@redhat.com>
110
111 * arch-utils.c (default_read_core_file_mappings): New function.
112 * arch-utils.c (default_read_core_file_mappings): Declare.
113 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
114 * gdbarch.h, gdbarch.c: Regenerate.
115
2735d421
KB
1162020-07-22 Kevin Buettner <kevinb@redhat.com>
117
118 PR corefiles/25631
119 * corelow.c (core_target:xfer_partial): Revise
120 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
121 case after first checking the stratum beneath the core
122 target.
123 (has_all_memory): Return true.
124 * target.c (raw_memory_xfer_partial): Revise comment
125 regarding use of has_all_memory.
126
e56cb451
KB
1272020-07-22 Kevin Buettner <kevinb@redhat.com>
128
129 * exec.h (section_table_xfer_memory): Revise declaration,
130 replacing section name parameter with an optional callback
131 predicate.
132 * exec.c (section_table_xfer_memory): Likewise.
133 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
134 of section_table_xfer_memory.
135
32fa152e
TT
1362020-07-22 Tom Tromey <tromey@adacore.com>
137
138 * mi/mi-cmd-stack.c (list_args_or_locals): Use
139 lookup_symbol_search_name.
140
a67a1c41
AB
1412020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
142
143 * python/py-registers.c (gdbpy_register_object_data_init): Remove
144 redundant local variable.
145 (gdbpy_get_register_descriptor): Extract descriptor vector as a
146 reference, not pointer, update code accordingly.
147
a7b4ff4f
SM
1482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
149 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
150
151 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
152 * jit.c (jit_breakpoint_re_set_internal): Use the
153 `skip_jit_symbol_lookup` field.
154
2340e834
SM
1552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
156 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
157
158 * jit.c (jit_read_descriptor): Define the descriptor address once,
159 use twice.
160 (jit_breakpoint_deleted): Move the declaration of the loop variable
161 `iter` into the loop header.
162 (jit_breakpoint_re_set_internal): Move the declaration of the local
163 variable `objf_data` to the first point of definition.
164 (jit_event_handler): Move the declaration of local variables
165 `code_entry`, `entry_addr`, and `objf` to their first point of use.
166 Rename `objf` to `jited`.
167
c1072906
SM
1682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
171 Remove.
172 * jit.c (get_jiter_objfile_data): Update.
173
c8474dc3
TBA
1742020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
175 Simon Marchi <simon.marchi@polymtl.ca>
176
177 * jit.c (struct jit_program_space_data): Remove.
178 (jit_program_space_key): Remove.
179 (jiter_objfile_data::~jiter_objfile_data): Remove program space
180 stuff.
181 (get_jit_program_space_data): Remove.
182 (jit_breakpoint_deleted): Iterate on all of the program space's
183 objfiles.
184 (jit_inferior_init): Likewise.
185 (jit_breakpoint_re_set_internal): Likewise. Also change return
186 type to void.
187 (jit_breakpoint_re_set): Pass current_program_space to
188 jit_breakpoint_re_set_internal.
189
77208eb7
SM
1902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
191
192 * jit.h (struct jiter_objfile_data) <cached_code_address,
193 jit_breakpoint>: Move to here from ...
194 * jit.c (jit_program_space_data): ... here.
195 (jiter_objfile_data::~jiter_objfile_data): Update.
196 (jit_breakpoint_deleted): Update.
197 (jit_breakpoint_re_set_internal): Update.
198
8c1c720f
SM
1992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
202 checks.
203 (jit_read_descriptor): Remove NULL check.
204 (jit_event_handler): Add an assertion.
205
0e74a041
SM
2062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
207
208 * jit.h (struct jit_objfile_data): Split into...
209 (struct jiter_objfile_data): ... this ...
210 (struct jited_objfile_data): ... and this.
211 * objfiles.h (struct objfile) <jit_data>: Remove.
212 <jiter_data, jited_data>: New fields.
213 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
214 (jiter_objfile_data::~jiter_objfile_data): ... this.
215 (get_jit_objfile_data): Rename to ...
216 (get_jiter_objfile_data): ... this.
217 (add_objfile_entry): Update.
218 (jit_read_descriptor): Use get_jiter_objfile_data.
219 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
220 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
221 (jit_inferior_exit_hook): Use objfile's jited_data field.
222
238b5c9f
SM
2232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * jit.h: Forward-declare `struct minimal_symbol`.
226 (struct jit_objfile_data): Migrate to here from jit.c; also add a
227 constructor, destructor, and an objfile* field.
228 * jit.c (jit_objfile_data): Remove.
229 (struct jit_objfile_data): Migrate from here to jit.h.
230 (jit_objfile_data::~jit_objfile_data): New destructor
231 implementation with code moved from free_objfile_data.
232 (free_objfile_data): Delete.
233 (get_jit_objfile_data): Update to use the jit_data field of objfile.
234 (jit_find_objf_with_entry_addr): Ditto.
235 (jit_inferior_exit_hook): Ditto.
236 (_initialize_jit): Remove the call to
237 register_objfile_data_with_cleanup.
238 * objfiles.h (struct objfile) <jit_data>: New field.
239
fe053b9e
TBA
2402020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
241
242 * jit.h: Forward-declare `struct objfile`.
243 (jit_event_handler): Add a second parameter, the JITer objfile.
244 * jit.c (jit_read_descriptor): Change the signature to take the
245 JITer objfile as an argument instead of the jit_program_space_data.
246 (jit_inferior_init): Update the call to jit_read_descriptor.
247 (jit_event_handler): Use the new JITer objfile argument when calling
248 jit_read_descriptor.
249 * breakpoint.c (handle_jit_event): Update the call to
250 jit_event_handler to pass the JITer objfile.
251
4cec0c66
JB
2522020-07-21 John Baldwin <jhb@FreeBSD.org>
253
254 * gdbarch.c: Regenerate.
255 * gdbarch.h: Regenerate.
256 * gdbarch.sh (handle_segmentation_fault): Remove method.
257 * infrun.c (handle_segmentation_fault): Remove.
258 (print_signal_received_reason): Remove call to
259 handle_segmentation_fault.
260
0e42f66a
JB
2612020-07-21 John Baldwin <jhb@FreeBSD.org>
262
263 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
264 Rename to sparc64_linux_report_signal_info and add siggnal
265 argument.
266 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
267 instead of sparc64_linux_handle_segmentation_fault.
268
77bdfeb2
JB
2692020-07-21 John Baldwin <jhb@FreeBSD.org>
270
271 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
272 i386_linux_report_signal_info instead of
273 i386_linux_handle_segmentation_fault.
274 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
275 to i386_linux_report_signal_info and add siggnal argument.
276 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
277 of i386_linux_handle_segmentation_fault.
278 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
279 to i386_linux_report_signal_info and add siggnal argument.
280
ad97bfc5
JB
2812020-07-21 John Baldwin <jhb@FreeBSD.org>
282
283 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
284 hook if present.
285
272bb05c
JB
2862020-07-21 John Baldwin <jhb@FreeBSD.org>
287
288 * gdbarch.c: Regenerate.
289 * gdbarch.h: Regenerate.
290 * gdbarch.sh (report_signal_info): New method.
291 * infrun.c (print_signal_received_reason): Invoke gdbarch
292 report_signal_info hook if present.
293
baf8791e
AB
2942020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
295
296 * python/py-registers.c : Add 'unordered_map' include.
297 (gdbpy_new_reggroup): Renamed to...
298 (gdbpy_get_reggroup): ...this. Update to only create register
299 group descriptors when needed.
300 (gdbpy_reggroup_iter_next): Update.
301
f7306dac
AB
3022020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * python/py-registers.c (gdbpy_register_object_data): New static
305 global.
306 (gdbpy_register_object_data_init): New function.
307 (gdbpy_new_register_descriptor): Renamed to...
308 (gdbpy_get_register_descriptor): ...this, and update to reuse
309 existing register descriptors where possible.
310 (gdbpy_register_descriptor_iter_next): Update.
311 (gdbpy_initialize_registers): Register new gdbarch data.
312
05c309a8
SM
3132020-07-21 Simon Marchi <simon.marchi@efficios.com>
314
315 * linux-nat.c (stopped_pids): Make static.
316
d1fd641e
SM
3172020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
318
319 PR ada/26235
320 * gdbtypes.c (ada_discrete_type_low_bound,
321 ada_discrete_type_high_bound): Handle undefined bounds.
322
1de14d77
KR
3232020-07-21 Kamil Rytarowski <n54@gmx.com>
324
325 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
326 declaration.
327 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
328 function.
329
ed810cc7
JB
3302020-07-20 John Baldwin <jhb@FreeBSD.org>
331
332 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
333 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
334 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
335 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
336 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
337 method.
338
ae5369e7
LC
3392020-07-20 Ludovic Courtès <ludo@gnu.org>
340
341 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
342 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
343 which are deprecated in Guile 3.0.
344 * configure.ac (try_guile_versions): Add "guile-3.0".
345 * configure (try_guile_versions): Regenerate.
346 * NEWS: Update entry.
347
68cf161c
LC
3482020-07-20 Ludovic Courtès <ludo@gnu.org>
349 Doug Evans <dje@google.com>
350
351 PR gdb/21104
352 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
353 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
354 USING_GUILE_BEFORE_2_2.
355 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
356 Change type to 'scm_t_port_type *'.
357 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
358 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
359 parameter and honor it. Update callers.
360 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
361 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
362 functions.
363 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
364 USING_GUILE_BEFORE_2_2.
365 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
366 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
367 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
368 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
369 and 'SCM_PORT_TYPE'.
370 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
371 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
372 (gdbscm_memory_port_read, gdbscm_memory_port_write)
373 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
374 [!USING_GUILE_BEFORE_2_2]: New functions.
375 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
376 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
377 'gdbscm_memory_port_read'.
378 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
379 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
380 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
381 function.
382 (ioscm_init_memory_port): Remove.
383 (ioscm_init_memory_port_stream): New function
384 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
385 function.
386 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
387 Return scm_from_uint (0).
388 (gdbscm_set_memory_port_read_buffer_size_x)
389 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
390 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
391 Return scm_from_uint (0).
392 (gdbscm_set_memory_port_write_buffer_size_x)
393 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
394 * configure.ac (try_guile_versions): Add "guile-2.2".
395 * configure: Regenerate.
396 * NEWS: Add entry.
397
aee91db3
TT
3982020-07-18 Tom Tromey <tom@tromey.com>
399
400 * linux-nat.c (linux_multi_process): Remove.
401 (linux_nat_target::supports_multi_process): Return true.
402
0e267416
AB
4032020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
404
405 * arch/riscv.c (riscv_tdesc_cache): Change map type.
406 (riscv_lookup_target_description): Return pointer out of
407 unique_ptr.
408 * target-descriptions.c (allocate_target_description): Add
409 comment.
410 (target_desc_deleter::operator()): Likewise.
411 * target-descriptions.h (struct target_desc_deleter): Moved to
412 gdbsupport/tdesc.h.
413 (target_desc_up): Likewise.
414
f80c8ec4
TT
4152020-07-17 Tom Tromey <tromey@adacore.com>
416
417 * linux-nat.c (linux_nat_target::supports_non_stop)
418 (linux_nat_target::always_non_stop_p): Use "true".
419 (linux_nat_target::supports_disable_randomization): Use "true" and
420 "false".
421
d0ce17d8
CT
4222020-07-16 Caroline Tice <cmtice@google.com>
423
424 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
425 (RNGLIST_HEADER_SIZE64): New constant definition.
426 (struct dwop_section_names): Add rnglists_dwo.
427 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
428 (struct loclist_header): Rename to 'loclists_rnglists_header'.
429 (struct dwo_sections): Add rnglists field.
430 (read_attribut_reprocess): Add tag parameter.
431 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
432 (cu_debug_rnglists_section): New function (decl & definition).
433 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
434 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
435 die whose range is being checked; get rnglist section from
436 cu_debug_rnglists_section, to get from either objfile or dwo file as
437 appropriate. Add cases for DW_RLE_base_addressx,
438 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
439 the base address to DW_RLE_offset_pairs (not to all ranges), moving
440 test inside if-condition and updating complaint message.
441 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
442 dwarf2_rnglists_process.
443 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
444 dwarf2_ranges_process.
445 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
446 need_ranges_base and update comment appropriately. Also pass die tag
447 to dwarf2_ranges_read.
448 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
449 need_ranges_base and update comment appropriately. Also pass die tag
450 to dwarf2_ranges_process.
451 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
452 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
453 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
454 need_ranges_base and update comment appropriately. Also pass die tag
455 to read_attribute_reprocess and dwarf2_ranges_read.
456 (read_loclist_header): Rename function to read_loclists_rnglists_header,
457 and update function comment appropriately.
458 (read_loclist_index): Call read_loclists_rnglists_header instead of
459 read_loclist_header.
460 (read_rnglist_index): New function.
461 (read_attribute_reprocess): Add tag parameter. Add code for
462 DW_FORM_rnglistx, passing tag to read_rnglist_index.
463 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
464
3dcc261c
AB
4652020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
468 being resolved.
469
ccb9eba6
AB
4702020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
471
472 * arch-utils.c (show_architecture): Update formatting of messages.
473
cf88be68
SM
4742020-07-12 Simon Marchi <simon.marchi@efficios.com>
475
476 * gdbtypes.h (struct type) <bounds>: Handle array and string
477 types.
478 * ada-lang.c (assign_aggregate): Use type::bounds on
479 array/string type.
480 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
481 * c-varobj.c (c_number_of_children): Likewise.
482 (c_describe_child): Likewise.
483 * eval.c (evaluate_subexp_for_sizeof): Likewise.
484 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
485 (f_type_print_base): Likewise.
486 * f-valprint.c (f77_array_offset_tbl): Likewise.
487 (f77_get_upperbound): Likewise.
488 (f77_print_array_1): Likewise.
489 * guile/scm-type.c (gdbscm_type_range): Likewise.
490 * m2-typeprint.c (m2_array): Likewise.
491 (m2_is_long_set_of_type): Likewise.
492 * m2-valprint.c (get_long_set_bounds): Likewise.
493 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
494 * python/py-type.c (typy_range): Likewise.
495 * rust-lang.c (rust_internal_print_type): Likewise.
496 * type-stack.c (type_stack::follow_types): Likewise.
497 * valarith.c (value_subscripted_rvalue): Likewise.
498 * valops.c (value_cast): Likewise.
499
509971ae
SM
5002020-07-12 Simon Marchi <simon.marchi@efficios.com>
501
502 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
503 callers to use the equivalent accessor methods.
504
107406b7
SM
5052020-07-12 Simon Marchi <simon.marchi@efficios.com>
506
507 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
508 (struct type) <bit_stride>: New method.
509 (TYPE_BIT_STRIDE): Remove.
510 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
511
bb789949
SM
5122020-07-12 Simon Marchi <simon.marchi@efficios.com>
513
514 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
515 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
516 callers to use the equivalent accessor methods instead.
517
39498edb
SM
5182020-07-12 Simon Marchi <simon.marchi@efficios.com>
519
520 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
521 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
522 callers to use the equivalent accessor methods instead.
523
3b606f38
SM
5242020-07-12 Simon Marchi <simon.marchi@efficios.com>
525
526 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
527 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
528 to use dynamic_prop::kind.
529
064d9cb9
SM
5302020-07-12 Simon Marchi <simon.marchi@efficios.com>
531
532 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
533 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
534 to get the bound property's kind and check against
535 PROP_UNDEFINED.
536
5537ddd0
SM
5372020-07-12 Simon Marchi <simon.marchi@efficios.com>
538
539 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
540 all callers to use type::range_bounds followed by
541 dynamic_prop::{low,high}.
542
8c2e4e06
SM
5432020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
544
545 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
546 const_val, set_const_val, baton, set_locexpr, set_loclist,
547 set_addr_offset, variant_parts, set_variant_parts,
548 original_type, set_original_type>: New methods.
549 <kind>: Rename to...
550 <m_kind>: ... this. Update all users to use the new methods
551 instead.
552 <data>: Rename to...
553 <m_data>: ... this. Update all users to use the new methods
554 instead.
555
7c6f2712
SM
5562020-07-12 Simon Marchi <simon.marchi@efficios.com>
557
558 * gdbtypes.c (get_discrete_bounds): Return failure if
559 the range type's bounds are not both defined and constant
560 values.
561 (get_array_bounds): Update comment. Remove undefined bound check.
562
599088e3
SM
5632020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
564
565 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
566 the type::bounds method directly.
567
c4dfcb36
SM
5682020-07-12 Simon Marchi <simon.marchi@efficios.com>
569
570 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
571 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
572 are used to set the range type's bounds to use set_bounds.
573
0a278aa7
PW
5742020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
575
576 * exec.c (_initialize_exec): Update exec-file-mismatch help.
577
cce20f10
PA
5782020-07-10 Pedro Alves <pedro@palves.net>
579
580 * gdbthread.h (inferior_ref): Define.
581 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
582 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
583 * thread.c
584 (scoped_restore_current_thread::restore):
585 Adjust to gdb::ref_ptr.
586 (scoped_restore_current_thread::~scoped_restore_current_thread):
587 Remove manual decref handling.
588 (scoped_restore_current_thread::scoped_restore_current_thread):
589 Adjust to use
590 inferior_ref::new_reference/thread_info_ref::new_reference.
591 Incref the thread before calling get_frame_id instead of after.
592 Let TARGET_CLOSE_ERROR propagate.
593
6d7aa592
PA
5942020-07-10 Pedro Alves <pedro@palves.net>
595
596 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
597 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
598 NOT_AVAILABLE_ERROR.
599 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
600 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
601
b3e3a4c1
SM
6022020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
603 Pedro Alves <pedro@palves.net>
604
605 PR gdb/26199
606 * infrun.c (threads_are_resumed_pending_p): Delete.
607 (do_target_wait): Remove threads_are_executing and
608 threads_are_resumed_pending_p checks from the inferior_matches
609 lambda. Update comments.
610
d6cc5d98
PA
6112020-07-10 Pedro Alves <pedro@palves.net>
612
613 PR gdb/26199
614 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
615 executing threads.
616
7d3badc6
PA
6172020-07-10 Pedro Alves <pedro@palves.net>
618
619 PR gdb/26199
620 * infrun.c (handle_no_resumed): Handle multiple targets.
621
42bd97a6
PA
6222020-07-10 Pedro Alves <pedro@palves.net>
623
624 PR gdb/26199
625 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
626 target_is_async_p.
627
43667cc6
PA
6282020-07-10 Pedro Alves <pedro@palves.net>
629
630 PR gdb/26199
631 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
632 threads, not all threads.
633
96118d11
PA
6342020-07-10 Pedro Alves <pedro@palves.net>
635
636 PR gdb/26199
637 * remote.c (remote_target::open_1): Pass remote target pointer as
638 data to create_async_event_handler.
639 (remote_async_inferior_event_handler): Mark async event handler
640 before returning if the remote target still has either pending
641 events or unacknowledged notifications.
642
54904d81
JB
6432020-07-10 John Baldwin <jhb@FreeBSD.org>
644
645 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
646 declaration.
647 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
648 function.
649
f37e5866
JB
6502020-07-09 John Baldwin <jhb@FreeBSD.org>
651
652 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
653 inferior_ptid.
654
fc238d4a
JB
6552020-07-09 John Baldwin <jhb@FreeBSD.org>
656
657 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
658 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
659 AT_FREEBSD_PS_STRINGS.
660
6e2469ff
HD
6612020-07-08 Hannes Domani <ssbssa@yahoo.de>
662
663 * auto-load.c (auto_load_objfile_script_1): Convert drive part
664 of debugfile path on Windows.
665
d1076c41
JB
6662020-07-08 John Baldwin <jhb@FreeBSD.org>
667
668 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
669 argument to 'data'.
670
15f3b077
TT
6712020-07-08 Tom Tromey <tromey@adacore.com>
672
673 * ada-lang.c (ada_exception_message_1): Use read_memory.
674
9fc501fd
AB
6752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 PR python/22748
678 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
679 special handling for inline frames.
680 * findvar.c (value_of_register_lazy): Skip inline frames when
681 creating lazy register values.
682 * frame.c (frame_id_computed_p): Delete definition.
683 * frame.h (frame_id_computed_p): Delete declaration.
684
64cb3757
AB
6852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * NEWS: Mention additions to Python API.
688 * python/py-arch.c (archpy_register_groups): New function.
689 (arch_object_methods): Add 'register_groups' method.
690 * python/py-registers.c (reggroup_iterator_object): New struct.
691 (reggroup_object): New struct.
692 (gdbpy_new_reggroup): New function.
693 (gdbpy_reggroup_to_string): New function.
694 (gdbpy_reggroup_name): New function.
695 (gdbpy_reggroup_iter): New function.
696 (gdbpy_reggroup_iter_next): New function.
697 (gdbpy_new_reggroup_iterator): New function
698 (gdbpy_initialize_registers): Register new types.
699 (reggroup_iterator_object_type): Define new Python type.
700 (gdbpy_reggroup_getset): New static global.
701 (reggroup_object_type): Define new Python type.
702 * python/python-internal.h
703
0f767f94
AB
7042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
705
706 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
707 * python/py-arch.c (archpy_registers): New function.
708 (arch_object_methods): Add 'registers' method.
709 * python/py-registers.c: New file.
710 * python/python-internal.h
711 (gdbpy_new_register_descriptor_iterator): Declare.
712 (gdbpy_initialize_registers): Declare.
713 * python/python.c (do_start_initialization): Call
714 gdbpy_initialize_registers.
715 * NEWS: Mention additions to the Python API.
716
87dbc774
AB
7172020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
718
719 * NEWS: Mention new Python API method.
720 * python/py-unwind.c (pending_framepy_architecture): New function.
721 (pending_frame_object_methods): Add architecture method.
722
3bc98c0c
AB
7232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
724
725 * gdbarch.c: Regenerate.
726 * gdbarch.h: Regenerate.
727 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
728 (gdbarch_data): Use internal_error for the case where
729 deprecated_set_gdbarch_data was originally needed.
730 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
731 and use passed in obstack.
732 (libunwind_frame_set_descr): Should no longer get back NULL from
733 gdbarch_data.
734 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
735 type.
736 * user-regs.c (user_regs_init): Update parameters, and use passed
737 in obstack.
738 (user_reg_add): Should no longer get back NULL from gdbarch_data.
739 (_initialize_user_regs): Register as a pre-init gdbarch data type.
740
d8cc8af6
TV
7412020-07-06 Tom de Vries <tdevries@suse.de>
742
743 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
744 End-Of-Sequence in lte_is_less_than.
745 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
746 "gdb: Don't reorder line table entries too much when sorting".
747
947f7597
TV
7482020-07-06 Tom de Vries <tdevries@suse.de>
749
750 PR tui/26205
751 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
752
1e7c1b22
TV
7532020-07-05 Tom de Vries <tdevries@suse.de>
754
755 PR build/26187
756 * inferior.h (struct infcall_suspend_state_deleter): If available, use
757 std::uncaught_exceptions instead of deprecated
758 std::uncaught_exception.
759
a36158ec
SM
7602020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
761
762 * macroexp.h (macro_stringify): Return
763 gdb::unique_xmalloc_ptr<char>.
764 * macroexp.c (macro_stringify): Likewise.
765 * macrotab.c (fixup_definition): Update.
766
14d960c8
SM
7672020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
768
769 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
770 (lex_one_token): Update.
771 * macroexp.c (struct macro_buffer) <release>: Return
772 gdb::unique_xmalloc_ptr<char>.
773 (macro_stringify): Update.
774 (macro_expand): Update.
775 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
776 * macroexp.h (macro_expand_next): Likewise.
777
211d5b1c
SM
7782020-07-02 Simon Marchi <simon.marchi@efficios.com>
779
780 * macroexp.h (macro_lookup_ftype): Remove.
781 (macro_expand, macro_expand_once, macro_expand_next): Remove
782 lookup function parameters, add scope parameter.
783 * macroexp.c (scan, substitute_args, expand, maybe_expand,
784 macro_expand, macro_expand_once, macro_expand_next): Likewise.
785 * macroscope.h (standard_macro_lookup): Change parameter type
786 to macro_scope.
787 * macroscope.c (standard_macro_lookup): Likewise.
788 * c-exp.y (lex_one_token): Update.
789 * macrocmd.c (macro_expand_command): Likewise.
790 (macro_expand_once_command): Likewise.
791
b1a35af2
SM
7922020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
793
794 * inf-loop.c (inferior_event_handler): Remove client_data param.
795 * inf-loop.h (inferior_event_handler): Likewise.
796 * infcmd.c (step_1): Adjust.
797 * infrun.c (proceed): Adjust.
798 (fetch_inferior_event): Remove client_data param.
799 (infrun_async_inferior_event_handler): Adjust.
800 * infrun.h (fetch_inferior_event): Remove `void *` param.
801 * linux-nat.c (handle_target_event): Adjust.
802 * record-btrace.c (record_btrace_handle_async_inferior_event):
803 Adjust.
804 * record-full.c (record_full_async_inferior_event_handler):
805 Adjust.
806 * remote.c (remote_async_inferior_event_handler): Adjust.
807
1cdf9e33
TT
8082020-07-01 Tom Tromey <tom@tromey.com>
809
810 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
811 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
812
32c1e210
TT
8132020-07-01 Tom Tromey <tom@tromey.com>
814
815 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
816 tui_gen_win_info.
817 (tui_win_info::make_window): Merge with
818 tui_gen_win_info::make_window.
819 (tui_win_info::make_visible): Move from tui_gen_win_info.
820 * tui/tui-win.c (tui_win_info::max_width): Move from
821 tui_gen_win_info.
822 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
823 type.
824 <window_factory>: Likewise.
825 * tui/tui-layout.c (tui_win_info::resize): Move from
826 tui_gen_win_info.
827 (make_standard_window): Change return type.
828 (get_locator_window, tui_get_window_by_name): Likewise.
829 (tui_layout_window::apply): Remove a cast.
830 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
831 (struct tui_win_info): Merge with tui_gen_win_info.
832 (struct tui_gen_win_info): Remove.
833
a30cb6da
TT
8342020-07-01 Tom Tromey <tom@tromey.com>
835
836 * tui/tui-stack.h (struct tui_locator_window): Derive from
837 tui_win_info.
838 <do_scroll_horizontal, do_scroll_vertical>: New methods.
839 <can_box>: New method.
840
1eb2161f
TT
8412020-07-01 Tom Tromey <tom@tromey.com>
842
843 * tui/tui-stack.h (struct tui_locator_window): Remove body.
844
7134f2eb
TT
8452020-07-01 Tom Tromey <tom@tromey.com>
846
847 * tui/tui-regs.c (tui_data_window::display_registers_from)
848 (tui_data_window::display_registers_from)
849 (tui_data_window::first_data_item_displayed)
850 (tui_data_window::delete_data_content_windows): Update.
851 (tui_data_window::refresh_window, tui_data_window::no_refresh):
852 Remove.
853 (tui_data_window::check_register_values): Update.
854 (tui_data_item_window::rerender): Add parameters. Update.
855 (tui_data_item_window::refresh_window): Remove.
856 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
857 virtual.
858 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
859 tui_gen_win_info.
860 <refresh_window, max_height, min_height>: Remove.
861 <rerender>: Add parameters.
862 <x, y, visible>: New members.
863 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
864 <m_item_width>: New member.
865
22b7b041
TT
8662020-07-01 Tom Tromey <tom@tromey.com>
867
868 * tui/tui-regs.c (tui_data_window::show_register_group)
869 (tui_data_window::check_register_values): Update.
870 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
871 from item_no.
872
c9753adb
TT
8732020-07-01 Tom Tromey <tom@tromey.com>
874
875 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
876 useless "if".
877
9ab26b4a
TT
8782020-07-01 Tom Tromey <tom@tromey.com>
879
880 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
881 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
882
e555083f
TT
8832020-07-01 Tom Tromey <tom@tromey.com>
884
885 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
886 * tui/tui-winsource.h (enum tui_line_or_address_kind)
887 (struct tui_line_or_address): Move from tui-data.h.
888 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
889 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
890 (tui_cmd_window, tui_source_window_base, tui_source_window)
891 (tui_disasm_window): Don't declare.
892 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
893 to tui-winsource.h.
894 (SINGLE_KEY): Move to tui-stack.c.
895
7a02bab7
TT
8962020-07-01 Tom Tromey <tom@tromey.com>
897
898 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
899 std::string.
900 * tui/tui-regs.c (class tab_expansion_file): New.
901 (tab_expansion_file::write): New method.
902 (tui_register_format): Change return type. Use
903 tab_expansion_file.
904 (tui_get_register, tui_data_window::display_registers_from)
905 (tui_data_item_window::rerender): Update.
906 * tui/tui-io.h (tui_expand_tabs): Don't declare.
907 * tui/tui-io.c (tui_expand_tabs): Remove.
908
ea68593b
TT
9092020-07-01 Tom Tromey <tom@tromey.com>
910
911 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
912
a8caed5d
FS
9132020-07-01 Fangrui Song <maskray@google.com>
914
915 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
916
9cdf9820
AKS
9172020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
918
919 * dwarf2/read.c (set_die_type): Removed conditions to restrict
920 forms for DW_AT_associated and DW_AT_allocated attributes,
921 which is already checked in function attr_to_dynamic_prop.
922
a1520ad8
TT
9232020-06-30 Tom Tromey <tromey@adacore.com>
924
925 * dwarf2/read.c (quirk_rust_enum): Correctly call
926 alloc_rust_variant for default-less enum.
927
5ac58899
TT
9282020-06-30 Tom Tromey <tromey@adacore.com>
929
930 PR build/26183:
931 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
932 gdb::to_string.
933
19b187a9
SM
9342020-06-29 Simon Marchi <simon.marchi@efficios.com>
935
936 * gdbarch.sh (displaced_step_copy_insn): Update doc.
937 * gdbarch.h: Re-generate.
938
cd4c4c07
TT
9392020-06-28 Tom Tromey <tom@tromey.com>
940
941 * command.h (cmd_types): Remove.
942 (cmd_type): Don't declare.
943 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
944 typedef.
945 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
946 * cli/cli-decode.c (cmd_type): Remove.
947
05779d57
PA
9482020-06-27 Pedro Alves <palves@redhat.com>
949
950 * fork-child.c (prefork_hook): Adjust.
951 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
952 Delete.
953 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
954 * inferior.c (inferior::set_tty, inferior::tty): New methods.
955 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
956 Remove declarations.
957 (struct inferior) <set_tty, tty>: New methods.
958 (struct inferior) <terminal>: Rename to ...
959 (struct inferior) <m_terminal>: ... this and make private.
960 * main.c (captured_main_1): Adjust.
961 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
962 (mi_cmd_inferior_tty_show): Adjust.
963 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
964 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
965
1776e3e5
NA
9662020-06-26 Nick Alcock <nick.alcock@oracle.com>
967
968 * configure.ac: Add --enable-libctf: handle --disable-static
969 properly.
970 * acinclude.m4: sinclude ../config/enable.m4.
971 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
972 (LIBCTF): Substitute in.
973 (CTF_DEPS): New, likewise.
974 (CLIBS): libctf needs symbols from libbfd: move earlier.
975 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
976 flags.
977 * ctfread.c: Surround in ENABLE_LIBCTF.
978 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
979 * configure: Regenerate.
980 * config.in: Likewise.
981
58373b80
SM
9822020-06-25 Simon Marchi <simon.marchi@efficios.com>
983
984 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
985
277474ee
SM
9862020-06-25 Simon Marchi <simon.marchi@efficios.com>
987
988 * inferior.h (struct inferior) <terminal>: Change type to
989 gdb::unique_xmalloc_ptr<char>.
990 * inferior.c (inferior::~inferior): Don't free inf->terminal.
991 * infcmd.c (set_inferior_io_terminal): Don't free terminal
992 field, adjust to unique pointer.
993 (get_inferior_io_terminal): Adjust to unique pointer.
994
6d74da72
AB
9952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
996
997 * riscv-tdep.c (riscv_print_registers_info): Loop over all
998 registers, not just the known core set of registers.
999
2e52d038
AB
10002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1003 fflags, frm, and fcsr registers.
1004 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1005 restore groups.
1006 (riscv_tdesc_unknown_reg): New function.
1007 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1008 tdesc_use_registers.
1009 * riscv-tdep.h (struct gdbarch_tdep): Add
1010 unknown_csrs_first_regnum, unknown_csrs_count,
1011 duplicate_fflags_regnum, duplicate_frm_regnum, and
1012 duplicate_fcsr_regnum fields.
1013
be64fd07
AB
10142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1015
1016 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1017 callback, use the callback (when not null) to help number unknown
1018 registers.
1019 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1020 (tdesc_use_registers): Add extra parameter to declaration.
1021
3b9fce96
AB
10222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1025 in the file.
1026 (class riscv_pending_register_alias): Likewise.
1027 (riscv_register_feature::register_info): Change 'required_p' field
1028 to 'required', and change its type. Add 'check' member function.
1029 (riscv_register_feature::register_info::check): Define new member
1030 function.
1031 (riscv_xreg_feature): Change initialisation of 'required' field.
1032 (riscv_freg_feature): Likewise.
1033 (riscv_virtual_feature): Likewise.
1034 (riscv_csr_feature): Likewise.
1035 (riscv_check_tdesc_feature): Take extra parameter, the csr
1036 tdesc_feature, rewrite the function to use the new
1037 riscv_register_feature::register_info::check function.
1038 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1039
865bad26
AB
10402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * features/Makefile: Remove all references to the deleted files
1043 below.
1044 * features/riscv/32bit-csr.c: Deleted.
1045 * features/riscv/32bit-csr.xml: Deleted.
1046 * features/riscv/64bit-csr.c: Deleted.
1047 * features/riscv/64bit-csr.xml: Deleted.
1048 * features/riscv/rebuild-csr-xml.sh: Deleted.
1049
ed69cbc8
AB
10502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1053 whitespace error for declaration of names member variable.
1054 (struct riscv_register_feature): Add new prefer_first_name member
1055 variable, and fix whitespace error in declaration of registers.
1056 (riscv_xreg_feature): Initialize prefer_first_name field.
1057 (riscv_freg_feature): Likewise.
1058 (riscv_virtual_feature): Likewise.
1059 (riscv_csr_feature): Likewise.
1060 (riscv_register_name): Expand on comments. Remove register name
1061 modifications for CSR and virtual registers.
1062
4445e8f5
AB
10632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1066 errors.
1067
767a879e
AB
10682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1071 riscv-opc.h.
1072 (class riscv_pending_register_alias): New class.
1073 (riscv_check_tdesc_feature): Take vector of pending aliases and
1074 populate it as appropriate.
1075 (riscv_setup_register_aliases): Delete.
1076 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1077 to riscv_check_tdesc_feature in all cases. Use the vector to
1078 create the register aliases.
1079
bb6e55f3
RO
10802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1081
1082 * sol2-tdep.c (sol2_static_transform_name): Remove.
1083 (sol2_init_abi): Don't register it.
1084 * gdbarch.sh (static_transform_name): Remove.
1085 * gdbarch.c, gdbarch.h: Regenerate.
1086
1087 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1088 gdbarch_static_transform_name.
1089 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1090 * stabsread.c (define_symbol) <'X'>: Remove.
1091 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1092 handling.
1093 <'V'>: Likewise.
1094 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1095 <'S'>: Remove call to gdbarch_static_transform_name.
1096
c6d36836
RO
10972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1098
1099 * procfs.c (procfs_pre_trace): New function.
1100 (procfs_target::create_inferior): Pass it to fork_inferior.
1101
a7e6196b
RO
11022020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1103
1104 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1105 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1106 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1107 sol2-tdep.o, sparc-sol2-tdep.o.
1108 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1109 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1110 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1111 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1112
d412e696
RO
11132020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1114
1115 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1116 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1117 Call sol2_init_abi.
1118 Remove calls to set_gdbarch_skip_solib_resolver,
1119 set_gdbarch_core_pid_to_str.
1120 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1121 (i386_sol2_static_transform_name): Remove.
1122 (i386_sol2_init_abi): Call sol2_init_abi.
1123 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1124 set_gdbarch_static_transform_name,
1125 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1126 Use sol2_sigtramp_p.
1127 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1128 (sol2_sigtramp_p): New function.
1129 (sol2_static_transform_name): New function.
1130 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1131 (sol2_init_abi): New function.
1132 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1133 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1134 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1135 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1136 (sparc_sol2_static_transform_name): Remove.
1137 (sparc32_sol2_init_abi): Call sol2_init_abi.
1138 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1139 set_gdbarch_static_transform_name,
1140 set_gdbarch_skip_solib_resolver,
1141 set_gdbarch_core_pid_to_str.
1142 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1143 (sparc_sol2_static_transform_name): Remove
1144 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1145 call sol2_sigtramp_p.
1146 (sparc64_sol2_init_abi): Call sol2_init_abi.
1147 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1148 set_gdbarch_static_transform_name,
1149 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1150
a8654e7d
PW
11512020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1152
1153 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1154 * exec.c (validate_exec_file): If from_tty, set both
1155 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1156 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1157 and from_tty, unconditionally ask a confirmation.
1158
caa7fd04
AB
11592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * target-descriptions.c (tdesc_architecture_name): Protect against
1162 NULL pointer dereference.
1163 (maint_print_xml_tdesc_cmd): New function.
1164 (_initialize_target_descriptions): Register new 'maint print
1165 xml-tdesc' command and give it the filename completer.
1166 * NEWS: Mention new 'maint print xml-tdesc' command.
1167
fbf42f4e
AB
11682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1169
1170 * target-descriptions.c (class tdesc_compatible_info): New class.
1171 (struct target_desc): Change type of compatible vector.
1172 (tdesc_compatible_p): Update for change in type of
1173 target_desc::compatible.
1174 (tdesc_compatible_info_list): New function.
1175 (tdesc_compatible_info_arch_name): New function.
1176 (tdesc_add_compatible): Update for change in type of
1177 target_desc::compatible.
1178 (print_c_tdesc::visit_pre): Likewise.
1179
20821f4e
AB
11802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1183 whitespace to underscore.
1184 (maint_print_c_tdesc_cmd): Use fake filename for target
1185 descriptions that came from the target.
1186 (_initialize_target_descriptions): Add filename command completion
1187 for 'maint print c-tdesc'.
1188
1fb5ee62
SM
11892020-06-23 Simon Marchi <simon.marchi@efficios.com>
1190
1191 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1192 lines.
1193
fc3ecb3e
SM
11942020-06-23 Simon Marchi <simon.marchi@efficios.com>
1195
1196 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1197 lines.
1198 (dwarf2_find_location_expression): Likewise.
1199 (call_site_parameter_matches): Likewise.
1200 (dwarf2_compile_expr_to_ax): Likewise.
1201 (disassemble_dwarf_expression): Likewise.
1202 (loclist_describe_location): Likewise.
1203
236ef034
PA
12042020-06-23 Pedro Alves <palves@redhat.com>
1205
1206 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1207 progspace-and-thread.h. Include scoped-mock-context.h instead.
1208 (register_to_value_test): Use scoped_mock_context.
1209 * regcache.c: Include "scoped-mock-context.h".
1210 (cooked_read_test): Don't error out if a target is already pushed.
1211 Use scoped_mock_context. Adjust.
1212 * scoped-mock-context.h: New file.
1213
39e7ecca
AB
12142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1215
1216 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1217 initializer.
1218 (ada_language::is_string_type_p): New member function.
1219 * c-lang.c (c_language_data): Delete la_is_string_type_p
1220 initializer.
1221 (cplus_language_data): Likewise.
1222 (asm_language_data): Likewise.
1223 (minimal_language_data): Likewise.
1224 * d-lang.c (d_language_data): Likewise.
1225 * f-lang.c (f_is_string_type_p): Delete function, implementation
1226 moved to f_language::is_string_type_p.
1227 (f_language_data): Delete la_is_string_type_p initializer.
1228 (f_language::is_string_type_p): New member function,
1229 implementation from f_is_string_type_p.
1230 * go-lang.c (go_is_string_type_p): Delete function, implementation
1231 moved to go_language::is_string_type_p.
1232 (go_language_data): Delete la_is_string_type_p initializer.
1233 (go_language::is_string_type_p): New member function,
1234 implementation from go_is_string_type_p.
1235 * language.c (language_defn::is_string_type_p): Define new member
1236 function.
1237 (default_is_string_type_p): Make static, add comment copied from
1238 header file.
1239 (unknown_language_data): Delete la_is_string_type_p initializer.
1240 (unknown_language::is_string_type_p): New member function.
1241 (auto_language_data): Delete la_is_string_type_p initializer.
1242 (auto_language::is_string_type_p): New member function.
1243 * language.h (language_data): Delete la_is_string_type_p field.
1244 (language_defn::is_string_type_p): Declare new function.
1245 (default_is_string_type_p): Delete desclaration, move comment to
1246 definition.
1247 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1248 moved to m2_language::is_string_type_p.
1249 (m2_language_data): Delete la_is_string_type_p initializer.
1250 (m2_language::is_string_type_p): New member function,
1251 implementation from m2_is_string_type_p.
1252 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1253 initializer.
1254 * opencl-lang.c (opencl_language_data): Likewise.
1255 * p-lang.c (pascal_is_string_type_p): Delete function,
1256 implementation moved to pascal_language::is_string_type_p.
1257 (pascal_language_data): Delete la_is_string_type_p initializer.
1258 (pascal_language::is_string_type_p): New member function,
1259 implementation from pascal_is_string_type_p.
1260 * rust-lang.c (rust_is_string_type_p): Delete function,
1261 implementation moved to rust_language::is_string_type_p.
1262 (rust_language_data): Delete la_is_string_type_p initializer.
1263 (rust_language::is_string_type_p): New member function,
1264 implementation from rust_is_string_type_p.
1265 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1266 is_string_type_p.
1267
4ffc13fb
AB
12682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * ada-lang.c (ada_language_data): Delete la_print_typedef
1271 initializer.
1272 (ada_language::print_typedef): New member function.
1273 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1274 (cplus_language_data): Likewise.
1275 (asm_language_data): Likewise.
1276 (minimal_language_data): Likewise.
1277 * d-lang.c (d_language_data): Likewise.
1278 * f-lang.c (f_language_data): Likewise.
1279 (f_language::print_typedef): New member function.
1280 * go-lang.c (go_language_data): Delete la_print_typedef
1281 initializer.
1282 * language.c (language_defn::print_typedef): Define member
1283 function.
1284 (unknown_language_data): Delete la_print_typedef initializer.
1285 (unknown_language::print_typedef): New member function.
1286 (auto_language_data): Delete la_print_typedef initializer.
1287 (auto_language::print_typedef): New member function.
1288 * language.h (language_data): Delete la_print_typedef field.
1289 (language_defn::print_typedef): Declare new member function.
1290 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1291 (default_print_typedef): Delete declaration.
1292 * m2-lang.c (m2_language_data): Delete la_print_typedef
1293 initializer.
1294 (m2_language::print_typedef): New member function.
1295 * objc-lang.c (objc_language_data): Delete la_print_typedef
1296 initializer.
1297 * opencl-lang.c (opencl_language_data): Likewise.
1298 * p-lang.c (pascal_language_data): Likewise.
1299 (pascal_language::print_typedef): New member function.
1300 * rust-lang.c (rust_print_typedef): Delete function,
1301 implementation moved to rust_language::print_typedef.
1302 (rust_language): Delete la_print_typedef initializer.
1303 (rust_language::print_typedef): New member function,
1304 implementation from rust_print_typedef.
1305 * typeprint.c (default_print_typedef): Delete.
1306
d711ee67
AB
13072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1308
1309 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1310 (ada_language::printstr): New member function.
1311 * c-lang.c (c_language_data): Delete la_printstr initializer.
1312 (cplus_language_data): Likewise.
1313 (asm_language_data): Likewise.
1314 (minimal_language_data): Likewise.
1315 * d-lang.c (d_language_data): Likewise.
1316 * f-lang.c (f_printstr): Rename to f_language::printstr.
1317 (f_language_data): Delete la_printstr initializer.
1318 (f_language::printstr): New member function, implementation from
1319 f_printstr.
1320 * go-lang.c (go_language_data): Delete la_printstr initializer.
1321 * language.c (language_defn::printstr): Define new member
1322 function.
1323 (unk_lang_printstr): Delete.
1324 (unknown_language_data): Delete la_printstr initializer.
1325 (unknown_language::printstr): New member function.
1326 (auto_language_data): Delete la_printstr initializer.
1327 (auto_language::printstr): New member function.
1328 * language.h (language_data): Delete la_printstr field.
1329 (language_defn::printstr): Declare new member function.
1330 (LA_PRINT_STRING): Update call to printstr.
1331 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1332 (m2_language_data): Delete la_printstr initializer.
1333 (m2_language::printstr): New member function, implementation from
1334 m2_printstr.
1335 * objc-lang.c (objc_language_data): Delete la_printstr
1336 initializer.
1337 * opencl-lang.c (opencl_language_data): Likewise.
1338 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1339 (pascal_language_data): Delete la_printstr initializer.
1340 (pascal_language::printstr): New member function, implementation
1341 from pascal_printstr.
1342 * p-lang.h (pascal_printstr): Delete declaration.
1343 * rust-lang.c (rust_printstr): Update header comment.
1344 (rust_language_data): Delete la_printstr initializer.
1345 (rust_language::printstr): New member function.
1346
52b50f2c
AB
13472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1350 (ada_language::printchar): New member function.
1351 * c-lang.c (c_language_data): Delete la_printchar initializer.
1352 (cplus_language_data): Likewise.
1353 (asm_language_data): Likewise.
1354 (minimal_language_data): Likewise.
1355 * d-lang.c (d_language_data): Likewise.
1356 * f-lang.c (f_printchar): Rename to f_language::printchar.
1357 (f_language_data): Delete la_printchar initializer.
1358 (f_language::printchar): New member function, implementation from
1359 f_printchar.
1360 * go-lang.c (go_language_data): Delete la_printchar initializer.
1361 * language.c (unk_lang_printchar): Delete.
1362 (language_defn::printchar): Define new member function.
1363 (unknown_language_data): Delete la_printchar initializer.
1364 (unknown_language::printchar): New member function.
1365 (auto_language_data): Delete la_printchar initializer.
1366 (auto_language::printchar): New member function.
1367 * language.h (language_data): Delete la_printchar field.
1368 (language_defn::printchar): Declare new member function.
1369 (LA_PRINT_CHAR): Update call to printchar.
1370 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1371 (m2_language::printchar): New member function.
1372 * objc-lang.c (objc_language_data): Delete la_printchar
1373 initializer.
1374 * opencl-lang.c (opencl_language_data): Likewise.
1375 * p-lang.c (pascal_language_data): Delete la_printchar
1376 initializer.
1377 (pascal_language::printchar): New member function.
1378 * rust-lang.c (rust_printchar): Rename to
1379 rust_language::printchar.
1380 (rust_language_data): Delete la_printchar initializer.
1381 (rust_language::printchar): New member function, implementation
1382 from rust_printchar.
1383
ec8cec5b
AB
13842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1385
1386 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1387 (ada_language_data): Delete la_emitchar initializer.
1388 (ada_language::emitchar): New member function, implementation from
1389 emit_char.
1390 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1391 (cplus_language_data): Likewise.
1392 (asm_language_data): Likewise.
1393 (minimal_language_data): Likewise.
1394 * d-lang.c (d_language_data): Likewise.
1395 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1396 (f_language_data): Delete la_emitchar initializer.
1397 (f_language::emitchar): New member function, implementation from
1398 f_emit_char.
1399 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1400 * language.c (unk_lang_emit_char): Delete.
1401 (language_defn::emitchar): New member function definition.
1402 (unknown_language_data): Delete la_emitchar initializer.
1403 (unknown_language::emitchar): New member function.
1404 (auto_language_data): Delete la_emitchar initializer.
1405 (auto_language::emitchar): New member function.
1406 * language.h (language_data): Delete la_emitchar field.
1407 (language_defn::emitchar): New member field declaration.
1408 (LA_EMIT_CHAR): Update call to emitchar.
1409 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1410 (m2_language_data): Delete la_emitchar initializer.
1411 (m2_language::emitchar): New member function, implementation from
1412 m2_emit_char.
1413 * objc-lang.c (objc_language_data): Delete la_emitchar
1414 initializer.
1415 * opencl-lang.c (opencl_language_data): Likewise.
1416 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1417 (pascal_language_data): Delete la_emitchar initializer.
1418 (pascal_language::emitchar): New member function, implementation
1419 from pascal_emit_char.
1420 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1421 (rust_language_data): Delete la_emitchar initializer.
1422 (rust_language::emitchar): New member function, implementation
1423 from rust_emitchar.
1424
1bf9c363
AB
14252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1426
1427 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1428 (ada_language_data): Delete la_post_parser initializer.
1429 (ada_language::post_parser): New member function.
1430 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1431 (cplus_language_data): Likewise.
1432 (asm_language_data): Likewise.
1433 (minimal_language_data): Likewise.
1434 * d-lang.c (d_language_data): Likewise.
1435 * f-lang.c (f_language_data): Likewise.
1436 * go-lang.c (go_language_data): Likewise.
1437 * language.c (unknown_language_data): Likewise.
1438 (auto_language_data): Likewise.
1439 * language.h (language_data): Delete la_post_parser field.
1440 (language_defn::post_parser): New member function.
1441 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1442 * objc-lang.c (objc_language_data): Likewise.
1443 * opencl-lang.c (opencl_language_data): Likewise.
1444 * p-lang.c (pascal_language_data): Likewise.
1445 * parse.c (parse_exp_in_context): Update call to post_parser.
1446 (null_post_parser): Delete definition.
1447 * parser-defs.h (null_post_parser): Delete declaration.
1448 * rust-lang.c (rust_language_data): Delete la_post_parser
1449 initializer.
1450
87afa652
AB
14512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * ada-lang.c (parse): Rename to ada_language::parser.
1454 (ada_language_data): Delete la_parser initializer.
1455 (ada_language::parser): New member function, implementation from
1456 parse.
1457 * c-lang.c (c_language_data): Delete la_parser initializer.
1458 (cplus_language_data): Likewise.
1459 (asm_language_data): Likewise.
1460 (minimal_language_data): Likewise.
1461 * d-lang.c (d_language_data): Likewise.
1462 (d_language::parser): New member function.
1463 * f-lang.c (f_language_data): Delete la_parser initializer.
1464 (f_language::parser): New member function.
1465 * go-lang.c (go_language_data): Delete la_parser initializer.
1466 (go_language::parser): New member function.
1467 * language.c (unk_lang_parser): Delete.
1468 (language_defn::parser): Define new member function.
1469 (unknown_language_data): Delete la_parser initializer.
1470 (unknown_language::parser): New member function.
1471 (auto_language_data): Delete la_parser initializer.
1472 (auto_language::parser): New member function.
1473 * language.h (language_data): Delete la_parser field.
1474 (language_defn::parser): Declare new member function.
1475 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1476 (m2_language::parser): New member function.
1477 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1478 * opencl-lang.c (opencl_language_data): Likewise.
1479 * p-lang.c (pascal_language_data): Likewise.
1480 (pascal_language::parser): New member function.
1481 * parse.c (parse_exp_in_context): Update call to parser.
1482 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1483 (rust_language::parser): New member function.
1484
37825800
AB
14852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * top.c (print_gdb_configuration): Print --with-python-libdir
1488 configuration value.
1489
5b860c93
PW
14902020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1491
1492 * NEWS: Mention change to the alias command.
1493
cf00cd6f
PW
14942020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1495
1496 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1497 (alias_command_completer)
1498 (make_alias_options_def_group): New functions.
1499 (alias_opts, alias_option_defs): New struct and array.
1500 (alias_usage_error): Update usage.
1501 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1502 Use option framework.
1503 (_initialize_cli_cmds): Update alias command help.
1504 Update aliases command help.
1505 (show_user):
1506 Add NULL for new default_args lookup_cmd argument.
1507 (valid_command_p): Rename to validate_aliased_command.
1508 Add NULL for new default_args lookup_cmd argument. Verify that the
1509 aliased_command has no default args.
1510 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1511 (lookup_cmd_1, lookup_cmd): New argument default_args.
1512 (add_alias_cmd):
1513 Add NULL for new default_args lookup_cmd argument.
1514 (print_help_for_command): Show default args under the layout
1515 alias some_alias = some_aliased_cmd some_alias_default_arg.
1516 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1517 xfree default_args in destructor.
1518 * cli/cli-script.c (process_next_line, do_define_command):
1519 Add NULL for new default_args lookup_cmd argument.
1520 * command.h: Declare new default_args argument in lookup_cmd
1521 and lookup_cmd_1.
1522 * completer.c (complete_line_internal_1):
1523 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1524 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1525 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1526 Likewise.
1527 * infcmd.c (_initialize_infcmd): Likewise.
1528 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1529 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1530 * python/py-param.c (add_setshow_generic): Likewise.
1531 * remote.c (_initialize_remote): Likewise.
1532 * top.c (execute_command): Prepend default_args if command has some.
1533 (set_verbose):
1534 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1535 * tracepoint.c (validate_actionline, encode_actions_1):
1536 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1537
bd920864
TBA
15382020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1539
1540 * jit.c (jit_read_descriptor): Use bool as the return type.
1541 (jit_breakpoint_re_set_internal): Use bool as the return type.
1542 Invert the return value logic; return true if the jit breakpoint
1543 has been successfully initialized.
1544 (jit_inferior_init): Update the call to
1545 jit_breakpoint_re_set_internal.
1546
f8098322
PA
15472020-06-22 Pedro Alves <palves@redhat.com>
1548
1549 PR gdb/25939
1550 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1551 Use the current inferior instead. Don't return
1552 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1553 wait again.
1554 * sol-thread.c (sol_thread_target::wait): Don't reference
1555 inferior_ptid.
1556 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1557 (sol_update_thread_list_callback): Use the current inferior's pid
1558 instead of inferior_ptid.
1559
196535a6
RO
15602020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1561
1562 * procfs.c: Cleanup many comments.
1563
1564 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1565 (AFTER_WATCHFLAG): Replace by value.
1566
1567 (MAIN_PROC_NAME_FORMAT): Inline ...
1568 (create_procinfo): ... here.
1569
1570 (procfs_debug_inferior): Remove SYS_exec handling.
1571 (syscall_is_exec): Likewise.
1572 (procfs_set_exec_trap): Likewise.
1573
1574 (syscall_is_lwp_exit): Inline in callers.
1575 (syscall_is_exit): Likewise.
1576 (syscall_is_exec): Likewise.
1577 (syscall_is_lwp_create): Likewise.
1578
1579 (invalidate_cache): Remove #if 0 code.
1580
1581 (make_signal_thread_runnable): Remove.
1582 (procfs_target::resume): Remove #if 0 code.
1583
cf6f3e86
RO
15842020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1585
1586 PR gdb/25939
1587 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1588 call ...
1589 (procfs_target::create_inferior): ... here.
1590
48e9cc84
PW
15912020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1592
1593 * exec.c (validate_exec_file): Ensure the build-id is up to
1594 date by calling reopen_exec_file (that checks file timestamp
1595 to decide to re-read the file).
1596
3922b302
PA
15972020-06-18 Pedro Alves <palves@redhat.com>
1598
1599 PR gdb/25412
1600 * gdbthread.h (delete_thread, delete_thread_silent)
1601 (find_thread_ptid): Update comments.
1602 * thread.c (current_thread_): New global.
1603 (is_current_thread): Move higher, and reimplement.
1604 (inferior_thread): Reimplement.
1605 (set_thread_exited): Use bool. Add assertions.
1606 (add_thread_silent): Simplify thread-reuse handling by always
1607 calling delete_thread.
1608 (delete_thread): Remove intro comment.
1609 (find_thread_ptid): Skip exited threads.
1610 (switch_to_thread_no_regs): Write to current_thread_.
1611 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1612 INFERIOR_PTID. Clear current_thread_.
1613
6dbdab44
PA
16142020-06-18 Pedro Alves <palves@redhat.com>
1615
1616 * aix-thread.c (pd_update): Use switch_to_thread.
1617
2da4b788
PA
16182020-06-18 Pedro Alves <palves@redhat.com>
1619
1620 * ravenscar-thread.c (ravenscar_thread_target): Update.
1621 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1622 (ravenscar_thread_target::add_active_thread): ... this. Don't
1623 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1624 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1625
50838d1b
PA
16262020-06-18 Pedro Alves <palves@redhat.com>
1627
1628 * nat/windows-nat.c (current_windows_thread): Remove.
1629 * nat/windows-nat.h (current_windows_thread): Remove.
1630 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1631 Adjust.
1632 (display_selectors): Adjust to fetch the current
1633 windows_thread_info based on inferior_ptid.
1634 (fake_create_process): No longer write to current_windows_thread.
1635 (windows_nat_target::get_windows_debug_event):
1636 Don't set inferior_ptid or current_windows_thread.
1637 (windows_nat_target::wait): Adjust to not rely on
1638 current_windows_thread.
1639 (do_initial_windows_stuff): Now a method of windows_nat_target.
1640 Switch to the last_ptid thread.
1641 (windows_nat_target::attach): Adjust.
1642 (windows_nat_target::detach): Use switch_to_no_thread instead of
1643 writing to inferior_ptid directly.
1644 (windows_nat_target::create_inferior): Adjust.
1645
31ce04e9
PA
16462020-06-18 Pedro Alves <palves@redhat.com>
1647
1648 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1649
1ee1a363
PA
16502020-06-18 Pedro Alves <palves@redhat.com>
1651
1652 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1653 after creating it, instead of writing to inferior_ptid. Don't
1654 write to inferior_ptid.
1655
6d350754
PA
16562020-06-18 Pedro Alves <palves@redhat.com>
1657
1658 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1659
5d971d48
PA
16602020-06-18 Pedro Alves <palves@redhat.com>
1661
1662 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1663 it, instead of writing to inferior_ptid.
1664
86e57d1b
PA
16652020-06-18 Pedro Alves <palves@redhat.com>
1666
1667 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1668 to inferior_ptid.
1669
f2e1c129
PA
16702020-06-18 Pedro Alves <palves@redhat.com>
1671
1672 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1673 instead of writing to inferior_ptid directly.
1674
60db1b85
PA
16752020-06-18 Pedro Alves <palves@redhat.com>
1676
1677 * corelow.c (core_target::close): Use switch_to_no_thread instead
1678 of writing to inferior_ptid directly.
1679 (add_to_thread_list, core_target_open): Use switch_to_thread
1680 instead of writing to inferior_ptid directly.
1681
fe7d6a8d
PA
16822020-06-18 Pedro Alves <palves@redhat.com>
1683
1684 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1685 inferior_ptid.
1686 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1687 inferior_ptid.
1688 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1689 inferior_ptid directly.
1690 (darwin_nat_target::init_thread_list): Switch to thread, instead
1691 of writing to inferior_ptid.
1692 (darwin_nat_target::attach): Don't write to inferior_ptid.
1693 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1694
975f8708
PA
16952020-06-18 Pedro Alves <palves@redhat.com>
1696
1697 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1698 thread.
1699 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1700 Instead use switch_to_thread.
1701 (gnu_nat_target::detach): Use switch_to_no_thread
1702 instead of writing to inferior_ptid directly. Used passed-in
1703 inferior instead of looking up the inferior by pid.
1704
1a204730
PA
17052020-06-18 Pedro Alves <palves@redhat.com>
1706
1707 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1708 inferior_ptid.
1709
ebe84f23
PA
17102020-06-18 Pedro Alves <palves@redhat.com>
1711
1712 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1713 inferior_ptid.
1714 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1715 thread.
1716 (nto_procfs_target::detach): Avoid referencing
1717 inferior_ptid. Use switch_to_no_thread instead of writing to
1718 inferior_ptid directly.
1719 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1720 instead of writing to inferior_ptid directly.
1721 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1722 to thread.
1723
191f02e5
PA
17242020-06-18 Pedro Alves <palves@redhat.com>
1725
1726 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1727 after creating it, instead of writing to inferior_ptid.
1728 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1729 to inferior_ptid directly.
1730 (gdbsim_target::wait): Don't write to inferior_ptid.
1731
0ac55310
PA
17322020-06-18 Pedro Alves <palves@redhat.com>
1733
1734 * remote.c (remote_target::remote_notice_new_inferior): Use
1735 switch_to_thread instead of writing to inferior_ptid directly.
1736 (remote_target::add_current_inferior_and_thread): Use
1737 switch_to_no_thread instead of writing to inferior_ptid directly.
1738 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1739 and switch_to_thread instead of using set_current_inferior or
1740 writing to inferior_ptid directly.
1741
5233f39b
PA
17422020-06-18 Pedro Alves <palves@redhat.com>
1743
1744 * tracectf.c (ctf_target_open): Switch to added thread instead of
1745 writing to inferior_ptid directly.
1746 (ctf_target::close): Use switch_to_no_thread instead of writing to
1747 inferior_ptid directly.
1748
087e161b
PA
17492020-06-18 Pedro Alves <palves@redhat.com>
1750
1751 * tracefile-tfile.c (tfile_target_open): Don't write to
1752 inferior_ptid directly, instead switch to added thread.
1753 (tfile_target::close): Use switch_to_no_thread instead of writing
1754 to inferior_ptid directly.
1755
7fb43e53
PA
17562020-06-18 Pedro Alves <palves@redhat.com>
1757
1758 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1759 (procfs_target::detach): Use switch_to_no_thread
1760 instead of writing to inferior_ptid directly.
1761 (do_attach): Change return type to void. Switch to the added
1762 thread.
1763 (procfs_target::create_inferior): Switch to the added thread.
1764 (procfs_do_thread_registers): Don't write to inferior_ptid.
1765
18493a00
PA
17662020-06-18 Pedro Alves <palves@redhat.com>
1767
1768 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1769 of writing to inferior_ptid.
1770 (scoped_restore_exited_inferior): Delete.
1771 (handle_vfork_child_exec_or_exit): Simplify using
1772 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1773 instead of writing to inferior_ptid.
1774 (THREAD_STOPPED_BY): Delete.
1775 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1776 (thread_stopped_by_hw_breakpoint): Delete.
1777 (save_waitstatus): Use
1778 scoped_restore_current_thread+switch_to_thread, and call
1779 target_stopped_by_watchpoint instead of
1780 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1781 instead of thread_stopped_by_sw_breakpoint, and
1782 target_stopped_by_hw_breakpoint instead of
1783 thread_stopped_by_hw_breakpoint.
1784 (handle_inferior_event)
1785 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1786 inferior_ptid directly, nor
1787 set_current_inferior/set_current_program_space. Use
1788 switch_to_thread / switch_to_inferior_no_thread instead.
1789
a0776b13
PA
17902020-06-18 Pedro Alves <palves@redhat.com>
1791
1792 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1793 instead of writing to inferior_ptid.
1794
6155c136
PA
17952020-06-18 Pedro Alves <palves@redhat.com>
1796
1797 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1798 added thread.
1799 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1800 to the added thread.
1801 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1802 instead of writing to inferior_ptid.
1803
c5316fc6
PA
18042020-06-18 Pedro Alves <palves@redhat.com>
1805
1806 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1807 (register_to_value_test): Mock a program_space too. Heap-allocate
1808 the address space. Don't write to inferior_ptid. Use
1809 switch_to_thread instead.
1810
8df01799
PA
18112020-06-18 Pedro Alves <palves@redhat.com>
1812
1813 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1814 Delete.
1815 (find_signalled_thread()): New, factored out from
1816 linux_make_corefile_notes and adjusted to handle exited threads.
1817 (linux_make_corefile_notes): Adjust to use the new
1818 find_signalled_thread.
1819
41792d68
PA
18202020-06-18 Pedro Alves <palves@redhat.com>
1821
1822 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1823 of saving/restoring inferior_ptid.
1824
612f258a
TT
18252020-06-17 Tom Tromey <tom@tromey.com>
1826
1827 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1828 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1829 declare.
1830 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1831
efb763a5
SM
18322020-06-15 Simon Marchi <simon.marchi@efficios.com>
1833
1834 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1835 of partial symtabs.
1836
2951f6c0
SM
18372020-06-17 Simon Marchi <simon.marchi@efficios.com>
1838
1839 * regformats/reg-arm.dat: Remove.
1840 * regformats/reg-bfin.dat: Remove.
1841 * regformats/reg-cris.dat: Remove.
1842 * regformats/reg-crisv32.dat: Remove.
1843 * regformats/reg-m32r.dat: Remove.
1844 * regformats/reg-tilegx.dat: Remove.
1845 * regformats/reg-tilegx32.dat: Remove.
1846
7d458ea5
SM
18472020-06-17 Simon Marchi <simon.marchi@efficios.com>
1848
1849 * features/Makefile (WHICH): Remove arm files.
1850 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1851 * regformats/arm/arm-with-neon.dat: Remove.
1852 * regformats/arm/arm-with-vfpv2.dat: Remove.
1853 * regformats/arm/arm-with-vfpv3.dat: Remove.
1854
3af96c0d
SM
18552020-06-17 Simon Marchi <simon.marchi@efficios.com>
1856
1857 * features/Makefile (XMLTOC): Remove rx.xml.
1858
b25e22fd
PA
18592020-06-17 Pedro Alves <palves@redhat.com>
1860
1861 * gdbthread.h (thread_control_state) <trap_expected> Update
1862 comments.
1863
a78a19b1
AB
18642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1867 ada_language::lookup_symbol_nonlocal.
1868 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1869 (ada_language::lookup_symbol_nonlocal): New member function,
1870 implementation from ada_lookup_symbol_nonlocal.
1871 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1872 initializer.
1873 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1874 initializer.
1875 (cplus_language::lookup_symbol_nonlocal): New member function.
1876 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1877 (minimal_language_data) Likewise.
1878 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1879 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1880 initializer.
1881 (d_language::lookup_symbol_nonlocal): New member function.
1882 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1883 initializer.
1884 (f_language::lookup_symbol_nonlocal): New member function.
1885 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1886 initializer.
1887 * language.c (unknown_language_data): Likewise.
1888 (auto_language_data): Likewise.
1889 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1890 field.
1891 (language_defn::lookup_symbol_nonlocal): New member function.
1892 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1893 initializer.
1894 * objc-lang.c (objc_language_data): Likewise.
1895 * opencl-lang.c (opencl_language_data): Likewise.
1896 * p-lang.c (pascal_language_data): Likewise.
1897 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1898 rust_language::lookup_symbol_nonlocal.
1899 (rust_language_data): Delete la_lookup_symbol_nonlocal
1900 initializer.
1901 (rust_language::lookup_symbol_nonlocal): New member function,
1902 implementation from rust_lookup_symbol_nonlocal.
1903 * symtab.c (lookup_symbol_aux): Update call to
1904 lookup_symbol_nonlocal.
1905 (basic_lookup_symbol_nonlocal): Rename to...
1906 (language_defn::lookup_symbol_nonlocal): ...this, and update
1907 header comment. Remove language_defn parameter, and replace with
1908 uses of `this'.
1909 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1910
ebe2334e
AB
19112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1912
1913 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1914 initializer.
1915 (ada_language::value_print_inner): New member function.
1916 * c-lang.c (c_language_data): Delete la_value_print_inner
1917 initializer.
1918 (cplus_language_data): Likewise.
1919 (asm_language_data): Likewise.
1920 (minimal_language_data): Likewise.
1921 * d-lang.c (d_language_data): Likewise.
1922 (d_language::value_print_inner): New member function.
1923 * f-lang.c (f_language_data): Delete la_value_print_inner
1924 initializer.
1925 (f_language::value_print_inner): New member function.
1926 * f-lang.h (f_value_print_innner): Rename to...
1927 (f_value_print_inner): ...this (note spelling of 'inner').
1928 * f-valprint.c (f_value_print_innner): Rename to...
1929 (f_value_print_inner): ...this (note spelling of 'inner').
1930 * go-lang.c (go_language_data): Delete la_value_print_inner
1931 initializer.
1932 (go_language::value_print_inner): New member function.
1933 * language.c (language_defn::value_print_inner): Define new member
1934 function.
1935 (unk_lang_value_print_inner): Delete.
1936 (unknown_language_data): Delete la_value_print_inner initializer.
1937 (unknown_language::value_print_inner): New member function.
1938 (auto_language_data): Delete la_value_print_inner initializer.
1939 (auto_language::value_print_inner): New member function.
1940 * language.h (language_data): Delete la_value_print_inner field.
1941 (language_defn::value_print_inner): Delcare new member function.
1942 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1943 initializer.
1944 (m2_language::value_print_inner): New member function.
1945 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1946 initializer.
1947 * opencl-lang.c (opencl_language_data): Likewise.
1948 * p-lang.c (pascal_language_data): Likewise.
1949 (pascal_language::value_print_inner): New member function.
1950 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1951 initializer.
1952 (rust_language::value_print_inner): New member function.
1953 * valprint.c (do_val_print): Update call to value_print_inner.
1954
a1d1fa3e
AB
19552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1956
1957 * ada-lang.c (ada_language_data): Delete la_value_print
1958 initializer.
1959 (ada_language::value_print): New member function.
1960 * c-lang.c (c_language_data): Delete la_value_print initializer.
1961 (cplus_language_data): Likewise.
1962 (asm_language_data): Likewise.
1963 (minimal_language_data): Likewise.
1964 * d-lang.c (d_language_data): Likewise.
1965 * f-lang.c (f_language_data): Likewise.
1966 * go-lang.c (go_language_data): Likewise.
1967 * language.c (unk_lang_value_print): Delete.
1968 (language_defn::value_print): Define new member function.
1969 (unknown_language_data): Delete la_value_print initializer.
1970 (unknown_language::value_print): New member function.
1971 (auto_language_data): Delete la_value_print initializer.
1972 (auto_language::value_print): New member function.
1973 * language.h (language_data): Delete la_value_print field.
1974 (language_defn::value_print): Declare new member function.
1975 (LA_VALUE_PRINT): Update call to value_print.
1976 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1977 * objc-lang.c (objc_language_data): Likewise.
1978 * opencl-lang.c (opencl_language_data): Likewise.
1979 * p-lang.c (pascal_language_data): Likewise.
1980 (pascal_language::value_print): New member function.
1981 * rust-lang.c (rust_language_data): Delete la_value_print
1982 initializer.
1983
f16a9f57
AB
19842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1985
1986 * ada-lang.c (ada_watch_location_expression): Rename to
1987 ada_language::watch_location_expression.
1988 (ada_language_data): Delete la_watch_location_expression
1989 initializer.
1990 (ada_language::watch_location_expression): New member function,
1991 implementation from ada_watch_location_expression.
1992 * breakpoint.c (watch_command_1): Update call to
1993 watch_location_expression.
1994 * c-lang.c (c_watch_location_expression): Rename to
1995 language_defn::watch_location_expression.
1996 (c_language_data): Delete la_watch_location_expression
1997 initializer.
1998 (cplus_language_data): Likewise.
1999 (asm_language_data): Likewise.
2000 (minimal_language_data): Likewise.
2001 * c-lang.h (c_watch_location_expression): Delete declaration.
2002 * d-lang.c (d_language_data): Delete la_watch_location_expression
2003 initializer.
2004 * f-lang.c (f_language_data): Likewise.
2005 * go-lang.c (go_language_data): Likewise.
2006 * language.c (language_defn::watch_location_expression): Member
2007 function implementation from c_watch_location_expression.
2008 (unknown_language_data): Delete la_watch_location_expression
2009 initializer.
2010 (auto_language_data): Likewise.
2011 * language.h (language_data): Delete la_watch_location_expression
2012 field.
2013 (language_defn::watch_location_expression): Declare new member
2014 function.
2015 * m2-lang.c (m2_language_data): Delete
2016 la_watch_location_expression initializer.
2017 * objc-lang.c (objc_language_data): Likewise.
2018 * opencl-lang.c (opencl_language_data): Likewise.
2019 * p-lang.c (pascal_language_data): Likewise.
2020 * rust-lang.c (rust_watch_location_expression): Rename to
2021 rust_language::watch_location_expression.
2022 (rust_language_data): Delete la_watch_location_expression
2023 initializer.
2024 (rust_language::watch_location_expression): New member function,
2025 implementation from rust_watch_location_expression.
2026
7e56227d
AB
20272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2028
2029 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2030 ada_language::collect_symbol_completion_matches.
2031 (ada_language_data): Delete la_collect_symbol_completion_matches
2032 initializer.
2033 (ada_language::collect_symbol_completion_matches): New member
2034 function, implementation from
2035 ada_collect_symbol_completion_matches.
2036 * c-lang.c (c_language_data): Delete
2037 la_collect_symbol_completion_matches initializer.
2038 (cplus_language_data): Likewise.
2039 (asm_language_data): Likewise.
2040 (minimal_language_data): Likewise.
2041 * d-lang.c (d_language_data): Likewise.
2042 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2043 f_language::collect_symbol_completion_matches.
2044 (f_language_data): Delete la_collect_symbol_completion_matches
2045 initializer.
2046 (f_language::collect_symbol_completion_matches) New member
2047 function, implementation from f_collect_symbol_completion_matches.
2048 * go-lang.c (go_language_data): Delete
2049 la_collect_symbol_completion_matches initializer.
2050 * language.c (unknown_language_data): Likewise.
2051 (auto_language_data): Likewise.
2052 * language.h (language_data): Delete
2053 la_collect_symbol_completion_matches field.
2054 (language_defn::collect_symbol_completion_matches): New member
2055 function.
2056 * m2-lang.c (m2_language_data): Delete
2057 la_collect_symbol_completion_matches initializer.
2058 * objc-lang.c (objc_language_data): Likewise.
2059 * opencl-lang.c (opencl_language_data): Likewise.
2060 * p-lang.c (pascal_language_data): Likewise.
2061 * rust-lang.c (rust_language_data): Likewise.
2062 * symtab.c (default_collect_symbol_completion_matches): Delete.
2063 (collect_symbol_completion_matches): Update call to
2064 collect_symbol_completion_matches.
2065 (collect_symbol_completion_matches_type): Likewise.
2066 * symtab.h (default_collect_symbol_completion_matches): Delete
2067 declaration.
2068
53fc67f8
AB
20692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2072 (ada_language_data): Delete la_word_break_characters initializer.
2073 (ada_language::word_break_characters): New member function.
2074 * c-lang.c (c_language_data): Delete la_word_break_characters
2075 initializer.
2076 (cplus_language_data): Likewise.
2077 (asm_language_data): Likewise.
2078 (minimal_language_data): Likewise.
2079 * completer.c: Update global comment.
2080 (advance_to_expression_complete_word_point): Update call to
2081 word_break_characters.
2082 (complete_files_symbols): Likewise.
2083 (complete_line_internal_1): Likewise.
2084 (default_completer_handle_brkchars): Likewise.
2085 (skip_quoted_chars): Likewise.
2086 * d-lang.c (d_language_data): Delete la_word_break_characters
2087 initializer.
2088 * f-lang.c (f_word_break_characters): Delete.
2089 (f_language_data): Delete la_word_break_characters initializer.
2090 (f_language::word_break_characters): New member function.
2091 * go-lang.c (go_language_data): Delete la_word_break_characters
2092 initializer.
2093 * language.c (unknown_language_data): Likewise.
2094 (auto_language_data): Likewise.
2095 * language.h (default_word_break_characters): Move declaration to
2096 earlier in the file.
2097 (language_data): Delete la_word_break_characters field.
2098 (language_defn::word_break_characters): New member function.
2099 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2100 initializer.
2101 * objc-lang.c (objc_language_data): Likewise.
2102 * opencl-lang.c (opencl_language_data): Likewise.
2103 * p-lang.c (pascal_language_data): Likewise.
2104 * rust-lang.c (rust_language_data): Likewise.
2105
c9debfb9
AB
21062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2107
2108 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2109 (ada_language_data): Delete la_get_symbol_name_matcher
2110 initializer.
2111 (language_defn::get_symbol_name_matcher_inner): New member
2112 function.
2113 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2114 initializer.
2115 (cplus_language_data): Likewise.
2116 (cplus_language::get_symbol_name_matcher_inner): New member
2117 function.
2118 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2119 (minimal_language_data): Likewise.
2120 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2121 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2122 initializer.
2123 * dictionary.c (iter_match_first_hashed): Update call to
2124 get_symbol_name_matcher.
2125 (iter_match_next_hashed): Likewise.
2126 (iter_match_next_linear): Likewise.
2127 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2128 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2129 initializer.
2130 (f_language::get_symbol_name_matcher_inner): New member function.
2131 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2132 initializer.
2133 * language.c (default_symbol_name_matcher): Update header comment,
2134 make static.
2135 (language_defn::get_symbol_name_matcher): New definition.
2136 (language_defn::get_symbol_name_matcher_inner): Likewise.
2137 (get_symbol_name_matcher): Delete.
2138 (unknown_language_data): Delete la_get_symbol_name_matcher
2139 initializer.
2140 (auto_language_data): Likewise.
2141 * language.h (language_data): Delete la_get_symbol_name_matcher
2142 field.
2143 (language_defn::get_symbol_name_matcher): New member function.
2144 (language_defn::get_symbol_name_matcher_inner): Likewise.
2145 (default_symbol_name_matcher): Delete declaration.
2146 * linespec.c (find_methods): Update call to
2147 get_symbol_name_matcher.
2148 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2149 initializer.
2150 * minsyms.c (lookup_minimal_symbol): Update call to
2151 get_symbol_name_matcher.
2152 (iterate_over_minimal_symbols): Likewise.
2153 * objc-lang.c (objc_language_data): Delete
2154 la_get_symbol_name_matcher initializer.
2155 * opencl-lang.c (opencl_language_data): Likewise.
2156 * p-lang.c (pascal_language_data): Likewise.
2157 * psymtab.c (psymbol_name_matches): Update call to
2158 get_symbol_name_matcher.
2159 * rust-lang.c (rust_language_data): Delete
2160 la_get_symbol_name_matcher initializer.
2161 * symtab.c (symbol_matches_search_name): Update call to
2162 get_symbol_name_matcher.
2163 (compare_symbol_name): Likewise.
2164
9a49ad8c
AB
21652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * ada-lang.c (ada_language_data): Delete la_compute_program
2168 initializer.
2169 * c-lang.c (c_language_data): Likewise.
2170 (c_language::compute_program): New member function.
2171 (cplus_language_data): Delete la_compute_program initializer.
2172 (cplus_language::compute_program): New member function.
2173 (asm_language_data): Delete la_compute_program initializer.
2174 (minimal_language_data): Likewise.
2175 * c-lang.h (c_compute_program): Update comment.
2176 (cplus_compute_program): Likewise.
2177 * compile/compile-c-support.c (c_compute_program): Likewise.
2178 (cplus_compute_program): Likewise.
2179 * compile/compile.c (compile_to_object): Update call to
2180 la_compute_program.
2181 * d-lang.c (d_language_data): Delete la_compute_program
2182 initializer.
2183 * f-lang.c (f_language_data): Likewise.
2184 * go-lang.c (go_language_data): Likewise.
2185 * language.c (unknown_language_data): Likewise.
2186 (auto_language_data): Likewise.
2187 * language.h (language_data): Delete la_compute_program field.
2188 (language_defn::compute_program): New member function.
2189 * m2-lang.c (m2_language_data): Delete la_compute_program
2190 initializer.
2191 * objc-lang.c (objc_language_data): Likewise.
2192 * opencl-lang.c (opencl_language_data): Likewise.
2193 * p-lang.c (pascal_language_data): Likewise.
2194 * rust-lang.c (rust_language_data): Likewise.
2195
eff93b4d
AB
21962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * ada-lang.c (ada_language_data) Delete
2199 la_class_name_from_physname initializer.
2200 * c-lang.c (c_language_data): Likewise.
2201 (cplus_language_data): Likewise.
2202 (cplus_language::class_name_from_physname): New member function.
2203 (asm_language_data): Delete la_class_name_from_physname
2204 initializer.
2205 (minimal_language_data): Likewise.
2206 * d-lang.c (d_language_data): Likewise.
2207 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2208 method on language_defn class.
2209 (guess_full_die_structure_name): Likewise.
2210 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2211 initializer.
2212 * go-lang.c (go_language_data): Likewise.
2213 * language.c (language_class_name_from_physname): Delete.
2214 (unk_lang_class_name): Delete.
2215 (unknown_language_data): Delete la_class_name_from_physname
2216 initializer.
2217 (auto_language_data): Likewise.
2218 * language.h (language_data): Delete la_class_name_from_physname
2219 field.
2220 (language_defn::class_name_from_physname): New function.
2221 (language_class_name_from_physname): Delete declaration.
2222 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2223 initializer.
2224 * objc-lang.c (objc_language_data): Likewise.
2225 * opencl-lang.c (opencl_language_data): Likewise.
2226 * p-lang.c (pascal_language_data): Likewise.
2227 * rust-lang.c (rust_language_data): Likewise.
2228
de543742
TT
22292020-06-16 Tom Tromey <tom@tromey.com>
2230
2231 * tui/tui-data.h (STATUS_NAME): New macro.
2232 * tui/tui-layout.c (tui_remove_some_windows)
2233 (initialize_known_windows, tui_register_window)
2234 (tui_layout_split::remove_windows, initialize_layouts)
2235 (tui_new_layout_command): Don't use hard-coded window names.
2236
a350efd4
TT
22372020-06-16 Tom Tromey <tom@tromey.com>
2238
2239 PR tui/25348:
2240 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2241 tui_initialize_readline. Only run once. Call rl_initialize.
2242 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2243 tui_initialize_readline.
2244 * tui/tui-io.c (tui_setup_io): Call
2245 tui_ensure_readline_initialized.
2246 * tui/tui-interp.c (tui_interp::init): Update.
2247
39ec0490
TT
22482020-06-16 Tom Tromey <tom@tromey.com>
2249
2250 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2251 Also preserve the status window.
2252
d2d1ea20
TT
22532020-06-16 Tom Tromey <tom@tromey.com>
2254
2255 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2256 where m_window==nullptr.
2257
66920317
TT
22582020-06-15 Tom Tromey <tromey@adacore.com>
2259
2260 * windows-nat.c (windows_nat::handle_output_debug_string):
2261 Update.
2262 (windows_nat::handle_ms_vc_exception): Update.
2263 * target.h (target_read_string): Change API.
2264 * target.c (target_read_string): Change API.
2265 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2266 Update.
2267 * solib-frv.c (frv_current_sos): Update.
2268 * solib-dsbt.c (dsbt_current_sos): Update.
2269 * solib-darwin.c (darwin_current_sos): Update.
2270 * linux-thread-db.c (inferior_has_bug): Update.
2271 * expprint.c (print_subexp_standard): Update.
2272 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2273 (ada_exception_message_1): Update.
2274
a5d871dd
TT
22752020-06-15 Tom Tromey <tromey@adacore.com>
2276
2277 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2278
670e35fa
TT
22792020-06-15 Tom Tromey <tromey@adacore.com>
2280
2281 * valprint.c (read_string): Update comment.
2282 * target.c (MIN): Remove.
2283 (target_read_string): Rewrite.
2284
f5272a3b
TT
22852020-06-15 Tom Tromey <tromey@adacore.com>
2286
2287 * corefile.c (read_memory_string): Remove.
2288 * ada-valprint.c (ada_value_print_ptr): Update.
2289 * ada-lang.h (ada_tag_name): Change return type.
2290 * ada-lang.c (type_from_tag): Update.
2291 (ada_tag_name_from_tsd): Change return type. Use
2292 target_read_string.
2293 (ada_tag_name): Likewise.
2294 * gdbcore.h (read_memory_string): Don't declare.
2295
2c074f49
HD
22962020-06-14 Hannes Domani <ssbssa@yahoo.de>
2297
2298 * symtab.c (rbreak_command): Ignore Windows drive colon.
2299
6a17d503
SM
23002020-06-12 Simon Marchi <simon.marchi@efficios.com>
2301
2302 * NEWS: Mention removed GDBserver host support.
2303
453c733f
NC
23042020-06-12 Nelson Chu <nelson.chu@sifive.com>
2305
2306 * features/riscv/rebuild-csr-xml.sh: Updated.
2307
2b4e6a3f
TT
23082020-06-11 Tom Tromey <tom@tromey.com>
2309
2310 PR gdb/18318:
2311 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2312
4412332f
JG
23132020-06-09 Jonny Grant <jg@jguk.org>
23142020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2315
2316 * main.c (captured_main_1): Don't print new line after help.
2317 (print_gdb_help): add mailing list and IRC channel information
2318 to --help. Add new lines between items in the footer. Remove
2319 quotes around bug url.
2320
2f33032a
KS
23212020-06-11 Keith Seitz <keiths@redhat.com>
2322
2323 PR gdb/21356
2324 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2325 Resolve typedefs for type length calculations.
2326
7ab96794
TV
23272020-06-10 Tom de Vries <tdevries@suse.de>
2328
2329 PR ada/24713
2330 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2331 (write_psymbols): Enable .gdb_index for ada.
2332 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2333 ada.
2334
e5f3ece2
TV
23352020-06-10 Tom de Vries <tdevries@suse.de>
2336
2337 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2338 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2339 namei" instead of "const char *name" argument.
2340 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2341 dw2_symtab_iter_init.
2342
940da03e
SM
23432020-06-08 Simon Marchi <simon.marchi@efficios.com>
2344
2345 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2346 to use type::field and field::type instead.
2347
b6cdac4b
SM
23482020-06-08 Simon Marchi <simon.marchi@efficios.com>
2349
2350 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2351 to use field::type instead.
2352
5d14b6e5
SM
23532020-06-08 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * gdbtypes.h (struct field) <type, set_type>: New methods.
2356 Rename `type` field to...
2357 <m_type>: ... this. Change references throughout to use type or
2358 set_type methods.
2359 (FIELD_TYPE): Use field::type. Change call sites that modify
2360 the field's type to use field::set_type instead.
2361
3d967001
SM
23622020-06-08 Simon Marchi <simon.marchi@efficios.com>
2363
2364 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2365 to use type::index_type instead.
2366
262abc0d
SM
23672020-06-08 Simon Marchi <simon.marchi@efficios.com>
2368
2369 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2370 methods.
2371 (TYPE_INDEX_TYPE): Use type::index_type.
2372 * gdbtypes.c (create_array_type_with_stride): Likewise.
2373
82836c92
TT
23742020-06-07 Tom Tromey <tom@tromey.com>
2375
2376 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2377 parameter.
2378 (generic_value_print): Update.
2379
940dace9
AB
23802020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 Revert commit 982a38f60b0.
2383 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2384
982a38f6
AB
23852020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2386
2387 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2388 avoid use after free.
2389
82f06518
TV
23902020-06-05 Tom de Vries <tdevries@suse.de>
2391
2392 * NEWS: Fix typos.
2393
f8c41851
SM
23942020-06-04 Simon Marchi <simon.marchi@efficios.com>
2395
2396 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2397 the per_bfd object.
2398 (dwarf2_read_debug_names): Likewise.
2399 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2400 object when re-using a per_bfd object with an index.
2401
f9b5d5ea
TV
24022020-06-03 Tom de Vries <tdevries@suse.de>
2403
2404 PR symtab/26046
2405 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2406 children for C++.
2407 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2408 DW_TAG_subprogram.
2409
f6eee2d0
AB
24102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * ada-lang.c (ada_language_data): Delete skip_trampoline
2413 initializer.
2414 * c-lang.c (c_language_data): Likewise.
2415 (cplus_language_data): Likewise.
2416 (cplus_language::skip_trampoline): New member function.
2417 (asm_language_data): Delete skip_trampoline initializer.
2418 (minimal_language_data): Likewise.
2419 * d-lang.c (d_language_data): Likewise.
2420 * f-lang.c (f_language_data): Likewise.
2421 * go-lang.c (go_language_data): Likewise.
2422 * language.c (unk_lang_trampoline): Delete function.
2423 (skip_language_trampoline): Update.
2424 (unknown_language_data): Delete skip_trampoline initializer.
2425 (auto_language_data): Likewise.
2426 * language.h (language_data): Delete skip_trampoline field.
2427 (language_defn::skip_trampoline): New function.
2428 * m2-lang.c (m2_language_data): Delete skip_trampoline
2429 initializer.
2430 * objc-lang.c (objc_skip_trampoline): Delete function, move
2431 implementation to objc_language::skip_trampoline.
2432 (objc_language_data): Delete skip_trampoline initializer.
2433 (objc_language::skip_trampoline): New member function with
2434 implementation from objc_skip_trampoline.
2435 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2436 initializer.
2437 * p-lang.c (pascal_language_data): Likewise.
2438 * rust-lang.c (rust_language_data): Likewise.
2439
0a50df5d
AB
24402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2441
2442 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2443 (ada_language::demangle): New member function.
2444 * c-lang.c (c_language_data): Delete la_demangle initializer.
2445 (cplus_language_data): Delete la_demangle initializer.
2446 (cplus_language::demangle): New member function.
2447 (asm_language_data): Delete la_demangle initializer.
2448 (minimal_language_data): Delete la_demangle initializer.
2449 * d-lang.c (d_language_data): Delete la_demangle initializer.
2450 (d_language::demangle): New member function.
2451 * f-lang.c (f_language_data): Delete la_demangle initializer.
2452 (f_language::demangle): New member function.
2453 * go-lang.c (go_language_data): Delete la_demangle initializer.
2454 (go_language::demangle): New member function.
2455 * language.c (language_demangle): Update.
2456 (unk_lang_demangle): Delete.
2457 (unknown_language_data): Delete la_demangle initializer.
2458 (unknown_language::demangle): New member function.
2459 (auto_language_data): Delete la_demangle initializer.
2460 (auto_language::demangle): New member function.
2461 * language.h (language_data): Delete la_demangle field.
2462 (language_defn::demangle): New function.
2463 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2464 * objc-lang.c (objc_language_data): Delete la_demangle
2465 initializer.
2466 (objc_language::demangle): New member function.
2467 * opencl-lang.c (opencl_language_data): Delete la_demangle
2468 initializer.
2469 * p-lang.c (pascal_language_data): Likewise.
2470 * rust-lang.c (rust_language_data): Likewise.
2471 (rust_language::demangle): New member function.
2472
fbfb0a46
AB
24732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2474
2475 * ada-lang.c (ada_language_data): Delete la_print_type
2476 initializer.
2477 (ada_language::print_type): New member function.
2478 * c-lang.c (c_language_data): Delete la_print_type initializer.
2479 (c_language::print_type): New member function.
2480 (cplus_language_data): Delete la_print_type initializer.
2481 (cplus_language::print_type): New member function.
2482 (asm_language_data): Delete la_print_type initializer.
2483 (asm_language::print_type): New member function.
2484 (minimal_language_data): Delete la_print_type initializer.
2485 (minimal_language::print_type): New member function.
2486 * d-lang.c (d_language_data): Delete la_print_type initializer.
2487 (d_language::print_type): New member function.
2488 * f-lang.c (f_language_data): Delete la_print_type initializer.
2489 (f_language::print_type): New member function.
2490 * go-lang.c (go_language_data): Delete la_print_type initializer.
2491 (go_language::print_type): New member function.
2492 * language.c (unk_lang_print_type): Delete.
2493 (unknown_language_data): Delete la_print_type initializer.
2494 (unknown_language::print_type): New member function.
2495 (auto_language_data): Delete la_print_type initializer.
2496 (auto_language::print_type): New member function.
2497 * language.h (language_data): Delete la_print_type field.
2498 (language_defn::print_type): New function.
2499 (LA_PRINT_TYPE): Update.
2500 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2501 (m2_language::print_type): New member function.
2502 * objc-lang.c (objc_language_data): Delete la_print_type
2503 initializer.
2504 (objc_language::print_type): New member function.
2505 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2506 to opencl_language::print_type.
2507 (opencl_language_data): Delete la_print_type initializer.
2508 (opencl_language::print_type): New member function, implementation
2509 from opencl_print_type.
2510 * p-lang.c (pascal_language_data): Delete la_print_type
2511 initializer.
2512 (pascal_language::print_type): New member function.
2513 * rust-lang.c (rust_print_type): Delete, implementation moved to
2514 rust_language::print_type.
2515 (rust_language_data): Delete la_print_type initializer.
2516 (rust_language::print_type): New member function, implementation
2517 from rust_print_type.
2518
6f827019
AB
25192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2520
2521 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2522 implementation moves to...
2523 (ada_language::sniff_from_mangled_name): ...here. Update return
2524 type.
2525 (ada_language_data): Delete la_sniff_from_mangled_name
2526 initializer.
2527 * c-lang.c (c_language_data): Likewise.
2528 (cplus_language_data): Likewise.
2529 (cplus_language::sniff_from_mangled_name): New member function,
2530 implementation taken from gdb_sniff_from_mangled_name.
2531 (asm_language_data): Delete la_sniff_from_mangled_name
2532 initializer.
2533 (minimal_language_data): Likewise.
2534 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2535 implementation moves to cplus_language::sniff_from_mangled_name.
2536 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2537 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2538 moves to...
2539 (d_language::sniff_from_mangled_name): ...here.
2540 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2541 * f-lang.c (f_language_data): Likewise.
2542 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2543 moves to...
2544 (go_language::sniff_from_mangled_name): ...here.
2545 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2546 * language.c (language_sniff_from_mangled_name): Delete.
2547 (unknown_language_data): Delete la_sniff_from_mangled_name
2548 initializer.
2549 (auto_language_data): Likewise.
2550 * language.h (language_data): Delete la_sniff_from_mangled_name
2551 field.
2552 (language_defn::sniff_from_mangled_name): New function.
2553 (language_sniff_from_mangled_name): Delete declaration.
2554 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2555 field.
2556 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2557 implementation moves to...
2558 (objc_language::sniff_from_mangled_name): ...here.
2559 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2560 * opencl-lang.c (opencl_language_data): Likewise.
2561 * p-lang.c (pascal_language_data): Likewise.
2562 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2563 implementation moves to...
2564 (rust_language::sniff_from_mangled_name): ...here.
2565 (rust_language_data): Delete la_sniff_from_mangled_name
2566 initializer.
2567 * symtab.c (symbol_find_demangled_name): Call
2568 sniff_from_mangled_name member function.
2569
fb8006fd
AB
25702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2573 initializer.
2574 * c-lang.c (c_language_data): Likewise.
2575 (cplus_language_data): Likewise.
2576 (cplus_language::search_name_hash): New member function.
2577 (asm_language_data): Delete la_search_name_hash initializer.
2578 (minimal_language_data): Likewise.
2579 * d-lang.c (d_language_data): Likewise.
2580 * dictionary.c (default_search_name_hash): Rename to...
2581 (language_defn::search_name_hash): ...this.
2582 * f-lang.c (f_language_data): Likewise.
2583 (f_language::search_name_hash): New member function.
2584 * go-lang.c (go_language_data): Delete la_search_name_hash
2585 initializer.
2586 * language.c (unknown_language_data): Likewise.
2587 (auto_language_data): Likewise.
2588 * language.h (struct language_data): Delete la_search_name_hash
2589 field.
2590 (language_defn::search_name_hash): Declare new member function.
2591 (default_search_name_hash): Delete declaration.
2592 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2593 initializer.
2594 * objc-lang.c (objc_language_data): Likewise.
2595 * opencl-lang.c (opencl_language_data): Likewise.
2596 * p-lang.c (pascal_language_data): Likewise.
2597 * rust-lang.c (rust_language_data): Likewise.
2598 * symtab.c (search_name_hash): Update call.
2599
8e25bafe
AB
26002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2601
2602 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2603 initializer.
2604 * c-lang.c (class compile_instance): Declare.
2605 (c_language_data): Delete la_get_compile_instance initializer.
2606 (c_language::get_compile_instance): New member function.
2607 (cplus_language_data): Delete la_get_compile_instance initializer.
2608 (cplus_language::get_compile_instance): New member function.
2609 (asm_language_data): Delete la_get_compile_instance initializer.
2610 (minimal_language_data): Likewise.
2611 * c-lang.h (c_get_compile_context): Update comment.
2612 (cplus_get_compile_context): Update comment.
2613 * compile/compile.c (compile_to_object): Update calls, don't rely
2614 on function pointer being NULL.
2615 * d-lang.c (d_language_data): Delete la_get_compile_instance
2616 initializer.
2617 * f-lang.c (f_language_data): Likewise.
2618 * go-lang.c (go_language_data): Likewise.
2619 * language.c (unknown_language_data): Likewise.
2620 (auto_language_data): Likewise.
2621 * language.h (language_data): Delete la_get_compile_instance field.
2622 (language_defn::get_compile_instance): New member function.
2623 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2624 initializer.
2625 * objc-lang.c (objc_language_data): Likewise.
2626 * opencl-lang.c (opencl_language_data): Likewise.
2627 * p-lang.c (pascal_language_data): Likewise.
2628 * rust-lang.c (rust_language_data): Likewise.
2629
4009ee92
AB
26302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2631
2632 * ada-lang.c (ada_add_all_symbols): Update comment.
2633 (ada_iterate_over_symbols): Delete, move implementation to...
2634 (ada_language::iterate_over_symbols): ...here, a new member
2635 function, rewrite to use range based for loop.
2636 (ada_language_data): Delete la_iterate_over_symbols initializer.
2637 * c-lang.c (c_language_data): Likewise.
2638 (cplus_language_data): Likewise.
2639 (asm_language_data): Likewise.
2640 (minimal_language_data): Likewise.
2641 * d-lang.c (d_language_data): Likewise.
2642 * f-lang.c (f_language_data): Likewise.
2643 * go-lang.c (go_language_data): Likewise.
2644 * language.c (unknown_language_data): Likewise.
2645 (auto_language_data): Likewise.
2646 * language.h (language_data): Delete la_iterate_over_symbols field.
2647 (language_defn::iterate_over_symbols): New member function.
2648 (LA_ITERATE_OVER_SYMBOLS): Update.
2649 * linespec.c (iterate_over_all_matching_symtabs): Update.
2650 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2651 initializer.
2652 * objc-lang.c (objc_language_data): Likewise.
2653 * opencl-lang.c (opencl_language_data): Likewise.
2654 * p-lang.c (pascal_language_data): Likewise.
2655 * rust-lang.c (rust_language_data): Likewise.
2656
54f4ca46
AB
26572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * ada-lang.c (ada_language_data): Delete
2660 la_lookup_transparent_type initializer.
2661 * c-lang.c (c_language_data): Likewise.
2662 (cplus_language_data): Likewise.
2663 (cplus_language::lookup_transparent_type): New member function.
2664 (asm_language_data): Delete la_lookup_transparent_type
2665 initializer.
2666 (minimal_language_data): Likewise.
2667 * d-lang.c (d_language_data): Likewise.
2668 * f-lang.c (f_language_data): Likewise.
2669 * go-lang.c (go_language_data): Likewise.
2670 * language.c (unknown_language_data): Likewise.
2671 (auto_language_data): Likewise.
2672 * language.h (struct language_data): Delete
2673 la_lookup_transparent_type field.
2674 (language_defn::lookup_transparent_type): New member function.
2675 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2676 initializer.
2677 * objc-lang.c (objc_language_data): Likewise.
2678 * opencl-lang.c (opencl_language_data): Likewise.
2679 * p-lang.c (pascal_language_data): Likewise.
2680 * rust-lang.c (rust_language_data): Likewise.
2681 * symtab.c (symbol_matches_domain): Update call.
2682
1fb314aa
AB
26832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2684
2685 * ada-lang.c (ada_language_arch_info): Delete function, move
2686 implementation to...
2687 (ada_language::language_arch_info): ...here, a new member
2688 function.
2689 (ada_language_data): Delete la_language_arch_info.
2690 * c-lang.c (c_language_data): Likewise.
2691 (c_language::language_arch_info): New member function.
2692 (cplus_language_arch_info): Delete function, move
2693 implementation to...
2694 (cplus_language::language_arch_info): ...here, a new member
2695 function.
2696 (cplus_language_data): Delete la_language_arch_info.
2697 (asm_language_data): Likewise.
2698 (asm_language::language_arch_info): New member function.
2699 (minimal_language_data): Delete la_language_arch_info.
2700 (minimal_language::language_arch_info): New member function.
2701 * d-lang.c (d_language_arch_info): Delete function, move
2702 implementation to...
2703 (d_language::language_arch_info): ...here, a new member
2704 function.
2705 (d_language_data): Delete la_language_arch_info.
2706 * f-lang.c (f_language_arch_info): Delete function, move
2707 implementation to...
2708 (f_language::language_arch_info): ...here, a new member
2709 function.
2710 (f_language_data): Delete la_language_arch_info.
2711 * go-lang.c (go_language_arch_info): Delete function, move
2712 implementation to...
2713 (go_language::language_arch_info): ...here, a new member
2714 function.
2715 (go_language_data): Delete la_language_arch_info.
2716 * language.c (unknown_language_data): Likewise.
2717 (unknown_language::language_arch_info): New member function.
2718 (auto_language_data): Delete la_language_arch_info.
2719 (auto_language::language_arch_info): New member function.
2720 (language_gdbarch_post_init): Update call to
2721 la_language_arch_info.
2722 * language.h (language_data): Delete la_language_arch_info
2723 function pointer.
2724 (language_defn::language_arch_info): New function.
2725 * m2-lang.c (m2_language_arch_info): Delete function, move
2726 implementation to...
2727 (m2_language::language_arch_info): ...here, a new member
2728 function.
2729 (m2_language_data): Delete la_language_arch_info.
2730 * objc-lang.c (objc_language_arch_info): Delete function, move
2731 implementation to...
2732 (objc_language::language_arch_info): ...here, a new member
2733 function.
2734 (objc_language_data): Delete la_language_arch_info.
2735 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2736 implementation to...
2737 (opencl_language::language_arch_info): ...here, a new member
2738 function.
2739 (opencl_language_data): Delete la_language_arch_info.
2740 * p-lang.c (pascal_language_arch_info): Delete function, move
2741 implementation to...
2742 (pascal_language::language_arch_info): ...here, a new member
2743 function.
2744 (pascal_language_data): Delete la_language_arch_info.
2745 * rust-lang.c (rust_language_arch_info): Delete function, move
2746 implementation to...
2747 (rust_language::language_arch_info): ...here, a new member
2748 function.
2749 (rust_language_data): Delete la_language_arch_info.
2750
48448202
AB
27512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2752
2753 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2754 initializer.
2755 * c-lang.c (c_language_data): Likewise.
2756 (cplus_language_data): Likewise.
2757 (cplus_language::pass_by_reference_info): New method.
2758 (asm_language_data): Delete la_pass_by_reference initializer.
2759 (minimal_language_data): Likewise.
2760 * cp-abi.c (cp_pass_by_reference): Remove use of
2761 default_pass_by_reference.
2762 * d-lang.c (d_language_data): Likewise.
2763 * f-lang.c (f_language_data): Likewise.
2764 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2765 default_pass_by_reference.
2766 * go-lang.c (go_language_data): Likewise.
2767 * language.c (language_pass_by_reference): Update.
2768 (default_pass_by_reference): Delete.
2769 (unknown_language_data): Delete la_pass_by_reference
2770 initializer.
2771 (auto_language_data): Likewise.
2772 * language.h (struct language_data): Delete la_pass_by_reference
2773 field.
2774 (language_defn::pass_by_reference_info): New member function.
2775 (default_pass_by_reference): Delete declaration.
2776 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2777 initializer.
2778 * objc-lang.c (objc_language_data): Likewise.
2779 * opencl-lang.c (opencl_language_data): Likewise.
2780 * p-lang.c (pascal_language_data): Likewise.
2781 * rust-lang.c (rust_language_data): Likewise.
2782
15e5fd35
AB
27832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2784
2785 * ada-lang.c (ada_read_var_value): Delete function, move
2786 implementation to...
2787 (ada_language::read_var_value): ...here.
2788 (ada_language_data): Delete la_read_var_value initializer.
2789 * c-lang.c (c_language_data): Likewise.
2790 (cplus_language_data): Likewise.
2791 (minimal_language_data): Likewise.
2792 * d-lang.c (d_language_data): Likewise.
2793 * f-lang.c (f_language_data): Likewise.
2794 * findvar.c (default_read_var_value): Rename to...
2795 (language_defn::read_var_value): ...this.
2796 * findvar.c (read_var_value): Update header comment, and change to
2797 call member function instead of function pointer.
2798 * go-lang.c (go_language_data): Likewise.
2799 * language.c (unknown_language_data): Delete la_read_var_value
2800 initializer.
2801 (auto_language_data): Likewise.
2802 * language.h (struct language_data): Delete la_read_var_value
2803 field.
2804 (language_defn::read_var_value): New member function.
2805 (default_read_var_value): Delete declaration.
2806 * m2-lang.c (m2_language_data): Delete la_read_var_value
2807 initializer.
2808 * objc-lang.c (objc_language_data): Likewise.
2809 * opencl-lang.c (opencl_language_data): Likewise.
2810 * p-lang.c (pascal_language_data): Likewise.
2811 * rust-lang.c (rust_language_data): Likewise.
2812 * value.h (default_read_var_value): Delete declaration.
2813
5bd40f2a
AB
28142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2815
2816 * ada-lang.c (ada_print_array_index): Delete function, move
2817 implementation to...
2818 (ada_language::print_array_index): ...here.
2819 (ada_language_data): Delete la_print_array_index initializer.
2820 * c-lang.c (c_language_data): Likewise.
2821 (cplus_language_data): Likewise.
2822 (minimal_language_data): Likewise.
2823 * d-lang.c (d_language_data): Likewise.
2824 * f-lang.c (f_language_data): Likewise.
2825 * go-lang.c (go_language_data): Likewise.
2826 * language.c (default_print_array_index): Delete function, move
2827 implementation to...
2828 (language_defn::print_array_index): ...here.
2829 (unknown_language_data): Delete la_print_array_index initializer.
2830 (auto_language_data): Likewise.
2831 * language.h (struct language_data): Delete la_print_array_index
2832 field.
2833 (language_defn::print_array_index): New member function.
2834 (LA_PRINT_ARRAY_INDEX): Update.
2835 (default_print_array_index): Delete declaration.
2836 * m2-lang.c (m2_language_data): Delete la_print_array_index
2837 initializer.
2838 * objc-lang.c (objc_language_data): Likewise.
2839 * opencl-lang.c (opencl_language_data): Likewise.
2840 * p-lang.c (pascal_language_data): Likewise.
2841 * rust-lang.c (rust_language_data): Likewise.
2842
0874fd07
AB
28432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2844
2845 * gdb/ada-lang.c (ada_language_defn): Convert to...
2846 (ada_language_data): ...this.
2847 (class ada_language): New class.
2848 (ada_language_defn): New static global.
2849 * gdb/c-lang.c (c_language_defn): Convert to...
2850 (c_language_data): ...this.
2851 (class c_language): New class.
2852 (c_language_defn): New static global.
2853 (cplus_language_defn): Convert to...
2854 (cplus_language_data): ...this.
2855 (class cplus_language): New class.
2856 (cplus_language_defn): New static global.
2857 (asm_language_defn): Convert to...
2858 (asm_language_data): ...this.
2859 (class asm_language): New class.
2860 (asm_language_defn): New static global.
2861 (minimal_language_defn): Convert to...
2862 (minimal_language_data): ...this.
2863 (class minimal_language): New class.
2864 (minimal_language_defn): New static global.
2865 * gdb/d-lang.c (d_language_defn): Convert to...
2866 (d_language_data): ...this.
2867 (class d_language): New class.
2868 (d_language_defn): New static global.
2869 * gdb/f-lang.c (f_language_defn): Convert to...
2870 (f_language_data): ...this.
2871 (class f_language): New class.
2872 (f_language_defn): New static global.
2873 * gdb/go-lang.c (go_language_defn): Convert to...
2874 (go_language_data): ...this.
2875 (class go_language): New class.
2876 (go_language_defn): New static global.
2877 * gdb/language.c (unknown_language_defn): Remove declaration.
2878 (current_language): Initialize to nullptr, real initialization is
2879 moved to _initialize_language.
2880 (languages): Delete global.
2881 (language_defn::languages): Define.
2882 (set_language_command): Use language_defn::languages.
2883 (set_language): Likewise.
2884 (range_error): Likewise.
2885 (language_enum): Likewise.
2886 (language_def): Likewise.
2887 (add_set_language_command): Use language_def::languages for the
2888 language list, and language_def to lookup language pointers.
2889 (skip_language_trampoline): Use language_defn::languages.
2890 (unknown_language_defn): Convert to...
2891 (unknown_language_data): ...this.
2892 (class unknown_language): New class.
2893 (unknown_language_defn): New static global.
2894 (auto_language_defn): Convert to...
2895 (auto_language_data): ...this.
2896 (class auto_language): New class.
2897 (auto_language_defn): New static global.
2898 (language_gdbarch_post_init): Use language_defn::languages.
2899 (_initialize_language): Initialize current_language.
2900 * gdb/language.h (struct language_defn): Rename to...
2901 (struct language_data): ...this.
2902 (struct language_defn): New.
2903 (auto_language_defn): Delete.
2904 (unknown_language_defn): Delete.
2905 (minimal_language_defn): Delete.
2906 (ada_language_defn): Delete.
2907 (asm_language_defn): Delete.
2908 (c_language_defn): Delete.
2909 (cplus_language_defn): Delete.
2910 (d_language_defn): Delete.
2911 (f_language_defn): Delete.
2912 (go_language_defn): Delete.
2913 (m2_language_defn): Delete.
2914 (objc_language_defn): Delete.
2915 (opencl_language_defn): Delete.
2916 (pascal_language_defn): Delete.
2917 (rust_language_defn): Delete.
2918 * gdb/m2-lang.c (m2_language_defn): Convert to...
2919 (m2_language_data): ...this.
2920 (class m2_language): New class.
2921 (m2_language_defn): New static global.
2922 * gdb/objc-lang.c (objc_language_defn): Convert to...
2923 (objc_language_data): ...this.
2924 (class objc_language): New class.
2925 (objc_language_defn): New static global.
2926 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2927 (opencl_language_data): ...this.
2928 (class opencl_language): New class.
2929 (opencl_language_defn): New static global.
2930 * gdb/p-lang.c (pascal_language_defn): Convert to...
2931 (pascal_language_data): ...this.
2932 (class pascal_language): New class.
2933 (pascal_language_defn): New static global.
2934 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2935 language pointer, update comment format.
2936 * gdb/rust-lang.c (rust_language_defn): Convert to...
2937 (rust_language_data): ...this.
2938 (class rust_language): New class.
2939 (rust_language_defn): New static global.
2940
1313c56e
AB
29412020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2942
2943 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2944 member variable.
2945 <m_stmt_at_address>: New member variable.
2946 (lnp_state_machine::record_line): Don't record some lines, update
2947 tracking of is_stmt at the same address.
2948 (lnp_state_machine::lnp_state_machine): Initialise new member
2949 variables.
2950
b7ed9f3d
ST
29512020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2952
2953 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2954 "-include gnu-nat-mig.h".
2955 * gnu-nat-mig.h: New file.
2956 * gnu-nat.c: Include "gnu-nat-mig.h".
2957 (exc_server, msg_reply_server, notify_server,
2958 process_reply_server): Remove declarations.
2959
14a8ad62
ST
29602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2961
2962 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2963 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2964 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2965 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2966 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2967 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2968 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2969 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2970 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2971 to gnu_nat_target class.
2972 * gnu-nat.c: Likewise.
2973 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2974 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2975 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2976 object.
2977 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2978 instead of `gnu_target'.
2979
0af5e106
ST
29802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2981
2982 * i386-gnu-tdep.c: Include "gdbcore.h"
2983 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2984 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2985 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2986 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2987 i386_gnu_sigcontext_addr): New functions
2988 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2989 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2990 tdep.
2991
078f2fc9
ST
29922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2993
2994 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2995 before fork_inferior call. Avoid calling it if target_is_pushed returns
2996 true.
2997
53dff92c
ST
29982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2999
3000 * gnu-nat.h (gnu_target): New variable declaration.
3001 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3002 gnu_target.
3003 * gnu-nat.c (gnu_target): New variable.
3004 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3005 add_thread_silent, and add_thread calls.
3006 (gnu_nat_target::create_inferior): Pass gnu_target to
3007 add_thread_silent, thread_change_ptid call.
3008 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3009 call.
3010
5a8b8627
ST
30112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3012
3013 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3014 (gnu_nat_target::find_memory_regions): Remove unused
3015 `old_address' variable.
3016
366f550a
ST
30172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3018
3019 * gnu-nat.c: Include "gdbarch.h".
3020
f14871bf
ST
30212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3022
3023 * reply_mig_hack.awk (Error return): Cast function through
3024 void *, to bypass compiler function call check.
3025
c6887cfb
ST
30262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3027
3028 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3029 $(srcdir)/reply_mig_hack.awk.
3030
6930bffe
ST
30312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3032
3033 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3034
112c22ed
JG
30352020-05-30 Jonny Grant <jg@jguk.org>
3036
3037 * configure.ac (ACX_BUGURL): change bug URL to https.
3038
f68f85b5
PA
30392020-05-30 Pedro Alves <palves@redhat.com>
3040
3041 * cp-support.c (replace_typedefs_template): New.
3042 (replace_typedefs_qualified_name): Handle
3043 DEMANGLE_COMPONENT_TEMPLATE.
3044
976ca316
SM
30452020-05-29 Simon Marchi <simon.marchi@efficios.com>
3046
3047 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3048 dwarf2/index-cache.h, dwarf2/index-write.c,
3049 dwarf2/index-write.h, dwarf2/line-header.c,
3050 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3051 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3052 variables and fields from `dwarf2_per_objfile` to just
3053 `per_objfile` throughout.
3054
989ade05
SM
30552020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3056
3057 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3058 <push_dwarf_reg_entry_value>: Add comment.
3059
c47bae85
KB
30602020-05-28 Kevin Buettner <kevinb@redhat.com>
3061 Keith Seitz <keiths@redhat.com>
3062
3063 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3064 instead of PyEval_ReleaseLock.
3065 (class gdbpy_gil): Move to earlier in file.
3066 (finalize_python): Set gdb_python_initialized.
3067 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3068 when not initialized.
3069
44486dcf
SM
30702020-05-28 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3073 <push_dwarf_reg_entry_value>: Remove assert. Override
3074 per_objfile with caller_per_objfile.
3075
f030440d
TV
30762020-05-28 Tom de Vries <tdevries@suse.de>
3077
3078 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3079 PR gold/15646 workaround to symbol kind "type".
3080
f0fbb768
TT
30812020-05-27 Tom Tromey <tromey@adacore.com>
3082
3083 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3084
af0b2a3e
TT
30852020-05-27 Tom Tromey <tromey@adacore.com>
3086
3087 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3088 Use htab_find_with_hash.
3089 <add_abbrev>: Remove "abbrev_number" parameter.
3090 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3091 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3092 (hash_abbrev): Add comment.
3093 (abbrev_table::lookup_abbrev): Move to header file.
3094 (abbrev_table::read): Update.
3095
7d00ffec
TT
30962020-05-27 Tom Tromey <tromey@adacore.com>
3097
3098 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3099 method.
3100 <canonical_name>: New member.
3101 <raw_name>: Rename from "name".
3102 (partial_die_info): Initialize canonical_name.
3103 (scan_partial_symbols): Check raw_name.
3104 (partial_die_parent_scope, partial_die_full_name)
3105 (add_partial_symbol, add_partial_subprogram)
3106 (add_partial_enumeration, load_partial_dies): Use "name" method.
3107 (partial_die_info::name): New method.
3108 (partial_die_info::read, guess_partial_die_structure_name)
3109 (partial_die_info::fixup): Update.
3110
697bba18
TT
31112020-05-27 Tom Tromey <tromey@adacore.com>
3112
3113 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3114 <get_ref_die_offset>: Inline.
3115 <get_ref_die_offset_complaint>: New method.
3116 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3117 (attribute::get_ref_die_offset_complaint): Rename from
3118 get_ref_die_offset. Just issue complaint.
3119
c17ace43
HD
31202020-05-27 Hannes Domani <ssbssa@yahoo.de>
3121
3122 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3123
96445f0b
HD
31242020-05-27 Hannes Domani <ssbssa@yahoo.de>
3125
3126 * exec.c (exec_file_attach): Use errno value of first openp failure.
3127
ac637ec3
HD
31282020-05-27 Hannes Domani <ssbssa@yahoo.de>
3129
3130 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3131 Don't close thread handle.
3132
17ee85fc
TT
31332020-05-27 Tom Tromey <tom@tromey.com>
3134 Simon Marchi <simon.marchi@efficios.com>
3135
3136 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3137 shared_ptr.
3138 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3139 member.
3140 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3141 dwarf2_per_bfd_objfile_data_key>: New globals.
3142 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3143 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3144 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3145 shared.
3146 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3147 short-circuit when sharing.
3148 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3149 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3150
39b16f87
SM
31512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3152
3153 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3154 to...
3155 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3156 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3157
fcf23d5b
SM
31582020-05-27 Simon Marchi <simon.marchi@efficios.com>
3159
3160 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3161 build_name_components, find_name_components_bounds>:
3162 Add per_objfile parameter.
3163 (struct mapped_index) <symbol_name_at>: Likewise.
3164 (struct mapped_debug_names): Remove constructor.
3165 <dwarf2_per_objfile>: Remove field.
3166 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3167 (mapped_index_base::find_name_components_bounds,
3168 mapped_index_base::build_name_components,
3169 dw2_expand_symtabs_matching_symbol): Likewise.
3170 (class mock_mapped_index) <symbol_name_at>: Likewise.
3171 (check_match): Likewise.
3172 (check_find_bounds_finds): Likewise.
3173 (test_mapped_index_find_name_component_bounds): Update.
3174 (CHECK_MATCH): Update.
3175 (dw2_expand_symtabs_matching): Update.
3176 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3177 per_objfile parameter.
3178 <find_vec_in_debug_names>: Likewise.
3179 <m_per_objfile>: New field.
3180 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3181 parameter.
3182 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3183 (dw2_debug_names_iterator::next): Update.
3184 (dw2_debug_names_lookup_symbol): Update.
3185 (dw2_debug_names_expand_symtabs_for_function): Update.
3186 (dw2_debug_names_map_matching_symbols): Update.
3187 (dw2_debug_names_expand_symtabs_matching): Update.
3188 (dwarf2_read_debug_names): Update.
3189
7188ed02
SM
31902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3193 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3194 move to dwarf2_per_objfile.
3195 <read_in_chain>: Remove.
3196 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3197 remove_all_cus, age_comp_units>: New methods.
3198 <m_dwarf2_cus>: New member.
3199 (struct dwarf2_per_cu_data) <cu>: Remove.
3200 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3201 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3202 moved to methods of dwarf2_per_objfile.
3203 (dwarf2_clear_marks): Remove.
3204 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3205 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3206 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3207 (dwarf2_per_objfile::remove_all_cus): New.
3208 (class free_cached_comp_units) <~free_cached_comp_units>:
3209 Update.
3210 (load_cu): Update.
3211 (dw2_do_instantiate_symtab): Adjust.
3212 (fill_in_sig_entry_from_dwo_entry): Adjust.
3213 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3214 (cutu_reader::cutu_reader): Likewise.
3215 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3216 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3217 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3218 and dwarf2_per_objfile::age_comp_units.
3219 (load_partial_comp_unit): Update.
3220 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3221 (process_queue): Likewise.
3222 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3223 backlink.
3224 (dwarf2_read_addr_index): Likewise.
3225 (follow_die_offset): Likewise.
3226 (dwarf2_fetch_die_loc_sect_off): Likewise.
3227 (dwarf2_fetch_constant_bytes): Likewise.
3228 (dwarf2_fetch_die_type_sect_off): Likewise.
3229 (follow_die_sig_1): Likewise.
3230 (load_full_type_unit): Likewise.
3231 (read_signatured_type): Likewise.
3232 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3233 (dwarf2_cu::~dwarf2_cu): Remove.
3234 (dwarf2_per_objfile::get_cu): New.
3235 (dwarf2_per_objfile::set_cu): New.
3236 (age_cached_comp_units): Rename to...
3237 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3238 to std::unordered_map.
3239 (free_one_cached_comp_unit): Rename to...
3240 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3241 to std::unordered_map.
3242 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3243 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3244 a dwarf2_per_objfile in data.
3245 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3246 (dwarf2_clear_marks): Remove.
3247
2e671100
SM
32482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3249
3250 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3251 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3252 (init_tu_and_read_dwo_dies): Likewise.
3253 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3254 (cutu_reader::cutu_reader): Likewise.
3255 (load_partial_comp_unit): Likewise.
3256 (process_psymtab_comp_unit): Update.
3257 (build_type_psymtabs_1): Update.
3258 (process_skeletonless_type_unit): Update.
3259 (load_full_comp_unit): Update.
3260 (find_partial_die): Update.
3261 (dwarf2_read_addr_index): Update.
3262 (read_signatured_type): Update.
3263
2e6a9f79
SM
32642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3265
3266 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3267 m_header_read_in>: New fields.
3268 <get_header>: New method.
3269 * dwarf2/read.c (per_cu_header_read_in): Remove.
3270 (dwarf2_per_cu_data::get_header): New.
3271 (dwarf2_per_cu_data::addr_size): Update.
3272 (dwarf2_per_cu_data::offset_size): Update.
3273 (dwarf2_per_cu_data::ref_addr_size): Update.
3274
1b555f17
SM
32752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3276
3277 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3278 (dw2_do_instantiate_symtab): Update.
3279 (queue_and_load_all_dwo_tus): Change parameter from
3280 dwarf2_per_cu_data to dwarf2_cu.
3281 (dwarf2_fetch_die_loc_sect_off): Update.
3282 (dwarf2_fetch_constant_bytes): Update.
3283 (dwarf2_fetch_die_type_sect_off): Update.
3284
8fc0b21d
SM
32852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3286
3287 * dwarf2/read.c (process_full_comp_unit,
3288 process_full_type_unit): Remove per_cu, per_objfile paramters.
3289 Add dwarf2_cu parameter.
3290 (process_queue): Update.
3291
168c9250
SM
32922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3293
3294 * dwarf2/read.c (create_cu_from_index_list): Replace
3295 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3296 (create_cus_from_index_list): Likewise.
3297 (create_cus_from_index): Likewise.
3298 (create_signatured_type_table_from_index): Likewise.
3299 (create_cus_from_debug_names_list): Likewise.
3300 (create_cus_from_debug_names): Likewise.
3301 (dwarf2_read_gdb_index): Update.
3302 (dwarf2_read_debug_names): Update.
3303
e286671b
TT
33042020-05-27 Tom Tromey <tom@tromey.com>
3305 Simon Marchi <simon.marchi@efficios.com>
3306
3307 * dwarf2/read.h (struct dwarf2_per_objfile)
3308 <get_type_for_signatured_type, set_type_for_signatured_type>:
3309 New methods.
3310 <m_type_map>: New member.
3311 (struct signatured_type) <type>: Remove.
3312 * dwarf2/read.c
3313 (dwarf2_per_objfile::get_type_for_signatured_type,
3314 dwarf2_per_objfile::set_type_for_signatured_type): New.
3315 (get_signatured_type): Use new methods.
3316
8adb8487
TT
33172020-05-27 Tom Tromey <tom@tromey.com>
3318 Simon Marchi <simon.marchi@efficios.com>
3319
3320 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3321 (struct dwarf2_per_objfile) <type_units>: New member.
3322 <get_type_unit_group_unshareable>: New method.
3323 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3324 num_symtabs, symtabs>: Remove; move to
3325 type_unit_group_unshareable.
3326 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3327 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3328 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3329
127bbf4b
SM
33302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3331
3332 * dwarf2/read.h (struct dwarf2_per_cu_data):
3333 <dwarf2_per_objfile>: Remove.
3334 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3335 dwarf2_per_objfile.
3336 (create_signatured_type_table_from_index): Likewise.
3337 (create_signatured_type_table_from_debug_names): Likewise.
3338 (create_debug_type_hash_table): Likewise.
3339 (fill_in_sig_entry_from_dwo_entry): Likewise.
3340 (create_type_unit_group): Likewise.
3341 (read_comp_units_from_section): Likewise.
3342 (create_cus_hash_table): Likewise.
3343
f6e649dd
SM
33442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3345
3346 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3347 dwarf2_per_cu_data::dwarf2_per_objfile.
3348 (compute_compunit_symtab_includes): Likewise.
3349 (dwarf2_cu::start_symtab): Likewise.
3350
aa66c379
SM
33512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3352
3353 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3354 parameter.
3355 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3356 (read_namespace_alias): Update.
3357 (lookup_die_type): Update.
3358 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3359 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3360 Update.
3361 (disassemble_dwarf_expression): Update.
3362
120ce1b5
SM
33632020-05-27 Simon Marchi <simon.marchi@efficios.com>
3364
3365 * dwarf2/read.h (struct dwarf2_queue_item): Add
3366 dwarf2_per_objfile parameter, assign new parameter.
3367 <per_objfile>: New field.
3368 * dwarf2/read.c (free_one_cached_comp_unit): Add
3369 dwarf2_per_objfile parameter.
3370 (queue_comp_unit): Likewise.
3371 (dw2_do_instantiate_symtab): Update.
3372 (process_psymtab_comp_unit): Update.
3373 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3374 (process_imported_unit_die): Update.
3375 (queue_and_load_dwo_tu): Update.
3376 (follow_die_offset): Update.
3377 (follow_die_sig_1): Update.
3378
9f47c707
SM
33792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3380
3381 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3382 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3383 (read_call_site_scope): Assign per_objfile.
3384 (dwarf2_per_cu_data::objfile): Remove.
3385 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3386 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3387 dwarf2_per_objfile parameter.
3388 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3389 dwarf2_per_objfile parameter.
3390 (dwarf_expr_reg_to_entry_parameter): Add output
3391 dwarf2_per_objfile parameter.
3392 (locexpr_get_frame_base): Update.
3393 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3394 <push_dwarf_reg_entry_value>: Update.
3395 <call_site_to_target_addr>: Update.
3396 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3397 parameter.
3398 (value_of_dwarf_reg_entry): Update.
3399 (rw_pieced_value): Update.
3400 (indirect_synthetic_pointer): Update.
3401 (dwarf2_evaluate_property): Update.
3402 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3403 parameter.
3404 (locexpr_read_variable): Update.
3405 (locexpr_get_symbol_read_needs): Update.
3406 (loclist_read_variable): Update.
3407
14095eb3
SM
34082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3409
3410 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3411 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3412 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3413 parameter.
3414 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3415 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3416 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3417 parameter.
3418 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3419 sect_variable_value): Add dwarf2_per_objfile parameter.
3420 (class dwarf_evaluate_loc_desc) <dwarf_call,
3421 dwarf_variable_value>: Update.
3422 (fetch_const_value_from_synthetic_pointer): Add
3423 dwarf2_per_objfile parameter.
3424 (fetch_const_value_from_synthetic_pointer): Update.
3425 (coerced_pieced_ref): Update.
3426 (class symbol_needs_eval_context) <dwarf_call,
3427 dwarf_variable_value>: Update.
3428 (dwarf2_compile_expr_to_ax): Update.
3429
3c3cd3d4
SM
34302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3433 parameter.
3434 (dwarf2_evaluate_loc_desc_full): Update.
3435
82ca3f51
SM
34362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3439 parameter.
3440 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3441 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3442 dwarf2_per_objfile parameter.
3443 (decode_debug_loc_dwo_addresses): Likewise.
3444 (dwarf2_find_location_expression): Update.
3445 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3446 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3447 parameter.
3448 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3449 parameter.
3450 (locexpr_describe_location_1): Likewise.
3451 (locexpr_describe_location): Update.
3452
4b167ea1
SM
34532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3454
3455 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3456 Remove.
3457 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3458 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3459 (dwarf2_compile_property_to_c): Update.
3460 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3461 use text offset from objfile.
3462 (locexpr_tracepoint_var_ref): Update.
3463 (locexpr_generate_c_location): Update.
3464 (loclist_describe_location): Update.
3465 (loclist_tracepoint_var_ref): Update.
3466 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3467 dwarf2_per_objfile parameter.
3468 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3469 use text offset from objfile.
3470 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3471
89b07335
SM
34722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * dwarf2/expr.h (struct dwarf_expr_context)
3475 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3476 <offset>: Remove.
3477 <per_objfile>: New member.
3478 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3479 dwarf2_per_objfile parameter. Don't set offset, set
3480 per_objfile.
3481 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3482 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3483 a dwarf2_per_objfile object instead of an offset.
3484 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3485 constructor.
3486 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3487 to dwarf2_expr_executor constructor. Don't set offset.
3488 (dwarf2_fetch_cfa_info): Update.
3489 (struct dwarf2_frame_cache) <text_offset>: Remove.
3490 <per_objfile>: New field.
3491 (dwarf2_frame_cache): Update.
3492 (dwarf2_frame_prev_register): Update.
3493 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3494 <dwarf_evaluate_loc_desc>: Add constructor.
3495 (dwarf2_evaluate_loc_desc_full): Update.
3496 (dwarf2_locexpr_baton_eval): Update.
3497 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3498 Add constructor.
3499 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3500
293e7e51
SM
35012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3504 addr_sized_int_type>: Move to dwarf2_cu.
3505 <int_type>: Move to dwarf2_per_objfile.
3506 (struct dwarf2_per_objfile) <int_type>: Move here.
3507 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3508 addr_sized_int_type>: Move here.
3509 (read_func_scope): Update.
3510 (read_array_type): Update.
3511 (read_tag_string_type): Update.
3512 (attr_to_dynamic_prop): Update.
3513 (dwarf2_per_cu_data::int_type): Rename to...
3514 (dwarf2_per_objfile::int_type): ... this.
3515 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3516 (dwarf2_cu::addr_sized_int_type): ... this.
3517 (read_subrange_type): Update.
3518 (dwarf2_per_cu_data::addr_type): Rename to...
3519 (dwarf2_cu::addr_type): ... this.
3520 (set_die_type): Update.
3521
64874a40
SM
35222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3523
3524 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3525 data through per_cu->cu.
3526
4ab09049
SM
35272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3530 dwarf2_per_cu_data parameter fo dwarf2_cu.
3531 (lookup_dwo_type_unit): Likewise.
3532 (read_cutu_die_from_dwo): Likewise.
3533 (lookup_dwo_unit): Likewise.
3534 (open_and_init_dwo_file): Likewise.
3535 (lookup_dwo_cutu): Likewise.
3536 (lookup_dwo_comp_unit): Likewise.
3537 (lookup_dwo_type_unit): Likewise.
3538 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3539 (cutu_reader::cutu_reader): Update.
3540
47b14e86
SM
35412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3542
3543 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3544 parameter.
3545 (process_full_type_unit): Likewise.
3546 (process_queue): Update.
3547
43182c09
SM
35482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3549
3550 * dwarf2/read.c (recursively_compute_inclusions): Add
3551 dwarf2_per_objfile parameter.
3552 (compute_compunit_symtab_includes): Likewise.
3553 (process_cu_includes): Update.
3554
7aa104c4
SM
35552020-05-27 Simon Marchi <simon.marchi@efficios.com>
3556
3557 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3558 parameter.
3559 (create_type_unit_group): Update.
3560 (process_psymtab_comp_unit_reader): Update.
3561 (build_type_psymtabs_reader): Update.
3562
e3beb21d
SM
35632020-05-27 Simon Marchi <simon.marchi@efficios.com>
3564
3565 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3566 object through m_this_cu->cu.
3567
d460f660
SM
35682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3569
3570 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3571 the info parameter.
3572 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3573
ab432490
SM
35742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3575
3576 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3577 per_objfile parameter.
3578 (load_full_type_unit): Add per_objfile parameter.
3579 (read_signatured_type): Likewise.
3580 (load_full_comp_unit): Likewise.
3581 (load_cu): Likewise.
3582 (dw2_do_instantiate_symtab): Likewise.
3583 (dw2_get_file_names): Likewise.
3584 (dw2_map_symtabs_matching_filename): Update.
3585 (dw_expand_symtabs_matching_file_matcher): Update.
3586 (dw2_map_symbol_filenames): Update.
3587 (process_psymtab_comp_unit): Add per_objfile parameter.
3588 (build_type_psymtabs_1): Update.
3589 (process_skeletonless_type_unit): Update.
3590 (dwarf2_build_psymtabs_hard): Update.
3591 (load_partial_comp_unit): Add per_objfile parameter.
3592 (scan_partial_symbols): Update.
3593 (load_full_comp_unit): Add per_objfile parameter.
3594 (process_imported_unit_die): Update.
3595 (create_cus_hash_table): Update.
3596 (find_partial_die): Update.
3597 (dwarf2_read_addr_index): Update.
3598 (follow_die_offset): Update.
3599 (dwarf2_fetch_die_loc_sect_off): Update.
3600 (dwarf2_fetch_constant_bytes): Update.
3601 (dwarf2_fetch_die_type_sect_off): Update.
3602 (follow_die_sig_1): Update.
3603 (load_full_type_unit): Add per_objfile parameter.
3604 (read_signatured_type): Likewise.
3605
313bad1b
SM
36062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3607
3608 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3609 of objfile_name.
3610
c3699833
SM
36112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3612
3613 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3614 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3615 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3616 field.
3617 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3618 (create_cus_from_index): Update.
3619 (dwarf2_read_gdb_index): Update.
3620 (create_cus_from_debug_names): Update.
3621 (dwarf2_read_debug_names): Update.
3622 (get_abbrev_section_for_cu): Update.
3623 (create_all_comp_units): Update.
3624 (read_attribute_value): Update.
3625 (get_debug_line_section): Update.
3626 * dwarf2/index-cache.c (index_cache::store): Update.
3627 * dwarf2/index-write.c (save_gdb_index_command): Update.
3628 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3629
1859c670
SM
36302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3631
3632 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3633 member.
3634 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3635 dwarf2_per_cu_data::per_bfd.
3636 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3637 (create_type_unit_group): Likewise.
3638 (queue_comp_unit): Remove reference to
3639 per_cu->dwarf2_per_objfile.
3640 (maybe_queue_comp_unit): Likewise.
3641 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3642 (create_cus_hash_table): Assign new field.
3643
5e22e966
SM
36442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * dwarf2/read.c: Replace
3647 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3648 dwarf2_cu->per_objfile throughout.
3649
97a1449a
SM
36502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3651
3652 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3653 parameter, don't use per_cu->dwarf2_per_objfile.
3654 (dw2_instantiate_symtab): Likewise.
3655 (dw2_find_last_source_symtab): Update.
3656 (dw2_map_expand_apply): Update.
3657 (dw2_lookup_symbol): Update.
3658 (dw2_expand_symtabs_for_function): Update.
3659 (dw2_expand_all_symtabs): Update.
3660 (dw2_expand_symtabs_with_fullname): Update.
3661 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3662 don't use per_cu->dwarf2_per_objfile.
3663 (dw2_expand_marked_cus): Update.
3664 (dw2_find_pc_sect_compunit_symtab): Update.
3665 (dw2_debug_names_lookup_symbol): Update.
3666 (dw2_debug_names_expand_symtabs_for_function): Update.
3667 (dw2_debug_names_map_matching_symbols): Update.
3668 (dwarf2_psymtab::expand_psymtab): Update.
3669
9e021579
SM
36702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3671
3672 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3673 <per_objfile>: New member.
3674 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3675 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3676 call to dwarf2_cu.
3677 (cutu_reader::cutu_reader): Update.
3678 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3679
ae090bdb
SM
36802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3681
3682 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3683 struct dwarf2_per_objfile.
3684 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3685 dwarf2_per_bfd.
3686 * dwarf2/read.c (set_die_type): Update.
3687 (get_die_type_at_offset): Update.
3688
af758d11
SM
36892020-05-27 Tom Tromey <tom@tromey.com>
3690 Simon Marchi <simon.marchi@efficios.com>
3691
3692 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3693 method.
3694 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3695 get_symtab, set_symtab>: New methods.
3696 <m_symtabs>: New field.
3697 (struct dwarf2_psymtab): Derive from partial_symtab.
3698 <readin_p, get_compunit_symtab>: Declare methods.
3699 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3700 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3701 New methods.
3702 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3703 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3704 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3705 (dw2_symtab_iter_next, dw2_print_stats)
3706 (dw2_expand_symtabs_with_fullname)
3707 (dw2_expand_symtabs_matching_one)
3708 (dw_expand_symtabs_matching_file_matcher)
3709 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3710 (dw2_debug_names_iterator::next)
3711 (dw2_debug_names_map_matching_symbols)
3712 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3713 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3714 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3715 New methods.
3716 (get_compunit_symtab, process_full_comp_unit)
3717 (process_full_type_unit): Update.
3718 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3719
5989a64e
SM
37202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3721
3722 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3723 then introduce a new dwarf2_per_objfile type.
3724 <read_line_string>: Move to the new dwarf2_per_objfile type.
3725 <objfile>: Likewise.
3726 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3727 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3728 dwarf2_per_objfile->per_bfd.
3729 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3730 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3731 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3732 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3733 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3734 (dwarf2_per_objfile::locate_sections): Rename to...
3735 (dwarf2_per_bfd::locate_sections): ... this.
3736 (dwarf2_per_objfile::get_cutu): Rename to...
3737 (dwarf2_per_bfd::get_cutu): ... this.
3738 (dwarf2_per_objfile::get_cu): Rename to...
3739 (dwarf2_per_bfd::get_cu): ... this.
3740 (dwarf2_per_objfile::get_tu): Rename to...
3741 (dwarf2_per_bfd::get_tu): ... this.
3742 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3743 (dwarf2_per_bfd::allocate_per_cu): ... this.
3744 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3745 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3746 (get_gdb_index_contents_ftype): Change parameter from
3747 dwarf2_per_objfile to dwarf2_per_bfd.
3748 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3749 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3750
a50264ba
TT
37512020-05-27 Tom Tromey <tom@tromey.com>
3752 Simon Marchi <simon.marchi@efficios.com>
3753
3754 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3755 (allocate_piece_closure): Set "per_objfile" member.
3756 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3757 (locexpr_describe_location, loclist_describe_location): Use new
3758 member.
3759 * dwarf2/read.c (read_call_site_scope)
3760 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3761 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3762 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3763 handle_data_member_location): Set per_objfile member.
3764 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3765 member.
3766 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3767
d3473f0c
TT
37682020-05-27 Tom Tromey <tom@tromey.com>
3769
3770 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3771 allocate_signatured_type>: Declare new methods.
3772 <m_num_psymtabs>: New member.
3773 (struct dwarf2_per_cu_data) <index>: New member.
3774 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3775 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3776 (create_cu_from_index_list): Use allocate_per_cu.
3777 (create_signatured_type_table_from_index)
3778 (create_signatured_type_table_from_debug_names)
3779 (create_debug_type_hash_table, add_type_unit)
3780 (read_comp_units_from_section): Use allocate_signatured_type.
3781
5717c425
TT
37822020-05-27 Tom Tromey <tom@tromey.com>
3783
3784 * psymtab.c (partial_map_expand_apply)
3785 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3786 (psym_lookup_global_symbol_language)
3787 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3788 (psym_print_stats, psym_expand_symtabs_for_function)
3789 (psym_map_symbol_filenames, psym_map_matching_symbols)
3790 (psym_expand_symtabs_matching)
3791 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3792 (maintenance_check_psymtabs): Update.
3793 * psympriv.h (struct partial_symtab) <readin_p,
3794 get_compunit_symtab>: Add objfile parameter.
3795 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3796 Likewise.
3797 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3798 get_compunit_symtab>: Likewise.
3799 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3800
45940949
TT
38012020-05-27 Tom Tromey <tom@tromey.com>
3802
3803 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3804 member.
3805 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3806 (create_cu_from_index_list)
3807 (create_signatured_type_table_from_index)
3808 (create_signatured_type_table_from_debug_names)
3809 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3810 (dwarf2_create_include_psymtab)
3811 (create_debug_type_hash_table, add_type_unit)
3812 (create_type_unit_group, read_comp_units_from_section)
3813 (dwarf2_compute_name, create_cus_hash_table)
3814 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3815 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3816 obstack.
3817 (dw2_get_real_path): Likewise. Change argument to
3818 dwarf2_per_objfile.
3819
f8c6d152
LM
38202020-05-27 Luis Machado <luis.machado@linaro.org>
3821
3822 PR tdep/26000
3823 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3824 for ldrd (immediate).
3825
e98d2e6d
PW
38262020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3827
3828 * command.h: Add comment giving the name of class_tui.
3829 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3830 create the fake command for the help for class_tui.
3831
53a47a3e
TT
38322020-05-26 Tom Tromey <tromey@adacore.com>
3833
3834 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3835 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3836 (val_atr): New function.
3837 (value_val_atr): Use it.
3838 * ada-valprint.c (print_optional_low_bound): Change low bound
3839 handling for enums.
3840 (val_print_packed_array_elements): Don't call discrete_position.
3841 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3842 discrete_position for enum types.
3843 * language.c (default_print_array_index): Change type.
3844 * language.h (struct language_defn) <la_print_array_index>: Add
3845 index_type parameter, change type of index_value.
3846 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3847 (default_print_array_index): Update.
3848 * valprint.c (maybe_print_array_index): Don't call
3849 value_from_longest. Update.
3850 (value_print_array_elements): Don't call discrete_position.
3851
0bc2354b
TT
38522020-05-26 Tom Tromey <tromey@adacore.com>
3853
3854 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3855 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3856
1218a4bf
CDA
38572020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3858
3859 PR gdb/13519
3860 * avr-tdep.c (avr_integer_to_address): Return data or code
3861 address accordingly to the second 'type' argument of the
3862 function.
3863
92651b1d
MW
38642020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3865
3866 * infcmd.c, inferior.h: (construct_inferior_arguments):
3867 Moved function from here to gdbsupport/common-inferior.{h,cc}
3868
0a4f5f8c
TT
38692020-05-23 Tom Tromey <tom@tromey.com>
3870
3871 Revert commit eca1f90c:
3872 * NEWS: Remove entry for completion styling.
3873 * completer.c (_rl_completion_prefix_display_length): Move
3874 declaration later.
3875 (gdb_fnprint): Revert.
3876 (gdb_display_match_list_1): Likewise.
3877 * cli/cli-style.c (completion_prefix_style)
3878 (completion_difference_style, completion_suffix_style): Remove.
3879 (_initialize_cli_style): Revert.
3880 * cli/cli-style.h (completion_prefix_style)
3881 (completion_difference_style, completion_suffix_style): Don't
3882 declare.
3883
e08bd6c5
PA
38842020-05-24 Pedro Alves <palves@redhat.com>
3885
3886 * symtab.c (completion_list_add_name): Return boolean indication
3887 of whether the symbol matched.
3888 (completion_list_add_symbol): Don't try to remove C++ aliases if
3889 the symbol didn't match in the first place.
3890 * symtab.h (completion_list_add_name): Return bool.
3891
ceacbf6e
SM
38922020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3893
3894 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3895 type::field.
3896
26f16254
JB
38972020-05-23 Joel Brobecker <brobecker@adacore.com>
3898
3899 GDB 9.2 released.
3900
eca1f90c
TT
39012020-05-23 Tom Tromey <tom@tromey.com>
3902
3903 * NEWS: Add entry for completion styling.
3904 * completer.c (_rl_completion_prefix_display_length): Move
3905 declaration earlier.
3906 (gdb_fnprint): Use completion_style.
3907 (gdb_display_match_list_1): Likewise.
3908 * cli/cli-style.c (completion_prefix_style)
3909 (completion_difference_style, completion_suffix_style): New
3910 globals.
3911 (_initialize_cli_style): Register new globals.
3912 * cli/cli-style.h (completion_prefix_style)
3913 (completion_difference_style, completion_suffix_style): Declare.
3914
51e2cfa2
PA
39152020-05-23 Pedro Alves <palves@redhat.com>
3916
3917 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3918 (parse_escape): Use ISDIGIT instead of isdigit.
3919 (puts_debug): Use gdb_isprint instead of isprint.
3920 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3921 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3922 ISSPACE instead of isspace.
3923 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3924 instead of isspace.
3925 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3926 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3927 instead of isxdigit and ISDIGIT instead of isdigit.
3928
80fc5e77
SM
39292020-05-22 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * gdbtypes.h (struct type) <field>: New method.
3932 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3933 or type::field.
3934
3cabb6b0
SM
39352020-05-22 Simon Marchi <simon.marchi@efficios.com>
3936
3937 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3938 (TYPE_FIELDS): Use type::fields. Change all call sites that
3939 modify the propery to use type::set_fields instead.
3940
1f704f76
SM
39412020-05-22 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3944 type::num_fields instead.
3945
5e33d5f4
SM
39462020-05-22 Simon Marchi <simon.marchi@efficios.com>
3947
3948 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3949 methods.
3950 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3951 that modify the number of fields to use type::set_num_fields
3952 instead.
3953
9392ebb3
TT
39542020-05-22 Tom Tromey <tromey@adacore.com>
3955
3956 * compile/compile-object-load.h (munmap_list_free): Don't
3957 declare.
3958
7c13f4e8
AB
39592020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3960
3961 * annotate.c (annotate_source_line): Update return type, add call
3962 to update current symtab and line.
3963 * annotate.h (annotate_source_line): Update return type, and
3964 extend header comment.
3965 * source.c (info_line_command): Check annotation_level before
3966 calling annotate_source_line.
3967 * stack.c (print_frame_info): If calling annotate_source_line
3968 returns true, then don't print any other source line information.
3969
aa370940
SM
39702020-05-21 Simon Marchi <simon.marchi@efficios.com>
3971
3972 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3973
84d53fa9
SM
39742020-05-21 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * coffread.c (patch_type): Remove NULL check before xfree.
3977 * corefile.c (set_gnutarget): Likewise.
3978 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3979 * exec.c (build_section_table): Likewise.
3980 * remote.c (remote_target::pass_signals): Likewise.
3981 * utils.c (n_spaces): Likewise.
3982 * cli/cli-script.c (document_command): Likewise.
3983 * i386-windows-tdep.c (core_process_module_section): Likewise.
3984 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3985
9d428aae
SM
39862020-05-20 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * symfile.c (reread_symbols): Clear objfile's section_offsets
3989 vector and section indices, re-compute them by calling
3990 sym_offsets.
3991
250106a7
TT
39922020-05-20 Tom Tromey <tromey@adacore.com>
3993
3994 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3995 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3996
9a0bacfb
TV
39972020-05-20 Tom de Vries <tdevries@suse.de>
3998
3999 PR symtab/25833
4000 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4001
7b958a48
AM
40022020-05-20 Alan Modra <amodra@gmail.com>
4003
4004 PR 25993
4005 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4006 bfd_set_filename.
4007 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4008 passed to bfd_set_filename.
4009 * symfile-mem.c (add_vsyscall_page): Likewise for string
4010 passed to symbol_file_add_from_memory.
4011 (symbol_file_add_from_memory): Make name param a const char* and
4012 don't strdup.
4013
c7e97679
AM
40142020-05-20 Alan Modra <amodra@gmail.com>
4015
4016 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4017 rather than accessing bfd->filename directly.
4018 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4019 and use bfd_section_name.
4020 * dwarf2/frame.c (decode_frame_entry): Likewise.
4021 * exec.c (exec_set_section_address): Likewise.
4022 * solib-aix.c (solib_aix_bfd_open): Likewise.
4023 * stap-probe.c (get_stap_base_address): Likewise.
4024 * symfile.c (reread_symbols): Likewise.
4025
563c591b
TT
40262020-05-19 Tom Tromey <tromey@adacore.com>
4027
4028 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4029
f408d82c
SM
40302020-05-19 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4033
98c59b52
PA
40342020-05-19 Pedro Alves <palves@redhat.com>
4035
4036 * NEWS (set exec-file-mismatch): Adjust entry.
4037 * exec.c: Include "build-id.h".
4038 (validate_exec_file): Try to match build IDs instead of filenames.
4039 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4040 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4041 and pass down 'warn_if_slow'.
4042 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4043 gdb_bfd_open_closure to pass it down.
4044 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4045
4111f652
PA
40462020-05-19 Pedro Alves <palves@redhat.com>
4047
4048 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4049 * target.c (target_fileio_open_1): Rename to target_fileio_open
4050 and make extern. Use bool.
4051 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4052 (target_fileio_read_alloc_1): Adjust.
4053 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4054 (target_fileio_open_warn_if_slow): Delete declaration.
4055
ad80db5b
PA
40562020-05-19 Pedro Alves <palves@redhat.com>
4057
4058 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4059 Adjust all callers.
4060
1d6ce4d3
YS
40612020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4062
4063 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4064 whether disp is negative.
4065
9005fbbb
SM
40662020-05-19 Simon Marchi <simon.marchi@efficios.com>
4067
4068 * symfile.h (struct symfile_segment_data)
4069 <~symfile_segment_data>: Remove.
4070 <segment_info>: Change to std::vector.
4071 * symfile.c (default_symfile_segments): Update.
4072 * elfread.c (elf_symfile_segments): Update.
4073
68b888ff
SM
40742020-05-19 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4077 <segments>: New.
4078 <segment_bases, segment_sizes>: Remove.
4079 * symfile.c (default_symfile_segments): Update.
4080 * elfread.c (elf_symfile_segments): Update.
4081 * remote.c (remote_target::get_offsets): Update.
4082 * solib-target.c (solib_target_relocate_section_addresses):
4083 Update.
4084
62982abd
SM
40852020-05-19 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * symfile.h (struct symfile_segment_data): Initialize fields.
4088 <~symfile_segment_data>: Add.
4089 (symfile_segment_data_up): New.
4090 (struct sym_fns) <sym_segments>: Return a
4091 symfile_segment_data_up.
4092 (default_symfile_segments): Return a symfile_segment_data_up.
4093 (free_symfile_segment_data): Remove.
4094 (get_symfile_segment_data): Return a symfile_segment_data_up.
4095 * symfile.c (default_symfile_segments): Likewise.
4096 (get_symfile_segment_data): Likewise.
4097 (free_symfile_segment_data): Remove.
4098 (symfile_find_segment_sections): Update.
4099 * elfread.c (elf_symfile_segments): Return a
4100 symfile_segment_data_up.
4101 * remote.c (remote_target::get_offsets): Update.
4102 * solib-target.c (solib_target_relocate_section_addresses):
4103 Update.
4104 * symfile-debug.c (debug_sym_segments): Return a
4105 symfile_segment_data_up.
4106
7f204339
RO
41072020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4108
e52a0f1b
RO
4109 PR build/25981
4110 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4111 Hardcode register numbers.
4112
7f204339
RO
4113 PR build/25981
4114 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4115 procfs_find_LDT_entry): Remove.
4116 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4117 procfs_find_LDT_entry): Remove.
4118 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4119 Remove.
4120
7f32a4d5
PA
41212020-05-17 Pedro Alves <palves@redhat.com>
4122 Andrew Burgess <andrew.burgess@embecosm.com>
4123 Keno Fischer <keno@juliacomputing.com>
4124
4125 PR gdb/25741
4126 * breakpoint.c (build_target_condition_list): Update comments.
4127 (build_target_command_list): Update comments and skip matching
4128 locations.
4129 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4130 a separate function. Simplify "set breakpoint auto-hw off"
4131 handling.
4132 (insert_breakpoints): Update comment.
4133 (tracepoint_locations_match): New parameter. For breakpoints,
4134 compare location types too, if the caller wants to.
4135 (handle_automatic_hardware_breakpoints): New functions.
4136 (bp_location_is_less_than): Also sort by location type and
4137 hardware breakpoint length.
4138 (update_global_location_list): Handle "set breakpoint auto-hw on"
4139 here.
4140 (update_breakpoint_locations): Ask breakpoint_locations_match to
4141 ignore location types.
4142
7d93a1e0
SM
41432020-05-16 Simon Marchi <simon.marchi@efficios.com>
4144
4145 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4146 type::name instead.
4147
d0e39ea2
SM
41482020-05-16 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * gdbtypes.h (struct type) <name, set_name>: New methods.
4151 (TYPE_CODE): Use type::name. Change all call sites used to set
4152 the name to use type::set_name instead.
4153
2dab0c7b
TT
41542020-05-16 Tom Tromey <tom@tromey.com>
4155
4156 * top.c (quit_force): Update.
4157 * infrun.c (handle_no_resumed): Update.
4158 * top.h (all_uis): New function.
4159 (ALL_UIS): Remove.
4160
59f7bd8d
SM
41612020-05-16 Simon Marchi <simon.marchi@efficios.com>
4162
4163 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4164
9bf058f0
PA
41652020-05-16 Pedro Alves <palves@redhat.com>
4166
4167 * ia64-linux-nat.c
4168 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4169 Declare method.
4170 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4171
8f86ae1a
SM
41722020-05-15 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4175 (sparc64_adi_info): Likewise.
4176
d6bc0792
TT
41772020-05-15 Tom Tromey <tom@tromey.com>
4178
4179 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4180 block_objfile.
4181 (lookup_objfile_from_block): Remove.
4182 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4183 (lookup_global_symbol): Use block_objfile.
4184 * symtab.h (lookup_objfile_from_block): Don't declare.
4185 * printcmd.c (clear_dangling_display_expressions): Use
4186 block_objfile.
4187 * parse.c (operator_check_standard): Use block_objfile.
4188
8c14c3a3
TT
41892020-05-15 Tom Tromey <tom@tromey.com>
4190
4191 * language.c (language_alloc_type_symbol): Set
4192 SYMBOL_SECTION.
4193 * symtab.c (initialize_objfile_symbol): Remove.
4194 (allocate_symbol): Remove.
4195 (allocate_template_symbol): Remove.
4196 * dwarf2/read.c (fixup_go_packaging): Use "new".
4197 (new_symbol): Use "new".
4198 (read_variable): Don't call initialize_objfile_symbol. Use
4199 "new".
4200 (read_func_scope): Use "new".
4201 * xcoffread.c (process_xcoff_symbol): Don't call
4202 initialize_objfile_symbol.
4203 (SYMBOL_DUP): Remove.
4204 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4205 "new".
4206 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4207 (allocate_template_symbol): Don't declare.
4208 (struct symbol): Add copy constructor. Change defaults.
4209 * jit.c (finalize_symtab): Use "new".
4210 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4211 Use "new".
4212 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4213 (common_block_end): Use "new".
4214 * mdebugread.c (parse_symbol): Use "new".
4215 (new_symbol): Likewise.
4216
5b4a1a8d
PW
42172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4218
4219 * NEWS: Mention changes to help and apropos.
4220
57b4f16e
PW
42212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4222
4223 * command.h (enum command_class): Improve comments, document
4224 that class_alias is for user-defined aliases, give the class
4225 name for each class, remove unused class_xdb.
4226 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4227 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4228 by a precise class.
4229 * infcmd.c (_initialize_infcmd): Likewise.
4230 * reverse.c (_initialize_reverse): Likewise.
4231 * stack.c (_initialize_stack): Likewise.
4232 * symfile.c (_initialize_symfile): Likewise.
4233 * tracepoint.c (_initialize_tracepoint): Likewise.
4234
7c05caf7
PW
42352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4236
4237 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4238 when their aliased command is traversed.
4239 (help_cmd): Add fput_command_names_styled call to
4240 output command name and aliases when command has an alias.
4241
3b3aaacb
PW
42422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4243
4244 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4245 * cli/cli-decode.c (help_cmd_list): Declare as static,
4246 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4247 a command together with the command.
4248 (fput_command_name_styled, fput_command_names_styled): New functions.
4249 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4250 fput_command_name_styled.
4251 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4252 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4253
7aa1b46f
PW
42542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4255
4256 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4257 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4258 * command.h (cmd_show_list): Likewise.
4259 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4260 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4261
89bcba74
PW
42622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4263
4264 * unittests/command-def-selftests.c (traverse_command_structure):
4265 Verify all commands of a list have the same prefix command and
4266 that only the top cmdlist commands have a null prefix.
4267
3f4d92eb
PW
42682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4269
4270 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4271 as prefix, not one of its aliases.
4272 (set_cmd_prefix): Remove.
4273 (do_add_cmd): Centralize the setting of the prefix of a command, when
4274 command is defined after its full chain of prefix commands.
4275 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4276 (add_setshow_cmd_full): Likewise.
4277 (update_prefix_field_of_prefixed_commands): New function.
4278 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4279 update_prefix_field_of_prefixed_commands.
4280 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4281 addresses of remote_set_cmdlist and remote_show_cmdlist given
4282 as argument, not the address of an argument.
4283 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4284 * gdb/remote.c (_initialize_remote): Likewise.
4285
0605465f
PW
42862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4287
4288 * cli/cli-cmds.c (alias_command): Check for an existing alias
4289 using lookup_cmd_composition, as valid_command_p is too strict
4290 and forbids aliases that are the prefix of an existing alias
4291 or command.
4292 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4293 command is properly recognised as a valid command.
4294
58e6ac70
PW
42952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4296
4297 * unittests/help-doc-selftests.c: Rename to
4298 unittests/command-def-selftests.c
4299 * unittests/command-def-selftests.c (help_doc_tests): Update some
4300 comments.
4301 (command_structure_tests, traverse_command_structure): New namespace
4302 and function.
4303 (command_structure_invariants_tests): New function.
4304 (_initialize_command_def_selftests) Renamed from
4305 _initialize_help_doc_selftests, register command_structure_invariants
4306 selftest.
4307
a7b9ceb8
PW
43082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4309
4310 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4311 an alias of 'show'.
4312
b2188a06
JB
43132020-05-15 Joel Brobecker <brobecker@adacore.com>
4314
4315 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4316 ada_is_fixed_point_type. Update all callers.
4317 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4318 all callers.
4319 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4320 Update all callers.
4321 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4322 print_fixed_point_type. Update all callers.
4323 * ada-valprint.c (ada_value_print_num): Replace call to
4324 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4325
a51951c2
KB
43262020-05-14 Kevin Buettner <kevinb@redhat.com>
4327
4328 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4329 processors.
4330 (cpu_supports_bts): Add CV_AMD case.
4331
29d6859f
LM
43322020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4333 Simon Marchi <simon.marchi@efficios.com>
4334
4335 * infrun.c (stop_all_threads): Collect multiple wait events at
4336 each pass.
4337
78134374
SM
43382020-05-14 Simon Marchi <simon.marchi@efficios.com>
4339
4340 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4341 type::code instead.
4342
67607e24
SM
43432020-05-14 Simon Marchi <simon.marchi@efficios.com>
4344
4345 * gdbtypes.h (struct type) <code, set_code>: New methods.
4346 (TYPE_CODE): Use type::code. Change all call sites used to set
4347 the code to use type::set_code instead.
4348
a05575d3
TBA
43492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4350 Tom de Vries <tdevries@suse.de>
4351 Pedro Alves <palves@redhat.com>
4352
4353 PR threads/25478
4354 * infrun.c (stop_all_threads): Do NOT ignore
4355 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4356 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4357 received.
4358 (handle_no_resumed): Remove code handling a live inferior with no
4359 threads.
4360 * remote.c (has_single_non_exited_thread): New.
4361 (remote_target::update_thread_list): Do not delete a thread if is
4362 the last thread of the process.
4363 * thread.c (thread_select): Call delete_exited_threads instead of
4364 prune_threads.
4365
6ad82919
TBA
43662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4367
4368 * infrun.c (stop_all_threads): Enable/disable thread events of all
4369 targets. Move a debug message denoting the end of the function
4370 into the SCOPED_EXIT block.
4371
d890404b
TBA
43722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4373
4374 * process-stratum-target.h: Include <set>.
4375 (all_non_exited_process_targets, switch_to_target_no_thread): New
4376 function declarations.
4377 * process-stratum-target.c (all_non_exited_process_targets)
4378 (switch_to_target_no_thread): New function implementations.
4379
293b3ebc
TBA
43802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4381
4382 * infrun.c (handle_inferior_event): Extract out a piece of code
4383 into...
4384 (mark_non_executing_threads): ...this new function.
4385
7ca9b62a
TBA
43862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4387
4388 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4389 use.
4390
fc75c28b
TBA
43912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4392
4393 * regcache.c (regcache_read_pc_protected): New function
4394 implementation that returns 0 if the PC cannot read via
4395 'regcache_read_pc'.
4396 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4397 instead of 'regcache_read_pc'.
4398 (keep_going_pass_signal): Ditto.
4399
a89febbd
TT
44002020-05-13 Tom Tromey <tromey@adacore.com>
4401
4402 * ada-lang.c (align_value): Remove.
4403 (ada_template_to_fixed_record_type_1): Use align_up.
4404
f7e23710
TBA
44052020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4406
4407 * async-event.c: Update the copyright year.
4408 * async-event.h: Update the copyright year.
4409
02ff80c2
SM
44102020-05-12 Simon Marchi <simon.marchi@efficios.com>
4411
4412 * objfiles.h (is_addr_in_objfile,
4413 shared_objfile_contains_address_p): Return bool.
4414 * objfile.c (is_addr_in_objfile,
4415 shared_objfile_contains_address_p): Return bool.
4416
4fd6c7e8
TT
44172020-05-11 Tom Tromey <tromey@adacore.com>
4418
4419 * cli/cli-cmds.c (info_command): Restore.
4420 (_initialize_cli_cmds): Use add_prefix_command for "info".
4421 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4422
5eb68a39
TT
44232020-05-11 Tom Tromey <tromey@adacore.com>
4424
4425 * ada-lang.c (ada_value_primitive_field): Now public.
4426 * ada-lang.h (ada_value_primitive_field): Declare.
4427 * ada-valprint.c (print_field_values): Use
4428 ada_value_primitive_field for wrapper fields.
4429
7666722f
TV
44302020-05-11 Tom de Vries <tdevries@suse.de>
4431
4432 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4433 MODULE_DOMAIN.
4434
3ee6bb11
TV
44352020-05-11 Tom de Vries <tdevries@suse.de>
4436
4437 PR symtab/25941
4438 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4439 with length 0, if not gdb-produced.
4440 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4441
43434996
TV
44422020-05-09 Tom de Vries <tdevries@suse.de>
4443
4444 PR gdb/25955
4445 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4446 calculation.
4447
2f78cffc
TT
44482020-05-09 Tom Tromey <tom@tromey.com>
4449
4450 * top.c (server_command): Now bool.
4451 * top.h (server_command): Now bool.
4452
4f7bc5ed
TT
44532020-05-08 Tom Tromey <tromey@adacore.com>
4454
4455 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4456 already being processed.
4457
8be4b118
TT
44582020-05-08 Tom Tromey <tom@tromey.com>
4459
4460 * printcmd.c (struct display) <next>: Remove.
4461 <display>: New constructor.
4462 <exp_string>: Now a std::string.
4463 <enabled_p>: Now a bool.
4464 (display_number): Move definition earlier.
4465 (displays): Rename from display_chain. Now a std::vector.
4466 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4467 (display_command): Update.
4468 (do_one_display, disable_display)
4469 (enable_disable_display_command, do_enable_disable_display):
4470 Update.
4471 (free_display): Remove.
4472 (clear_displays): Rewrite.
4473 (delete_display): Update.
4474 (map_display_numbers): Use function_view. Remove "data"
4475 parameter. Update.
4476 (do_delete_display): Remove.
4477 (undisplay_command): Update.
4478 (do_one_display, do_displays, disable_display)
4479 (info_display_command): Update.
4480 (do_enable_disable_display): Remove.
4481 (enable_disable_display_command)
4482 (clear_dangling_display_expressions): Update.
4483
94c93c35
TT
44842020-05-08 Tom Tromey <tom@tromey.com>
4485
4486 * symtab.c (set_symbol_cache_size)
4487 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4488 (maintenance_print_symbol_cache_statistics): Update.
4489 * symmisc.c (print_symbol_bcache_statistics)
4490 (print_objfile_statistics, maintenance_print_objfiles)
4491 (maintenance_info_symtabs, maintenance_check_symtabs)
4492 (maintenance_expand_symtabs, maintenance_info_line_tables):
4493 Update.
4494 * symfile-debug.c (set_debug_symfile): Update.
4495 * source.c (forget_cached_source_info): Update.
4496 * python/python.c (gdbpy_progspaces): Update.
4497 * psymtab.c (maintenance_info_psymtabs): Update.
4498 * probe.c (parse_probes): Update.
4499 * linespec.c (iterate_over_all_matching_symtabs)
4500 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4501 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4502 * exec.c (exec_target::close): Update.
4503 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4504 * breakpoint.c (print_one_breakpoint_location)
4505 (create_longjmp_master_breakpoint)
4506 (create_std_terminate_master_breakpoint): Update.
4507 * progspace.c (program_spaces): Now a std::vector.
4508 (maybe_new_address_space): Update.
4509 (add_program_space): Remove.
4510 (program_space::program_space): Update.
4511 (remove_program_space): Update.
4512 (number_of_program_spaces): Remove.
4513 (print_program_space, update_address_spaces): Update.
4514 * progspace.h (program_spaces): Change type.
4515 (ALL_PSPACES): Remove.
4516 (number_of_program_spaces): Don't declare.
4517 (struct program_space) <next>: Remove.
4518
a1fd1ac9
TT
45192020-05-08 Tom Tromey <tom@tromey.com>
4520
4521 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4522 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4523 (enable_break): Update.
4524 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4525 (frv_fdpic_find_canonical_descriptor): Update.
4526 (frv_fetch_objfile_link_map): Update.
4527 * progspace.c (program_space::free_all_objfiles): Update.
4528 (program_space::solibs): New method.
4529 * progspace.h (struct program_space) <solibs>: New method.
4530 * solist.h (master_so_list): Don't declare.
4531 (ALL_SO_LIBS): Remove.
4532 * solib.h (so_list_head): Remove.
4533 (update_solib_list): Update comment.
4534 * solib.c (master_so_list): Remove.
4535 (solib_used, update_solib_list, solib_add)
4536 (info_sharedlibrary_command, clear_solib)
4537 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4538
38eae084
TT
45392020-05-08 Tom Tromey <tom@tromey.com>
4540
4541 * extension.c (extension_languages): Now a std::array.
4542 (ALL_EXTENSION_LANGUAGES): Remove.
4543 (get_ext_lang_defn, get_ext_lang_of_file)
4544 (eval_ext_lang_from_control_command): Update.
4545 (finish_ext_lang_initialization)
4546 (auto_load_ext_lang_scripts_for_objfile)
4547 (ext_lang_type_printers::ext_lang_type_printers)
4548 (apply_ext_lang_type_printers)
4549 (ext_lang_type_printers::~ext_lang_type_printers)
4550 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4551 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4552 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4553 (get_matching_xmethod_workers, ext_lang_colorize)
4554 (ext_lang_before_prompt): Update.
4555 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4556
596dc4ad
TT
45572020-05-08 Tom Tromey <tom@tromey.com>
4558
4559 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4560 overload.
4561 <swap_string, m_string>: Remove.
4562 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4563 Update.
4564 * stabsread.c (define_symbol, read_type): Update.
4565 * linespec.c (find_linespec_symbols): Update.
4566 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4567 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4568 * dbxread.c (read_dbx_symtab): Update.
4569 * cp-support.h (cp_canonicalize_string_full)
4570 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4571 Return unique_xmalloc_ptr.
4572 * cp-support.c (inspect_type): Update.
4573 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4574 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4575 Likewise.
4576 * c-typeprint.c (print_name_maybe_canonical): Update.
4577 * break-catch-throw.c (check_status_exception_catchpoint):
4578 Update.
4579
bf4cb9be
TV
45802020-05-08 Tom de Vries <tdevries@suse.de>
4581
4582 * infrun.c (follow_fork): Copy current_line and current_symtab to
4583 child thread.
4584
a1b68f28
SM
45852020-05-07 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * async-event.c (struct async_signal_handler, struct
4588 async_event_handler): Reformat, remove typedef.
4589
98d48915
SM
45902020-05-07 Simon Marchi <simon.marchi@efficios.com>
4591
4592 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4593 access thistype->main_type->dyn_prop_list directly.
4594
7aa91313
SM
45952020-05-07 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4598 (remove_dyn_prop): Remove. Update all users to use
4599 type::remove_dyn_prop.
4600 * gdbtypes.c (remove_dyn_prop): Rename to...
4601 (type::remove_dyn_prop): ... this.
4602
5c54719c
SM
46032020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4604
4605 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4606 (add_dyn_prop): Remove. Update all users to use
4607 type::add_dyn_prop.
4608 * gdbtypes.c (add_dyn_prop): Rename to...
4609 (type::add_dyn_prop): ... this.
4610
24e99c6c
SM
46112020-05-07 Simon Marchi <simon.marchi@efficios.com>
4612
4613 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4614 (get_dyn_prop): Remove. Update all users to use
4615 type::dyn_prop.
4616 * gdbtypes.c (get_dyn_prop): Rename to...
4617 (type::dyn_prop): ... this.
4618
0d4bf016
SM
46192020-05-06 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4622
ac4a4f1c
SM
46232020-05-06 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4626 instruction, skip it if it's there.
4627
a3bbacc1
SM
46282020-05-05 Simon Marchi <simon.marchi@efficios.com>
4629
4630 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4631
c3236f84
SM
46322020-05-04 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4635 * gdbtypes.c (recursive_dump_type): Remove use of
4636 TYPE_INCOMPLETE.
4637
3b6acaee
TT
46382020-05-03 Tom Tromey <tom@tromey.com>
4639
4640 * breakpoint.c (catch_command, tcatch_command): Remove.
4641 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4642 add_show_prefix_cmd.
4643 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4644 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4645 Remove.
4646 (add_internal_problem_command): Use add_basic_prefix_cmd,
4647 add_show_prefix_cmd.
4648 * mips-tdep.c (set_mipsfpu_command): Remove.
4649 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4650 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4651 (_initialize_index_cache): Use add_basic_prefix_cmd.
4652 * memattr.c (dummy_cmd): Remove.
4653 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4654 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4655 (_initialize_tui_win): Use add_basic_prefix_cmd,
4656 add_show_prefix_cmd.
4657 * cli/cli-logging.c (set_logging_command): Remove.
4658 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4659 add_show_prefix_cmd.
4660 (show_logging_command): Remove.
4661 * target.c (target_command): Remove.
4662 (add_target): Use add_basic_prefix_cmd.
4663
a51119cd
HD
46642020-05-02 Hannes Domani <ssbssa@yahoo.de>
4665
4666 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4667
652fc23a 46682020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4669
652fc23a
PW
4670 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4671 info_command.
4672
117539e6
KR
46732020-04-30 Kamil Rytarowski <n54@gmx.com>
4674
4675 * nbsd-nat.c (nbsd_enable_proc_events)
4676 (nbsd_nat_target::post_startup_inferior): Add.
4677 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4678 (nbsd_nat_target::update_thread_list): Rewrite.
4679 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4680 "PTRACE_LWP_CREATE".
4681 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4682
102e38eb 46832020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4684
102e38eb
PW
4685 * stack.c (_initialize_stack): Remove duplicated creation
4686 of "frame" command and "f" alias.
4687
ee9d1e5f
HD
46882020-04-30 Hannes Domani <ssbssa@yahoo.de>
4689
4690 PR gdb/18706
4691 * gdbtypes.c (check_typedef): Calculate size of array of
4692 stubbed type.
4693
627c7fb8
HD
46942020-04-30 Hannes Domani <ssbssa@yahoo.de>
4695
4696 PR gdb/15559
4697 * i386-tdep.c (i386_push_dummy_call): Call
4698 i386_thiscall_push_dummy_call.
4699 (i386_thiscall_push_dummy_call): New function.
4700 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4701 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4702 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4703
ffc2844e
SM
47042020-04-29 Simon Marchi <simon.marchi@efficios.com>
4705
4706 * gdbarch.sh (do_read): Add shellcheck disable directive for
4707 warning SC2162.
4708
1207375d
SM
47092020-04-29 Simon Marchi <simon.marchi@efficios.com>
4710
4711 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4712 "referenced but not assigned" warning.
4713
9fdb2916
SM
47142020-04-29 Simon Marchi <simon.marchi@efficios.com>
4715
4716 * gdbarch.sh: Remove code that sets fallbackdefault.
4717
759cea5e
SM
47182020-04-29 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbarch.sh: Use shell operators && and || instead of
4721 -a and -o.
4722
cb02ab24
SM
47232020-04-29 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * gdbarch.sh: Use $(...) instead of `...`.
4726
a6fc5ffc
SM
47272020-04-29 Simon Marchi <simon.marchi@efficios.com>
4728
4729 * gdbarch.sh: Use double quotes around variables.
4730
8d113d13
SM
47312020-04-29 Simon Marchi <simon.marchi@efficios.com>
4732
4733 * gdbarch.sh: Use %s with printf, instead of variables in the
4734 format string.
4735
ed6acedd
TT
47362020-04-29 Tom Tromey <tromey@adacore.com>
4737
4738 PR ada/25875:
4739 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4740 type fields here.
4741 (read_enumeration_type): Call
4742 update_enumeration_type_from_children later. Update comments.
4743 (process_enumeration_scope): Don't create type fields.
4744
b68b1b58
KR
47452020-04-29 Kamil Rytarowski <n54@gmx.com>
4746
4747 * nbsd-tdep.c: Include "xml-syscall.h".
4748 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4749
f94b2e03
KR
47502020-04-29 Kamil Rytarowski <n54@gmx.com>
4751
4752 * nbsd-nat.c: Include "sys/wait.h".
4753 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4754 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4755 (nbsd_nat_target::remove_exec_catchpoint)
4756 (nbsd_nat_target::set_syscall_catchpoint): Add.
4757 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4758 (nbsd_nat_target::insert_exec_catchpoint)
4759 (nbsd_nat_target::remove_exec_catchpoint)
4760 (nbsd_nat_target::set_syscall_catchpoint): Add.
4761 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4762 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4763 `nbsd_get_syscall_number'.
4764
fc49bc72
TT
47652020-04-29 Tom Tromey <tom@tromey.com>
4766
4767 * stack.c (print_block_frame_labels): Remove.
4768
d642b692
HD
47692020-04-29 Hannes Domani <ssbssa@yahoo.de>
4770
4771 PR gdb/17320
4772 * ada-valprint.c (val_print_packed_array_elements): Move array
4773 end bracket to new line.
4774 (ada_val_print_string): Remove extra spaces before first array
4775 element.
4776 * c-valprint.c (c_value_print_array): Likewise.
4777 * m2-valprint.c (m2_print_array_contents): Likewise.
4778 (m2_value_print_inner): Likewise.
4779 * p-valprint.c (pascal_value_print_inner): Likewise.
4780 * valprint.c (generic_val_print_array): Likewise.
4781 (value_print_array_elements): Move first array element and array
4782 end bracket to new line.
4783
ea90f227
TV
47842020-04-29 Tom de Vries <tdevries@suse.de>
4785
4786 PR symtab/25889
4787 * linespec.c (find_method): Fix ix calculation.
4788
4498ef4f
KR
47892020-04-28 Kamil Rytarowski <n54@gmx.com>
4790
4791 * syscalls/update-netbsd.sh: New file.
4792 * syscalls/netbsd.xml: Regenerate.
4793 * data-directory/Makefile.in: Register `netbsd.xml' in
4794 `SYSCALLS_FILES'.
4795
a55e30b5
SM
47962020-04-28 Simon Marchi <simon.marchi@efficios.com>
4797
4798 * syscalls/update-freebsd.sh: Add double quotes.
4799
2b2fbab8
TT
48002020-04-28 Tom Tromey <tom@tromey.com>
4801
4802 * NEWS: Update.
4803 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4804 (cmdpy_init): Allow class_tui.
4805
a65189c9
TV
48062020-04-28 Mark Williams <mark@myosotissp.com>
4807
4808 PR gdb/24480
4809 * dwarf2read.c: Add missing assingments to list_in_scope when
4810 start_symtab was already called.
4811
1b95cdb7
SM
48122020-04-28 Simon Marchi <simon.marchi@efficios.com>
4813
4814 PR gdb/25881
4815 * dwarf2/read.c (offset_map_type): Use
4816 gdb:hash_enum<sect_offset> as hash function.
4817
15cd93d0
TV
48182020-04-28 Tom de Vries <tdevries@suse.de>
4819
4820 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4821 with DW_AT_signature.
4822
1eb39914
SM
48232020-04-27 Simon Marchi <simon.marchi@efficios.com>
4824
4825 * configure.ac: Remove check for fs_base/gs_base in
4826 user_regs_struct.
4827 * configure: Re-generate.
4828 * config.in: Re-generate.
4829 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4830 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4831 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4832
991a3e2e
LM
48332020-04-27 Luis Machado <luis.machado@linaro.org>
4834
4835 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4836 problematic inline frame unwinding situation.
4837 * frame.c (frame_id_computed_p): New function.
4838 * frame.h (frame_id_computed_p): New prototype.
4839
361ba0e8
TT
48402020-04-26 Tom Tromey <tom@tromey.com>
4841
4842 * command.h (enum command_class) <class_pseudo>: Remove.
4843
bc3609fd
PW
48442020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4845
4846 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4847 and whitespace.
4848
b9771db7
KR
48492020-04-25 Kamil Rytarowski <n54@gmx.com>
4850
ec16513e
SM
4851 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4852 `PT_GET_PROCESS_STATE' block.
b9771db7 4853
7151c1af
TT
48542020-04-24 Tom Tromey <tom@tromey.com>
4855
4856 * symtab.h (symbol_get_demangled_name): Don't declare.
4857 * symtab.c (symbol_get_demangled_name): Remove.
4858 (general_symbol_info::natural_name)
4859 (general_symbol_info::demangled_name): Update.
4860
906bb4c5
TT
48612020-04-24 Tom Tromey <tom@tromey.com>
4862
4863 PR rust/25025:
4864 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4865
bcfe6157
TT
48662020-04-24 Tom Tromey <tom@tromey.com>
4867
4868 PR symtab/12707:
4869 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4870 exists.
4871 (new_symbol): Likewise.
4872 * compile/compile-object-load.c (get_out_value_type): Use
4873 symbol_matches_search_name.
4874
f049a313
TT
48752020-04-24 Tom Tromey <tom@tromey.com>
4876
4877 * dwarf2/read.c (add_partial_symbol): Do not call
4878 compute_and_set_names.
4879
76e288d1
TT
48802020-04-24 Tom Tromey <tom@tromey.com>
4881
4882 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4883 overload.
4884
2467f4f6
TT
48852020-04-24 Tom Tromey <tom@tromey.com>
4886
4887 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4888 (add_psymbol_to_list): New overload. Make old overload call new
4889 one.
4890 * psympriv.h (add_psymbol_to_list): New overload.
4891
e61108c9
TT
48922020-04-24 Tom Tromey <tom@tromey.com>
4893
4894 * dwarf2/read.c (partial_die_info::read) <case
4895 DW_AT_linkage_name>: Use value_as_string.
4896 (dwarf2_string_attr): Use value_as_string.
4897 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4898 method.
4899 * dwarf2/attribute.c (attribute::value_as_string): New method.
4900
8c87a452
TT
49012020-04-24 Tom Tromey <tom@tromey.com>
4902
4903 * symtab.c (general_symbol_info::natural_name)
4904 (general_symbol_info::demangled_name): Check for language_rust.
4905
787de330
TT
49062020-04-24 Tom Tromey <tom@tromey.com>
4907
4908 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4909 (dwarf2_physname): ... from here.
4910 (partial_die_info::read): Add Rust "{" hack.
4911
ff985671
TT
49122020-04-24 Tom Tromey <tom@tromey.com>
4913
4914 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4915 method.
4916 (symbol_set_demangled_name): Don't declare.
4917 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4918 symbol_set_demangled_name.
4919 (general_symbol_info::set_language)
4920 (general_symbol_info::compute_and_set_names): Update.
4921 * minsyms.c (minimal_symbol_reader::install): Update.
4922 * dwarf2/read.c (new_symbol): Update.
4923
1acda803
TT
49242020-04-24 Tom Tromey <tromey@adacore.com>
4925
4926 PR python/23662:
4927 * python/py-type.c (convert_field): Handle
4928 FIELD_LOC_KIND_DWARF_BLOCK.
4929 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4930 (typy_get_dynamic): Nw function.
4931 (type_object_getset): Add "dynamic".
4932 * NEWS: Add entry.
4933
d656f129
TT
49342020-04-24 Tom Tromey <tromey@adacore.com>
4935
4936 * ada-typeprint.c (print_choices, print_variant_part)
4937 (print_record_field_types_dynamic): New functions.
4938 (print_record_field_types): Use print_record_field_types_dynamic.
4939
7d79de9a
TT
49402020-04-24 Tom Tromey <tromey@adacore.com>
4941
4942 * dwarf2/read.c (handle_data_member_location): New overload.
4943 (dwarf2_add_field): Use it.
4944 (decode_locdesc): Add "computed" parameter. Update comment.
4945 * gdbtypes.c (is_dynamic_type_internal): Also look for
4946 FIELD_LOC_KIND_DWARF_BLOCK.
4947 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4948 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4949 virtual base classes.
4950 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4951 FIELD_LOC_KIND_DWARF_BLOCK.
4952
f8e89861
TT
49532020-04-24 Tom Tromey <tromey@adacore.com>
4954
4955 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4956 * gdbtypes.c (is_dynamic_type_internal): Check
4957 TYPE_HAS_DYNAMIC_LENGTH.
4958 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4959 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4960 New macros.
4961 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4962 constant.
4963
9c6a1327
TT
49642020-04-24 Tom Tromey <tromey@adacore.com>
4965
4966 * dwarf2/read.c (struct variant_field): Rewrite.
4967 (struct variant_part_builder): New.
4968 (struct nextfield): Remove "variant" field. Add "offset".
4969 (struct field_info): Add "current_variant_part" and
4970 "variant_parts".
4971 (alloc_discriminant_info): Remove.
4972 (alloc_rust_variant): New function.
4973 (quirk_rust_enum): Update.
4974 (dwarf2_add_field): Set "offset" member. Don't handle
4975 DW_TAG_variant_part.
4976 (offset_map_type): New typedef.
4977 (convert_variant_range, create_one_variant)
4978 (create_one_variant_part, create_variant_parts)
4979 (add_variant_property): New functions.
4980 (dwarf2_attach_fields_to_type): Call add_variant_property.
4981 (read_structure_type): Don't handle DW_TAG_variant_part.
4982 (handle_variant_part, handle_variant): New functions.
4983 (handle_struct_member_die): Use them.
4984 (process_structure_scope): Don't handle variant parts.
4985 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4986 (struct discriminant_info): Remove.
4987 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4988 (struct main_type) <flag_discriminated_union>: Remove.
4989 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4990 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4991 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4992 Update.
4993 * valops.c (value_union_variant): Remove.
4994 * value.h (value_union_variant): Don't declare.
4995
b249d2c2
TT
49962020-04-24 Tom Tromey <tromey@adacore.com>
4997
4998 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4999 (ada_value_primitive_packed_val): Update.
5000 * ada-valprint.c (ada_value_print_1): Update.
5001 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5002 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5003 just an address. Use evaluate_for_locexpr_baton.
5004 (dwarf2_evaluate_property): Update.
5005 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5006 array_view.
5007 * findvar.c (default_read_var_value): Update.
5008 * gdbtypes.c (compute_variant_fields_inner)
5009 (resolve_dynamic_type_internal): Update.
5010 (resolve_dynamic_type): Change type of valaddr parameter.
5011 * gdbtypes.h (resolve_dynamic_type): Update.
5012 * valarith.c (value_subscripted_rvalue): Update.
5013 * value.c (value_from_contents_and_address): Update.
5014
61122aa9
TT
50152020-04-24 Tom Tromey <tromey@adacore.com>
5016
5017 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5018 "push_initial_value" parameter.
5019 (dwarf2_evaluate_property): Likewise.
5020 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5021
ef83a141
TT
50222020-04-24 Tom Tromey <tromey@adacore.com>
5023
5024 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5025 (variant::matches, compute_variant_fields_recurse)
5026 (compute_variant_fields_inner, compute_variant_fields): New
5027 functions.
5028 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5029 Use resolved_type after type is made.
5030 (operator==): Add new cases.
5031 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5032 (struct discriminant_range, struct variant, struct variant_part):
5033 New.
5034 (union dynamic_prop_data) <variant_parts, original_type>: New
5035 members.
5036 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5037 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5038 constants.
5039 * value.c (unpack_bits_as_long): Now public.
5040 * value.h (unpack_bits_as_long): Declare.
5041
675127ec
TT
50422020-04-24 Tom Tromey <tromey@adacore.com>
5043
5044 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5045 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5046
9852ceef
HD
50472020-04-24 Hannes Domani <ssbssa@yahoo.de>
5048
5049 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5050
7632c6ce
KR
50512020-04-24 Kamil Rytarowski <n54@gmx.com>
5052
5053 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5054 (remove_fork_catchpoint, post_startup_inferior)
5055 (post_attach): Move...
5056 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5057 (remove_fork_catchpoint, post_startup_inferior)
5058 (post_attach): ...here.
5059 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5060 (remove_fork_catchpoint, post_startup_inferior)
5061 (post_attach): Move...
5062 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5063 (remove_fork_catchpoint, post_startup_inferior)
5064 (post_attach): ...here.
5065
7be2bb4f
TT
50662020-04-24 Tom Tromey <tromey@adacore.com>
5067
5068 * nat/windows-nat.h (struct windows_thread_info)
5069 <pc_adjusted>: New member.
5070 * windows-nat.c (windows_fetch_one_register): Check
5071 pc_adjusted.
5072 (windows_nat_target::get_windows_debug_event)
5073 (windows_nat_target::wait): Set pc_adjusted.
5074
f80cb3b4
TV
50752020-04-24 Tom de Vries <tdevries@suse.de>
5076
5077 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5078 Run gdb-add-index inside temp dir.
5079
29514b87
TT
50802020-04-23 Tom Tromey <tromey@adacore.com>
5081
5082 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5083 in loop.
5084
5939967b
LM
50852020-04-23 Luis Machado <luis.machado@linaro.org>
5086
5087 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5088 get_frame_register instead of gdbarch_unwind_pc.
5089
70bc38f5
TV
50902020-04-23 Tom de Vries <tdevries@suse.de>
5091
5092 * symtab.c (lookup_global_symbol): Prefer def over decl.
5093
de82891c
TV
50942020-04-23 Tom de Vries <tdevries@suse.de>
5095
5096 PR symtab/25807
5097 * block.c (best_symbol, better_symbol): Promote to external.
5098 * block.h (best_symbol, better_symbol): Declare.
5099 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5100 decl.
5101
ecc6c606
TT
51022020-04-23 Tom Tromey <tromey@adacore.com>
5103
5104 PR ada/25837:
5105 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5106 "const char *", not a "const std::string &".
5107 <name_and_matcher::operator==>: Update.
5108 * unittests/lookup_name_info-selftests.c: Change type of
5109 "result".
5110
740480b8
TT
51112020-04-23 Tom Tromey <tom@tromey.com>
5112
5113 * inferior.h (iterate_over_inferiors): Don't declare.
5114 * inferior.c (iterate_over_inferiors): Remove.
5115 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5116 Remove.
5117 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5118 use iterate_over_inferiors.
5119 (darwin_resume_inferior_it)
5120 (struct resume_inferior_threads_param)
5121 (darwin_resume_inferior_threads_it): Remove.
5122 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5123
ae3ab1f0
TV
51242020-04-23 Tom de Vries <tdevries@suse.de>
5125
5126 * blockframe.c (find_pc_partial_function): Use
5127 find_pc_sect_compunit_symtab rather than
5128 objfile->sf->qf->find_pc_sect_compunit_symtab.
5129
317d2668
TV
51302020-04-22 Tom de Vries <tdevries@suse.de>
5131
5132 PR symtab/25764
5133 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5134 in psymtabs.
5135
eea9e357
TV
51362020-04-22 Tom de Vries <tdevries@suse.de>
5137
5138 PR symtab/25801
5139 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5140 symtabs.
5141
3d5afab3
TV
51422020-04-22 Tom de Vries <tdevries@suse.de>
5143
5144 PR symtab/25700
5145 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5146 CU if already created.
5147
d43b7a2d
TBA
51482020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5149
5150 * infrun.c (displaced_step_fixup): Switch to the event_thread
5151 before calling displaced_step_restore, not after.
5152
d89edf9b
MM
51532020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5154
5155 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5156 its inferior is not recorded by us.
5157 (record_btrace_target_open): Replace call to
5158 all_non_exited_threads () with call to current_inferior
5159 ()->non_exited_threads ().
5160 (record_btrace_target::stop_recording): Likewise.
5161 (record_btrace_target::close): Likewise.
5162 (record_btrace_target::wait): Likewise.
5163 (record_btrace_target::record_stop_replaying): Likewise.
5164
5897fd49
MM
51652020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5166
5167 * btrace.c (btrace_enable): Throw an error on double enables and
5168 when enabling recording fails.
5169 (btrace_disable): Throw an error if the thread is not recorded.
5170
1a476b6d
MM
51712020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5172
5173 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5174 request if we do not have a thread_info.
5175
4778a5f8
TV
51762020-04-21 Tom de Vries <tdevries@suse.de>
5177
5178 PR gdb/25471
5179 * thread.c
5180 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5181 exception in get_frame_id.
5182
0fa7617d
TT
51832020-04-20 Tom Tromey <tromey@adacore.com>
5184
5185 * python/python.c (struct gdbpy_event): Mark move constructor as
5186 noexcept.
5187 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5188 constructor as noexcept.
5189 * completer.h (struct completion_result): Mark move constructor as
5190 noexcept.
5191 * completer.c (completion_result::completion_result): Use
5192 initialization style. Don't call reset_match_list.
5193
ad23bda0
MS
51942020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5195
5196 * MAINTAINERS (Write After Approval): Add myself.
5197
45e1f031
TT
51982020-04-18 Tom Tromey <tom@tromey.com>
5199
5200 * windows-tdep.c (init_w32_command_list)
5201 (w32_prefix_command_valid): Restore.
5202 (_initialize_windows_tdep): Call init_w32_command_list.
5203
08feed99
TT
52042020-04-18 Tom Tromey <tom@tromey.com>
5205
5206 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5207 * value.c (value_fn_field): Update.
5208 * valops.c (find_function_in_inferior)
5209 (value_allocate_space_in_inferior): Update.
5210 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5211 Update.
5212 * tui/tui-source.c (tui_source_window::set_contents): Update.
5213 * symtab.c (lookup_global_or_static_symbol)
5214 (find_function_start_sal_1, skip_prologue_sal)
5215 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5216 * symmisc.c (dump_msymbols, dump_symtab_1)
5217 (maintenance_print_one_line_table): Update.
5218 * symfile.c (init_entry_point_info, section_is_mapped)
5219 (list_overlays_command, simple_read_overlay_table)
5220 (simple_overlay_update_1): Update.
5221 * stap-probe.c (handle_stap_probe): Update.
5222 * stabsread.c (dbx_init_float_type, define_symbol)
5223 (read_one_struct_field, read_enum_type, read_range_type): Update.
5224 * source.c (info_line_command): Update.
5225 * python/python.c (gdbpy_source_objfile_script)
5226 (gdbpy_execute_objfile_script): Update.
5227 * python/py-type.c (save_objfile_types): Update.
5228 * python/py-objfile.c (py_free_objfile): Update.
5229 * python/py-inferior.c (python_new_objfile): Update.
5230 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5231 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5232 (maintenance_check_psymtabs): Update.
5233 * printcmd.c (info_address_command): Update.
5234 * objfiles.h (struct objfile) <arch>: New method, from
5235 get_objfile_arch.
5236 (get_objfile_arch): Don't declare.
5237 * objfiles.c (get_objfile_arch): Remove.
5238 (filter_overlapping_sections): Update.
5239 * minsyms.c (msymbol_is_function): Update.
5240 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5241 (output_nondebug_symbol): Update.
5242 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5243 (mdebug_expand_psymtab): Update.
5244 * machoread.c (macho_add_oso_symfile): Update.
5245 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5246 Update.
5247 * linux-fork.c (checkpoint_command): Update.
5248 * linespec.c (convert_linespec_to_sals): Update.
5249 * jit.c (finalize_symtab): Update.
5250 * infrun.c (insert_exception_resume_from_probe): Update.
5251 * ia64-tdep.c (ia64_find_unwind_table): Update.
5252 * hppa-tdep.c (internalize_unwinds): Update.
5253 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5254 Update.
5255 * gcore.c (call_target_sbrk): Update.
5256 * elfread.c (record_minimal_symbol, elf_symtab_read)
5257 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5258 (elf_gnu_ifunc_resolve_by_got): Update.
5259 * dwarf2/read.c (create_addrmap_from_index)
5260 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5261 (read_debug_names_from_section)
5262 (process_psymtab_comp_unit_reader, add_partial_symbol)
5263 (add_partial_subprogram, process_full_comp_unit)
5264 (read_file_scope, read_func_scope, read_lexical_block_scope)
5265 (read_call_site_scope, dwarf2_ranges_read)
5266 (dwarf2_record_block_ranges, dwarf2_add_field)
5267 (mark_common_block_symbol_computed, read_tag_pointer_type)
5268 (read_tag_string_type, dwarf2_init_float_type)
5269 (dwarf2_init_complex_target_type, read_base_type)
5270 (partial_die_info::read, partial_die_info::read)
5271 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5272 (dwarf2_fetch_die_loc_sect_off): Update.
5273 * dwarf2/loc.c (dwarf2_find_location_expression)
5274 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5275 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5276 (dwarf2_loc_desc_get_symbol_read_needs)
5277 (locexpr_describe_location_piece, locexpr_describe_location_1)
5278 (loclist_describe_location): Update.
5279 * dwarf2/index-write.c (write_debug_names): Update.
5280 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5281 * dtrace-probe.c (dtrace_process_dof): Update.
5282 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5283 (process_one_symbol): Update.
5284 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5285 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5286 (coff_read_enum_type): Update.
5287 * cli/cli-cmds.c (edit_command, list_command): Update.
5288 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5289 * breakpoint.c (create_overlay_event_breakpoint)
5290 (create_longjmp_master_breakpoint)
5291 (create_std_terminate_master_breakpoint)
5292 (create_exception_master_breakpoint, get_sal_arch): Update.
5293 * block.c (block_gdbarch): Update.
5294 * annotate.c (annotate_source_line): Update.
5295
0743fc83
TT
52962020-04-17 Tom Tromey <tromey@adacore.com>
5297
5298 * auto-load.c (show_auto_load_cmd): Remove.
5299 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5300 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5301 (maintenance_print_arc_command): Remove.
5302 * tui/tui-win.c (tui_command): Remove.
5303 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5304 * tui/tui-layout.c (tui_layout_command): Remove.
5305 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5306 * python/python.c (user_set_python, user_show_python): Remove.
5307 (_initialize_python): Use add_basic_prefix_cmd,
5308 add_show_prefix_cmd.
5309 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5310 (install_gdb_commands): Use add_basic_prefix_cmd,
5311 add_show_prefix_cmd.
5312 (info_guile_command): Remove.
5313 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5314 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5315 add_show_prefix_cmd.
5316 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5317 Remove do_set and do_show parameters.
5318 * cli/cli-style.c (set_style, show_style): Remove.
5319 (_initialize_cli_style): Use add_basic_prefix_cmd,
5320 add_show_prefix_cmd.
5321 (cli_style_option::add_setshow_commands): Remove do_set and
5322 do_show parameters.
5323 (cli_style_option::add_setshow_commands): Use
5324 add_basic_prefix_cmd, add_show_prefix_cmd.
5325 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5326 (set_style_name): Remove.
5327 * cli/cli-dump.c (dump_command, append_command): Remove.
5328 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5329 (tekhex_dump_command, binary_dump_command)
5330 (binary_append_command): Remove.
5331 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5332 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5333 (init_w32_command_list): Remove; move into ...
5334 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5335 * valprint.c (set_print, show_print, set_print_raw)
5336 (show_print_raw): Remove.
5337 (_initialize_valprint): Use add_basic_prefix_cmd,
5338 add_show_prefix_cmd.
5339 * typeprint.c (set_print_type, show_print_type): Remove.
5340 (_initialize_typeprint): Use add_basic_prefix_cmd,
5341 add_show_prefix_cmd.
5342 * record.c (set_record_command, show_record_command): Remove.
5343 (_initialize_record): Use add_basic_prefix_cmd,
5344 add_show_prefix_cmd.
5345 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5346 add_show_prefix_cmd.
5347 (info_command, show_command, set_debug, show_debug): Remove.
5348 * top.h (set_history, show_history): Don't declare.
5349 * top.c (set_history, show_history): Remove.
5350 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5351 (unset_tdesc_cmd): Remove.
5352 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5353 add_show_prefix_cmd.
5354 * symtab.c (info_module_command): Remove.
5355 (_initialize_symtab): Use add_basic_prefix_cmd.
5356 * symfile.c (overlay_command): Remove.
5357 (_initialize_symfile): Use add_basic_prefix_cmd.
5358 * sparc64-tdep.c (info_adi_command): Remove.
5359 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5360 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5361 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5362 add_show_prefix_cmd.
5363 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5364 (_initialize_serial): Use add_basic_prefix_cmd,
5365 add_show_prefix_cmd.
5366 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5367 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5368 add_show_prefix_cmd.
5369 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5370 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5371 add_show_prefix_cmd.
5372 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5373 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5374 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5375 add_show_prefix_cmd.
5376 * remote.c (remote_command, set_remote_cmd): Remove.
5377 (_initialize_remote): Use add_basic_prefix_cmd.
5378 * record-full.c (set_record_full_command)
5379 (show_record_full_command): Remove.
5380 (_initialize_record_full): Use add_basic_prefix_cmd,
5381 add_show_prefix_cmd.
5382 * record-btrace.c (cmd_set_record_btrace)
5383 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5384 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5385 (cmd_show_record_btrace_pt): Remove.
5386 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5387 add_show_prefix_cmd.
5388 * ravenscar-thread.c (set_ravenscar_command)
5389 (show_ravenscar_command): Remove.
5390 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5391 add_show_prefix_cmd.
5392 * mips-tdep.c (show_mips_command, set_mips_command)
5393 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5394 add_show_prefix_cmd.
5395 * maint.c (maintenance_command, maintenance_info_command)
5396 (maintenance_check_command, maintenance_print_command)
5397 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5398 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5399 add_show_prefix_cmd.
5400 (show_per_command_cmd): Remove.
5401 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5402 Remove.
5403 (maintenance_show_test_settings_cmd): Remove.
5404 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5405 add_show_prefix_cmd.
5406 * maint-test-options.c (maintenance_test_options_command):
5407 Remove.
5408 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5409 * macrocmd.c (macro_command): Remove
5410 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5411 * language.c (set_check, show_check): Remove.
5412 (_initialize_language): Use add_basic_prefix_cmd,
5413 add_show_prefix_cmd.
5414 * infcmd.c (unset_command): Remove.
5415 (_initialize_infcmd): Use add_basic_prefix_cmd.
5416 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5417 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5418 add_show_prefix_cmd.
5419 * go32-nat.c (go32_info_dos_command): Remove.
5420 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5421 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5422 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5423 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5424 (_initialize_frame): Use add_basic_prefix_cmd,
5425 add_show_prefix_cmd.
5426 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5427 (_initialize_dcache): Use add_basic_prefix_cmd,
5428 add_show_prefix_cmd.
5429 * cp-support.c (maint_cplus_command): Remove.
5430 (_initialize_cp_support): Use add_basic_prefix_cmd.
5431 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5432 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5433 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5434 add_basic_prefix_cmd, add_show_prefix_cmd.
5435 * breakpoint.c (save_command): Remove.
5436 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5437 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5438 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5439 add_show_prefix_cmd.
5440 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5441 (set_ada_command, show_ada_command): Remove.
5442 (_initialize_ada_language): Use add_basic_prefix_cmd,
5443 add_show_prefix_cmd.
5444 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5445
3557f442
KR
54462020-04-16 Kamil Rytarowski <n54@gmx.com>
5447
5448 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5449 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5450
16197208
SM
54512020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5452
5453 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5454 warning messages.
5455
00ac85d3
SM
54562020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5457
5458 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5459 import table is not at beginning of .idata section.
5460
381ce63f
PA
54612020-04-16 Pedro Alves <palves@redhat.com>
5462
5463 * inferior.c (delete_inferior): Use delete operator directly
5464 instead of delete_program_space.
5465 * progspace.c (add_program_space): New, factored out from
5466 program_space::program_space.
5467 (remove_program_space): New, factored out from
5468 delete_program_space.
5469 (program_space::program_space): Remove intro comment. Rewrite.
5470 (program_space::~program_space): Remove intro comment. Call
5471 remove_program_space.
5472 (delete_program_space): Delete.
5473 * progspace.h (program_space::program_space): Make explicit. Move
5474 intro comment here, adjusted.
5475 (program_space::~program_space): Move intro comment here,
5476 adjusted.
5477 (delete_program_space): Remove.
5478
a010605f
TT
54792020-04-16 Tom Tromey <tromey@adacore.com>
5480
5481 * windows-nat.c (windows_nat::handle_access_violation): New
5482 function.
5483 * nat/windows-nat.h (handle_access_violation): Declare.
5484 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5485 windows-nat.c. Call handle_access_violation.
5486
efba5c23
TV
54872020-04-16 Tom de Vries <tdevries@suse.de>
5488
5489 PR symtab/25791
5490 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5491 CUs without psymtab.
5492
97ed802d
KB
54932020-04-16 Kevin Buettner <kevinb@redhat.com>
5494
5495 * python/python.c (do_start_initialization): Don't call
5496 PyEval_InitThreads for Python 3.9 and beyond.
5497
c7d64809
KR
54982020-04-15 Kamil Rytarowski <n54@gmx.com>
5499
5500 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5501 thread functions.
5502 (obsd_nat_target::wait): Likewise.
5503
ce127a96
TT
55042020-04-15 Tom Tromey <tromey@adacore.com>
5505
5506 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5507 (DEBUG_EXCEPT): Use debug_printf.
5508
99f1bc6a
AB
55092020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5510
5511 * completer.c (class completion_tracker::completion_hash_entry)
5512 <hash_name>: New member function.
5513 (completion_tracker::discard_completions): New callback to hash a
5514 completion_hash_entry, pass this to htab_create_alloc.
5515
a0e9b532
JT
55162016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5517
5518 * windows-nat.c (windows_make_so): Warn rather than stopping with
5519 an error if realpath() fails.
5520
06ca5dd4
KR
55212020-04-14 Kamil Rytarowski <n54@gmx.com>
5522
5523 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5524 (nbsd_nat_target::info_proc): Add do_status.
5525
194d088f
TV
55262020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5527 Tom de Vries <tdevries@suse.de>
5528
5529 PR symtab/25718
5530 * psympriv.h (struct partial_symtab::read_symtab)
5531 (struct partial_symtab::expand_psymtab)
5532 (struct partial_symtab::read_dependencies): Update comments.
5533 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5534 read_symtab for includer.
5535 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5536 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5537 (struct dwarf2_include_psymtab::m_readin): Remove.
5538 (struct dwarf2_include_psymtab::includer): New member function.
5539 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5540
c1a66c06
TV
55412020-04-14 Tom de Vries <tdevries@suse.de>
5542
5543 PR symtab/25720
5544 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5545 with NULL symbol_matcher and lookup_name.
5546 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5547 and lookup_name.
5548 * dwarf2/read.c (dw2_expand_symtabs_matching)
5549 (dw2_debug_names_expand_symtabs_matching): Same.
5550 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5551 Make lookup_name a pointer. Update comment.
5552 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5553 lookup_name being a pointer.
5554 * symfile.c (expand_symtabs_matching): Same.
5555 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5556 * linespec.c (iterate_over_all_matching_symtabs): Same.
5557
400b5eca
TT
55582020-04-13 Tom Tromey <tom@tromey.com>
5559
5560 * run-on-main-thread.c: Update include.
5561 * unittests/main-thread-selftests.c: Update include.
5562 * tui/tui-win.c: Update include.
5563 * tui/tui-io.c: Update include.
5564 * tui/tui-interp.c: Update include.
5565 * tui/tui-hooks.c: Update include.
5566 * top.h: Update include.
5567 * top.c: Update include.
5568 * ser-base.c: Update include.
5569 * remote.c: Update include.
5570 * remote-notif.c: Update include.
5571 * remote-fileio.c: Update include.
5572 * record-full.c: Update include.
5573 * record-btrace.c: Update include.
5574 * python/python.c: Update include.
5575 * posix-hdep.c: Update include.
5576 * mingw-hdep.c: Update include.
5577 * mi/mi-main.c: Update include.
5578 * mi/mi-interp.c: Update include.
5579 * main.c: Update include.
5580 * linux-nat.c: Update include.
5581 * interps.c: Update include.
5582 * infrun.c: Update include.
5583 * inf-loop.c: Update include.
5584 * event-top.c: Update include.
5585 * event-loop.c: Move to ../gdbsupport/.
5586 * event-loop.h: Move to ../gdbsupport/.
5587 * async-event.h: Update include.
5588 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5589
93b54c8e
TT
55902020-04-13 Tom Tromey <tom@tromey.com>
5591
5592 * tui/tui-win.c: Include async-event.h.
5593 * remote.c: Include async-event.h.
5594 * remote-notif.c: Include async-event.h.
5595 * record-full.c: Include async-event.h.
5596 * record-btrace.c: Include async-event.h.
5597 * infrun.c: Include async-event.h.
5598 * event-top.c: Include async-event.h.
5599 * event-loop.h: Move some declarations to async-event.h.
5600 * event-loop.c: Don't include ser-event.h or top.h. Move some
5601 code to async-event.c.
5602 * async-event.h: New file.
5603 * async-event.c: New file.
5604 * Makefile.in (COMMON_SFILES): Add async-event.c.
5605 (HFILES_NO_SRCDIR): Add async-event.h.
5606
c1cd3163
TT
56072020-04-13 Tom Tromey <tom@tromey.com>
5608
5609 * utils.c (flush_streams): New function.
5610 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5611
29f2bf4f
TT
56122020-04-13 Tom Tromey <tom@tromey.com>
5613
5614 * event-loop.c (handle_file_event): Use warning, not
5615 printf_unfiltered.
5616
98029d02
TT
56172020-04-13 Tom Tromey <tom@tromey.com>
5618
5619 * event-loop.c: Include <chrono>.
5620
06cc9596
TT
56212020-04-13 Tom Tromey <tom@tromey.com>
5622
5623 * gdb_select.h: Move to ../gdbsupport/.
5624 * event-loop.c: Update include path.
5625 * top.c: Update include path.
5626 * ser-base.c: Update include path.
5627 * ui-file.c: Update include path.
5628 * ser-tcp.c: Update include path.
5629 * guile/scm-ports.c: Update include path.
5630 * posix-hdep.c: Update include path.
5631 * ser-unix.c: Update include path.
5632 * gdb_usleep.c: Update include path.
5633 * mingw-hdep.c: Update include path.
5634 * inflow.c: Update include path.
5635 * infrun.c: Update include path.
5636 * event-top.c: Update include path.
5637
8ae8e197
TT
56382020-04-13 Tom Tromey <tom@tromey.com>
5639
5640 * configure: Rebuild.
5641 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5642
58cf28e8
TT
56432020-04-13 Tom Tromey <tom@tromey.com>
5644
5645 * event-loop.h (start_event_loop): Don't declare.
5646 * event-loop.c (start_event_loop): Move...
5647 * main.c (start_event_loop): ...here. Now static.
5648
b7f999ae
SDJ
56492020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5650
5651 * MAINTAINERS: Update my email address.
5652
1085dfd4
KR
56532020-04-12 Kamil Rytarowski <n54@gmx.com>
5654
5655 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5656 IP_ALL.
5657
49d1d1f5
KR
56582020-04-12 Kamil Rytarowski <n54@gmx.com>
5659
5660 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5661 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5662
b4848d2a
KR
56632020-04-12 Kamil Rytarowski <n54@gmx.com>
5664
5665 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5666 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5667
51c133d5
KR
56682020-04-12 Kamil Rytarowski <n54@gmx.com>
5669
5670 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5671
54b8cbd0
KR
56722020-04-11 Kamil Rytarowski <n54@gmx.com>
5673
5674 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5675 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5676 (nbsd_nat_target::info_proc): New functions.
5677 * nbsd-nat.c (kinfo_get_vmmap): New function.
5678 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5679 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5680 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5681 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5682 functions.
5683 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5684 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5685 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5686 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5687 (KINFO_VME_FLAG_GROWS_DOWN): New.
5688
cf83625d
AS
56892020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5690
5691 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5692 bit shift.
5693
0c4311ab
TT
56942020-04-10 Tom Tromey <tromey@adacore.com>
5695
5696 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5697
3e65b3e9
TT
56982020-04-10 Tom Tromey <tromey@adacore.com>
5699
5700 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5701 separate debug files.
5702
13302e95
HD
57032020-04-10 Hannes Domani <ssbssa@yahoo.de>
5704
5705 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5706 Move to...
5707 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5708 ... here.
5709 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5710 Check for STATUS_WX86_BREAKPOINT.
5711 (windows_nat_target::wait): Same.
5712
bdfc1e8a
TV
57132020-04-10 Tom de Vries <tdevries@suse.de>
5714
5715 PR cli/25808
5716 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5717
f4460aec
SM
57182020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5719
5720 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5721 (Write After Approval): Remove Tom de Vries.
5722
a25198bb
BE
57232020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5724
5725 revert partially:
5726 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5727
aac66a4c
SM
5728 * buildsym.c (record_line): Fix undefined behavior and preserve
5729 lines at eof.
a25198bb 5730
206c98a6
KR
57312020-04-09 Kamil Rytarowski <n54@gmx.com>
5732
5733 * auxv.h (svr4_auxv_parse): New.
5734 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5735 and generic_auxv_parse.
5736 (svr4_auxv_parse): Add.
5737 * obsd-tdep.c: Include "auxv.h".
5738 (obsd_auxv_parse): Remove.
5739 (obsd_init_abi): Remove comment.
5740 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5741 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5742 * nbsd-tdep.c: Include "auxv.h".
5743 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5744
71fbdbaf
TT
57452020-04-08 Tom Tromey <tromey@adacore.com>
5746
5747 * nat/windows-nat.h (last_wait_event): Don't declare.
5748 (wait_for_debug_event): Update comment.
5749 * nat/windows-nat.c (last_wait_event): Now static.
5750
2c1d95e8
TT
57512020-04-08 Tom Tromey <tromey@adacore.com>
5752
5753 * windows-nat.c (wait_for_debug_event): Move to
5754 nat/windows-nat.c.
5755 * nat/windows-nat.h (wait_for_debug_event): Declare.
5756 * nat/windows-nat.c (wait_for_debug_event): Move from
5757 windows-nat.c. No longer static.
5758
d2977bc4
TT
57592020-04-08 Tom Tromey <tromey@adacore.com>
5760
5761 * windows-nat.c (get_windows_debug_event): Use
5762 fetch_pending_stop.
5763 * nat/windows-nat.h (fetch_pending_stop): Declare.
5764 * nat/windows-nat.c (fetch_pending_stop): New function.
5765
e758e19c
TT
57662020-04-08 Tom Tromey <tromey@adacore.com>
5767
5768 * windows-nat.c (windows_continue): Use matching_pending_stop and
5769 continue_last_debug_event.
5770 * nat/windows-nat.h (matching_pending_stop)
5771 (continue_last_debug_event): Declare.
5772 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5773 (matching_pending_stop, continue_last_debug_event): New
5774 functions.
5775
8d30e395
TT
57762020-04-08 Tom Tromey <tromey@adacore.com>
5777
5778 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5779 (handle_exception_result): Move to nat/windows-nat.h.
5780 (DEBUG_EXCEPTION_SIMPLE): Remove.
5781 (windows_nat::handle_ms_vc_exception): New function.
5782 (handle_exception): Move to nat/windows-nat.c.
5783 (get_windows_debug_event): Update.
5784 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5785 nat/windows-nat.c.
5786 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5787 (handle_exception_result): Move from windows-nat.c.
5788 (handle_exception): Declare.
5789 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5790 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5791 windows-nat.c.
5792
29de418d
TT
57932020-04-08 Tom Tromey <tromey@adacore.com>
5794
5795 * windows-nat.c (exception_count, event_count): Remove.
5796 (handle_exception, get_windows_debug_event)
5797 (do_initial_windows_stuff): Update.
5798
a816ba18
TT
57992020-04-08 Tom Tromey <tromey@adacore.com>
5800
5801 * windows-nat.c (windows_nat::handle_load_dll)
5802 (windows_nat::handle_unload_dll): Rename. No longer static.
5803 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5804 Declare.
5805
a00caa12
TT
58062020-04-08 Tom Tromey <tromey@adacore.com>
5807
5808 * complaints.h (stop_whining): Declare at top-level.
5809 (complaint): Don't declare stop_whining.
5810
d41b524f
TT
58112020-04-08 Tom Tromey <tromey@adacore.com>
5812
5813 * windows-nat.c (windows_nat::handle_output_debug_string):
5814 Rename. No longer static.
5815 * nat/windows-nat.h (handle_output_debug_string): Declare.
5816
3c76026d
TT
58172020-04-08 Tom Tromey <tromey@adacore.com>
5818
5819 * windows-nat.c (current_process_handle, current_process_id)
5820 (main_thread_id, last_sig, current_event, last_wait_event)
5821 (current_windows_thread, desired_stop_thread_id, pending_stops)
5822 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5823 (display_selectors, fake_create_process)
5824 (get_windows_debug_event): Update.
5825 * nat/windows-nat.h (current_process_handle, current_process_id)
5826 (main_thread_id, last_sig, current_event, last_wait_event)
5827 (current_windows_thread, desired_stop_thread_id, pending_stops)
5828 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5829 * nat/windows-nat.c (current_process_handle, current_process_id)
5830 (main_thread_id, last_sig, current_event, last_wait_event)
5831 (current_windows_thread, desired_stop_thread_id, pending_stops)
5832 (siginfo_er): New globals. Move from windows-nat.c.
5833
9d8679cc
TT
58342020-04-08 Tom Tromey <tromey@adacore.com>
5835
5836 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5837 (handle_load_dll): Update.
5838 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5839
28688adf
TT
58402020-04-08 Tom Tromey <tromey@adacore.com>
5841
5842 * windows-nat.c (enum thread_disposition_type): Move to
5843 nat/windows-nat.h.
5844 (windows_nat::thread_rec): Rename from thread_rec. No longer
5845 static.
5846 (windows_add_thread, windows_nat_target::fetch_registers)
5847 (windows_nat_target::store_registers, handle_exception)
5848 (windows_nat_target::resume, get_windows_debug_event)
5849 (windows_nat_target::get_tib_address)
5850 (windows_nat_target::thread_name)
5851 (windows_nat_target::thread_alive): Update.
5852 * nat/windows-nat.h (enum thread_disposition_type): Move from
5853 windows-nat.c.
5854 (thread_rec): Declare.
5855
4834dad0
TT
58562020-04-08 Tom Tromey <tromey@adacore.com>
5857
5858 * windows-nat.c: Add "using namespace".
5859 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5860 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5861
65bafd5b
TT
58622020-04-08 Tom Tromey <tromey@adacore.com>
5863
5864 * nat/windows-nat.h (struct windows_thread_info): Declare
5865 destructor.
5866 * nat/windows-nat.c (~windows_thread_info): New.
5867
0a4afda3
TT
58682020-04-08 Tom Tromey <tromey@adacore.com>
5869
5870 PR gdb/22992
5871 * windows-nat.c (current_event): Update comment.
5872 (last_wait_event, desired_stop_thread_id): New globals.
5873 (struct pending_stop): New.
5874 (pending_stops): New global.
5875 (windows_nat_target) <stopped_by_sw_breakpoint>
5876 <supports_stopped_by_sw_breakpoint>: New methods.
5877 (windows_fetch_one_register): Add assertions. Adjust PC.
5878 (windows_continue): Handle pending stops. Suspend other threads
5879 when stepping. Use last_wait_event
5880 (wait_for_debug_event): New function.
5881 (get_windows_debug_event): Use wait_for_debug_event. Handle
5882 pending stops. Queue spurious stops.
5883 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5884 (windows_nat_target::kill): Use wait_for_debug_event.
5885 * nat/windows-nat.h (struct windows_thread_info)
5886 <stopped_at_software_breakpoint>: New field.
5887 * nat/windows-nat.c (windows_thread_info::resume): Clear
5888 stopped_at_software_breakpoint.
5889
8e61ebec
TT
58902020-04-08 Tom Tromey <tromey@adacore.com>
5891
5892 * windows-nat.c (enum thread_disposition_type): New.
5893 (thread_rec): Replace "get_context" parameter with "disposition";
5894 change type.
5895 (windows_add_thread, windows_nat_target::fetch_registers)
5896 (windows_nat_target::store_registers, handle_exception)
5897 (windows_nat_target::resume, get_windows_debug_event)
5898 (windows_nat_target::get_tib_address)
5899 (windows_nat_target::thread_name)
5900 (windows_nat_target::thread_alive): Update.
5901
98a03287
TT
59022020-04-08 Tom Tromey <tromey@adacore.com>
5903
5904 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5905 (windows_continue): Use windows_continue::resume.
5906 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5907 resume>: Declare new methods.
5908 * nat/windows-nat.c: New file.
5909 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5910
7c7411bc
TT
59112020-04-08 Tom Tromey <tromey@adacore.com>
5912
5913 * windows-nat.c (windows_add_thread, windows_delete_thread)
5914 (windows_nat_target::fetch_registers)
5915 (windows_nat_target::store_registers, fake_create_process)
5916 (windows_nat_target::resume, windows_nat_target::resume)
5917 (get_windows_debug_event, windows_nat_target::wait)
5918 (windows_nat_target::pid_to_str)
5919 (windows_nat_target::get_tib_address)
5920 (windows_nat_target::get_ada_task_ptid)
5921 (windows_nat_target::thread_name)
5922 (windows_nat_target::thread_alive): Use lwp, not tid.
5923
2950fdf7
TT
59242020-04-08 Tom Tromey <tromey@adacore.com>
5925
5926 * windows-nat.c (handle_exception)
5927 (windows_nat_target::thread_name): Update.
5928 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5929 <name>: Now unique_xmalloc_ptr.
5930
62fe396b
TT
59312020-04-08 Tom Tromey <tromey@adacore.com>
5932
5933 * windows-nat.c (thread_rec)
5934 (windows_nat_target::fetch_registers): Update.
5935 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5936 Update comment.
5937 <debug_registers_changed, reload_context>: Now bool.
5938
e9534bd2
TT
59392020-04-08 Tom Tromey <tromey@adacore.com>
5940
5941 * windows-nat.c (windows_add_thread): Use new.
5942 (windows_init_thread_list, windows_delete_thread): Use delete.
5943 (get_windows_debug_event): Update.
5944 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5945 destructor, and initializers.
5946
ae1f8880
TT
59472020-04-08 Tom Tromey <tromey@adacore.com>
5948
5949 * windows-nat.c (struct windows_thread_info): Remove.
5950 * nat/windows-nat.h: New file.
5951
55a1e039
TT
59522020-04-08 Tom Tromey <tromey@adacore.com>
5953
5954 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5955 (thread_rec, windows_add_thread, windows_delete_thread)
5956 (windows_continue): Update.
5957
93366324
TT
59582020-04-08 Tom Tromey <tromey@adacore.com>
5959
5960 * windows-nat.c (struct windows_thread_info): Remove typedef.
5961 (thread_head): Remove.
5962 (thread_list): New global.
5963 (thread_rec, windows_add_thread, windows_init_thread_list)
5964 (windows_delete_thread, windows_continue): Update.
5965
0f2265e2
SM
59662020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5967
5968 * windows-tdep.h (windows_init_abi): Add comment.
5969 (cygwin_init_abi): New declaration.
5970 * windows-tdep.c: Split signal enumeration in two, one for
5971 Windows and one for Cygwin.
5972 (windows_gdb_signal_to_target): Only deal with signal of the
5973 Windows OS ABI.
5974 (cygwin_gdb_signal_to_target): New function.
5975 (windows_init_abi): Rename to windows_init_abi_common, don't set
5976 gdb_signal_to_target gdbarch method. Add new new function with
5977 this name.
5978 (cygwin_init_abi): New function.
5979 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5980 comment. Don't call windows_init_abi.
5981 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5982 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5983 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5984 i386_windows_init_abi_common, don't call windows_init_abi. Add
5985 a new function of this name.
5986 (i386_cygwin_init_abi): New function.
5987 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5988 OS ABI Cygwin.
5989
3810f182
SM
59902020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5991
5992 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5993 parameter.c.
5994 (dwarf2_read_gdb_index): Update.
5995
063f8e80
KR
59962020-04-07 Kamil Rytarowski <n54@gmx.com>
5997
5998 * nbsd-tdep.c: Include "objfiles.h".
5999 (nbsd_skip_solib_resolver): New.
6000 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6001
85a9510c 60022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6003
6004 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6005 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6006 with DW_LLE_base_addressx are being emitted in DWARFv5.
6007 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6008 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6009 unsigned integer.
6010
9fc3eaae 60112020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6012
6013 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6014 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6015 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6016 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6017 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6018 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6019 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6020
6021
41144253 60222020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6023
6024 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6025 (read_loclist_index): New function definition.
6026 (lookup_loclist_base): New function definition.
6027 (read_loclist_header): New function definition.
6028 (dwarf2_cu): Add loclist_base and loclist_header field.
6029 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6030 (read_full_die_1): Read the value of DW_AT_loclists_base.
6031 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6032 (read_attribute_value): Handle DW_FORM_loclistx.
6033 (skip_one_die): Handle DW_FORM_loclistx.
6034 (loclist_header): New structure declaration.
6035 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6036
9f4e76a4
SM
60372020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6038
6039 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6040 constructor. Remove `addr` parameter from other constructor and
6041 add `per_cu` parameter.
6042 * dwarf2/read.c (create_partial_symtab): Update.
6043
25c11aca
TV
60442020-04-07 Tom de Vries <tdevries@suse.de>
6045
6046 PR symtab/25796
6047 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6048 (partial_die_info::fixup): Inherit has_const_value.
6049
5707e24b
TV
60502020-04-07 Tom de Vries <tdevries@suse.de>
6051
6052 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6053 symbols without address.
6054
05f00e22
KR
60552020-04-06 Kamil Rytarowski <n54@gmx.com>
6056
6057 * nbsd-nat.h (struct thread_info): Add forward declaration.
6058 (nbsd_nat_target::thread_alive): Add.
6059 (nbsd_nat_target::thread_name): Likewise.
6060 (nbsd_nat_target::update_thread_list): Likewise.
6061 (update_thread_list::post_attach): Likewise.
6062 (post_attach::pid_to_str): Likewise.
6063 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6064 (nbsd_thread_lister): Add.
6065 (nbsd_nat_target::thread_alive): Likewise.
6066 (nbsd_nat_target::thread_name): Likewise.
6067 (nbsd_add_threads): Likewise.
6068 (update_thread_list::post_attach): Likewise.
6069 (nbsd_nat_target::update_thread_list): Likewise.
6070 (post_attach::pid_to_str): Likewise.
6071
6ee448cc
TT
60722020-04-06 Tom Tromey <tromey@adacore.com>
6073
6074 * ada-valprint.c (print_variant_part): Extract the variant field.
6075 (print_field_values): Use the field as the outer value when
6076 recursing.
6077
dea34e8c
TT
60782020-04-06 Tom Tromey <tromey@adacore.com>
6079
6080 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6081 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6082 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6083 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6084 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6085
93689ce9
TT
60862020-04-06 Tom Tromey <tromey@adacore.com>
6087
6088 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6089 TYPE_CODE_ERROR.
6090
79743962
KR
60912020-04-06 Kamil Rytarowski <n54@gmx.com>
6092
6093 * nbsd-tdep.c: Include "gdbarch.h".
6094 Define enum with NetBSD signal numbers.
6095 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6096 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6097 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6098 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6099 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6100 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6101 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6102 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6103 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6104 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6105 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6106 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6107
9e7c9a03
HD
61082020-04-03 Hannes Domani <ssbssa@yahoo.de>
6109
6110 PR gdb/25325
6111 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6112
d9e49b61
TT
61132020-04-03 Tom Tromey <tromey@adacore.com>
6114
6115 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6116 Read constant block.
6117
e0fc5c3f
SM
61182020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6119
6120 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6121 (gdb_bfd_get_full_section_contents): New declaration.
6122 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6123 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6124 gdb_bfd_get_full_section_contents.
6125
e2ff18a0
SM
61262020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6127
6128 * exec.c (build_section_table): Replace internal_error with
6129 gdb_assert.
6130 (section_table_xfer_memory_partial): Likewise.
6131 * mdebugread.c (parse_partial_symbols): Likewise.
6132 * psymtab.c (lookup_partial_symbol): Likewise.
6133 * utils.c (wrap_here): Likewise.
6134
0830d301
TT
61352020-04-02 Tom Tromey <tromey@adacore.com>
6136
6137 * f-lang.c (build_fortran_types): Use arch_type to initialize
6138 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6139
e7da7f8f
TT
61402020-04-02 Tom Tromey <tromey@adacore.com>
6141
6142 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6143 of attributes.
6144
c90d28ac
AB
61452020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6146 Bernd Edlinger <bernd.edlinger@hotmail.de>
6147 Tom Tromey <tromey@adacore.com>
6148
6149 * buildsym.c (buildsym_compunit::record_line): Remove
6150 deduplication code.
6151
1aa98955
TV
61522020-04-02 Tom de Vries <tdevries@suse.de>
6153
6154 PR ada/24671
6155 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6156
d3214198
TV
61572020-04-02 Tom de Vries <tdevries@suse.de>
6158
6159 * dwarf2/read.c (dwarf2_gdb_index_functions,
6160 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6161 NULL.
6162 * psymtab.c (psym_lookup_global_symbol_language): New function.
6163 (psym_functions): Init psym_lookup_global_symbol_language with
6164 psym_lookup_global_symbol_language.
6165 * symfile-debug.c (debug_sym_quick_functions): Init
6166 lookup_global_symbol_language with NULL.
6167 * symfile.c (set_initial_language): Remove fixme comment.
6168 * symfile.h (struct quick_symbol_functions): Add
6169 lookup_global_symbol_language.
6170 * symtab.c (find_quick_global_symbol_language): New function.
6171 (find_main_name): Use find_quick_global_symbol_language.
6172
2836752f
SM
61732020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6174
6175 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6176
64dc2d4b
BE
61772020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6178
6179 * buildsym.c (record_line): Fix undefined behavior and preserve
6180 lines at eof.
6181
bbe3dc41
BE
61822020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6183
6184 * buildsym.c (record_line): Fix the resizing condition.
6185
6b4a335b
TT
61862020-04-01 Tom Tromey <tom@tromey.com>
6187
6188 * value.h (value_literal_complex): Add comment.
6189 * valops.c (value_literal_complex): Refer to value.h.
6190
3638a098
TT
61912020-04-01 Tom Tromey <tom@tromey.com>
6192
6193 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6194 (scalar_type): New rule, from typebase.
6195 (typebase): Use scalar_type. Recognize complex types.
6196 (field_name): Handle FLOAT_KEYWORD.
6197 (ident_tokens): Add _Complex and __complex__.
6198
c34e8714
TT
61992020-04-01 Tom Tromey <tom@tromey.com>
6200
6201 PR exp/25299:
6202 * valarith.c (promotion_type, complex_binop): New functions.
6203 (scalar_binop): Handle complex numbers. Use promotion_type.
6204 (value_pos, value_neg, value_complement): Handle complex numbers.
6205
fa649bb7
TT
62062020-04-01 Tom Tromey <tom@tromey.com>
6207
6208 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6209 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6210 (parse_number): Handle complex numbers.
6211
981c08ce
TT
62122020-04-01 Tom Tromey <tom@tromey.com>
6213
6214 * c-valprint.c (c_decorations): Change complex suffix to "i".
6215
4c99290d
TT
62162020-04-01 Tom Tromey <tom@tromey.com>
6217
6218 * valprint.c (generic_value_print_complex): Use accessors.
6219 * value.h (value_real_part, value_imaginary_part): Declare.
6220 * valops.c (value_real_part, value_imaginary_part): New
6221 functions.
6222 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6223
5b930b45
TT
62242020-04-01 Tom Tromey <tom@tromey.com>
6225
6226 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6227 (read_range_type): Update.
6228 * mdebugread.c (basic_type): Update.
6229 * go-lang.c (build_go_types): Use init_complex_type.
6230 * gdbtypes.h (struct main_type) <complex_type>: New member.
6231 (init_complex_type): Update.
6232 (arch_complex_type): Don't declare.
6233 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6234 Make name if none given. Use alloc_type_copy. Look for cached
6235 complex type.
6236 (arch_complex_type): Remove.
6237 (gdbtypes_post_init): Use init_complex_type.
6238 * f-lang.c (build_fortran_types): Use init_complex_type.
6239 * dwarf2/read.c (read_base_type): Update.
6240 * d-lang.c (build_d_types): Use init_complex_type.
6241 * ctfread.c (read_base_type): Update.
6242
53cccef1
TBA
62432020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6244
6245 * infrun.c (stop_all_threads): Update assertion, plus when
6246 stopping threads, take into account that we might be trying
6247 to stop an all-stop target.
6248 (stop_waiting): Call 'stop_all_threads' if there exists a
6249 non-stop target.
6250
a0714d30
TBA
62512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6252
6253 * target.h (exists_non_stop_target): New function declaration.
6254 * target.c (exists_non_stop_target): New function.
6255
60e22c1e
HD
62562020-04-01 Hannes Domani <ssbssa@yahoo.de>
6257
6258 PR gdb/24789
6259 * eval.c (is_integral_or_integral_reference): New function.
6260 (evaluate_subexp_standard): Allow integer references in
6261 pointer arithmetic.
6262
e139a727
TBA
62632020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6264
6265 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6266 check for no ptid in the stop reply when the target is non-stop.
6267
e0802d59
TT
62682020-04-01 Tom Tromey <tromey@adacore.com>
6269
6270 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6271 "name" parameter to rvalue reference. Initialize m_name_holder.
6272 <lookup_name_info>: New overloads.
6273 <name>: Return gdb::string_view.
6274 <c_str>: New method.
6275 <make_ignore_params>: Update.
6276 <search_name_hash>: Update.
6277 <language_lookup_name>: Return const char *.
6278 <m_name>: Change type.
6279 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6280 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6281 (lookup_name_info::match_any): Update.
6282 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6283 Update.
6284 * minsyms.c (linkage_name_str): Update.
6285 * language.c (default_symbol_name_matcher): Update.
6286 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6287 Update.
6288 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6289 (ada_lookup_name_info::ada_lookup_name_info): Update.
6290 (literal_symbol_name_matcher): Update.
6291
8c072cb6
TT
62922020-04-01 Tom Tromey <tromey@adacore.com>
6293
6294 * psymtab.c (psymtab_search_name): Remove function.
6295 (psym_lookup_symbol): Create search name and lookup name here.
6296 (lookup_partial_symbol): Remove "name" parameter; add
6297 lookup_name.
6298 (psym_expand_symtabs_for_function): Update.
6299
6f29a534
TT
63002020-03-31 Joel Jones <joelkevinjones@gmail.com>
6301
6302 PR tui/25597:
6303 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6304
af62665e
TT
63052020-03-31 Tom Tromey <tromey@adacore.com>
6306
6307 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6308 memcpy.
6309
d1a89da5
NC
63102020-03-30 Nelson Chu <nelson.chu@sifive.com>
6311
6312 * features/riscv/32bit-csr.xml: Regenerated.
6313 * features/riscv/64bit-csr.xml: Regenerated.
6314
d8af9068
TT
63152020-03-30 Tom Tromey <tromey@adacore.com>
6316
6317 * ada-valprint.c (print_variant_part): Update.
6318 * ada-lang.h (ada_which_variant_applies): Update.
6319 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6320 outer_valaddr parameters; replace with "outer" value parameter.
6321 (to_fixed_variant_branch_type): Update.
6322
227c0bf4
PFC
63232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6324
6325 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6326 <list>. Remove inclusion of observable.h.
6327 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6328 (struct arch_lwp_info): New struct.
6329 (class ppc_linux_dreg_interface): New class.
6330 (struct ppc_linux_process_info): New struct.
6331 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6332 <low_new_clone, low_forget_process, low_prepare_to_resume>
6333 <copy_thread_dreg_state, mark_thread_stale>
6334 <mark_debug_registers_changed, register_hw_breakpoint>
6335 <clear_hw_breakpoint, register_wp, clear_wp>
6336 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6337 <num_memory_accesses, get_trigger_type>
6338 <create_watchpoint_request, hwdebug_point_cmp>
6339 <init_arch_lwp_info, get_arch_lwp_info>
6340 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6341 methods.
6342 <struct ptid_hash>: New inner struct.
6343 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6344 members.
6345 (saved_dabr_value, hwdebug_info, max_slots_number)
6346 (struct hw_break_tuple, struct thread_points, ppc_threads)
6347 (have_ptrace_hwdebug_interface)
6348 (hwdebug_find_thread_points_by_tid)
6349 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6350 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6351 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6352 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6353 use m_dreg_interface.
6354 (hwdebug_point_cmp): Change to...
6355 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6356 reference arguments instead of pointers.
6357 (ppc_linux_nat_target::ranged_break_num_registers): Use
6358 m_dreg_interface.
6359 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6360 m_dreg_interface. Call register_hw_breakpoint.
6361 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6362 m_dreg_interface. Call clear_hw_breakpoint.
6363 (get_trigger_type): Change to...
6364 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6365 comment.
6366 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6367 use m_dreg_interface. Call register_hw_breakpoint.
6368 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6369 use m_dreg_interface. Call clear_hw_breakpoint.
6370 (can_use_watchpoint_cond_accel): Change to...
6371 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6372 method. Update comment, use m_dreg_interface and
6373 m_process_info.
6374 (calculate_dvc): Change to...
6375 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6376 m_dreg_interface.
6377 (num_memory_accesses): Change to...
6378 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6379 (check_condition): Change to...
6380 (ppc_linux_nat_target::check_condition): ...this method.
6381 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6382 comment, use m_dreg_interface.
6383 (create_watchpoint_request): Change to...
6384 (ppc_linux_nat_target::create_watchpoint_request): ...this
6385 method. Use m_dreg_interface.
6386 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6387 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6388 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6389 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6390 (ppc_linux_nat_target::low_forget_process)
6391 (ppc_linux_nat_target::low_new_fork)
6392 (ppc_linux_nat_target::low_new_clone)
6393 (ppc_linux_nat_target::low_delete_thread)
6394 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6395 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6396 only call mark_thread_stale.
6397 (ppc_linux_thread_exit): Remove.
6398 (ppc_linux_nat_target::stopped_data_address): Change to...
6399 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6400 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6401 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6402 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6403 comment. Call low_stopped_data_address.
6404 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6405 m_dreg_interface.
6406 (ppc_linux_nat_target::masked_watch_num_registers): Use
6407 m_dreg_interface.
6408 (ppc_linux_nat_target::copy_thread_dreg_state)
6409 (ppc_linux_nat_target::mark_thread_stale)
6410 (ppc_linux_nat_target::mark_debug_registers_changed)
6411 (ppc_linux_nat_target::register_hw_breakpoint)
6412 (ppc_linux_nat_target::clear_hw_breakpoint)
6413 (ppc_linux_nat_target::register_wp)
6414 (ppc_linux_nat_target::clear_wp)
6415 (ppc_linux_nat_target::init_arch_lwp_info)
6416 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6417 (_initialize_ppc_linux_nat): Remove observer callback.
6418
4db10d8f
PFC
64192020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6420
6421 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6422 (ppc_linux_nat_target::auxv_parse)
6423 (ppc_linux_nat_target::read_description)
6424 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6425 Move up.
6426
1310c1b0
PFC
64272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6428
6429 * linux-nat.h (low_new_clone): New method.
6430 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6431
69b037c3
SM
64322020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6433
6434 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6435 (dbx_expand_psymtab): ... this.
6436 (start_psymtab): Update.
6437 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6438 (mdebug_expand_psymtab): ... this.
6439 (parse_partial_symbols): Update.
6440 (new_psymtab): Update.
6441 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6442 (xcoff_expand_psymtab): ... this.
6443 (xcoff_start_psymtab): Update.
6444
48993951
SM
64452020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6446
6447 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6448 <expand_dependencies>: ... this.
6449 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6450 (partial_symtab::expand_dependencies): ... this.
6451 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6452 Update.
6453 (dwarf2_psymtab::expand_psymtab): Update.
6454 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6455 * mdebugread.c (psymtab_to_symtab_1): Update.
6456 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6457
3ad83046
SM
64582020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6459
6460 * psympriv.h (discard_psymtab): Remove.
6461 * dbxread.c (dbx_end_psymtab): Update.
6462 * xcoffread.c (xcoff_end_psymtab): Update.
6463
4d1b9ab6
TT
64642020-03-28 Tom Tromey <tom@tromey.com>
6465
6466 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6467 comment.
6468
f1749218
TT
64692020-03-28 Tom Tromey <tom@tromey.com>
6470
6471 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6472
ebea7626
HD
64732020-03-27 Hannes Domani <ssbssa@yahoo.de>
6474
6475 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6476
a879b4d5
JB
64772020-03-26 John Baldwin <jhb@FreeBSD.org>
6478
6479 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6480
0826b30a
TT
64812020-03-26 Tom Tromey <tom@tromey.com>
6482
6483 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6484 (mark_common_block_symbol_computed, read_tag_string_type)
6485 (attr_to_dynamic_prop, read_subrange_type): Update.
6486 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6487 to be methods on struct attribute.
6488 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6489 (read_call_site_scope, partial_die_info::read)
6490 (partial_die_info::read, lookup_die_type, follow_die_ref):
6491 Update.
6492 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6493 from dwarf2_get_ref_die_offset.
6494 (attribute::constant_value): New method, from
6495 dwarf2_get_attr_constant_value.
6496 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6497 Declare method.
6498 <constant_value>: New method.
6499
2b2558bf
TT
65002020-03-26 Tom Tromey <tom@tromey.com>
6501
6502 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6503 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6504 (dwarf_type_encoding_name): Move to stringify.c.
6505 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6506 * dwarf2/stringify.c: New file.
6507 * dwarf2/stringify.h: New file.
6508
eeb64781
TT
65092020-03-26 Tom Tromey <tom@tromey.com>
6510
6511 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6512 Rewrite.
6513
a39fdb41
TT
65142020-03-26 Tom Tromey <tom@tromey.com>
6515
6516 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6517 methods.
6518 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6519 (lookup_ranges_base): Likewise.
6520 (read_cutu_die_from_dwo, read_full_die_1): Update.
6521
436c571c
TT
65222020-03-26 Tom Tromey <tom@tromey.com>
6523
6524 * dwarf2/read.c (read_import_statement, read_file_scope)
6525 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6526 (read_lexical_block_scope, read_call_site_scope)
6527 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6528 (handle_struct_member_die, process_structure_scope)
6529 (update_enumeration_type_from_children)
6530 (process_enumeration_scope, read_array_type, read_common_block)
6531 (read_namespace, read_module, read_subroutine_type): Update.
6532 (sibling_die): Remove.
6533
052c8bb8
TT
65342020-03-26 Tom Tromey <tom@tromey.com>
6535
6536 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6537 (build_type_psymtabs_reader, read_structure_type)
6538 (read_enumeration_type, read_full_die_1): Update.
6539 (dwarf2_attr_no_follow): Move to die.h.
6540 * dwarf2/die.h (struct die_info) <attr>: New method.
6541
2b24b6e4
TT
65422020-03-26 Tom Tromey <tom@tromey.com>
6543
6544 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6545 <base_address>: Now an optional.
6546 (dwarf2_find_base_address, dwarf2_rnglists_process)
6547 (dwarf2_ranges_process, fill_in_loclist_baton)
6548 (dwarf2_symbol_mark_computed): Update.
6549
c2d50fd0
TT
65502020-03-26 Tom Tromey <tom@tromey.com>
6551
6552 * dwarf2/read.c (struct die_info): Move to die.h.
6553 * dwarf2/die.h: New file.
6554
0df7ad3a
TT
65552020-03-26 Tom Tromey <tom@tromey.com>
6556
6557 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6558 * dwarf2/read.c
6559 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6560 Move to line-header.c.
6561 (read_checked_initial_length_and_offset, read_formatted_entries):
6562 Likewise.
6563 (dwarf_decode_line_header): Split into two.
6564 * dwarf2/line-header.c
6565 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6566 Move from read.c.
6567 (read_checked_initial_length_and_offset, read_formatted_entries):
6568 Likewise.
6569 (dwarf_decode_line_header): New function, split from read.c.
6570
86c0bb4c
TT
65712020-03-26 Tom Tromey <tom@tromey.com>
6572
6573 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6574 Declare method.
6575 * dwarf2/read.c (read_attribute_value): Update.
6576 (dwarf2_per_objfile::read_line_string): Rename from
6577 read_indirect_line_string.
6578 (read_formatted_entries): Update.
6579
2ef46c2f
TT
65802020-03-26 Tom Tromey <tom@tromey.com>
6581
6582 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6583 variable.
6584
4f9c1eda
TT
65852020-03-26 Tom Tromey <tom@tromey.com>
6586
6587 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6588 const.
6589 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6590 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6591 parameter const.
6592
5a0e026f
TT
65932020-03-26 Tom Tromey <tom@tromey.com>
6594
6595 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6596 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6597 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6598 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6599
8844c11b
TT
66002020-03-26 Tom Tromey <tom@tromey.com>
6601
6602 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6603 file_names_size, file_full_name, file_file_name>: Use const.
6604 <file_name_at, file_names>: Add const overload.
6605 * dwarf2/line-header.c (line_header::file_file_name)
6606 (line_header::file_full_name): Update.
6607
c90ec28a
TT
66082020-03-26 Tom Tromey <tom@tromey.com>
6609
6610 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6611 (macro_start_file, consume_improper_spaces)
6612 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6613 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6614 (dwarf_decode_macros): Move to macro.c.
6615 * dwarf2/macro.c: New file.
6616 * dwarf2/macro.h: New file.
6617 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6618
4f44ae6c
TT
66192020-03-26 Tom Tromey <tom@tromey.com>
6620
6621 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6622 method.
6623 * dwarf2/section.c: New method. From
6624 read_indirect_string_at_offset_from.
6625 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6626 (read_indirect_string_at_offset_from): Move to section.c.
6627 (read_indirect_string_at_offset): Rewrite.
6628 (read_indirect_line_string_at_offset): Remove.
6629 (read_indirect_string, read_indirect_line_string)
6630 (dwarf_decode_macro_bytes): Update.
6631
a0194fa8
TT
66322020-03-26 Tom Tromey <tom@tromey.com>
6633
6634 * dwarf2/section.h (struct dwarf2_section_info)
6635 <overload_complaint>: Declare.
6636 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6637 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6638 Rename from dwarf2_section_buffer_overflow_complaint.
6639 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6640 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6641
3d27bbdb
TT
66422020-03-26 Tom Tromey <tom@tromey.com>
6643
6644 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6645 Declare.
6646 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6647 Move from read.c.
6648 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6649 to section.c.
6650
9eac9650
TT
66512020-03-26 Tom Tromey <tom@tromey.com>
6652
6653 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6654
bf80d710
TT
66552020-03-26 Tom Tromey <tom@tromey.com>
6656
6657 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6658 "builder".
6659 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6660 parameter.
6661 (dwarf_decode_macros): Update.
6662
0314b390
TT
66632020-03-26 Tom Tromey <tom@tromey.com>
6664
6665 * dwarf2/read.c (read_attribute_value): Update.
6666 (read_indirect_string_from_dwz): Move to dwz.c; change into
6667 method.
6668 (dwarf_decode_macro_bytes): Update.
6669 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6670 * dwarf2/dwz.c: New file.
6671 * Makefile.in (COMMON_SFILES): Add dwz.c.
6672
9fda78b6
TT
66732020-03-26 Tom Tromey <tom@tromey.com>
6674
6675 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6676 * dwarf2/read.c: Add include.
6677 * dwarf2/index-write.c: Add include.
6678 * dwarf2/index-cache.c: Add include.
6679 * dwarf2/dwz.h: New file.
6680
33aa3c10
TT
66812020-03-25 Tom Tromey <tom@tromey.com>
6682
6683 * compile/compile-object-load.c (get_out_value_type): Mention
6684 correct symbol name in error message.
6685
d503b685
HD
66862020-03-25 Hannes Domani <ssbssa@yahoo.de>
6687
6688 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6689
7b1eff95
TV
66902020-03-25 Tom de Vries <tdevries@suse.de>
6691
6692 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6693 * symmisc.c (dump_symtab_1): Print user and includes fields.
6694 (maintenance_info_symtabs): Same.
6695
dd895392
AB
66962020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6697
6698 PR gdb/25534
6699 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6700 (riscv_regcache_cooked_write): New function.
6701 (riscv_push_dummy_call): Use new function.
6702 (riscv_return_value): Likewise.
6703
5ab2fbf1
SM
67042020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6705
6706 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6707 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6708 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6709 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6710 * infrun.c (follow_fork): Likewise.
6711 (follow_fork_inferior): Likewise.
6712 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6713 * linux-nat.h (class linux_nat_target): Likewise.
6714 * remote.c (class remote_target) <follow_fork>: Likewise.
6715 (remote_target::follow_fork): Likewise.
6716 * target-delegates.c: Re-generate.
6717 * target.c (default_follow_fork): Likewise.
6718 (target_follow_fork): Likewise.
6719 * target.h (struct target_ops) <follow_fork>: Likewise.
6720 (target_follow_fork): Likewise.
6721
a64fafb5
TV
67222020-03-24 Tom de Vries <tdevries@suse.de>
6723
6724 * psymtab.c (maintenance_info_psymtabs): Print user field.
6725
fe26d3a3
TT
67262020-03-20 Tom Tromey <tromey@adacore.com>
6727
6728 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6729 const.
6730 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6731 const.
6732
c884cc46
SM
67332020-03-20 Simon Marchi <simon.marchi@efficios.com>
6734
6735 * ptrace.m4: Don't check for ptrace declaration.
6736 * config.in: Re-generate.
6737 * configure: Re-generate.
6738 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6739 not defined.
6740
1ff700c2
KR
67412020-03-20 Kamil Rytarowski <n54@gmx.com>
6742
6743 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6744 `PTRACE_TYPE_RET'.
6745 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6746 * sparc-nat.c (gdb_ptrace): Likewise.
6747 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6748
f7d4f0b1
TT
67492020-03-20 Tom Tromey <tromey@adacore.com>
6750
6751 * c-exp.y (lex_one_token): Fix assert.
6752
f67210ff
TT
67532020-03-20 Tom Tromey <tromey@adacore.com>
6754
6755 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6756 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6757 strncpy call.
6758
1773be9e
TT
67592020-03-20 Tom Tromey <tromey@adacore.com>
6760
6761 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6762
70304be9
TT
67632020-03-20 Tom Tromey <tromey@adacore.com>
6764
6765 * ada-valprint.c (print_variant_part): Remove parameters; switch
6766 to value-based API.
6767 (print_field_values): Likewise.
6768 (ada_val_print_struct_union): Likewise.
6769 (ada_value_print_1): Update.
6770
9faa006d
KR
67712020-03-20 Kamil Rytarowski <n54@gmx.com>
6772
6773 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6774 nbsd_nat_target instead of inf_ptrace_target.
6775 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6776 nbsd_nat_target.
6777
4a90f062
KR
67782020-03-20 Kamil Rytarowski <n54@gmx.com>
6779
6780 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6781 it to the ptrace call.
6782 * (store_registers): Likewise.
6783
67842020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6785
6786 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6787 it to the ptrace call.
6788 * (store_registers): Likewise.
6789
2d07da27
LM
67902020-03-19 Luis Machado <luis.machado@linaro.org>
6791
6792 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6793 valid, fetch vg value from ptrace.
6794
f09db380
KR
67952020-03-19 Kamil Rytarowski <n54@gmx.com>
6796 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6797 * inf-ptrace.c: Likewise.
6798 * (gdb_ptrace): Add.
6799 * (inf_ptrace_target::resume): Update.
6800 * (inf_ptrace_target::xfer_partial): Likewise.
6801 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6802 * (inf_ptrace_peek_poke): Update.
6803
fcc7376e
KR
68042020-03-19 Kamil Rytarowski <n54@gmx.com>
6805
6806 * x86-bsd-nat.c (gdb_ptrace): New.
6807 * (x86bsd_dr_set): Add new argument `ptid'.
6808 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6809 x86bsd_dr_set_addr): Update.
6810
cada5fc9
AB
68112020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6812
6813 * remote.c (remote_target::process_stop_reply): Handle events for
6814 all threads differently.
6815
19a2740f
AB
68162020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6817
6818 * completer.c (completion_tracker::remove_completion): Define new
6819 function.
6820 * completer.h (completion_tracker::remove_completion): Declare new
6821 function.
6822 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6823 when adding a C++ function symbol.
6824
724fd9ba
AB
68252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6826
6827 * completer.c (completion_tracker::completion_hash_entry): Define
6828 new class.
6829 (advance_to_filename_complete_word_point): Call
6830 recompute_lowest_common_denominator.
6831 (completion_tracker::completion_tracker): Call discard_completions
6832 to setup the hash table.
6833 (completion_tracker::discard_completions): Allow for being called
6834 from the constructor, pass new equal function, and element deleter
6835 when constructing the hash table. Initialise new class member
6836 variables.
6837 (completion_tracker::maybe_add_completion): Remove use of
6838 m_entries_vec, and store more information into m_entries_hash.
6839 (completion_tracker::recompute_lcd_visitor): New function, most
6840 content taken from...
6841 (completion_tracker::recompute_lowest_common_denominator):
6842 ...here, this now just visits each item in the hash calling the
6843 above visitor.
6844 (completion_tracker::build_completion_result): Remove use of
6845 m_entries_vec, call recompute_lowest_common_denominator.
6846 * completer.h (completion_tracker::have_completions): Remove use
6847 of m_entries_vec.
6848 (completion_tracker::completion_hash_entry): Declare new class.
6849 (completion_tracker::recompute_lowest_common_denominator): Change
6850 function signature.
6851 (completion_tracker::recompute_lcd_visitor): Declare new function.
6852 (completion_tracker::m_entries_vec): Delete.
6853 (completion_tracker::m_entries_hash): Initialize to NULL.
6854 (completion_tracker::m_lowest_common_denominator_valid): New
6855 member variable.
6856 (completion_tracker::m_lowest_common_denominator_max_length): New
6857 member variable.
6858
5a82b8a1
KR
68592020-03-17 Kamil Rytarowski <n54@gmx.com>
6860
6861 * regformats/regdef.h: Put reg in gdb namespace.
6862
fb516a69
KR
68632020-03-17 Kamil Rytarowski <n54@gmx.com>
6864
6865 * i386-bsd-nat.c (gdb_ptrace): New.
6866 * (i386bsd_fetch_inferior_registers,
6867 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6868 * (i386bsd_fetch_inferior_registers,
6869 i386bsd_store_inferior_registers) Use gdb_ptrace.
6870
1c0aa1fb
KR
68712020-03-17 Kamil Rytarowski <n54@gmx.com>
6872
6873 * amd64-bsd-nat.c (gdb_ptrace): New.
6874 * (amd64bsd_fetch_inferior_registers,
6875 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6876 * (amd64bsd_fetch_inferior_registers,
6877 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6878
5ccd2fb7
KR
68792020-03-17 Kamil Rytarowski <n54@gmx.com>
6880
6881 * user-regs.c (user_reg::read): Rename to...
6882 (user_reg::xread): ...this.
6883 * (append_user_reg): Rename argument `read' to `xread'.
6884 * (user_reg_add_builtin): Likewise.
6885 * (user_reg_add): Likewise.
6886 * (value_of_user_reg): Likewise.
6887
2108a63a
KR
68882020-03-17 Kamil Rytarowski <n54@gmx.com>
6889
6890 * sparc-nat.c (gdb_ptrace): New.
6891 * sparc-nat.c (sparc_fetch_inferior_registers)
6892 (sparc_store_inferior_registers) Remove obsolete comment.
6893 * sparc-nat.c (sparc_fetch_inferior_registers)
6894 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6895 * sparc-nat.c (sparc_fetch_inferior_registers)
6896 (sparc_store_inferior_registers) Use gdb_ptrace.
6897
a225c9a8
KR
68982020-03-17 Kamil Rytarowski <n54@gmx.com>
6899
6900 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6901 it to the ptrace call.
6902 * sh-nbsd-nat.c (store_registers): Likewise.
6903
98097623
KR
69042020-03-17 Kamil Rytarowski <n54@gmx.com>
6905
6906 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6907 nbsd_nat_target instead of inf_ptrace_target.
6908 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6909 nbsd_nat_target.
6910
9e38d619
KR
69112020-03-17 Kamil Rytarowski <n54@gmx.com>
6912
6913 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6914
a2ecbe9f
KR
69152020-03-17 Kamil Rytarowski <n54@gmx.com>
6916
6917 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6918 <sys/sysctl.h>.
6919 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6920
58990295
TV
69212020-03-17 Tom de Vries <tdevries@suse.de>
6922
6923 PR gdb/23710
6924 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6925 fields.
6926 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6927 fields.
6928 (process_imported_unit_die): Skip import of c++ CUs.
6929
771dd3a8
TT
69302020-03-16 Tom Tromey <tom@tromey.com>
6931
6932 * p-valprint.c (pascal_object_print_value): Initialize
6933 base_value.
6934
817a7585
AK
69352020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6936 Shahab Vahedi <shahab@synopsys.com>
6937
6938 * Makefile.in: Add arch/arc.o
6939 * configure.tgt: Likewise.
6940 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6941 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6942 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6943 * arc-tdep.h (arc_read_description): Add proto type.
6944 * arch/arc.c: New file.
6945 * arch/arc.h: Likewise.
6946 * features/Makefile: Replace old target descriptions with new.
6947 * features/arc-arcompact.c: Remove.
6948 * features/arc-arcompact.xml: Likewise.
6949 * features/arc-v2.c: Likewise
6950 * features/arc-v2.xml: Likewise
6951 * features/arc/aux-arcompact.xml: New file.
6952 * features/arc/aux-v2.xml: Likewise.
6953 * features/arc/core-arcompact.xml: Likewise.
6954 * features/arc/core-v2.xml: Likewise.
6955 * features/arc/aux-arcompact.c: Generate.
6956 * features/arc/aux-v2.c: Likewise.
6957 * features/arc/core-arcompact.c: Likewise.
6958 * features/arc/core-v2.c: Likewise.
6959 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6960
67430cd0
TT
69612020-03-16 Tom Tromey <tromey@adacore.com>
6962
6963 PR gdb/25663:
6964 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6965 putting value into bcache.
6966
30efb6c7
SM
69672020-03-16 Simon Marchi <simon.marchi@efficios.com>
6968
6969 PR gdb/21500
6970 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6971 to...
6972 (amd64_windows_init_abi_common): ... this. Don't set size of
6973 long type.
6974 (amd64_windows_init_abi): New function.
6975 (amd64_cygwin_init_abi): New function.
6976 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6977 the Cygwin OS ABI.
6978 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6979 comment.
6980
8db52437
SM
69812020-03-16 Simon Marchi <simon.marchi@efficios.com>
6982
6983 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6984 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6985 (pe_import_directory_entry): New struct type.
6986 (is_linked_with_cygwin_dll): New function.
6987 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6988 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6989 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6990
5982a56a
SM
69912020-03-16 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6994 i386_cygwin_core_osabi_sniffer.
6995
7a1998df
SM
69962020-03-16 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * i386-cygwin-tdep.c: Rename to...
6999 * i386-windows-tdep.c: ... this.
7000 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7001 i386-windows-tdep.c.
7002 * configure.tgt: Likewise.
7003
053205cc
SM
70042020-03-16 Simon Marchi <simon.marchi@efficios.com>
7005
7006 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7007 * osabi.c (gdb_osabi_names): Add "Windows".
7008 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7009 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7010 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7011 i386_cygwin_osabi_sniffer.
7012 (_initialize_i386_cygwin_tdep): Register OS ABI
7013 GDB_OSABI_WINDOWS for i386.
7014 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7015 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7016 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7017 for x86-64.
7018 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7019 when the target matches '*-*-mingw*'.
7020
fe4b2ee6
SM
70212020-03-16 Simon Marchi <simon.marchi@efficios.com>
7022
7023 * defs.h (enum gdb_osabi): Move to...
7024 * osabi.h (enum gdb_osabi): ... here.
7025 * gdbarch.sh: Include osabi.h in gdbarch.h.
7026 * gdbarch.h: Re-generate.
7027
cb9b645d
SM
70282020-03-16 Simon Marchi <simon.marchi@efficios.com>
7029
7030 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7031 function.
7032 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7033
3293bbaf
TT
70342020-03-14 Tom Tromey <tom@tromey.com>
7035
7036 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7037 for C++.
7038 (c_type_print_modifier): Likewise. Add "language" parameter.
7039 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7040 (c_type_print_base_1): Update.
7041 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7042 constants.
7043 * type-stack.c (type_stack::insert): Handle tp_atomic and
7044 tp_restrict.
7045 (type_stack::follow_type_instance_flags): Likewise.
7046 (type_stack::follow_types): Likewise. Merge type-following code.
7047 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7048 (space_identifier, cv_with_space_id)
7049 (const_or_volatile_or_space_identifier_noopt)
7050 (const_or_volatile_or_space_identifier): Remove.
7051 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7052 rules.
7053 (ptr_operator, typebase): Update.
7054 (enum token_flag) <FLAG_C>: New constant.
7055 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7056 "_Atomic".
7057 (lex_one_token): Handle FLAG_C.
7058
154151a6
KR
70592020-03-14 Kamil Rytarowski <n54@gmx.com>
7060
7061 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7062 it to the ptrace call.
7063 * m68k-bsd-nat.c (store_registers): Likewise.
7064
bc107784
KR
70652020-03-14 Kamil Rytarowski <n54@gmx.com>
7066
7067 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7068 gdb_byte *.
7069 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7070 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7071 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7072
01a80117
KR
70732020-03-14 Kamil Rytarowski <n54@gmx.com>
7074
7075 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7076 nbsd_nat_target instead of inf_ptrace_target.
7077 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7078 nbsd_nat_target.
7079
f90280ca
KR
70802020-03-14 Kamil Rytarowski <n54@gmx.com>
7081
7082 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7083 register_t.
7084
6def66f1
KR
70852020-03-14 Kamil Rytarowski <n54@gmx.com>
7086
7087 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7088 it to the ptrace call.
7089 * alpha-bsd-nat.c (store_registers): Likewise.
7090
66eaca97
KR
70912020-03-14 Kamil Rytarowski <n54@gmx.com>
7092
7093 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7094 includes.
7095 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7096 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7097 fill_fpregset): Likewise.
7098
4fed520b
KR
70992020-03-14 Kamil Rytarowski <n54@gmx.com>
7100
7101 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7102 nbsd_nat_target instead of inf_ptrace_target.
7103 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7104 nbsd_nat_target.
7105
2190cf06
KR
71062020-03-14 Kamil Rytarowski <n54@gmx.com>
7107
7108 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7109 register_t.
7110
75c56d3d
KR
71112020-03-14 Kamil Rytarowski <n54@gmx.com>
7112
7113 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7114 it to the ptrace call.
7115 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7116 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7117 * arm-nbsd-nat.c (store_register): Likewise.
7118 * arm-nbsd-nat.c (store_regs): Likewise.
7119 * arm-nbsd-nat.c (store_fp_register): Likewise.
7120 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7121
6018d381
KR
71222020-03-14 Kamil Rytarowski <n54@gmx.com>
7123
7124 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7125 nbsd_nat_target instead of inf_ptrace_target.
7126 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7127 nbsd_nat_target.
7128
013f99f0
KR
71292020-03-14 Kamil Rytarowski <n54@gmx.com>
7130
7131 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7132 it to the ptrace call.
7133 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7134
12753073
KR
71352020-03-14 Kamil Rytarowski <n54@gmx.com>
7136
6227b330
KR
7137 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7138 it to the ptrace call.
7139 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7140
71412020-03-14 Kamil Rytarowski <n54@gmx.com>
7142
7143 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7144 gdb_byte *.
12753073
KR
7145 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7146
d5be5fa4
KR
71472020-03-14 Kamil Rytarowski <n54@gmx.com>
7148
7149 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7150 instead of inf_ptrace_target.
7151 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7152 nbsd_nat_target.
7153
8110f842
KR
71542020-03-14 Kamil Rytarowski <n54@gmx.com>
7155
7156 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7157 register_t.
7158
52feded7
KR
71592020-03-14 Kamil Rytarowski <n54@gmx.com>
7160
7161 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7162 register_t.
7163
25567eee
KR
71642020-03-14 Kamil Rytarowski <n54@gmx.com>
7165
7166 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7167 register_t.
7168
426a9c18
TT
71692020-03-13 Tom Tromey <tom@tromey.com>
7170
7171 * value.h (val_print): Don't declare.
7172 * valprint.h (val_print_array_elements)
7173 (val_print_scalar_formatted, generic_val_print): Don't declare.
7174 * valprint.c (generic_val_print_array): Take a struct value.
7175 (generic_val_print_ptr, generic_val_print_memberptr)
7176 (generic_val_print_bool, generic_val_print_int)
7177 (generic_val_print_char, generic_val_print_complex)
7178 (generic_val_print): Remove.
7179 (generic_value_print): Update.
7180 (do_val_print): Remove unused parameters. Don't call
7181 la_val_print.
7182 (val_print): Remove.
7183 (common_val_print): Update. Don't call value_check_printable.
7184 (val_print_scalar_formatted, val_print_array_elements): Remove.
7185 * rust-lang.c (rust_val_print): Remove.
7186 (rust_language_defn): Update.
7187 * p-valprint.c (pascal_val_print): Remove.
7188 (pascal_value_print_inner): Update.
7189 (pascal_object_print_val_fields, pascal_object_print_val):
7190 Remove.
7191 (pascal_object_print_static_field): Update.
7192 * p-lang.h (pascal_val_print): Don't declare.
7193 * p-lang.c (pascal_language_defn): Update.
7194 * opencl-lang.c (opencl_language_defn): Update.
7195 * objc-lang.c (objc_language_defn): Update.
7196 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7197 * m2-lang.h (m2_val_print): Don't declare.
7198 * m2-lang.c (m2_language_defn): Update.
7199 * language.h (struct language_defn) <la_val_print>: Remove.
7200 * language.c (unk_lang_value_print_inner): Rename. Change
7201 argument types.
7202 (unknown_language_defn, auto_language_defn): Update.
7203 * go-valprint.c (go_val_print): Remove.
7204 * go-lang.h (go_val_print): Don't declare.
7205 * go-lang.c (go_language_defn): Update.
7206 * f-valprint.c (f_val_print): Remove.
7207 * f-lang.h (f_value_print): Don't declare.
7208 * f-lang.c (f_language_defn): Update.
7209 * d-valprint.c (d_val_print): Remove.
7210 * d-lang.h (d_value_print): Don't declare.
7211 * d-lang.c (d_language_defn): Update.
7212 * cp-valprint.c (cp_print_value_fields)
7213 (cp_print_value_fields_rtti, cp_print_value): Remove.
7214 (cp_print_static_field): Update.
7215 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7216 (c_val_print_struct, c_val_print_union, c_val_print_int)
7217 (c_val_print_memberptr, c_val_print): Remove.
7218 * c-lang.h (c_val_print_array, cp_print_value_fields)
7219 (cp_print_value_fields_rtti): Don't declare.
7220 * c-lang.c (c_language_defn, cplus_language_defn)
7221 (asm_language_defn, minimal_language_defn): Update.
7222 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7223 (ada_val_print_enum): Take a struct value.
7224 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7225 (ada_val_print): Remove.
7226 (ada_value_print_1): Update.
7227 (printable_val_type): Remove.
7228 * ada-lang.h (ada_val_print): Don't declare.
7229 * ada-lang.c (ada_language_defn): Update.
7230
42331a1e
TT
72312020-03-13 Tom Tromey <tom@tromey.com>
7232
7233 * valprint.c (do_val_print): Update.
7234 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7235 a struct value.
7236 (value_to_value_object_no_release): Declare.
7237 * python/py-value.c (value_to_value_object_no_release): New
7238 function.
7239 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7240 struct value.
7241 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7242 function.
7243 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7244 a struct value.
7245 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7246 Declare.
7247 (gdbscm_apply_val_pretty_printer): Take a struct value.
7248 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7249 value.
7250 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7251 value.
7252 * extension-priv.h (struct extension_language_ops)
7253 <apply_val_pretty_printer>: Take a struct value.
7254 * cp-valprint.c (cp_print_value): Create a struct value.
7255 (cp_print_value): Update.
7256
3a916a97
TT
72572020-03-13 Tom Tromey <tom@tromey.com>
7258
7259 * ada-valprint.c (print_field_values): Call common_val_print.
7260
b59eac37
TT
72612020-03-13 Tom Tromey <tom@tromey.com>
7262
7263 * ada-valprint.c (val_print_packed_array_elements): Remove
7264 bitoffset and val parameters. Call common_val_print.
7265 (ada_val_print_string): Remove offset, address, and original_value
7266 parameters.
7267 (ada_val_print_array): Update.
7268 (ada_value_print_array): New function.
7269 (ada_value_print_1): Call it.
7270
03371129
TT
72712020-03-13 Tom Tromey <tom@tromey.com>
7272
7273 * ada-valprint.c (ada_value_print): Use common_val_print.
7274
2e088f8b
TT
72752020-03-13 Tom Tromey <tom@tromey.com>
7276
7277 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7278
39ef85a8
TT
72792020-03-13 Tom Tromey <tom@tromey.com>
7280
7281 * ada-valprint.c (ada_value_print_num): New function.
7282 (ada_value_print_1): Use it.
7283
b9fa6e07
TT
72842020-03-13 Tom Tromey <tom@tromey.com>
7285
7286 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7287
416595d6
TT
72882020-03-13 Tom Tromey <tom@tromey.com>
7289
7290 * ada-valprint.c (ada_value_print_ptr): New function.
7291 (ada_value_print_1): Use it.
7292
5b5e15ec
TT
72932020-03-13 Tom Tromey <tom@tromey.com>
7294
7295 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7296 call common_val_print.
7297 (ada_val_print_1): Update.
7298 (ada_value_print_1): New function.
7299 (ada_value_print_inner): Rewrite.
7300
fbf54e75
TT
73012020-03-13 Tom Tromey <tom@tromey.com>
7302
7303 * cp-valprint.c (cp_print_value_fields): Update.
7304 (cp_print_value): New function.
7305
64b653ca
TT
73062020-03-13 Tom Tromey <tom@tromey.com>
7307
7308 * m2-valprint.c (m2_value_print_inner): Use
7309 cp_print_value_fields.
7310 * cp-valprint.c (cp_print_value_fields): New function.
7311 * c-valprint.c (c_value_print_struct): New function.
7312 (c_value_print_inner): Use c_value_print_struct.
7313 * c-lang.h (cp_print_value_fields): Declare.
7314
6999f067
TT
73152020-03-13 Tom Tromey <tom@tromey.com>
7316
7317 * c-valprint.c (c_value_print_array): New function.
7318 (c_value_print_inner): Use it.
7319
ce80b8bd
TT
73202020-03-13 Tom Tromey <tom@tromey.com>
7321
7322 * c-valprint.c (c_value_print_memberptr): New function.
7323 (c_value_print_inner): Use it.
7324
2faac269
TT
73252020-03-13 Tom Tromey <tom@tromey.com>
7326
7327 * c-valprint.c (c_value_print_int): New function.
7328 (c_value_print_inner): Use it.
7329
da3e2c29
TT
73302020-03-13 Tom Tromey <tom@tromey.com>
7331
7332 * c-valprint.c (c_value_print_ptr): New function.
7333 (c_value_print_inner): Use it.
7334
50836231
TT
73352020-03-13 Tom Tromey <tom@tromey.com>
7336
7337 * c-valprint.c (c_value_print_inner): Rewrite.
7338
4f412b6e
TT
73392020-03-13 Tom Tromey <tom@tromey.com>
7340
7341 * valprint.c (generic_value_print_complex): New function.
7342 (generic_value_print): Use it.
7343
f5354008
TT
73442020-03-13 Tom Tromey <tom@tromey.com>
7345
7346 * valprint.c (generic_val_print_float): Don't call
7347 val_print_scalar_formatted.
7348 (generic_val_print, generic_value_print): Update.
7349
3eec3b05
TT
73502020-03-13 Tom Tromey <tom@tromey.com>
7351
7352 * valprint.c (generic_value_print_char): New function
7353 (generic_value_print): Use it.
7354
fdddfccb
TT
73552020-03-13 Tom Tromey <tom@tromey.com>
7356
7357 * valprint.c (generic_value_print_int): New function.
7358 (generic_value_print): Use it.
7359
6dde7521
TT
73602020-03-13 Tom Tromey <tom@tromey.com>
7361
7362 * valprint.c (generic_value_print_bool): New function.
7363 (generic_value_print): Use it.
7364
4112d2e6
TT
73652020-03-13 Tom Tromey <tom@tromey.com>
7366
7367 * valprint.c (generic_val_print_func): Simplify.
7368 (generic_val_print, generic_value_print): Update.
7369
65786af6
TT
73702020-03-13 Tom Tromey <tom@tromey.com>
7371
7372 * valprint.c (generic_val_print_flags): Remove.
7373 (generic_val_print, generic_value_print): Update.
7374 (val_print_type_code_flags): Add original_value parameter.
7375
40f3ce18
TT
73762020-03-13 Tom Tromey <tom@tromey.com>
7377
7378 * valprint.c (generic_val_print): Update.
7379 (generic_value_print): Update.
7380 * valprint.c (generic_val_print_enum): Don't call
7381 val_print_scalar_formatted.
7382
2a5b130b
TT
73832020-03-13 Tom Tromey <tom@tromey.com>
7384
7385 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7386 * valprint.c (generic_value_print_ptr): New function.
7387
abc66ce9
TT
73882020-03-13 Tom Tromey <tom@tromey.com>
7389
7390 * valprint.c (generic_value_print): Rewrite.
7391
07a32858
TT
73922020-03-13 Tom Tromey <tom@tromey.com>
7393
7394 * p-valprint.c (pascal_object_print_value_fields)
7395 (pascal_object_print_value): New functions.
7396
64d64d3a
TT
73972020-03-13 Tom Tromey <tom@tromey.com>
7398
7399 * p-valprint.c (pascal_value_print_inner): Rewrite.
7400
6a95a1f5
TT
74012020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * f-valprint.c (f_value_print_innner): Rewrite.
7404
59fcdac6
TT
74052020-03-13 Tom Tromey <tom@tromey.com>
7406
7407 * m2-valprint.c (m2_print_unbounded_array): New overload.
7408 (m2_print_unbounded_array): Update.
7409 (m2_print_array_contents): Take a struct value.
7410 (m2_value_print_inner): Rewrite.
7411
d133c3e1
TT
74122020-03-13 Tom Tromey <tom@tromey.com>
7413
7414 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7415 (d_value_print_inner): New function.
7416 * d-lang.h (d_value_print_inner): Declare.
7417 * d-lang.c (d_language_defn): Use d_value_print_inner.
7418
23b0f06b
TT
74192020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * go-valprint.c (go_value_print_inner): New function.
7422 * go-lang.h (go_value_print_inner): Declare.
7423 * go-lang.c (go_language_defn): Use go_value_print_inner.
7424
5f56f7cb
TT
74252020-03-13 Tom Tromey <tom@tromey.com>
7426
7427 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7428 API.
7429 (rust_val_print): Rewrite.
7430 (rust_value_print_inner): New function, from rust_val_print.
7431 (rust_language_defn): Use rust_value_print_inner.
7432
26792ee0
TT
74332020-03-13 Tom Tromey <tom@tromey.com>
7434
7435 * ada-valprint.c (ada_value_print_inner): New function.
7436 * ada-lang.h (ada_value_print_inner): Declare.
7437 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7438
24051bbe
TT
74392020-03-13 Tom Tromey <tom@tromey.com>
7440
7441 * f-valprint.c (f_value_print_innner): New function.
7442 * f-lang.h (f_value_print_innner): Declare.
7443 * f-lang.c (f_language_defn): Use f_value_print_innner.
7444
c0941be6
TT
74452020-03-13 Tom Tromey <tom@tromey.com>
7446
7447 * p-valprint.c (pascal_value_print_inner): New function.
7448 * p-lang.h (pascal_value_print_inner): Declare.
7449 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7450
62c4663d
TT
74512020-03-13 Tom Tromey <tom@tromey.com>
7452
7453 * m2-valprint.c (m2_value_print_inner): New function.
7454 * m2-lang.h (m2_value_print_inner): Declare.
7455 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7456
62182190
TT
74572020-03-13 Tom Tromey <tom@tromey.com>
7458
7459 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7460 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7461 * c-valprint.c (c_value_print_inner): New function.
7462 * c-lang.h (c_value_print_inner): Declare.
7463 * c-lang.c (c_language_defn, cplus_language_defn)
7464 (asm_language_defn, minimal_language_defn): Use
7465 c_value_print_inner.
7466
1e592a8a
TT
74672020-03-13 Tom Tromey <tom@tromey.com>
7468
7469 * p-valprint.c (pascal_object_print_value_fields): Now static.
7470 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7471
7fe471e9
TT
74722020-03-13 Tom Tromey <tom@tromey.com>
7473
7474 * c-valprint.c (c_val_print_array): Simplify.
7475
d121c6ce
TT
74762020-03-13 Tom Tromey <tom@tromey.com>
7477
7478 * valprint.c (value_print_array_elements): New function.
7479 * valprint.h (value_print_array_elements): Declare.
7480
4dba70ee
TT
74812020-03-13 Tom Tromey <tom@tromey.com>
7482
7483 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7484 * mips-tdep.c (mips_print_register): Use
7485 value_print_scalar_formatted.
7486
4f9ae810
TT
74872020-03-13 Tom Tromey <tom@tromey.com>
7488
7489 * valprint.h (value_print_scalar_formatted): Declare.
7490 * valprint.c (value_print_scalar_formatted): New function.
7491
156bfec9
TT
74922020-03-13 Tom Tromey <tom@tromey.com>
7493
7494 * valprint.h (generic_value_print): Declare.
7495 * valprint.c (generic_value_print): New function.
7496
2b4e573d
TT
74972020-03-13 Tom Tromey <tom@tromey.com>
7498
7499 * valprint.c (do_val_print): Call la_value_print_inner, if
7500 available.
7501 * rust-lang.c (rust_language_defn): Update.
7502 * p-lang.c (pascal_language_defn): Update.
7503 * opencl-lang.c (opencl_language_defn): Update.
7504 * objc-lang.c (objc_language_defn): Update.
7505 * m2-lang.c (m2_language_defn): Update.
7506 * language.h (struct language_defn) <la_value_print_inner>: New
7507 member.
7508 * language.c (unknown_language_defn, auto_language_defn): Update.
7509 * go-lang.c (go_language_defn): Update.
7510 * f-lang.c (f_language_defn): Update.
7511 * d-lang.c (d_language_defn): Update.
7512 * c-lang.c (c_language_defn, cplus_language_defn)
7513 (asm_language_defn, minimal_language_defn): Update.
7514 * ada-lang.c (ada_language_defn): Update.
7515
a1f6a07c
TT
75162020-03-13 Tom Tromey <tom@tromey.com>
7517
7518 * c-valprint.c (c_value_print): Use common_val_print.
7519
410cf315
TT
75202020-03-13 Tom Tromey <tom@tromey.com>
7521
7522 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7523
72a45c93
TT
75242020-03-13 Tom Tromey <tom@tromey.com>
7525
7526 * f-valprint.c (f77_print_array_1, f_val_print): Use
7527 common_val_print.
7528
040f66bd
TT
75292020-03-13 Tom Tromey <tom@tromey.com>
7530
7531 * riscv-tdep.c (riscv_print_one_register_info): Use
7532 common_val_print.
7533
a6e05a6c
TT
75342020-03-13 Tom Tromey <tom@tromey.com>
7535
7536 * mi/mi-main.c (output_register): Use common_val_print.
7537
3444c526
TT
75382020-03-13 Tom Tromey <tom@tromey.com>
7539
7540 * infcmd.c (default_print_one_register_info): Use
7541 common_val_print.
7542
c2a44efe
TT
75432020-03-13 Tom Tromey <tom@tromey.com>
7544
7545 * valprint.h (common_val_print_checked): Declare.
7546 * valprint.c (common_val_print_checked): New function.
7547 * stack.c (print_frame_arg): Use common_val_print_checked.
7548
b0c26e99
TT
75492020-03-13 Tom Tromey <tom@tromey.com>
7550
7551 * valprint.c (do_val_print): New function, from val_print.
7552 (val_print): Use do_val_print.
7553 (common_val_print): Use do_val_print.
7554
ce3acbe9
TT
75552020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * valprint.c (value_print): Use scoped_value_mark.
7558
96c7f873
TV
75592020-03-13 Tom de Vries <tdevries@suse.de>
7560
7561 PR symtab/25646
7562 * psymtab.c (partial_symtab::partial_symtab): Don't set
7563 globals_offset and statics_offset. Push element onto
7564 current_global_psymbols and current_static_psymbols stacks.
7565 (concat): New function.
7566 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7567 element from current_global_psymbols and current_static_psymbols
7568 stacks. Concat popped elements to global_psymbols and
7569 static_symbols.
7570 (add_psymbol_to_list): Use current_global_psymbols and
7571 current_static_psymbols stacks.
7572 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7573 current_static_psymbols fields.
7574
6ba0a321
CB
75752020-03-12 Christian Biesinger <cbiesinger@google.com>
7576
7577 * corelow.c (sniff_core_bfd): Remove.
7578 (class core_target) <m_core_vec>: Remove.
7579 (core_target::core_target): Update.
7580 (core_file_fns): Remove.
7581 (deprecated_add_core_fns): Remove.
7582 (default_core_sniffer): Remove.
7583 (sniff_core_bfd): Remove.
7584 (default_check_format): Remove.
7585 (gdb_check_format): Remove.
7586 (core_target_open): Update.
7587 (core_target::get_core_register_section): Update.
7588 (get_core_registers_cb): Update.
7589 (core_target::fetch_registers): Update.
7590 * gdbcore.h (struct core_fns): Remove.
7591 (deprecated_add_core_fns): Remove.
7592 (default_core_sniffer): Remove.
7593 (default_check_format): Remove.
7594
227031b2
TT
75952020-03-12 Tom Tromey <tom@tromey.com>
7596
7597 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7598 CORE_ADDR.
7599 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7600
53807e9f
TT
76012020-03-12 Tom Tromey <tom@tromey.com>
7602
7603 * remote.c (remote_target::download_tracepoint)
7604 (remote_target::enable_tracepoint)
7605 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7606 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7607 sprintf_vma.
7608
64f25102
TT
76092020-03-12 Tom Tromey <tom@tromey.com>
7610
7611 * symfile-mem.c: Update CORE_ADDR size assert.
7612
272cd5a3
SM
76132020-03-12 Simon Marchi <simon.marchi@efficios.com>
7614
7615 * selftest.m4: Move to gdbsupport/.
7616 * acinclude.m4: Update path to selftest.m4.
7617
74cd3f9d
SM
76182020-03-12 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7621 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7622 gdbarch-selfselftests.c and selftest-arch.c.
7623 (SUBDIR_UNITTESTS_OBS): Rename to...
7624 (SELFTESTS_OBS): ... this.
7625 (COMMON_SFILES): Remove disasm-selftests.c and
7626 gdbarch-selftests.c.
7627 * configure.ac: Don't add selftest-arch.{c,o} to
7628 CONFIG_{SRCS,OBS}.
7629 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7630 preprocessor conditions.
7631
db6878ac
SM
76322020-03-12 Simon Marchi <simon.marchi@efficios.com>
7633
7634 * configure.ac: Don't source bfd/development.sh.
7635 * selftest.m4: Modify comment.
7636 * configure: Re-generate.
7637
4d696a5c
SM
76382020-03-12 Simon Marchi <simon.marchi@efficios.com>
7639
7640 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7641 not "true" or "false".
7642 * configure: Re-generate.
7643
8dd8e1c7
CB
76442020-03-12 Christian Biesinger <cbiesinger@google.com>
7645
7646 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7647 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7648 renamed to arm_nbsd_supply_gregset.
7649 (fetch_register): Update to call arm_nbsd_supply_gregset.
7650 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7651 (arm_netbsd_nat_target::fetch_registers): Update.
7652 (fetch_elfcore_registers): Removed.
7653 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7654 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7655 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7656 not require NetBSD system headers.
7657 (arm_nbsd_regset): New struct.
7658 (arm_nbsd_iterate_over_regset_sections): New function.
7659 (arm_netbsd_init_abi_common): Updated to call
7660 set_gdbarch_iterate_over_regset_sections.
7661 * arm-nbsd-tdep.h: New file.
7662
dd69bf7a
KB
76632020-03-11 Kevin Buettner <kevinb@redhat.com>
7664
7665 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7666 recursion.
7667
a0761e34
SM
76682020-03-11 Simon Marchi <simon.marchi@efficios.com>
7669
7670 * configure: Re-generate.
7671
e7a82140
TT
76722020-03-11 Tom Tromey <tromey@adacore.com>
7673
7674 * ada-typeprint.c (print_choices): Fix comment.
7675
dcc050c8
AB
76762020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7677
7678 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7679 previous item in the list, when the list has no items.
7680
1c33af77
TV
76812020-03-11 Tom de Vries <tdevries@suse.de>
7682
7683 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7684 PROP_LOCLIST handling code.
7685
8c95582d
AB
76862020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7687
7688 * buildsym-legacy.c (record_line): Pass extra parameter to
7689 record_line.
7690 * buildsym.c (buildsym_compunit::record_line): Take an extra
7691 parameter, reduce duplication in the line table, and record the
7692 is_stmt flag in the line table.
7693 * buildsym.h (buildsym_compunit::record_line): Add extra
7694 parameter.
7695 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7696 non-statement lines.
7697 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7698 this to the symtab builder.
7699 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7700 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7701 through to dwarf_record_line_1.
7702 * infrun.c (process_event_stop_test): When stepping, don't stop at
7703 a non-statement instruction, and only refresh the step info when
7704 we land in the middle of a line's range. Also add an extra
7705 comment.
7706 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7707 field.
7708 * record-btrace.c (btrace_find_line_range): Only record lines
7709 marked as is-statement.
7710 * stack.c (frame_show_address): Show the frame address if we are
7711 in a non-statement sal.
7712 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7713 (maintenance_print_one_line_table): Print a header for the is_stmt
7714 column, and include is_stmt information in the output.
7715 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7716 preference to non-statements.
7717 (find_pcs_for_symtab_line): Prefer is-statement entries.
7718 (find_line_common): Likewise.
7719 * symtab.h (struct linetable_entry): Add is_stmt field.
7720 (struct symtab_and_line): Likewise.
7721 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7722 arranging the line table.
7723
e4003a34
TV
77242020-03-07 Tom de Vries <tdevries@suse.de>
7725
7726 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7727 DIE.
7728
e8932576
TT
77292020-03-07 Tom Tromey <tom@tromey.com>
7730
7731 * valops.c (value_literal_complex): Remove obsolete comment.
7732 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7733 comment.
7734
29734269
SM
77352020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7736
7737 * infrun.h: Forward-declare thread_info.
7738 (set_step_info): Add thread_info parameter, add doc.
7739 * infrun.c (set_step_info): Add thread_info parameter, move doc
7740 to header.
7741 * infrun.c (process_event_stop_test): Pass thread to
7742 set_step_info call.
7743 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7744 set_step_info.
7745 (prepare_one_step): Add thread_info parameter, pass it to
7746 set_step_frame and prepare_one_step (recursive) call.
7747 (step_1): Pass thread to prepare_one_step call.
7748 (step_command_fsm::should_stop): Pass thread to
7749 prepare_one_step.
7750 (until_next_fsm): Pass thread to set_step_frame call.
7751 (finish_command): Pass thread to set_step_info call.
7752
b7d64b29
HD
77532020-03-06 Hannes Domani <ssbssa@yahoo.de>
7754
7755 * windows-tdep.c (windows_solib_create_inferior_hook):
7756 Check if inferior is running.
7757
09f2921c
TV
77582020-03-06 Tom de Vries <tdevries@suse.de>
7759
7760 * NEWS: Fix "the the".
7761 * ctfread.c: Same.
7762
fd760e79
TV
77632020-03-06 Tom de Vries <tdevries@suse.de>
7764
7765 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7766
20ea4a60
AB
77672020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7768
7769 * .dir-locals.el: Add a comment referencing the other copies of
7770 this file.
7771
0afbabf0
JB
77722020-03-05 John Baldwin <jhb@FreeBSD.org>
7773
7774 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7775 psargs.
7776
842806cb
TBA
77772020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7778
7779 * .gitattributes: New file.
7780
be1e3d3e
TT
77812020-03-04 Tom Tromey <tom@tromey.com>
7782
7783 * symmisc.c (print_symbol_bcache_statistics)
7784 (print_objfile_statistics): Update.
7785 * symfile.c (allocate_symtab): Use intern.
7786 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7787 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7788 macro_cache>: Remove.
7789 <string_cache>: New member.
7790 (struct objfile) <intern>: New methods.
7791 * elfread.c (elf_symtab_read): Use intern.
7792 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7793 (dwarf2_compute_name, dwarf2_physname)
7794 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7795 names.
7796 (guess_partial_die_structure_name): Update.
7797 (partial_die_info::fixup): Intern name.
7798 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7799 name.
7800 (dwarf2_name): Intern name. Update.
7801 * buildsym.c (buildsym_compunit::get_macro_table): Use
7802 string_cache.
7803
4e7625fd
TT
78042020-03-04 Tom Tromey <tom@tromey.com>
7805
7806 * jit.c (bfd_open_from_target_memory): Make "target" const.
7807 * corefile.c (gnutarget): Now const.
7808 * gdbcore.h (gnutarget): Now const.
7809
46f9f931
HD
78102020-03-04 Hannes Domani <ssbssa@yahoo.de>
7811
7812 * NEWS: Mention support for WOW64 processes.
7813 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7814 (amd64_windows_segment_register_p): Remove static.
7815 (_initialize_amd64_windows_nat): Update.
7816 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7817 * i386-windows-nat.c (context_offset): Update.
7818 (i386_mappings): Rename and remove static.
7819 (i386_windows_segment_register_p): Remove static.
7820 (_initialize_i386_windows_nat): Update.
7821 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7822 (STATUS_WX86_SINGLE_STEP): New macro.
7823 (EnumProcessModulesEx): New macro.
7824 (Wow64SuspendThread): New macro.
7825 (Wow64GetThreadContext): New macro.
7826 (Wow64SetThreadContext): New macro.
7827 (Wow64GetThreadSelectorEntry): New macro.
7828 (windows_set_context_register_offsets): Add static.
7829 (windows_set_segment_register_p): Likewise.
7830 (windows_add_thread): Adapt for WOW64 processes.
7831 (windows_fetch_one_register): Likewise.
7832 (windows_nat_target::fetch_registers): Likewise.
7833 (windows_store_one_register): Likewise.
7834 (display_selector): Likewise.
7835 (display_selectors): Likewise.
7836 (handle_exception): Likewise.
7837 (windows_continue): Likewise.
7838 (windows_nat_target::resume): Likewise.
7839 (windows_add_all_dlls): Likewise.
7840 (do_initial_windows_stuff): Likewise.
7841 (windows_nat_target::attach): Likewise.
7842 (windows_get_exec_module_filename): Likewise.
7843 (windows_nat_target::create_inferior): Likewise.
7844 (windows_xfer_siginfo): Likewise.
7845 (_initialize_loadable): Initialize Wow64SuspendThread,
7846 Wow64GetThreadContext, Wow64SetThreadContext,
7847 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7848 * windows-nat.h (windows_set_context_register_offsets):
7849 Remove declaration.
7850 (windows_set_segment_register_p): Likewise.
7851 (i386_windows_segment_register_p): Add declaration.
7852 (amd64_windows_segment_register_p): Likewise.
7853
440cf44e
LM
78542020-03-04 Luis Machado <luis.machado@linaro.org>
7855
7856 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7857 in "info registers" for AArch64/ARM.
7858
7859 The change caused "info registers" to not print GPR's.
7860
7861 gdb/ChangeLog:
7862
7863 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7864
7865 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7866 when reg->group is empty and reggroup is not.
7867
1009d92f
TT
78682020-03-03 Tom Tromey <tromey@adacore.com>
7869
7870 * dwarf2/frame.c (struct dwarf2_frame_cache)
7871 <checked_tailcall_bottom, entry_cfa_sp_offset,
7872 entry_cfa_sp_offset_p>: Remove members.
7873 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7874 (dwarf2_frame_prev_register): Don't call
7875 dwarf2_tailcall_sniffer_first.
7876 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7877 * frame-unwind.c (add_unwinder): New fuction.
7878 (frame_unwind_init): Use it. Add tailcall unwinder.
7879
5e5d66b6
AB
78802020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7881 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7882
7883 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7884 value should be printed as true.
7885
584cf46d
HD
78862020-03-03 Hannes Domani <ssbssa@yahoo.de>
7887
7888 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7889 (windows_init_abi): Set and use windows_so_ops.
7890
7b973adc
SDJ
78912020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7892
7893 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7894 when verifying if dealing with a convenience variable.
7895
bb7b70ab
LM
78962020-03-03 Luis Machado <luis.machado@linaro.org>
7897
7898 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7899
9822cb57
SM
79002020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7901
7902 * infrun.c (gdbarch_supports_displaced_stepping): New.
7903 (use_displaced_stepping): Break up conditions in smaller pieces.
7904 Use gdbarch_supports_displaced_stepping.
7905 (displaced_step_prepare_throw): Use
7906 gdbarch_supports_displaced_stepping.
7907
63e163f2
AB
79082020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7909
7910 * NEWS: Mention new behaviour of the history filename.
7911 * top.c (write_history_p): Add comment.
7912 (show_write_history_p): Add header comment, give a different
7913 message when history writing is on, but the history filename is
7914 empty.
7915 (history_filename): Add comment.
7916 (history_filename_empty): New function.
7917 (show_history_filename): Add header comment, give a different
7918 message when the filename is empty.
7919 (init_history): Compare history_filename against nullptr, and only
7920 read history if the filename is not empty.
7921 (set_history_filename): Add header comment, and only make
7922 non-empty filenames absolute.
7923 (init_main): Make the filename argument to 'set history filename'
7924 optional.
7925
81b86b97
CB
79262020-03-02 Christian Biesinger <cbiesinger@google.com>
7927
7928 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7929 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7930 (fetch_fp_register): Update.
7931 (fetch_fp_regs): Update.
7932 (store_fp_register): Update.
7933 (store_fp_regs): Update.
7934 (arm_netbsd_nat_target::read_description): New function.
7935 (fetch_elfcore_registers): Update.
7936
24ed6739
AB
79372020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7938
7939 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7940 general_thread if the stop reply is missing a thread-id.
7941 (remote_target::process_stop_reply): Use the first non-exited
7942 thread if the target didn't pass a thread-id.
7943 * infrun.c (do_target_wait): Move call to
7944 switch_to_inferior_no_thread to ....
7945 (do_target_wait_1): ... here.
7946
a84bb2a0
JT
79472020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7948
7949 * debuginfod-support.c: Include defs.h first.
7950
658dadf0
TV
79512020-02-28 Tom de Vries <tdevries@suse.de>
7952
7953 * symfile.c (set_initial_language): Use default language for lookup.
7954
4ebe4877
SM
79552020-02-28 Simon Marchi <simon.marchi@efficios.com>
7956
7957 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7958 reader variable, pass `this` to read_cutu_die_from_dwo.
7959
e5da1139
AM
79602020-02-27 Aaron Merey <amerey@redhat.com>
7961
7962 * source.c (open_source_file): Check for nullptr when computing
7963 srcpath.
7964
317f7127
TT
79652020-02-27 Tom Tromey <tromey@adacore.com>
7966
7967 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7968 member.
7969 (dwarf2_add_field): Don't update nfields.
7970 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7971
3104d9ee
AB
79722020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7973
7974 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7975 abs.
7976
b83470bf
TT
79772020-02-26 Tom Tromey <tom@tromey.com>
7978
7979 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7980 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7981 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7982 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7983 per_cu_data.
7984
edfe0a0c
TT
79852020-02-26 Tom Tromey <tom@tromey.com>
7986
7987 * dwarf2/index-write.c (psym_index_map): Change type.
7988 (add_address_entry_worker, write_one_signatured_type)
7989 (recursively_count_psymbols, recursively_write_psymbols)
7990 (class debug_names, psyms_seen_size, write_gdbindex)
7991 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7992
0d79cdc4
AM
79932020-02-26 Aaron Merey <amerey@redhat.com>
7994
7995 * Makefile.in: Handle optional debuginfod support.
7996 * NEWS: Update.
7997 * README: Add --with-debuginfod summary.
7998 * config.in: Regenerate.
7999 * configure: Regenerate.
8000 * configure.ac: Handle optional debuginfod support.
8001 * debuginfod-support.c: debuginfod helper functions.
8002 * debuginfod-support.h: Ditto.
8003 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8004 summary.
8005 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8006 when a dwz file cannot be found.
8007 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8008 debuginfo file cannot be found.
8009 * source.c (open_source_file): Query debuginfod servers when a
8010 source file cannot be found.
8011 * top.c (print_gdb_configuration): Include
8012 --{with,without}-debuginfod in the output.
8013
b65ce565
JG
80142020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8015
8016 * thread.c (thr_try_catch_cmd): Print thread name.
8017
d4c9a4f8
SM
80182020-02-26 Simon Marchi <simon.marchi@efficios.com>
8019
8020 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8021 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8022 dwarf2_fetch_die_type_sect_off): Move to...
8023 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8024 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8025 dwarf2_fetch_die_type_sect_off): ... here.
8026 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8027 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8028 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8029
0dce4280
TV
80302020-02-26 Tom de Vries <tdevries@suse.de>
8031
8032 PR gdb/25603
8033 * symfile.c (set_initial_language): Exit-early if
8034 language_mode == language_mode_manual.
8035
450a1bfc
SM
80362020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8037
8038 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8039 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8040 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8041
9e80cfa1
AB
80422020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8043
8044 * gdbtypes.c (create_array_type_with_stride): Handle negative
8045 array strides.
8046 * valarith.c (value_subscripted_rvalue): Likewise.
8047
09624f1f
LM
80482020-02-25 Luis Machado <luis.machado@linaro.org>
8049
8050 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8051
8cb5117c
SM
80522020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8053
8054 * loc.h (dwarf2_get_die_type): Move to...
8055 * read.h (dwarf2_get_die_type): ... here.
8056 * read.c (dwarf2_get_die_type): Move doc to header.
8057
c325c44e
JB
80582020-02-25 Joel Brobecker <brobecker@adacore.com>
8059
8060 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8061 'gnulib/Makefile.in' to the list.
8062
4ac93832
TT
80632020-02-24 Tom Tromey <tom@tromey.com>
8064
8065 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8066 Remove.
8067 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8068 XOBNEWVEC.
8069
197400e8
TT
80702020-02-24 Tom Tromey <tom@tromey.com>
8071
8072 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8073 New method.
8074 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8075 (dw2_do_instantiate_symtab, dw2_get_file_names)
8076 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8077
76935768
TT
80782020-02-24 Tom Tromey <tom@tromey.com>
8079
8080 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8081 make_scoped_restore.
8082 (dwarf2_psymtab::read_symtab): Don't clear
8083 reading_partial_symbols.
8084
a88ef40d
TV
80852020-02-24 Tom de Vries <tdevries@suse.de>
8086
8087 PR gdb/25592
8088 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8089
c9af6521
TV
80902020-02-24 Tom de Vries <tdevries@suse.de>
8091
8092 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8093 commands layout next/prev/regs.
8094
5707a07a
TT
80952020-02-22 Tom Tromey <tom@tromey.com>
8096
8097 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8098 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8099
3b0fb49e
TT
81002020-02-22 Tom Tromey <tom@tromey.com>
8101
8102 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8103
283be8bf
TT
81042020-02-22 Tom Tromey <tom@tromey.com>
8105
8106 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8107 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8108 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8109 * tui/tui.c (_initialize_tui): Add usage text.
8110
ca793b96
TT
81112020-02-22 Tom Tromey <tom@tromey.com>
8112
8113 * tui/tui-win.c (tui_set_focus_command)
8114 (tui_set_win_height_command): Use error_no_arg.
8115 (_initialize_tui_win): Update help text.
8116 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8117
432b5c40
TT
81182020-02-22 Tom Tromey <tom@tromey.com>
8119
8120 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8121 * tui/tui-disasm.h (struct tui_disasm_window)
8122 <display_start_addr>: Declare.
8123 * tui/tui-source.h (struct tui_source_window)
8124 <display_start_addr>: Declare.
8125 * tui/tui-winsource.h (struct tui_source_window_base)
8126 <show_source_line, display_start_addr>: New methods.
8127 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8128 Rename and move to protected section.
8129 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8130 (tui_source_window_base::do_erase_source_content): Update.
8131 (tui_source_window_base::show_source_line): Now a method.
8132 (tui_source_window_base::show_source_content)
8133 (tui_source_window_base::tui_source_window_base)
8134 (tui_source_window_base::rerender)
8135 (tui_source_window_base::refill)
8136 (tui_source_window_base::do_scroll_horizontal)
8137 (tui_source_window_base::set_is_exec_point_at)
8138 (tui_source_window_base::update_breakpoint_info)
8139 (tui_source_window_base::update_exec_info): Update.
8140 * tui/tui-source.c (tui_source_window::set_contents)
8141 (tui_source_window::showing_source_p)
8142 (tui_source_window::do_scroll_vertical)
8143 (tui_source_window::location_matches_p)
8144 (tui_source_window::line_is_displayed): Update.
8145 (tui_source_window::display_start_addr): New method.
8146 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8147 (tui_disasm_window::do_scroll_vertical)
8148 (tui_disasm_window::location_matches_p): Update.
8149 (tui_disasm_window::display_start_addr): New method.
8150
01b1af32
TT
81512020-02-22 Tom Tromey <tom@tromey.com>
8152
8153 * NEWS: Add entry for gdb.register_window_type.
8154 * tui/tui-layout.h (window_factory): New typedef.
8155 (tui_register_window): Declare.
8156 * tui/tui-layout.c (saved_tui_windows): New global.
8157 (tui_apply_current_layout): Use it.
8158 (tui_register_window): New function.
8159 * python/python.c (do_start_initialization): Call
8160 gdbpy_initialize_tui.
8161 (python_GdbMethods): Add "register_window_type" function.
8162 * python/python-internal.h (gdbpy_register_tui_window)
8163 (gdbpy_initialize_tui): Declare.
8164 * python/py-tui.c: New file.
8165 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8166
fc96d20b
TT
81672020-02-22 Tom Tromey <tom@tromey.com>
8168
8169 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8170
935c78c0
TT
81712020-02-22 Tom Tromey <tom@tromey.com>
8172
8173 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8174 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8175 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8176 (tui_set_win_focus_to): Move from tui-win.c.
8177
0240c8f1
TT
81782020-02-22 Tom Tromey <tom@tromey.com>
8179
8180 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8181 functions.
8182 (known_window_types): New global.
8183 (tui_get_window_by_name): Reimplement.
8184 (initialize_known_windows): New function.
8185 (validate_window_name): Rewrite.
8186 (_initialize_tui_layout): Call initialize_known_windows.
8187
fdb01f0c
TT
81882020-02-22 Tom Tromey <tom@tromey.com>
8189
8190 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8191 Remove constants.
8192 * tui/tui-winsource.h (struct tui_source_window_base)
8193 <tui_source_window_base>: Remove parameter.
8194 * tui/tui-winsource.c
8195 (tui_source_window_base::tui_source_window_base): Remove
8196 parameter.
8197 (tui_source_window_base::refill): Update.
8198 * tui/tui-stack.h (struct tui_locator_window)
8199 <tui_locator_window>: Update.
8200 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8201 Default the constructor.
8202 * tui/tui-regs.h (struct tui_data_item_window)
8203 <tui_data_item_window>: Default the constructor.
8204 (struct tui_data_window) <tui_data_window>: Likewise.
8205 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8206 Default the constructor.
8207 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8208 Default the constructor.
8209 <type>: Remove.
8210 (struct tui_win_info) <tui_win_info>: Default the constructor.
8211 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8212 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8213 Default the constructor.
8214
865a5aec
TT
82152020-02-22 Tom Tromey <tom@tromey.com>
8216
8217 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8218 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8219 * tui/tui-win.c (tui_resize_all): Don't call
8220 tui_delete_invisible_windows.
8221 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8222 done.
8223 (tui_set_layout): Update.
8224 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8225 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8226 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8227
e098d18c
TT
82282020-02-22 Tom Tromey <tom@tromey.com>
8229
8230 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8231 correctly.
8232
eb9c8874
TT
82332020-02-22 Tom Tromey <tom@tromey.com>
8234
8235 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8236
7eed1a8e
TT
82372020-02-22 Tom Tromey <tom@tromey.com>
8238
8239 * tui/tui-winsource.h (struct tui_source_window_iterator)
8240 <inner_iterator>: New etytypedef.
8241 <tui_source_window_iterator>: Take "end" parameter.
8242 <tui_source_window_iterator>: Take iterator.
8243 <operator*, advance>: Update.
8244 <m_iter>: Change type.
8245 <m_end>: New field.
8246 (struct tui_source_windows) <begin, end>: Update.
8247 * tui/tui-layout.c (tui_windows): New global.
8248 (tui_apply_current_layout): Clear tui_windows.
8249 (tui_layout_window::apply): Update tui_windows.
8250 * tui/tui-data.h (tui_windows): Declare.
8251 (all_tui_windows): Now inline function.
8252 (class tui_window_iterator, struct all_tui_windows): Remove.
8253
7c043ba6
TT
82542020-02-22 Tom Tromey <tom@tromey.com>
8255
8256 PR tui/17850:
8257 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8258 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8259 "height" argument.
8260 (class tui_layout_window) <get_sizes>: Likewise.
8261 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8262 argument.
8263 <get_sizes>: Add "height" argument.
8264 <m_vertical>: New field.
8265 * tui/tui-layout.c (tui_layout_split::clone): Update.
8266 (tui_layout_split::get_sizes): Add "height" argument.
8267 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8268 (tui_new_layout_command): Parse "-horizontal".
8269 (_initialize_tui_layout): Update help string.
8270 (tui_layout_split::specification): Add "-horizontal" when needed.
8271 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8272 argument.
8273 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8274 New methods.
8275
6bc56648
TT
82762020-02-22 Tom Tromey <tom@tromey.com>
8277
8278 * tui/tui-layout.h (enum tui_adjust_result): New.
8279 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8280 (class tui_layout_window) <adjust_size>: Return
8281 tui_adjust_result. Rewrite.
8282 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8283 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8284
c22fef7e
TT
82852020-02-22 Tom Tromey <tom@tromey.com>
8286
8287 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8288 parameter and return types.
8289 (class tui_layout_base) <specification>: Add "depth".
8290 (class tui_layout_window) <specification>: Add "depth".
8291 (class tui_layout_split) <specification>: Add "depth".
8292 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8293 and return types.
8294 (tui_new_layout_command): Parse sub-layouts.
8295 (_initialize_tui_layout): Update help string.
8296 (tui_layout_window::specification): Add "depth".
8297 (add_layout_command): Update.
8298
ee325b61
TT
82992020-02-22 Tom Tromey <tom@tromey.com>
8300
8301 * NEWS: Add "tui new-layout" item.
8302 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8303 Add new-layout command to help text.
8304 (validate_window_name): New function.
8305 (tui_new_layout_command): New function.
8306 (_initialize_tui_layout): Register "new-layout".
8307 (tui_layout_window::specification): New method.
8308 (tui_layout_window::specification): New method.
8309 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8310 method.
8311 (class tui_layout_window) <specification>: New method.
8312 (class tui_layout_split) <specification>: New method.
8313
416eb92d
TT
83142020-02-22 Tom Tromey <tom@tromey.com>
8315
8316 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8317 * tui/tui-win.c (window_name_completer): Update comment.
8318 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8319 Declare method.
8320 (class tui_layout_window) <replace_window>: Likewise.
8321 (class tui_layout_split) <replace_window>: Likewise.
8322 (tui_set_layout): Don't declare.
8323 (tui_set_initial_layout): Declare function.
8324 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8325 (asm_regs_layout): New globals.
8326 (tui_current_layout, show_layout): Remove.
8327 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8328 (find_layout, tui_apply_layout): New function.
8329 (layout_completer): Remove.
8330 (tui_next_layout): Reimplement.
8331 (tui_next_layout_command): New function.
8332 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8333 (tui_regs_layout): Reimplement.
8334 (tui_regs_layout_command): New function.
8335 (extract_display_start_addr): Rewrite.
8336 (next_layout, prev_layout): Remove.
8337 (tui_layout_window::replace_window): New method.
8338 (tui_layout_split::replace_window): New method.
8339 (destroy_layout): New function.
8340 (layout_list): New global.
8341 (add_layout_command): New function.
8342 (initialize_layouts): Update.
8343 (tui_layout_command): New function.
8344 (_initialize_tui_layout): Install "layout" commands.
8345 * tui/tui-data.h (enum tui_layout_type): Remove.
8346 (tui_current_layout): Don't declare.
8347
0dbc2fc7
TT
83482020-02-22 Tom Tromey <tom@tromey.com>
8349
8350 * tui/tui-regs.c (tui_reg_layout): Remove.
8351 (tui_reg_command): Use tui_regs_layout.
8352 * tui/tui-layout.h (tui_reg_command): Declare.
8353 * tui/tui-layout.c (tui_reg_command): New function.
8354
5afe342e
TT
83552020-02-22 Tom Tromey <tom@tromey.com>
8356
8357 * tui/tui.c (tui_rl_delete_other_windows): Call
8358 tui_remove_some_windows.
8359 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8360 Declare method.
8361 (class tui_layout_window) <remove_windows>: New method.
8362 (class tui_layout_split) <remove_windows>: Declare.
8363 (tui_remove_some_windows): Declare.
8364 * tui/tui-layout.c (tui_remove_some_windows): New function.
8365 (tui_layout_split::remove_windows): New method.
8366
427326a8
TT
83672020-02-22 Tom Tromey <tom@tromey.com>
8368
8369 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8370 * tui/tui-layout.h (tui_next_layout): Declare.
8371 * tui/tui-layout.c (tui_next_layout): New function.
8372
3fe12b6d
TT
83732020-02-22 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8376 correct coordinates.
8377
59b8b5d2
TT
83782020-02-22 Tom Tromey <tom@tromey.com>
8379
8380 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8381 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8382 DATA_WIN case.
8383
2a3d458b
TT
83842020-02-22 Tom Tromey <tom@tromey.com>
8385
8386 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8387 TUI_DISASM_WIN, not tui_win_list.
8388
3f0cbb04
TT
83892020-02-22 Tom Tromey <tom@tromey.com>
8390
8391 * valprint.c (generic_val_print_enum_1)
8392 (val_print_type_code_flags): Style member names.
8393 * rust-lang.c (val_print_struct, rust_print_enum)
8394 (rust_print_struct_def, rust_internal_print_type): Style member
8395 names.
8396 * p-valprint.c (pascal_object_print_value_fields): Style member
8397 names. Only call fprintf_symbol_filtered for static members.
8398 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8399 * f-valprint.c (f_val_print): Style member names.
8400 * f-typeprint.c (f_type_print_base): Style member names.
8401 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8402 call fprintf_symbol_filtered for static members.
8403 (cp_print_class_member): Style member names.
8404 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8405 member names.
8406 * ada-valprint.c (ada_print_scalar): Style enum names.
8407 (ada_val_print_enum): Likewise.
8408 * ada-typeprint.c (print_enum_type): Style enum names.
8409
d4d947ae
TT
84102020-02-21 Tom Tromey <tom@tromey.com>
8411
8412 * psympriv.h (struct partial_symtab): Update comment.
8413
e94e944b
TT
84142020-02-21 Tom Tromey <tromey@adacore.com>
8415
8416 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8417 type is CORE_ADDR.
8418
1eb73179
TV
84192020-02-21 Tom de Vries <tdevries@suse.de>
8420
8421 PR gdb/25534
8422 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8423 if dependencies[i]->user != NULL.
8424
4f180d53
AT
84252020-02-21 Ali Tamur <tamur@google.com>
8426
8427 * dwarf2/read.c (dwarf2_name): Add null check.
8428
22b6cd70
TT
84292020-02-20 Tom Tromey <tom@tromey.com>
8430
8431 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8432 ">=", in binary search.
8433 (dwarf2_find_containing_comp_unit): New overload.
8434 (run_test): New self-test.
8435 (_initialize_dwarf2_read): Register new test.
8436
bd0cf5a6
NC
84372020-02-20 Nelson Chu <nelson.chu@sifive.com>
8438
8439 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8440 * riscv-tdep.h: Likewise.
8441 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8442 rv32-only CSR.
8443 * features/riscv/64bit-csr.xml: Regenerated.
8444
3f702acd
SDJ
84452020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8446 Tom Tromey <tom@tromey.com>
8447
8448 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8449 of 'fputc_unfiltered'.
8450 (putchar_unfiltered): Call 'fputc_unfiltered'.
8451 (fputc_unfiltered): Call 'fputs_unfiltered'.
8452
d13c7322
AB
84532020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8454
8455 * config.in: Regenerate.
8456 * configure: Regenerate.
8457 * configure.ac: Add --with-python-libdir option.
8458 * main.c: Use WITH_PYTHON_LIBDIR.
8459
869d8950
TT
84602020-02-19 Tom Tromey <tom@tromey.com>
8461
8462 * symtab.c (general_symbol_info::compute_and_set_names): Use
8463 obstack_strndup. Simplify call to symbol_set_demangled_name.
8464
298e9637
SM
84652020-02-19 Simon Marchi <simon.marchi@efficios.com>
8466
8467 * dwarf2/read.c (allocate_signatured_type_table,
8468 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8469 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8470 Remove objfile parameter, update all callers.
8471
08410482
DE
84722020-02-19 Doug Evans <dje@google.com>
8473
8474 PR rust/25535
8475 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8476 rust_enum_variant calculation.
8477
dfdeeca1
TT
84782020-02-19 Tom Tromey <tromey@adacore.com>
8479
8480 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8481
2ef5453b
TT
84822020-02-19 Tom Tromey <tromey@adacore.com>
8483
8484 * ada-lang.c (cache_symbol): Use obstack_strdup.
8485
9f1528a1
AB
84862020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8487
8488 * configure: Regenerate.
8489
d3c22fa8
TT
84902020-02-19 Tom Tromey <tromey@adacore.com>
8491
8492 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8493 NULL check.
8494
bf84f706
MR
84952020-02-19 Maciej W. Rozycki <macro@wdc.com>
8496
8497 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8498
d1c9b20f
AB
84992020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8500
8501 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8502 if GDBSERVER is not defined.
8503 (riscv_tdesc_cache): Likewise, also store const target_desc.
8504 (STATIC_IN_GDB): Define.
8505 (riscv_create_target_description): Update declaration with
8506 STATIC_IN_GDB.
8507 (riscv_lookup_target_description): New function, only define if
8508 GDBSERVER is not defined.
8509 * arch/riscv.h (riscv_create_target_description): Declare only
8510 when GDBSERVER is defined.
8511 (riscv_lookup_target_description): New declaration when GDBSERVER
8512 is not defined.
8513 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8514 (riscv_linux_read_features): ...this, and return
8515 riscv_gdbarch_features instead of target_desc.
8516 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8517 (riscv_linux_read_description): Rename to...
8518 (riscv_linux_read_features): ...this.
8519 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8520 Update to use riscv_gdbarch_features and
8521 riscv_lookup_target_description.
8522 * riscv-tdep.c (riscv_find_default_target_description): Use
8523 riscv_lookup_target_description instead of
8524 riscv_create_target_description.
8525
373d7ac0
SM
85262020-02-18 Simon Marchi <simon.marchi@efficios.com>
8527
8528 * valprint.c (generic_val_print_enum_1): When printing a flag
8529 enum with value 0 and there is no enumerator with value 0, print
8530 just "0" instead of "(unknown: 0x0)".
8531
b29a2df0
SM
85322020-02-18 Simon Marchi <simon.marchi@efficios.com>
8533
8534 * valprint.c (generic_val_print_enum_1): Print unknown part of
8535 flag enum in hex.
8536
6740f0cc
SM
85372020-02-18 Simon Marchi <simon.marchi@efficios.com>
8538
8539 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8540 flag enums to contain duplicate enumerators.
8541 * valprint.c (generic_val_print_enum_1): Update comment.
8542
edd45eb0
SM
85432020-02-18 Simon Marchi <simon.marchi@efficios.com>
8544
8545 * dwarf2/read.c: Include "count-one-bits.h".
8546 (update_enumeration_type_from_children): If an enumerator has
8547 multiple bits set, don't treat the enumeration as a "flag enum".
8548 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8549 of flag enums have 0 or 1 bit set.
8550
6d0cf446
BE
85512020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8552
8553 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8554 conversion.
8555 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8556 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8557 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8558 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8559 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8560
7001c1b7
SM
85612020-02-18 Simon Marchi <simon.marchi@efficios.com>
8562
8563 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8564
fdb61c6c
SM
85652020-02-14 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8568 displaced_step_closure_up.
8569 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8570 (struct displaced_step_closure_up):
8571 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8572 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8573 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8574 Likewise.
8575 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8576 * gdbarch.c, gdbarch.h: Re-generate.
8577 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8578 displaced_step_closure_up.
8579 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8580 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8581 * infrun.h (displaced_step_closure_up): New type alias.
8582 (struct displaced_step_inferior_state) <step_closure>: Change
8583 type to displaced_step_closure_up.
8584 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8585 displaced_step_closure_up.
8586 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8587
a4a38eb4
TT
85882020-02-14 Tom Tromey <tom@tromey.com>
8589
8590 * minidebug.c (gnu_debug_key): New global.
8591 (find_separate_debug_file_in_section): Use it.
8592
e8217e61
SM
85932020-02-14 Simon Marchi <simon.marchi@efficios.com>
8594
8595 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8596 std::unique_ptr.
8597 * gdbarch.c: Re-generate.
8598 * gdbarch.h: Re-generate.
8599 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8600 change.
8601 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8602 type to std::unique_ptr.
8603 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8604 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8605 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8606 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8607 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8608 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8609 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8610 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8611 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8612
d8d83535
SM
86132020-02-14 Simon Marchi <simon.marchi@efficios.com>
8614
8615 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8616 std::unique_ptr.
8617 (displaced_step_clear): Rename to...
8618 (displaced_step_reset): ... this. Just call displaced->reset ().
8619 (displaced_step_clear_cleanup): Rename to...
8620 (displaced_step_reset_cleanup): ... this.
8621 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8622 (displaced_step_fixup): Likewise.
8623 (resume_1): Likewise.
8624 (handle_inferior_event): Restore child's memory before calling
8625 displaced_step_fixup on the parent.
8626 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8627 to std::unique_ptr.
8628 <step_closure>: Change type to std::unique_ptr.
8629
5f661e03
SM
86302020-02-14 Simon Marchi <simon.marchi@efficios.com>
8631
8632 * arm-tdep.c: Include count-one-bits.h.
8633 (cleanup_block_store_pc): Use count_one_bits.
8634 (cleanup_block_load_pc): Use count_one_bits.
8635 (arm_copy_block_xfer): Use count_one_bits.
8636 (thumb2_copy_block_xfer): Use count_one_bits.
8637 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8638 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8639 (thumb_get_next_pcs_raw): Use count_one_bits.
8640 (arm_get_next_pcs_raw): Use count_one_bits_l.
8641 * arch/arm.c (bitcount): Remove.
8642 * arch/arm.h (bitcount): Remove.
8643
8084e579
TT
86442020-02-14 Tom Tromey <tromey@adacore.com>
8645
8646 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8647 Update.
8648 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8649 * dwarf2/loc.c (call_site_find_chain_1): Return
8650 unique_xmalloc_ptr.
8651 (call_site_find_chain): Likewise.
8652
258bf0ee
RB
86532020-02-14 Richard Biener <rguenther@suse.de>
8654
8655 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8656 on expression with division operators.
8657
f98a8458
AKS
86582020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8659
8660 * MAINTAINERS (Write After Approval): Adding myself.
8661
d1437c0e
TT
86622020-02-12 Tom Tromey <tom@tromey.com>
8663
8664 * event-loop.c (event_data, gdb_event, event_handler_func):
8665 Remove.
8666
3d4560f7
TT
86672020-02-12 Tom Tromey <tom@tromey.com>
8668
8669 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8670 (dwarf2_frame_objfile_data): Add comment.
8671 (find_comp_unit, set_comp_unit): New functions.
8672 (dwarf2_frame_find_fde): Use find_comp_unit.
8673 (dwarf2_build_frame_info): Use set_comp_unit.
8674
21982304
TT
86752020-02-12 Tom Tromey <tom@tromey.com>
8676
8677 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8678 (comp_unit): Don't initialize objfile.
8679 (execute_cfa_program): Add text_offset parameter.
8680 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8681 (dwarf2_frame_cache): Update.
8682 (dwarf2_build_frame_info): Don't set "objfile" member.
8683
4debb237
TT
86842020-02-12 Tom Tromey <tom@tromey.com>
8685
8686 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8687 (decode_frame_entry): Likewise.
8688 (dwarf2_build_frame_info): Update.
8689
0d404d44
TT
86902020-02-12 Tom Tromey <tom@tromey.com>
8691
8692 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8693 (decode_frame_entry_1): Use the comp_unit obstack.
8694
a7a3ae5c
TT
86952020-02-12 Tom Tromey <tom@tromey.com>
8696
8697 * dwarf2/frame.c (struct comp_unit): Add initializers and
8698 constructor.
8699 (dwarf2_frame_objfile_data): Store a comp_unit.
8700 (dwarf2_frame_find_fde): Update.
8701 (dwarf2_build_frame_info): Use "new".
8702
a9d65418
TT
87032020-02-12 Tom Tromey <tom@tromey.com>
8704
8705 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8706 (dwarf2_fde_table): Typedef for std::vector.
8707 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8708 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8709 (decode_frame_entry): Update.
8710 (dwarf2_build_frame_info): Use "new".
8711
7559c217
CB
87122020-02-12 Christian Biesinger <cbiesinger@google.com>
8713
8714 * arm-tdep.c (arm_gdbarch_init): Update.
8715 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8716 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8717 have_neon, is_m>: Change to bool.
8718
aeefc73c
CB
87192020-02-12 Christian Biesinger <cbiesinger@google.com>
8720
8721 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8722
d27b8e5f
TT
87232020-02-12 Tom Tromey <tom@tromey.com>
8724
8725 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8726
cd5900f3
HD
87272020-02-12 Hannes Domani <ssbssa@yahoo.de>
8728
8729 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8730 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8731
f056b22b
TT
87322020-02-11 Tom Tromey <tom@tromey.com>
8733
8734 * psymtab.h: Update comment.
8735
f92ff6b5
TT
87362020-02-11 Tom Tromey <tom@tromey.com>
8737
8738 * gdb_obstack.h (struct auto_obstack): Use
8739 DISABLE_COPY_AND_ASSIGN.
8740
3fd6912b
TT
87412020-02-11 Tom Tromey <tom@tromey.com>
8742
8743 * dwarf2/frame.h (struct objfile): Don't forward declare.
8744
69ed9b74
CB
87452020-02-11 Christian Biesinger <cbiesinger@google.com>
8746
8747 * cris-tdep.c (cris_supply_gregset): Change signature to match
8748 what struct regset expects.
8749 (cris_regset): New struct.
8750 (fetch_core_registers): Remove.
8751 (cris_iterate_over_regset_sections): New function.
8752 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8753 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8754
bda874f6
CB
87552020-02-11 Christian Biesinger <cbiesinger@google.com>
8756
8757 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8758 registers.
8759
754e1564
CB
87602020-02-11 Christian Biesinger <cbiesinger@google.com>
8761
8762 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8763
8ddd8e0e
SM
87642020-02-11 Simon Marchi <simon.marchi@efficios.com>
8765
8766 * configure: Re-generate.
8767
898e7f60
SM
87682020-02-11 Simon Marchi <simon.marchi@efficios.com>
8769
8770 * configure: Re-generate.
8771
58df732b
SM
87722020-02-11 Simon Marchi <simon.marchi@efficios.com>
8773
8774 * acinclude: Update warning.m4 path.
8775 * warning.m4: Move to gdbsupport.
8776
da5bd37e
TT
87772020-02-11 Tom Tromey <tromey@adacore.com>
8778
8779 * remote.c (remote_console_output): Update.
8780 * printcmd.c (printf_command): Update.
8781 * event-loop.c (gdb_wait_for_event): Update.
8782 * linux-nat.c (sigchld_handler): Update.
8783 * remote-sim.c (gdb_os_write_stdout): Update.
8784 (gdb_os_flush_stdout): Update.
8785 (gdb_os_flush_stderr): Update.
8786 (gdb_os_write_stderr): Update.
8787 * exceptions.c (print_exception): Update.
8788 * remote-fileio.c (remote_fileio_func_read): Update.
8789 (remote_fileio_func_write): Update.
8790 * tui/tui.c (tui_enable): Update.
8791 * tui/tui-interp.c (tui_interp::init): Update.
8792 * utils.c (init_page_info): Update.
8793 (putchar_unfiltered, fputc_unfiltered): Update.
8794 (gdb_flush): Update.
8795 (emit_style_escape): Update.
8796 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8797 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8798 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8799 (stderr_file::write): Update.
8800 (stderr_file::puts): Update.
8801 * ui-file.h (ui_file_isatty, ui_file_write)
8802 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8803 (ui_file_puts): Don't declare.
8804
85f0dd3c
TV
88052020-02-10 Tom de Vries <tdevries@suse.de>
8806
8807 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8808 sentinel to char *.
8809
2e927613
TV
88102020-02-09 Tom de Vries <tdevries@suse.de>
8811
8812 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8813 filename if it matches "<artificial>".
8814
6bafc845
HD
88152020-02-09 Hannes Domani <ssbssa@yahoo.de>
8816
8817 * windows-tdep.c (struct enum_value_name): New struct.
8818 (create_enum): New function.
8819 (windows_get_siginfo_type): Create and use enum types.
8820
7928d571
HD
88212020-02-09 Hannes Domani <ssbssa@yahoo.de>
8822
8823 * NEWS: Mention $_siginfo support for Windows.
8824 * windows-nat.c (handle_exception): Set siginfo_er.
8825 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8826 (windows_xfer_siginfo): New function.
8827 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8828 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8829 (init_windows_gdbarch_data): New function.
8830 (get_windows_gdbarch_data): New function.
8831 (windows_get_siginfo_type): New function.
8832 (windows_init_abi): Register windows_get_siginfo_type.
8833 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8834
6751ebae
TT
88352020-02-08 Tom Tromey <tom@tromey.com>
8836
8837 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8838 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8839 <keep>: Declare method.
8840 <m_keep>: Remove member.
8841 <~cutu_reader>: Remove.
8842 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8843 (cutu_reader::cutu_reader): Update.
8844 (cutu_reader::keep): Rename from ~cutu_reader.
8845 (process_psymtab_comp_unit, build_type_psymtabs_1)
8846 (process_skeletonless_type_unit, load_partial_comp_unit)
8847 (load_full_comp_unit, dwarf2_read_addr_index)
8848 (read_signatured_type): Update.
8849
135f5437
TT
88502020-02-08 Tom Tromey <tom@tromey.com>
8851
8852 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8853 "want_partial_unit" parameter.
8854 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8855 Inline check for DW_TAG_partial_unit.
8856 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8857
9f66ff1c
TT
88582020-02-08 Tom Tromey <tom@tromey.com>
8859
8860 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8861 read.c.
8862 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8863 read.c.
8864
c8a7a66f
TT
88652020-02-08 Tom Tromey <tom@tromey.com>
8866
8867 * dwarf2/read.c (read_address): Move to comp-unit.c.
8868 (dwarf2_rnglists_process, dwarf2_ranges_process)
8869 (read_attribute_value, dwarf_decode_lines_1)
8870 (var_decode_location, decode_locdesc): Update.
8871 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8872 read.c. Remove "cu" parameter.
8873 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8874 method.
8875
8266302d
TT
88762020-02-08 Tom Tromey <tom@tromey.com>
8877
8878 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8879 (read_indirect_line_string): Update.
8880 * dwarf2/comp-unit.c (read_offset): Remove.
8881 (read_comp_unit_head): Update.
8882 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8883 method.
8884 (read_offset): Don't declare.
8885
4057dfde
TT
88862020-02-08 Tom Tromey <tom@tromey.com>
8887
8888 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8889 * dwarf2/read.c (struct comp_unit_head): Move to
8890 dwarf2/comp-unit.h.
8891 (enum class rcuh_kind): Move to comp-unit.h.
8892 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8893 (read_comp_unit_head, error_check_comp_unit_head)
8894 (read_and_check_comp_unit_head): Move to comp-unit.c.
8895 (read_offset, dwarf_unit_type_name): Likewise.
8896 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8897 (cutu_reader::cutu_reader, read_call_site_scope)
8898 (find_partial_die, follow_die_offset): Update.
8899 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8900
24aa364d
TT
89012020-02-08 Tom Tromey <tom@tromey.com>
8902
8903 * dwarf2/read.c (read_offset_1): Move to leb.c.
8904 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8905 (dwarf_decode_macro_bytes): Update.
8906 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8907 * dwarf2/leb.h (read_offset): Declare.
8908
2c7d5afc
TT
89092020-02-08 Tom Tromey <tom@tromey.com>
8910
8911 * dwarf2/read.c (dwarf2_section_size): Remove.
8912 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8913 Update.
8914 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8915
4075cb26
TT
89162020-02-08 Tom Tromey <tom@tromey.com>
8917
8918 * dwarf2/read.c (read_initial_length): Move to leb.c.
8919 * dwarf2/leb.h (read_initial_length): Declare.
8920 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8921 handle_nonstd parameter.
8922 * dwarf2/frame.c (read_initial_length): Remove.
8923 (decode_frame_entry_1): Update.
8924
09ba997f
TT
89252020-02-08 Tom Tromey <tom@tromey.com>
8926
8927 * dwarf2/loc.c (dwarf2_find_location_expression)
8928 (dwarf_evaluate_loc_desc::get_tls_address)
8929 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8930 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8931 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8932 (dwarf2_compile_property_to_c)
8933 (dwarf2_loc_desc_get_symbol_read_needs)
8934 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8935 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8936 (loclist_describe_location, loclist_tracepoint_var_ref)
8937 (loclist_generate_c_location): Update.
8938 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8939 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8940 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8941 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8942 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8943 (dwarf2_per_cu_data::addr_size)
8944 (dwarf2_per_cu_data::ref_addr_size)
8945 (dwarf2_per_cu_data::text_offset)
8946 (dwarf2_per_cu_data::addr_type): Now methods.
8947 (per_cu_header_read_in): Make per_cu "const".
8948 (dwarf2_version): Remove.
8949 (dwarf2_per_cu_data::int_type): Now a method.
8950 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8951 (set_die_type, read_array_type, read_subrange_index_type)
8952 (read_tag_string_type, read_subrange_type): Update.
8953 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8954 offset_size, ref_addr_size, text_offset, addr_type, version,
8955 objfile, int_type, addr_sized_int_type>: Declare methods.
8956
96c738c0
TT
89572020-02-08 Tom Tromey <tom@tromey.com>
8958
8959 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8960 Move earlier.
8961
8fdd972c
TT
89622020-02-08 Tom Tromey <tom@tromey.com>
8963
8964 * dwarf2/read.h (dwarf_line_debug): Declare.
8965 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8966 * dwarf2/read.c: Move line_header code to new files.
8967 (dwarf_line_debug): No longer static.
8968 * dwarf2/line-header.c: New file.
8969 * dwarf2/line-header.h: New file.
8970
03075812
TT
89712020-02-08 Tom Tromey <tom@tromey.com>
8972
8973 * dwarf2/read.c (struct line_header) <file_full_name,
8974 file_file_name>: Return unique_xmalloc_ptr.
8975 (line_header::file_file_name): Update.
8976 (line_header::file_full_name): Update.
8977 (dw2_get_file_names_reader): Update.
8978 (macro_start_file): Update.
8979
bb822404
TT
89802020-02-08 Tom Tromey <tom@tromey.com>
8981
8982 * dwarf2/read.c (struct line_header) <file_full_name,
8983 file_file_name>: Declare methods.
8984 (dw2_get_file_names_reader): Update.
8985 (file_file_name): Now a method.
8986 (file_full_name): Likewise.
8987 (macro_start_file): Update.
8988
009b64fc
TT
89892020-02-08 Tom Tromey <tom@tromey.com>
8990
8991 * dwarf2/read.c (dwarf_always_disassemble)
8992 (show_dwarf_always_disassemble): Move to loc.c.
8993 (_initialize_dwarf2_read): Move "always-disassemble" registration
8994 to loc.c.
8995 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8996 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8997 static.
8998 (show_dwarf_always_disassemble): Move from read.c.
8999 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9000
5895093f
TT
90012020-02-08 Tom Tromey <tom@tromey.com>
9002
9003 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9004 (create_quick_file_names_table): Return htab_up.
9005 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9006 Update.
9007 * dwarf2/read.h (struct dwarf2_per_objfile)
9008 <quick_file_names_table>: Now htab_up.
9009
b3b32279
TT
90102020-02-08 Tom Tromey <tom@tromey.com>
9011
9012 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9013
1d33d811
TT
90142020-02-08 Tom Tromey <tom@tromey.com>
9015
9016 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9017 Rewrite.
9018 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9019 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9020 (abbrev_table::abbrev_table): No longer inline.
9021 (ABBREV_HASH_SIZE): Remove.
9022 (abbrev_table::m_abbrevs): Now an htab_up.
9023
86de1d91
TT
90242020-02-08 Tom Tromey <tom@tromey.com>
9025
9026 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9027 (cutu_reader): Update.
9028 (build_type_psymtabs_1): Update.
9029 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9030 (abbrev_table::alloc_abbrev): Update.
9031 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9032 (abbrev_table::read): New static method, renamed from
9033 abbrev_table_read_table.
9034 (abbrev_table::alloc_abbrev)
9035 (abbrev_table::add_abbrev): Now private.
9036 (abbrev_table::abbrev_table): Now private.
9037 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9038
0335378b
TT
90392020-02-08 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9042 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9043 htab_up.
9044
48b490f2
TT
90452020-02-08 Tom Tromey <tom@tromey.com>
9046
9047 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9048 htab_up.
9049 (lookup_dwo_unit_in_dwp): Update.
9050 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9051 on obstack.
9052
bc68fb19
TT
90532020-02-08 Tom Tromey <tom@tromey.com>
9054
9055 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9056 obstack.
9057
d15acc42
TT
90582020-02-08 Tom Tromey <tom@tromey.com>
9059
9060 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9061 line_header_hash.
9062 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9063 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9064 Change type to htab_up.
9065
eaa5fa8b
TT
90662020-02-08 Tom Tromey <tom@tromey.com>
9067
9068 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9069 htab_up. Don't allocate on obstack.
9070 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9071 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9072 Change type to htab_up.
9073
b0b6a987
TT
90742020-02-08 Tom Tromey <tom@tromey.com>
9075
9076 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9077 Change type to htab_up.
9078 * dwarf2/read.c (create_signatured_type_table_from_index)
9079 (create_signatured_type_table_from_debug_names)
9080 (create_all_type_units, add_type_unit)
9081 (lookup_dwo_signatured_type, lookup_signatured_type)
9082 (process_skeletonless_type_unit): Update.
9083 (create_debug_type_hash_table, create_debug_types_hash_table):
9084 Change type of types_htab.
9085 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9086 htab_up. Don't allocate on obstack.
9087 (create_cus_hash_table): Change type of cus_htab parameter.
9088 (struct dwo_file) <cus, tus>: Now htab_up.
9089 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9090 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9091 (queue_and_load_all_dwo_tus): Update.
9092 * dwarf2/index-write.c (write_gdbindex): Update.
9093 (write_debug_names): Update.
9094
39856def
TT
90952020-02-08 Tom Tromey <tom@tromey.com>
9096
9097 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9098 dwarf2/read.c. Remove "next" member. Add constructor ntad
9099 destructor.
9100 (struct dwarf2_per_objfile) <queue>: New member.
9101 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9102 dwarf2/read.h.
9103 (dwarf2_queue, dwarf2_queue_tail): Remove.
9104 (class dwarf2_queue_guard): Add parameter to constructor. Use
9105 DISABLE_COPY_AND_ASSIGN.
9106 <m_per_objfile>: New member.
9107 <~dwarf2_queue_guard>: Rewrite.
9108 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9109 Update.
9110 (~dwarf2_queue_item): New.
9111
3e225074
TT
91122020-02-08 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2/read.c (struct die_info) <has_children>: New member.
9115 (dw2_get_file_names_reader): Remove has_children.
9116 (dw2_get_file_names): Update.
9117 (read_cutu_die_from_dwo): Remove has_children.
9118 (cutu_reader::init_tu_and_read_dwo_dies)
9119 (cutu_reader::cutu_reader): Update.
9120 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9121 Remove has_children.
9122 (build_type_psymtabs_1, process_skeletonless_type_unit)
9123 (load_partial_comp_unit, load_full_comp_unit): Update.
9124 (create_dwo_cu_reader): Remove has_children.
9125 (create_cus_hash_table, read_die_and_children): Update.
9126 (read_full_die_1,read_full_die): Remove has_children.
9127 (read_signatured_type): Update.
9128 (class cutu_reader) <has_children>: Remove.
9129
82ca8957
TT
91302020-02-08 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2/expr.c: Rename from dwarf2expr.c.
9133 * dwarf2/expr.h: Rename from dwarf2expr.h.
9134 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9135 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9136 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9137 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9138 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9139 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9140 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9141 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9142 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9143 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9144 * dwarf2/loc.c: Rename from dwarf2loc.c.
9145 * dwarf2/loc.h: Rename from dwarf2loc.h.
9146 * dwarf2/read.c: Rename from dwarf2read.c.
9147 * dwarf2/read.h: Rename from dwarf2read.h.
9148 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9149 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9150 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9151 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9152 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9153 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9154 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9155 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9156 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9157 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9158 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9159 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9160 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9161 Update.
9162 * Makefile.in (COMMON_SFILES): Update.
9163 (HFILES_NO_SRCDIR): Update.
9164
9e35d499
TT
91652020-02-08 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9168 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9169
1eba2311
TT
91702020-02-08 Tom Tromey <tom@tromey.com>
9171
9172 * dwarf2read.h (struct die_info): Don't declare.
9173
e41c2da2
TT
91742020-02-08 Tom Tromey <tom@tromey.com>
9175
9176 * dwarf2read.h (die_info_ptr): Remove typedef.
9177
4fc6c0d5
TT
91782020-02-08 Tom Tromey <tom@tromey.com>
9179
9180 * dwarf2read.c (read_call_site_scope)
9181 (handle_data_member_location, dwarf2_add_member_fn)
9182 (mark_common_block_symbol_computed, read_common_block)
9183 (attr_to_dynamic_prop, partial_die_info::read)
9184 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9185 (dwarf2_symbol_mark_computed, set_die_type): Update.
9186 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9187 method.
9188 (attr_form_is_block): Don't declare.
9189 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9190
cd6c91b4
TT
91912020-02-08 Tom Tromey <tom@tromey.com>
9192
9193 * dwarf2read.c (dwarf2_find_base_address, )
9194 (read_call_site_scope, rust_containing_type)
9195 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9196 (handle_data_member_location, dwarf2_add_member_fn)
9197 (get_alignment, read_structure_type, process_structure_scope)
9198 (mark_common_block_symbol_computed, read_common_block)
9199 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9200 (partial_die_info::read, read_attribute_value, new_symbol)
9201 (lookup_die_type, dwarf2_get_ref_die_offset)
9202 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9203 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9204 (dwarf2_symbol_mark_computed): Update.
9205 * dwarf2/attribute.h (struct attribute) <value_as_address,
9206 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9207 methods.
9208 (value_as_address, attr_form_is_section_offset)
9209 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9210 * dwarf2/attribute.c (attribute::value_as_address)
9211 (attribute::form_is_section_offset, attribute::form_is_constant)
9212 (attribute::form_is_ref): Now methods.
9213
162dce55
TT
92142020-02-08 Tom Tromey <tom@tromey.com>
9215
9216 * dwarf2read.c (struct attribute, DW_STRING)
9217 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9218 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9219 (attr_form_is_block, attr_form_is_section_offset)
9220 (attr_form_is_constant, attr_form_is_ref): Move.
9221 * dwarf2/attribute.h: New file.
9222 * dwarf2/attribute.c: New file, from dwarf2read.c.
9223 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9224
3054dd54
TT
92252020-02-08 Tom Tromey <tom@tromey.com>
9226
9227 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9228 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9229 Move.
9230 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9231 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9232 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9233 abbrev.c.
9234 * dwarf2/abbrev.h: New file.
9235 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9236 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9237
96b79293
TT
92382020-02-08 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9241 (dwarf2_section_size, dwarf2_get_section_info)
9242 (create_signatured_type_table_from_debug_names)
9243 (create_addrmap_from_aranges, read_debug_names_from_section)
9244 (get_gdb_index_contents_from_section, read_comp_unit_head)
9245 (error_check_comp_unit_head, read_abbrev_offset)
9246 (create_debug_type_hash_table, init_cu_die_reader)
9247 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9248 (read_comp_units_from_section, create_cus_hash_table)
9249 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9250 (create_dwp_v2_section, dwarf2_rnglists_process)
9251 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9252 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9253 (read_indirect_string_from_dwz, read_addr_index_1)
9254 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9255 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9256 (fill_in_loclist_baton): Update.
9257 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9258 get_containing_section, get_bfd_owner, get_bfd_section,
9259 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9260 (dwarf2_read_section, get_section_name, get_section_file_name)
9261 (get_containing_section, get_section_bfd_owner)
9262 (get_section_bfd_section, get_section_name, get_section_file_name)
9263 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9264 declare.
9265 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9266 (dwarf2_section_info::get_bfd_owner)
9267 (dwarf2_section_info::get_bfd_section)
9268 (dwarf2_section_info::get_name)
9269 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9270 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9271 (dwarf2_section_info::read): Now methods.
9272 * dwarf-index-write.c (class debug_names): Update.
9273
2c86cff9
TT
92742020-02-08 Tom Tromey <tom@tromey.com>
9275
9276 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9277 Move to dwarf2/section.h.
9278 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9279 (get_section_bfd_section, get_section_name)
9280 (get_section_file_name, get_section_id, get_section_flags)
9281 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9282 dwarf2/section.c.
9283 * dwarf2/section.h: New file.
9284 * dwarf2/section.c: New file, from dwarf2read.c.
9285 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9286
f4382c45
TT
92872020-02-08 Tom Tromey <tom@tromey.com>
9288
9289 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9290 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9291 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9292 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9293 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9294 * dwarf2/leb.h: New file, from dwarf2read.c.
9295 * dwarf2/leb.c: New file, from dwarf2read.c.
9296 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9297 Remove.
9298 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9299 (COMMON_SFILES): Add dwarf2/leb.c.
9300
01840b7a
JB
93012020-02-08 Joel Brobecker <brobecker@adacore.com>
9302
9303 GDB 9.1 released.
9304
dfcb27e4
IB
93052020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9306
9307 PR gdb/25190:
aac66a4c
SM
9308 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9309 * gdb/remote.c (remote_console_output): Update.
9310 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9311 (ui_file_puts): ...this.
9312 * gdb/ui-file.h (ui_file_puts): Add declaration.
9313 * gdb/utils.c (emit_style_escape): Update.
9314 (flush_wrap_buffer): Update.
9315 (fputs_maybe_filtered): Update.
9316 (fputs_unfiltered): Add function.
dfcb27e4 9317
faa17681
IB
93182020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9319
aac66a4c
SM
9320 * gdb/event-loop.c (gdb_wait_for_event): Update.
9321 * gdb/printcmd.c (printf_command): Update.
9322 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9323 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9324 (gdb_os_flush_stderr): Update.
9325 * gdb/remote.c (remote_console_output): Update.
9326 * gdb/ui-file.c (gdb_flush): Rename to...
9327 (ui_file_flush): ...this.
9328 (stderr_file::write): Update.
9329 (stderr_file::puts): Update.
9330 * gdb/ui-file.h (gdb_flush): Rename to...
9331 (ui_file_flush): ...this.
9332 * gdb/utils.c (gdb_flush): Add function.
9333 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9334
5abbbe1d
TT
93352020-02-07 Tom Tromey <tromey@adacore.com>
9336
9337 PR breakpoints/24915:
9338 * source.c (find_and_open_source): Do not check basenames_may_differ.
9339
919adfe8
TT
93402020-02-07 Tom Tromey <tom@tromey.com>
9341
9342 * README: Update gdbserver documentation.
9343 * gdbserver: Move to top level.
9344 * configure.tgt (build_gdbserver): Remove.
9345 * configure.ac: Remove --enable-gdbserver.
9346 * configure: Rebuild.
9347 * Makefile.in (distclean): Don't mention gdbserver.
9348
1d5d29e7
SV
93492020-02-06 Shahab Vahedi <shahab@synopsys.com>
9350
9351 * source-cache.c (source_cache::ensure): Surround
9352 get_plain_source_lines with a try/catch.
9353 (source_cache::get_line_charpos): Get rid of try/catch
9354 and only check for the return value of "ensure".
9355 * tui/tui-source.c (tui_source_window::set_contents):
9356 Simplify "nlines" calculation.
9357
6eb1129c
SV
93582020-02-06 Shahab Vahedi <shahab@synopsys.com>
9359
9360 * MAINTAINERS (Write After Approval): Add myself.
9361
c6a42d11
CB
93622020-02-05 Christian Biesinger <cbiesinger@google.com>
9363
9364 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9365 function call.
9366
c8ecdda6
CB
93672020-02-05 Christian Biesinger <cbiesinger@google.com>
9368
9369 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9370
f6480e70
MR
93712020-02-05 Maciej W. Rozycki <macro@wdc.com>
9372
9373 * nat/riscv-linux-tdesc.h: New file.
9374 * nat/riscv-linux-tdesc.c: New file, taking code from...
9375 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9376 ... here.
9377 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9378 NATDEPFILES.
9379
dcc9fbc6
AB
93802020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9381
9382 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9383 we don't set the fake simulator ptid to the null_ptid.
9384
719546c4
SM
93852020-02-03 Simon Marchi <simon.marchi@efficios.com>
9386
9387 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9388 * gdbthread.h (class thread_info) <resumed>: Likewise.
9389 * infrun.c (resume_1): Likewise.
9390 (proceed): Likewise.
9391 (infrun_thread_stop_requested): Likewise.
9392 (stop_all_threads): Likewise.
9393 (handle_inferior_event): Likewise.
9394 (restart_threads): Likewise.
9395 (finish_step_over): Likewise.
9396 (keep_going_stepped_thread): Likewise.
9397 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9398 (linux_handle_extended_wait): Likewise.
9399 * record-btrace.c (get_thread_current_frame_id): Likewise.
9400 * record-full.c (record_full_wait_1): Likewise.
9401 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9402 * target.c (target_resume): Likewise.
9403 * thread.c (set_running_thread): Likewise.
9404
e409c542
AKS
94052020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9406
9407 * f-valprint.c (f77_print_array_1): Changed datatype of index
9408 variable to LONGEST from int to enable it to contain bound
9409 values correctly.
9410
ee98c0da
MR
94112020-02-03 Maciej W. Rozycki <macro@wdc.com>
9412
9413 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9414 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9415 offsets according to FLEN determined.
9416 (riscv_linux_nat_target::read_description): Determine FLEN
9417 dynamically.
9418 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9419 according to FLEN determined.
9420 (riscv_linux_nat_target::store_registers): Likewise.
9421
aa66aac4
SV
94222020-02-01 Shahab Vahedi <shahab@synopsys.com>
9423
9424 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9425 when reg->group is empty and reggroup is not.
9426
fd9faca8
TT
94272020-01-31 Tom Tromey <tromey@adacore.com>
9428
9429 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9430 Call beneath target's mourn_inferior after unpushing.
9431
42330a68
AB
94322020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9433
9434 PR tui/9765
9435 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9436 have enough lines to fill the screen, still return the lowest
9437 address we found.
9438
7a27a45b
AB
94392020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9440
9441 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9442 '-', '<', and '>' commands.
9443
c47f70e2
PA
94442020-01-29 Pedro Alves <palves@redhat.com>
9445 Sergio Durigan Junior <sergiodj@redhat.com>
9446
9447 * infcmd.c (construct_inferior_arguments): Assert that
9448 'argc' is greater than 0.
9449
5133a315
LM
94502020-01-29 Luis Machado <luis.machado@linaro.org>
9451
9452 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9453 (BRK_INSN_MASK): Define to 0xd4200000.
9454 (aarch64_program_breakpoint_here_p): New function.
9455 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9456 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9457 breakpoint.c.
9458 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9459 breakpoint.h
9460 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9461 call gdbarch_program_breakpoint_here_p.
9462 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9463 default_program_breakpoint_here_p, changed return type to bool and
9464 simplified.
9465 * breakpoint.h (program_breakpoint_here): Moved prototype to
9466 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9467 return type to bool.
9468 * gdbarch.c: Regenerate.
9469 * gdbarch.h: Regenerate.
9470 * gdbarch.sh (program_breakpoint_here_p): New method.
9471 * infrun.c (handle_signal_stop): Call
9472 gdbarch_program_breakpoint_here_p.
9473
168f8c6b
TT
94742020-01-26 Tom Tromey <tom@tromey.com>
9475
9476 * ctfread.c (struct ctf_fp_info): Reindent.
9477 (_initialize_ctfread): Remove.
9478
128a391f
TT
94792020-01-26 Tom Tromey <tom@tromey.com>
9480
9481 * psymtab.c (partial_map_expand_apply)
9482 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9483 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9484 (psym_print_stats, psym_expand_symtabs_for_function)
9485 (psym_map_symbol_filenames, psym_map_matching_symbols)
9486 (psym_expand_symtabs_matching)
9487 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9488 (maintenance_check_psymtabs): Use new methods.
9489 * psympriv.h (struct partial_symtab) <readin_p,
9490 get_compunit_symtab>: New methods.
9491 <readin, compunit_symtab>: Remove members.
9492 (struct standard_psymtab): New.
9493 (struct legacy_psymtab): Derive from standard_psymtab.
9494 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9495 standard_psymtab.
9496 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9497
0494dbec
TT
94982020-01-26 Tom Tromey <tom@tromey.com>
9499
9500 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9501 read_dependencies. Add assert.
9502 * psymtab.c (partial_symtab::read_dependencies): New method.
9503 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9504 method.
9505 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9506 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9507 read_dependencies.
9508 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9509 Add assert.
9510
8566b89b
TT
95112020-01-26 Tom Tromey <tom@tromey.com>
9512
9513 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9514 Call expand_psymtab.
9515 (xcoff_read_symtab): Call expand_psymtab.
9516 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9517 legacy_expand_psymtab.
9518 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9519 method.
9520 (struct legacy_psymtab) <expand_psymtab>: Implement.
9521 <legacy_expand_psymtab>: New member.
9522 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9523 (parse_partial_symbols): Set legacy_expand_psymtab.
9524 (psymtab_to_symtab_1): Change argument order. Call
9525 expand_psymtab.
9526 (new_psymtab): Set legacy_expand_psymtab.
9527 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9528 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9529 expand_psymtab.
9530 (dwarf2_psymtab::expand_psymtab): Rename from
9531 psymtab_to_symtab_1. Call expand_psymtab.
9532 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9533 (dbx_end_psymtab): Likewise.
9534 (dbx_psymtab_to_symtab_1): Change argument order. Call
9535 expand_psymtab.
9536 (dbx_read_symtab): Call expand_psymtab.
9537 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9538 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9539 (ctf_psymtab::read_symtab): Call expand_psymtab.
9540
077cbab2
TT
95412020-01-26 Tom Tromey <tom@tromey.com>
9542
9543 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9544 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9545 messages.
9546 * mdebugread.c (mdebug_read_symtab): Remove prints.
9547 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9548 assert.
9549 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9550
891813be
TT
95512020-01-26 Tom Tromey <tom@tromey.com>
9552
9553 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9554 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9555 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9556 legacy_symtab.
9557 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9558 * psymtab.c (psymtab_to_symtab): Call method.
9559 (dump_psymtab): Update.
9560 * psympriv.h (struct partial_symtab): Add virtual destructor.
9561 <read_symtab>: New method.
9562 (struct legacy_symtab): New.
9563 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9564 (struct pst_map) <pst>: Now a legacy_psymtab.
9565 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9566 (new_psymtab): Use legacy_psymtab.
9567 * dwarf2read.h (struct dwarf2_psymtab): New.
9568 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9569 * dwarf2read.c (dwarf2_create_include_psymtab)
9570 (dwarf2_build_include_psymtabs, create_type_unit_group)
9571 (create_partial_symtab, process_psymtab_comp_unit_reader)
9572 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9573 (set_partial_user): Use dwarf2_psymtab.
9574 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9575 (psymtab_to_symtab_1, process_full_comp_unit)
9576 (process_full_type_unit, dwarf2_ranges_read)
9577 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9578 (dwarf_decode_lines): Use dwarf2_psymtab.
9579 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9580 (add_address_entry_worker, write_one_signatured_type)
9581 (recursively_count_psymbols, recursively_write_psymbols)
9582 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9583 (write_debug_names): Likewise.
9584 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9585 <pst>: Now a legacy_psymtab.
9586 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9587 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9588 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9589 * ctfread.c (struct ctf_psymtab): New.
9590 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9591 ctf_psymtab.
9592 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9593 (create_partial_symtab): Return a ctf_psymtab.
9594 (scan_partial_symbols): Update.
9595
c3693a1d
TT
95962020-01-26 Tom Tromey <tom@tromey.com>
9597
9598 * xcoffread.c (xcoff_start_psymtab): Use new.
9599 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9600 renamed from start_psymtab_common.
9601 * psympriv.h (struct partial_symtab): Add new constructor.
9602 (start_psymtab_common): Don't declare.
9603 * mdebugread.c (parse_partial_symbols): Use new.
9604 * dwarf2read.c (create_partial_symtab): Use new.
9605 * dbxread.c (start_psymtab): Use new.
9606 * ctfread.c (create_partial_symtab): Use new.
9607
32caafd0
TT
96082020-01-26 Tom Tromey <tom@tromey.com>
9609
9610 * xcoffread.c (xcoff_end_psymtab): Use new.
9611 * psymtab.c (start_psymtab_common): Use new.
9612 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9613 Update.
9614 * psympriv.h (struct partial_symtab): Add parameters to
9615 constructor. Don't inline.
9616 (allocate_psymtab): Don't declare.
9617 * mdebugread.c (new_psymtab): Use new.
9618 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9619 * dbxread.c (dbx_end_psymtab): Use new.
9620
abaa2f23
TT
96212020-01-26 Tom Tromey <tom@tromey.com>
9622
9623 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9624 allocate_psymtab. Update documentation.
9625 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9626 allocate_psymtab. Do not use new.
9627 (allocate_psymtab): Use new. Update.
9628
6d94535f
TT
96292020-01-26 Tom Tromey <tom@tromey.com>
9630
9631 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9632 * psymtab.c (psym_print_stats): Update.
9633 * psympriv.h (struct partial_symtab) <readin,
9634 psymtabs_addrmap_supported, anonymous>: Now bool.
9635 * mdebugread.c (psymtab_to_symtab_1): Update.
9636 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9637 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9638 (process_full_comp_unit, process_full_type_unit): Update.
9639 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9640 * ctfread.c (psymtab_to_symtab): Update.
9641
6f17252b
TT
96422020-01-26 Tom Tromey <tom@tromey.com>
9643
9644 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9645 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9646 * psymtab.c (psymtab_storage): Delete psymtabs.
9647 (psymtab_storage::allocate_psymtab): Use new.
9648 (psymtab_storage::discard_psymtab): Use delete.
9649 * psympriv.h (struct partial_symtab): Add constructor and
9650 initializers.
9651
f6f1cebc
TT
96522020-01-26 Tom Tromey <tom@tromey.com>
9653
9654 * machoread.c: Do not include psympriv.h.
9655
e47e48f6
PW
96562020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9657
9658 * NEWS: Mention the new option and the set/show commands.
9659
a2fedca9
PW
96602020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9661
9662 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9663 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9664 (validate_exec_file): New variables, enums, functions.
9665 (exec_file_locate_attach, print_section_info): Style the filenames.
9666 (_initialize_exec): Install show_exec_file_mismatch_command and
9667 set_exec_file_mismatch_command.
9668 * gdbcore.h (validate_exec_file): Declare.
9669 * infcmd.c (attach_command): Call validate_exec_file.
9670 * remote.c ( remote_target::remote_add_inferior): Likewise.
9671
7ffa82e1
AB
96722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9673
9674 * frame.c (find_frame_sal): Move call to get_next_frame into more
9675 inner scope.
9676 * inline-frame.c (inilne_state) <inline_state>: Update argument
9677 types.
9678 (inilne_state) <skipped_symbol>: Rename to...
9679 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9680 (skip_inline_frames): Build vector of skipped symbols and use this
9681 to reate the inline_state.
9682 (inline_skipped_symbol): Add a comment and some assertions, fetch
9683 skipped symbol from the list.
9684
3d92a3e3
AB
96852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9686
9687 * buildsym.c (lte_is_less_than): Delete.
9688 (buildsym_compunit::end_symtab_with_blockvector): Create local
9689 lambda function to sort line table entries, and use
9690 std::stable_sort instead of std::sort.
9691 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9692 markers when looking for a previous line.
9693
94a72be7
AB
96942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9695
9696 * dwarf2read.c (lnp_state_machine::record_line): Include
9697 end_sequence parameter in debug print out. Record the line if we
9698 are at an end_sequence marker even if it's not the start of a
9699 statement.
9700 * symmisc.c (maintenance_print_one_line_table): Print end of
9701 sequence markers with 'END' not '0'.
9702
53af73bf
PA
97032020-01-24 Pedro Alves <palves@redhat.com>
9704
9705 PR gdb/25410
9706 * thread.c (scoped_restore_current_thread::restore): Use
9707 switch_to_inferior_no_thread.
9708 * exec.c: Include "progspace-and-thread.h".
9709 (add_target_sections, remove_target_sections):
9710 scoped_restore_current_pspace_and_thread instead of
9711 scoped_restore_current_thread.
9712 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9713 and aspace to the inferior before calling clone_program_space.
9714 Remove stale comment.
9715
3050c6f4
CB
97162020-01-24 Christian Biesinger <cbiesinger@google.com>
9717
9718 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9719 (arm_netbsd_nat_target::fetch_registers): ...this.
9720 (arm_nbsd_nat_target::store_registers): Rename to...
9721 (arm_netbsd_nat_target::store_registers): ...this.
9722
73685c7e
CB
97232020-01-24 Christian Biesinger <cbiesinger@google.com>
9724
9725 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9726 register_t.
9727
89203d40
CB
97282020-01-24 Christian Biesinger <cbiesinger@google.com>
9729
9730 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9731 Update comment.
9732 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9733 Likewise.
9734 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9735 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9736 the correct replacement (iterate_over_regset_sections).
9737 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9738 Update comment.
9739
1ba1ac88
AB
97402020-01-24 Graham Markall <graham.markall@embecosm.com>
9741
9742 PR gdb/23718
9743 * gdb/python/python.c (execute_gdb_command): Call
9744 async_enable_stdin in catch block.
9745
f3364a6d
AB
97462020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9747
9748 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9749 SWITCH_THRU_ALL_UIS.
9750
733d0a67
AB
97512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9752
9753 PR tui/9765
9754 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9755 comment, add extra parameter, and update to store previous symbol
9756 when appropriate.
9757 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9758 add extra parameter.
9759 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9760 remove unneeded parameter, add try/catch around gdb_print_insn,
9761 rewrite to add items to asm_lines vector.
9762 (tui_find_backward_disassembly_start_address): New function.
9763 (tui_find_disassembly_address): Updated throughout.
9764 (tui_disasm_window::set_contents): Update for changes to
9765 tui_disassemble.
9766 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9767 number of lines to scroll.
9768
b3b3bada
SM
97692020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9770
9771 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9772 (SECT_OFF_DATA): Likewise.
9773 (SECT_OFF_RODATA): Likewise.
9774 (SECT_OFF_TEXT): Likewise.
9775 (SECT_OFF_BSS): Likewise.
9776 (struct objfile) <text_section_offset, data_section_offset>: New
9777 methods.
9778 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9779 objfile::text_section_offset.
9780 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9781 * coffread.c (coff_symtab_read): Likewise.
9782 (enter_linenos): Likewise.
9783 (process_coff_symbol): Likewise.
9784 * ctfread.c (get_objfile_text_range): Likewise.
9785 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9786 Use objfile::data_section_offset.
9787 * dwarf2-frame.c (execute_cfa_program): Use
9788 objfile::text_section_offset.
9789 (dwarf2_frame_find_fde): Likewise.
9790 * dwarf2read.c (create_addrmap_from_index): Likewise.
9791 (create_addrmap_from_aranges): Likewise.
9792 (dw2_find_pc_sect_compunit_symtab): Likewise.
9793 (process_psymtab_comp_unit_reader): Likewise.
9794 (add_partial_symbol): Likewise.
9795 (add_partial_subprogram): Likewise.
9796 (process_full_comp_unit): Likewise.
9797 (read_file_scope): Likewise.
9798 (read_func_scope): Likewise.
9799 (read_lexical_block_scope): Likewise.
9800 (read_call_site_scope): Likewise.
9801 (dwarf2_rnglists_process): Likewise.
9802 (dwarf2_ranges_process): Likewise.
9803 (dwarf2_ranges_read): Likewise.
9804 (dwarf_decode_lines_1): Likewise.
9805 (new_symbol): Likewise.
9806 (dwarf2_fetch_die_loc_sect_off): Likewise.
9807 (dwarf2_per_cu_text_offset): Likewise.
9808 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9809 * hppa-tdep.c (read_unwind_info): Likewise.
9810 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9811 * psympriv.h (struct partial_symtab): Likewise.
9812 * psymtab.c (find_pc_sect_psymtab): Likewise.
9813 * solib-svr4.c (enable_break): Likewise.
9814 * stap-probe.c (relocate_address): Use
9815 objfile::data_section_offset.
9816 * xcoffread.c (enter_line_range): Use
9817 objfile::text_section_offset.
9818 (read_xcoff_symtab): Likewise.
9819
ab53f382
SM
98202020-01-23 Simon Marchi <simon.marchi@efficios.com>
9821
9822 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9823 declaration to narrower scopes.
9824
e7eee665
SM
98252020-01-23 Simon Marchi <simon.marchi@efficios.com>
9826
9827 * darwin-nat.h (struct darwin_exception_msg, enum
9828 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9829 Move up.
9830 (class darwin_nat_target) <wait_1, check_new_threads,
9831 decode_exception_message, decode_message, stop_inferior,
9832 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9833 * darwin-nat.c (darwin_check_new_threads): Rename to...
9834 (darwin_nat_target::check_new_threads): ... this.
9835 (darwin_suspend_inferior_it): Remove.
9836 (darwin_decode_exception_message): Rename to...
9837 (darwin_nat_target::decode_exception_message): ... this.
9838 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9839 (darwin_decode_message): Rename to...
9840 (darwin_nat_target::decode_message): ... this.
9841 (cancel_breakpoint): Rename to...
9842 (darwin_nat_target::cancel_breakpoint): ... this.
9843 (darwin_wait): Rename to...
9844 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9845 instead of iterate_over_inferiors.
9846 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9847 (darwin_stop_inferior): Rename to...
9848 (darwin_nat_target::stop_inferior): ... this.
9849 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9850 (darwin_init_thread_list): Rename to...
9851 (darwin_nat_target::init_thread_list): ... this.
9852 (darwin_ptrace_him): Rename to...
9853 (darwin_nat_target::ptrace_him): ... this.
9854 (darwin_nat_target::create_inferior): Pass lambda function to
9855 fork_inferior.
9856 (darwin_nat_target::detach): Call stop_inferior instead of
9857 darwin_stop_inferior.
9858 * fork-inferior.h (fork_inferior): Change init_trace_fun
9859 parameter to gdb::function_view.
9860 * fork-inferior.c (fork_inferior): Likewise.
9861
c162ed3e
HD
98622020-01-23 Hannes Domani <ssbssa@yahoo.de>
9863
9864 * i386-cygwin-tdep.c (core_process_module_section): Update.
9865 * windows-nat.c (struct lm_info_windows): Add text_offset.
9866 (windows_xfer_shared_libraries): Update.
9867 * windows-tdep.c (windows_xfer_shared_library):
9868 Add text_offset_cached argument.
9869 * windows-tdep.h (windows_xfer_shared_library): Update.
9870
a1237872
SM
98712020-01-21 Simon Marchi <simon.marchi@efficios.com>
9872
9873 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9874
b3ee6dd9
SM
98752020-01-21 Simon Marchi <simon.marchi@efficios.com>
9876
9877 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9878 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9879 replace with range-based for.
9880 (gdbsim_interrupt_inferior): Remove.
9881 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9882 with a range-based for. Inline code from
9883 gdbsim_interrupt_inferior.
9884
f9fac3c8
SM
98852020-01-21 Simon Marchi <simon.marchi@efficios.com>
9886
9887 * infrun.c (proceed): Fix indentation.
9888
f6474de9
TT
98892020-01-21 Tom Tromey <tromey@adacore.com>
9890
9891 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9892 * python/python.c (python_extension_ops): Update.
9893 (gdbpy_colorize): New function.
9894 * python/lib/gdb/__init__.py (colorize): New function.
9895 * extension.h (ext_lang_colorize): Declare.
9896 * extension.c (ext_lang_colorize): New function.
9897 * extension-priv.h (struct extension_language_ops) <colorize>: New
9898 member.
9899 * cli/cli-style.c (_initialize_cli_style): Update help text.
9900
f0c702d4
LM
99012020-01-21 Luis Machado <luis.machado@linaro.org>
9902
9903 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9904 <cond>: Change type to bool.
9905 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9906 (aarch64_displaced_step_cb): Likewise.
9907 (aarch64_displaced_step_tb): Likewise.
9908
1ab139e5
LM
99092020-01-21 Luis Machado <luis.machado@linaro.org>
9910
9911 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9912 output.
9913
0c271889
LM
99142020-01-21 Luis Machado <luis.machado@linaro.org>
9915
9916 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9917 <pc_adjust>: Adjust the documentation.
9918 (aarch64_displaced_step_fixup): Check if PC really moved before
9919 adjusting it.
9920
4d89c1c7
TT
99212020-01-19 Tom Tromey <tom@tromey.com>
9922
9923 * disasm.c (~gdb_disassembler): New destructor.
9924 (gdb_buffered_insn_length): Call disassemble_free_target.
9925 * disasm.h (class gdb_disassembler): Declare destructor. Use
9926 DISABLE_COPY_AND_ASSIGN.
9927
c0ab21c2
TT
99282020-01-19 Tom Tromey <tom@tromey.com>
9929
9930 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9931 (die_reader_func_ftype): Remove.
9932 (cutu_reader): New class.
9933 (dw2_get_file_names_reader): Remove "data" parameter.
9934 (dw2_get_file_names): Use cutu_reader.
9935 (create_debug_type_hash_table): Update.
9936 (read_cutu_die_from_dwo): Update comment.
9937 (lookup_dwo_unit): Add dwo_name parameter.
9938 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9939 die_reader_func_ftype and data parameters.
9940 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9941 Remove die_reader_func_ftype and data parameters.
9942 (~cutu_reader): New; from init_cutu_and_read_dies.
9943 (cutu_reader::cutu_reader): Rename from
9944 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9945 and data parameters.
9946 (init_cutu_and_read_dies_simple): Remove.
9947 (struct process_psymtab_comp_unit_data): Remove.
9948 (process_psymtab_comp_unit_reader): Remove data parameter; add
9949 want_partial_unit and pretend_language parameters.
9950 (process_psymtab_comp_unit): Use cutu_reader.
9951 (build_type_psymtabs_reader): Remove data parameter.
9952 (build_type_psymtabs_1): Use cutu_reader.
9953 (process_skeletonless_type_unit): Likewise.
9954 (load_partial_comp_unit_reader): Remove.
9955 (load_partial_comp_unit): Use cutu_reader.
9956 (load_full_comp_unit_reader): Remove.
9957 (load_full_comp_unit): Use cutu_reader.
9958 (struct create_dwo_cu_data): Remove.
9959 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9960 dwo_unit parameters.
9961 (create_cus_hash_table): Use cutu_reader.
9962 (struct dwarf2_read_addr_index_data): Remove.
9963 (dwarf2_read_addr_index_reader): Remove.
9964 (dwarf2_read_addr_index): Use cutu_reader.
9965 (read_signatured_type_reader): Remove.
9966 (read_signatured_type): Use cutu_reader.
9967
45bbae5c
TT
99682020-01-19 Tom Tromey <tom@tromey.com>
9969
9970 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9971 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9972 (tui_wrefresh): Declare.
9973 * tui/tui-wingeneral.c (suppress_output): New global.
9974 (tui_suppress_output, ~tui_suppress_output): New constructor and
9975 destructor.
9976 (tui_wrefresh): New function.
9977 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9978 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9979 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9980 method.
9981 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9982 tui_wrefresh.
9983 (tui_data_window::no_refresh): New method.
9984 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9985 (tui_reg_command): Use tui_suppress_output
9986 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9987 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9988 method.
9989 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9990
4f13c1c0
TT
99912020-01-19 Tom Tromey <tom@tromey.com>
9992
9993 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9994 Handle case where symtab is null.
9995
fa47e446
SM
99962020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9997
9998 * linux-fork.c (one_fork_p): Simplify.
9999
26f42329
SM
100002020-01-17 Simon Marchi <simon.marchi@efficios.com>
10001
10002 * top.c (struct qt_args): Remove.
10003 (kill_or_detach): Change return type to void, replace `void *`
10004 parameter with a proper one.
10005 (print_inferior_quit_action): Likewise.
10006 (quit_confirm): Use range-based for loop to iterate over inferiors.
10007 (quit_force): Likewise.
10008
a9ac81b1
SM
100092020-01-17 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10012 `void *` parameter with proper parameters.
10013 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10014 (print_one_inferior): Change return type to void, replace `void *`
10015 parameter with proper parameters.
10016 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10017 inferiors.
10018 (get_other_inferior): Remove.
10019 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10020 inferiors.
10021
788eca49
SM
100222020-01-17 Simon Marchi <simon.marchi@efficios.com>
10023
10024 * mi/mi-interp.c (report_initial_inferior): Remove.
10025 (mi_interp::init): Use range-based for to iterate over inferiors.
10026
d9bc85b6
SM
100272020-01-17 Simon Marchi <simon.marchi@efficios.com>
10028
10029 * python/py-inferior.c (build_inferior_list): Remove.
10030 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10031
40c94099
CB
100322020-01-16 Christian Biesinger <cbiesinger@google.com>
10033
10034 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10035 (btrace_stitch_trace): Likewise.
10036 * charset.c (intermediate_encoding): Likewise (vaild).
10037 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10038 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10039 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10040
e0cdfe3c
HD
100412020-01-16 Hannes Domani <ssbssa@yahoo.de>
10042
10043 * windows-tdep.c (windows_get_tlb_type):
10044 Add rtl_user_process_parameters type.
10045
790f1718 100462020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10047 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10048
10049 PR build/24805
10050 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10051 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10052 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10053 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10054 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10055 (ps_plog): Redeclare exported functions with default visibility.
10056
3112ed97
NA
100572020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10058
10059 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10060 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10061
8dc3273e
SM
100622020-01-15 Simon Marchi <simon.marchi@efficios.com>
10063
10064 * infcmd.c (post_create_inferior): Use get_thread_regcache
10065 instead of get_current_regcache.
10066
ff47f4f0
TT
100672020-01-14 Tom Tromey <tom@tromey.com>
10068
10069 PR symtab/12535:
10070 * python/python.c (gdbpy_decode_line): Treat empty string the same
10071 as no argument.
10072
975f45b7
TT
100732020-01-14 Tom Tromey <tom@tromey.com>
10074
10075 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10076
25e57356
TT
100772020-01-14 Tom Tromey <tom@tromey.com>
10078
10079 * nat/linux-btrace.c: Don't include <config.h>.
10080 * nat/linux-ptrace.c: Don't include <config.h>.
10081 * nat/x86-linux-dregs.c: Don't include <config.h>.
10082
05ea2a05
TT
100832020-01-14 Tom Tromey <tom@tromey.com>
10084
10085 * configure: Rebuild.
10086 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10087
01027315
TT
100882020-01-14 Tom Tromey <tom@tromey.com>
10089
10090 * nat/x86-linux-dregs.c: Include configh.h.
10091 * nat/linux-ptrace.c: Include configh.h.
10092 * nat/linux-btrace.c: Include configh.h.
10093 * defs.h: Include config.h, bfd.h.
10094 * configure.ac: Don't source common.host.
10095 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10096 * configure: Rebuild.
10097 * acinclude.m4: Update path.
10098 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10099 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10100 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10101 (CLIBS): Add LIBSUPPORT.
10102 (CDEPS): Likewise.
10103 (COMMON_SFILES): Remove gdbsupport files.
10104 (HFILES_NO_SRCDIR): Likewise.
10105 (stamp-version): Update path to create-version.sh.
10106 (ALLDEPFILES): Remove gdbsupport files.
10107
b2ceabe8
TT
101082020-01-14 Tom Tromey <tom@tromey.com>
10109
10110 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10111 USE_WIN32API when needed.
10112 * configure.ac (USE_WIN32API): Don't define.
10113 (WIN32LIBS): Use WIN32APILIBS.
10114 * configure: Rebuild.
10115
25c51f71
TT
101162020-01-14 Tom Tromey <tom@tromey.com>
10117
10118 * configure: Rebuild.
10119 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10120
717c684d
BE
101212020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10122
10123 * skip.c (skip_function_command): Make skip w/o arguments use the
10124 name of the inlined function if pc is inside any inlined function.
10125
7da6a5b9
LM
101262020-01-14 Luis Machado <luis.machado@linaro.org>
10127
10128 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10129 * infrun.c (resume_1): Likewise.
10130 (handle_inferior_event): Remove stale comment.
10131 * linux-nat.c (linux_nat_target::resume): Update comments.
10132 (save_stop_reason): Likewise.
10133 (linux_nat_filter_event): Likewise.
10134 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10135
44e4c775
AB
101362020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10137
10138 * elfread.c (record_minimal_symbol): Set section index to 0 for
10139 non-allocatable sections.
10140
18a8505e
AT
10141
101422020-01-13 Ali Tamur <tamur@google.com>
10143
10144 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10145 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10146 to gdb::optional. Update comments.
10147 (dwo_file): Update comments.
10148 (read_attribute): Update API to take an additional out parameter,
10149 need_reprocess. This is used to mark attributes that need other
10150 attributes (e.g. str_offsets_base) for correct computation which may not
10151 have been read yet.
10152 (read_attribute_reprocess): New function declaration.
10153 (read_addr_index): Likewise.
10154 (read_dwo_str_index): Likewise.
10155 (read_stub_str_index): Likewise.
10156 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10157 (lookup_addr_base): New function definition.
10158 (lookup_ranges_base): Likewise.
10159 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10160 lookup_ranges_base.
10161 (init_cutu_and_read_dies): Update comments.
10162 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10163 unit. This is used to inherit parent's str_offsets_base and addr_base.
10164 Update comments.
10165 (init_cutu_and_read_dies_simple): Reflect API changes.
10166 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10167 (create_cus_hash_table): Change API to take parent compile unit.
10168 Reflect API changes.
10169 (open_and_init_dwo_file): Reflect API changes.
10170 (dwarf2_get_pc_bounds): Update comments.
10171 (dwarf2_record_block_ranges): Likewise.
10172 (read_full_die_1): Change implementation to reprocess attributes that
10173 need str_offsets_base and addr_base.
10174 (partial_die_info::read): Likewise.
10175 (read_attribute_reprocess): New function definition.
10176 (read_attribute_value): Change API to take an additional out parameter,
10177 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10178 when a non-dwo compile unit has index based attributes.
10179 (read_attribute): Reflect API changes.
10180 (read_addr_index_1): Reflect API changes. Update comments.
10181 (dwarf2_read_addr_index_data): Reflect API changes.
10182 (dwarf2_read_addr_index): Likewise.
10183 (read_str_index): Change API and implementation. This becomes a helper
10184 to be used by the new string index related methods. Update error
10185 message and comments.
10186 (read_dwo_str_index): New function definition.
10187 (read_stub_str_index): Likewise.
10188 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10189 * symfile.h (dwarf2_debug_sections): Likewise.
10190 * xcoffread.c (dwarf2_debug_sections): Likewise.
10191
0cac9354
SM
101922020-01-13 Simon Marchi <simon.marchi@efficios.com>
10193
10194 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10195 core_reg_sect type to gdb_byte *.
10196 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10197 * cris-tdep.c (fetch_core_registers): Likewise.
10198 * corelow.c (core_target::get_core_register_section): Change
10199 type of `contents` to gdb::byte_vector.
10200
9a6d629c
AB
102012020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10202
10203 * tui/tui-wingeneral.c (box_win): Position the title in the center
10204 of the border.
10205
d8b2f9e3
SM
102062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10207
10208 * corelow.c (core_target::get_core_register_section): Use
10209 std::vector instead of alloca.
10210
bb564c58
SM
102112020-01-13 Simon Marchi <simon.marchi@efficios.com>
10212
10213 * warning.m4: Add -Wmissing-declarations to build_warnings.
10214 * configure: Re-generate.
10215
6b366111
SM
102162020-01-13 Simon Marchi <simon.marchi@efficios.com>
10217
10218 * python/python.c (init__gdb_module): Add declaration.
10219
6c265988
SM
102202020-01-13 Simon Marchi <simon.marchi@efficios.com>
10221
10222 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10223 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10224 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10225 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10226 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10227 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10228 * ada-exp.y (_initialize_ada_exp): Add declaration.
10229 * ada-lang.c (_initialize_ada_language): Add declaration.
10230 * ada-tasks.c (_initialize_tasks): Add declaration.
10231 * agent.c (_initialize_agent): Add declaration.
10232 * aix-thread.c (_initialize_aix_thread): Add declaration.
10233 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10234 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10235 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10236 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10237 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10238 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10239 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10240 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10241 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10242 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10243 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10244 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10245 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10246 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10247 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10248 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10249 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10250 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10251 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10252 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10253 * annotate.c (_initialize_annotate): Add declaration.
10254 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10255 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10256 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10257 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10258 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10259 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10260 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10261 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10262 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10263 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10264 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10265 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10266 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10267 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10268 * auto-load.c (_initialize_auto_load): Add declaration.
10269 * auxv.c (_initialize_auxv): Add declaration.
10270 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10271 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10272 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10273 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10274 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10275 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10276 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10277 * breakpoint.c (_initialize_breakpoint): Add declaration.
10278 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10279 * btrace.c (_initialize_btrace): Add declaration.
10280 * charset.c (_initialize_charset): Add declaration.
10281 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10282 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10283 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10284 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10285 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10286 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10287 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10288 * coffread.c (_initialize_coffread): Add declaration.
10289 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10290 * compile/compile.c (_initialize_compile): Add declaration.
10291 * complaints.c (_initialize_complaints): Add declaration.
10292 * completer.c (_initialize_completer): Add declaration.
10293 * copying.c (_initialize_copying): Add declaration.
10294 * corefile.c (_initialize_core): Add declaration.
10295 * corelow.c (_initialize_corelow): Add declaration.
10296 * cp-abi.c (_initialize_cp_abi): Add declaration.
10297 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10298 * cp-support.c (_initialize_cp_support): Add declaration.
10299 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10300 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10301 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10302 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10303 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10304 * ctfread.c (_initialize_ctfread): Add declaration.
10305 * d-lang.c (_initialize_d_language): Add declaration.
10306 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10307 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10308 * dbxread.c (_initialize_dbxread): Add declaration.
10309 * dcache.c (_initialize_dcache): Add declaration.
10310 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10311 * disasm.c (_initialize_disasm): Add declaration.
10312 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10313 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10314 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10315 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10316 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10317 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10318 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10319 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10320 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10321 * elfread.c (_initialize_elfread): Add declaration.
10322 * exec.c (_initialize_exec): Add declaration.
10323 * extension.c (_initialize_extension): Add declaration.
10324 * f-lang.c (_initialize_f_language): Add declaration.
10325 * f-valprint.c (_initialize_f_valprint): Add declaration.
10326 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10327 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10328 * filesystem.c (_initialize_filesystem): Add declaration.
10329 * findcmd.c (_initialize_mem_search): Add declaration.
10330 * findvar.c (_initialize_findvar): Add declaration.
10331 * fork-child.c (_initialize_fork_child): Add declaration.
10332 * frame-base.c (_initialize_frame_base): Add declaration.
10333 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10334 * frame.c (_initialize_frame): Add declaration.
10335 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10336 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10337 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10338 * gcore.c (_initialize_gcore): Add declaration.
10339 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10340 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10341 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10342 * gdbarch.c (_initialize_gdbarch): Add declaration.
10343 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10344 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10345 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10346 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10347 * go-lang.c (_initialize_go_language): Add declaration.
10348 * go32-nat.c (_initialize_go32_nat): Add declaration.
10349 * guile/guile.c (_initialize_guile): Add declaration.
10350 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10351 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10352 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10353 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10354 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10355 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10356 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10357 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10358 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10359 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10360 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10361 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10362 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10363 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10364 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10365 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10366 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10367 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10368 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10369 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10370 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10371 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10372 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10373 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10374 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10375 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10376 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10377 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10378 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10379 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10380 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10381 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10382 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10383 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10384 * infcall.c (_initialize_infcall): Add declaration.
10385 * infcmd.c (_initialize_infcmd): Add declaration.
10386 * inflow.c (_initialize_inflow): Add declaration.
10387 * infrun.c (_initialize_infrun): Add declaration.
10388 * interps.c (_initialize_interpreter): Add declaration.
10389 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10390 * jit.c (_initialize_jit): Add declaration.
10391 * language.c (_initialize_language): Add declaration.
10392 * linux-fork.c (_initialize_linux_fork): Add declaration.
10393 * linux-nat.c (_initialize_linux_nat): Add declaration.
10394 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10395 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10396 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10397 * m2-lang.c (_initialize_m2_language): Add declaration.
10398 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10399 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10400 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10401 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10402 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10403 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10404 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10405 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10406 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10407 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10408 * machoread.c (_initialize_machoread): Add declaration.
10409 * macrocmd.c (_initialize_macrocmd): Add declaration.
10410 * macroscope.c (_initialize_macroscope): Add declaration.
10411 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10412 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10413 * maint.c (_initialize_maint_cmds): Add declaration.
10414 * mdebugread.c (_initialize_mdebugread): Add declaration.
10415 * memattr.c (_initialize_mem): Add declaration.
10416 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10417 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10418 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10419 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10420 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10421 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10422 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10423 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10424 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10425 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10426 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10427 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10428 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10429 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10430 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10431 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10432 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10433 * mipsread.c (_initialize_mipsread): Add declaration.
10434 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10435 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10436 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10437 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10438 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10439 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10440 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10441 * nto-procfs.c (_initialize_procfs): Add declaration.
10442 * objc-lang.c (_initialize_objc_language): Add declaration.
10443 * observable.c (_initialize_observer): Add declaration.
10444 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10445 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10446 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10447 * osabi.c (_initialize_gdb_osabi): Add declaration.
10448 * osdata.c (_initialize_osdata): Add declaration.
10449 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10450 * parse.c (_initialize_parse): Add declaration.
10451 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10452 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10453 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10454 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10455 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10456 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10457 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10458 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10459 * printcmd.c (_initialize_printcmd): Add declaration.
10460 * probe.c (_initialize_probe): Add declaration.
10461 * proc-api.c (_initialize_proc_api): Add declaration.
10462 * proc-events.c (_initialize_proc_events): Add declaration.
10463 * proc-service.c (_initialize_proc_service): Add declaration.
10464 * procfs.c (_initialize_procfs): Add declaration.
10465 * producer.c (_initialize_producer): Add declaration.
10466 * psymtab.c (_initialize_psymtab): Add declaration.
10467 * python/python.c (_initialize_python): Add declaration.
10468 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10469 * record-btrace.c (_initialize_record_btrace): Add declaration.
10470 * record-full.c (_initialize_record_full): Add declaration.
10471 * record.c (_initialize_record): Add declaration.
10472 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10473 * regcache.c (_initialize_regcache): Add declaration.
10474 * reggroups.c (_initialize_reggroup): Add declaration.
10475 * remote-notif.c (_initialize_notif): Add declaration.
10476 * remote-sim.c (_initialize_remote_sim): Add declaration.
10477 * remote.c (_initialize_remote): Add declaration.
10478 * reverse.c (_initialize_reverse): Add declaration.
10479 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10480 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10481 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10482 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10483 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10484 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10485 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10486 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10487 Add declaration.
10488 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10489 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10490 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10491 * rust-exp.y (_initialize_rust_exp): Add declaration.
10492 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10493 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10494 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10495 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10496 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10497 * score-tdep.c (_initialize_score_tdep): Add declaration.
10498 * ser-go32.c (_initialize_ser_dos): Add declaration.
10499 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10500 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10501 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10502 * ser-uds.c (_initialize_ser_socket): Add declaration.
10503 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10504 * serial.c (_initialize_serial): Add declaration.
10505 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10506 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10507 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10508 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10509 * skip.c (_initialize_step_skip): Add declaration.
10510 * sol-thread.c (_initialize_sol_thread): Add declaration.
10511 * solib-aix.c (_initialize_solib_aix): Add declaration.
10512 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10513 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10514 * solib-frv.c (_initialize_frv_solib): Add declaration.
10515 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10516 * solib-target.c (_initialize_solib_target): Add declaration.
10517 * solib.c (_initialize_solib): Add declaration.
10518 * source-cache.c (_initialize_source_cache): Add declaration.
10519 * source.c (_initialize_source): Add declaration.
10520 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10521 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10522 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10523 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10524 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10525 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10526 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10527 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10528 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10529 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10530 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10531 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10532 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10533 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10534 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10535 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10536 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10537 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10538 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10539 * stabsread.c (_initialize_stabsread): Add declaration.
10540 * stack.c (_initialize_stack): Add declaration.
10541 * stap-probe.c (_initialize_stap_probe): Add declaration.
10542 * std-regs.c (_initialize_frame_reg): Add declaration.
10543 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10544 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10545 * symfile.c (_initialize_symfile): Add declaration.
10546 * symmisc.c (_initialize_symmisc): Add declaration.
10547 * symtab.c (_initialize_symtab): Add declaration.
10548 * target.c (_initialize_target): Add declaration.
10549 * target-connection.c (_initialize_target_connection): Add
10550 declaration.
10551 * target-dcache.c (_initialize_target_dcache): Add declaration.
10552 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10553 * thread.c (_initialize_thread): Add declaration.
10554 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10555 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10556 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10557 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10558 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10559 * tracectf.c (_initialize_ctf): Add declaration.
10560 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10561 * tracefile.c (_initialize_tracefile): Add declaration.
10562 * tracepoint.c (_initialize_tracepoint): Add declaration.
10563 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10564 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10565 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10566 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10567 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10568 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10569 * tui/tui.c (_initialize_tui): Add declaration.
10570 * typeprint.c (_initialize_typeprint): Add declaration.
10571 * ui-style.c (_initialize_ui_style): Add declaration.
10572 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10573 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10574 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10575 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10576 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10577 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10578 * unittests/filtered_iterator-selftests.c
10579 (_initialize_filtered_iterator_selftests): Add declaration.
10580 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10581 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10582 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10583 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10584 * unittests/main-thread-selftests.c
10585 (_initialize_main_thread_selftests): Add declaration.
10586 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10587 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10588 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10589 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10590 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10591 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10592 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10593 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10594 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10595 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10596 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10597 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10598 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10599 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10600 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10601 declaration.
10602 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10603 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10604 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10605 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10606 * user-regs.c (_initialize_user_regs): Add declaration.
10607 * utils.c (_initialize_utils): Add declaration.
10608 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10609 * valops.c (_initialize_valops): Add declaration.
10610 * valprint.c (_initialize_valprint): Add declaration.
10611 * value.c (_initialize_values): Add declaration.
10612 * varobj.c (_initialize_varobj): Add declaration.
10613 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10614 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10615 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10616 * windows-nat.c (_initialize_windows_nat): Add declaration.
10617 (_initialize_check_for_gdb_ini): Add declaration.
10618 (_initialize_loadable): Add declaration.
10619 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10620 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10621 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10622 * xcoffread.c (_initialize_xcoffread): Add declaration.
10623 * xml-support.c (_initialize_xml_support): Add declaration.
10624 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10625 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10626 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10627 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10628
e2de1eec
SM
106292020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10630
10631 * regformats/regdat.sh: Generate declaration for init function.
10632
e0037b4c
SM
106332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10634
10635 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10636 up.
10637 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10638 close_one_inferior>: New methods.
10639 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10640 pass down target to find_inferior_pid.
10641 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10642 Pass down target to find_inferior_ptid.
10643 (gdbsim_target::create_inferior): Pass down target to
10644 add_thread_silent.
10645 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10646 target down to find_inferior_ptid and switch_to_thread.
10647 (gdbsim_target::close): Update to call close_one_inferior.
10648 (struct resume_data): Remove.
10649 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10650 directly, rather than through a void pointer.
10651 (gdbsim_target::resume): Update to call resume_one_inferior.
10652
58920b5b
SM
106532020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10654
10655 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10656
4ec89149
PA
106572020-01-12 Pedro Alves <palves@redhat.com>
10658
10659 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10660 directly for the current inferior instead of
10661 discard_all_inferiors.
10662 (discard_all_inferiors): Delete.
10663
7c392d1d
TT
106642020-01-11 Tom Tromey <tom@tromey.com>
10665
10666 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10667 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10668 deprecated_safe_get_selected_frame.
10669
d9ebdab7
TBA
106702020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10671
10672 * inferior.c (print_inferior): Switch inferior before printing it.
10673
f3c469b9
PA
106742020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10675 Pedro Alves <palves@redhat.com>
10676
10677 * progspace-and-thread.c (switch_to_program_space_and_thread):
10678 Assert there's an inferior for PSPACE. Use
10679 switch_to_inferior_no_thread to switch the inferior too.
10680 * progspace.c (program_space::~program_space): Call
10681 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10682 (program_space::free_all_objfiles): Don't call clear_symtab_users
10683 here.
10684 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10685
65c574f6
PA
106862020-01-10 Pedro Alves <palves@redhat.com>
10687
10688 * NEWS: Mention multi-target debugging, "info connections", and
10689 "add-inferior -no-connection".
10690
2f4fcf00
PA
106912020-01-10 Pedro Alves <palves@redhat.com>
10692
10693 * infrun.c: Include "target-connection.h".
10694 (check_multi_target_resumption): New.
10695 (proceed): Call it.
10696 * target-connection.c (make_target_connection_string): Make
10697 extern.
10698 * target-connection.h (make_target_connection_string): Declare.
10699
121b3efd
PA
107002020-01-10 Pedro Alves <palves@redhat.com>
10701
10702 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10703 * inferior.c (uiout_field_connection): New function.
10704 (print_inferior): Add new "connection-id" column.
10705 (add_inferior_command): Show connection number/string of added
10706 inferior.
10707 * process-stratum-target.h
10708 (process_stratum_target::connection_string): New virtual method.
10709 (process_stratum_target::connection_number): New field.
10710 * remote.c (remote_target::connection_string): New override.
10711 * target-connection.c: New file.
10712 * target-connection.h: New file.
10713 * target.c (decref_target): Remove process_stratum targets from
10714 the connection list.
10715 (target_stack::push): Add process_stratum targets to the
10716 connection list.
10717
4f837581
PA
107182020-01-10 Pedro Alves <palves@redhat.com>
10719
10720 Revert:
10721 2016-04-12 Pedro Alves <palves@redhat.com>
10722 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10723 Remove references to name.
10724 * serial.h (struct serial) <name>: Delete.
10725
f4ec508e
PA
107262020-01-10 Pedro Alves <palves@redhat.com>
10727
10728 * gdbarch-selftests.c (register_to_value_test): Remove "target
10729 already pushed" check.
10730
5b6d1e4f
PA
107312020-01-10 Pedro Alves <palves@redhat.com>
10732 John Baldwin <jhb@FreeBSD.org>
10733
10734 * aarch64-linux-nat.c
10735 (aarch64_linux_nat_target::thread_architecture): Adjust.
10736 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10737 (task_command_1): Likewise.
10738 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10739 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10740 (aix_thread_target::store_registers)
10741 (aix_thread_target::thread_alive): Adjust.
10742 * amd64-fbsd-tdep.c: Include "inferior.h".
10743 (amd64fbsd_get_thread_local_address): Pass down target.
10744 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10745 thread's gdbarch instead of target_gdbarch.
10746 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10747 get_last_target_status.
10748 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10749 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10750 inferiors.
10751 (update_inserted_breakpoint_locations): Skip if inferiors with no
10752 execution.
10753 (update_global_location_list): When handling moribund locations,
10754 find representative inferior for location's pspace, and use thread
10755 count of its process_stratum target.
10756 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10757 * bsd-uthread.c (bsd_uthread_target::wait): Use
10758 as_process_stratum_target and adjust thread_change_ptid and
10759 add_thread calls.
10760 (bsd_uthread_target::update_thread_list): Use
10761 as_process_stratum_target and adjust find_thread_ptid,
10762 thread_change_ptid and add_thread calls.
10763 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10764 find_thread_ptid call.
10765 * corelow.c (add_to_thread_list): Adjust add_thread call.
10766 (core_target_open): Adjust add_thread_silent and thread_count
10767 calls.
10768 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10769 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10770 * event-top.c (async_disconnect): Pop targets from all inferiors.
10771 * exec.c (add_target_sections): Push exec target on all inferiors
10772 sharing the program space.
10773 (remove_target_sections): Remove the exec target from all
10774 inferiors sharing the program space.
10775 (exec_on_vfork): New.
10776 * exec.h (exec_on_vfork): Declare.
10777 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10778 Pass it down.
10779 (fbsd_nat_target::update_thread_list): Adjust.
10780 (fbsd_nat_target::resume): Adjust.
10781 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10782 down.
10783 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10784 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10785 get_thread_arch_regcache call.
10786 * fork-child.c (gdb_startup_inferior): Pass target down to
10787 startup_inferior and set_executing.
10788 * gdbthread.h (struct process_stratum_target): Forward declare.
10789 (add_thread, add_thread_silent, add_thread_with_info)
10790 (in_thread_list): Add process_stratum_target parameter.
10791 (find_thread_ptid(inferior*, ptid_t)): New overload.
10792 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10793 parameter.
10794 (all_threads()): Delete overload.
10795 (all_threads, all_non_exited_threads): Add process_stratum_target
10796 parameter.
10797 (all_threads_safe): Use brace initialization.
10798 (thread_count): Add process_stratum_target parameter.
10799 (set_resumed, set_running, set_stop_requested, set_executing)
10800 (threads_are_executing, finish_thread_state): Add
10801 process_stratum_target parameter.
10802 (switch_to_thread): Use is_current_thread.
10803 * i386-fbsd-tdep.c: Include "inferior.h".
10804 (i386fbsd_get_thread_local_address): Pass down target.
10805 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10806 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10807 have_inferiors check.
10808 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10809 (inf_ptrace_target::attach): Adjust.
10810 * infcall.c (run_inferior_call): Adjust.
10811 * infcmd.c (run_command_1): Pass target to
10812 scoped_finish_thread_state.
10813 (proceed_thread_callback): Skip inferiors with no execution.
10814 (continue_command): Rename 'all_threads' local to avoid hiding
10815 'all_threads' function. Adjust get_last_target_status call.
10816 (prepare_one_step): Adjust set_running call.
10817 (signal_command): Use user_visible_resume_target. Compare thread
10818 pointers instead of inferior_ptid.
10819 (info_program_command): Adjust to pass down target.
10820 (attach_command): Mark target's 'thread_executing' flag.
10821 (stop_current_target_threads_ns): New, factored out from ...
10822 (interrupt_target_1): ... this. Switch inferior before making
10823 target calls.
10824 * inferior-iter.h
10825 (struct all_inferiors_iterator, struct all_inferiors_range)
10826 (struct all_inferiors_safe_range)
10827 (struct all_non_exited_inferiors_range): Filter on
10828 process_stratum_target too. Remove explicit.
10829 * inferior.c (inferior::inferior): Push dummy target on target
10830 stack.
10831 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10832 Add process_stratum_target parameter, and pass it down.
10833 (have_live_inferiors): Adjust.
10834 (switch_to_inferior_and_push_target): New.
10835 (add_inferior_command, clone_inferior_command): Handle
10836 "-no-connection" parameter. Use
10837 switch_to_inferior_and_push_target.
10838 (_initialize_inferior): Mention "-no-connection" option in
10839 the help of "add-inferior" and "clone-inferior" commands.
10840 * inferior.h: Include "process-stratum-target.h".
10841 (interrupt_target_1): Use bool.
10842 (struct inferior) <push_target, unpush_target, target_is_pushed,
10843 find_target_beneath, top_target, process_target, target_at,
10844 m_stack>: New.
10845 (discard_all_inferiors): Delete.
10846 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10847 (all_inferiors, all_non_exited_inferiors): Add
10848 process_stratum_target parameter.
10849 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10850 (target_last_proc_target): New global.
10851 (follow_fork_inferior): Push target on new inferior. Pass target
10852 to add_thread_silent. Call exec_on_vfork. Handle target's
10853 reference count.
10854 (follow_fork): Adjust get_last_target_status call. Also consider
10855 target.
10856 (follow_exec): Push target on new inferior.
10857 (struct execution_control_state) <target>: New field.
10858 (user_visible_resume_target): New.
10859 (do_target_resume): Call target_async.
10860 (resume_1): Set target's threads_executing flag. Consider resume
10861 target.
10862 (commit_resume_all_targets): New.
10863 (proceed): Also consider resume target. Skip threads of inferiors
10864 with no execution. Commit resumtion in all targets.
10865 (start_remote): Pass current inferior to wait_for_inferior.
10866 (infrun_thread_stop_requested): Consider target as well. Pass
10867 thread_info pointer to clear_inline_frame_state instead of ptid.
10868 (infrun_thread_thread_exit): Consider target as well.
10869 (random_pending_event_thread): New inferior parameter. Use it.
10870 (do_target_wait): Rename to ...
10871 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10872 down.
10873 (threads_are_resumed_pending_p, do_target_wait): New.
10874 (prepare_for_detach): Adjust calls.
10875 (wait_for_inferior): New inferior parameter. Handle it. Use
10876 do_target_wait_1 instead of do_target_wait.
10877 (fetch_inferior_event): Adjust. Switch to representative
10878 inferior. Pass target down.
10879 (set_last_target_status): Add process_stratum_target parameter.
10880 Save target in global.
10881 (get_last_target_status): Add process_stratum_target parameter and
10882 handle it.
10883 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10884 (context_switch): Check inferior_ptid == null_ptid before calling
10885 inferior_thread().
10886 (get_inferior_stop_soon): Pass down target.
10887 (wait_one): Rename to ...
10888 (poll_one_curr_target): ... this.
10889 (struct wait_one_event): New.
10890 (wait_one): New.
10891 (stop_all_threads): Adjust.
10892 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10893 event's target.
10894 (switch_back_to_stepped_thread): Also consider target.
10895 (print_stop_event): Update.
10896 (normal_stop): Update. Also consider the resume target.
10897 * infrun.h (wait_for_inferior): Remove declaration.
10898 (user_visible_resume_target): New declaration.
10899 (get_last_target_status, set_last_target_status): New
10900 process_stratum_target parameter.
10901 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10902 process_stratum_target parameter, and use it.
10903 (clear_inline_frame_state (thread_info*)): New.
10904 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10905 process_stratum_target parameter.
10906 (clear_inline_frame_state (thread_info*)): Declare.
10907 * linux-fork.c (delete_checkpoint_command): Pass target down to
10908 find_thread_ptid.
10909 (checkpoint_command): Adjust.
10910 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10911 instead of just tweaking inferior_ptid.
10912 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10913 (exit_lwp): Pass target down to find_thread_ptid.
10914 (attach_proc_task_lwp_callback): Pass target down to
10915 add_thread/set_running/set_executing.
10916 (linux_nat_target::attach): Pass target down to
10917 thread_change_ptid.
10918 (get_detach_signal): Pass target down to find_thread_ptid.
10919 Consider last target status's target.
10920 (linux_resume_one_lwp_throw, resume_lwp)
10921 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10922 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10923 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10924 (linux_nat_target::async_wait_fd): New.
10925 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10926 target down.
10927 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10928 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10929 * linux-thread-db.c (struct thread_db_info::process_target): New
10930 field.
10931 (add_thread_db_info): Save target.
10932 (get_thread_db_info): New process_stratum_target parameter. Also
10933 match target.
10934 (delete_thread_db_info): New process_stratum_target parameter.
10935 Also match target.
10936 (thread_from_lwp): Adjust to pass down target.
10937 (thread_db_notice_clone): Pass down target.
10938 (check_thread_db_callback): Pass down target.
10939 (try_thread_db_load_1): Always push the thread_db target.
10940 (try_thread_db_load, record_thread): Pass target down.
10941 (thread_db_target::detach): Pass target down. Always unpush the
10942 thread_db target.
10943 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10944 target down. Always unpush the thread_db target.
10945 (find_new_threads_callback, thread_db_find_new_threads_2)
10946 (thread_db_target::update_thread_list): Pass target down.
10947 (thread_db_target::pid_to_str): Pass current inferior down.
10948 (thread_db_target::get_thread_local_address): Pass target down.
10949 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10950 target down.
10951 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10952 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10953 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10954 (procfs_init_inferior): Rename to ...
10955 (procfs_target::procfs_init_inferior): ... this and adjust.
10956 (procfs_target::create_inferior, procfs_notice_thread)
10957 (procfs_do_thread_registers): Adjust.
10958 * ppc-fbsd-tdep.c: Include "inferior.h".
10959 (ppcfbsd_get_thread_local_address): Pass down target.
10960 * proc-service.c (ps_xfer_memory): Switch current inferior and
10961 program space as well.
10962 (get_ps_regcache): Pass target down.
10963 * process-stratum-target.c
10964 (process_stratum_target::thread_address_space)
10965 (process_stratum_target::thread_architecture): Pass target down.
10966 * process-stratum-target.h
10967 (process_stratum_target::threads_executing): New field.
10968 (as_process_stratum_target): New.
10969 * ravenscar-thread.c
10970 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10971 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10972 down.
10973 * record-btrace.c (record_btrace_target::info_record): Adjust.
10974 (record_btrace_target::record_method)
10975 (record_btrace_target::record_is_replaying)
10976 (record_btrace_target::fetch_registers)
10977 (get_thread_current_frame_id, record_btrace_target::resume)
10978 (record_btrace_target::wait, record_btrace_target::stop): Pass
10979 target down.
10980 * record-full.c (record_full_wait_1): Switch to event thread.
10981 Pass target down.
10982 * regcache.c (regcache::regcache)
10983 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10984 process_stratum_target parameter and handle it.
10985 (current_thread_target): New global.
10986 (get_thread_regcache): Add process_stratum_target parameter and
10987 handle it. Switch inferior before calling target method.
10988 (get_thread_regcache): Pass target down.
10989 (get_thread_regcache_for_ptid): Pass target down.
10990 (registers_changed_ptid): Add process_stratum_target parameter and
10991 handle it.
10992 (registers_changed_thread, registers_changed): Pass target down.
10993 (test_get_thread_arch_aspace_regcache): New.
10994 (current_regcache_test): Define a couple local test_target_ops
10995 instances and use them for testing.
10996 (readwrite_regcache): Pass process_stratum_target parameter.
10997 (cooked_read_test, cooked_write_test): Pass mock_target down.
10998 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10999 (get_thread_arch_aspace_regcache): Add process_stratum_target
11000 parameter.
11001 (regcache::target): New method.
11002 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11003 (regcache::registers_changed_ptid): Add process_stratum_target
11004 parameter.
11005 (regcache::m_target): New field.
11006 (registers_changed_ptid): Add process_stratum_target parameter.
11007 * remote.c (remote_state::supports_vCont_probed): New field.
11008 (remote_target::async_wait_fd): New method.
11009 (remote_unpush_and_throw): Add remote_target parameter.
11010 (get_current_remote_target): Adjust.
11011 (remote_target::remote_add_inferior): Push target.
11012 (remote_target::remote_add_thread)
11013 (remote_target::remote_notice_new_inferior)
11014 (get_remote_thread_info): Pass target down.
11015 (remote_target::update_thread_list): Skip threads of inferiors
11016 bound to other targets. (remote_target::close): Don't discard
11017 inferiors. (remote_target::add_current_inferior_and_thread)
11018 (remote_target::process_initial_stop_replies)
11019 (remote_target::start_remote)
11020 (remote_target::remote_serial_quit_handler): Pass down target.
11021 (remote_target::remote_unpush_target): New remote_target
11022 parameter. Unpush the target from all inferiors.
11023 (remote_target::remote_unpush_and_throw): New remote_target
11024 parameter. Pass it down.
11025 (remote_target::open_1): Check whether the current inferior has
11026 execution instead of checking whether any inferior is live. Pass
11027 target down.
11028 (remote_target::remote_detach_1): Pass down target. Use
11029 remote_unpush_target.
11030 (extended_remote_target::attach): Pass down target.
11031 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11032 (remote_target::append_resumption): Pass down target.
11033 (remote_target::append_pending_thread_resumptions)
11034 (remote_target::remote_resume_with_hc, remote_target::resume)
11035 (remote_target::commit_resume): Pass down target.
11036 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11037 (remote_target::interrupt_query)
11038 (remote_target::remove_new_fork_children)
11039 (remote_target::check_pending_events_prevent_wildcard_vcont)
11040 (remote_target::remote_parse_stop_reply)
11041 (remote_target::process_stop_reply): Pass down target.
11042 (first_remote_resumed_thread): New remote_target parameter. Pass
11043 it down.
11044 (remote_target::wait_as): Pass down target.
11045 (unpush_and_perror): New remote_target parameter. Pass it down.
11046 (remote_target::readchar, remote_target::remote_serial_write)
11047 (remote_target::getpkt_or_notif_sane_1)
11048 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11049 down target.
11050 (remote_target::mourn_inferior): Pass down target. Use
11051 remote_unpush_target.
11052 (remote_target::core_of_thread)
11053 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11054 (remote_target::pid_to_exec_file)
11055 (remote_target::thread_handle_to_thread_info): Pass down target.
11056 (remote_target::async_wait_fd): New.
11057 * riscv-fbsd-tdep.c: Include "inferior.h".
11058 (riscv_fbsd_get_thread_local_address): Pass down target.
11059 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11060 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11061 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11062 Adjust.
11063 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11064 * solib-svr4.c (enable_break): Pass down target.
11065 * spu-multiarch.c (parse_spufs_run): Pass down target.
11066 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11067 * target-delegates.c: Regenerate.
11068 * target.c (g_target_stack): Delete.
11069 (current_top_target): Return the current inferior's top target.
11070 (target_has_execution_1): Refer to the passed-in inferior's top
11071 target.
11072 (target_supports_terminal_ours): Check whether the initial
11073 inferior was already created.
11074 (decref_target): New.
11075 (target_stack::push): Incref/decref the target.
11076 (push_target, push_target, unpush_target): Adjust.
11077 (target_stack::unpush): Defref target.
11078 (target_is_pushed): Return bool. Adjust to refer to the current
11079 inferior's target stack.
11080 (dispose_inferior): Delete, and inline parts ...
11081 (target_preopen): ... here. Only dispose of the current inferior.
11082 (target_detach): Hold strong target reference while detaching.
11083 Pass target down.
11084 (target_thread_name): Add assertion.
11085 (target_resume): Pass down target.
11086 (target_ops::beneath, find_target_at): Adjust to refer to the
11087 current inferior's target stack.
11088 (get_dummy_target): New.
11089 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11090 has a thread running.
11091 (initialize_targets): Rename to ...
11092 (_initialize_target): ... this.
11093 * target.h: Include "gdbsupport/refcounted-object.h".
11094 (struct target_ops): Inherit refcounted_object.
11095 (target_ops::shortname, target_ops::longname): Make const.
11096 (target_ops::async_wait_fd): New method.
11097 (decref_target): Declare.
11098 (struct target_ops_ref_policy): New.
11099 (target_ops_ref): New typedef.
11100 (get_dummy_target): Declare function.
11101 (target_is_pushed): Return bool.
11102 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11103 (all_matching_threads_iterator::all_matching_threads_iterator):
11104 Handle filter target.
11105 * thread-iter.h (struct all_matching_threads_iterator, struct
11106 all_matching_threads_range, class all_non_exited_threads_range):
11107 Filter by target too. Remove explicit.
11108 * thread.c (threads_executing): Delete.
11109 (inferior_thread): Pass down current inferior.
11110 (clear_thread_inferior_resources): Pass down thread pointer
11111 instead of ptid_t.
11112 (add_thread_silent, add_thread_with_info, add_thread): Add
11113 process_stratum_target parameter. Use it for thread and inferior
11114 searches.
11115 (is_current_thread): New.
11116 (thread_info::deletable): Use it.
11117 (find_thread_ptid, thread_count, in_thread_list)
11118 (thread_change_ptid, set_resumed, set_running): New
11119 process_stratum_target parameter. Pass it down.
11120 (set_executing): New process_stratum_target parameter. Pass it
11121 down. Adjust reference to 'threads_executing'.
11122 (threads_are_executing): New process_stratum_target parameter.
11123 Adjust reference to 'threads_executing'.
11124 (set_stop_requested, finish_thread_state): New
11125 process_stratum_target parameter. Pass it down.
11126 (switch_to_thread): Also match inferior.
11127 (switch_to_thread): New process_stratum_target parameter. Pass it
11128 down.
11129 (update_threads_executing): Reimplement.
11130 * top.c (quit_force): Pop targets from all inferior.
11131 (gdb_init): Don't call initialize_targets.
11132 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11133 Declare.
11134 (windows_add_thread, windows_delete_thread): Adjust.
11135 (get_windows_debug_event): Rename to ...
11136 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11137 * tracefile-tfile.c (tfile_target_open): Pass down target.
11138 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11139 Forward declare.
11140 (switch_to_thread): Add process_stratum_target parameter.
11141 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11142 parameter. Use it.
11143 (mi_on_resume): Pass target down.
11144 * nat/fork-inferior.c (startup_inferior): Add
11145 process_stratum_target parameter. Pass it down.
11146 * nat/fork-inferior.h (startup_inferior): Add
11147 process_stratum_target parameter.
11148 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11149
75c6c844
PA
111502020-01-10 Pedro Alves <palves@redhat.com>
11151
11152 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11153 directly. Instead find the first thread in the thread list and
11154 use switch_to_thread.
11155
78f2c40a
PA
111562020-01-10 Pedro Alves <palves@redhat.com>
11157
11158 * remote.c (remote_target::remote_add_inferior): Don't bind a
11159 process to the current inferior if the current inferior is already
11160 bound to a process.
11161
e7af6c70
TBA
111622020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11163 Pedro Alves <palves@redhat.com>
11164
11165 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11166 If no process is specified, return null_ptid instead of
11167 inferior_ptid.
11168 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11169 TARGET_WAITKIND_SIGNALLED with no pid.
11170
31ba933e
PA
111712020-01-10 Pedro Alves <palves@redhat.com>
11172
11173 * remote.c (first_remote_resumed_thread): New.
11174 (remote_target::wait_as): Use it as default event_ptid instead of
11175 inferior_ptid.
11176
735fc2ca
PA
111772020-01-10 Pedro Alves <palves@redhat.com>
11178
11179 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11180
c17e02e1
PA
111812020-01-10 Pedro Alves <palves@redhat.com>
11182
11183 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11184 not -1.
11185
ab1ddbcf
PA
111862020-01-10 Pedro Alves <palves@redhat.com>
11187
11188 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11189 ptid to get_last_target_status.
11190 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11191 ptid to get_last_target_status.
11192 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11193 get_last_target_status.
11194 (info_program_command): Don't pass a target_waitstatus to
11195 get_last_target_status.
11196 * infrun.c (init_wait_for_inferior): Use
11197 nullify_last_target_wait_ptid.
11198 (get_last_target_status): Handle nullptr arguments.
11199 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11200 (print_stop_event): Don't pass a ptid to get_last_target_status.
11201 (normal_stop): Don't pass a ptid to get_last_target_status.
11202 * infrun.h (get_last_target_status, set_last_target_status): Move
11203 comments here and update.
11204 (nullify_last_target_wait_ptid): Declare.
11205 * linux-fork.c (fork_load_infrun_state): Remove local extern
11206 declaration of nullify_last_target_wait_ptid.
11207 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11208 to get_last_target_status.
11209
f3f8ece4
PA
112102020-01-10 Pedro Alves <palves@redhat.com>
11211
11212 * gdbthread.h (scoped_restore_current_thread)
11213 <dont_restore, restore, m_dont_restore>: Declare.
11214 * thread.c (thread_alive): Add assertion. Return bool.
11215 (switch_to_thread_if_alive): New.
11216 (prune_threads): Switch inferior/thread.
11217 (print_thread_info_1): Switch thread before calling target methods.
11218 (scoped_restore_current_thread::restore): New, factored out from
11219 ...
11220 (scoped_restore_current_thread::~scoped_restore_current_thread):
11221 ... this.
11222 (scoped_restore_current_thread::scoped_restore_current_thread):
11223 Add assertion.
11224 (thread_apply_all_command, thread_select): Use
11225 switch_to_thread_if_alive.
11226 * infrun.c (proceed, restart_threads, handle_signal_stop)
11227 (switch_back_to_stepped_thread): Switch current thread before
11228 calling target methods.
11229
db2d40f7
PA
112302020-01-10 Pedro Alves <palves@redhat.com>
11231
11232 * inferior.c (switch_to_inferior_no_thread): New function,
11233 factored out from ...
11234 (inferior_command): ... here.
11235 * inferior.h (switch_to_inferior_no_thread): Declare.
11236 * mi/mi-main.c (run_one_inferior): Use
11237 switch_to_inferior_no_thread.
11238
bd420a2d
PA
112392020-01-10 Pedro Alves <palves@redhat.com>
11240
11241 * infcmd.c (kill_command): Remove dead code.
11242
ddf5db90
PA
112432020-01-10 Pedro Alves <palves@redhat.com>
11244
11245 * remote.c (remote_target::mourn_inferior): No longer check
11246 whether the target is running.
11247
5018ce90
PA
112482020-01-10 Pedro Alves <palves@redhat.com>
11249
11250 * corelow.c (core_target::has_execution): Change parameter type to
11251 inferior pointer.
11252 * inferior.c (number_of_live_inferiors): Use
11253 inferior::has_execution instead of target_has_execution_1.
11254 * inferior.h (inferior::has_execution): New.
11255 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11256 inferior::has_execution instead of target_has_execution_1.
11257 * process-stratum-target.c
11258 (process_stratum_target::has_execution): Change parameter type to
11259 inferior pointer. Check the inferior's PID instead of
11260 inferior_ptid.
11261 * process-stratum-target.h
11262 (process_stratum_target::has_execution): Change parameter type to
11263 inferior pointer.
11264 * record-full.c (record_full_core_target::has_execution): Change
11265 parameter type to inferior pointer.
11266 * target.c (target_has_execution_1): Change parameter type to
11267 inferior pointer.
11268 (target_has_execution_current): Adjust.
11269 * target.h (target_ops::has_execution): Change parameter type to
11270 inferior pointer.
11271 (target_has_execution_1): Change parameter type to inferior
11272 pointer. Change return type to bool.
11273 * tracefile.h (tracefile_target::has_execution): Change parameter
11274 type to inferior pointer.
11275
74375d18
PA
112762020-01-10 Pedro Alves <palves@redhat.com>
11277
11278 * exceptions.c (print_flush): Remove current_top_target() check.
11279
acdf84a6
PA
112802020-01-10 Pedro Alves <palves@redhat.com>
11281
11282 * remote.c (show_remote_exec_file): Show the current inferior's
11283 exec-file instead of the command variable's value.
11284
ec506636
PA
112852020-01-10 Pedro Alves <palves@redhat.com>
11286
11287 * record-full.c (record_full_resume_ptid): New global.
11288 (record_full_target::resume): Set it.
11289 (record_full_wait_1): Use record_full_resume_ptid instead of
11290 inferior_ptid.
11291
873657b9
PA
112922020-01-10 Pedro Alves <palves@redhat.com>
11293
11294 * gdbthread.h (scoped_restore_current_thread)
11295 <dont_restore, restore, m_dont_restore>: Declare.
11296 * thread.c (thread_alive): Add assertion. Return bool.
11297 (switch_to_thread_if_alive): New.
11298 (prune_threads): Switch inferior/thread.
11299 (print_thread_info_1): Switch thread before calling target methods.
11300 (scoped_restore_current_thread::restore): New, factored out from
11301 ...
11302 (scoped_restore_current_thread::~scoped_restore_current_thread):
11303 ... this.
11304 (scoped_restore_current_thread::scoped_restore_current_thread):
11305 Add assertion.
11306 (thread_apply_all_command, thread_select): Use
11307 switch_to_thread_if_alive.
11308
7f0ae84c
GB
113092020-01-10 George Barrett <bob@bob131.so>
11310
11311 * stap-probe.c (stap_modify_semaphore): Don't check for null
11312 semaphores.
11313 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11314 for null semaphores.
11315
f5a7c406
AB
113162020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11317
11318 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11319 all source windows, and maintain horizontal scroll status while
11320 doing so.
11321
9ae6bf64
TT
113222020-01-09 Tom Tromey <tom@tromey.com>
11323
11324 PR tui/18932:
11325 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11326 update_source_window, not print_source_lines.
11327
b2efe70c
AB
113282020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11329
11330 * tui/tui.c (tui_enable): Register tui hooks after calling
11331 tui_display_main.
11332
5f23a082
CB
113332020-01-09 Christian Biesinger <cbiesinger@google.com>
11334
11335 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11336
3061113b
SM
113372020-01-08 Simon Marchi <simon.marchi@efficios.com>
11338
11339 * thread.c (print_thread_info_1): Fix indentation.
11340
57d75002
CB
113412020-01-09 Christian Biesinger <cbiesinger@google.com>
11342
11343 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11344 unique_xmalloc_ptr outside the if to always free the demangled name.
11345
6a053cb1
TT
113462020-01-08 Tom Tromey <tromey@adacore.com>
11347
11348 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11349 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11350 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11351 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11352 Remove.
11353 (section_offsets): New typedef.
11354 * symtab.c (fixup_section, get_msymbol_address): Update.
11355 * symmisc.c (dump_msymbols): Update.
11356 * symfile.h (relative_addr_info_to_section_offsets)
11357 (symfile_map_offsets_to_segments): Update.
11358 * symfile.c (build_section_addr_info_from_objfile)
11359 (init_objfile_sect_indices): Update.
11360 (struct place_section_arg): Change type of "offsets".
11361 (place_section): Update.
11362 (relative_addr_info_to_section_offsets): Change type of
11363 "section_offsets". Remove "num_sections" parameter.
11364 (default_symfile_offsets, syms_from_objfile_1)
11365 (set_objfile_default_section_offset): Update.
11366 (reread_symbols): No need to preserve section offsets by hand.
11367 (symfile_map_offsets_to_segments): Change type of "offsets".
11368 * stap-probe.c (relocate_address): Update.
11369 * stabsread.h (process_one_symbol): Update.
11370 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11371 (solib_target_relocate_section_addresses): Update.
11372 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11373 Update.
11374 * solib-frv.c (frv_relocate_main_executable): Update.
11375 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11376 * solib-aix.c (solib_aix_get_section_offsets): Change return
11377 type.
11378 (solib_aix_solib_create_inferior_hook): Update.
11379 * remote.c (remote_target::get_offsets): Update.
11380 * psymtab.c (find_pc_sect_psymtab): Update.
11381 * psympriv.h (struct partial_symbol) <address, text_low,
11382 text_high>: Update.
11383 * objfiles.h (obj_section_offset): Update.
11384 (struct objfile) <section_offsets>: Change type.
11385 <num_sections>: Remove.
11386 (objfile_relocate): Update.
11387 * objfiles.c (entry_point_address_query): Update
11388 (relocate_one_symbol): Change type of "section_offsets".
11389 (objfile_relocate1, objfile_relocate1): Change type of
11390 "new_offsets".
11391 (objfile_rebase1): Update.
11392 * mipsread.c (mipscoff_symfile_read): Update.
11393 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11394 parameter.
11395 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11396 (parse_external, psymtab_to_symtab_1): Update.
11397 * machoread.c (macho_symfile_offsets): Update.
11398 * ia64-tdep.c (ia64_find_unwind_table): Update.
11399 * hppa-tdep.c (read_unwind_info): Update.
11400 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11401 * dwarf2read.c (create_addrmap_from_index)
11402 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11403 (process_psymtab_comp_unit_reader, add_partial_symbol)
11404 (add_partial_subprogram, process_full_comp_unit)
11405 (read_file_scope, read_func_scope, read_lexical_block_scope)
11406 (read_call_site_scope, dwarf2_rnglists_process)
11407 (dwarf2_ranges_process, dwarf2_ranges_read)
11408 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11409 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11410 Update.
11411 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11412 Update.
11413 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11414 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11415 (process_one_symbol): Change type of "section_offsets".
11416 * ctfread.c (get_objfile_text_range): Update.
11417 * coffread.c (coff_symtab_read, enter_linenos)
11418 (process_coff_symbol): Update.
11419 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11420 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11421
456e800a
TT
114222020-01-08 Tom Tromey <tromey@adacore.com>
11423
11424 * dwarf2read.c (parse_macro_definition): Use std::string.
11425 (parse_macro_definition): Likewise.
11426
6dfa2fc2
TT
114272020-01-08 Tom Tromey <tromey@adacore.com>
11428
11429 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11430 (ATTR_ALLOC_CHUNK): Remove.
11431
421d1616
TT
114322020-01-08 Tom Tromey <tromey@adacore.com>
11433
11434 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11435
43816ebc
TT
114362020-01-08 Tom Tromey <tromey@adacore.com>
11437
11438 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11439 (dwarf2_compute_name, open_dwo_file): Likewise.
11440 (process_enumeration_scope): Use std::vector.
11441 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11442 (partial_die_info::fixup, dwarf2_start_subfile)
11443 (guess_full_die_structure_name, dwarf2_name): Likewise.
11444 (determine_prefix): Update.
11445 (guess_full_die_structure_name): Make return type const.
11446 (partial_die_full_name): Return unique_xmalloc_ptr.
11447 (DW_FIELD_ALLOC_CHUNK): Remove.
11448
4212d509
TT
114492020-01-07 Tom Tromey <tromey@adacore.com>
11450
11451 PR build/24937:
11452 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11453
06a6207a
JT
114542020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11455
11456 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11457
153d79c4
AB
114582020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11459
11460 * stack.c (print_frame_info): Move disassemble_next_line code
11461 inside source_print block.
11462
66182876
EZ
114632020-01-06 Eli Zaretskii <eliz@gnu.org>
11464
11465 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11466 gdb/signals.h, as we are now using native signal symbols.
11467
cbfa8581
SV
114682020-01-06 Shahab Vahedi <shahab@synopsys.com>
11469
11470 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11471 overflow by an early check of content vs threshold.
aac66a4c 11472 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11473 Likewise.
11474
3f602821
EZ
114752020-01-06 Eli Zaretskii <eliz@gnu.org>
11476
11477 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11478
a08c904d
JT
114792020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11480
11481 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11482 export table if no section contains it's RVA.
11483
89a65580
EZ
114842020-01-06 Eli Zaretskii <eliz@gnu.org>
11485
11486 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11487
8b7fcda2
HD
114882020-01-06 Hannes Domani <ssbssa@yahoo.de>
11489
11490 * source.c (print_source_lines_base): Set last_line_listed.
11491
a61b4f69
SV
114922020-01-06 Shahab Vahedi <shahab@synopsys.com>
11493
11494 * tui/tui-disasm.c: Remove trailing spaces.
11495
559e7e50
EZ
114962020-01-06 Eli Zaretskii <eliz@gnu.org>
11497 Pedro Alves <palves@redhat.com>
11498
11499 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11500 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11501 (windows_gdb_signal_to_target): New function, uses the above
11502 enumeration to convert GDB internal signal codes to equivalent
11503 Windows codes.
11504 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11505 * windows-nat.c: Include "gdb_wait.h".
11506 (get_windows_debug_event): Extract the fatal exception from the
11507 exit status and convert to the equivalent Posix signal number.
11508 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11509 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11510 * gdbsupport/gdb_wait.c: New file, implements
11511 windows_status_to_termsig.
11512 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11513 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11514
f2302a34
AB
115152020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11516
11517 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11518 show_layout.
11519
6a5206eb
LM
115202020-01-05 Luis Machado <luis.machado@linaro.org>
11521
11522 * aarch64-linux-nat.c
11523 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11524 and bfd_mach_aarch64.
11525
6ec1d75e
PW
115262020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11527
11528 * ui-file.c (stdio_file::can_emit_style_escape)
11529 (tee_file::can_emit_style_escape): Ensure style is used also on
11530 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11531 to gdb_stdout.
11532 * main.c (set_gdb_data_directory): Use file style to output the
11533 warning that the given pathname is not a directory.
11534 * top.c (show_history_filename, gdb_safe_append_history)
11535 (show_gdb_datadir): Use file style.
11536
44f81a76
HD
115372020-01-03 Hannes Domani <ssbssa@yahoo.de>
11538
11539 * solib-target.c (struct lm_info_target):
11540 Change offsets to be a unique_xmalloc_ptr.
11541 (solib_target_relocate_section_addresses): Update.
11542
25057eb0
HD
115432020-01-03 Hannes Domani <ssbssa@yahoo.de>
11544
11545 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11546
6e2118f5
BE
115472020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11548
11549 * MAINTAINERS (Write After Approval): Add myself.
11550
8133c7dc
LM
115512020-01-02 Luis Machado <luis.machado@linaro.org>
11552
11553 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11554 Cell BE architecture.
11555 * target.h (struct target_ops) <thread_architecture>: Likewise.
11556
48189bec
HD
115572020-01-01 Hannes Domani <ssbssa@yahoo.de>
11558
11559 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11560
ead1063b
HD
115612020-01-01 Hannes Domani <ssbssa@yahoo.de>
11562
11563 * MAINTAINERS (Write After Approval): Add myself.
11564
e5d78223
JB
115652020-01-01 Joel Brobecker <brobecker@adacore.com>
11566
11567 * gdbarch.sh: Update copyright year range of generated files.
11568
b811d2c2
JB
115692020-01-01 Joel Brobecker <brobecker@adacore.com>
11570
11571 Update copyright year range in all GDB files.
11572
5f4def5c
JB
115732020-01-01 Joel Brobecker <brobecker@adacore.com>
11574
11575 * copyright.py: Convert to Python 3.
11576
51fd4002
JB
115772020-01-01 Joel Brobecker <brobecker@adacore.com>
11578
11579 * copyright.py: Adapt after move of gnulib directory from gdb
11580 directory to toplevel directory.
11581
5fb651f2
JB
115822020-01-01 Joel Brobecker <brobecker@adacore.com>
11583
11584 * copyright.py (main): Exit if run from the wrong directory.
11585
5dd8bf88
JB
115862020-01-01 Joel Brobecker <brobecker@adacore.com>
11587
11588 * top.c (print_gdb_version): Change copyright year to 2020.
11589
9f71dacb 115902020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11591
9f71dacb 11592 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11593
9f71dacb 11594For older changes see ChangeLog-2019.
c906108c
SS
11595\f
11596Local Variables:
11597mode: change-log
11598left-margin: 8
11599fill-column: 74
11600version-control: never
57da7796 11601coding: utf-8
c906108c 11602End: