]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[gdb/build] Fix Wmaybe-uninitialized in gdb_optional.h
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d70f978b
L
12020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR binutils/26301
4 * configure: Regenerated.
5
43d5901d
AB
62020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * python/py-frame.c: Remove 'user-regs.h' include.
9 (frapy_read_register): Rewrite to make use of
10 gdbpy_parse_register_id.
11 * python/py-registers.c (gdbpy_parse_register_id): New function,
12 moved here from python/py-unwind.c. Updated the return type, and
13 also accepts register descriptor objects.
14 * python/py-unwind.c: Remove 'user-regs.h' include.
15 (pyuw_parse_register_id): Moved to python/py-registers.c.
16 (unwind_infopy_add_saved_register): Update to use
17 gdbpy_parse_register_id.
18 (pending_framepy_read_register): Likewise.
19 * python/python-internal.h (gdbpy_parse_register_id): Declare.
20
14fa8fb3
AB
212020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * python/py-registers.c: Add 'user-regs.h' include.
24 (register_descriptor_iter_find): New function.
25 (register_descriptor_iterator_object_methods): New static global
26 methods array.
27 (register_descriptor_iterator_object_type): Add pointer to methods
28 array.
29
ddce1758
JB
302020-07-27 John Baldwin <jhb@FreeBSD.org>
31
32 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
33 for all architectures on FreeBSD 11.3 and later.
34
a4089f52
TT
352020-07-27 Tom Tromey <tromey@adacore.com>
36
37 * gcore.h (load_corefile): Don't declare.
38
95420d30
TV
392020-07-27 Tom de Vries <tdevries@suse.de>
40
41 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
42 * config.in: Regenerate.
43 * configure: Regenerate.
44
05a6b8c2
EZ
452020-07-26 Eli Zaretskii <eliz@gnu.org>
46
47 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
48 ws2tcpip.h. When checking whether socklen_t type is defined, use
49 ws2tcpip.h if it is available and sys/socket.h isn't.
50 * configure: Regenerate.
51 * config.in: Regenerate.
52
e79eb02f
AB
532020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
54
55 PR fortran/23051
56 PR fortran/26139
57 * valops.c (value_ind): Pass address to
58 readjust_indirect_value_type.
59 * value.c (readjust_indirect_value_type): Make parameter
60 non-const, and add extra address parameter. Resolve original type
61 before using it.
62 * value.h (readjust_indirect_value_type): Update function
63 signature and comment.
64
876518dd
TV
652020-07-25 Tom de Vries <tdevries@suse.de>
66
67 PR symtab/26243
68 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
69 entries.
70
f6720b1c
AM
712020-07-24 Aaron Merey <amerey@redhat.com>
72
73 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
74 * configure: Rebuild.
75
513487e1
KB
762020-07-23 Kevin Buettner <kevinb@redhat.com>
77
78 PR corefiles/26294
79 * corelow.c (_initialize_corelow): Add period to help text
80 for "maintenance print core-file-backed-mappings".
81
e7bc9db8
PA
822020-07-23 Pedro Alves <pedro@palves.net>
83
84 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
85 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
86 meanwhile.
87 * frame.c (frame_cache_generation, get_frame_cache_generation):
88 New.
89 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
90 (get_prev_frame_if_no_cycle): On exception, don't touch
91 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
92 * frame.h (get_frame_cache_generation): Declare.
93
90fcc466
TV
942020-07-23 Tom de Vries <tdevries@suse.de>
95
96 PR tui/26282
97 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
98 New default constructor.
99
78344df7
AB
1002020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
101
102 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
103 exclude non-statement entries.
104
b089853a
KB
1052020-07-22 Kevin Buettner <kevinb@redhat.com>
106
107 * NEWS (New commands): Mention new command
108 "maintenance print core-file-backed-mappings".
109
09c2f5d4
KB
1102020-07-22 Kevin Buettner <kevinb@redhat.com>
111
112 * corelow.c (gdbcmd.h): Include.
113 (core_target::info_proc_mappings): New method.
114 (get_current_core_target): New function.
115 (maintenance_print_core_file_backed_mappings): New function.
116 (_initialize_corelow): Add core-file-backed-mappings to
117 "maint print" commands.
118
9c5ec5c2
KB
1192020-07-22 Kevin Buettner <kevinb@redhat.com>
120
121 * linux-tdep.c (dump_note_entry_p): New function.
122 (linux_dump_mapping_p_ftype): New typedef.
123 (linux_find_memory_regions_full): Add new parameter,
124 should_dump_mapping_p.
125 (linux_find_memory_regions): Adjust call to
126 linux_find_memory_regions_full.
127 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
128 call to linux_find_memory_regions_full.
129
db082f59
KB
1302020-07-22 Kevin Buettner <kevinb@redhat.com>
131
132 * corelow.c (solist.h, unordered_map): Include.
133 (class core_target): Add field m_core_file_mappings and
134 method build_file_mappings.
135 (core_target::core_target): Call build_file_mappings.
136 (core_target::~core_target): Free memory associated with
137 m_core_file_mappings.
138 (core_target::build_file_mappings): New method.
139 (core_target::xfer_partial): Use m_core_file_mappings
140 for memory transfers.
141 * linux-tdep.c (linux_read_core_file_mappings): New
142 function.
143 (linux_core_info_proc_mappings): Rewrite to use
144 linux_read_core_file_mappings.
145 (linux_init_abi): Register linux_read_core_file_mappings.
146
7e183d27
KB
1472020-07-22 Kevin Buettner <kevinb@redhat.com>
148
149 * arch-utils.c (default_read_core_file_mappings): New function.
150 * arch-utils.c (default_read_core_file_mappings): Declare.
151 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
152 * gdbarch.h, gdbarch.c: Regenerate.
153
2735d421
KB
1542020-07-22 Kevin Buettner <kevinb@redhat.com>
155
156 PR corefiles/25631
157 * corelow.c (core_target:xfer_partial): Revise
158 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
159 case after first checking the stratum beneath the core
160 target.
161 (has_all_memory): Return true.
162 * target.c (raw_memory_xfer_partial): Revise comment
163 regarding use of has_all_memory.
164
e56cb451
KB
1652020-07-22 Kevin Buettner <kevinb@redhat.com>
166
167 * exec.h (section_table_xfer_memory): Revise declaration,
168 replacing section name parameter with an optional callback
169 predicate.
170 * exec.c (section_table_xfer_memory): Likewise.
171 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
172 of section_table_xfer_memory.
173
32fa152e
TT
1742020-07-22 Tom Tromey <tromey@adacore.com>
175
176 * mi/mi-cmd-stack.c (list_args_or_locals): Use
177 lookup_symbol_search_name.
178
a67a1c41
AB
1792020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * python/py-registers.c (gdbpy_register_object_data_init): Remove
182 redundant local variable.
183 (gdbpy_get_register_descriptor): Extract descriptor vector as a
184 reference, not pointer, update code accordingly.
185
a7b4ff4f
SM
1862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
187 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
188
189 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
190 * jit.c (jit_breakpoint_re_set_internal): Use the
191 `skip_jit_symbol_lookup` field.
192
2340e834
SM
1932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
194 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
195
196 * jit.c (jit_read_descriptor): Define the descriptor address once,
197 use twice.
198 (jit_breakpoint_deleted): Move the declaration of the loop variable
199 `iter` into the loop header.
200 (jit_breakpoint_re_set_internal): Move the declaration of the local
201 variable `objf_data` to the first point of definition.
202 (jit_event_handler): Move the declaration of local variables
203 `code_entry`, `entry_addr`, and `objf` to their first point of use.
204 Rename `objf` to `jited`.
205
c1072906
SM
2062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
207
208 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
209 Remove.
210 * jit.c (get_jiter_objfile_data): Update.
211
c8474dc3
TBA
2122020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
213 Simon Marchi <simon.marchi@polymtl.ca>
214
215 * jit.c (struct jit_program_space_data): Remove.
216 (jit_program_space_key): Remove.
217 (jiter_objfile_data::~jiter_objfile_data): Remove program space
218 stuff.
219 (get_jit_program_space_data): Remove.
220 (jit_breakpoint_deleted): Iterate on all of the program space's
221 objfiles.
222 (jit_inferior_init): Likewise.
223 (jit_breakpoint_re_set_internal): Likewise. Also change return
224 type to void.
225 (jit_breakpoint_re_set): Pass current_program_space to
226 jit_breakpoint_re_set_internal.
227
77208eb7
SM
2282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
229
230 * jit.h (struct jiter_objfile_data) <cached_code_address,
231 jit_breakpoint>: Move to here from ...
232 * jit.c (jit_program_space_data): ... here.
233 (jiter_objfile_data::~jiter_objfile_data): Update.
234 (jit_breakpoint_deleted): Update.
235 (jit_breakpoint_re_set_internal): Update.
236
8c1c720f
SM
2372020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
238
239 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
240 checks.
241 (jit_read_descriptor): Remove NULL check.
242 (jit_event_handler): Add an assertion.
243
0e74a041
SM
2442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
245
246 * jit.h (struct jit_objfile_data): Split into...
247 (struct jiter_objfile_data): ... this ...
248 (struct jited_objfile_data): ... and this.
249 * objfiles.h (struct objfile) <jit_data>: Remove.
250 <jiter_data, jited_data>: New fields.
251 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
252 (jiter_objfile_data::~jiter_objfile_data): ... this.
253 (get_jit_objfile_data): Rename to ...
254 (get_jiter_objfile_data): ... this.
255 (add_objfile_entry): Update.
256 (jit_read_descriptor): Use get_jiter_objfile_data.
257 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
258 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
259 (jit_inferior_exit_hook): Use objfile's jited_data field.
260
238b5c9f
SM
2612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * jit.h: Forward-declare `struct minimal_symbol`.
264 (struct jit_objfile_data): Migrate to here from jit.c; also add a
265 constructor, destructor, and an objfile* field.
266 * jit.c (jit_objfile_data): Remove.
267 (struct jit_objfile_data): Migrate from here to jit.h.
268 (jit_objfile_data::~jit_objfile_data): New destructor
269 implementation with code moved from free_objfile_data.
270 (free_objfile_data): Delete.
271 (get_jit_objfile_data): Update to use the jit_data field of objfile.
272 (jit_find_objf_with_entry_addr): Ditto.
273 (jit_inferior_exit_hook): Ditto.
274 (_initialize_jit): Remove the call to
275 register_objfile_data_with_cleanup.
276 * objfiles.h (struct objfile) <jit_data>: New field.
277
fe053b9e
TBA
2782020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
279
280 * jit.h: Forward-declare `struct objfile`.
281 (jit_event_handler): Add a second parameter, the JITer objfile.
282 * jit.c (jit_read_descriptor): Change the signature to take the
283 JITer objfile as an argument instead of the jit_program_space_data.
284 (jit_inferior_init): Update the call to jit_read_descriptor.
285 (jit_event_handler): Use the new JITer objfile argument when calling
286 jit_read_descriptor.
287 * breakpoint.c (handle_jit_event): Update the call to
288 jit_event_handler to pass the JITer objfile.
289
4cec0c66
JB
2902020-07-21 John Baldwin <jhb@FreeBSD.org>
291
292 * gdbarch.c: Regenerate.
293 * gdbarch.h: Regenerate.
294 * gdbarch.sh (handle_segmentation_fault): Remove method.
295 * infrun.c (handle_segmentation_fault): Remove.
296 (print_signal_received_reason): Remove call to
297 handle_segmentation_fault.
298
0e42f66a
JB
2992020-07-21 John Baldwin <jhb@FreeBSD.org>
300
301 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
302 Rename to sparc64_linux_report_signal_info and add siggnal
303 argument.
304 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
305 instead of sparc64_linux_handle_segmentation_fault.
306
77bdfeb2
JB
3072020-07-21 John Baldwin <jhb@FreeBSD.org>
308
309 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
310 i386_linux_report_signal_info instead of
311 i386_linux_handle_segmentation_fault.
312 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
313 to i386_linux_report_signal_info and add siggnal argument.
314 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
315 of i386_linux_handle_segmentation_fault.
316 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
317 to i386_linux_report_signal_info and add siggnal argument.
318
ad97bfc5
JB
3192020-07-21 John Baldwin <jhb@FreeBSD.org>
320
321 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
322 hook if present.
323
272bb05c
JB
3242020-07-21 John Baldwin <jhb@FreeBSD.org>
325
326 * gdbarch.c: Regenerate.
327 * gdbarch.h: Regenerate.
328 * gdbarch.sh (report_signal_info): New method.
329 * infrun.c (print_signal_received_reason): Invoke gdbarch
330 report_signal_info hook if present.
331
baf8791e
AB
3322020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * python/py-registers.c : Add 'unordered_map' include.
335 (gdbpy_new_reggroup): Renamed to...
336 (gdbpy_get_reggroup): ...this. Update to only create register
337 group descriptors when needed.
338 (gdbpy_reggroup_iter_next): Update.
339
f7306dac
AB
3402020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * python/py-registers.c (gdbpy_register_object_data): New static
343 global.
344 (gdbpy_register_object_data_init): New function.
345 (gdbpy_new_register_descriptor): Renamed to...
346 (gdbpy_get_register_descriptor): ...this, and update to reuse
347 existing register descriptors where possible.
348 (gdbpy_register_descriptor_iter_next): Update.
349 (gdbpy_initialize_registers): Register new gdbarch data.
350
05c309a8
SM
3512020-07-21 Simon Marchi <simon.marchi@efficios.com>
352
353 * linux-nat.c (stopped_pids): Make static.
354
d1fd641e
SM
3552020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
356
357 PR ada/26235
358 * gdbtypes.c (ada_discrete_type_low_bound,
359 ada_discrete_type_high_bound): Handle undefined bounds.
360
1de14d77
KR
3612020-07-21 Kamil Rytarowski <n54@gmx.com>
362
363 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
364 declaration.
365 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
366 function.
367
ed810cc7
JB
3682020-07-20 John Baldwin <jhb@FreeBSD.org>
369
370 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
371 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
372 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
373 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
374 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
375 method.
376
ae5369e7
LC
3772020-07-20 Ludovic Courtès <ludo@gnu.org>
378
379 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
380 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
381 which are deprecated in Guile 3.0.
382 * configure.ac (try_guile_versions): Add "guile-3.0".
383 * configure (try_guile_versions): Regenerate.
384 * NEWS: Update entry.
385
68cf161c
LC
3862020-07-20 Ludovic Courtès <ludo@gnu.org>
387 Doug Evans <dje@google.com>
388
389 PR gdb/21104
390 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
391 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
392 USING_GUILE_BEFORE_2_2.
393 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
394 Change type to 'scm_t_port_type *'.
395 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
396 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
397 parameter and honor it. Update callers.
398 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
399 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
400 functions.
401 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
402 USING_GUILE_BEFORE_2_2.
403 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
404 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
405 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
406 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
407 and 'SCM_PORT_TYPE'.
408 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
409 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
410 (gdbscm_memory_port_read, gdbscm_memory_port_write)
411 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
412 [!USING_GUILE_BEFORE_2_2]: New functions.
413 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
414 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
415 'gdbscm_memory_port_read'.
416 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
417 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
418 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
419 function.
420 (ioscm_init_memory_port): Remove.
421 (ioscm_init_memory_port_stream): New function
422 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
423 function.
424 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
425 Return scm_from_uint (0).
426 (gdbscm_set_memory_port_read_buffer_size_x)
427 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
428 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
429 Return scm_from_uint (0).
430 (gdbscm_set_memory_port_write_buffer_size_x)
431 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
432 * configure.ac (try_guile_versions): Add "guile-2.2".
433 * configure: Regenerate.
434 * NEWS: Add entry.
435
aee91db3
TT
4362020-07-18 Tom Tromey <tom@tromey.com>
437
438 * linux-nat.c (linux_multi_process): Remove.
439 (linux_nat_target::supports_multi_process): Return true.
440
0e267416
AB
4412020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
442
443 * arch/riscv.c (riscv_tdesc_cache): Change map type.
444 (riscv_lookup_target_description): Return pointer out of
445 unique_ptr.
446 * target-descriptions.c (allocate_target_description): Add
447 comment.
448 (target_desc_deleter::operator()): Likewise.
449 * target-descriptions.h (struct target_desc_deleter): Moved to
450 gdbsupport/tdesc.h.
451 (target_desc_up): Likewise.
452
f80c8ec4
TT
4532020-07-17 Tom Tromey <tromey@adacore.com>
454
455 * linux-nat.c (linux_nat_target::supports_non_stop)
456 (linux_nat_target::always_non_stop_p): Use "true".
457 (linux_nat_target::supports_disable_randomization): Use "true" and
458 "false".
459
d0ce17d8
CT
4602020-07-16 Caroline Tice <cmtice@google.com>
461
462 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
463 (RNGLIST_HEADER_SIZE64): New constant definition.
464 (struct dwop_section_names): Add rnglists_dwo.
465 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
466 (struct loclist_header): Rename to 'loclists_rnglists_header'.
467 (struct dwo_sections): Add rnglists field.
468 (read_attribut_reprocess): Add tag parameter.
469 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
470 (cu_debug_rnglists_section): New function (decl & definition).
471 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
472 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
473 die whose range is being checked; get rnglist section from
474 cu_debug_rnglists_section, to get from either objfile or dwo file as
475 appropriate. Add cases for DW_RLE_base_addressx,
476 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
477 the base address to DW_RLE_offset_pairs (not to all ranges), moving
478 test inside if-condition and updating complaint message.
479 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
480 dwarf2_rnglists_process.
481 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
482 dwarf2_ranges_process.
483 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
484 need_ranges_base and update comment appropriately. Also pass die tag
485 to dwarf2_ranges_read.
486 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
487 need_ranges_base and update comment appropriately. Also pass die tag
488 to dwarf2_ranges_process.
489 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
490 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
491 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
492 need_ranges_base and update comment appropriately. Also pass die tag
493 to read_attribute_reprocess and dwarf2_ranges_read.
494 (read_loclist_header): Rename function to read_loclists_rnglists_header,
495 and update function comment appropriately.
496 (read_loclist_index): Call read_loclists_rnglists_header instead of
497 read_loclist_header.
498 (read_rnglist_index): New function.
499 (read_attribute_reprocess): Add tag parameter. Add code for
500 DW_FORM_rnglistx, passing tag to read_rnglist_index.
501 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
502
3dcc261c
AB
5032020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
504
505 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
506 being resolved.
507
ccb9eba6
AB
5082020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
509
510 * arch-utils.c (show_architecture): Update formatting of messages.
511
cf88be68
SM
5122020-07-12 Simon Marchi <simon.marchi@efficios.com>
513
514 * gdbtypes.h (struct type) <bounds>: Handle array and string
515 types.
516 * ada-lang.c (assign_aggregate): Use type::bounds on
517 array/string type.
518 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
519 * c-varobj.c (c_number_of_children): Likewise.
520 (c_describe_child): Likewise.
521 * eval.c (evaluate_subexp_for_sizeof): Likewise.
522 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
523 (f_type_print_base): Likewise.
524 * f-valprint.c (f77_array_offset_tbl): Likewise.
525 (f77_get_upperbound): Likewise.
526 (f77_print_array_1): Likewise.
527 * guile/scm-type.c (gdbscm_type_range): Likewise.
528 * m2-typeprint.c (m2_array): Likewise.
529 (m2_is_long_set_of_type): Likewise.
530 * m2-valprint.c (get_long_set_bounds): Likewise.
531 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
532 * python/py-type.c (typy_range): Likewise.
533 * rust-lang.c (rust_internal_print_type): Likewise.
534 * type-stack.c (type_stack::follow_types): Likewise.
535 * valarith.c (value_subscripted_rvalue): Likewise.
536 * valops.c (value_cast): Likewise.
537
509971ae
SM
5382020-07-12 Simon Marchi <simon.marchi@efficios.com>
539
540 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
541 callers to use the equivalent accessor methods.
542
107406b7
SM
5432020-07-12 Simon Marchi <simon.marchi@efficios.com>
544
545 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
546 (struct type) <bit_stride>: New method.
547 (TYPE_BIT_STRIDE): Remove.
548 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
549
bb789949
SM
5502020-07-12 Simon Marchi <simon.marchi@efficios.com>
551
552 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
553 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
554 callers to use the equivalent accessor methods instead.
555
39498edb
SM
5562020-07-12 Simon Marchi <simon.marchi@efficios.com>
557
558 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
559 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
560 callers to use the equivalent accessor methods instead.
561
3b606f38
SM
5622020-07-12 Simon Marchi <simon.marchi@efficios.com>
563
564 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
565 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
566 to use dynamic_prop::kind.
567
064d9cb9
SM
5682020-07-12 Simon Marchi <simon.marchi@efficios.com>
569
570 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
571 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
572 to get the bound property's kind and check against
573 PROP_UNDEFINED.
574
5537ddd0
SM
5752020-07-12 Simon Marchi <simon.marchi@efficios.com>
576
577 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
578 all callers to use type::range_bounds followed by
579 dynamic_prop::{low,high}.
580
8c2e4e06
SM
5812020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
584 const_val, set_const_val, baton, set_locexpr, set_loclist,
585 set_addr_offset, variant_parts, set_variant_parts,
586 original_type, set_original_type>: New methods.
587 <kind>: Rename to...
588 <m_kind>: ... this. Update all users to use the new methods
589 instead.
590 <data>: Rename to...
591 <m_data>: ... this. Update all users to use the new methods
592 instead.
593
7c6f2712
SM
5942020-07-12 Simon Marchi <simon.marchi@efficios.com>
595
596 * gdbtypes.c (get_discrete_bounds): Return failure if
597 the range type's bounds are not both defined and constant
598 values.
599 (get_array_bounds): Update comment. Remove undefined bound check.
600
599088e3
SM
6012020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
602
603 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
604 the type::bounds method directly.
605
c4dfcb36
SM
6062020-07-12 Simon Marchi <simon.marchi@efficios.com>
607
608 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
609 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
610 are used to set the range type's bounds to use set_bounds.
611
0a278aa7
PW
6122020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
613
614 * exec.c (_initialize_exec): Update exec-file-mismatch help.
615
cce20f10
PA
6162020-07-10 Pedro Alves <pedro@palves.net>
617
618 * gdbthread.h (inferior_ref): Define.
619 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
620 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
621 * thread.c
622 (scoped_restore_current_thread::restore):
623 Adjust to gdb::ref_ptr.
624 (scoped_restore_current_thread::~scoped_restore_current_thread):
625 Remove manual decref handling.
626 (scoped_restore_current_thread::scoped_restore_current_thread):
627 Adjust to use
628 inferior_ref::new_reference/thread_info_ref::new_reference.
629 Incref the thread before calling get_frame_id instead of after.
630 Let TARGET_CLOSE_ERROR propagate.
631
6d7aa592
PA
6322020-07-10 Pedro Alves <pedro@palves.net>
633
634 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
635 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
636 NOT_AVAILABLE_ERROR.
637 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
638 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
639
b3e3a4c1
SM
6402020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
641 Pedro Alves <pedro@palves.net>
642
643 PR gdb/26199
644 * infrun.c (threads_are_resumed_pending_p): Delete.
645 (do_target_wait): Remove threads_are_executing and
646 threads_are_resumed_pending_p checks from the inferior_matches
647 lambda. Update comments.
648
d6cc5d98
PA
6492020-07-10 Pedro Alves <pedro@palves.net>
650
651 PR gdb/26199
652 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
653 executing threads.
654
7d3badc6
PA
6552020-07-10 Pedro Alves <pedro@palves.net>
656
657 PR gdb/26199
658 * infrun.c (handle_no_resumed): Handle multiple targets.
659
42bd97a6
PA
6602020-07-10 Pedro Alves <pedro@palves.net>
661
662 PR gdb/26199
663 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
664 target_is_async_p.
665
43667cc6
PA
6662020-07-10 Pedro Alves <pedro@palves.net>
667
668 PR gdb/26199
669 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
670 threads, not all threads.
671
96118d11
PA
6722020-07-10 Pedro Alves <pedro@palves.net>
673
674 PR gdb/26199
675 * remote.c (remote_target::open_1): Pass remote target pointer as
676 data to create_async_event_handler.
677 (remote_async_inferior_event_handler): Mark async event handler
678 before returning if the remote target still has either pending
679 events or unacknowledged notifications.
680
54904d81
JB
6812020-07-10 John Baldwin <jhb@FreeBSD.org>
682
683 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
684 declaration.
685 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
686 function.
687
f37e5866
JB
6882020-07-09 John Baldwin <jhb@FreeBSD.org>
689
690 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
691 inferior_ptid.
692
fc238d4a
JB
6932020-07-09 John Baldwin <jhb@FreeBSD.org>
694
695 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
696 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
697 AT_FREEBSD_PS_STRINGS.
698
6e2469ff
HD
6992020-07-08 Hannes Domani <ssbssa@yahoo.de>
700
701 * auto-load.c (auto_load_objfile_script_1): Convert drive part
702 of debugfile path on Windows.
703
d1076c41
JB
7042020-07-08 John Baldwin <jhb@FreeBSD.org>
705
706 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
707 argument to 'data'.
708
15f3b077
TT
7092020-07-08 Tom Tromey <tromey@adacore.com>
710
711 * ada-lang.c (ada_exception_message_1): Use read_memory.
712
9fc501fd
AB
7132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
714
715 PR python/22748
716 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
717 special handling for inline frames.
718 * findvar.c (value_of_register_lazy): Skip inline frames when
719 creating lazy register values.
720 * frame.c (frame_id_computed_p): Delete definition.
721 * frame.h (frame_id_computed_p): Delete declaration.
722
64cb3757
AB
7232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
724
725 * NEWS: Mention additions to Python API.
726 * python/py-arch.c (archpy_register_groups): New function.
727 (arch_object_methods): Add 'register_groups' method.
728 * python/py-registers.c (reggroup_iterator_object): New struct.
729 (reggroup_object): New struct.
730 (gdbpy_new_reggroup): New function.
731 (gdbpy_reggroup_to_string): New function.
732 (gdbpy_reggroup_name): New function.
733 (gdbpy_reggroup_iter): New function.
734 (gdbpy_reggroup_iter_next): New function.
735 (gdbpy_new_reggroup_iterator): New function
736 (gdbpy_initialize_registers): Register new types.
737 (reggroup_iterator_object_type): Define new Python type.
738 (gdbpy_reggroup_getset): New static global.
739 (reggroup_object_type): Define new Python type.
740 * python/python-internal.h
741
0f767f94
AB
7422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
743
744 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
745 * python/py-arch.c (archpy_registers): New function.
746 (arch_object_methods): Add 'registers' method.
747 * python/py-registers.c: New file.
748 * python/python-internal.h
749 (gdbpy_new_register_descriptor_iterator): Declare.
750 (gdbpy_initialize_registers): Declare.
751 * python/python.c (do_start_initialization): Call
752 gdbpy_initialize_registers.
753 * NEWS: Mention additions to the Python API.
754
87dbc774
AB
7552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * NEWS: Mention new Python API method.
758 * python/py-unwind.c (pending_framepy_architecture): New function.
759 (pending_frame_object_methods): Add architecture method.
760
3bc98c0c
AB
7612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
762
763 * gdbarch.c: Regenerate.
764 * gdbarch.h: Regenerate.
765 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
766 (gdbarch_data): Use internal_error for the case where
767 deprecated_set_gdbarch_data was originally needed.
768 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
769 and use passed in obstack.
770 (libunwind_frame_set_descr): Should no longer get back NULL from
771 gdbarch_data.
772 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
773 type.
774 * user-regs.c (user_regs_init): Update parameters, and use passed
775 in obstack.
776 (user_reg_add): Should no longer get back NULL from gdbarch_data.
777 (_initialize_user_regs): Register as a pre-init gdbarch data type.
778
d8cc8af6
TV
7792020-07-06 Tom de Vries <tdevries@suse.de>
780
781 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
782 End-Of-Sequence in lte_is_less_than.
783 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
784 "gdb: Don't reorder line table entries too much when sorting".
785
947f7597
TV
7862020-07-06 Tom de Vries <tdevries@suse.de>
787
788 PR tui/26205
789 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
790
1e7c1b22
TV
7912020-07-05 Tom de Vries <tdevries@suse.de>
792
793 PR build/26187
794 * inferior.h (struct infcall_suspend_state_deleter): If available, use
795 std::uncaught_exceptions instead of deprecated
796 std::uncaught_exception.
797
a36158ec
SM
7982020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
799
800 * macroexp.h (macro_stringify): Return
801 gdb::unique_xmalloc_ptr<char>.
802 * macroexp.c (macro_stringify): Likewise.
803 * macrotab.c (fixup_definition): Update.
804
14d960c8
SM
8052020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
806
807 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
808 (lex_one_token): Update.
809 * macroexp.c (struct macro_buffer) <release>: Return
810 gdb::unique_xmalloc_ptr<char>.
811 (macro_stringify): Update.
812 (macro_expand): Update.
813 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
814 * macroexp.h (macro_expand_next): Likewise.
815
211d5b1c
SM
8162020-07-02 Simon Marchi <simon.marchi@efficios.com>
817
818 * macroexp.h (macro_lookup_ftype): Remove.
819 (macro_expand, macro_expand_once, macro_expand_next): Remove
820 lookup function parameters, add scope parameter.
821 * macroexp.c (scan, substitute_args, expand, maybe_expand,
822 macro_expand, macro_expand_once, macro_expand_next): Likewise.
823 * macroscope.h (standard_macro_lookup): Change parameter type
824 to macro_scope.
825 * macroscope.c (standard_macro_lookup): Likewise.
826 * c-exp.y (lex_one_token): Update.
827 * macrocmd.c (macro_expand_command): Likewise.
828 (macro_expand_once_command): Likewise.
829
b1a35af2
SM
8302020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
831
832 * inf-loop.c (inferior_event_handler): Remove client_data param.
833 * inf-loop.h (inferior_event_handler): Likewise.
834 * infcmd.c (step_1): Adjust.
835 * infrun.c (proceed): Adjust.
836 (fetch_inferior_event): Remove client_data param.
837 (infrun_async_inferior_event_handler): Adjust.
838 * infrun.h (fetch_inferior_event): Remove `void *` param.
839 * linux-nat.c (handle_target_event): Adjust.
840 * record-btrace.c (record_btrace_handle_async_inferior_event):
841 Adjust.
842 * record-full.c (record_full_async_inferior_event_handler):
843 Adjust.
844 * remote.c (remote_async_inferior_event_handler): Adjust.
845
1cdf9e33
TT
8462020-07-01 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
849 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
850
32c1e210
TT
8512020-07-01 Tom Tromey <tom@tromey.com>
852
853 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
854 tui_gen_win_info.
855 (tui_win_info::make_window): Merge with
856 tui_gen_win_info::make_window.
857 (tui_win_info::make_visible): Move from tui_gen_win_info.
858 * tui/tui-win.c (tui_win_info::max_width): Move from
859 tui_gen_win_info.
860 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
861 type.
862 <window_factory>: Likewise.
863 * tui/tui-layout.c (tui_win_info::resize): Move from
864 tui_gen_win_info.
865 (make_standard_window): Change return type.
866 (get_locator_window, tui_get_window_by_name): Likewise.
867 (tui_layout_window::apply): Remove a cast.
868 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
869 (struct tui_win_info): Merge with tui_gen_win_info.
870 (struct tui_gen_win_info): Remove.
871
a30cb6da
TT
8722020-07-01 Tom Tromey <tom@tromey.com>
873
874 * tui/tui-stack.h (struct tui_locator_window): Derive from
875 tui_win_info.
876 <do_scroll_horizontal, do_scroll_vertical>: New methods.
877 <can_box>: New method.
878
1eb2161f
TT
8792020-07-01 Tom Tromey <tom@tromey.com>
880
881 * tui/tui-stack.h (struct tui_locator_window): Remove body.
882
7134f2eb
TT
8832020-07-01 Tom Tromey <tom@tromey.com>
884
885 * tui/tui-regs.c (tui_data_window::display_registers_from)
886 (tui_data_window::display_registers_from)
887 (tui_data_window::first_data_item_displayed)
888 (tui_data_window::delete_data_content_windows): Update.
889 (tui_data_window::refresh_window, tui_data_window::no_refresh):
890 Remove.
891 (tui_data_window::check_register_values): Update.
892 (tui_data_item_window::rerender): Add parameters. Update.
893 (tui_data_item_window::refresh_window): Remove.
894 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
895 virtual.
896 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
897 tui_gen_win_info.
898 <refresh_window, max_height, min_height>: Remove.
899 <rerender>: Add parameters.
900 <x, y, visible>: New members.
901 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
902 <m_item_width>: New member.
903
22b7b041
TT
9042020-07-01 Tom Tromey <tom@tromey.com>
905
906 * tui/tui-regs.c (tui_data_window::show_register_group)
907 (tui_data_window::check_register_values): Update.
908 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
909 from item_no.
910
c9753adb
TT
9112020-07-01 Tom Tromey <tom@tromey.com>
912
913 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
914 useless "if".
915
9ab26b4a
TT
9162020-07-01 Tom Tromey <tom@tromey.com>
917
918 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
919 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
920
e555083f
TT
9212020-07-01 Tom Tromey <tom@tromey.com>
922
923 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
924 * tui/tui-winsource.h (enum tui_line_or_address_kind)
925 (struct tui_line_or_address): Move from tui-data.h.
926 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
927 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
928 (tui_cmd_window, tui_source_window_base, tui_source_window)
929 (tui_disasm_window): Don't declare.
930 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
931 to tui-winsource.h.
932 (SINGLE_KEY): Move to tui-stack.c.
933
7a02bab7
TT
9342020-07-01 Tom Tromey <tom@tromey.com>
935
936 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
937 std::string.
938 * tui/tui-regs.c (class tab_expansion_file): New.
939 (tab_expansion_file::write): New method.
940 (tui_register_format): Change return type. Use
941 tab_expansion_file.
942 (tui_get_register, tui_data_window::display_registers_from)
943 (tui_data_item_window::rerender): Update.
944 * tui/tui-io.h (tui_expand_tabs): Don't declare.
945 * tui/tui-io.c (tui_expand_tabs): Remove.
946
ea68593b
TT
9472020-07-01 Tom Tromey <tom@tromey.com>
948
949 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
950
a8caed5d
FS
9512020-07-01 Fangrui Song <maskray@google.com>
952
953 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
954
9cdf9820
AKS
9552020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
956
957 * dwarf2/read.c (set_die_type): Removed conditions to restrict
958 forms for DW_AT_associated and DW_AT_allocated attributes,
959 which is already checked in function attr_to_dynamic_prop.
960
a1520ad8
TT
9612020-06-30 Tom Tromey <tromey@adacore.com>
962
963 * dwarf2/read.c (quirk_rust_enum): Correctly call
964 alloc_rust_variant for default-less enum.
965
5ac58899
TT
9662020-06-30 Tom Tromey <tromey@adacore.com>
967
968 PR build/26183:
969 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
970 gdb::to_string.
971
19b187a9
SM
9722020-06-29 Simon Marchi <simon.marchi@efficios.com>
973
974 * gdbarch.sh (displaced_step_copy_insn): Update doc.
975 * gdbarch.h: Re-generate.
976
cd4c4c07
TT
9772020-06-28 Tom Tromey <tom@tromey.com>
978
979 * command.h (cmd_types): Remove.
980 (cmd_type): Don't declare.
981 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
982 typedef.
983 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
984 * cli/cli-decode.c (cmd_type): Remove.
985
05779d57
PA
9862020-06-27 Pedro Alves <palves@redhat.com>
987
988 * fork-child.c (prefork_hook): Adjust.
989 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
990 Delete.
991 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
992 * inferior.c (inferior::set_tty, inferior::tty): New methods.
993 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
994 Remove declarations.
995 (struct inferior) <set_tty, tty>: New methods.
996 (struct inferior) <terminal>: Rename to ...
997 (struct inferior) <m_terminal>: ... this and make private.
998 * main.c (captured_main_1): Adjust.
999 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1000 (mi_cmd_inferior_tty_show): Adjust.
1001 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1002 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1003
1776e3e5
NA
10042020-06-26 Nick Alcock <nick.alcock@oracle.com>
1005
1006 * configure.ac: Add --enable-libctf: handle --disable-static
1007 properly.
1008 * acinclude.m4: sinclude ../config/enable.m4.
1009 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1010 (LIBCTF): Substitute in.
1011 (CTF_DEPS): New, likewise.
1012 (CLIBS): libctf needs symbols from libbfd: move earlier.
1013 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1014 flags.
1015 * ctfread.c: Surround in ENABLE_LIBCTF.
1016 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1017 * configure: Regenerate.
1018 * config.in: Likewise.
1019
58373b80
SM
10202020-06-25 Simon Marchi <simon.marchi@efficios.com>
1021
1022 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1023
277474ee
SM
10242020-06-25 Simon Marchi <simon.marchi@efficios.com>
1025
1026 * inferior.h (struct inferior) <terminal>: Change type to
1027 gdb::unique_xmalloc_ptr<char>.
1028 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1029 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1030 field, adjust to unique pointer.
1031 (get_inferior_io_terminal): Adjust to unique pointer.
1032
6d74da72
AB
10332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1036 registers, not just the known core set of registers.
1037
2e52d038
AB
10382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1039
1040 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1041 fflags, frm, and fcsr registers.
1042 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1043 restore groups.
1044 (riscv_tdesc_unknown_reg): New function.
1045 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1046 tdesc_use_registers.
1047 * riscv-tdep.h (struct gdbarch_tdep): Add
1048 unknown_csrs_first_regnum, unknown_csrs_count,
1049 duplicate_fflags_regnum, duplicate_frm_regnum, and
1050 duplicate_fcsr_regnum fields.
1051
be64fd07
AB
10522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1053
1054 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1055 callback, use the callback (when not null) to help number unknown
1056 registers.
1057 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1058 (tdesc_use_registers): Add extra parameter to declaration.
1059
3b9fce96
AB
10602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1061
1062 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1063 in the file.
1064 (class riscv_pending_register_alias): Likewise.
1065 (riscv_register_feature::register_info): Change 'required_p' field
1066 to 'required', and change its type. Add 'check' member function.
1067 (riscv_register_feature::register_info::check): Define new member
1068 function.
1069 (riscv_xreg_feature): Change initialisation of 'required' field.
1070 (riscv_freg_feature): Likewise.
1071 (riscv_virtual_feature): Likewise.
1072 (riscv_csr_feature): Likewise.
1073 (riscv_check_tdesc_feature): Take extra parameter, the csr
1074 tdesc_feature, rewrite the function to use the new
1075 riscv_register_feature::register_info::check function.
1076 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1077
865bad26
AB
10782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1079
1080 * features/Makefile: Remove all references to the deleted files
1081 below.
1082 * features/riscv/32bit-csr.c: Deleted.
1083 * features/riscv/32bit-csr.xml: Deleted.
1084 * features/riscv/64bit-csr.c: Deleted.
1085 * features/riscv/64bit-csr.xml: Deleted.
1086 * features/riscv/rebuild-csr-xml.sh: Deleted.
1087
ed69cbc8
AB
10882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1091 whitespace error for declaration of names member variable.
1092 (struct riscv_register_feature): Add new prefer_first_name member
1093 variable, and fix whitespace error in declaration of registers.
1094 (riscv_xreg_feature): Initialize prefer_first_name field.
1095 (riscv_freg_feature): Likewise.
1096 (riscv_virtual_feature): Likewise.
1097 (riscv_csr_feature): Likewise.
1098 (riscv_register_name): Expand on comments. Remove register name
1099 modifications for CSR and virtual registers.
1100
4445e8f5
AB
11012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1102
1103 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1104 errors.
1105
767a879e
AB
11062020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1109 riscv-opc.h.
1110 (class riscv_pending_register_alias): New class.
1111 (riscv_check_tdesc_feature): Take vector of pending aliases and
1112 populate it as appropriate.
1113 (riscv_setup_register_aliases): Delete.
1114 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1115 to riscv_check_tdesc_feature in all cases. Use the vector to
1116 create the register aliases.
1117
bb6e55f3
RO
11182020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1119
1120 * sol2-tdep.c (sol2_static_transform_name): Remove.
1121 (sol2_init_abi): Don't register it.
1122 * gdbarch.sh (static_transform_name): Remove.
1123 * gdbarch.c, gdbarch.h: Regenerate.
1124
1125 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1126 gdbarch_static_transform_name.
1127 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1128 * stabsread.c (define_symbol) <'X'>: Remove.
1129 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1130 handling.
1131 <'V'>: Likewise.
1132 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1133 <'S'>: Remove call to gdbarch_static_transform_name.
1134
c6d36836
RO
11352020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1136
1137 * procfs.c (procfs_pre_trace): New function.
1138 (procfs_target::create_inferior): Pass it to fork_inferior.
1139
a7e6196b
RO
11402020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1141
1142 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1143 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1144 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1145 sol2-tdep.o, sparc-sol2-tdep.o.
1146 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1147 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1148 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1149 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1150
d412e696
RO
11512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1152
1153 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1154 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1155 Call sol2_init_abi.
1156 Remove calls to set_gdbarch_skip_solib_resolver,
1157 set_gdbarch_core_pid_to_str.
1158 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1159 (i386_sol2_static_transform_name): Remove.
1160 (i386_sol2_init_abi): Call sol2_init_abi.
1161 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1162 set_gdbarch_static_transform_name,
1163 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1164 Use sol2_sigtramp_p.
1165 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1166 (sol2_sigtramp_p): New function.
1167 (sol2_static_transform_name): New function.
1168 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1169 (sol2_init_abi): New function.
1170 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1171 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1172 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1173 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1174 (sparc_sol2_static_transform_name): Remove.
1175 (sparc32_sol2_init_abi): Call sol2_init_abi.
1176 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1177 set_gdbarch_static_transform_name,
1178 set_gdbarch_skip_solib_resolver,
1179 set_gdbarch_core_pid_to_str.
1180 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1181 (sparc_sol2_static_transform_name): Remove
1182 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1183 call sol2_sigtramp_p.
1184 (sparc64_sol2_init_abi): Call sol2_init_abi.
1185 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1186 set_gdbarch_static_transform_name,
1187 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1188
a8654e7d
PW
11892020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1190
1191 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1192 * exec.c (validate_exec_file): If from_tty, set both
1193 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1194 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1195 and from_tty, unconditionally ask a confirmation.
1196
caa7fd04
AB
11972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * target-descriptions.c (tdesc_architecture_name): Protect against
1200 NULL pointer dereference.
1201 (maint_print_xml_tdesc_cmd): New function.
1202 (_initialize_target_descriptions): Register new 'maint print
1203 xml-tdesc' command and give it the filename completer.
1204 * NEWS: Mention new 'maint print xml-tdesc' command.
1205
fbf42f4e
AB
12062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1207
1208 * target-descriptions.c (class tdesc_compatible_info): New class.
1209 (struct target_desc): Change type of compatible vector.
1210 (tdesc_compatible_p): Update for change in type of
1211 target_desc::compatible.
1212 (tdesc_compatible_info_list): New function.
1213 (tdesc_compatible_info_arch_name): New function.
1214 (tdesc_add_compatible): Update for change in type of
1215 target_desc::compatible.
1216 (print_c_tdesc::visit_pre): Likewise.
1217
20821f4e
AB
12182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1221 whitespace to underscore.
1222 (maint_print_c_tdesc_cmd): Use fake filename for target
1223 descriptions that came from the target.
1224 (_initialize_target_descriptions): Add filename command completion
1225 for 'maint print c-tdesc'.
1226
1fb5ee62
SM
12272020-06-23 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1230 lines.
1231
fc3ecb3e
SM
12322020-06-23 Simon Marchi <simon.marchi@efficios.com>
1233
1234 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1235 lines.
1236 (dwarf2_find_location_expression): Likewise.
1237 (call_site_parameter_matches): Likewise.
1238 (dwarf2_compile_expr_to_ax): Likewise.
1239 (disassemble_dwarf_expression): Likewise.
1240 (loclist_describe_location): Likewise.
1241
236ef034
PA
12422020-06-23 Pedro Alves <palves@redhat.com>
1243
1244 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1245 progspace-and-thread.h. Include scoped-mock-context.h instead.
1246 (register_to_value_test): Use scoped_mock_context.
1247 * regcache.c: Include "scoped-mock-context.h".
1248 (cooked_read_test): Don't error out if a target is already pushed.
1249 Use scoped_mock_context. Adjust.
1250 * scoped-mock-context.h: New file.
1251
39e7ecca
AB
12522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1253
1254 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1255 initializer.
1256 (ada_language::is_string_type_p): New member function.
1257 * c-lang.c (c_language_data): Delete la_is_string_type_p
1258 initializer.
1259 (cplus_language_data): Likewise.
1260 (asm_language_data): Likewise.
1261 (minimal_language_data): Likewise.
1262 * d-lang.c (d_language_data): Likewise.
1263 * f-lang.c (f_is_string_type_p): Delete function, implementation
1264 moved to f_language::is_string_type_p.
1265 (f_language_data): Delete la_is_string_type_p initializer.
1266 (f_language::is_string_type_p): New member function,
1267 implementation from f_is_string_type_p.
1268 * go-lang.c (go_is_string_type_p): Delete function, implementation
1269 moved to go_language::is_string_type_p.
1270 (go_language_data): Delete la_is_string_type_p initializer.
1271 (go_language::is_string_type_p): New member function,
1272 implementation from go_is_string_type_p.
1273 * language.c (language_defn::is_string_type_p): Define new member
1274 function.
1275 (default_is_string_type_p): Make static, add comment copied from
1276 header file.
1277 (unknown_language_data): Delete la_is_string_type_p initializer.
1278 (unknown_language::is_string_type_p): New member function.
1279 (auto_language_data): Delete la_is_string_type_p initializer.
1280 (auto_language::is_string_type_p): New member function.
1281 * language.h (language_data): Delete la_is_string_type_p field.
1282 (language_defn::is_string_type_p): Declare new function.
1283 (default_is_string_type_p): Delete desclaration, move comment to
1284 definition.
1285 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1286 moved to m2_language::is_string_type_p.
1287 (m2_language_data): Delete la_is_string_type_p initializer.
1288 (m2_language::is_string_type_p): New member function,
1289 implementation from m2_is_string_type_p.
1290 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1291 initializer.
1292 * opencl-lang.c (opencl_language_data): Likewise.
1293 * p-lang.c (pascal_is_string_type_p): Delete function,
1294 implementation moved to pascal_language::is_string_type_p.
1295 (pascal_language_data): Delete la_is_string_type_p initializer.
1296 (pascal_language::is_string_type_p): New member function,
1297 implementation from pascal_is_string_type_p.
1298 * rust-lang.c (rust_is_string_type_p): Delete function,
1299 implementation moved to rust_language::is_string_type_p.
1300 (rust_language_data): Delete la_is_string_type_p initializer.
1301 (rust_language::is_string_type_p): New member function,
1302 implementation from rust_is_string_type_p.
1303 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1304 is_string_type_p.
1305
4ffc13fb
AB
13062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1307
1308 * ada-lang.c (ada_language_data): Delete la_print_typedef
1309 initializer.
1310 (ada_language::print_typedef): New member function.
1311 * c-lang.c (c_language_data): Delete la_print_typedef 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_language_data): Likewise.
1317 (f_language::print_typedef): New member function.
1318 * go-lang.c (go_language_data): Delete la_print_typedef
1319 initializer.
1320 * language.c (language_defn::print_typedef): Define member
1321 function.
1322 (unknown_language_data): Delete la_print_typedef initializer.
1323 (unknown_language::print_typedef): New member function.
1324 (auto_language_data): Delete la_print_typedef initializer.
1325 (auto_language::print_typedef): New member function.
1326 * language.h (language_data): Delete la_print_typedef field.
1327 (language_defn::print_typedef): Declare new member function.
1328 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1329 (default_print_typedef): Delete declaration.
1330 * m2-lang.c (m2_language_data): Delete la_print_typedef
1331 initializer.
1332 (m2_language::print_typedef): New member function.
1333 * objc-lang.c (objc_language_data): Delete la_print_typedef
1334 initializer.
1335 * opencl-lang.c (opencl_language_data): Likewise.
1336 * p-lang.c (pascal_language_data): Likewise.
1337 (pascal_language::print_typedef): New member function.
1338 * rust-lang.c (rust_print_typedef): Delete function,
1339 implementation moved to rust_language::print_typedef.
1340 (rust_language): Delete la_print_typedef initializer.
1341 (rust_language::print_typedef): New member function,
1342 implementation from rust_print_typedef.
1343 * typeprint.c (default_print_typedef): Delete.
1344
d711ee67
AB
13452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1348 (ada_language::printstr): New member function.
1349 * c-lang.c (c_language_data): Delete la_printstr initializer.
1350 (cplus_language_data): Likewise.
1351 (asm_language_data): Likewise.
1352 (minimal_language_data): Likewise.
1353 * d-lang.c (d_language_data): Likewise.
1354 * f-lang.c (f_printstr): Rename to f_language::printstr.
1355 (f_language_data): Delete la_printstr initializer.
1356 (f_language::printstr): New member function, implementation from
1357 f_printstr.
1358 * go-lang.c (go_language_data): Delete la_printstr initializer.
1359 * language.c (language_defn::printstr): Define new member
1360 function.
1361 (unk_lang_printstr): Delete.
1362 (unknown_language_data): Delete la_printstr initializer.
1363 (unknown_language::printstr): New member function.
1364 (auto_language_data): Delete la_printstr initializer.
1365 (auto_language::printstr): New member function.
1366 * language.h (language_data): Delete la_printstr field.
1367 (language_defn::printstr): Declare new member function.
1368 (LA_PRINT_STRING): Update call to printstr.
1369 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1370 (m2_language_data): Delete la_printstr initializer.
1371 (m2_language::printstr): New member function, implementation from
1372 m2_printstr.
1373 * objc-lang.c (objc_language_data): Delete la_printstr
1374 initializer.
1375 * opencl-lang.c (opencl_language_data): Likewise.
1376 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1377 (pascal_language_data): Delete la_printstr initializer.
1378 (pascal_language::printstr): New member function, implementation
1379 from pascal_printstr.
1380 * p-lang.h (pascal_printstr): Delete declaration.
1381 * rust-lang.c (rust_printstr): Update header comment.
1382 (rust_language_data): Delete la_printstr initializer.
1383 (rust_language::printstr): New member function.
1384
52b50f2c
AB
13852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1388 (ada_language::printchar): New member function.
1389 * c-lang.c (c_language_data): Delete la_printchar initializer.
1390 (cplus_language_data): Likewise.
1391 (asm_language_data): Likewise.
1392 (minimal_language_data): Likewise.
1393 * d-lang.c (d_language_data): Likewise.
1394 * f-lang.c (f_printchar): Rename to f_language::printchar.
1395 (f_language_data): Delete la_printchar initializer.
1396 (f_language::printchar): New member function, implementation from
1397 f_printchar.
1398 * go-lang.c (go_language_data): Delete la_printchar initializer.
1399 * language.c (unk_lang_printchar): Delete.
1400 (language_defn::printchar): Define new member function.
1401 (unknown_language_data): Delete la_printchar initializer.
1402 (unknown_language::printchar): New member function.
1403 (auto_language_data): Delete la_printchar initializer.
1404 (auto_language::printchar): New member function.
1405 * language.h (language_data): Delete la_printchar field.
1406 (language_defn::printchar): Declare new member function.
1407 (LA_PRINT_CHAR): Update call to printchar.
1408 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1409 (m2_language::printchar): New member function.
1410 * objc-lang.c (objc_language_data): Delete la_printchar
1411 initializer.
1412 * opencl-lang.c (opencl_language_data): Likewise.
1413 * p-lang.c (pascal_language_data): Delete la_printchar
1414 initializer.
1415 (pascal_language::printchar): New member function.
1416 * rust-lang.c (rust_printchar): Rename to
1417 rust_language::printchar.
1418 (rust_language_data): Delete la_printchar initializer.
1419 (rust_language::printchar): New member function, implementation
1420 from rust_printchar.
1421
ec8cec5b
AB
14222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1425 (ada_language_data): Delete la_emitchar initializer.
1426 (ada_language::emitchar): New member function, implementation from
1427 emit_char.
1428 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1429 (cplus_language_data): Likewise.
1430 (asm_language_data): Likewise.
1431 (minimal_language_data): Likewise.
1432 * d-lang.c (d_language_data): Likewise.
1433 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1434 (f_language_data): Delete la_emitchar initializer.
1435 (f_language::emitchar): New member function, implementation from
1436 f_emit_char.
1437 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1438 * language.c (unk_lang_emit_char): Delete.
1439 (language_defn::emitchar): New member function definition.
1440 (unknown_language_data): Delete la_emitchar initializer.
1441 (unknown_language::emitchar): New member function.
1442 (auto_language_data): Delete la_emitchar initializer.
1443 (auto_language::emitchar): New member function.
1444 * language.h (language_data): Delete la_emitchar field.
1445 (language_defn::emitchar): New member field declaration.
1446 (LA_EMIT_CHAR): Update call to emitchar.
1447 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1448 (m2_language_data): Delete la_emitchar initializer.
1449 (m2_language::emitchar): New member function, implementation from
1450 m2_emit_char.
1451 * objc-lang.c (objc_language_data): Delete la_emitchar
1452 initializer.
1453 * opencl-lang.c (opencl_language_data): Likewise.
1454 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1455 (pascal_language_data): Delete la_emitchar initializer.
1456 (pascal_language::emitchar): New member function, implementation
1457 from pascal_emit_char.
1458 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1459 (rust_language_data): Delete la_emitchar initializer.
1460 (rust_language::emitchar): New member function, implementation
1461 from rust_emitchar.
1462
1bf9c363
AB
14632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1464
1465 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1466 (ada_language_data): Delete la_post_parser initializer.
1467 (ada_language::post_parser): New member function.
1468 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1469 (cplus_language_data): Likewise.
1470 (asm_language_data): Likewise.
1471 (minimal_language_data): Likewise.
1472 * d-lang.c (d_language_data): Likewise.
1473 * f-lang.c (f_language_data): Likewise.
1474 * go-lang.c (go_language_data): Likewise.
1475 * language.c (unknown_language_data): Likewise.
1476 (auto_language_data): Likewise.
1477 * language.h (language_data): Delete la_post_parser field.
1478 (language_defn::post_parser): New member function.
1479 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1480 * objc-lang.c (objc_language_data): Likewise.
1481 * opencl-lang.c (opencl_language_data): Likewise.
1482 * p-lang.c (pascal_language_data): Likewise.
1483 * parse.c (parse_exp_in_context): Update call to post_parser.
1484 (null_post_parser): Delete definition.
1485 * parser-defs.h (null_post_parser): Delete declaration.
1486 * rust-lang.c (rust_language_data): Delete la_post_parser
1487 initializer.
1488
87afa652
AB
14892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1490
1491 * ada-lang.c (parse): Rename to ada_language::parser.
1492 (ada_language_data): Delete la_parser initializer.
1493 (ada_language::parser): New member function, implementation from
1494 parse.
1495 * c-lang.c (c_language_data): Delete la_parser initializer.
1496 (cplus_language_data): Likewise.
1497 (asm_language_data): Likewise.
1498 (minimal_language_data): Likewise.
1499 * d-lang.c (d_language_data): Likewise.
1500 (d_language::parser): New member function.
1501 * f-lang.c (f_language_data): Delete la_parser initializer.
1502 (f_language::parser): New member function.
1503 * go-lang.c (go_language_data): Delete la_parser initializer.
1504 (go_language::parser): New member function.
1505 * language.c (unk_lang_parser): Delete.
1506 (language_defn::parser): Define new member function.
1507 (unknown_language_data): Delete la_parser initializer.
1508 (unknown_language::parser): New member function.
1509 (auto_language_data): Delete la_parser initializer.
1510 (auto_language::parser): New member function.
1511 * language.h (language_data): Delete la_parser field.
1512 (language_defn::parser): Declare new member function.
1513 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1514 (m2_language::parser): New member function.
1515 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1516 * opencl-lang.c (opencl_language_data): Likewise.
1517 * p-lang.c (pascal_language_data): Likewise.
1518 (pascal_language::parser): New member function.
1519 * parse.c (parse_exp_in_context): Update call to parser.
1520 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1521 (rust_language::parser): New member function.
1522
37825800
AB
15232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1524
1525 * top.c (print_gdb_configuration): Print --with-python-libdir
1526 configuration value.
1527
5b860c93
PW
15282020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1529
1530 * NEWS: Mention change to the alias command.
1531
cf00cd6f
PW
15322020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1533
1534 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1535 (alias_command_completer)
1536 (make_alias_options_def_group): New functions.
1537 (alias_opts, alias_option_defs): New struct and array.
1538 (alias_usage_error): Update usage.
1539 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1540 Use option framework.
1541 (_initialize_cli_cmds): Update alias command help.
1542 Update aliases command help.
1543 (show_user):
1544 Add NULL for new default_args lookup_cmd argument.
1545 (valid_command_p): Rename to validate_aliased_command.
1546 Add NULL for new default_args lookup_cmd argument. Verify that the
1547 aliased_command has no default args.
1548 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1549 (lookup_cmd_1, lookup_cmd): New argument default_args.
1550 (add_alias_cmd):
1551 Add NULL for new default_args lookup_cmd argument.
1552 (print_help_for_command): Show default args under the layout
1553 alias some_alias = some_aliased_cmd some_alias_default_arg.
1554 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1555 xfree default_args in destructor.
1556 * cli/cli-script.c (process_next_line, do_define_command):
1557 Add NULL for new default_args lookup_cmd argument.
1558 * command.h: Declare new default_args argument in lookup_cmd
1559 and lookup_cmd_1.
1560 * completer.c (complete_line_internal_1):
1561 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1562 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1563 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1564 Likewise.
1565 * infcmd.c (_initialize_infcmd): Likewise.
1566 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1567 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1568 * python/py-param.c (add_setshow_generic): Likewise.
1569 * remote.c (_initialize_remote): Likewise.
1570 * top.c (execute_command): Prepend default_args if command has some.
1571 (set_verbose):
1572 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1573 * tracepoint.c (validate_actionline, encode_actions_1):
1574 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1575
bd920864
TBA
15762020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1577
1578 * jit.c (jit_read_descriptor): Use bool as the return type.
1579 (jit_breakpoint_re_set_internal): Use bool as the return type.
1580 Invert the return value logic; return true if the jit breakpoint
1581 has been successfully initialized.
1582 (jit_inferior_init): Update the call to
1583 jit_breakpoint_re_set_internal.
1584
f8098322
PA
15852020-06-22 Pedro Alves <palves@redhat.com>
1586
1587 PR gdb/25939
1588 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1589 Use the current inferior instead. Don't return
1590 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1591 wait again.
1592 * sol-thread.c (sol_thread_target::wait): Don't reference
1593 inferior_ptid.
1594 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1595 (sol_update_thread_list_callback): Use the current inferior's pid
1596 instead of inferior_ptid.
1597
196535a6
RO
15982020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1599
1600 * procfs.c: Cleanup many comments.
1601
1602 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1603 (AFTER_WATCHFLAG): Replace by value.
1604
1605 (MAIN_PROC_NAME_FORMAT): Inline ...
1606 (create_procinfo): ... here.
1607
1608 (procfs_debug_inferior): Remove SYS_exec handling.
1609 (syscall_is_exec): Likewise.
1610 (procfs_set_exec_trap): Likewise.
1611
1612 (syscall_is_lwp_exit): Inline in callers.
1613 (syscall_is_exit): Likewise.
1614 (syscall_is_exec): Likewise.
1615 (syscall_is_lwp_create): Likewise.
1616
1617 (invalidate_cache): Remove #if 0 code.
1618
1619 (make_signal_thread_runnable): Remove.
1620 (procfs_target::resume): Remove #if 0 code.
1621
cf6f3e86
RO
16222020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1623
1624 PR gdb/25939
1625 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1626 call ...
1627 (procfs_target::create_inferior): ... here.
1628
48e9cc84
PW
16292020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1630
1631 * exec.c (validate_exec_file): Ensure the build-id is up to
1632 date by calling reopen_exec_file (that checks file timestamp
1633 to decide to re-read the file).
1634
3922b302
PA
16352020-06-18 Pedro Alves <palves@redhat.com>
1636
1637 PR gdb/25412
1638 * gdbthread.h (delete_thread, delete_thread_silent)
1639 (find_thread_ptid): Update comments.
1640 * thread.c (current_thread_): New global.
1641 (is_current_thread): Move higher, and reimplement.
1642 (inferior_thread): Reimplement.
1643 (set_thread_exited): Use bool. Add assertions.
1644 (add_thread_silent): Simplify thread-reuse handling by always
1645 calling delete_thread.
1646 (delete_thread): Remove intro comment.
1647 (find_thread_ptid): Skip exited threads.
1648 (switch_to_thread_no_regs): Write to current_thread_.
1649 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1650 INFERIOR_PTID. Clear current_thread_.
1651
6dbdab44
PA
16522020-06-18 Pedro Alves <palves@redhat.com>
1653
1654 * aix-thread.c (pd_update): Use switch_to_thread.
1655
2da4b788
PA
16562020-06-18 Pedro Alves <palves@redhat.com>
1657
1658 * ravenscar-thread.c (ravenscar_thread_target): Update.
1659 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1660 (ravenscar_thread_target::add_active_thread): ... this. Don't
1661 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1662 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1663
50838d1b
PA
16642020-06-18 Pedro Alves <palves@redhat.com>
1665
1666 * nat/windows-nat.c (current_windows_thread): Remove.
1667 * nat/windows-nat.h (current_windows_thread): Remove.
1668 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1669 Adjust.
1670 (display_selectors): Adjust to fetch the current
1671 windows_thread_info based on inferior_ptid.
1672 (fake_create_process): No longer write to current_windows_thread.
1673 (windows_nat_target::get_windows_debug_event):
1674 Don't set inferior_ptid or current_windows_thread.
1675 (windows_nat_target::wait): Adjust to not rely on
1676 current_windows_thread.
1677 (do_initial_windows_stuff): Now a method of windows_nat_target.
1678 Switch to the last_ptid thread.
1679 (windows_nat_target::attach): Adjust.
1680 (windows_nat_target::detach): Use switch_to_no_thread instead of
1681 writing to inferior_ptid directly.
1682 (windows_nat_target::create_inferior): Adjust.
1683
31ce04e9
PA
16842020-06-18 Pedro Alves <palves@redhat.com>
1685
1686 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1687
1ee1a363
PA
16882020-06-18 Pedro Alves <palves@redhat.com>
1689
1690 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1691 after creating it, instead of writing to inferior_ptid. Don't
1692 write to inferior_ptid.
1693
6d350754
PA
16942020-06-18 Pedro Alves <palves@redhat.com>
1695
1696 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1697
5d971d48
PA
16982020-06-18 Pedro Alves <palves@redhat.com>
1699
1700 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1701 it, instead of writing to inferior_ptid.
1702
86e57d1b
PA
17032020-06-18 Pedro Alves <palves@redhat.com>
1704
1705 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1706 to inferior_ptid.
1707
f2e1c129
PA
17082020-06-18 Pedro Alves <palves@redhat.com>
1709
1710 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1711 instead of writing to inferior_ptid directly.
1712
60db1b85
PA
17132020-06-18 Pedro Alves <palves@redhat.com>
1714
1715 * corelow.c (core_target::close): Use switch_to_no_thread instead
1716 of writing to inferior_ptid directly.
1717 (add_to_thread_list, core_target_open): Use switch_to_thread
1718 instead of writing to inferior_ptid directly.
1719
fe7d6a8d
PA
17202020-06-18 Pedro Alves <palves@redhat.com>
1721
1722 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1723 inferior_ptid.
1724 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1725 inferior_ptid.
1726 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1727 inferior_ptid directly.
1728 (darwin_nat_target::init_thread_list): Switch to thread, instead
1729 of writing to inferior_ptid.
1730 (darwin_nat_target::attach): Don't write to inferior_ptid.
1731 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1732
975f8708
PA
17332020-06-18 Pedro Alves <palves@redhat.com>
1734
1735 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1736 thread.
1737 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1738 Instead use switch_to_thread.
1739 (gnu_nat_target::detach): Use switch_to_no_thread
1740 instead of writing to inferior_ptid directly. Used passed-in
1741 inferior instead of looking up the inferior by pid.
1742
1a204730
PA
17432020-06-18 Pedro Alves <palves@redhat.com>
1744
1745 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1746 inferior_ptid.
1747
ebe84f23
PA
17482020-06-18 Pedro Alves <palves@redhat.com>
1749
1750 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1751 inferior_ptid.
1752 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1753 thread.
1754 (nto_procfs_target::detach): Avoid referencing
1755 inferior_ptid. Use switch_to_no_thread instead of writing to
1756 inferior_ptid directly.
1757 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1758 instead of writing to inferior_ptid directly.
1759 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1760 to thread.
1761
191f02e5
PA
17622020-06-18 Pedro Alves <palves@redhat.com>
1763
1764 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1765 after creating it, instead of writing to inferior_ptid.
1766 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1767 to inferior_ptid directly.
1768 (gdbsim_target::wait): Don't write to inferior_ptid.
1769
0ac55310
PA
17702020-06-18 Pedro Alves <palves@redhat.com>
1771
1772 * remote.c (remote_target::remote_notice_new_inferior): Use
1773 switch_to_thread instead of writing to inferior_ptid directly.
1774 (remote_target::add_current_inferior_and_thread): Use
1775 switch_to_no_thread instead of writing to inferior_ptid directly.
1776 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1777 and switch_to_thread instead of using set_current_inferior or
1778 writing to inferior_ptid directly.
1779
5233f39b
PA
17802020-06-18 Pedro Alves <palves@redhat.com>
1781
1782 * tracectf.c (ctf_target_open): Switch to added thread instead of
1783 writing to inferior_ptid directly.
1784 (ctf_target::close): Use switch_to_no_thread instead of writing to
1785 inferior_ptid directly.
1786
087e161b
PA
17872020-06-18 Pedro Alves <palves@redhat.com>
1788
1789 * tracefile-tfile.c (tfile_target_open): Don't write to
1790 inferior_ptid directly, instead switch to added thread.
1791 (tfile_target::close): Use switch_to_no_thread instead of writing
1792 to inferior_ptid directly.
1793
7fb43e53
PA
17942020-06-18 Pedro Alves <palves@redhat.com>
1795
1796 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1797 (procfs_target::detach): Use switch_to_no_thread
1798 instead of writing to inferior_ptid directly.
1799 (do_attach): Change return type to void. Switch to the added
1800 thread.
1801 (procfs_target::create_inferior): Switch to the added thread.
1802 (procfs_do_thread_registers): Don't write to inferior_ptid.
1803
18493a00
PA
18042020-06-18 Pedro Alves <palves@redhat.com>
1805
1806 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1807 of writing to inferior_ptid.
1808 (scoped_restore_exited_inferior): Delete.
1809 (handle_vfork_child_exec_or_exit): Simplify using
1810 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1811 instead of writing to inferior_ptid.
1812 (THREAD_STOPPED_BY): Delete.
1813 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1814 (thread_stopped_by_hw_breakpoint): Delete.
1815 (save_waitstatus): Use
1816 scoped_restore_current_thread+switch_to_thread, and call
1817 target_stopped_by_watchpoint instead of
1818 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1819 instead of thread_stopped_by_sw_breakpoint, and
1820 target_stopped_by_hw_breakpoint instead of
1821 thread_stopped_by_hw_breakpoint.
1822 (handle_inferior_event)
1823 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1824 inferior_ptid directly, nor
1825 set_current_inferior/set_current_program_space. Use
1826 switch_to_thread / switch_to_inferior_no_thread instead.
1827
a0776b13
PA
18282020-06-18 Pedro Alves <palves@redhat.com>
1829
1830 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1831 instead of writing to inferior_ptid.
1832
6155c136
PA
18332020-06-18 Pedro Alves <palves@redhat.com>
1834
1835 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1836 added thread.
1837 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1838 to the added thread.
1839 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1840 instead of writing to inferior_ptid.
1841
c5316fc6
PA
18422020-06-18 Pedro Alves <palves@redhat.com>
1843
1844 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1845 (register_to_value_test): Mock a program_space too. Heap-allocate
1846 the address space. Don't write to inferior_ptid. Use
1847 switch_to_thread instead.
1848
8df01799
PA
18492020-06-18 Pedro Alves <palves@redhat.com>
1850
1851 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1852 Delete.
1853 (find_signalled_thread()): New, factored out from
1854 linux_make_corefile_notes and adjusted to handle exited threads.
1855 (linux_make_corefile_notes): Adjust to use the new
1856 find_signalled_thread.
1857
41792d68
PA
18582020-06-18 Pedro Alves <palves@redhat.com>
1859
1860 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1861 of saving/restoring inferior_ptid.
1862
612f258a
TT
18632020-06-17 Tom Tromey <tom@tromey.com>
1864
1865 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1866 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1867 declare.
1868 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1869
efb763a5
SM
18702020-06-15 Simon Marchi <simon.marchi@efficios.com>
1871
1872 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1873 of partial symtabs.
1874
2951f6c0
SM
18752020-06-17 Simon Marchi <simon.marchi@efficios.com>
1876
1877 * regformats/reg-arm.dat: Remove.
1878 * regformats/reg-bfin.dat: Remove.
1879 * regformats/reg-cris.dat: Remove.
1880 * regformats/reg-crisv32.dat: Remove.
1881 * regformats/reg-m32r.dat: Remove.
1882 * regformats/reg-tilegx.dat: Remove.
1883 * regformats/reg-tilegx32.dat: Remove.
1884
7d458ea5
SM
18852020-06-17 Simon Marchi <simon.marchi@efficios.com>
1886
1887 * features/Makefile (WHICH): Remove arm files.
1888 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1889 * regformats/arm/arm-with-neon.dat: Remove.
1890 * regformats/arm/arm-with-vfpv2.dat: Remove.
1891 * regformats/arm/arm-with-vfpv3.dat: Remove.
1892
3af96c0d
SM
18932020-06-17 Simon Marchi <simon.marchi@efficios.com>
1894
1895 * features/Makefile (XMLTOC): Remove rx.xml.
1896
b25e22fd
PA
18972020-06-17 Pedro Alves <palves@redhat.com>
1898
1899 * gdbthread.h (thread_control_state) <trap_expected> Update
1900 comments.
1901
a78a19b1
AB
19022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1905 ada_language::lookup_symbol_nonlocal.
1906 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1907 (ada_language::lookup_symbol_nonlocal): New member function,
1908 implementation from ada_lookup_symbol_nonlocal.
1909 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1910 initializer.
1911 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1912 initializer.
1913 (cplus_language::lookup_symbol_nonlocal): New member function.
1914 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1915 (minimal_language_data) Likewise.
1916 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1917 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1918 initializer.
1919 (d_language::lookup_symbol_nonlocal): New member function.
1920 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1921 initializer.
1922 (f_language::lookup_symbol_nonlocal): New member function.
1923 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1924 initializer.
1925 * language.c (unknown_language_data): Likewise.
1926 (auto_language_data): Likewise.
1927 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1928 field.
1929 (language_defn::lookup_symbol_nonlocal): New member function.
1930 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1931 initializer.
1932 * objc-lang.c (objc_language_data): Likewise.
1933 * opencl-lang.c (opencl_language_data): Likewise.
1934 * p-lang.c (pascal_language_data): Likewise.
1935 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1936 rust_language::lookup_symbol_nonlocal.
1937 (rust_language_data): Delete la_lookup_symbol_nonlocal
1938 initializer.
1939 (rust_language::lookup_symbol_nonlocal): New member function,
1940 implementation from rust_lookup_symbol_nonlocal.
1941 * symtab.c (lookup_symbol_aux): Update call to
1942 lookup_symbol_nonlocal.
1943 (basic_lookup_symbol_nonlocal): Rename to...
1944 (language_defn::lookup_symbol_nonlocal): ...this, and update
1945 header comment. Remove language_defn parameter, and replace with
1946 uses of `this'.
1947 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1948
ebe2334e
AB
19492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1950
1951 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1952 initializer.
1953 (ada_language::value_print_inner): New member function.
1954 * c-lang.c (c_language_data): Delete la_value_print_inner
1955 initializer.
1956 (cplus_language_data): Likewise.
1957 (asm_language_data): Likewise.
1958 (minimal_language_data): Likewise.
1959 * d-lang.c (d_language_data): Likewise.
1960 (d_language::value_print_inner): New member function.
1961 * f-lang.c (f_language_data): Delete la_value_print_inner
1962 initializer.
1963 (f_language::value_print_inner): New member function.
1964 * f-lang.h (f_value_print_innner): Rename to...
1965 (f_value_print_inner): ...this (note spelling of 'inner').
1966 * f-valprint.c (f_value_print_innner): Rename to...
1967 (f_value_print_inner): ...this (note spelling of 'inner').
1968 * go-lang.c (go_language_data): Delete la_value_print_inner
1969 initializer.
1970 (go_language::value_print_inner): New member function.
1971 * language.c (language_defn::value_print_inner): Define new member
1972 function.
1973 (unk_lang_value_print_inner): Delete.
1974 (unknown_language_data): Delete la_value_print_inner initializer.
1975 (unknown_language::value_print_inner): New member function.
1976 (auto_language_data): Delete la_value_print_inner initializer.
1977 (auto_language::value_print_inner): New member function.
1978 * language.h (language_data): Delete la_value_print_inner field.
1979 (language_defn::value_print_inner): Delcare new member function.
1980 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1981 initializer.
1982 (m2_language::value_print_inner): New member function.
1983 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1984 initializer.
1985 * opencl-lang.c (opencl_language_data): Likewise.
1986 * p-lang.c (pascal_language_data): Likewise.
1987 (pascal_language::value_print_inner): New member function.
1988 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1989 initializer.
1990 (rust_language::value_print_inner): New member function.
1991 * valprint.c (do_val_print): Update call to value_print_inner.
1992
a1d1fa3e
AB
19932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * ada-lang.c (ada_language_data): Delete la_value_print
1996 initializer.
1997 (ada_language::value_print): New member function.
1998 * c-lang.c (c_language_data): Delete la_value_print initializer.
1999 (cplus_language_data): Likewise.
2000 (asm_language_data): Likewise.
2001 (minimal_language_data): Likewise.
2002 * d-lang.c (d_language_data): Likewise.
2003 * f-lang.c (f_language_data): Likewise.
2004 * go-lang.c (go_language_data): Likewise.
2005 * language.c (unk_lang_value_print): Delete.
2006 (language_defn::value_print): Define new member function.
2007 (unknown_language_data): Delete la_value_print initializer.
2008 (unknown_language::value_print): New member function.
2009 (auto_language_data): Delete la_value_print initializer.
2010 (auto_language::value_print): New member function.
2011 * language.h (language_data): Delete la_value_print field.
2012 (language_defn::value_print): Declare new member function.
2013 (LA_VALUE_PRINT): Update call to value_print.
2014 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2015 * objc-lang.c (objc_language_data): Likewise.
2016 * opencl-lang.c (opencl_language_data): Likewise.
2017 * p-lang.c (pascal_language_data): Likewise.
2018 (pascal_language::value_print): New member function.
2019 * rust-lang.c (rust_language_data): Delete la_value_print
2020 initializer.
2021
f16a9f57
AB
20222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2023
2024 * ada-lang.c (ada_watch_location_expression): Rename to
2025 ada_language::watch_location_expression.
2026 (ada_language_data): Delete la_watch_location_expression
2027 initializer.
2028 (ada_language::watch_location_expression): New member function,
2029 implementation from ada_watch_location_expression.
2030 * breakpoint.c (watch_command_1): Update call to
2031 watch_location_expression.
2032 * c-lang.c (c_watch_location_expression): Rename to
2033 language_defn::watch_location_expression.
2034 (c_language_data): Delete la_watch_location_expression
2035 initializer.
2036 (cplus_language_data): Likewise.
2037 (asm_language_data): Likewise.
2038 (minimal_language_data): Likewise.
2039 * c-lang.h (c_watch_location_expression): Delete declaration.
2040 * d-lang.c (d_language_data): Delete la_watch_location_expression
2041 initializer.
2042 * f-lang.c (f_language_data): Likewise.
2043 * go-lang.c (go_language_data): Likewise.
2044 * language.c (language_defn::watch_location_expression): Member
2045 function implementation from c_watch_location_expression.
2046 (unknown_language_data): Delete la_watch_location_expression
2047 initializer.
2048 (auto_language_data): Likewise.
2049 * language.h (language_data): Delete la_watch_location_expression
2050 field.
2051 (language_defn::watch_location_expression): Declare new member
2052 function.
2053 * m2-lang.c (m2_language_data): Delete
2054 la_watch_location_expression initializer.
2055 * objc-lang.c (objc_language_data): Likewise.
2056 * opencl-lang.c (opencl_language_data): Likewise.
2057 * p-lang.c (pascal_language_data): Likewise.
2058 * rust-lang.c (rust_watch_location_expression): Rename to
2059 rust_language::watch_location_expression.
2060 (rust_language_data): Delete la_watch_location_expression
2061 initializer.
2062 (rust_language::watch_location_expression): New member function,
2063 implementation from rust_watch_location_expression.
2064
7e56227d
AB
20652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2066
2067 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2068 ada_language::collect_symbol_completion_matches.
2069 (ada_language_data): Delete la_collect_symbol_completion_matches
2070 initializer.
2071 (ada_language::collect_symbol_completion_matches): New member
2072 function, implementation from
2073 ada_collect_symbol_completion_matches.
2074 * c-lang.c (c_language_data): Delete
2075 la_collect_symbol_completion_matches initializer.
2076 (cplus_language_data): Likewise.
2077 (asm_language_data): Likewise.
2078 (minimal_language_data): Likewise.
2079 * d-lang.c (d_language_data): Likewise.
2080 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2081 f_language::collect_symbol_completion_matches.
2082 (f_language_data): Delete la_collect_symbol_completion_matches
2083 initializer.
2084 (f_language::collect_symbol_completion_matches) New member
2085 function, implementation from f_collect_symbol_completion_matches.
2086 * go-lang.c (go_language_data): Delete
2087 la_collect_symbol_completion_matches initializer.
2088 * language.c (unknown_language_data): Likewise.
2089 (auto_language_data): Likewise.
2090 * language.h (language_data): Delete
2091 la_collect_symbol_completion_matches field.
2092 (language_defn::collect_symbol_completion_matches): New member
2093 function.
2094 * m2-lang.c (m2_language_data): Delete
2095 la_collect_symbol_completion_matches initializer.
2096 * objc-lang.c (objc_language_data): Likewise.
2097 * opencl-lang.c (opencl_language_data): Likewise.
2098 * p-lang.c (pascal_language_data): Likewise.
2099 * rust-lang.c (rust_language_data): Likewise.
2100 * symtab.c (default_collect_symbol_completion_matches): Delete.
2101 (collect_symbol_completion_matches): Update call to
2102 collect_symbol_completion_matches.
2103 (collect_symbol_completion_matches_type): Likewise.
2104 * symtab.h (default_collect_symbol_completion_matches): Delete
2105 declaration.
2106
53fc67f8
AB
21072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2110 (ada_language_data): Delete la_word_break_characters initializer.
2111 (ada_language::word_break_characters): New member function.
2112 * c-lang.c (c_language_data): Delete la_word_break_characters
2113 initializer.
2114 (cplus_language_data): Likewise.
2115 (asm_language_data): Likewise.
2116 (minimal_language_data): Likewise.
2117 * completer.c: Update global comment.
2118 (advance_to_expression_complete_word_point): Update call to
2119 word_break_characters.
2120 (complete_files_symbols): Likewise.
2121 (complete_line_internal_1): Likewise.
2122 (default_completer_handle_brkchars): Likewise.
2123 (skip_quoted_chars): Likewise.
2124 * d-lang.c (d_language_data): Delete la_word_break_characters
2125 initializer.
2126 * f-lang.c (f_word_break_characters): Delete.
2127 (f_language_data): Delete la_word_break_characters initializer.
2128 (f_language::word_break_characters): New member function.
2129 * go-lang.c (go_language_data): Delete la_word_break_characters
2130 initializer.
2131 * language.c (unknown_language_data): Likewise.
2132 (auto_language_data): Likewise.
2133 * language.h (default_word_break_characters): Move declaration to
2134 earlier in the file.
2135 (language_data): Delete la_word_break_characters field.
2136 (language_defn::word_break_characters): New member function.
2137 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2138 initializer.
2139 * objc-lang.c (objc_language_data): Likewise.
2140 * opencl-lang.c (opencl_language_data): Likewise.
2141 * p-lang.c (pascal_language_data): Likewise.
2142 * rust-lang.c (rust_language_data): Likewise.
2143
c9debfb9
AB
21442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2147 (ada_language_data): Delete la_get_symbol_name_matcher
2148 initializer.
2149 (language_defn::get_symbol_name_matcher_inner): New member
2150 function.
2151 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2152 initializer.
2153 (cplus_language_data): Likewise.
2154 (cplus_language::get_symbol_name_matcher_inner): New member
2155 function.
2156 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2157 (minimal_language_data): Likewise.
2158 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2159 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2160 initializer.
2161 * dictionary.c (iter_match_first_hashed): Update call to
2162 get_symbol_name_matcher.
2163 (iter_match_next_hashed): Likewise.
2164 (iter_match_next_linear): Likewise.
2165 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2166 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2167 initializer.
2168 (f_language::get_symbol_name_matcher_inner): New member function.
2169 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2170 initializer.
2171 * language.c (default_symbol_name_matcher): Update header comment,
2172 make static.
2173 (language_defn::get_symbol_name_matcher): New definition.
2174 (language_defn::get_symbol_name_matcher_inner): Likewise.
2175 (get_symbol_name_matcher): Delete.
2176 (unknown_language_data): Delete la_get_symbol_name_matcher
2177 initializer.
2178 (auto_language_data): Likewise.
2179 * language.h (language_data): Delete la_get_symbol_name_matcher
2180 field.
2181 (language_defn::get_symbol_name_matcher): New member function.
2182 (language_defn::get_symbol_name_matcher_inner): Likewise.
2183 (default_symbol_name_matcher): Delete declaration.
2184 * linespec.c (find_methods): Update call to
2185 get_symbol_name_matcher.
2186 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2187 initializer.
2188 * minsyms.c (lookup_minimal_symbol): Update call to
2189 get_symbol_name_matcher.
2190 (iterate_over_minimal_symbols): Likewise.
2191 * objc-lang.c (objc_language_data): Delete
2192 la_get_symbol_name_matcher initializer.
2193 * opencl-lang.c (opencl_language_data): Likewise.
2194 * p-lang.c (pascal_language_data): Likewise.
2195 * psymtab.c (psymbol_name_matches): Update call to
2196 get_symbol_name_matcher.
2197 * rust-lang.c (rust_language_data): Delete
2198 la_get_symbol_name_matcher initializer.
2199 * symtab.c (symbol_matches_search_name): Update call to
2200 get_symbol_name_matcher.
2201 (compare_symbol_name): Likewise.
2202
9a49ad8c
AB
22032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2204
2205 * ada-lang.c (ada_language_data): Delete la_compute_program
2206 initializer.
2207 * c-lang.c (c_language_data): Likewise.
2208 (c_language::compute_program): New member function.
2209 (cplus_language_data): Delete la_compute_program initializer.
2210 (cplus_language::compute_program): New member function.
2211 (asm_language_data): Delete la_compute_program initializer.
2212 (minimal_language_data): Likewise.
2213 * c-lang.h (c_compute_program): Update comment.
2214 (cplus_compute_program): Likewise.
2215 * compile/compile-c-support.c (c_compute_program): Likewise.
2216 (cplus_compute_program): Likewise.
2217 * compile/compile.c (compile_to_object): Update call to
2218 la_compute_program.
2219 * d-lang.c (d_language_data): Delete la_compute_program
2220 initializer.
2221 * f-lang.c (f_language_data): Likewise.
2222 * go-lang.c (go_language_data): Likewise.
2223 * language.c (unknown_language_data): Likewise.
2224 (auto_language_data): Likewise.
2225 * language.h (language_data): Delete la_compute_program field.
2226 (language_defn::compute_program): New member function.
2227 * m2-lang.c (m2_language_data): Delete la_compute_program
2228 initializer.
2229 * objc-lang.c (objc_language_data): Likewise.
2230 * opencl-lang.c (opencl_language_data): Likewise.
2231 * p-lang.c (pascal_language_data): Likewise.
2232 * rust-lang.c (rust_language_data): Likewise.
2233
eff93b4d
AB
22342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2235
2236 * ada-lang.c (ada_language_data) Delete
2237 la_class_name_from_physname initializer.
2238 * c-lang.c (c_language_data): Likewise.
2239 (cplus_language_data): Likewise.
2240 (cplus_language::class_name_from_physname): New member function.
2241 (asm_language_data): Delete la_class_name_from_physname
2242 initializer.
2243 (minimal_language_data): Likewise.
2244 * d-lang.c (d_language_data): Likewise.
2245 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2246 method on language_defn class.
2247 (guess_full_die_structure_name): Likewise.
2248 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2249 initializer.
2250 * go-lang.c (go_language_data): Likewise.
2251 * language.c (language_class_name_from_physname): Delete.
2252 (unk_lang_class_name): Delete.
2253 (unknown_language_data): Delete la_class_name_from_physname
2254 initializer.
2255 (auto_language_data): Likewise.
2256 * language.h (language_data): Delete la_class_name_from_physname
2257 field.
2258 (language_defn::class_name_from_physname): New function.
2259 (language_class_name_from_physname): Delete declaration.
2260 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2261 initializer.
2262 * objc-lang.c (objc_language_data): Likewise.
2263 * opencl-lang.c (opencl_language_data): Likewise.
2264 * p-lang.c (pascal_language_data): Likewise.
2265 * rust-lang.c (rust_language_data): Likewise.
2266
de543742
TT
22672020-06-16 Tom Tromey <tom@tromey.com>
2268
2269 * tui/tui-data.h (STATUS_NAME): New macro.
2270 * tui/tui-layout.c (tui_remove_some_windows)
2271 (initialize_known_windows, tui_register_window)
2272 (tui_layout_split::remove_windows, initialize_layouts)
2273 (tui_new_layout_command): Don't use hard-coded window names.
2274
a350efd4
TT
22752020-06-16 Tom Tromey <tom@tromey.com>
2276
2277 PR tui/25348:
2278 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2279 tui_initialize_readline. Only run once. Call rl_initialize.
2280 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2281 tui_initialize_readline.
2282 * tui/tui-io.c (tui_setup_io): Call
2283 tui_ensure_readline_initialized.
2284 * tui/tui-interp.c (tui_interp::init): Update.
2285
39ec0490
TT
22862020-06-16 Tom Tromey <tom@tromey.com>
2287
2288 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2289 Also preserve the status window.
2290
d2d1ea20
TT
22912020-06-16 Tom Tromey <tom@tromey.com>
2292
2293 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2294 where m_window==nullptr.
2295
66920317
TT
22962020-06-15 Tom Tromey <tromey@adacore.com>
2297
2298 * windows-nat.c (windows_nat::handle_output_debug_string):
2299 Update.
2300 (windows_nat::handle_ms_vc_exception): Update.
2301 * target.h (target_read_string): Change API.
2302 * target.c (target_read_string): Change API.
2303 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2304 Update.
2305 * solib-frv.c (frv_current_sos): Update.
2306 * solib-dsbt.c (dsbt_current_sos): Update.
2307 * solib-darwin.c (darwin_current_sos): Update.
2308 * linux-thread-db.c (inferior_has_bug): Update.
2309 * expprint.c (print_subexp_standard): Update.
2310 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2311 (ada_exception_message_1): Update.
2312
a5d871dd
TT
23132020-06-15 Tom Tromey <tromey@adacore.com>
2314
2315 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2316
670e35fa
TT
23172020-06-15 Tom Tromey <tromey@adacore.com>
2318
2319 * valprint.c (read_string): Update comment.
2320 * target.c (MIN): Remove.
2321 (target_read_string): Rewrite.
2322
f5272a3b
TT
23232020-06-15 Tom Tromey <tromey@adacore.com>
2324
2325 * corefile.c (read_memory_string): Remove.
2326 * ada-valprint.c (ada_value_print_ptr): Update.
2327 * ada-lang.h (ada_tag_name): Change return type.
2328 * ada-lang.c (type_from_tag): Update.
2329 (ada_tag_name_from_tsd): Change return type. Use
2330 target_read_string.
2331 (ada_tag_name): Likewise.
2332 * gdbcore.h (read_memory_string): Don't declare.
2333
2c074f49
HD
23342020-06-14 Hannes Domani <ssbssa@yahoo.de>
2335
2336 * symtab.c (rbreak_command): Ignore Windows drive colon.
2337
6a17d503
SM
23382020-06-12 Simon Marchi <simon.marchi@efficios.com>
2339
2340 * NEWS: Mention removed GDBserver host support.
2341
453c733f
NC
23422020-06-12 Nelson Chu <nelson.chu@sifive.com>
2343
2344 * features/riscv/rebuild-csr-xml.sh: Updated.
2345
2b4e6a3f
TT
23462020-06-11 Tom Tromey <tom@tromey.com>
2347
2348 PR gdb/18318:
2349 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2350
4412332f
JG
23512020-06-09 Jonny Grant <jg@jguk.org>
23522020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2353
2354 * main.c (captured_main_1): Don't print new line after help.
2355 (print_gdb_help): add mailing list and IRC channel information
2356 to --help. Add new lines between items in the footer. Remove
2357 quotes around bug url.
2358
2f33032a
KS
23592020-06-11 Keith Seitz <keiths@redhat.com>
2360
2361 PR gdb/21356
2362 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2363 Resolve typedefs for type length calculations.
2364
7ab96794
TV
23652020-06-10 Tom de Vries <tdevries@suse.de>
2366
2367 PR ada/24713
2368 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2369 (write_psymbols): Enable .gdb_index for ada.
2370 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2371 ada.
2372
e5f3ece2
TV
23732020-06-10 Tom de Vries <tdevries@suse.de>
2374
2375 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2376 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2377 namei" instead of "const char *name" argument.
2378 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2379 dw2_symtab_iter_init.
2380
940da03e
SM
23812020-06-08 Simon Marchi <simon.marchi@efficios.com>
2382
2383 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2384 to use type::field and field::type instead.
2385
b6cdac4b
SM
23862020-06-08 Simon Marchi <simon.marchi@efficios.com>
2387
2388 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2389 to use field::type instead.
2390
5d14b6e5
SM
23912020-06-08 Simon Marchi <simon.marchi@efficios.com>
2392
2393 * gdbtypes.h (struct field) <type, set_type>: New methods.
2394 Rename `type` field to...
2395 <m_type>: ... this. Change references throughout to use type or
2396 set_type methods.
2397 (FIELD_TYPE): Use field::type. Change call sites that modify
2398 the field's type to use field::set_type instead.
2399
3d967001
SM
24002020-06-08 Simon Marchi <simon.marchi@efficios.com>
2401
2402 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2403 to use type::index_type instead.
2404
262abc0d
SM
24052020-06-08 Simon Marchi <simon.marchi@efficios.com>
2406
2407 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2408 methods.
2409 (TYPE_INDEX_TYPE): Use type::index_type.
2410 * gdbtypes.c (create_array_type_with_stride): Likewise.
2411
82836c92
TT
24122020-06-07 Tom Tromey <tom@tromey.com>
2413
2414 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2415 parameter.
2416 (generic_value_print): Update.
2417
940dace9
AB
24182020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2419
2420 Revert commit 982a38f60b0.
2421 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2422
982a38f6
AB
24232020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2426 avoid use after free.
2427
82f06518
TV
24282020-06-05 Tom de Vries <tdevries@suse.de>
2429
2430 * NEWS: Fix typos.
2431
f8c41851
SM
24322020-06-04 Simon Marchi <simon.marchi@efficios.com>
2433
2434 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2435 the per_bfd object.
2436 (dwarf2_read_debug_names): Likewise.
2437 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2438 object when re-using a per_bfd object with an index.
2439
f9b5d5ea
TV
24402020-06-03 Tom de Vries <tdevries@suse.de>
2441
2442 PR symtab/26046
2443 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2444 children for C++.
2445 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2446 DW_TAG_subprogram.
2447
f6eee2d0
AB
24482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * ada-lang.c (ada_language_data): Delete skip_trampoline
2451 initializer.
2452 * c-lang.c (c_language_data): Likewise.
2453 (cplus_language_data): Likewise.
2454 (cplus_language::skip_trampoline): New member function.
2455 (asm_language_data): Delete skip_trampoline initializer.
2456 (minimal_language_data): Likewise.
2457 * d-lang.c (d_language_data): Likewise.
2458 * f-lang.c (f_language_data): Likewise.
2459 * go-lang.c (go_language_data): Likewise.
2460 * language.c (unk_lang_trampoline): Delete function.
2461 (skip_language_trampoline): Update.
2462 (unknown_language_data): Delete skip_trampoline initializer.
2463 (auto_language_data): Likewise.
2464 * language.h (language_data): Delete skip_trampoline field.
2465 (language_defn::skip_trampoline): New function.
2466 * m2-lang.c (m2_language_data): Delete skip_trampoline
2467 initializer.
2468 * objc-lang.c (objc_skip_trampoline): Delete function, move
2469 implementation to objc_language::skip_trampoline.
2470 (objc_language_data): Delete skip_trampoline initializer.
2471 (objc_language::skip_trampoline): New member function with
2472 implementation from objc_skip_trampoline.
2473 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2474 initializer.
2475 * p-lang.c (pascal_language_data): Likewise.
2476 * rust-lang.c (rust_language_data): Likewise.
2477
0a50df5d
AB
24782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2479
2480 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2481 (ada_language::demangle): New member function.
2482 * c-lang.c (c_language_data): Delete la_demangle initializer.
2483 (cplus_language_data): Delete la_demangle initializer.
2484 (cplus_language::demangle): New member function.
2485 (asm_language_data): Delete la_demangle initializer.
2486 (minimal_language_data): Delete la_demangle initializer.
2487 * d-lang.c (d_language_data): Delete la_demangle initializer.
2488 (d_language::demangle): New member function.
2489 * f-lang.c (f_language_data): Delete la_demangle initializer.
2490 (f_language::demangle): New member function.
2491 * go-lang.c (go_language_data): Delete la_demangle initializer.
2492 (go_language::demangle): New member function.
2493 * language.c (language_demangle): Update.
2494 (unk_lang_demangle): Delete.
2495 (unknown_language_data): Delete la_demangle initializer.
2496 (unknown_language::demangle): New member function.
2497 (auto_language_data): Delete la_demangle initializer.
2498 (auto_language::demangle): New member function.
2499 * language.h (language_data): Delete la_demangle field.
2500 (language_defn::demangle): New function.
2501 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2502 * objc-lang.c (objc_language_data): Delete la_demangle
2503 initializer.
2504 (objc_language::demangle): New member function.
2505 * opencl-lang.c (opencl_language_data): Delete la_demangle
2506 initializer.
2507 * p-lang.c (pascal_language_data): Likewise.
2508 * rust-lang.c (rust_language_data): Likewise.
2509 (rust_language::demangle): New member function.
2510
fbfb0a46
AB
25112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2512
2513 * ada-lang.c (ada_language_data): Delete la_print_type
2514 initializer.
2515 (ada_language::print_type): New member function.
2516 * c-lang.c (c_language_data): Delete la_print_type initializer.
2517 (c_language::print_type): New member function.
2518 (cplus_language_data): Delete la_print_type initializer.
2519 (cplus_language::print_type): New member function.
2520 (asm_language_data): Delete la_print_type initializer.
2521 (asm_language::print_type): New member function.
2522 (minimal_language_data): Delete la_print_type initializer.
2523 (minimal_language::print_type): New member function.
2524 * d-lang.c (d_language_data): Delete la_print_type initializer.
2525 (d_language::print_type): New member function.
2526 * f-lang.c (f_language_data): Delete la_print_type initializer.
2527 (f_language::print_type): New member function.
2528 * go-lang.c (go_language_data): Delete la_print_type initializer.
2529 (go_language::print_type): New member function.
2530 * language.c (unk_lang_print_type): Delete.
2531 (unknown_language_data): Delete la_print_type initializer.
2532 (unknown_language::print_type): New member function.
2533 (auto_language_data): Delete la_print_type initializer.
2534 (auto_language::print_type): New member function.
2535 * language.h (language_data): Delete la_print_type field.
2536 (language_defn::print_type): New function.
2537 (LA_PRINT_TYPE): Update.
2538 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2539 (m2_language::print_type): New member function.
2540 * objc-lang.c (objc_language_data): Delete la_print_type
2541 initializer.
2542 (objc_language::print_type): New member function.
2543 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2544 to opencl_language::print_type.
2545 (opencl_language_data): Delete la_print_type initializer.
2546 (opencl_language::print_type): New member function, implementation
2547 from opencl_print_type.
2548 * p-lang.c (pascal_language_data): Delete la_print_type
2549 initializer.
2550 (pascal_language::print_type): New member function.
2551 * rust-lang.c (rust_print_type): Delete, implementation moved to
2552 rust_language::print_type.
2553 (rust_language_data): Delete la_print_type initializer.
2554 (rust_language::print_type): New member function, implementation
2555 from rust_print_type.
2556
6f827019
AB
25572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2560 implementation moves to...
2561 (ada_language::sniff_from_mangled_name): ...here. Update return
2562 type.
2563 (ada_language_data): Delete la_sniff_from_mangled_name
2564 initializer.
2565 * c-lang.c (c_language_data): Likewise.
2566 (cplus_language_data): Likewise.
2567 (cplus_language::sniff_from_mangled_name): New member function,
2568 implementation taken from gdb_sniff_from_mangled_name.
2569 (asm_language_data): Delete la_sniff_from_mangled_name
2570 initializer.
2571 (minimal_language_data): Likewise.
2572 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2573 implementation moves to cplus_language::sniff_from_mangled_name.
2574 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2575 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2576 moves to...
2577 (d_language::sniff_from_mangled_name): ...here.
2578 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2579 * f-lang.c (f_language_data): Likewise.
2580 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2581 moves to...
2582 (go_language::sniff_from_mangled_name): ...here.
2583 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2584 * language.c (language_sniff_from_mangled_name): Delete.
2585 (unknown_language_data): Delete la_sniff_from_mangled_name
2586 initializer.
2587 (auto_language_data): Likewise.
2588 * language.h (language_data): Delete la_sniff_from_mangled_name
2589 field.
2590 (language_defn::sniff_from_mangled_name): New function.
2591 (language_sniff_from_mangled_name): Delete declaration.
2592 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2593 field.
2594 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2595 implementation moves to...
2596 (objc_language::sniff_from_mangled_name): ...here.
2597 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2598 * opencl-lang.c (opencl_language_data): Likewise.
2599 * p-lang.c (pascal_language_data): Likewise.
2600 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2601 implementation moves to...
2602 (rust_language::sniff_from_mangled_name): ...here.
2603 (rust_language_data): Delete la_sniff_from_mangled_name
2604 initializer.
2605 * symtab.c (symbol_find_demangled_name): Call
2606 sniff_from_mangled_name member function.
2607
fb8006fd
AB
26082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2609
2610 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2611 initializer.
2612 * c-lang.c (c_language_data): Likewise.
2613 (cplus_language_data): Likewise.
2614 (cplus_language::search_name_hash): New member function.
2615 (asm_language_data): Delete la_search_name_hash initializer.
2616 (minimal_language_data): Likewise.
2617 * d-lang.c (d_language_data): Likewise.
2618 * dictionary.c (default_search_name_hash): Rename to...
2619 (language_defn::search_name_hash): ...this.
2620 * f-lang.c (f_language_data): Likewise.
2621 (f_language::search_name_hash): New member function.
2622 * go-lang.c (go_language_data): Delete la_search_name_hash
2623 initializer.
2624 * language.c (unknown_language_data): Likewise.
2625 (auto_language_data): Likewise.
2626 * language.h (struct language_data): Delete la_search_name_hash
2627 field.
2628 (language_defn::search_name_hash): Declare new member function.
2629 (default_search_name_hash): Delete declaration.
2630 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2631 initializer.
2632 * objc-lang.c (objc_language_data): Likewise.
2633 * opencl-lang.c (opencl_language_data): Likewise.
2634 * p-lang.c (pascal_language_data): Likewise.
2635 * rust-lang.c (rust_language_data): Likewise.
2636 * symtab.c (search_name_hash): Update call.
2637
8e25bafe
AB
26382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2639
2640 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2641 initializer.
2642 * c-lang.c (class compile_instance): Declare.
2643 (c_language_data): Delete la_get_compile_instance initializer.
2644 (c_language::get_compile_instance): New member function.
2645 (cplus_language_data): Delete la_get_compile_instance initializer.
2646 (cplus_language::get_compile_instance): New member function.
2647 (asm_language_data): Delete la_get_compile_instance initializer.
2648 (minimal_language_data): Likewise.
2649 * c-lang.h (c_get_compile_context): Update comment.
2650 (cplus_get_compile_context): Update comment.
2651 * compile/compile.c (compile_to_object): Update calls, don't rely
2652 on function pointer being NULL.
2653 * d-lang.c (d_language_data): Delete la_get_compile_instance
2654 initializer.
2655 * f-lang.c (f_language_data): Likewise.
2656 * go-lang.c (go_language_data): Likewise.
2657 * language.c (unknown_language_data): Likewise.
2658 (auto_language_data): Likewise.
2659 * language.h (language_data): Delete la_get_compile_instance field.
2660 (language_defn::get_compile_instance): New member function.
2661 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2662 initializer.
2663 * objc-lang.c (objc_language_data): Likewise.
2664 * opencl-lang.c (opencl_language_data): Likewise.
2665 * p-lang.c (pascal_language_data): Likewise.
2666 * rust-lang.c (rust_language_data): Likewise.
2667
4009ee92
AB
26682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2669
2670 * ada-lang.c (ada_add_all_symbols): Update comment.
2671 (ada_iterate_over_symbols): Delete, move implementation to...
2672 (ada_language::iterate_over_symbols): ...here, a new member
2673 function, rewrite to use range based for loop.
2674 (ada_language_data): Delete la_iterate_over_symbols initializer.
2675 * c-lang.c (c_language_data): Likewise.
2676 (cplus_language_data): Likewise.
2677 (asm_language_data): Likewise.
2678 (minimal_language_data): Likewise.
2679 * d-lang.c (d_language_data): Likewise.
2680 * f-lang.c (f_language_data): Likewise.
2681 * go-lang.c (go_language_data): Likewise.
2682 * language.c (unknown_language_data): Likewise.
2683 (auto_language_data): Likewise.
2684 * language.h (language_data): Delete la_iterate_over_symbols field.
2685 (language_defn::iterate_over_symbols): New member function.
2686 (LA_ITERATE_OVER_SYMBOLS): Update.
2687 * linespec.c (iterate_over_all_matching_symtabs): Update.
2688 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2689 initializer.
2690 * objc-lang.c (objc_language_data): Likewise.
2691 * opencl-lang.c (opencl_language_data): Likewise.
2692 * p-lang.c (pascal_language_data): Likewise.
2693 * rust-lang.c (rust_language_data): Likewise.
2694
54f4ca46
AB
26952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2696
2697 * ada-lang.c (ada_language_data): Delete
2698 la_lookup_transparent_type initializer.
2699 * c-lang.c (c_language_data): Likewise.
2700 (cplus_language_data): Likewise.
2701 (cplus_language::lookup_transparent_type): New member function.
2702 (asm_language_data): Delete la_lookup_transparent_type
2703 initializer.
2704 (minimal_language_data): Likewise.
2705 * d-lang.c (d_language_data): Likewise.
2706 * f-lang.c (f_language_data): Likewise.
2707 * go-lang.c (go_language_data): Likewise.
2708 * language.c (unknown_language_data): Likewise.
2709 (auto_language_data): Likewise.
2710 * language.h (struct language_data): Delete
2711 la_lookup_transparent_type field.
2712 (language_defn::lookup_transparent_type): New member function.
2713 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2714 initializer.
2715 * objc-lang.c (objc_language_data): Likewise.
2716 * opencl-lang.c (opencl_language_data): Likewise.
2717 * p-lang.c (pascal_language_data): Likewise.
2718 * rust-lang.c (rust_language_data): Likewise.
2719 * symtab.c (symbol_matches_domain): Update call.
2720
1fb314aa
AB
27212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2722
2723 * ada-lang.c (ada_language_arch_info): Delete function, move
2724 implementation to...
2725 (ada_language::language_arch_info): ...here, a new member
2726 function.
2727 (ada_language_data): Delete la_language_arch_info.
2728 * c-lang.c (c_language_data): Likewise.
2729 (c_language::language_arch_info): New member function.
2730 (cplus_language_arch_info): Delete function, move
2731 implementation to...
2732 (cplus_language::language_arch_info): ...here, a new member
2733 function.
2734 (cplus_language_data): Delete la_language_arch_info.
2735 (asm_language_data): Likewise.
2736 (asm_language::language_arch_info): New member function.
2737 (minimal_language_data): Delete la_language_arch_info.
2738 (minimal_language::language_arch_info): New member function.
2739 * d-lang.c (d_language_arch_info): Delete function, move
2740 implementation to...
2741 (d_language::language_arch_info): ...here, a new member
2742 function.
2743 (d_language_data): Delete la_language_arch_info.
2744 * f-lang.c (f_language_arch_info): Delete function, move
2745 implementation to...
2746 (f_language::language_arch_info): ...here, a new member
2747 function.
2748 (f_language_data): Delete la_language_arch_info.
2749 * go-lang.c (go_language_arch_info): Delete function, move
2750 implementation to...
2751 (go_language::language_arch_info): ...here, a new member
2752 function.
2753 (go_language_data): Delete la_language_arch_info.
2754 * language.c (unknown_language_data): Likewise.
2755 (unknown_language::language_arch_info): New member function.
2756 (auto_language_data): Delete la_language_arch_info.
2757 (auto_language::language_arch_info): New member function.
2758 (language_gdbarch_post_init): Update call to
2759 la_language_arch_info.
2760 * language.h (language_data): Delete la_language_arch_info
2761 function pointer.
2762 (language_defn::language_arch_info): New function.
2763 * m2-lang.c (m2_language_arch_info): Delete function, move
2764 implementation to...
2765 (m2_language::language_arch_info): ...here, a new member
2766 function.
2767 (m2_language_data): Delete la_language_arch_info.
2768 * objc-lang.c (objc_language_arch_info): Delete function, move
2769 implementation to...
2770 (objc_language::language_arch_info): ...here, a new member
2771 function.
2772 (objc_language_data): Delete la_language_arch_info.
2773 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2774 implementation to...
2775 (opencl_language::language_arch_info): ...here, a new member
2776 function.
2777 (opencl_language_data): Delete la_language_arch_info.
2778 * p-lang.c (pascal_language_arch_info): Delete function, move
2779 implementation to...
2780 (pascal_language::language_arch_info): ...here, a new member
2781 function.
2782 (pascal_language_data): Delete la_language_arch_info.
2783 * rust-lang.c (rust_language_arch_info): Delete function, move
2784 implementation to...
2785 (rust_language::language_arch_info): ...here, a new member
2786 function.
2787 (rust_language_data): Delete la_language_arch_info.
2788
48448202
AB
27892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2790
2791 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2792 initializer.
2793 * c-lang.c (c_language_data): Likewise.
2794 (cplus_language_data): Likewise.
2795 (cplus_language::pass_by_reference_info): New method.
2796 (asm_language_data): Delete la_pass_by_reference initializer.
2797 (minimal_language_data): Likewise.
2798 * cp-abi.c (cp_pass_by_reference): Remove use of
2799 default_pass_by_reference.
2800 * d-lang.c (d_language_data): Likewise.
2801 * f-lang.c (f_language_data): Likewise.
2802 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2803 default_pass_by_reference.
2804 * go-lang.c (go_language_data): Likewise.
2805 * language.c (language_pass_by_reference): Update.
2806 (default_pass_by_reference): Delete.
2807 (unknown_language_data): Delete la_pass_by_reference
2808 initializer.
2809 (auto_language_data): Likewise.
2810 * language.h (struct language_data): Delete la_pass_by_reference
2811 field.
2812 (language_defn::pass_by_reference_info): New member function.
2813 (default_pass_by_reference): Delete declaration.
2814 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2815 initializer.
2816 * objc-lang.c (objc_language_data): Likewise.
2817 * opencl-lang.c (opencl_language_data): Likewise.
2818 * p-lang.c (pascal_language_data): Likewise.
2819 * rust-lang.c (rust_language_data): Likewise.
2820
15e5fd35
AB
28212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2822
2823 * ada-lang.c (ada_read_var_value): Delete function, move
2824 implementation to...
2825 (ada_language::read_var_value): ...here.
2826 (ada_language_data): Delete la_read_var_value initializer.
2827 * c-lang.c (c_language_data): Likewise.
2828 (cplus_language_data): Likewise.
2829 (minimal_language_data): Likewise.
2830 * d-lang.c (d_language_data): Likewise.
2831 * f-lang.c (f_language_data): Likewise.
2832 * findvar.c (default_read_var_value): Rename to...
2833 (language_defn::read_var_value): ...this.
2834 * findvar.c (read_var_value): Update header comment, and change to
2835 call member function instead of function pointer.
2836 * go-lang.c (go_language_data): Likewise.
2837 * language.c (unknown_language_data): Delete la_read_var_value
2838 initializer.
2839 (auto_language_data): Likewise.
2840 * language.h (struct language_data): Delete la_read_var_value
2841 field.
2842 (language_defn::read_var_value): New member function.
2843 (default_read_var_value): Delete declaration.
2844 * m2-lang.c (m2_language_data): Delete la_read_var_value
2845 initializer.
2846 * objc-lang.c (objc_language_data): Likewise.
2847 * opencl-lang.c (opencl_language_data): Likewise.
2848 * p-lang.c (pascal_language_data): Likewise.
2849 * rust-lang.c (rust_language_data): Likewise.
2850 * value.h (default_read_var_value): Delete declaration.
2851
5bd40f2a
AB
28522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2853
2854 * ada-lang.c (ada_print_array_index): Delete function, move
2855 implementation to...
2856 (ada_language::print_array_index): ...here.
2857 (ada_language_data): Delete la_print_array_index initializer.
2858 * c-lang.c (c_language_data): Likewise.
2859 (cplus_language_data): Likewise.
2860 (minimal_language_data): Likewise.
2861 * d-lang.c (d_language_data): Likewise.
2862 * f-lang.c (f_language_data): Likewise.
2863 * go-lang.c (go_language_data): Likewise.
2864 * language.c (default_print_array_index): Delete function, move
2865 implementation to...
2866 (language_defn::print_array_index): ...here.
2867 (unknown_language_data): Delete la_print_array_index initializer.
2868 (auto_language_data): Likewise.
2869 * language.h (struct language_data): Delete la_print_array_index
2870 field.
2871 (language_defn::print_array_index): New member function.
2872 (LA_PRINT_ARRAY_INDEX): Update.
2873 (default_print_array_index): Delete declaration.
2874 * m2-lang.c (m2_language_data): Delete la_print_array_index
2875 initializer.
2876 * objc-lang.c (objc_language_data): Likewise.
2877 * opencl-lang.c (opencl_language_data): Likewise.
2878 * p-lang.c (pascal_language_data): Likewise.
2879 * rust-lang.c (rust_language_data): Likewise.
2880
0874fd07
AB
28812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2882
2883 * gdb/ada-lang.c (ada_language_defn): Convert to...
2884 (ada_language_data): ...this.
2885 (class ada_language): New class.
2886 (ada_language_defn): New static global.
2887 * gdb/c-lang.c (c_language_defn): Convert to...
2888 (c_language_data): ...this.
2889 (class c_language): New class.
2890 (c_language_defn): New static global.
2891 (cplus_language_defn): Convert to...
2892 (cplus_language_data): ...this.
2893 (class cplus_language): New class.
2894 (cplus_language_defn): New static global.
2895 (asm_language_defn): Convert to...
2896 (asm_language_data): ...this.
2897 (class asm_language): New class.
2898 (asm_language_defn): New static global.
2899 (minimal_language_defn): Convert to...
2900 (minimal_language_data): ...this.
2901 (class minimal_language): New class.
2902 (minimal_language_defn): New static global.
2903 * gdb/d-lang.c (d_language_defn): Convert to...
2904 (d_language_data): ...this.
2905 (class d_language): New class.
2906 (d_language_defn): New static global.
2907 * gdb/f-lang.c (f_language_defn): Convert to...
2908 (f_language_data): ...this.
2909 (class f_language): New class.
2910 (f_language_defn): New static global.
2911 * gdb/go-lang.c (go_language_defn): Convert to...
2912 (go_language_data): ...this.
2913 (class go_language): New class.
2914 (go_language_defn): New static global.
2915 * gdb/language.c (unknown_language_defn): Remove declaration.
2916 (current_language): Initialize to nullptr, real initialization is
2917 moved to _initialize_language.
2918 (languages): Delete global.
2919 (language_defn::languages): Define.
2920 (set_language_command): Use language_defn::languages.
2921 (set_language): Likewise.
2922 (range_error): Likewise.
2923 (language_enum): Likewise.
2924 (language_def): Likewise.
2925 (add_set_language_command): Use language_def::languages for the
2926 language list, and language_def to lookup language pointers.
2927 (skip_language_trampoline): Use language_defn::languages.
2928 (unknown_language_defn): Convert to...
2929 (unknown_language_data): ...this.
2930 (class unknown_language): New class.
2931 (unknown_language_defn): New static global.
2932 (auto_language_defn): Convert to...
2933 (auto_language_data): ...this.
2934 (class auto_language): New class.
2935 (auto_language_defn): New static global.
2936 (language_gdbarch_post_init): Use language_defn::languages.
2937 (_initialize_language): Initialize current_language.
2938 * gdb/language.h (struct language_defn): Rename to...
2939 (struct language_data): ...this.
2940 (struct language_defn): New.
2941 (auto_language_defn): Delete.
2942 (unknown_language_defn): Delete.
2943 (minimal_language_defn): Delete.
2944 (ada_language_defn): Delete.
2945 (asm_language_defn): Delete.
2946 (c_language_defn): Delete.
2947 (cplus_language_defn): Delete.
2948 (d_language_defn): Delete.
2949 (f_language_defn): Delete.
2950 (go_language_defn): Delete.
2951 (m2_language_defn): Delete.
2952 (objc_language_defn): Delete.
2953 (opencl_language_defn): Delete.
2954 (pascal_language_defn): Delete.
2955 (rust_language_defn): Delete.
2956 * gdb/m2-lang.c (m2_language_defn): Convert to...
2957 (m2_language_data): ...this.
2958 (class m2_language): New class.
2959 (m2_language_defn): New static global.
2960 * gdb/objc-lang.c (objc_language_defn): Convert to...
2961 (objc_language_data): ...this.
2962 (class objc_language): New class.
2963 (objc_language_defn): New static global.
2964 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2965 (opencl_language_data): ...this.
2966 (class opencl_language): New class.
2967 (opencl_language_defn): New static global.
2968 * gdb/p-lang.c (pascal_language_defn): Convert to...
2969 (pascal_language_data): ...this.
2970 (class pascal_language): New class.
2971 (pascal_language_defn): New static global.
2972 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2973 language pointer, update comment format.
2974 * gdb/rust-lang.c (rust_language_defn): Convert to...
2975 (rust_language_data): ...this.
2976 (class rust_language): New class.
2977 (rust_language_defn): New static global.
2978
1313c56e
AB
29792020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2980
2981 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2982 member variable.
2983 <m_stmt_at_address>: New member variable.
2984 (lnp_state_machine::record_line): Don't record some lines, update
2985 tracking of is_stmt at the same address.
2986 (lnp_state_machine::lnp_state_machine): Initialise new member
2987 variables.
2988
b7ed9f3d
ST
29892020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2990
2991 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2992 "-include gnu-nat-mig.h".
2993 * gnu-nat-mig.h: New file.
2994 * gnu-nat.c: Include "gnu-nat-mig.h".
2995 (exc_server, msg_reply_server, notify_server,
2996 process_reply_server): Remove declarations.
2997
14a8ad62
ST
29982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2999
3000 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3001 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3002 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3003 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3004 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3005 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3006 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3007 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3008 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3009 to gnu_nat_target class.
3010 * gnu-nat.c: Likewise.
3011 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3012 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3013 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3014 object.
3015 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3016 instead of `gnu_target'.
3017
0af5e106
ST
30182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3019
3020 * i386-gnu-tdep.c: Include "gdbcore.h"
3021 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3022 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3023 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3024 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3025 i386_gnu_sigcontext_addr): New functions
3026 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3027 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3028 tdep.
3029
078f2fc9
ST
30302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3031
3032 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3033 before fork_inferior call. Avoid calling it if target_is_pushed returns
3034 true.
3035
53dff92c
ST
30362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3037
3038 * gnu-nat.h (gnu_target): New variable declaration.
3039 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3040 gnu_target.
3041 * gnu-nat.c (gnu_target): New variable.
3042 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3043 add_thread_silent, and add_thread calls.
3044 (gnu_nat_target::create_inferior): Pass gnu_target to
3045 add_thread_silent, thread_change_ptid call.
3046 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3047 call.
3048
5a8b8627
ST
30492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3050
3051 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3052 (gnu_nat_target::find_memory_regions): Remove unused
3053 `old_address' variable.
3054
366f550a
ST
30552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3056
3057 * gnu-nat.c: Include "gdbarch.h".
3058
f14871bf
ST
30592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3060
3061 * reply_mig_hack.awk (Error return): Cast function through
3062 void *, to bypass compiler function call check.
3063
c6887cfb
ST
30642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3065
3066 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3067 $(srcdir)/reply_mig_hack.awk.
3068
6930bffe
ST
30692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3070
3071 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3072
112c22ed
JG
30732020-05-30 Jonny Grant <jg@jguk.org>
3074
3075 * configure.ac (ACX_BUGURL): change bug URL to https.
3076
f68f85b5
PA
30772020-05-30 Pedro Alves <palves@redhat.com>
3078
3079 * cp-support.c (replace_typedefs_template): New.
3080 (replace_typedefs_qualified_name): Handle
3081 DEMANGLE_COMPONENT_TEMPLATE.
3082
976ca316
SM
30832020-05-29 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3086 dwarf2/index-cache.h, dwarf2/index-write.c,
3087 dwarf2/index-write.h, dwarf2/line-header.c,
3088 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3089 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3090 variables and fields from `dwarf2_per_objfile` to just
3091 `per_objfile` throughout.
3092
989ade05
SM
30932020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3094
3095 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3096 <push_dwarf_reg_entry_value>: Add comment.
3097
c47bae85
KB
30982020-05-28 Kevin Buettner <kevinb@redhat.com>
3099 Keith Seitz <keiths@redhat.com>
3100
3101 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3102 instead of PyEval_ReleaseLock.
3103 (class gdbpy_gil): Move to earlier in file.
3104 (finalize_python): Set gdb_python_initialized.
3105 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3106 when not initialized.
3107
44486dcf
SM
31082020-05-28 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3111 <push_dwarf_reg_entry_value>: Remove assert. Override
3112 per_objfile with caller_per_objfile.
3113
f030440d
TV
31142020-05-28 Tom de Vries <tdevries@suse.de>
3115
3116 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3117 PR gold/15646 workaround to symbol kind "type".
3118
f0fbb768
TT
31192020-05-27 Tom Tromey <tromey@adacore.com>
3120
3121 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3122
af0b2a3e
TT
31232020-05-27 Tom Tromey <tromey@adacore.com>
3124
3125 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3126 Use htab_find_with_hash.
3127 <add_abbrev>: Remove "abbrev_number" parameter.
3128 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3129 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3130 (hash_abbrev): Add comment.
3131 (abbrev_table::lookup_abbrev): Move to header file.
3132 (abbrev_table::read): Update.
3133
7d00ffec
TT
31342020-05-27 Tom Tromey <tromey@adacore.com>
3135
3136 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3137 method.
3138 <canonical_name>: New member.
3139 <raw_name>: Rename from "name".
3140 (partial_die_info): Initialize canonical_name.
3141 (scan_partial_symbols): Check raw_name.
3142 (partial_die_parent_scope, partial_die_full_name)
3143 (add_partial_symbol, add_partial_subprogram)
3144 (add_partial_enumeration, load_partial_dies): Use "name" method.
3145 (partial_die_info::name): New method.
3146 (partial_die_info::read, guess_partial_die_structure_name)
3147 (partial_die_info::fixup): Update.
3148
697bba18
TT
31492020-05-27 Tom Tromey <tromey@adacore.com>
3150
3151 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3152 <get_ref_die_offset>: Inline.
3153 <get_ref_die_offset_complaint>: New method.
3154 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3155 (attribute::get_ref_die_offset_complaint): Rename from
3156 get_ref_die_offset. Just issue complaint.
3157
c17ace43
HD
31582020-05-27 Hannes Domani <ssbssa@yahoo.de>
3159
3160 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3161
96445f0b
HD
31622020-05-27 Hannes Domani <ssbssa@yahoo.de>
3163
3164 * exec.c (exec_file_attach): Use errno value of first openp failure.
3165
ac637ec3
HD
31662020-05-27 Hannes Domani <ssbssa@yahoo.de>
3167
3168 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3169 Don't close thread handle.
3170
17ee85fc
TT
31712020-05-27 Tom Tromey <tom@tromey.com>
3172 Simon Marchi <simon.marchi@efficios.com>
3173
3174 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3175 shared_ptr.
3176 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3177 member.
3178 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3179 dwarf2_per_bfd_objfile_data_key>: New globals.
3180 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3181 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3182 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3183 shared.
3184 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3185 short-circuit when sharing.
3186 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3187 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3188
39b16f87
SM
31892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3190
3191 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3192 to...
3193 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3194 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3195
fcf23d5b
SM
31962020-05-27 Simon Marchi <simon.marchi@efficios.com>
3197
3198 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3199 build_name_components, find_name_components_bounds>:
3200 Add per_objfile parameter.
3201 (struct mapped_index) <symbol_name_at>: Likewise.
3202 (struct mapped_debug_names): Remove constructor.
3203 <dwarf2_per_objfile>: Remove field.
3204 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3205 (mapped_index_base::find_name_components_bounds,
3206 mapped_index_base::build_name_components,
3207 dw2_expand_symtabs_matching_symbol): Likewise.
3208 (class mock_mapped_index) <symbol_name_at>: Likewise.
3209 (check_match): Likewise.
3210 (check_find_bounds_finds): Likewise.
3211 (test_mapped_index_find_name_component_bounds): Update.
3212 (CHECK_MATCH): Update.
3213 (dw2_expand_symtabs_matching): Update.
3214 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3215 per_objfile parameter.
3216 <find_vec_in_debug_names>: Likewise.
3217 <m_per_objfile>: New field.
3218 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3219 parameter.
3220 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3221 (dw2_debug_names_iterator::next): Update.
3222 (dw2_debug_names_lookup_symbol): Update.
3223 (dw2_debug_names_expand_symtabs_for_function): Update.
3224 (dw2_debug_names_map_matching_symbols): Update.
3225 (dw2_debug_names_expand_symtabs_matching): Update.
3226 (dwarf2_read_debug_names): Update.
3227
7188ed02
SM
32282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3229
3230 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3231 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3232 move to dwarf2_per_objfile.
3233 <read_in_chain>: Remove.
3234 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3235 remove_all_cus, age_comp_units>: New methods.
3236 <m_dwarf2_cus>: New member.
3237 (struct dwarf2_per_cu_data) <cu>: Remove.
3238 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3239 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3240 moved to methods of dwarf2_per_objfile.
3241 (dwarf2_clear_marks): Remove.
3242 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3243 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3244 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3245 (dwarf2_per_objfile::remove_all_cus): New.
3246 (class free_cached_comp_units) <~free_cached_comp_units>:
3247 Update.
3248 (load_cu): Update.
3249 (dw2_do_instantiate_symtab): Adjust.
3250 (fill_in_sig_entry_from_dwo_entry): Adjust.
3251 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3252 (cutu_reader::cutu_reader): Likewise.
3253 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3254 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3255 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3256 and dwarf2_per_objfile::age_comp_units.
3257 (load_partial_comp_unit): Update.
3258 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3259 (process_queue): Likewise.
3260 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3261 backlink.
3262 (dwarf2_read_addr_index): Likewise.
3263 (follow_die_offset): Likewise.
3264 (dwarf2_fetch_die_loc_sect_off): Likewise.
3265 (dwarf2_fetch_constant_bytes): Likewise.
3266 (dwarf2_fetch_die_type_sect_off): Likewise.
3267 (follow_die_sig_1): Likewise.
3268 (load_full_type_unit): Likewise.
3269 (read_signatured_type): Likewise.
3270 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3271 (dwarf2_cu::~dwarf2_cu): Remove.
3272 (dwarf2_per_objfile::get_cu): New.
3273 (dwarf2_per_objfile::set_cu): New.
3274 (age_cached_comp_units): Rename to...
3275 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3276 to std::unordered_map.
3277 (free_one_cached_comp_unit): Rename to...
3278 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3279 to std::unordered_map.
3280 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3281 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3282 a dwarf2_per_objfile in data.
3283 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3284 (dwarf2_clear_marks): Remove.
3285
2e671100
SM
32862020-05-27 Simon Marchi <simon.marchi@efficios.com>
3287
3288 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3289 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3290 (init_tu_and_read_dwo_dies): Likewise.
3291 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3292 (cutu_reader::cutu_reader): Likewise.
3293 (load_partial_comp_unit): Likewise.
3294 (process_psymtab_comp_unit): Update.
3295 (build_type_psymtabs_1): Update.
3296 (process_skeletonless_type_unit): Update.
3297 (load_full_comp_unit): Update.
3298 (find_partial_die): Update.
3299 (dwarf2_read_addr_index): Update.
3300 (read_signatured_type): Update.
3301
2e6a9f79
SM
33022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3303
3304 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3305 m_header_read_in>: New fields.
3306 <get_header>: New method.
3307 * dwarf2/read.c (per_cu_header_read_in): Remove.
3308 (dwarf2_per_cu_data::get_header): New.
3309 (dwarf2_per_cu_data::addr_size): Update.
3310 (dwarf2_per_cu_data::offset_size): Update.
3311 (dwarf2_per_cu_data::ref_addr_size): Update.
3312
1b555f17
SM
33132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3314
3315 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3316 (dw2_do_instantiate_symtab): Update.
3317 (queue_and_load_all_dwo_tus): Change parameter from
3318 dwarf2_per_cu_data to dwarf2_cu.
3319 (dwarf2_fetch_die_loc_sect_off): Update.
3320 (dwarf2_fetch_constant_bytes): Update.
3321 (dwarf2_fetch_die_type_sect_off): Update.
3322
8fc0b21d
SM
33232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3324
3325 * dwarf2/read.c (process_full_comp_unit,
3326 process_full_type_unit): Remove per_cu, per_objfile paramters.
3327 Add dwarf2_cu parameter.
3328 (process_queue): Update.
3329
168c9250
SM
33302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3331
3332 * dwarf2/read.c (create_cu_from_index_list): Replace
3333 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3334 (create_cus_from_index_list): Likewise.
3335 (create_cus_from_index): Likewise.
3336 (create_signatured_type_table_from_index): Likewise.
3337 (create_cus_from_debug_names_list): Likewise.
3338 (create_cus_from_debug_names): Likewise.
3339 (dwarf2_read_gdb_index): Update.
3340 (dwarf2_read_debug_names): Update.
3341
e286671b
TT
33422020-05-27 Tom Tromey <tom@tromey.com>
3343 Simon Marchi <simon.marchi@efficios.com>
3344
3345 * dwarf2/read.h (struct dwarf2_per_objfile)
3346 <get_type_for_signatured_type, set_type_for_signatured_type>:
3347 New methods.
3348 <m_type_map>: New member.
3349 (struct signatured_type) <type>: Remove.
3350 * dwarf2/read.c
3351 (dwarf2_per_objfile::get_type_for_signatured_type,
3352 dwarf2_per_objfile::set_type_for_signatured_type): New.
3353 (get_signatured_type): Use new methods.
3354
8adb8487
TT
33552020-05-27 Tom Tromey <tom@tromey.com>
3356 Simon Marchi <simon.marchi@efficios.com>
3357
3358 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3359 (struct dwarf2_per_objfile) <type_units>: New member.
3360 <get_type_unit_group_unshareable>: New method.
3361 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3362 num_symtabs, symtabs>: Remove; move to
3363 type_unit_group_unshareable.
3364 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3365 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3366 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3367
127bbf4b
SM
33682020-05-27 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * dwarf2/read.h (struct dwarf2_per_cu_data):
3371 <dwarf2_per_objfile>: Remove.
3372 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3373 dwarf2_per_objfile.
3374 (create_signatured_type_table_from_index): Likewise.
3375 (create_signatured_type_table_from_debug_names): Likewise.
3376 (create_debug_type_hash_table): Likewise.
3377 (fill_in_sig_entry_from_dwo_entry): Likewise.
3378 (create_type_unit_group): Likewise.
3379 (read_comp_units_from_section): Likewise.
3380 (create_cus_hash_table): Likewise.
3381
f6e649dd
SM
33822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3385 dwarf2_per_cu_data::dwarf2_per_objfile.
3386 (compute_compunit_symtab_includes): Likewise.
3387 (dwarf2_cu::start_symtab): Likewise.
3388
aa66c379
SM
33892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3390
3391 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3392 parameter.
3393 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3394 (read_namespace_alias): Update.
3395 (lookup_die_type): Update.
3396 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3397 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3398 Update.
3399 (disassemble_dwarf_expression): Update.
3400
120ce1b5
SM
34012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3402
3403 * dwarf2/read.h (struct dwarf2_queue_item): Add
3404 dwarf2_per_objfile parameter, assign new parameter.
3405 <per_objfile>: New field.
3406 * dwarf2/read.c (free_one_cached_comp_unit): Add
3407 dwarf2_per_objfile parameter.
3408 (queue_comp_unit): Likewise.
3409 (dw2_do_instantiate_symtab): Update.
3410 (process_psymtab_comp_unit): Update.
3411 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3412 (process_imported_unit_die): Update.
3413 (queue_and_load_dwo_tu): Update.
3414 (follow_die_offset): Update.
3415 (follow_die_sig_1): Update.
3416
9f47c707
SM
34172020-05-27 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3420 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3421 (read_call_site_scope): Assign per_objfile.
3422 (dwarf2_per_cu_data::objfile): Remove.
3423 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3424 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3425 dwarf2_per_objfile parameter.
3426 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3427 dwarf2_per_objfile parameter.
3428 (dwarf_expr_reg_to_entry_parameter): Add output
3429 dwarf2_per_objfile parameter.
3430 (locexpr_get_frame_base): Update.
3431 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3432 <push_dwarf_reg_entry_value>: Update.
3433 <call_site_to_target_addr>: Update.
3434 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3435 parameter.
3436 (value_of_dwarf_reg_entry): Update.
3437 (rw_pieced_value): Update.
3438 (indirect_synthetic_pointer): Update.
3439 (dwarf2_evaluate_property): Update.
3440 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3441 parameter.
3442 (locexpr_read_variable): Update.
3443 (locexpr_get_symbol_read_needs): Update.
3444 (loclist_read_variable): Update.
3445
14095eb3
SM
34462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3447
3448 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3449 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3450 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3451 parameter.
3452 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3453 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3454 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3455 parameter.
3456 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3457 sect_variable_value): Add dwarf2_per_objfile parameter.
3458 (class dwarf_evaluate_loc_desc) <dwarf_call,
3459 dwarf_variable_value>: Update.
3460 (fetch_const_value_from_synthetic_pointer): Add
3461 dwarf2_per_objfile parameter.
3462 (fetch_const_value_from_synthetic_pointer): Update.
3463 (coerced_pieced_ref): Update.
3464 (class symbol_needs_eval_context) <dwarf_call,
3465 dwarf_variable_value>: Update.
3466 (dwarf2_compile_expr_to_ax): Update.
3467
3c3cd3d4
SM
34682020-05-27 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3471 parameter.
3472 (dwarf2_evaluate_loc_desc_full): Update.
3473
82ca3f51
SM
34742020-05-27 Simon Marchi <simon.marchi@efficios.com>
3475
3476 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3477 parameter.
3478 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3479 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3480 dwarf2_per_objfile parameter.
3481 (decode_debug_loc_dwo_addresses): Likewise.
3482 (dwarf2_find_location_expression): Update.
3483 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3484 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3485 parameter.
3486 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3487 parameter.
3488 (locexpr_describe_location_1): Likewise.
3489 (locexpr_describe_location): Update.
3490
4b167ea1
SM
34912020-05-27 Simon Marchi <simon.marchi@efficios.com>
3492
3493 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3494 Remove.
3495 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3496 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3497 (dwarf2_compile_property_to_c): Update.
3498 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3499 use text offset from objfile.
3500 (locexpr_tracepoint_var_ref): Update.
3501 (locexpr_generate_c_location): Update.
3502 (loclist_describe_location): Update.
3503 (loclist_tracepoint_var_ref): Update.
3504 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3505 dwarf2_per_objfile parameter.
3506 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3507 use text offset from objfile.
3508 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3509
89b07335
SM
35102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3511
3512 * dwarf2/expr.h (struct dwarf_expr_context)
3513 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3514 <offset>: Remove.
3515 <per_objfile>: New member.
3516 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3517 dwarf2_per_objfile parameter. Don't set offset, set
3518 per_objfile.
3519 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3520 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3521 a dwarf2_per_objfile object instead of an offset.
3522 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3523 constructor.
3524 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3525 to dwarf2_expr_executor constructor. Don't set offset.
3526 (dwarf2_fetch_cfa_info): Update.
3527 (struct dwarf2_frame_cache) <text_offset>: Remove.
3528 <per_objfile>: New field.
3529 (dwarf2_frame_cache): Update.
3530 (dwarf2_frame_prev_register): Update.
3531 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3532 <dwarf_evaluate_loc_desc>: Add constructor.
3533 (dwarf2_evaluate_loc_desc_full): Update.
3534 (dwarf2_locexpr_baton_eval): Update.
3535 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3536 Add constructor.
3537 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3538
293e7e51
SM
35392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3540
3541 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3542 addr_sized_int_type>: Move to dwarf2_cu.
3543 <int_type>: Move to dwarf2_per_objfile.
3544 (struct dwarf2_per_objfile) <int_type>: Move here.
3545 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3546 addr_sized_int_type>: Move here.
3547 (read_func_scope): Update.
3548 (read_array_type): Update.
3549 (read_tag_string_type): Update.
3550 (attr_to_dynamic_prop): Update.
3551 (dwarf2_per_cu_data::int_type): Rename to...
3552 (dwarf2_per_objfile::int_type): ... this.
3553 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3554 (dwarf2_cu::addr_sized_int_type): ... this.
3555 (read_subrange_type): Update.
3556 (dwarf2_per_cu_data::addr_type): Rename to...
3557 (dwarf2_cu::addr_type): ... this.
3558 (set_die_type): Update.
3559
64874a40
SM
35602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3561
3562 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3563 data through per_cu->cu.
3564
4ab09049
SM
35652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3566
3567 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3568 dwarf2_per_cu_data parameter fo dwarf2_cu.
3569 (lookup_dwo_type_unit): Likewise.
3570 (read_cutu_die_from_dwo): Likewise.
3571 (lookup_dwo_unit): Likewise.
3572 (open_and_init_dwo_file): Likewise.
3573 (lookup_dwo_cutu): Likewise.
3574 (lookup_dwo_comp_unit): Likewise.
3575 (lookup_dwo_type_unit): Likewise.
3576 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3577 (cutu_reader::cutu_reader): Update.
3578
47b14e86
SM
35792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3580
3581 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3582 parameter.
3583 (process_full_type_unit): Likewise.
3584 (process_queue): Update.
3585
43182c09
SM
35862020-05-27 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * dwarf2/read.c (recursively_compute_inclusions): Add
3589 dwarf2_per_objfile parameter.
3590 (compute_compunit_symtab_includes): Likewise.
3591 (process_cu_includes): Update.
3592
7aa104c4
SM
35932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3594
3595 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3596 parameter.
3597 (create_type_unit_group): Update.
3598 (process_psymtab_comp_unit_reader): Update.
3599 (build_type_psymtabs_reader): Update.
3600
e3beb21d
SM
36012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3602
3603 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3604 object through m_this_cu->cu.
3605
d460f660
SM
36062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3607
3608 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3609 the info parameter.
3610 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3611
ab432490
SM
36122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3613
3614 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3615 per_objfile parameter.
3616 (load_full_type_unit): Add per_objfile parameter.
3617 (read_signatured_type): Likewise.
3618 (load_full_comp_unit): Likewise.
3619 (load_cu): Likewise.
3620 (dw2_do_instantiate_symtab): Likewise.
3621 (dw2_get_file_names): Likewise.
3622 (dw2_map_symtabs_matching_filename): Update.
3623 (dw_expand_symtabs_matching_file_matcher): Update.
3624 (dw2_map_symbol_filenames): Update.
3625 (process_psymtab_comp_unit): Add per_objfile parameter.
3626 (build_type_psymtabs_1): Update.
3627 (process_skeletonless_type_unit): Update.
3628 (dwarf2_build_psymtabs_hard): Update.
3629 (load_partial_comp_unit): Add per_objfile parameter.
3630 (scan_partial_symbols): Update.
3631 (load_full_comp_unit): Add per_objfile parameter.
3632 (process_imported_unit_die): Update.
3633 (create_cus_hash_table): Update.
3634 (find_partial_die): Update.
3635 (dwarf2_read_addr_index): Update.
3636 (follow_die_offset): Update.
3637 (dwarf2_fetch_die_loc_sect_off): Update.
3638 (dwarf2_fetch_constant_bytes): Update.
3639 (dwarf2_fetch_die_type_sect_off): Update.
3640 (follow_die_sig_1): Update.
3641 (load_full_type_unit): Add per_objfile parameter.
3642 (read_signatured_type): Likewise.
3643
313bad1b
SM
36442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3647 of objfile_name.
3648
c3699833
SM
36492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3650
3651 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3652 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3653 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3654 field.
3655 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3656 (create_cus_from_index): Update.
3657 (dwarf2_read_gdb_index): Update.
3658 (create_cus_from_debug_names): Update.
3659 (dwarf2_read_debug_names): Update.
3660 (get_abbrev_section_for_cu): Update.
3661 (create_all_comp_units): Update.
3662 (read_attribute_value): Update.
3663 (get_debug_line_section): Update.
3664 * dwarf2/index-cache.c (index_cache::store): Update.
3665 * dwarf2/index-write.c (save_gdb_index_command): Update.
3666 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3667
1859c670
SM
36682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3669
3670 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3671 member.
3672 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3673 dwarf2_per_cu_data::per_bfd.
3674 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3675 (create_type_unit_group): Likewise.
3676 (queue_comp_unit): Remove reference to
3677 per_cu->dwarf2_per_objfile.
3678 (maybe_queue_comp_unit): Likewise.
3679 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3680 (create_cus_hash_table): Assign new field.
3681
5e22e966
SM
36822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3683
3684 * dwarf2/read.c: Replace
3685 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3686 dwarf2_cu->per_objfile throughout.
3687
97a1449a
SM
36882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3689
3690 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3691 parameter, don't use per_cu->dwarf2_per_objfile.
3692 (dw2_instantiate_symtab): Likewise.
3693 (dw2_find_last_source_symtab): Update.
3694 (dw2_map_expand_apply): Update.
3695 (dw2_lookup_symbol): Update.
3696 (dw2_expand_symtabs_for_function): Update.
3697 (dw2_expand_all_symtabs): Update.
3698 (dw2_expand_symtabs_with_fullname): Update.
3699 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3700 don't use per_cu->dwarf2_per_objfile.
3701 (dw2_expand_marked_cus): Update.
3702 (dw2_find_pc_sect_compunit_symtab): Update.
3703 (dw2_debug_names_lookup_symbol): Update.
3704 (dw2_debug_names_expand_symtabs_for_function): Update.
3705 (dw2_debug_names_map_matching_symbols): Update.
3706 (dwarf2_psymtab::expand_psymtab): Update.
3707
9e021579
SM
37082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3709
3710 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3711 <per_objfile>: New member.
3712 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3713 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3714 call to dwarf2_cu.
3715 (cutu_reader::cutu_reader): Update.
3716 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3717
ae090bdb
SM
37182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3721 struct dwarf2_per_objfile.
3722 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3723 dwarf2_per_bfd.
3724 * dwarf2/read.c (set_die_type): Update.
3725 (get_die_type_at_offset): Update.
3726
af758d11
SM
37272020-05-27 Tom Tromey <tom@tromey.com>
3728 Simon Marchi <simon.marchi@efficios.com>
3729
3730 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3731 method.
3732 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3733 get_symtab, set_symtab>: New methods.
3734 <m_symtabs>: New field.
3735 (struct dwarf2_psymtab): Derive from partial_symtab.
3736 <readin_p, get_compunit_symtab>: Declare methods.
3737 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3738 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3739 New methods.
3740 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3741 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3742 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3743 (dw2_symtab_iter_next, dw2_print_stats)
3744 (dw2_expand_symtabs_with_fullname)
3745 (dw2_expand_symtabs_matching_one)
3746 (dw_expand_symtabs_matching_file_matcher)
3747 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3748 (dw2_debug_names_iterator::next)
3749 (dw2_debug_names_map_matching_symbols)
3750 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3751 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3752 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3753 New methods.
3754 (get_compunit_symtab, process_full_comp_unit)
3755 (process_full_type_unit): Update.
3756 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3757
5989a64e
SM
37582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3759
3760 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3761 then introduce a new dwarf2_per_objfile type.
3762 <read_line_string>: Move to the new dwarf2_per_objfile type.
3763 <objfile>: Likewise.
3764 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3765 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3766 dwarf2_per_objfile->per_bfd.
3767 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3768 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3769 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3770 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3771 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3772 (dwarf2_per_objfile::locate_sections): Rename to...
3773 (dwarf2_per_bfd::locate_sections): ... this.
3774 (dwarf2_per_objfile::get_cutu): Rename to...
3775 (dwarf2_per_bfd::get_cutu): ... this.
3776 (dwarf2_per_objfile::get_cu): Rename to...
3777 (dwarf2_per_bfd::get_cu): ... this.
3778 (dwarf2_per_objfile::get_tu): Rename to...
3779 (dwarf2_per_bfd::get_tu): ... this.
3780 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3781 (dwarf2_per_bfd::allocate_per_cu): ... this.
3782 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3783 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3784 (get_gdb_index_contents_ftype): Change parameter from
3785 dwarf2_per_objfile to dwarf2_per_bfd.
3786 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3787 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3788
a50264ba
TT
37892020-05-27 Tom Tromey <tom@tromey.com>
3790 Simon Marchi <simon.marchi@efficios.com>
3791
3792 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3793 (allocate_piece_closure): Set "per_objfile" member.
3794 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3795 (locexpr_describe_location, loclist_describe_location): Use new
3796 member.
3797 * dwarf2/read.c (read_call_site_scope)
3798 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3799 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3800 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3801 handle_data_member_location): Set per_objfile member.
3802 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3803 member.
3804 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3805
d3473f0c
TT
38062020-05-27 Tom Tromey <tom@tromey.com>
3807
3808 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3809 allocate_signatured_type>: Declare new methods.
3810 <m_num_psymtabs>: New member.
3811 (struct dwarf2_per_cu_data) <index>: New member.
3812 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3813 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3814 (create_cu_from_index_list): Use allocate_per_cu.
3815 (create_signatured_type_table_from_index)
3816 (create_signatured_type_table_from_debug_names)
3817 (create_debug_type_hash_table, add_type_unit)
3818 (read_comp_units_from_section): Use allocate_signatured_type.
3819
5717c425
TT
38202020-05-27 Tom Tromey <tom@tromey.com>
3821
3822 * psymtab.c (partial_map_expand_apply)
3823 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3824 (psym_lookup_global_symbol_language)
3825 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3826 (psym_print_stats, psym_expand_symtabs_for_function)
3827 (psym_map_symbol_filenames, psym_map_matching_symbols)
3828 (psym_expand_symtabs_matching)
3829 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3830 (maintenance_check_psymtabs): Update.
3831 * psympriv.h (struct partial_symtab) <readin_p,
3832 get_compunit_symtab>: Add objfile parameter.
3833 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3834 Likewise.
3835 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3836 get_compunit_symtab>: Likewise.
3837 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3838
45940949
TT
38392020-05-27 Tom Tromey <tom@tromey.com>
3840
3841 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3842 member.
3843 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3844 (create_cu_from_index_list)
3845 (create_signatured_type_table_from_index)
3846 (create_signatured_type_table_from_debug_names)
3847 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3848 (dwarf2_create_include_psymtab)
3849 (create_debug_type_hash_table, add_type_unit)
3850 (create_type_unit_group, read_comp_units_from_section)
3851 (dwarf2_compute_name, create_cus_hash_table)
3852 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3853 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3854 obstack.
3855 (dw2_get_real_path): Likewise. Change argument to
3856 dwarf2_per_objfile.
3857
f8c6d152
LM
38582020-05-27 Luis Machado <luis.machado@linaro.org>
3859
3860 PR tdep/26000
3861 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3862 for ldrd (immediate).
3863
e98d2e6d
PW
38642020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3865
3866 * command.h: Add comment giving the name of class_tui.
3867 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3868 create the fake command for the help for class_tui.
3869
53a47a3e
TT
38702020-05-26 Tom Tromey <tromey@adacore.com>
3871
3872 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3873 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3874 (val_atr): New function.
3875 (value_val_atr): Use it.
3876 * ada-valprint.c (print_optional_low_bound): Change low bound
3877 handling for enums.
3878 (val_print_packed_array_elements): Don't call discrete_position.
3879 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3880 discrete_position for enum types.
3881 * language.c (default_print_array_index): Change type.
3882 * language.h (struct language_defn) <la_print_array_index>: Add
3883 index_type parameter, change type of index_value.
3884 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3885 (default_print_array_index): Update.
3886 * valprint.c (maybe_print_array_index): Don't call
3887 value_from_longest. Update.
3888 (value_print_array_elements): Don't call discrete_position.
3889
0bc2354b
TT
38902020-05-26 Tom Tromey <tromey@adacore.com>
3891
3892 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3893 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3894
1218a4bf
CDA
38952020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3896
3897 PR gdb/13519
3898 * avr-tdep.c (avr_integer_to_address): Return data or code
3899 address accordingly to the second 'type' argument of the
3900 function.
3901
92651b1d
MW
39022020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3903
3904 * infcmd.c, inferior.h: (construct_inferior_arguments):
3905 Moved function from here to gdbsupport/common-inferior.{h,cc}
3906
0a4f5f8c
TT
39072020-05-23 Tom Tromey <tom@tromey.com>
3908
3909 Revert commit eca1f90c:
3910 * NEWS: Remove entry for completion styling.
3911 * completer.c (_rl_completion_prefix_display_length): Move
3912 declaration later.
3913 (gdb_fnprint): Revert.
3914 (gdb_display_match_list_1): Likewise.
3915 * cli/cli-style.c (completion_prefix_style)
3916 (completion_difference_style, completion_suffix_style): Remove.
3917 (_initialize_cli_style): Revert.
3918 * cli/cli-style.h (completion_prefix_style)
3919 (completion_difference_style, completion_suffix_style): Don't
3920 declare.
3921
e08bd6c5
PA
39222020-05-24 Pedro Alves <palves@redhat.com>
3923
3924 * symtab.c (completion_list_add_name): Return boolean indication
3925 of whether the symbol matched.
3926 (completion_list_add_symbol): Don't try to remove C++ aliases if
3927 the symbol didn't match in the first place.
3928 * symtab.h (completion_list_add_name): Return bool.
3929
ceacbf6e
SM
39302020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3931
3932 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3933 type::field.
3934
26f16254
JB
39352020-05-23 Joel Brobecker <brobecker@adacore.com>
3936
3937 GDB 9.2 released.
3938
eca1f90c
TT
39392020-05-23 Tom Tromey <tom@tromey.com>
3940
3941 * NEWS: Add entry for completion styling.
3942 * completer.c (_rl_completion_prefix_display_length): Move
3943 declaration earlier.
3944 (gdb_fnprint): Use completion_style.
3945 (gdb_display_match_list_1): Likewise.
3946 * cli/cli-style.c (completion_prefix_style)
3947 (completion_difference_style, completion_suffix_style): New
3948 globals.
3949 (_initialize_cli_style): Register new globals.
3950 * cli/cli-style.h (completion_prefix_style)
3951 (completion_difference_style, completion_suffix_style): Declare.
3952
51e2cfa2
PA
39532020-05-23 Pedro Alves <palves@redhat.com>
3954
3955 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3956 (parse_escape): Use ISDIGIT instead of isdigit.
3957 (puts_debug): Use gdb_isprint instead of isprint.
3958 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3959 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3960 ISSPACE instead of isspace.
3961 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3962 instead of isspace.
3963 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3964 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3965 instead of isxdigit and ISDIGIT instead of isdigit.
3966
80fc5e77
SM
39672020-05-22 Simon Marchi <simon.marchi@efficios.com>
3968
3969 * gdbtypes.h (struct type) <field>: New method.
3970 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3971 or type::field.
3972
3cabb6b0
SM
39732020-05-22 Simon Marchi <simon.marchi@efficios.com>
3974
3975 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3976 (TYPE_FIELDS): Use type::fields. Change all call sites that
3977 modify the propery to use type::set_fields instead.
3978
1f704f76
SM
39792020-05-22 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3982 type::num_fields instead.
3983
5e33d5f4
SM
39842020-05-22 Simon Marchi <simon.marchi@efficios.com>
3985
3986 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3987 methods.
3988 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3989 that modify the number of fields to use type::set_num_fields
3990 instead.
3991
9392ebb3
TT
39922020-05-22 Tom Tromey <tromey@adacore.com>
3993
3994 * compile/compile-object-load.h (munmap_list_free): Don't
3995 declare.
3996
7c13f4e8
AB
39972020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3998
3999 * annotate.c (annotate_source_line): Update return type, add call
4000 to update current symtab and line.
4001 * annotate.h (annotate_source_line): Update return type, and
4002 extend header comment.
4003 * source.c (info_line_command): Check annotation_level before
4004 calling annotate_source_line.
4005 * stack.c (print_frame_info): If calling annotate_source_line
4006 returns true, then don't print any other source line information.
4007
aa370940
SM
40082020-05-21 Simon Marchi <simon.marchi@efficios.com>
4009
4010 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4011
84d53fa9
SM
40122020-05-21 Simon Marchi <simon.marchi@efficios.com>
4013
4014 * coffread.c (patch_type): Remove NULL check before xfree.
4015 * corefile.c (set_gnutarget): Likewise.
4016 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4017 * exec.c (build_section_table): Likewise.
4018 * remote.c (remote_target::pass_signals): Likewise.
4019 * utils.c (n_spaces): Likewise.
4020 * cli/cli-script.c (document_command): Likewise.
4021 * i386-windows-tdep.c (core_process_module_section): Likewise.
4022 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4023
9d428aae
SM
40242020-05-20 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * symfile.c (reread_symbols): Clear objfile's section_offsets
4027 vector and section indices, re-compute them by calling
4028 sym_offsets.
4029
250106a7
TT
40302020-05-20 Tom Tromey <tromey@adacore.com>
4031
4032 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4033 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4034
9a0bacfb
TV
40352020-05-20 Tom de Vries <tdevries@suse.de>
4036
4037 PR symtab/25833
4038 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4039
7b958a48
AM
40402020-05-20 Alan Modra <amodra@gmail.com>
4041
4042 PR 25993
4043 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4044 bfd_set_filename.
4045 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4046 passed to bfd_set_filename.
4047 * symfile-mem.c (add_vsyscall_page): Likewise for string
4048 passed to symbol_file_add_from_memory.
4049 (symbol_file_add_from_memory): Make name param a const char* and
4050 don't strdup.
4051
c7e97679
AM
40522020-05-20 Alan Modra <amodra@gmail.com>
4053
4054 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4055 rather than accessing bfd->filename directly.
4056 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4057 and use bfd_section_name.
4058 * dwarf2/frame.c (decode_frame_entry): Likewise.
4059 * exec.c (exec_set_section_address): Likewise.
4060 * solib-aix.c (solib_aix_bfd_open): Likewise.
4061 * stap-probe.c (get_stap_base_address): Likewise.
4062 * symfile.c (reread_symbols): Likewise.
4063
563c591b
TT
40642020-05-19 Tom Tromey <tromey@adacore.com>
4065
4066 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4067
f408d82c
SM
40682020-05-19 Simon Marchi <simon.marchi@efficios.com>
4069
4070 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4071
98c59b52
PA
40722020-05-19 Pedro Alves <palves@redhat.com>
4073
4074 * NEWS (set exec-file-mismatch): Adjust entry.
4075 * exec.c: Include "build-id.h".
4076 (validate_exec_file): Try to match build IDs instead of filenames.
4077 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4078 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4079 and pass down 'warn_if_slow'.
4080 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4081 gdb_bfd_open_closure to pass it down.
4082 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4083
4111f652
PA
40842020-05-19 Pedro Alves <palves@redhat.com>
4085
4086 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4087 * target.c (target_fileio_open_1): Rename to target_fileio_open
4088 and make extern. Use bool.
4089 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4090 (target_fileio_read_alloc_1): Adjust.
4091 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4092 (target_fileio_open_warn_if_slow): Delete declaration.
4093
ad80db5b
PA
40942020-05-19 Pedro Alves <palves@redhat.com>
4095
4096 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4097 Adjust all callers.
4098
1d6ce4d3
YS
40992020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4100
4101 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4102 whether disp is negative.
4103
9005fbbb
SM
41042020-05-19 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * symfile.h (struct symfile_segment_data)
4107 <~symfile_segment_data>: Remove.
4108 <segment_info>: Change to std::vector.
4109 * symfile.c (default_symfile_segments): Update.
4110 * elfread.c (elf_symfile_segments): Update.
4111
68b888ff
SM
41122020-05-19 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4115 <segments>: New.
4116 <segment_bases, segment_sizes>: Remove.
4117 * symfile.c (default_symfile_segments): Update.
4118 * elfread.c (elf_symfile_segments): Update.
4119 * remote.c (remote_target::get_offsets): Update.
4120 * solib-target.c (solib_target_relocate_section_addresses):
4121 Update.
4122
62982abd
SM
41232020-05-19 Simon Marchi <simon.marchi@efficios.com>
4124
4125 * symfile.h (struct symfile_segment_data): Initialize fields.
4126 <~symfile_segment_data>: Add.
4127 (symfile_segment_data_up): New.
4128 (struct sym_fns) <sym_segments>: Return a
4129 symfile_segment_data_up.
4130 (default_symfile_segments): Return a symfile_segment_data_up.
4131 (free_symfile_segment_data): Remove.
4132 (get_symfile_segment_data): Return a symfile_segment_data_up.
4133 * symfile.c (default_symfile_segments): Likewise.
4134 (get_symfile_segment_data): Likewise.
4135 (free_symfile_segment_data): Remove.
4136 (symfile_find_segment_sections): Update.
4137 * elfread.c (elf_symfile_segments): Return a
4138 symfile_segment_data_up.
4139 * remote.c (remote_target::get_offsets): Update.
4140 * solib-target.c (solib_target_relocate_section_addresses):
4141 Update.
4142 * symfile-debug.c (debug_sym_segments): Return a
4143 symfile_segment_data_up.
4144
7f204339
RO
41452020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4146
e52a0f1b
RO
4147 PR build/25981
4148 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4149 Hardcode register numbers.
4150
7f204339
RO
4151 PR build/25981
4152 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4153 procfs_find_LDT_entry): Remove.
4154 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4155 procfs_find_LDT_entry): Remove.
4156 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4157 Remove.
4158
7f32a4d5
PA
41592020-05-17 Pedro Alves <palves@redhat.com>
4160 Andrew Burgess <andrew.burgess@embecosm.com>
4161 Keno Fischer <keno@juliacomputing.com>
4162
4163 PR gdb/25741
4164 * breakpoint.c (build_target_condition_list): Update comments.
4165 (build_target_command_list): Update comments and skip matching
4166 locations.
4167 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4168 a separate function. Simplify "set breakpoint auto-hw off"
4169 handling.
4170 (insert_breakpoints): Update comment.
4171 (tracepoint_locations_match): New parameter. For breakpoints,
4172 compare location types too, if the caller wants to.
4173 (handle_automatic_hardware_breakpoints): New functions.
4174 (bp_location_is_less_than): Also sort by location type and
4175 hardware breakpoint length.
4176 (update_global_location_list): Handle "set breakpoint auto-hw on"
4177 here.
4178 (update_breakpoint_locations): Ask breakpoint_locations_match to
4179 ignore location types.
4180
7d93a1e0
SM
41812020-05-16 Simon Marchi <simon.marchi@efficios.com>
4182
4183 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4184 type::name instead.
4185
d0e39ea2
SM
41862020-05-16 Simon Marchi <simon.marchi@efficios.com>
4187
4188 * gdbtypes.h (struct type) <name, set_name>: New methods.
4189 (TYPE_CODE): Use type::name. Change all call sites used to set
4190 the name to use type::set_name instead.
4191
2dab0c7b
TT
41922020-05-16 Tom Tromey <tom@tromey.com>
4193
4194 * top.c (quit_force): Update.
4195 * infrun.c (handle_no_resumed): Update.
4196 * top.h (all_uis): New function.
4197 (ALL_UIS): Remove.
4198
59f7bd8d
SM
41992020-05-16 Simon Marchi <simon.marchi@efficios.com>
4200
4201 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4202
9bf058f0
PA
42032020-05-16 Pedro Alves <palves@redhat.com>
4204
4205 * ia64-linux-nat.c
4206 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4207 Declare method.
4208 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4209
8f86ae1a
SM
42102020-05-15 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4213 (sparc64_adi_info): Likewise.
4214
d6bc0792
TT
42152020-05-15 Tom Tromey <tom@tromey.com>
4216
4217 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4218 block_objfile.
4219 (lookup_objfile_from_block): Remove.
4220 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4221 (lookup_global_symbol): Use block_objfile.
4222 * symtab.h (lookup_objfile_from_block): Don't declare.
4223 * printcmd.c (clear_dangling_display_expressions): Use
4224 block_objfile.
4225 * parse.c (operator_check_standard): Use block_objfile.
4226
8c14c3a3
TT
42272020-05-15 Tom Tromey <tom@tromey.com>
4228
4229 * language.c (language_alloc_type_symbol): Set
4230 SYMBOL_SECTION.
4231 * symtab.c (initialize_objfile_symbol): Remove.
4232 (allocate_symbol): Remove.
4233 (allocate_template_symbol): Remove.
4234 * dwarf2/read.c (fixup_go_packaging): Use "new".
4235 (new_symbol): Use "new".
4236 (read_variable): Don't call initialize_objfile_symbol. Use
4237 "new".
4238 (read_func_scope): Use "new".
4239 * xcoffread.c (process_xcoff_symbol): Don't call
4240 initialize_objfile_symbol.
4241 (SYMBOL_DUP): Remove.
4242 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4243 "new".
4244 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4245 (allocate_template_symbol): Don't declare.
4246 (struct symbol): Add copy constructor. Change defaults.
4247 * jit.c (finalize_symtab): Use "new".
4248 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4249 Use "new".
4250 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4251 (common_block_end): Use "new".
4252 * mdebugread.c (parse_symbol): Use "new".
4253 (new_symbol): Likewise.
4254
5b4a1a8d
PW
42552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4256
4257 * NEWS: Mention changes to help and apropos.
4258
57b4f16e
PW
42592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4260
4261 * command.h (enum command_class): Improve comments, document
4262 that class_alias is for user-defined aliases, give the class
4263 name for each class, remove unused class_xdb.
4264 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4265 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4266 by a precise class.
4267 * infcmd.c (_initialize_infcmd): Likewise.
4268 * reverse.c (_initialize_reverse): Likewise.
4269 * stack.c (_initialize_stack): Likewise.
4270 * symfile.c (_initialize_symfile): Likewise.
4271 * tracepoint.c (_initialize_tracepoint): Likewise.
4272
7c05caf7
PW
42732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4274
4275 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4276 when their aliased command is traversed.
4277 (help_cmd): Add fput_command_names_styled call to
4278 output command name and aliases when command has an alias.
4279
3b3aaacb
PW
42802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4281
4282 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4283 * cli/cli-decode.c (help_cmd_list): Declare as static,
4284 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4285 a command together with the command.
4286 (fput_command_name_styled, fput_command_names_styled): New functions.
4287 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4288 fput_command_name_styled.
4289 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4290 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4291
7aa1b46f
PW
42922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4293
4294 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4295 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4296 * command.h (cmd_show_list): Likewise.
4297 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4298 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4299
89bcba74
PW
43002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4301
4302 * unittests/command-def-selftests.c (traverse_command_structure):
4303 Verify all commands of a list have the same prefix command and
4304 that only the top cmdlist commands have a null prefix.
4305
3f4d92eb
PW
43062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4307
4308 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4309 as prefix, not one of its aliases.
4310 (set_cmd_prefix): Remove.
4311 (do_add_cmd): Centralize the setting of the prefix of a command, when
4312 command is defined after its full chain of prefix commands.
4313 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4314 (add_setshow_cmd_full): Likewise.
4315 (update_prefix_field_of_prefixed_commands): New function.
4316 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4317 update_prefix_field_of_prefixed_commands.
4318 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4319 addresses of remote_set_cmdlist and remote_show_cmdlist given
4320 as argument, not the address of an argument.
4321 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4322 * gdb/remote.c (_initialize_remote): Likewise.
4323
0605465f
PW
43242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4325
4326 * cli/cli-cmds.c (alias_command): Check for an existing alias
4327 using lookup_cmd_composition, as valid_command_p is too strict
4328 and forbids aliases that are the prefix of an existing alias
4329 or command.
4330 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4331 command is properly recognised as a valid command.
4332
58e6ac70
PW
43332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4334
4335 * unittests/help-doc-selftests.c: Rename to
4336 unittests/command-def-selftests.c
4337 * unittests/command-def-selftests.c (help_doc_tests): Update some
4338 comments.
4339 (command_structure_tests, traverse_command_structure): New namespace
4340 and function.
4341 (command_structure_invariants_tests): New function.
4342 (_initialize_command_def_selftests) Renamed from
4343 _initialize_help_doc_selftests, register command_structure_invariants
4344 selftest.
4345
a7b9ceb8
PW
43462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4347
4348 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4349 an alias of 'show'.
4350
b2188a06
JB
43512020-05-15 Joel Brobecker <brobecker@adacore.com>
4352
4353 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4354 ada_is_fixed_point_type. Update all callers.
4355 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4356 all callers.
4357 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4358 Update all callers.
4359 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4360 print_fixed_point_type. Update all callers.
4361 * ada-valprint.c (ada_value_print_num): Replace call to
4362 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4363
a51951c2
KB
43642020-05-14 Kevin Buettner <kevinb@redhat.com>
4365
4366 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4367 processors.
4368 (cpu_supports_bts): Add CV_AMD case.
4369
29d6859f
LM
43702020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4371 Simon Marchi <simon.marchi@efficios.com>
4372
4373 * infrun.c (stop_all_threads): Collect multiple wait events at
4374 each pass.
4375
78134374
SM
43762020-05-14 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4379 type::code instead.
4380
67607e24
SM
43812020-05-14 Simon Marchi <simon.marchi@efficios.com>
4382
4383 * gdbtypes.h (struct type) <code, set_code>: New methods.
4384 (TYPE_CODE): Use type::code. Change all call sites used to set
4385 the code to use type::set_code instead.
4386
a05575d3
TBA
43872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4388 Tom de Vries <tdevries@suse.de>
4389 Pedro Alves <palves@redhat.com>
4390
4391 PR threads/25478
4392 * infrun.c (stop_all_threads): Do NOT ignore
4393 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4394 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4395 received.
4396 (handle_no_resumed): Remove code handling a live inferior with no
4397 threads.
4398 * remote.c (has_single_non_exited_thread): New.
4399 (remote_target::update_thread_list): Do not delete a thread if is
4400 the last thread of the process.
4401 * thread.c (thread_select): Call delete_exited_threads instead of
4402 prune_threads.
4403
6ad82919
TBA
44042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4405
4406 * infrun.c (stop_all_threads): Enable/disable thread events of all
4407 targets. Move a debug message denoting the end of the function
4408 into the SCOPED_EXIT block.
4409
d890404b
TBA
44102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4411
4412 * process-stratum-target.h: Include <set>.
4413 (all_non_exited_process_targets, switch_to_target_no_thread): New
4414 function declarations.
4415 * process-stratum-target.c (all_non_exited_process_targets)
4416 (switch_to_target_no_thread): New function implementations.
4417
293b3ebc
TBA
44182020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4419
4420 * infrun.c (handle_inferior_event): Extract out a piece of code
4421 into...
4422 (mark_non_executing_threads): ...this new function.
4423
7ca9b62a
TBA
44242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4425
4426 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4427 use.
4428
fc75c28b
TBA
44292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4430
4431 * regcache.c (regcache_read_pc_protected): New function
4432 implementation that returns 0 if the PC cannot read via
4433 'regcache_read_pc'.
4434 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4435 instead of 'regcache_read_pc'.
4436 (keep_going_pass_signal): Ditto.
4437
a89febbd
TT
44382020-05-13 Tom Tromey <tromey@adacore.com>
4439
4440 * ada-lang.c (align_value): Remove.
4441 (ada_template_to_fixed_record_type_1): Use align_up.
4442
f7e23710
TBA
44432020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4444
4445 * async-event.c: Update the copyright year.
4446 * async-event.h: Update the copyright year.
4447
02ff80c2
SM
44482020-05-12 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * objfiles.h (is_addr_in_objfile,
4451 shared_objfile_contains_address_p): Return bool.
4452 * objfile.c (is_addr_in_objfile,
4453 shared_objfile_contains_address_p): Return bool.
4454
4fd6c7e8
TT
44552020-05-11 Tom Tromey <tromey@adacore.com>
4456
4457 * cli/cli-cmds.c (info_command): Restore.
4458 (_initialize_cli_cmds): Use add_prefix_command for "info".
4459 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4460
5eb68a39
TT
44612020-05-11 Tom Tromey <tromey@adacore.com>
4462
4463 * ada-lang.c (ada_value_primitive_field): Now public.
4464 * ada-lang.h (ada_value_primitive_field): Declare.
4465 * ada-valprint.c (print_field_values): Use
4466 ada_value_primitive_field for wrapper fields.
4467
7666722f
TV
44682020-05-11 Tom de Vries <tdevries@suse.de>
4469
4470 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4471 MODULE_DOMAIN.
4472
3ee6bb11
TV
44732020-05-11 Tom de Vries <tdevries@suse.de>
4474
4475 PR symtab/25941
4476 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4477 with length 0, if not gdb-produced.
4478 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4479
43434996
TV
44802020-05-09 Tom de Vries <tdevries@suse.de>
4481
4482 PR gdb/25955
4483 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4484 calculation.
4485
2f78cffc
TT
44862020-05-09 Tom Tromey <tom@tromey.com>
4487
4488 * top.c (server_command): Now bool.
4489 * top.h (server_command): Now bool.
4490
4f7bc5ed
TT
44912020-05-08 Tom Tromey <tromey@adacore.com>
4492
4493 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4494 already being processed.
4495
8be4b118
TT
44962020-05-08 Tom Tromey <tom@tromey.com>
4497
4498 * printcmd.c (struct display) <next>: Remove.
4499 <display>: New constructor.
4500 <exp_string>: Now a std::string.
4501 <enabled_p>: Now a bool.
4502 (display_number): Move definition earlier.
4503 (displays): Rename from display_chain. Now a std::vector.
4504 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4505 (display_command): Update.
4506 (do_one_display, disable_display)
4507 (enable_disable_display_command, do_enable_disable_display):
4508 Update.
4509 (free_display): Remove.
4510 (clear_displays): Rewrite.
4511 (delete_display): Update.
4512 (map_display_numbers): Use function_view. Remove "data"
4513 parameter. Update.
4514 (do_delete_display): Remove.
4515 (undisplay_command): Update.
4516 (do_one_display, do_displays, disable_display)
4517 (info_display_command): Update.
4518 (do_enable_disable_display): Remove.
4519 (enable_disable_display_command)
4520 (clear_dangling_display_expressions): Update.
4521
94c93c35
TT
45222020-05-08 Tom Tromey <tom@tromey.com>
4523
4524 * symtab.c (set_symbol_cache_size)
4525 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4526 (maintenance_print_symbol_cache_statistics): Update.
4527 * symmisc.c (print_symbol_bcache_statistics)
4528 (print_objfile_statistics, maintenance_print_objfiles)
4529 (maintenance_info_symtabs, maintenance_check_symtabs)
4530 (maintenance_expand_symtabs, maintenance_info_line_tables):
4531 Update.
4532 * symfile-debug.c (set_debug_symfile): Update.
4533 * source.c (forget_cached_source_info): Update.
4534 * python/python.c (gdbpy_progspaces): Update.
4535 * psymtab.c (maintenance_info_psymtabs): Update.
4536 * probe.c (parse_probes): Update.
4537 * linespec.c (iterate_over_all_matching_symtabs)
4538 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4539 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4540 * exec.c (exec_target::close): Update.
4541 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4542 * breakpoint.c (print_one_breakpoint_location)
4543 (create_longjmp_master_breakpoint)
4544 (create_std_terminate_master_breakpoint): Update.
4545 * progspace.c (program_spaces): Now a std::vector.
4546 (maybe_new_address_space): Update.
4547 (add_program_space): Remove.
4548 (program_space::program_space): Update.
4549 (remove_program_space): Update.
4550 (number_of_program_spaces): Remove.
4551 (print_program_space, update_address_spaces): Update.
4552 * progspace.h (program_spaces): Change type.
4553 (ALL_PSPACES): Remove.
4554 (number_of_program_spaces): Don't declare.
4555 (struct program_space) <next>: Remove.
4556
a1fd1ac9
TT
45572020-05-08 Tom Tromey <tom@tromey.com>
4558
4559 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4560 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4561 (enable_break): Update.
4562 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4563 (frv_fdpic_find_canonical_descriptor): Update.
4564 (frv_fetch_objfile_link_map): Update.
4565 * progspace.c (program_space::free_all_objfiles): Update.
4566 (program_space::solibs): New method.
4567 * progspace.h (struct program_space) <solibs>: New method.
4568 * solist.h (master_so_list): Don't declare.
4569 (ALL_SO_LIBS): Remove.
4570 * solib.h (so_list_head): Remove.
4571 (update_solib_list): Update comment.
4572 * solib.c (master_so_list): Remove.
4573 (solib_used, update_solib_list, solib_add)
4574 (info_sharedlibrary_command, clear_solib)
4575 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4576
38eae084
TT
45772020-05-08 Tom Tromey <tom@tromey.com>
4578
4579 * extension.c (extension_languages): Now a std::array.
4580 (ALL_EXTENSION_LANGUAGES): Remove.
4581 (get_ext_lang_defn, get_ext_lang_of_file)
4582 (eval_ext_lang_from_control_command): Update.
4583 (finish_ext_lang_initialization)
4584 (auto_load_ext_lang_scripts_for_objfile)
4585 (ext_lang_type_printers::ext_lang_type_printers)
4586 (apply_ext_lang_type_printers)
4587 (ext_lang_type_printers::~ext_lang_type_printers)
4588 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4589 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4590 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4591 (get_matching_xmethod_workers, ext_lang_colorize)
4592 (ext_lang_before_prompt): Update.
4593 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4594
596dc4ad
TT
45952020-05-08 Tom Tromey <tom@tromey.com>
4596
4597 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4598 overload.
4599 <swap_string, m_string>: Remove.
4600 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4601 Update.
4602 * stabsread.c (define_symbol, read_type): Update.
4603 * linespec.c (find_linespec_symbols): Update.
4604 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4605 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4606 * dbxread.c (read_dbx_symtab): Update.
4607 * cp-support.h (cp_canonicalize_string_full)
4608 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4609 Return unique_xmalloc_ptr.
4610 * cp-support.c (inspect_type): Update.
4611 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4612 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4613 Likewise.
4614 * c-typeprint.c (print_name_maybe_canonical): Update.
4615 * break-catch-throw.c (check_status_exception_catchpoint):
4616 Update.
4617
bf4cb9be
TV
46182020-05-08 Tom de Vries <tdevries@suse.de>
4619
4620 * infrun.c (follow_fork): Copy current_line and current_symtab to
4621 child thread.
4622
a1b68f28
SM
46232020-05-07 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * async-event.c (struct async_signal_handler, struct
4626 async_event_handler): Reformat, remove typedef.
4627
98d48915
SM
46282020-05-07 Simon Marchi <simon.marchi@efficios.com>
4629
4630 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4631 access thistype->main_type->dyn_prop_list directly.
4632
7aa91313
SM
46332020-05-07 Simon Marchi <simon.marchi@efficios.com>
4634
4635 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4636 (remove_dyn_prop): Remove. Update all users to use
4637 type::remove_dyn_prop.
4638 * gdbtypes.c (remove_dyn_prop): Rename to...
4639 (type::remove_dyn_prop): ... this.
4640
5c54719c
SM
46412020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4642
4643 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4644 (add_dyn_prop): Remove. Update all users to use
4645 type::add_dyn_prop.
4646 * gdbtypes.c (add_dyn_prop): Rename to...
4647 (type::add_dyn_prop): ... this.
4648
24e99c6c
SM
46492020-05-07 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4652 (get_dyn_prop): Remove. Update all users to use
4653 type::dyn_prop.
4654 * gdbtypes.c (get_dyn_prop): Rename to...
4655 (type::dyn_prop): ... this.
4656
0d4bf016
SM
46572020-05-06 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4660
ac4a4f1c
SM
46612020-05-06 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4664 instruction, skip it if it's there.
4665
a3bbacc1
SM
46662020-05-05 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4669
c3236f84
SM
46702020-05-04 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4673 * gdbtypes.c (recursive_dump_type): Remove use of
4674 TYPE_INCOMPLETE.
4675
3b6acaee
TT
46762020-05-03 Tom Tromey <tom@tromey.com>
4677
4678 * breakpoint.c (catch_command, tcatch_command): Remove.
4679 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4680 add_show_prefix_cmd.
4681 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4682 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4683 Remove.
4684 (add_internal_problem_command): Use add_basic_prefix_cmd,
4685 add_show_prefix_cmd.
4686 * mips-tdep.c (set_mipsfpu_command): Remove.
4687 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4688 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4689 (_initialize_index_cache): Use add_basic_prefix_cmd.
4690 * memattr.c (dummy_cmd): Remove.
4691 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4692 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4693 (_initialize_tui_win): Use add_basic_prefix_cmd,
4694 add_show_prefix_cmd.
4695 * cli/cli-logging.c (set_logging_command): Remove.
4696 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4697 add_show_prefix_cmd.
4698 (show_logging_command): Remove.
4699 * target.c (target_command): Remove.
4700 (add_target): Use add_basic_prefix_cmd.
4701
a51119cd
HD
47022020-05-02 Hannes Domani <ssbssa@yahoo.de>
4703
4704 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4705
652fc23a 47062020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4707
652fc23a
PW
4708 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4709 info_command.
4710
117539e6
KR
47112020-04-30 Kamil Rytarowski <n54@gmx.com>
4712
4713 * nbsd-nat.c (nbsd_enable_proc_events)
4714 (nbsd_nat_target::post_startup_inferior): Add.
4715 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4716 (nbsd_nat_target::update_thread_list): Rewrite.
4717 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4718 "PTRACE_LWP_CREATE".
4719 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4720
102e38eb 47212020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4722
102e38eb
PW
4723 * stack.c (_initialize_stack): Remove duplicated creation
4724 of "frame" command and "f" alias.
4725
ee9d1e5f
HD
47262020-04-30 Hannes Domani <ssbssa@yahoo.de>
4727
4728 PR gdb/18706
4729 * gdbtypes.c (check_typedef): Calculate size of array of
4730 stubbed type.
4731
627c7fb8
HD
47322020-04-30 Hannes Domani <ssbssa@yahoo.de>
4733
4734 PR gdb/15559
4735 * i386-tdep.c (i386_push_dummy_call): Call
4736 i386_thiscall_push_dummy_call.
4737 (i386_thiscall_push_dummy_call): New function.
4738 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4739 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4740 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4741
ffc2844e
SM
47422020-04-29 Simon Marchi <simon.marchi@efficios.com>
4743
4744 * gdbarch.sh (do_read): Add shellcheck disable directive for
4745 warning SC2162.
4746
1207375d
SM
47472020-04-29 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4750 "referenced but not assigned" warning.
4751
9fdb2916
SM
47522020-04-29 Simon Marchi <simon.marchi@efficios.com>
4753
4754 * gdbarch.sh: Remove code that sets fallbackdefault.
4755
759cea5e
SM
47562020-04-29 Simon Marchi <simon.marchi@efficios.com>
4757
4758 * gdbarch.sh: Use shell operators && and || instead of
4759 -a and -o.
4760
cb02ab24
SM
47612020-04-29 Simon Marchi <simon.marchi@efficios.com>
4762
4763 * gdbarch.sh: Use $(...) instead of `...`.
4764
a6fc5ffc
SM
47652020-04-29 Simon Marchi <simon.marchi@efficios.com>
4766
4767 * gdbarch.sh: Use double quotes around variables.
4768
8d113d13
SM
47692020-04-29 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * gdbarch.sh: Use %s with printf, instead of variables in the
4772 format string.
4773
ed6acedd
TT
47742020-04-29 Tom Tromey <tromey@adacore.com>
4775
4776 PR ada/25875:
4777 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4778 type fields here.
4779 (read_enumeration_type): Call
4780 update_enumeration_type_from_children later. Update comments.
4781 (process_enumeration_scope): Don't create type fields.
4782
b68b1b58
KR
47832020-04-29 Kamil Rytarowski <n54@gmx.com>
4784
4785 * nbsd-tdep.c: Include "xml-syscall.h".
4786 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4787
f94b2e03
KR
47882020-04-29 Kamil Rytarowski <n54@gmx.com>
4789
4790 * nbsd-nat.c: Include "sys/wait.h".
4791 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4792 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4793 (nbsd_nat_target::remove_exec_catchpoint)
4794 (nbsd_nat_target::set_syscall_catchpoint): Add.
4795 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4796 (nbsd_nat_target::insert_exec_catchpoint)
4797 (nbsd_nat_target::remove_exec_catchpoint)
4798 (nbsd_nat_target::set_syscall_catchpoint): Add.
4799 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4800 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4801 `nbsd_get_syscall_number'.
4802
fc49bc72
TT
48032020-04-29 Tom Tromey <tom@tromey.com>
4804
4805 * stack.c (print_block_frame_labels): Remove.
4806
d642b692
HD
48072020-04-29 Hannes Domani <ssbssa@yahoo.de>
4808
4809 PR gdb/17320
4810 * ada-valprint.c (val_print_packed_array_elements): Move array
4811 end bracket to new line.
4812 (ada_val_print_string): Remove extra spaces before first array
4813 element.
4814 * c-valprint.c (c_value_print_array): Likewise.
4815 * m2-valprint.c (m2_print_array_contents): Likewise.
4816 (m2_value_print_inner): Likewise.
4817 * p-valprint.c (pascal_value_print_inner): Likewise.
4818 * valprint.c (generic_val_print_array): Likewise.
4819 (value_print_array_elements): Move first array element and array
4820 end bracket to new line.
4821
ea90f227
TV
48222020-04-29 Tom de Vries <tdevries@suse.de>
4823
4824 PR symtab/25889
4825 * linespec.c (find_method): Fix ix calculation.
4826
4498ef4f
KR
48272020-04-28 Kamil Rytarowski <n54@gmx.com>
4828
4829 * syscalls/update-netbsd.sh: New file.
4830 * syscalls/netbsd.xml: Regenerate.
4831 * data-directory/Makefile.in: Register `netbsd.xml' in
4832 `SYSCALLS_FILES'.
4833
a55e30b5
SM
48342020-04-28 Simon Marchi <simon.marchi@efficios.com>
4835
4836 * syscalls/update-freebsd.sh: Add double quotes.
4837
2b2fbab8
TT
48382020-04-28 Tom Tromey <tom@tromey.com>
4839
4840 * NEWS: Update.
4841 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4842 (cmdpy_init): Allow class_tui.
4843
a65189c9
TV
48442020-04-28 Mark Williams <mark@myosotissp.com>
4845
4846 PR gdb/24480
4847 * dwarf2read.c: Add missing assingments to list_in_scope when
4848 start_symtab was already called.
4849
1b95cdb7
SM
48502020-04-28 Simon Marchi <simon.marchi@efficios.com>
4851
4852 PR gdb/25881
4853 * dwarf2/read.c (offset_map_type): Use
4854 gdb:hash_enum<sect_offset> as hash function.
4855
15cd93d0
TV
48562020-04-28 Tom de Vries <tdevries@suse.de>
4857
4858 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4859 with DW_AT_signature.
4860
1eb39914
SM
48612020-04-27 Simon Marchi <simon.marchi@efficios.com>
4862
4863 * configure.ac: Remove check for fs_base/gs_base in
4864 user_regs_struct.
4865 * configure: Re-generate.
4866 * config.in: Re-generate.
4867 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4868 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4869 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4870
991a3e2e
LM
48712020-04-27 Luis Machado <luis.machado@linaro.org>
4872
4873 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4874 problematic inline frame unwinding situation.
4875 * frame.c (frame_id_computed_p): New function.
4876 * frame.h (frame_id_computed_p): New prototype.
4877
361ba0e8
TT
48782020-04-26 Tom Tromey <tom@tromey.com>
4879
4880 * command.h (enum command_class) <class_pseudo>: Remove.
4881
bc3609fd
PW
48822020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4883
4884 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4885 and whitespace.
4886
b9771db7
KR
48872020-04-25 Kamil Rytarowski <n54@gmx.com>
4888
ec16513e
SM
4889 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4890 `PT_GET_PROCESS_STATE' block.
b9771db7 4891
7151c1af
TT
48922020-04-24 Tom Tromey <tom@tromey.com>
4893
4894 * symtab.h (symbol_get_demangled_name): Don't declare.
4895 * symtab.c (symbol_get_demangled_name): Remove.
4896 (general_symbol_info::natural_name)
4897 (general_symbol_info::demangled_name): Update.
4898
906bb4c5
TT
48992020-04-24 Tom Tromey <tom@tromey.com>
4900
4901 PR rust/25025:
4902 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4903
bcfe6157
TT
49042020-04-24 Tom Tromey <tom@tromey.com>
4905
4906 PR symtab/12707:
4907 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4908 exists.
4909 (new_symbol): Likewise.
4910 * compile/compile-object-load.c (get_out_value_type): Use
4911 symbol_matches_search_name.
4912
f049a313
TT
49132020-04-24 Tom Tromey <tom@tromey.com>
4914
4915 * dwarf2/read.c (add_partial_symbol): Do not call
4916 compute_and_set_names.
4917
76e288d1
TT
49182020-04-24 Tom Tromey <tom@tromey.com>
4919
4920 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4921 overload.
4922
2467f4f6
TT
49232020-04-24 Tom Tromey <tom@tromey.com>
4924
4925 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4926 (add_psymbol_to_list): New overload. Make old overload call new
4927 one.
4928 * psympriv.h (add_psymbol_to_list): New overload.
4929
e61108c9
TT
49302020-04-24 Tom Tromey <tom@tromey.com>
4931
4932 * dwarf2/read.c (partial_die_info::read) <case
4933 DW_AT_linkage_name>: Use value_as_string.
4934 (dwarf2_string_attr): Use value_as_string.
4935 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4936 method.
4937 * dwarf2/attribute.c (attribute::value_as_string): New method.
4938
8c87a452
TT
49392020-04-24 Tom Tromey <tom@tromey.com>
4940
4941 * symtab.c (general_symbol_info::natural_name)
4942 (general_symbol_info::demangled_name): Check for language_rust.
4943
787de330
TT
49442020-04-24 Tom Tromey <tom@tromey.com>
4945
4946 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4947 (dwarf2_physname): ... from here.
4948 (partial_die_info::read): Add Rust "{" hack.
4949
ff985671
TT
49502020-04-24 Tom Tromey <tom@tromey.com>
4951
4952 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4953 method.
4954 (symbol_set_demangled_name): Don't declare.
4955 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4956 symbol_set_demangled_name.
4957 (general_symbol_info::set_language)
4958 (general_symbol_info::compute_and_set_names): Update.
4959 * minsyms.c (minimal_symbol_reader::install): Update.
4960 * dwarf2/read.c (new_symbol): Update.
4961
1acda803
TT
49622020-04-24 Tom Tromey <tromey@adacore.com>
4963
4964 PR python/23662:
4965 * python/py-type.c (convert_field): Handle
4966 FIELD_LOC_KIND_DWARF_BLOCK.
4967 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4968 (typy_get_dynamic): Nw function.
4969 (type_object_getset): Add "dynamic".
4970 * NEWS: Add entry.
4971
d656f129
TT
49722020-04-24 Tom Tromey <tromey@adacore.com>
4973
4974 * ada-typeprint.c (print_choices, print_variant_part)
4975 (print_record_field_types_dynamic): New functions.
4976 (print_record_field_types): Use print_record_field_types_dynamic.
4977
7d79de9a
TT
49782020-04-24 Tom Tromey <tromey@adacore.com>
4979
4980 * dwarf2/read.c (handle_data_member_location): New overload.
4981 (dwarf2_add_field): Use it.
4982 (decode_locdesc): Add "computed" parameter. Update comment.
4983 * gdbtypes.c (is_dynamic_type_internal): Also look for
4984 FIELD_LOC_KIND_DWARF_BLOCK.
4985 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4986 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4987 virtual base classes.
4988 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4989 FIELD_LOC_KIND_DWARF_BLOCK.
4990
f8e89861
TT
49912020-04-24 Tom Tromey <tromey@adacore.com>
4992
4993 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4994 * gdbtypes.c (is_dynamic_type_internal): Check
4995 TYPE_HAS_DYNAMIC_LENGTH.
4996 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4997 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4998 New macros.
4999 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5000 constant.
5001
9c6a1327
TT
50022020-04-24 Tom Tromey <tromey@adacore.com>
5003
5004 * dwarf2/read.c (struct variant_field): Rewrite.
5005 (struct variant_part_builder): New.
5006 (struct nextfield): Remove "variant" field. Add "offset".
5007 (struct field_info): Add "current_variant_part" and
5008 "variant_parts".
5009 (alloc_discriminant_info): Remove.
5010 (alloc_rust_variant): New function.
5011 (quirk_rust_enum): Update.
5012 (dwarf2_add_field): Set "offset" member. Don't handle
5013 DW_TAG_variant_part.
5014 (offset_map_type): New typedef.
5015 (convert_variant_range, create_one_variant)
5016 (create_one_variant_part, create_variant_parts)
5017 (add_variant_property): New functions.
5018 (dwarf2_attach_fields_to_type): Call add_variant_property.
5019 (read_structure_type): Don't handle DW_TAG_variant_part.
5020 (handle_variant_part, handle_variant): New functions.
5021 (handle_struct_member_die): Use them.
5022 (process_structure_scope): Don't handle variant parts.
5023 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5024 (struct discriminant_info): Remove.
5025 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5026 (struct main_type) <flag_discriminated_union>: Remove.
5027 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5028 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5029 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5030 Update.
5031 * valops.c (value_union_variant): Remove.
5032 * value.h (value_union_variant): Don't declare.
5033
b249d2c2
TT
50342020-04-24 Tom Tromey <tromey@adacore.com>
5035
5036 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5037 (ada_value_primitive_packed_val): Update.
5038 * ada-valprint.c (ada_value_print_1): Update.
5039 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5040 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5041 just an address. Use evaluate_for_locexpr_baton.
5042 (dwarf2_evaluate_property): Update.
5043 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5044 array_view.
5045 * findvar.c (default_read_var_value): Update.
5046 * gdbtypes.c (compute_variant_fields_inner)
5047 (resolve_dynamic_type_internal): Update.
5048 (resolve_dynamic_type): Change type of valaddr parameter.
5049 * gdbtypes.h (resolve_dynamic_type): Update.
5050 * valarith.c (value_subscripted_rvalue): Update.
5051 * value.c (value_from_contents_and_address): Update.
5052
61122aa9
TT
50532020-04-24 Tom Tromey <tromey@adacore.com>
5054
5055 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5056 "push_initial_value" parameter.
5057 (dwarf2_evaluate_property): Likewise.
5058 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5059
ef83a141
TT
50602020-04-24 Tom Tromey <tromey@adacore.com>
5061
5062 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5063 (variant::matches, compute_variant_fields_recurse)
5064 (compute_variant_fields_inner, compute_variant_fields): New
5065 functions.
5066 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5067 Use resolved_type after type is made.
5068 (operator==): Add new cases.
5069 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5070 (struct discriminant_range, struct variant, struct variant_part):
5071 New.
5072 (union dynamic_prop_data) <variant_parts, original_type>: New
5073 members.
5074 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5075 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5076 constants.
5077 * value.c (unpack_bits_as_long): Now public.
5078 * value.h (unpack_bits_as_long): Declare.
5079
675127ec
TT
50802020-04-24 Tom Tromey <tromey@adacore.com>
5081
5082 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5083 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5084
9852ceef
HD
50852020-04-24 Hannes Domani <ssbssa@yahoo.de>
5086
5087 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5088
7632c6ce
KR
50892020-04-24 Kamil Rytarowski <n54@gmx.com>
5090
5091 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5092 (remove_fork_catchpoint, post_startup_inferior)
5093 (post_attach): Move...
5094 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5095 (remove_fork_catchpoint, post_startup_inferior)
5096 (post_attach): ...here.
5097 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5098 (remove_fork_catchpoint, post_startup_inferior)
5099 (post_attach): Move...
5100 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5101 (remove_fork_catchpoint, post_startup_inferior)
5102 (post_attach): ...here.
5103
7be2bb4f
TT
51042020-04-24 Tom Tromey <tromey@adacore.com>
5105
5106 * nat/windows-nat.h (struct windows_thread_info)
5107 <pc_adjusted>: New member.
5108 * windows-nat.c (windows_fetch_one_register): Check
5109 pc_adjusted.
5110 (windows_nat_target::get_windows_debug_event)
5111 (windows_nat_target::wait): Set pc_adjusted.
5112
f80cb3b4
TV
51132020-04-24 Tom de Vries <tdevries@suse.de>
5114
5115 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5116 Run gdb-add-index inside temp dir.
5117
29514b87
TT
51182020-04-23 Tom Tromey <tromey@adacore.com>
5119
5120 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5121 in loop.
5122
5939967b
LM
51232020-04-23 Luis Machado <luis.machado@linaro.org>
5124
5125 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5126 get_frame_register instead of gdbarch_unwind_pc.
5127
70bc38f5
TV
51282020-04-23 Tom de Vries <tdevries@suse.de>
5129
5130 * symtab.c (lookup_global_symbol): Prefer def over decl.
5131
de82891c
TV
51322020-04-23 Tom de Vries <tdevries@suse.de>
5133
5134 PR symtab/25807
5135 * block.c (best_symbol, better_symbol): Promote to external.
5136 * block.h (best_symbol, better_symbol): Declare.
5137 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5138 decl.
5139
ecc6c606
TT
51402020-04-23 Tom Tromey <tromey@adacore.com>
5141
5142 PR ada/25837:
5143 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5144 "const char *", not a "const std::string &".
5145 <name_and_matcher::operator==>: Update.
5146 * unittests/lookup_name_info-selftests.c: Change type of
5147 "result".
5148
740480b8
TT
51492020-04-23 Tom Tromey <tom@tromey.com>
5150
5151 * inferior.h (iterate_over_inferiors): Don't declare.
5152 * inferior.c (iterate_over_inferiors): Remove.
5153 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5154 Remove.
5155 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5156 use iterate_over_inferiors.
5157 (darwin_resume_inferior_it)
5158 (struct resume_inferior_threads_param)
5159 (darwin_resume_inferior_threads_it): Remove.
5160 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5161
ae3ab1f0
TV
51622020-04-23 Tom de Vries <tdevries@suse.de>
5163
5164 * blockframe.c (find_pc_partial_function): Use
5165 find_pc_sect_compunit_symtab rather than
5166 objfile->sf->qf->find_pc_sect_compunit_symtab.
5167
317d2668
TV
51682020-04-22 Tom de Vries <tdevries@suse.de>
5169
5170 PR symtab/25764
5171 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5172 in psymtabs.
5173
eea9e357
TV
51742020-04-22 Tom de Vries <tdevries@suse.de>
5175
5176 PR symtab/25801
5177 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5178 symtabs.
5179
3d5afab3
TV
51802020-04-22 Tom de Vries <tdevries@suse.de>
5181
5182 PR symtab/25700
5183 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5184 CU if already created.
5185
d43b7a2d
TBA
51862020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5187
5188 * infrun.c (displaced_step_fixup): Switch to the event_thread
5189 before calling displaced_step_restore, not after.
5190
d89edf9b
MM
51912020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5192
5193 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5194 its inferior is not recorded by us.
5195 (record_btrace_target_open): Replace call to
5196 all_non_exited_threads () with call to current_inferior
5197 ()->non_exited_threads ().
5198 (record_btrace_target::stop_recording): Likewise.
5199 (record_btrace_target::close): Likewise.
5200 (record_btrace_target::wait): Likewise.
5201 (record_btrace_target::record_stop_replaying): Likewise.
5202
5897fd49
MM
52032020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5204
5205 * btrace.c (btrace_enable): Throw an error on double enables and
5206 when enabling recording fails.
5207 (btrace_disable): Throw an error if the thread is not recorded.
5208
1a476b6d
MM
52092020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5210
5211 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5212 request if we do not have a thread_info.
5213
4778a5f8
TV
52142020-04-21 Tom de Vries <tdevries@suse.de>
5215
5216 PR gdb/25471
5217 * thread.c
5218 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5219 exception in get_frame_id.
5220
0fa7617d
TT
52212020-04-20 Tom Tromey <tromey@adacore.com>
5222
5223 * python/python.c (struct gdbpy_event): Mark move constructor as
5224 noexcept.
5225 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5226 constructor as noexcept.
5227 * completer.h (struct completion_result): Mark move constructor as
5228 noexcept.
5229 * completer.c (completion_result::completion_result): Use
5230 initialization style. Don't call reset_match_list.
5231
ad23bda0
MS
52322020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5233
5234 * MAINTAINERS (Write After Approval): Add myself.
5235
45e1f031
TT
52362020-04-18 Tom Tromey <tom@tromey.com>
5237
5238 * windows-tdep.c (init_w32_command_list)
5239 (w32_prefix_command_valid): Restore.
5240 (_initialize_windows_tdep): Call init_w32_command_list.
5241
08feed99
TT
52422020-04-18 Tom Tromey <tom@tromey.com>
5243
5244 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5245 * value.c (value_fn_field): Update.
5246 * valops.c (find_function_in_inferior)
5247 (value_allocate_space_in_inferior): Update.
5248 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5249 Update.
5250 * tui/tui-source.c (tui_source_window::set_contents): Update.
5251 * symtab.c (lookup_global_or_static_symbol)
5252 (find_function_start_sal_1, skip_prologue_sal)
5253 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5254 * symmisc.c (dump_msymbols, dump_symtab_1)
5255 (maintenance_print_one_line_table): Update.
5256 * symfile.c (init_entry_point_info, section_is_mapped)
5257 (list_overlays_command, simple_read_overlay_table)
5258 (simple_overlay_update_1): Update.
5259 * stap-probe.c (handle_stap_probe): Update.
5260 * stabsread.c (dbx_init_float_type, define_symbol)
5261 (read_one_struct_field, read_enum_type, read_range_type): Update.
5262 * source.c (info_line_command): Update.
5263 * python/python.c (gdbpy_source_objfile_script)
5264 (gdbpy_execute_objfile_script): Update.
5265 * python/py-type.c (save_objfile_types): Update.
5266 * python/py-objfile.c (py_free_objfile): Update.
5267 * python/py-inferior.c (python_new_objfile): Update.
5268 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5269 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5270 (maintenance_check_psymtabs): Update.
5271 * printcmd.c (info_address_command): Update.
5272 * objfiles.h (struct objfile) <arch>: New method, from
5273 get_objfile_arch.
5274 (get_objfile_arch): Don't declare.
5275 * objfiles.c (get_objfile_arch): Remove.
5276 (filter_overlapping_sections): Update.
5277 * minsyms.c (msymbol_is_function): Update.
5278 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5279 (output_nondebug_symbol): Update.
5280 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5281 (mdebug_expand_psymtab): Update.
5282 * machoread.c (macho_add_oso_symfile): Update.
5283 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5284 Update.
5285 * linux-fork.c (checkpoint_command): Update.
5286 * linespec.c (convert_linespec_to_sals): Update.
5287 * jit.c (finalize_symtab): Update.
5288 * infrun.c (insert_exception_resume_from_probe): Update.
5289 * ia64-tdep.c (ia64_find_unwind_table): Update.
5290 * hppa-tdep.c (internalize_unwinds): Update.
5291 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5292 Update.
5293 * gcore.c (call_target_sbrk): Update.
5294 * elfread.c (record_minimal_symbol, elf_symtab_read)
5295 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5296 (elf_gnu_ifunc_resolve_by_got): Update.
5297 * dwarf2/read.c (create_addrmap_from_index)
5298 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5299 (read_debug_names_from_section)
5300 (process_psymtab_comp_unit_reader, add_partial_symbol)
5301 (add_partial_subprogram, process_full_comp_unit)
5302 (read_file_scope, read_func_scope, read_lexical_block_scope)
5303 (read_call_site_scope, dwarf2_ranges_read)
5304 (dwarf2_record_block_ranges, dwarf2_add_field)
5305 (mark_common_block_symbol_computed, read_tag_pointer_type)
5306 (read_tag_string_type, dwarf2_init_float_type)
5307 (dwarf2_init_complex_target_type, read_base_type)
5308 (partial_die_info::read, partial_die_info::read)
5309 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5310 (dwarf2_fetch_die_loc_sect_off): Update.
5311 * dwarf2/loc.c (dwarf2_find_location_expression)
5312 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5313 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5314 (dwarf2_loc_desc_get_symbol_read_needs)
5315 (locexpr_describe_location_piece, locexpr_describe_location_1)
5316 (loclist_describe_location): Update.
5317 * dwarf2/index-write.c (write_debug_names): Update.
5318 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5319 * dtrace-probe.c (dtrace_process_dof): Update.
5320 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5321 (process_one_symbol): Update.
5322 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5323 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5324 (coff_read_enum_type): Update.
5325 * cli/cli-cmds.c (edit_command, list_command): Update.
5326 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5327 * breakpoint.c (create_overlay_event_breakpoint)
5328 (create_longjmp_master_breakpoint)
5329 (create_std_terminate_master_breakpoint)
5330 (create_exception_master_breakpoint, get_sal_arch): Update.
5331 * block.c (block_gdbarch): Update.
5332 * annotate.c (annotate_source_line): Update.
5333
0743fc83
TT
53342020-04-17 Tom Tromey <tromey@adacore.com>
5335
5336 * auto-load.c (show_auto_load_cmd): Remove.
5337 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5338 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5339 (maintenance_print_arc_command): Remove.
5340 * tui/tui-win.c (tui_command): Remove.
5341 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5342 * tui/tui-layout.c (tui_layout_command): Remove.
5343 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5344 * python/python.c (user_set_python, user_show_python): Remove.
5345 (_initialize_python): Use add_basic_prefix_cmd,
5346 add_show_prefix_cmd.
5347 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5348 (install_gdb_commands): Use add_basic_prefix_cmd,
5349 add_show_prefix_cmd.
5350 (info_guile_command): Remove.
5351 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5352 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5353 add_show_prefix_cmd.
5354 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5355 Remove do_set and do_show parameters.
5356 * cli/cli-style.c (set_style, show_style): Remove.
5357 (_initialize_cli_style): Use add_basic_prefix_cmd,
5358 add_show_prefix_cmd.
5359 (cli_style_option::add_setshow_commands): Remove do_set and
5360 do_show parameters.
5361 (cli_style_option::add_setshow_commands): Use
5362 add_basic_prefix_cmd, add_show_prefix_cmd.
5363 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5364 (set_style_name): Remove.
5365 * cli/cli-dump.c (dump_command, append_command): Remove.
5366 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5367 (tekhex_dump_command, binary_dump_command)
5368 (binary_append_command): Remove.
5369 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5370 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5371 (init_w32_command_list): Remove; move into ...
5372 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5373 * valprint.c (set_print, show_print, set_print_raw)
5374 (show_print_raw): Remove.
5375 (_initialize_valprint): Use add_basic_prefix_cmd,
5376 add_show_prefix_cmd.
5377 * typeprint.c (set_print_type, show_print_type): Remove.
5378 (_initialize_typeprint): Use add_basic_prefix_cmd,
5379 add_show_prefix_cmd.
5380 * record.c (set_record_command, show_record_command): Remove.
5381 (_initialize_record): Use add_basic_prefix_cmd,
5382 add_show_prefix_cmd.
5383 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5384 add_show_prefix_cmd.
5385 (info_command, show_command, set_debug, show_debug): Remove.
5386 * top.h (set_history, show_history): Don't declare.
5387 * top.c (set_history, show_history): Remove.
5388 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5389 (unset_tdesc_cmd): Remove.
5390 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5391 add_show_prefix_cmd.
5392 * symtab.c (info_module_command): Remove.
5393 (_initialize_symtab): Use add_basic_prefix_cmd.
5394 * symfile.c (overlay_command): Remove.
5395 (_initialize_symfile): Use add_basic_prefix_cmd.
5396 * sparc64-tdep.c (info_adi_command): Remove.
5397 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5398 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5399 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5400 add_show_prefix_cmd.
5401 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5402 (_initialize_serial): Use add_basic_prefix_cmd,
5403 add_show_prefix_cmd.
5404 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5405 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5406 add_show_prefix_cmd.
5407 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5408 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5409 add_show_prefix_cmd.
5410 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5411 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5412 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5413 add_show_prefix_cmd.
5414 * remote.c (remote_command, set_remote_cmd): Remove.
5415 (_initialize_remote): Use add_basic_prefix_cmd.
5416 * record-full.c (set_record_full_command)
5417 (show_record_full_command): Remove.
5418 (_initialize_record_full): Use add_basic_prefix_cmd,
5419 add_show_prefix_cmd.
5420 * record-btrace.c (cmd_set_record_btrace)
5421 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5422 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5423 (cmd_show_record_btrace_pt): Remove.
5424 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5425 add_show_prefix_cmd.
5426 * ravenscar-thread.c (set_ravenscar_command)
5427 (show_ravenscar_command): Remove.
5428 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5429 add_show_prefix_cmd.
5430 * mips-tdep.c (show_mips_command, set_mips_command)
5431 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5432 add_show_prefix_cmd.
5433 * maint.c (maintenance_command, maintenance_info_command)
5434 (maintenance_check_command, maintenance_print_command)
5435 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5436 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5437 add_show_prefix_cmd.
5438 (show_per_command_cmd): Remove.
5439 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5440 Remove.
5441 (maintenance_show_test_settings_cmd): Remove.
5442 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5443 add_show_prefix_cmd.
5444 * maint-test-options.c (maintenance_test_options_command):
5445 Remove.
5446 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5447 * macrocmd.c (macro_command): Remove
5448 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5449 * language.c (set_check, show_check): Remove.
5450 (_initialize_language): Use add_basic_prefix_cmd,
5451 add_show_prefix_cmd.
5452 * infcmd.c (unset_command): Remove.
5453 (_initialize_infcmd): Use add_basic_prefix_cmd.
5454 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5455 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5456 add_show_prefix_cmd.
5457 * go32-nat.c (go32_info_dos_command): Remove.
5458 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5459 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5460 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5461 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5462 (_initialize_frame): Use add_basic_prefix_cmd,
5463 add_show_prefix_cmd.
5464 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5465 (_initialize_dcache): Use add_basic_prefix_cmd,
5466 add_show_prefix_cmd.
5467 * cp-support.c (maint_cplus_command): Remove.
5468 (_initialize_cp_support): Use add_basic_prefix_cmd.
5469 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5470 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5471 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5472 add_basic_prefix_cmd, add_show_prefix_cmd.
5473 * breakpoint.c (save_command): Remove.
5474 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5475 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5476 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5477 add_show_prefix_cmd.
5478 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5479 (set_ada_command, show_ada_command): Remove.
5480 (_initialize_ada_language): Use add_basic_prefix_cmd,
5481 add_show_prefix_cmd.
5482 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5483
3557f442
KR
54842020-04-16 Kamil Rytarowski <n54@gmx.com>
5485
5486 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5487 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5488
16197208
SM
54892020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5490
5491 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5492 warning messages.
5493
00ac85d3
SM
54942020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5495
5496 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5497 import table is not at beginning of .idata section.
5498
381ce63f
PA
54992020-04-16 Pedro Alves <palves@redhat.com>
5500
5501 * inferior.c (delete_inferior): Use delete operator directly
5502 instead of delete_program_space.
5503 * progspace.c (add_program_space): New, factored out from
5504 program_space::program_space.
5505 (remove_program_space): New, factored out from
5506 delete_program_space.
5507 (program_space::program_space): Remove intro comment. Rewrite.
5508 (program_space::~program_space): Remove intro comment. Call
5509 remove_program_space.
5510 (delete_program_space): Delete.
5511 * progspace.h (program_space::program_space): Make explicit. Move
5512 intro comment here, adjusted.
5513 (program_space::~program_space): Move intro comment here,
5514 adjusted.
5515 (delete_program_space): Remove.
5516
a010605f
TT
55172020-04-16 Tom Tromey <tromey@adacore.com>
5518
5519 * windows-nat.c (windows_nat::handle_access_violation): New
5520 function.
5521 * nat/windows-nat.h (handle_access_violation): Declare.
5522 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5523 windows-nat.c. Call handle_access_violation.
5524
efba5c23
TV
55252020-04-16 Tom de Vries <tdevries@suse.de>
5526
5527 PR symtab/25791
5528 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5529 CUs without psymtab.
5530
97ed802d
KB
55312020-04-16 Kevin Buettner <kevinb@redhat.com>
5532
5533 * python/python.c (do_start_initialization): Don't call
5534 PyEval_InitThreads for Python 3.9 and beyond.
5535
c7d64809
KR
55362020-04-15 Kamil Rytarowski <n54@gmx.com>
5537
5538 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5539 thread functions.
5540 (obsd_nat_target::wait): Likewise.
5541
ce127a96
TT
55422020-04-15 Tom Tromey <tromey@adacore.com>
5543
5544 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5545 (DEBUG_EXCEPT): Use debug_printf.
5546
99f1bc6a
AB
55472020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5548
5549 * completer.c (class completion_tracker::completion_hash_entry)
5550 <hash_name>: New member function.
5551 (completion_tracker::discard_completions): New callback to hash a
5552 completion_hash_entry, pass this to htab_create_alloc.
5553
a0e9b532
JT
55542016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5555
5556 * windows-nat.c (windows_make_so): Warn rather than stopping with
5557 an error if realpath() fails.
5558
06ca5dd4
KR
55592020-04-14 Kamil Rytarowski <n54@gmx.com>
5560
5561 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5562 (nbsd_nat_target::info_proc): Add do_status.
5563
194d088f
TV
55642020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5565 Tom de Vries <tdevries@suse.de>
5566
5567 PR symtab/25718
5568 * psympriv.h (struct partial_symtab::read_symtab)
5569 (struct partial_symtab::expand_psymtab)
5570 (struct partial_symtab::read_dependencies): Update comments.
5571 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5572 read_symtab for includer.
5573 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5574 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5575 (struct dwarf2_include_psymtab::m_readin): Remove.
5576 (struct dwarf2_include_psymtab::includer): New member function.
5577 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5578
c1a66c06
TV
55792020-04-14 Tom de Vries <tdevries@suse.de>
5580
5581 PR symtab/25720
5582 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5583 with NULL symbol_matcher and lookup_name.
5584 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5585 and lookup_name.
5586 * dwarf2/read.c (dw2_expand_symtabs_matching)
5587 (dw2_debug_names_expand_symtabs_matching): Same.
5588 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5589 Make lookup_name a pointer. Update comment.
5590 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5591 lookup_name being a pointer.
5592 * symfile.c (expand_symtabs_matching): Same.
5593 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5594 * linespec.c (iterate_over_all_matching_symtabs): Same.
5595
400b5eca
TT
55962020-04-13 Tom Tromey <tom@tromey.com>
5597
5598 * run-on-main-thread.c: Update include.
5599 * unittests/main-thread-selftests.c: Update include.
5600 * tui/tui-win.c: Update include.
5601 * tui/tui-io.c: Update include.
5602 * tui/tui-interp.c: Update include.
5603 * tui/tui-hooks.c: Update include.
5604 * top.h: Update include.
5605 * top.c: Update include.
5606 * ser-base.c: Update include.
5607 * remote.c: Update include.
5608 * remote-notif.c: Update include.
5609 * remote-fileio.c: Update include.
5610 * record-full.c: Update include.
5611 * record-btrace.c: Update include.
5612 * python/python.c: Update include.
5613 * posix-hdep.c: Update include.
5614 * mingw-hdep.c: Update include.
5615 * mi/mi-main.c: Update include.
5616 * mi/mi-interp.c: Update include.
5617 * main.c: Update include.
5618 * linux-nat.c: Update include.
5619 * interps.c: Update include.
5620 * infrun.c: Update include.
5621 * inf-loop.c: Update include.
5622 * event-top.c: Update include.
5623 * event-loop.c: Move to ../gdbsupport/.
5624 * event-loop.h: Move to ../gdbsupport/.
5625 * async-event.h: Update include.
5626 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5627
93b54c8e
TT
56282020-04-13 Tom Tromey <tom@tromey.com>
5629
5630 * tui/tui-win.c: Include async-event.h.
5631 * remote.c: Include async-event.h.
5632 * remote-notif.c: Include async-event.h.
5633 * record-full.c: Include async-event.h.
5634 * record-btrace.c: Include async-event.h.
5635 * infrun.c: Include async-event.h.
5636 * event-top.c: Include async-event.h.
5637 * event-loop.h: Move some declarations to async-event.h.
5638 * event-loop.c: Don't include ser-event.h or top.h. Move some
5639 code to async-event.c.
5640 * async-event.h: New file.
5641 * async-event.c: New file.
5642 * Makefile.in (COMMON_SFILES): Add async-event.c.
5643 (HFILES_NO_SRCDIR): Add async-event.h.
5644
c1cd3163
TT
56452020-04-13 Tom Tromey <tom@tromey.com>
5646
5647 * utils.c (flush_streams): New function.
5648 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5649
29f2bf4f
TT
56502020-04-13 Tom Tromey <tom@tromey.com>
5651
5652 * event-loop.c (handle_file_event): Use warning, not
5653 printf_unfiltered.
5654
98029d02
TT
56552020-04-13 Tom Tromey <tom@tromey.com>
5656
5657 * event-loop.c: Include <chrono>.
5658
06cc9596
TT
56592020-04-13 Tom Tromey <tom@tromey.com>
5660
5661 * gdb_select.h: Move to ../gdbsupport/.
5662 * event-loop.c: Update include path.
5663 * top.c: Update include path.
5664 * ser-base.c: Update include path.
5665 * ui-file.c: Update include path.
5666 * ser-tcp.c: Update include path.
5667 * guile/scm-ports.c: Update include path.
5668 * posix-hdep.c: Update include path.
5669 * ser-unix.c: Update include path.
5670 * gdb_usleep.c: Update include path.
5671 * mingw-hdep.c: Update include path.
5672 * inflow.c: Update include path.
5673 * infrun.c: Update include path.
5674 * event-top.c: Update include path.
5675
8ae8e197
TT
56762020-04-13 Tom Tromey <tom@tromey.com>
5677
5678 * configure: Rebuild.
5679 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5680
58cf28e8
TT
56812020-04-13 Tom Tromey <tom@tromey.com>
5682
5683 * event-loop.h (start_event_loop): Don't declare.
5684 * event-loop.c (start_event_loop): Move...
5685 * main.c (start_event_loop): ...here. Now static.
5686
b7f999ae
SDJ
56872020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5688
5689 * MAINTAINERS: Update my email address.
5690
1085dfd4
KR
56912020-04-12 Kamil Rytarowski <n54@gmx.com>
5692
5693 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5694 IP_ALL.
5695
49d1d1f5
KR
56962020-04-12 Kamil Rytarowski <n54@gmx.com>
5697
5698 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5699 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5700
b4848d2a
KR
57012020-04-12 Kamil Rytarowski <n54@gmx.com>
5702
5703 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5704 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5705
51c133d5
KR
57062020-04-12 Kamil Rytarowski <n54@gmx.com>
5707
5708 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5709
54b8cbd0
KR
57102020-04-11 Kamil Rytarowski <n54@gmx.com>
5711
5712 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5713 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5714 (nbsd_nat_target::info_proc): New functions.
5715 * nbsd-nat.c (kinfo_get_vmmap): New function.
5716 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5717 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5718 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5719 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5720 functions.
5721 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5722 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5723 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5724 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5725 (KINFO_VME_FLAG_GROWS_DOWN): New.
5726
cf83625d
AS
57272020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5728
5729 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5730 bit shift.
5731
0c4311ab
TT
57322020-04-10 Tom Tromey <tromey@adacore.com>
5733
5734 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5735
3e65b3e9
TT
57362020-04-10 Tom Tromey <tromey@adacore.com>
5737
5738 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5739 separate debug files.
5740
13302e95
HD
57412020-04-10 Hannes Domani <ssbssa@yahoo.de>
5742
5743 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5744 Move to...
5745 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5746 ... here.
5747 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5748 Check for STATUS_WX86_BREAKPOINT.
5749 (windows_nat_target::wait): Same.
5750
bdfc1e8a
TV
57512020-04-10 Tom de Vries <tdevries@suse.de>
5752
5753 PR cli/25808
5754 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5755
f4460aec
SM
57562020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5757
5758 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5759 (Write After Approval): Remove Tom de Vries.
5760
a25198bb
BE
57612020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5762
5763 revert partially:
5764 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5765
aac66a4c
SM
5766 * buildsym.c (record_line): Fix undefined behavior and preserve
5767 lines at eof.
a25198bb 5768
206c98a6
KR
57692020-04-09 Kamil Rytarowski <n54@gmx.com>
5770
5771 * auxv.h (svr4_auxv_parse): New.
5772 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5773 and generic_auxv_parse.
5774 (svr4_auxv_parse): Add.
5775 * obsd-tdep.c: Include "auxv.h".
5776 (obsd_auxv_parse): Remove.
5777 (obsd_init_abi): Remove comment.
5778 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5779 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5780 * nbsd-tdep.c: Include "auxv.h".
5781 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5782
71fbdbaf
TT
57832020-04-08 Tom Tromey <tromey@adacore.com>
5784
5785 * nat/windows-nat.h (last_wait_event): Don't declare.
5786 (wait_for_debug_event): Update comment.
5787 * nat/windows-nat.c (last_wait_event): Now static.
5788
2c1d95e8
TT
57892020-04-08 Tom Tromey <tromey@adacore.com>
5790
5791 * windows-nat.c (wait_for_debug_event): Move to
5792 nat/windows-nat.c.
5793 * nat/windows-nat.h (wait_for_debug_event): Declare.
5794 * nat/windows-nat.c (wait_for_debug_event): Move from
5795 windows-nat.c. No longer static.
5796
d2977bc4
TT
57972020-04-08 Tom Tromey <tromey@adacore.com>
5798
5799 * windows-nat.c (get_windows_debug_event): Use
5800 fetch_pending_stop.
5801 * nat/windows-nat.h (fetch_pending_stop): Declare.
5802 * nat/windows-nat.c (fetch_pending_stop): New function.
5803
e758e19c
TT
58042020-04-08 Tom Tromey <tromey@adacore.com>
5805
5806 * windows-nat.c (windows_continue): Use matching_pending_stop and
5807 continue_last_debug_event.
5808 * nat/windows-nat.h (matching_pending_stop)
5809 (continue_last_debug_event): Declare.
5810 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5811 (matching_pending_stop, continue_last_debug_event): New
5812 functions.
5813
8d30e395
TT
58142020-04-08 Tom Tromey <tromey@adacore.com>
5815
5816 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5817 (handle_exception_result): Move to nat/windows-nat.h.
5818 (DEBUG_EXCEPTION_SIMPLE): Remove.
5819 (windows_nat::handle_ms_vc_exception): New function.
5820 (handle_exception): Move to nat/windows-nat.c.
5821 (get_windows_debug_event): Update.
5822 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5823 nat/windows-nat.c.
5824 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5825 (handle_exception_result): Move from windows-nat.c.
5826 (handle_exception): Declare.
5827 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5828 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5829 windows-nat.c.
5830
29de418d
TT
58312020-04-08 Tom Tromey <tromey@adacore.com>
5832
5833 * windows-nat.c (exception_count, event_count): Remove.
5834 (handle_exception, get_windows_debug_event)
5835 (do_initial_windows_stuff): Update.
5836
a816ba18
TT
58372020-04-08 Tom Tromey <tromey@adacore.com>
5838
5839 * windows-nat.c (windows_nat::handle_load_dll)
5840 (windows_nat::handle_unload_dll): Rename. No longer static.
5841 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5842 Declare.
5843
a00caa12
TT
58442020-04-08 Tom Tromey <tromey@adacore.com>
5845
5846 * complaints.h (stop_whining): Declare at top-level.
5847 (complaint): Don't declare stop_whining.
5848
d41b524f
TT
58492020-04-08 Tom Tromey <tromey@adacore.com>
5850
5851 * windows-nat.c (windows_nat::handle_output_debug_string):
5852 Rename. No longer static.
5853 * nat/windows-nat.h (handle_output_debug_string): Declare.
5854
3c76026d
TT
58552020-04-08 Tom Tromey <tromey@adacore.com>
5856
5857 * windows-nat.c (current_process_handle, current_process_id)
5858 (main_thread_id, last_sig, current_event, last_wait_event)
5859 (current_windows_thread, desired_stop_thread_id, pending_stops)
5860 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5861 (display_selectors, fake_create_process)
5862 (get_windows_debug_event): Update.
5863 * nat/windows-nat.h (current_process_handle, current_process_id)
5864 (main_thread_id, last_sig, current_event, last_wait_event)
5865 (current_windows_thread, desired_stop_thread_id, pending_stops)
5866 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5867 * nat/windows-nat.c (current_process_handle, current_process_id)
5868 (main_thread_id, last_sig, current_event, last_wait_event)
5869 (current_windows_thread, desired_stop_thread_id, pending_stops)
5870 (siginfo_er): New globals. Move from windows-nat.c.
5871
9d8679cc
TT
58722020-04-08 Tom Tromey <tromey@adacore.com>
5873
5874 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5875 (handle_load_dll): Update.
5876 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5877
28688adf
TT
58782020-04-08 Tom Tromey <tromey@adacore.com>
5879
5880 * windows-nat.c (enum thread_disposition_type): Move to
5881 nat/windows-nat.h.
5882 (windows_nat::thread_rec): Rename from thread_rec. No longer
5883 static.
5884 (windows_add_thread, windows_nat_target::fetch_registers)
5885 (windows_nat_target::store_registers, handle_exception)
5886 (windows_nat_target::resume, get_windows_debug_event)
5887 (windows_nat_target::get_tib_address)
5888 (windows_nat_target::thread_name)
5889 (windows_nat_target::thread_alive): Update.
5890 * nat/windows-nat.h (enum thread_disposition_type): Move from
5891 windows-nat.c.
5892 (thread_rec): Declare.
5893
4834dad0
TT
58942020-04-08 Tom Tromey <tromey@adacore.com>
5895
5896 * windows-nat.c: Add "using namespace".
5897 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5898 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5899
65bafd5b
TT
59002020-04-08 Tom Tromey <tromey@adacore.com>
5901
5902 * nat/windows-nat.h (struct windows_thread_info): Declare
5903 destructor.
5904 * nat/windows-nat.c (~windows_thread_info): New.
5905
0a4afda3
TT
59062020-04-08 Tom Tromey <tromey@adacore.com>
5907
5908 PR gdb/22992
5909 * windows-nat.c (current_event): Update comment.
5910 (last_wait_event, desired_stop_thread_id): New globals.
5911 (struct pending_stop): New.
5912 (pending_stops): New global.
5913 (windows_nat_target) <stopped_by_sw_breakpoint>
5914 <supports_stopped_by_sw_breakpoint>: New methods.
5915 (windows_fetch_one_register): Add assertions. Adjust PC.
5916 (windows_continue): Handle pending stops. Suspend other threads
5917 when stepping. Use last_wait_event
5918 (wait_for_debug_event): New function.
5919 (get_windows_debug_event): Use wait_for_debug_event. Handle
5920 pending stops. Queue spurious stops.
5921 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5922 (windows_nat_target::kill): Use wait_for_debug_event.
5923 * nat/windows-nat.h (struct windows_thread_info)
5924 <stopped_at_software_breakpoint>: New field.
5925 * nat/windows-nat.c (windows_thread_info::resume): Clear
5926 stopped_at_software_breakpoint.
5927
8e61ebec
TT
59282020-04-08 Tom Tromey <tromey@adacore.com>
5929
5930 * windows-nat.c (enum thread_disposition_type): New.
5931 (thread_rec): Replace "get_context" parameter with "disposition";
5932 change type.
5933 (windows_add_thread, windows_nat_target::fetch_registers)
5934 (windows_nat_target::store_registers, handle_exception)
5935 (windows_nat_target::resume, get_windows_debug_event)
5936 (windows_nat_target::get_tib_address)
5937 (windows_nat_target::thread_name)
5938 (windows_nat_target::thread_alive): Update.
5939
98a03287
TT
59402020-04-08 Tom Tromey <tromey@adacore.com>
5941
5942 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5943 (windows_continue): Use windows_continue::resume.
5944 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5945 resume>: Declare new methods.
5946 * nat/windows-nat.c: New file.
5947 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5948
7c7411bc
TT
59492020-04-08 Tom Tromey <tromey@adacore.com>
5950
5951 * windows-nat.c (windows_add_thread, windows_delete_thread)
5952 (windows_nat_target::fetch_registers)
5953 (windows_nat_target::store_registers, fake_create_process)
5954 (windows_nat_target::resume, windows_nat_target::resume)
5955 (get_windows_debug_event, windows_nat_target::wait)
5956 (windows_nat_target::pid_to_str)
5957 (windows_nat_target::get_tib_address)
5958 (windows_nat_target::get_ada_task_ptid)
5959 (windows_nat_target::thread_name)
5960 (windows_nat_target::thread_alive): Use lwp, not tid.
5961
2950fdf7
TT
59622020-04-08 Tom Tromey <tromey@adacore.com>
5963
5964 * windows-nat.c (handle_exception)
5965 (windows_nat_target::thread_name): Update.
5966 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5967 <name>: Now unique_xmalloc_ptr.
5968
62fe396b
TT
59692020-04-08 Tom Tromey <tromey@adacore.com>
5970
5971 * windows-nat.c (thread_rec)
5972 (windows_nat_target::fetch_registers): Update.
5973 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5974 Update comment.
5975 <debug_registers_changed, reload_context>: Now bool.
5976
e9534bd2
TT
59772020-04-08 Tom Tromey <tromey@adacore.com>
5978
5979 * windows-nat.c (windows_add_thread): Use new.
5980 (windows_init_thread_list, windows_delete_thread): Use delete.
5981 (get_windows_debug_event): Update.
5982 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5983 destructor, and initializers.
5984
ae1f8880
TT
59852020-04-08 Tom Tromey <tromey@adacore.com>
5986
5987 * windows-nat.c (struct windows_thread_info): Remove.
5988 * nat/windows-nat.h: New file.
5989
55a1e039
TT
59902020-04-08 Tom Tromey <tromey@adacore.com>
5991
5992 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5993 (thread_rec, windows_add_thread, windows_delete_thread)
5994 (windows_continue): Update.
5995
93366324
TT
59962020-04-08 Tom Tromey <tromey@adacore.com>
5997
5998 * windows-nat.c (struct windows_thread_info): Remove typedef.
5999 (thread_head): Remove.
6000 (thread_list): New global.
6001 (thread_rec, windows_add_thread, windows_init_thread_list)
6002 (windows_delete_thread, windows_continue): Update.
6003
0f2265e2
SM
60042020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6005
6006 * windows-tdep.h (windows_init_abi): Add comment.
6007 (cygwin_init_abi): New declaration.
6008 * windows-tdep.c: Split signal enumeration in two, one for
6009 Windows and one for Cygwin.
6010 (windows_gdb_signal_to_target): Only deal with signal of the
6011 Windows OS ABI.
6012 (cygwin_gdb_signal_to_target): New function.
6013 (windows_init_abi): Rename to windows_init_abi_common, don't set
6014 gdb_signal_to_target gdbarch method. Add new new function with
6015 this name.
6016 (cygwin_init_abi): New function.
6017 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6018 comment. Don't call windows_init_abi.
6019 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6020 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6021 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6022 i386_windows_init_abi_common, don't call windows_init_abi. Add
6023 a new function of this name.
6024 (i386_cygwin_init_abi): New function.
6025 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6026 OS ABI Cygwin.
6027
3810f182
SM
60282020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6029
6030 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6031 parameter.c.
6032 (dwarf2_read_gdb_index): Update.
6033
063f8e80
KR
60342020-04-07 Kamil Rytarowski <n54@gmx.com>
6035
6036 * nbsd-tdep.c: Include "objfiles.h".
6037 (nbsd_skip_solib_resolver): New.
6038 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6039
85a9510c 60402020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6041
6042 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6043 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6044 with DW_LLE_base_addressx are being emitted in DWARFv5.
6045 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6046 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6047 unsigned integer.
6048
9fc3eaae 60492020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6050
6051 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6052 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6053 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6054 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6055 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6056 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6057 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6058
6059
41144253 60602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6061
6062 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6063 (read_loclist_index): New function definition.
6064 (lookup_loclist_base): New function definition.
6065 (read_loclist_header): New function definition.
6066 (dwarf2_cu): Add loclist_base and loclist_header field.
6067 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6068 (read_full_die_1): Read the value of DW_AT_loclists_base.
6069 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6070 (read_attribute_value): Handle DW_FORM_loclistx.
6071 (skip_one_die): Handle DW_FORM_loclistx.
6072 (loclist_header): New structure declaration.
6073 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6074
9f4e76a4
SM
60752020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6076
6077 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6078 constructor. Remove `addr` parameter from other constructor and
6079 add `per_cu` parameter.
6080 * dwarf2/read.c (create_partial_symtab): Update.
6081
25c11aca
TV
60822020-04-07 Tom de Vries <tdevries@suse.de>
6083
6084 PR symtab/25796
6085 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6086 (partial_die_info::fixup): Inherit has_const_value.
6087
5707e24b
TV
60882020-04-07 Tom de Vries <tdevries@suse.de>
6089
6090 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6091 symbols without address.
6092
05f00e22
KR
60932020-04-06 Kamil Rytarowski <n54@gmx.com>
6094
6095 * nbsd-nat.h (struct thread_info): Add forward declaration.
6096 (nbsd_nat_target::thread_alive): Add.
6097 (nbsd_nat_target::thread_name): Likewise.
6098 (nbsd_nat_target::update_thread_list): Likewise.
6099 (update_thread_list::post_attach): Likewise.
6100 (post_attach::pid_to_str): Likewise.
6101 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6102 (nbsd_thread_lister): Add.
6103 (nbsd_nat_target::thread_alive): Likewise.
6104 (nbsd_nat_target::thread_name): Likewise.
6105 (nbsd_add_threads): Likewise.
6106 (update_thread_list::post_attach): Likewise.
6107 (nbsd_nat_target::update_thread_list): Likewise.
6108 (post_attach::pid_to_str): Likewise.
6109
6ee448cc
TT
61102020-04-06 Tom Tromey <tromey@adacore.com>
6111
6112 * ada-valprint.c (print_variant_part): Extract the variant field.
6113 (print_field_values): Use the field as the outer value when
6114 recursing.
6115
dea34e8c
TT
61162020-04-06 Tom Tromey <tromey@adacore.com>
6117
6118 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6119 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6120 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6121 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6122 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6123
93689ce9
TT
61242020-04-06 Tom Tromey <tromey@adacore.com>
6125
6126 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6127 TYPE_CODE_ERROR.
6128
79743962
KR
61292020-04-06 Kamil Rytarowski <n54@gmx.com>
6130
6131 * nbsd-tdep.c: Include "gdbarch.h".
6132 Define enum with NetBSD signal numbers.
6133 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6134 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6135 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6136 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6137 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6138 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6139 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6140 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6141 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6142 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6143 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6144 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6145
9e7c9a03
HD
61462020-04-03 Hannes Domani <ssbssa@yahoo.de>
6147
6148 PR gdb/25325
6149 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6150
d9e49b61
TT
61512020-04-03 Tom Tromey <tromey@adacore.com>
6152
6153 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6154 Read constant block.
6155
e0fc5c3f
SM
61562020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6157
6158 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6159 (gdb_bfd_get_full_section_contents): New declaration.
6160 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6161 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6162 gdb_bfd_get_full_section_contents.
6163
e2ff18a0
SM
61642020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6165
6166 * exec.c (build_section_table): Replace internal_error with
6167 gdb_assert.
6168 (section_table_xfer_memory_partial): Likewise.
6169 * mdebugread.c (parse_partial_symbols): Likewise.
6170 * psymtab.c (lookup_partial_symbol): Likewise.
6171 * utils.c (wrap_here): Likewise.
6172
0830d301
TT
61732020-04-02 Tom Tromey <tromey@adacore.com>
6174
6175 * f-lang.c (build_fortran_types): Use arch_type to initialize
6176 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6177
e7da7f8f
TT
61782020-04-02 Tom Tromey <tromey@adacore.com>
6179
6180 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6181 of attributes.
6182
c90d28ac
AB
61832020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6184 Bernd Edlinger <bernd.edlinger@hotmail.de>
6185 Tom Tromey <tromey@adacore.com>
6186
6187 * buildsym.c (buildsym_compunit::record_line): Remove
6188 deduplication code.
6189
1aa98955
TV
61902020-04-02 Tom de Vries <tdevries@suse.de>
6191
6192 PR ada/24671
6193 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6194
d3214198
TV
61952020-04-02 Tom de Vries <tdevries@suse.de>
6196
6197 * dwarf2/read.c (dwarf2_gdb_index_functions,
6198 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6199 NULL.
6200 * psymtab.c (psym_lookup_global_symbol_language): New function.
6201 (psym_functions): Init psym_lookup_global_symbol_language with
6202 psym_lookup_global_symbol_language.
6203 * symfile-debug.c (debug_sym_quick_functions): Init
6204 lookup_global_symbol_language with NULL.
6205 * symfile.c (set_initial_language): Remove fixme comment.
6206 * symfile.h (struct quick_symbol_functions): Add
6207 lookup_global_symbol_language.
6208 * symtab.c (find_quick_global_symbol_language): New function.
6209 (find_main_name): Use find_quick_global_symbol_language.
6210
2836752f
SM
62112020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6214
64dc2d4b
BE
62152020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6216
6217 * buildsym.c (record_line): Fix undefined behavior and preserve
6218 lines at eof.
6219
bbe3dc41
BE
62202020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6221
6222 * buildsym.c (record_line): Fix the resizing condition.
6223
6b4a335b
TT
62242020-04-01 Tom Tromey <tom@tromey.com>
6225
6226 * value.h (value_literal_complex): Add comment.
6227 * valops.c (value_literal_complex): Refer to value.h.
6228
3638a098
TT
62292020-04-01 Tom Tromey <tom@tromey.com>
6230
6231 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6232 (scalar_type): New rule, from typebase.
6233 (typebase): Use scalar_type. Recognize complex types.
6234 (field_name): Handle FLOAT_KEYWORD.
6235 (ident_tokens): Add _Complex and __complex__.
6236
c34e8714
TT
62372020-04-01 Tom Tromey <tom@tromey.com>
6238
6239 PR exp/25299:
6240 * valarith.c (promotion_type, complex_binop): New functions.
6241 (scalar_binop): Handle complex numbers. Use promotion_type.
6242 (value_pos, value_neg, value_complement): Handle complex numbers.
6243
fa649bb7
TT
62442020-04-01 Tom Tromey <tom@tromey.com>
6245
6246 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6247 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6248 (parse_number): Handle complex numbers.
6249
981c08ce
TT
62502020-04-01 Tom Tromey <tom@tromey.com>
6251
6252 * c-valprint.c (c_decorations): Change complex suffix to "i".
6253
4c99290d
TT
62542020-04-01 Tom Tromey <tom@tromey.com>
6255
6256 * valprint.c (generic_value_print_complex): Use accessors.
6257 * value.h (value_real_part, value_imaginary_part): Declare.
6258 * valops.c (value_real_part, value_imaginary_part): New
6259 functions.
6260 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6261
5b930b45
TT
62622020-04-01 Tom Tromey <tom@tromey.com>
6263
6264 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6265 (read_range_type): Update.
6266 * mdebugread.c (basic_type): Update.
6267 * go-lang.c (build_go_types): Use init_complex_type.
6268 * gdbtypes.h (struct main_type) <complex_type>: New member.
6269 (init_complex_type): Update.
6270 (arch_complex_type): Don't declare.
6271 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6272 Make name if none given. Use alloc_type_copy. Look for cached
6273 complex type.
6274 (arch_complex_type): Remove.
6275 (gdbtypes_post_init): Use init_complex_type.
6276 * f-lang.c (build_fortran_types): Use init_complex_type.
6277 * dwarf2/read.c (read_base_type): Update.
6278 * d-lang.c (build_d_types): Use init_complex_type.
6279 * ctfread.c (read_base_type): Update.
6280
53cccef1
TBA
62812020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6282
6283 * infrun.c (stop_all_threads): Update assertion, plus when
6284 stopping threads, take into account that we might be trying
6285 to stop an all-stop target.
6286 (stop_waiting): Call 'stop_all_threads' if there exists a
6287 non-stop target.
6288
a0714d30
TBA
62892020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6290
6291 * target.h (exists_non_stop_target): New function declaration.
6292 * target.c (exists_non_stop_target): New function.
6293
60e22c1e
HD
62942020-04-01 Hannes Domani <ssbssa@yahoo.de>
6295
6296 PR gdb/24789
6297 * eval.c (is_integral_or_integral_reference): New function.
6298 (evaluate_subexp_standard): Allow integer references in
6299 pointer arithmetic.
6300
e139a727
TBA
63012020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6302
6303 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6304 check for no ptid in the stop reply when the target is non-stop.
6305
e0802d59
TT
63062020-04-01 Tom Tromey <tromey@adacore.com>
6307
6308 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6309 "name" parameter to rvalue reference. Initialize m_name_holder.
6310 <lookup_name_info>: New overloads.
6311 <name>: Return gdb::string_view.
6312 <c_str>: New method.
6313 <make_ignore_params>: Update.
6314 <search_name_hash>: Update.
6315 <language_lookup_name>: Return const char *.
6316 <m_name>: Change type.
6317 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6318 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6319 (lookup_name_info::match_any): Update.
6320 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6321 Update.
6322 * minsyms.c (linkage_name_str): Update.
6323 * language.c (default_symbol_name_matcher): Update.
6324 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6325 Update.
6326 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6327 (ada_lookup_name_info::ada_lookup_name_info): Update.
6328 (literal_symbol_name_matcher): Update.
6329
8c072cb6
TT
63302020-04-01 Tom Tromey <tromey@adacore.com>
6331
6332 * psymtab.c (psymtab_search_name): Remove function.
6333 (psym_lookup_symbol): Create search name and lookup name here.
6334 (lookup_partial_symbol): Remove "name" parameter; add
6335 lookup_name.
6336 (psym_expand_symtabs_for_function): Update.
6337
6f29a534
TT
63382020-03-31 Joel Jones <joelkevinjones@gmail.com>
6339
6340 PR tui/25597:
6341 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6342
af62665e
TT
63432020-03-31 Tom Tromey <tromey@adacore.com>
6344
6345 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6346 memcpy.
6347
d1a89da5
NC
63482020-03-30 Nelson Chu <nelson.chu@sifive.com>
6349
6350 * features/riscv/32bit-csr.xml: Regenerated.
6351 * features/riscv/64bit-csr.xml: Regenerated.
6352
d8af9068
TT
63532020-03-30 Tom Tromey <tromey@adacore.com>
6354
6355 * ada-valprint.c (print_variant_part): Update.
6356 * ada-lang.h (ada_which_variant_applies): Update.
6357 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6358 outer_valaddr parameters; replace with "outer" value parameter.
6359 (to_fixed_variant_branch_type): Update.
6360
227c0bf4
PFC
63612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6362
6363 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6364 <list>. Remove inclusion of observable.h.
6365 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6366 (struct arch_lwp_info): New struct.
6367 (class ppc_linux_dreg_interface): New class.
6368 (struct ppc_linux_process_info): New struct.
6369 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6370 <low_new_clone, low_forget_process, low_prepare_to_resume>
6371 <copy_thread_dreg_state, mark_thread_stale>
6372 <mark_debug_registers_changed, register_hw_breakpoint>
6373 <clear_hw_breakpoint, register_wp, clear_wp>
6374 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6375 <num_memory_accesses, get_trigger_type>
6376 <create_watchpoint_request, hwdebug_point_cmp>
6377 <init_arch_lwp_info, get_arch_lwp_info>
6378 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6379 methods.
6380 <struct ptid_hash>: New inner struct.
6381 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6382 members.
6383 (saved_dabr_value, hwdebug_info, max_slots_number)
6384 (struct hw_break_tuple, struct thread_points, ppc_threads)
6385 (have_ptrace_hwdebug_interface)
6386 (hwdebug_find_thread_points_by_tid)
6387 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6388 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6389 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6390 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6391 use m_dreg_interface.
6392 (hwdebug_point_cmp): Change to...
6393 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6394 reference arguments instead of pointers.
6395 (ppc_linux_nat_target::ranged_break_num_registers): Use
6396 m_dreg_interface.
6397 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6398 m_dreg_interface. Call register_hw_breakpoint.
6399 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6400 m_dreg_interface. Call clear_hw_breakpoint.
6401 (get_trigger_type): Change to...
6402 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6403 comment.
6404 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6405 use m_dreg_interface. Call register_hw_breakpoint.
6406 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6407 use m_dreg_interface. Call clear_hw_breakpoint.
6408 (can_use_watchpoint_cond_accel): Change to...
6409 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6410 method. Update comment, use m_dreg_interface and
6411 m_process_info.
6412 (calculate_dvc): Change to...
6413 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6414 m_dreg_interface.
6415 (num_memory_accesses): Change to...
6416 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6417 (check_condition): Change to...
6418 (ppc_linux_nat_target::check_condition): ...this method.
6419 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6420 comment, use m_dreg_interface.
6421 (create_watchpoint_request): Change to...
6422 (ppc_linux_nat_target::create_watchpoint_request): ...this
6423 method. Use m_dreg_interface.
6424 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6425 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6426 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6427 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6428 (ppc_linux_nat_target::low_forget_process)
6429 (ppc_linux_nat_target::low_new_fork)
6430 (ppc_linux_nat_target::low_new_clone)
6431 (ppc_linux_nat_target::low_delete_thread)
6432 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6433 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6434 only call mark_thread_stale.
6435 (ppc_linux_thread_exit): Remove.
6436 (ppc_linux_nat_target::stopped_data_address): Change to...
6437 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6438 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6439 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6440 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6441 comment. Call low_stopped_data_address.
6442 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6443 m_dreg_interface.
6444 (ppc_linux_nat_target::masked_watch_num_registers): Use
6445 m_dreg_interface.
6446 (ppc_linux_nat_target::copy_thread_dreg_state)
6447 (ppc_linux_nat_target::mark_thread_stale)
6448 (ppc_linux_nat_target::mark_debug_registers_changed)
6449 (ppc_linux_nat_target::register_hw_breakpoint)
6450 (ppc_linux_nat_target::clear_hw_breakpoint)
6451 (ppc_linux_nat_target::register_wp)
6452 (ppc_linux_nat_target::clear_wp)
6453 (ppc_linux_nat_target::init_arch_lwp_info)
6454 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6455 (_initialize_ppc_linux_nat): Remove observer callback.
6456
4db10d8f
PFC
64572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6458
6459 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6460 (ppc_linux_nat_target::auxv_parse)
6461 (ppc_linux_nat_target::read_description)
6462 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6463 Move up.
6464
1310c1b0
PFC
64652020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6466
6467 * linux-nat.h (low_new_clone): New method.
6468 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6469
69b037c3
SM
64702020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6471
6472 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6473 (dbx_expand_psymtab): ... this.
6474 (start_psymtab): Update.
6475 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6476 (mdebug_expand_psymtab): ... this.
6477 (parse_partial_symbols): Update.
6478 (new_psymtab): Update.
6479 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6480 (xcoff_expand_psymtab): ... this.
6481 (xcoff_start_psymtab): Update.
6482
48993951
SM
64832020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6484
6485 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6486 <expand_dependencies>: ... this.
6487 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6488 (partial_symtab::expand_dependencies): ... this.
6489 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6490 Update.
6491 (dwarf2_psymtab::expand_psymtab): Update.
6492 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6493 * mdebugread.c (psymtab_to_symtab_1): Update.
6494 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6495
3ad83046
SM
64962020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6497
6498 * psympriv.h (discard_psymtab): Remove.
6499 * dbxread.c (dbx_end_psymtab): Update.
6500 * xcoffread.c (xcoff_end_psymtab): Update.
6501
4d1b9ab6
TT
65022020-03-28 Tom Tromey <tom@tromey.com>
6503
6504 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6505 comment.
6506
f1749218
TT
65072020-03-28 Tom Tromey <tom@tromey.com>
6508
6509 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6510
ebea7626
HD
65112020-03-27 Hannes Domani <ssbssa@yahoo.de>
6512
6513 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6514
a879b4d5
JB
65152020-03-26 John Baldwin <jhb@FreeBSD.org>
6516
6517 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6518
0826b30a
TT
65192020-03-26 Tom Tromey <tom@tromey.com>
6520
6521 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6522 (mark_common_block_symbol_computed, read_tag_string_type)
6523 (attr_to_dynamic_prop, read_subrange_type): Update.
6524 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6525 to be methods on struct attribute.
6526 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6527 (read_call_site_scope, partial_die_info::read)
6528 (partial_die_info::read, lookup_die_type, follow_die_ref):
6529 Update.
6530 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6531 from dwarf2_get_ref_die_offset.
6532 (attribute::constant_value): New method, from
6533 dwarf2_get_attr_constant_value.
6534 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6535 Declare method.
6536 <constant_value>: New method.
6537
2b2558bf
TT
65382020-03-26 Tom Tromey <tom@tromey.com>
6539
6540 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6541 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6542 (dwarf_type_encoding_name): Move to stringify.c.
6543 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6544 * dwarf2/stringify.c: New file.
6545 * dwarf2/stringify.h: New file.
6546
eeb64781
TT
65472020-03-26 Tom Tromey <tom@tromey.com>
6548
6549 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6550 Rewrite.
6551
a39fdb41
TT
65522020-03-26 Tom Tromey <tom@tromey.com>
6553
6554 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6555 methods.
6556 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6557 (lookup_ranges_base): Likewise.
6558 (read_cutu_die_from_dwo, read_full_die_1): Update.
6559
436c571c
TT
65602020-03-26 Tom Tromey <tom@tromey.com>
6561
6562 * dwarf2/read.c (read_import_statement, read_file_scope)
6563 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6564 (read_lexical_block_scope, read_call_site_scope)
6565 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6566 (handle_struct_member_die, process_structure_scope)
6567 (update_enumeration_type_from_children)
6568 (process_enumeration_scope, read_array_type, read_common_block)
6569 (read_namespace, read_module, read_subroutine_type): Update.
6570 (sibling_die): Remove.
6571
052c8bb8
TT
65722020-03-26 Tom Tromey <tom@tromey.com>
6573
6574 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6575 (build_type_psymtabs_reader, read_structure_type)
6576 (read_enumeration_type, read_full_die_1): Update.
6577 (dwarf2_attr_no_follow): Move to die.h.
6578 * dwarf2/die.h (struct die_info) <attr>: New method.
6579
2b24b6e4
TT
65802020-03-26 Tom Tromey <tom@tromey.com>
6581
6582 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6583 <base_address>: Now an optional.
6584 (dwarf2_find_base_address, dwarf2_rnglists_process)
6585 (dwarf2_ranges_process, fill_in_loclist_baton)
6586 (dwarf2_symbol_mark_computed): Update.
6587
c2d50fd0
TT
65882020-03-26 Tom Tromey <tom@tromey.com>
6589
6590 * dwarf2/read.c (struct die_info): Move to die.h.
6591 * dwarf2/die.h: New file.
6592
0df7ad3a
TT
65932020-03-26 Tom Tromey <tom@tromey.com>
6594
6595 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6596 * dwarf2/read.c
6597 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6598 Move to line-header.c.
6599 (read_checked_initial_length_and_offset, read_formatted_entries):
6600 Likewise.
6601 (dwarf_decode_line_header): Split into two.
6602 * dwarf2/line-header.c
6603 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6604 Move from read.c.
6605 (read_checked_initial_length_and_offset, read_formatted_entries):
6606 Likewise.
6607 (dwarf_decode_line_header): New function, split from read.c.
6608
86c0bb4c
TT
66092020-03-26 Tom Tromey <tom@tromey.com>
6610
6611 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6612 Declare method.
6613 * dwarf2/read.c (read_attribute_value): Update.
6614 (dwarf2_per_objfile::read_line_string): Rename from
6615 read_indirect_line_string.
6616 (read_formatted_entries): Update.
6617
2ef46c2f
TT
66182020-03-26 Tom Tromey <tom@tromey.com>
6619
6620 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6621 variable.
6622
4f9c1eda
TT
66232020-03-26 Tom Tromey <tom@tromey.com>
6624
6625 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6626 const.
6627 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6628 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6629 parameter const.
6630
5a0e026f
TT
66312020-03-26 Tom Tromey <tom@tromey.com>
6632
6633 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6634 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6635 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6636 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6637
8844c11b
TT
66382020-03-26 Tom Tromey <tom@tromey.com>
6639
6640 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6641 file_names_size, file_full_name, file_file_name>: Use const.
6642 <file_name_at, file_names>: Add const overload.
6643 * dwarf2/line-header.c (line_header::file_file_name)
6644 (line_header::file_full_name): Update.
6645
c90ec28a
TT
66462020-03-26 Tom Tromey <tom@tromey.com>
6647
6648 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6649 (macro_start_file, consume_improper_spaces)
6650 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6651 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6652 (dwarf_decode_macros): Move to macro.c.
6653 * dwarf2/macro.c: New file.
6654 * dwarf2/macro.h: New file.
6655 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6656
4f44ae6c
TT
66572020-03-26 Tom Tromey <tom@tromey.com>
6658
6659 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6660 method.
6661 * dwarf2/section.c: New method. From
6662 read_indirect_string_at_offset_from.
6663 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6664 (read_indirect_string_at_offset_from): Move to section.c.
6665 (read_indirect_string_at_offset): Rewrite.
6666 (read_indirect_line_string_at_offset): Remove.
6667 (read_indirect_string, read_indirect_line_string)
6668 (dwarf_decode_macro_bytes): Update.
6669
a0194fa8
TT
66702020-03-26 Tom Tromey <tom@tromey.com>
6671
6672 * dwarf2/section.h (struct dwarf2_section_info)
6673 <overload_complaint>: Declare.
6674 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6675 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6676 Rename from dwarf2_section_buffer_overflow_complaint.
6677 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6678 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6679
3d27bbdb
TT
66802020-03-26 Tom Tromey <tom@tromey.com>
6681
6682 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6683 Declare.
6684 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6685 Move from read.c.
6686 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6687 to section.c.
6688
9eac9650
TT
66892020-03-26 Tom Tromey <tom@tromey.com>
6690
6691 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6692
bf80d710
TT
66932020-03-26 Tom Tromey <tom@tromey.com>
6694
6695 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6696 "builder".
6697 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6698 parameter.
6699 (dwarf_decode_macros): Update.
6700
0314b390
TT
67012020-03-26 Tom Tromey <tom@tromey.com>
6702
6703 * dwarf2/read.c (read_attribute_value): Update.
6704 (read_indirect_string_from_dwz): Move to dwz.c; change into
6705 method.
6706 (dwarf_decode_macro_bytes): Update.
6707 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6708 * dwarf2/dwz.c: New file.
6709 * Makefile.in (COMMON_SFILES): Add dwz.c.
6710
9fda78b6
TT
67112020-03-26 Tom Tromey <tom@tromey.com>
6712
6713 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6714 * dwarf2/read.c: Add include.
6715 * dwarf2/index-write.c: Add include.
6716 * dwarf2/index-cache.c: Add include.
6717 * dwarf2/dwz.h: New file.
6718
33aa3c10
TT
67192020-03-25 Tom Tromey <tom@tromey.com>
6720
6721 * compile/compile-object-load.c (get_out_value_type): Mention
6722 correct symbol name in error message.
6723
d503b685
HD
67242020-03-25 Hannes Domani <ssbssa@yahoo.de>
6725
6726 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6727
7b1eff95
TV
67282020-03-25 Tom de Vries <tdevries@suse.de>
6729
6730 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6731 * symmisc.c (dump_symtab_1): Print user and includes fields.
6732 (maintenance_info_symtabs): Same.
6733
dd895392
AB
67342020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6735
6736 PR gdb/25534
6737 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6738 (riscv_regcache_cooked_write): New function.
6739 (riscv_push_dummy_call): Use new function.
6740 (riscv_return_value): Likewise.
6741
5ab2fbf1
SM
67422020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6743
6744 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6745 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6746 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6747 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6748 * infrun.c (follow_fork): Likewise.
6749 (follow_fork_inferior): Likewise.
6750 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6751 * linux-nat.h (class linux_nat_target): Likewise.
6752 * remote.c (class remote_target) <follow_fork>: Likewise.
6753 (remote_target::follow_fork): Likewise.
6754 * target-delegates.c: Re-generate.
6755 * target.c (default_follow_fork): Likewise.
6756 (target_follow_fork): Likewise.
6757 * target.h (struct target_ops) <follow_fork>: Likewise.
6758 (target_follow_fork): Likewise.
6759
a64fafb5
TV
67602020-03-24 Tom de Vries <tdevries@suse.de>
6761
6762 * psymtab.c (maintenance_info_psymtabs): Print user field.
6763
fe26d3a3
TT
67642020-03-20 Tom Tromey <tromey@adacore.com>
6765
6766 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6767 const.
6768 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6769 const.
6770
c884cc46
SM
67712020-03-20 Simon Marchi <simon.marchi@efficios.com>
6772
6773 * ptrace.m4: Don't check for ptrace declaration.
6774 * config.in: Re-generate.
6775 * configure: Re-generate.
6776 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6777 not defined.
6778
1ff700c2
KR
67792020-03-20 Kamil Rytarowski <n54@gmx.com>
6780
6781 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6782 `PTRACE_TYPE_RET'.
6783 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6784 * sparc-nat.c (gdb_ptrace): Likewise.
6785 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6786
f7d4f0b1
TT
67872020-03-20 Tom Tromey <tromey@adacore.com>
6788
6789 * c-exp.y (lex_one_token): Fix assert.
6790
f67210ff
TT
67912020-03-20 Tom Tromey <tromey@adacore.com>
6792
6793 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6794 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6795 strncpy call.
6796
1773be9e
TT
67972020-03-20 Tom Tromey <tromey@adacore.com>
6798
6799 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6800
70304be9
TT
68012020-03-20 Tom Tromey <tromey@adacore.com>
6802
6803 * ada-valprint.c (print_variant_part): Remove parameters; switch
6804 to value-based API.
6805 (print_field_values): Likewise.
6806 (ada_val_print_struct_union): Likewise.
6807 (ada_value_print_1): Update.
6808
9faa006d
KR
68092020-03-20 Kamil Rytarowski <n54@gmx.com>
6810
6811 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6812 nbsd_nat_target instead of inf_ptrace_target.
6813 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6814 nbsd_nat_target.
6815
4a90f062
KR
68162020-03-20 Kamil Rytarowski <n54@gmx.com>
6817
6818 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6819 it to the ptrace call.
6820 * (store_registers): Likewise.
6821
68222020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6823
6824 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6825 it to the ptrace call.
6826 * (store_registers): Likewise.
6827
2d07da27
LM
68282020-03-19 Luis Machado <luis.machado@linaro.org>
6829
6830 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6831 valid, fetch vg value from ptrace.
6832
f09db380
KR
68332020-03-19 Kamil Rytarowski <n54@gmx.com>
6834 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6835 * inf-ptrace.c: Likewise.
6836 * (gdb_ptrace): Add.
6837 * (inf_ptrace_target::resume): Update.
6838 * (inf_ptrace_target::xfer_partial): Likewise.
6839 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6840 * (inf_ptrace_peek_poke): Update.
6841
fcc7376e
KR
68422020-03-19 Kamil Rytarowski <n54@gmx.com>
6843
6844 * x86-bsd-nat.c (gdb_ptrace): New.
6845 * (x86bsd_dr_set): Add new argument `ptid'.
6846 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6847 x86bsd_dr_set_addr): Update.
6848
cada5fc9
AB
68492020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6850
6851 * remote.c (remote_target::process_stop_reply): Handle events for
6852 all threads differently.
6853
19a2740f
AB
68542020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6855
6856 * completer.c (completion_tracker::remove_completion): Define new
6857 function.
6858 * completer.h (completion_tracker::remove_completion): Declare new
6859 function.
6860 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6861 when adding a C++ function symbol.
6862
724fd9ba
AB
68632020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6864
6865 * completer.c (completion_tracker::completion_hash_entry): Define
6866 new class.
6867 (advance_to_filename_complete_word_point): Call
6868 recompute_lowest_common_denominator.
6869 (completion_tracker::completion_tracker): Call discard_completions
6870 to setup the hash table.
6871 (completion_tracker::discard_completions): Allow for being called
6872 from the constructor, pass new equal function, and element deleter
6873 when constructing the hash table. Initialise new class member
6874 variables.
6875 (completion_tracker::maybe_add_completion): Remove use of
6876 m_entries_vec, and store more information into m_entries_hash.
6877 (completion_tracker::recompute_lcd_visitor): New function, most
6878 content taken from...
6879 (completion_tracker::recompute_lowest_common_denominator):
6880 ...here, this now just visits each item in the hash calling the
6881 above visitor.
6882 (completion_tracker::build_completion_result): Remove use of
6883 m_entries_vec, call recompute_lowest_common_denominator.
6884 * completer.h (completion_tracker::have_completions): Remove use
6885 of m_entries_vec.
6886 (completion_tracker::completion_hash_entry): Declare new class.
6887 (completion_tracker::recompute_lowest_common_denominator): Change
6888 function signature.
6889 (completion_tracker::recompute_lcd_visitor): Declare new function.
6890 (completion_tracker::m_entries_vec): Delete.
6891 (completion_tracker::m_entries_hash): Initialize to NULL.
6892 (completion_tracker::m_lowest_common_denominator_valid): New
6893 member variable.
6894 (completion_tracker::m_lowest_common_denominator_max_length): New
6895 member variable.
6896
5a82b8a1
KR
68972020-03-17 Kamil Rytarowski <n54@gmx.com>
6898
6899 * regformats/regdef.h: Put reg in gdb namespace.
6900
fb516a69
KR
69012020-03-17 Kamil Rytarowski <n54@gmx.com>
6902
6903 * i386-bsd-nat.c (gdb_ptrace): New.
6904 * (i386bsd_fetch_inferior_registers,
6905 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6906 * (i386bsd_fetch_inferior_registers,
6907 i386bsd_store_inferior_registers) Use gdb_ptrace.
6908
1c0aa1fb
KR
69092020-03-17 Kamil Rytarowski <n54@gmx.com>
6910
6911 * amd64-bsd-nat.c (gdb_ptrace): New.
6912 * (amd64bsd_fetch_inferior_registers,
6913 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6914 * (amd64bsd_fetch_inferior_registers,
6915 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6916
5ccd2fb7
KR
69172020-03-17 Kamil Rytarowski <n54@gmx.com>
6918
6919 * user-regs.c (user_reg::read): Rename to...
6920 (user_reg::xread): ...this.
6921 * (append_user_reg): Rename argument `read' to `xread'.
6922 * (user_reg_add_builtin): Likewise.
6923 * (user_reg_add): Likewise.
6924 * (value_of_user_reg): Likewise.
6925
2108a63a
KR
69262020-03-17 Kamil Rytarowski <n54@gmx.com>
6927
6928 * sparc-nat.c (gdb_ptrace): New.
6929 * sparc-nat.c (sparc_fetch_inferior_registers)
6930 (sparc_store_inferior_registers) Remove obsolete comment.
6931 * sparc-nat.c (sparc_fetch_inferior_registers)
6932 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6933 * sparc-nat.c (sparc_fetch_inferior_registers)
6934 (sparc_store_inferior_registers) Use gdb_ptrace.
6935
a225c9a8
KR
69362020-03-17 Kamil Rytarowski <n54@gmx.com>
6937
6938 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6939 it to the ptrace call.
6940 * sh-nbsd-nat.c (store_registers): Likewise.
6941
98097623
KR
69422020-03-17 Kamil Rytarowski <n54@gmx.com>
6943
6944 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6945 nbsd_nat_target instead of inf_ptrace_target.
6946 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6947 nbsd_nat_target.
6948
9e38d619
KR
69492020-03-17 Kamil Rytarowski <n54@gmx.com>
6950
6951 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6952
a2ecbe9f
KR
69532020-03-17 Kamil Rytarowski <n54@gmx.com>
6954
6955 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6956 <sys/sysctl.h>.
6957 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6958
58990295
TV
69592020-03-17 Tom de Vries <tdevries@suse.de>
6960
6961 PR gdb/23710
6962 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6963 fields.
6964 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6965 fields.
6966 (process_imported_unit_die): Skip import of c++ CUs.
6967
771dd3a8
TT
69682020-03-16 Tom Tromey <tom@tromey.com>
6969
6970 * p-valprint.c (pascal_object_print_value): Initialize
6971 base_value.
6972
817a7585
AK
69732020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6974 Shahab Vahedi <shahab@synopsys.com>
6975
6976 * Makefile.in: Add arch/arc.o
6977 * configure.tgt: Likewise.
6978 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6979 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6980 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6981 * arc-tdep.h (arc_read_description): Add proto type.
6982 * arch/arc.c: New file.
6983 * arch/arc.h: Likewise.
6984 * features/Makefile: Replace old target descriptions with new.
6985 * features/arc-arcompact.c: Remove.
6986 * features/arc-arcompact.xml: Likewise.
6987 * features/arc-v2.c: Likewise
6988 * features/arc-v2.xml: Likewise
6989 * features/arc/aux-arcompact.xml: New file.
6990 * features/arc/aux-v2.xml: Likewise.
6991 * features/arc/core-arcompact.xml: Likewise.
6992 * features/arc/core-v2.xml: Likewise.
6993 * features/arc/aux-arcompact.c: Generate.
6994 * features/arc/aux-v2.c: Likewise.
6995 * features/arc/core-arcompact.c: Likewise.
6996 * features/arc/core-v2.c: Likewise.
6997 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6998
67430cd0
TT
69992020-03-16 Tom Tromey <tromey@adacore.com>
7000
7001 PR gdb/25663:
7002 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7003 putting value into bcache.
7004
30efb6c7
SM
70052020-03-16 Simon Marchi <simon.marchi@efficios.com>
7006
7007 PR gdb/21500
7008 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7009 to...
7010 (amd64_windows_init_abi_common): ... this. Don't set size of
7011 long type.
7012 (amd64_windows_init_abi): New function.
7013 (amd64_cygwin_init_abi): New function.
7014 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7015 the Cygwin OS ABI.
7016 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7017 comment.
7018
8db52437
SM
70192020-03-16 Simon Marchi <simon.marchi@efficios.com>
7020
7021 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7022 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7023 (pe_import_directory_entry): New struct type.
7024 (is_linked_with_cygwin_dll): New function.
7025 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7026 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7027 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7028
5982a56a
SM
70292020-03-16 Simon Marchi <simon.marchi@efficios.com>
7030
7031 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7032 i386_cygwin_core_osabi_sniffer.
7033
7a1998df
SM
70342020-03-16 Simon Marchi <simon.marchi@efficios.com>
7035
7036 * i386-cygwin-tdep.c: Rename to...
7037 * i386-windows-tdep.c: ... this.
7038 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7039 i386-windows-tdep.c.
7040 * configure.tgt: Likewise.
7041
053205cc
SM
70422020-03-16 Simon Marchi <simon.marchi@efficios.com>
7043
7044 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7045 * osabi.c (gdb_osabi_names): Add "Windows".
7046 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7047 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7048 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7049 i386_cygwin_osabi_sniffer.
7050 (_initialize_i386_cygwin_tdep): Register OS ABI
7051 GDB_OSABI_WINDOWS for i386.
7052 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7053 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7054 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7055 for x86-64.
7056 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7057 when the target matches '*-*-mingw*'.
7058
fe4b2ee6
SM
70592020-03-16 Simon Marchi <simon.marchi@efficios.com>
7060
7061 * defs.h (enum gdb_osabi): Move to...
7062 * osabi.h (enum gdb_osabi): ... here.
7063 * gdbarch.sh: Include osabi.h in gdbarch.h.
7064 * gdbarch.h: Re-generate.
7065
cb9b645d
SM
70662020-03-16 Simon Marchi <simon.marchi@efficios.com>
7067
7068 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7069 function.
7070 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7071
3293bbaf
TT
70722020-03-14 Tom Tromey <tom@tromey.com>
7073
7074 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7075 for C++.
7076 (c_type_print_modifier): Likewise. Add "language" parameter.
7077 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7078 (c_type_print_base_1): Update.
7079 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7080 constants.
7081 * type-stack.c (type_stack::insert): Handle tp_atomic and
7082 tp_restrict.
7083 (type_stack::follow_type_instance_flags): Likewise.
7084 (type_stack::follow_types): Likewise. Merge type-following code.
7085 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7086 (space_identifier, cv_with_space_id)
7087 (const_or_volatile_or_space_identifier_noopt)
7088 (const_or_volatile_or_space_identifier): Remove.
7089 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7090 rules.
7091 (ptr_operator, typebase): Update.
7092 (enum token_flag) <FLAG_C>: New constant.
7093 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7094 "_Atomic".
7095 (lex_one_token): Handle FLAG_C.
7096
154151a6
KR
70972020-03-14 Kamil Rytarowski <n54@gmx.com>
7098
7099 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7100 it to the ptrace call.
7101 * m68k-bsd-nat.c (store_registers): Likewise.
7102
bc107784
KR
71032020-03-14 Kamil Rytarowski <n54@gmx.com>
7104
7105 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7106 gdb_byte *.
7107 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7108 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7109 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7110
01a80117
KR
71112020-03-14 Kamil Rytarowski <n54@gmx.com>
7112
7113 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7114 nbsd_nat_target instead of inf_ptrace_target.
7115 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7116 nbsd_nat_target.
7117
f90280ca
KR
71182020-03-14 Kamil Rytarowski <n54@gmx.com>
7119
7120 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7121 register_t.
7122
6def66f1
KR
71232020-03-14 Kamil Rytarowski <n54@gmx.com>
7124
7125 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7126 it to the ptrace call.
7127 * alpha-bsd-nat.c (store_registers): Likewise.
7128
66eaca97
KR
71292020-03-14 Kamil Rytarowski <n54@gmx.com>
7130
7131 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7132 includes.
7133 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7134 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7135 fill_fpregset): Likewise.
7136
4fed520b
KR
71372020-03-14 Kamil Rytarowski <n54@gmx.com>
7138
7139 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7140 nbsd_nat_target instead of inf_ptrace_target.
7141 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7142 nbsd_nat_target.
7143
2190cf06
KR
71442020-03-14 Kamil Rytarowski <n54@gmx.com>
7145
7146 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7147 register_t.
7148
75c56d3d
KR
71492020-03-14 Kamil Rytarowski <n54@gmx.com>
7150
7151 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7152 it to the ptrace call.
7153 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7154 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7155 * arm-nbsd-nat.c (store_register): Likewise.
7156 * arm-nbsd-nat.c (store_regs): Likewise.
7157 * arm-nbsd-nat.c (store_fp_register): Likewise.
7158 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7159
6018d381
KR
71602020-03-14 Kamil Rytarowski <n54@gmx.com>
7161
7162 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7163 nbsd_nat_target instead of inf_ptrace_target.
7164 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7165 nbsd_nat_target.
7166
013f99f0
KR
71672020-03-14 Kamil Rytarowski <n54@gmx.com>
7168
7169 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7170 it to the ptrace call.
7171 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7172
12753073
KR
71732020-03-14 Kamil Rytarowski <n54@gmx.com>
7174
6227b330
KR
7175 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7176 it to the ptrace call.
7177 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7178
71792020-03-14 Kamil Rytarowski <n54@gmx.com>
7180
7181 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7182 gdb_byte *.
12753073
KR
7183 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7184
d5be5fa4
KR
71852020-03-14 Kamil Rytarowski <n54@gmx.com>
7186
7187 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7188 instead of inf_ptrace_target.
7189 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7190 nbsd_nat_target.
7191
8110f842
KR
71922020-03-14 Kamil Rytarowski <n54@gmx.com>
7193
7194 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7195 register_t.
7196
52feded7
KR
71972020-03-14 Kamil Rytarowski <n54@gmx.com>
7198
7199 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7200 register_t.
7201
25567eee
KR
72022020-03-14 Kamil Rytarowski <n54@gmx.com>
7203
7204 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7205 register_t.
7206
426a9c18
TT
72072020-03-13 Tom Tromey <tom@tromey.com>
7208
7209 * value.h (val_print): Don't declare.
7210 * valprint.h (val_print_array_elements)
7211 (val_print_scalar_formatted, generic_val_print): Don't declare.
7212 * valprint.c (generic_val_print_array): Take a struct value.
7213 (generic_val_print_ptr, generic_val_print_memberptr)
7214 (generic_val_print_bool, generic_val_print_int)
7215 (generic_val_print_char, generic_val_print_complex)
7216 (generic_val_print): Remove.
7217 (generic_value_print): Update.
7218 (do_val_print): Remove unused parameters. Don't call
7219 la_val_print.
7220 (val_print): Remove.
7221 (common_val_print): Update. Don't call value_check_printable.
7222 (val_print_scalar_formatted, val_print_array_elements): Remove.
7223 * rust-lang.c (rust_val_print): Remove.
7224 (rust_language_defn): Update.
7225 * p-valprint.c (pascal_val_print): Remove.
7226 (pascal_value_print_inner): Update.
7227 (pascal_object_print_val_fields, pascal_object_print_val):
7228 Remove.
7229 (pascal_object_print_static_field): Update.
7230 * p-lang.h (pascal_val_print): Don't declare.
7231 * p-lang.c (pascal_language_defn): Update.
7232 * opencl-lang.c (opencl_language_defn): Update.
7233 * objc-lang.c (objc_language_defn): Update.
7234 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7235 * m2-lang.h (m2_val_print): Don't declare.
7236 * m2-lang.c (m2_language_defn): Update.
7237 * language.h (struct language_defn) <la_val_print>: Remove.
7238 * language.c (unk_lang_value_print_inner): Rename. Change
7239 argument types.
7240 (unknown_language_defn, auto_language_defn): Update.
7241 * go-valprint.c (go_val_print): Remove.
7242 * go-lang.h (go_val_print): Don't declare.
7243 * go-lang.c (go_language_defn): Update.
7244 * f-valprint.c (f_val_print): Remove.
7245 * f-lang.h (f_value_print): Don't declare.
7246 * f-lang.c (f_language_defn): Update.
7247 * d-valprint.c (d_val_print): Remove.
7248 * d-lang.h (d_value_print): Don't declare.
7249 * d-lang.c (d_language_defn): Update.
7250 * cp-valprint.c (cp_print_value_fields)
7251 (cp_print_value_fields_rtti, cp_print_value): Remove.
7252 (cp_print_static_field): Update.
7253 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7254 (c_val_print_struct, c_val_print_union, c_val_print_int)
7255 (c_val_print_memberptr, c_val_print): Remove.
7256 * c-lang.h (c_val_print_array, cp_print_value_fields)
7257 (cp_print_value_fields_rtti): Don't declare.
7258 * c-lang.c (c_language_defn, cplus_language_defn)
7259 (asm_language_defn, minimal_language_defn): Update.
7260 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7261 (ada_val_print_enum): Take a struct value.
7262 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7263 (ada_val_print): Remove.
7264 (ada_value_print_1): Update.
7265 (printable_val_type): Remove.
7266 * ada-lang.h (ada_val_print): Don't declare.
7267 * ada-lang.c (ada_language_defn): Update.
7268
42331a1e
TT
72692020-03-13 Tom Tromey <tom@tromey.com>
7270
7271 * valprint.c (do_val_print): Update.
7272 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7273 a struct value.
7274 (value_to_value_object_no_release): Declare.
7275 * python/py-value.c (value_to_value_object_no_release): New
7276 function.
7277 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7278 struct value.
7279 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7280 function.
7281 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7282 a struct value.
7283 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7284 Declare.
7285 (gdbscm_apply_val_pretty_printer): Take a struct value.
7286 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7287 value.
7288 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7289 value.
7290 * extension-priv.h (struct extension_language_ops)
7291 <apply_val_pretty_printer>: Take a struct value.
7292 * cp-valprint.c (cp_print_value): Create a struct value.
7293 (cp_print_value): Update.
7294
3a916a97
TT
72952020-03-13 Tom Tromey <tom@tromey.com>
7296
7297 * ada-valprint.c (print_field_values): Call common_val_print.
7298
b59eac37
TT
72992020-03-13 Tom Tromey <tom@tromey.com>
7300
7301 * ada-valprint.c (val_print_packed_array_elements): Remove
7302 bitoffset and val parameters. Call common_val_print.
7303 (ada_val_print_string): Remove offset, address, and original_value
7304 parameters.
7305 (ada_val_print_array): Update.
7306 (ada_value_print_array): New function.
7307 (ada_value_print_1): Call it.
7308
03371129
TT
73092020-03-13 Tom Tromey <tom@tromey.com>
7310
7311 * ada-valprint.c (ada_value_print): Use common_val_print.
7312
2e088f8b
TT
73132020-03-13 Tom Tromey <tom@tromey.com>
7314
7315 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7316
39ef85a8
TT
73172020-03-13 Tom Tromey <tom@tromey.com>
7318
7319 * ada-valprint.c (ada_value_print_num): New function.
7320 (ada_value_print_1): Use it.
7321
b9fa6e07
TT
73222020-03-13 Tom Tromey <tom@tromey.com>
7323
7324 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7325
416595d6
TT
73262020-03-13 Tom Tromey <tom@tromey.com>
7327
7328 * ada-valprint.c (ada_value_print_ptr): New function.
7329 (ada_value_print_1): Use it.
7330
5b5e15ec
TT
73312020-03-13 Tom Tromey <tom@tromey.com>
7332
7333 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7334 call common_val_print.
7335 (ada_val_print_1): Update.
7336 (ada_value_print_1): New function.
7337 (ada_value_print_inner): Rewrite.
7338
fbf54e75
TT
73392020-03-13 Tom Tromey <tom@tromey.com>
7340
7341 * cp-valprint.c (cp_print_value_fields): Update.
7342 (cp_print_value): New function.
7343
64b653ca
TT
73442020-03-13 Tom Tromey <tom@tromey.com>
7345
7346 * m2-valprint.c (m2_value_print_inner): Use
7347 cp_print_value_fields.
7348 * cp-valprint.c (cp_print_value_fields): New function.
7349 * c-valprint.c (c_value_print_struct): New function.
7350 (c_value_print_inner): Use c_value_print_struct.
7351 * c-lang.h (cp_print_value_fields): Declare.
7352
6999f067
TT
73532020-03-13 Tom Tromey <tom@tromey.com>
7354
7355 * c-valprint.c (c_value_print_array): New function.
7356 (c_value_print_inner): Use it.
7357
ce80b8bd
TT
73582020-03-13 Tom Tromey <tom@tromey.com>
7359
7360 * c-valprint.c (c_value_print_memberptr): New function.
7361 (c_value_print_inner): Use it.
7362
2faac269
TT
73632020-03-13 Tom Tromey <tom@tromey.com>
7364
7365 * c-valprint.c (c_value_print_int): New function.
7366 (c_value_print_inner): Use it.
7367
da3e2c29
TT
73682020-03-13 Tom Tromey <tom@tromey.com>
7369
7370 * c-valprint.c (c_value_print_ptr): New function.
7371 (c_value_print_inner): Use it.
7372
50836231
TT
73732020-03-13 Tom Tromey <tom@tromey.com>
7374
7375 * c-valprint.c (c_value_print_inner): Rewrite.
7376
4f412b6e
TT
73772020-03-13 Tom Tromey <tom@tromey.com>
7378
7379 * valprint.c (generic_value_print_complex): New function.
7380 (generic_value_print): Use it.
7381
f5354008
TT
73822020-03-13 Tom Tromey <tom@tromey.com>
7383
7384 * valprint.c (generic_val_print_float): Don't call
7385 val_print_scalar_formatted.
7386 (generic_val_print, generic_value_print): Update.
7387
3eec3b05
TT
73882020-03-13 Tom Tromey <tom@tromey.com>
7389
7390 * valprint.c (generic_value_print_char): New function
7391 (generic_value_print): Use it.
7392
fdddfccb
TT
73932020-03-13 Tom Tromey <tom@tromey.com>
7394
7395 * valprint.c (generic_value_print_int): New function.
7396 (generic_value_print): Use it.
7397
6dde7521
TT
73982020-03-13 Tom Tromey <tom@tromey.com>
7399
7400 * valprint.c (generic_value_print_bool): New function.
7401 (generic_value_print): Use it.
7402
4112d2e6
TT
74032020-03-13 Tom Tromey <tom@tromey.com>
7404
7405 * valprint.c (generic_val_print_func): Simplify.
7406 (generic_val_print, generic_value_print): Update.
7407
65786af6
TT
74082020-03-13 Tom Tromey <tom@tromey.com>
7409
7410 * valprint.c (generic_val_print_flags): Remove.
7411 (generic_val_print, generic_value_print): Update.
7412 (val_print_type_code_flags): Add original_value parameter.
7413
40f3ce18
TT
74142020-03-13 Tom Tromey <tom@tromey.com>
7415
7416 * valprint.c (generic_val_print): Update.
7417 (generic_value_print): Update.
7418 * valprint.c (generic_val_print_enum): Don't call
7419 val_print_scalar_formatted.
7420
2a5b130b
TT
74212020-03-13 Tom Tromey <tom@tromey.com>
7422
7423 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7424 * valprint.c (generic_value_print_ptr): New function.
7425
abc66ce9
TT
74262020-03-13 Tom Tromey <tom@tromey.com>
7427
7428 * valprint.c (generic_value_print): Rewrite.
7429
07a32858
TT
74302020-03-13 Tom Tromey <tom@tromey.com>
7431
7432 * p-valprint.c (pascal_object_print_value_fields)
7433 (pascal_object_print_value): New functions.
7434
64d64d3a
TT
74352020-03-13 Tom Tromey <tom@tromey.com>
7436
7437 * p-valprint.c (pascal_value_print_inner): Rewrite.
7438
6a95a1f5
TT
74392020-03-13 Tom Tromey <tom@tromey.com>
7440
7441 * f-valprint.c (f_value_print_innner): Rewrite.
7442
59fcdac6
TT
74432020-03-13 Tom Tromey <tom@tromey.com>
7444
7445 * m2-valprint.c (m2_print_unbounded_array): New overload.
7446 (m2_print_unbounded_array): Update.
7447 (m2_print_array_contents): Take a struct value.
7448 (m2_value_print_inner): Rewrite.
7449
d133c3e1
TT
74502020-03-13 Tom Tromey <tom@tromey.com>
7451
7452 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7453 (d_value_print_inner): New function.
7454 * d-lang.h (d_value_print_inner): Declare.
7455 * d-lang.c (d_language_defn): Use d_value_print_inner.
7456
23b0f06b
TT
74572020-03-13 Tom Tromey <tom@tromey.com>
7458
7459 * go-valprint.c (go_value_print_inner): New function.
7460 * go-lang.h (go_value_print_inner): Declare.
7461 * go-lang.c (go_language_defn): Use go_value_print_inner.
7462
5f56f7cb
TT
74632020-03-13 Tom Tromey <tom@tromey.com>
7464
7465 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7466 API.
7467 (rust_val_print): Rewrite.
7468 (rust_value_print_inner): New function, from rust_val_print.
7469 (rust_language_defn): Use rust_value_print_inner.
7470
26792ee0
TT
74712020-03-13 Tom Tromey <tom@tromey.com>
7472
7473 * ada-valprint.c (ada_value_print_inner): New function.
7474 * ada-lang.h (ada_value_print_inner): Declare.
7475 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7476
24051bbe
TT
74772020-03-13 Tom Tromey <tom@tromey.com>
7478
7479 * f-valprint.c (f_value_print_innner): New function.
7480 * f-lang.h (f_value_print_innner): Declare.
7481 * f-lang.c (f_language_defn): Use f_value_print_innner.
7482
c0941be6
TT
74832020-03-13 Tom Tromey <tom@tromey.com>
7484
7485 * p-valprint.c (pascal_value_print_inner): New function.
7486 * p-lang.h (pascal_value_print_inner): Declare.
7487 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7488
62c4663d
TT
74892020-03-13 Tom Tromey <tom@tromey.com>
7490
7491 * m2-valprint.c (m2_value_print_inner): New function.
7492 * m2-lang.h (m2_value_print_inner): Declare.
7493 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7494
62182190
TT
74952020-03-13 Tom Tromey <tom@tromey.com>
7496
7497 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7498 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7499 * c-valprint.c (c_value_print_inner): New function.
7500 * c-lang.h (c_value_print_inner): Declare.
7501 * c-lang.c (c_language_defn, cplus_language_defn)
7502 (asm_language_defn, minimal_language_defn): Use
7503 c_value_print_inner.
7504
1e592a8a
TT
75052020-03-13 Tom Tromey <tom@tromey.com>
7506
7507 * p-valprint.c (pascal_object_print_value_fields): Now static.
7508 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7509
7fe471e9
TT
75102020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * c-valprint.c (c_val_print_array): Simplify.
7513
d121c6ce
TT
75142020-03-13 Tom Tromey <tom@tromey.com>
7515
7516 * valprint.c (value_print_array_elements): New function.
7517 * valprint.h (value_print_array_elements): Declare.
7518
4dba70ee
TT
75192020-03-13 Tom Tromey <tom@tromey.com>
7520
7521 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7522 * mips-tdep.c (mips_print_register): Use
7523 value_print_scalar_formatted.
7524
4f9ae810
TT
75252020-03-13 Tom Tromey <tom@tromey.com>
7526
7527 * valprint.h (value_print_scalar_formatted): Declare.
7528 * valprint.c (value_print_scalar_formatted): New function.
7529
156bfec9
TT
75302020-03-13 Tom Tromey <tom@tromey.com>
7531
7532 * valprint.h (generic_value_print): Declare.
7533 * valprint.c (generic_value_print): New function.
7534
2b4e573d
TT
75352020-03-13 Tom Tromey <tom@tromey.com>
7536
7537 * valprint.c (do_val_print): Call la_value_print_inner, if
7538 available.
7539 * rust-lang.c (rust_language_defn): Update.
7540 * p-lang.c (pascal_language_defn): Update.
7541 * opencl-lang.c (opencl_language_defn): Update.
7542 * objc-lang.c (objc_language_defn): Update.
7543 * m2-lang.c (m2_language_defn): Update.
7544 * language.h (struct language_defn) <la_value_print_inner>: New
7545 member.
7546 * language.c (unknown_language_defn, auto_language_defn): Update.
7547 * go-lang.c (go_language_defn): Update.
7548 * f-lang.c (f_language_defn): Update.
7549 * d-lang.c (d_language_defn): Update.
7550 * c-lang.c (c_language_defn, cplus_language_defn)
7551 (asm_language_defn, minimal_language_defn): Update.
7552 * ada-lang.c (ada_language_defn): Update.
7553
a1f6a07c
TT
75542020-03-13 Tom Tromey <tom@tromey.com>
7555
7556 * c-valprint.c (c_value_print): Use common_val_print.
7557
410cf315
TT
75582020-03-13 Tom Tromey <tom@tromey.com>
7559
7560 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7561
72a45c93
TT
75622020-03-13 Tom Tromey <tom@tromey.com>
7563
7564 * f-valprint.c (f77_print_array_1, f_val_print): Use
7565 common_val_print.
7566
040f66bd
TT
75672020-03-13 Tom Tromey <tom@tromey.com>
7568
7569 * riscv-tdep.c (riscv_print_one_register_info): Use
7570 common_val_print.
7571
a6e05a6c
TT
75722020-03-13 Tom Tromey <tom@tromey.com>
7573
7574 * mi/mi-main.c (output_register): Use common_val_print.
7575
3444c526
TT
75762020-03-13 Tom Tromey <tom@tromey.com>
7577
7578 * infcmd.c (default_print_one_register_info): Use
7579 common_val_print.
7580
c2a44efe
TT
75812020-03-13 Tom Tromey <tom@tromey.com>
7582
7583 * valprint.h (common_val_print_checked): Declare.
7584 * valprint.c (common_val_print_checked): New function.
7585 * stack.c (print_frame_arg): Use common_val_print_checked.
7586
b0c26e99
TT
75872020-03-13 Tom Tromey <tom@tromey.com>
7588
7589 * valprint.c (do_val_print): New function, from val_print.
7590 (val_print): Use do_val_print.
7591 (common_val_print): Use do_val_print.
7592
ce3acbe9
TT
75932020-03-13 Tom Tromey <tom@tromey.com>
7594
7595 * valprint.c (value_print): Use scoped_value_mark.
7596
96c7f873
TV
75972020-03-13 Tom de Vries <tdevries@suse.de>
7598
7599 PR symtab/25646
7600 * psymtab.c (partial_symtab::partial_symtab): Don't set
7601 globals_offset and statics_offset. Push element onto
7602 current_global_psymbols and current_static_psymbols stacks.
7603 (concat): New function.
7604 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7605 element from current_global_psymbols and current_static_psymbols
7606 stacks. Concat popped elements to global_psymbols and
7607 static_symbols.
7608 (add_psymbol_to_list): Use current_global_psymbols and
7609 current_static_psymbols stacks.
7610 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7611 current_static_psymbols fields.
7612
6ba0a321
CB
76132020-03-12 Christian Biesinger <cbiesinger@google.com>
7614
7615 * corelow.c (sniff_core_bfd): Remove.
7616 (class core_target) <m_core_vec>: Remove.
7617 (core_target::core_target): Update.
7618 (core_file_fns): Remove.
7619 (deprecated_add_core_fns): Remove.
7620 (default_core_sniffer): Remove.
7621 (sniff_core_bfd): Remove.
7622 (default_check_format): Remove.
7623 (gdb_check_format): Remove.
7624 (core_target_open): Update.
7625 (core_target::get_core_register_section): Update.
7626 (get_core_registers_cb): Update.
7627 (core_target::fetch_registers): Update.
7628 * gdbcore.h (struct core_fns): Remove.
7629 (deprecated_add_core_fns): Remove.
7630 (default_core_sniffer): Remove.
7631 (default_check_format): Remove.
7632
227031b2
TT
76332020-03-12 Tom Tromey <tom@tromey.com>
7634
7635 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7636 CORE_ADDR.
7637 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7638
53807e9f
TT
76392020-03-12 Tom Tromey <tom@tromey.com>
7640
7641 * remote.c (remote_target::download_tracepoint)
7642 (remote_target::enable_tracepoint)
7643 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7644 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7645 sprintf_vma.
7646
64f25102
TT
76472020-03-12 Tom Tromey <tom@tromey.com>
7648
7649 * symfile-mem.c: Update CORE_ADDR size assert.
7650
272cd5a3
SM
76512020-03-12 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * selftest.m4: Move to gdbsupport/.
7654 * acinclude.m4: Update path to selftest.m4.
7655
74cd3f9d
SM
76562020-03-12 Simon Marchi <simon.marchi@efficios.com>
7657
7658 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7659 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7660 gdbarch-selfselftests.c and selftest-arch.c.
7661 (SUBDIR_UNITTESTS_OBS): Rename to...
7662 (SELFTESTS_OBS): ... this.
7663 (COMMON_SFILES): Remove disasm-selftests.c and
7664 gdbarch-selftests.c.
7665 * configure.ac: Don't add selftest-arch.{c,o} to
7666 CONFIG_{SRCS,OBS}.
7667 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7668 preprocessor conditions.
7669
db6878ac
SM
76702020-03-12 Simon Marchi <simon.marchi@efficios.com>
7671
7672 * configure.ac: Don't source bfd/development.sh.
7673 * selftest.m4: Modify comment.
7674 * configure: Re-generate.
7675
4d696a5c
SM
76762020-03-12 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7679 not "true" or "false".
7680 * configure: Re-generate.
7681
8dd8e1c7
CB
76822020-03-12 Christian Biesinger <cbiesinger@google.com>
7683
7684 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7685 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7686 renamed to arm_nbsd_supply_gregset.
7687 (fetch_register): Update to call arm_nbsd_supply_gregset.
7688 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7689 (arm_netbsd_nat_target::fetch_registers): Update.
7690 (fetch_elfcore_registers): Removed.
7691 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7692 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7693 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7694 not require NetBSD system headers.
7695 (arm_nbsd_regset): New struct.
7696 (arm_nbsd_iterate_over_regset_sections): New function.
7697 (arm_netbsd_init_abi_common): Updated to call
7698 set_gdbarch_iterate_over_regset_sections.
7699 * arm-nbsd-tdep.h: New file.
7700
dd69bf7a
KB
77012020-03-11 Kevin Buettner <kevinb@redhat.com>
7702
7703 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7704 recursion.
7705
a0761e34
SM
77062020-03-11 Simon Marchi <simon.marchi@efficios.com>
7707
7708 * configure: Re-generate.
7709
e7a82140
TT
77102020-03-11 Tom Tromey <tromey@adacore.com>
7711
7712 * ada-typeprint.c (print_choices): Fix comment.
7713
dcc050c8
AB
77142020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7715
7716 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7717 previous item in the list, when the list has no items.
7718
1c33af77
TV
77192020-03-11 Tom de Vries <tdevries@suse.de>
7720
7721 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7722 PROP_LOCLIST handling code.
7723
8c95582d
AB
77242020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7725
7726 * buildsym-legacy.c (record_line): Pass extra parameter to
7727 record_line.
7728 * buildsym.c (buildsym_compunit::record_line): Take an extra
7729 parameter, reduce duplication in the line table, and record the
7730 is_stmt flag in the line table.
7731 * buildsym.h (buildsym_compunit::record_line): Add extra
7732 parameter.
7733 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7734 non-statement lines.
7735 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7736 this to the symtab builder.
7737 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7738 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7739 through to dwarf_record_line_1.
7740 * infrun.c (process_event_stop_test): When stepping, don't stop at
7741 a non-statement instruction, and only refresh the step info when
7742 we land in the middle of a line's range. Also add an extra
7743 comment.
7744 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7745 field.
7746 * record-btrace.c (btrace_find_line_range): Only record lines
7747 marked as is-statement.
7748 * stack.c (frame_show_address): Show the frame address if we are
7749 in a non-statement sal.
7750 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7751 (maintenance_print_one_line_table): Print a header for the is_stmt
7752 column, and include is_stmt information in the output.
7753 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7754 preference to non-statements.
7755 (find_pcs_for_symtab_line): Prefer is-statement entries.
7756 (find_line_common): Likewise.
7757 * symtab.h (struct linetable_entry): Add is_stmt field.
7758 (struct symtab_and_line): Likewise.
7759 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7760 arranging the line table.
7761
e4003a34
TV
77622020-03-07 Tom de Vries <tdevries@suse.de>
7763
7764 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7765 DIE.
7766
e8932576
TT
77672020-03-07 Tom Tromey <tom@tromey.com>
7768
7769 * valops.c (value_literal_complex): Remove obsolete comment.
7770 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7771 comment.
7772
29734269
SM
77732020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7774
7775 * infrun.h: Forward-declare thread_info.
7776 (set_step_info): Add thread_info parameter, add doc.
7777 * infrun.c (set_step_info): Add thread_info parameter, move doc
7778 to header.
7779 * infrun.c (process_event_stop_test): Pass thread to
7780 set_step_info call.
7781 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7782 set_step_info.
7783 (prepare_one_step): Add thread_info parameter, pass it to
7784 set_step_frame and prepare_one_step (recursive) call.
7785 (step_1): Pass thread to prepare_one_step call.
7786 (step_command_fsm::should_stop): Pass thread to
7787 prepare_one_step.
7788 (until_next_fsm): Pass thread to set_step_frame call.
7789 (finish_command): Pass thread to set_step_info call.
7790
b7d64b29
HD
77912020-03-06 Hannes Domani <ssbssa@yahoo.de>
7792
7793 * windows-tdep.c (windows_solib_create_inferior_hook):
7794 Check if inferior is running.
7795
09f2921c
TV
77962020-03-06 Tom de Vries <tdevries@suse.de>
7797
7798 * NEWS: Fix "the the".
7799 * ctfread.c: Same.
7800
fd760e79
TV
78012020-03-06 Tom de Vries <tdevries@suse.de>
7802
7803 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7804
20ea4a60
AB
78052020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 * .dir-locals.el: Add a comment referencing the other copies of
7808 this file.
7809
0afbabf0
JB
78102020-03-05 John Baldwin <jhb@FreeBSD.org>
7811
7812 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7813 psargs.
7814
842806cb
TBA
78152020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7816
7817 * .gitattributes: New file.
7818
be1e3d3e
TT
78192020-03-04 Tom Tromey <tom@tromey.com>
7820
7821 * symmisc.c (print_symbol_bcache_statistics)
7822 (print_objfile_statistics): Update.
7823 * symfile.c (allocate_symtab): Use intern.
7824 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7825 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7826 macro_cache>: Remove.
7827 <string_cache>: New member.
7828 (struct objfile) <intern>: New methods.
7829 * elfread.c (elf_symtab_read): Use intern.
7830 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7831 (dwarf2_compute_name, dwarf2_physname)
7832 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7833 names.
7834 (guess_partial_die_structure_name): Update.
7835 (partial_die_info::fixup): Intern name.
7836 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7837 name.
7838 (dwarf2_name): Intern name. Update.
7839 * buildsym.c (buildsym_compunit::get_macro_table): Use
7840 string_cache.
7841
4e7625fd
TT
78422020-03-04 Tom Tromey <tom@tromey.com>
7843
7844 * jit.c (bfd_open_from_target_memory): Make "target" const.
7845 * corefile.c (gnutarget): Now const.
7846 * gdbcore.h (gnutarget): Now const.
7847
46f9f931
HD
78482020-03-04 Hannes Domani <ssbssa@yahoo.de>
7849
7850 * NEWS: Mention support for WOW64 processes.
7851 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7852 (amd64_windows_segment_register_p): Remove static.
7853 (_initialize_amd64_windows_nat): Update.
7854 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7855 * i386-windows-nat.c (context_offset): Update.
7856 (i386_mappings): Rename and remove static.
7857 (i386_windows_segment_register_p): Remove static.
7858 (_initialize_i386_windows_nat): Update.
7859 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7860 (STATUS_WX86_SINGLE_STEP): New macro.
7861 (EnumProcessModulesEx): New macro.
7862 (Wow64SuspendThread): New macro.
7863 (Wow64GetThreadContext): New macro.
7864 (Wow64SetThreadContext): New macro.
7865 (Wow64GetThreadSelectorEntry): New macro.
7866 (windows_set_context_register_offsets): Add static.
7867 (windows_set_segment_register_p): Likewise.
7868 (windows_add_thread): Adapt for WOW64 processes.
7869 (windows_fetch_one_register): Likewise.
7870 (windows_nat_target::fetch_registers): Likewise.
7871 (windows_store_one_register): Likewise.
7872 (display_selector): Likewise.
7873 (display_selectors): Likewise.
7874 (handle_exception): Likewise.
7875 (windows_continue): Likewise.
7876 (windows_nat_target::resume): Likewise.
7877 (windows_add_all_dlls): Likewise.
7878 (do_initial_windows_stuff): Likewise.
7879 (windows_nat_target::attach): Likewise.
7880 (windows_get_exec_module_filename): Likewise.
7881 (windows_nat_target::create_inferior): Likewise.
7882 (windows_xfer_siginfo): Likewise.
7883 (_initialize_loadable): Initialize Wow64SuspendThread,
7884 Wow64GetThreadContext, Wow64SetThreadContext,
7885 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7886 * windows-nat.h (windows_set_context_register_offsets):
7887 Remove declaration.
7888 (windows_set_segment_register_p): Likewise.
7889 (i386_windows_segment_register_p): Add declaration.
7890 (amd64_windows_segment_register_p): Likewise.
7891
440cf44e
LM
78922020-03-04 Luis Machado <luis.machado@linaro.org>
7893
7894 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7895 in "info registers" for AArch64/ARM.
7896
7897 The change caused "info registers" to not print GPR's.
7898
7899 gdb/ChangeLog:
7900
7901 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7902
7903 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7904 when reg->group is empty and reggroup is not.
7905
1009d92f
TT
79062020-03-03 Tom Tromey <tromey@adacore.com>
7907
7908 * dwarf2/frame.c (struct dwarf2_frame_cache)
7909 <checked_tailcall_bottom, entry_cfa_sp_offset,
7910 entry_cfa_sp_offset_p>: Remove members.
7911 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7912 (dwarf2_frame_prev_register): Don't call
7913 dwarf2_tailcall_sniffer_first.
7914 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7915 * frame-unwind.c (add_unwinder): New fuction.
7916 (frame_unwind_init): Use it. Add tailcall unwinder.
7917
5e5d66b6
AB
79182020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7919 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7920
7921 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7922 value should be printed as true.
7923
584cf46d
HD
79242020-03-03 Hannes Domani <ssbssa@yahoo.de>
7925
7926 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7927 (windows_init_abi): Set and use windows_so_ops.
7928
7b973adc
SDJ
79292020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7930
7931 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7932 when verifying if dealing with a convenience variable.
7933
bb7b70ab
LM
79342020-03-03 Luis Machado <luis.machado@linaro.org>
7935
7936 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7937
9822cb57
SM
79382020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7939
7940 * infrun.c (gdbarch_supports_displaced_stepping): New.
7941 (use_displaced_stepping): Break up conditions in smaller pieces.
7942 Use gdbarch_supports_displaced_stepping.
7943 (displaced_step_prepare_throw): Use
7944 gdbarch_supports_displaced_stepping.
7945
63e163f2
AB
79462020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7947
7948 * NEWS: Mention new behaviour of the history filename.
7949 * top.c (write_history_p): Add comment.
7950 (show_write_history_p): Add header comment, give a different
7951 message when history writing is on, but the history filename is
7952 empty.
7953 (history_filename): Add comment.
7954 (history_filename_empty): New function.
7955 (show_history_filename): Add header comment, give a different
7956 message when the filename is empty.
7957 (init_history): Compare history_filename against nullptr, and only
7958 read history if the filename is not empty.
7959 (set_history_filename): Add header comment, and only make
7960 non-empty filenames absolute.
7961 (init_main): Make the filename argument to 'set history filename'
7962 optional.
7963
81b86b97
CB
79642020-03-02 Christian Biesinger <cbiesinger@google.com>
7965
7966 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7967 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7968 (fetch_fp_register): Update.
7969 (fetch_fp_regs): Update.
7970 (store_fp_register): Update.
7971 (store_fp_regs): Update.
7972 (arm_netbsd_nat_target::read_description): New function.
7973 (fetch_elfcore_registers): Update.
7974
24ed6739
AB
79752020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7976
7977 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7978 general_thread if the stop reply is missing a thread-id.
7979 (remote_target::process_stop_reply): Use the first non-exited
7980 thread if the target didn't pass a thread-id.
7981 * infrun.c (do_target_wait): Move call to
7982 switch_to_inferior_no_thread to ....
7983 (do_target_wait_1): ... here.
7984
a84bb2a0
JT
79852020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7986
7987 * debuginfod-support.c: Include defs.h first.
7988
658dadf0
TV
79892020-02-28 Tom de Vries <tdevries@suse.de>
7990
7991 * symfile.c (set_initial_language): Use default language for lookup.
7992
4ebe4877
SM
79932020-02-28 Simon Marchi <simon.marchi@efficios.com>
7994
7995 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7996 reader variable, pass `this` to read_cutu_die_from_dwo.
7997
e5da1139
AM
79982020-02-27 Aaron Merey <amerey@redhat.com>
7999
8000 * source.c (open_source_file): Check for nullptr when computing
8001 srcpath.
8002
317f7127
TT
80032020-02-27 Tom Tromey <tromey@adacore.com>
8004
8005 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8006 member.
8007 (dwarf2_add_field): Don't update nfields.
8008 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8009
3104d9ee
AB
80102020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8011
8012 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8013 abs.
8014
b83470bf
TT
80152020-02-26 Tom Tromey <tom@tromey.com>
8016
8017 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8018 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8019 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8020 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8021 per_cu_data.
8022
edfe0a0c
TT
80232020-02-26 Tom Tromey <tom@tromey.com>
8024
8025 * dwarf2/index-write.c (psym_index_map): Change type.
8026 (add_address_entry_worker, write_one_signatured_type)
8027 (recursively_count_psymbols, recursively_write_psymbols)
8028 (class debug_names, psyms_seen_size, write_gdbindex)
8029 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8030
0d79cdc4
AM
80312020-02-26 Aaron Merey <amerey@redhat.com>
8032
8033 * Makefile.in: Handle optional debuginfod support.
8034 * NEWS: Update.
8035 * README: Add --with-debuginfod summary.
8036 * config.in: Regenerate.
8037 * configure: Regenerate.
8038 * configure.ac: Handle optional debuginfod support.
8039 * debuginfod-support.c: debuginfod helper functions.
8040 * debuginfod-support.h: Ditto.
8041 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8042 summary.
8043 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8044 when a dwz file cannot be found.
8045 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8046 debuginfo file cannot be found.
8047 * source.c (open_source_file): Query debuginfod servers when a
8048 source file cannot be found.
8049 * top.c (print_gdb_configuration): Include
8050 --{with,without}-debuginfod in the output.
8051
b65ce565
JG
80522020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8053
8054 * thread.c (thr_try_catch_cmd): Print thread name.
8055
d4c9a4f8
SM
80562020-02-26 Simon Marchi <simon.marchi@efficios.com>
8057
8058 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8059 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8060 dwarf2_fetch_die_type_sect_off): Move to...
8061 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8062 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8063 dwarf2_fetch_die_type_sect_off): ... here.
8064 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8065 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8066 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8067
0dce4280
TV
80682020-02-26 Tom de Vries <tdevries@suse.de>
8069
8070 PR gdb/25603
8071 * symfile.c (set_initial_language): Exit-early if
8072 language_mode == language_mode_manual.
8073
450a1bfc
SM
80742020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8075
8076 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8077 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8078 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8079
9e80cfa1
AB
80802020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 * gdbtypes.c (create_array_type_with_stride): Handle negative
8083 array strides.
8084 * valarith.c (value_subscripted_rvalue): Likewise.
8085
09624f1f
LM
80862020-02-25 Luis Machado <luis.machado@linaro.org>
8087
8088 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8089
8cb5117c
SM
80902020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8091
8092 * loc.h (dwarf2_get_die_type): Move to...
8093 * read.h (dwarf2_get_die_type): ... here.
8094 * read.c (dwarf2_get_die_type): Move doc to header.
8095
c325c44e
JB
80962020-02-25 Joel Brobecker <brobecker@adacore.com>
8097
8098 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8099 'gnulib/Makefile.in' to the list.
8100
4ac93832
TT
81012020-02-24 Tom Tromey <tom@tromey.com>
8102
8103 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8104 Remove.
8105 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8106 XOBNEWVEC.
8107
197400e8
TT
81082020-02-24 Tom Tromey <tom@tromey.com>
8109
8110 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8111 New method.
8112 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8113 (dw2_do_instantiate_symtab, dw2_get_file_names)
8114 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8115
76935768
TT
81162020-02-24 Tom Tromey <tom@tromey.com>
8117
8118 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8119 make_scoped_restore.
8120 (dwarf2_psymtab::read_symtab): Don't clear
8121 reading_partial_symbols.
8122
a88ef40d
TV
81232020-02-24 Tom de Vries <tdevries@suse.de>
8124
8125 PR gdb/25592
8126 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8127
c9af6521
TV
81282020-02-24 Tom de Vries <tdevries@suse.de>
8129
8130 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8131 commands layout next/prev/regs.
8132
5707a07a
TT
81332020-02-22 Tom Tromey <tom@tromey.com>
8134
8135 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8136 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8137
3b0fb49e
TT
81382020-02-22 Tom Tromey <tom@tromey.com>
8139
8140 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8141
283be8bf
TT
81422020-02-22 Tom Tromey <tom@tromey.com>
8143
8144 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8145 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8146 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8147 * tui/tui.c (_initialize_tui): Add usage text.
8148
ca793b96
TT
81492020-02-22 Tom Tromey <tom@tromey.com>
8150
8151 * tui/tui-win.c (tui_set_focus_command)
8152 (tui_set_win_height_command): Use error_no_arg.
8153 (_initialize_tui_win): Update help text.
8154 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8155
432b5c40
TT
81562020-02-22 Tom Tromey <tom@tromey.com>
8157
8158 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8159 * tui/tui-disasm.h (struct tui_disasm_window)
8160 <display_start_addr>: Declare.
8161 * tui/tui-source.h (struct tui_source_window)
8162 <display_start_addr>: Declare.
8163 * tui/tui-winsource.h (struct tui_source_window_base)
8164 <show_source_line, display_start_addr>: New methods.
8165 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8166 Rename and move to protected section.
8167 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8168 (tui_source_window_base::do_erase_source_content): Update.
8169 (tui_source_window_base::show_source_line): Now a method.
8170 (tui_source_window_base::show_source_content)
8171 (tui_source_window_base::tui_source_window_base)
8172 (tui_source_window_base::rerender)
8173 (tui_source_window_base::refill)
8174 (tui_source_window_base::do_scroll_horizontal)
8175 (tui_source_window_base::set_is_exec_point_at)
8176 (tui_source_window_base::update_breakpoint_info)
8177 (tui_source_window_base::update_exec_info): Update.
8178 * tui/tui-source.c (tui_source_window::set_contents)
8179 (tui_source_window::showing_source_p)
8180 (tui_source_window::do_scroll_vertical)
8181 (tui_source_window::location_matches_p)
8182 (tui_source_window::line_is_displayed): Update.
8183 (tui_source_window::display_start_addr): New method.
8184 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8185 (tui_disasm_window::do_scroll_vertical)
8186 (tui_disasm_window::location_matches_p): Update.
8187 (tui_disasm_window::display_start_addr): New method.
8188
01b1af32
TT
81892020-02-22 Tom Tromey <tom@tromey.com>
8190
8191 * NEWS: Add entry for gdb.register_window_type.
8192 * tui/tui-layout.h (window_factory): New typedef.
8193 (tui_register_window): Declare.
8194 * tui/tui-layout.c (saved_tui_windows): New global.
8195 (tui_apply_current_layout): Use it.
8196 (tui_register_window): New function.
8197 * python/python.c (do_start_initialization): Call
8198 gdbpy_initialize_tui.
8199 (python_GdbMethods): Add "register_window_type" function.
8200 * python/python-internal.h (gdbpy_register_tui_window)
8201 (gdbpy_initialize_tui): Declare.
8202 * python/py-tui.c: New file.
8203 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8204
fc96d20b
TT
82052020-02-22 Tom Tromey <tom@tromey.com>
8206
8207 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8208
935c78c0
TT
82092020-02-22 Tom Tromey <tom@tromey.com>
8210
8211 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8212 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8213 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8214 (tui_set_win_focus_to): Move from tui-win.c.
8215
0240c8f1
TT
82162020-02-22 Tom Tromey <tom@tromey.com>
8217
8218 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8219 functions.
8220 (known_window_types): New global.
8221 (tui_get_window_by_name): Reimplement.
8222 (initialize_known_windows): New function.
8223 (validate_window_name): Rewrite.
8224 (_initialize_tui_layout): Call initialize_known_windows.
8225
fdb01f0c
TT
82262020-02-22 Tom Tromey <tom@tromey.com>
8227
8228 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8229 Remove constants.
8230 * tui/tui-winsource.h (struct tui_source_window_base)
8231 <tui_source_window_base>: Remove parameter.
8232 * tui/tui-winsource.c
8233 (tui_source_window_base::tui_source_window_base): Remove
8234 parameter.
8235 (tui_source_window_base::refill): Update.
8236 * tui/tui-stack.h (struct tui_locator_window)
8237 <tui_locator_window>: Update.
8238 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8239 Default the constructor.
8240 * tui/tui-regs.h (struct tui_data_item_window)
8241 <tui_data_item_window>: Default the constructor.
8242 (struct tui_data_window) <tui_data_window>: Likewise.
8243 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8244 Default the constructor.
8245 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8246 Default the constructor.
8247 <type>: Remove.
8248 (struct tui_win_info) <tui_win_info>: Default the constructor.
8249 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8250 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8251 Default the constructor.
8252
865a5aec
TT
82532020-02-22 Tom Tromey <tom@tromey.com>
8254
8255 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8256 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8257 * tui/tui-win.c (tui_resize_all): Don't call
8258 tui_delete_invisible_windows.
8259 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8260 done.
8261 (tui_set_layout): Update.
8262 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8263 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8264 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8265
e098d18c
TT
82662020-02-22 Tom Tromey <tom@tromey.com>
8267
8268 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8269 correctly.
8270
eb9c8874
TT
82712020-02-22 Tom Tromey <tom@tromey.com>
8272
8273 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8274
7eed1a8e
TT
82752020-02-22 Tom Tromey <tom@tromey.com>
8276
8277 * tui/tui-winsource.h (struct tui_source_window_iterator)
8278 <inner_iterator>: New etytypedef.
8279 <tui_source_window_iterator>: Take "end" parameter.
8280 <tui_source_window_iterator>: Take iterator.
8281 <operator*, advance>: Update.
8282 <m_iter>: Change type.
8283 <m_end>: New field.
8284 (struct tui_source_windows) <begin, end>: Update.
8285 * tui/tui-layout.c (tui_windows): New global.
8286 (tui_apply_current_layout): Clear tui_windows.
8287 (tui_layout_window::apply): Update tui_windows.
8288 * tui/tui-data.h (tui_windows): Declare.
8289 (all_tui_windows): Now inline function.
8290 (class tui_window_iterator, struct all_tui_windows): Remove.
8291
7c043ba6
TT
82922020-02-22 Tom Tromey <tom@tromey.com>
8293
8294 PR tui/17850:
8295 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8296 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8297 "height" argument.
8298 (class tui_layout_window) <get_sizes>: Likewise.
8299 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8300 argument.
8301 <get_sizes>: Add "height" argument.
8302 <m_vertical>: New field.
8303 * tui/tui-layout.c (tui_layout_split::clone): Update.
8304 (tui_layout_split::get_sizes): Add "height" argument.
8305 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8306 (tui_new_layout_command): Parse "-horizontal".
8307 (_initialize_tui_layout): Update help string.
8308 (tui_layout_split::specification): Add "-horizontal" when needed.
8309 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8310 argument.
8311 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8312 New methods.
8313
6bc56648
TT
83142020-02-22 Tom Tromey <tom@tromey.com>
8315
8316 * tui/tui-layout.h (enum tui_adjust_result): New.
8317 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8318 (class tui_layout_window) <adjust_size>: Return
8319 tui_adjust_result. Rewrite.
8320 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8321 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8322
c22fef7e
TT
83232020-02-22 Tom Tromey <tom@tromey.com>
8324
8325 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8326 parameter and return types.
8327 (class tui_layout_base) <specification>: Add "depth".
8328 (class tui_layout_window) <specification>: Add "depth".
8329 (class tui_layout_split) <specification>: Add "depth".
8330 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8331 and return types.
8332 (tui_new_layout_command): Parse sub-layouts.
8333 (_initialize_tui_layout): Update help string.
8334 (tui_layout_window::specification): Add "depth".
8335 (add_layout_command): Update.
8336
ee325b61
TT
83372020-02-22 Tom Tromey <tom@tromey.com>
8338
8339 * NEWS: Add "tui new-layout" item.
8340 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8341 Add new-layout command to help text.
8342 (validate_window_name): New function.
8343 (tui_new_layout_command): New function.
8344 (_initialize_tui_layout): Register "new-layout".
8345 (tui_layout_window::specification): New method.
8346 (tui_layout_window::specification): New method.
8347 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8348 method.
8349 (class tui_layout_window) <specification>: New method.
8350 (class tui_layout_split) <specification>: New method.
8351
416eb92d
TT
83522020-02-22 Tom Tromey <tom@tromey.com>
8353
8354 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8355 * tui/tui-win.c (window_name_completer): Update comment.
8356 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8357 Declare method.
8358 (class tui_layout_window) <replace_window>: Likewise.
8359 (class tui_layout_split) <replace_window>: Likewise.
8360 (tui_set_layout): Don't declare.
8361 (tui_set_initial_layout): Declare function.
8362 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8363 (asm_regs_layout): New globals.
8364 (tui_current_layout, show_layout): Remove.
8365 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8366 (find_layout, tui_apply_layout): New function.
8367 (layout_completer): Remove.
8368 (tui_next_layout): Reimplement.
8369 (tui_next_layout_command): New function.
8370 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8371 (tui_regs_layout): Reimplement.
8372 (tui_regs_layout_command): New function.
8373 (extract_display_start_addr): Rewrite.
8374 (next_layout, prev_layout): Remove.
8375 (tui_layout_window::replace_window): New method.
8376 (tui_layout_split::replace_window): New method.
8377 (destroy_layout): New function.
8378 (layout_list): New global.
8379 (add_layout_command): New function.
8380 (initialize_layouts): Update.
8381 (tui_layout_command): New function.
8382 (_initialize_tui_layout): Install "layout" commands.
8383 * tui/tui-data.h (enum tui_layout_type): Remove.
8384 (tui_current_layout): Don't declare.
8385
0dbc2fc7
TT
83862020-02-22 Tom Tromey <tom@tromey.com>
8387
8388 * tui/tui-regs.c (tui_reg_layout): Remove.
8389 (tui_reg_command): Use tui_regs_layout.
8390 * tui/tui-layout.h (tui_reg_command): Declare.
8391 * tui/tui-layout.c (tui_reg_command): New function.
8392
5afe342e
TT
83932020-02-22 Tom Tromey <tom@tromey.com>
8394
8395 * tui/tui.c (tui_rl_delete_other_windows): Call
8396 tui_remove_some_windows.
8397 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8398 Declare method.
8399 (class tui_layout_window) <remove_windows>: New method.
8400 (class tui_layout_split) <remove_windows>: Declare.
8401 (tui_remove_some_windows): Declare.
8402 * tui/tui-layout.c (tui_remove_some_windows): New function.
8403 (tui_layout_split::remove_windows): New method.
8404
427326a8
TT
84052020-02-22 Tom Tromey <tom@tromey.com>
8406
8407 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8408 * tui/tui-layout.h (tui_next_layout): Declare.
8409 * tui/tui-layout.c (tui_next_layout): New function.
8410
3fe12b6d
TT
84112020-02-22 Tom Tromey <tom@tromey.com>
8412
8413 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8414 correct coordinates.
8415
59b8b5d2
TT
84162020-02-22 Tom Tromey <tom@tromey.com>
8417
8418 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8419 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8420 DATA_WIN case.
8421
2a3d458b
TT
84222020-02-22 Tom Tromey <tom@tromey.com>
8423
8424 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8425 TUI_DISASM_WIN, not tui_win_list.
8426
3f0cbb04
TT
84272020-02-22 Tom Tromey <tom@tromey.com>
8428
8429 * valprint.c (generic_val_print_enum_1)
8430 (val_print_type_code_flags): Style member names.
8431 * rust-lang.c (val_print_struct, rust_print_enum)
8432 (rust_print_struct_def, rust_internal_print_type): Style member
8433 names.
8434 * p-valprint.c (pascal_object_print_value_fields): Style member
8435 names. Only call fprintf_symbol_filtered for static members.
8436 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8437 * f-valprint.c (f_val_print): Style member names.
8438 * f-typeprint.c (f_type_print_base): Style member names.
8439 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8440 call fprintf_symbol_filtered for static members.
8441 (cp_print_class_member): Style member names.
8442 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8443 member names.
8444 * ada-valprint.c (ada_print_scalar): Style enum names.
8445 (ada_val_print_enum): Likewise.
8446 * ada-typeprint.c (print_enum_type): Style enum names.
8447
d4d947ae
TT
84482020-02-21 Tom Tromey <tom@tromey.com>
8449
8450 * psympriv.h (struct partial_symtab): Update comment.
8451
e94e944b
TT
84522020-02-21 Tom Tromey <tromey@adacore.com>
8453
8454 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8455 type is CORE_ADDR.
8456
1eb73179
TV
84572020-02-21 Tom de Vries <tdevries@suse.de>
8458
8459 PR gdb/25534
8460 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8461 if dependencies[i]->user != NULL.
8462
4f180d53
AT
84632020-02-21 Ali Tamur <tamur@google.com>
8464
8465 * dwarf2/read.c (dwarf2_name): Add null check.
8466
22b6cd70
TT
84672020-02-20 Tom Tromey <tom@tromey.com>
8468
8469 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8470 ">=", in binary search.
8471 (dwarf2_find_containing_comp_unit): New overload.
8472 (run_test): New self-test.
8473 (_initialize_dwarf2_read): Register new test.
8474
bd0cf5a6
NC
84752020-02-20 Nelson Chu <nelson.chu@sifive.com>
8476
8477 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8478 * riscv-tdep.h: Likewise.
8479 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8480 rv32-only CSR.
8481 * features/riscv/64bit-csr.xml: Regenerated.
8482
3f702acd
SDJ
84832020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8484 Tom Tromey <tom@tromey.com>
8485
8486 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8487 of 'fputc_unfiltered'.
8488 (putchar_unfiltered): Call 'fputc_unfiltered'.
8489 (fputc_unfiltered): Call 'fputs_unfiltered'.
8490
d13c7322
AB
84912020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8492
8493 * config.in: Regenerate.
8494 * configure: Regenerate.
8495 * configure.ac: Add --with-python-libdir option.
8496 * main.c: Use WITH_PYTHON_LIBDIR.
8497
869d8950
TT
84982020-02-19 Tom Tromey <tom@tromey.com>
8499
8500 * symtab.c (general_symbol_info::compute_and_set_names): Use
8501 obstack_strndup. Simplify call to symbol_set_demangled_name.
8502
298e9637
SM
85032020-02-19 Simon Marchi <simon.marchi@efficios.com>
8504
8505 * dwarf2/read.c (allocate_signatured_type_table,
8506 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8507 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8508 Remove objfile parameter, update all callers.
8509
08410482
DE
85102020-02-19 Doug Evans <dje@google.com>
8511
8512 PR rust/25535
8513 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8514 rust_enum_variant calculation.
8515
dfdeeca1
TT
85162020-02-19 Tom Tromey <tromey@adacore.com>
8517
8518 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8519
2ef5453b
TT
85202020-02-19 Tom Tromey <tromey@adacore.com>
8521
8522 * ada-lang.c (cache_symbol): Use obstack_strdup.
8523
9f1528a1
AB
85242020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8525
8526 * configure: Regenerate.
8527
d3c22fa8
TT
85282020-02-19 Tom Tromey <tromey@adacore.com>
8529
8530 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8531 NULL check.
8532
bf84f706
MR
85332020-02-19 Maciej W. Rozycki <macro@wdc.com>
8534
8535 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8536
d1c9b20f
AB
85372020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8538
8539 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8540 if GDBSERVER is not defined.
8541 (riscv_tdesc_cache): Likewise, also store const target_desc.
8542 (STATIC_IN_GDB): Define.
8543 (riscv_create_target_description): Update declaration with
8544 STATIC_IN_GDB.
8545 (riscv_lookup_target_description): New function, only define if
8546 GDBSERVER is not defined.
8547 * arch/riscv.h (riscv_create_target_description): Declare only
8548 when GDBSERVER is defined.
8549 (riscv_lookup_target_description): New declaration when GDBSERVER
8550 is not defined.
8551 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8552 (riscv_linux_read_features): ...this, and return
8553 riscv_gdbarch_features instead of target_desc.
8554 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8555 (riscv_linux_read_description): Rename to...
8556 (riscv_linux_read_features): ...this.
8557 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8558 Update to use riscv_gdbarch_features and
8559 riscv_lookup_target_description.
8560 * riscv-tdep.c (riscv_find_default_target_description): Use
8561 riscv_lookup_target_description instead of
8562 riscv_create_target_description.
8563
373d7ac0
SM
85642020-02-18 Simon Marchi <simon.marchi@efficios.com>
8565
8566 * valprint.c (generic_val_print_enum_1): When printing a flag
8567 enum with value 0 and there is no enumerator with value 0, print
8568 just "0" instead of "(unknown: 0x0)".
8569
b29a2df0
SM
85702020-02-18 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * valprint.c (generic_val_print_enum_1): Print unknown part of
8573 flag enum in hex.
8574
6740f0cc
SM
85752020-02-18 Simon Marchi <simon.marchi@efficios.com>
8576
8577 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8578 flag enums to contain duplicate enumerators.
8579 * valprint.c (generic_val_print_enum_1): Update comment.
8580
edd45eb0
SM
85812020-02-18 Simon Marchi <simon.marchi@efficios.com>
8582
8583 * dwarf2/read.c: Include "count-one-bits.h".
8584 (update_enumeration_type_from_children): If an enumerator has
8585 multiple bits set, don't treat the enumeration as a "flag enum".
8586 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8587 of flag enums have 0 or 1 bit set.
8588
6d0cf446
BE
85892020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8590
8591 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8592 conversion.
8593 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8594 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8595 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8596 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8597 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8598
7001c1b7
SM
85992020-02-18 Simon Marchi <simon.marchi@efficios.com>
8600
8601 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8602
fdb61c6c
SM
86032020-02-14 Simon Marchi <simon.marchi@efficios.com>
8604
8605 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8606 displaced_step_closure_up.
8607 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8608 (struct displaced_step_closure_up):
8609 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8610 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8611 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8612 Likewise.
8613 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8614 * gdbarch.c, gdbarch.h: Re-generate.
8615 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8616 displaced_step_closure_up.
8617 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8618 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8619 * infrun.h (displaced_step_closure_up): New type alias.
8620 (struct displaced_step_inferior_state) <step_closure>: Change
8621 type to displaced_step_closure_up.
8622 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8623 displaced_step_closure_up.
8624 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8625
a4a38eb4
TT
86262020-02-14 Tom Tromey <tom@tromey.com>
8627
8628 * minidebug.c (gnu_debug_key): New global.
8629 (find_separate_debug_file_in_section): Use it.
8630
e8217e61
SM
86312020-02-14 Simon Marchi <simon.marchi@efficios.com>
8632
8633 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8634 std::unique_ptr.
8635 * gdbarch.c: Re-generate.
8636 * gdbarch.h: Re-generate.
8637 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8638 change.
8639 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8640 type to std::unique_ptr.
8641 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8642 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8643 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8644 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8645 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8646 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8647 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8648 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8649 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8650
d8d83535
SM
86512020-02-14 Simon Marchi <simon.marchi@efficios.com>
8652
8653 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8654 std::unique_ptr.
8655 (displaced_step_clear): Rename to...
8656 (displaced_step_reset): ... this. Just call displaced->reset ().
8657 (displaced_step_clear_cleanup): Rename to...
8658 (displaced_step_reset_cleanup): ... this.
8659 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8660 (displaced_step_fixup): Likewise.
8661 (resume_1): Likewise.
8662 (handle_inferior_event): Restore child's memory before calling
8663 displaced_step_fixup on the parent.
8664 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8665 to std::unique_ptr.
8666 <step_closure>: Change type to std::unique_ptr.
8667
5f661e03
SM
86682020-02-14 Simon Marchi <simon.marchi@efficios.com>
8669
8670 * arm-tdep.c: Include count-one-bits.h.
8671 (cleanup_block_store_pc): Use count_one_bits.
8672 (cleanup_block_load_pc): Use count_one_bits.
8673 (arm_copy_block_xfer): Use count_one_bits.
8674 (thumb2_copy_block_xfer): Use count_one_bits.
8675 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8676 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8677 (thumb_get_next_pcs_raw): Use count_one_bits.
8678 (arm_get_next_pcs_raw): Use count_one_bits_l.
8679 * arch/arm.c (bitcount): Remove.
8680 * arch/arm.h (bitcount): Remove.
8681
8084e579
TT
86822020-02-14 Tom Tromey <tromey@adacore.com>
8683
8684 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8685 Update.
8686 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8687 * dwarf2/loc.c (call_site_find_chain_1): Return
8688 unique_xmalloc_ptr.
8689 (call_site_find_chain): Likewise.
8690
258bf0ee
RB
86912020-02-14 Richard Biener <rguenther@suse.de>
8692
8693 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8694 on expression with division operators.
8695
f98a8458
AKS
86962020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8697
8698 * MAINTAINERS (Write After Approval): Adding myself.
8699
d1437c0e
TT
87002020-02-12 Tom Tromey <tom@tromey.com>
8701
8702 * event-loop.c (event_data, gdb_event, event_handler_func):
8703 Remove.
8704
3d4560f7
TT
87052020-02-12 Tom Tromey <tom@tromey.com>
8706
8707 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8708 (dwarf2_frame_objfile_data): Add comment.
8709 (find_comp_unit, set_comp_unit): New functions.
8710 (dwarf2_frame_find_fde): Use find_comp_unit.
8711 (dwarf2_build_frame_info): Use set_comp_unit.
8712
21982304
TT
87132020-02-12 Tom Tromey <tom@tromey.com>
8714
8715 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8716 (comp_unit): Don't initialize objfile.
8717 (execute_cfa_program): Add text_offset parameter.
8718 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8719 (dwarf2_frame_cache): Update.
8720 (dwarf2_build_frame_info): Don't set "objfile" member.
8721
4debb237
TT
87222020-02-12 Tom Tromey <tom@tromey.com>
8723
8724 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8725 (decode_frame_entry): Likewise.
8726 (dwarf2_build_frame_info): Update.
8727
0d404d44
TT
87282020-02-12 Tom Tromey <tom@tromey.com>
8729
8730 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8731 (decode_frame_entry_1): Use the comp_unit obstack.
8732
a7a3ae5c
TT
87332020-02-12 Tom Tromey <tom@tromey.com>
8734
8735 * dwarf2/frame.c (struct comp_unit): Add initializers and
8736 constructor.
8737 (dwarf2_frame_objfile_data): Store a comp_unit.
8738 (dwarf2_frame_find_fde): Update.
8739 (dwarf2_build_frame_info): Use "new".
8740
a9d65418
TT
87412020-02-12 Tom Tromey <tom@tromey.com>
8742
8743 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8744 (dwarf2_fde_table): Typedef for std::vector.
8745 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8746 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8747 (decode_frame_entry): Update.
8748 (dwarf2_build_frame_info): Use "new".
8749
7559c217
CB
87502020-02-12 Christian Biesinger <cbiesinger@google.com>
8751
8752 * arm-tdep.c (arm_gdbarch_init): Update.
8753 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8754 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8755 have_neon, is_m>: Change to bool.
8756
aeefc73c
CB
87572020-02-12 Christian Biesinger <cbiesinger@google.com>
8758
8759 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8760
d27b8e5f
TT
87612020-02-12 Tom Tromey <tom@tromey.com>
8762
8763 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8764
cd5900f3
HD
87652020-02-12 Hannes Domani <ssbssa@yahoo.de>
8766
8767 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8768 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8769
f056b22b
TT
87702020-02-11 Tom Tromey <tom@tromey.com>
8771
8772 * psymtab.h: Update comment.
8773
f92ff6b5
TT
87742020-02-11 Tom Tromey <tom@tromey.com>
8775
8776 * gdb_obstack.h (struct auto_obstack): Use
8777 DISABLE_COPY_AND_ASSIGN.
8778
3fd6912b
TT
87792020-02-11 Tom Tromey <tom@tromey.com>
8780
8781 * dwarf2/frame.h (struct objfile): Don't forward declare.
8782
69ed9b74
CB
87832020-02-11 Christian Biesinger <cbiesinger@google.com>
8784
8785 * cris-tdep.c (cris_supply_gregset): Change signature to match
8786 what struct regset expects.
8787 (cris_regset): New struct.
8788 (fetch_core_registers): Remove.
8789 (cris_iterate_over_regset_sections): New function.
8790 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8791 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8792
bda874f6
CB
87932020-02-11 Christian Biesinger <cbiesinger@google.com>
8794
8795 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8796 registers.
8797
754e1564
CB
87982020-02-11 Christian Biesinger <cbiesinger@google.com>
8799
8800 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8801
8ddd8e0e
SM
88022020-02-11 Simon Marchi <simon.marchi@efficios.com>
8803
8804 * configure: Re-generate.
8805
898e7f60
SM
88062020-02-11 Simon Marchi <simon.marchi@efficios.com>
8807
8808 * configure: Re-generate.
8809
58df732b
SM
88102020-02-11 Simon Marchi <simon.marchi@efficios.com>
8811
8812 * acinclude: Update warning.m4 path.
8813 * warning.m4: Move to gdbsupport.
8814
da5bd37e
TT
88152020-02-11 Tom Tromey <tromey@adacore.com>
8816
8817 * remote.c (remote_console_output): Update.
8818 * printcmd.c (printf_command): Update.
8819 * event-loop.c (gdb_wait_for_event): Update.
8820 * linux-nat.c (sigchld_handler): Update.
8821 * remote-sim.c (gdb_os_write_stdout): Update.
8822 (gdb_os_flush_stdout): Update.
8823 (gdb_os_flush_stderr): Update.
8824 (gdb_os_write_stderr): Update.
8825 * exceptions.c (print_exception): Update.
8826 * remote-fileio.c (remote_fileio_func_read): Update.
8827 (remote_fileio_func_write): Update.
8828 * tui/tui.c (tui_enable): Update.
8829 * tui/tui-interp.c (tui_interp::init): Update.
8830 * utils.c (init_page_info): Update.
8831 (putchar_unfiltered, fputc_unfiltered): Update.
8832 (gdb_flush): Update.
8833 (emit_style_escape): Update.
8834 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8835 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8836 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8837 (stderr_file::write): Update.
8838 (stderr_file::puts): Update.
8839 * ui-file.h (ui_file_isatty, ui_file_write)
8840 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8841 (ui_file_puts): Don't declare.
8842
85f0dd3c
TV
88432020-02-10 Tom de Vries <tdevries@suse.de>
8844
8845 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8846 sentinel to char *.
8847
2e927613
TV
88482020-02-09 Tom de Vries <tdevries@suse.de>
8849
8850 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8851 filename if it matches "<artificial>".
8852
6bafc845
HD
88532020-02-09 Hannes Domani <ssbssa@yahoo.de>
8854
8855 * windows-tdep.c (struct enum_value_name): New struct.
8856 (create_enum): New function.
8857 (windows_get_siginfo_type): Create and use enum types.
8858
7928d571
HD
88592020-02-09 Hannes Domani <ssbssa@yahoo.de>
8860
8861 * NEWS: Mention $_siginfo support for Windows.
8862 * windows-nat.c (handle_exception): Set siginfo_er.
8863 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8864 (windows_xfer_siginfo): New function.
8865 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8866 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8867 (init_windows_gdbarch_data): New function.
8868 (get_windows_gdbarch_data): New function.
8869 (windows_get_siginfo_type): New function.
8870 (windows_init_abi): Register windows_get_siginfo_type.
8871 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8872
6751ebae
TT
88732020-02-08 Tom Tromey <tom@tromey.com>
8874
8875 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8876 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8877 <keep>: Declare method.
8878 <m_keep>: Remove member.
8879 <~cutu_reader>: Remove.
8880 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8881 (cutu_reader::cutu_reader): Update.
8882 (cutu_reader::keep): Rename from ~cutu_reader.
8883 (process_psymtab_comp_unit, build_type_psymtabs_1)
8884 (process_skeletonless_type_unit, load_partial_comp_unit)
8885 (load_full_comp_unit, dwarf2_read_addr_index)
8886 (read_signatured_type): Update.
8887
135f5437
TT
88882020-02-08 Tom Tromey <tom@tromey.com>
8889
8890 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8891 "want_partial_unit" parameter.
8892 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8893 Inline check for DW_TAG_partial_unit.
8894 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8895
9f66ff1c
TT
88962020-02-08 Tom Tromey <tom@tromey.com>
8897
8898 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8899 read.c.
8900 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8901 read.c.
8902
c8a7a66f
TT
89032020-02-08 Tom Tromey <tom@tromey.com>
8904
8905 * dwarf2/read.c (read_address): Move to comp-unit.c.
8906 (dwarf2_rnglists_process, dwarf2_ranges_process)
8907 (read_attribute_value, dwarf_decode_lines_1)
8908 (var_decode_location, decode_locdesc): Update.
8909 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8910 read.c. Remove "cu" parameter.
8911 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8912 method.
8913
8266302d
TT
89142020-02-08 Tom Tromey <tom@tromey.com>
8915
8916 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8917 (read_indirect_line_string): Update.
8918 * dwarf2/comp-unit.c (read_offset): Remove.
8919 (read_comp_unit_head): Update.
8920 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8921 method.
8922 (read_offset): Don't declare.
8923
4057dfde
TT
89242020-02-08 Tom Tromey <tom@tromey.com>
8925
8926 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8927 * dwarf2/read.c (struct comp_unit_head): Move to
8928 dwarf2/comp-unit.h.
8929 (enum class rcuh_kind): Move to comp-unit.h.
8930 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8931 (read_comp_unit_head, error_check_comp_unit_head)
8932 (read_and_check_comp_unit_head): Move to comp-unit.c.
8933 (read_offset, dwarf_unit_type_name): Likewise.
8934 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8935 (cutu_reader::cutu_reader, read_call_site_scope)
8936 (find_partial_die, follow_die_offset): Update.
8937 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8938
24aa364d
TT
89392020-02-08 Tom Tromey <tom@tromey.com>
8940
8941 * dwarf2/read.c (read_offset_1): Move to leb.c.
8942 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8943 (dwarf_decode_macro_bytes): Update.
8944 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8945 * dwarf2/leb.h (read_offset): Declare.
8946
2c7d5afc
TT
89472020-02-08 Tom Tromey <tom@tromey.com>
8948
8949 * dwarf2/read.c (dwarf2_section_size): Remove.
8950 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8951 Update.
8952 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8953
4075cb26
TT
89542020-02-08 Tom Tromey <tom@tromey.com>
8955
8956 * dwarf2/read.c (read_initial_length): Move to leb.c.
8957 * dwarf2/leb.h (read_initial_length): Declare.
8958 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8959 handle_nonstd parameter.
8960 * dwarf2/frame.c (read_initial_length): Remove.
8961 (decode_frame_entry_1): Update.
8962
09ba997f
TT
89632020-02-08 Tom Tromey <tom@tromey.com>
8964
8965 * dwarf2/loc.c (dwarf2_find_location_expression)
8966 (dwarf_evaluate_loc_desc::get_tls_address)
8967 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8968 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8969 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8970 (dwarf2_compile_property_to_c)
8971 (dwarf2_loc_desc_get_symbol_read_needs)
8972 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8973 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8974 (loclist_describe_location, loclist_tracepoint_var_ref)
8975 (loclist_generate_c_location): Update.
8976 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8977 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8978 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8979 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8980 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8981 (dwarf2_per_cu_data::addr_size)
8982 (dwarf2_per_cu_data::ref_addr_size)
8983 (dwarf2_per_cu_data::text_offset)
8984 (dwarf2_per_cu_data::addr_type): Now methods.
8985 (per_cu_header_read_in): Make per_cu "const".
8986 (dwarf2_version): Remove.
8987 (dwarf2_per_cu_data::int_type): Now a method.
8988 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8989 (set_die_type, read_array_type, read_subrange_index_type)
8990 (read_tag_string_type, read_subrange_type): Update.
8991 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8992 offset_size, ref_addr_size, text_offset, addr_type, version,
8993 objfile, int_type, addr_sized_int_type>: Declare methods.
8994
96c738c0
TT
89952020-02-08 Tom Tromey <tom@tromey.com>
8996
8997 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8998 Move earlier.
8999
8fdd972c
TT
90002020-02-08 Tom Tromey <tom@tromey.com>
9001
9002 * dwarf2/read.h (dwarf_line_debug): Declare.
9003 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9004 * dwarf2/read.c: Move line_header code to new files.
9005 (dwarf_line_debug): No longer static.
9006 * dwarf2/line-header.c: New file.
9007 * dwarf2/line-header.h: New file.
9008
03075812
TT
90092020-02-08 Tom Tromey <tom@tromey.com>
9010
9011 * dwarf2/read.c (struct line_header) <file_full_name,
9012 file_file_name>: Return unique_xmalloc_ptr.
9013 (line_header::file_file_name): Update.
9014 (line_header::file_full_name): Update.
9015 (dw2_get_file_names_reader): Update.
9016 (macro_start_file): Update.
9017
bb822404
TT
90182020-02-08 Tom Tromey <tom@tromey.com>
9019
9020 * dwarf2/read.c (struct line_header) <file_full_name,
9021 file_file_name>: Declare methods.
9022 (dw2_get_file_names_reader): Update.
9023 (file_file_name): Now a method.
9024 (file_full_name): Likewise.
9025 (macro_start_file): Update.
9026
009b64fc
TT
90272020-02-08 Tom Tromey <tom@tromey.com>
9028
9029 * dwarf2/read.c (dwarf_always_disassemble)
9030 (show_dwarf_always_disassemble): Move to loc.c.
9031 (_initialize_dwarf2_read): Move "always-disassemble" registration
9032 to loc.c.
9033 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9034 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9035 static.
9036 (show_dwarf_always_disassemble): Move from read.c.
9037 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9038
5895093f
TT
90392020-02-08 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9042 (create_quick_file_names_table): Return htab_up.
9043 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9044 Update.
9045 * dwarf2/read.h (struct dwarf2_per_objfile)
9046 <quick_file_names_table>: Now htab_up.
9047
b3b32279
TT
90482020-02-08 Tom Tromey <tom@tromey.com>
9049
9050 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9051
1d33d811
TT
90522020-02-08 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9055 Rewrite.
9056 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9057 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9058 (abbrev_table::abbrev_table): No longer inline.
9059 (ABBREV_HASH_SIZE): Remove.
9060 (abbrev_table::m_abbrevs): Now an htab_up.
9061
86de1d91
TT
90622020-02-08 Tom Tromey <tom@tromey.com>
9063
9064 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9065 (cutu_reader): Update.
9066 (build_type_psymtabs_1): Update.
9067 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9068 (abbrev_table::alloc_abbrev): Update.
9069 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9070 (abbrev_table::read): New static method, renamed from
9071 abbrev_table_read_table.
9072 (abbrev_table::alloc_abbrev)
9073 (abbrev_table::add_abbrev): Now private.
9074 (abbrev_table::abbrev_table): Now private.
9075 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9076
0335378b
TT
90772020-02-08 Tom Tromey <tom@tromey.com>
9078
9079 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9080 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9081 htab_up.
9082
48b490f2
TT
90832020-02-08 Tom Tromey <tom@tromey.com>
9084
9085 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9086 htab_up.
9087 (lookup_dwo_unit_in_dwp): Update.
9088 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9089 on obstack.
9090
bc68fb19
TT
90912020-02-08 Tom Tromey <tom@tromey.com>
9092
9093 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9094 obstack.
9095
d15acc42
TT
90962020-02-08 Tom Tromey <tom@tromey.com>
9097
9098 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9099 line_header_hash.
9100 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9101 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9102 Change type to htab_up.
9103
eaa5fa8b
TT
91042020-02-08 Tom Tromey <tom@tromey.com>
9105
9106 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9107 htab_up. Don't allocate on obstack.
9108 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9109 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9110 Change type to htab_up.
9111
b0b6a987
TT
91122020-02-08 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9115 Change type to htab_up.
9116 * dwarf2/read.c (create_signatured_type_table_from_index)
9117 (create_signatured_type_table_from_debug_names)
9118 (create_all_type_units, add_type_unit)
9119 (lookup_dwo_signatured_type, lookup_signatured_type)
9120 (process_skeletonless_type_unit): Update.
9121 (create_debug_type_hash_table, create_debug_types_hash_table):
9122 Change type of types_htab.
9123 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9124 htab_up. Don't allocate on obstack.
9125 (create_cus_hash_table): Change type of cus_htab parameter.
9126 (struct dwo_file) <cus, tus>: Now htab_up.
9127 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9128 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9129 (queue_and_load_all_dwo_tus): Update.
9130 * dwarf2/index-write.c (write_gdbindex): Update.
9131 (write_debug_names): Update.
9132
39856def
TT
91332020-02-08 Tom Tromey <tom@tromey.com>
9134
9135 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9136 dwarf2/read.c. Remove "next" member. Add constructor ntad
9137 destructor.
9138 (struct dwarf2_per_objfile) <queue>: New member.
9139 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9140 dwarf2/read.h.
9141 (dwarf2_queue, dwarf2_queue_tail): Remove.
9142 (class dwarf2_queue_guard): Add parameter to constructor. Use
9143 DISABLE_COPY_AND_ASSIGN.
9144 <m_per_objfile>: New member.
9145 <~dwarf2_queue_guard>: Rewrite.
9146 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9147 Update.
9148 (~dwarf2_queue_item): New.
9149
3e225074
TT
91502020-02-08 Tom Tromey <tom@tromey.com>
9151
9152 * dwarf2/read.c (struct die_info) <has_children>: New member.
9153 (dw2_get_file_names_reader): Remove has_children.
9154 (dw2_get_file_names): Update.
9155 (read_cutu_die_from_dwo): Remove has_children.
9156 (cutu_reader::init_tu_and_read_dwo_dies)
9157 (cutu_reader::cutu_reader): Update.
9158 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9159 Remove has_children.
9160 (build_type_psymtabs_1, process_skeletonless_type_unit)
9161 (load_partial_comp_unit, load_full_comp_unit): Update.
9162 (create_dwo_cu_reader): Remove has_children.
9163 (create_cus_hash_table, read_die_and_children): Update.
9164 (read_full_die_1,read_full_die): Remove has_children.
9165 (read_signatured_type): Update.
9166 (class cutu_reader) <has_children>: Remove.
9167
82ca8957
TT
91682020-02-08 Tom Tromey <tom@tromey.com>
9169
9170 * dwarf2/expr.c: Rename from dwarf2expr.c.
9171 * dwarf2/expr.h: Rename from dwarf2expr.h.
9172 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9173 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9174 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9175 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9176 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9177 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9178 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9179 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9180 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9181 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9182 * dwarf2/loc.c: Rename from dwarf2loc.c.
9183 * dwarf2/loc.h: Rename from dwarf2loc.h.
9184 * dwarf2/read.c: Rename from dwarf2read.c.
9185 * dwarf2/read.h: Rename from dwarf2read.h.
9186 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9187 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9188 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9189 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9190 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9191 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9192 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9193 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9194 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9195 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9196 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9197 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9198 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9199 Update.
9200 * Makefile.in (COMMON_SFILES): Update.
9201 (HFILES_NO_SRCDIR): Update.
9202
9e35d499
TT
92032020-02-08 Tom Tromey <tom@tromey.com>
9204
9205 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9206 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9207
1eba2311
TT
92082020-02-08 Tom Tromey <tom@tromey.com>
9209
9210 * dwarf2read.h (struct die_info): Don't declare.
9211
e41c2da2
TT
92122020-02-08 Tom Tromey <tom@tromey.com>
9213
9214 * dwarf2read.h (die_info_ptr): Remove typedef.
9215
4fc6c0d5
TT
92162020-02-08 Tom Tromey <tom@tromey.com>
9217
9218 * dwarf2read.c (read_call_site_scope)
9219 (handle_data_member_location, dwarf2_add_member_fn)
9220 (mark_common_block_symbol_computed, read_common_block)
9221 (attr_to_dynamic_prop, partial_die_info::read)
9222 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9223 (dwarf2_symbol_mark_computed, set_die_type): Update.
9224 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9225 method.
9226 (attr_form_is_block): Don't declare.
9227 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9228
cd6c91b4
TT
92292020-02-08 Tom Tromey <tom@tromey.com>
9230
9231 * dwarf2read.c (dwarf2_find_base_address, )
9232 (read_call_site_scope, rust_containing_type)
9233 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9234 (handle_data_member_location, dwarf2_add_member_fn)
9235 (get_alignment, read_structure_type, process_structure_scope)
9236 (mark_common_block_symbol_computed, read_common_block)
9237 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9238 (partial_die_info::read, read_attribute_value, new_symbol)
9239 (lookup_die_type, dwarf2_get_ref_die_offset)
9240 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9241 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9242 (dwarf2_symbol_mark_computed): Update.
9243 * dwarf2/attribute.h (struct attribute) <value_as_address,
9244 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9245 methods.
9246 (value_as_address, attr_form_is_section_offset)
9247 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9248 * dwarf2/attribute.c (attribute::value_as_address)
9249 (attribute::form_is_section_offset, attribute::form_is_constant)
9250 (attribute::form_is_ref): Now methods.
9251
162dce55
TT
92522020-02-08 Tom Tromey <tom@tromey.com>
9253
9254 * dwarf2read.c (struct attribute, DW_STRING)
9255 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9256 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9257 (attr_form_is_block, attr_form_is_section_offset)
9258 (attr_form_is_constant, attr_form_is_ref): Move.
9259 * dwarf2/attribute.h: New file.
9260 * dwarf2/attribute.c: New file, from dwarf2read.c.
9261 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9262
3054dd54
TT
92632020-02-08 Tom Tromey <tom@tromey.com>
9264
9265 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9266 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9267 Move.
9268 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9269 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9270 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9271 abbrev.c.
9272 * dwarf2/abbrev.h: New file.
9273 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9274 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9275
96b79293
TT
92762020-02-08 Tom Tromey <tom@tromey.com>
9277
9278 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9279 (dwarf2_section_size, dwarf2_get_section_info)
9280 (create_signatured_type_table_from_debug_names)
9281 (create_addrmap_from_aranges, read_debug_names_from_section)
9282 (get_gdb_index_contents_from_section, read_comp_unit_head)
9283 (error_check_comp_unit_head, read_abbrev_offset)
9284 (create_debug_type_hash_table, init_cu_die_reader)
9285 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9286 (read_comp_units_from_section, create_cus_hash_table)
9287 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9288 (create_dwp_v2_section, dwarf2_rnglists_process)
9289 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9290 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9291 (read_indirect_string_from_dwz, read_addr_index_1)
9292 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9293 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9294 (fill_in_loclist_baton): Update.
9295 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9296 get_containing_section, get_bfd_owner, get_bfd_section,
9297 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9298 (dwarf2_read_section, get_section_name, get_section_file_name)
9299 (get_containing_section, get_section_bfd_owner)
9300 (get_section_bfd_section, get_section_name, get_section_file_name)
9301 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9302 declare.
9303 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9304 (dwarf2_section_info::get_bfd_owner)
9305 (dwarf2_section_info::get_bfd_section)
9306 (dwarf2_section_info::get_name)
9307 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9308 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9309 (dwarf2_section_info::read): Now methods.
9310 * dwarf-index-write.c (class debug_names): Update.
9311
2c86cff9
TT
93122020-02-08 Tom Tromey <tom@tromey.com>
9313
9314 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9315 Move to dwarf2/section.h.
9316 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9317 (get_section_bfd_section, get_section_name)
9318 (get_section_file_name, get_section_id, get_section_flags)
9319 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9320 dwarf2/section.c.
9321 * dwarf2/section.h: New file.
9322 * dwarf2/section.c: New file, from dwarf2read.c.
9323 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9324
f4382c45
TT
93252020-02-08 Tom Tromey <tom@tromey.com>
9326
9327 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9328 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9329 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9330 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9331 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9332 * dwarf2/leb.h: New file, from dwarf2read.c.
9333 * dwarf2/leb.c: New file, from dwarf2read.c.
9334 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9335 Remove.
9336 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9337 (COMMON_SFILES): Add dwarf2/leb.c.
9338
01840b7a
JB
93392020-02-08 Joel Brobecker <brobecker@adacore.com>
9340
9341 GDB 9.1 released.
9342
dfcb27e4
IB
93432020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9344
9345 PR gdb/25190:
aac66a4c
SM
9346 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9347 * gdb/remote.c (remote_console_output): Update.
9348 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9349 (ui_file_puts): ...this.
9350 * gdb/ui-file.h (ui_file_puts): Add declaration.
9351 * gdb/utils.c (emit_style_escape): Update.
9352 (flush_wrap_buffer): Update.
9353 (fputs_maybe_filtered): Update.
9354 (fputs_unfiltered): Add function.
dfcb27e4 9355
faa17681
IB
93562020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9357
aac66a4c
SM
9358 * gdb/event-loop.c (gdb_wait_for_event): Update.
9359 * gdb/printcmd.c (printf_command): Update.
9360 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9361 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9362 (gdb_os_flush_stderr): Update.
9363 * gdb/remote.c (remote_console_output): Update.
9364 * gdb/ui-file.c (gdb_flush): Rename to...
9365 (ui_file_flush): ...this.
9366 (stderr_file::write): Update.
9367 (stderr_file::puts): Update.
9368 * gdb/ui-file.h (gdb_flush): Rename to...
9369 (ui_file_flush): ...this.
9370 * gdb/utils.c (gdb_flush): Add function.
9371 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9372
5abbbe1d
TT
93732020-02-07 Tom Tromey <tromey@adacore.com>
9374
9375 PR breakpoints/24915:
9376 * source.c (find_and_open_source): Do not check basenames_may_differ.
9377
919adfe8
TT
93782020-02-07 Tom Tromey <tom@tromey.com>
9379
9380 * README: Update gdbserver documentation.
9381 * gdbserver: Move to top level.
9382 * configure.tgt (build_gdbserver): Remove.
9383 * configure.ac: Remove --enable-gdbserver.
9384 * configure: Rebuild.
9385 * Makefile.in (distclean): Don't mention gdbserver.
9386
1d5d29e7
SV
93872020-02-06 Shahab Vahedi <shahab@synopsys.com>
9388
9389 * source-cache.c (source_cache::ensure): Surround
9390 get_plain_source_lines with a try/catch.
9391 (source_cache::get_line_charpos): Get rid of try/catch
9392 and only check for the return value of "ensure".
9393 * tui/tui-source.c (tui_source_window::set_contents):
9394 Simplify "nlines" calculation.
9395
6eb1129c
SV
93962020-02-06 Shahab Vahedi <shahab@synopsys.com>
9397
9398 * MAINTAINERS (Write After Approval): Add myself.
9399
c6a42d11
CB
94002020-02-05 Christian Biesinger <cbiesinger@google.com>
9401
9402 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9403 function call.
9404
c8ecdda6
CB
94052020-02-05 Christian Biesinger <cbiesinger@google.com>
9406
9407 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9408
f6480e70
MR
94092020-02-05 Maciej W. Rozycki <macro@wdc.com>
9410
9411 * nat/riscv-linux-tdesc.h: New file.
9412 * nat/riscv-linux-tdesc.c: New file, taking code from...
9413 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9414 ... here.
9415 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9416 NATDEPFILES.
9417
dcc9fbc6
AB
94182020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9419
9420 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9421 we don't set the fake simulator ptid to the null_ptid.
9422
719546c4
SM
94232020-02-03 Simon Marchi <simon.marchi@efficios.com>
9424
9425 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9426 * gdbthread.h (class thread_info) <resumed>: Likewise.
9427 * infrun.c (resume_1): Likewise.
9428 (proceed): Likewise.
9429 (infrun_thread_stop_requested): Likewise.
9430 (stop_all_threads): Likewise.
9431 (handle_inferior_event): Likewise.
9432 (restart_threads): Likewise.
9433 (finish_step_over): Likewise.
9434 (keep_going_stepped_thread): Likewise.
9435 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9436 (linux_handle_extended_wait): Likewise.
9437 * record-btrace.c (get_thread_current_frame_id): Likewise.
9438 * record-full.c (record_full_wait_1): Likewise.
9439 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9440 * target.c (target_resume): Likewise.
9441 * thread.c (set_running_thread): Likewise.
9442
e409c542
AKS
94432020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9444
9445 * f-valprint.c (f77_print_array_1): Changed datatype of index
9446 variable to LONGEST from int to enable it to contain bound
9447 values correctly.
9448
ee98c0da
MR
94492020-02-03 Maciej W. Rozycki <macro@wdc.com>
9450
9451 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9452 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9453 offsets according to FLEN determined.
9454 (riscv_linux_nat_target::read_description): Determine FLEN
9455 dynamically.
9456 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9457 according to FLEN determined.
9458 (riscv_linux_nat_target::store_registers): Likewise.
9459
aa66aac4
SV
94602020-02-01 Shahab Vahedi <shahab@synopsys.com>
9461
9462 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9463 when reg->group is empty and reggroup is not.
9464
fd9faca8
TT
94652020-01-31 Tom Tromey <tromey@adacore.com>
9466
9467 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9468 Call beneath target's mourn_inferior after unpushing.
9469
42330a68
AB
94702020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9471
9472 PR tui/9765
9473 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9474 have enough lines to fill the screen, still return the lowest
9475 address we found.
9476
7a27a45b
AB
94772020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9478
9479 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9480 '-', '<', and '>' commands.
9481
c47f70e2
PA
94822020-01-29 Pedro Alves <palves@redhat.com>
9483 Sergio Durigan Junior <sergiodj@redhat.com>
9484
9485 * infcmd.c (construct_inferior_arguments): Assert that
9486 'argc' is greater than 0.
9487
5133a315
LM
94882020-01-29 Luis Machado <luis.machado@linaro.org>
9489
9490 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9491 (BRK_INSN_MASK): Define to 0xd4200000.
9492 (aarch64_program_breakpoint_here_p): New function.
9493 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9494 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9495 breakpoint.c.
9496 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9497 breakpoint.h
9498 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9499 call gdbarch_program_breakpoint_here_p.
9500 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9501 default_program_breakpoint_here_p, changed return type to bool and
9502 simplified.
9503 * breakpoint.h (program_breakpoint_here): Moved prototype to
9504 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9505 return type to bool.
9506 * gdbarch.c: Regenerate.
9507 * gdbarch.h: Regenerate.
9508 * gdbarch.sh (program_breakpoint_here_p): New method.
9509 * infrun.c (handle_signal_stop): Call
9510 gdbarch_program_breakpoint_here_p.
9511
168f8c6b
TT
95122020-01-26 Tom Tromey <tom@tromey.com>
9513
9514 * ctfread.c (struct ctf_fp_info): Reindent.
9515 (_initialize_ctfread): Remove.
9516
128a391f
TT
95172020-01-26 Tom Tromey <tom@tromey.com>
9518
9519 * psymtab.c (partial_map_expand_apply)
9520 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9521 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9522 (psym_print_stats, psym_expand_symtabs_for_function)
9523 (psym_map_symbol_filenames, psym_map_matching_symbols)
9524 (psym_expand_symtabs_matching)
9525 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9526 (maintenance_check_psymtabs): Use new methods.
9527 * psympriv.h (struct partial_symtab) <readin_p,
9528 get_compunit_symtab>: New methods.
9529 <readin, compunit_symtab>: Remove members.
9530 (struct standard_psymtab): New.
9531 (struct legacy_psymtab): Derive from standard_psymtab.
9532 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9533 standard_psymtab.
9534 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9535
0494dbec
TT
95362020-01-26 Tom Tromey <tom@tromey.com>
9537
9538 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9539 read_dependencies. Add assert.
9540 * psymtab.c (partial_symtab::read_dependencies): New method.
9541 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9542 method.
9543 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9544 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9545 read_dependencies.
9546 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9547 Add assert.
9548
8566b89b
TT
95492020-01-26 Tom Tromey <tom@tromey.com>
9550
9551 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9552 Call expand_psymtab.
9553 (xcoff_read_symtab): Call expand_psymtab.
9554 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9555 legacy_expand_psymtab.
9556 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9557 method.
9558 (struct legacy_psymtab) <expand_psymtab>: Implement.
9559 <legacy_expand_psymtab>: New member.
9560 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9561 (parse_partial_symbols): Set legacy_expand_psymtab.
9562 (psymtab_to_symtab_1): Change argument order. Call
9563 expand_psymtab.
9564 (new_psymtab): Set legacy_expand_psymtab.
9565 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9566 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9567 expand_psymtab.
9568 (dwarf2_psymtab::expand_psymtab): Rename from
9569 psymtab_to_symtab_1. Call expand_psymtab.
9570 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9571 (dbx_end_psymtab): Likewise.
9572 (dbx_psymtab_to_symtab_1): Change argument order. Call
9573 expand_psymtab.
9574 (dbx_read_symtab): Call expand_psymtab.
9575 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9576 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9577 (ctf_psymtab::read_symtab): Call expand_psymtab.
9578
077cbab2
TT
95792020-01-26 Tom Tromey <tom@tromey.com>
9580
9581 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9582 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9583 messages.
9584 * mdebugread.c (mdebug_read_symtab): Remove prints.
9585 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9586 assert.
9587 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9588
891813be
TT
95892020-01-26 Tom Tromey <tom@tromey.com>
9590
9591 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9592 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9593 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9594 legacy_symtab.
9595 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9596 * psymtab.c (psymtab_to_symtab): Call method.
9597 (dump_psymtab): Update.
9598 * psympriv.h (struct partial_symtab): Add virtual destructor.
9599 <read_symtab>: New method.
9600 (struct legacy_symtab): New.
9601 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9602 (struct pst_map) <pst>: Now a legacy_psymtab.
9603 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9604 (new_psymtab): Use legacy_psymtab.
9605 * dwarf2read.h (struct dwarf2_psymtab): New.
9606 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9607 * dwarf2read.c (dwarf2_create_include_psymtab)
9608 (dwarf2_build_include_psymtabs, create_type_unit_group)
9609 (create_partial_symtab, process_psymtab_comp_unit_reader)
9610 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9611 (set_partial_user): Use dwarf2_psymtab.
9612 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9613 (psymtab_to_symtab_1, process_full_comp_unit)
9614 (process_full_type_unit, dwarf2_ranges_read)
9615 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9616 (dwarf_decode_lines): Use dwarf2_psymtab.
9617 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9618 (add_address_entry_worker, write_one_signatured_type)
9619 (recursively_count_psymbols, recursively_write_psymbols)
9620 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9621 (write_debug_names): Likewise.
9622 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9623 <pst>: Now a legacy_psymtab.
9624 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9625 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9626 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9627 * ctfread.c (struct ctf_psymtab): New.
9628 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9629 ctf_psymtab.
9630 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9631 (create_partial_symtab): Return a ctf_psymtab.
9632 (scan_partial_symbols): Update.
9633
c3693a1d
TT
96342020-01-26 Tom Tromey <tom@tromey.com>
9635
9636 * xcoffread.c (xcoff_start_psymtab): Use new.
9637 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9638 renamed from start_psymtab_common.
9639 * psympriv.h (struct partial_symtab): Add new constructor.
9640 (start_psymtab_common): Don't declare.
9641 * mdebugread.c (parse_partial_symbols): Use new.
9642 * dwarf2read.c (create_partial_symtab): Use new.
9643 * dbxread.c (start_psymtab): Use new.
9644 * ctfread.c (create_partial_symtab): Use new.
9645
32caafd0
TT
96462020-01-26 Tom Tromey <tom@tromey.com>
9647
9648 * xcoffread.c (xcoff_end_psymtab): Use new.
9649 * psymtab.c (start_psymtab_common): Use new.
9650 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9651 Update.
9652 * psympriv.h (struct partial_symtab): Add parameters to
9653 constructor. Don't inline.
9654 (allocate_psymtab): Don't declare.
9655 * mdebugread.c (new_psymtab): Use new.
9656 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9657 * dbxread.c (dbx_end_psymtab): Use new.
9658
abaa2f23
TT
96592020-01-26 Tom Tromey <tom@tromey.com>
9660
9661 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9662 allocate_psymtab. Update documentation.
9663 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9664 allocate_psymtab. Do not use new.
9665 (allocate_psymtab): Use new. Update.
9666
6d94535f
TT
96672020-01-26 Tom Tromey <tom@tromey.com>
9668
9669 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9670 * psymtab.c (psym_print_stats): Update.
9671 * psympriv.h (struct partial_symtab) <readin,
9672 psymtabs_addrmap_supported, anonymous>: Now bool.
9673 * mdebugread.c (psymtab_to_symtab_1): Update.
9674 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9675 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9676 (process_full_comp_unit, process_full_type_unit): Update.
9677 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9678 * ctfread.c (psymtab_to_symtab): Update.
9679
6f17252b
TT
96802020-01-26 Tom Tromey <tom@tromey.com>
9681
9682 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9683 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9684 * psymtab.c (psymtab_storage): Delete psymtabs.
9685 (psymtab_storage::allocate_psymtab): Use new.
9686 (psymtab_storage::discard_psymtab): Use delete.
9687 * psympriv.h (struct partial_symtab): Add constructor and
9688 initializers.
9689
f6f1cebc
TT
96902020-01-26 Tom Tromey <tom@tromey.com>
9691
9692 * machoread.c: Do not include psympriv.h.
9693
e47e48f6
PW
96942020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9695
9696 * NEWS: Mention the new option and the set/show commands.
9697
a2fedca9
PW
96982020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9699
9700 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9701 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9702 (validate_exec_file): New variables, enums, functions.
9703 (exec_file_locate_attach, print_section_info): Style the filenames.
9704 (_initialize_exec): Install show_exec_file_mismatch_command and
9705 set_exec_file_mismatch_command.
9706 * gdbcore.h (validate_exec_file): Declare.
9707 * infcmd.c (attach_command): Call validate_exec_file.
9708 * remote.c ( remote_target::remote_add_inferior): Likewise.
9709
7ffa82e1
AB
97102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9711
9712 * frame.c (find_frame_sal): Move call to get_next_frame into more
9713 inner scope.
9714 * inline-frame.c (inilne_state) <inline_state>: Update argument
9715 types.
9716 (inilne_state) <skipped_symbol>: Rename to...
9717 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9718 (skip_inline_frames): Build vector of skipped symbols and use this
9719 to reate the inline_state.
9720 (inline_skipped_symbol): Add a comment and some assertions, fetch
9721 skipped symbol from the list.
9722
3d92a3e3
AB
97232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9724
9725 * buildsym.c (lte_is_less_than): Delete.
9726 (buildsym_compunit::end_symtab_with_blockvector): Create local
9727 lambda function to sort line table entries, and use
9728 std::stable_sort instead of std::sort.
9729 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9730 markers when looking for a previous line.
9731
94a72be7
AB
97322020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9733
9734 * dwarf2read.c (lnp_state_machine::record_line): Include
9735 end_sequence parameter in debug print out. Record the line if we
9736 are at an end_sequence marker even if it's not the start of a
9737 statement.
9738 * symmisc.c (maintenance_print_one_line_table): Print end of
9739 sequence markers with 'END' not '0'.
9740
53af73bf
PA
97412020-01-24 Pedro Alves <palves@redhat.com>
9742
9743 PR gdb/25410
9744 * thread.c (scoped_restore_current_thread::restore): Use
9745 switch_to_inferior_no_thread.
9746 * exec.c: Include "progspace-and-thread.h".
9747 (add_target_sections, remove_target_sections):
9748 scoped_restore_current_pspace_and_thread instead of
9749 scoped_restore_current_thread.
9750 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9751 and aspace to the inferior before calling clone_program_space.
9752 Remove stale comment.
9753
3050c6f4
CB
97542020-01-24 Christian Biesinger <cbiesinger@google.com>
9755
9756 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9757 (arm_netbsd_nat_target::fetch_registers): ...this.
9758 (arm_nbsd_nat_target::store_registers): Rename to...
9759 (arm_netbsd_nat_target::store_registers): ...this.
9760
73685c7e
CB
97612020-01-24 Christian Biesinger <cbiesinger@google.com>
9762
9763 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9764 register_t.
9765
89203d40
CB
97662020-01-24 Christian Biesinger <cbiesinger@google.com>
9767
9768 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9769 Update comment.
9770 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9771 Likewise.
9772 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9773 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9774 the correct replacement (iterate_over_regset_sections).
9775 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9776 Update comment.
9777
1ba1ac88
AB
97782020-01-24 Graham Markall <graham.markall@embecosm.com>
9779
9780 PR gdb/23718
9781 * gdb/python/python.c (execute_gdb_command): Call
9782 async_enable_stdin in catch block.
9783
f3364a6d
AB
97842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9785
9786 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9787 SWITCH_THRU_ALL_UIS.
9788
733d0a67
AB
97892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9790
9791 PR tui/9765
9792 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9793 comment, add extra parameter, and update to store previous symbol
9794 when appropriate.
9795 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9796 add extra parameter.
9797 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9798 remove unneeded parameter, add try/catch around gdb_print_insn,
9799 rewrite to add items to asm_lines vector.
9800 (tui_find_backward_disassembly_start_address): New function.
9801 (tui_find_disassembly_address): Updated throughout.
9802 (tui_disasm_window::set_contents): Update for changes to
9803 tui_disassemble.
9804 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9805 number of lines to scroll.
9806
b3b3bada
SM
98072020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9808
9809 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9810 (SECT_OFF_DATA): Likewise.
9811 (SECT_OFF_RODATA): Likewise.
9812 (SECT_OFF_TEXT): Likewise.
9813 (SECT_OFF_BSS): Likewise.
9814 (struct objfile) <text_section_offset, data_section_offset>: New
9815 methods.
9816 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9817 objfile::text_section_offset.
9818 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9819 * coffread.c (coff_symtab_read): Likewise.
9820 (enter_linenos): Likewise.
9821 (process_coff_symbol): Likewise.
9822 * ctfread.c (get_objfile_text_range): Likewise.
9823 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9824 Use objfile::data_section_offset.
9825 * dwarf2-frame.c (execute_cfa_program): Use
9826 objfile::text_section_offset.
9827 (dwarf2_frame_find_fde): Likewise.
9828 * dwarf2read.c (create_addrmap_from_index): Likewise.
9829 (create_addrmap_from_aranges): Likewise.
9830 (dw2_find_pc_sect_compunit_symtab): Likewise.
9831 (process_psymtab_comp_unit_reader): Likewise.
9832 (add_partial_symbol): Likewise.
9833 (add_partial_subprogram): Likewise.
9834 (process_full_comp_unit): Likewise.
9835 (read_file_scope): Likewise.
9836 (read_func_scope): Likewise.
9837 (read_lexical_block_scope): Likewise.
9838 (read_call_site_scope): Likewise.
9839 (dwarf2_rnglists_process): Likewise.
9840 (dwarf2_ranges_process): Likewise.
9841 (dwarf2_ranges_read): Likewise.
9842 (dwarf_decode_lines_1): Likewise.
9843 (new_symbol): Likewise.
9844 (dwarf2_fetch_die_loc_sect_off): Likewise.
9845 (dwarf2_per_cu_text_offset): Likewise.
9846 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9847 * hppa-tdep.c (read_unwind_info): Likewise.
9848 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9849 * psympriv.h (struct partial_symtab): Likewise.
9850 * psymtab.c (find_pc_sect_psymtab): Likewise.
9851 * solib-svr4.c (enable_break): Likewise.
9852 * stap-probe.c (relocate_address): Use
9853 objfile::data_section_offset.
9854 * xcoffread.c (enter_line_range): Use
9855 objfile::text_section_offset.
9856 (read_xcoff_symtab): Likewise.
9857
ab53f382
SM
98582020-01-23 Simon Marchi <simon.marchi@efficios.com>
9859
9860 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9861 declaration to narrower scopes.
9862
e7eee665
SM
98632020-01-23 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * darwin-nat.h (struct darwin_exception_msg, enum
9866 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9867 Move up.
9868 (class darwin_nat_target) <wait_1, check_new_threads,
9869 decode_exception_message, decode_message, stop_inferior,
9870 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9871 * darwin-nat.c (darwin_check_new_threads): Rename to...
9872 (darwin_nat_target::check_new_threads): ... this.
9873 (darwin_suspend_inferior_it): Remove.
9874 (darwin_decode_exception_message): Rename to...
9875 (darwin_nat_target::decode_exception_message): ... this.
9876 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9877 (darwin_decode_message): Rename to...
9878 (darwin_nat_target::decode_message): ... this.
9879 (cancel_breakpoint): Rename to...
9880 (darwin_nat_target::cancel_breakpoint): ... this.
9881 (darwin_wait): Rename to...
9882 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9883 instead of iterate_over_inferiors.
9884 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9885 (darwin_stop_inferior): Rename to...
9886 (darwin_nat_target::stop_inferior): ... this.
9887 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9888 (darwin_init_thread_list): Rename to...
9889 (darwin_nat_target::init_thread_list): ... this.
9890 (darwin_ptrace_him): Rename to...
9891 (darwin_nat_target::ptrace_him): ... this.
9892 (darwin_nat_target::create_inferior): Pass lambda function to
9893 fork_inferior.
9894 (darwin_nat_target::detach): Call stop_inferior instead of
9895 darwin_stop_inferior.
9896 * fork-inferior.h (fork_inferior): Change init_trace_fun
9897 parameter to gdb::function_view.
9898 * fork-inferior.c (fork_inferior): Likewise.
9899
c162ed3e
HD
99002020-01-23 Hannes Domani <ssbssa@yahoo.de>
9901
9902 * i386-cygwin-tdep.c (core_process_module_section): Update.
9903 * windows-nat.c (struct lm_info_windows): Add text_offset.
9904 (windows_xfer_shared_libraries): Update.
9905 * windows-tdep.c (windows_xfer_shared_library):
9906 Add text_offset_cached argument.
9907 * windows-tdep.h (windows_xfer_shared_library): Update.
9908
a1237872
SM
99092020-01-21 Simon Marchi <simon.marchi@efficios.com>
9910
9911 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9912
b3ee6dd9
SM
99132020-01-21 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9916 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9917 replace with range-based for.
9918 (gdbsim_interrupt_inferior): Remove.
9919 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9920 with a range-based for. Inline code from
9921 gdbsim_interrupt_inferior.
9922
f9fac3c8
SM
99232020-01-21 Simon Marchi <simon.marchi@efficios.com>
9924
9925 * infrun.c (proceed): Fix indentation.
9926
f6474de9
TT
99272020-01-21 Tom Tromey <tromey@adacore.com>
9928
9929 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9930 * python/python.c (python_extension_ops): Update.
9931 (gdbpy_colorize): New function.
9932 * python/lib/gdb/__init__.py (colorize): New function.
9933 * extension.h (ext_lang_colorize): Declare.
9934 * extension.c (ext_lang_colorize): New function.
9935 * extension-priv.h (struct extension_language_ops) <colorize>: New
9936 member.
9937 * cli/cli-style.c (_initialize_cli_style): Update help text.
9938
f0c702d4
LM
99392020-01-21 Luis Machado <luis.machado@linaro.org>
9940
9941 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9942 <cond>: Change type to bool.
9943 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9944 (aarch64_displaced_step_cb): Likewise.
9945 (aarch64_displaced_step_tb): Likewise.
9946
1ab139e5
LM
99472020-01-21 Luis Machado <luis.machado@linaro.org>
9948
9949 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9950 output.
9951
0c271889
LM
99522020-01-21 Luis Machado <luis.machado@linaro.org>
9953
9954 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9955 <pc_adjust>: Adjust the documentation.
9956 (aarch64_displaced_step_fixup): Check if PC really moved before
9957 adjusting it.
9958
4d89c1c7
TT
99592020-01-19 Tom Tromey <tom@tromey.com>
9960
9961 * disasm.c (~gdb_disassembler): New destructor.
9962 (gdb_buffered_insn_length): Call disassemble_free_target.
9963 * disasm.h (class gdb_disassembler): Declare destructor. Use
9964 DISABLE_COPY_AND_ASSIGN.
9965
c0ab21c2
TT
99662020-01-19 Tom Tromey <tom@tromey.com>
9967
9968 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9969 (die_reader_func_ftype): Remove.
9970 (cutu_reader): New class.
9971 (dw2_get_file_names_reader): Remove "data" parameter.
9972 (dw2_get_file_names): Use cutu_reader.
9973 (create_debug_type_hash_table): Update.
9974 (read_cutu_die_from_dwo): Update comment.
9975 (lookup_dwo_unit): Add dwo_name parameter.
9976 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9977 die_reader_func_ftype and data parameters.
9978 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9979 Remove die_reader_func_ftype and data parameters.
9980 (~cutu_reader): New; from init_cutu_and_read_dies.
9981 (cutu_reader::cutu_reader): Rename from
9982 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9983 and data parameters.
9984 (init_cutu_and_read_dies_simple): Remove.
9985 (struct process_psymtab_comp_unit_data): Remove.
9986 (process_psymtab_comp_unit_reader): Remove data parameter; add
9987 want_partial_unit and pretend_language parameters.
9988 (process_psymtab_comp_unit): Use cutu_reader.
9989 (build_type_psymtabs_reader): Remove data parameter.
9990 (build_type_psymtabs_1): Use cutu_reader.
9991 (process_skeletonless_type_unit): Likewise.
9992 (load_partial_comp_unit_reader): Remove.
9993 (load_partial_comp_unit): Use cutu_reader.
9994 (load_full_comp_unit_reader): Remove.
9995 (load_full_comp_unit): Use cutu_reader.
9996 (struct create_dwo_cu_data): Remove.
9997 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9998 dwo_unit parameters.
9999 (create_cus_hash_table): Use cutu_reader.
10000 (struct dwarf2_read_addr_index_data): Remove.
10001 (dwarf2_read_addr_index_reader): Remove.
10002 (dwarf2_read_addr_index): Use cutu_reader.
10003 (read_signatured_type_reader): Remove.
10004 (read_signatured_type): Use cutu_reader.
10005
45bbae5c
TT
100062020-01-19 Tom Tromey <tom@tromey.com>
10007
10008 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10009 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10010 (tui_wrefresh): Declare.
10011 * tui/tui-wingeneral.c (suppress_output): New global.
10012 (tui_suppress_output, ~tui_suppress_output): New constructor and
10013 destructor.
10014 (tui_wrefresh): New function.
10015 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10016 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10017 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10018 method.
10019 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10020 tui_wrefresh.
10021 (tui_data_window::no_refresh): New method.
10022 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10023 (tui_reg_command): Use tui_suppress_output
10024 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10025 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10026 method.
10027 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10028
4f13c1c0
TT
100292020-01-19 Tom Tromey <tom@tromey.com>
10030
10031 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10032 Handle case where symtab is null.
10033
fa47e446
SM
100342020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10035
10036 * linux-fork.c (one_fork_p): Simplify.
10037
26f42329
SM
100382020-01-17 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * top.c (struct qt_args): Remove.
10041 (kill_or_detach): Change return type to void, replace `void *`
10042 parameter with a proper one.
10043 (print_inferior_quit_action): Likewise.
10044 (quit_confirm): Use range-based for loop to iterate over inferiors.
10045 (quit_force): Likewise.
10046
a9ac81b1
SM
100472020-01-17 Simon Marchi <simon.marchi@efficios.com>
10048
10049 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10050 `void *` parameter with proper parameters.
10051 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10052 (print_one_inferior): Change return type to void, replace `void *`
10053 parameter with proper parameters.
10054 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10055 inferiors.
10056 (get_other_inferior): Remove.
10057 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10058 inferiors.
10059
788eca49
SM
100602020-01-17 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * mi/mi-interp.c (report_initial_inferior): Remove.
10063 (mi_interp::init): Use range-based for to iterate over inferiors.
10064
d9bc85b6
SM
100652020-01-17 Simon Marchi <simon.marchi@efficios.com>
10066
10067 * python/py-inferior.c (build_inferior_list): Remove.
10068 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10069
40c94099
CB
100702020-01-16 Christian Biesinger <cbiesinger@google.com>
10071
10072 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10073 (btrace_stitch_trace): Likewise.
10074 * charset.c (intermediate_encoding): Likewise (vaild).
10075 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10076 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10077 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10078
e0cdfe3c
HD
100792020-01-16 Hannes Domani <ssbssa@yahoo.de>
10080
10081 * windows-tdep.c (windows_get_tlb_type):
10082 Add rtl_user_process_parameters type.
10083
790f1718 100842020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10085 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10086
10087 PR build/24805
10088 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10089 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10090 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10091 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10092 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10093 (ps_plog): Redeclare exported functions with default visibility.
10094
3112ed97
NA
100952020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10096
10097 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10098 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10099
8dc3273e
SM
101002020-01-15 Simon Marchi <simon.marchi@efficios.com>
10101
10102 * infcmd.c (post_create_inferior): Use get_thread_regcache
10103 instead of get_current_regcache.
10104
ff47f4f0
TT
101052020-01-14 Tom Tromey <tom@tromey.com>
10106
10107 PR symtab/12535:
10108 * python/python.c (gdbpy_decode_line): Treat empty string the same
10109 as no argument.
10110
975f45b7
TT
101112020-01-14 Tom Tromey <tom@tromey.com>
10112
10113 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10114
25e57356
TT
101152020-01-14 Tom Tromey <tom@tromey.com>
10116
10117 * nat/linux-btrace.c: Don't include <config.h>.
10118 * nat/linux-ptrace.c: Don't include <config.h>.
10119 * nat/x86-linux-dregs.c: Don't include <config.h>.
10120
05ea2a05
TT
101212020-01-14 Tom Tromey <tom@tromey.com>
10122
10123 * configure: Rebuild.
10124 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10125
01027315
TT
101262020-01-14 Tom Tromey <tom@tromey.com>
10127
10128 * nat/x86-linux-dregs.c: Include configh.h.
10129 * nat/linux-ptrace.c: Include configh.h.
10130 * nat/linux-btrace.c: Include configh.h.
10131 * defs.h: Include config.h, bfd.h.
10132 * configure.ac: Don't source common.host.
10133 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10134 * configure: Rebuild.
10135 * acinclude.m4: Update path.
10136 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10137 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10138 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10139 (CLIBS): Add LIBSUPPORT.
10140 (CDEPS): Likewise.
10141 (COMMON_SFILES): Remove gdbsupport files.
10142 (HFILES_NO_SRCDIR): Likewise.
10143 (stamp-version): Update path to create-version.sh.
10144 (ALLDEPFILES): Remove gdbsupport files.
10145
b2ceabe8
TT
101462020-01-14 Tom Tromey <tom@tromey.com>
10147
10148 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10149 USE_WIN32API when needed.
10150 * configure.ac (USE_WIN32API): Don't define.
10151 (WIN32LIBS): Use WIN32APILIBS.
10152 * configure: Rebuild.
10153
25c51f71
TT
101542020-01-14 Tom Tromey <tom@tromey.com>
10155
10156 * configure: Rebuild.
10157 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10158
717c684d
BE
101592020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10160
10161 * skip.c (skip_function_command): Make skip w/o arguments use the
10162 name of the inlined function if pc is inside any inlined function.
10163
7da6a5b9
LM
101642020-01-14 Luis Machado <luis.machado@linaro.org>
10165
10166 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10167 * infrun.c (resume_1): Likewise.
10168 (handle_inferior_event): Remove stale comment.
10169 * linux-nat.c (linux_nat_target::resume): Update comments.
10170 (save_stop_reason): Likewise.
10171 (linux_nat_filter_event): Likewise.
10172 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10173
44e4c775
AB
101742020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10175
10176 * elfread.c (record_minimal_symbol): Set section index to 0 for
10177 non-allocatable sections.
10178
18a8505e
AT
10179
101802020-01-13 Ali Tamur <tamur@google.com>
10181
10182 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10183 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10184 to gdb::optional. Update comments.
10185 (dwo_file): Update comments.
10186 (read_attribute): Update API to take an additional out parameter,
10187 need_reprocess. This is used to mark attributes that need other
10188 attributes (e.g. str_offsets_base) for correct computation which may not
10189 have been read yet.
10190 (read_attribute_reprocess): New function declaration.
10191 (read_addr_index): Likewise.
10192 (read_dwo_str_index): Likewise.
10193 (read_stub_str_index): Likewise.
10194 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10195 (lookup_addr_base): New function definition.
10196 (lookup_ranges_base): Likewise.
10197 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10198 lookup_ranges_base.
10199 (init_cutu_and_read_dies): Update comments.
10200 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10201 unit. This is used to inherit parent's str_offsets_base and addr_base.
10202 Update comments.
10203 (init_cutu_and_read_dies_simple): Reflect API changes.
10204 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10205 (create_cus_hash_table): Change API to take parent compile unit.
10206 Reflect API changes.
10207 (open_and_init_dwo_file): Reflect API changes.
10208 (dwarf2_get_pc_bounds): Update comments.
10209 (dwarf2_record_block_ranges): Likewise.
10210 (read_full_die_1): Change implementation to reprocess attributes that
10211 need str_offsets_base and addr_base.
10212 (partial_die_info::read): Likewise.
10213 (read_attribute_reprocess): New function definition.
10214 (read_attribute_value): Change API to take an additional out parameter,
10215 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10216 when a non-dwo compile unit has index based attributes.
10217 (read_attribute): Reflect API changes.
10218 (read_addr_index_1): Reflect API changes. Update comments.
10219 (dwarf2_read_addr_index_data): Reflect API changes.
10220 (dwarf2_read_addr_index): Likewise.
10221 (read_str_index): Change API and implementation. This becomes a helper
10222 to be used by the new string index related methods. Update error
10223 message and comments.
10224 (read_dwo_str_index): New function definition.
10225 (read_stub_str_index): Likewise.
10226 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10227 * symfile.h (dwarf2_debug_sections): Likewise.
10228 * xcoffread.c (dwarf2_debug_sections): Likewise.
10229
0cac9354
SM
102302020-01-13 Simon Marchi <simon.marchi@efficios.com>
10231
10232 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10233 core_reg_sect type to gdb_byte *.
10234 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10235 * cris-tdep.c (fetch_core_registers): Likewise.
10236 * corelow.c (core_target::get_core_register_section): Change
10237 type of `contents` to gdb::byte_vector.
10238
9a6d629c
AB
102392020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10240
10241 * tui/tui-wingeneral.c (box_win): Position the title in the center
10242 of the border.
10243
d8b2f9e3
SM
102442020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10245
10246 * corelow.c (core_target::get_core_register_section): Use
10247 std::vector instead of alloca.
10248
bb564c58
SM
102492020-01-13 Simon Marchi <simon.marchi@efficios.com>
10250
10251 * warning.m4: Add -Wmissing-declarations to build_warnings.
10252 * configure: Re-generate.
10253
6b366111
SM
102542020-01-13 Simon Marchi <simon.marchi@efficios.com>
10255
10256 * python/python.c (init__gdb_module): Add declaration.
10257
6c265988
SM
102582020-01-13 Simon Marchi <simon.marchi@efficios.com>
10259
10260 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10261 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10262 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10263 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10264 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10265 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10266 * ada-exp.y (_initialize_ada_exp): Add declaration.
10267 * ada-lang.c (_initialize_ada_language): Add declaration.
10268 * ada-tasks.c (_initialize_tasks): Add declaration.
10269 * agent.c (_initialize_agent): Add declaration.
10270 * aix-thread.c (_initialize_aix_thread): Add declaration.
10271 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10272 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10273 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10274 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10275 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10276 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10277 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10278 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10279 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10280 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10281 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10282 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10283 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10284 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10285 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10286 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10287 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10288 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10289 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10290 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10291 * annotate.c (_initialize_annotate): Add declaration.
10292 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10293 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10294 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10295 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10296 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10297 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10298 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10299 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10300 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10301 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10302 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10303 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10304 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10305 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10306 * auto-load.c (_initialize_auto_load): Add declaration.
10307 * auxv.c (_initialize_auxv): Add declaration.
10308 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10309 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10310 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10311 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10312 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10313 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10314 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10315 * breakpoint.c (_initialize_breakpoint): Add declaration.
10316 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10317 * btrace.c (_initialize_btrace): Add declaration.
10318 * charset.c (_initialize_charset): Add declaration.
10319 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10320 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10321 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10322 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10323 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10324 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10325 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10326 * coffread.c (_initialize_coffread): Add declaration.
10327 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10328 * compile/compile.c (_initialize_compile): Add declaration.
10329 * complaints.c (_initialize_complaints): Add declaration.
10330 * completer.c (_initialize_completer): Add declaration.
10331 * copying.c (_initialize_copying): Add declaration.
10332 * corefile.c (_initialize_core): Add declaration.
10333 * corelow.c (_initialize_corelow): Add declaration.
10334 * cp-abi.c (_initialize_cp_abi): Add declaration.
10335 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10336 * cp-support.c (_initialize_cp_support): Add declaration.
10337 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10338 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10339 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10340 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10341 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10342 * ctfread.c (_initialize_ctfread): Add declaration.
10343 * d-lang.c (_initialize_d_language): Add declaration.
10344 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10345 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10346 * dbxread.c (_initialize_dbxread): Add declaration.
10347 * dcache.c (_initialize_dcache): Add declaration.
10348 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10349 * disasm.c (_initialize_disasm): Add declaration.
10350 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10351 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10352 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10353 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10354 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10355 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10356 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10357 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10358 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10359 * elfread.c (_initialize_elfread): Add declaration.
10360 * exec.c (_initialize_exec): Add declaration.
10361 * extension.c (_initialize_extension): Add declaration.
10362 * f-lang.c (_initialize_f_language): Add declaration.
10363 * f-valprint.c (_initialize_f_valprint): Add declaration.
10364 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10365 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10366 * filesystem.c (_initialize_filesystem): Add declaration.
10367 * findcmd.c (_initialize_mem_search): Add declaration.
10368 * findvar.c (_initialize_findvar): Add declaration.
10369 * fork-child.c (_initialize_fork_child): Add declaration.
10370 * frame-base.c (_initialize_frame_base): Add declaration.
10371 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10372 * frame.c (_initialize_frame): Add declaration.
10373 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10374 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10375 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10376 * gcore.c (_initialize_gcore): Add declaration.
10377 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10378 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10379 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10380 * gdbarch.c (_initialize_gdbarch): Add declaration.
10381 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10382 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10383 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10384 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10385 * go-lang.c (_initialize_go_language): Add declaration.
10386 * go32-nat.c (_initialize_go32_nat): Add declaration.
10387 * guile/guile.c (_initialize_guile): Add declaration.
10388 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10389 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10390 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10391 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10392 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10393 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10394 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10395 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10396 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10397 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10398 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10399 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10400 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10401 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10402 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10403 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10404 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10405 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10406 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10407 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10408 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10409 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10410 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10411 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10412 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10413 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10414 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10415 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10416 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10417 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10418 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10419 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10420 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10421 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10422 * infcall.c (_initialize_infcall): Add declaration.
10423 * infcmd.c (_initialize_infcmd): Add declaration.
10424 * inflow.c (_initialize_inflow): Add declaration.
10425 * infrun.c (_initialize_infrun): Add declaration.
10426 * interps.c (_initialize_interpreter): Add declaration.
10427 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10428 * jit.c (_initialize_jit): Add declaration.
10429 * language.c (_initialize_language): Add declaration.
10430 * linux-fork.c (_initialize_linux_fork): Add declaration.
10431 * linux-nat.c (_initialize_linux_nat): Add declaration.
10432 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10433 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10434 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10435 * m2-lang.c (_initialize_m2_language): Add declaration.
10436 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10437 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10438 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10439 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10440 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10441 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10442 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10443 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10444 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10445 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10446 * machoread.c (_initialize_machoread): Add declaration.
10447 * macrocmd.c (_initialize_macrocmd): Add declaration.
10448 * macroscope.c (_initialize_macroscope): Add declaration.
10449 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10450 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10451 * maint.c (_initialize_maint_cmds): Add declaration.
10452 * mdebugread.c (_initialize_mdebugread): Add declaration.
10453 * memattr.c (_initialize_mem): Add declaration.
10454 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10455 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10456 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10457 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10458 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10459 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10460 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10461 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10462 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10463 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10464 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10465 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10466 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10467 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10468 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10469 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10470 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10471 * mipsread.c (_initialize_mipsread): Add declaration.
10472 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10473 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10474 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10475 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10476 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10477 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10478 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10479 * nto-procfs.c (_initialize_procfs): Add declaration.
10480 * objc-lang.c (_initialize_objc_language): Add declaration.
10481 * observable.c (_initialize_observer): Add declaration.
10482 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10483 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10484 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10485 * osabi.c (_initialize_gdb_osabi): Add declaration.
10486 * osdata.c (_initialize_osdata): Add declaration.
10487 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10488 * parse.c (_initialize_parse): Add declaration.
10489 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10490 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10491 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10492 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10493 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10494 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10495 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10496 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10497 * printcmd.c (_initialize_printcmd): Add declaration.
10498 * probe.c (_initialize_probe): Add declaration.
10499 * proc-api.c (_initialize_proc_api): Add declaration.
10500 * proc-events.c (_initialize_proc_events): Add declaration.
10501 * proc-service.c (_initialize_proc_service): Add declaration.
10502 * procfs.c (_initialize_procfs): Add declaration.
10503 * producer.c (_initialize_producer): Add declaration.
10504 * psymtab.c (_initialize_psymtab): Add declaration.
10505 * python/python.c (_initialize_python): Add declaration.
10506 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10507 * record-btrace.c (_initialize_record_btrace): Add declaration.
10508 * record-full.c (_initialize_record_full): Add declaration.
10509 * record.c (_initialize_record): Add declaration.
10510 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10511 * regcache.c (_initialize_regcache): Add declaration.
10512 * reggroups.c (_initialize_reggroup): Add declaration.
10513 * remote-notif.c (_initialize_notif): Add declaration.
10514 * remote-sim.c (_initialize_remote_sim): Add declaration.
10515 * remote.c (_initialize_remote): Add declaration.
10516 * reverse.c (_initialize_reverse): Add declaration.
10517 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10518 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10519 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10520 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10521 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10522 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10523 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10524 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10525 Add declaration.
10526 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10527 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10528 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10529 * rust-exp.y (_initialize_rust_exp): Add declaration.
10530 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10531 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10532 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10533 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10534 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10535 * score-tdep.c (_initialize_score_tdep): Add declaration.
10536 * ser-go32.c (_initialize_ser_dos): Add declaration.
10537 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10538 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10539 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10540 * ser-uds.c (_initialize_ser_socket): Add declaration.
10541 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10542 * serial.c (_initialize_serial): Add declaration.
10543 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10544 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10545 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10546 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10547 * skip.c (_initialize_step_skip): Add declaration.
10548 * sol-thread.c (_initialize_sol_thread): Add declaration.
10549 * solib-aix.c (_initialize_solib_aix): Add declaration.
10550 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10551 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10552 * solib-frv.c (_initialize_frv_solib): Add declaration.
10553 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10554 * solib-target.c (_initialize_solib_target): Add declaration.
10555 * solib.c (_initialize_solib): Add declaration.
10556 * source-cache.c (_initialize_source_cache): Add declaration.
10557 * source.c (_initialize_source): Add declaration.
10558 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10559 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10560 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10561 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10562 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10563 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10564 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10565 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10566 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10567 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10568 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10569 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10570 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10571 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10572 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10573 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10574 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10575 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10576 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10577 * stabsread.c (_initialize_stabsread): Add declaration.
10578 * stack.c (_initialize_stack): Add declaration.
10579 * stap-probe.c (_initialize_stap_probe): Add declaration.
10580 * std-regs.c (_initialize_frame_reg): Add declaration.
10581 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10582 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10583 * symfile.c (_initialize_symfile): Add declaration.
10584 * symmisc.c (_initialize_symmisc): Add declaration.
10585 * symtab.c (_initialize_symtab): Add declaration.
10586 * target.c (_initialize_target): Add declaration.
10587 * target-connection.c (_initialize_target_connection): Add
10588 declaration.
10589 * target-dcache.c (_initialize_target_dcache): Add declaration.
10590 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10591 * thread.c (_initialize_thread): Add declaration.
10592 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10593 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10594 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10595 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10596 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10597 * tracectf.c (_initialize_ctf): Add declaration.
10598 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10599 * tracefile.c (_initialize_tracefile): Add declaration.
10600 * tracepoint.c (_initialize_tracepoint): Add declaration.
10601 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10602 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10603 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10604 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10605 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10606 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10607 * tui/tui.c (_initialize_tui): Add declaration.
10608 * typeprint.c (_initialize_typeprint): Add declaration.
10609 * ui-style.c (_initialize_ui_style): Add declaration.
10610 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10611 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10612 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10613 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10614 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10615 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10616 * unittests/filtered_iterator-selftests.c
10617 (_initialize_filtered_iterator_selftests): Add declaration.
10618 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10619 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10620 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10621 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10622 * unittests/main-thread-selftests.c
10623 (_initialize_main_thread_selftests): Add declaration.
10624 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10625 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10626 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10627 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10628 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10629 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10630 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10631 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10632 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10633 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10634 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10635 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10636 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10637 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10638 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10639 declaration.
10640 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10641 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10642 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10643 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10644 * user-regs.c (_initialize_user_regs): Add declaration.
10645 * utils.c (_initialize_utils): Add declaration.
10646 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10647 * valops.c (_initialize_valops): Add declaration.
10648 * valprint.c (_initialize_valprint): Add declaration.
10649 * value.c (_initialize_values): Add declaration.
10650 * varobj.c (_initialize_varobj): Add declaration.
10651 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10652 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10653 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10654 * windows-nat.c (_initialize_windows_nat): Add declaration.
10655 (_initialize_check_for_gdb_ini): Add declaration.
10656 (_initialize_loadable): Add declaration.
10657 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10658 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10659 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10660 * xcoffread.c (_initialize_xcoffread): Add declaration.
10661 * xml-support.c (_initialize_xml_support): Add declaration.
10662 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10663 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10664 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10665 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10666
e2de1eec
SM
106672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10668
10669 * regformats/regdat.sh: Generate declaration for init function.
10670
e0037b4c
SM
106712020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10672
10673 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10674 up.
10675 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10676 close_one_inferior>: New methods.
10677 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10678 pass down target to find_inferior_pid.
10679 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10680 Pass down target to find_inferior_ptid.
10681 (gdbsim_target::create_inferior): Pass down target to
10682 add_thread_silent.
10683 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10684 target down to find_inferior_ptid and switch_to_thread.
10685 (gdbsim_target::close): Update to call close_one_inferior.
10686 (struct resume_data): Remove.
10687 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10688 directly, rather than through a void pointer.
10689 (gdbsim_target::resume): Update to call resume_one_inferior.
10690
58920b5b
SM
106912020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10692
10693 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10694
4ec89149
PA
106952020-01-12 Pedro Alves <palves@redhat.com>
10696
10697 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10698 directly for the current inferior instead of
10699 discard_all_inferiors.
10700 (discard_all_inferiors): Delete.
10701
7c392d1d
TT
107022020-01-11 Tom Tromey <tom@tromey.com>
10703
10704 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10705 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10706 deprecated_safe_get_selected_frame.
10707
d9ebdab7
TBA
107082020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10709
10710 * inferior.c (print_inferior): Switch inferior before printing it.
10711
f3c469b9
PA
107122020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10713 Pedro Alves <palves@redhat.com>
10714
10715 * progspace-and-thread.c (switch_to_program_space_and_thread):
10716 Assert there's an inferior for PSPACE. Use
10717 switch_to_inferior_no_thread to switch the inferior too.
10718 * progspace.c (program_space::~program_space): Call
10719 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10720 (program_space::free_all_objfiles): Don't call clear_symtab_users
10721 here.
10722 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10723
65c574f6
PA
107242020-01-10 Pedro Alves <palves@redhat.com>
10725
10726 * NEWS: Mention multi-target debugging, "info connections", and
10727 "add-inferior -no-connection".
10728
2f4fcf00
PA
107292020-01-10 Pedro Alves <palves@redhat.com>
10730
10731 * infrun.c: Include "target-connection.h".
10732 (check_multi_target_resumption): New.
10733 (proceed): Call it.
10734 * target-connection.c (make_target_connection_string): Make
10735 extern.
10736 * target-connection.h (make_target_connection_string): Declare.
10737
121b3efd
PA
107382020-01-10 Pedro Alves <palves@redhat.com>
10739
10740 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10741 * inferior.c (uiout_field_connection): New function.
10742 (print_inferior): Add new "connection-id" column.
10743 (add_inferior_command): Show connection number/string of added
10744 inferior.
10745 * process-stratum-target.h
10746 (process_stratum_target::connection_string): New virtual method.
10747 (process_stratum_target::connection_number): New field.
10748 * remote.c (remote_target::connection_string): New override.
10749 * target-connection.c: New file.
10750 * target-connection.h: New file.
10751 * target.c (decref_target): Remove process_stratum targets from
10752 the connection list.
10753 (target_stack::push): Add process_stratum targets to the
10754 connection list.
10755
4f837581
PA
107562020-01-10 Pedro Alves <palves@redhat.com>
10757
10758 Revert:
10759 2016-04-12 Pedro Alves <palves@redhat.com>
10760 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10761 Remove references to name.
10762 * serial.h (struct serial) <name>: Delete.
10763
f4ec508e
PA
107642020-01-10 Pedro Alves <palves@redhat.com>
10765
10766 * gdbarch-selftests.c (register_to_value_test): Remove "target
10767 already pushed" check.
10768
5b6d1e4f
PA
107692020-01-10 Pedro Alves <palves@redhat.com>
10770 John Baldwin <jhb@FreeBSD.org>
10771
10772 * aarch64-linux-nat.c
10773 (aarch64_linux_nat_target::thread_architecture): Adjust.
10774 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10775 (task_command_1): Likewise.
10776 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10777 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10778 (aix_thread_target::store_registers)
10779 (aix_thread_target::thread_alive): Adjust.
10780 * amd64-fbsd-tdep.c: Include "inferior.h".
10781 (amd64fbsd_get_thread_local_address): Pass down target.
10782 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10783 thread's gdbarch instead of target_gdbarch.
10784 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10785 get_last_target_status.
10786 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10787 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10788 inferiors.
10789 (update_inserted_breakpoint_locations): Skip if inferiors with no
10790 execution.
10791 (update_global_location_list): When handling moribund locations,
10792 find representative inferior for location's pspace, and use thread
10793 count of its process_stratum target.
10794 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10795 * bsd-uthread.c (bsd_uthread_target::wait): Use
10796 as_process_stratum_target and adjust thread_change_ptid and
10797 add_thread calls.
10798 (bsd_uthread_target::update_thread_list): Use
10799 as_process_stratum_target and adjust find_thread_ptid,
10800 thread_change_ptid and add_thread calls.
10801 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10802 find_thread_ptid call.
10803 * corelow.c (add_to_thread_list): Adjust add_thread call.
10804 (core_target_open): Adjust add_thread_silent and thread_count
10805 calls.
10806 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10807 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10808 * event-top.c (async_disconnect): Pop targets from all inferiors.
10809 * exec.c (add_target_sections): Push exec target on all inferiors
10810 sharing the program space.
10811 (remove_target_sections): Remove the exec target from all
10812 inferiors sharing the program space.
10813 (exec_on_vfork): New.
10814 * exec.h (exec_on_vfork): Declare.
10815 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10816 Pass it down.
10817 (fbsd_nat_target::update_thread_list): Adjust.
10818 (fbsd_nat_target::resume): Adjust.
10819 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10820 down.
10821 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10822 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10823 get_thread_arch_regcache call.
10824 * fork-child.c (gdb_startup_inferior): Pass target down to
10825 startup_inferior and set_executing.
10826 * gdbthread.h (struct process_stratum_target): Forward declare.
10827 (add_thread, add_thread_silent, add_thread_with_info)
10828 (in_thread_list): Add process_stratum_target parameter.
10829 (find_thread_ptid(inferior*, ptid_t)): New overload.
10830 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10831 parameter.
10832 (all_threads()): Delete overload.
10833 (all_threads, all_non_exited_threads): Add process_stratum_target
10834 parameter.
10835 (all_threads_safe): Use brace initialization.
10836 (thread_count): Add process_stratum_target parameter.
10837 (set_resumed, set_running, set_stop_requested, set_executing)
10838 (threads_are_executing, finish_thread_state): Add
10839 process_stratum_target parameter.
10840 (switch_to_thread): Use is_current_thread.
10841 * i386-fbsd-tdep.c: Include "inferior.h".
10842 (i386fbsd_get_thread_local_address): Pass down target.
10843 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10844 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10845 have_inferiors check.
10846 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10847 (inf_ptrace_target::attach): Adjust.
10848 * infcall.c (run_inferior_call): Adjust.
10849 * infcmd.c (run_command_1): Pass target to
10850 scoped_finish_thread_state.
10851 (proceed_thread_callback): Skip inferiors with no execution.
10852 (continue_command): Rename 'all_threads' local to avoid hiding
10853 'all_threads' function. Adjust get_last_target_status call.
10854 (prepare_one_step): Adjust set_running call.
10855 (signal_command): Use user_visible_resume_target. Compare thread
10856 pointers instead of inferior_ptid.
10857 (info_program_command): Adjust to pass down target.
10858 (attach_command): Mark target's 'thread_executing' flag.
10859 (stop_current_target_threads_ns): New, factored out from ...
10860 (interrupt_target_1): ... this. Switch inferior before making
10861 target calls.
10862 * inferior-iter.h
10863 (struct all_inferiors_iterator, struct all_inferiors_range)
10864 (struct all_inferiors_safe_range)
10865 (struct all_non_exited_inferiors_range): Filter on
10866 process_stratum_target too. Remove explicit.
10867 * inferior.c (inferior::inferior): Push dummy target on target
10868 stack.
10869 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10870 Add process_stratum_target parameter, and pass it down.
10871 (have_live_inferiors): Adjust.
10872 (switch_to_inferior_and_push_target): New.
10873 (add_inferior_command, clone_inferior_command): Handle
10874 "-no-connection" parameter. Use
10875 switch_to_inferior_and_push_target.
10876 (_initialize_inferior): Mention "-no-connection" option in
10877 the help of "add-inferior" and "clone-inferior" commands.
10878 * inferior.h: Include "process-stratum-target.h".
10879 (interrupt_target_1): Use bool.
10880 (struct inferior) <push_target, unpush_target, target_is_pushed,
10881 find_target_beneath, top_target, process_target, target_at,
10882 m_stack>: New.
10883 (discard_all_inferiors): Delete.
10884 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10885 (all_inferiors, all_non_exited_inferiors): Add
10886 process_stratum_target parameter.
10887 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10888 (target_last_proc_target): New global.
10889 (follow_fork_inferior): Push target on new inferior. Pass target
10890 to add_thread_silent. Call exec_on_vfork. Handle target's
10891 reference count.
10892 (follow_fork): Adjust get_last_target_status call. Also consider
10893 target.
10894 (follow_exec): Push target on new inferior.
10895 (struct execution_control_state) <target>: New field.
10896 (user_visible_resume_target): New.
10897 (do_target_resume): Call target_async.
10898 (resume_1): Set target's threads_executing flag. Consider resume
10899 target.
10900 (commit_resume_all_targets): New.
10901 (proceed): Also consider resume target. Skip threads of inferiors
10902 with no execution. Commit resumtion in all targets.
10903 (start_remote): Pass current inferior to wait_for_inferior.
10904 (infrun_thread_stop_requested): Consider target as well. Pass
10905 thread_info pointer to clear_inline_frame_state instead of ptid.
10906 (infrun_thread_thread_exit): Consider target as well.
10907 (random_pending_event_thread): New inferior parameter. Use it.
10908 (do_target_wait): Rename to ...
10909 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10910 down.
10911 (threads_are_resumed_pending_p, do_target_wait): New.
10912 (prepare_for_detach): Adjust calls.
10913 (wait_for_inferior): New inferior parameter. Handle it. Use
10914 do_target_wait_1 instead of do_target_wait.
10915 (fetch_inferior_event): Adjust. Switch to representative
10916 inferior. Pass target down.
10917 (set_last_target_status): Add process_stratum_target parameter.
10918 Save target in global.
10919 (get_last_target_status): Add process_stratum_target parameter and
10920 handle it.
10921 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10922 (context_switch): Check inferior_ptid == null_ptid before calling
10923 inferior_thread().
10924 (get_inferior_stop_soon): Pass down target.
10925 (wait_one): Rename to ...
10926 (poll_one_curr_target): ... this.
10927 (struct wait_one_event): New.
10928 (wait_one): New.
10929 (stop_all_threads): Adjust.
10930 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10931 event's target.
10932 (switch_back_to_stepped_thread): Also consider target.
10933 (print_stop_event): Update.
10934 (normal_stop): Update. Also consider the resume target.
10935 * infrun.h (wait_for_inferior): Remove declaration.
10936 (user_visible_resume_target): New declaration.
10937 (get_last_target_status, set_last_target_status): New
10938 process_stratum_target parameter.
10939 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10940 process_stratum_target parameter, and use it.
10941 (clear_inline_frame_state (thread_info*)): New.
10942 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10943 process_stratum_target parameter.
10944 (clear_inline_frame_state (thread_info*)): Declare.
10945 * linux-fork.c (delete_checkpoint_command): Pass target down to
10946 find_thread_ptid.
10947 (checkpoint_command): Adjust.
10948 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10949 instead of just tweaking inferior_ptid.
10950 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10951 (exit_lwp): Pass target down to find_thread_ptid.
10952 (attach_proc_task_lwp_callback): Pass target down to
10953 add_thread/set_running/set_executing.
10954 (linux_nat_target::attach): Pass target down to
10955 thread_change_ptid.
10956 (get_detach_signal): Pass target down to find_thread_ptid.
10957 Consider last target status's target.
10958 (linux_resume_one_lwp_throw, resume_lwp)
10959 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10960 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10961 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10962 (linux_nat_target::async_wait_fd): New.
10963 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10964 target down.
10965 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10966 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10967 * linux-thread-db.c (struct thread_db_info::process_target): New
10968 field.
10969 (add_thread_db_info): Save target.
10970 (get_thread_db_info): New process_stratum_target parameter. Also
10971 match target.
10972 (delete_thread_db_info): New process_stratum_target parameter.
10973 Also match target.
10974 (thread_from_lwp): Adjust to pass down target.
10975 (thread_db_notice_clone): Pass down target.
10976 (check_thread_db_callback): Pass down target.
10977 (try_thread_db_load_1): Always push the thread_db target.
10978 (try_thread_db_load, record_thread): Pass target down.
10979 (thread_db_target::detach): Pass target down. Always unpush the
10980 thread_db target.
10981 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10982 target down. Always unpush the thread_db target.
10983 (find_new_threads_callback, thread_db_find_new_threads_2)
10984 (thread_db_target::update_thread_list): Pass target down.
10985 (thread_db_target::pid_to_str): Pass current inferior down.
10986 (thread_db_target::get_thread_local_address): Pass target down.
10987 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10988 target down.
10989 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10990 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10991 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10992 (procfs_init_inferior): Rename to ...
10993 (procfs_target::procfs_init_inferior): ... this and adjust.
10994 (procfs_target::create_inferior, procfs_notice_thread)
10995 (procfs_do_thread_registers): Adjust.
10996 * ppc-fbsd-tdep.c: Include "inferior.h".
10997 (ppcfbsd_get_thread_local_address): Pass down target.
10998 * proc-service.c (ps_xfer_memory): Switch current inferior and
10999 program space as well.
11000 (get_ps_regcache): Pass target down.
11001 * process-stratum-target.c
11002 (process_stratum_target::thread_address_space)
11003 (process_stratum_target::thread_architecture): Pass target down.
11004 * process-stratum-target.h
11005 (process_stratum_target::threads_executing): New field.
11006 (as_process_stratum_target): New.
11007 * ravenscar-thread.c
11008 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11009 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11010 down.
11011 * record-btrace.c (record_btrace_target::info_record): Adjust.
11012 (record_btrace_target::record_method)
11013 (record_btrace_target::record_is_replaying)
11014 (record_btrace_target::fetch_registers)
11015 (get_thread_current_frame_id, record_btrace_target::resume)
11016 (record_btrace_target::wait, record_btrace_target::stop): Pass
11017 target down.
11018 * record-full.c (record_full_wait_1): Switch to event thread.
11019 Pass target down.
11020 * regcache.c (regcache::regcache)
11021 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11022 process_stratum_target parameter and handle it.
11023 (current_thread_target): New global.
11024 (get_thread_regcache): Add process_stratum_target parameter and
11025 handle it. Switch inferior before calling target method.
11026 (get_thread_regcache): Pass target down.
11027 (get_thread_regcache_for_ptid): Pass target down.
11028 (registers_changed_ptid): Add process_stratum_target parameter and
11029 handle it.
11030 (registers_changed_thread, registers_changed): Pass target down.
11031 (test_get_thread_arch_aspace_regcache): New.
11032 (current_regcache_test): Define a couple local test_target_ops
11033 instances and use them for testing.
11034 (readwrite_regcache): Pass process_stratum_target parameter.
11035 (cooked_read_test, cooked_write_test): Pass mock_target down.
11036 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11037 (get_thread_arch_aspace_regcache): Add process_stratum_target
11038 parameter.
11039 (regcache::target): New method.
11040 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11041 (regcache::registers_changed_ptid): Add process_stratum_target
11042 parameter.
11043 (regcache::m_target): New field.
11044 (registers_changed_ptid): Add process_stratum_target parameter.
11045 * remote.c (remote_state::supports_vCont_probed): New field.
11046 (remote_target::async_wait_fd): New method.
11047 (remote_unpush_and_throw): Add remote_target parameter.
11048 (get_current_remote_target): Adjust.
11049 (remote_target::remote_add_inferior): Push target.
11050 (remote_target::remote_add_thread)
11051 (remote_target::remote_notice_new_inferior)
11052 (get_remote_thread_info): Pass target down.
11053 (remote_target::update_thread_list): Skip threads of inferiors
11054 bound to other targets. (remote_target::close): Don't discard
11055 inferiors. (remote_target::add_current_inferior_and_thread)
11056 (remote_target::process_initial_stop_replies)
11057 (remote_target::start_remote)
11058 (remote_target::remote_serial_quit_handler): Pass down target.
11059 (remote_target::remote_unpush_target): New remote_target
11060 parameter. Unpush the target from all inferiors.
11061 (remote_target::remote_unpush_and_throw): New remote_target
11062 parameter. Pass it down.
11063 (remote_target::open_1): Check whether the current inferior has
11064 execution instead of checking whether any inferior is live. Pass
11065 target down.
11066 (remote_target::remote_detach_1): Pass down target. Use
11067 remote_unpush_target.
11068 (extended_remote_target::attach): Pass down target.
11069 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11070 (remote_target::append_resumption): Pass down target.
11071 (remote_target::append_pending_thread_resumptions)
11072 (remote_target::remote_resume_with_hc, remote_target::resume)
11073 (remote_target::commit_resume): Pass down target.
11074 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11075 (remote_target::interrupt_query)
11076 (remote_target::remove_new_fork_children)
11077 (remote_target::check_pending_events_prevent_wildcard_vcont)
11078 (remote_target::remote_parse_stop_reply)
11079 (remote_target::process_stop_reply): Pass down target.
11080 (first_remote_resumed_thread): New remote_target parameter. Pass
11081 it down.
11082 (remote_target::wait_as): Pass down target.
11083 (unpush_and_perror): New remote_target parameter. Pass it down.
11084 (remote_target::readchar, remote_target::remote_serial_write)
11085 (remote_target::getpkt_or_notif_sane_1)
11086 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11087 down target.
11088 (remote_target::mourn_inferior): Pass down target. Use
11089 remote_unpush_target.
11090 (remote_target::core_of_thread)
11091 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11092 (remote_target::pid_to_exec_file)
11093 (remote_target::thread_handle_to_thread_info): Pass down target.
11094 (remote_target::async_wait_fd): New.
11095 * riscv-fbsd-tdep.c: Include "inferior.h".
11096 (riscv_fbsd_get_thread_local_address): Pass down target.
11097 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11098 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11099 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11100 Adjust.
11101 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11102 * solib-svr4.c (enable_break): Pass down target.
11103 * spu-multiarch.c (parse_spufs_run): Pass down target.
11104 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11105 * target-delegates.c: Regenerate.
11106 * target.c (g_target_stack): Delete.
11107 (current_top_target): Return the current inferior's top target.
11108 (target_has_execution_1): Refer to the passed-in inferior's top
11109 target.
11110 (target_supports_terminal_ours): Check whether the initial
11111 inferior was already created.
11112 (decref_target): New.
11113 (target_stack::push): Incref/decref the target.
11114 (push_target, push_target, unpush_target): Adjust.
11115 (target_stack::unpush): Defref target.
11116 (target_is_pushed): Return bool. Adjust to refer to the current
11117 inferior's target stack.
11118 (dispose_inferior): Delete, and inline parts ...
11119 (target_preopen): ... here. Only dispose of the current inferior.
11120 (target_detach): Hold strong target reference while detaching.
11121 Pass target down.
11122 (target_thread_name): Add assertion.
11123 (target_resume): Pass down target.
11124 (target_ops::beneath, find_target_at): Adjust to refer to the
11125 current inferior's target stack.
11126 (get_dummy_target): New.
11127 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11128 has a thread running.
11129 (initialize_targets): Rename to ...
11130 (_initialize_target): ... this.
11131 * target.h: Include "gdbsupport/refcounted-object.h".
11132 (struct target_ops): Inherit refcounted_object.
11133 (target_ops::shortname, target_ops::longname): Make const.
11134 (target_ops::async_wait_fd): New method.
11135 (decref_target): Declare.
11136 (struct target_ops_ref_policy): New.
11137 (target_ops_ref): New typedef.
11138 (get_dummy_target): Declare function.
11139 (target_is_pushed): Return bool.
11140 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11141 (all_matching_threads_iterator::all_matching_threads_iterator):
11142 Handle filter target.
11143 * thread-iter.h (struct all_matching_threads_iterator, struct
11144 all_matching_threads_range, class all_non_exited_threads_range):
11145 Filter by target too. Remove explicit.
11146 * thread.c (threads_executing): Delete.
11147 (inferior_thread): Pass down current inferior.
11148 (clear_thread_inferior_resources): Pass down thread pointer
11149 instead of ptid_t.
11150 (add_thread_silent, add_thread_with_info, add_thread): Add
11151 process_stratum_target parameter. Use it for thread and inferior
11152 searches.
11153 (is_current_thread): New.
11154 (thread_info::deletable): Use it.
11155 (find_thread_ptid, thread_count, in_thread_list)
11156 (thread_change_ptid, set_resumed, set_running): New
11157 process_stratum_target parameter. Pass it down.
11158 (set_executing): New process_stratum_target parameter. Pass it
11159 down. Adjust reference to 'threads_executing'.
11160 (threads_are_executing): New process_stratum_target parameter.
11161 Adjust reference to 'threads_executing'.
11162 (set_stop_requested, finish_thread_state): New
11163 process_stratum_target parameter. Pass it down.
11164 (switch_to_thread): Also match inferior.
11165 (switch_to_thread): New process_stratum_target parameter. Pass it
11166 down.
11167 (update_threads_executing): Reimplement.
11168 * top.c (quit_force): Pop targets from all inferior.
11169 (gdb_init): Don't call initialize_targets.
11170 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11171 Declare.
11172 (windows_add_thread, windows_delete_thread): Adjust.
11173 (get_windows_debug_event): Rename to ...
11174 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11175 * tracefile-tfile.c (tfile_target_open): Pass down target.
11176 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11177 Forward declare.
11178 (switch_to_thread): Add process_stratum_target parameter.
11179 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11180 parameter. Use it.
11181 (mi_on_resume): Pass target down.
11182 * nat/fork-inferior.c (startup_inferior): Add
11183 process_stratum_target parameter. Pass it down.
11184 * nat/fork-inferior.h (startup_inferior): Add
11185 process_stratum_target parameter.
11186 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11187
75c6c844
PA
111882020-01-10 Pedro Alves <palves@redhat.com>
11189
11190 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11191 directly. Instead find the first thread in the thread list and
11192 use switch_to_thread.
11193
78f2c40a
PA
111942020-01-10 Pedro Alves <palves@redhat.com>
11195
11196 * remote.c (remote_target::remote_add_inferior): Don't bind a
11197 process to the current inferior if the current inferior is already
11198 bound to a process.
11199
e7af6c70
TBA
112002020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11201 Pedro Alves <palves@redhat.com>
11202
11203 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11204 If no process is specified, return null_ptid instead of
11205 inferior_ptid.
11206 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11207 TARGET_WAITKIND_SIGNALLED with no pid.
11208
31ba933e
PA
112092020-01-10 Pedro Alves <palves@redhat.com>
11210
11211 * remote.c (first_remote_resumed_thread): New.
11212 (remote_target::wait_as): Use it as default event_ptid instead of
11213 inferior_ptid.
11214
735fc2ca
PA
112152020-01-10 Pedro Alves <palves@redhat.com>
11216
11217 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11218
c17e02e1
PA
112192020-01-10 Pedro Alves <palves@redhat.com>
11220
11221 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11222 not -1.
11223
ab1ddbcf
PA
112242020-01-10 Pedro Alves <palves@redhat.com>
11225
11226 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11227 ptid to get_last_target_status.
11228 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11229 ptid to get_last_target_status.
11230 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11231 get_last_target_status.
11232 (info_program_command): Don't pass a target_waitstatus to
11233 get_last_target_status.
11234 * infrun.c (init_wait_for_inferior): Use
11235 nullify_last_target_wait_ptid.
11236 (get_last_target_status): Handle nullptr arguments.
11237 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11238 (print_stop_event): Don't pass a ptid to get_last_target_status.
11239 (normal_stop): Don't pass a ptid to get_last_target_status.
11240 * infrun.h (get_last_target_status, set_last_target_status): Move
11241 comments here and update.
11242 (nullify_last_target_wait_ptid): Declare.
11243 * linux-fork.c (fork_load_infrun_state): Remove local extern
11244 declaration of nullify_last_target_wait_ptid.
11245 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11246 to get_last_target_status.
11247
f3f8ece4
PA
112482020-01-10 Pedro Alves <palves@redhat.com>
11249
11250 * gdbthread.h (scoped_restore_current_thread)
11251 <dont_restore, restore, m_dont_restore>: Declare.
11252 * thread.c (thread_alive): Add assertion. Return bool.
11253 (switch_to_thread_if_alive): New.
11254 (prune_threads): Switch inferior/thread.
11255 (print_thread_info_1): Switch thread before calling target methods.
11256 (scoped_restore_current_thread::restore): New, factored out from
11257 ...
11258 (scoped_restore_current_thread::~scoped_restore_current_thread):
11259 ... this.
11260 (scoped_restore_current_thread::scoped_restore_current_thread):
11261 Add assertion.
11262 (thread_apply_all_command, thread_select): Use
11263 switch_to_thread_if_alive.
11264 * infrun.c (proceed, restart_threads, handle_signal_stop)
11265 (switch_back_to_stepped_thread): Switch current thread before
11266 calling target methods.
11267
db2d40f7
PA
112682020-01-10 Pedro Alves <palves@redhat.com>
11269
11270 * inferior.c (switch_to_inferior_no_thread): New function,
11271 factored out from ...
11272 (inferior_command): ... here.
11273 * inferior.h (switch_to_inferior_no_thread): Declare.
11274 * mi/mi-main.c (run_one_inferior): Use
11275 switch_to_inferior_no_thread.
11276
bd420a2d
PA
112772020-01-10 Pedro Alves <palves@redhat.com>
11278
11279 * infcmd.c (kill_command): Remove dead code.
11280
ddf5db90
PA
112812020-01-10 Pedro Alves <palves@redhat.com>
11282
11283 * remote.c (remote_target::mourn_inferior): No longer check
11284 whether the target is running.
11285
5018ce90
PA
112862020-01-10 Pedro Alves <palves@redhat.com>
11287
11288 * corelow.c (core_target::has_execution): Change parameter type to
11289 inferior pointer.
11290 * inferior.c (number_of_live_inferiors): Use
11291 inferior::has_execution instead of target_has_execution_1.
11292 * inferior.h (inferior::has_execution): New.
11293 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11294 inferior::has_execution instead of target_has_execution_1.
11295 * process-stratum-target.c
11296 (process_stratum_target::has_execution): Change parameter type to
11297 inferior pointer. Check the inferior's PID instead of
11298 inferior_ptid.
11299 * process-stratum-target.h
11300 (process_stratum_target::has_execution): Change parameter type to
11301 inferior pointer.
11302 * record-full.c (record_full_core_target::has_execution): Change
11303 parameter type to inferior pointer.
11304 * target.c (target_has_execution_1): Change parameter type to
11305 inferior pointer.
11306 (target_has_execution_current): Adjust.
11307 * target.h (target_ops::has_execution): Change parameter type to
11308 inferior pointer.
11309 (target_has_execution_1): Change parameter type to inferior
11310 pointer. Change return type to bool.
11311 * tracefile.h (tracefile_target::has_execution): Change parameter
11312 type to inferior pointer.
11313
74375d18
PA
113142020-01-10 Pedro Alves <palves@redhat.com>
11315
11316 * exceptions.c (print_flush): Remove current_top_target() check.
11317
acdf84a6
PA
113182020-01-10 Pedro Alves <palves@redhat.com>
11319
11320 * remote.c (show_remote_exec_file): Show the current inferior's
11321 exec-file instead of the command variable's value.
11322
ec506636
PA
113232020-01-10 Pedro Alves <palves@redhat.com>
11324
11325 * record-full.c (record_full_resume_ptid): New global.
11326 (record_full_target::resume): Set it.
11327 (record_full_wait_1): Use record_full_resume_ptid instead of
11328 inferior_ptid.
11329
873657b9
PA
113302020-01-10 Pedro Alves <palves@redhat.com>
11331
11332 * gdbthread.h (scoped_restore_current_thread)
11333 <dont_restore, restore, m_dont_restore>: Declare.
11334 * thread.c (thread_alive): Add assertion. Return bool.
11335 (switch_to_thread_if_alive): New.
11336 (prune_threads): Switch inferior/thread.
11337 (print_thread_info_1): Switch thread before calling target methods.
11338 (scoped_restore_current_thread::restore): New, factored out from
11339 ...
11340 (scoped_restore_current_thread::~scoped_restore_current_thread):
11341 ... this.
11342 (scoped_restore_current_thread::scoped_restore_current_thread):
11343 Add assertion.
11344 (thread_apply_all_command, thread_select): Use
11345 switch_to_thread_if_alive.
11346
7f0ae84c
GB
113472020-01-10 George Barrett <bob@bob131.so>
11348
11349 * stap-probe.c (stap_modify_semaphore): Don't check for null
11350 semaphores.
11351 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11352 for null semaphores.
11353
f5a7c406
AB
113542020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11355
11356 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11357 all source windows, and maintain horizontal scroll status while
11358 doing so.
11359
9ae6bf64
TT
113602020-01-09 Tom Tromey <tom@tromey.com>
11361
11362 PR tui/18932:
11363 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11364 update_source_window, not print_source_lines.
11365
b2efe70c
AB
113662020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11367
11368 * tui/tui.c (tui_enable): Register tui hooks after calling
11369 tui_display_main.
11370
5f23a082
CB
113712020-01-09 Christian Biesinger <cbiesinger@google.com>
11372
11373 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11374
3061113b
SM
113752020-01-08 Simon Marchi <simon.marchi@efficios.com>
11376
11377 * thread.c (print_thread_info_1): Fix indentation.
11378
57d75002
CB
113792020-01-09 Christian Biesinger <cbiesinger@google.com>
11380
11381 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11382 unique_xmalloc_ptr outside the if to always free the demangled name.
11383
6a053cb1
TT
113842020-01-08 Tom Tromey <tromey@adacore.com>
11385
11386 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11387 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11388 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11389 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11390 Remove.
11391 (section_offsets): New typedef.
11392 * symtab.c (fixup_section, get_msymbol_address): Update.
11393 * symmisc.c (dump_msymbols): Update.
11394 * symfile.h (relative_addr_info_to_section_offsets)
11395 (symfile_map_offsets_to_segments): Update.
11396 * symfile.c (build_section_addr_info_from_objfile)
11397 (init_objfile_sect_indices): Update.
11398 (struct place_section_arg): Change type of "offsets".
11399 (place_section): Update.
11400 (relative_addr_info_to_section_offsets): Change type of
11401 "section_offsets". Remove "num_sections" parameter.
11402 (default_symfile_offsets, syms_from_objfile_1)
11403 (set_objfile_default_section_offset): Update.
11404 (reread_symbols): No need to preserve section offsets by hand.
11405 (symfile_map_offsets_to_segments): Change type of "offsets".
11406 * stap-probe.c (relocate_address): Update.
11407 * stabsread.h (process_one_symbol): Update.
11408 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11409 (solib_target_relocate_section_addresses): Update.
11410 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11411 Update.
11412 * solib-frv.c (frv_relocate_main_executable): Update.
11413 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11414 * solib-aix.c (solib_aix_get_section_offsets): Change return
11415 type.
11416 (solib_aix_solib_create_inferior_hook): Update.
11417 * remote.c (remote_target::get_offsets): Update.
11418 * psymtab.c (find_pc_sect_psymtab): Update.
11419 * psympriv.h (struct partial_symbol) <address, text_low,
11420 text_high>: Update.
11421 * objfiles.h (obj_section_offset): Update.
11422 (struct objfile) <section_offsets>: Change type.
11423 <num_sections>: Remove.
11424 (objfile_relocate): Update.
11425 * objfiles.c (entry_point_address_query): Update
11426 (relocate_one_symbol): Change type of "section_offsets".
11427 (objfile_relocate1, objfile_relocate1): Change type of
11428 "new_offsets".
11429 (objfile_rebase1): Update.
11430 * mipsread.c (mipscoff_symfile_read): Update.
11431 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11432 parameter.
11433 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11434 (parse_external, psymtab_to_symtab_1): Update.
11435 * machoread.c (macho_symfile_offsets): Update.
11436 * ia64-tdep.c (ia64_find_unwind_table): Update.
11437 * hppa-tdep.c (read_unwind_info): Update.
11438 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11439 * dwarf2read.c (create_addrmap_from_index)
11440 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11441 (process_psymtab_comp_unit_reader, add_partial_symbol)
11442 (add_partial_subprogram, process_full_comp_unit)
11443 (read_file_scope, read_func_scope, read_lexical_block_scope)
11444 (read_call_site_scope, dwarf2_rnglists_process)
11445 (dwarf2_ranges_process, dwarf2_ranges_read)
11446 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11447 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11448 Update.
11449 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11450 Update.
11451 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11452 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11453 (process_one_symbol): Change type of "section_offsets".
11454 * ctfread.c (get_objfile_text_range): Update.
11455 * coffread.c (coff_symtab_read, enter_linenos)
11456 (process_coff_symbol): Update.
11457 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11458 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11459
456e800a
TT
114602020-01-08 Tom Tromey <tromey@adacore.com>
11461
11462 * dwarf2read.c (parse_macro_definition): Use std::string.
11463 (parse_macro_definition): Likewise.
11464
6dfa2fc2
TT
114652020-01-08 Tom Tromey <tromey@adacore.com>
11466
11467 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11468 (ATTR_ALLOC_CHUNK): Remove.
11469
421d1616
TT
114702020-01-08 Tom Tromey <tromey@adacore.com>
11471
11472 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11473
43816ebc
TT
114742020-01-08 Tom Tromey <tromey@adacore.com>
11475
11476 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11477 (dwarf2_compute_name, open_dwo_file): Likewise.
11478 (process_enumeration_scope): Use std::vector.
11479 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11480 (partial_die_info::fixup, dwarf2_start_subfile)
11481 (guess_full_die_structure_name, dwarf2_name): Likewise.
11482 (determine_prefix): Update.
11483 (guess_full_die_structure_name): Make return type const.
11484 (partial_die_full_name): Return unique_xmalloc_ptr.
11485 (DW_FIELD_ALLOC_CHUNK): Remove.
11486
4212d509
TT
114872020-01-07 Tom Tromey <tromey@adacore.com>
11488
11489 PR build/24937:
11490 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11491
06a6207a
JT
114922020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11493
11494 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11495
153d79c4
AB
114962020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11497
11498 * stack.c (print_frame_info): Move disassemble_next_line code
11499 inside source_print block.
11500
66182876
EZ
115012020-01-06 Eli Zaretskii <eliz@gnu.org>
11502
11503 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11504 gdb/signals.h, as we are now using native signal symbols.
11505
cbfa8581
SV
115062020-01-06 Shahab Vahedi <shahab@synopsys.com>
11507
11508 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11509 overflow by an early check of content vs threshold.
aac66a4c 11510 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11511 Likewise.
11512
3f602821
EZ
115132020-01-06 Eli Zaretskii <eliz@gnu.org>
11514
11515 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11516
a08c904d
JT
115172020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11518
11519 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11520 export table if no section contains it's RVA.
11521
89a65580
EZ
115222020-01-06 Eli Zaretskii <eliz@gnu.org>
11523
11524 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11525
8b7fcda2
HD
115262020-01-06 Hannes Domani <ssbssa@yahoo.de>
11527
11528 * source.c (print_source_lines_base): Set last_line_listed.
11529
a61b4f69
SV
115302020-01-06 Shahab Vahedi <shahab@synopsys.com>
11531
11532 * tui/tui-disasm.c: Remove trailing spaces.
11533
559e7e50
EZ
115342020-01-06 Eli Zaretskii <eliz@gnu.org>
11535 Pedro Alves <palves@redhat.com>
11536
11537 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11538 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11539 (windows_gdb_signal_to_target): New function, uses the above
11540 enumeration to convert GDB internal signal codes to equivalent
11541 Windows codes.
11542 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11543 * windows-nat.c: Include "gdb_wait.h".
11544 (get_windows_debug_event): Extract the fatal exception from the
11545 exit status and convert to the equivalent Posix signal number.
11546 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11547 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11548 * gdbsupport/gdb_wait.c: New file, implements
11549 windows_status_to_termsig.
11550 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11551 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11552
f2302a34
AB
115532020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11554
11555 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11556 show_layout.
11557
6a5206eb
LM
115582020-01-05 Luis Machado <luis.machado@linaro.org>
11559
11560 * aarch64-linux-nat.c
11561 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11562 and bfd_mach_aarch64.
11563
6ec1d75e
PW
115642020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11565
11566 * ui-file.c (stdio_file::can_emit_style_escape)
11567 (tee_file::can_emit_style_escape): Ensure style is used also on
11568 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11569 to gdb_stdout.
11570 * main.c (set_gdb_data_directory): Use file style to output the
11571 warning that the given pathname is not a directory.
11572 * top.c (show_history_filename, gdb_safe_append_history)
11573 (show_gdb_datadir): Use file style.
11574
44f81a76
HD
115752020-01-03 Hannes Domani <ssbssa@yahoo.de>
11576
11577 * solib-target.c (struct lm_info_target):
11578 Change offsets to be a unique_xmalloc_ptr.
11579 (solib_target_relocate_section_addresses): Update.
11580
25057eb0
HD
115812020-01-03 Hannes Domani <ssbssa@yahoo.de>
11582
11583 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11584
6e2118f5
BE
115852020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11586
11587 * MAINTAINERS (Write After Approval): Add myself.
11588
8133c7dc
LM
115892020-01-02 Luis Machado <luis.machado@linaro.org>
11590
11591 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11592 Cell BE architecture.
11593 * target.h (struct target_ops) <thread_architecture>: Likewise.
11594
48189bec
HD
115952020-01-01 Hannes Domani <ssbssa@yahoo.de>
11596
11597 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11598
ead1063b
HD
115992020-01-01 Hannes Domani <ssbssa@yahoo.de>
11600
11601 * MAINTAINERS (Write After Approval): Add myself.
11602
e5d78223
JB
116032020-01-01 Joel Brobecker <brobecker@adacore.com>
11604
11605 * gdbarch.sh: Update copyright year range of generated files.
11606
b811d2c2
JB
116072020-01-01 Joel Brobecker <brobecker@adacore.com>
11608
11609 Update copyright year range in all GDB files.
11610
5f4def5c
JB
116112020-01-01 Joel Brobecker <brobecker@adacore.com>
11612
11613 * copyright.py: Convert to Python 3.
11614
51fd4002
JB
116152020-01-01 Joel Brobecker <brobecker@adacore.com>
11616
11617 * copyright.py: Adapt after move of gnulib directory from gdb
11618 directory to toplevel directory.
11619
5fb651f2
JB
116202020-01-01 Joel Brobecker <brobecker@adacore.com>
11621
11622 * copyright.py (main): Exit if run from the wrong directory.
11623
5dd8bf88
JB
116242020-01-01 Joel Brobecker <brobecker@adacore.com>
11625
11626 * top.c (print_gdb_version): Change copyright year to 2020.
11627
9f71dacb 116282020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11629
9f71dacb 11630 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11631
9f71dacb 11632For older changes see ChangeLog-2019.
c906108c
SS
11633\f
11634Local Variables:
11635mode: change-log
11636left-margin: 8
11637fill-column: 74
11638version-control: never
57da7796 11639coding: utf-8
c906108c 11640End: