gdb: remove TYPE_DYN_PROP_BATON
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
51d6067d
SM
12020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4
b26e2ae7
JM
52020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6
7 * configure.tgt: Set gdb_sim for bpf-*-* targets.
8
39791af2
JM
92020-08-04 Weimin Pan <weimin.pan@oracle.com>
10 Jose E. Marchesi <jose.marchesi@oracle.com>
11
12 * configure.tgt: Add entry for bpf-*-*.
13 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
14 (ALLDEPFILES): Add bpf-tdep.c.
15 * bpf-tdep.c: New file.
16 * MAINTAINERS: Add bpf target and maintainer.
17 * NEWS: Mention the support for the new target.
18
521894aa
TV
192020-08-04 Tom de Vries <tdevries@suse.de>
20
21 PR symtab/23270
22 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
23 Error.
24
5d6356e9
JB
252020-08-03 John Baldwin <jhb@FreeBSD.org>
26
27 * syscalls/freebsd.xml: Regenerate.
28
0cf82b81
JB
292020-08-03 John Baldwin <jhb@FreeBSD.org>
30
31 * syscalls/update-freebsd.sh: Fix usage and year range.
32
8f34b746
TV
332020-08-03 Tom de Vries <tdevries@suse.de>
34
35 PR symtab/26333
36 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
37 DW_LNE_lo_user/DW_LNE_hi_user range.
38
5e500d33
SM
392020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
40
41 PR ada/26318
42 * ada-lang.c (ada_modulus): Return 0 if property is not of const
43 kind.
44
78319c15
TBA
452020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
46
47 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
48
4c55e970
TBA
492020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
50
51 * breakpoint.c (set_breakpoint_condition): Update the condition
52 expressions after checking that the input condition string parses
53 successfully and does not contain junk at the end.
54
1e620590
TBA
552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
56
57 * breakpoint.c (set_breakpoint_condition): Update the
58 condition string after parsing the new condition successfully.
59
c8693053
RO
602020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
61
62 * proc-api.c (_STRUCTURED_PROC): Don't define.
63 * proc-events.c: Likewise.
64 * proc-flags.c: Likewise.
65 * proc-why.c: Likewise.
66 * procfs.c: Likewise.
67
68 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
69 * configure, config.in: Regenerate.
70
5a99adb8
TV
712020-07-30 Tom de Vries <tdevries@suse.de>
72
73 PR build/26320
74 * ui-style.h (struct ui_file_style::color): Wrap m_value and
75 m_red/m_green/m_blue in a union.
76
8ba83e91
TV
772020-07-29 Tom de Vries <tdevries@suse.de>
78
79 PR tdep/26280
80 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
81
f75a0693
AB
822020-07-28 Tom Tromey <tromey@adacore.com>
83
84 PR symtab/26270:
85 * symtab.h (find_pc_partial_function_sym): Declare.
86 * cli/cli-cmds.c (disassemble_command): Use
87 find_pc_partial_function_sym. Check asm_demangle.
88 * blockframe.c (cache_pc_function_sym): New global.
89 (cache_pc_function_name): Remove.
90 (clear_pc_function_cache): Update.
91 (find_pc_partial_function_sym): New function, from
92 find_pc_partial_function.
93 (find_pc_partial_function): Rewrite using
94 find_pc_partial_function_sym.
95
16f3242c
TT
962020-07-28 Tom Tromey <tromey@adacore.com>
97
98 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
99 help. Add usage.
100
4888741a
TT
1012020-07-28 Tom Tromey <tromey@adacore.com>
102
103 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
104 <DW_OP_GNU_variable_value>: Cast to address type.
105
4d46f402
KR
1062020-07-28 Kamil Rytarowski <n54@gmx.com>
107
108 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
109 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
110 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
111 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
112 (nbsd_get_siginfo_type): New.
113 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
114 (_initialize_nbsd_tdep): New.
115
d70f978b
L
1162020-07-28 H.J. Lu <hongjiu.lu@intel.com>
117
118 PR binutils/26301
119 * configure: Regenerated.
120
377170fa
L
1212020-07-28 H.J. Lu <hongjiu.lu@intel.com>
122
123 PR binutils/26301
124 * configure: Regenerated.
125
43d5901d
AB
1262020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
127
128 * python/py-frame.c: Remove 'user-regs.h' include.
129 (frapy_read_register): Rewrite to make use of
130 gdbpy_parse_register_id.
131 * python/py-registers.c (gdbpy_parse_register_id): New function,
132 moved here from python/py-unwind.c. Updated the return type, and
133 also accepts register descriptor objects.
134 * python/py-unwind.c: Remove 'user-regs.h' include.
135 (pyuw_parse_register_id): Moved to python/py-registers.c.
136 (unwind_infopy_add_saved_register): Update to use
137 gdbpy_parse_register_id.
138 (pending_framepy_read_register): Likewise.
139 * python/python-internal.h (gdbpy_parse_register_id): Declare.
140
14fa8fb3
AB
1412020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
142
143 * python/py-registers.c: Add 'user-regs.h' include.
144 (register_descriptor_iter_find): New function.
145 (register_descriptor_iterator_object_methods): New static global
146 methods array.
147 (register_descriptor_iterator_object_type): Add pointer to methods
148 array.
149
ddce1758
JB
1502020-07-27 John Baldwin <jhb@FreeBSD.org>
151
152 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
153 for all architectures on FreeBSD 11.3 and later.
154
a4089f52
TT
1552020-07-27 Tom Tromey <tromey@adacore.com>
156
157 * gcore.h (load_corefile): Don't declare.
158
95420d30
TV
1592020-07-27 Tom de Vries <tdevries@suse.de>
160
161 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
162 * config.in: Regenerate.
163 * configure: Regenerate.
164
05a6b8c2
EZ
1652020-07-26 Eli Zaretskii <eliz@gnu.org>
166
167 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
168 ws2tcpip.h. When checking whether socklen_t type is defined, use
169 ws2tcpip.h if it is available and sys/socket.h isn't.
170 * configure: Regenerate.
171 * config.in: Regenerate.
172
e79eb02f
AB
1732020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
174
175 PR fortran/23051
176 PR fortran/26139
177 * valops.c (value_ind): Pass address to
178 readjust_indirect_value_type.
179 * value.c (readjust_indirect_value_type): Make parameter
180 non-const, and add extra address parameter. Resolve original type
181 before using it.
182 * value.h (readjust_indirect_value_type): Update function
183 signature and comment.
184
876518dd
TV
1852020-07-25 Tom de Vries <tdevries@suse.de>
186
187 PR symtab/26243
188 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
189 entries.
190
f6720b1c
AM
1912020-07-24 Aaron Merey <amerey@redhat.com>
192
193 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
194 * configure: Rebuild.
195
513487e1
KB
1962020-07-23 Kevin Buettner <kevinb@redhat.com>
197
198 PR corefiles/26294
199 * corelow.c (_initialize_corelow): Add period to help text
200 for "maintenance print core-file-backed-mappings".
201
e7bc9db8
PA
2022020-07-23 Pedro Alves <pedro@palves.net>
203
204 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
205 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
206 meanwhile.
207 * frame.c (frame_cache_generation, get_frame_cache_generation):
208 New.
209 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
210 (get_prev_frame_if_no_cycle): On exception, don't touch
211 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
212 * frame.h (get_frame_cache_generation): Declare.
213
90fcc466
TV
2142020-07-23 Tom de Vries <tdevries@suse.de>
215
216 PR tui/26282
217 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
218 New default constructor.
219
78344df7
AB
2202020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
223 exclude non-statement entries.
224
b089853a
KB
2252020-07-22 Kevin Buettner <kevinb@redhat.com>
226
227 * NEWS (New commands): Mention new command
228 "maintenance print core-file-backed-mappings".
229
09c2f5d4
KB
2302020-07-22 Kevin Buettner <kevinb@redhat.com>
231
232 * corelow.c (gdbcmd.h): Include.
233 (core_target::info_proc_mappings): New method.
234 (get_current_core_target): New function.
235 (maintenance_print_core_file_backed_mappings): New function.
236 (_initialize_corelow): Add core-file-backed-mappings to
237 "maint print" commands.
238
9c5ec5c2
KB
2392020-07-22 Kevin Buettner <kevinb@redhat.com>
240
241 * linux-tdep.c (dump_note_entry_p): New function.
242 (linux_dump_mapping_p_ftype): New typedef.
243 (linux_find_memory_regions_full): Add new parameter,
244 should_dump_mapping_p.
245 (linux_find_memory_regions): Adjust call to
246 linux_find_memory_regions_full.
247 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
248 call to linux_find_memory_regions_full.
249
db082f59
KB
2502020-07-22 Kevin Buettner <kevinb@redhat.com>
251
252 * corelow.c (solist.h, unordered_map): Include.
253 (class core_target): Add field m_core_file_mappings and
254 method build_file_mappings.
255 (core_target::core_target): Call build_file_mappings.
256 (core_target::~core_target): Free memory associated with
257 m_core_file_mappings.
258 (core_target::build_file_mappings): New method.
259 (core_target::xfer_partial): Use m_core_file_mappings
260 for memory transfers.
261 * linux-tdep.c (linux_read_core_file_mappings): New
262 function.
263 (linux_core_info_proc_mappings): Rewrite to use
264 linux_read_core_file_mappings.
265 (linux_init_abi): Register linux_read_core_file_mappings.
266
7e183d27
KB
2672020-07-22 Kevin Buettner <kevinb@redhat.com>
268
269 * arch-utils.c (default_read_core_file_mappings): New function.
270 * arch-utils.c (default_read_core_file_mappings): Declare.
271 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
272 * gdbarch.h, gdbarch.c: Regenerate.
273
2735d421
KB
2742020-07-22 Kevin Buettner <kevinb@redhat.com>
275
276 PR corefiles/25631
277 * corelow.c (core_target:xfer_partial): Revise
278 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
279 case after first checking the stratum beneath the core
280 target.
281 (has_all_memory): Return true.
282 * target.c (raw_memory_xfer_partial): Revise comment
283 regarding use of has_all_memory.
284
e56cb451
KB
2852020-07-22 Kevin Buettner <kevinb@redhat.com>
286
287 * exec.h (section_table_xfer_memory): Revise declaration,
288 replacing section name parameter with an optional callback
289 predicate.
290 * exec.c (section_table_xfer_memory): Likewise.
291 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
292 of section_table_xfer_memory.
293
32fa152e
TT
2942020-07-22 Tom Tromey <tromey@adacore.com>
295
296 * mi/mi-cmd-stack.c (list_args_or_locals): Use
297 lookup_symbol_search_name.
298
a67a1c41
AB
2992020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
300
301 * python/py-registers.c (gdbpy_register_object_data_init): Remove
302 redundant local variable.
303 (gdbpy_get_register_descriptor): Extract descriptor vector as a
304 reference, not pointer, update code accordingly.
305
a7b4ff4f
SM
3062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
307 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
308
309 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
310 * jit.c (jit_breakpoint_re_set_internal): Use the
311 `skip_jit_symbol_lookup` field.
312
2340e834
SM
3132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
314 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
315
316 * jit.c (jit_read_descriptor): Define the descriptor address once,
317 use twice.
318 (jit_breakpoint_deleted): Move the declaration of the loop variable
319 `iter` into the loop header.
320 (jit_breakpoint_re_set_internal): Move the declaration of the local
321 variable `objf_data` to the first point of definition.
322 (jit_event_handler): Move the declaration of local variables
323 `code_entry`, `entry_addr`, and `objf` to their first point of use.
324 Rename `objf` to `jited`.
325
c1072906
SM
3262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
327
328 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
329 Remove.
330 * jit.c (get_jiter_objfile_data): Update.
331
c8474dc3
TBA
3322020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
333 Simon Marchi <simon.marchi@polymtl.ca>
334
335 * jit.c (struct jit_program_space_data): Remove.
336 (jit_program_space_key): Remove.
337 (jiter_objfile_data::~jiter_objfile_data): Remove program space
338 stuff.
339 (get_jit_program_space_data): Remove.
340 (jit_breakpoint_deleted): Iterate on all of the program space's
341 objfiles.
342 (jit_inferior_init): Likewise.
343 (jit_breakpoint_re_set_internal): Likewise. Also change return
344 type to void.
345 (jit_breakpoint_re_set): Pass current_program_space to
346 jit_breakpoint_re_set_internal.
347
77208eb7
SM
3482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
349
350 * jit.h (struct jiter_objfile_data) <cached_code_address,
351 jit_breakpoint>: Move to here from ...
352 * jit.c (jit_program_space_data): ... here.
353 (jiter_objfile_data::~jiter_objfile_data): Update.
354 (jit_breakpoint_deleted): Update.
355 (jit_breakpoint_re_set_internal): Update.
356
8c1c720f
SM
3572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
358
359 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
360 checks.
361 (jit_read_descriptor): Remove NULL check.
362 (jit_event_handler): Add an assertion.
363
0e74a041
SM
3642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * jit.h (struct jit_objfile_data): Split into...
367 (struct jiter_objfile_data): ... this ...
368 (struct jited_objfile_data): ... and this.
369 * objfiles.h (struct objfile) <jit_data>: Remove.
370 <jiter_data, jited_data>: New fields.
371 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
372 (jiter_objfile_data::~jiter_objfile_data): ... this.
373 (get_jit_objfile_data): Rename to ...
374 (get_jiter_objfile_data): ... this.
375 (add_objfile_entry): Update.
376 (jit_read_descriptor): Use get_jiter_objfile_data.
377 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
378 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
379 (jit_inferior_exit_hook): Use objfile's jited_data field.
380
238b5c9f
SM
3812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
382
383 * jit.h: Forward-declare `struct minimal_symbol`.
384 (struct jit_objfile_data): Migrate to here from jit.c; also add a
385 constructor, destructor, and an objfile* field.
386 * jit.c (jit_objfile_data): Remove.
387 (struct jit_objfile_data): Migrate from here to jit.h.
388 (jit_objfile_data::~jit_objfile_data): New destructor
389 implementation with code moved from free_objfile_data.
390 (free_objfile_data): Delete.
391 (get_jit_objfile_data): Update to use the jit_data field of objfile.
392 (jit_find_objf_with_entry_addr): Ditto.
393 (jit_inferior_exit_hook): Ditto.
394 (_initialize_jit): Remove the call to
395 register_objfile_data_with_cleanup.
396 * objfiles.h (struct objfile) <jit_data>: New field.
397
fe053b9e
TBA
3982020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
399
400 * jit.h: Forward-declare `struct objfile`.
401 (jit_event_handler): Add a second parameter, the JITer objfile.
402 * jit.c (jit_read_descriptor): Change the signature to take the
403 JITer objfile as an argument instead of the jit_program_space_data.
404 (jit_inferior_init): Update the call to jit_read_descriptor.
405 (jit_event_handler): Use the new JITer objfile argument when calling
406 jit_read_descriptor.
407 * breakpoint.c (handle_jit_event): Update the call to
408 jit_event_handler to pass the JITer objfile.
409
4cec0c66
JB
4102020-07-21 John Baldwin <jhb@FreeBSD.org>
411
412 * gdbarch.c: Regenerate.
413 * gdbarch.h: Regenerate.
414 * gdbarch.sh (handle_segmentation_fault): Remove method.
415 * infrun.c (handle_segmentation_fault): Remove.
416 (print_signal_received_reason): Remove call to
417 handle_segmentation_fault.
418
0e42f66a
JB
4192020-07-21 John Baldwin <jhb@FreeBSD.org>
420
421 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
422 Rename to sparc64_linux_report_signal_info and add siggnal
423 argument.
424 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
425 instead of sparc64_linux_handle_segmentation_fault.
426
77bdfeb2
JB
4272020-07-21 John Baldwin <jhb@FreeBSD.org>
428
429 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
430 i386_linux_report_signal_info instead of
431 i386_linux_handle_segmentation_fault.
432 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
433 to i386_linux_report_signal_info and add siggnal argument.
434 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
435 of i386_linux_handle_segmentation_fault.
436 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
437 to i386_linux_report_signal_info and add siggnal argument.
438
ad97bfc5
JB
4392020-07-21 John Baldwin <jhb@FreeBSD.org>
440
441 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
442 hook if present.
443
272bb05c
JB
4442020-07-21 John Baldwin <jhb@FreeBSD.org>
445
446 * gdbarch.c: Regenerate.
447 * gdbarch.h: Regenerate.
448 * gdbarch.sh (report_signal_info): New method.
449 * infrun.c (print_signal_received_reason): Invoke gdbarch
450 report_signal_info hook if present.
451
baf8791e
AB
4522020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 * python/py-registers.c : Add 'unordered_map' include.
455 (gdbpy_new_reggroup): Renamed to...
456 (gdbpy_get_reggroup): ...this. Update to only create register
457 group descriptors when needed.
458 (gdbpy_reggroup_iter_next): Update.
459
f7306dac
AB
4602020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
461
462 * python/py-registers.c (gdbpy_register_object_data): New static
463 global.
464 (gdbpy_register_object_data_init): New function.
465 (gdbpy_new_register_descriptor): Renamed to...
466 (gdbpy_get_register_descriptor): ...this, and update to reuse
467 existing register descriptors where possible.
468 (gdbpy_register_descriptor_iter_next): Update.
469 (gdbpy_initialize_registers): Register new gdbarch data.
470
05c309a8
SM
4712020-07-21 Simon Marchi <simon.marchi@efficios.com>
472
473 * linux-nat.c (stopped_pids): Make static.
474
d1fd641e
SM
4752020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
476
477 PR ada/26235
478 * gdbtypes.c (ada_discrete_type_low_bound,
479 ada_discrete_type_high_bound): Handle undefined bounds.
480
1de14d77
KR
4812020-07-21 Kamil Rytarowski <n54@gmx.com>
482
483 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
484 declaration.
485 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
486 function.
487
ed810cc7
JB
4882020-07-20 John Baldwin <jhb@FreeBSD.org>
489
490 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
491 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
492 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
493 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
494 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
495 method.
496
ae5369e7
LC
4972020-07-20 Ludovic Courtès <ludo@gnu.org>
498
499 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
500 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
501 which are deprecated in Guile 3.0.
502 * configure.ac (try_guile_versions): Add "guile-3.0".
503 * configure (try_guile_versions): Regenerate.
504 * NEWS: Update entry.
505
68cf161c
LC
5062020-07-20 Ludovic Courtès <ludo@gnu.org>
507 Doug Evans <dje@google.com>
508
509 PR gdb/21104
510 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
511 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
512 USING_GUILE_BEFORE_2_2.
513 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
514 Change type to 'scm_t_port_type *'.
515 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
516 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
517 parameter and honor it. Update callers.
518 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
519 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
520 functions.
521 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
522 USING_GUILE_BEFORE_2_2.
523 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
524 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
525 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
526 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
527 and 'SCM_PORT_TYPE'.
528 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
529 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
530 (gdbscm_memory_port_read, gdbscm_memory_port_write)
531 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
532 [!USING_GUILE_BEFORE_2_2]: New functions.
533 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
534 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
535 'gdbscm_memory_port_read'.
536 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
537 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
538 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
539 function.
540 (ioscm_init_memory_port): Remove.
541 (ioscm_init_memory_port_stream): New function
542 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
543 function.
544 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
545 Return scm_from_uint (0).
546 (gdbscm_set_memory_port_read_buffer_size_x)
547 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
548 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
549 Return scm_from_uint (0).
550 (gdbscm_set_memory_port_write_buffer_size_x)
551 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
552 * configure.ac (try_guile_versions): Add "guile-2.2".
553 * configure: Regenerate.
554 * NEWS: Add entry.
555
aee91db3
TT
5562020-07-18 Tom Tromey <tom@tromey.com>
557
558 * linux-nat.c (linux_multi_process): Remove.
559 (linux_nat_target::supports_multi_process): Return true.
560
0e267416
AB
5612020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * arch/riscv.c (riscv_tdesc_cache): Change map type.
564 (riscv_lookup_target_description): Return pointer out of
565 unique_ptr.
566 * target-descriptions.c (allocate_target_description): Add
567 comment.
568 (target_desc_deleter::operator()): Likewise.
569 * target-descriptions.h (struct target_desc_deleter): Moved to
570 gdbsupport/tdesc.h.
571 (target_desc_up): Likewise.
572
f80c8ec4
TT
5732020-07-17 Tom Tromey <tromey@adacore.com>
574
575 * linux-nat.c (linux_nat_target::supports_non_stop)
576 (linux_nat_target::always_non_stop_p): Use "true".
577 (linux_nat_target::supports_disable_randomization): Use "true" and
578 "false".
579
d0ce17d8
CT
5802020-07-16 Caroline Tice <cmtice@google.com>
581
582 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
583 (RNGLIST_HEADER_SIZE64): New constant definition.
584 (struct dwop_section_names): Add rnglists_dwo.
585 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
586 (struct loclist_header): Rename to 'loclists_rnglists_header'.
587 (struct dwo_sections): Add rnglists field.
588 (read_attribut_reprocess): Add tag parameter.
589 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
590 (cu_debug_rnglists_section): New function (decl & definition).
591 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
592 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
593 die whose range is being checked; get rnglist section from
594 cu_debug_rnglists_section, to get from either objfile or dwo file as
595 appropriate. Add cases for DW_RLE_base_addressx,
596 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
597 the base address to DW_RLE_offset_pairs (not to all ranges), moving
598 test inside if-condition and updating complaint message.
599 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
600 dwarf2_rnglists_process.
601 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
602 dwarf2_ranges_process.
603 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
604 need_ranges_base and update comment appropriately. Also pass die tag
605 to dwarf2_ranges_read.
606 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
607 need_ranges_base and update comment appropriately. Also pass die tag
608 to dwarf2_ranges_process.
609 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
610 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
611 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
612 need_ranges_base and update comment appropriately. Also pass die tag
613 to read_attribute_reprocess and dwarf2_ranges_read.
614 (read_loclist_header): Rename function to read_loclists_rnglists_header,
615 and update function comment appropriately.
616 (read_loclist_index): Call read_loclists_rnglists_header instead of
617 read_loclist_header.
618 (read_rnglist_index): New function.
619 (read_attribute_reprocess): Add tag parameter. Add code for
620 DW_FORM_rnglistx, passing tag to read_rnglist_index.
621 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
622
3dcc261c
AB
6232020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
626 being resolved.
627
ccb9eba6
AB
6282020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
629
630 * arch-utils.c (show_architecture): Update formatting of messages.
631
cf88be68
SM
6322020-07-12 Simon Marchi <simon.marchi@efficios.com>
633
634 * gdbtypes.h (struct type) <bounds>: Handle array and string
635 types.
636 * ada-lang.c (assign_aggregate): Use type::bounds on
637 array/string type.
638 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
639 * c-varobj.c (c_number_of_children): Likewise.
640 (c_describe_child): Likewise.
641 * eval.c (evaluate_subexp_for_sizeof): Likewise.
642 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
643 (f_type_print_base): Likewise.
644 * f-valprint.c (f77_array_offset_tbl): Likewise.
645 (f77_get_upperbound): Likewise.
646 (f77_print_array_1): Likewise.
647 * guile/scm-type.c (gdbscm_type_range): Likewise.
648 * m2-typeprint.c (m2_array): Likewise.
649 (m2_is_long_set_of_type): Likewise.
650 * m2-valprint.c (get_long_set_bounds): Likewise.
651 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
652 * python/py-type.c (typy_range): Likewise.
653 * rust-lang.c (rust_internal_print_type): Likewise.
654 * type-stack.c (type_stack::follow_types): Likewise.
655 * valarith.c (value_subscripted_rvalue): Likewise.
656 * valops.c (value_cast): Likewise.
657
509971ae
SM
6582020-07-12 Simon Marchi <simon.marchi@efficios.com>
659
660 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
661 callers to use the equivalent accessor methods.
662
107406b7
SM
6632020-07-12 Simon Marchi <simon.marchi@efficios.com>
664
665 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
666 (struct type) <bit_stride>: New method.
667 (TYPE_BIT_STRIDE): Remove.
668 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
669
bb789949
SM
6702020-07-12 Simon Marchi <simon.marchi@efficios.com>
671
672 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
673 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
674 callers to use the equivalent accessor methods instead.
675
39498edb
SM
6762020-07-12 Simon Marchi <simon.marchi@efficios.com>
677
678 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
679 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
680 callers to use the equivalent accessor methods instead.
681
3b606f38
SM
6822020-07-12 Simon Marchi <simon.marchi@efficios.com>
683
684 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
685 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
686 to use dynamic_prop::kind.
687
064d9cb9
SM
6882020-07-12 Simon Marchi <simon.marchi@efficios.com>
689
690 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
691 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
692 to get the bound property's kind and check against
693 PROP_UNDEFINED.
694
5537ddd0
SM
6952020-07-12 Simon Marchi <simon.marchi@efficios.com>
696
697 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
698 all callers to use type::range_bounds followed by
699 dynamic_prop::{low,high}.
700
8c2e4e06
SM
7012020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
702
703 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
704 const_val, set_const_val, baton, set_locexpr, set_loclist,
705 set_addr_offset, variant_parts, set_variant_parts,
706 original_type, set_original_type>: New methods.
707 <kind>: Rename to...
708 <m_kind>: ... this. Update all users to use the new methods
709 instead.
710 <data>: Rename to...
711 <m_data>: ... this. Update all users to use the new methods
712 instead.
713
7c6f2712
SM
7142020-07-12 Simon Marchi <simon.marchi@efficios.com>
715
716 * gdbtypes.c (get_discrete_bounds): Return failure if
717 the range type's bounds are not both defined and constant
718 values.
719 (get_array_bounds): Update comment. Remove undefined bound check.
720
599088e3
SM
7212020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
722
723 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
724 the type::bounds method directly.
725
c4dfcb36
SM
7262020-07-12 Simon Marchi <simon.marchi@efficios.com>
727
728 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
729 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
730 are used to set the range type's bounds to use set_bounds.
731
0a278aa7
PW
7322020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
733
734 * exec.c (_initialize_exec): Update exec-file-mismatch help.
735
cce20f10
PA
7362020-07-10 Pedro Alves <pedro@palves.net>
737
738 * gdbthread.h (inferior_ref): Define.
739 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
740 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
741 * thread.c
742 (scoped_restore_current_thread::restore):
743 Adjust to gdb::ref_ptr.
744 (scoped_restore_current_thread::~scoped_restore_current_thread):
745 Remove manual decref handling.
746 (scoped_restore_current_thread::scoped_restore_current_thread):
747 Adjust to use
748 inferior_ref::new_reference/thread_info_ref::new_reference.
749 Incref the thread before calling get_frame_id instead of after.
750 Let TARGET_CLOSE_ERROR propagate.
751
6d7aa592
PA
7522020-07-10 Pedro Alves <pedro@palves.net>
753
754 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
755 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
756 NOT_AVAILABLE_ERROR.
757 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
758 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
759
b3e3a4c1
SM
7602020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
761 Pedro Alves <pedro@palves.net>
762
763 PR gdb/26199
764 * infrun.c (threads_are_resumed_pending_p): Delete.
765 (do_target_wait): Remove threads_are_executing and
766 threads_are_resumed_pending_p checks from the inferior_matches
767 lambda. Update comments.
768
d6cc5d98
PA
7692020-07-10 Pedro Alves <pedro@palves.net>
770
771 PR gdb/26199
772 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
773 executing threads.
774
7d3badc6
PA
7752020-07-10 Pedro Alves <pedro@palves.net>
776
777 PR gdb/26199
778 * infrun.c (handle_no_resumed): Handle multiple targets.
779
42bd97a6
PA
7802020-07-10 Pedro Alves <pedro@palves.net>
781
782 PR gdb/26199
783 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
784 target_is_async_p.
785
43667cc6
PA
7862020-07-10 Pedro Alves <pedro@palves.net>
787
788 PR gdb/26199
789 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
790 threads, not all threads.
791
96118d11
PA
7922020-07-10 Pedro Alves <pedro@palves.net>
793
794 PR gdb/26199
795 * remote.c (remote_target::open_1): Pass remote target pointer as
796 data to create_async_event_handler.
797 (remote_async_inferior_event_handler): Mark async event handler
798 before returning if the remote target still has either pending
799 events or unacknowledged notifications.
800
54904d81
JB
8012020-07-10 John Baldwin <jhb@FreeBSD.org>
802
803 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
804 declaration.
805 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
806 function.
807
f37e5866
JB
8082020-07-09 John Baldwin <jhb@FreeBSD.org>
809
810 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
811 inferior_ptid.
812
fc238d4a
JB
8132020-07-09 John Baldwin <jhb@FreeBSD.org>
814
815 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
816 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
817 AT_FREEBSD_PS_STRINGS.
818
6e2469ff
HD
8192020-07-08 Hannes Domani <ssbssa@yahoo.de>
820
821 * auto-load.c (auto_load_objfile_script_1): Convert drive part
822 of debugfile path on Windows.
823
d1076c41
JB
8242020-07-08 John Baldwin <jhb@FreeBSD.org>
825
826 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
827 argument to 'data'.
828
15f3b077
TT
8292020-07-08 Tom Tromey <tromey@adacore.com>
830
831 * ada-lang.c (ada_exception_message_1): Use read_memory.
832
9fc501fd
AB
8332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
834
835 PR python/22748
836 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
837 special handling for inline frames.
838 * findvar.c (value_of_register_lazy): Skip inline frames when
839 creating lazy register values.
840 * frame.c (frame_id_computed_p): Delete definition.
841 * frame.h (frame_id_computed_p): Delete declaration.
842
64cb3757
AB
8432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
844
845 * NEWS: Mention additions to Python API.
846 * python/py-arch.c (archpy_register_groups): New function.
847 (arch_object_methods): Add 'register_groups' method.
848 * python/py-registers.c (reggroup_iterator_object): New struct.
849 (reggroup_object): New struct.
850 (gdbpy_new_reggroup): New function.
851 (gdbpy_reggroup_to_string): New function.
852 (gdbpy_reggroup_name): New function.
853 (gdbpy_reggroup_iter): New function.
854 (gdbpy_reggroup_iter_next): New function.
855 (gdbpy_new_reggroup_iterator): New function
856 (gdbpy_initialize_registers): Register new types.
857 (reggroup_iterator_object_type): Define new Python type.
858 (gdbpy_reggroup_getset): New static global.
859 (reggroup_object_type): Define new Python type.
860 * python/python-internal.h
861
0f767f94
AB
8622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
863
864 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
865 * python/py-arch.c (archpy_registers): New function.
866 (arch_object_methods): Add 'registers' method.
867 * python/py-registers.c: New file.
868 * python/python-internal.h
869 (gdbpy_new_register_descriptor_iterator): Declare.
870 (gdbpy_initialize_registers): Declare.
871 * python/python.c (do_start_initialization): Call
872 gdbpy_initialize_registers.
873 * NEWS: Mention additions to the Python API.
874
87dbc774
AB
8752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
876
877 * NEWS: Mention new Python API method.
878 * python/py-unwind.c (pending_framepy_architecture): New function.
879 (pending_frame_object_methods): Add architecture method.
880
3bc98c0c
AB
8812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
882
883 * gdbarch.c: Regenerate.
884 * gdbarch.h: Regenerate.
885 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
886 (gdbarch_data): Use internal_error for the case where
887 deprecated_set_gdbarch_data was originally needed.
888 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
889 and use passed in obstack.
890 (libunwind_frame_set_descr): Should no longer get back NULL from
891 gdbarch_data.
892 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
893 type.
894 * user-regs.c (user_regs_init): Update parameters, and use passed
895 in obstack.
896 (user_reg_add): Should no longer get back NULL from gdbarch_data.
897 (_initialize_user_regs): Register as a pre-init gdbarch data type.
898
d8cc8af6
TV
8992020-07-06 Tom de Vries <tdevries@suse.de>
900
901 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
902 End-Of-Sequence in lte_is_less_than.
903 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
904 "gdb: Don't reorder line table entries too much when sorting".
905
947f7597
TV
9062020-07-06 Tom de Vries <tdevries@suse.de>
907
908 PR tui/26205
909 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
910
1e7c1b22
TV
9112020-07-05 Tom de Vries <tdevries@suse.de>
912
913 PR build/26187
914 * inferior.h (struct infcall_suspend_state_deleter): If available, use
915 std::uncaught_exceptions instead of deprecated
916 std::uncaught_exception.
917
a36158ec
SM
9182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
919
920 * macroexp.h (macro_stringify): Return
921 gdb::unique_xmalloc_ptr<char>.
922 * macroexp.c (macro_stringify): Likewise.
923 * macrotab.c (fixup_definition): Update.
924
14d960c8
SM
9252020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
926
927 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
928 (lex_one_token): Update.
929 * macroexp.c (struct macro_buffer) <release>: Return
930 gdb::unique_xmalloc_ptr<char>.
931 (macro_stringify): Update.
932 (macro_expand): Update.
933 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
934 * macroexp.h (macro_expand_next): Likewise.
935
211d5b1c
SM
9362020-07-02 Simon Marchi <simon.marchi@efficios.com>
937
938 * macroexp.h (macro_lookup_ftype): Remove.
939 (macro_expand, macro_expand_once, macro_expand_next): Remove
940 lookup function parameters, add scope parameter.
941 * macroexp.c (scan, substitute_args, expand, maybe_expand,
942 macro_expand, macro_expand_once, macro_expand_next): Likewise.
943 * macroscope.h (standard_macro_lookup): Change parameter type
944 to macro_scope.
945 * macroscope.c (standard_macro_lookup): Likewise.
946 * c-exp.y (lex_one_token): Update.
947 * macrocmd.c (macro_expand_command): Likewise.
948 (macro_expand_once_command): Likewise.
949
b1a35af2
SM
9502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
951
952 * inf-loop.c (inferior_event_handler): Remove client_data param.
953 * inf-loop.h (inferior_event_handler): Likewise.
954 * infcmd.c (step_1): Adjust.
955 * infrun.c (proceed): Adjust.
956 (fetch_inferior_event): Remove client_data param.
957 (infrun_async_inferior_event_handler): Adjust.
958 * infrun.h (fetch_inferior_event): Remove `void *` param.
959 * linux-nat.c (handle_target_event): Adjust.
960 * record-btrace.c (record_btrace_handle_async_inferior_event):
961 Adjust.
962 * record-full.c (record_full_async_inferior_event_handler):
963 Adjust.
964 * remote.c (remote_async_inferior_event_handler): Adjust.
965
1cdf9e33
TT
9662020-07-01 Tom Tromey <tom@tromey.com>
967
968 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
969 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
970
32c1e210
TT
9712020-07-01 Tom Tromey <tom@tromey.com>
972
973 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
974 tui_gen_win_info.
975 (tui_win_info::make_window): Merge with
976 tui_gen_win_info::make_window.
977 (tui_win_info::make_visible): Move from tui_gen_win_info.
978 * tui/tui-win.c (tui_win_info::max_width): Move from
979 tui_gen_win_info.
980 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
981 type.
982 <window_factory>: Likewise.
983 * tui/tui-layout.c (tui_win_info::resize): Move from
984 tui_gen_win_info.
985 (make_standard_window): Change return type.
986 (get_locator_window, tui_get_window_by_name): Likewise.
987 (tui_layout_window::apply): Remove a cast.
988 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
989 (struct tui_win_info): Merge with tui_gen_win_info.
990 (struct tui_gen_win_info): Remove.
991
a30cb6da
TT
9922020-07-01 Tom Tromey <tom@tromey.com>
993
994 * tui/tui-stack.h (struct tui_locator_window): Derive from
995 tui_win_info.
996 <do_scroll_horizontal, do_scroll_vertical>: New methods.
997 <can_box>: New method.
998
1eb2161f
TT
9992020-07-01 Tom Tromey <tom@tromey.com>
1000
1001 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1002
7134f2eb
TT
10032020-07-01 Tom Tromey <tom@tromey.com>
1004
1005 * tui/tui-regs.c (tui_data_window::display_registers_from)
1006 (tui_data_window::display_registers_from)
1007 (tui_data_window::first_data_item_displayed)
1008 (tui_data_window::delete_data_content_windows): Update.
1009 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1010 Remove.
1011 (tui_data_window::check_register_values): Update.
1012 (tui_data_item_window::rerender): Add parameters. Update.
1013 (tui_data_item_window::refresh_window): Remove.
1014 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1015 virtual.
1016 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1017 tui_gen_win_info.
1018 <refresh_window, max_height, min_height>: Remove.
1019 <rerender>: Add parameters.
1020 <x, y, visible>: New members.
1021 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1022 <m_item_width>: New member.
1023
22b7b041
TT
10242020-07-01 Tom Tromey <tom@tromey.com>
1025
1026 * tui/tui-regs.c (tui_data_window::show_register_group)
1027 (tui_data_window::check_register_values): Update.
1028 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1029 from item_no.
1030
c9753adb
TT
10312020-07-01 Tom Tromey <tom@tromey.com>
1032
1033 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1034 useless "if".
1035
9ab26b4a
TT
10362020-07-01 Tom Tromey <tom@tromey.com>
1037
1038 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1039 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1040
e555083f
TT
10412020-07-01 Tom Tromey <tom@tromey.com>
1042
1043 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1044 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1045 (struct tui_line_or_address): Move from tui-data.h.
1046 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1047 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1048 (tui_cmd_window, tui_source_window_base, tui_source_window)
1049 (tui_disasm_window): Don't declare.
1050 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1051 to tui-winsource.h.
1052 (SINGLE_KEY): Move to tui-stack.c.
1053
7a02bab7
TT
10542020-07-01 Tom Tromey <tom@tromey.com>
1055
1056 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1057 std::string.
1058 * tui/tui-regs.c (class tab_expansion_file): New.
1059 (tab_expansion_file::write): New method.
1060 (tui_register_format): Change return type. Use
1061 tab_expansion_file.
1062 (tui_get_register, tui_data_window::display_registers_from)
1063 (tui_data_item_window::rerender): Update.
1064 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1065 * tui/tui-io.c (tui_expand_tabs): Remove.
1066
ea68593b
TT
10672020-07-01 Tom Tromey <tom@tromey.com>
1068
1069 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1070
a8caed5d
FS
10712020-07-01 Fangrui Song <maskray@google.com>
1072
1073 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1074
9cdf9820
AKS
10752020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1076
1077 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1078 forms for DW_AT_associated and DW_AT_allocated attributes,
1079 which is already checked in function attr_to_dynamic_prop.
1080
a1520ad8
TT
10812020-06-30 Tom Tromey <tromey@adacore.com>
1082
1083 * dwarf2/read.c (quirk_rust_enum): Correctly call
1084 alloc_rust_variant for default-less enum.
1085
5ac58899
TT
10862020-06-30 Tom Tromey <tromey@adacore.com>
1087
1088 PR build/26183:
1089 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1090 gdb::to_string.
1091
19b187a9
SM
10922020-06-29 Simon Marchi <simon.marchi@efficios.com>
1093
1094 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1095 * gdbarch.h: Re-generate.
1096
cd4c4c07
TT
10972020-06-28 Tom Tromey <tom@tromey.com>
1098
1099 * command.h (cmd_types): Remove.
1100 (cmd_type): Don't declare.
1101 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1102 typedef.
1103 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1104 * cli/cli-decode.c (cmd_type): Remove.
1105
05779d57
PA
11062020-06-27 Pedro Alves <palves@redhat.com>
1107
1108 * fork-child.c (prefork_hook): Adjust.
1109 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1110 Delete.
1111 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1112 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1113 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1114 Remove declarations.
1115 (struct inferior) <set_tty, tty>: New methods.
1116 (struct inferior) <terminal>: Rename to ...
1117 (struct inferior) <m_terminal>: ... this and make private.
1118 * main.c (captured_main_1): Adjust.
1119 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1120 (mi_cmd_inferior_tty_show): Adjust.
1121 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1122 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1123
1776e3e5
NA
11242020-06-26 Nick Alcock <nick.alcock@oracle.com>
1125
1126 * configure.ac: Add --enable-libctf: handle --disable-static
1127 properly.
1128 * acinclude.m4: sinclude ../config/enable.m4.
1129 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1130 (LIBCTF): Substitute in.
1131 (CTF_DEPS): New, likewise.
1132 (CLIBS): libctf needs symbols from libbfd: move earlier.
1133 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1134 flags.
1135 * ctfread.c: Surround in ENABLE_LIBCTF.
1136 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1137 * configure: Regenerate.
1138 * config.in: Likewise.
1139
58373b80
SM
11402020-06-25 Simon Marchi <simon.marchi@efficios.com>
1141
1142 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1143
277474ee
SM
11442020-06-25 Simon Marchi <simon.marchi@efficios.com>
1145
1146 * inferior.h (struct inferior) <terminal>: Change type to
1147 gdb::unique_xmalloc_ptr<char>.
1148 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1149 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1150 field, adjust to unique pointer.
1151 (get_inferior_io_terminal): Adjust to unique pointer.
1152
6d74da72
AB
11532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1156 registers, not just the known core set of registers.
1157
2e52d038
AB
11582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1161 fflags, frm, and fcsr registers.
1162 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1163 restore groups.
1164 (riscv_tdesc_unknown_reg): New function.
1165 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1166 tdesc_use_registers.
1167 * riscv-tdep.h (struct gdbarch_tdep): Add
1168 unknown_csrs_first_regnum, unknown_csrs_count,
1169 duplicate_fflags_regnum, duplicate_frm_regnum, and
1170 duplicate_fcsr_regnum fields.
1171
be64fd07
AB
11722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1175 callback, use the callback (when not null) to help number unknown
1176 registers.
1177 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1178 (tdesc_use_registers): Add extra parameter to declaration.
1179
3b9fce96
AB
11802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1183 in the file.
1184 (class riscv_pending_register_alias): Likewise.
1185 (riscv_register_feature::register_info): Change 'required_p' field
1186 to 'required', and change its type. Add 'check' member function.
1187 (riscv_register_feature::register_info::check): Define new member
1188 function.
1189 (riscv_xreg_feature): Change initialisation of 'required' field.
1190 (riscv_freg_feature): Likewise.
1191 (riscv_virtual_feature): Likewise.
1192 (riscv_csr_feature): Likewise.
1193 (riscv_check_tdesc_feature): Take extra parameter, the csr
1194 tdesc_feature, rewrite the function to use the new
1195 riscv_register_feature::register_info::check function.
1196 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1197
865bad26
AB
11982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1199
1200 * features/Makefile: Remove all references to the deleted files
1201 below.
1202 * features/riscv/32bit-csr.c: Deleted.
1203 * features/riscv/32bit-csr.xml: Deleted.
1204 * features/riscv/64bit-csr.c: Deleted.
1205 * features/riscv/64bit-csr.xml: Deleted.
1206 * features/riscv/rebuild-csr-xml.sh: Deleted.
1207
ed69cbc8
AB
12082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1211 whitespace error for declaration of names member variable.
1212 (struct riscv_register_feature): Add new prefer_first_name member
1213 variable, and fix whitespace error in declaration of registers.
1214 (riscv_xreg_feature): Initialize prefer_first_name field.
1215 (riscv_freg_feature): Likewise.
1216 (riscv_virtual_feature): Likewise.
1217 (riscv_csr_feature): Likewise.
1218 (riscv_register_name): Expand on comments. Remove register name
1219 modifications for CSR and virtual registers.
1220
4445e8f5
AB
12212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1224 errors.
1225
767a879e
AB
12262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1229 riscv-opc.h.
1230 (class riscv_pending_register_alias): New class.
1231 (riscv_check_tdesc_feature): Take vector of pending aliases and
1232 populate it as appropriate.
1233 (riscv_setup_register_aliases): Delete.
1234 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1235 to riscv_check_tdesc_feature in all cases. Use the vector to
1236 create the register aliases.
1237
bb6e55f3
RO
12382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1239
1240 * sol2-tdep.c (sol2_static_transform_name): Remove.
1241 (sol2_init_abi): Don't register it.
1242 * gdbarch.sh (static_transform_name): Remove.
1243 * gdbarch.c, gdbarch.h: Regenerate.
1244
1245 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1246 gdbarch_static_transform_name.
1247 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1248 * stabsread.c (define_symbol) <'X'>: Remove.
1249 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1250 handling.
1251 <'V'>: Likewise.
1252 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1253 <'S'>: Remove call to gdbarch_static_transform_name.
1254
c6d36836
RO
12552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1256
1257 * procfs.c (procfs_pre_trace): New function.
1258 (procfs_target::create_inferior): Pass it to fork_inferior.
1259
a7e6196b
RO
12602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1261
1262 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1263 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1264 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1265 sol2-tdep.o, sparc-sol2-tdep.o.
1266 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1267 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1268 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1269 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1270
d412e696
RO
12712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1272
1273 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1274 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1275 Call sol2_init_abi.
1276 Remove calls to set_gdbarch_skip_solib_resolver,
1277 set_gdbarch_core_pid_to_str.
1278 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1279 (i386_sol2_static_transform_name): Remove.
1280 (i386_sol2_init_abi): Call sol2_init_abi.
1281 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1282 set_gdbarch_static_transform_name,
1283 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1284 Use sol2_sigtramp_p.
1285 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1286 (sol2_sigtramp_p): New function.
1287 (sol2_static_transform_name): New function.
1288 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1289 (sol2_init_abi): New function.
1290 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1291 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1292 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1293 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1294 (sparc_sol2_static_transform_name): Remove.
1295 (sparc32_sol2_init_abi): Call sol2_init_abi.
1296 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1297 set_gdbarch_static_transform_name,
1298 set_gdbarch_skip_solib_resolver,
1299 set_gdbarch_core_pid_to_str.
1300 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1301 (sparc_sol2_static_transform_name): Remove
1302 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1303 call sol2_sigtramp_p.
1304 (sparc64_sol2_init_abi): Call sol2_init_abi.
1305 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1306 set_gdbarch_static_transform_name,
1307 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1308
a8654e7d
PW
13092020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1310
1311 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1312 * exec.c (validate_exec_file): If from_tty, set both
1313 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1314 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1315 and from_tty, unconditionally ask a confirmation.
1316
caa7fd04
AB
13172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * target-descriptions.c (tdesc_architecture_name): Protect against
1320 NULL pointer dereference.
1321 (maint_print_xml_tdesc_cmd): New function.
1322 (_initialize_target_descriptions): Register new 'maint print
1323 xml-tdesc' command and give it the filename completer.
1324 * NEWS: Mention new 'maint print xml-tdesc' command.
1325
fbf42f4e
AB
13262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1327
1328 * target-descriptions.c (class tdesc_compatible_info): New class.
1329 (struct target_desc): Change type of compatible vector.
1330 (tdesc_compatible_p): Update for change in type of
1331 target_desc::compatible.
1332 (tdesc_compatible_info_list): New function.
1333 (tdesc_compatible_info_arch_name): New function.
1334 (tdesc_add_compatible): Update for change in type of
1335 target_desc::compatible.
1336 (print_c_tdesc::visit_pre): Likewise.
1337
20821f4e
AB
13382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1341 whitespace to underscore.
1342 (maint_print_c_tdesc_cmd): Use fake filename for target
1343 descriptions that came from the target.
1344 (_initialize_target_descriptions): Add filename command completion
1345 for 'maint print c-tdesc'.
1346
1fb5ee62
SM
13472020-06-23 Simon Marchi <simon.marchi@efficios.com>
1348
1349 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1350 lines.
1351
fc3ecb3e
SM
13522020-06-23 Simon Marchi <simon.marchi@efficios.com>
1353
1354 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1355 lines.
1356 (dwarf2_find_location_expression): Likewise.
1357 (call_site_parameter_matches): Likewise.
1358 (dwarf2_compile_expr_to_ax): Likewise.
1359 (disassemble_dwarf_expression): Likewise.
1360 (loclist_describe_location): Likewise.
1361
236ef034
PA
13622020-06-23 Pedro Alves <palves@redhat.com>
1363
1364 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1365 progspace-and-thread.h. Include scoped-mock-context.h instead.
1366 (register_to_value_test): Use scoped_mock_context.
1367 * regcache.c: Include "scoped-mock-context.h".
1368 (cooked_read_test): Don't error out if a target is already pushed.
1369 Use scoped_mock_context. Adjust.
1370 * scoped-mock-context.h: New file.
1371
39e7ecca
AB
13722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1373
1374 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1375 initializer.
1376 (ada_language::is_string_type_p): New member function.
1377 * c-lang.c (c_language_data): Delete la_is_string_type_p
1378 initializer.
1379 (cplus_language_data): Likewise.
1380 (asm_language_data): Likewise.
1381 (minimal_language_data): Likewise.
1382 * d-lang.c (d_language_data): Likewise.
1383 * f-lang.c (f_is_string_type_p): Delete function, implementation
1384 moved to f_language::is_string_type_p.
1385 (f_language_data): Delete la_is_string_type_p initializer.
1386 (f_language::is_string_type_p): New member function,
1387 implementation from f_is_string_type_p.
1388 * go-lang.c (go_is_string_type_p): Delete function, implementation
1389 moved to go_language::is_string_type_p.
1390 (go_language_data): Delete la_is_string_type_p initializer.
1391 (go_language::is_string_type_p): New member function,
1392 implementation from go_is_string_type_p.
1393 * language.c (language_defn::is_string_type_p): Define new member
1394 function.
1395 (default_is_string_type_p): Make static, add comment copied from
1396 header file.
1397 (unknown_language_data): Delete la_is_string_type_p initializer.
1398 (unknown_language::is_string_type_p): New member function.
1399 (auto_language_data): Delete la_is_string_type_p initializer.
1400 (auto_language::is_string_type_p): New member function.
1401 * language.h (language_data): Delete la_is_string_type_p field.
1402 (language_defn::is_string_type_p): Declare new function.
1403 (default_is_string_type_p): Delete desclaration, move comment to
1404 definition.
1405 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1406 moved to m2_language::is_string_type_p.
1407 (m2_language_data): Delete la_is_string_type_p initializer.
1408 (m2_language::is_string_type_p): New member function,
1409 implementation from m2_is_string_type_p.
1410 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1411 initializer.
1412 * opencl-lang.c (opencl_language_data): Likewise.
1413 * p-lang.c (pascal_is_string_type_p): Delete function,
1414 implementation moved to pascal_language::is_string_type_p.
1415 (pascal_language_data): Delete la_is_string_type_p initializer.
1416 (pascal_language::is_string_type_p): New member function,
1417 implementation from pascal_is_string_type_p.
1418 * rust-lang.c (rust_is_string_type_p): Delete function,
1419 implementation moved to rust_language::is_string_type_p.
1420 (rust_language_data): Delete la_is_string_type_p initializer.
1421 (rust_language::is_string_type_p): New member function,
1422 implementation from rust_is_string_type_p.
1423 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1424 is_string_type_p.
1425
4ffc13fb
AB
14262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * ada-lang.c (ada_language_data): Delete la_print_typedef
1429 initializer.
1430 (ada_language::print_typedef): New member function.
1431 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1432 (cplus_language_data): Likewise.
1433 (asm_language_data): Likewise.
1434 (minimal_language_data): Likewise.
1435 * d-lang.c (d_language_data): Likewise.
1436 * f-lang.c (f_language_data): Likewise.
1437 (f_language::print_typedef): New member function.
1438 * go-lang.c (go_language_data): Delete la_print_typedef
1439 initializer.
1440 * language.c (language_defn::print_typedef): Define member
1441 function.
1442 (unknown_language_data): Delete la_print_typedef initializer.
1443 (unknown_language::print_typedef): New member function.
1444 (auto_language_data): Delete la_print_typedef initializer.
1445 (auto_language::print_typedef): New member function.
1446 * language.h (language_data): Delete la_print_typedef field.
1447 (language_defn::print_typedef): Declare new member function.
1448 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1449 (default_print_typedef): Delete declaration.
1450 * m2-lang.c (m2_language_data): Delete la_print_typedef
1451 initializer.
1452 (m2_language::print_typedef): New member function.
1453 * objc-lang.c (objc_language_data): Delete la_print_typedef
1454 initializer.
1455 * opencl-lang.c (opencl_language_data): Likewise.
1456 * p-lang.c (pascal_language_data): Likewise.
1457 (pascal_language::print_typedef): New member function.
1458 * rust-lang.c (rust_print_typedef): Delete function,
1459 implementation moved to rust_language::print_typedef.
1460 (rust_language): Delete la_print_typedef initializer.
1461 (rust_language::print_typedef): New member function,
1462 implementation from rust_print_typedef.
1463 * typeprint.c (default_print_typedef): Delete.
1464
d711ee67
AB
14652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1468 (ada_language::printstr): New member function.
1469 * c-lang.c (c_language_data): Delete la_printstr initializer.
1470 (cplus_language_data): Likewise.
1471 (asm_language_data): Likewise.
1472 (minimal_language_data): Likewise.
1473 * d-lang.c (d_language_data): Likewise.
1474 * f-lang.c (f_printstr): Rename to f_language::printstr.
1475 (f_language_data): Delete la_printstr initializer.
1476 (f_language::printstr): New member function, implementation from
1477 f_printstr.
1478 * go-lang.c (go_language_data): Delete la_printstr initializer.
1479 * language.c (language_defn::printstr): Define new member
1480 function.
1481 (unk_lang_printstr): Delete.
1482 (unknown_language_data): Delete la_printstr initializer.
1483 (unknown_language::printstr): New member function.
1484 (auto_language_data): Delete la_printstr initializer.
1485 (auto_language::printstr): New member function.
1486 * language.h (language_data): Delete la_printstr field.
1487 (language_defn::printstr): Declare new member function.
1488 (LA_PRINT_STRING): Update call to printstr.
1489 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1490 (m2_language_data): Delete la_printstr initializer.
1491 (m2_language::printstr): New member function, implementation from
1492 m2_printstr.
1493 * objc-lang.c (objc_language_data): Delete la_printstr
1494 initializer.
1495 * opencl-lang.c (opencl_language_data): Likewise.
1496 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1497 (pascal_language_data): Delete la_printstr initializer.
1498 (pascal_language::printstr): New member function, implementation
1499 from pascal_printstr.
1500 * p-lang.h (pascal_printstr): Delete declaration.
1501 * rust-lang.c (rust_printstr): Update header comment.
1502 (rust_language_data): Delete la_printstr initializer.
1503 (rust_language::printstr): New member function.
1504
52b50f2c
AB
15052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1506
1507 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1508 (ada_language::printchar): New member function.
1509 * c-lang.c (c_language_data): Delete la_printchar initializer.
1510 (cplus_language_data): Likewise.
1511 (asm_language_data): Likewise.
1512 (minimal_language_data): Likewise.
1513 * d-lang.c (d_language_data): Likewise.
1514 * f-lang.c (f_printchar): Rename to f_language::printchar.
1515 (f_language_data): Delete la_printchar initializer.
1516 (f_language::printchar): New member function, implementation from
1517 f_printchar.
1518 * go-lang.c (go_language_data): Delete la_printchar initializer.
1519 * language.c (unk_lang_printchar): Delete.
1520 (language_defn::printchar): Define new member function.
1521 (unknown_language_data): Delete la_printchar initializer.
1522 (unknown_language::printchar): New member function.
1523 (auto_language_data): Delete la_printchar initializer.
1524 (auto_language::printchar): New member function.
1525 * language.h (language_data): Delete la_printchar field.
1526 (language_defn::printchar): Declare new member function.
1527 (LA_PRINT_CHAR): Update call to printchar.
1528 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1529 (m2_language::printchar): New member function.
1530 * objc-lang.c (objc_language_data): Delete la_printchar
1531 initializer.
1532 * opencl-lang.c (opencl_language_data): Likewise.
1533 * p-lang.c (pascal_language_data): Delete la_printchar
1534 initializer.
1535 (pascal_language::printchar): New member function.
1536 * rust-lang.c (rust_printchar): Rename to
1537 rust_language::printchar.
1538 (rust_language_data): Delete la_printchar initializer.
1539 (rust_language::printchar): New member function, implementation
1540 from rust_printchar.
1541
ec8cec5b
AB
15422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1543
1544 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1545 (ada_language_data): Delete la_emitchar initializer.
1546 (ada_language::emitchar): New member function, implementation from
1547 emit_char.
1548 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1549 (cplus_language_data): Likewise.
1550 (asm_language_data): Likewise.
1551 (minimal_language_data): Likewise.
1552 * d-lang.c (d_language_data): Likewise.
1553 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1554 (f_language_data): Delete la_emitchar initializer.
1555 (f_language::emitchar): New member function, implementation from
1556 f_emit_char.
1557 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1558 * language.c (unk_lang_emit_char): Delete.
1559 (language_defn::emitchar): New member function definition.
1560 (unknown_language_data): Delete la_emitchar initializer.
1561 (unknown_language::emitchar): New member function.
1562 (auto_language_data): Delete la_emitchar initializer.
1563 (auto_language::emitchar): New member function.
1564 * language.h (language_data): Delete la_emitchar field.
1565 (language_defn::emitchar): New member field declaration.
1566 (LA_EMIT_CHAR): Update call to emitchar.
1567 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1568 (m2_language_data): Delete la_emitchar initializer.
1569 (m2_language::emitchar): New member function, implementation from
1570 m2_emit_char.
1571 * objc-lang.c (objc_language_data): Delete la_emitchar
1572 initializer.
1573 * opencl-lang.c (opencl_language_data): Likewise.
1574 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1575 (pascal_language_data): Delete la_emitchar initializer.
1576 (pascal_language::emitchar): New member function, implementation
1577 from pascal_emit_char.
1578 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1579 (rust_language_data): Delete la_emitchar initializer.
1580 (rust_language::emitchar): New member function, implementation
1581 from rust_emitchar.
1582
1bf9c363
AB
15832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1584
1585 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1586 (ada_language_data): Delete la_post_parser initializer.
1587 (ada_language::post_parser): New member function.
1588 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1589 (cplus_language_data): Likewise.
1590 (asm_language_data): Likewise.
1591 (minimal_language_data): Likewise.
1592 * d-lang.c (d_language_data): Likewise.
1593 * f-lang.c (f_language_data): Likewise.
1594 * go-lang.c (go_language_data): Likewise.
1595 * language.c (unknown_language_data): Likewise.
1596 (auto_language_data): Likewise.
1597 * language.h (language_data): Delete la_post_parser field.
1598 (language_defn::post_parser): New member function.
1599 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1600 * objc-lang.c (objc_language_data): Likewise.
1601 * opencl-lang.c (opencl_language_data): Likewise.
1602 * p-lang.c (pascal_language_data): Likewise.
1603 * parse.c (parse_exp_in_context): Update call to post_parser.
1604 (null_post_parser): Delete definition.
1605 * parser-defs.h (null_post_parser): Delete declaration.
1606 * rust-lang.c (rust_language_data): Delete la_post_parser
1607 initializer.
1608
87afa652
AB
16092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1610
1611 * ada-lang.c (parse): Rename to ada_language::parser.
1612 (ada_language_data): Delete la_parser initializer.
1613 (ada_language::parser): New member function, implementation from
1614 parse.
1615 * c-lang.c (c_language_data): Delete la_parser initializer.
1616 (cplus_language_data): Likewise.
1617 (asm_language_data): Likewise.
1618 (minimal_language_data): Likewise.
1619 * d-lang.c (d_language_data): Likewise.
1620 (d_language::parser): New member function.
1621 * f-lang.c (f_language_data): Delete la_parser initializer.
1622 (f_language::parser): New member function.
1623 * go-lang.c (go_language_data): Delete la_parser initializer.
1624 (go_language::parser): New member function.
1625 * language.c (unk_lang_parser): Delete.
1626 (language_defn::parser): Define new member function.
1627 (unknown_language_data): Delete la_parser initializer.
1628 (unknown_language::parser): New member function.
1629 (auto_language_data): Delete la_parser initializer.
1630 (auto_language::parser): New member function.
1631 * language.h (language_data): Delete la_parser field.
1632 (language_defn::parser): Declare new member function.
1633 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1634 (m2_language::parser): New member function.
1635 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1636 * opencl-lang.c (opencl_language_data): Likewise.
1637 * p-lang.c (pascal_language_data): Likewise.
1638 (pascal_language::parser): New member function.
1639 * parse.c (parse_exp_in_context): Update call to parser.
1640 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1641 (rust_language::parser): New member function.
1642
37825800
AB
16432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * top.c (print_gdb_configuration): Print --with-python-libdir
1646 configuration value.
1647
5b860c93
PW
16482020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1649
1650 * NEWS: Mention change to the alias command.
1651
cf00cd6f
PW
16522020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1653
1654 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1655 (alias_command_completer)
1656 (make_alias_options_def_group): New functions.
1657 (alias_opts, alias_option_defs): New struct and array.
1658 (alias_usage_error): Update usage.
1659 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1660 Use option framework.
1661 (_initialize_cli_cmds): Update alias command help.
1662 Update aliases command help.
1663 (show_user):
1664 Add NULL for new default_args lookup_cmd argument.
1665 (valid_command_p): Rename to validate_aliased_command.
1666 Add NULL for new default_args lookup_cmd argument. Verify that the
1667 aliased_command has no default args.
1668 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1669 (lookup_cmd_1, lookup_cmd): New argument default_args.
1670 (add_alias_cmd):
1671 Add NULL for new default_args lookup_cmd argument.
1672 (print_help_for_command): Show default args under the layout
1673 alias some_alias = some_aliased_cmd some_alias_default_arg.
1674 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1675 xfree default_args in destructor.
1676 * cli/cli-script.c (process_next_line, do_define_command):
1677 Add NULL for new default_args lookup_cmd argument.
1678 * command.h: Declare new default_args argument in lookup_cmd
1679 and lookup_cmd_1.
1680 * completer.c (complete_line_internal_1):
1681 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1682 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1683 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1684 Likewise.
1685 * infcmd.c (_initialize_infcmd): Likewise.
1686 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1687 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1688 * python/py-param.c (add_setshow_generic): Likewise.
1689 * remote.c (_initialize_remote): Likewise.
1690 * top.c (execute_command): Prepend default_args if command has some.
1691 (set_verbose):
1692 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1693 * tracepoint.c (validate_actionline, encode_actions_1):
1694 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1695
bd920864
TBA
16962020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1697
1698 * jit.c (jit_read_descriptor): Use bool as the return type.
1699 (jit_breakpoint_re_set_internal): Use bool as the return type.
1700 Invert the return value logic; return true if the jit breakpoint
1701 has been successfully initialized.
1702 (jit_inferior_init): Update the call to
1703 jit_breakpoint_re_set_internal.
1704
f8098322
PA
17052020-06-22 Pedro Alves <palves@redhat.com>
1706
1707 PR gdb/25939
1708 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1709 Use the current inferior instead. Don't return
1710 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1711 wait again.
1712 * sol-thread.c (sol_thread_target::wait): Don't reference
1713 inferior_ptid.
1714 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1715 (sol_update_thread_list_callback): Use the current inferior's pid
1716 instead of inferior_ptid.
1717
196535a6
RO
17182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1719
1720 * procfs.c: Cleanup many comments.
1721
1722 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1723 (AFTER_WATCHFLAG): Replace by value.
1724
1725 (MAIN_PROC_NAME_FORMAT): Inline ...
1726 (create_procinfo): ... here.
1727
1728 (procfs_debug_inferior): Remove SYS_exec handling.
1729 (syscall_is_exec): Likewise.
1730 (procfs_set_exec_trap): Likewise.
1731
1732 (syscall_is_lwp_exit): Inline in callers.
1733 (syscall_is_exit): Likewise.
1734 (syscall_is_exec): Likewise.
1735 (syscall_is_lwp_create): Likewise.
1736
1737 (invalidate_cache): Remove #if 0 code.
1738
1739 (make_signal_thread_runnable): Remove.
1740 (procfs_target::resume): Remove #if 0 code.
1741
cf6f3e86
RO
17422020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1743
1744 PR gdb/25939
1745 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1746 call ...
1747 (procfs_target::create_inferior): ... here.
1748
48e9cc84
PW
17492020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1750
1751 * exec.c (validate_exec_file): Ensure the build-id is up to
1752 date by calling reopen_exec_file (that checks file timestamp
1753 to decide to re-read the file).
1754
3922b302
PA
17552020-06-18 Pedro Alves <palves@redhat.com>
1756
1757 PR gdb/25412
1758 * gdbthread.h (delete_thread, delete_thread_silent)
1759 (find_thread_ptid): Update comments.
1760 * thread.c (current_thread_): New global.
1761 (is_current_thread): Move higher, and reimplement.
1762 (inferior_thread): Reimplement.
1763 (set_thread_exited): Use bool. Add assertions.
1764 (add_thread_silent): Simplify thread-reuse handling by always
1765 calling delete_thread.
1766 (delete_thread): Remove intro comment.
1767 (find_thread_ptid): Skip exited threads.
1768 (switch_to_thread_no_regs): Write to current_thread_.
1769 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1770 INFERIOR_PTID. Clear current_thread_.
1771
6dbdab44
PA
17722020-06-18 Pedro Alves <palves@redhat.com>
1773
1774 * aix-thread.c (pd_update): Use switch_to_thread.
1775
2da4b788
PA
17762020-06-18 Pedro Alves <palves@redhat.com>
1777
1778 * ravenscar-thread.c (ravenscar_thread_target): Update.
1779 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1780 (ravenscar_thread_target::add_active_thread): ... this. Don't
1781 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1782 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1783
50838d1b
PA
17842020-06-18 Pedro Alves <palves@redhat.com>
1785
1786 * nat/windows-nat.c (current_windows_thread): Remove.
1787 * nat/windows-nat.h (current_windows_thread): Remove.
1788 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1789 Adjust.
1790 (display_selectors): Adjust to fetch the current
1791 windows_thread_info based on inferior_ptid.
1792 (fake_create_process): No longer write to current_windows_thread.
1793 (windows_nat_target::get_windows_debug_event):
1794 Don't set inferior_ptid or current_windows_thread.
1795 (windows_nat_target::wait): Adjust to not rely on
1796 current_windows_thread.
1797 (do_initial_windows_stuff): Now a method of windows_nat_target.
1798 Switch to the last_ptid thread.
1799 (windows_nat_target::attach): Adjust.
1800 (windows_nat_target::detach): Use switch_to_no_thread instead of
1801 writing to inferior_ptid directly.
1802 (windows_nat_target::create_inferior): Adjust.
1803
31ce04e9
PA
18042020-06-18 Pedro Alves <palves@redhat.com>
1805
1806 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1807
1ee1a363
PA
18082020-06-18 Pedro Alves <palves@redhat.com>
1809
1810 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1811 after creating it, instead of writing to inferior_ptid. Don't
1812 write to inferior_ptid.
1813
6d350754
PA
18142020-06-18 Pedro Alves <palves@redhat.com>
1815
1816 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1817
5d971d48
PA
18182020-06-18 Pedro Alves <palves@redhat.com>
1819
1820 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1821 it, instead of writing to inferior_ptid.
1822
86e57d1b
PA
18232020-06-18 Pedro Alves <palves@redhat.com>
1824
1825 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1826 to inferior_ptid.
1827
f2e1c129
PA
18282020-06-18 Pedro Alves <palves@redhat.com>
1829
1830 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1831 instead of writing to inferior_ptid directly.
1832
60db1b85
PA
18332020-06-18 Pedro Alves <palves@redhat.com>
1834
1835 * corelow.c (core_target::close): Use switch_to_no_thread instead
1836 of writing to inferior_ptid directly.
1837 (add_to_thread_list, core_target_open): Use switch_to_thread
1838 instead of writing to inferior_ptid directly.
1839
fe7d6a8d
PA
18402020-06-18 Pedro Alves <palves@redhat.com>
1841
1842 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1843 inferior_ptid.
1844 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1845 inferior_ptid.
1846 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1847 inferior_ptid directly.
1848 (darwin_nat_target::init_thread_list): Switch to thread, instead
1849 of writing to inferior_ptid.
1850 (darwin_nat_target::attach): Don't write to inferior_ptid.
1851 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1852
975f8708
PA
18532020-06-18 Pedro Alves <palves@redhat.com>
1854
1855 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1856 thread.
1857 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1858 Instead use switch_to_thread.
1859 (gnu_nat_target::detach): Use switch_to_no_thread
1860 instead of writing to inferior_ptid directly. Used passed-in
1861 inferior instead of looking up the inferior by pid.
1862
1a204730
PA
18632020-06-18 Pedro Alves <palves@redhat.com>
1864
1865 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1866 inferior_ptid.
1867
ebe84f23
PA
18682020-06-18 Pedro Alves <palves@redhat.com>
1869
1870 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1871 inferior_ptid.
1872 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1873 thread.
1874 (nto_procfs_target::detach): Avoid referencing
1875 inferior_ptid. Use switch_to_no_thread instead of writing to
1876 inferior_ptid directly.
1877 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1878 instead of writing to inferior_ptid directly.
1879 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1880 to thread.
1881
191f02e5
PA
18822020-06-18 Pedro Alves <palves@redhat.com>
1883
1884 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1885 after creating it, instead of writing to inferior_ptid.
1886 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1887 to inferior_ptid directly.
1888 (gdbsim_target::wait): Don't write to inferior_ptid.
1889
0ac55310
PA
18902020-06-18 Pedro Alves <palves@redhat.com>
1891
1892 * remote.c (remote_target::remote_notice_new_inferior): Use
1893 switch_to_thread instead of writing to inferior_ptid directly.
1894 (remote_target::add_current_inferior_and_thread): Use
1895 switch_to_no_thread instead of writing to inferior_ptid directly.
1896 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1897 and switch_to_thread instead of using set_current_inferior or
1898 writing to inferior_ptid directly.
1899
5233f39b
PA
19002020-06-18 Pedro Alves <palves@redhat.com>
1901
1902 * tracectf.c (ctf_target_open): Switch to added thread instead of
1903 writing to inferior_ptid directly.
1904 (ctf_target::close): Use switch_to_no_thread instead of writing to
1905 inferior_ptid directly.
1906
087e161b
PA
19072020-06-18 Pedro Alves <palves@redhat.com>
1908
1909 * tracefile-tfile.c (tfile_target_open): Don't write to
1910 inferior_ptid directly, instead switch to added thread.
1911 (tfile_target::close): Use switch_to_no_thread instead of writing
1912 to inferior_ptid directly.
1913
7fb43e53
PA
19142020-06-18 Pedro Alves <palves@redhat.com>
1915
1916 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1917 (procfs_target::detach): Use switch_to_no_thread
1918 instead of writing to inferior_ptid directly.
1919 (do_attach): Change return type to void. Switch to the added
1920 thread.
1921 (procfs_target::create_inferior): Switch to the added thread.
1922 (procfs_do_thread_registers): Don't write to inferior_ptid.
1923
18493a00
PA
19242020-06-18 Pedro Alves <palves@redhat.com>
1925
1926 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1927 of writing to inferior_ptid.
1928 (scoped_restore_exited_inferior): Delete.
1929 (handle_vfork_child_exec_or_exit): Simplify using
1930 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1931 instead of writing to inferior_ptid.
1932 (THREAD_STOPPED_BY): Delete.
1933 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1934 (thread_stopped_by_hw_breakpoint): Delete.
1935 (save_waitstatus): Use
1936 scoped_restore_current_thread+switch_to_thread, and call
1937 target_stopped_by_watchpoint instead of
1938 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1939 instead of thread_stopped_by_sw_breakpoint, and
1940 target_stopped_by_hw_breakpoint instead of
1941 thread_stopped_by_hw_breakpoint.
1942 (handle_inferior_event)
1943 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1944 inferior_ptid directly, nor
1945 set_current_inferior/set_current_program_space. Use
1946 switch_to_thread / switch_to_inferior_no_thread instead.
1947
a0776b13
PA
19482020-06-18 Pedro Alves <palves@redhat.com>
1949
1950 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1951 instead of writing to inferior_ptid.
1952
6155c136
PA
19532020-06-18 Pedro Alves <palves@redhat.com>
1954
1955 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1956 added thread.
1957 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1958 to the added thread.
1959 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1960 instead of writing to inferior_ptid.
1961
c5316fc6
PA
19622020-06-18 Pedro Alves <palves@redhat.com>
1963
1964 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1965 (register_to_value_test): Mock a program_space too. Heap-allocate
1966 the address space. Don't write to inferior_ptid. Use
1967 switch_to_thread instead.
1968
8df01799
PA
19692020-06-18 Pedro Alves <palves@redhat.com>
1970
1971 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1972 Delete.
1973 (find_signalled_thread()): New, factored out from
1974 linux_make_corefile_notes and adjusted to handle exited threads.
1975 (linux_make_corefile_notes): Adjust to use the new
1976 find_signalled_thread.
1977
41792d68
PA
19782020-06-18 Pedro Alves <palves@redhat.com>
1979
1980 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1981 of saving/restoring inferior_ptid.
1982
612f258a
TT
19832020-06-17 Tom Tromey <tom@tromey.com>
1984
1985 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1986 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1987 declare.
1988 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1989
efb763a5
SM
19902020-06-15 Simon Marchi <simon.marchi@efficios.com>
1991
1992 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1993 of partial symtabs.
1994
2951f6c0
SM
19952020-06-17 Simon Marchi <simon.marchi@efficios.com>
1996
1997 * regformats/reg-arm.dat: Remove.
1998 * regformats/reg-bfin.dat: Remove.
1999 * regformats/reg-cris.dat: Remove.
2000 * regformats/reg-crisv32.dat: Remove.
2001 * regformats/reg-m32r.dat: Remove.
2002 * regformats/reg-tilegx.dat: Remove.
2003 * regformats/reg-tilegx32.dat: Remove.
2004
7d458ea5
SM
20052020-06-17 Simon Marchi <simon.marchi@efficios.com>
2006
2007 * features/Makefile (WHICH): Remove arm files.
2008 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2009 * regformats/arm/arm-with-neon.dat: Remove.
2010 * regformats/arm/arm-with-vfpv2.dat: Remove.
2011 * regformats/arm/arm-with-vfpv3.dat: Remove.
2012
3af96c0d
SM
20132020-06-17 Simon Marchi <simon.marchi@efficios.com>
2014
2015 * features/Makefile (XMLTOC): Remove rx.xml.
2016
b25e22fd
PA
20172020-06-17 Pedro Alves <palves@redhat.com>
2018
2019 * gdbthread.h (thread_control_state) <trap_expected> Update
2020 comments.
2021
a78a19b1
AB
20222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2023
2024 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2025 ada_language::lookup_symbol_nonlocal.
2026 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2027 (ada_language::lookup_symbol_nonlocal): New member function,
2028 implementation from ada_lookup_symbol_nonlocal.
2029 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2030 initializer.
2031 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2032 initializer.
2033 (cplus_language::lookup_symbol_nonlocal): New member function.
2034 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2035 (minimal_language_data) Likewise.
2036 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2037 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2038 initializer.
2039 (d_language::lookup_symbol_nonlocal): New member function.
2040 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2041 initializer.
2042 (f_language::lookup_symbol_nonlocal): New member function.
2043 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2044 initializer.
2045 * language.c (unknown_language_data): Likewise.
2046 (auto_language_data): Likewise.
2047 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2048 field.
2049 (language_defn::lookup_symbol_nonlocal): New member function.
2050 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2051 initializer.
2052 * objc-lang.c (objc_language_data): Likewise.
2053 * opencl-lang.c (opencl_language_data): Likewise.
2054 * p-lang.c (pascal_language_data): Likewise.
2055 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2056 rust_language::lookup_symbol_nonlocal.
2057 (rust_language_data): Delete la_lookup_symbol_nonlocal
2058 initializer.
2059 (rust_language::lookup_symbol_nonlocal): New member function,
2060 implementation from rust_lookup_symbol_nonlocal.
2061 * symtab.c (lookup_symbol_aux): Update call to
2062 lookup_symbol_nonlocal.
2063 (basic_lookup_symbol_nonlocal): Rename to...
2064 (language_defn::lookup_symbol_nonlocal): ...this, and update
2065 header comment. Remove language_defn parameter, and replace with
2066 uses of `this'.
2067 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2068
ebe2334e
AB
20692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2072 initializer.
2073 (ada_language::value_print_inner): New member function.
2074 * c-lang.c (c_language_data): Delete la_value_print_inner
2075 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 (d_language::value_print_inner): New member function.
2081 * f-lang.c (f_language_data): Delete la_value_print_inner
2082 initializer.
2083 (f_language::value_print_inner): New member function.
2084 * f-lang.h (f_value_print_innner): Rename to...
2085 (f_value_print_inner): ...this (note spelling of 'inner').
2086 * f-valprint.c (f_value_print_innner): Rename to...
2087 (f_value_print_inner): ...this (note spelling of 'inner').
2088 * go-lang.c (go_language_data): Delete la_value_print_inner
2089 initializer.
2090 (go_language::value_print_inner): New member function.
2091 * language.c (language_defn::value_print_inner): Define new member
2092 function.
2093 (unk_lang_value_print_inner): Delete.
2094 (unknown_language_data): Delete la_value_print_inner initializer.
2095 (unknown_language::value_print_inner): New member function.
2096 (auto_language_data): Delete la_value_print_inner initializer.
2097 (auto_language::value_print_inner): New member function.
2098 * language.h (language_data): Delete la_value_print_inner field.
2099 (language_defn::value_print_inner): Delcare new member function.
2100 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2101 initializer.
2102 (m2_language::value_print_inner): New member function.
2103 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2104 initializer.
2105 * opencl-lang.c (opencl_language_data): Likewise.
2106 * p-lang.c (pascal_language_data): Likewise.
2107 (pascal_language::value_print_inner): New member function.
2108 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2109 initializer.
2110 (rust_language::value_print_inner): New member function.
2111 * valprint.c (do_val_print): Update call to value_print_inner.
2112
a1d1fa3e
AB
21132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * ada-lang.c (ada_language_data): Delete la_value_print
2116 initializer.
2117 (ada_language::value_print): New member function.
2118 * c-lang.c (c_language_data): Delete la_value_print initializer.
2119 (cplus_language_data): Likewise.
2120 (asm_language_data): Likewise.
2121 (minimal_language_data): Likewise.
2122 * d-lang.c (d_language_data): Likewise.
2123 * f-lang.c (f_language_data): Likewise.
2124 * go-lang.c (go_language_data): Likewise.
2125 * language.c (unk_lang_value_print): Delete.
2126 (language_defn::value_print): Define new member function.
2127 (unknown_language_data): Delete la_value_print initializer.
2128 (unknown_language::value_print): New member function.
2129 (auto_language_data): Delete la_value_print initializer.
2130 (auto_language::value_print): New member function.
2131 * language.h (language_data): Delete la_value_print field.
2132 (language_defn::value_print): Declare new member function.
2133 (LA_VALUE_PRINT): Update call to value_print.
2134 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2135 * objc-lang.c (objc_language_data): Likewise.
2136 * opencl-lang.c (opencl_language_data): Likewise.
2137 * p-lang.c (pascal_language_data): Likewise.
2138 (pascal_language::value_print): New member function.
2139 * rust-lang.c (rust_language_data): Delete la_value_print
2140 initializer.
2141
f16a9f57
AB
21422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * ada-lang.c (ada_watch_location_expression): Rename to
2145 ada_language::watch_location_expression.
2146 (ada_language_data): Delete la_watch_location_expression
2147 initializer.
2148 (ada_language::watch_location_expression): New member function,
2149 implementation from ada_watch_location_expression.
2150 * breakpoint.c (watch_command_1): Update call to
2151 watch_location_expression.
2152 * c-lang.c (c_watch_location_expression): Rename to
2153 language_defn::watch_location_expression.
2154 (c_language_data): Delete la_watch_location_expression
2155 initializer.
2156 (cplus_language_data): Likewise.
2157 (asm_language_data): Likewise.
2158 (minimal_language_data): Likewise.
2159 * c-lang.h (c_watch_location_expression): Delete declaration.
2160 * d-lang.c (d_language_data): Delete la_watch_location_expression
2161 initializer.
2162 * f-lang.c (f_language_data): Likewise.
2163 * go-lang.c (go_language_data): Likewise.
2164 * language.c (language_defn::watch_location_expression): Member
2165 function implementation from c_watch_location_expression.
2166 (unknown_language_data): Delete la_watch_location_expression
2167 initializer.
2168 (auto_language_data): Likewise.
2169 * language.h (language_data): Delete la_watch_location_expression
2170 field.
2171 (language_defn::watch_location_expression): Declare new member
2172 function.
2173 * m2-lang.c (m2_language_data): Delete
2174 la_watch_location_expression initializer.
2175 * objc-lang.c (objc_language_data): Likewise.
2176 * opencl-lang.c (opencl_language_data): Likewise.
2177 * p-lang.c (pascal_language_data): Likewise.
2178 * rust-lang.c (rust_watch_location_expression): Rename to
2179 rust_language::watch_location_expression.
2180 (rust_language_data): Delete la_watch_location_expression
2181 initializer.
2182 (rust_language::watch_location_expression): New member function,
2183 implementation from rust_watch_location_expression.
2184
7e56227d
AB
21852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2188 ada_language::collect_symbol_completion_matches.
2189 (ada_language_data): Delete la_collect_symbol_completion_matches
2190 initializer.
2191 (ada_language::collect_symbol_completion_matches): New member
2192 function, implementation from
2193 ada_collect_symbol_completion_matches.
2194 * c-lang.c (c_language_data): Delete
2195 la_collect_symbol_completion_matches initializer.
2196 (cplus_language_data): Likewise.
2197 (asm_language_data): Likewise.
2198 (minimal_language_data): Likewise.
2199 * d-lang.c (d_language_data): Likewise.
2200 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2201 f_language::collect_symbol_completion_matches.
2202 (f_language_data): Delete la_collect_symbol_completion_matches
2203 initializer.
2204 (f_language::collect_symbol_completion_matches) New member
2205 function, implementation from f_collect_symbol_completion_matches.
2206 * go-lang.c (go_language_data): Delete
2207 la_collect_symbol_completion_matches initializer.
2208 * language.c (unknown_language_data): Likewise.
2209 (auto_language_data): Likewise.
2210 * language.h (language_data): Delete
2211 la_collect_symbol_completion_matches field.
2212 (language_defn::collect_symbol_completion_matches): New member
2213 function.
2214 * m2-lang.c (m2_language_data): Delete
2215 la_collect_symbol_completion_matches initializer.
2216 * objc-lang.c (objc_language_data): Likewise.
2217 * opencl-lang.c (opencl_language_data): Likewise.
2218 * p-lang.c (pascal_language_data): Likewise.
2219 * rust-lang.c (rust_language_data): Likewise.
2220 * symtab.c (default_collect_symbol_completion_matches): Delete.
2221 (collect_symbol_completion_matches): Update call to
2222 collect_symbol_completion_matches.
2223 (collect_symbol_completion_matches_type): Likewise.
2224 * symtab.h (default_collect_symbol_completion_matches): Delete
2225 declaration.
2226
53fc67f8
AB
22272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2228
2229 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2230 (ada_language_data): Delete la_word_break_characters initializer.
2231 (ada_language::word_break_characters): New member function.
2232 * c-lang.c (c_language_data): Delete la_word_break_characters
2233 initializer.
2234 (cplus_language_data): Likewise.
2235 (asm_language_data): Likewise.
2236 (minimal_language_data): Likewise.
2237 * completer.c: Update global comment.
2238 (advance_to_expression_complete_word_point): Update call to
2239 word_break_characters.
2240 (complete_files_symbols): Likewise.
2241 (complete_line_internal_1): Likewise.
2242 (default_completer_handle_brkchars): Likewise.
2243 (skip_quoted_chars): Likewise.
2244 * d-lang.c (d_language_data): Delete la_word_break_characters
2245 initializer.
2246 * f-lang.c (f_word_break_characters): Delete.
2247 (f_language_data): Delete la_word_break_characters initializer.
2248 (f_language::word_break_characters): New member function.
2249 * go-lang.c (go_language_data): Delete la_word_break_characters
2250 initializer.
2251 * language.c (unknown_language_data): Likewise.
2252 (auto_language_data): Likewise.
2253 * language.h (default_word_break_characters): Move declaration to
2254 earlier in the file.
2255 (language_data): Delete la_word_break_characters field.
2256 (language_defn::word_break_characters): New member function.
2257 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2258 initializer.
2259 * objc-lang.c (objc_language_data): Likewise.
2260 * opencl-lang.c (opencl_language_data): Likewise.
2261 * p-lang.c (pascal_language_data): Likewise.
2262 * rust-lang.c (rust_language_data): Likewise.
2263
c9debfb9
AB
22642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2267 (ada_language_data): Delete la_get_symbol_name_matcher
2268 initializer.
2269 (language_defn::get_symbol_name_matcher_inner): New member
2270 function.
2271 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2272 initializer.
2273 (cplus_language_data): Likewise.
2274 (cplus_language::get_symbol_name_matcher_inner): New member
2275 function.
2276 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2277 (minimal_language_data): Likewise.
2278 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2279 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2280 initializer.
2281 * dictionary.c (iter_match_first_hashed): Update call to
2282 get_symbol_name_matcher.
2283 (iter_match_next_hashed): Likewise.
2284 (iter_match_next_linear): Likewise.
2285 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2286 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2287 initializer.
2288 (f_language::get_symbol_name_matcher_inner): New member function.
2289 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2290 initializer.
2291 * language.c (default_symbol_name_matcher): Update header comment,
2292 make static.
2293 (language_defn::get_symbol_name_matcher): New definition.
2294 (language_defn::get_symbol_name_matcher_inner): Likewise.
2295 (get_symbol_name_matcher): Delete.
2296 (unknown_language_data): Delete la_get_symbol_name_matcher
2297 initializer.
2298 (auto_language_data): Likewise.
2299 * language.h (language_data): Delete la_get_symbol_name_matcher
2300 field.
2301 (language_defn::get_symbol_name_matcher): New member function.
2302 (language_defn::get_symbol_name_matcher_inner): Likewise.
2303 (default_symbol_name_matcher): Delete declaration.
2304 * linespec.c (find_methods): Update call to
2305 get_symbol_name_matcher.
2306 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2307 initializer.
2308 * minsyms.c (lookup_minimal_symbol): Update call to
2309 get_symbol_name_matcher.
2310 (iterate_over_minimal_symbols): Likewise.
2311 * objc-lang.c (objc_language_data): Delete
2312 la_get_symbol_name_matcher initializer.
2313 * opencl-lang.c (opencl_language_data): Likewise.
2314 * p-lang.c (pascal_language_data): Likewise.
2315 * psymtab.c (psymbol_name_matches): Update call to
2316 get_symbol_name_matcher.
2317 * rust-lang.c (rust_language_data): Delete
2318 la_get_symbol_name_matcher initializer.
2319 * symtab.c (symbol_matches_search_name): Update call to
2320 get_symbol_name_matcher.
2321 (compare_symbol_name): Likewise.
2322
9a49ad8c
AB
23232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2324
2325 * ada-lang.c (ada_language_data): Delete la_compute_program
2326 initializer.
2327 * c-lang.c (c_language_data): Likewise.
2328 (c_language::compute_program): New member function.
2329 (cplus_language_data): Delete la_compute_program initializer.
2330 (cplus_language::compute_program): New member function.
2331 (asm_language_data): Delete la_compute_program initializer.
2332 (minimal_language_data): Likewise.
2333 * c-lang.h (c_compute_program): Update comment.
2334 (cplus_compute_program): Likewise.
2335 * compile/compile-c-support.c (c_compute_program): Likewise.
2336 (cplus_compute_program): Likewise.
2337 * compile/compile.c (compile_to_object): Update call to
2338 la_compute_program.
2339 * d-lang.c (d_language_data): Delete la_compute_program
2340 initializer.
2341 * f-lang.c (f_language_data): Likewise.
2342 * go-lang.c (go_language_data): Likewise.
2343 * language.c (unknown_language_data): Likewise.
2344 (auto_language_data): Likewise.
2345 * language.h (language_data): Delete la_compute_program field.
2346 (language_defn::compute_program): New member function.
2347 * m2-lang.c (m2_language_data): Delete la_compute_program
2348 initializer.
2349 * objc-lang.c (objc_language_data): Likewise.
2350 * opencl-lang.c (opencl_language_data): Likewise.
2351 * p-lang.c (pascal_language_data): Likewise.
2352 * rust-lang.c (rust_language_data): Likewise.
2353
eff93b4d
AB
23542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2355
2356 * ada-lang.c (ada_language_data) Delete
2357 la_class_name_from_physname initializer.
2358 * c-lang.c (c_language_data): Likewise.
2359 (cplus_language_data): Likewise.
2360 (cplus_language::class_name_from_physname): New member function.
2361 (asm_language_data): Delete la_class_name_from_physname
2362 initializer.
2363 (minimal_language_data): Likewise.
2364 * d-lang.c (d_language_data): Likewise.
2365 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2366 method on language_defn class.
2367 (guess_full_die_structure_name): Likewise.
2368 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2369 initializer.
2370 * go-lang.c (go_language_data): Likewise.
2371 * language.c (language_class_name_from_physname): Delete.
2372 (unk_lang_class_name): Delete.
2373 (unknown_language_data): Delete la_class_name_from_physname
2374 initializer.
2375 (auto_language_data): Likewise.
2376 * language.h (language_data): Delete la_class_name_from_physname
2377 field.
2378 (language_defn::class_name_from_physname): New function.
2379 (language_class_name_from_physname): Delete declaration.
2380 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2381 initializer.
2382 * objc-lang.c (objc_language_data): Likewise.
2383 * opencl-lang.c (opencl_language_data): Likewise.
2384 * p-lang.c (pascal_language_data): Likewise.
2385 * rust-lang.c (rust_language_data): Likewise.
2386
de543742
TT
23872020-06-16 Tom Tromey <tom@tromey.com>
2388
2389 * tui/tui-data.h (STATUS_NAME): New macro.
2390 * tui/tui-layout.c (tui_remove_some_windows)
2391 (initialize_known_windows, tui_register_window)
2392 (tui_layout_split::remove_windows, initialize_layouts)
2393 (tui_new_layout_command): Don't use hard-coded window names.
2394
a350efd4
TT
23952020-06-16 Tom Tromey <tom@tromey.com>
2396
2397 PR tui/25348:
2398 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2399 tui_initialize_readline. Only run once. Call rl_initialize.
2400 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2401 tui_initialize_readline.
2402 * tui/tui-io.c (tui_setup_io): Call
2403 tui_ensure_readline_initialized.
2404 * tui/tui-interp.c (tui_interp::init): Update.
2405
39ec0490
TT
24062020-06-16 Tom Tromey <tom@tromey.com>
2407
2408 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2409 Also preserve the status window.
2410
d2d1ea20
TT
24112020-06-16 Tom Tromey <tom@tromey.com>
2412
2413 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2414 where m_window==nullptr.
2415
66920317
TT
24162020-06-15 Tom Tromey <tromey@adacore.com>
2417
2418 * windows-nat.c (windows_nat::handle_output_debug_string):
2419 Update.
2420 (windows_nat::handle_ms_vc_exception): Update.
2421 * target.h (target_read_string): Change API.
2422 * target.c (target_read_string): Change API.
2423 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2424 Update.
2425 * solib-frv.c (frv_current_sos): Update.
2426 * solib-dsbt.c (dsbt_current_sos): Update.
2427 * solib-darwin.c (darwin_current_sos): Update.
2428 * linux-thread-db.c (inferior_has_bug): Update.
2429 * expprint.c (print_subexp_standard): Update.
2430 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2431 (ada_exception_message_1): Update.
2432
a5d871dd
TT
24332020-06-15 Tom Tromey <tromey@adacore.com>
2434
2435 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2436
670e35fa
TT
24372020-06-15 Tom Tromey <tromey@adacore.com>
2438
2439 * valprint.c (read_string): Update comment.
2440 * target.c (MIN): Remove.
2441 (target_read_string): Rewrite.
2442
f5272a3b
TT
24432020-06-15 Tom Tromey <tromey@adacore.com>
2444
2445 * corefile.c (read_memory_string): Remove.
2446 * ada-valprint.c (ada_value_print_ptr): Update.
2447 * ada-lang.h (ada_tag_name): Change return type.
2448 * ada-lang.c (type_from_tag): Update.
2449 (ada_tag_name_from_tsd): Change return type. Use
2450 target_read_string.
2451 (ada_tag_name): Likewise.
2452 * gdbcore.h (read_memory_string): Don't declare.
2453
2c074f49
HD
24542020-06-14 Hannes Domani <ssbssa@yahoo.de>
2455
2456 * symtab.c (rbreak_command): Ignore Windows drive colon.
2457
6a17d503
SM
24582020-06-12 Simon Marchi <simon.marchi@efficios.com>
2459
2460 * NEWS: Mention removed GDBserver host support.
2461
453c733f
NC
24622020-06-12 Nelson Chu <nelson.chu@sifive.com>
2463
2464 * features/riscv/rebuild-csr-xml.sh: Updated.
2465
2b4e6a3f
TT
24662020-06-11 Tom Tromey <tom@tromey.com>
2467
2468 PR gdb/18318:
2469 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2470
4412332f
JG
24712020-06-09 Jonny Grant <jg@jguk.org>
24722020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2473
2474 * main.c (captured_main_1): Don't print new line after help.
2475 (print_gdb_help): add mailing list and IRC channel information
2476 to --help. Add new lines between items in the footer. Remove
2477 quotes around bug url.
2478
2f33032a
KS
24792020-06-11 Keith Seitz <keiths@redhat.com>
2480
2481 PR gdb/21356
2482 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2483 Resolve typedefs for type length calculations.
2484
7ab96794
TV
24852020-06-10 Tom de Vries <tdevries@suse.de>
2486
2487 PR ada/24713
2488 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2489 (write_psymbols): Enable .gdb_index for ada.
2490 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2491 ada.
2492
e5f3ece2
TV
24932020-06-10 Tom de Vries <tdevries@suse.de>
2494
2495 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2496 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2497 namei" instead of "const char *name" argument.
2498 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2499 dw2_symtab_iter_init.
2500
940da03e
SM
25012020-06-08 Simon Marchi <simon.marchi@efficios.com>
2502
2503 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2504 to use type::field and field::type instead.
2505
b6cdac4b
SM
25062020-06-08 Simon Marchi <simon.marchi@efficios.com>
2507
2508 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2509 to use field::type instead.
2510
5d14b6e5
SM
25112020-06-08 Simon Marchi <simon.marchi@efficios.com>
2512
2513 * gdbtypes.h (struct field) <type, set_type>: New methods.
2514 Rename `type` field to...
2515 <m_type>: ... this. Change references throughout to use type or
2516 set_type methods.
2517 (FIELD_TYPE): Use field::type. Change call sites that modify
2518 the field's type to use field::set_type instead.
2519
3d967001
SM
25202020-06-08 Simon Marchi <simon.marchi@efficios.com>
2521
2522 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2523 to use type::index_type instead.
2524
262abc0d
SM
25252020-06-08 Simon Marchi <simon.marchi@efficios.com>
2526
2527 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2528 methods.
2529 (TYPE_INDEX_TYPE): Use type::index_type.
2530 * gdbtypes.c (create_array_type_with_stride): Likewise.
2531
82836c92
TT
25322020-06-07 Tom Tromey <tom@tromey.com>
2533
2534 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2535 parameter.
2536 (generic_value_print): Update.
2537
940dace9
AB
25382020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2539
2540 Revert commit 982a38f60b0.
2541 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2542
982a38f6
AB
25432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2546 avoid use after free.
2547
82f06518
TV
25482020-06-05 Tom de Vries <tdevries@suse.de>
2549
2550 * NEWS: Fix typos.
2551
f8c41851
SM
25522020-06-04 Simon Marchi <simon.marchi@efficios.com>
2553
2554 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2555 the per_bfd object.
2556 (dwarf2_read_debug_names): Likewise.
2557 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2558 object when re-using a per_bfd object with an index.
2559
f9b5d5ea
TV
25602020-06-03 Tom de Vries <tdevries@suse.de>
2561
2562 PR symtab/26046
2563 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2564 children for C++.
2565 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2566 DW_TAG_subprogram.
2567
f6eee2d0
AB
25682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2569
2570 * ada-lang.c (ada_language_data): Delete skip_trampoline
2571 initializer.
2572 * c-lang.c (c_language_data): Likewise.
2573 (cplus_language_data): Likewise.
2574 (cplus_language::skip_trampoline): New member function.
2575 (asm_language_data): Delete skip_trampoline initializer.
2576 (minimal_language_data): Likewise.
2577 * d-lang.c (d_language_data): Likewise.
2578 * f-lang.c (f_language_data): Likewise.
2579 * go-lang.c (go_language_data): Likewise.
2580 * language.c (unk_lang_trampoline): Delete function.
2581 (skip_language_trampoline): Update.
2582 (unknown_language_data): Delete skip_trampoline initializer.
2583 (auto_language_data): Likewise.
2584 * language.h (language_data): Delete skip_trampoline field.
2585 (language_defn::skip_trampoline): New function.
2586 * m2-lang.c (m2_language_data): Delete skip_trampoline
2587 initializer.
2588 * objc-lang.c (objc_skip_trampoline): Delete function, move
2589 implementation to objc_language::skip_trampoline.
2590 (objc_language_data): Delete skip_trampoline initializer.
2591 (objc_language::skip_trampoline): New member function with
2592 implementation from objc_skip_trampoline.
2593 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2594 initializer.
2595 * p-lang.c (pascal_language_data): Likewise.
2596 * rust-lang.c (rust_language_data): Likewise.
2597
0a50df5d
AB
25982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2601 (ada_language::demangle): New member function.
2602 * c-lang.c (c_language_data): Delete la_demangle initializer.
2603 (cplus_language_data): Delete la_demangle initializer.
2604 (cplus_language::demangle): New member function.
2605 (asm_language_data): Delete la_demangle initializer.
2606 (minimal_language_data): Delete la_demangle initializer.
2607 * d-lang.c (d_language_data): Delete la_demangle initializer.
2608 (d_language::demangle): New member function.
2609 * f-lang.c (f_language_data): Delete la_demangle initializer.
2610 (f_language::demangle): New member function.
2611 * go-lang.c (go_language_data): Delete la_demangle initializer.
2612 (go_language::demangle): New member function.
2613 * language.c (language_demangle): Update.
2614 (unk_lang_demangle): Delete.
2615 (unknown_language_data): Delete la_demangle initializer.
2616 (unknown_language::demangle): New member function.
2617 (auto_language_data): Delete la_demangle initializer.
2618 (auto_language::demangle): New member function.
2619 * language.h (language_data): Delete la_demangle field.
2620 (language_defn::demangle): New function.
2621 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2622 * objc-lang.c (objc_language_data): Delete la_demangle
2623 initializer.
2624 (objc_language::demangle): New member function.
2625 * opencl-lang.c (opencl_language_data): Delete la_demangle
2626 initializer.
2627 * p-lang.c (pascal_language_data): Likewise.
2628 * rust-lang.c (rust_language_data): Likewise.
2629 (rust_language::demangle): New member function.
2630
fbfb0a46
AB
26312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * ada-lang.c (ada_language_data): Delete la_print_type
2634 initializer.
2635 (ada_language::print_type): New member function.
2636 * c-lang.c (c_language_data): Delete la_print_type initializer.
2637 (c_language::print_type): New member function.
2638 (cplus_language_data): Delete la_print_type initializer.
2639 (cplus_language::print_type): New member function.
2640 (asm_language_data): Delete la_print_type initializer.
2641 (asm_language::print_type): New member function.
2642 (minimal_language_data): Delete la_print_type initializer.
2643 (minimal_language::print_type): New member function.
2644 * d-lang.c (d_language_data): Delete la_print_type initializer.
2645 (d_language::print_type): New member function.
2646 * f-lang.c (f_language_data): Delete la_print_type initializer.
2647 (f_language::print_type): New member function.
2648 * go-lang.c (go_language_data): Delete la_print_type initializer.
2649 (go_language::print_type): New member function.
2650 * language.c (unk_lang_print_type): Delete.
2651 (unknown_language_data): Delete la_print_type initializer.
2652 (unknown_language::print_type): New member function.
2653 (auto_language_data): Delete la_print_type initializer.
2654 (auto_language::print_type): New member function.
2655 * language.h (language_data): Delete la_print_type field.
2656 (language_defn::print_type): New function.
2657 (LA_PRINT_TYPE): Update.
2658 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2659 (m2_language::print_type): New member function.
2660 * objc-lang.c (objc_language_data): Delete la_print_type
2661 initializer.
2662 (objc_language::print_type): New member function.
2663 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2664 to opencl_language::print_type.
2665 (opencl_language_data): Delete la_print_type initializer.
2666 (opencl_language::print_type): New member function, implementation
2667 from opencl_print_type.
2668 * p-lang.c (pascal_language_data): Delete la_print_type
2669 initializer.
2670 (pascal_language::print_type): New member function.
2671 * rust-lang.c (rust_print_type): Delete, implementation moved to
2672 rust_language::print_type.
2673 (rust_language_data): Delete la_print_type initializer.
2674 (rust_language::print_type): New member function, implementation
2675 from rust_print_type.
2676
6f827019
AB
26772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2678
2679 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2680 implementation moves to...
2681 (ada_language::sniff_from_mangled_name): ...here. Update return
2682 type.
2683 (ada_language_data): Delete la_sniff_from_mangled_name
2684 initializer.
2685 * c-lang.c (c_language_data): Likewise.
2686 (cplus_language_data): Likewise.
2687 (cplus_language::sniff_from_mangled_name): New member function,
2688 implementation taken from gdb_sniff_from_mangled_name.
2689 (asm_language_data): Delete la_sniff_from_mangled_name
2690 initializer.
2691 (minimal_language_data): Likewise.
2692 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2693 implementation moves to cplus_language::sniff_from_mangled_name.
2694 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2695 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2696 moves to...
2697 (d_language::sniff_from_mangled_name): ...here.
2698 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2699 * f-lang.c (f_language_data): Likewise.
2700 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2701 moves to...
2702 (go_language::sniff_from_mangled_name): ...here.
2703 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2704 * language.c (language_sniff_from_mangled_name): Delete.
2705 (unknown_language_data): Delete la_sniff_from_mangled_name
2706 initializer.
2707 (auto_language_data): Likewise.
2708 * language.h (language_data): Delete la_sniff_from_mangled_name
2709 field.
2710 (language_defn::sniff_from_mangled_name): New function.
2711 (language_sniff_from_mangled_name): Delete declaration.
2712 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2713 field.
2714 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2715 implementation moves to...
2716 (objc_language::sniff_from_mangled_name): ...here.
2717 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2718 * opencl-lang.c (opencl_language_data): Likewise.
2719 * p-lang.c (pascal_language_data): Likewise.
2720 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2721 implementation moves to...
2722 (rust_language::sniff_from_mangled_name): ...here.
2723 (rust_language_data): Delete la_sniff_from_mangled_name
2724 initializer.
2725 * symtab.c (symbol_find_demangled_name): Call
2726 sniff_from_mangled_name member function.
2727
fb8006fd
AB
27282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2729
2730 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2731 initializer.
2732 * c-lang.c (c_language_data): Likewise.
2733 (cplus_language_data): Likewise.
2734 (cplus_language::search_name_hash): New member function.
2735 (asm_language_data): Delete la_search_name_hash initializer.
2736 (minimal_language_data): Likewise.
2737 * d-lang.c (d_language_data): Likewise.
2738 * dictionary.c (default_search_name_hash): Rename to...
2739 (language_defn::search_name_hash): ...this.
2740 * f-lang.c (f_language_data): Likewise.
2741 (f_language::search_name_hash): New member function.
2742 * go-lang.c (go_language_data): Delete la_search_name_hash
2743 initializer.
2744 * language.c (unknown_language_data): Likewise.
2745 (auto_language_data): Likewise.
2746 * language.h (struct language_data): Delete la_search_name_hash
2747 field.
2748 (language_defn::search_name_hash): Declare new member function.
2749 (default_search_name_hash): Delete declaration.
2750 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2751 initializer.
2752 * objc-lang.c (objc_language_data): Likewise.
2753 * opencl-lang.c (opencl_language_data): Likewise.
2754 * p-lang.c (pascal_language_data): Likewise.
2755 * rust-lang.c (rust_language_data): Likewise.
2756 * symtab.c (search_name_hash): Update call.
2757
8e25bafe
AB
27582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2759
2760 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2761 initializer.
2762 * c-lang.c (class compile_instance): Declare.
2763 (c_language_data): Delete la_get_compile_instance initializer.
2764 (c_language::get_compile_instance): New member function.
2765 (cplus_language_data): Delete la_get_compile_instance initializer.
2766 (cplus_language::get_compile_instance): New member function.
2767 (asm_language_data): Delete la_get_compile_instance initializer.
2768 (minimal_language_data): Likewise.
2769 * c-lang.h (c_get_compile_context): Update comment.
2770 (cplus_get_compile_context): Update comment.
2771 * compile/compile.c (compile_to_object): Update calls, don't rely
2772 on function pointer being NULL.
2773 * d-lang.c (d_language_data): Delete la_get_compile_instance
2774 initializer.
2775 * f-lang.c (f_language_data): Likewise.
2776 * go-lang.c (go_language_data): Likewise.
2777 * language.c (unknown_language_data): Likewise.
2778 (auto_language_data): Likewise.
2779 * language.h (language_data): Delete la_get_compile_instance field.
2780 (language_defn::get_compile_instance): New member function.
2781 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2782 initializer.
2783 * objc-lang.c (objc_language_data): Likewise.
2784 * opencl-lang.c (opencl_language_data): Likewise.
2785 * p-lang.c (pascal_language_data): Likewise.
2786 * rust-lang.c (rust_language_data): Likewise.
2787
4009ee92
AB
27882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2789
2790 * ada-lang.c (ada_add_all_symbols): Update comment.
2791 (ada_iterate_over_symbols): Delete, move implementation to...
2792 (ada_language::iterate_over_symbols): ...here, a new member
2793 function, rewrite to use range based for loop.
2794 (ada_language_data): Delete la_iterate_over_symbols initializer.
2795 * c-lang.c (c_language_data): Likewise.
2796 (cplus_language_data): Likewise.
2797 (asm_language_data): Likewise.
2798 (minimal_language_data): Likewise.
2799 * d-lang.c (d_language_data): Likewise.
2800 * f-lang.c (f_language_data): Likewise.
2801 * go-lang.c (go_language_data): Likewise.
2802 * language.c (unknown_language_data): Likewise.
2803 (auto_language_data): Likewise.
2804 * language.h (language_data): Delete la_iterate_over_symbols field.
2805 (language_defn::iterate_over_symbols): New member function.
2806 (LA_ITERATE_OVER_SYMBOLS): Update.
2807 * linespec.c (iterate_over_all_matching_symtabs): Update.
2808 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2809 initializer.
2810 * objc-lang.c (objc_language_data): Likewise.
2811 * opencl-lang.c (opencl_language_data): Likewise.
2812 * p-lang.c (pascal_language_data): Likewise.
2813 * rust-lang.c (rust_language_data): Likewise.
2814
54f4ca46
AB
28152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2816
2817 * ada-lang.c (ada_language_data): Delete
2818 la_lookup_transparent_type initializer.
2819 * c-lang.c (c_language_data): Likewise.
2820 (cplus_language_data): Likewise.
2821 (cplus_language::lookup_transparent_type): New member function.
2822 (asm_language_data): Delete la_lookup_transparent_type
2823 initializer.
2824 (minimal_language_data): Likewise.
2825 * d-lang.c (d_language_data): Likewise.
2826 * f-lang.c (f_language_data): Likewise.
2827 * go-lang.c (go_language_data): Likewise.
2828 * language.c (unknown_language_data): Likewise.
2829 (auto_language_data): Likewise.
2830 * language.h (struct language_data): Delete
2831 la_lookup_transparent_type field.
2832 (language_defn::lookup_transparent_type): New member function.
2833 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2834 initializer.
2835 * objc-lang.c (objc_language_data): Likewise.
2836 * opencl-lang.c (opencl_language_data): Likewise.
2837 * p-lang.c (pascal_language_data): Likewise.
2838 * rust-lang.c (rust_language_data): Likewise.
2839 * symtab.c (symbol_matches_domain): Update call.
2840
1fb314aa
AB
28412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2842
2843 * ada-lang.c (ada_language_arch_info): Delete function, move
2844 implementation to...
2845 (ada_language::language_arch_info): ...here, a new member
2846 function.
2847 (ada_language_data): Delete la_language_arch_info.
2848 * c-lang.c (c_language_data): Likewise.
2849 (c_language::language_arch_info): New member function.
2850 (cplus_language_arch_info): Delete function, move
2851 implementation to...
2852 (cplus_language::language_arch_info): ...here, a new member
2853 function.
2854 (cplus_language_data): Delete la_language_arch_info.
2855 (asm_language_data): Likewise.
2856 (asm_language::language_arch_info): New member function.
2857 (minimal_language_data): Delete la_language_arch_info.
2858 (minimal_language::language_arch_info): New member function.
2859 * d-lang.c (d_language_arch_info): Delete function, move
2860 implementation to...
2861 (d_language::language_arch_info): ...here, a new member
2862 function.
2863 (d_language_data): Delete la_language_arch_info.
2864 * f-lang.c (f_language_arch_info): Delete function, move
2865 implementation to...
2866 (f_language::language_arch_info): ...here, a new member
2867 function.
2868 (f_language_data): Delete la_language_arch_info.
2869 * go-lang.c (go_language_arch_info): Delete function, move
2870 implementation to...
2871 (go_language::language_arch_info): ...here, a new member
2872 function.
2873 (go_language_data): Delete la_language_arch_info.
2874 * language.c (unknown_language_data): Likewise.
2875 (unknown_language::language_arch_info): New member function.
2876 (auto_language_data): Delete la_language_arch_info.
2877 (auto_language::language_arch_info): New member function.
2878 (language_gdbarch_post_init): Update call to
2879 la_language_arch_info.
2880 * language.h (language_data): Delete la_language_arch_info
2881 function pointer.
2882 (language_defn::language_arch_info): New function.
2883 * m2-lang.c (m2_language_arch_info): Delete function, move
2884 implementation to...
2885 (m2_language::language_arch_info): ...here, a new member
2886 function.
2887 (m2_language_data): Delete la_language_arch_info.
2888 * objc-lang.c (objc_language_arch_info): Delete function, move
2889 implementation to...
2890 (objc_language::language_arch_info): ...here, a new member
2891 function.
2892 (objc_language_data): Delete la_language_arch_info.
2893 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2894 implementation to...
2895 (opencl_language::language_arch_info): ...here, a new member
2896 function.
2897 (opencl_language_data): Delete la_language_arch_info.
2898 * p-lang.c (pascal_language_arch_info): Delete function, move
2899 implementation to...
2900 (pascal_language::language_arch_info): ...here, a new member
2901 function.
2902 (pascal_language_data): Delete la_language_arch_info.
2903 * rust-lang.c (rust_language_arch_info): Delete function, move
2904 implementation to...
2905 (rust_language::language_arch_info): ...here, a new member
2906 function.
2907 (rust_language_data): Delete la_language_arch_info.
2908
48448202
AB
29092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2912 initializer.
2913 * c-lang.c (c_language_data): Likewise.
2914 (cplus_language_data): Likewise.
2915 (cplus_language::pass_by_reference_info): New method.
2916 (asm_language_data): Delete la_pass_by_reference initializer.
2917 (minimal_language_data): Likewise.
2918 * cp-abi.c (cp_pass_by_reference): Remove use of
2919 default_pass_by_reference.
2920 * d-lang.c (d_language_data): Likewise.
2921 * f-lang.c (f_language_data): Likewise.
2922 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2923 default_pass_by_reference.
2924 * go-lang.c (go_language_data): Likewise.
2925 * language.c (language_pass_by_reference): Update.
2926 (default_pass_by_reference): Delete.
2927 (unknown_language_data): Delete la_pass_by_reference
2928 initializer.
2929 (auto_language_data): Likewise.
2930 * language.h (struct language_data): Delete la_pass_by_reference
2931 field.
2932 (language_defn::pass_by_reference_info): New member function.
2933 (default_pass_by_reference): Delete declaration.
2934 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2935 initializer.
2936 * objc-lang.c (objc_language_data): Likewise.
2937 * opencl-lang.c (opencl_language_data): Likewise.
2938 * p-lang.c (pascal_language_data): Likewise.
2939 * rust-lang.c (rust_language_data): Likewise.
2940
15e5fd35
AB
29412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2942
2943 * ada-lang.c (ada_read_var_value): Delete function, move
2944 implementation to...
2945 (ada_language::read_var_value): ...here.
2946 (ada_language_data): Delete la_read_var_value initializer.
2947 * c-lang.c (c_language_data): Likewise.
2948 (cplus_language_data): Likewise.
2949 (minimal_language_data): Likewise.
2950 * d-lang.c (d_language_data): Likewise.
2951 * f-lang.c (f_language_data): Likewise.
2952 * findvar.c (default_read_var_value): Rename to...
2953 (language_defn::read_var_value): ...this.
2954 * findvar.c (read_var_value): Update header comment, and change to
2955 call member function instead of function pointer.
2956 * go-lang.c (go_language_data): Likewise.
2957 * language.c (unknown_language_data): Delete la_read_var_value
2958 initializer.
2959 (auto_language_data): Likewise.
2960 * language.h (struct language_data): Delete la_read_var_value
2961 field.
2962 (language_defn::read_var_value): New member function.
2963 (default_read_var_value): Delete declaration.
2964 * m2-lang.c (m2_language_data): Delete la_read_var_value
2965 initializer.
2966 * objc-lang.c (objc_language_data): Likewise.
2967 * opencl-lang.c (opencl_language_data): Likewise.
2968 * p-lang.c (pascal_language_data): Likewise.
2969 * rust-lang.c (rust_language_data): Likewise.
2970 * value.h (default_read_var_value): Delete declaration.
2971
5bd40f2a
AB
29722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2973
2974 * ada-lang.c (ada_print_array_index): Delete function, move
2975 implementation to...
2976 (ada_language::print_array_index): ...here.
2977 (ada_language_data): Delete la_print_array_index initializer.
2978 * c-lang.c (c_language_data): Likewise.
2979 (cplus_language_data): Likewise.
2980 (minimal_language_data): Likewise.
2981 * d-lang.c (d_language_data): Likewise.
2982 * f-lang.c (f_language_data): Likewise.
2983 * go-lang.c (go_language_data): Likewise.
2984 * language.c (default_print_array_index): Delete function, move
2985 implementation to...
2986 (language_defn::print_array_index): ...here.
2987 (unknown_language_data): Delete la_print_array_index initializer.
2988 (auto_language_data): Likewise.
2989 * language.h (struct language_data): Delete la_print_array_index
2990 field.
2991 (language_defn::print_array_index): New member function.
2992 (LA_PRINT_ARRAY_INDEX): Update.
2993 (default_print_array_index): Delete declaration.
2994 * m2-lang.c (m2_language_data): Delete la_print_array_index
2995 initializer.
2996 * objc-lang.c (objc_language_data): Likewise.
2997 * opencl-lang.c (opencl_language_data): Likewise.
2998 * p-lang.c (pascal_language_data): Likewise.
2999 * rust-lang.c (rust_language_data): Likewise.
3000
0874fd07
AB
30012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3002
3003 * gdb/ada-lang.c (ada_language_defn): Convert to...
3004 (ada_language_data): ...this.
3005 (class ada_language): New class.
3006 (ada_language_defn): New static global.
3007 * gdb/c-lang.c (c_language_defn): Convert to...
3008 (c_language_data): ...this.
3009 (class c_language): New class.
3010 (c_language_defn): New static global.
3011 (cplus_language_defn): Convert to...
3012 (cplus_language_data): ...this.
3013 (class cplus_language): New class.
3014 (cplus_language_defn): New static global.
3015 (asm_language_defn): Convert to...
3016 (asm_language_data): ...this.
3017 (class asm_language): New class.
3018 (asm_language_defn): New static global.
3019 (minimal_language_defn): Convert to...
3020 (minimal_language_data): ...this.
3021 (class minimal_language): New class.
3022 (minimal_language_defn): New static global.
3023 * gdb/d-lang.c (d_language_defn): Convert to...
3024 (d_language_data): ...this.
3025 (class d_language): New class.
3026 (d_language_defn): New static global.
3027 * gdb/f-lang.c (f_language_defn): Convert to...
3028 (f_language_data): ...this.
3029 (class f_language): New class.
3030 (f_language_defn): New static global.
3031 * gdb/go-lang.c (go_language_defn): Convert to...
3032 (go_language_data): ...this.
3033 (class go_language): New class.
3034 (go_language_defn): New static global.
3035 * gdb/language.c (unknown_language_defn): Remove declaration.
3036 (current_language): Initialize to nullptr, real initialization is
3037 moved to _initialize_language.
3038 (languages): Delete global.
3039 (language_defn::languages): Define.
3040 (set_language_command): Use language_defn::languages.
3041 (set_language): Likewise.
3042 (range_error): Likewise.
3043 (language_enum): Likewise.
3044 (language_def): Likewise.
3045 (add_set_language_command): Use language_def::languages for the
3046 language list, and language_def to lookup language pointers.
3047 (skip_language_trampoline): Use language_defn::languages.
3048 (unknown_language_defn): Convert to...
3049 (unknown_language_data): ...this.
3050 (class unknown_language): New class.
3051 (unknown_language_defn): New static global.
3052 (auto_language_defn): Convert to...
3053 (auto_language_data): ...this.
3054 (class auto_language): New class.
3055 (auto_language_defn): New static global.
3056 (language_gdbarch_post_init): Use language_defn::languages.
3057 (_initialize_language): Initialize current_language.
3058 * gdb/language.h (struct language_defn): Rename to...
3059 (struct language_data): ...this.
3060 (struct language_defn): New.
3061 (auto_language_defn): Delete.
3062 (unknown_language_defn): Delete.
3063 (minimal_language_defn): Delete.
3064 (ada_language_defn): Delete.
3065 (asm_language_defn): Delete.
3066 (c_language_defn): Delete.
3067 (cplus_language_defn): Delete.
3068 (d_language_defn): Delete.
3069 (f_language_defn): Delete.
3070 (go_language_defn): Delete.
3071 (m2_language_defn): Delete.
3072 (objc_language_defn): Delete.
3073 (opencl_language_defn): Delete.
3074 (pascal_language_defn): Delete.
3075 (rust_language_defn): Delete.
3076 * gdb/m2-lang.c (m2_language_defn): Convert to...
3077 (m2_language_data): ...this.
3078 (class m2_language): New class.
3079 (m2_language_defn): New static global.
3080 * gdb/objc-lang.c (objc_language_defn): Convert to...
3081 (objc_language_data): ...this.
3082 (class objc_language): New class.
3083 (objc_language_defn): New static global.
3084 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3085 (opencl_language_data): ...this.
3086 (class opencl_language): New class.
3087 (opencl_language_defn): New static global.
3088 * gdb/p-lang.c (pascal_language_defn): Convert to...
3089 (pascal_language_data): ...this.
3090 (class pascal_language): New class.
3091 (pascal_language_defn): New static global.
3092 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3093 language pointer, update comment format.
3094 * gdb/rust-lang.c (rust_language_defn): Convert to...
3095 (rust_language_data): ...this.
3096 (class rust_language): New class.
3097 (rust_language_defn): New static global.
3098
1313c56e
AB
30992020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3100
3101 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3102 member variable.
3103 <m_stmt_at_address>: New member variable.
3104 (lnp_state_machine::record_line): Don't record some lines, update
3105 tracking of is_stmt at the same address.
3106 (lnp_state_machine::lnp_state_machine): Initialise new member
3107 variables.
3108
b7ed9f3d
ST
31092020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3110
3111 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3112 "-include gnu-nat-mig.h".
3113 * gnu-nat-mig.h: New file.
3114 * gnu-nat.c: Include "gnu-nat-mig.h".
3115 (exc_server, msg_reply_server, notify_server,
3116 process_reply_server): Remove declarations.
3117
14a8ad62
ST
31182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3119
3120 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3121 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3122 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3123 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3124 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3125 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3126 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3127 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3128 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3129 to gnu_nat_target class.
3130 * gnu-nat.c: Likewise.
3131 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3132 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3133 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3134 object.
3135 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3136 instead of `gnu_target'.
3137
0af5e106
ST
31382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3139
3140 * i386-gnu-tdep.c: Include "gdbcore.h"
3141 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3142 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3143 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3144 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3145 i386_gnu_sigcontext_addr): New functions
3146 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3147 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3148 tdep.
3149
078f2fc9
ST
31502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3151
3152 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3153 before fork_inferior call. Avoid calling it if target_is_pushed returns
3154 true.
3155
53dff92c
ST
31562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3157
3158 * gnu-nat.h (gnu_target): New variable declaration.
3159 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3160 gnu_target.
3161 * gnu-nat.c (gnu_target): New variable.
3162 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3163 add_thread_silent, and add_thread calls.
3164 (gnu_nat_target::create_inferior): Pass gnu_target to
3165 add_thread_silent, thread_change_ptid call.
3166 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3167 call.
3168
5a8b8627
ST
31692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3170
3171 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3172 (gnu_nat_target::find_memory_regions): Remove unused
3173 `old_address' variable.
3174
366f550a
ST
31752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3176
3177 * gnu-nat.c: Include "gdbarch.h".
3178
f14871bf
ST
31792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3180
3181 * reply_mig_hack.awk (Error return): Cast function through
3182 void *, to bypass compiler function call check.
3183
c6887cfb
ST
31842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3185
3186 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3187 $(srcdir)/reply_mig_hack.awk.
3188
6930bffe
ST
31892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3190
3191 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3192
112c22ed
JG
31932020-05-30 Jonny Grant <jg@jguk.org>
3194
3195 * configure.ac (ACX_BUGURL): change bug URL to https.
3196
f68f85b5
PA
31972020-05-30 Pedro Alves <palves@redhat.com>
3198
3199 * cp-support.c (replace_typedefs_template): New.
3200 (replace_typedefs_qualified_name): Handle
3201 DEMANGLE_COMPONENT_TEMPLATE.
3202
976ca316
SM
32032020-05-29 Simon Marchi <simon.marchi@efficios.com>
3204
3205 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3206 dwarf2/index-cache.h, dwarf2/index-write.c,
3207 dwarf2/index-write.h, dwarf2/line-header.c,
3208 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3209 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3210 variables and fields from `dwarf2_per_objfile` to just
3211 `per_objfile` throughout.
3212
989ade05
SM
32132020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3214
3215 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3216 <push_dwarf_reg_entry_value>: Add comment.
3217
c47bae85
KB
32182020-05-28 Kevin Buettner <kevinb@redhat.com>
3219 Keith Seitz <keiths@redhat.com>
3220
3221 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3222 instead of PyEval_ReleaseLock.
3223 (class gdbpy_gil): Move to earlier in file.
3224 (finalize_python): Set gdb_python_initialized.
3225 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3226 when not initialized.
3227
44486dcf
SM
32282020-05-28 Simon Marchi <simon.marchi@efficios.com>
3229
3230 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3231 <push_dwarf_reg_entry_value>: Remove assert. Override
3232 per_objfile with caller_per_objfile.
3233
f030440d
TV
32342020-05-28 Tom de Vries <tdevries@suse.de>
3235
3236 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3237 PR gold/15646 workaround to symbol kind "type".
3238
f0fbb768
TT
32392020-05-27 Tom Tromey <tromey@adacore.com>
3240
3241 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3242
af0b2a3e
TT
32432020-05-27 Tom Tromey <tromey@adacore.com>
3244
3245 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3246 Use htab_find_with_hash.
3247 <add_abbrev>: Remove "abbrev_number" parameter.
3248 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3249 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3250 (hash_abbrev): Add comment.
3251 (abbrev_table::lookup_abbrev): Move to header file.
3252 (abbrev_table::read): Update.
3253
7d00ffec
TT
32542020-05-27 Tom Tromey <tromey@adacore.com>
3255
3256 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3257 method.
3258 <canonical_name>: New member.
3259 <raw_name>: Rename from "name".
3260 (partial_die_info): Initialize canonical_name.
3261 (scan_partial_symbols): Check raw_name.
3262 (partial_die_parent_scope, partial_die_full_name)
3263 (add_partial_symbol, add_partial_subprogram)
3264 (add_partial_enumeration, load_partial_dies): Use "name" method.
3265 (partial_die_info::name): New method.
3266 (partial_die_info::read, guess_partial_die_structure_name)
3267 (partial_die_info::fixup): Update.
3268
697bba18
TT
32692020-05-27 Tom Tromey <tromey@adacore.com>
3270
3271 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3272 <get_ref_die_offset>: Inline.
3273 <get_ref_die_offset_complaint>: New method.
3274 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3275 (attribute::get_ref_die_offset_complaint): Rename from
3276 get_ref_die_offset. Just issue complaint.
3277
c17ace43
HD
32782020-05-27 Hannes Domani <ssbssa@yahoo.de>
3279
3280 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3281
96445f0b
HD
32822020-05-27 Hannes Domani <ssbssa@yahoo.de>
3283
3284 * exec.c (exec_file_attach): Use errno value of first openp failure.
3285
ac637ec3
HD
32862020-05-27 Hannes Domani <ssbssa@yahoo.de>
3287
3288 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3289 Don't close thread handle.
3290
17ee85fc
TT
32912020-05-27 Tom Tromey <tom@tromey.com>
3292 Simon Marchi <simon.marchi@efficios.com>
3293
3294 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3295 shared_ptr.
3296 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3297 member.
3298 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3299 dwarf2_per_bfd_objfile_data_key>: New globals.
3300 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3301 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3302 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3303 shared.
3304 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3305 short-circuit when sharing.
3306 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3307 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3308
39b16f87
SM
33092020-05-27 Simon Marchi <simon.marchi@efficios.com>
3310
3311 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3312 to...
3313 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3314 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3315
fcf23d5b
SM
33162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3317
3318 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3319 build_name_components, find_name_components_bounds>:
3320 Add per_objfile parameter.
3321 (struct mapped_index) <symbol_name_at>: Likewise.
3322 (struct mapped_debug_names): Remove constructor.
3323 <dwarf2_per_objfile>: Remove field.
3324 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3325 (mapped_index_base::find_name_components_bounds,
3326 mapped_index_base::build_name_components,
3327 dw2_expand_symtabs_matching_symbol): Likewise.
3328 (class mock_mapped_index) <symbol_name_at>: Likewise.
3329 (check_match): Likewise.
3330 (check_find_bounds_finds): Likewise.
3331 (test_mapped_index_find_name_component_bounds): Update.
3332 (CHECK_MATCH): Update.
3333 (dw2_expand_symtabs_matching): Update.
3334 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3335 per_objfile parameter.
3336 <find_vec_in_debug_names>: Likewise.
3337 <m_per_objfile>: New field.
3338 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3339 parameter.
3340 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3341 (dw2_debug_names_iterator::next): Update.
3342 (dw2_debug_names_lookup_symbol): Update.
3343 (dw2_debug_names_expand_symtabs_for_function): Update.
3344 (dw2_debug_names_map_matching_symbols): Update.
3345 (dw2_debug_names_expand_symtabs_matching): Update.
3346 (dwarf2_read_debug_names): Update.
3347
7188ed02
SM
33482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3349
3350 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3351 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3352 move to dwarf2_per_objfile.
3353 <read_in_chain>: Remove.
3354 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3355 remove_all_cus, age_comp_units>: New methods.
3356 <m_dwarf2_cus>: New member.
3357 (struct dwarf2_per_cu_data) <cu>: Remove.
3358 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3359 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3360 moved to methods of dwarf2_per_objfile.
3361 (dwarf2_clear_marks): Remove.
3362 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3363 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3364 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3365 (dwarf2_per_objfile::remove_all_cus): New.
3366 (class free_cached_comp_units) <~free_cached_comp_units>:
3367 Update.
3368 (load_cu): Update.
3369 (dw2_do_instantiate_symtab): Adjust.
3370 (fill_in_sig_entry_from_dwo_entry): Adjust.
3371 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3372 (cutu_reader::cutu_reader): Likewise.
3373 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3374 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3375 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3376 and dwarf2_per_objfile::age_comp_units.
3377 (load_partial_comp_unit): Update.
3378 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3379 (process_queue): Likewise.
3380 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3381 backlink.
3382 (dwarf2_read_addr_index): Likewise.
3383 (follow_die_offset): Likewise.
3384 (dwarf2_fetch_die_loc_sect_off): Likewise.
3385 (dwarf2_fetch_constant_bytes): Likewise.
3386 (dwarf2_fetch_die_type_sect_off): Likewise.
3387 (follow_die_sig_1): Likewise.
3388 (load_full_type_unit): Likewise.
3389 (read_signatured_type): Likewise.
3390 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3391 (dwarf2_cu::~dwarf2_cu): Remove.
3392 (dwarf2_per_objfile::get_cu): New.
3393 (dwarf2_per_objfile::set_cu): New.
3394 (age_cached_comp_units): Rename to...
3395 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3396 to std::unordered_map.
3397 (free_one_cached_comp_unit): Rename to...
3398 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3399 to std::unordered_map.
3400 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3401 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3402 a dwarf2_per_objfile in data.
3403 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3404 (dwarf2_clear_marks): Remove.
3405
2e671100
SM
34062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3407
3408 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3409 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3410 (init_tu_and_read_dwo_dies): Likewise.
3411 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3412 (cutu_reader::cutu_reader): Likewise.
3413 (load_partial_comp_unit): Likewise.
3414 (process_psymtab_comp_unit): Update.
3415 (build_type_psymtabs_1): Update.
3416 (process_skeletonless_type_unit): Update.
3417 (load_full_comp_unit): Update.
3418 (find_partial_die): Update.
3419 (dwarf2_read_addr_index): Update.
3420 (read_signatured_type): Update.
3421
2e6a9f79
SM
34222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3423
3424 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3425 m_header_read_in>: New fields.
3426 <get_header>: New method.
3427 * dwarf2/read.c (per_cu_header_read_in): Remove.
3428 (dwarf2_per_cu_data::get_header): New.
3429 (dwarf2_per_cu_data::addr_size): Update.
3430 (dwarf2_per_cu_data::offset_size): Update.
3431 (dwarf2_per_cu_data::ref_addr_size): Update.
3432
1b555f17
SM
34332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3434
3435 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3436 (dw2_do_instantiate_symtab): Update.
3437 (queue_and_load_all_dwo_tus): Change parameter from
3438 dwarf2_per_cu_data to dwarf2_cu.
3439 (dwarf2_fetch_die_loc_sect_off): Update.
3440 (dwarf2_fetch_constant_bytes): Update.
3441 (dwarf2_fetch_die_type_sect_off): Update.
3442
8fc0b21d
SM
34432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3444
3445 * dwarf2/read.c (process_full_comp_unit,
3446 process_full_type_unit): Remove per_cu, per_objfile paramters.
3447 Add dwarf2_cu parameter.
3448 (process_queue): Update.
3449
168c9250
SM
34502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3451
3452 * dwarf2/read.c (create_cu_from_index_list): Replace
3453 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3454 (create_cus_from_index_list): Likewise.
3455 (create_cus_from_index): Likewise.
3456 (create_signatured_type_table_from_index): Likewise.
3457 (create_cus_from_debug_names_list): Likewise.
3458 (create_cus_from_debug_names): Likewise.
3459 (dwarf2_read_gdb_index): Update.
3460 (dwarf2_read_debug_names): Update.
3461
e286671b
TT
34622020-05-27 Tom Tromey <tom@tromey.com>
3463 Simon Marchi <simon.marchi@efficios.com>
3464
3465 * dwarf2/read.h (struct dwarf2_per_objfile)
3466 <get_type_for_signatured_type, set_type_for_signatured_type>:
3467 New methods.
3468 <m_type_map>: New member.
3469 (struct signatured_type) <type>: Remove.
3470 * dwarf2/read.c
3471 (dwarf2_per_objfile::get_type_for_signatured_type,
3472 dwarf2_per_objfile::set_type_for_signatured_type): New.
3473 (get_signatured_type): Use new methods.
3474
8adb8487
TT
34752020-05-27 Tom Tromey <tom@tromey.com>
3476 Simon Marchi <simon.marchi@efficios.com>
3477
3478 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3479 (struct dwarf2_per_objfile) <type_units>: New member.
3480 <get_type_unit_group_unshareable>: New method.
3481 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3482 num_symtabs, symtabs>: Remove; move to
3483 type_unit_group_unshareable.
3484 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3485 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3486 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3487
127bbf4b
SM
34882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3489
3490 * dwarf2/read.h (struct dwarf2_per_cu_data):
3491 <dwarf2_per_objfile>: Remove.
3492 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3493 dwarf2_per_objfile.
3494 (create_signatured_type_table_from_index): Likewise.
3495 (create_signatured_type_table_from_debug_names): Likewise.
3496 (create_debug_type_hash_table): Likewise.
3497 (fill_in_sig_entry_from_dwo_entry): Likewise.
3498 (create_type_unit_group): Likewise.
3499 (read_comp_units_from_section): Likewise.
3500 (create_cus_hash_table): Likewise.
3501
f6e649dd
SM
35022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3503
3504 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3505 dwarf2_per_cu_data::dwarf2_per_objfile.
3506 (compute_compunit_symtab_includes): Likewise.
3507 (dwarf2_cu::start_symtab): Likewise.
3508
aa66c379
SM
35092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3510
3511 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3512 parameter.
3513 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3514 (read_namespace_alias): Update.
3515 (lookup_die_type): Update.
3516 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3517 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3518 Update.
3519 (disassemble_dwarf_expression): Update.
3520
120ce1b5
SM
35212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3522
3523 * dwarf2/read.h (struct dwarf2_queue_item): Add
3524 dwarf2_per_objfile parameter, assign new parameter.
3525 <per_objfile>: New field.
3526 * dwarf2/read.c (free_one_cached_comp_unit): Add
3527 dwarf2_per_objfile parameter.
3528 (queue_comp_unit): Likewise.
3529 (dw2_do_instantiate_symtab): Update.
3530 (process_psymtab_comp_unit): Update.
3531 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3532 (process_imported_unit_die): Update.
3533 (queue_and_load_dwo_tu): Update.
3534 (follow_die_offset): Update.
3535 (follow_die_sig_1): Update.
3536
9f47c707
SM
35372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3538
3539 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3540 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3541 (read_call_site_scope): Assign per_objfile.
3542 (dwarf2_per_cu_data::objfile): Remove.
3543 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3544 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3545 dwarf2_per_objfile parameter.
3546 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3547 dwarf2_per_objfile parameter.
3548 (dwarf_expr_reg_to_entry_parameter): Add output
3549 dwarf2_per_objfile parameter.
3550 (locexpr_get_frame_base): Update.
3551 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3552 <push_dwarf_reg_entry_value>: Update.
3553 <call_site_to_target_addr>: Update.
3554 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3555 parameter.
3556 (value_of_dwarf_reg_entry): Update.
3557 (rw_pieced_value): Update.
3558 (indirect_synthetic_pointer): Update.
3559 (dwarf2_evaluate_property): Update.
3560 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3561 parameter.
3562 (locexpr_read_variable): Update.
3563 (locexpr_get_symbol_read_needs): Update.
3564 (loclist_read_variable): Update.
3565
14095eb3
SM
35662020-05-27 Simon Marchi <simon.marchi@efficios.com>
3567
3568 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3569 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3570 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3571 parameter.
3572 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3573 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3574 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3575 parameter.
3576 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3577 sect_variable_value): Add dwarf2_per_objfile parameter.
3578 (class dwarf_evaluate_loc_desc) <dwarf_call,
3579 dwarf_variable_value>: Update.
3580 (fetch_const_value_from_synthetic_pointer): Add
3581 dwarf2_per_objfile parameter.
3582 (fetch_const_value_from_synthetic_pointer): Update.
3583 (coerced_pieced_ref): Update.
3584 (class symbol_needs_eval_context) <dwarf_call,
3585 dwarf_variable_value>: Update.
3586 (dwarf2_compile_expr_to_ax): Update.
3587
3c3cd3d4
SM
35882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3591 parameter.
3592 (dwarf2_evaluate_loc_desc_full): Update.
3593
82ca3f51
SM
35942020-05-27 Simon Marchi <simon.marchi@efficios.com>
3595
3596 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3597 parameter.
3598 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3599 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3600 dwarf2_per_objfile parameter.
3601 (decode_debug_loc_dwo_addresses): Likewise.
3602 (dwarf2_find_location_expression): Update.
3603 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3604 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3605 parameter.
3606 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3607 parameter.
3608 (locexpr_describe_location_1): Likewise.
3609 (locexpr_describe_location): Update.
3610
4b167ea1
SM
36112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3612
3613 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3614 Remove.
3615 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3616 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3617 (dwarf2_compile_property_to_c): Update.
3618 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3619 use text offset from objfile.
3620 (locexpr_tracepoint_var_ref): Update.
3621 (locexpr_generate_c_location): Update.
3622 (loclist_describe_location): Update.
3623 (loclist_tracepoint_var_ref): Update.
3624 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3625 dwarf2_per_objfile parameter.
3626 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3627 use text offset from objfile.
3628 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3629
89b07335
SM
36302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3631
3632 * dwarf2/expr.h (struct dwarf_expr_context)
3633 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3634 <offset>: Remove.
3635 <per_objfile>: New member.
3636 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3637 dwarf2_per_objfile parameter. Don't set offset, set
3638 per_objfile.
3639 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3640 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3641 a dwarf2_per_objfile object instead of an offset.
3642 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3643 constructor.
3644 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3645 to dwarf2_expr_executor constructor. Don't set offset.
3646 (dwarf2_fetch_cfa_info): Update.
3647 (struct dwarf2_frame_cache) <text_offset>: Remove.
3648 <per_objfile>: New field.
3649 (dwarf2_frame_cache): Update.
3650 (dwarf2_frame_prev_register): Update.
3651 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3652 <dwarf_evaluate_loc_desc>: Add constructor.
3653 (dwarf2_evaluate_loc_desc_full): Update.
3654 (dwarf2_locexpr_baton_eval): Update.
3655 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3656 Add constructor.
3657 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3658
293e7e51
SM
36592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3660
3661 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3662 addr_sized_int_type>: Move to dwarf2_cu.
3663 <int_type>: Move to dwarf2_per_objfile.
3664 (struct dwarf2_per_objfile) <int_type>: Move here.
3665 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3666 addr_sized_int_type>: Move here.
3667 (read_func_scope): Update.
3668 (read_array_type): Update.
3669 (read_tag_string_type): Update.
3670 (attr_to_dynamic_prop): Update.
3671 (dwarf2_per_cu_data::int_type): Rename to...
3672 (dwarf2_per_objfile::int_type): ... this.
3673 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3674 (dwarf2_cu::addr_sized_int_type): ... this.
3675 (read_subrange_type): Update.
3676 (dwarf2_per_cu_data::addr_type): Rename to...
3677 (dwarf2_cu::addr_type): ... this.
3678 (set_die_type): Update.
3679
64874a40
SM
36802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3681
3682 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3683 data through per_cu->cu.
3684
4ab09049
SM
36852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3686
3687 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3688 dwarf2_per_cu_data parameter fo dwarf2_cu.
3689 (lookup_dwo_type_unit): Likewise.
3690 (read_cutu_die_from_dwo): Likewise.
3691 (lookup_dwo_unit): Likewise.
3692 (open_and_init_dwo_file): Likewise.
3693 (lookup_dwo_cutu): Likewise.
3694 (lookup_dwo_comp_unit): Likewise.
3695 (lookup_dwo_type_unit): Likewise.
3696 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3697 (cutu_reader::cutu_reader): Update.
3698
47b14e86
SM
36992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3700
3701 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3702 parameter.
3703 (process_full_type_unit): Likewise.
3704 (process_queue): Update.
3705
43182c09
SM
37062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * dwarf2/read.c (recursively_compute_inclusions): Add
3709 dwarf2_per_objfile parameter.
3710 (compute_compunit_symtab_includes): Likewise.
3711 (process_cu_includes): Update.
3712
7aa104c4
SM
37132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3714
3715 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3716 parameter.
3717 (create_type_unit_group): Update.
3718 (process_psymtab_comp_unit_reader): Update.
3719 (build_type_psymtabs_reader): Update.
3720
e3beb21d
SM
37212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3722
3723 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3724 object through m_this_cu->cu.
3725
d460f660
SM
37262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3727
3728 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3729 the info parameter.
3730 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3731
ab432490
SM
37322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3733
3734 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3735 per_objfile parameter.
3736 (load_full_type_unit): Add per_objfile parameter.
3737 (read_signatured_type): Likewise.
3738 (load_full_comp_unit): Likewise.
3739 (load_cu): Likewise.
3740 (dw2_do_instantiate_symtab): Likewise.
3741 (dw2_get_file_names): Likewise.
3742 (dw2_map_symtabs_matching_filename): Update.
3743 (dw_expand_symtabs_matching_file_matcher): Update.
3744 (dw2_map_symbol_filenames): Update.
3745 (process_psymtab_comp_unit): Add per_objfile parameter.
3746 (build_type_psymtabs_1): Update.
3747 (process_skeletonless_type_unit): Update.
3748 (dwarf2_build_psymtabs_hard): Update.
3749 (load_partial_comp_unit): Add per_objfile parameter.
3750 (scan_partial_symbols): Update.
3751 (load_full_comp_unit): Add per_objfile parameter.
3752 (process_imported_unit_die): Update.
3753 (create_cus_hash_table): Update.
3754 (find_partial_die): Update.
3755 (dwarf2_read_addr_index): Update.
3756 (follow_die_offset): Update.
3757 (dwarf2_fetch_die_loc_sect_off): Update.
3758 (dwarf2_fetch_constant_bytes): Update.
3759 (dwarf2_fetch_die_type_sect_off): Update.
3760 (follow_die_sig_1): Update.
3761 (load_full_type_unit): Add per_objfile parameter.
3762 (read_signatured_type): Likewise.
3763
313bad1b
SM
37642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3765
3766 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3767 of objfile_name.
3768
c3699833
SM
37692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3770
3771 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3772 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3773 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3774 field.
3775 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3776 (create_cus_from_index): Update.
3777 (dwarf2_read_gdb_index): Update.
3778 (create_cus_from_debug_names): Update.
3779 (dwarf2_read_debug_names): Update.
3780 (get_abbrev_section_for_cu): Update.
3781 (create_all_comp_units): Update.
3782 (read_attribute_value): Update.
3783 (get_debug_line_section): Update.
3784 * dwarf2/index-cache.c (index_cache::store): Update.
3785 * dwarf2/index-write.c (save_gdb_index_command): Update.
3786 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3787
1859c670
SM
37882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3789
3790 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3791 member.
3792 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3793 dwarf2_per_cu_data::per_bfd.
3794 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3795 (create_type_unit_group): Likewise.
3796 (queue_comp_unit): Remove reference to
3797 per_cu->dwarf2_per_objfile.
3798 (maybe_queue_comp_unit): Likewise.
3799 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3800 (create_cus_hash_table): Assign new field.
3801
5e22e966
SM
38022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3803
3804 * dwarf2/read.c: Replace
3805 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3806 dwarf2_cu->per_objfile throughout.
3807
97a1449a
SM
38082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3809
3810 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3811 parameter, don't use per_cu->dwarf2_per_objfile.
3812 (dw2_instantiate_symtab): Likewise.
3813 (dw2_find_last_source_symtab): Update.
3814 (dw2_map_expand_apply): Update.
3815 (dw2_lookup_symbol): Update.
3816 (dw2_expand_symtabs_for_function): Update.
3817 (dw2_expand_all_symtabs): Update.
3818 (dw2_expand_symtabs_with_fullname): Update.
3819 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3820 don't use per_cu->dwarf2_per_objfile.
3821 (dw2_expand_marked_cus): Update.
3822 (dw2_find_pc_sect_compunit_symtab): Update.
3823 (dw2_debug_names_lookup_symbol): Update.
3824 (dw2_debug_names_expand_symtabs_for_function): Update.
3825 (dw2_debug_names_map_matching_symbols): Update.
3826 (dwarf2_psymtab::expand_psymtab): Update.
3827
9e021579
SM
38282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3829
3830 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3831 <per_objfile>: New member.
3832 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3833 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3834 call to dwarf2_cu.
3835 (cutu_reader::cutu_reader): Update.
3836 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3837
ae090bdb
SM
38382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3839
3840 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3841 struct dwarf2_per_objfile.
3842 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3843 dwarf2_per_bfd.
3844 * dwarf2/read.c (set_die_type): Update.
3845 (get_die_type_at_offset): Update.
3846
af758d11
SM
38472020-05-27 Tom Tromey <tom@tromey.com>
3848 Simon Marchi <simon.marchi@efficios.com>
3849
3850 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3851 method.
3852 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3853 get_symtab, set_symtab>: New methods.
3854 <m_symtabs>: New field.
3855 (struct dwarf2_psymtab): Derive from partial_symtab.
3856 <readin_p, get_compunit_symtab>: Declare methods.
3857 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3858 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3859 New methods.
3860 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3861 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3862 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3863 (dw2_symtab_iter_next, dw2_print_stats)
3864 (dw2_expand_symtabs_with_fullname)
3865 (dw2_expand_symtabs_matching_one)
3866 (dw_expand_symtabs_matching_file_matcher)
3867 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3868 (dw2_debug_names_iterator::next)
3869 (dw2_debug_names_map_matching_symbols)
3870 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3871 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3872 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3873 New methods.
3874 (get_compunit_symtab, process_full_comp_unit)
3875 (process_full_type_unit): Update.
3876 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3877
5989a64e
SM
38782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3879
3880 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3881 then introduce a new dwarf2_per_objfile type.
3882 <read_line_string>: Move to the new dwarf2_per_objfile type.
3883 <objfile>: Likewise.
3884 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3885 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3886 dwarf2_per_objfile->per_bfd.
3887 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3888 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3889 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3890 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3891 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3892 (dwarf2_per_objfile::locate_sections): Rename to...
3893 (dwarf2_per_bfd::locate_sections): ... this.
3894 (dwarf2_per_objfile::get_cutu): Rename to...
3895 (dwarf2_per_bfd::get_cutu): ... this.
3896 (dwarf2_per_objfile::get_cu): Rename to...
3897 (dwarf2_per_bfd::get_cu): ... this.
3898 (dwarf2_per_objfile::get_tu): Rename to...
3899 (dwarf2_per_bfd::get_tu): ... this.
3900 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3901 (dwarf2_per_bfd::allocate_per_cu): ... this.
3902 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3903 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3904 (get_gdb_index_contents_ftype): Change parameter from
3905 dwarf2_per_objfile to dwarf2_per_bfd.
3906 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3907 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3908
a50264ba
TT
39092020-05-27 Tom Tromey <tom@tromey.com>
3910 Simon Marchi <simon.marchi@efficios.com>
3911
3912 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3913 (allocate_piece_closure): Set "per_objfile" member.
3914 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3915 (locexpr_describe_location, loclist_describe_location): Use new
3916 member.
3917 * dwarf2/read.c (read_call_site_scope)
3918 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3919 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3920 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3921 handle_data_member_location): Set per_objfile member.
3922 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3923 member.
3924 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3925
d3473f0c
TT
39262020-05-27 Tom Tromey <tom@tromey.com>
3927
3928 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3929 allocate_signatured_type>: Declare new methods.
3930 <m_num_psymtabs>: New member.
3931 (struct dwarf2_per_cu_data) <index>: New member.
3932 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3933 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3934 (create_cu_from_index_list): Use allocate_per_cu.
3935 (create_signatured_type_table_from_index)
3936 (create_signatured_type_table_from_debug_names)
3937 (create_debug_type_hash_table, add_type_unit)
3938 (read_comp_units_from_section): Use allocate_signatured_type.
3939
5717c425
TT
39402020-05-27 Tom Tromey <tom@tromey.com>
3941
3942 * psymtab.c (partial_map_expand_apply)
3943 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3944 (psym_lookup_global_symbol_language)
3945 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3946 (psym_print_stats, psym_expand_symtabs_for_function)
3947 (psym_map_symbol_filenames, psym_map_matching_symbols)
3948 (psym_expand_symtabs_matching)
3949 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3950 (maintenance_check_psymtabs): Update.
3951 * psympriv.h (struct partial_symtab) <readin_p,
3952 get_compunit_symtab>: Add objfile parameter.
3953 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3954 Likewise.
3955 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3956 get_compunit_symtab>: Likewise.
3957 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3958
45940949
TT
39592020-05-27 Tom Tromey <tom@tromey.com>
3960
3961 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3962 member.
3963 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3964 (create_cu_from_index_list)
3965 (create_signatured_type_table_from_index)
3966 (create_signatured_type_table_from_debug_names)
3967 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3968 (dwarf2_create_include_psymtab)
3969 (create_debug_type_hash_table, add_type_unit)
3970 (create_type_unit_group, read_comp_units_from_section)
3971 (dwarf2_compute_name, create_cus_hash_table)
3972 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3973 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3974 obstack.
3975 (dw2_get_real_path): Likewise. Change argument to
3976 dwarf2_per_objfile.
3977
f8c6d152
LM
39782020-05-27 Luis Machado <luis.machado@linaro.org>
3979
3980 PR tdep/26000
3981 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3982 for ldrd (immediate).
3983
e98d2e6d
PW
39842020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3985
3986 * command.h: Add comment giving the name of class_tui.
3987 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3988 create the fake command for the help for class_tui.
3989
53a47a3e
TT
39902020-05-26 Tom Tromey <tromey@adacore.com>
3991
3992 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3993 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3994 (val_atr): New function.
3995 (value_val_atr): Use it.
3996 * ada-valprint.c (print_optional_low_bound): Change low bound
3997 handling for enums.
3998 (val_print_packed_array_elements): Don't call discrete_position.
3999 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4000 discrete_position for enum types.
4001 * language.c (default_print_array_index): Change type.
4002 * language.h (struct language_defn) <la_print_array_index>: Add
4003 index_type parameter, change type of index_value.
4004 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4005 (default_print_array_index): Update.
4006 * valprint.c (maybe_print_array_index): Don't call
4007 value_from_longest. Update.
4008 (value_print_array_elements): Don't call discrete_position.
4009
0bc2354b
TT
40102020-05-26 Tom Tromey <tromey@adacore.com>
4011
4012 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4013 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4014
1218a4bf
CDA
40152020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4016
4017 PR gdb/13519
4018 * avr-tdep.c (avr_integer_to_address): Return data or code
4019 address accordingly to the second 'type' argument of the
4020 function.
4021
92651b1d
MW
40222020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4023
4024 * infcmd.c, inferior.h: (construct_inferior_arguments):
4025 Moved function from here to gdbsupport/common-inferior.{h,cc}
4026
0a4f5f8c
TT
40272020-05-23 Tom Tromey <tom@tromey.com>
4028
4029 Revert commit eca1f90c:
4030 * NEWS: Remove entry for completion styling.
4031 * completer.c (_rl_completion_prefix_display_length): Move
4032 declaration later.
4033 (gdb_fnprint): Revert.
4034 (gdb_display_match_list_1): Likewise.
4035 * cli/cli-style.c (completion_prefix_style)
4036 (completion_difference_style, completion_suffix_style): Remove.
4037 (_initialize_cli_style): Revert.
4038 * cli/cli-style.h (completion_prefix_style)
4039 (completion_difference_style, completion_suffix_style): Don't
4040 declare.
4041
e08bd6c5
PA
40422020-05-24 Pedro Alves <palves@redhat.com>
4043
4044 * symtab.c (completion_list_add_name): Return boolean indication
4045 of whether the symbol matched.
4046 (completion_list_add_symbol): Don't try to remove C++ aliases if
4047 the symbol didn't match in the first place.
4048 * symtab.h (completion_list_add_name): Return bool.
4049
ceacbf6e
SM
40502020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4051
4052 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4053 type::field.
4054
26f16254
JB
40552020-05-23 Joel Brobecker <brobecker@adacore.com>
4056
4057 GDB 9.2 released.
4058
eca1f90c
TT
40592020-05-23 Tom Tromey <tom@tromey.com>
4060
4061 * NEWS: Add entry for completion styling.
4062 * completer.c (_rl_completion_prefix_display_length): Move
4063 declaration earlier.
4064 (gdb_fnprint): Use completion_style.
4065 (gdb_display_match_list_1): Likewise.
4066 * cli/cli-style.c (completion_prefix_style)
4067 (completion_difference_style, completion_suffix_style): New
4068 globals.
4069 (_initialize_cli_style): Register new globals.
4070 * cli/cli-style.h (completion_prefix_style)
4071 (completion_difference_style, completion_suffix_style): Declare.
4072
51e2cfa2
PA
40732020-05-23 Pedro Alves <palves@redhat.com>
4074
4075 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4076 (parse_escape): Use ISDIGIT instead of isdigit.
4077 (puts_debug): Use gdb_isprint instead of isprint.
4078 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4079 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4080 ISSPACE instead of isspace.
4081 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4082 instead of isspace.
4083 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4084 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4085 instead of isxdigit and ISDIGIT instead of isdigit.
4086
80fc5e77
SM
40872020-05-22 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * gdbtypes.h (struct type) <field>: New method.
4090 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4091 or type::field.
4092
3cabb6b0
SM
40932020-05-22 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4096 (TYPE_FIELDS): Use type::fields. Change all call sites that
4097 modify the propery to use type::set_fields instead.
4098
1f704f76
SM
40992020-05-22 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4102 type::num_fields instead.
4103
5e33d5f4
SM
41042020-05-22 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4107 methods.
4108 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4109 that modify the number of fields to use type::set_num_fields
4110 instead.
4111
9392ebb3
TT
41122020-05-22 Tom Tromey <tromey@adacore.com>
4113
4114 * compile/compile-object-load.h (munmap_list_free): Don't
4115 declare.
4116
7c13f4e8
AB
41172020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4118
4119 * annotate.c (annotate_source_line): Update return type, add call
4120 to update current symtab and line.
4121 * annotate.h (annotate_source_line): Update return type, and
4122 extend header comment.
4123 * source.c (info_line_command): Check annotation_level before
4124 calling annotate_source_line.
4125 * stack.c (print_frame_info): If calling annotate_source_line
4126 returns true, then don't print any other source line information.
4127
aa370940
SM
41282020-05-21 Simon Marchi <simon.marchi@efficios.com>
4129
4130 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4131
84d53fa9
SM
41322020-05-21 Simon Marchi <simon.marchi@efficios.com>
4133
4134 * coffread.c (patch_type): Remove NULL check before xfree.
4135 * corefile.c (set_gnutarget): Likewise.
4136 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4137 * exec.c (build_section_table): Likewise.
4138 * remote.c (remote_target::pass_signals): Likewise.
4139 * utils.c (n_spaces): Likewise.
4140 * cli/cli-script.c (document_command): Likewise.
4141 * i386-windows-tdep.c (core_process_module_section): Likewise.
4142 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4143
9d428aae
SM
41442020-05-20 Simon Marchi <simon.marchi@efficios.com>
4145
4146 * symfile.c (reread_symbols): Clear objfile's section_offsets
4147 vector and section indices, re-compute them by calling
4148 sym_offsets.
4149
250106a7
TT
41502020-05-20 Tom Tromey <tromey@adacore.com>
4151
4152 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4153 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4154
9a0bacfb
TV
41552020-05-20 Tom de Vries <tdevries@suse.de>
4156
4157 PR symtab/25833
4158 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4159
7b958a48
AM
41602020-05-20 Alan Modra <amodra@gmail.com>
4161
4162 PR 25993
4163 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4164 bfd_set_filename.
4165 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4166 passed to bfd_set_filename.
4167 * symfile-mem.c (add_vsyscall_page): Likewise for string
4168 passed to symbol_file_add_from_memory.
4169 (symbol_file_add_from_memory): Make name param a const char* and
4170 don't strdup.
4171
c7e97679
AM
41722020-05-20 Alan Modra <amodra@gmail.com>
4173
4174 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4175 rather than accessing bfd->filename directly.
4176 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4177 and use bfd_section_name.
4178 * dwarf2/frame.c (decode_frame_entry): Likewise.
4179 * exec.c (exec_set_section_address): Likewise.
4180 * solib-aix.c (solib_aix_bfd_open): Likewise.
4181 * stap-probe.c (get_stap_base_address): Likewise.
4182 * symfile.c (reread_symbols): Likewise.
4183
563c591b
TT
41842020-05-19 Tom Tromey <tromey@adacore.com>
4185
4186 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4187
f408d82c
SM
41882020-05-19 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4191
98c59b52
PA
41922020-05-19 Pedro Alves <palves@redhat.com>
4193
4194 * NEWS (set exec-file-mismatch): Adjust entry.
4195 * exec.c: Include "build-id.h".
4196 (validate_exec_file): Try to match build IDs instead of filenames.
4197 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4198 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4199 and pass down 'warn_if_slow'.
4200 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4201 gdb_bfd_open_closure to pass it down.
4202 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4203
4111f652
PA
42042020-05-19 Pedro Alves <palves@redhat.com>
4205
4206 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4207 * target.c (target_fileio_open_1): Rename to target_fileio_open
4208 and make extern. Use bool.
4209 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4210 (target_fileio_read_alloc_1): Adjust.
4211 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4212 (target_fileio_open_warn_if_slow): Delete declaration.
4213
ad80db5b
PA
42142020-05-19 Pedro Alves <palves@redhat.com>
4215
4216 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4217 Adjust all callers.
4218
1d6ce4d3
YS
42192020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4220
4221 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4222 whether disp is negative.
4223
9005fbbb
SM
42242020-05-19 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * symfile.h (struct symfile_segment_data)
4227 <~symfile_segment_data>: Remove.
4228 <segment_info>: Change to std::vector.
4229 * symfile.c (default_symfile_segments): Update.
4230 * elfread.c (elf_symfile_segments): Update.
4231
68b888ff
SM
42322020-05-19 Simon Marchi <simon.marchi@efficios.com>
4233
4234 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4235 <segments>: New.
4236 <segment_bases, segment_sizes>: Remove.
4237 * symfile.c (default_symfile_segments): Update.
4238 * elfread.c (elf_symfile_segments): Update.
4239 * remote.c (remote_target::get_offsets): Update.
4240 * solib-target.c (solib_target_relocate_section_addresses):
4241 Update.
4242
62982abd
SM
42432020-05-19 Simon Marchi <simon.marchi@efficios.com>
4244
4245 * symfile.h (struct symfile_segment_data): Initialize fields.
4246 <~symfile_segment_data>: Add.
4247 (symfile_segment_data_up): New.
4248 (struct sym_fns) <sym_segments>: Return a
4249 symfile_segment_data_up.
4250 (default_symfile_segments): Return a symfile_segment_data_up.
4251 (free_symfile_segment_data): Remove.
4252 (get_symfile_segment_data): Return a symfile_segment_data_up.
4253 * symfile.c (default_symfile_segments): Likewise.
4254 (get_symfile_segment_data): Likewise.
4255 (free_symfile_segment_data): Remove.
4256 (symfile_find_segment_sections): Update.
4257 * elfread.c (elf_symfile_segments): Return a
4258 symfile_segment_data_up.
4259 * remote.c (remote_target::get_offsets): Update.
4260 * solib-target.c (solib_target_relocate_section_addresses):
4261 Update.
4262 * symfile-debug.c (debug_sym_segments): Return a
4263 symfile_segment_data_up.
4264
7f204339
RO
42652020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4266
e52a0f1b
RO
4267 PR build/25981
4268 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4269 Hardcode register numbers.
4270
7f204339
RO
4271 PR build/25981
4272 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4273 procfs_find_LDT_entry): Remove.
4274 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4275 procfs_find_LDT_entry): Remove.
4276 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4277 Remove.
4278
7f32a4d5
PA
42792020-05-17 Pedro Alves <palves@redhat.com>
4280 Andrew Burgess <andrew.burgess@embecosm.com>
4281 Keno Fischer <keno@juliacomputing.com>
4282
4283 PR gdb/25741
4284 * breakpoint.c (build_target_condition_list): Update comments.
4285 (build_target_command_list): Update comments and skip matching
4286 locations.
4287 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4288 a separate function. Simplify "set breakpoint auto-hw off"
4289 handling.
4290 (insert_breakpoints): Update comment.
4291 (tracepoint_locations_match): New parameter. For breakpoints,
4292 compare location types too, if the caller wants to.
4293 (handle_automatic_hardware_breakpoints): New functions.
4294 (bp_location_is_less_than): Also sort by location type and
4295 hardware breakpoint length.
4296 (update_global_location_list): Handle "set breakpoint auto-hw on"
4297 here.
4298 (update_breakpoint_locations): Ask breakpoint_locations_match to
4299 ignore location types.
4300
7d93a1e0
SM
43012020-05-16 Simon Marchi <simon.marchi@efficios.com>
4302
4303 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4304 type::name instead.
4305
d0e39ea2
SM
43062020-05-16 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * gdbtypes.h (struct type) <name, set_name>: New methods.
4309 (TYPE_CODE): Use type::name. Change all call sites used to set
4310 the name to use type::set_name instead.
4311
2dab0c7b
TT
43122020-05-16 Tom Tromey <tom@tromey.com>
4313
4314 * top.c (quit_force): Update.
4315 * infrun.c (handle_no_resumed): Update.
4316 * top.h (all_uis): New function.
4317 (ALL_UIS): Remove.
4318
59f7bd8d
SM
43192020-05-16 Simon Marchi <simon.marchi@efficios.com>
4320
4321 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4322
9bf058f0
PA
43232020-05-16 Pedro Alves <palves@redhat.com>
4324
4325 * ia64-linux-nat.c
4326 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4327 Declare method.
4328 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4329
8f86ae1a
SM
43302020-05-15 Simon Marchi <simon.marchi@efficios.com>
4331
4332 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4333 (sparc64_adi_info): Likewise.
4334
d6bc0792
TT
43352020-05-15 Tom Tromey <tom@tromey.com>
4336
4337 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4338 block_objfile.
4339 (lookup_objfile_from_block): Remove.
4340 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4341 (lookup_global_symbol): Use block_objfile.
4342 * symtab.h (lookup_objfile_from_block): Don't declare.
4343 * printcmd.c (clear_dangling_display_expressions): Use
4344 block_objfile.
4345 * parse.c (operator_check_standard): Use block_objfile.
4346
8c14c3a3
TT
43472020-05-15 Tom Tromey <tom@tromey.com>
4348
4349 * language.c (language_alloc_type_symbol): Set
4350 SYMBOL_SECTION.
4351 * symtab.c (initialize_objfile_symbol): Remove.
4352 (allocate_symbol): Remove.
4353 (allocate_template_symbol): Remove.
4354 * dwarf2/read.c (fixup_go_packaging): Use "new".
4355 (new_symbol): Use "new".
4356 (read_variable): Don't call initialize_objfile_symbol. Use
4357 "new".
4358 (read_func_scope): Use "new".
4359 * xcoffread.c (process_xcoff_symbol): Don't call
4360 initialize_objfile_symbol.
4361 (SYMBOL_DUP): Remove.
4362 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4363 "new".
4364 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4365 (allocate_template_symbol): Don't declare.
4366 (struct symbol): Add copy constructor. Change defaults.
4367 * jit.c (finalize_symtab): Use "new".
4368 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4369 Use "new".
4370 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4371 (common_block_end): Use "new".
4372 * mdebugread.c (parse_symbol): Use "new".
4373 (new_symbol): Likewise.
4374
5b4a1a8d
PW
43752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4376
4377 * NEWS: Mention changes to help and apropos.
4378
57b4f16e
PW
43792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4380
4381 * command.h (enum command_class): Improve comments, document
4382 that class_alias is for user-defined aliases, give the class
4383 name for each class, remove unused class_xdb.
4384 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4385 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4386 by a precise class.
4387 * infcmd.c (_initialize_infcmd): Likewise.
4388 * reverse.c (_initialize_reverse): Likewise.
4389 * stack.c (_initialize_stack): Likewise.
4390 * symfile.c (_initialize_symfile): Likewise.
4391 * tracepoint.c (_initialize_tracepoint): Likewise.
4392
7c05caf7
PW
43932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4394
4395 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4396 when their aliased command is traversed.
4397 (help_cmd): Add fput_command_names_styled call to
4398 output command name and aliases when command has an alias.
4399
3b3aaacb
PW
44002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4401
4402 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4403 * cli/cli-decode.c (help_cmd_list): Declare as static,
4404 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4405 a command together with the command.
4406 (fput_command_name_styled, fput_command_names_styled): New functions.
4407 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4408 fput_command_name_styled.
4409 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4410 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4411
7aa1b46f
PW
44122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4413
4414 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4415 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4416 * command.h (cmd_show_list): Likewise.
4417 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4418 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4419
89bcba74
PW
44202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4421
4422 * unittests/command-def-selftests.c (traverse_command_structure):
4423 Verify all commands of a list have the same prefix command and
4424 that only the top cmdlist commands have a null prefix.
4425
3f4d92eb
PW
44262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4427
4428 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4429 as prefix, not one of its aliases.
4430 (set_cmd_prefix): Remove.
4431 (do_add_cmd): Centralize the setting of the prefix of a command, when
4432 command is defined after its full chain of prefix commands.
4433 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4434 (add_setshow_cmd_full): Likewise.
4435 (update_prefix_field_of_prefixed_commands): New function.
4436 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4437 update_prefix_field_of_prefixed_commands.
4438 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4439 addresses of remote_set_cmdlist and remote_show_cmdlist given
4440 as argument, not the address of an argument.
4441 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4442 * gdb/remote.c (_initialize_remote): Likewise.
4443
0605465f
PW
44442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4445
4446 * cli/cli-cmds.c (alias_command): Check for an existing alias
4447 using lookup_cmd_composition, as valid_command_p is too strict
4448 and forbids aliases that are the prefix of an existing alias
4449 or command.
4450 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4451 command is properly recognised as a valid command.
4452
58e6ac70
PW
44532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4454
4455 * unittests/help-doc-selftests.c: Rename to
4456 unittests/command-def-selftests.c
4457 * unittests/command-def-selftests.c (help_doc_tests): Update some
4458 comments.
4459 (command_structure_tests, traverse_command_structure): New namespace
4460 and function.
4461 (command_structure_invariants_tests): New function.
4462 (_initialize_command_def_selftests) Renamed from
4463 _initialize_help_doc_selftests, register command_structure_invariants
4464 selftest.
4465
a7b9ceb8
PW
44662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4467
4468 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4469 an alias of 'show'.
4470
b2188a06
JB
44712020-05-15 Joel Brobecker <brobecker@adacore.com>
4472
4473 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4474 ada_is_fixed_point_type. Update all callers.
4475 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4476 all callers.
4477 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4478 Update all callers.
4479 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4480 print_fixed_point_type. Update all callers.
4481 * ada-valprint.c (ada_value_print_num): Replace call to
4482 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4483
a51951c2
KB
44842020-05-14 Kevin Buettner <kevinb@redhat.com>
4485
4486 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4487 processors.
4488 (cpu_supports_bts): Add CV_AMD case.
4489
29d6859f
LM
44902020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4491 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * infrun.c (stop_all_threads): Collect multiple wait events at
4494 each pass.
4495
78134374
SM
44962020-05-14 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4499 type::code instead.
4500
67607e24
SM
45012020-05-14 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * gdbtypes.h (struct type) <code, set_code>: New methods.
4504 (TYPE_CODE): Use type::code. Change all call sites used to set
4505 the code to use type::set_code instead.
4506
a05575d3
TBA
45072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4508 Tom de Vries <tdevries@suse.de>
4509 Pedro Alves <palves@redhat.com>
4510
4511 PR threads/25478
4512 * infrun.c (stop_all_threads): Do NOT ignore
4513 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4514 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4515 received.
4516 (handle_no_resumed): Remove code handling a live inferior with no
4517 threads.
4518 * remote.c (has_single_non_exited_thread): New.
4519 (remote_target::update_thread_list): Do not delete a thread if is
4520 the last thread of the process.
4521 * thread.c (thread_select): Call delete_exited_threads instead of
4522 prune_threads.
4523
6ad82919
TBA
45242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4525
4526 * infrun.c (stop_all_threads): Enable/disable thread events of all
4527 targets. Move a debug message denoting the end of the function
4528 into the SCOPED_EXIT block.
4529
d890404b
TBA
45302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4531
4532 * process-stratum-target.h: Include <set>.
4533 (all_non_exited_process_targets, switch_to_target_no_thread): New
4534 function declarations.
4535 * process-stratum-target.c (all_non_exited_process_targets)
4536 (switch_to_target_no_thread): New function implementations.
4537
293b3ebc
TBA
45382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4539
4540 * infrun.c (handle_inferior_event): Extract out a piece of code
4541 into...
4542 (mark_non_executing_threads): ...this new function.
4543
7ca9b62a
TBA
45442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4545
4546 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4547 use.
4548
fc75c28b
TBA
45492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4550
4551 * regcache.c (regcache_read_pc_protected): New function
4552 implementation that returns 0 if the PC cannot read via
4553 'regcache_read_pc'.
4554 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4555 instead of 'regcache_read_pc'.
4556 (keep_going_pass_signal): Ditto.
4557
a89febbd
TT
45582020-05-13 Tom Tromey <tromey@adacore.com>
4559
4560 * ada-lang.c (align_value): Remove.
4561 (ada_template_to_fixed_record_type_1): Use align_up.
4562
f7e23710
TBA
45632020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4564
4565 * async-event.c: Update the copyright year.
4566 * async-event.h: Update the copyright year.
4567
02ff80c2
SM
45682020-05-12 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * objfiles.h (is_addr_in_objfile,
4571 shared_objfile_contains_address_p): Return bool.
4572 * objfile.c (is_addr_in_objfile,
4573 shared_objfile_contains_address_p): Return bool.
4574
4fd6c7e8
TT
45752020-05-11 Tom Tromey <tromey@adacore.com>
4576
4577 * cli/cli-cmds.c (info_command): Restore.
4578 (_initialize_cli_cmds): Use add_prefix_command for "info".
4579 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4580
5eb68a39
TT
45812020-05-11 Tom Tromey <tromey@adacore.com>
4582
4583 * ada-lang.c (ada_value_primitive_field): Now public.
4584 * ada-lang.h (ada_value_primitive_field): Declare.
4585 * ada-valprint.c (print_field_values): Use
4586 ada_value_primitive_field for wrapper fields.
4587
7666722f
TV
45882020-05-11 Tom de Vries <tdevries@suse.de>
4589
4590 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4591 MODULE_DOMAIN.
4592
3ee6bb11
TV
45932020-05-11 Tom de Vries <tdevries@suse.de>
4594
4595 PR symtab/25941
4596 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4597 with length 0, if not gdb-produced.
4598 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4599
43434996
TV
46002020-05-09 Tom de Vries <tdevries@suse.de>
4601
4602 PR gdb/25955
4603 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4604 calculation.
4605
2f78cffc
TT
46062020-05-09 Tom Tromey <tom@tromey.com>
4607
4608 * top.c (server_command): Now bool.
4609 * top.h (server_command): Now bool.
4610
4f7bc5ed
TT
46112020-05-08 Tom Tromey <tromey@adacore.com>
4612
4613 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4614 already being processed.
4615
8be4b118
TT
46162020-05-08 Tom Tromey <tom@tromey.com>
4617
4618 * printcmd.c (struct display) <next>: Remove.
4619 <display>: New constructor.
4620 <exp_string>: Now a std::string.
4621 <enabled_p>: Now a bool.
4622 (display_number): Move definition earlier.
4623 (displays): Rename from display_chain. Now a std::vector.
4624 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4625 (display_command): Update.
4626 (do_one_display, disable_display)
4627 (enable_disable_display_command, do_enable_disable_display):
4628 Update.
4629 (free_display): Remove.
4630 (clear_displays): Rewrite.
4631 (delete_display): Update.
4632 (map_display_numbers): Use function_view. Remove "data"
4633 parameter. Update.
4634 (do_delete_display): Remove.
4635 (undisplay_command): Update.
4636 (do_one_display, do_displays, disable_display)
4637 (info_display_command): Update.
4638 (do_enable_disable_display): Remove.
4639 (enable_disable_display_command)
4640 (clear_dangling_display_expressions): Update.
4641
94c93c35
TT
46422020-05-08 Tom Tromey <tom@tromey.com>
4643
4644 * symtab.c (set_symbol_cache_size)
4645 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4646 (maintenance_print_symbol_cache_statistics): Update.
4647 * symmisc.c (print_symbol_bcache_statistics)
4648 (print_objfile_statistics, maintenance_print_objfiles)
4649 (maintenance_info_symtabs, maintenance_check_symtabs)
4650 (maintenance_expand_symtabs, maintenance_info_line_tables):
4651 Update.
4652 * symfile-debug.c (set_debug_symfile): Update.
4653 * source.c (forget_cached_source_info): Update.
4654 * python/python.c (gdbpy_progspaces): Update.
4655 * psymtab.c (maintenance_info_psymtabs): Update.
4656 * probe.c (parse_probes): Update.
4657 * linespec.c (iterate_over_all_matching_symtabs)
4658 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4659 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4660 * exec.c (exec_target::close): Update.
4661 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4662 * breakpoint.c (print_one_breakpoint_location)
4663 (create_longjmp_master_breakpoint)
4664 (create_std_terminate_master_breakpoint): Update.
4665 * progspace.c (program_spaces): Now a std::vector.
4666 (maybe_new_address_space): Update.
4667 (add_program_space): Remove.
4668 (program_space::program_space): Update.
4669 (remove_program_space): Update.
4670 (number_of_program_spaces): Remove.
4671 (print_program_space, update_address_spaces): Update.
4672 * progspace.h (program_spaces): Change type.
4673 (ALL_PSPACES): Remove.
4674 (number_of_program_spaces): Don't declare.
4675 (struct program_space) <next>: Remove.
4676
a1fd1ac9
TT
46772020-05-08 Tom Tromey <tom@tromey.com>
4678
4679 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4680 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4681 (enable_break): Update.
4682 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4683 (frv_fdpic_find_canonical_descriptor): Update.
4684 (frv_fetch_objfile_link_map): Update.
4685 * progspace.c (program_space::free_all_objfiles): Update.
4686 (program_space::solibs): New method.
4687 * progspace.h (struct program_space) <solibs>: New method.
4688 * solist.h (master_so_list): Don't declare.
4689 (ALL_SO_LIBS): Remove.
4690 * solib.h (so_list_head): Remove.
4691 (update_solib_list): Update comment.
4692 * solib.c (master_so_list): Remove.
4693 (solib_used, update_solib_list, solib_add)
4694 (info_sharedlibrary_command, clear_solib)
4695 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4696
38eae084
TT
46972020-05-08 Tom Tromey <tom@tromey.com>
4698
4699 * extension.c (extension_languages): Now a std::array.
4700 (ALL_EXTENSION_LANGUAGES): Remove.
4701 (get_ext_lang_defn, get_ext_lang_of_file)
4702 (eval_ext_lang_from_control_command): Update.
4703 (finish_ext_lang_initialization)
4704 (auto_load_ext_lang_scripts_for_objfile)
4705 (ext_lang_type_printers::ext_lang_type_printers)
4706 (apply_ext_lang_type_printers)
4707 (ext_lang_type_printers::~ext_lang_type_printers)
4708 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4709 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4710 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4711 (get_matching_xmethod_workers, ext_lang_colorize)
4712 (ext_lang_before_prompt): Update.
4713 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4714
596dc4ad
TT
47152020-05-08 Tom Tromey <tom@tromey.com>
4716
4717 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4718 overload.
4719 <swap_string, m_string>: Remove.
4720 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4721 Update.
4722 * stabsread.c (define_symbol, read_type): Update.
4723 * linespec.c (find_linespec_symbols): Update.
4724 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4725 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4726 * dbxread.c (read_dbx_symtab): Update.
4727 * cp-support.h (cp_canonicalize_string_full)
4728 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4729 Return unique_xmalloc_ptr.
4730 * cp-support.c (inspect_type): Update.
4731 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4732 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4733 Likewise.
4734 * c-typeprint.c (print_name_maybe_canonical): Update.
4735 * break-catch-throw.c (check_status_exception_catchpoint):
4736 Update.
4737
bf4cb9be
TV
47382020-05-08 Tom de Vries <tdevries@suse.de>
4739
4740 * infrun.c (follow_fork): Copy current_line and current_symtab to
4741 child thread.
4742
a1b68f28
SM
47432020-05-07 Simon Marchi <simon.marchi@efficios.com>
4744
4745 * async-event.c (struct async_signal_handler, struct
4746 async_event_handler): Reformat, remove typedef.
4747
98d48915
SM
47482020-05-07 Simon Marchi <simon.marchi@efficios.com>
4749
4750 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4751 access thistype->main_type->dyn_prop_list directly.
4752
7aa91313
SM
47532020-05-07 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4756 (remove_dyn_prop): Remove. Update all users to use
4757 type::remove_dyn_prop.
4758 * gdbtypes.c (remove_dyn_prop): Rename to...
4759 (type::remove_dyn_prop): ... this.
4760
5c54719c
SM
47612020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4762
4763 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4764 (add_dyn_prop): Remove. Update all users to use
4765 type::add_dyn_prop.
4766 * gdbtypes.c (add_dyn_prop): Rename to...
4767 (type::add_dyn_prop): ... this.
4768
24e99c6c
SM
47692020-05-07 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4772 (get_dyn_prop): Remove. Update all users to use
4773 type::dyn_prop.
4774 * gdbtypes.c (get_dyn_prop): Rename to...
4775 (type::dyn_prop): ... this.
4776
0d4bf016
SM
47772020-05-06 Simon Marchi <simon.marchi@efficios.com>
4778
4779 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4780
ac4a4f1c
SM
47812020-05-06 Simon Marchi <simon.marchi@efficios.com>
4782
4783 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4784 instruction, skip it if it's there.
4785
a3bbacc1
SM
47862020-05-05 Simon Marchi <simon.marchi@efficios.com>
4787
4788 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4789
c3236f84
SM
47902020-05-04 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4793 * gdbtypes.c (recursive_dump_type): Remove use of
4794 TYPE_INCOMPLETE.
4795
3b6acaee
TT
47962020-05-03 Tom Tromey <tom@tromey.com>
4797
4798 * breakpoint.c (catch_command, tcatch_command): Remove.
4799 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4800 add_show_prefix_cmd.
4801 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4802 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4803 Remove.
4804 (add_internal_problem_command): Use add_basic_prefix_cmd,
4805 add_show_prefix_cmd.
4806 * mips-tdep.c (set_mipsfpu_command): Remove.
4807 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4808 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4809 (_initialize_index_cache): Use add_basic_prefix_cmd.
4810 * memattr.c (dummy_cmd): Remove.
4811 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4812 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4813 (_initialize_tui_win): Use add_basic_prefix_cmd,
4814 add_show_prefix_cmd.
4815 * cli/cli-logging.c (set_logging_command): Remove.
4816 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4817 add_show_prefix_cmd.
4818 (show_logging_command): Remove.
4819 * target.c (target_command): Remove.
4820 (add_target): Use add_basic_prefix_cmd.
4821
a51119cd
HD
48222020-05-02 Hannes Domani <ssbssa@yahoo.de>
4823
4824 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4825
652fc23a 48262020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4827
652fc23a
PW
4828 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4829 info_command.
4830
117539e6
KR
48312020-04-30 Kamil Rytarowski <n54@gmx.com>
4832
4833 * nbsd-nat.c (nbsd_enable_proc_events)
4834 (nbsd_nat_target::post_startup_inferior): Add.
4835 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4836 (nbsd_nat_target::update_thread_list): Rewrite.
4837 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4838 "PTRACE_LWP_CREATE".
4839 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4840
102e38eb 48412020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4842
102e38eb
PW
4843 * stack.c (_initialize_stack): Remove duplicated creation
4844 of "frame" command and "f" alias.
4845
ee9d1e5f
HD
48462020-04-30 Hannes Domani <ssbssa@yahoo.de>
4847
4848 PR gdb/18706
4849 * gdbtypes.c (check_typedef): Calculate size of array of
4850 stubbed type.
4851
627c7fb8
HD
48522020-04-30 Hannes Domani <ssbssa@yahoo.de>
4853
4854 PR gdb/15559
4855 * i386-tdep.c (i386_push_dummy_call): Call
4856 i386_thiscall_push_dummy_call.
4857 (i386_thiscall_push_dummy_call): New function.
4858 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4859 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4860 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4861
ffc2844e
SM
48622020-04-29 Simon Marchi <simon.marchi@efficios.com>
4863
4864 * gdbarch.sh (do_read): Add shellcheck disable directive for
4865 warning SC2162.
4866
1207375d
SM
48672020-04-29 Simon Marchi <simon.marchi@efficios.com>
4868
4869 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4870 "referenced but not assigned" warning.
4871
9fdb2916
SM
48722020-04-29 Simon Marchi <simon.marchi@efficios.com>
4873
4874 * gdbarch.sh: Remove code that sets fallbackdefault.
4875
759cea5e
SM
48762020-04-29 Simon Marchi <simon.marchi@efficios.com>
4877
4878 * gdbarch.sh: Use shell operators && and || instead of
4879 -a and -o.
4880
cb02ab24
SM
48812020-04-29 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * gdbarch.sh: Use $(...) instead of `...`.
4884
a6fc5ffc
SM
48852020-04-29 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * gdbarch.sh: Use double quotes around variables.
4888
8d113d13
SM
48892020-04-29 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * gdbarch.sh: Use %s with printf, instead of variables in the
4892 format string.
4893
ed6acedd
TT
48942020-04-29 Tom Tromey <tromey@adacore.com>
4895
4896 PR ada/25875:
4897 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4898 type fields here.
4899 (read_enumeration_type): Call
4900 update_enumeration_type_from_children later. Update comments.
4901 (process_enumeration_scope): Don't create type fields.
4902
b68b1b58
KR
49032020-04-29 Kamil Rytarowski <n54@gmx.com>
4904
4905 * nbsd-tdep.c: Include "xml-syscall.h".
4906 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4907
f94b2e03
KR
49082020-04-29 Kamil Rytarowski <n54@gmx.com>
4909
4910 * nbsd-nat.c: Include "sys/wait.h".
4911 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4912 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4913 (nbsd_nat_target::remove_exec_catchpoint)
4914 (nbsd_nat_target::set_syscall_catchpoint): Add.
4915 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4916 (nbsd_nat_target::insert_exec_catchpoint)
4917 (nbsd_nat_target::remove_exec_catchpoint)
4918 (nbsd_nat_target::set_syscall_catchpoint): Add.
4919 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4920 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4921 `nbsd_get_syscall_number'.
4922
fc49bc72
TT
49232020-04-29 Tom Tromey <tom@tromey.com>
4924
4925 * stack.c (print_block_frame_labels): Remove.
4926
d642b692
HD
49272020-04-29 Hannes Domani <ssbssa@yahoo.de>
4928
4929 PR gdb/17320
4930 * ada-valprint.c (val_print_packed_array_elements): Move array
4931 end bracket to new line.
4932 (ada_val_print_string): Remove extra spaces before first array
4933 element.
4934 * c-valprint.c (c_value_print_array): Likewise.
4935 * m2-valprint.c (m2_print_array_contents): Likewise.
4936 (m2_value_print_inner): Likewise.
4937 * p-valprint.c (pascal_value_print_inner): Likewise.
4938 * valprint.c (generic_val_print_array): Likewise.
4939 (value_print_array_elements): Move first array element and array
4940 end bracket to new line.
4941
ea90f227
TV
49422020-04-29 Tom de Vries <tdevries@suse.de>
4943
4944 PR symtab/25889
4945 * linespec.c (find_method): Fix ix calculation.
4946
4498ef4f
KR
49472020-04-28 Kamil Rytarowski <n54@gmx.com>
4948
4949 * syscalls/update-netbsd.sh: New file.
4950 * syscalls/netbsd.xml: Regenerate.
4951 * data-directory/Makefile.in: Register `netbsd.xml' in
4952 `SYSCALLS_FILES'.
4953
a55e30b5
SM
49542020-04-28 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * syscalls/update-freebsd.sh: Add double quotes.
4957
2b2fbab8
TT
49582020-04-28 Tom Tromey <tom@tromey.com>
4959
4960 * NEWS: Update.
4961 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4962 (cmdpy_init): Allow class_tui.
4963
a65189c9
TV
49642020-04-28 Mark Williams <mark@myosotissp.com>
4965
4966 PR gdb/24480
4967 * dwarf2read.c: Add missing assingments to list_in_scope when
4968 start_symtab was already called.
4969
1b95cdb7
SM
49702020-04-28 Simon Marchi <simon.marchi@efficios.com>
4971
4972 PR gdb/25881
4973 * dwarf2/read.c (offset_map_type): Use
4974 gdb:hash_enum<sect_offset> as hash function.
4975
15cd93d0
TV
49762020-04-28 Tom de Vries <tdevries@suse.de>
4977
4978 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4979 with DW_AT_signature.
4980
1eb39914
SM
49812020-04-27 Simon Marchi <simon.marchi@efficios.com>
4982
4983 * configure.ac: Remove check for fs_base/gs_base in
4984 user_regs_struct.
4985 * configure: Re-generate.
4986 * config.in: Re-generate.
4987 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4988 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4989 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4990
991a3e2e
LM
49912020-04-27 Luis Machado <luis.machado@linaro.org>
4992
4993 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4994 problematic inline frame unwinding situation.
4995 * frame.c (frame_id_computed_p): New function.
4996 * frame.h (frame_id_computed_p): New prototype.
4997
361ba0e8
TT
49982020-04-26 Tom Tromey <tom@tromey.com>
4999
5000 * command.h (enum command_class) <class_pseudo>: Remove.
5001
bc3609fd
PW
50022020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5003
5004 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5005 and whitespace.
5006
b9771db7
KR
50072020-04-25 Kamil Rytarowski <n54@gmx.com>
5008
ec16513e
SM
5009 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5010 `PT_GET_PROCESS_STATE' block.
b9771db7 5011
7151c1af
TT
50122020-04-24 Tom Tromey <tom@tromey.com>
5013
5014 * symtab.h (symbol_get_demangled_name): Don't declare.
5015 * symtab.c (symbol_get_demangled_name): Remove.
5016 (general_symbol_info::natural_name)
5017 (general_symbol_info::demangled_name): Update.
5018
906bb4c5
TT
50192020-04-24 Tom Tromey <tom@tromey.com>
5020
5021 PR rust/25025:
5022 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5023
bcfe6157
TT
50242020-04-24 Tom Tromey <tom@tromey.com>
5025
5026 PR symtab/12707:
5027 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5028 exists.
5029 (new_symbol): Likewise.
5030 * compile/compile-object-load.c (get_out_value_type): Use
5031 symbol_matches_search_name.
5032
f049a313
TT
50332020-04-24 Tom Tromey <tom@tromey.com>
5034
5035 * dwarf2/read.c (add_partial_symbol): Do not call
5036 compute_and_set_names.
5037
76e288d1
TT
50382020-04-24 Tom Tromey <tom@tromey.com>
5039
5040 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5041 overload.
5042
2467f4f6
TT
50432020-04-24 Tom Tromey <tom@tromey.com>
5044
5045 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5046 (add_psymbol_to_list): New overload. Make old overload call new
5047 one.
5048 * psympriv.h (add_psymbol_to_list): New overload.
5049
e61108c9
TT
50502020-04-24 Tom Tromey <tom@tromey.com>
5051
5052 * dwarf2/read.c (partial_die_info::read) <case
5053 DW_AT_linkage_name>: Use value_as_string.
5054 (dwarf2_string_attr): Use value_as_string.
5055 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5056 method.
5057 * dwarf2/attribute.c (attribute::value_as_string): New method.
5058
8c87a452
TT
50592020-04-24 Tom Tromey <tom@tromey.com>
5060
5061 * symtab.c (general_symbol_info::natural_name)
5062 (general_symbol_info::demangled_name): Check for language_rust.
5063
787de330
TT
50642020-04-24 Tom Tromey <tom@tromey.com>
5065
5066 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5067 (dwarf2_physname): ... from here.
5068 (partial_die_info::read): Add Rust "{" hack.
5069
ff985671
TT
50702020-04-24 Tom Tromey <tom@tromey.com>
5071
5072 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5073 method.
5074 (symbol_set_demangled_name): Don't declare.
5075 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5076 symbol_set_demangled_name.
5077 (general_symbol_info::set_language)
5078 (general_symbol_info::compute_and_set_names): Update.
5079 * minsyms.c (minimal_symbol_reader::install): Update.
5080 * dwarf2/read.c (new_symbol): Update.
5081
1acda803
TT
50822020-04-24 Tom Tromey <tromey@adacore.com>
5083
5084 PR python/23662:
5085 * python/py-type.c (convert_field): Handle
5086 FIELD_LOC_KIND_DWARF_BLOCK.
5087 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5088 (typy_get_dynamic): Nw function.
5089 (type_object_getset): Add "dynamic".
5090 * NEWS: Add entry.
5091
d656f129
TT
50922020-04-24 Tom Tromey <tromey@adacore.com>
5093
5094 * ada-typeprint.c (print_choices, print_variant_part)
5095 (print_record_field_types_dynamic): New functions.
5096 (print_record_field_types): Use print_record_field_types_dynamic.
5097
7d79de9a
TT
50982020-04-24 Tom Tromey <tromey@adacore.com>
5099
5100 * dwarf2/read.c (handle_data_member_location): New overload.
5101 (dwarf2_add_field): Use it.
5102 (decode_locdesc): Add "computed" parameter. Update comment.
5103 * gdbtypes.c (is_dynamic_type_internal): Also look for
5104 FIELD_LOC_KIND_DWARF_BLOCK.
5105 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5106 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5107 virtual base classes.
5108 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5109 FIELD_LOC_KIND_DWARF_BLOCK.
5110
f8e89861
TT
51112020-04-24 Tom Tromey <tromey@adacore.com>
5112
5113 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5114 * gdbtypes.c (is_dynamic_type_internal): Check
5115 TYPE_HAS_DYNAMIC_LENGTH.
5116 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5117 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5118 New macros.
5119 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5120 constant.
5121
9c6a1327
TT
51222020-04-24 Tom Tromey <tromey@adacore.com>
5123
5124 * dwarf2/read.c (struct variant_field): Rewrite.
5125 (struct variant_part_builder): New.
5126 (struct nextfield): Remove "variant" field. Add "offset".
5127 (struct field_info): Add "current_variant_part" and
5128 "variant_parts".
5129 (alloc_discriminant_info): Remove.
5130 (alloc_rust_variant): New function.
5131 (quirk_rust_enum): Update.
5132 (dwarf2_add_field): Set "offset" member. Don't handle
5133 DW_TAG_variant_part.
5134 (offset_map_type): New typedef.
5135 (convert_variant_range, create_one_variant)
5136 (create_one_variant_part, create_variant_parts)
5137 (add_variant_property): New functions.
5138 (dwarf2_attach_fields_to_type): Call add_variant_property.
5139 (read_structure_type): Don't handle DW_TAG_variant_part.
5140 (handle_variant_part, handle_variant): New functions.
5141 (handle_struct_member_die): Use them.
5142 (process_structure_scope): Don't handle variant parts.
5143 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5144 (struct discriminant_info): Remove.
5145 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5146 (struct main_type) <flag_discriminated_union>: Remove.
5147 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5148 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5149 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5150 Update.
5151 * valops.c (value_union_variant): Remove.
5152 * value.h (value_union_variant): Don't declare.
5153
b249d2c2
TT
51542020-04-24 Tom Tromey <tromey@adacore.com>
5155
5156 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5157 (ada_value_primitive_packed_val): Update.
5158 * ada-valprint.c (ada_value_print_1): Update.
5159 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5160 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5161 just an address. Use evaluate_for_locexpr_baton.
5162 (dwarf2_evaluate_property): Update.
5163 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5164 array_view.
5165 * findvar.c (default_read_var_value): Update.
5166 * gdbtypes.c (compute_variant_fields_inner)
5167 (resolve_dynamic_type_internal): Update.
5168 (resolve_dynamic_type): Change type of valaddr parameter.
5169 * gdbtypes.h (resolve_dynamic_type): Update.
5170 * valarith.c (value_subscripted_rvalue): Update.
5171 * value.c (value_from_contents_and_address): Update.
5172
61122aa9
TT
51732020-04-24 Tom Tromey <tromey@adacore.com>
5174
5175 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5176 "push_initial_value" parameter.
5177 (dwarf2_evaluate_property): Likewise.
5178 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5179
ef83a141
TT
51802020-04-24 Tom Tromey <tromey@adacore.com>
5181
5182 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5183 (variant::matches, compute_variant_fields_recurse)
5184 (compute_variant_fields_inner, compute_variant_fields): New
5185 functions.
5186 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5187 Use resolved_type after type is made.
5188 (operator==): Add new cases.
5189 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5190 (struct discriminant_range, struct variant, struct variant_part):
5191 New.
5192 (union dynamic_prop_data) <variant_parts, original_type>: New
5193 members.
5194 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5195 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5196 constants.
5197 * value.c (unpack_bits_as_long): Now public.
5198 * value.h (unpack_bits_as_long): Declare.
5199
675127ec
TT
52002020-04-24 Tom Tromey <tromey@adacore.com>
5201
5202 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5203 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5204
9852ceef
HD
52052020-04-24 Hannes Domani <ssbssa@yahoo.de>
5206
5207 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5208
7632c6ce
KR
52092020-04-24 Kamil Rytarowski <n54@gmx.com>
5210
5211 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5212 (remove_fork_catchpoint, post_startup_inferior)
5213 (post_attach): Move...
5214 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5215 (remove_fork_catchpoint, post_startup_inferior)
5216 (post_attach): ...here.
5217 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5218 (remove_fork_catchpoint, post_startup_inferior)
5219 (post_attach): Move...
5220 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5221 (remove_fork_catchpoint, post_startup_inferior)
5222 (post_attach): ...here.
5223
7be2bb4f
TT
52242020-04-24 Tom Tromey <tromey@adacore.com>
5225
5226 * nat/windows-nat.h (struct windows_thread_info)
5227 <pc_adjusted>: New member.
5228 * windows-nat.c (windows_fetch_one_register): Check
5229 pc_adjusted.
5230 (windows_nat_target::get_windows_debug_event)
5231 (windows_nat_target::wait): Set pc_adjusted.
5232
f80cb3b4
TV
52332020-04-24 Tom de Vries <tdevries@suse.de>
5234
5235 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5236 Run gdb-add-index inside temp dir.
5237
29514b87
TT
52382020-04-23 Tom Tromey <tromey@adacore.com>
5239
5240 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5241 in loop.
5242
5939967b
LM
52432020-04-23 Luis Machado <luis.machado@linaro.org>
5244
5245 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5246 get_frame_register instead of gdbarch_unwind_pc.
5247
70bc38f5
TV
52482020-04-23 Tom de Vries <tdevries@suse.de>
5249
5250 * symtab.c (lookup_global_symbol): Prefer def over decl.
5251
de82891c
TV
52522020-04-23 Tom de Vries <tdevries@suse.de>
5253
5254 PR symtab/25807
5255 * block.c (best_symbol, better_symbol): Promote to external.
5256 * block.h (best_symbol, better_symbol): Declare.
5257 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5258 decl.
5259
ecc6c606
TT
52602020-04-23 Tom Tromey <tromey@adacore.com>
5261
5262 PR ada/25837:
5263 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5264 "const char *", not a "const std::string &".
5265 <name_and_matcher::operator==>: Update.
5266 * unittests/lookup_name_info-selftests.c: Change type of
5267 "result".
5268
740480b8
TT
52692020-04-23 Tom Tromey <tom@tromey.com>
5270
5271 * inferior.h (iterate_over_inferiors): Don't declare.
5272 * inferior.c (iterate_over_inferiors): Remove.
5273 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5274 Remove.
5275 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5276 use iterate_over_inferiors.
5277 (darwin_resume_inferior_it)
5278 (struct resume_inferior_threads_param)
5279 (darwin_resume_inferior_threads_it): Remove.
5280 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5281
ae3ab1f0
TV
52822020-04-23 Tom de Vries <tdevries@suse.de>
5283
5284 * blockframe.c (find_pc_partial_function): Use
5285 find_pc_sect_compunit_symtab rather than
5286 objfile->sf->qf->find_pc_sect_compunit_symtab.
5287
317d2668
TV
52882020-04-22 Tom de Vries <tdevries@suse.de>
5289
5290 PR symtab/25764
5291 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5292 in psymtabs.
5293
eea9e357
TV
52942020-04-22 Tom de Vries <tdevries@suse.de>
5295
5296 PR symtab/25801
5297 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5298 symtabs.
5299
3d5afab3
TV
53002020-04-22 Tom de Vries <tdevries@suse.de>
5301
5302 PR symtab/25700
5303 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5304 CU if already created.
5305
d43b7a2d
TBA
53062020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5307
5308 * infrun.c (displaced_step_fixup): Switch to the event_thread
5309 before calling displaced_step_restore, not after.
5310
d89edf9b
MM
53112020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5312
5313 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5314 its inferior is not recorded by us.
5315 (record_btrace_target_open): Replace call to
5316 all_non_exited_threads () with call to current_inferior
5317 ()->non_exited_threads ().
5318 (record_btrace_target::stop_recording): Likewise.
5319 (record_btrace_target::close): Likewise.
5320 (record_btrace_target::wait): Likewise.
5321 (record_btrace_target::record_stop_replaying): Likewise.
5322
5897fd49
MM
53232020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5324
5325 * btrace.c (btrace_enable): Throw an error on double enables and
5326 when enabling recording fails.
5327 (btrace_disable): Throw an error if the thread is not recorded.
5328
1a476b6d
MM
53292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5330
5331 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5332 request if we do not have a thread_info.
5333
4778a5f8
TV
53342020-04-21 Tom de Vries <tdevries@suse.de>
5335
5336 PR gdb/25471
5337 * thread.c
5338 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5339 exception in get_frame_id.
5340
0fa7617d
TT
53412020-04-20 Tom Tromey <tromey@adacore.com>
5342
5343 * python/python.c (struct gdbpy_event): Mark move constructor as
5344 noexcept.
5345 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5346 constructor as noexcept.
5347 * completer.h (struct completion_result): Mark move constructor as
5348 noexcept.
5349 * completer.c (completion_result::completion_result): Use
5350 initialization style. Don't call reset_match_list.
5351
ad23bda0
MS
53522020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5353
5354 * MAINTAINERS (Write After Approval): Add myself.
5355
45e1f031
TT
53562020-04-18 Tom Tromey <tom@tromey.com>
5357
5358 * windows-tdep.c (init_w32_command_list)
5359 (w32_prefix_command_valid): Restore.
5360 (_initialize_windows_tdep): Call init_w32_command_list.
5361
08feed99
TT
53622020-04-18 Tom Tromey <tom@tromey.com>
5363
5364 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5365 * value.c (value_fn_field): Update.
5366 * valops.c (find_function_in_inferior)
5367 (value_allocate_space_in_inferior): Update.
5368 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5369 Update.
5370 * tui/tui-source.c (tui_source_window::set_contents): Update.
5371 * symtab.c (lookup_global_or_static_symbol)
5372 (find_function_start_sal_1, skip_prologue_sal)
5373 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5374 * symmisc.c (dump_msymbols, dump_symtab_1)
5375 (maintenance_print_one_line_table): Update.
5376 * symfile.c (init_entry_point_info, section_is_mapped)
5377 (list_overlays_command, simple_read_overlay_table)
5378 (simple_overlay_update_1): Update.
5379 * stap-probe.c (handle_stap_probe): Update.
5380 * stabsread.c (dbx_init_float_type, define_symbol)
5381 (read_one_struct_field, read_enum_type, read_range_type): Update.
5382 * source.c (info_line_command): Update.
5383 * python/python.c (gdbpy_source_objfile_script)
5384 (gdbpy_execute_objfile_script): Update.
5385 * python/py-type.c (save_objfile_types): Update.
5386 * python/py-objfile.c (py_free_objfile): Update.
5387 * python/py-inferior.c (python_new_objfile): Update.
5388 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5389 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5390 (maintenance_check_psymtabs): Update.
5391 * printcmd.c (info_address_command): Update.
5392 * objfiles.h (struct objfile) <arch>: New method, from
5393 get_objfile_arch.
5394 (get_objfile_arch): Don't declare.
5395 * objfiles.c (get_objfile_arch): Remove.
5396 (filter_overlapping_sections): Update.
5397 * minsyms.c (msymbol_is_function): Update.
5398 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5399 (output_nondebug_symbol): Update.
5400 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5401 (mdebug_expand_psymtab): Update.
5402 * machoread.c (macho_add_oso_symfile): Update.
5403 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5404 Update.
5405 * linux-fork.c (checkpoint_command): Update.
5406 * linespec.c (convert_linespec_to_sals): Update.
5407 * jit.c (finalize_symtab): Update.
5408 * infrun.c (insert_exception_resume_from_probe): Update.
5409 * ia64-tdep.c (ia64_find_unwind_table): Update.
5410 * hppa-tdep.c (internalize_unwinds): Update.
5411 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5412 Update.
5413 * gcore.c (call_target_sbrk): Update.
5414 * elfread.c (record_minimal_symbol, elf_symtab_read)
5415 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5416 (elf_gnu_ifunc_resolve_by_got): Update.
5417 * dwarf2/read.c (create_addrmap_from_index)
5418 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5419 (read_debug_names_from_section)
5420 (process_psymtab_comp_unit_reader, add_partial_symbol)
5421 (add_partial_subprogram, process_full_comp_unit)
5422 (read_file_scope, read_func_scope, read_lexical_block_scope)
5423 (read_call_site_scope, dwarf2_ranges_read)
5424 (dwarf2_record_block_ranges, dwarf2_add_field)
5425 (mark_common_block_symbol_computed, read_tag_pointer_type)
5426 (read_tag_string_type, dwarf2_init_float_type)
5427 (dwarf2_init_complex_target_type, read_base_type)
5428 (partial_die_info::read, partial_die_info::read)
5429 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5430 (dwarf2_fetch_die_loc_sect_off): Update.
5431 * dwarf2/loc.c (dwarf2_find_location_expression)
5432 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5433 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5434 (dwarf2_loc_desc_get_symbol_read_needs)
5435 (locexpr_describe_location_piece, locexpr_describe_location_1)
5436 (loclist_describe_location): Update.
5437 * dwarf2/index-write.c (write_debug_names): Update.
5438 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5439 * dtrace-probe.c (dtrace_process_dof): Update.
5440 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5441 (process_one_symbol): Update.
5442 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5443 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5444 (coff_read_enum_type): Update.
5445 * cli/cli-cmds.c (edit_command, list_command): Update.
5446 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5447 * breakpoint.c (create_overlay_event_breakpoint)
5448 (create_longjmp_master_breakpoint)
5449 (create_std_terminate_master_breakpoint)
5450 (create_exception_master_breakpoint, get_sal_arch): Update.
5451 * block.c (block_gdbarch): Update.
5452 * annotate.c (annotate_source_line): Update.
5453
0743fc83
TT
54542020-04-17 Tom Tromey <tromey@adacore.com>
5455
5456 * auto-load.c (show_auto_load_cmd): Remove.
5457 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5458 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5459 (maintenance_print_arc_command): Remove.
5460 * tui/tui-win.c (tui_command): Remove.
5461 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5462 * tui/tui-layout.c (tui_layout_command): Remove.
5463 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5464 * python/python.c (user_set_python, user_show_python): Remove.
5465 (_initialize_python): Use add_basic_prefix_cmd,
5466 add_show_prefix_cmd.
5467 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5468 (install_gdb_commands): Use add_basic_prefix_cmd,
5469 add_show_prefix_cmd.
5470 (info_guile_command): Remove.
5471 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5472 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5473 add_show_prefix_cmd.
5474 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5475 Remove do_set and do_show parameters.
5476 * cli/cli-style.c (set_style, show_style): Remove.
5477 (_initialize_cli_style): Use add_basic_prefix_cmd,
5478 add_show_prefix_cmd.
5479 (cli_style_option::add_setshow_commands): Remove do_set and
5480 do_show parameters.
5481 (cli_style_option::add_setshow_commands): Use
5482 add_basic_prefix_cmd, add_show_prefix_cmd.
5483 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5484 (set_style_name): Remove.
5485 * cli/cli-dump.c (dump_command, append_command): Remove.
5486 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5487 (tekhex_dump_command, binary_dump_command)
5488 (binary_append_command): Remove.
5489 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5490 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5491 (init_w32_command_list): Remove; move into ...
5492 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5493 * valprint.c (set_print, show_print, set_print_raw)
5494 (show_print_raw): Remove.
5495 (_initialize_valprint): Use add_basic_prefix_cmd,
5496 add_show_prefix_cmd.
5497 * typeprint.c (set_print_type, show_print_type): Remove.
5498 (_initialize_typeprint): Use add_basic_prefix_cmd,
5499 add_show_prefix_cmd.
5500 * record.c (set_record_command, show_record_command): Remove.
5501 (_initialize_record): Use add_basic_prefix_cmd,
5502 add_show_prefix_cmd.
5503 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5504 add_show_prefix_cmd.
5505 (info_command, show_command, set_debug, show_debug): Remove.
5506 * top.h (set_history, show_history): Don't declare.
5507 * top.c (set_history, show_history): Remove.
5508 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5509 (unset_tdesc_cmd): Remove.
5510 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5511 add_show_prefix_cmd.
5512 * symtab.c (info_module_command): Remove.
5513 (_initialize_symtab): Use add_basic_prefix_cmd.
5514 * symfile.c (overlay_command): Remove.
5515 (_initialize_symfile): Use add_basic_prefix_cmd.
5516 * sparc64-tdep.c (info_adi_command): Remove.
5517 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5518 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5519 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5520 add_show_prefix_cmd.
5521 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5522 (_initialize_serial): Use add_basic_prefix_cmd,
5523 add_show_prefix_cmd.
5524 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5525 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5526 add_show_prefix_cmd.
5527 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5528 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5529 add_show_prefix_cmd.
5530 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5531 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5532 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5533 add_show_prefix_cmd.
5534 * remote.c (remote_command, set_remote_cmd): Remove.
5535 (_initialize_remote): Use add_basic_prefix_cmd.
5536 * record-full.c (set_record_full_command)
5537 (show_record_full_command): Remove.
5538 (_initialize_record_full): Use add_basic_prefix_cmd,
5539 add_show_prefix_cmd.
5540 * record-btrace.c (cmd_set_record_btrace)
5541 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5542 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5543 (cmd_show_record_btrace_pt): Remove.
5544 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5545 add_show_prefix_cmd.
5546 * ravenscar-thread.c (set_ravenscar_command)
5547 (show_ravenscar_command): Remove.
5548 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5549 add_show_prefix_cmd.
5550 * mips-tdep.c (show_mips_command, set_mips_command)
5551 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5552 add_show_prefix_cmd.
5553 * maint.c (maintenance_command, maintenance_info_command)
5554 (maintenance_check_command, maintenance_print_command)
5555 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5556 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5557 add_show_prefix_cmd.
5558 (show_per_command_cmd): Remove.
5559 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5560 Remove.
5561 (maintenance_show_test_settings_cmd): Remove.
5562 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5563 add_show_prefix_cmd.
5564 * maint-test-options.c (maintenance_test_options_command):
5565 Remove.
5566 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5567 * macrocmd.c (macro_command): Remove
5568 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5569 * language.c (set_check, show_check): Remove.
5570 (_initialize_language): Use add_basic_prefix_cmd,
5571 add_show_prefix_cmd.
5572 * infcmd.c (unset_command): Remove.
5573 (_initialize_infcmd): Use add_basic_prefix_cmd.
5574 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5575 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5576 add_show_prefix_cmd.
5577 * go32-nat.c (go32_info_dos_command): Remove.
5578 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5579 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5580 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5581 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5582 (_initialize_frame): Use add_basic_prefix_cmd,
5583 add_show_prefix_cmd.
5584 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5585 (_initialize_dcache): Use add_basic_prefix_cmd,
5586 add_show_prefix_cmd.
5587 * cp-support.c (maint_cplus_command): Remove.
5588 (_initialize_cp_support): Use add_basic_prefix_cmd.
5589 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5590 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5591 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5592 add_basic_prefix_cmd, add_show_prefix_cmd.
5593 * breakpoint.c (save_command): Remove.
5594 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5595 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5596 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5597 add_show_prefix_cmd.
5598 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5599 (set_ada_command, show_ada_command): Remove.
5600 (_initialize_ada_language): Use add_basic_prefix_cmd,
5601 add_show_prefix_cmd.
5602 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5603
3557f442
KR
56042020-04-16 Kamil Rytarowski <n54@gmx.com>
5605
5606 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5607 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5608
16197208
SM
56092020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5610
5611 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5612 warning messages.
5613
00ac85d3
SM
56142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5615
5616 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5617 import table is not at beginning of .idata section.
5618
381ce63f
PA
56192020-04-16 Pedro Alves <palves@redhat.com>
5620
5621 * inferior.c (delete_inferior): Use delete operator directly
5622 instead of delete_program_space.
5623 * progspace.c (add_program_space): New, factored out from
5624 program_space::program_space.
5625 (remove_program_space): New, factored out from
5626 delete_program_space.
5627 (program_space::program_space): Remove intro comment. Rewrite.
5628 (program_space::~program_space): Remove intro comment. Call
5629 remove_program_space.
5630 (delete_program_space): Delete.
5631 * progspace.h (program_space::program_space): Make explicit. Move
5632 intro comment here, adjusted.
5633 (program_space::~program_space): Move intro comment here,
5634 adjusted.
5635 (delete_program_space): Remove.
5636
a010605f
TT
56372020-04-16 Tom Tromey <tromey@adacore.com>
5638
5639 * windows-nat.c (windows_nat::handle_access_violation): New
5640 function.
5641 * nat/windows-nat.h (handle_access_violation): Declare.
5642 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5643 windows-nat.c. Call handle_access_violation.
5644
efba5c23
TV
56452020-04-16 Tom de Vries <tdevries@suse.de>
5646
5647 PR symtab/25791
5648 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5649 CUs without psymtab.
5650
97ed802d
KB
56512020-04-16 Kevin Buettner <kevinb@redhat.com>
5652
5653 * python/python.c (do_start_initialization): Don't call
5654 PyEval_InitThreads for Python 3.9 and beyond.
5655
c7d64809
KR
56562020-04-15 Kamil Rytarowski <n54@gmx.com>
5657
5658 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5659 thread functions.
5660 (obsd_nat_target::wait): Likewise.
5661
ce127a96
TT
56622020-04-15 Tom Tromey <tromey@adacore.com>
5663
5664 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5665 (DEBUG_EXCEPT): Use debug_printf.
5666
99f1bc6a
AB
56672020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5668
5669 * completer.c (class completion_tracker::completion_hash_entry)
5670 <hash_name>: New member function.
5671 (completion_tracker::discard_completions): New callback to hash a
5672 completion_hash_entry, pass this to htab_create_alloc.
5673
a0e9b532
JT
56742016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5675
5676 * windows-nat.c (windows_make_so): Warn rather than stopping with
5677 an error if realpath() fails.
5678
06ca5dd4
KR
56792020-04-14 Kamil Rytarowski <n54@gmx.com>
5680
5681 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5682 (nbsd_nat_target::info_proc): Add do_status.
5683
194d088f
TV
56842020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5685 Tom de Vries <tdevries@suse.de>
5686
5687 PR symtab/25718
5688 * psympriv.h (struct partial_symtab::read_symtab)
5689 (struct partial_symtab::expand_psymtab)
5690 (struct partial_symtab::read_dependencies): Update comments.
5691 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5692 read_symtab for includer.
5693 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5694 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5695 (struct dwarf2_include_psymtab::m_readin): Remove.
5696 (struct dwarf2_include_psymtab::includer): New member function.
5697 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5698
c1a66c06
TV
56992020-04-14 Tom de Vries <tdevries@suse.de>
5700
5701 PR symtab/25720
5702 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5703 with NULL symbol_matcher and lookup_name.
5704 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5705 and lookup_name.
5706 * dwarf2/read.c (dw2_expand_symtabs_matching)
5707 (dw2_debug_names_expand_symtabs_matching): Same.
5708 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5709 Make lookup_name a pointer. Update comment.
5710 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5711 lookup_name being a pointer.
5712 * symfile.c (expand_symtabs_matching): Same.
5713 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5714 * linespec.c (iterate_over_all_matching_symtabs): Same.
5715
400b5eca
TT
57162020-04-13 Tom Tromey <tom@tromey.com>
5717
5718 * run-on-main-thread.c: Update include.
5719 * unittests/main-thread-selftests.c: Update include.
5720 * tui/tui-win.c: Update include.
5721 * tui/tui-io.c: Update include.
5722 * tui/tui-interp.c: Update include.
5723 * tui/tui-hooks.c: Update include.
5724 * top.h: Update include.
5725 * top.c: Update include.
5726 * ser-base.c: Update include.
5727 * remote.c: Update include.
5728 * remote-notif.c: Update include.
5729 * remote-fileio.c: Update include.
5730 * record-full.c: Update include.
5731 * record-btrace.c: Update include.
5732 * python/python.c: Update include.
5733 * posix-hdep.c: Update include.
5734 * mingw-hdep.c: Update include.
5735 * mi/mi-main.c: Update include.
5736 * mi/mi-interp.c: Update include.
5737 * main.c: Update include.
5738 * linux-nat.c: Update include.
5739 * interps.c: Update include.
5740 * infrun.c: Update include.
5741 * inf-loop.c: Update include.
5742 * event-top.c: Update include.
5743 * event-loop.c: Move to ../gdbsupport/.
5744 * event-loop.h: Move to ../gdbsupport/.
5745 * async-event.h: Update include.
5746 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5747
93b54c8e
TT
57482020-04-13 Tom Tromey <tom@tromey.com>
5749
5750 * tui/tui-win.c: Include async-event.h.
5751 * remote.c: Include async-event.h.
5752 * remote-notif.c: Include async-event.h.
5753 * record-full.c: Include async-event.h.
5754 * record-btrace.c: Include async-event.h.
5755 * infrun.c: Include async-event.h.
5756 * event-top.c: Include async-event.h.
5757 * event-loop.h: Move some declarations to async-event.h.
5758 * event-loop.c: Don't include ser-event.h or top.h. Move some
5759 code to async-event.c.
5760 * async-event.h: New file.
5761 * async-event.c: New file.
5762 * Makefile.in (COMMON_SFILES): Add async-event.c.
5763 (HFILES_NO_SRCDIR): Add async-event.h.
5764
c1cd3163
TT
57652020-04-13 Tom Tromey <tom@tromey.com>
5766
5767 * utils.c (flush_streams): New function.
5768 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5769
29f2bf4f
TT
57702020-04-13 Tom Tromey <tom@tromey.com>
5771
5772 * event-loop.c (handle_file_event): Use warning, not
5773 printf_unfiltered.
5774
98029d02
TT
57752020-04-13 Tom Tromey <tom@tromey.com>
5776
5777 * event-loop.c: Include <chrono>.
5778
06cc9596
TT
57792020-04-13 Tom Tromey <tom@tromey.com>
5780
5781 * gdb_select.h: Move to ../gdbsupport/.
5782 * event-loop.c: Update include path.
5783 * top.c: Update include path.
5784 * ser-base.c: Update include path.
5785 * ui-file.c: Update include path.
5786 * ser-tcp.c: Update include path.
5787 * guile/scm-ports.c: Update include path.
5788 * posix-hdep.c: Update include path.
5789 * ser-unix.c: Update include path.
5790 * gdb_usleep.c: Update include path.
5791 * mingw-hdep.c: Update include path.
5792 * inflow.c: Update include path.
5793 * infrun.c: Update include path.
5794 * event-top.c: Update include path.
5795
8ae8e197
TT
57962020-04-13 Tom Tromey <tom@tromey.com>
5797
5798 * configure: Rebuild.
5799 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5800
58cf28e8
TT
58012020-04-13 Tom Tromey <tom@tromey.com>
5802
5803 * event-loop.h (start_event_loop): Don't declare.
5804 * event-loop.c (start_event_loop): Move...
5805 * main.c (start_event_loop): ...here. Now static.
5806
b7f999ae
SDJ
58072020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5808
5809 * MAINTAINERS: Update my email address.
5810
1085dfd4
KR
58112020-04-12 Kamil Rytarowski <n54@gmx.com>
5812
5813 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5814 IP_ALL.
5815
49d1d1f5
KR
58162020-04-12 Kamil Rytarowski <n54@gmx.com>
5817
5818 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5819 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5820
b4848d2a
KR
58212020-04-12 Kamil Rytarowski <n54@gmx.com>
5822
5823 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5824 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5825
51c133d5
KR
58262020-04-12 Kamil Rytarowski <n54@gmx.com>
5827
5828 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5829
54b8cbd0
KR
58302020-04-11 Kamil Rytarowski <n54@gmx.com>
5831
5832 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5833 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5834 (nbsd_nat_target::info_proc): New functions.
5835 * nbsd-nat.c (kinfo_get_vmmap): New function.
5836 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5837 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5838 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5839 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5840 functions.
5841 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5842 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5843 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5844 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5845 (KINFO_VME_FLAG_GROWS_DOWN): New.
5846
cf83625d
AS
58472020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5848
5849 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5850 bit shift.
5851
0c4311ab
TT
58522020-04-10 Tom Tromey <tromey@adacore.com>
5853
5854 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5855
3e65b3e9
TT
58562020-04-10 Tom Tromey <tromey@adacore.com>
5857
5858 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5859 separate debug files.
5860
13302e95
HD
58612020-04-10 Hannes Domani <ssbssa@yahoo.de>
5862
5863 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5864 Move to...
5865 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5866 ... here.
5867 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5868 Check for STATUS_WX86_BREAKPOINT.
5869 (windows_nat_target::wait): Same.
5870
bdfc1e8a
TV
58712020-04-10 Tom de Vries <tdevries@suse.de>
5872
5873 PR cli/25808
5874 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5875
f4460aec
SM
58762020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5877
5878 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5879 (Write After Approval): Remove Tom de Vries.
5880
a25198bb
BE
58812020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5882
5883 revert partially:
5884 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5885
aac66a4c
SM
5886 * buildsym.c (record_line): Fix undefined behavior and preserve
5887 lines at eof.
a25198bb 5888
206c98a6
KR
58892020-04-09 Kamil Rytarowski <n54@gmx.com>
5890
5891 * auxv.h (svr4_auxv_parse): New.
5892 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5893 and generic_auxv_parse.
5894 (svr4_auxv_parse): Add.
5895 * obsd-tdep.c: Include "auxv.h".
5896 (obsd_auxv_parse): Remove.
5897 (obsd_init_abi): Remove comment.
5898 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5899 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5900 * nbsd-tdep.c: Include "auxv.h".
5901 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5902
71fbdbaf
TT
59032020-04-08 Tom Tromey <tromey@adacore.com>
5904
5905 * nat/windows-nat.h (last_wait_event): Don't declare.
5906 (wait_for_debug_event): Update comment.
5907 * nat/windows-nat.c (last_wait_event): Now static.
5908
2c1d95e8
TT
59092020-04-08 Tom Tromey <tromey@adacore.com>
5910
5911 * windows-nat.c (wait_for_debug_event): Move to
5912 nat/windows-nat.c.
5913 * nat/windows-nat.h (wait_for_debug_event): Declare.
5914 * nat/windows-nat.c (wait_for_debug_event): Move from
5915 windows-nat.c. No longer static.
5916
d2977bc4
TT
59172020-04-08 Tom Tromey <tromey@adacore.com>
5918
5919 * windows-nat.c (get_windows_debug_event): Use
5920 fetch_pending_stop.
5921 * nat/windows-nat.h (fetch_pending_stop): Declare.
5922 * nat/windows-nat.c (fetch_pending_stop): New function.
5923
e758e19c
TT
59242020-04-08 Tom Tromey <tromey@adacore.com>
5925
5926 * windows-nat.c (windows_continue): Use matching_pending_stop and
5927 continue_last_debug_event.
5928 * nat/windows-nat.h (matching_pending_stop)
5929 (continue_last_debug_event): Declare.
5930 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5931 (matching_pending_stop, continue_last_debug_event): New
5932 functions.
5933
8d30e395
TT
59342020-04-08 Tom Tromey <tromey@adacore.com>
5935
5936 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5937 (handle_exception_result): Move to nat/windows-nat.h.
5938 (DEBUG_EXCEPTION_SIMPLE): Remove.
5939 (windows_nat::handle_ms_vc_exception): New function.
5940 (handle_exception): Move to nat/windows-nat.c.
5941 (get_windows_debug_event): Update.
5942 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5943 nat/windows-nat.c.
5944 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5945 (handle_exception_result): Move from windows-nat.c.
5946 (handle_exception): Declare.
5947 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5948 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5949 windows-nat.c.
5950
29de418d
TT
59512020-04-08 Tom Tromey <tromey@adacore.com>
5952
5953 * windows-nat.c (exception_count, event_count): Remove.
5954 (handle_exception, get_windows_debug_event)
5955 (do_initial_windows_stuff): Update.
5956
a816ba18
TT
59572020-04-08 Tom Tromey <tromey@adacore.com>
5958
5959 * windows-nat.c (windows_nat::handle_load_dll)
5960 (windows_nat::handle_unload_dll): Rename. No longer static.
5961 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5962 Declare.
5963
a00caa12
TT
59642020-04-08 Tom Tromey <tromey@adacore.com>
5965
5966 * complaints.h (stop_whining): Declare at top-level.
5967 (complaint): Don't declare stop_whining.
5968
d41b524f
TT
59692020-04-08 Tom Tromey <tromey@adacore.com>
5970
5971 * windows-nat.c (windows_nat::handle_output_debug_string):
5972 Rename. No longer static.
5973 * nat/windows-nat.h (handle_output_debug_string): Declare.
5974
3c76026d
TT
59752020-04-08 Tom Tromey <tromey@adacore.com>
5976
5977 * windows-nat.c (current_process_handle, current_process_id)
5978 (main_thread_id, last_sig, current_event, last_wait_event)
5979 (current_windows_thread, desired_stop_thread_id, pending_stops)
5980 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5981 (display_selectors, fake_create_process)
5982 (get_windows_debug_event): Update.
5983 * nat/windows-nat.h (current_process_handle, current_process_id)
5984 (main_thread_id, last_sig, current_event, last_wait_event)
5985 (current_windows_thread, desired_stop_thread_id, pending_stops)
5986 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5987 * nat/windows-nat.c (current_process_handle, current_process_id)
5988 (main_thread_id, last_sig, current_event, last_wait_event)
5989 (current_windows_thread, desired_stop_thread_id, pending_stops)
5990 (siginfo_er): New globals. Move from windows-nat.c.
5991
9d8679cc
TT
59922020-04-08 Tom Tromey <tromey@adacore.com>
5993
5994 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5995 (handle_load_dll): Update.
5996 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5997
28688adf
TT
59982020-04-08 Tom Tromey <tromey@adacore.com>
5999
6000 * windows-nat.c (enum thread_disposition_type): Move to
6001 nat/windows-nat.h.
6002 (windows_nat::thread_rec): Rename from thread_rec. No longer
6003 static.
6004 (windows_add_thread, windows_nat_target::fetch_registers)
6005 (windows_nat_target::store_registers, handle_exception)
6006 (windows_nat_target::resume, get_windows_debug_event)
6007 (windows_nat_target::get_tib_address)
6008 (windows_nat_target::thread_name)
6009 (windows_nat_target::thread_alive): Update.
6010 * nat/windows-nat.h (enum thread_disposition_type): Move from
6011 windows-nat.c.
6012 (thread_rec): Declare.
6013
4834dad0
TT
60142020-04-08 Tom Tromey <tromey@adacore.com>
6015
6016 * windows-nat.c: Add "using namespace".
6017 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6018 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6019
65bafd5b
TT
60202020-04-08 Tom Tromey <tromey@adacore.com>
6021
6022 * nat/windows-nat.h (struct windows_thread_info): Declare
6023 destructor.
6024 * nat/windows-nat.c (~windows_thread_info): New.
6025
0a4afda3
TT
60262020-04-08 Tom Tromey <tromey@adacore.com>
6027
6028 PR gdb/22992
6029 * windows-nat.c (current_event): Update comment.
6030 (last_wait_event, desired_stop_thread_id): New globals.
6031 (struct pending_stop): New.
6032 (pending_stops): New global.
6033 (windows_nat_target) <stopped_by_sw_breakpoint>
6034 <supports_stopped_by_sw_breakpoint>: New methods.
6035 (windows_fetch_one_register): Add assertions. Adjust PC.
6036 (windows_continue): Handle pending stops. Suspend other threads
6037 when stepping. Use last_wait_event
6038 (wait_for_debug_event): New function.
6039 (get_windows_debug_event): Use wait_for_debug_event. Handle
6040 pending stops. Queue spurious stops.
6041 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6042 (windows_nat_target::kill): Use wait_for_debug_event.
6043 * nat/windows-nat.h (struct windows_thread_info)
6044 <stopped_at_software_breakpoint>: New field.
6045 * nat/windows-nat.c (windows_thread_info::resume): Clear
6046 stopped_at_software_breakpoint.
6047
8e61ebec
TT
60482020-04-08 Tom Tromey <tromey@adacore.com>
6049
6050 * windows-nat.c (enum thread_disposition_type): New.
6051 (thread_rec): Replace "get_context" parameter with "disposition";
6052 change type.
6053 (windows_add_thread, windows_nat_target::fetch_registers)
6054 (windows_nat_target::store_registers, handle_exception)
6055 (windows_nat_target::resume, get_windows_debug_event)
6056 (windows_nat_target::get_tib_address)
6057 (windows_nat_target::thread_name)
6058 (windows_nat_target::thread_alive): Update.
6059
98a03287
TT
60602020-04-08 Tom Tromey <tromey@adacore.com>
6061
6062 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6063 (windows_continue): Use windows_continue::resume.
6064 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6065 resume>: Declare new methods.
6066 * nat/windows-nat.c: New file.
6067 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6068
7c7411bc
TT
60692020-04-08 Tom Tromey <tromey@adacore.com>
6070
6071 * windows-nat.c (windows_add_thread, windows_delete_thread)
6072 (windows_nat_target::fetch_registers)
6073 (windows_nat_target::store_registers, fake_create_process)
6074 (windows_nat_target::resume, windows_nat_target::resume)
6075 (get_windows_debug_event, windows_nat_target::wait)
6076 (windows_nat_target::pid_to_str)
6077 (windows_nat_target::get_tib_address)
6078 (windows_nat_target::get_ada_task_ptid)
6079 (windows_nat_target::thread_name)
6080 (windows_nat_target::thread_alive): Use lwp, not tid.
6081
2950fdf7
TT
60822020-04-08 Tom Tromey <tromey@adacore.com>
6083
6084 * windows-nat.c (handle_exception)
6085 (windows_nat_target::thread_name): Update.
6086 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6087 <name>: Now unique_xmalloc_ptr.
6088
62fe396b
TT
60892020-04-08 Tom Tromey <tromey@adacore.com>
6090
6091 * windows-nat.c (thread_rec)
6092 (windows_nat_target::fetch_registers): Update.
6093 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6094 Update comment.
6095 <debug_registers_changed, reload_context>: Now bool.
6096
e9534bd2
TT
60972020-04-08 Tom Tromey <tromey@adacore.com>
6098
6099 * windows-nat.c (windows_add_thread): Use new.
6100 (windows_init_thread_list, windows_delete_thread): Use delete.
6101 (get_windows_debug_event): Update.
6102 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6103 destructor, and initializers.
6104
ae1f8880
TT
61052020-04-08 Tom Tromey <tromey@adacore.com>
6106
6107 * windows-nat.c (struct windows_thread_info): Remove.
6108 * nat/windows-nat.h: New file.
6109
55a1e039
TT
61102020-04-08 Tom Tromey <tromey@adacore.com>
6111
6112 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6113 (thread_rec, windows_add_thread, windows_delete_thread)
6114 (windows_continue): Update.
6115
93366324
TT
61162020-04-08 Tom Tromey <tromey@adacore.com>
6117
6118 * windows-nat.c (struct windows_thread_info): Remove typedef.
6119 (thread_head): Remove.
6120 (thread_list): New global.
6121 (thread_rec, windows_add_thread, windows_init_thread_list)
6122 (windows_delete_thread, windows_continue): Update.
6123
0f2265e2
SM
61242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6125
6126 * windows-tdep.h (windows_init_abi): Add comment.
6127 (cygwin_init_abi): New declaration.
6128 * windows-tdep.c: Split signal enumeration in two, one for
6129 Windows and one for Cygwin.
6130 (windows_gdb_signal_to_target): Only deal with signal of the
6131 Windows OS ABI.
6132 (cygwin_gdb_signal_to_target): New function.
6133 (windows_init_abi): Rename to windows_init_abi_common, don't set
6134 gdb_signal_to_target gdbarch method. Add new new function with
6135 this name.
6136 (cygwin_init_abi): New function.
6137 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6138 comment. Don't call windows_init_abi.
6139 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6140 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6141 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6142 i386_windows_init_abi_common, don't call windows_init_abi. Add
6143 a new function of this name.
6144 (i386_cygwin_init_abi): New function.
6145 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6146 OS ABI Cygwin.
6147
3810f182
SM
61482020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6149
6150 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6151 parameter.c.
6152 (dwarf2_read_gdb_index): Update.
6153
063f8e80
KR
61542020-04-07 Kamil Rytarowski <n54@gmx.com>
6155
6156 * nbsd-tdep.c: Include "objfiles.h".
6157 (nbsd_skip_solib_resolver): New.
6158 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6159
85a9510c 61602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6161
6162 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6163 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6164 with DW_LLE_base_addressx are being emitted in DWARFv5.
6165 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6166 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6167 unsigned integer.
6168
9fc3eaae 61692020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6170
6171 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6172 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6173 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6174 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6175 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6176 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6177 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6178
6179
41144253 61802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6181
6182 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6183 (read_loclist_index): New function definition.
6184 (lookup_loclist_base): New function definition.
6185 (read_loclist_header): New function definition.
6186 (dwarf2_cu): Add loclist_base and loclist_header field.
6187 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6188 (read_full_die_1): Read the value of DW_AT_loclists_base.
6189 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6190 (read_attribute_value): Handle DW_FORM_loclistx.
6191 (skip_one_die): Handle DW_FORM_loclistx.
6192 (loclist_header): New structure declaration.
6193 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6194
9f4e76a4
SM
61952020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6196
6197 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6198 constructor. Remove `addr` parameter from other constructor and
6199 add `per_cu` parameter.
6200 * dwarf2/read.c (create_partial_symtab): Update.
6201
25c11aca
TV
62022020-04-07 Tom de Vries <tdevries@suse.de>
6203
6204 PR symtab/25796
6205 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6206 (partial_die_info::fixup): Inherit has_const_value.
6207
5707e24b
TV
62082020-04-07 Tom de Vries <tdevries@suse.de>
6209
6210 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6211 symbols without address.
6212
05f00e22
KR
62132020-04-06 Kamil Rytarowski <n54@gmx.com>
6214
6215 * nbsd-nat.h (struct thread_info): Add forward declaration.
6216 (nbsd_nat_target::thread_alive): Add.
6217 (nbsd_nat_target::thread_name): Likewise.
6218 (nbsd_nat_target::update_thread_list): Likewise.
6219 (update_thread_list::post_attach): Likewise.
6220 (post_attach::pid_to_str): Likewise.
6221 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6222 (nbsd_thread_lister): Add.
6223 (nbsd_nat_target::thread_alive): Likewise.
6224 (nbsd_nat_target::thread_name): Likewise.
6225 (nbsd_add_threads): Likewise.
6226 (update_thread_list::post_attach): Likewise.
6227 (nbsd_nat_target::update_thread_list): Likewise.
6228 (post_attach::pid_to_str): Likewise.
6229
6ee448cc
TT
62302020-04-06 Tom Tromey <tromey@adacore.com>
6231
6232 * ada-valprint.c (print_variant_part): Extract the variant field.
6233 (print_field_values): Use the field as the outer value when
6234 recursing.
6235
dea34e8c
TT
62362020-04-06 Tom Tromey <tromey@adacore.com>
6237
6238 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6239 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6240 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6241 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6242 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6243
93689ce9
TT
62442020-04-06 Tom Tromey <tromey@adacore.com>
6245
6246 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6247 TYPE_CODE_ERROR.
6248
79743962
KR
62492020-04-06 Kamil Rytarowski <n54@gmx.com>
6250
6251 * nbsd-tdep.c: Include "gdbarch.h".
6252 Define enum with NetBSD signal numbers.
6253 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6254 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6255 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6256 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6257 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6258 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6259 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6260 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6261 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6262 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6263 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6264 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6265
9e7c9a03
HD
62662020-04-03 Hannes Domani <ssbssa@yahoo.de>
6267
6268 PR gdb/25325
6269 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6270
d9e49b61
TT
62712020-04-03 Tom Tromey <tromey@adacore.com>
6272
6273 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6274 Read constant block.
6275
e0fc5c3f
SM
62762020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6277
6278 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6279 (gdb_bfd_get_full_section_contents): New declaration.
6280 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6281 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6282 gdb_bfd_get_full_section_contents.
6283
e2ff18a0
SM
62842020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6285
6286 * exec.c (build_section_table): Replace internal_error with
6287 gdb_assert.
6288 (section_table_xfer_memory_partial): Likewise.
6289 * mdebugread.c (parse_partial_symbols): Likewise.
6290 * psymtab.c (lookup_partial_symbol): Likewise.
6291 * utils.c (wrap_here): Likewise.
6292
0830d301
TT
62932020-04-02 Tom Tromey <tromey@adacore.com>
6294
6295 * f-lang.c (build_fortran_types): Use arch_type to initialize
6296 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6297
e7da7f8f
TT
62982020-04-02 Tom Tromey <tromey@adacore.com>
6299
6300 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6301 of attributes.
6302
c90d28ac
AB
63032020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6304 Bernd Edlinger <bernd.edlinger@hotmail.de>
6305 Tom Tromey <tromey@adacore.com>
6306
6307 * buildsym.c (buildsym_compunit::record_line): Remove
6308 deduplication code.
6309
1aa98955
TV
63102020-04-02 Tom de Vries <tdevries@suse.de>
6311
6312 PR ada/24671
6313 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6314
d3214198
TV
63152020-04-02 Tom de Vries <tdevries@suse.de>
6316
6317 * dwarf2/read.c (dwarf2_gdb_index_functions,
6318 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6319 NULL.
6320 * psymtab.c (psym_lookup_global_symbol_language): New function.
6321 (psym_functions): Init psym_lookup_global_symbol_language with
6322 psym_lookup_global_symbol_language.
6323 * symfile-debug.c (debug_sym_quick_functions): Init
6324 lookup_global_symbol_language with NULL.
6325 * symfile.c (set_initial_language): Remove fixme comment.
6326 * symfile.h (struct quick_symbol_functions): Add
6327 lookup_global_symbol_language.
6328 * symtab.c (find_quick_global_symbol_language): New function.
6329 (find_main_name): Use find_quick_global_symbol_language.
6330
2836752f
SM
63312020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6332
6333 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6334
64dc2d4b
BE
63352020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6336
6337 * buildsym.c (record_line): Fix undefined behavior and preserve
6338 lines at eof.
6339
bbe3dc41
BE
63402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6341
6342 * buildsym.c (record_line): Fix the resizing condition.
6343
6b4a335b
TT
63442020-04-01 Tom Tromey <tom@tromey.com>
6345
6346 * value.h (value_literal_complex): Add comment.
6347 * valops.c (value_literal_complex): Refer to value.h.
6348
3638a098
TT
63492020-04-01 Tom Tromey <tom@tromey.com>
6350
6351 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6352 (scalar_type): New rule, from typebase.
6353 (typebase): Use scalar_type. Recognize complex types.
6354 (field_name): Handle FLOAT_KEYWORD.
6355 (ident_tokens): Add _Complex and __complex__.
6356
c34e8714
TT
63572020-04-01 Tom Tromey <tom@tromey.com>
6358
6359 PR exp/25299:
6360 * valarith.c (promotion_type, complex_binop): New functions.
6361 (scalar_binop): Handle complex numbers. Use promotion_type.
6362 (value_pos, value_neg, value_complement): Handle complex numbers.
6363
fa649bb7
TT
63642020-04-01 Tom Tromey <tom@tromey.com>
6365
6366 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6367 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6368 (parse_number): Handle complex numbers.
6369
981c08ce
TT
63702020-04-01 Tom Tromey <tom@tromey.com>
6371
6372 * c-valprint.c (c_decorations): Change complex suffix to "i".
6373
4c99290d
TT
63742020-04-01 Tom Tromey <tom@tromey.com>
6375
6376 * valprint.c (generic_value_print_complex): Use accessors.
6377 * value.h (value_real_part, value_imaginary_part): Declare.
6378 * valops.c (value_real_part, value_imaginary_part): New
6379 functions.
6380 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6381
5b930b45
TT
63822020-04-01 Tom Tromey <tom@tromey.com>
6383
6384 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6385 (read_range_type): Update.
6386 * mdebugread.c (basic_type): Update.
6387 * go-lang.c (build_go_types): Use init_complex_type.
6388 * gdbtypes.h (struct main_type) <complex_type>: New member.
6389 (init_complex_type): Update.
6390 (arch_complex_type): Don't declare.
6391 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6392 Make name if none given. Use alloc_type_copy. Look for cached
6393 complex type.
6394 (arch_complex_type): Remove.
6395 (gdbtypes_post_init): Use init_complex_type.
6396 * f-lang.c (build_fortran_types): Use init_complex_type.
6397 * dwarf2/read.c (read_base_type): Update.
6398 * d-lang.c (build_d_types): Use init_complex_type.
6399 * ctfread.c (read_base_type): Update.
6400
53cccef1
TBA
64012020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6402
6403 * infrun.c (stop_all_threads): Update assertion, plus when
6404 stopping threads, take into account that we might be trying
6405 to stop an all-stop target.
6406 (stop_waiting): Call 'stop_all_threads' if there exists a
6407 non-stop target.
6408
a0714d30
TBA
64092020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6410
6411 * target.h (exists_non_stop_target): New function declaration.
6412 * target.c (exists_non_stop_target): New function.
6413
60e22c1e
HD
64142020-04-01 Hannes Domani <ssbssa@yahoo.de>
6415
6416 PR gdb/24789
6417 * eval.c (is_integral_or_integral_reference): New function.
6418 (evaluate_subexp_standard): Allow integer references in
6419 pointer arithmetic.
6420
e139a727
TBA
64212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6422
6423 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6424 check for no ptid in the stop reply when the target is non-stop.
6425
e0802d59
TT
64262020-04-01 Tom Tromey <tromey@adacore.com>
6427
6428 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6429 "name" parameter to rvalue reference. Initialize m_name_holder.
6430 <lookup_name_info>: New overloads.
6431 <name>: Return gdb::string_view.
6432 <c_str>: New method.
6433 <make_ignore_params>: Update.
6434 <search_name_hash>: Update.
6435 <language_lookup_name>: Return const char *.
6436 <m_name>: Change type.
6437 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6438 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6439 (lookup_name_info::match_any): Update.
6440 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6441 Update.
6442 * minsyms.c (linkage_name_str): Update.
6443 * language.c (default_symbol_name_matcher): Update.
6444 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6445 Update.
6446 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6447 (ada_lookup_name_info::ada_lookup_name_info): Update.
6448 (literal_symbol_name_matcher): Update.
6449
8c072cb6
TT
64502020-04-01 Tom Tromey <tromey@adacore.com>
6451
6452 * psymtab.c (psymtab_search_name): Remove function.
6453 (psym_lookup_symbol): Create search name and lookup name here.
6454 (lookup_partial_symbol): Remove "name" parameter; add
6455 lookup_name.
6456 (psym_expand_symtabs_for_function): Update.
6457
6f29a534
TT
64582020-03-31 Joel Jones <joelkevinjones@gmail.com>
6459
6460 PR tui/25597:
6461 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6462
af62665e
TT
64632020-03-31 Tom Tromey <tromey@adacore.com>
6464
6465 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6466 memcpy.
6467
d1a89da5
NC
64682020-03-30 Nelson Chu <nelson.chu@sifive.com>
6469
6470 * features/riscv/32bit-csr.xml: Regenerated.
6471 * features/riscv/64bit-csr.xml: Regenerated.
6472
d8af9068
TT
64732020-03-30 Tom Tromey <tromey@adacore.com>
6474
6475 * ada-valprint.c (print_variant_part): Update.
6476 * ada-lang.h (ada_which_variant_applies): Update.
6477 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6478 outer_valaddr parameters; replace with "outer" value parameter.
6479 (to_fixed_variant_branch_type): Update.
6480
227c0bf4
PFC
64812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6482
6483 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6484 <list>. Remove inclusion of observable.h.
6485 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6486 (struct arch_lwp_info): New struct.
6487 (class ppc_linux_dreg_interface): New class.
6488 (struct ppc_linux_process_info): New struct.
6489 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6490 <low_new_clone, low_forget_process, low_prepare_to_resume>
6491 <copy_thread_dreg_state, mark_thread_stale>
6492 <mark_debug_registers_changed, register_hw_breakpoint>
6493 <clear_hw_breakpoint, register_wp, clear_wp>
6494 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6495 <num_memory_accesses, get_trigger_type>
6496 <create_watchpoint_request, hwdebug_point_cmp>
6497 <init_arch_lwp_info, get_arch_lwp_info>
6498 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6499 methods.
6500 <struct ptid_hash>: New inner struct.
6501 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6502 members.
6503 (saved_dabr_value, hwdebug_info, max_slots_number)
6504 (struct hw_break_tuple, struct thread_points, ppc_threads)
6505 (have_ptrace_hwdebug_interface)
6506 (hwdebug_find_thread_points_by_tid)
6507 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6508 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6509 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6510 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6511 use m_dreg_interface.
6512 (hwdebug_point_cmp): Change to...
6513 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6514 reference arguments instead of pointers.
6515 (ppc_linux_nat_target::ranged_break_num_registers): Use
6516 m_dreg_interface.
6517 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6518 m_dreg_interface. Call register_hw_breakpoint.
6519 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6520 m_dreg_interface. Call clear_hw_breakpoint.
6521 (get_trigger_type): Change to...
6522 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6523 comment.
6524 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6525 use m_dreg_interface. Call register_hw_breakpoint.
6526 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6527 use m_dreg_interface. Call clear_hw_breakpoint.
6528 (can_use_watchpoint_cond_accel): Change to...
6529 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6530 method. Update comment, use m_dreg_interface and
6531 m_process_info.
6532 (calculate_dvc): Change to...
6533 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6534 m_dreg_interface.
6535 (num_memory_accesses): Change to...
6536 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6537 (check_condition): Change to...
6538 (ppc_linux_nat_target::check_condition): ...this method.
6539 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6540 comment, use m_dreg_interface.
6541 (create_watchpoint_request): Change to...
6542 (ppc_linux_nat_target::create_watchpoint_request): ...this
6543 method. Use m_dreg_interface.
6544 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6545 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6546 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6547 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6548 (ppc_linux_nat_target::low_forget_process)
6549 (ppc_linux_nat_target::low_new_fork)
6550 (ppc_linux_nat_target::low_new_clone)
6551 (ppc_linux_nat_target::low_delete_thread)
6552 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6553 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6554 only call mark_thread_stale.
6555 (ppc_linux_thread_exit): Remove.
6556 (ppc_linux_nat_target::stopped_data_address): Change to...
6557 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6558 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6559 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6560 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6561 comment. Call low_stopped_data_address.
6562 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6563 m_dreg_interface.
6564 (ppc_linux_nat_target::masked_watch_num_registers): Use
6565 m_dreg_interface.
6566 (ppc_linux_nat_target::copy_thread_dreg_state)
6567 (ppc_linux_nat_target::mark_thread_stale)
6568 (ppc_linux_nat_target::mark_debug_registers_changed)
6569 (ppc_linux_nat_target::register_hw_breakpoint)
6570 (ppc_linux_nat_target::clear_hw_breakpoint)
6571 (ppc_linux_nat_target::register_wp)
6572 (ppc_linux_nat_target::clear_wp)
6573 (ppc_linux_nat_target::init_arch_lwp_info)
6574 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6575 (_initialize_ppc_linux_nat): Remove observer callback.
6576
4db10d8f
PFC
65772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6578
6579 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6580 (ppc_linux_nat_target::auxv_parse)
6581 (ppc_linux_nat_target::read_description)
6582 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6583 Move up.
6584
1310c1b0
PFC
65852020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6586
6587 * linux-nat.h (low_new_clone): New method.
6588 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6589
69b037c3
SM
65902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6591
6592 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6593 (dbx_expand_psymtab): ... this.
6594 (start_psymtab): Update.
6595 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6596 (mdebug_expand_psymtab): ... this.
6597 (parse_partial_symbols): Update.
6598 (new_psymtab): Update.
6599 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6600 (xcoff_expand_psymtab): ... this.
6601 (xcoff_start_psymtab): Update.
6602
48993951
SM
66032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6604
6605 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6606 <expand_dependencies>: ... this.
6607 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6608 (partial_symtab::expand_dependencies): ... this.
6609 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6610 Update.
6611 (dwarf2_psymtab::expand_psymtab): Update.
6612 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6613 * mdebugread.c (psymtab_to_symtab_1): Update.
6614 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6615
3ad83046
SM
66162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6617
6618 * psympriv.h (discard_psymtab): Remove.
6619 * dbxread.c (dbx_end_psymtab): Update.
6620 * xcoffread.c (xcoff_end_psymtab): Update.
6621
4d1b9ab6
TT
66222020-03-28 Tom Tromey <tom@tromey.com>
6623
6624 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6625 comment.
6626
f1749218
TT
66272020-03-28 Tom Tromey <tom@tromey.com>
6628
6629 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6630
ebea7626
HD
66312020-03-27 Hannes Domani <ssbssa@yahoo.de>
6632
6633 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6634
a879b4d5
JB
66352020-03-26 John Baldwin <jhb@FreeBSD.org>
6636
6637 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6638
0826b30a
TT
66392020-03-26 Tom Tromey <tom@tromey.com>
6640
6641 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6642 (mark_common_block_symbol_computed, read_tag_string_type)
6643 (attr_to_dynamic_prop, read_subrange_type): Update.
6644 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6645 to be methods on struct attribute.
6646 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6647 (read_call_site_scope, partial_die_info::read)
6648 (partial_die_info::read, lookup_die_type, follow_die_ref):
6649 Update.
6650 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6651 from dwarf2_get_ref_die_offset.
6652 (attribute::constant_value): New method, from
6653 dwarf2_get_attr_constant_value.
6654 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6655 Declare method.
6656 <constant_value>: New method.
6657
2b2558bf
TT
66582020-03-26 Tom Tromey <tom@tromey.com>
6659
6660 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6661 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6662 (dwarf_type_encoding_name): Move to stringify.c.
6663 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6664 * dwarf2/stringify.c: New file.
6665 * dwarf2/stringify.h: New file.
6666
eeb64781
TT
66672020-03-26 Tom Tromey <tom@tromey.com>
6668
6669 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6670 Rewrite.
6671
a39fdb41
TT
66722020-03-26 Tom Tromey <tom@tromey.com>
6673
6674 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6675 methods.
6676 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6677 (lookup_ranges_base): Likewise.
6678 (read_cutu_die_from_dwo, read_full_die_1): Update.
6679
436c571c
TT
66802020-03-26 Tom Tromey <tom@tromey.com>
6681
6682 * dwarf2/read.c (read_import_statement, read_file_scope)
6683 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6684 (read_lexical_block_scope, read_call_site_scope)
6685 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6686 (handle_struct_member_die, process_structure_scope)
6687 (update_enumeration_type_from_children)
6688 (process_enumeration_scope, read_array_type, read_common_block)
6689 (read_namespace, read_module, read_subroutine_type): Update.
6690 (sibling_die): Remove.
6691
052c8bb8
TT
66922020-03-26 Tom Tromey <tom@tromey.com>
6693
6694 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6695 (build_type_psymtabs_reader, read_structure_type)
6696 (read_enumeration_type, read_full_die_1): Update.
6697 (dwarf2_attr_no_follow): Move to die.h.
6698 * dwarf2/die.h (struct die_info) <attr>: New method.
6699
2b24b6e4
TT
67002020-03-26 Tom Tromey <tom@tromey.com>
6701
6702 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6703 <base_address>: Now an optional.
6704 (dwarf2_find_base_address, dwarf2_rnglists_process)
6705 (dwarf2_ranges_process, fill_in_loclist_baton)
6706 (dwarf2_symbol_mark_computed): Update.
6707
c2d50fd0
TT
67082020-03-26 Tom Tromey <tom@tromey.com>
6709
6710 * dwarf2/read.c (struct die_info): Move to die.h.
6711 * dwarf2/die.h: New file.
6712
0df7ad3a
TT
67132020-03-26 Tom Tromey <tom@tromey.com>
6714
6715 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6716 * dwarf2/read.c
6717 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6718 Move to line-header.c.
6719 (read_checked_initial_length_and_offset, read_formatted_entries):
6720 Likewise.
6721 (dwarf_decode_line_header): Split into two.
6722 * dwarf2/line-header.c
6723 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6724 Move from read.c.
6725 (read_checked_initial_length_and_offset, read_formatted_entries):
6726 Likewise.
6727 (dwarf_decode_line_header): New function, split from read.c.
6728
86c0bb4c
TT
67292020-03-26 Tom Tromey <tom@tromey.com>
6730
6731 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6732 Declare method.
6733 * dwarf2/read.c (read_attribute_value): Update.
6734 (dwarf2_per_objfile::read_line_string): Rename from
6735 read_indirect_line_string.
6736 (read_formatted_entries): Update.
6737
2ef46c2f
TT
67382020-03-26 Tom Tromey <tom@tromey.com>
6739
6740 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6741 variable.
6742
4f9c1eda
TT
67432020-03-26 Tom Tromey <tom@tromey.com>
6744
6745 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6746 const.
6747 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6748 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6749 parameter const.
6750
5a0e026f
TT
67512020-03-26 Tom Tromey <tom@tromey.com>
6752
6753 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6754 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6755 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6756 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6757
8844c11b
TT
67582020-03-26 Tom Tromey <tom@tromey.com>
6759
6760 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6761 file_names_size, file_full_name, file_file_name>: Use const.
6762 <file_name_at, file_names>: Add const overload.
6763 * dwarf2/line-header.c (line_header::file_file_name)
6764 (line_header::file_full_name): Update.
6765
c90ec28a
TT
67662020-03-26 Tom Tromey <tom@tromey.com>
6767
6768 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6769 (macro_start_file, consume_improper_spaces)
6770 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6771 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6772 (dwarf_decode_macros): Move to macro.c.
6773 * dwarf2/macro.c: New file.
6774 * dwarf2/macro.h: New file.
6775 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6776
4f44ae6c
TT
67772020-03-26 Tom Tromey <tom@tromey.com>
6778
6779 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6780 method.
6781 * dwarf2/section.c: New method. From
6782 read_indirect_string_at_offset_from.
6783 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6784 (read_indirect_string_at_offset_from): Move to section.c.
6785 (read_indirect_string_at_offset): Rewrite.
6786 (read_indirect_line_string_at_offset): Remove.
6787 (read_indirect_string, read_indirect_line_string)
6788 (dwarf_decode_macro_bytes): Update.
6789
a0194fa8
TT
67902020-03-26 Tom Tromey <tom@tromey.com>
6791
6792 * dwarf2/section.h (struct dwarf2_section_info)
6793 <overload_complaint>: Declare.
6794 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6795 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6796 Rename from dwarf2_section_buffer_overflow_complaint.
6797 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6798 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6799
3d27bbdb
TT
68002020-03-26 Tom Tromey <tom@tromey.com>
6801
6802 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6803 Declare.
6804 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6805 Move from read.c.
6806 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6807 to section.c.
6808
9eac9650
TT
68092020-03-26 Tom Tromey <tom@tromey.com>
6810
6811 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6812
bf80d710
TT
68132020-03-26 Tom Tromey <tom@tromey.com>
6814
6815 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6816 "builder".
6817 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6818 parameter.
6819 (dwarf_decode_macros): Update.
6820
0314b390
TT
68212020-03-26 Tom Tromey <tom@tromey.com>
6822
6823 * dwarf2/read.c (read_attribute_value): Update.
6824 (read_indirect_string_from_dwz): Move to dwz.c; change into
6825 method.
6826 (dwarf_decode_macro_bytes): Update.
6827 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6828 * dwarf2/dwz.c: New file.
6829 * Makefile.in (COMMON_SFILES): Add dwz.c.
6830
9fda78b6
TT
68312020-03-26 Tom Tromey <tom@tromey.com>
6832
6833 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6834 * dwarf2/read.c: Add include.
6835 * dwarf2/index-write.c: Add include.
6836 * dwarf2/index-cache.c: Add include.
6837 * dwarf2/dwz.h: New file.
6838
33aa3c10
TT
68392020-03-25 Tom Tromey <tom@tromey.com>
6840
6841 * compile/compile-object-load.c (get_out_value_type): Mention
6842 correct symbol name in error message.
6843
d503b685
HD
68442020-03-25 Hannes Domani <ssbssa@yahoo.de>
6845
6846 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6847
7b1eff95
TV
68482020-03-25 Tom de Vries <tdevries@suse.de>
6849
6850 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6851 * symmisc.c (dump_symtab_1): Print user and includes fields.
6852 (maintenance_info_symtabs): Same.
6853
dd895392
AB
68542020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6855
6856 PR gdb/25534
6857 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6858 (riscv_regcache_cooked_write): New function.
6859 (riscv_push_dummy_call): Use new function.
6860 (riscv_return_value): Likewise.
6861
5ab2fbf1
SM
68622020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6863
6864 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6865 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6866 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6867 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6868 * infrun.c (follow_fork): Likewise.
6869 (follow_fork_inferior): Likewise.
6870 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6871 * linux-nat.h (class linux_nat_target): Likewise.
6872 * remote.c (class remote_target) <follow_fork>: Likewise.
6873 (remote_target::follow_fork): Likewise.
6874 * target-delegates.c: Re-generate.
6875 * target.c (default_follow_fork): Likewise.
6876 (target_follow_fork): Likewise.
6877 * target.h (struct target_ops) <follow_fork>: Likewise.
6878 (target_follow_fork): Likewise.
6879
a64fafb5
TV
68802020-03-24 Tom de Vries <tdevries@suse.de>
6881
6882 * psymtab.c (maintenance_info_psymtabs): Print user field.
6883
fe26d3a3
TT
68842020-03-20 Tom Tromey <tromey@adacore.com>
6885
6886 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6887 const.
6888 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6889 const.
6890
c884cc46
SM
68912020-03-20 Simon Marchi <simon.marchi@efficios.com>
6892
6893 * ptrace.m4: Don't check for ptrace declaration.
6894 * config.in: Re-generate.
6895 * configure: Re-generate.
6896 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6897 not defined.
6898
1ff700c2
KR
68992020-03-20 Kamil Rytarowski <n54@gmx.com>
6900
6901 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6902 `PTRACE_TYPE_RET'.
6903 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6904 * sparc-nat.c (gdb_ptrace): Likewise.
6905 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6906
f7d4f0b1
TT
69072020-03-20 Tom Tromey <tromey@adacore.com>
6908
6909 * c-exp.y (lex_one_token): Fix assert.
6910
f67210ff
TT
69112020-03-20 Tom Tromey <tromey@adacore.com>
6912
6913 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6914 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6915 strncpy call.
6916
1773be9e
TT
69172020-03-20 Tom Tromey <tromey@adacore.com>
6918
6919 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6920
70304be9
TT
69212020-03-20 Tom Tromey <tromey@adacore.com>
6922
6923 * ada-valprint.c (print_variant_part): Remove parameters; switch
6924 to value-based API.
6925 (print_field_values): Likewise.
6926 (ada_val_print_struct_union): Likewise.
6927 (ada_value_print_1): Update.
6928
9faa006d
KR
69292020-03-20 Kamil Rytarowski <n54@gmx.com>
6930
6931 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6932 nbsd_nat_target instead of inf_ptrace_target.
6933 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6934 nbsd_nat_target.
6935
4a90f062
KR
69362020-03-20 Kamil Rytarowski <n54@gmx.com>
6937
6938 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6939 it to the ptrace call.
6940 * (store_registers): Likewise.
6941
69422020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6943
6944 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6945 it to the ptrace call.
6946 * (store_registers): Likewise.
6947
2d07da27
LM
69482020-03-19 Luis Machado <luis.machado@linaro.org>
6949
6950 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6951 valid, fetch vg value from ptrace.
6952
f09db380
KR
69532020-03-19 Kamil Rytarowski <n54@gmx.com>
6954 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6955 * inf-ptrace.c: Likewise.
6956 * (gdb_ptrace): Add.
6957 * (inf_ptrace_target::resume): Update.
6958 * (inf_ptrace_target::xfer_partial): Likewise.
6959 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6960 * (inf_ptrace_peek_poke): Update.
6961
fcc7376e
KR
69622020-03-19 Kamil Rytarowski <n54@gmx.com>
6963
6964 * x86-bsd-nat.c (gdb_ptrace): New.
6965 * (x86bsd_dr_set): Add new argument `ptid'.
6966 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6967 x86bsd_dr_set_addr): Update.
6968
cada5fc9
AB
69692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6970
6971 * remote.c (remote_target::process_stop_reply): Handle events for
6972 all threads differently.
6973
19a2740f
AB
69742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6975
6976 * completer.c (completion_tracker::remove_completion): Define new
6977 function.
6978 * completer.h (completion_tracker::remove_completion): Declare new
6979 function.
6980 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6981 when adding a C++ function symbol.
6982
724fd9ba
AB
69832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * completer.c (completion_tracker::completion_hash_entry): Define
6986 new class.
6987 (advance_to_filename_complete_word_point): Call
6988 recompute_lowest_common_denominator.
6989 (completion_tracker::completion_tracker): Call discard_completions
6990 to setup the hash table.
6991 (completion_tracker::discard_completions): Allow for being called
6992 from the constructor, pass new equal function, and element deleter
6993 when constructing the hash table. Initialise new class member
6994 variables.
6995 (completion_tracker::maybe_add_completion): Remove use of
6996 m_entries_vec, and store more information into m_entries_hash.
6997 (completion_tracker::recompute_lcd_visitor): New function, most
6998 content taken from...
6999 (completion_tracker::recompute_lowest_common_denominator):
7000 ...here, this now just visits each item in the hash calling the
7001 above visitor.
7002 (completion_tracker::build_completion_result): Remove use of
7003 m_entries_vec, call recompute_lowest_common_denominator.
7004 * completer.h (completion_tracker::have_completions): Remove use
7005 of m_entries_vec.
7006 (completion_tracker::completion_hash_entry): Declare new class.
7007 (completion_tracker::recompute_lowest_common_denominator): Change
7008 function signature.
7009 (completion_tracker::recompute_lcd_visitor): Declare new function.
7010 (completion_tracker::m_entries_vec): Delete.
7011 (completion_tracker::m_entries_hash): Initialize to NULL.
7012 (completion_tracker::m_lowest_common_denominator_valid): New
7013 member variable.
7014 (completion_tracker::m_lowest_common_denominator_max_length): New
7015 member variable.
7016
5a82b8a1
KR
70172020-03-17 Kamil Rytarowski <n54@gmx.com>
7018
7019 * regformats/regdef.h: Put reg in gdb namespace.
7020
fb516a69
KR
70212020-03-17 Kamil Rytarowski <n54@gmx.com>
7022
7023 * i386-bsd-nat.c (gdb_ptrace): New.
7024 * (i386bsd_fetch_inferior_registers,
7025 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7026 * (i386bsd_fetch_inferior_registers,
7027 i386bsd_store_inferior_registers) Use gdb_ptrace.
7028
1c0aa1fb
KR
70292020-03-17 Kamil Rytarowski <n54@gmx.com>
7030
7031 * amd64-bsd-nat.c (gdb_ptrace): New.
7032 * (amd64bsd_fetch_inferior_registers,
7033 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7034 * (amd64bsd_fetch_inferior_registers,
7035 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7036
5ccd2fb7
KR
70372020-03-17 Kamil Rytarowski <n54@gmx.com>
7038
7039 * user-regs.c (user_reg::read): Rename to...
7040 (user_reg::xread): ...this.
7041 * (append_user_reg): Rename argument `read' to `xread'.
7042 * (user_reg_add_builtin): Likewise.
7043 * (user_reg_add): Likewise.
7044 * (value_of_user_reg): Likewise.
7045
2108a63a
KR
70462020-03-17 Kamil Rytarowski <n54@gmx.com>
7047
7048 * sparc-nat.c (gdb_ptrace): New.
7049 * sparc-nat.c (sparc_fetch_inferior_registers)
7050 (sparc_store_inferior_registers) Remove obsolete comment.
7051 * sparc-nat.c (sparc_fetch_inferior_registers)
7052 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7053 * sparc-nat.c (sparc_fetch_inferior_registers)
7054 (sparc_store_inferior_registers) Use gdb_ptrace.
7055
a225c9a8
KR
70562020-03-17 Kamil Rytarowski <n54@gmx.com>
7057
7058 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7059 it to the ptrace call.
7060 * sh-nbsd-nat.c (store_registers): Likewise.
7061
98097623
KR
70622020-03-17 Kamil Rytarowski <n54@gmx.com>
7063
7064 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7065 nbsd_nat_target instead of inf_ptrace_target.
7066 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7067 nbsd_nat_target.
7068
9e38d619
KR
70692020-03-17 Kamil Rytarowski <n54@gmx.com>
7070
7071 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7072
a2ecbe9f
KR
70732020-03-17 Kamil Rytarowski <n54@gmx.com>
7074
7075 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7076 <sys/sysctl.h>.
7077 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7078
58990295
TV
70792020-03-17 Tom de Vries <tdevries@suse.de>
7080
7081 PR gdb/23710
7082 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7083 fields.
7084 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7085 fields.
7086 (process_imported_unit_die): Skip import of c++ CUs.
7087
771dd3a8
TT
70882020-03-16 Tom Tromey <tom@tromey.com>
7089
7090 * p-valprint.c (pascal_object_print_value): Initialize
7091 base_value.
7092
817a7585
AK
70932020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7094 Shahab Vahedi <shahab@synopsys.com>
7095
7096 * Makefile.in: Add arch/arc.o
7097 * configure.tgt: Likewise.
7098 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7099 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7100 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7101 * arc-tdep.h (arc_read_description): Add proto type.
7102 * arch/arc.c: New file.
7103 * arch/arc.h: Likewise.
7104 * features/Makefile: Replace old target descriptions with new.
7105 * features/arc-arcompact.c: Remove.
7106 * features/arc-arcompact.xml: Likewise.
7107 * features/arc-v2.c: Likewise
7108 * features/arc-v2.xml: Likewise
7109 * features/arc/aux-arcompact.xml: New file.
7110 * features/arc/aux-v2.xml: Likewise.
7111 * features/arc/core-arcompact.xml: Likewise.
7112 * features/arc/core-v2.xml: Likewise.
7113 * features/arc/aux-arcompact.c: Generate.
7114 * features/arc/aux-v2.c: Likewise.
7115 * features/arc/core-arcompact.c: Likewise.
7116 * features/arc/core-v2.c: Likewise.
7117 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7118
67430cd0
TT
71192020-03-16 Tom Tromey <tromey@adacore.com>
7120
7121 PR gdb/25663:
7122 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7123 putting value into bcache.
7124
30efb6c7
SM
71252020-03-16 Simon Marchi <simon.marchi@efficios.com>
7126
7127 PR gdb/21500
7128 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7129 to...
7130 (amd64_windows_init_abi_common): ... this. Don't set size of
7131 long type.
7132 (amd64_windows_init_abi): New function.
7133 (amd64_cygwin_init_abi): New function.
7134 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7135 the Cygwin OS ABI.
7136 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7137 comment.
7138
8db52437
SM
71392020-03-16 Simon Marchi <simon.marchi@efficios.com>
7140
7141 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7142 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7143 (pe_import_directory_entry): New struct type.
7144 (is_linked_with_cygwin_dll): New function.
7145 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7146 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7147 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7148
5982a56a
SM
71492020-03-16 Simon Marchi <simon.marchi@efficios.com>
7150
7151 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7152 i386_cygwin_core_osabi_sniffer.
7153
7a1998df
SM
71542020-03-16 Simon Marchi <simon.marchi@efficios.com>
7155
7156 * i386-cygwin-tdep.c: Rename to...
7157 * i386-windows-tdep.c: ... this.
7158 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7159 i386-windows-tdep.c.
7160 * configure.tgt: Likewise.
7161
053205cc
SM
71622020-03-16 Simon Marchi <simon.marchi@efficios.com>
7163
7164 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7165 * osabi.c (gdb_osabi_names): Add "Windows".
7166 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7167 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7168 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7169 i386_cygwin_osabi_sniffer.
7170 (_initialize_i386_cygwin_tdep): Register OS ABI
7171 GDB_OSABI_WINDOWS for i386.
7172 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7173 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7174 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7175 for x86-64.
7176 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7177 when the target matches '*-*-mingw*'.
7178
fe4b2ee6
SM
71792020-03-16 Simon Marchi <simon.marchi@efficios.com>
7180
7181 * defs.h (enum gdb_osabi): Move to...
7182 * osabi.h (enum gdb_osabi): ... here.
7183 * gdbarch.sh: Include osabi.h in gdbarch.h.
7184 * gdbarch.h: Re-generate.
7185
cb9b645d
SM
71862020-03-16 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7189 function.
7190 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7191
3293bbaf
TT
71922020-03-14 Tom Tromey <tom@tromey.com>
7193
7194 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7195 for C++.
7196 (c_type_print_modifier): Likewise. Add "language" parameter.
7197 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7198 (c_type_print_base_1): Update.
7199 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7200 constants.
7201 * type-stack.c (type_stack::insert): Handle tp_atomic and
7202 tp_restrict.
7203 (type_stack::follow_type_instance_flags): Likewise.
7204 (type_stack::follow_types): Likewise. Merge type-following code.
7205 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7206 (space_identifier, cv_with_space_id)
7207 (const_or_volatile_or_space_identifier_noopt)
7208 (const_or_volatile_or_space_identifier): Remove.
7209 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7210 rules.
7211 (ptr_operator, typebase): Update.
7212 (enum token_flag) <FLAG_C>: New constant.
7213 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7214 "_Atomic".
7215 (lex_one_token): Handle FLAG_C.
7216
154151a6
KR
72172020-03-14 Kamil Rytarowski <n54@gmx.com>
7218
7219 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7220 it to the ptrace call.
7221 * m68k-bsd-nat.c (store_registers): Likewise.
7222
bc107784
KR
72232020-03-14 Kamil Rytarowski <n54@gmx.com>
7224
7225 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7226 gdb_byte *.
7227 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7228 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7229 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7230
01a80117
KR
72312020-03-14 Kamil Rytarowski <n54@gmx.com>
7232
7233 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7234 nbsd_nat_target instead of inf_ptrace_target.
7235 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7236 nbsd_nat_target.
7237
f90280ca
KR
72382020-03-14 Kamil Rytarowski <n54@gmx.com>
7239
7240 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7241 register_t.
7242
6def66f1
KR
72432020-03-14 Kamil Rytarowski <n54@gmx.com>
7244
7245 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7246 it to the ptrace call.
7247 * alpha-bsd-nat.c (store_registers): Likewise.
7248
66eaca97
KR
72492020-03-14 Kamil Rytarowski <n54@gmx.com>
7250
7251 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7252 includes.
7253 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7254 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7255 fill_fpregset): Likewise.
7256
4fed520b
KR
72572020-03-14 Kamil Rytarowski <n54@gmx.com>
7258
7259 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7260 nbsd_nat_target instead of inf_ptrace_target.
7261 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7262 nbsd_nat_target.
7263
2190cf06
KR
72642020-03-14 Kamil Rytarowski <n54@gmx.com>
7265
7266 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7267 register_t.
7268
75c56d3d
KR
72692020-03-14 Kamil Rytarowski <n54@gmx.com>
7270
7271 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7272 it to the ptrace call.
7273 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7274 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7275 * arm-nbsd-nat.c (store_register): Likewise.
7276 * arm-nbsd-nat.c (store_regs): Likewise.
7277 * arm-nbsd-nat.c (store_fp_register): Likewise.
7278 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7279
6018d381
KR
72802020-03-14 Kamil Rytarowski <n54@gmx.com>
7281
7282 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7283 nbsd_nat_target instead of inf_ptrace_target.
7284 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7285 nbsd_nat_target.
7286
013f99f0
KR
72872020-03-14 Kamil Rytarowski <n54@gmx.com>
7288
7289 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7290 it to the ptrace call.
7291 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7292
12753073
KR
72932020-03-14 Kamil Rytarowski <n54@gmx.com>
7294
6227b330
KR
7295 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7296 it to the ptrace call.
7297 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7298
72992020-03-14 Kamil Rytarowski <n54@gmx.com>
7300
7301 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7302 gdb_byte *.
12753073
KR
7303 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7304
d5be5fa4
KR
73052020-03-14 Kamil Rytarowski <n54@gmx.com>
7306
7307 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7308 instead of inf_ptrace_target.
7309 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7310 nbsd_nat_target.
7311
8110f842
KR
73122020-03-14 Kamil Rytarowski <n54@gmx.com>
7313
7314 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7315 register_t.
7316
52feded7
KR
73172020-03-14 Kamil Rytarowski <n54@gmx.com>
7318
7319 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7320 register_t.
7321
25567eee
KR
73222020-03-14 Kamil Rytarowski <n54@gmx.com>
7323
7324 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7325 register_t.
7326
426a9c18
TT
73272020-03-13 Tom Tromey <tom@tromey.com>
7328
7329 * value.h (val_print): Don't declare.
7330 * valprint.h (val_print_array_elements)
7331 (val_print_scalar_formatted, generic_val_print): Don't declare.
7332 * valprint.c (generic_val_print_array): Take a struct value.
7333 (generic_val_print_ptr, generic_val_print_memberptr)
7334 (generic_val_print_bool, generic_val_print_int)
7335 (generic_val_print_char, generic_val_print_complex)
7336 (generic_val_print): Remove.
7337 (generic_value_print): Update.
7338 (do_val_print): Remove unused parameters. Don't call
7339 la_val_print.
7340 (val_print): Remove.
7341 (common_val_print): Update. Don't call value_check_printable.
7342 (val_print_scalar_formatted, val_print_array_elements): Remove.
7343 * rust-lang.c (rust_val_print): Remove.
7344 (rust_language_defn): Update.
7345 * p-valprint.c (pascal_val_print): Remove.
7346 (pascal_value_print_inner): Update.
7347 (pascal_object_print_val_fields, pascal_object_print_val):
7348 Remove.
7349 (pascal_object_print_static_field): Update.
7350 * p-lang.h (pascal_val_print): Don't declare.
7351 * p-lang.c (pascal_language_defn): Update.
7352 * opencl-lang.c (opencl_language_defn): Update.
7353 * objc-lang.c (objc_language_defn): Update.
7354 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7355 * m2-lang.h (m2_val_print): Don't declare.
7356 * m2-lang.c (m2_language_defn): Update.
7357 * language.h (struct language_defn) <la_val_print>: Remove.
7358 * language.c (unk_lang_value_print_inner): Rename. Change
7359 argument types.
7360 (unknown_language_defn, auto_language_defn): Update.
7361 * go-valprint.c (go_val_print): Remove.
7362 * go-lang.h (go_val_print): Don't declare.
7363 * go-lang.c (go_language_defn): Update.
7364 * f-valprint.c (f_val_print): Remove.
7365 * f-lang.h (f_value_print): Don't declare.
7366 * f-lang.c (f_language_defn): Update.
7367 * d-valprint.c (d_val_print): Remove.
7368 * d-lang.h (d_value_print): Don't declare.
7369 * d-lang.c (d_language_defn): Update.
7370 * cp-valprint.c (cp_print_value_fields)
7371 (cp_print_value_fields_rtti, cp_print_value): Remove.
7372 (cp_print_static_field): Update.
7373 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7374 (c_val_print_struct, c_val_print_union, c_val_print_int)
7375 (c_val_print_memberptr, c_val_print): Remove.
7376 * c-lang.h (c_val_print_array, cp_print_value_fields)
7377 (cp_print_value_fields_rtti): Don't declare.
7378 * c-lang.c (c_language_defn, cplus_language_defn)
7379 (asm_language_defn, minimal_language_defn): Update.
7380 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7381 (ada_val_print_enum): Take a struct value.
7382 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7383 (ada_val_print): Remove.
7384 (ada_value_print_1): Update.
7385 (printable_val_type): Remove.
7386 * ada-lang.h (ada_val_print): Don't declare.
7387 * ada-lang.c (ada_language_defn): Update.
7388
42331a1e
TT
73892020-03-13 Tom Tromey <tom@tromey.com>
7390
7391 * valprint.c (do_val_print): Update.
7392 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7393 a struct value.
7394 (value_to_value_object_no_release): Declare.
7395 * python/py-value.c (value_to_value_object_no_release): New
7396 function.
7397 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7398 struct value.
7399 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7400 function.
7401 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7402 a struct value.
7403 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7404 Declare.
7405 (gdbscm_apply_val_pretty_printer): Take a struct value.
7406 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7407 value.
7408 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7409 value.
7410 * extension-priv.h (struct extension_language_ops)
7411 <apply_val_pretty_printer>: Take a struct value.
7412 * cp-valprint.c (cp_print_value): Create a struct value.
7413 (cp_print_value): Update.
7414
3a916a97
TT
74152020-03-13 Tom Tromey <tom@tromey.com>
7416
7417 * ada-valprint.c (print_field_values): Call common_val_print.
7418
b59eac37
TT
74192020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * ada-valprint.c (val_print_packed_array_elements): Remove
7422 bitoffset and val parameters. Call common_val_print.
7423 (ada_val_print_string): Remove offset, address, and original_value
7424 parameters.
7425 (ada_val_print_array): Update.
7426 (ada_value_print_array): New function.
7427 (ada_value_print_1): Call it.
7428
03371129
TT
74292020-03-13 Tom Tromey <tom@tromey.com>
7430
7431 * ada-valprint.c (ada_value_print): Use common_val_print.
7432
2e088f8b
TT
74332020-03-13 Tom Tromey <tom@tromey.com>
7434
7435 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7436
39ef85a8
TT
74372020-03-13 Tom Tromey <tom@tromey.com>
7438
7439 * ada-valprint.c (ada_value_print_num): New function.
7440 (ada_value_print_1): Use it.
7441
b9fa6e07
TT
74422020-03-13 Tom Tromey <tom@tromey.com>
7443
7444 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7445
416595d6
TT
74462020-03-13 Tom Tromey <tom@tromey.com>
7447
7448 * ada-valprint.c (ada_value_print_ptr): New function.
7449 (ada_value_print_1): Use it.
7450
5b5e15ec
TT
74512020-03-13 Tom Tromey <tom@tromey.com>
7452
7453 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7454 call common_val_print.
7455 (ada_val_print_1): Update.
7456 (ada_value_print_1): New function.
7457 (ada_value_print_inner): Rewrite.
7458
fbf54e75
TT
74592020-03-13 Tom Tromey <tom@tromey.com>
7460
7461 * cp-valprint.c (cp_print_value_fields): Update.
7462 (cp_print_value): New function.
7463
64b653ca
TT
74642020-03-13 Tom Tromey <tom@tromey.com>
7465
7466 * m2-valprint.c (m2_value_print_inner): Use
7467 cp_print_value_fields.
7468 * cp-valprint.c (cp_print_value_fields): New function.
7469 * c-valprint.c (c_value_print_struct): New function.
7470 (c_value_print_inner): Use c_value_print_struct.
7471 * c-lang.h (cp_print_value_fields): Declare.
7472
6999f067
TT
74732020-03-13 Tom Tromey <tom@tromey.com>
7474
7475 * c-valprint.c (c_value_print_array): New function.
7476 (c_value_print_inner): Use it.
7477
ce80b8bd
TT
74782020-03-13 Tom Tromey <tom@tromey.com>
7479
7480 * c-valprint.c (c_value_print_memberptr): New function.
7481 (c_value_print_inner): Use it.
7482
2faac269
TT
74832020-03-13 Tom Tromey <tom@tromey.com>
7484
7485 * c-valprint.c (c_value_print_int): New function.
7486 (c_value_print_inner): Use it.
7487
da3e2c29
TT
74882020-03-13 Tom Tromey <tom@tromey.com>
7489
7490 * c-valprint.c (c_value_print_ptr): New function.
7491 (c_value_print_inner): Use it.
7492
50836231
TT
74932020-03-13 Tom Tromey <tom@tromey.com>
7494
7495 * c-valprint.c (c_value_print_inner): Rewrite.
7496
4f412b6e
TT
74972020-03-13 Tom Tromey <tom@tromey.com>
7498
7499 * valprint.c (generic_value_print_complex): New function.
7500 (generic_value_print): Use it.
7501
f5354008
TT
75022020-03-13 Tom Tromey <tom@tromey.com>
7503
7504 * valprint.c (generic_val_print_float): Don't call
7505 val_print_scalar_formatted.
7506 (generic_val_print, generic_value_print): Update.
7507
3eec3b05
TT
75082020-03-13 Tom Tromey <tom@tromey.com>
7509
7510 * valprint.c (generic_value_print_char): New function
7511 (generic_value_print): Use it.
7512
fdddfccb
TT
75132020-03-13 Tom Tromey <tom@tromey.com>
7514
7515 * valprint.c (generic_value_print_int): New function.
7516 (generic_value_print): Use it.
7517
6dde7521
TT
75182020-03-13 Tom Tromey <tom@tromey.com>
7519
7520 * valprint.c (generic_value_print_bool): New function.
7521 (generic_value_print): Use it.
7522
4112d2e6
TT
75232020-03-13 Tom Tromey <tom@tromey.com>
7524
7525 * valprint.c (generic_val_print_func): Simplify.
7526 (generic_val_print, generic_value_print): Update.
7527
65786af6
TT
75282020-03-13 Tom Tromey <tom@tromey.com>
7529
7530 * valprint.c (generic_val_print_flags): Remove.
7531 (generic_val_print, generic_value_print): Update.
7532 (val_print_type_code_flags): Add original_value parameter.
7533
40f3ce18
TT
75342020-03-13 Tom Tromey <tom@tromey.com>
7535
7536 * valprint.c (generic_val_print): Update.
7537 (generic_value_print): Update.
7538 * valprint.c (generic_val_print_enum): Don't call
7539 val_print_scalar_formatted.
7540
2a5b130b
TT
75412020-03-13 Tom Tromey <tom@tromey.com>
7542
7543 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7544 * valprint.c (generic_value_print_ptr): New function.
7545
abc66ce9
TT
75462020-03-13 Tom Tromey <tom@tromey.com>
7547
7548 * valprint.c (generic_value_print): Rewrite.
7549
07a32858
TT
75502020-03-13 Tom Tromey <tom@tromey.com>
7551
7552 * p-valprint.c (pascal_object_print_value_fields)
7553 (pascal_object_print_value): New functions.
7554
64d64d3a
TT
75552020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * p-valprint.c (pascal_value_print_inner): Rewrite.
7558
6a95a1f5
TT
75592020-03-13 Tom Tromey <tom@tromey.com>
7560
7561 * f-valprint.c (f_value_print_innner): Rewrite.
7562
59fcdac6
TT
75632020-03-13 Tom Tromey <tom@tromey.com>
7564
7565 * m2-valprint.c (m2_print_unbounded_array): New overload.
7566 (m2_print_unbounded_array): Update.
7567 (m2_print_array_contents): Take a struct value.
7568 (m2_value_print_inner): Rewrite.
7569
d133c3e1
TT
75702020-03-13 Tom Tromey <tom@tromey.com>
7571
7572 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7573 (d_value_print_inner): New function.
7574 * d-lang.h (d_value_print_inner): Declare.
7575 * d-lang.c (d_language_defn): Use d_value_print_inner.
7576
23b0f06b
TT
75772020-03-13 Tom Tromey <tom@tromey.com>
7578
7579 * go-valprint.c (go_value_print_inner): New function.
7580 * go-lang.h (go_value_print_inner): Declare.
7581 * go-lang.c (go_language_defn): Use go_value_print_inner.
7582
5f56f7cb
TT
75832020-03-13 Tom Tromey <tom@tromey.com>
7584
7585 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7586 API.
7587 (rust_val_print): Rewrite.
7588 (rust_value_print_inner): New function, from rust_val_print.
7589 (rust_language_defn): Use rust_value_print_inner.
7590
26792ee0
TT
75912020-03-13 Tom Tromey <tom@tromey.com>
7592
7593 * ada-valprint.c (ada_value_print_inner): New function.
7594 * ada-lang.h (ada_value_print_inner): Declare.
7595 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7596
24051bbe
TT
75972020-03-13 Tom Tromey <tom@tromey.com>
7598
7599 * f-valprint.c (f_value_print_innner): New function.
7600 * f-lang.h (f_value_print_innner): Declare.
7601 * f-lang.c (f_language_defn): Use f_value_print_innner.
7602
c0941be6
TT
76032020-03-13 Tom Tromey <tom@tromey.com>
7604
7605 * p-valprint.c (pascal_value_print_inner): New function.
7606 * p-lang.h (pascal_value_print_inner): Declare.
7607 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7608
62c4663d
TT
76092020-03-13 Tom Tromey <tom@tromey.com>
7610
7611 * m2-valprint.c (m2_value_print_inner): New function.
7612 * m2-lang.h (m2_value_print_inner): Declare.
7613 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7614
62182190
TT
76152020-03-13 Tom Tromey <tom@tromey.com>
7616
7617 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7618 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7619 * c-valprint.c (c_value_print_inner): New function.
7620 * c-lang.h (c_value_print_inner): Declare.
7621 * c-lang.c (c_language_defn, cplus_language_defn)
7622 (asm_language_defn, minimal_language_defn): Use
7623 c_value_print_inner.
7624
1e592a8a
TT
76252020-03-13 Tom Tromey <tom@tromey.com>
7626
7627 * p-valprint.c (pascal_object_print_value_fields): Now static.
7628 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7629
7fe471e9
TT
76302020-03-13 Tom Tromey <tom@tromey.com>
7631
7632 * c-valprint.c (c_val_print_array): Simplify.
7633
d121c6ce
TT
76342020-03-13 Tom Tromey <tom@tromey.com>
7635
7636 * valprint.c (value_print_array_elements): New function.
7637 * valprint.h (value_print_array_elements): Declare.
7638
4dba70ee
TT
76392020-03-13 Tom Tromey <tom@tromey.com>
7640
7641 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7642 * mips-tdep.c (mips_print_register): Use
7643 value_print_scalar_formatted.
7644
4f9ae810
TT
76452020-03-13 Tom Tromey <tom@tromey.com>
7646
7647 * valprint.h (value_print_scalar_formatted): Declare.
7648 * valprint.c (value_print_scalar_formatted): New function.
7649
156bfec9
TT
76502020-03-13 Tom Tromey <tom@tromey.com>
7651
7652 * valprint.h (generic_value_print): Declare.
7653 * valprint.c (generic_value_print): New function.
7654
2b4e573d
TT
76552020-03-13 Tom Tromey <tom@tromey.com>
7656
7657 * valprint.c (do_val_print): Call la_value_print_inner, if
7658 available.
7659 * rust-lang.c (rust_language_defn): Update.
7660 * p-lang.c (pascal_language_defn): Update.
7661 * opencl-lang.c (opencl_language_defn): Update.
7662 * objc-lang.c (objc_language_defn): Update.
7663 * m2-lang.c (m2_language_defn): Update.
7664 * language.h (struct language_defn) <la_value_print_inner>: New
7665 member.
7666 * language.c (unknown_language_defn, auto_language_defn): Update.
7667 * go-lang.c (go_language_defn): Update.
7668 * f-lang.c (f_language_defn): Update.
7669 * d-lang.c (d_language_defn): Update.
7670 * c-lang.c (c_language_defn, cplus_language_defn)
7671 (asm_language_defn, minimal_language_defn): Update.
7672 * ada-lang.c (ada_language_defn): Update.
7673
a1f6a07c
TT
76742020-03-13 Tom Tromey <tom@tromey.com>
7675
7676 * c-valprint.c (c_value_print): Use common_val_print.
7677
410cf315
TT
76782020-03-13 Tom Tromey <tom@tromey.com>
7679
7680 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7681
72a45c93
TT
76822020-03-13 Tom Tromey <tom@tromey.com>
7683
7684 * f-valprint.c (f77_print_array_1, f_val_print): Use
7685 common_val_print.
7686
040f66bd
TT
76872020-03-13 Tom Tromey <tom@tromey.com>
7688
7689 * riscv-tdep.c (riscv_print_one_register_info): Use
7690 common_val_print.
7691
a6e05a6c
TT
76922020-03-13 Tom Tromey <tom@tromey.com>
7693
7694 * mi/mi-main.c (output_register): Use common_val_print.
7695
3444c526
TT
76962020-03-13 Tom Tromey <tom@tromey.com>
7697
7698 * infcmd.c (default_print_one_register_info): Use
7699 common_val_print.
7700
c2a44efe
TT
77012020-03-13 Tom Tromey <tom@tromey.com>
7702
7703 * valprint.h (common_val_print_checked): Declare.
7704 * valprint.c (common_val_print_checked): New function.
7705 * stack.c (print_frame_arg): Use common_val_print_checked.
7706
b0c26e99
TT
77072020-03-13 Tom Tromey <tom@tromey.com>
7708
7709 * valprint.c (do_val_print): New function, from val_print.
7710 (val_print): Use do_val_print.
7711 (common_val_print): Use do_val_print.
7712
ce3acbe9
TT
77132020-03-13 Tom Tromey <tom@tromey.com>
7714
7715 * valprint.c (value_print): Use scoped_value_mark.
7716
96c7f873
TV
77172020-03-13 Tom de Vries <tdevries@suse.de>
7718
7719 PR symtab/25646
7720 * psymtab.c (partial_symtab::partial_symtab): Don't set
7721 globals_offset and statics_offset. Push element onto
7722 current_global_psymbols and current_static_psymbols stacks.
7723 (concat): New function.
7724 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7725 element from current_global_psymbols and current_static_psymbols
7726 stacks. Concat popped elements to global_psymbols and
7727 static_symbols.
7728 (add_psymbol_to_list): Use current_global_psymbols and
7729 current_static_psymbols stacks.
7730 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7731 current_static_psymbols fields.
7732
6ba0a321
CB
77332020-03-12 Christian Biesinger <cbiesinger@google.com>
7734
7735 * corelow.c (sniff_core_bfd): Remove.
7736 (class core_target) <m_core_vec>: Remove.
7737 (core_target::core_target): Update.
7738 (core_file_fns): Remove.
7739 (deprecated_add_core_fns): Remove.
7740 (default_core_sniffer): Remove.
7741 (sniff_core_bfd): Remove.
7742 (default_check_format): Remove.
7743 (gdb_check_format): Remove.
7744 (core_target_open): Update.
7745 (core_target::get_core_register_section): Update.
7746 (get_core_registers_cb): Update.
7747 (core_target::fetch_registers): Update.
7748 * gdbcore.h (struct core_fns): Remove.
7749 (deprecated_add_core_fns): Remove.
7750 (default_core_sniffer): Remove.
7751 (default_check_format): Remove.
7752
227031b2
TT
77532020-03-12 Tom Tromey <tom@tromey.com>
7754
7755 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7756 CORE_ADDR.
7757 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7758
53807e9f
TT
77592020-03-12 Tom Tromey <tom@tromey.com>
7760
7761 * remote.c (remote_target::download_tracepoint)
7762 (remote_target::enable_tracepoint)
7763 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7764 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7765 sprintf_vma.
7766
64f25102
TT
77672020-03-12 Tom Tromey <tom@tromey.com>
7768
7769 * symfile-mem.c: Update CORE_ADDR size assert.
7770
272cd5a3
SM
77712020-03-12 Simon Marchi <simon.marchi@efficios.com>
7772
7773 * selftest.m4: Move to gdbsupport/.
7774 * acinclude.m4: Update path to selftest.m4.
7775
74cd3f9d
SM
77762020-03-12 Simon Marchi <simon.marchi@efficios.com>
7777
7778 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7779 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7780 gdbarch-selfselftests.c and selftest-arch.c.
7781 (SUBDIR_UNITTESTS_OBS): Rename to...
7782 (SELFTESTS_OBS): ... this.
7783 (COMMON_SFILES): Remove disasm-selftests.c and
7784 gdbarch-selftests.c.
7785 * configure.ac: Don't add selftest-arch.{c,o} to
7786 CONFIG_{SRCS,OBS}.
7787 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7788 preprocessor conditions.
7789
db6878ac
SM
77902020-03-12 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * configure.ac: Don't source bfd/development.sh.
7793 * selftest.m4: Modify comment.
7794 * configure: Re-generate.
7795
4d696a5c
SM
77962020-03-12 Simon Marchi <simon.marchi@efficios.com>
7797
7798 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7799 not "true" or "false".
7800 * configure: Re-generate.
7801
8dd8e1c7
CB
78022020-03-12 Christian Biesinger <cbiesinger@google.com>
7803
7804 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7805 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7806 renamed to arm_nbsd_supply_gregset.
7807 (fetch_register): Update to call arm_nbsd_supply_gregset.
7808 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7809 (arm_netbsd_nat_target::fetch_registers): Update.
7810 (fetch_elfcore_registers): Removed.
7811 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7812 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7813 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7814 not require NetBSD system headers.
7815 (arm_nbsd_regset): New struct.
7816 (arm_nbsd_iterate_over_regset_sections): New function.
7817 (arm_netbsd_init_abi_common): Updated to call
7818 set_gdbarch_iterate_over_regset_sections.
7819 * arm-nbsd-tdep.h: New file.
7820
dd69bf7a
KB
78212020-03-11 Kevin Buettner <kevinb@redhat.com>
7822
7823 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7824 recursion.
7825
a0761e34
SM
78262020-03-11 Simon Marchi <simon.marchi@efficios.com>
7827
7828 * configure: Re-generate.
7829
e7a82140
TT
78302020-03-11 Tom Tromey <tromey@adacore.com>
7831
7832 * ada-typeprint.c (print_choices): Fix comment.
7833
dcc050c8
AB
78342020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7835
7836 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7837 previous item in the list, when the list has no items.
7838
1c33af77
TV
78392020-03-11 Tom de Vries <tdevries@suse.de>
7840
7841 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7842 PROP_LOCLIST handling code.
7843
8c95582d
AB
78442020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 * buildsym-legacy.c (record_line): Pass extra parameter to
7847 record_line.
7848 * buildsym.c (buildsym_compunit::record_line): Take an extra
7849 parameter, reduce duplication in the line table, and record the
7850 is_stmt flag in the line table.
7851 * buildsym.h (buildsym_compunit::record_line): Add extra
7852 parameter.
7853 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7854 non-statement lines.
7855 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7856 this to the symtab builder.
7857 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7858 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7859 through to dwarf_record_line_1.
7860 * infrun.c (process_event_stop_test): When stepping, don't stop at
7861 a non-statement instruction, and only refresh the step info when
7862 we land in the middle of a line's range. Also add an extra
7863 comment.
7864 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7865 field.
7866 * record-btrace.c (btrace_find_line_range): Only record lines
7867 marked as is-statement.
7868 * stack.c (frame_show_address): Show the frame address if we are
7869 in a non-statement sal.
7870 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7871 (maintenance_print_one_line_table): Print a header for the is_stmt
7872 column, and include is_stmt information in the output.
7873 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7874 preference to non-statements.
7875 (find_pcs_for_symtab_line): Prefer is-statement entries.
7876 (find_line_common): Likewise.
7877 * symtab.h (struct linetable_entry): Add is_stmt field.
7878 (struct symtab_and_line): Likewise.
7879 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7880 arranging the line table.
7881
e4003a34
TV
78822020-03-07 Tom de Vries <tdevries@suse.de>
7883
7884 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7885 DIE.
7886
e8932576
TT
78872020-03-07 Tom Tromey <tom@tromey.com>
7888
7889 * valops.c (value_literal_complex): Remove obsolete comment.
7890 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7891 comment.
7892
29734269
SM
78932020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7894
7895 * infrun.h: Forward-declare thread_info.
7896 (set_step_info): Add thread_info parameter, add doc.
7897 * infrun.c (set_step_info): Add thread_info parameter, move doc
7898 to header.
7899 * infrun.c (process_event_stop_test): Pass thread to
7900 set_step_info call.
7901 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7902 set_step_info.
7903 (prepare_one_step): Add thread_info parameter, pass it to
7904 set_step_frame and prepare_one_step (recursive) call.
7905 (step_1): Pass thread to prepare_one_step call.
7906 (step_command_fsm::should_stop): Pass thread to
7907 prepare_one_step.
7908 (until_next_fsm): Pass thread to set_step_frame call.
7909 (finish_command): Pass thread to set_step_info call.
7910
b7d64b29
HD
79112020-03-06 Hannes Domani <ssbssa@yahoo.de>
7912
7913 * windows-tdep.c (windows_solib_create_inferior_hook):
7914 Check if inferior is running.
7915
09f2921c
TV
79162020-03-06 Tom de Vries <tdevries@suse.de>
7917
7918 * NEWS: Fix "the the".
7919 * ctfread.c: Same.
7920
fd760e79
TV
79212020-03-06 Tom de Vries <tdevries@suse.de>
7922
7923 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7924
20ea4a60
AB
79252020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7926
7927 * .dir-locals.el: Add a comment referencing the other copies of
7928 this file.
7929
0afbabf0
JB
79302020-03-05 John Baldwin <jhb@FreeBSD.org>
7931
7932 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7933 psargs.
7934
842806cb
TBA
79352020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7936
7937 * .gitattributes: New file.
7938
be1e3d3e
TT
79392020-03-04 Tom Tromey <tom@tromey.com>
7940
7941 * symmisc.c (print_symbol_bcache_statistics)
7942 (print_objfile_statistics): Update.
7943 * symfile.c (allocate_symtab): Use intern.
7944 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7945 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7946 macro_cache>: Remove.
7947 <string_cache>: New member.
7948 (struct objfile) <intern>: New methods.
7949 * elfread.c (elf_symtab_read): Use intern.
7950 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7951 (dwarf2_compute_name, dwarf2_physname)
7952 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7953 names.
7954 (guess_partial_die_structure_name): Update.
7955 (partial_die_info::fixup): Intern name.
7956 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7957 name.
7958 (dwarf2_name): Intern name. Update.
7959 * buildsym.c (buildsym_compunit::get_macro_table): Use
7960 string_cache.
7961
4e7625fd
TT
79622020-03-04 Tom Tromey <tom@tromey.com>
7963
7964 * jit.c (bfd_open_from_target_memory): Make "target" const.
7965 * corefile.c (gnutarget): Now const.
7966 * gdbcore.h (gnutarget): Now const.
7967
46f9f931
HD
79682020-03-04 Hannes Domani <ssbssa@yahoo.de>
7969
7970 * NEWS: Mention support for WOW64 processes.
7971 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7972 (amd64_windows_segment_register_p): Remove static.
7973 (_initialize_amd64_windows_nat): Update.
7974 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7975 * i386-windows-nat.c (context_offset): Update.
7976 (i386_mappings): Rename and remove static.
7977 (i386_windows_segment_register_p): Remove static.
7978 (_initialize_i386_windows_nat): Update.
7979 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7980 (STATUS_WX86_SINGLE_STEP): New macro.
7981 (EnumProcessModulesEx): New macro.
7982 (Wow64SuspendThread): New macro.
7983 (Wow64GetThreadContext): New macro.
7984 (Wow64SetThreadContext): New macro.
7985 (Wow64GetThreadSelectorEntry): New macro.
7986 (windows_set_context_register_offsets): Add static.
7987 (windows_set_segment_register_p): Likewise.
7988 (windows_add_thread): Adapt for WOW64 processes.
7989 (windows_fetch_one_register): Likewise.
7990 (windows_nat_target::fetch_registers): Likewise.
7991 (windows_store_one_register): Likewise.
7992 (display_selector): Likewise.
7993 (display_selectors): Likewise.
7994 (handle_exception): Likewise.
7995 (windows_continue): Likewise.
7996 (windows_nat_target::resume): Likewise.
7997 (windows_add_all_dlls): Likewise.
7998 (do_initial_windows_stuff): Likewise.
7999 (windows_nat_target::attach): Likewise.
8000 (windows_get_exec_module_filename): Likewise.
8001 (windows_nat_target::create_inferior): Likewise.
8002 (windows_xfer_siginfo): Likewise.
8003 (_initialize_loadable): Initialize Wow64SuspendThread,
8004 Wow64GetThreadContext, Wow64SetThreadContext,
8005 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8006 * windows-nat.h (windows_set_context_register_offsets):
8007 Remove declaration.
8008 (windows_set_segment_register_p): Likewise.
8009 (i386_windows_segment_register_p): Add declaration.
8010 (amd64_windows_segment_register_p): Likewise.
8011
440cf44e
LM
80122020-03-04 Luis Machado <luis.machado@linaro.org>
8013
8014 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8015 in "info registers" for AArch64/ARM.
8016
8017 The change caused "info registers" to not print GPR's.
8018
8019 gdb/ChangeLog:
8020
8021 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8022
8023 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8024 when reg->group is empty and reggroup is not.
8025
1009d92f
TT
80262020-03-03 Tom Tromey <tromey@adacore.com>
8027
8028 * dwarf2/frame.c (struct dwarf2_frame_cache)
8029 <checked_tailcall_bottom, entry_cfa_sp_offset,
8030 entry_cfa_sp_offset_p>: Remove members.
8031 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8032 (dwarf2_frame_prev_register): Don't call
8033 dwarf2_tailcall_sniffer_first.
8034 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8035 * frame-unwind.c (add_unwinder): New fuction.
8036 (frame_unwind_init): Use it. Add tailcall unwinder.
8037
5e5d66b6
AB
80382020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8039 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8040
8041 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8042 value should be printed as true.
8043
584cf46d
HD
80442020-03-03 Hannes Domani <ssbssa@yahoo.de>
8045
8046 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8047 (windows_init_abi): Set and use windows_so_ops.
8048
7b973adc
SDJ
80492020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8050
8051 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8052 when verifying if dealing with a convenience variable.
8053
bb7b70ab
LM
80542020-03-03 Luis Machado <luis.machado@linaro.org>
8055
8056 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8057
9822cb57
SM
80582020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8059
8060 * infrun.c (gdbarch_supports_displaced_stepping): New.
8061 (use_displaced_stepping): Break up conditions in smaller pieces.
8062 Use gdbarch_supports_displaced_stepping.
8063 (displaced_step_prepare_throw): Use
8064 gdbarch_supports_displaced_stepping.
8065
63e163f2
AB
80662020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8067
8068 * NEWS: Mention new behaviour of the history filename.
8069 * top.c (write_history_p): Add comment.
8070 (show_write_history_p): Add header comment, give a different
8071 message when history writing is on, but the history filename is
8072 empty.
8073 (history_filename): Add comment.
8074 (history_filename_empty): New function.
8075 (show_history_filename): Add header comment, give a different
8076 message when the filename is empty.
8077 (init_history): Compare history_filename against nullptr, and only
8078 read history if the filename is not empty.
8079 (set_history_filename): Add header comment, and only make
8080 non-empty filenames absolute.
8081 (init_main): Make the filename argument to 'set history filename'
8082 optional.
8083
81b86b97
CB
80842020-03-02 Christian Biesinger <cbiesinger@google.com>
8085
8086 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8087 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8088 (fetch_fp_register): Update.
8089 (fetch_fp_regs): Update.
8090 (store_fp_register): Update.
8091 (store_fp_regs): Update.
8092 (arm_netbsd_nat_target::read_description): New function.
8093 (fetch_elfcore_registers): Update.
8094
24ed6739
AB
80952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8096
8097 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8098 general_thread if the stop reply is missing a thread-id.
8099 (remote_target::process_stop_reply): Use the first non-exited
8100 thread if the target didn't pass a thread-id.
8101 * infrun.c (do_target_wait): Move call to
8102 switch_to_inferior_no_thread to ....
8103 (do_target_wait_1): ... here.
8104
a84bb2a0
JT
81052020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8106
8107 * debuginfod-support.c: Include defs.h first.
8108
658dadf0
TV
81092020-02-28 Tom de Vries <tdevries@suse.de>
8110
8111 * symfile.c (set_initial_language): Use default language for lookup.
8112
4ebe4877
SM
81132020-02-28 Simon Marchi <simon.marchi@efficios.com>
8114
8115 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8116 reader variable, pass `this` to read_cutu_die_from_dwo.
8117
e5da1139
AM
81182020-02-27 Aaron Merey <amerey@redhat.com>
8119
8120 * source.c (open_source_file): Check for nullptr when computing
8121 srcpath.
8122
317f7127
TT
81232020-02-27 Tom Tromey <tromey@adacore.com>
8124
8125 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8126 member.
8127 (dwarf2_add_field): Don't update nfields.
8128 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8129
3104d9ee
AB
81302020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8131
8132 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8133 abs.
8134
b83470bf
TT
81352020-02-26 Tom Tromey <tom@tromey.com>
8136
8137 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8138 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8139 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8140 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8141 per_cu_data.
8142
edfe0a0c
TT
81432020-02-26 Tom Tromey <tom@tromey.com>
8144
8145 * dwarf2/index-write.c (psym_index_map): Change type.
8146 (add_address_entry_worker, write_one_signatured_type)
8147 (recursively_count_psymbols, recursively_write_psymbols)
8148 (class debug_names, psyms_seen_size, write_gdbindex)
8149 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8150
0d79cdc4
AM
81512020-02-26 Aaron Merey <amerey@redhat.com>
8152
8153 * Makefile.in: Handle optional debuginfod support.
8154 * NEWS: Update.
8155 * README: Add --with-debuginfod summary.
8156 * config.in: Regenerate.
8157 * configure: Regenerate.
8158 * configure.ac: Handle optional debuginfod support.
8159 * debuginfod-support.c: debuginfod helper functions.
8160 * debuginfod-support.h: Ditto.
8161 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8162 summary.
8163 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8164 when a dwz file cannot be found.
8165 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8166 debuginfo file cannot be found.
8167 * source.c (open_source_file): Query debuginfod servers when a
8168 source file cannot be found.
8169 * top.c (print_gdb_configuration): Include
8170 --{with,without}-debuginfod in the output.
8171
b65ce565
JG
81722020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8173
8174 * thread.c (thr_try_catch_cmd): Print thread name.
8175
d4c9a4f8
SM
81762020-02-26 Simon Marchi <simon.marchi@efficios.com>
8177
8178 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8179 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8180 dwarf2_fetch_die_type_sect_off): Move to...
8181 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8182 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8183 dwarf2_fetch_die_type_sect_off): ... here.
8184 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8185 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8186 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8187
0dce4280
TV
81882020-02-26 Tom de Vries <tdevries@suse.de>
8189
8190 PR gdb/25603
8191 * symfile.c (set_initial_language): Exit-early if
8192 language_mode == language_mode_manual.
8193
450a1bfc
SM
81942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8195
8196 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8197 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8198 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8199
9e80cfa1
AB
82002020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8201
8202 * gdbtypes.c (create_array_type_with_stride): Handle negative
8203 array strides.
8204 * valarith.c (value_subscripted_rvalue): Likewise.
8205
09624f1f
LM
82062020-02-25 Luis Machado <luis.machado@linaro.org>
8207
8208 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8209
8cb5117c
SM
82102020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8211
8212 * loc.h (dwarf2_get_die_type): Move to...
8213 * read.h (dwarf2_get_die_type): ... here.
8214 * read.c (dwarf2_get_die_type): Move doc to header.
8215
c325c44e
JB
82162020-02-25 Joel Brobecker <brobecker@adacore.com>
8217
8218 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8219 'gnulib/Makefile.in' to the list.
8220
4ac93832
TT
82212020-02-24 Tom Tromey <tom@tromey.com>
8222
8223 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8224 Remove.
8225 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8226 XOBNEWVEC.
8227
197400e8
TT
82282020-02-24 Tom Tromey <tom@tromey.com>
8229
8230 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8231 New method.
8232 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8233 (dw2_do_instantiate_symtab, dw2_get_file_names)
8234 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8235
76935768
TT
82362020-02-24 Tom Tromey <tom@tromey.com>
8237
8238 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8239 make_scoped_restore.
8240 (dwarf2_psymtab::read_symtab): Don't clear
8241 reading_partial_symbols.
8242
a88ef40d
TV
82432020-02-24 Tom de Vries <tdevries@suse.de>
8244
8245 PR gdb/25592
8246 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8247
c9af6521
TV
82482020-02-24 Tom de Vries <tdevries@suse.de>
8249
8250 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8251 commands layout next/prev/regs.
8252
5707a07a
TT
82532020-02-22 Tom Tromey <tom@tromey.com>
8254
8255 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8256 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8257
3b0fb49e
TT
82582020-02-22 Tom Tromey <tom@tromey.com>
8259
8260 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8261
283be8bf
TT
82622020-02-22 Tom Tromey <tom@tromey.com>
8263
8264 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8265 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8266 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8267 * tui/tui.c (_initialize_tui): Add usage text.
8268
ca793b96
TT
82692020-02-22 Tom Tromey <tom@tromey.com>
8270
8271 * tui/tui-win.c (tui_set_focus_command)
8272 (tui_set_win_height_command): Use error_no_arg.
8273 (_initialize_tui_win): Update help text.
8274 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8275
432b5c40
TT
82762020-02-22 Tom Tromey <tom@tromey.com>
8277
8278 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8279 * tui/tui-disasm.h (struct tui_disasm_window)
8280 <display_start_addr>: Declare.
8281 * tui/tui-source.h (struct tui_source_window)
8282 <display_start_addr>: Declare.
8283 * tui/tui-winsource.h (struct tui_source_window_base)
8284 <show_source_line, display_start_addr>: New methods.
8285 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8286 Rename and move to protected section.
8287 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8288 (tui_source_window_base::do_erase_source_content): Update.
8289 (tui_source_window_base::show_source_line): Now a method.
8290 (tui_source_window_base::show_source_content)
8291 (tui_source_window_base::tui_source_window_base)
8292 (tui_source_window_base::rerender)
8293 (tui_source_window_base::refill)
8294 (tui_source_window_base::do_scroll_horizontal)
8295 (tui_source_window_base::set_is_exec_point_at)
8296 (tui_source_window_base::update_breakpoint_info)
8297 (tui_source_window_base::update_exec_info): Update.
8298 * tui/tui-source.c (tui_source_window::set_contents)
8299 (tui_source_window::showing_source_p)
8300 (tui_source_window::do_scroll_vertical)
8301 (tui_source_window::location_matches_p)
8302 (tui_source_window::line_is_displayed): Update.
8303 (tui_source_window::display_start_addr): New method.
8304 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8305 (tui_disasm_window::do_scroll_vertical)
8306 (tui_disasm_window::location_matches_p): Update.
8307 (tui_disasm_window::display_start_addr): New method.
8308
01b1af32
TT
83092020-02-22 Tom Tromey <tom@tromey.com>
8310
8311 * NEWS: Add entry for gdb.register_window_type.
8312 * tui/tui-layout.h (window_factory): New typedef.
8313 (tui_register_window): Declare.
8314 * tui/tui-layout.c (saved_tui_windows): New global.
8315 (tui_apply_current_layout): Use it.
8316 (tui_register_window): New function.
8317 * python/python.c (do_start_initialization): Call
8318 gdbpy_initialize_tui.
8319 (python_GdbMethods): Add "register_window_type" function.
8320 * python/python-internal.h (gdbpy_register_tui_window)
8321 (gdbpy_initialize_tui): Declare.
8322 * python/py-tui.c: New file.
8323 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8324
fc96d20b
TT
83252020-02-22 Tom Tromey <tom@tromey.com>
8326
8327 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8328
935c78c0
TT
83292020-02-22 Tom Tromey <tom@tromey.com>
8330
8331 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8332 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8333 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8334 (tui_set_win_focus_to): Move from tui-win.c.
8335
0240c8f1
TT
83362020-02-22 Tom Tromey <tom@tromey.com>
8337
8338 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8339 functions.
8340 (known_window_types): New global.
8341 (tui_get_window_by_name): Reimplement.
8342 (initialize_known_windows): New function.
8343 (validate_window_name): Rewrite.
8344 (_initialize_tui_layout): Call initialize_known_windows.
8345
fdb01f0c
TT
83462020-02-22 Tom Tromey <tom@tromey.com>
8347
8348 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8349 Remove constants.
8350 * tui/tui-winsource.h (struct tui_source_window_base)
8351 <tui_source_window_base>: Remove parameter.
8352 * tui/tui-winsource.c
8353 (tui_source_window_base::tui_source_window_base): Remove
8354 parameter.
8355 (tui_source_window_base::refill): Update.
8356 * tui/tui-stack.h (struct tui_locator_window)
8357 <tui_locator_window>: Update.
8358 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8359 Default the constructor.
8360 * tui/tui-regs.h (struct tui_data_item_window)
8361 <tui_data_item_window>: Default the constructor.
8362 (struct tui_data_window) <tui_data_window>: Likewise.
8363 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8364 Default the constructor.
8365 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8366 Default the constructor.
8367 <type>: Remove.
8368 (struct tui_win_info) <tui_win_info>: Default the constructor.
8369 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8370 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8371 Default the constructor.
8372
865a5aec
TT
83732020-02-22 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8376 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8377 * tui/tui-win.c (tui_resize_all): Don't call
8378 tui_delete_invisible_windows.
8379 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8380 done.
8381 (tui_set_layout): Update.
8382 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8383 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8384 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8385
e098d18c
TT
83862020-02-22 Tom Tromey <tom@tromey.com>
8387
8388 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8389 correctly.
8390
eb9c8874
TT
83912020-02-22 Tom Tromey <tom@tromey.com>
8392
8393 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8394
7eed1a8e
TT
83952020-02-22 Tom Tromey <tom@tromey.com>
8396
8397 * tui/tui-winsource.h (struct tui_source_window_iterator)
8398 <inner_iterator>: New etytypedef.
8399 <tui_source_window_iterator>: Take "end" parameter.
8400 <tui_source_window_iterator>: Take iterator.
8401 <operator*, advance>: Update.
8402 <m_iter>: Change type.
8403 <m_end>: New field.
8404 (struct tui_source_windows) <begin, end>: Update.
8405 * tui/tui-layout.c (tui_windows): New global.
8406 (tui_apply_current_layout): Clear tui_windows.
8407 (tui_layout_window::apply): Update tui_windows.
8408 * tui/tui-data.h (tui_windows): Declare.
8409 (all_tui_windows): Now inline function.
8410 (class tui_window_iterator, struct all_tui_windows): Remove.
8411
7c043ba6
TT
84122020-02-22 Tom Tromey <tom@tromey.com>
8413
8414 PR tui/17850:
8415 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8416 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8417 "height" argument.
8418 (class tui_layout_window) <get_sizes>: Likewise.
8419 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8420 argument.
8421 <get_sizes>: Add "height" argument.
8422 <m_vertical>: New field.
8423 * tui/tui-layout.c (tui_layout_split::clone): Update.
8424 (tui_layout_split::get_sizes): Add "height" argument.
8425 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8426 (tui_new_layout_command): Parse "-horizontal".
8427 (_initialize_tui_layout): Update help string.
8428 (tui_layout_split::specification): Add "-horizontal" when needed.
8429 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8430 argument.
8431 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8432 New methods.
8433
6bc56648
TT
84342020-02-22 Tom Tromey <tom@tromey.com>
8435
8436 * tui/tui-layout.h (enum tui_adjust_result): New.
8437 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8438 (class tui_layout_window) <adjust_size>: Return
8439 tui_adjust_result. Rewrite.
8440 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8441 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8442
c22fef7e
TT
84432020-02-22 Tom Tromey <tom@tromey.com>
8444
8445 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8446 parameter and return types.
8447 (class tui_layout_base) <specification>: Add "depth".
8448 (class tui_layout_window) <specification>: Add "depth".
8449 (class tui_layout_split) <specification>: Add "depth".
8450 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8451 and return types.
8452 (tui_new_layout_command): Parse sub-layouts.
8453 (_initialize_tui_layout): Update help string.
8454 (tui_layout_window::specification): Add "depth".
8455 (add_layout_command): Update.
8456
ee325b61
TT
84572020-02-22 Tom Tromey <tom@tromey.com>
8458
8459 * NEWS: Add "tui new-layout" item.
8460 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8461 Add new-layout command to help text.
8462 (validate_window_name): New function.
8463 (tui_new_layout_command): New function.
8464 (_initialize_tui_layout): Register "new-layout".
8465 (tui_layout_window::specification): New method.
8466 (tui_layout_window::specification): New method.
8467 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8468 method.
8469 (class tui_layout_window) <specification>: New method.
8470 (class tui_layout_split) <specification>: New method.
8471
416eb92d
TT
84722020-02-22 Tom Tromey <tom@tromey.com>
8473
8474 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8475 * tui/tui-win.c (window_name_completer): Update comment.
8476 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8477 Declare method.
8478 (class tui_layout_window) <replace_window>: Likewise.
8479 (class tui_layout_split) <replace_window>: Likewise.
8480 (tui_set_layout): Don't declare.
8481 (tui_set_initial_layout): Declare function.
8482 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8483 (asm_regs_layout): New globals.
8484 (tui_current_layout, show_layout): Remove.
8485 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8486 (find_layout, tui_apply_layout): New function.
8487 (layout_completer): Remove.
8488 (tui_next_layout): Reimplement.
8489 (tui_next_layout_command): New function.
8490 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8491 (tui_regs_layout): Reimplement.
8492 (tui_regs_layout_command): New function.
8493 (extract_display_start_addr): Rewrite.
8494 (next_layout, prev_layout): Remove.
8495 (tui_layout_window::replace_window): New method.
8496 (tui_layout_split::replace_window): New method.
8497 (destroy_layout): New function.
8498 (layout_list): New global.
8499 (add_layout_command): New function.
8500 (initialize_layouts): Update.
8501 (tui_layout_command): New function.
8502 (_initialize_tui_layout): Install "layout" commands.
8503 * tui/tui-data.h (enum tui_layout_type): Remove.
8504 (tui_current_layout): Don't declare.
8505
0dbc2fc7
TT
85062020-02-22 Tom Tromey <tom@tromey.com>
8507
8508 * tui/tui-regs.c (tui_reg_layout): Remove.
8509 (tui_reg_command): Use tui_regs_layout.
8510 * tui/tui-layout.h (tui_reg_command): Declare.
8511 * tui/tui-layout.c (tui_reg_command): New function.
8512
5afe342e
TT
85132020-02-22 Tom Tromey <tom@tromey.com>
8514
8515 * tui/tui.c (tui_rl_delete_other_windows): Call
8516 tui_remove_some_windows.
8517 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8518 Declare method.
8519 (class tui_layout_window) <remove_windows>: New method.
8520 (class tui_layout_split) <remove_windows>: Declare.
8521 (tui_remove_some_windows): Declare.
8522 * tui/tui-layout.c (tui_remove_some_windows): New function.
8523 (tui_layout_split::remove_windows): New method.
8524
427326a8
TT
85252020-02-22 Tom Tromey <tom@tromey.com>
8526
8527 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8528 * tui/tui-layout.h (tui_next_layout): Declare.
8529 * tui/tui-layout.c (tui_next_layout): New function.
8530
3fe12b6d
TT
85312020-02-22 Tom Tromey <tom@tromey.com>
8532
8533 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8534 correct coordinates.
8535
59b8b5d2
TT
85362020-02-22 Tom Tromey <tom@tromey.com>
8537
8538 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8539 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8540 DATA_WIN case.
8541
2a3d458b
TT
85422020-02-22 Tom Tromey <tom@tromey.com>
8543
8544 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8545 TUI_DISASM_WIN, not tui_win_list.
8546
3f0cbb04
TT
85472020-02-22 Tom Tromey <tom@tromey.com>
8548
8549 * valprint.c (generic_val_print_enum_1)
8550 (val_print_type_code_flags): Style member names.
8551 * rust-lang.c (val_print_struct, rust_print_enum)
8552 (rust_print_struct_def, rust_internal_print_type): Style member
8553 names.
8554 * p-valprint.c (pascal_object_print_value_fields): Style member
8555 names. Only call fprintf_symbol_filtered for static members.
8556 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8557 * f-valprint.c (f_val_print): Style member names.
8558 * f-typeprint.c (f_type_print_base): Style member names.
8559 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8560 call fprintf_symbol_filtered for static members.
8561 (cp_print_class_member): Style member names.
8562 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8563 member names.
8564 * ada-valprint.c (ada_print_scalar): Style enum names.
8565 (ada_val_print_enum): Likewise.
8566 * ada-typeprint.c (print_enum_type): Style enum names.
8567
d4d947ae
TT
85682020-02-21 Tom Tromey <tom@tromey.com>
8569
8570 * psympriv.h (struct partial_symtab): Update comment.
8571
e94e944b
TT
85722020-02-21 Tom Tromey <tromey@adacore.com>
8573
8574 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8575 type is CORE_ADDR.
8576
1eb73179
TV
85772020-02-21 Tom de Vries <tdevries@suse.de>
8578
8579 PR gdb/25534
8580 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8581 if dependencies[i]->user != NULL.
8582
4f180d53
AT
85832020-02-21 Ali Tamur <tamur@google.com>
8584
8585 * dwarf2/read.c (dwarf2_name): Add null check.
8586
22b6cd70
TT
85872020-02-20 Tom Tromey <tom@tromey.com>
8588
8589 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8590 ">=", in binary search.
8591 (dwarf2_find_containing_comp_unit): New overload.
8592 (run_test): New self-test.
8593 (_initialize_dwarf2_read): Register new test.
8594
bd0cf5a6
NC
85952020-02-20 Nelson Chu <nelson.chu@sifive.com>
8596
8597 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8598 * riscv-tdep.h: Likewise.
8599 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8600 rv32-only CSR.
8601 * features/riscv/64bit-csr.xml: Regenerated.
8602
3f702acd
SDJ
86032020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8604 Tom Tromey <tom@tromey.com>
8605
8606 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8607 of 'fputc_unfiltered'.
8608 (putchar_unfiltered): Call 'fputc_unfiltered'.
8609 (fputc_unfiltered): Call 'fputs_unfiltered'.
8610
d13c7322
AB
86112020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8612
8613 * config.in: Regenerate.
8614 * configure: Regenerate.
8615 * configure.ac: Add --with-python-libdir option.
8616 * main.c: Use WITH_PYTHON_LIBDIR.
8617
869d8950
TT
86182020-02-19 Tom Tromey <tom@tromey.com>
8619
8620 * symtab.c (general_symbol_info::compute_and_set_names): Use
8621 obstack_strndup. Simplify call to symbol_set_demangled_name.
8622
298e9637
SM
86232020-02-19 Simon Marchi <simon.marchi@efficios.com>
8624
8625 * dwarf2/read.c (allocate_signatured_type_table,
8626 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8627 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8628 Remove objfile parameter, update all callers.
8629
08410482
DE
86302020-02-19 Doug Evans <dje@google.com>
8631
8632 PR rust/25535
8633 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8634 rust_enum_variant calculation.
8635
dfdeeca1
TT
86362020-02-19 Tom Tromey <tromey@adacore.com>
8637
8638 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8639
2ef5453b
TT
86402020-02-19 Tom Tromey <tromey@adacore.com>
8641
8642 * ada-lang.c (cache_symbol): Use obstack_strdup.
8643
9f1528a1
AB
86442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8645
8646 * configure: Regenerate.
8647
d3c22fa8
TT
86482020-02-19 Tom Tromey <tromey@adacore.com>
8649
8650 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8651 NULL check.
8652
bf84f706
MR
86532020-02-19 Maciej W. Rozycki <macro@wdc.com>
8654
8655 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8656
d1c9b20f
AB
86572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8658
8659 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8660 if GDBSERVER is not defined.
8661 (riscv_tdesc_cache): Likewise, also store const target_desc.
8662 (STATIC_IN_GDB): Define.
8663 (riscv_create_target_description): Update declaration with
8664 STATIC_IN_GDB.
8665 (riscv_lookup_target_description): New function, only define if
8666 GDBSERVER is not defined.
8667 * arch/riscv.h (riscv_create_target_description): Declare only
8668 when GDBSERVER is defined.
8669 (riscv_lookup_target_description): New declaration when GDBSERVER
8670 is not defined.
8671 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8672 (riscv_linux_read_features): ...this, and return
8673 riscv_gdbarch_features instead of target_desc.
8674 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8675 (riscv_linux_read_description): Rename to...
8676 (riscv_linux_read_features): ...this.
8677 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8678 Update to use riscv_gdbarch_features and
8679 riscv_lookup_target_description.
8680 * riscv-tdep.c (riscv_find_default_target_description): Use
8681 riscv_lookup_target_description instead of
8682 riscv_create_target_description.
8683
373d7ac0
SM
86842020-02-18 Simon Marchi <simon.marchi@efficios.com>
8685
8686 * valprint.c (generic_val_print_enum_1): When printing a flag
8687 enum with value 0 and there is no enumerator with value 0, print
8688 just "0" instead of "(unknown: 0x0)".
8689
b29a2df0
SM
86902020-02-18 Simon Marchi <simon.marchi@efficios.com>
8691
8692 * valprint.c (generic_val_print_enum_1): Print unknown part of
8693 flag enum in hex.
8694
6740f0cc
SM
86952020-02-18 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8698 flag enums to contain duplicate enumerators.
8699 * valprint.c (generic_val_print_enum_1): Update comment.
8700
edd45eb0
SM
87012020-02-18 Simon Marchi <simon.marchi@efficios.com>
8702
8703 * dwarf2/read.c: Include "count-one-bits.h".
8704 (update_enumeration_type_from_children): If an enumerator has
8705 multiple bits set, don't treat the enumeration as a "flag enum".
8706 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8707 of flag enums have 0 or 1 bit set.
8708
6d0cf446
BE
87092020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8710
8711 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8712 conversion.
8713 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8714 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8715 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8716 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8717 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8718
7001c1b7
SM
87192020-02-18 Simon Marchi <simon.marchi@efficios.com>
8720
8721 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8722
fdb61c6c
SM
87232020-02-14 Simon Marchi <simon.marchi@efficios.com>
8724
8725 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8726 displaced_step_closure_up.
8727 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8728 (struct displaced_step_closure_up):
8729 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8730 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8731 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8732 Likewise.
8733 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8734 * gdbarch.c, gdbarch.h: Re-generate.
8735 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8736 displaced_step_closure_up.
8737 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8738 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8739 * infrun.h (displaced_step_closure_up): New type alias.
8740 (struct displaced_step_inferior_state) <step_closure>: Change
8741 type to displaced_step_closure_up.
8742 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8743 displaced_step_closure_up.
8744 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8745
a4a38eb4
TT
87462020-02-14 Tom Tromey <tom@tromey.com>
8747
8748 * minidebug.c (gnu_debug_key): New global.
8749 (find_separate_debug_file_in_section): Use it.
8750
e8217e61
SM
87512020-02-14 Simon Marchi <simon.marchi@efficios.com>
8752
8753 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8754 std::unique_ptr.
8755 * gdbarch.c: Re-generate.
8756 * gdbarch.h: Re-generate.
8757 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8758 change.
8759 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8760 type to std::unique_ptr.
8761 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8762 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8763 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8764 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8765 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8766 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8767 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8768 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8769 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8770
d8d83535
SM
87712020-02-14 Simon Marchi <simon.marchi@efficios.com>
8772
8773 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8774 std::unique_ptr.
8775 (displaced_step_clear): Rename to...
8776 (displaced_step_reset): ... this. Just call displaced->reset ().
8777 (displaced_step_clear_cleanup): Rename to...
8778 (displaced_step_reset_cleanup): ... this.
8779 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8780 (displaced_step_fixup): Likewise.
8781 (resume_1): Likewise.
8782 (handle_inferior_event): Restore child's memory before calling
8783 displaced_step_fixup on the parent.
8784 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8785 to std::unique_ptr.
8786 <step_closure>: Change type to std::unique_ptr.
8787
5f661e03
SM
87882020-02-14 Simon Marchi <simon.marchi@efficios.com>
8789
8790 * arm-tdep.c: Include count-one-bits.h.
8791 (cleanup_block_store_pc): Use count_one_bits.
8792 (cleanup_block_load_pc): Use count_one_bits.
8793 (arm_copy_block_xfer): Use count_one_bits.
8794 (thumb2_copy_block_xfer): Use count_one_bits.
8795 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8796 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8797 (thumb_get_next_pcs_raw): Use count_one_bits.
8798 (arm_get_next_pcs_raw): Use count_one_bits_l.
8799 * arch/arm.c (bitcount): Remove.
8800 * arch/arm.h (bitcount): Remove.
8801
8084e579
TT
88022020-02-14 Tom Tromey <tromey@adacore.com>
8803
8804 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8805 Update.
8806 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8807 * dwarf2/loc.c (call_site_find_chain_1): Return
8808 unique_xmalloc_ptr.
8809 (call_site_find_chain): Likewise.
8810
258bf0ee
RB
88112020-02-14 Richard Biener <rguenther@suse.de>
8812
8813 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8814 on expression with division operators.
8815
f98a8458
AKS
88162020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8817
8818 * MAINTAINERS (Write After Approval): Adding myself.
8819
d1437c0e
TT
88202020-02-12 Tom Tromey <tom@tromey.com>
8821
8822 * event-loop.c (event_data, gdb_event, event_handler_func):
8823 Remove.
8824
3d4560f7
TT
88252020-02-12 Tom Tromey <tom@tromey.com>
8826
8827 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8828 (dwarf2_frame_objfile_data): Add comment.
8829 (find_comp_unit, set_comp_unit): New functions.
8830 (dwarf2_frame_find_fde): Use find_comp_unit.
8831 (dwarf2_build_frame_info): Use set_comp_unit.
8832
21982304
TT
88332020-02-12 Tom Tromey <tom@tromey.com>
8834
8835 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8836 (comp_unit): Don't initialize objfile.
8837 (execute_cfa_program): Add text_offset parameter.
8838 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8839 (dwarf2_frame_cache): Update.
8840 (dwarf2_build_frame_info): Don't set "objfile" member.
8841
4debb237
TT
88422020-02-12 Tom Tromey <tom@tromey.com>
8843
8844 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8845 (decode_frame_entry): Likewise.
8846 (dwarf2_build_frame_info): Update.
8847
0d404d44
TT
88482020-02-12 Tom Tromey <tom@tromey.com>
8849
8850 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8851 (decode_frame_entry_1): Use the comp_unit obstack.
8852
a7a3ae5c
TT
88532020-02-12 Tom Tromey <tom@tromey.com>
8854
8855 * dwarf2/frame.c (struct comp_unit): Add initializers and
8856 constructor.
8857 (dwarf2_frame_objfile_data): Store a comp_unit.
8858 (dwarf2_frame_find_fde): Update.
8859 (dwarf2_build_frame_info): Use "new".
8860
a9d65418
TT
88612020-02-12 Tom Tromey <tom@tromey.com>
8862
8863 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8864 (dwarf2_fde_table): Typedef for std::vector.
8865 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8866 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8867 (decode_frame_entry): Update.
8868 (dwarf2_build_frame_info): Use "new".
8869
7559c217
CB
88702020-02-12 Christian Biesinger <cbiesinger@google.com>
8871
8872 * arm-tdep.c (arm_gdbarch_init): Update.
8873 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8874 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8875 have_neon, is_m>: Change to bool.
8876
aeefc73c
CB
88772020-02-12 Christian Biesinger <cbiesinger@google.com>
8878
8879 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8880
d27b8e5f
TT
88812020-02-12 Tom Tromey <tom@tromey.com>
8882
8883 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8884
cd5900f3
HD
88852020-02-12 Hannes Domani <ssbssa@yahoo.de>
8886
8887 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8888 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8889
f056b22b
TT
88902020-02-11 Tom Tromey <tom@tromey.com>
8891
8892 * psymtab.h: Update comment.
8893
f92ff6b5
TT
88942020-02-11 Tom Tromey <tom@tromey.com>
8895
8896 * gdb_obstack.h (struct auto_obstack): Use
8897 DISABLE_COPY_AND_ASSIGN.
8898
3fd6912b
TT
88992020-02-11 Tom Tromey <tom@tromey.com>
8900
8901 * dwarf2/frame.h (struct objfile): Don't forward declare.
8902
69ed9b74
CB
89032020-02-11 Christian Biesinger <cbiesinger@google.com>
8904
8905 * cris-tdep.c (cris_supply_gregset): Change signature to match
8906 what struct regset expects.
8907 (cris_regset): New struct.
8908 (fetch_core_registers): Remove.
8909 (cris_iterate_over_regset_sections): New function.
8910 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8911 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8912
bda874f6
CB
89132020-02-11 Christian Biesinger <cbiesinger@google.com>
8914
8915 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8916 registers.
8917
754e1564
CB
89182020-02-11 Christian Biesinger <cbiesinger@google.com>
8919
8920 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8921
8ddd8e0e
SM
89222020-02-11 Simon Marchi <simon.marchi@efficios.com>
8923
8924 * configure: Re-generate.
8925
898e7f60
SM
89262020-02-11 Simon Marchi <simon.marchi@efficios.com>
8927
8928 * configure: Re-generate.
8929
58df732b
SM
89302020-02-11 Simon Marchi <simon.marchi@efficios.com>
8931
8932 * acinclude: Update warning.m4 path.
8933 * warning.m4: Move to gdbsupport.
8934
da5bd37e
TT
89352020-02-11 Tom Tromey <tromey@adacore.com>
8936
8937 * remote.c (remote_console_output): Update.
8938 * printcmd.c (printf_command): Update.
8939 * event-loop.c (gdb_wait_for_event): Update.
8940 * linux-nat.c (sigchld_handler): Update.
8941 * remote-sim.c (gdb_os_write_stdout): Update.
8942 (gdb_os_flush_stdout): Update.
8943 (gdb_os_flush_stderr): Update.
8944 (gdb_os_write_stderr): Update.
8945 * exceptions.c (print_exception): Update.
8946 * remote-fileio.c (remote_fileio_func_read): Update.
8947 (remote_fileio_func_write): Update.
8948 * tui/tui.c (tui_enable): Update.
8949 * tui/tui-interp.c (tui_interp::init): Update.
8950 * utils.c (init_page_info): Update.
8951 (putchar_unfiltered, fputc_unfiltered): Update.
8952 (gdb_flush): Update.
8953 (emit_style_escape): Update.
8954 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8955 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8956 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8957 (stderr_file::write): Update.
8958 (stderr_file::puts): Update.
8959 * ui-file.h (ui_file_isatty, ui_file_write)
8960 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8961 (ui_file_puts): Don't declare.
8962
85f0dd3c
TV
89632020-02-10 Tom de Vries <tdevries@suse.de>
8964
8965 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8966 sentinel to char *.
8967
2e927613
TV
89682020-02-09 Tom de Vries <tdevries@suse.de>
8969
8970 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8971 filename if it matches "<artificial>".
8972
6bafc845
HD
89732020-02-09 Hannes Domani <ssbssa@yahoo.de>
8974
8975 * windows-tdep.c (struct enum_value_name): New struct.
8976 (create_enum): New function.
8977 (windows_get_siginfo_type): Create and use enum types.
8978
7928d571
HD
89792020-02-09 Hannes Domani <ssbssa@yahoo.de>
8980
8981 * NEWS: Mention $_siginfo support for Windows.
8982 * windows-nat.c (handle_exception): Set siginfo_er.
8983 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8984 (windows_xfer_siginfo): New function.
8985 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8986 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8987 (init_windows_gdbarch_data): New function.
8988 (get_windows_gdbarch_data): New function.
8989 (windows_get_siginfo_type): New function.
8990 (windows_init_abi): Register windows_get_siginfo_type.
8991 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8992
6751ebae
TT
89932020-02-08 Tom Tromey <tom@tromey.com>
8994
8995 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8996 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8997 <keep>: Declare method.
8998 <m_keep>: Remove member.
8999 <~cutu_reader>: Remove.
9000 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9001 (cutu_reader::cutu_reader): Update.
9002 (cutu_reader::keep): Rename from ~cutu_reader.
9003 (process_psymtab_comp_unit, build_type_psymtabs_1)
9004 (process_skeletonless_type_unit, load_partial_comp_unit)
9005 (load_full_comp_unit, dwarf2_read_addr_index)
9006 (read_signatured_type): Update.
9007
135f5437
TT
90082020-02-08 Tom Tromey <tom@tromey.com>
9009
9010 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9011 "want_partial_unit" parameter.
9012 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9013 Inline check for DW_TAG_partial_unit.
9014 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9015
9f66ff1c
TT
90162020-02-08 Tom Tromey <tom@tromey.com>
9017
9018 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9019 read.c.
9020 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9021 read.c.
9022
c8a7a66f
TT
90232020-02-08 Tom Tromey <tom@tromey.com>
9024
9025 * dwarf2/read.c (read_address): Move to comp-unit.c.
9026 (dwarf2_rnglists_process, dwarf2_ranges_process)
9027 (read_attribute_value, dwarf_decode_lines_1)
9028 (var_decode_location, decode_locdesc): Update.
9029 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9030 read.c. Remove "cu" parameter.
9031 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9032 method.
9033
8266302d
TT
90342020-02-08 Tom Tromey <tom@tromey.com>
9035
9036 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9037 (read_indirect_line_string): Update.
9038 * dwarf2/comp-unit.c (read_offset): Remove.
9039 (read_comp_unit_head): Update.
9040 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9041 method.
9042 (read_offset): Don't declare.
9043
4057dfde
TT
90442020-02-08 Tom Tromey <tom@tromey.com>
9045
9046 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9047 * dwarf2/read.c (struct comp_unit_head): Move to
9048 dwarf2/comp-unit.h.
9049 (enum class rcuh_kind): Move to comp-unit.h.
9050 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9051 (read_comp_unit_head, error_check_comp_unit_head)
9052 (read_and_check_comp_unit_head): Move to comp-unit.c.
9053 (read_offset, dwarf_unit_type_name): Likewise.
9054 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9055 (cutu_reader::cutu_reader, read_call_site_scope)
9056 (find_partial_die, follow_die_offset): Update.
9057 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9058
24aa364d
TT
90592020-02-08 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/read.c (read_offset_1): Move to leb.c.
9062 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9063 (dwarf_decode_macro_bytes): Update.
9064 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9065 * dwarf2/leb.h (read_offset): Declare.
9066
2c7d5afc
TT
90672020-02-08 Tom Tromey <tom@tromey.com>
9068
9069 * dwarf2/read.c (dwarf2_section_size): Remove.
9070 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9071 Update.
9072 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9073
4075cb26
TT
90742020-02-08 Tom Tromey <tom@tromey.com>
9075
9076 * dwarf2/read.c (read_initial_length): Move to leb.c.
9077 * dwarf2/leb.h (read_initial_length): Declare.
9078 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9079 handle_nonstd parameter.
9080 * dwarf2/frame.c (read_initial_length): Remove.
9081 (decode_frame_entry_1): Update.
9082
09ba997f
TT
90832020-02-08 Tom Tromey <tom@tromey.com>
9084
9085 * dwarf2/loc.c (dwarf2_find_location_expression)
9086 (dwarf_evaluate_loc_desc::get_tls_address)
9087 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9088 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9089 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9090 (dwarf2_compile_property_to_c)
9091 (dwarf2_loc_desc_get_symbol_read_needs)
9092 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9093 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9094 (loclist_describe_location, loclist_tracepoint_var_ref)
9095 (loclist_generate_c_location): Update.
9096 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9097 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9098 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9099 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9100 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9101 (dwarf2_per_cu_data::addr_size)
9102 (dwarf2_per_cu_data::ref_addr_size)
9103 (dwarf2_per_cu_data::text_offset)
9104 (dwarf2_per_cu_data::addr_type): Now methods.
9105 (per_cu_header_read_in): Make per_cu "const".
9106 (dwarf2_version): Remove.
9107 (dwarf2_per_cu_data::int_type): Now a method.
9108 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9109 (set_die_type, read_array_type, read_subrange_index_type)
9110 (read_tag_string_type, read_subrange_type): Update.
9111 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9112 offset_size, ref_addr_size, text_offset, addr_type, version,
9113 objfile, int_type, addr_sized_int_type>: Declare methods.
9114
96c738c0
TT
91152020-02-08 Tom Tromey <tom@tromey.com>
9116
9117 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9118 Move earlier.
9119
8fdd972c
TT
91202020-02-08 Tom Tromey <tom@tromey.com>
9121
9122 * dwarf2/read.h (dwarf_line_debug): Declare.
9123 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9124 * dwarf2/read.c: Move line_header code to new files.
9125 (dwarf_line_debug): No longer static.
9126 * dwarf2/line-header.c: New file.
9127 * dwarf2/line-header.h: New file.
9128
03075812
TT
91292020-02-08 Tom Tromey <tom@tromey.com>
9130
9131 * dwarf2/read.c (struct line_header) <file_full_name,
9132 file_file_name>: Return unique_xmalloc_ptr.
9133 (line_header::file_file_name): Update.
9134 (line_header::file_full_name): Update.
9135 (dw2_get_file_names_reader): Update.
9136 (macro_start_file): Update.
9137
bb822404
TT
91382020-02-08 Tom Tromey <tom@tromey.com>
9139
9140 * dwarf2/read.c (struct line_header) <file_full_name,
9141 file_file_name>: Declare methods.
9142 (dw2_get_file_names_reader): Update.
9143 (file_file_name): Now a method.
9144 (file_full_name): Likewise.
9145 (macro_start_file): Update.
9146
009b64fc
TT
91472020-02-08 Tom Tromey <tom@tromey.com>
9148
9149 * dwarf2/read.c (dwarf_always_disassemble)
9150 (show_dwarf_always_disassemble): Move to loc.c.
9151 (_initialize_dwarf2_read): Move "always-disassemble" registration
9152 to loc.c.
9153 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9154 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9155 static.
9156 (show_dwarf_always_disassemble): Move from read.c.
9157 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9158
5895093f
TT
91592020-02-08 Tom Tromey <tom@tromey.com>
9160
9161 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9162 (create_quick_file_names_table): Return htab_up.
9163 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9164 Update.
9165 * dwarf2/read.h (struct dwarf2_per_objfile)
9166 <quick_file_names_table>: Now htab_up.
9167
b3b32279
TT
91682020-02-08 Tom Tromey <tom@tromey.com>
9169
9170 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9171
1d33d811
TT
91722020-02-08 Tom Tromey <tom@tromey.com>
9173
9174 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9175 Rewrite.
9176 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9177 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9178 (abbrev_table::abbrev_table): No longer inline.
9179 (ABBREV_HASH_SIZE): Remove.
9180 (abbrev_table::m_abbrevs): Now an htab_up.
9181
86de1d91
TT
91822020-02-08 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9185 (cutu_reader): Update.
9186 (build_type_psymtabs_1): Update.
9187 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9188 (abbrev_table::alloc_abbrev): Update.
9189 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9190 (abbrev_table::read): New static method, renamed from
9191 abbrev_table_read_table.
9192 (abbrev_table::alloc_abbrev)
9193 (abbrev_table::add_abbrev): Now private.
9194 (abbrev_table::abbrev_table): Now private.
9195 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9196
0335378b
TT
91972020-02-08 Tom Tromey <tom@tromey.com>
9198
9199 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9200 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9201 htab_up.
9202
48b490f2
TT
92032020-02-08 Tom Tromey <tom@tromey.com>
9204
9205 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9206 htab_up.
9207 (lookup_dwo_unit_in_dwp): Update.
9208 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9209 on obstack.
9210
bc68fb19
TT
92112020-02-08 Tom Tromey <tom@tromey.com>
9212
9213 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9214 obstack.
9215
d15acc42
TT
92162020-02-08 Tom Tromey <tom@tromey.com>
9217
9218 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9219 line_header_hash.
9220 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9221 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9222 Change type to htab_up.
9223
eaa5fa8b
TT
92242020-02-08 Tom Tromey <tom@tromey.com>
9225
9226 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9227 htab_up. Don't allocate on obstack.
9228 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9229 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9230 Change type to htab_up.
9231
b0b6a987
TT
92322020-02-08 Tom Tromey <tom@tromey.com>
9233
9234 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9235 Change type to htab_up.
9236 * dwarf2/read.c (create_signatured_type_table_from_index)
9237 (create_signatured_type_table_from_debug_names)
9238 (create_all_type_units, add_type_unit)
9239 (lookup_dwo_signatured_type, lookup_signatured_type)
9240 (process_skeletonless_type_unit): Update.
9241 (create_debug_type_hash_table, create_debug_types_hash_table):
9242 Change type of types_htab.
9243 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9244 htab_up. Don't allocate on obstack.
9245 (create_cus_hash_table): Change type of cus_htab parameter.
9246 (struct dwo_file) <cus, tus>: Now htab_up.
9247 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9248 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9249 (queue_and_load_all_dwo_tus): Update.
9250 * dwarf2/index-write.c (write_gdbindex): Update.
9251 (write_debug_names): Update.
9252
39856def
TT
92532020-02-08 Tom Tromey <tom@tromey.com>
9254
9255 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9256 dwarf2/read.c. Remove "next" member. Add constructor ntad
9257 destructor.
9258 (struct dwarf2_per_objfile) <queue>: New member.
9259 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9260 dwarf2/read.h.
9261 (dwarf2_queue, dwarf2_queue_tail): Remove.
9262 (class dwarf2_queue_guard): Add parameter to constructor. Use
9263 DISABLE_COPY_AND_ASSIGN.
9264 <m_per_objfile>: New member.
9265 <~dwarf2_queue_guard>: Rewrite.
9266 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9267 Update.
9268 (~dwarf2_queue_item): New.
9269
3e225074
TT
92702020-02-08 Tom Tromey <tom@tromey.com>
9271
9272 * dwarf2/read.c (struct die_info) <has_children>: New member.
9273 (dw2_get_file_names_reader): Remove has_children.
9274 (dw2_get_file_names): Update.
9275 (read_cutu_die_from_dwo): Remove has_children.
9276 (cutu_reader::init_tu_and_read_dwo_dies)
9277 (cutu_reader::cutu_reader): Update.
9278 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9279 Remove has_children.
9280 (build_type_psymtabs_1, process_skeletonless_type_unit)
9281 (load_partial_comp_unit, load_full_comp_unit): Update.
9282 (create_dwo_cu_reader): Remove has_children.
9283 (create_cus_hash_table, read_die_and_children): Update.
9284 (read_full_die_1,read_full_die): Remove has_children.
9285 (read_signatured_type): Update.
9286 (class cutu_reader) <has_children>: Remove.
9287
82ca8957
TT
92882020-02-08 Tom Tromey <tom@tromey.com>
9289
9290 * dwarf2/expr.c: Rename from dwarf2expr.c.
9291 * dwarf2/expr.h: Rename from dwarf2expr.h.
9292 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9293 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9294 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9295 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9296 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9297 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9298 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9299 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9300 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9301 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9302 * dwarf2/loc.c: Rename from dwarf2loc.c.
9303 * dwarf2/loc.h: Rename from dwarf2loc.h.
9304 * dwarf2/read.c: Rename from dwarf2read.c.
9305 * dwarf2/read.h: Rename from dwarf2read.h.
9306 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9307 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9308 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9309 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9310 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9311 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9312 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9313 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9314 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9315 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9316 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9317 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9318 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9319 Update.
9320 * Makefile.in (COMMON_SFILES): Update.
9321 (HFILES_NO_SRCDIR): Update.
9322
9e35d499
TT
93232020-02-08 Tom Tromey <tom@tromey.com>
9324
9325 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9326 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9327
1eba2311
TT
93282020-02-08 Tom Tromey <tom@tromey.com>
9329
9330 * dwarf2read.h (struct die_info): Don't declare.
9331
e41c2da2
TT
93322020-02-08 Tom Tromey <tom@tromey.com>
9333
9334 * dwarf2read.h (die_info_ptr): Remove typedef.
9335
4fc6c0d5
TT
93362020-02-08 Tom Tromey <tom@tromey.com>
9337
9338 * dwarf2read.c (read_call_site_scope)
9339 (handle_data_member_location, dwarf2_add_member_fn)
9340 (mark_common_block_symbol_computed, read_common_block)
9341 (attr_to_dynamic_prop, partial_die_info::read)
9342 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9343 (dwarf2_symbol_mark_computed, set_die_type): Update.
9344 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9345 method.
9346 (attr_form_is_block): Don't declare.
9347 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9348
cd6c91b4
TT
93492020-02-08 Tom Tromey <tom@tromey.com>
9350
9351 * dwarf2read.c (dwarf2_find_base_address, )
9352 (read_call_site_scope, rust_containing_type)
9353 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9354 (handle_data_member_location, dwarf2_add_member_fn)
9355 (get_alignment, read_structure_type, process_structure_scope)
9356 (mark_common_block_symbol_computed, read_common_block)
9357 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9358 (partial_die_info::read, read_attribute_value, new_symbol)
9359 (lookup_die_type, dwarf2_get_ref_die_offset)
9360 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9361 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9362 (dwarf2_symbol_mark_computed): Update.
9363 * dwarf2/attribute.h (struct attribute) <value_as_address,
9364 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9365 methods.
9366 (value_as_address, attr_form_is_section_offset)
9367 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9368 * dwarf2/attribute.c (attribute::value_as_address)
9369 (attribute::form_is_section_offset, attribute::form_is_constant)
9370 (attribute::form_is_ref): Now methods.
9371
162dce55
TT
93722020-02-08 Tom Tromey <tom@tromey.com>
9373
9374 * dwarf2read.c (struct attribute, DW_STRING)
9375 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9376 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9377 (attr_form_is_block, attr_form_is_section_offset)
9378 (attr_form_is_constant, attr_form_is_ref): Move.
9379 * dwarf2/attribute.h: New file.
9380 * dwarf2/attribute.c: New file, from dwarf2read.c.
9381 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9382
3054dd54
TT
93832020-02-08 Tom Tromey <tom@tromey.com>
9384
9385 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9386 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9387 Move.
9388 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9389 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9390 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9391 abbrev.c.
9392 * dwarf2/abbrev.h: New file.
9393 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9394 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9395
96b79293
TT
93962020-02-08 Tom Tromey <tom@tromey.com>
9397
9398 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9399 (dwarf2_section_size, dwarf2_get_section_info)
9400 (create_signatured_type_table_from_debug_names)
9401 (create_addrmap_from_aranges, read_debug_names_from_section)
9402 (get_gdb_index_contents_from_section, read_comp_unit_head)
9403 (error_check_comp_unit_head, read_abbrev_offset)
9404 (create_debug_type_hash_table, init_cu_die_reader)
9405 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9406 (read_comp_units_from_section, create_cus_hash_table)
9407 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9408 (create_dwp_v2_section, dwarf2_rnglists_process)
9409 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9410 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9411 (read_indirect_string_from_dwz, read_addr_index_1)
9412 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9413 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9414 (fill_in_loclist_baton): Update.
9415 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9416 get_containing_section, get_bfd_owner, get_bfd_section,
9417 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9418 (dwarf2_read_section, get_section_name, get_section_file_name)
9419 (get_containing_section, get_section_bfd_owner)
9420 (get_section_bfd_section, get_section_name, get_section_file_name)
9421 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9422 declare.
9423 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9424 (dwarf2_section_info::get_bfd_owner)
9425 (dwarf2_section_info::get_bfd_section)
9426 (dwarf2_section_info::get_name)
9427 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9428 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9429 (dwarf2_section_info::read): Now methods.
9430 * dwarf-index-write.c (class debug_names): Update.
9431
2c86cff9
TT
94322020-02-08 Tom Tromey <tom@tromey.com>
9433
9434 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9435 Move to dwarf2/section.h.
9436 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9437 (get_section_bfd_section, get_section_name)
9438 (get_section_file_name, get_section_id, get_section_flags)
9439 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9440 dwarf2/section.c.
9441 * dwarf2/section.h: New file.
9442 * dwarf2/section.c: New file, from dwarf2read.c.
9443 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9444
f4382c45
TT
94452020-02-08 Tom Tromey <tom@tromey.com>
9446
9447 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9448 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9449 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9450 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9451 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9452 * dwarf2/leb.h: New file, from dwarf2read.c.
9453 * dwarf2/leb.c: New file, from dwarf2read.c.
9454 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9455 Remove.
9456 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9457 (COMMON_SFILES): Add dwarf2/leb.c.
9458
01840b7a
JB
94592020-02-08 Joel Brobecker <brobecker@adacore.com>
9460
9461 GDB 9.1 released.
9462
dfcb27e4
IB
94632020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9464
9465 PR gdb/25190:
aac66a4c
SM
9466 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9467 * gdb/remote.c (remote_console_output): Update.
9468 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9469 (ui_file_puts): ...this.
9470 * gdb/ui-file.h (ui_file_puts): Add declaration.
9471 * gdb/utils.c (emit_style_escape): Update.
9472 (flush_wrap_buffer): Update.
9473 (fputs_maybe_filtered): Update.
9474 (fputs_unfiltered): Add function.
dfcb27e4 9475
faa17681
IB
94762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9477
aac66a4c
SM
9478 * gdb/event-loop.c (gdb_wait_for_event): Update.
9479 * gdb/printcmd.c (printf_command): Update.
9480 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9481 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9482 (gdb_os_flush_stderr): Update.
9483 * gdb/remote.c (remote_console_output): Update.
9484 * gdb/ui-file.c (gdb_flush): Rename to...
9485 (ui_file_flush): ...this.
9486 (stderr_file::write): Update.
9487 (stderr_file::puts): Update.
9488 * gdb/ui-file.h (gdb_flush): Rename to...
9489 (ui_file_flush): ...this.
9490 * gdb/utils.c (gdb_flush): Add function.
9491 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9492
5abbbe1d
TT
94932020-02-07 Tom Tromey <tromey@adacore.com>
9494
9495 PR breakpoints/24915:
9496 * source.c (find_and_open_source): Do not check basenames_may_differ.
9497
919adfe8
TT
94982020-02-07 Tom Tromey <tom@tromey.com>
9499
9500 * README: Update gdbserver documentation.
9501 * gdbserver: Move to top level.
9502 * configure.tgt (build_gdbserver): Remove.
9503 * configure.ac: Remove --enable-gdbserver.
9504 * configure: Rebuild.
9505 * Makefile.in (distclean): Don't mention gdbserver.
9506
1d5d29e7
SV
95072020-02-06 Shahab Vahedi <shahab@synopsys.com>
9508
9509 * source-cache.c (source_cache::ensure): Surround
9510 get_plain_source_lines with a try/catch.
9511 (source_cache::get_line_charpos): Get rid of try/catch
9512 and only check for the return value of "ensure".
9513 * tui/tui-source.c (tui_source_window::set_contents):
9514 Simplify "nlines" calculation.
9515
6eb1129c
SV
95162020-02-06 Shahab Vahedi <shahab@synopsys.com>
9517
9518 * MAINTAINERS (Write After Approval): Add myself.
9519
c6a42d11
CB
95202020-02-05 Christian Biesinger <cbiesinger@google.com>
9521
9522 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9523 function call.
9524
c8ecdda6
CB
95252020-02-05 Christian Biesinger <cbiesinger@google.com>
9526
9527 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9528
f6480e70
MR
95292020-02-05 Maciej W. Rozycki <macro@wdc.com>
9530
9531 * nat/riscv-linux-tdesc.h: New file.
9532 * nat/riscv-linux-tdesc.c: New file, taking code from...
9533 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9534 ... here.
9535 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9536 NATDEPFILES.
9537
dcc9fbc6
AB
95382020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9539
9540 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9541 we don't set the fake simulator ptid to the null_ptid.
9542
719546c4
SM
95432020-02-03 Simon Marchi <simon.marchi@efficios.com>
9544
9545 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9546 * gdbthread.h (class thread_info) <resumed>: Likewise.
9547 * infrun.c (resume_1): Likewise.
9548 (proceed): Likewise.
9549 (infrun_thread_stop_requested): Likewise.
9550 (stop_all_threads): Likewise.
9551 (handle_inferior_event): Likewise.
9552 (restart_threads): Likewise.
9553 (finish_step_over): Likewise.
9554 (keep_going_stepped_thread): Likewise.
9555 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9556 (linux_handle_extended_wait): Likewise.
9557 * record-btrace.c (get_thread_current_frame_id): Likewise.
9558 * record-full.c (record_full_wait_1): Likewise.
9559 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9560 * target.c (target_resume): Likewise.
9561 * thread.c (set_running_thread): Likewise.
9562
e409c542
AKS
95632020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9564
9565 * f-valprint.c (f77_print_array_1): Changed datatype of index
9566 variable to LONGEST from int to enable it to contain bound
9567 values correctly.
9568
ee98c0da
MR
95692020-02-03 Maciej W. Rozycki <macro@wdc.com>
9570
9571 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9572 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9573 offsets according to FLEN determined.
9574 (riscv_linux_nat_target::read_description): Determine FLEN
9575 dynamically.
9576 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9577 according to FLEN determined.
9578 (riscv_linux_nat_target::store_registers): Likewise.
9579
aa66aac4
SV
95802020-02-01 Shahab Vahedi <shahab@synopsys.com>
9581
9582 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9583 when reg->group is empty and reggroup is not.
9584
fd9faca8
TT
95852020-01-31 Tom Tromey <tromey@adacore.com>
9586
9587 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9588 Call beneath target's mourn_inferior after unpushing.
9589
42330a68
AB
95902020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9591
9592 PR tui/9765
9593 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9594 have enough lines to fill the screen, still return the lowest
9595 address we found.
9596
7a27a45b
AB
95972020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9598
9599 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9600 '-', '<', and '>' commands.
9601
c47f70e2
PA
96022020-01-29 Pedro Alves <palves@redhat.com>
9603 Sergio Durigan Junior <sergiodj@redhat.com>
9604
9605 * infcmd.c (construct_inferior_arguments): Assert that
9606 'argc' is greater than 0.
9607
5133a315
LM
96082020-01-29 Luis Machado <luis.machado@linaro.org>
9609
9610 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9611 (BRK_INSN_MASK): Define to 0xd4200000.
9612 (aarch64_program_breakpoint_here_p): New function.
9613 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9614 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9615 breakpoint.c.
9616 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9617 breakpoint.h
9618 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9619 call gdbarch_program_breakpoint_here_p.
9620 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9621 default_program_breakpoint_here_p, changed return type to bool and
9622 simplified.
9623 * breakpoint.h (program_breakpoint_here): Moved prototype to
9624 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9625 return type to bool.
9626 * gdbarch.c: Regenerate.
9627 * gdbarch.h: Regenerate.
9628 * gdbarch.sh (program_breakpoint_here_p): New method.
9629 * infrun.c (handle_signal_stop): Call
9630 gdbarch_program_breakpoint_here_p.
9631
168f8c6b
TT
96322020-01-26 Tom Tromey <tom@tromey.com>
9633
9634 * ctfread.c (struct ctf_fp_info): Reindent.
9635 (_initialize_ctfread): Remove.
9636
128a391f
TT
96372020-01-26 Tom Tromey <tom@tromey.com>
9638
9639 * psymtab.c (partial_map_expand_apply)
9640 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9641 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9642 (psym_print_stats, psym_expand_symtabs_for_function)
9643 (psym_map_symbol_filenames, psym_map_matching_symbols)
9644 (psym_expand_symtabs_matching)
9645 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9646 (maintenance_check_psymtabs): Use new methods.
9647 * psympriv.h (struct partial_symtab) <readin_p,
9648 get_compunit_symtab>: New methods.
9649 <readin, compunit_symtab>: Remove members.
9650 (struct standard_psymtab): New.
9651 (struct legacy_psymtab): Derive from standard_psymtab.
9652 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9653 standard_psymtab.
9654 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9655
0494dbec
TT
96562020-01-26 Tom Tromey <tom@tromey.com>
9657
9658 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9659 read_dependencies. Add assert.
9660 * psymtab.c (partial_symtab::read_dependencies): New method.
9661 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9662 method.
9663 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9664 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9665 read_dependencies.
9666 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9667 Add assert.
9668
8566b89b
TT
96692020-01-26 Tom Tromey <tom@tromey.com>
9670
9671 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9672 Call expand_psymtab.
9673 (xcoff_read_symtab): Call expand_psymtab.
9674 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9675 legacy_expand_psymtab.
9676 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9677 method.
9678 (struct legacy_psymtab) <expand_psymtab>: Implement.
9679 <legacy_expand_psymtab>: New member.
9680 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9681 (parse_partial_symbols): Set legacy_expand_psymtab.
9682 (psymtab_to_symtab_1): Change argument order. Call
9683 expand_psymtab.
9684 (new_psymtab): Set legacy_expand_psymtab.
9685 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9686 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9687 expand_psymtab.
9688 (dwarf2_psymtab::expand_psymtab): Rename from
9689 psymtab_to_symtab_1. Call expand_psymtab.
9690 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9691 (dbx_end_psymtab): Likewise.
9692 (dbx_psymtab_to_symtab_1): Change argument order. Call
9693 expand_psymtab.
9694 (dbx_read_symtab): Call expand_psymtab.
9695 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9696 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9697 (ctf_psymtab::read_symtab): Call expand_psymtab.
9698
077cbab2
TT
96992020-01-26 Tom Tromey <tom@tromey.com>
9700
9701 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9702 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9703 messages.
9704 * mdebugread.c (mdebug_read_symtab): Remove prints.
9705 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9706 assert.
9707 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9708
891813be
TT
97092020-01-26 Tom Tromey <tom@tromey.com>
9710
9711 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9712 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9713 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9714 legacy_symtab.
9715 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9716 * psymtab.c (psymtab_to_symtab): Call method.
9717 (dump_psymtab): Update.
9718 * psympriv.h (struct partial_symtab): Add virtual destructor.
9719 <read_symtab>: New method.
9720 (struct legacy_symtab): New.
9721 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9722 (struct pst_map) <pst>: Now a legacy_psymtab.
9723 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9724 (new_psymtab): Use legacy_psymtab.
9725 * dwarf2read.h (struct dwarf2_psymtab): New.
9726 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9727 * dwarf2read.c (dwarf2_create_include_psymtab)
9728 (dwarf2_build_include_psymtabs, create_type_unit_group)
9729 (create_partial_symtab, process_psymtab_comp_unit_reader)
9730 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9731 (set_partial_user): Use dwarf2_psymtab.
9732 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9733 (psymtab_to_symtab_1, process_full_comp_unit)
9734 (process_full_type_unit, dwarf2_ranges_read)
9735 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9736 (dwarf_decode_lines): Use dwarf2_psymtab.
9737 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9738 (add_address_entry_worker, write_one_signatured_type)
9739 (recursively_count_psymbols, recursively_write_psymbols)
9740 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9741 (write_debug_names): Likewise.
9742 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9743 <pst>: Now a legacy_psymtab.
9744 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9745 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9746 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9747 * ctfread.c (struct ctf_psymtab): New.
9748 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9749 ctf_psymtab.
9750 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9751 (create_partial_symtab): Return a ctf_psymtab.
9752 (scan_partial_symbols): Update.
9753
c3693a1d
TT
97542020-01-26 Tom Tromey <tom@tromey.com>
9755
9756 * xcoffread.c (xcoff_start_psymtab): Use new.
9757 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9758 renamed from start_psymtab_common.
9759 * psympriv.h (struct partial_symtab): Add new constructor.
9760 (start_psymtab_common): Don't declare.
9761 * mdebugread.c (parse_partial_symbols): Use new.
9762 * dwarf2read.c (create_partial_symtab): Use new.
9763 * dbxread.c (start_psymtab): Use new.
9764 * ctfread.c (create_partial_symtab): Use new.
9765
32caafd0
TT
97662020-01-26 Tom Tromey <tom@tromey.com>
9767
9768 * xcoffread.c (xcoff_end_psymtab): Use new.
9769 * psymtab.c (start_psymtab_common): Use new.
9770 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9771 Update.
9772 * psympriv.h (struct partial_symtab): Add parameters to
9773 constructor. Don't inline.
9774 (allocate_psymtab): Don't declare.
9775 * mdebugread.c (new_psymtab): Use new.
9776 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9777 * dbxread.c (dbx_end_psymtab): Use new.
9778
abaa2f23
TT
97792020-01-26 Tom Tromey <tom@tromey.com>
9780
9781 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9782 allocate_psymtab. Update documentation.
9783 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9784 allocate_psymtab. Do not use new.
9785 (allocate_psymtab): Use new. Update.
9786
6d94535f
TT
97872020-01-26 Tom Tromey <tom@tromey.com>
9788
9789 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9790 * psymtab.c (psym_print_stats): Update.
9791 * psympriv.h (struct partial_symtab) <readin,
9792 psymtabs_addrmap_supported, anonymous>: Now bool.
9793 * mdebugread.c (psymtab_to_symtab_1): Update.
9794 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9795 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9796 (process_full_comp_unit, process_full_type_unit): Update.
9797 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9798 * ctfread.c (psymtab_to_symtab): Update.
9799
6f17252b
TT
98002020-01-26 Tom Tromey <tom@tromey.com>
9801
9802 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9803 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9804 * psymtab.c (psymtab_storage): Delete psymtabs.
9805 (psymtab_storage::allocate_psymtab): Use new.
9806 (psymtab_storage::discard_psymtab): Use delete.
9807 * psympriv.h (struct partial_symtab): Add constructor and
9808 initializers.
9809
f6f1cebc
TT
98102020-01-26 Tom Tromey <tom@tromey.com>
9811
9812 * machoread.c: Do not include psympriv.h.
9813
e47e48f6
PW
98142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9815
9816 * NEWS: Mention the new option and the set/show commands.
9817
a2fedca9
PW
98182020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9819
9820 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9821 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9822 (validate_exec_file): New variables, enums, functions.
9823 (exec_file_locate_attach, print_section_info): Style the filenames.
9824 (_initialize_exec): Install show_exec_file_mismatch_command and
9825 set_exec_file_mismatch_command.
9826 * gdbcore.h (validate_exec_file): Declare.
9827 * infcmd.c (attach_command): Call validate_exec_file.
9828 * remote.c ( remote_target::remote_add_inferior): Likewise.
9829
7ffa82e1
AB
98302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9831
9832 * frame.c (find_frame_sal): Move call to get_next_frame into more
9833 inner scope.
9834 * inline-frame.c (inilne_state) <inline_state>: Update argument
9835 types.
9836 (inilne_state) <skipped_symbol>: Rename to...
9837 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9838 (skip_inline_frames): Build vector of skipped symbols and use this
9839 to reate the inline_state.
9840 (inline_skipped_symbol): Add a comment and some assertions, fetch
9841 skipped symbol from the list.
9842
3d92a3e3
AB
98432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9844
9845 * buildsym.c (lte_is_less_than): Delete.
9846 (buildsym_compunit::end_symtab_with_blockvector): Create local
9847 lambda function to sort line table entries, and use
9848 std::stable_sort instead of std::sort.
9849 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9850 markers when looking for a previous line.
9851
94a72be7
AB
98522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9853
9854 * dwarf2read.c (lnp_state_machine::record_line): Include
9855 end_sequence parameter in debug print out. Record the line if we
9856 are at an end_sequence marker even if it's not the start of a
9857 statement.
9858 * symmisc.c (maintenance_print_one_line_table): Print end of
9859 sequence markers with 'END' not '0'.
9860
53af73bf
PA
98612020-01-24 Pedro Alves <palves@redhat.com>
9862
9863 PR gdb/25410
9864 * thread.c (scoped_restore_current_thread::restore): Use
9865 switch_to_inferior_no_thread.
9866 * exec.c: Include "progspace-and-thread.h".
9867 (add_target_sections, remove_target_sections):
9868 scoped_restore_current_pspace_and_thread instead of
9869 scoped_restore_current_thread.
9870 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9871 and aspace to the inferior before calling clone_program_space.
9872 Remove stale comment.
9873
3050c6f4
CB
98742020-01-24 Christian Biesinger <cbiesinger@google.com>
9875
9876 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9877 (arm_netbsd_nat_target::fetch_registers): ...this.
9878 (arm_nbsd_nat_target::store_registers): Rename to...
9879 (arm_netbsd_nat_target::store_registers): ...this.
9880
73685c7e
CB
98812020-01-24 Christian Biesinger <cbiesinger@google.com>
9882
9883 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9884 register_t.
9885
89203d40
CB
98862020-01-24 Christian Biesinger <cbiesinger@google.com>
9887
9888 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9889 Update comment.
9890 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9891 Likewise.
9892 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9893 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9894 the correct replacement (iterate_over_regset_sections).
9895 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9896 Update comment.
9897
1ba1ac88
AB
98982020-01-24 Graham Markall <graham.markall@embecosm.com>
9899
9900 PR gdb/23718
9901 * gdb/python/python.c (execute_gdb_command): Call
9902 async_enable_stdin in catch block.
9903
f3364a6d
AB
99042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9905
9906 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9907 SWITCH_THRU_ALL_UIS.
9908
733d0a67
AB
99092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9910
9911 PR tui/9765
9912 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9913 comment, add extra parameter, and update to store previous symbol
9914 when appropriate.
9915 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9916 add extra parameter.
9917 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9918 remove unneeded parameter, add try/catch around gdb_print_insn,
9919 rewrite to add items to asm_lines vector.
9920 (tui_find_backward_disassembly_start_address): New function.
9921 (tui_find_disassembly_address): Updated throughout.
9922 (tui_disasm_window::set_contents): Update for changes to
9923 tui_disassemble.
9924 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9925 number of lines to scroll.
9926
b3b3bada
SM
99272020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9928
9929 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9930 (SECT_OFF_DATA): Likewise.
9931 (SECT_OFF_RODATA): Likewise.
9932 (SECT_OFF_TEXT): Likewise.
9933 (SECT_OFF_BSS): Likewise.
9934 (struct objfile) <text_section_offset, data_section_offset>: New
9935 methods.
9936 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9937 objfile::text_section_offset.
9938 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9939 * coffread.c (coff_symtab_read): Likewise.
9940 (enter_linenos): Likewise.
9941 (process_coff_symbol): Likewise.
9942 * ctfread.c (get_objfile_text_range): Likewise.
9943 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9944 Use objfile::data_section_offset.
9945 * dwarf2-frame.c (execute_cfa_program): Use
9946 objfile::text_section_offset.
9947 (dwarf2_frame_find_fde): Likewise.
9948 * dwarf2read.c (create_addrmap_from_index): Likewise.
9949 (create_addrmap_from_aranges): Likewise.
9950 (dw2_find_pc_sect_compunit_symtab): Likewise.
9951 (process_psymtab_comp_unit_reader): Likewise.
9952 (add_partial_symbol): Likewise.
9953 (add_partial_subprogram): Likewise.
9954 (process_full_comp_unit): Likewise.
9955 (read_file_scope): Likewise.
9956 (read_func_scope): Likewise.
9957 (read_lexical_block_scope): Likewise.
9958 (read_call_site_scope): Likewise.
9959 (dwarf2_rnglists_process): Likewise.
9960 (dwarf2_ranges_process): Likewise.
9961 (dwarf2_ranges_read): Likewise.
9962 (dwarf_decode_lines_1): Likewise.
9963 (new_symbol): Likewise.
9964 (dwarf2_fetch_die_loc_sect_off): Likewise.
9965 (dwarf2_per_cu_text_offset): Likewise.
9966 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9967 * hppa-tdep.c (read_unwind_info): Likewise.
9968 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9969 * psympriv.h (struct partial_symtab): Likewise.
9970 * psymtab.c (find_pc_sect_psymtab): Likewise.
9971 * solib-svr4.c (enable_break): Likewise.
9972 * stap-probe.c (relocate_address): Use
9973 objfile::data_section_offset.
9974 * xcoffread.c (enter_line_range): Use
9975 objfile::text_section_offset.
9976 (read_xcoff_symtab): Likewise.
9977
ab53f382
SM
99782020-01-23 Simon Marchi <simon.marchi@efficios.com>
9979
9980 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9981 declaration to narrower scopes.
9982
e7eee665
SM
99832020-01-23 Simon Marchi <simon.marchi@efficios.com>
9984
9985 * darwin-nat.h (struct darwin_exception_msg, enum
9986 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9987 Move up.
9988 (class darwin_nat_target) <wait_1, check_new_threads,
9989 decode_exception_message, decode_message, stop_inferior,
9990 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9991 * darwin-nat.c (darwin_check_new_threads): Rename to...
9992 (darwin_nat_target::check_new_threads): ... this.
9993 (darwin_suspend_inferior_it): Remove.
9994 (darwin_decode_exception_message): Rename to...
9995 (darwin_nat_target::decode_exception_message): ... this.
9996 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9997 (darwin_decode_message): Rename to...
9998 (darwin_nat_target::decode_message): ... this.
9999 (cancel_breakpoint): Rename to...
10000 (darwin_nat_target::cancel_breakpoint): ... this.
10001 (darwin_wait): Rename to...
10002 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10003 instead of iterate_over_inferiors.
10004 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10005 (darwin_stop_inferior): Rename to...
10006 (darwin_nat_target::stop_inferior): ... this.
10007 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10008 (darwin_init_thread_list): Rename to...
10009 (darwin_nat_target::init_thread_list): ... this.
10010 (darwin_ptrace_him): Rename to...
10011 (darwin_nat_target::ptrace_him): ... this.
10012 (darwin_nat_target::create_inferior): Pass lambda function to
10013 fork_inferior.
10014 (darwin_nat_target::detach): Call stop_inferior instead of
10015 darwin_stop_inferior.
10016 * fork-inferior.h (fork_inferior): Change init_trace_fun
10017 parameter to gdb::function_view.
10018 * fork-inferior.c (fork_inferior): Likewise.
10019
c162ed3e
HD
100202020-01-23 Hannes Domani <ssbssa@yahoo.de>
10021
10022 * i386-cygwin-tdep.c (core_process_module_section): Update.
10023 * windows-nat.c (struct lm_info_windows): Add text_offset.
10024 (windows_xfer_shared_libraries): Update.
10025 * windows-tdep.c (windows_xfer_shared_library):
10026 Add text_offset_cached argument.
10027 * windows-tdep.h (windows_xfer_shared_library): Update.
10028
a1237872
SM
100292020-01-21 Simon Marchi <simon.marchi@efficios.com>
10030
10031 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10032
b3ee6dd9
SM
100332020-01-21 Simon Marchi <simon.marchi@efficios.com>
10034
10035 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10036 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10037 replace with range-based for.
10038 (gdbsim_interrupt_inferior): Remove.
10039 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10040 with a range-based for. Inline code from
10041 gdbsim_interrupt_inferior.
10042
f9fac3c8
SM
100432020-01-21 Simon Marchi <simon.marchi@efficios.com>
10044
10045 * infrun.c (proceed): Fix indentation.
10046
f6474de9
TT
100472020-01-21 Tom Tromey <tromey@adacore.com>
10048
10049 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10050 * python/python.c (python_extension_ops): Update.
10051 (gdbpy_colorize): New function.
10052 * python/lib/gdb/__init__.py (colorize): New function.
10053 * extension.h (ext_lang_colorize): Declare.
10054 * extension.c (ext_lang_colorize): New function.
10055 * extension-priv.h (struct extension_language_ops) <colorize>: New
10056 member.
10057 * cli/cli-style.c (_initialize_cli_style): Update help text.
10058
f0c702d4
LM
100592020-01-21 Luis Machado <luis.machado@linaro.org>
10060
10061 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10062 <cond>: Change type to bool.
10063 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10064 (aarch64_displaced_step_cb): Likewise.
10065 (aarch64_displaced_step_tb): Likewise.
10066
1ab139e5
LM
100672020-01-21 Luis Machado <luis.machado@linaro.org>
10068
10069 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10070 output.
10071
0c271889
LM
100722020-01-21 Luis Machado <luis.machado@linaro.org>
10073
10074 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10075 <pc_adjust>: Adjust the documentation.
10076 (aarch64_displaced_step_fixup): Check if PC really moved before
10077 adjusting it.
10078
4d89c1c7
TT
100792020-01-19 Tom Tromey <tom@tromey.com>
10080
10081 * disasm.c (~gdb_disassembler): New destructor.
10082 (gdb_buffered_insn_length): Call disassemble_free_target.
10083 * disasm.h (class gdb_disassembler): Declare destructor. Use
10084 DISABLE_COPY_AND_ASSIGN.
10085
c0ab21c2
TT
100862020-01-19 Tom Tromey <tom@tromey.com>
10087
10088 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10089 (die_reader_func_ftype): Remove.
10090 (cutu_reader): New class.
10091 (dw2_get_file_names_reader): Remove "data" parameter.
10092 (dw2_get_file_names): Use cutu_reader.
10093 (create_debug_type_hash_table): Update.
10094 (read_cutu_die_from_dwo): Update comment.
10095 (lookup_dwo_unit): Add dwo_name parameter.
10096 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10097 die_reader_func_ftype and data parameters.
10098 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10099 Remove die_reader_func_ftype and data parameters.
10100 (~cutu_reader): New; from init_cutu_and_read_dies.
10101 (cutu_reader::cutu_reader): Rename from
10102 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10103 and data parameters.
10104 (init_cutu_and_read_dies_simple): Remove.
10105 (struct process_psymtab_comp_unit_data): Remove.
10106 (process_psymtab_comp_unit_reader): Remove data parameter; add
10107 want_partial_unit and pretend_language parameters.
10108 (process_psymtab_comp_unit): Use cutu_reader.
10109 (build_type_psymtabs_reader): Remove data parameter.
10110 (build_type_psymtabs_1): Use cutu_reader.
10111 (process_skeletonless_type_unit): Likewise.
10112 (load_partial_comp_unit_reader): Remove.
10113 (load_partial_comp_unit): Use cutu_reader.
10114 (load_full_comp_unit_reader): Remove.
10115 (load_full_comp_unit): Use cutu_reader.
10116 (struct create_dwo_cu_data): Remove.
10117 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10118 dwo_unit parameters.
10119 (create_cus_hash_table): Use cutu_reader.
10120 (struct dwarf2_read_addr_index_data): Remove.
10121 (dwarf2_read_addr_index_reader): Remove.
10122 (dwarf2_read_addr_index): Use cutu_reader.
10123 (read_signatured_type_reader): Remove.
10124 (read_signatured_type): Use cutu_reader.
10125
45bbae5c
TT
101262020-01-19 Tom Tromey <tom@tromey.com>
10127
10128 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10129 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10130 (tui_wrefresh): Declare.
10131 * tui/tui-wingeneral.c (suppress_output): New global.
10132 (tui_suppress_output, ~tui_suppress_output): New constructor and
10133 destructor.
10134 (tui_wrefresh): New function.
10135 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10136 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10137 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10138 method.
10139 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10140 tui_wrefresh.
10141 (tui_data_window::no_refresh): New method.
10142 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10143 (tui_reg_command): Use tui_suppress_output
10144 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10145 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10146 method.
10147 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10148
4f13c1c0
TT
101492020-01-19 Tom Tromey <tom@tromey.com>
10150
10151 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10152 Handle case where symtab is null.
10153
fa47e446
SM
101542020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10155
10156 * linux-fork.c (one_fork_p): Simplify.
10157
26f42329
SM
101582020-01-17 Simon Marchi <simon.marchi@efficios.com>
10159
10160 * top.c (struct qt_args): Remove.
10161 (kill_or_detach): Change return type to void, replace `void *`
10162 parameter with a proper one.
10163 (print_inferior_quit_action): Likewise.
10164 (quit_confirm): Use range-based for loop to iterate over inferiors.
10165 (quit_force): Likewise.
10166
a9ac81b1
SM
101672020-01-17 Simon Marchi <simon.marchi@efficios.com>
10168
10169 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10170 `void *` parameter with proper parameters.
10171 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10172 (print_one_inferior): Change return type to void, replace `void *`
10173 parameter with proper parameters.
10174 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10175 inferiors.
10176 (get_other_inferior): Remove.
10177 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10178 inferiors.
10179
788eca49
SM
101802020-01-17 Simon Marchi <simon.marchi@efficios.com>
10181
10182 * mi/mi-interp.c (report_initial_inferior): Remove.
10183 (mi_interp::init): Use range-based for to iterate over inferiors.
10184
d9bc85b6
SM
101852020-01-17 Simon Marchi <simon.marchi@efficios.com>
10186
10187 * python/py-inferior.c (build_inferior_list): Remove.
10188 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10189
40c94099
CB
101902020-01-16 Christian Biesinger <cbiesinger@google.com>
10191
10192 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10193 (btrace_stitch_trace): Likewise.
10194 * charset.c (intermediate_encoding): Likewise (vaild).
10195 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10196 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10197 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10198
e0cdfe3c
HD
101992020-01-16 Hannes Domani <ssbssa@yahoo.de>
10200
10201 * windows-tdep.c (windows_get_tlb_type):
10202 Add rtl_user_process_parameters type.
10203
790f1718 102042020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10205 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10206
10207 PR build/24805
10208 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10209 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10210 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10211 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10212 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10213 (ps_plog): Redeclare exported functions with default visibility.
10214
3112ed97
NA
102152020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10216
10217 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10218 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10219
8dc3273e
SM
102202020-01-15 Simon Marchi <simon.marchi@efficios.com>
10221
10222 * infcmd.c (post_create_inferior): Use get_thread_regcache
10223 instead of get_current_regcache.
10224
ff47f4f0
TT
102252020-01-14 Tom Tromey <tom@tromey.com>
10226
10227 PR symtab/12535:
10228 * python/python.c (gdbpy_decode_line): Treat empty string the same
10229 as no argument.
10230
975f45b7
TT
102312020-01-14 Tom Tromey <tom@tromey.com>
10232
10233 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10234
25e57356
TT
102352020-01-14 Tom Tromey <tom@tromey.com>
10236
10237 * nat/linux-btrace.c: Don't include <config.h>.
10238 * nat/linux-ptrace.c: Don't include <config.h>.
10239 * nat/x86-linux-dregs.c: Don't include <config.h>.
10240
05ea2a05
TT
102412020-01-14 Tom Tromey <tom@tromey.com>
10242
10243 * configure: Rebuild.
10244 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10245
01027315
TT
102462020-01-14 Tom Tromey <tom@tromey.com>
10247
10248 * nat/x86-linux-dregs.c: Include configh.h.
10249 * nat/linux-ptrace.c: Include configh.h.
10250 * nat/linux-btrace.c: Include configh.h.
10251 * defs.h: Include config.h, bfd.h.
10252 * configure.ac: Don't source common.host.
10253 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10254 * configure: Rebuild.
10255 * acinclude.m4: Update path.
10256 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10257 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10258 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10259 (CLIBS): Add LIBSUPPORT.
10260 (CDEPS): Likewise.
10261 (COMMON_SFILES): Remove gdbsupport files.
10262 (HFILES_NO_SRCDIR): Likewise.
10263 (stamp-version): Update path to create-version.sh.
10264 (ALLDEPFILES): Remove gdbsupport files.
10265
b2ceabe8
TT
102662020-01-14 Tom Tromey <tom@tromey.com>
10267
10268 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10269 USE_WIN32API when needed.
10270 * configure.ac (USE_WIN32API): Don't define.
10271 (WIN32LIBS): Use WIN32APILIBS.
10272 * configure: Rebuild.
10273
25c51f71
TT
102742020-01-14 Tom Tromey <tom@tromey.com>
10275
10276 * configure: Rebuild.
10277 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10278
717c684d
BE
102792020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10280
10281 * skip.c (skip_function_command): Make skip w/o arguments use the
10282 name of the inlined function if pc is inside any inlined function.
10283
7da6a5b9
LM
102842020-01-14 Luis Machado <luis.machado@linaro.org>
10285
10286 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10287 * infrun.c (resume_1): Likewise.
10288 (handle_inferior_event): Remove stale comment.
10289 * linux-nat.c (linux_nat_target::resume): Update comments.
10290 (save_stop_reason): Likewise.
10291 (linux_nat_filter_event): Likewise.
10292 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10293
44e4c775
AB
102942020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10295
10296 * elfread.c (record_minimal_symbol): Set section index to 0 for
10297 non-allocatable sections.
10298
18a8505e
AT
10299
103002020-01-13 Ali Tamur <tamur@google.com>
10301
10302 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10303 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10304 to gdb::optional. Update comments.
10305 (dwo_file): Update comments.
10306 (read_attribute): Update API to take an additional out parameter,
10307 need_reprocess. This is used to mark attributes that need other
10308 attributes (e.g. str_offsets_base) for correct computation which may not
10309 have been read yet.
10310 (read_attribute_reprocess): New function declaration.
10311 (read_addr_index): Likewise.
10312 (read_dwo_str_index): Likewise.
10313 (read_stub_str_index): Likewise.
10314 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10315 (lookup_addr_base): New function definition.
10316 (lookup_ranges_base): Likewise.
10317 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10318 lookup_ranges_base.
10319 (init_cutu_and_read_dies): Update comments.
10320 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10321 unit. This is used to inherit parent's str_offsets_base and addr_base.
10322 Update comments.
10323 (init_cutu_and_read_dies_simple): Reflect API changes.
10324 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10325 (create_cus_hash_table): Change API to take parent compile unit.
10326 Reflect API changes.
10327 (open_and_init_dwo_file): Reflect API changes.
10328 (dwarf2_get_pc_bounds): Update comments.
10329 (dwarf2_record_block_ranges): Likewise.
10330 (read_full_die_1): Change implementation to reprocess attributes that
10331 need str_offsets_base and addr_base.
10332 (partial_die_info::read): Likewise.
10333 (read_attribute_reprocess): New function definition.
10334 (read_attribute_value): Change API to take an additional out parameter,
10335 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10336 when a non-dwo compile unit has index based attributes.
10337 (read_attribute): Reflect API changes.
10338 (read_addr_index_1): Reflect API changes. Update comments.
10339 (dwarf2_read_addr_index_data): Reflect API changes.
10340 (dwarf2_read_addr_index): Likewise.
10341 (read_str_index): Change API and implementation. This becomes a helper
10342 to be used by the new string index related methods. Update error
10343 message and comments.
10344 (read_dwo_str_index): New function definition.
10345 (read_stub_str_index): Likewise.
10346 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10347 * symfile.h (dwarf2_debug_sections): Likewise.
10348 * xcoffread.c (dwarf2_debug_sections): Likewise.
10349
0cac9354
SM
103502020-01-13 Simon Marchi <simon.marchi@efficios.com>
10351
10352 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10353 core_reg_sect type to gdb_byte *.
10354 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10355 * cris-tdep.c (fetch_core_registers): Likewise.
10356 * corelow.c (core_target::get_core_register_section): Change
10357 type of `contents` to gdb::byte_vector.
10358
9a6d629c
AB
103592020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10360
10361 * tui/tui-wingeneral.c (box_win): Position the title in the center
10362 of the border.
10363
d8b2f9e3
SM
103642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10365
10366 * corelow.c (core_target::get_core_register_section): Use
10367 std::vector instead of alloca.
10368
bb564c58
SM
103692020-01-13 Simon Marchi <simon.marchi@efficios.com>
10370
10371 * warning.m4: Add -Wmissing-declarations to build_warnings.
10372 * configure: Re-generate.
10373
6b366111
SM
103742020-01-13 Simon Marchi <simon.marchi@efficios.com>
10375
10376 * python/python.c (init__gdb_module): Add declaration.
10377
6c265988
SM
103782020-01-13 Simon Marchi <simon.marchi@efficios.com>
10379
10380 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10381 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10382 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10383 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10384 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10385 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10386 * ada-exp.y (_initialize_ada_exp): Add declaration.
10387 * ada-lang.c (_initialize_ada_language): Add declaration.
10388 * ada-tasks.c (_initialize_tasks): Add declaration.
10389 * agent.c (_initialize_agent): Add declaration.
10390 * aix-thread.c (_initialize_aix_thread): Add declaration.
10391 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10392 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10393 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10394 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10395 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10396 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10397 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10398 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10399 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10400 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10401 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10402 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10403 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10404 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10405 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10406 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10407 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10408 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10409 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10410 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10411 * annotate.c (_initialize_annotate): Add declaration.
10412 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10413 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10414 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10415 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10416 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10417 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10418 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10419 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10420 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10421 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10422 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10423 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10424 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10425 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10426 * auto-load.c (_initialize_auto_load): Add declaration.
10427 * auxv.c (_initialize_auxv): Add declaration.
10428 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10429 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10430 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10431 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10432 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10433 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10434 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10435 * breakpoint.c (_initialize_breakpoint): Add declaration.
10436 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10437 * btrace.c (_initialize_btrace): Add declaration.
10438 * charset.c (_initialize_charset): Add declaration.
10439 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10440 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10441 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10442 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10443 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10444 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10445 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10446 * coffread.c (_initialize_coffread): Add declaration.
10447 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10448 * compile/compile.c (_initialize_compile): Add declaration.
10449 * complaints.c (_initialize_complaints): Add declaration.
10450 * completer.c (_initialize_completer): Add declaration.
10451 * copying.c (_initialize_copying): Add declaration.
10452 * corefile.c (_initialize_core): Add declaration.
10453 * corelow.c (_initialize_corelow): Add declaration.
10454 * cp-abi.c (_initialize_cp_abi): Add declaration.
10455 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10456 * cp-support.c (_initialize_cp_support): Add declaration.
10457 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10458 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10459 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10460 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10461 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10462 * ctfread.c (_initialize_ctfread): Add declaration.
10463 * d-lang.c (_initialize_d_language): Add declaration.
10464 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10465 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10466 * dbxread.c (_initialize_dbxread): Add declaration.
10467 * dcache.c (_initialize_dcache): Add declaration.
10468 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10469 * disasm.c (_initialize_disasm): Add declaration.
10470 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10471 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10472 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10473 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10474 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10475 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10476 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10477 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10478 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10479 * elfread.c (_initialize_elfread): Add declaration.
10480 * exec.c (_initialize_exec): Add declaration.
10481 * extension.c (_initialize_extension): Add declaration.
10482 * f-lang.c (_initialize_f_language): Add declaration.
10483 * f-valprint.c (_initialize_f_valprint): Add declaration.
10484 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10485 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10486 * filesystem.c (_initialize_filesystem): Add declaration.
10487 * findcmd.c (_initialize_mem_search): Add declaration.
10488 * findvar.c (_initialize_findvar): Add declaration.
10489 * fork-child.c (_initialize_fork_child): Add declaration.
10490 * frame-base.c (_initialize_frame_base): Add declaration.
10491 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10492 * frame.c (_initialize_frame): Add declaration.
10493 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10494 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10495 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10496 * gcore.c (_initialize_gcore): Add declaration.
10497 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10498 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10499 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10500 * gdbarch.c (_initialize_gdbarch): Add declaration.
10501 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10502 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10503 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10504 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10505 * go-lang.c (_initialize_go_language): Add declaration.
10506 * go32-nat.c (_initialize_go32_nat): Add declaration.
10507 * guile/guile.c (_initialize_guile): Add declaration.
10508 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10509 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10510 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10511 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10512 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10513 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10514 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10515 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10516 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10517 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10518 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10519 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10520 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10521 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10522 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10523 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10524 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10525 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10526 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10527 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10528 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10529 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10530 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10531 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10532 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10533 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10534 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10535 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10536 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10537 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10538 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10539 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10540 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10541 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10542 * infcall.c (_initialize_infcall): Add declaration.
10543 * infcmd.c (_initialize_infcmd): Add declaration.
10544 * inflow.c (_initialize_inflow): Add declaration.
10545 * infrun.c (_initialize_infrun): Add declaration.
10546 * interps.c (_initialize_interpreter): Add declaration.
10547 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10548 * jit.c (_initialize_jit): Add declaration.
10549 * language.c (_initialize_language): Add declaration.
10550 * linux-fork.c (_initialize_linux_fork): Add declaration.
10551 * linux-nat.c (_initialize_linux_nat): Add declaration.
10552 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10553 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10554 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10555 * m2-lang.c (_initialize_m2_language): Add declaration.
10556 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10557 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10558 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10559 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10560 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10561 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10562 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10563 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10564 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10565 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10566 * machoread.c (_initialize_machoread): Add declaration.
10567 * macrocmd.c (_initialize_macrocmd): Add declaration.
10568 * macroscope.c (_initialize_macroscope): Add declaration.
10569 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10570 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10571 * maint.c (_initialize_maint_cmds): Add declaration.
10572 * mdebugread.c (_initialize_mdebugread): Add declaration.
10573 * memattr.c (_initialize_mem): Add declaration.
10574 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10575 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10576 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10577 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10578 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10579 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10580 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10581 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10582 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10583 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10584 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10585 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10586 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10587 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10588 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10589 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10590 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10591 * mipsread.c (_initialize_mipsread): Add declaration.
10592 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10593 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10594 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10595 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10596 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10597 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10598 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10599 * nto-procfs.c (_initialize_procfs): Add declaration.
10600 * objc-lang.c (_initialize_objc_language): Add declaration.
10601 * observable.c (_initialize_observer): Add declaration.
10602 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10603 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10604 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10605 * osabi.c (_initialize_gdb_osabi): Add declaration.
10606 * osdata.c (_initialize_osdata): Add declaration.
10607 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10608 * parse.c (_initialize_parse): Add declaration.
10609 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10610 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10611 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10612 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10613 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10614 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10615 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10616 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10617 * printcmd.c (_initialize_printcmd): Add declaration.
10618 * probe.c (_initialize_probe): Add declaration.
10619 * proc-api.c (_initialize_proc_api): Add declaration.
10620 * proc-events.c (_initialize_proc_events): Add declaration.
10621 * proc-service.c (_initialize_proc_service): Add declaration.
10622 * procfs.c (_initialize_procfs): Add declaration.
10623 * producer.c (_initialize_producer): Add declaration.
10624 * psymtab.c (_initialize_psymtab): Add declaration.
10625 * python/python.c (_initialize_python): Add declaration.
10626 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10627 * record-btrace.c (_initialize_record_btrace): Add declaration.
10628 * record-full.c (_initialize_record_full): Add declaration.
10629 * record.c (_initialize_record): Add declaration.
10630 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10631 * regcache.c (_initialize_regcache): Add declaration.
10632 * reggroups.c (_initialize_reggroup): Add declaration.
10633 * remote-notif.c (_initialize_notif): Add declaration.
10634 * remote-sim.c (_initialize_remote_sim): Add declaration.
10635 * remote.c (_initialize_remote): Add declaration.
10636 * reverse.c (_initialize_reverse): Add declaration.
10637 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10638 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10639 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10640 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10641 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10642 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10643 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10644 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10645 Add declaration.
10646 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10647 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10648 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10649 * rust-exp.y (_initialize_rust_exp): Add declaration.
10650 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10651 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10652 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10653 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10654 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10655 * score-tdep.c (_initialize_score_tdep): Add declaration.
10656 * ser-go32.c (_initialize_ser_dos): Add declaration.
10657 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10658 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10659 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10660 * ser-uds.c (_initialize_ser_socket): Add declaration.
10661 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10662 * serial.c (_initialize_serial): Add declaration.
10663 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10664 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10665 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10666 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10667 * skip.c (_initialize_step_skip): Add declaration.
10668 * sol-thread.c (_initialize_sol_thread): Add declaration.
10669 * solib-aix.c (_initialize_solib_aix): Add declaration.
10670 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10671 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10672 * solib-frv.c (_initialize_frv_solib): Add declaration.
10673 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10674 * solib-target.c (_initialize_solib_target): Add declaration.
10675 * solib.c (_initialize_solib): Add declaration.
10676 * source-cache.c (_initialize_source_cache): Add declaration.
10677 * source.c (_initialize_source): Add declaration.
10678 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10679 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10680 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10681 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10682 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10683 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10684 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10685 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10686 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10687 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10688 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10689 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10690 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10691 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10692 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10693 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10694 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10695 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10696 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10697 * stabsread.c (_initialize_stabsread): Add declaration.
10698 * stack.c (_initialize_stack): Add declaration.
10699 * stap-probe.c (_initialize_stap_probe): Add declaration.
10700 * std-regs.c (_initialize_frame_reg): Add declaration.
10701 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10702 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10703 * symfile.c (_initialize_symfile): Add declaration.
10704 * symmisc.c (_initialize_symmisc): Add declaration.
10705 * symtab.c (_initialize_symtab): Add declaration.
10706 * target.c (_initialize_target): Add declaration.
10707 * target-connection.c (_initialize_target_connection): Add
10708 declaration.
10709 * target-dcache.c (_initialize_target_dcache): Add declaration.
10710 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10711 * thread.c (_initialize_thread): Add declaration.
10712 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10713 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10714 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10715 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10716 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10717 * tracectf.c (_initialize_ctf): Add declaration.
10718 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10719 * tracefile.c (_initialize_tracefile): Add declaration.
10720 * tracepoint.c (_initialize_tracepoint): Add declaration.
10721 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10722 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10723 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10724 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10725 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10726 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10727 * tui/tui.c (_initialize_tui): Add declaration.
10728 * typeprint.c (_initialize_typeprint): Add declaration.
10729 * ui-style.c (_initialize_ui_style): Add declaration.
10730 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10731 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10732 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10733 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10734 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10735 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10736 * unittests/filtered_iterator-selftests.c
10737 (_initialize_filtered_iterator_selftests): Add declaration.
10738 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10739 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10740 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10741 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10742 * unittests/main-thread-selftests.c
10743 (_initialize_main_thread_selftests): Add declaration.
10744 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10745 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10746 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10747 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10748 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10749 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10750 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10751 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10752 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10753 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10754 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10755 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10756 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10757 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10758 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10759 declaration.
10760 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10761 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10762 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10763 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10764 * user-regs.c (_initialize_user_regs): Add declaration.
10765 * utils.c (_initialize_utils): Add declaration.
10766 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10767 * valops.c (_initialize_valops): Add declaration.
10768 * valprint.c (_initialize_valprint): Add declaration.
10769 * value.c (_initialize_values): Add declaration.
10770 * varobj.c (_initialize_varobj): Add declaration.
10771 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10772 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10773 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10774 * windows-nat.c (_initialize_windows_nat): Add declaration.
10775 (_initialize_check_for_gdb_ini): Add declaration.
10776 (_initialize_loadable): Add declaration.
10777 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10778 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10779 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10780 * xcoffread.c (_initialize_xcoffread): Add declaration.
10781 * xml-support.c (_initialize_xml_support): Add declaration.
10782 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10783 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10784 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10785 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10786
e2de1eec
SM
107872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10788
10789 * regformats/regdat.sh: Generate declaration for init function.
10790
e0037b4c
SM
107912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10792
10793 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10794 up.
10795 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10796 close_one_inferior>: New methods.
10797 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10798 pass down target to find_inferior_pid.
10799 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10800 Pass down target to find_inferior_ptid.
10801 (gdbsim_target::create_inferior): Pass down target to
10802 add_thread_silent.
10803 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10804 target down to find_inferior_ptid and switch_to_thread.
10805 (gdbsim_target::close): Update to call close_one_inferior.
10806 (struct resume_data): Remove.
10807 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10808 directly, rather than through a void pointer.
10809 (gdbsim_target::resume): Update to call resume_one_inferior.
10810
58920b5b
SM
108112020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10812
10813 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10814
4ec89149
PA
108152020-01-12 Pedro Alves <palves@redhat.com>
10816
10817 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10818 directly for the current inferior instead of
10819 discard_all_inferiors.
10820 (discard_all_inferiors): Delete.
10821
7c392d1d
TT
108222020-01-11 Tom Tromey <tom@tromey.com>
10823
10824 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10825 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10826 deprecated_safe_get_selected_frame.
10827
d9ebdab7
TBA
108282020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10829
10830 * inferior.c (print_inferior): Switch inferior before printing it.
10831
f3c469b9
PA
108322020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10833 Pedro Alves <palves@redhat.com>
10834
10835 * progspace-and-thread.c (switch_to_program_space_and_thread):
10836 Assert there's an inferior for PSPACE. Use
10837 switch_to_inferior_no_thread to switch the inferior too.
10838 * progspace.c (program_space::~program_space): Call
10839 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10840 (program_space::free_all_objfiles): Don't call clear_symtab_users
10841 here.
10842 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10843
65c574f6
PA
108442020-01-10 Pedro Alves <palves@redhat.com>
10845
10846 * NEWS: Mention multi-target debugging, "info connections", and
10847 "add-inferior -no-connection".
10848
2f4fcf00
PA
108492020-01-10 Pedro Alves <palves@redhat.com>
10850
10851 * infrun.c: Include "target-connection.h".
10852 (check_multi_target_resumption): New.
10853 (proceed): Call it.
10854 * target-connection.c (make_target_connection_string): Make
10855 extern.
10856 * target-connection.h (make_target_connection_string): Declare.
10857
121b3efd
PA
108582020-01-10 Pedro Alves <palves@redhat.com>
10859
10860 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10861 * inferior.c (uiout_field_connection): New function.
10862 (print_inferior): Add new "connection-id" column.
10863 (add_inferior_command): Show connection number/string of added
10864 inferior.
10865 * process-stratum-target.h
10866 (process_stratum_target::connection_string): New virtual method.
10867 (process_stratum_target::connection_number): New field.
10868 * remote.c (remote_target::connection_string): New override.
10869 * target-connection.c: New file.
10870 * target-connection.h: New file.
10871 * target.c (decref_target): Remove process_stratum targets from
10872 the connection list.
10873 (target_stack::push): Add process_stratum targets to the
10874 connection list.
10875
4f837581
PA
108762020-01-10 Pedro Alves <palves@redhat.com>
10877
10878 Revert:
10879 2016-04-12 Pedro Alves <palves@redhat.com>
10880 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10881 Remove references to name.
10882 * serial.h (struct serial) <name>: Delete.
10883
f4ec508e
PA
108842020-01-10 Pedro Alves <palves@redhat.com>
10885
10886 * gdbarch-selftests.c (register_to_value_test): Remove "target
10887 already pushed" check.
10888
5b6d1e4f
PA
108892020-01-10 Pedro Alves <palves@redhat.com>
10890 John Baldwin <jhb@FreeBSD.org>
10891
10892 * aarch64-linux-nat.c
10893 (aarch64_linux_nat_target::thread_architecture): Adjust.
10894 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10895 (task_command_1): Likewise.
10896 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10897 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10898 (aix_thread_target::store_registers)
10899 (aix_thread_target::thread_alive): Adjust.
10900 * amd64-fbsd-tdep.c: Include "inferior.h".
10901 (amd64fbsd_get_thread_local_address): Pass down target.
10902 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10903 thread's gdbarch instead of target_gdbarch.
10904 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10905 get_last_target_status.
10906 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10907 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10908 inferiors.
10909 (update_inserted_breakpoint_locations): Skip if inferiors with no
10910 execution.
10911 (update_global_location_list): When handling moribund locations,
10912 find representative inferior for location's pspace, and use thread
10913 count of its process_stratum target.
10914 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10915 * bsd-uthread.c (bsd_uthread_target::wait): Use
10916 as_process_stratum_target and adjust thread_change_ptid and
10917 add_thread calls.
10918 (bsd_uthread_target::update_thread_list): Use
10919 as_process_stratum_target and adjust find_thread_ptid,
10920 thread_change_ptid and add_thread calls.
10921 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10922 find_thread_ptid call.
10923 * corelow.c (add_to_thread_list): Adjust add_thread call.
10924 (core_target_open): Adjust add_thread_silent and thread_count
10925 calls.
10926 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10927 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10928 * event-top.c (async_disconnect): Pop targets from all inferiors.
10929 * exec.c (add_target_sections): Push exec target on all inferiors
10930 sharing the program space.
10931 (remove_target_sections): Remove the exec target from all
10932 inferiors sharing the program space.
10933 (exec_on_vfork): New.
10934 * exec.h (exec_on_vfork): Declare.
10935 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10936 Pass it down.
10937 (fbsd_nat_target::update_thread_list): Adjust.
10938 (fbsd_nat_target::resume): Adjust.
10939 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10940 down.
10941 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10942 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10943 get_thread_arch_regcache call.
10944 * fork-child.c (gdb_startup_inferior): Pass target down to
10945 startup_inferior and set_executing.
10946 * gdbthread.h (struct process_stratum_target): Forward declare.
10947 (add_thread, add_thread_silent, add_thread_with_info)
10948 (in_thread_list): Add process_stratum_target parameter.
10949 (find_thread_ptid(inferior*, ptid_t)): New overload.
10950 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10951 parameter.
10952 (all_threads()): Delete overload.
10953 (all_threads, all_non_exited_threads): Add process_stratum_target
10954 parameter.
10955 (all_threads_safe): Use brace initialization.
10956 (thread_count): Add process_stratum_target parameter.
10957 (set_resumed, set_running, set_stop_requested, set_executing)
10958 (threads_are_executing, finish_thread_state): Add
10959 process_stratum_target parameter.
10960 (switch_to_thread): Use is_current_thread.
10961 * i386-fbsd-tdep.c: Include "inferior.h".
10962 (i386fbsd_get_thread_local_address): Pass down target.
10963 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10964 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10965 have_inferiors check.
10966 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10967 (inf_ptrace_target::attach): Adjust.
10968 * infcall.c (run_inferior_call): Adjust.
10969 * infcmd.c (run_command_1): Pass target to
10970 scoped_finish_thread_state.
10971 (proceed_thread_callback): Skip inferiors with no execution.
10972 (continue_command): Rename 'all_threads' local to avoid hiding
10973 'all_threads' function. Adjust get_last_target_status call.
10974 (prepare_one_step): Adjust set_running call.
10975 (signal_command): Use user_visible_resume_target. Compare thread
10976 pointers instead of inferior_ptid.
10977 (info_program_command): Adjust to pass down target.
10978 (attach_command): Mark target's 'thread_executing' flag.
10979 (stop_current_target_threads_ns): New, factored out from ...
10980 (interrupt_target_1): ... this. Switch inferior before making
10981 target calls.
10982 * inferior-iter.h
10983 (struct all_inferiors_iterator, struct all_inferiors_range)
10984 (struct all_inferiors_safe_range)
10985 (struct all_non_exited_inferiors_range): Filter on
10986 process_stratum_target too. Remove explicit.
10987 * inferior.c (inferior::inferior): Push dummy target on target
10988 stack.
10989 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10990 Add process_stratum_target parameter, and pass it down.
10991 (have_live_inferiors): Adjust.
10992 (switch_to_inferior_and_push_target): New.
10993 (add_inferior_command, clone_inferior_command): Handle
10994 "-no-connection" parameter. Use
10995 switch_to_inferior_and_push_target.
10996 (_initialize_inferior): Mention "-no-connection" option in
10997 the help of "add-inferior" and "clone-inferior" commands.
10998 * inferior.h: Include "process-stratum-target.h".
10999 (interrupt_target_1): Use bool.
11000 (struct inferior) <push_target, unpush_target, target_is_pushed,
11001 find_target_beneath, top_target, process_target, target_at,
11002 m_stack>: New.
11003 (discard_all_inferiors): Delete.
11004 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11005 (all_inferiors, all_non_exited_inferiors): Add
11006 process_stratum_target parameter.
11007 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11008 (target_last_proc_target): New global.
11009 (follow_fork_inferior): Push target on new inferior. Pass target
11010 to add_thread_silent. Call exec_on_vfork. Handle target's
11011 reference count.
11012 (follow_fork): Adjust get_last_target_status call. Also consider
11013 target.
11014 (follow_exec): Push target on new inferior.
11015 (struct execution_control_state) <target>: New field.
11016 (user_visible_resume_target): New.
11017 (do_target_resume): Call target_async.
11018 (resume_1): Set target's threads_executing flag. Consider resume
11019 target.
11020 (commit_resume_all_targets): New.
11021 (proceed): Also consider resume target. Skip threads of inferiors
11022 with no execution. Commit resumtion in all targets.
11023 (start_remote): Pass current inferior to wait_for_inferior.
11024 (infrun_thread_stop_requested): Consider target as well. Pass
11025 thread_info pointer to clear_inline_frame_state instead of ptid.
11026 (infrun_thread_thread_exit): Consider target as well.
11027 (random_pending_event_thread): New inferior parameter. Use it.
11028 (do_target_wait): Rename to ...
11029 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11030 down.
11031 (threads_are_resumed_pending_p, do_target_wait): New.
11032 (prepare_for_detach): Adjust calls.
11033 (wait_for_inferior): New inferior parameter. Handle it. Use
11034 do_target_wait_1 instead of do_target_wait.
11035 (fetch_inferior_event): Adjust. Switch to representative
11036 inferior. Pass target down.
11037 (set_last_target_status): Add process_stratum_target parameter.
11038 Save target in global.
11039 (get_last_target_status): Add process_stratum_target parameter and
11040 handle it.
11041 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11042 (context_switch): Check inferior_ptid == null_ptid before calling
11043 inferior_thread().
11044 (get_inferior_stop_soon): Pass down target.
11045 (wait_one): Rename to ...
11046 (poll_one_curr_target): ... this.
11047 (struct wait_one_event): New.
11048 (wait_one): New.
11049 (stop_all_threads): Adjust.
11050 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11051 event's target.
11052 (switch_back_to_stepped_thread): Also consider target.
11053 (print_stop_event): Update.
11054 (normal_stop): Update. Also consider the resume target.
11055 * infrun.h (wait_for_inferior): Remove declaration.
11056 (user_visible_resume_target): New declaration.
11057 (get_last_target_status, set_last_target_status): New
11058 process_stratum_target parameter.
11059 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11060 process_stratum_target parameter, and use it.
11061 (clear_inline_frame_state (thread_info*)): New.
11062 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11063 process_stratum_target parameter.
11064 (clear_inline_frame_state (thread_info*)): Declare.
11065 * linux-fork.c (delete_checkpoint_command): Pass target down to
11066 find_thread_ptid.
11067 (checkpoint_command): Adjust.
11068 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11069 instead of just tweaking inferior_ptid.
11070 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11071 (exit_lwp): Pass target down to find_thread_ptid.
11072 (attach_proc_task_lwp_callback): Pass target down to
11073 add_thread/set_running/set_executing.
11074 (linux_nat_target::attach): Pass target down to
11075 thread_change_ptid.
11076 (get_detach_signal): Pass target down to find_thread_ptid.
11077 Consider last target status's target.
11078 (linux_resume_one_lwp_throw, resume_lwp)
11079 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11080 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11081 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11082 (linux_nat_target::async_wait_fd): New.
11083 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11084 target down.
11085 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11086 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11087 * linux-thread-db.c (struct thread_db_info::process_target): New
11088 field.
11089 (add_thread_db_info): Save target.
11090 (get_thread_db_info): New process_stratum_target parameter. Also
11091 match target.
11092 (delete_thread_db_info): New process_stratum_target parameter.
11093 Also match target.
11094 (thread_from_lwp): Adjust to pass down target.
11095 (thread_db_notice_clone): Pass down target.
11096 (check_thread_db_callback): Pass down target.
11097 (try_thread_db_load_1): Always push the thread_db target.
11098 (try_thread_db_load, record_thread): Pass target down.
11099 (thread_db_target::detach): Pass target down. Always unpush the
11100 thread_db target.
11101 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11102 target down. Always unpush the thread_db target.
11103 (find_new_threads_callback, thread_db_find_new_threads_2)
11104 (thread_db_target::update_thread_list): Pass target down.
11105 (thread_db_target::pid_to_str): Pass current inferior down.
11106 (thread_db_target::get_thread_local_address): Pass target down.
11107 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11108 target down.
11109 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11110 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11111 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11112 (procfs_init_inferior): Rename to ...
11113 (procfs_target::procfs_init_inferior): ... this and adjust.
11114 (procfs_target::create_inferior, procfs_notice_thread)
11115 (procfs_do_thread_registers): Adjust.
11116 * ppc-fbsd-tdep.c: Include "inferior.h".
11117 (ppcfbsd_get_thread_local_address): Pass down target.
11118 * proc-service.c (ps_xfer_memory): Switch current inferior and
11119 program space as well.
11120 (get_ps_regcache): Pass target down.
11121 * process-stratum-target.c
11122 (process_stratum_target::thread_address_space)
11123 (process_stratum_target::thread_architecture): Pass target down.
11124 * process-stratum-target.h
11125 (process_stratum_target::threads_executing): New field.
11126 (as_process_stratum_target): New.
11127 * ravenscar-thread.c
11128 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11129 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11130 down.
11131 * record-btrace.c (record_btrace_target::info_record): Adjust.
11132 (record_btrace_target::record_method)
11133 (record_btrace_target::record_is_replaying)
11134 (record_btrace_target::fetch_registers)
11135 (get_thread_current_frame_id, record_btrace_target::resume)
11136 (record_btrace_target::wait, record_btrace_target::stop): Pass
11137 target down.
11138 * record-full.c (record_full_wait_1): Switch to event thread.
11139 Pass target down.
11140 * regcache.c (regcache::regcache)
11141 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11142 process_stratum_target parameter and handle it.
11143 (current_thread_target): New global.
11144 (get_thread_regcache): Add process_stratum_target parameter and
11145 handle it. Switch inferior before calling target method.
11146 (get_thread_regcache): Pass target down.
11147 (get_thread_regcache_for_ptid): Pass target down.
11148 (registers_changed_ptid): Add process_stratum_target parameter and
11149 handle it.
11150 (registers_changed_thread, registers_changed): Pass target down.
11151 (test_get_thread_arch_aspace_regcache): New.
11152 (current_regcache_test): Define a couple local test_target_ops
11153 instances and use them for testing.
11154 (readwrite_regcache): Pass process_stratum_target parameter.
11155 (cooked_read_test, cooked_write_test): Pass mock_target down.
11156 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11157 (get_thread_arch_aspace_regcache): Add process_stratum_target
11158 parameter.
11159 (regcache::target): New method.
11160 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11161 (regcache::registers_changed_ptid): Add process_stratum_target
11162 parameter.
11163 (regcache::m_target): New field.
11164 (registers_changed_ptid): Add process_stratum_target parameter.
11165 * remote.c (remote_state::supports_vCont_probed): New field.
11166 (remote_target::async_wait_fd): New method.
11167 (remote_unpush_and_throw): Add remote_target parameter.
11168 (get_current_remote_target): Adjust.
11169 (remote_target::remote_add_inferior): Push target.
11170 (remote_target::remote_add_thread)
11171 (remote_target::remote_notice_new_inferior)
11172 (get_remote_thread_info): Pass target down.
11173 (remote_target::update_thread_list): Skip threads of inferiors
11174 bound to other targets. (remote_target::close): Don't discard
11175 inferiors. (remote_target::add_current_inferior_and_thread)
11176 (remote_target::process_initial_stop_replies)
11177 (remote_target::start_remote)
11178 (remote_target::remote_serial_quit_handler): Pass down target.
11179 (remote_target::remote_unpush_target): New remote_target
11180 parameter. Unpush the target from all inferiors.
11181 (remote_target::remote_unpush_and_throw): New remote_target
11182 parameter. Pass it down.
11183 (remote_target::open_1): Check whether the current inferior has
11184 execution instead of checking whether any inferior is live. Pass
11185 target down.
11186 (remote_target::remote_detach_1): Pass down target. Use
11187 remote_unpush_target.
11188 (extended_remote_target::attach): Pass down target.
11189 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11190 (remote_target::append_resumption): Pass down target.
11191 (remote_target::append_pending_thread_resumptions)
11192 (remote_target::remote_resume_with_hc, remote_target::resume)
11193 (remote_target::commit_resume): Pass down target.
11194 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11195 (remote_target::interrupt_query)
11196 (remote_target::remove_new_fork_children)
11197 (remote_target::check_pending_events_prevent_wildcard_vcont)
11198 (remote_target::remote_parse_stop_reply)
11199 (remote_target::process_stop_reply): Pass down target.
11200 (first_remote_resumed_thread): New remote_target parameter. Pass
11201 it down.
11202 (remote_target::wait_as): Pass down target.
11203 (unpush_and_perror): New remote_target parameter. Pass it down.
11204 (remote_target::readchar, remote_target::remote_serial_write)
11205 (remote_target::getpkt_or_notif_sane_1)
11206 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11207 down target.
11208 (remote_target::mourn_inferior): Pass down target. Use
11209 remote_unpush_target.
11210 (remote_target::core_of_thread)
11211 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11212 (remote_target::pid_to_exec_file)
11213 (remote_target::thread_handle_to_thread_info): Pass down target.
11214 (remote_target::async_wait_fd): New.
11215 * riscv-fbsd-tdep.c: Include "inferior.h".
11216 (riscv_fbsd_get_thread_local_address): Pass down target.
11217 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11218 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11219 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11220 Adjust.
11221 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11222 * solib-svr4.c (enable_break): Pass down target.
11223 * spu-multiarch.c (parse_spufs_run): Pass down target.
11224 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11225 * target-delegates.c: Regenerate.
11226 * target.c (g_target_stack): Delete.
11227 (current_top_target): Return the current inferior's top target.
11228 (target_has_execution_1): Refer to the passed-in inferior's top
11229 target.
11230 (target_supports_terminal_ours): Check whether the initial
11231 inferior was already created.
11232 (decref_target): New.
11233 (target_stack::push): Incref/decref the target.
11234 (push_target, push_target, unpush_target): Adjust.
11235 (target_stack::unpush): Defref target.
11236 (target_is_pushed): Return bool. Adjust to refer to the current
11237 inferior's target stack.
11238 (dispose_inferior): Delete, and inline parts ...
11239 (target_preopen): ... here. Only dispose of the current inferior.
11240 (target_detach): Hold strong target reference while detaching.
11241 Pass target down.
11242 (target_thread_name): Add assertion.
11243 (target_resume): Pass down target.
11244 (target_ops::beneath, find_target_at): Adjust to refer to the
11245 current inferior's target stack.
11246 (get_dummy_target): New.
11247 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11248 has a thread running.
11249 (initialize_targets): Rename to ...
11250 (_initialize_target): ... this.
11251 * target.h: Include "gdbsupport/refcounted-object.h".
11252 (struct target_ops): Inherit refcounted_object.
11253 (target_ops::shortname, target_ops::longname): Make const.
11254 (target_ops::async_wait_fd): New method.
11255 (decref_target): Declare.
11256 (struct target_ops_ref_policy): New.
11257 (target_ops_ref): New typedef.
11258 (get_dummy_target): Declare function.
11259 (target_is_pushed): Return bool.
11260 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11261 (all_matching_threads_iterator::all_matching_threads_iterator):
11262 Handle filter target.
11263 * thread-iter.h (struct all_matching_threads_iterator, struct
11264 all_matching_threads_range, class all_non_exited_threads_range):
11265 Filter by target too. Remove explicit.
11266 * thread.c (threads_executing): Delete.
11267 (inferior_thread): Pass down current inferior.
11268 (clear_thread_inferior_resources): Pass down thread pointer
11269 instead of ptid_t.
11270 (add_thread_silent, add_thread_with_info, add_thread): Add
11271 process_stratum_target parameter. Use it for thread and inferior
11272 searches.
11273 (is_current_thread): New.
11274 (thread_info::deletable): Use it.
11275 (find_thread_ptid, thread_count, in_thread_list)
11276 (thread_change_ptid, set_resumed, set_running): New
11277 process_stratum_target parameter. Pass it down.
11278 (set_executing): New process_stratum_target parameter. Pass it
11279 down. Adjust reference to 'threads_executing'.
11280 (threads_are_executing): New process_stratum_target parameter.
11281 Adjust reference to 'threads_executing'.
11282 (set_stop_requested, finish_thread_state): New
11283 process_stratum_target parameter. Pass it down.
11284 (switch_to_thread): Also match inferior.
11285 (switch_to_thread): New process_stratum_target parameter. Pass it
11286 down.
11287 (update_threads_executing): Reimplement.
11288 * top.c (quit_force): Pop targets from all inferior.
11289 (gdb_init): Don't call initialize_targets.
11290 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11291 Declare.
11292 (windows_add_thread, windows_delete_thread): Adjust.
11293 (get_windows_debug_event): Rename to ...
11294 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11295 * tracefile-tfile.c (tfile_target_open): Pass down target.
11296 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11297 Forward declare.
11298 (switch_to_thread): Add process_stratum_target parameter.
11299 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11300 parameter. Use it.
11301 (mi_on_resume): Pass target down.
11302 * nat/fork-inferior.c (startup_inferior): Add
11303 process_stratum_target parameter. Pass it down.
11304 * nat/fork-inferior.h (startup_inferior): Add
11305 process_stratum_target parameter.
11306 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11307
75c6c844
PA
113082020-01-10 Pedro Alves <palves@redhat.com>
11309
11310 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11311 directly. Instead find the first thread in the thread list and
11312 use switch_to_thread.
11313
78f2c40a
PA
113142020-01-10 Pedro Alves <palves@redhat.com>
11315
11316 * remote.c (remote_target::remote_add_inferior): Don't bind a
11317 process to the current inferior if the current inferior is already
11318 bound to a process.
11319
e7af6c70
TBA
113202020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11321 Pedro Alves <palves@redhat.com>
11322
11323 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11324 If no process is specified, return null_ptid instead of
11325 inferior_ptid.
11326 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11327 TARGET_WAITKIND_SIGNALLED with no pid.
11328
31ba933e
PA
113292020-01-10 Pedro Alves <palves@redhat.com>
11330
11331 * remote.c (first_remote_resumed_thread): New.
11332 (remote_target::wait_as): Use it as default event_ptid instead of
11333 inferior_ptid.
11334
735fc2ca
PA
113352020-01-10 Pedro Alves <palves@redhat.com>
11336
11337 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11338
c17e02e1
PA
113392020-01-10 Pedro Alves <palves@redhat.com>
11340
11341 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11342 not -1.
11343
ab1ddbcf
PA
113442020-01-10 Pedro Alves <palves@redhat.com>
11345
11346 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11347 ptid to get_last_target_status.
11348 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11349 ptid to get_last_target_status.
11350 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11351 get_last_target_status.
11352 (info_program_command): Don't pass a target_waitstatus to
11353 get_last_target_status.
11354 * infrun.c (init_wait_for_inferior): Use
11355 nullify_last_target_wait_ptid.
11356 (get_last_target_status): Handle nullptr arguments.
11357 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11358 (print_stop_event): Don't pass a ptid to get_last_target_status.
11359 (normal_stop): Don't pass a ptid to get_last_target_status.
11360 * infrun.h (get_last_target_status, set_last_target_status): Move
11361 comments here and update.
11362 (nullify_last_target_wait_ptid): Declare.
11363 * linux-fork.c (fork_load_infrun_state): Remove local extern
11364 declaration of nullify_last_target_wait_ptid.
11365 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11366 to get_last_target_status.
11367
f3f8ece4
PA
113682020-01-10 Pedro Alves <palves@redhat.com>
11369
11370 * gdbthread.h (scoped_restore_current_thread)
11371 <dont_restore, restore, m_dont_restore>: Declare.
11372 * thread.c (thread_alive): Add assertion. Return bool.
11373 (switch_to_thread_if_alive): New.
11374 (prune_threads): Switch inferior/thread.
11375 (print_thread_info_1): Switch thread before calling target methods.
11376 (scoped_restore_current_thread::restore): New, factored out from
11377 ...
11378 (scoped_restore_current_thread::~scoped_restore_current_thread):
11379 ... this.
11380 (scoped_restore_current_thread::scoped_restore_current_thread):
11381 Add assertion.
11382 (thread_apply_all_command, thread_select): Use
11383 switch_to_thread_if_alive.
11384 * infrun.c (proceed, restart_threads, handle_signal_stop)
11385 (switch_back_to_stepped_thread): Switch current thread before
11386 calling target methods.
11387
db2d40f7
PA
113882020-01-10 Pedro Alves <palves@redhat.com>
11389
11390 * inferior.c (switch_to_inferior_no_thread): New function,
11391 factored out from ...
11392 (inferior_command): ... here.
11393 * inferior.h (switch_to_inferior_no_thread): Declare.
11394 * mi/mi-main.c (run_one_inferior): Use
11395 switch_to_inferior_no_thread.
11396
bd420a2d
PA
113972020-01-10 Pedro Alves <palves@redhat.com>
11398
11399 * infcmd.c (kill_command): Remove dead code.
11400
ddf5db90
PA
114012020-01-10 Pedro Alves <palves@redhat.com>
11402
11403 * remote.c (remote_target::mourn_inferior): No longer check
11404 whether the target is running.
11405
5018ce90
PA
114062020-01-10 Pedro Alves <palves@redhat.com>
11407
11408 * corelow.c (core_target::has_execution): Change parameter type to
11409 inferior pointer.
11410 * inferior.c (number_of_live_inferiors): Use
11411 inferior::has_execution instead of target_has_execution_1.
11412 * inferior.h (inferior::has_execution): New.
11413 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11414 inferior::has_execution instead of target_has_execution_1.
11415 * process-stratum-target.c
11416 (process_stratum_target::has_execution): Change parameter type to
11417 inferior pointer. Check the inferior's PID instead of
11418 inferior_ptid.
11419 * process-stratum-target.h
11420 (process_stratum_target::has_execution): Change parameter type to
11421 inferior pointer.
11422 * record-full.c (record_full_core_target::has_execution): Change
11423 parameter type to inferior pointer.
11424 * target.c (target_has_execution_1): Change parameter type to
11425 inferior pointer.
11426 (target_has_execution_current): Adjust.
11427 * target.h (target_ops::has_execution): Change parameter type to
11428 inferior pointer.
11429 (target_has_execution_1): Change parameter type to inferior
11430 pointer. Change return type to bool.
11431 * tracefile.h (tracefile_target::has_execution): Change parameter
11432 type to inferior pointer.
11433
74375d18
PA
114342020-01-10 Pedro Alves <palves@redhat.com>
11435
11436 * exceptions.c (print_flush): Remove current_top_target() check.
11437
acdf84a6
PA
114382020-01-10 Pedro Alves <palves@redhat.com>
11439
11440 * remote.c (show_remote_exec_file): Show the current inferior's
11441 exec-file instead of the command variable's value.
11442
ec506636
PA
114432020-01-10 Pedro Alves <palves@redhat.com>
11444
11445 * record-full.c (record_full_resume_ptid): New global.
11446 (record_full_target::resume): Set it.
11447 (record_full_wait_1): Use record_full_resume_ptid instead of
11448 inferior_ptid.
11449
873657b9
PA
114502020-01-10 Pedro Alves <palves@redhat.com>
11451
11452 * gdbthread.h (scoped_restore_current_thread)
11453 <dont_restore, restore, m_dont_restore>: Declare.
11454 * thread.c (thread_alive): Add assertion. Return bool.
11455 (switch_to_thread_if_alive): New.
11456 (prune_threads): Switch inferior/thread.
11457 (print_thread_info_1): Switch thread before calling target methods.
11458 (scoped_restore_current_thread::restore): New, factored out from
11459 ...
11460 (scoped_restore_current_thread::~scoped_restore_current_thread):
11461 ... this.
11462 (scoped_restore_current_thread::scoped_restore_current_thread):
11463 Add assertion.
11464 (thread_apply_all_command, thread_select): Use
11465 switch_to_thread_if_alive.
11466
7f0ae84c
GB
114672020-01-10 George Barrett <bob@bob131.so>
11468
11469 * stap-probe.c (stap_modify_semaphore): Don't check for null
11470 semaphores.
11471 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11472 for null semaphores.
11473
f5a7c406
AB
114742020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11475
11476 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11477 all source windows, and maintain horizontal scroll status while
11478 doing so.
11479
9ae6bf64
TT
114802020-01-09 Tom Tromey <tom@tromey.com>
11481
11482 PR tui/18932:
11483 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11484 update_source_window, not print_source_lines.
11485
b2efe70c
AB
114862020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11487
11488 * tui/tui.c (tui_enable): Register tui hooks after calling
11489 tui_display_main.
11490
5f23a082
CB
114912020-01-09 Christian Biesinger <cbiesinger@google.com>
11492
11493 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11494
3061113b
SM
114952020-01-08 Simon Marchi <simon.marchi@efficios.com>
11496
11497 * thread.c (print_thread_info_1): Fix indentation.
11498
57d75002
CB
114992020-01-09 Christian Biesinger <cbiesinger@google.com>
11500
11501 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11502 unique_xmalloc_ptr outside the if to always free the demangled name.
11503
6a053cb1
TT
115042020-01-08 Tom Tromey <tromey@adacore.com>
11505
11506 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11507 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11508 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11509 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11510 Remove.
11511 (section_offsets): New typedef.
11512 * symtab.c (fixup_section, get_msymbol_address): Update.
11513 * symmisc.c (dump_msymbols): Update.
11514 * symfile.h (relative_addr_info_to_section_offsets)
11515 (symfile_map_offsets_to_segments): Update.
11516 * symfile.c (build_section_addr_info_from_objfile)
11517 (init_objfile_sect_indices): Update.
11518 (struct place_section_arg): Change type of "offsets".
11519 (place_section): Update.
11520 (relative_addr_info_to_section_offsets): Change type of
11521 "section_offsets". Remove "num_sections" parameter.
11522 (default_symfile_offsets, syms_from_objfile_1)
11523 (set_objfile_default_section_offset): Update.
11524 (reread_symbols): No need to preserve section offsets by hand.
11525 (symfile_map_offsets_to_segments): Change type of "offsets".
11526 * stap-probe.c (relocate_address): Update.
11527 * stabsread.h (process_one_symbol): Update.
11528 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11529 (solib_target_relocate_section_addresses): Update.
11530 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11531 Update.
11532 * solib-frv.c (frv_relocate_main_executable): Update.
11533 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11534 * solib-aix.c (solib_aix_get_section_offsets): Change return
11535 type.
11536 (solib_aix_solib_create_inferior_hook): Update.
11537 * remote.c (remote_target::get_offsets): Update.
11538 * psymtab.c (find_pc_sect_psymtab): Update.
11539 * psympriv.h (struct partial_symbol) <address, text_low,
11540 text_high>: Update.
11541 * objfiles.h (obj_section_offset): Update.
11542 (struct objfile) <section_offsets>: Change type.
11543 <num_sections>: Remove.
11544 (objfile_relocate): Update.
11545 * objfiles.c (entry_point_address_query): Update
11546 (relocate_one_symbol): Change type of "section_offsets".
11547 (objfile_relocate1, objfile_relocate1): Change type of
11548 "new_offsets".
11549 (objfile_rebase1): Update.
11550 * mipsread.c (mipscoff_symfile_read): Update.
11551 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11552 parameter.
11553 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11554 (parse_external, psymtab_to_symtab_1): Update.
11555 * machoread.c (macho_symfile_offsets): Update.
11556 * ia64-tdep.c (ia64_find_unwind_table): Update.
11557 * hppa-tdep.c (read_unwind_info): Update.
11558 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11559 * dwarf2read.c (create_addrmap_from_index)
11560 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11561 (process_psymtab_comp_unit_reader, add_partial_symbol)
11562 (add_partial_subprogram, process_full_comp_unit)
11563 (read_file_scope, read_func_scope, read_lexical_block_scope)
11564 (read_call_site_scope, dwarf2_rnglists_process)
11565 (dwarf2_ranges_process, dwarf2_ranges_read)
11566 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11567 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11568 Update.
11569 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11570 Update.
11571 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11572 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11573 (process_one_symbol): Change type of "section_offsets".
11574 * ctfread.c (get_objfile_text_range): Update.
11575 * coffread.c (coff_symtab_read, enter_linenos)
11576 (process_coff_symbol): Update.
11577 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11578 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11579
456e800a
TT
115802020-01-08 Tom Tromey <tromey@adacore.com>
11581
11582 * dwarf2read.c (parse_macro_definition): Use std::string.
11583 (parse_macro_definition): Likewise.
11584
6dfa2fc2
TT
115852020-01-08 Tom Tromey <tromey@adacore.com>
11586
11587 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11588 (ATTR_ALLOC_CHUNK): Remove.
11589
421d1616
TT
115902020-01-08 Tom Tromey <tromey@adacore.com>
11591
11592 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11593
43816ebc
TT
115942020-01-08 Tom Tromey <tromey@adacore.com>
11595
11596 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11597 (dwarf2_compute_name, open_dwo_file): Likewise.
11598 (process_enumeration_scope): Use std::vector.
11599 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11600 (partial_die_info::fixup, dwarf2_start_subfile)
11601 (guess_full_die_structure_name, dwarf2_name): Likewise.
11602 (determine_prefix): Update.
11603 (guess_full_die_structure_name): Make return type const.
11604 (partial_die_full_name): Return unique_xmalloc_ptr.
11605 (DW_FIELD_ALLOC_CHUNK): Remove.
11606
4212d509
TT
116072020-01-07 Tom Tromey <tromey@adacore.com>
11608
11609 PR build/24937:
11610 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11611
06a6207a
JT
116122020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11613
11614 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11615
153d79c4
AB
116162020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11617
11618 * stack.c (print_frame_info): Move disassemble_next_line code
11619 inside source_print block.
11620
66182876
EZ
116212020-01-06 Eli Zaretskii <eliz@gnu.org>
11622
11623 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11624 gdb/signals.h, as we are now using native signal symbols.
11625
cbfa8581
SV
116262020-01-06 Shahab Vahedi <shahab@synopsys.com>
11627
11628 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11629 overflow by an early check of content vs threshold.
aac66a4c 11630 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11631 Likewise.
11632
3f602821
EZ
116332020-01-06 Eli Zaretskii <eliz@gnu.org>
11634
11635 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11636
a08c904d
JT
116372020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11638
11639 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11640 export table if no section contains it's RVA.
11641
89a65580
EZ
116422020-01-06 Eli Zaretskii <eliz@gnu.org>
11643
11644 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11645
8b7fcda2
HD
116462020-01-06 Hannes Domani <ssbssa@yahoo.de>
11647
11648 * source.c (print_source_lines_base): Set last_line_listed.
11649
a61b4f69
SV
116502020-01-06 Shahab Vahedi <shahab@synopsys.com>
11651
11652 * tui/tui-disasm.c: Remove trailing spaces.
11653
559e7e50
EZ
116542020-01-06 Eli Zaretskii <eliz@gnu.org>
11655 Pedro Alves <palves@redhat.com>
11656
11657 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11658 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11659 (windows_gdb_signal_to_target): New function, uses the above
11660 enumeration to convert GDB internal signal codes to equivalent
11661 Windows codes.
11662 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11663 * windows-nat.c: Include "gdb_wait.h".
11664 (get_windows_debug_event): Extract the fatal exception from the
11665 exit status and convert to the equivalent Posix signal number.
11666 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11667 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11668 * gdbsupport/gdb_wait.c: New file, implements
11669 windows_status_to_termsig.
11670 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11671 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11672
f2302a34
AB
116732020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11674
11675 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11676 show_layout.
11677
6a5206eb
LM
116782020-01-05 Luis Machado <luis.machado@linaro.org>
11679
11680 * aarch64-linux-nat.c
11681 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11682 and bfd_mach_aarch64.
11683
6ec1d75e
PW
116842020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11685
11686 * ui-file.c (stdio_file::can_emit_style_escape)
11687 (tee_file::can_emit_style_escape): Ensure style is used also on
11688 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11689 to gdb_stdout.
11690 * main.c (set_gdb_data_directory): Use file style to output the
11691 warning that the given pathname is not a directory.
11692 * top.c (show_history_filename, gdb_safe_append_history)
11693 (show_gdb_datadir): Use file style.
11694
44f81a76
HD
116952020-01-03 Hannes Domani <ssbssa@yahoo.de>
11696
11697 * solib-target.c (struct lm_info_target):
11698 Change offsets to be a unique_xmalloc_ptr.
11699 (solib_target_relocate_section_addresses): Update.
11700
25057eb0
HD
117012020-01-03 Hannes Domani <ssbssa@yahoo.de>
11702
11703 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11704
6e2118f5
BE
117052020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11706
11707 * MAINTAINERS (Write After Approval): Add myself.
11708
8133c7dc
LM
117092020-01-02 Luis Machado <luis.machado@linaro.org>
11710
11711 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11712 Cell BE architecture.
11713 * target.h (struct target_ops) <thread_architecture>: Likewise.
11714
48189bec
HD
117152020-01-01 Hannes Domani <ssbssa@yahoo.de>
11716
11717 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11718
ead1063b
HD
117192020-01-01 Hannes Domani <ssbssa@yahoo.de>
11720
11721 * MAINTAINERS (Write After Approval): Add myself.
11722
e5d78223
JB
117232020-01-01 Joel Brobecker <brobecker@adacore.com>
11724
11725 * gdbarch.sh: Update copyright year range of generated files.
11726
b811d2c2
JB
117272020-01-01 Joel Brobecker <brobecker@adacore.com>
11728
11729 Update copyright year range in all GDB files.
11730
5f4def5c
JB
117312020-01-01 Joel Brobecker <brobecker@adacore.com>
11732
11733 * copyright.py: Convert to Python 3.
11734
51fd4002
JB
117352020-01-01 Joel Brobecker <brobecker@adacore.com>
11736
11737 * copyright.py: Adapt after move of gnulib directory from gdb
11738 directory to toplevel directory.
11739
5fb651f2
JB
117402020-01-01 Joel Brobecker <brobecker@adacore.com>
11741
11742 * copyright.py (main): Exit if run from the wrong directory.
11743
5dd8bf88
JB
117442020-01-01 Joel Brobecker <brobecker@adacore.com>
11745
11746 * top.c (print_gdb_version): Change copyright year to 2020.
11747
9f71dacb 117482020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11749
9f71dacb 11750 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11751
9f71dacb 11752For older changes see ChangeLog-2019.
c906108c
SS
11753\f
11754Local Variables:
11755mode: change-log
11756left-margin: 8
11757fill-column: 74
11758version-control: never
57da7796 11759coding: utf-8
c906108c 11760End:
This page took 4.071177 seconds and 4 git commands to generate.