]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix script name in usage and generated year range.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0cf82b81
JB
12020-08-03 John Baldwin <jhb@FreeBSD.org>
2
3 * syscalls/update-freebsd.sh: Fix usage and year range.
4
8f34b746
TV
52020-08-03 Tom de Vries <tdevries@suse.de>
6
7 PR symtab/26333
8 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
9 DW_LNE_lo_user/DW_LNE_hi_user range.
10
5e500d33
SM
112020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
12
13 PR ada/26318
14 * ada-lang.c (ada_modulus): Return 0 if property is not of const
15 kind.
16
78319c15
TBA
172020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18
19 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
20
4c55e970
TBA
212020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
22
23 * breakpoint.c (set_breakpoint_condition): Update the condition
24 expressions after checking that the input condition string parses
25 successfully and does not contain junk at the end.
26
1e620590
TBA
272020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
28
29 * breakpoint.c (set_breakpoint_condition): Update the
30 condition string after parsing the new condition successfully.
31
c8693053
RO
322020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33
34 * proc-api.c (_STRUCTURED_PROC): Don't define.
35 * proc-events.c: Likewise.
36 * proc-flags.c: Likewise.
37 * proc-why.c: Likewise.
38 * procfs.c: Likewise.
39
40 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
41 * configure, config.in: Regenerate.
42
5a99adb8
TV
432020-07-30 Tom de Vries <tdevries@suse.de>
44
45 PR build/26320
46 * ui-style.h (struct ui_file_style::color): Wrap m_value and
47 m_red/m_green/m_blue in a union.
48
8ba83e91
TV
492020-07-29 Tom de Vries <tdevries@suse.de>
50
51 PR tdep/26280
52 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
53
f75a0693
AB
542020-07-28 Tom Tromey <tromey@adacore.com>
55
56 PR symtab/26270:
57 * symtab.h (find_pc_partial_function_sym): Declare.
58 * cli/cli-cmds.c (disassemble_command): Use
59 find_pc_partial_function_sym. Check asm_demangle.
60 * blockframe.c (cache_pc_function_sym): New global.
61 (cache_pc_function_name): Remove.
62 (clear_pc_function_cache): Update.
63 (find_pc_partial_function_sym): New function, from
64 find_pc_partial_function.
65 (find_pc_partial_function): Rewrite using
66 find_pc_partial_function_sym.
67
16f3242c
TT
682020-07-28 Tom Tromey <tromey@adacore.com>
69
70 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
71 help. Add usage.
72
4888741a
TT
732020-07-28 Tom Tromey <tromey@adacore.com>
74
75 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
76 <DW_OP_GNU_variable_value>: Cast to address type.
77
4d46f402
KR
782020-07-28 Kamil Rytarowski <n54@gmx.com>
79
80 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
81 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
82 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
83 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
84 (nbsd_get_siginfo_type): New.
85 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
86 (_initialize_nbsd_tdep): New.
87
d70f978b
L
882020-07-28 H.J. Lu <hongjiu.lu@intel.com>
89
90 PR binutils/26301
91 * configure: Regenerated.
92
377170fa
L
932020-07-28 H.J. Lu <hongjiu.lu@intel.com>
94
95 PR binutils/26301
96 * configure: Regenerated.
97
43d5901d
AB
982020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 * python/py-frame.c: Remove 'user-regs.h' include.
101 (frapy_read_register): Rewrite to make use of
102 gdbpy_parse_register_id.
103 * python/py-registers.c (gdbpy_parse_register_id): New function,
104 moved here from python/py-unwind.c. Updated the return type, and
105 also accepts register descriptor objects.
106 * python/py-unwind.c: Remove 'user-regs.h' include.
107 (pyuw_parse_register_id): Moved to python/py-registers.c.
108 (unwind_infopy_add_saved_register): Update to use
109 gdbpy_parse_register_id.
110 (pending_framepy_read_register): Likewise.
111 * python/python-internal.h (gdbpy_parse_register_id): Declare.
112
14fa8fb3
AB
1132020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
114
115 * python/py-registers.c: Add 'user-regs.h' include.
116 (register_descriptor_iter_find): New function.
117 (register_descriptor_iterator_object_methods): New static global
118 methods array.
119 (register_descriptor_iterator_object_type): Add pointer to methods
120 array.
121
ddce1758
JB
1222020-07-27 John Baldwin <jhb@FreeBSD.org>
123
124 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
125 for all architectures on FreeBSD 11.3 and later.
126
a4089f52
TT
1272020-07-27 Tom Tromey <tromey@adacore.com>
128
129 * gcore.h (load_corefile): Don't declare.
130
95420d30
TV
1312020-07-27 Tom de Vries <tdevries@suse.de>
132
133 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
134 * config.in: Regenerate.
135 * configure: Regenerate.
136
05a6b8c2
EZ
1372020-07-26 Eli Zaretskii <eliz@gnu.org>
138
139 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
140 ws2tcpip.h. When checking whether socklen_t type is defined, use
141 ws2tcpip.h if it is available and sys/socket.h isn't.
142 * configure: Regenerate.
143 * config.in: Regenerate.
144
e79eb02f
AB
1452020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
146
147 PR fortran/23051
148 PR fortran/26139
149 * valops.c (value_ind): Pass address to
150 readjust_indirect_value_type.
151 * value.c (readjust_indirect_value_type): Make parameter
152 non-const, and add extra address parameter. Resolve original type
153 before using it.
154 * value.h (readjust_indirect_value_type): Update function
155 signature and comment.
156
876518dd
TV
1572020-07-25 Tom de Vries <tdevries@suse.de>
158
159 PR symtab/26243
160 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
161 entries.
162
f6720b1c
AM
1632020-07-24 Aaron Merey <amerey@redhat.com>
164
165 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
166 * configure: Rebuild.
167
513487e1
KB
1682020-07-23 Kevin Buettner <kevinb@redhat.com>
169
170 PR corefiles/26294
171 * corelow.c (_initialize_corelow): Add period to help text
172 for "maintenance print core-file-backed-mappings".
173
e7bc9db8
PA
1742020-07-23 Pedro Alves <pedro@palves.net>
175
176 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
177 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
178 meanwhile.
179 * frame.c (frame_cache_generation, get_frame_cache_generation):
180 New.
181 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
182 (get_prev_frame_if_no_cycle): On exception, don't touch
183 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
184 * frame.h (get_frame_cache_generation): Declare.
185
90fcc466
TV
1862020-07-23 Tom de Vries <tdevries@suse.de>
187
188 PR tui/26282
189 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
190 New default constructor.
191
78344df7
AB
1922020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
193
194 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
195 exclude non-statement entries.
196
b089853a
KB
1972020-07-22 Kevin Buettner <kevinb@redhat.com>
198
199 * NEWS (New commands): Mention new command
200 "maintenance print core-file-backed-mappings".
201
09c2f5d4
KB
2022020-07-22 Kevin Buettner <kevinb@redhat.com>
203
204 * corelow.c (gdbcmd.h): Include.
205 (core_target::info_proc_mappings): New method.
206 (get_current_core_target): New function.
207 (maintenance_print_core_file_backed_mappings): New function.
208 (_initialize_corelow): Add core-file-backed-mappings to
209 "maint print" commands.
210
9c5ec5c2
KB
2112020-07-22 Kevin Buettner <kevinb@redhat.com>
212
213 * linux-tdep.c (dump_note_entry_p): New function.
214 (linux_dump_mapping_p_ftype): New typedef.
215 (linux_find_memory_regions_full): Add new parameter,
216 should_dump_mapping_p.
217 (linux_find_memory_regions): Adjust call to
218 linux_find_memory_regions_full.
219 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
220 call to linux_find_memory_regions_full.
221
db082f59
KB
2222020-07-22 Kevin Buettner <kevinb@redhat.com>
223
224 * corelow.c (solist.h, unordered_map): Include.
225 (class core_target): Add field m_core_file_mappings and
226 method build_file_mappings.
227 (core_target::core_target): Call build_file_mappings.
228 (core_target::~core_target): Free memory associated with
229 m_core_file_mappings.
230 (core_target::build_file_mappings): New method.
231 (core_target::xfer_partial): Use m_core_file_mappings
232 for memory transfers.
233 * linux-tdep.c (linux_read_core_file_mappings): New
234 function.
235 (linux_core_info_proc_mappings): Rewrite to use
236 linux_read_core_file_mappings.
237 (linux_init_abi): Register linux_read_core_file_mappings.
238
7e183d27
KB
2392020-07-22 Kevin Buettner <kevinb@redhat.com>
240
241 * arch-utils.c (default_read_core_file_mappings): New function.
242 * arch-utils.c (default_read_core_file_mappings): Declare.
243 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
244 * gdbarch.h, gdbarch.c: Regenerate.
245
2735d421
KB
2462020-07-22 Kevin Buettner <kevinb@redhat.com>
247
248 PR corefiles/25631
249 * corelow.c (core_target:xfer_partial): Revise
250 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
251 case after first checking the stratum beneath the core
252 target.
253 (has_all_memory): Return true.
254 * target.c (raw_memory_xfer_partial): Revise comment
255 regarding use of has_all_memory.
256
e56cb451
KB
2572020-07-22 Kevin Buettner <kevinb@redhat.com>
258
259 * exec.h (section_table_xfer_memory): Revise declaration,
260 replacing section name parameter with an optional callback
261 predicate.
262 * exec.c (section_table_xfer_memory): Likewise.
263 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
264 of section_table_xfer_memory.
265
32fa152e
TT
2662020-07-22 Tom Tromey <tromey@adacore.com>
267
268 * mi/mi-cmd-stack.c (list_args_or_locals): Use
269 lookup_symbol_search_name.
270
a67a1c41
AB
2712020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * python/py-registers.c (gdbpy_register_object_data_init): Remove
274 redundant local variable.
275 (gdbpy_get_register_descriptor): Extract descriptor vector as a
276 reference, not pointer, update code accordingly.
277
a7b4ff4f
SM
2782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
279 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
280
281 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
282 * jit.c (jit_breakpoint_re_set_internal): Use the
283 `skip_jit_symbol_lookup` field.
284
2340e834
SM
2852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
286 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
287
288 * jit.c (jit_read_descriptor): Define the descriptor address once,
289 use twice.
290 (jit_breakpoint_deleted): Move the declaration of the loop variable
291 `iter` into the loop header.
292 (jit_breakpoint_re_set_internal): Move the declaration of the local
293 variable `objf_data` to the first point of definition.
294 (jit_event_handler): Move the declaration of local variables
295 `code_entry`, `entry_addr`, and `objf` to their first point of use.
296 Rename `objf` to `jited`.
297
c1072906
SM
2982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
299
300 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
301 Remove.
302 * jit.c (get_jiter_objfile_data): Update.
303
c8474dc3
TBA
3042020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
305 Simon Marchi <simon.marchi@polymtl.ca>
306
307 * jit.c (struct jit_program_space_data): Remove.
308 (jit_program_space_key): Remove.
309 (jiter_objfile_data::~jiter_objfile_data): Remove program space
310 stuff.
311 (get_jit_program_space_data): Remove.
312 (jit_breakpoint_deleted): Iterate on all of the program space's
313 objfiles.
314 (jit_inferior_init): Likewise.
315 (jit_breakpoint_re_set_internal): Likewise. Also change return
316 type to void.
317 (jit_breakpoint_re_set): Pass current_program_space to
318 jit_breakpoint_re_set_internal.
319
77208eb7
SM
3202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
321
322 * jit.h (struct jiter_objfile_data) <cached_code_address,
323 jit_breakpoint>: Move to here from ...
324 * jit.c (jit_program_space_data): ... here.
325 (jiter_objfile_data::~jiter_objfile_data): Update.
326 (jit_breakpoint_deleted): Update.
327 (jit_breakpoint_re_set_internal): Update.
328
8c1c720f
SM
3292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
330
331 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
332 checks.
333 (jit_read_descriptor): Remove NULL check.
334 (jit_event_handler): Add an assertion.
335
0e74a041
SM
3362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * jit.h (struct jit_objfile_data): Split into...
339 (struct jiter_objfile_data): ... this ...
340 (struct jited_objfile_data): ... and this.
341 * objfiles.h (struct objfile) <jit_data>: Remove.
342 <jiter_data, jited_data>: New fields.
343 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
344 (jiter_objfile_data::~jiter_objfile_data): ... this.
345 (get_jit_objfile_data): Rename to ...
346 (get_jiter_objfile_data): ... this.
347 (add_objfile_entry): Update.
348 (jit_read_descriptor): Use get_jiter_objfile_data.
349 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
350 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
351 (jit_inferior_exit_hook): Use objfile's jited_data field.
352
238b5c9f
SM
3532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
354
355 * jit.h: Forward-declare `struct minimal_symbol`.
356 (struct jit_objfile_data): Migrate to here from jit.c; also add a
357 constructor, destructor, and an objfile* field.
358 * jit.c (jit_objfile_data): Remove.
359 (struct jit_objfile_data): Migrate from here to jit.h.
360 (jit_objfile_data::~jit_objfile_data): New destructor
361 implementation with code moved from free_objfile_data.
362 (free_objfile_data): Delete.
363 (get_jit_objfile_data): Update to use the jit_data field of objfile.
364 (jit_find_objf_with_entry_addr): Ditto.
365 (jit_inferior_exit_hook): Ditto.
366 (_initialize_jit): Remove the call to
367 register_objfile_data_with_cleanup.
368 * objfiles.h (struct objfile) <jit_data>: New field.
369
fe053b9e
TBA
3702020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
371
372 * jit.h: Forward-declare `struct objfile`.
373 (jit_event_handler): Add a second parameter, the JITer objfile.
374 * jit.c (jit_read_descriptor): Change the signature to take the
375 JITer objfile as an argument instead of the jit_program_space_data.
376 (jit_inferior_init): Update the call to jit_read_descriptor.
377 (jit_event_handler): Use the new JITer objfile argument when calling
378 jit_read_descriptor.
379 * breakpoint.c (handle_jit_event): Update the call to
380 jit_event_handler to pass the JITer objfile.
381
4cec0c66
JB
3822020-07-21 John Baldwin <jhb@FreeBSD.org>
383
384 * gdbarch.c: Regenerate.
385 * gdbarch.h: Regenerate.
386 * gdbarch.sh (handle_segmentation_fault): Remove method.
387 * infrun.c (handle_segmentation_fault): Remove.
388 (print_signal_received_reason): Remove call to
389 handle_segmentation_fault.
390
0e42f66a
JB
3912020-07-21 John Baldwin <jhb@FreeBSD.org>
392
393 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
394 Rename to sparc64_linux_report_signal_info and add siggnal
395 argument.
396 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
397 instead of sparc64_linux_handle_segmentation_fault.
398
77bdfeb2
JB
3992020-07-21 John Baldwin <jhb@FreeBSD.org>
400
401 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
402 i386_linux_report_signal_info instead of
403 i386_linux_handle_segmentation_fault.
404 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
405 to i386_linux_report_signal_info and add siggnal argument.
406 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
407 of i386_linux_handle_segmentation_fault.
408 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
409 to i386_linux_report_signal_info and add siggnal argument.
410
ad97bfc5
JB
4112020-07-21 John Baldwin <jhb@FreeBSD.org>
412
413 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
414 hook if present.
415
272bb05c
JB
4162020-07-21 John Baldwin <jhb@FreeBSD.org>
417
418 * gdbarch.c: Regenerate.
419 * gdbarch.h: Regenerate.
420 * gdbarch.sh (report_signal_info): New method.
421 * infrun.c (print_signal_received_reason): Invoke gdbarch
422 report_signal_info hook if present.
423
baf8791e
AB
4242020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * python/py-registers.c : Add 'unordered_map' include.
427 (gdbpy_new_reggroup): Renamed to...
428 (gdbpy_get_reggroup): ...this. Update to only create register
429 group descriptors when needed.
430 (gdbpy_reggroup_iter_next): Update.
431
f7306dac
AB
4322020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
433
434 * python/py-registers.c (gdbpy_register_object_data): New static
435 global.
436 (gdbpy_register_object_data_init): New function.
437 (gdbpy_new_register_descriptor): Renamed to...
438 (gdbpy_get_register_descriptor): ...this, and update to reuse
439 existing register descriptors where possible.
440 (gdbpy_register_descriptor_iter_next): Update.
441 (gdbpy_initialize_registers): Register new gdbarch data.
442
05c309a8
SM
4432020-07-21 Simon Marchi <simon.marchi@efficios.com>
444
445 * linux-nat.c (stopped_pids): Make static.
446
d1fd641e
SM
4472020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
448
449 PR ada/26235
450 * gdbtypes.c (ada_discrete_type_low_bound,
451 ada_discrete_type_high_bound): Handle undefined bounds.
452
1de14d77
KR
4532020-07-21 Kamil Rytarowski <n54@gmx.com>
454
455 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
456 declaration.
457 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
458 function.
459
ed810cc7
JB
4602020-07-20 John Baldwin <jhb@FreeBSD.org>
461
462 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
463 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
464 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
465 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
466 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
467 method.
468
ae5369e7
LC
4692020-07-20 Ludovic Courtès <ludo@gnu.org>
470
471 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
472 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
473 which are deprecated in Guile 3.0.
474 * configure.ac (try_guile_versions): Add "guile-3.0".
475 * configure (try_guile_versions): Regenerate.
476 * NEWS: Update entry.
477
68cf161c
LC
4782020-07-20 Ludovic Courtès <ludo@gnu.org>
479 Doug Evans <dje@google.com>
480
481 PR gdb/21104
482 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
483 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
484 USING_GUILE_BEFORE_2_2.
485 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
486 Change type to 'scm_t_port_type *'.
487 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
488 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
489 parameter and honor it. Update callers.
490 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
491 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
492 functions.
493 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
494 USING_GUILE_BEFORE_2_2.
495 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
496 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
497 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
498 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
499 and 'SCM_PORT_TYPE'.
500 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
501 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
502 (gdbscm_memory_port_read, gdbscm_memory_port_write)
503 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
504 [!USING_GUILE_BEFORE_2_2]: New functions.
505 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
506 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
507 'gdbscm_memory_port_read'.
508 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
509 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
510 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
511 function.
512 (ioscm_init_memory_port): Remove.
513 (ioscm_init_memory_port_stream): New function
514 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
515 function.
516 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
517 Return scm_from_uint (0).
518 (gdbscm_set_memory_port_read_buffer_size_x)
519 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
520 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
521 Return scm_from_uint (0).
522 (gdbscm_set_memory_port_write_buffer_size_x)
523 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
524 * configure.ac (try_guile_versions): Add "guile-2.2".
525 * configure: Regenerate.
526 * NEWS: Add entry.
527
aee91db3
TT
5282020-07-18 Tom Tromey <tom@tromey.com>
529
530 * linux-nat.c (linux_multi_process): Remove.
531 (linux_nat_target::supports_multi_process): Return true.
532
0e267416
AB
5332020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
534
535 * arch/riscv.c (riscv_tdesc_cache): Change map type.
536 (riscv_lookup_target_description): Return pointer out of
537 unique_ptr.
538 * target-descriptions.c (allocate_target_description): Add
539 comment.
540 (target_desc_deleter::operator()): Likewise.
541 * target-descriptions.h (struct target_desc_deleter): Moved to
542 gdbsupport/tdesc.h.
543 (target_desc_up): Likewise.
544
f80c8ec4
TT
5452020-07-17 Tom Tromey <tromey@adacore.com>
546
547 * linux-nat.c (linux_nat_target::supports_non_stop)
548 (linux_nat_target::always_non_stop_p): Use "true".
549 (linux_nat_target::supports_disable_randomization): Use "true" and
550 "false".
551
d0ce17d8
CT
5522020-07-16 Caroline Tice <cmtice@google.com>
553
554 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
555 (RNGLIST_HEADER_SIZE64): New constant definition.
556 (struct dwop_section_names): Add rnglists_dwo.
557 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
558 (struct loclist_header): Rename to 'loclists_rnglists_header'.
559 (struct dwo_sections): Add rnglists field.
560 (read_attribut_reprocess): Add tag parameter.
561 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
562 (cu_debug_rnglists_section): New function (decl & definition).
563 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
564 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
565 die whose range is being checked; get rnglist section from
566 cu_debug_rnglists_section, to get from either objfile or dwo file as
567 appropriate. Add cases for DW_RLE_base_addressx,
568 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
569 the base address to DW_RLE_offset_pairs (not to all ranges), moving
570 test inside if-condition and updating complaint message.
571 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
572 dwarf2_rnglists_process.
573 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
574 dwarf2_ranges_process.
575 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
576 need_ranges_base and update comment appropriately. Also pass die tag
577 to dwarf2_ranges_read.
578 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
579 need_ranges_base and update comment appropriately. Also pass die tag
580 to dwarf2_ranges_process.
581 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
582 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
583 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
584 need_ranges_base and update comment appropriately. Also pass die tag
585 to read_attribute_reprocess and dwarf2_ranges_read.
586 (read_loclist_header): Rename function to read_loclists_rnglists_header,
587 and update function comment appropriately.
588 (read_loclist_index): Call read_loclists_rnglists_header instead of
589 read_loclist_header.
590 (read_rnglist_index): New function.
591 (read_attribute_reprocess): Add tag parameter. Add code for
592 DW_FORM_rnglistx, passing tag to read_rnglist_index.
593 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
594
3dcc261c
AB
5952020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
596
597 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
598 being resolved.
599
ccb9eba6
AB
6002020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
601
602 * arch-utils.c (show_architecture): Update formatting of messages.
603
cf88be68
SM
6042020-07-12 Simon Marchi <simon.marchi@efficios.com>
605
606 * gdbtypes.h (struct type) <bounds>: Handle array and string
607 types.
608 * ada-lang.c (assign_aggregate): Use type::bounds on
609 array/string type.
610 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
611 * c-varobj.c (c_number_of_children): Likewise.
612 (c_describe_child): Likewise.
613 * eval.c (evaluate_subexp_for_sizeof): Likewise.
614 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
615 (f_type_print_base): Likewise.
616 * f-valprint.c (f77_array_offset_tbl): Likewise.
617 (f77_get_upperbound): Likewise.
618 (f77_print_array_1): Likewise.
619 * guile/scm-type.c (gdbscm_type_range): Likewise.
620 * m2-typeprint.c (m2_array): Likewise.
621 (m2_is_long_set_of_type): Likewise.
622 * m2-valprint.c (get_long_set_bounds): Likewise.
623 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
624 * python/py-type.c (typy_range): Likewise.
625 * rust-lang.c (rust_internal_print_type): Likewise.
626 * type-stack.c (type_stack::follow_types): Likewise.
627 * valarith.c (value_subscripted_rvalue): Likewise.
628 * valops.c (value_cast): Likewise.
629
509971ae
SM
6302020-07-12 Simon Marchi <simon.marchi@efficios.com>
631
632 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
633 callers to use the equivalent accessor methods.
634
107406b7
SM
6352020-07-12 Simon Marchi <simon.marchi@efficios.com>
636
637 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
638 (struct type) <bit_stride>: New method.
639 (TYPE_BIT_STRIDE): Remove.
640 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
641
bb789949
SM
6422020-07-12 Simon Marchi <simon.marchi@efficios.com>
643
644 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
645 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
646 callers to use the equivalent accessor methods instead.
647
39498edb
SM
6482020-07-12 Simon Marchi <simon.marchi@efficios.com>
649
650 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
651 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
652 callers to use the equivalent accessor methods instead.
653
3b606f38
SM
6542020-07-12 Simon Marchi <simon.marchi@efficios.com>
655
656 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
657 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
658 to use dynamic_prop::kind.
659
064d9cb9
SM
6602020-07-12 Simon Marchi <simon.marchi@efficios.com>
661
662 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
663 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
664 to get the bound property's kind and check against
665 PROP_UNDEFINED.
666
5537ddd0
SM
6672020-07-12 Simon Marchi <simon.marchi@efficios.com>
668
669 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
670 all callers to use type::range_bounds followed by
671 dynamic_prop::{low,high}.
672
8c2e4e06
SM
6732020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
676 const_val, set_const_val, baton, set_locexpr, set_loclist,
677 set_addr_offset, variant_parts, set_variant_parts,
678 original_type, set_original_type>: New methods.
679 <kind>: Rename to...
680 <m_kind>: ... this. Update all users to use the new methods
681 instead.
682 <data>: Rename to...
683 <m_data>: ... this. Update all users to use the new methods
684 instead.
685
7c6f2712
SM
6862020-07-12 Simon Marchi <simon.marchi@efficios.com>
687
688 * gdbtypes.c (get_discrete_bounds): Return failure if
689 the range type's bounds are not both defined and constant
690 values.
691 (get_array_bounds): Update comment. Remove undefined bound check.
692
599088e3
SM
6932020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
694
695 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
696 the type::bounds method directly.
697
c4dfcb36
SM
6982020-07-12 Simon Marchi <simon.marchi@efficios.com>
699
700 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
701 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
702 are used to set the range type's bounds to use set_bounds.
703
0a278aa7
PW
7042020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
705
706 * exec.c (_initialize_exec): Update exec-file-mismatch help.
707
cce20f10
PA
7082020-07-10 Pedro Alves <pedro@palves.net>
709
710 * gdbthread.h (inferior_ref): Define.
711 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
712 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
713 * thread.c
714 (scoped_restore_current_thread::restore):
715 Adjust to gdb::ref_ptr.
716 (scoped_restore_current_thread::~scoped_restore_current_thread):
717 Remove manual decref handling.
718 (scoped_restore_current_thread::scoped_restore_current_thread):
719 Adjust to use
720 inferior_ref::new_reference/thread_info_ref::new_reference.
721 Incref the thread before calling get_frame_id instead of after.
722 Let TARGET_CLOSE_ERROR propagate.
723
6d7aa592
PA
7242020-07-10 Pedro Alves <pedro@palves.net>
725
726 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
727 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
728 NOT_AVAILABLE_ERROR.
729 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
730 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
731
b3e3a4c1
SM
7322020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
733 Pedro Alves <pedro@palves.net>
734
735 PR gdb/26199
736 * infrun.c (threads_are_resumed_pending_p): Delete.
737 (do_target_wait): Remove threads_are_executing and
738 threads_are_resumed_pending_p checks from the inferior_matches
739 lambda. Update comments.
740
d6cc5d98
PA
7412020-07-10 Pedro Alves <pedro@palves.net>
742
743 PR gdb/26199
744 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
745 executing threads.
746
7d3badc6
PA
7472020-07-10 Pedro Alves <pedro@palves.net>
748
749 PR gdb/26199
750 * infrun.c (handle_no_resumed): Handle multiple targets.
751
42bd97a6
PA
7522020-07-10 Pedro Alves <pedro@palves.net>
753
754 PR gdb/26199
755 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
756 target_is_async_p.
757
43667cc6
PA
7582020-07-10 Pedro Alves <pedro@palves.net>
759
760 PR gdb/26199
761 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
762 threads, not all threads.
763
96118d11
PA
7642020-07-10 Pedro Alves <pedro@palves.net>
765
766 PR gdb/26199
767 * remote.c (remote_target::open_1): Pass remote target pointer as
768 data to create_async_event_handler.
769 (remote_async_inferior_event_handler): Mark async event handler
770 before returning if the remote target still has either pending
771 events or unacknowledged notifications.
772
54904d81
JB
7732020-07-10 John Baldwin <jhb@FreeBSD.org>
774
775 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
776 declaration.
777 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
778 function.
779
f37e5866
JB
7802020-07-09 John Baldwin <jhb@FreeBSD.org>
781
782 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
783 inferior_ptid.
784
fc238d4a
JB
7852020-07-09 John Baldwin <jhb@FreeBSD.org>
786
787 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
788 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
789 AT_FREEBSD_PS_STRINGS.
790
6e2469ff
HD
7912020-07-08 Hannes Domani <ssbssa@yahoo.de>
792
793 * auto-load.c (auto_load_objfile_script_1): Convert drive part
794 of debugfile path on Windows.
795
d1076c41
JB
7962020-07-08 John Baldwin <jhb@FreeBSD.org>
797
798 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
799 argument to 'data'.
800
15f3b077
TT
8012020-07-08 Tom Tromey <tromey@adacore.com>
802
803 * ada-lang.c (ada_exception_message_1): Use read_memory.
804
9fc501fd
AB
8052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
806
807 PR python/22748
808 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
809 special handling for inline frames.
810 * findvar.c (value_of_register_lazy): Skip inline frames when
811 creating lazy register values.
812 * frame.c (frame_id_computed_p): Delete definition.
813 * frame.h (frame_id_computed_p): Delete declaration.
814
64cb3757
AB
8152020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
816
817 * NEWS: Mention additions to Python API.
818 * python/py-arch.c (archpy_register_groups): New function.
819 (arch_object_methods): Add 'register_groups' method.
820 * python/py-registers.c (reggroup_iterator_object): New struct.
821 (reggroup_object): New struct.
822 (gdbpy_new_reggroup): New function.
823 (gdbpy_reggroup_to_string): New function.
824 (gdbpy_reggroup_name): New function.
825 (gdbpy_reggroup_iter): New function.
826 (gdbpy_reggroup_iter_next): New function.
827 (gdbpy_new_reggroup_iterator): New function
828 (gdbpy_initialize_registers): Register new types.
829 (reggroup_iterator_object_type): Define new Python type.
830 (gdbpy_reggroup_getset): New static global.
831 (reggroup_object_type): Define new Python type.
832 * python/python-internal.h
833
0f767f94
AB
8342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
835
836 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
837 * python/py-arch.c (archpy_registers): New function.
838 (arch_object_methods): Add 'registers' method.
839 * python/py-registers.c: New file.
840 * python/python-internal.h
841 (gdbpy_new_register_descriptor_iterator): Declare.
842 (gdbpy_initialize_registers): Declare.
843 * python/python.c (do_start_initialization): Call
844 gdbpy_initialize_registers.
845 * NEWS: Mention additions to the Python API.
846
87dbc774
AB
8472020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * NEWS: Mention new Python API method.
850 * python/py-unwind.c (pending_framepy_architecture): New function.
851 (pending_frame_object_methods): Add architecture method.
852
3bc98c0c
AB
8532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
854
855 * gdbarch.c: Regenerate.
856 * gdbarch.h: Regenerate.
857 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
858 (gdbarch_data): Use internal_error for the case where
859 deprecated_set_gdbarch_data was originally needed.
860 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
861 and use passed in obstack.
862 (libunwind_frame_set_descr): Should no longer get back NULL from
863 gdbarch_data.
864 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
865 type.
866 * user-regs.c (user_regs_init): Update parameters, and use passed
867 in obstack.
868 (user_reg_add): Should no longer get back NULL from gdbarch_data.
869 (_initialize_user_regs): Register as a pre-init gdbarch data type.
870
d8cc8af6
TV
8712020-07-06 Tom de Vries <tdevries@suse.de>
872
873 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
874 End-Of-Sequence in lte_is_less_than.
875 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
876 "gdb: Don't reorder line table entries too much when sorting".
877
947f7597
TV
8782020-07-06 Tom de Vries <tdevries@suse.de>
879
880 PR tui/26205
881 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
882
1e7c1b22
TV
8832020-07-05 Tom de Vries <tdevries@suse.de>
884
885 PR build/26187
886 * inferior.h (struct infcall_suspend_state_deleter): If available, use
887 std::uncaught_exceptions instead of deprecated
888 std::uncaught_exception.
889
a36158ec
SM
8902020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * macroexp.h (macro_stringify): Return
893 gdb::unique_xmalloc_ptr<char>.
894 * macroexp.c (macro_stringify): Likewise.
895 * macrotab.c (fixup_definition): Update.
896
14d960c8
SM
8972020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
898
899 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
900 (lex_one_token): Update.
901 * macroexp.c (struct macro_buffer) <release>: Return
902 gdb::unique_xmalloc_ptr<char>.
903 (macro_stringify): Update.
904 (macro_expand): Update.
905 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
906 * macroexp.h (macro_expand_next): Likewise.
907
211d5b1c
SM
9082020-07-02 Simon Marchi <simon.marchi@efficios.com>
909
910 * macroexp.h (macro_lookup_ftype): Remove.
911 (macro_expand, macro_expand_once, macro_expand_next): Remove
912 lookup function parameters, add scope parameter.
913 * macroexp.c (scan, substitute_args, expand, maybe_expand,
914 macro_expand, macro_expand_once, macro_expand_next): Likewise.
915 * macroscope.h (standard_macro_lookup): Change parameter type
916 to macro_scope.
917 * macroscope.c (standard_macro_lookup): Likewise.
918 * c-exp.y (lex_one_token): Update.
919 * macrocmd.c (macro_expand_command): Likewise.
920 (macro_expand_once_command): Likewise.
921
b1a35af2
SM
9222020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
923
924 * inf-loop.c (inferior_event_handler): Remove client_data param.
925 * inf-loop.h (inferior_event_handler): Likewise.
926 * infcmd.c (step_1): Adjust.
927 * infrun.c (proceed): Adjust.
928 (fetch_inferior_event): Remove client_data param.
929 (infrun_async_inferior_event_handler): Adjust.
930 * infrun.h (fetch_inferior_event): Remove `void *` param.
931 * linux-nat.c (handle_target_event): Adjust.
932 * record-btrace.c (record_btrace_handle_async_inferior_event):
933 Adjust.
934 * record-full.c (record_full_async_inferior_event_handler):
935 Adjust.
936 * remote.c (remote_async_inferior_event_handler): Adjust.
937
1cdf9e33
TT
9382020-07-01 Tom Tromey <tom@tromey.com>
939
940 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
941 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
942
32c1e210
TT
9432020-07-01 Tom Tromey <tom@tromey.com>
944
945 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
946 tui_gen_win_info.
947 (tui_win_info::make_window): Merge with
948 tui_gen_win_info::make_window.
949 (tui_win_info::make_visible): Move from tui_gen_win_info.
950 * tui/tui-win.c (tui_win_info::max_width): Move from
951 tui_gen_win_info.
952 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
953 type.
954 <window_factory>: Likewise.
955 * tui/tui-layout.c (tui_win_info::resize): Move from
956 tui_gen_win_info.
957 (make_standard_window): Change return type.
958 (get_locator_window, tui_get_window_by_name): Likewise.
959 (tui_layout_window::apply): Remove a cast.
960 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
961 (struct tui_win_info): Merge with tui_gen_win_info.
962 (struct tui_gen_win_info): Remove.
963
a30cb6da
TT
9642020-07-01 Tom Tromey <tom@tromey.com>
965
966 * tui/tui-stack.h (struct tui_locator_window): Derive from
967 tui_win_info.
968 <do_scroll_horizontal, do_scroll_vertical>: New methods.
969 <can_box>: New method.
970
1eb2161f
TT
9712020-07-01 Tom Tromey <tom@tromey.com>
972
973 * tui/tui-stack.h (struct tui_locator_window): Remove body.
974
7134f2eb
TT
9752020-07-01 Tom Tromey <tom@tromey.com>
976
977 * tui/tui-regs.c (tui_data_window::display_registers_from)
978 (tui_data_window::display_registers_from)
979 (tui_data_window::first_data_item_displayed)
980 (tui_data_window::delete_data_content_windows): Update.
981 (tui_data_window::refresh_window, tui_data_window::no_refresh):
982 Remove.
983 (tui_data_window::check_register_values): Update.
984 (tui_data_item_window::rerender): Add parameters. Update.
985 (tui_data_item_window::refresh_window): Remove.
986 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
987 virtual.
988 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
989 tui_gen_win_info.
990 <refresh_window, max_height, min_height>: Remove.
991 <rerender>: Add parameters.
992 <x, y, visible>: New members.
993 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
994 <m_item_width>: New member.
995
22b7b041
TT
9962020-07-01 Tom Tromey <tom@tromey.com>
997
998 * tui/tui-regs.c (tui_data_window::show_register_group)
999 (tui_data_window::check_register_values): Update.
1000 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1001 from item_no.
1002
c9753adb
TT
10032020-07-01 Tom Tromey <tom@tromey.com>
1004
1005 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1006 useless "if".
1007
9ab26b4a
TT
10082020-07-01 Tom Tromey <tom@tromey.com>
1009
1010 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1011 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1012
e555083f
TT
10132020-07-01 Tom Tromey <tom@tromey.com>
1014
1015 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1016 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1017 (struct tui_line_or_address): Move from tui-data.h.
1018 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1019 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1020 (tui_cmd_window, tui_source_window_base, tui_source_window)
1021 (tui_disasm_window): Don't declare.
1022 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1023 to tui-winsource.h.
1024 (SINGLE_KEY): Move to tui-stack.c.
1025
7a02bab7
TT
10262020-07-01 Tom Tromey <tom@tromey.com>
1027
1028 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1029 std::string.
1030 * tui/tui-regs.c (class tab_expansion_file): New.
1031 (tab_expansion_file::write): New method.
1032 (tui_register_format): Change return type. Use
1033 tab_expansion_file.
1034 (tui_get_register, tui_data_window::display_registers_from)
1035 (tui_data_item_window::rerender): Update.
1036 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1037 * tui/tui-io.c (tui_expand_tabs): Remove.
1038
ea68593b
TT
10392020-07-01 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1042
a8caed5d
FS
10432020-07-01 Fangrui Song <maskray@google.com>
1044
1045 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1046
9cdf9820
AKS
10472020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1048
1049 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1050 forms for DW_AT_associated and DW_AT_allocated attributes,
1051 which is already checked in function attr_to_dynamic_prop.
1052
a1520ad8
TT
10532020-06-30 Tom Tromey <tromey@adacore.com>
1054
1055 * dwarf2/read.c (quirk_rust_enum): Correctly call
1056 alloc_rust_variant for default-less enum.
1057
5ac58899
TT
10582020-06-30 Tom Tromey <tromey@adacore.com>
1059
1060 PR build/26183:
1061 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1062 gdb::to_string.
1063
19b187a9
SM
10642020-06-29 Simon Marchi <simon.marchi@efficios.com>
1065
1066 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1067 * gdbarch.h: Re-generate.
1068
cd4c4c07
TT
10692020-06-28 Tom Tromey <tom@tromey.com>
1070
1071 * command.h (cmd_types): Remove.
1072 (cmd_type): Don't declare.
1073 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1074 typedef.
1075 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1076 * cli/cli-decode.c (cmd_type): Remove.
1077
05779d57
PA
10782020-06-27 Pedro Alves <palves@redhat.com>
1079
1080 * fork-child.c (prefork_hook): Adjust.
1081 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1082 Delete.
1083 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1084 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1085 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1086 Remove declarations.
1087 (struct inferior) <set_tty, tty>: New methods.
1088 (struct inferior) <terminal>: Rename to ...
1089 (struct inferior) <m_terminal>: ... this and make private.
1090 * main.c (captured_main_1): Adjust.
1091 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1092 (mi_cmd_inferior_tty_show): Adjust.
1093 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1094 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1095
1776e3e5
NA
10962020-06-26 Nick Alcock <nick.alcock@oracle.com>
1097
1098 * configure.ac: Add --enable-libctf: handle --disable-static
1099 properly.
1100 * acinclude.m4: sinclude ../config/enable.m4.
1101 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1102 (LIBCTF): Substitute in.
1103 (CTF_DEPS): New, likewise.
1104 (CLIBS): libctf needs symbols from libbfd: move earlier.
1105 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1106 flags.
1107 * ctfread.c: Surround in ENABLE_LIBCTF.
1108 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1109 * configure: Regenerate.
1110 * config.in: Likewise.
1111
58373b80
SM
11122020-06-25 Simon Marchi <simon.marchi@efficios.com>
1113
1114 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1115
277474ee
SM
11162020-06-25 Simon Marchi <simon.marchi@efficios.com>
1117
1118 * inferior.h (struct inferior) <terminal>: Change type to
1119 gdb::unique_xmalloc_ptr<char>.
1120 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1121 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1122 field, adjust to unique pointer.
1123 (get_inferior_io_terminal): Adjust to unique pointer.
1124
6d74da72
AB
11252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1128 registers, not just the known core set of registers.
1129
2e52d038
AB
11302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1133 fflags, frm, and fcsr registers.
1134 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1135 restore groups.
1136 (riscv_tdesc_unknown_reg): New function.
1137 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1138 tdesc_use_registers.
1139 * riscv-tdep.h (struct gdbarch_tdep): Add
1140 unknown_csrs_first_regnum, unknown_csrs_count,
1141 duplicate_fflags_regnum, duplicate_frm_regnum, and
1142 duplicate_fcsr_regnum fields.
1143
be64fd07
AB
11442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1147 callback, use the callback (when not null) to help number unknown
1148 registers.
1149 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1150 (tdesc_use_registers): Add extra parameter to declaration.
1151
3b9fce96
AB
11522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1153
1154 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1155 in the file.
1156 (class riscv_pending_register_alias): Likewise.
1157 (riscv_register_feature::register_info): Change 'required_p' field
1158 to 'required', and change its type. Add 'check' member function.
1159 (riscv_register_feature::register_info::check): Define new member
1160 function.
1161 (riscv_xreg_feature): Change initialisation of 'required' field.
1162 (riscv_freg_feature): Likewise.
1163 (riscv_virtual_feature): Likewise.
1164 (riscv_csr_feature): Likewise.
1165 (riscv_check_tdesc_feature): Take extra parameter, the csr
1166 tdesc_feature, rewrite the function to use the new
1167 riscv_register_feature::register_info::check function.
1168 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1169
865bad26
AB
11702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * features/Makefile: Remove all references to the deleted files
1173 below.
1174 * features/riscv/32bit-csr.c: Deleted.
1175 * features/riscv/32bit-csr.xml: Deleted.
1176 * features/riscv/64bit-csr.c: Deleted.
1177 * features/riscv/64bit-csr.xml: Deleted.
1178 * features/riscv/rebuild-csr-xml.sh: Deleted.
1179
ed69cbc8
AB
11802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1183 whitespace error for declaration of names member variable.
1184 (struct riscv_register_feature): Add new prefer_first_name member
1185 variable, and fix whitespace error in declaration of registers.
1186 (riscv_xreg_feature): Initialize prefer_first_name field.
1187 (riscv_freg_feature): Likewise.
1188 (riscv_virtual_feature): Likewise.
1189 (riscv_csr_feature): Likewise.
1190 (riscv_register_name): Expand on comments. Remove register name
1191 modifications for CSR and virtual registers.
1192
4445e8f5
AB
11932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1194
1195 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1196 errors.
1197
767a879e
AB
11982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1199
1200 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1201 riscv-opc.h.
1202 (class riscv_pending_register_alias): New class.
1203 (riscv_check_tdesc_feature): Take vector of pending aliases and
1204 populate it as appropriate.
1205 (riscv_setup_register_aliases): Delete.
1206 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1207 to riscv_check_tdesc_feature in all cases. Use the vector to
1208 create the register aliases.
1209
bb6e55f3
RO
12102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1211
1212 * sol2-tdep.c (sol2_static_transform_name): Remove.
1213 (sol2_init_abi): Don't register it.
1214 * gdbarch.sh (static_transform_name): Remove.
1215 * gdbarch.c, gdbarch.h: Regenerate.
1216
1217 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1218 gdbarch_static_transform_name.
1219 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1220 * stabsread.c (define_symbol) <'X'>: Remove.
1221 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1222 handling.
1223 <'V'>: Likewise.
1224 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1225 <'S'>: Remove call to gdbarch_static_transform_name.
1226
c6d36836
RO
12272020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1228
1229 * procfs.c (procfs_pre_trace): New function.
1230 (procfs_target::create_inferior): Pass it to fork_inferior.
1231
a7e6196b
RO
12322020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1233
1234 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1235 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1236 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1237 sol2-tdep.o, sparc-sol2-tdep.o.
1238 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1239 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1240 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1241 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1242
d412e696
RO
12432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1244
1245 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1246 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1247 Call sol2_init_abi.
1248 Remove calls to set_gdbarch_skip_solib_resolver,
1249 set_gdbarch_core_pid_to_str.
1250 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1251 (i386_sol2_static_transform_name): Remove.
1252 (i386_sol2_init_abi): Call sol2_init_abi.
1253 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1254 set_gdbarch_static_transform_name,
1255 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1256 Use sol2_sigtramp_p.
1257 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1258 (sol2_sigtramp_p): New function.
1259 (sol2_static_transform_name): New function.
1260 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1261 (sol2_init_abi): New function.
1262 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1263 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1264 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1265 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1266 (sparc_sol2_static_transform_name): Remove.
1267 (sparc32_sol2_init_abi): Call sol2_init_abi.
1268 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1269 set_gdbarch_static_transform_name,
1270 set_gdbarch_skip_solib_resolver,
1271 set_gdbarch_core_pid_to_str.
1272 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1273 (sparc_sol2_static_transform_name): Remove
1274 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1275 call sol2_sigtramp_p.
1276 (sparc64_sol2_init_abi): Call sol2_init_abi.
1277 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1278 set_gdbarch_static_transform_name,
1279 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1280
a8654e7d
PW
12812020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1282
1283 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1284 * exec.c (validate_exec_file): If from_tty, set both
1285 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1286 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1287 and from_tty, unconditionally ask a confirmation.
1288
caa7fd04
AB
12892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * target-descriptions.c (tdesc_architecture_name): Protect against
1292 NULL pointer dereference.
1293 (maint_print_xml_tdesc_cmd): New function.
1294 (_initialize_target_descriptions): Register new 'maint print
1295 xml-tdesc' command and give it the filename completer.
1296 * NEWS: Mention new 'maint print xml-tdesc' command.
1297
fbf42f4e
AB
12982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * target-descriptions.c (class tdesc_compatible_info): New class.
1301 (struct target_desc): Change type of compatible vector.
1302 (tdesc_compatible_p): Update for change in type of
1303 target_desc::compatible.
1304 (tdesc_compatible_info_list): New function.
1305 (tdesc_compatible_info_arch_name): New function.
1306 (tdesc_add_compatible): Update for change in type of
1307 target_desc::compatible.
1308 (print_c_tdesc::visit_pre): Likewise.
1309
20821f4e
AB
13102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1313 whitespace to underscore.
1314 (maint_print_c_tdesc_cmd): Use fake filename for target
1315 descriptions that came from the target.
1316 (_initialize_target_descriptions): Add filename command completion
1317 for 'maint print c-tdesc'.
1318
1fb5ee62
SM
13192020-06-23 Simon Marchi <simon.marchi@efficios.com>
1320
1321 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1322 lines.
1323
fc3ecb3e
SM
13242020-06-23 Simon Marchi <simon.marchi@efficios.com>
1325
1326 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1327 lines.
1328 (dwarf2_find_location_expression): Likewise.
1329 (call_site_parameter_matches): Likewise.
1330 (dwarf2_compile_expr_to_ax): Likewise.
1331 (disassemble_dwarf_expression): Likewise.
1332 (loclist_describe_location): Likewise.
1333
236ef034
PA
13342020-06-23 Pedro Alves <palves@redhat.com>
1335
1336 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1337 progspace-and-thread.h. Include scoped-mock-context.h instead.
1338 (register_to_value_test): Use scoped_mock_context.
1339 * regcache.c: Include "scoped-mock-context.h".
1340 (cooked_read_test): Don't error out if a target is already pushed.
1341 Use scoped_mock_context. Adjust.
1342 * scoped-mock-context.h: New file.
1343
39e7ecca
AB
13442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1345
1346 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1347 initializer.
1348 (ada_language::is_string_type_p): New member function.
1349 * c-lang.c (c_language_data): Delete la_is_string_type_p
1350 initializer.
1351 (cplus_language_data): Likewise.
1352 (asm_language_data): Likewise.
1353 (minimal_language_data): Likewise.
1354 * d-lang.c (d_language_data): Likewise.
1355 * f-lang.c (f_is_string_type_p): Delete function, implementation
1356 moved to f_language::is_string_type_p.
1357 (f_language_data): Delete la_is_string_type_p initializer.
1358 (f_language::is_string_type_p): New member function,
1359 implementation from f_is_string_type_p.
1360 * go-lang.c (go_is_string_type_p): Delete function, implementation
1361 moved to go_language::is_string_type_p.
1362 (go_language_data): Delete la_is_string_type_p initializer.
1363 (go_language::is_string_type_p): New member function,
1364 implementation from go_is_string_type_p.
1365 * language.c (language_defn::is_string_type_p): Define new member
1366 function.
1367 (default_is_string_type_p): Make static, add comment copied from
1368 header file.
1369 (unknown_language_data): Delete la_is_string_type_p initializer.
1370 (unknown_language::is_string_type_p): New member function.
1371 (auto_language_data): Delete la_is_string_type_p initializer.
1372 (auto_language::is_string_type_p): New member function.
1373 * language.h (language_data): Delete la_is_string_type_p field.
1374 (language_defn::is_string_type_p): Declare new function.
1375 (default_is_string_type_p): Delete desclaration, move comment to
1376 definition.
1377 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1378 moved to m2_language::is_string_type_p.
1379 (m2_language_data): Delete la_is_string_type_p initializer.
1380 (m2_language::is_string_type_p): New member function,
1381 implementation from m2_is_string_type_p.
1382 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1383 initializer.
1384 * opencl-lang.c (opencl_language_data): Likewise.
1385 * p-lang.c (pascal_is_string_type_p): Delete function,
1386 implementation moved to pascal_language::is_string_type_p.
1387 (pascal_language_data): Delete la_is_string_type_p initializer.
1388 (pascal_language::is_string_type_p): New member function,
1389 implementation from pascal_is_string_type_p.
1390 * rust-lang.c (rust_is_string_type_p): Delete function,
1391 implementation moved to rust_language::is_string_type_p.
1392 (rust_language_data): Delete la_is_string_type_p initializer.
1393 (rust_language::is_string_type_p): New member function,
1394 implementation from rust_is_string_type_p.
1395 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1396 is_string_type_p.
1397
4ffc13fb
AB
13982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 * ada-lang.c (ada_language_data): Delete la_print_typedef
1401 initializer.
1402 (ada_language::print_typedef): New member function.
1403 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1404 (cplus_language_data): Likewise.
1405 (asm_language_data): Likewise.
1406 (minimal_language_data): Likewise.
1407 * d-lang.c (d_language_data): Likewise.
1408 * f-lang.c (f_language_data): Likewise.
1409 (f_language::print_typedef): New member function.
1410 * go-lang.c (go_language_data): Delete la_print_typedef
1411 initializer.
1412 * language.c (language_defn::print_typedef): Define member
1413 function.
1414 (unknown_language_data): Delete la_print_typedef initializer.
1415 (unknown_language::print_typedef): New member function.
1416 (auto_language_data): Delete la_print_typedef initializer.
1417 (auto_language::print_typedef): New member function.
1418 * language.h (language_data): Delete la_print_typedef field.
1419 (language_defn::print_typedef): Declare new member function.
1420 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1421 (default_print_typedef): Delete declaration.
1422 * m2-lang.c (m2_language_data): Delete la_print_typedef
1423 initializer.
1424 (m2_language::print_typedef): New member function.
1425 * objc-lang.c (objc_language_data): Delete la_print_typedef
1426 initializer.
1427 * opencl-lang.c (opencl_language_data): Likewise.
1428 * p-lang.c (pascal_language_data): Likewise.
1429 (pascal_language::print_typedef): New member function.
1430 * rust-lang.c (rust_print_typedef): Delete function,
1431 implementation moved to rust_language::print_typedef.
1432 (rust_language): Delete la_print_typedef initializer.
1433 (rust_language::print_typedef): New member function,
1434 implementation from rust_print_typedef.
1435 * typeprint.c (default_print_typedef): Delete.
1436
d711ee67
AB
14372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1440 (ada_language::printstr): New member function.
1441 * c-lang.c (c_language_data): Delete la_printstr initializer.
1442 (cplus_language_data): Likewise.
1443 (asm_language_data): Likewise.
1444 (minimal_language_data): Likewise.
1445 * d-lang.c (d_language_data): Likewise.
1446 * f-lang.c (f_printstr): Rename to f_language::printstr.
1447 (f_language_data): Delete la_printstr initializer.
1448 (f_language::printstr): New member function, implementation from
1449 f_printstr.
1450 * go-lang.c (go_language_data): Delete la_printstr initializer.
1451 * language.c (language_defn::printstr): Define new member
1452 function.
1453 (unk_lang_printstr): Delete.
1454 (unknown_language_data): Delete la_printstr initializer.
1455 (unknown_language::printstr): New member function.
1456 (auto_language_data): Delete la_printstr initializer.
1457 (auto_language::printstr): New member function.
1458 * language.h (language_data): Delete la_printstr field.
1459 (language_defn::printstr): Declare new member function.
1460 (LA_PRINT_STRING): Update call to printstr.
1461 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1462 (m2_language_data): Delete la_printstr initializer.
1463 (m2_language::printstr): New member function, implementation from
1464 m2_printstr.
1465 * objc-lang.c (objc_language_data): Delete la_printstr
1466 initializer.
1467 * opencl-lang.c (opencl_language_data): Likewise.
1468 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1469 (pascal_language_data): Delete la_printstr initializer.
1470 (pascal_language::printstr): New member function, implementation
1471 from pascal_printstr.
1472 * p-lang.h (pascal_printstr): Delete declaration.
1473 * rust-lang.c (rust_printstr): Update header comment.
1474 (rust_language_data): Delete la_printstr initializer.
1475 (rust_language::printstr): New member function.
1476
52b50f2c
AB
14772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1478
1479 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1480 (ada_language::printchar): New member function.
1481 * c-lang.c (c_language_data): Delete la_printchar initializer.
1482 (cplus_language_data): Likewise.
1483 (asm_language_data): Likewise.
1484 (minimal_language_data): Likewise.
1485 * d-lang.c (d_language_data): Likewise.
1486 * f-lang.c (f_printchar): Rename to f_language::printchar.
1487 (f_language_data): Delete la_printchar initializer.
1488 (f_language::printchar): New member function, implementation from
1489 f_printchar.
1490 * go-lang.c (go_language_data): Delete la_printchar initializer.
1491 * language.c (unk_lang_printchar): Delete.
1492 (language_defn::printchar): Define new member function.
1493 (unknown_language_data): Delete la_printchar initializer.
1494 (unknown_language::printchar): New member function.
1495 (auto_language_data): Delete la_printchar initializer.
1496 (auto_language::printchar): New member function.
1497 * language.h (language_data): Delete la_printchar field.
1498 (language_defn::printchar): Declare new member function.
1499 (LA_PRINT_CHAR): Update call to printchar.
1500 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1501 (m2_language::printchar): New member function.
1502 * objc-lang.c (objc_language_data): Delete la_printchar
1503 initializer.
1504 * opencl-lang.c (opencl_language_data): Likewise.
1505 * p-lang.c (pascal_language_data): Delete la_printchar
1506 initializer.
1507 (pascal_language::printchar): New member function.
1508 * rust-lang.c (rust_printchar): Rename to
1509 rust_language::printchar.
1510 (rust_language_data): Delete la_printchar initializer.
1511 (rust_language::printchar): New member function, implementation
1512 from rust_printchar.
1513
ec8cec5b
AB
15142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1517 (ada_language_data): Delete la_emitchar initializer.
1518 (ada_language::emitchar): New member function, implementation from
1519 emit_char.
1520 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1521 (cplus_language_data): Likewise.
1522 (asm_language_data): Likewise.
1523 (minimal_language_data): Likewise.
1524 * d-lang.c (d_language_data): Likewise.
1525 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1526 (f_language_data): Delete la_emitchar initializer.
1527 (f_language::emitchar): New member function, implementation from
1528 f_emit_char.
1529 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1530 * language.c (unk_lang_emit_char): Delete.
1531 (language_defn::emitchar): New member function definition.
1532 (unknown_language_data): Delete la_emitchar initializer.
1533 (unknown_language::emitchar): New member function.
1534 (auto_language_data): Delete la_emitchar initializer.
1535 (auto_language::emitchar): New member function.
1536 * language.h (language_data): Delete la_emitchar field.
1537 (language_defn::emitchar): New member field declaration.
1538 (LA_EMIT_CHAR): Update call to emitchar.
1539 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1540 (m2_language_data): Delete la_emitchar initializer.
1541 (m2_language::emitchar): New member function, implementation from
1542 m2_emit_char.
1543 * objc-lang.c (objc_language_data): Delete la_emitchar
1544 initializer.
1545 * opencl-lang.c (opencl_language_data): Likewise.
1546 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1547 (pascal_language_data): Delete la_emitchar initializer.
1548 (pascal_language::emitchar): New member function, implementation
1549 from pascal_emit_char.
1550 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1551 (rust_language_data): Delete la_emitchar initializer.
1552 (rust_language::emitchar): New member function, implementation
1553 from rust_emitchar.
1554
1bf9c363
AB
15552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1556
1557 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1558 (ada_language_data): Delete la_post_parser initializer.
1559 (ada_language::post_parser): New member function.
1560 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1561 (cplus_language_data): Likewise.
1562 (asm_language_data): Likewise.
1563 (minimal_language_data): Likewise.
1564 * d-lang.c (d_language_data): Likewise.
1565 * f-lang.c (f_language_data): Likewise.
1566 * go-lang.c (go_language_data): Likewise.
1567 * language.c (unknown_language_data): Likewise.
1568 (auto_language_data): Likewise.
1569 * language.h (language_data): Delete la_post_parser field.
1570 (language_defn::post_parser): New member function.
1571 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1572 * objc-lang.c (objc_language_data): Likewise.
1573 * opencl-lang.c (opencl_language_data): Likewise.
1574 * p-lang.c (pascal_language_data): Likewise.
1575 * parse.c (parse_exp_in_context): Update call to post_parser.
1576 (null_post_parser): Delete definition.
1577 * parser-defs.h (null_post_parser): Delete declaration.
1578 * rust-lang.c (rust_language_data): Delete la_post_parser
1579 initializer.
1580
87afa652
AB
15812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1582
1583 * ada-lang.c (parse): Rename to ada_language::parser.
1584 (ada_language_data): Delete la_parser initializer.
1585 (ada_language::parser): New member function, implementation from
1586 parse.
1587 * c-lang.c (c_language_data): Delete la_parser initializer.
1588 (cplus_language_data): Likewise.
1589 (asm_language_data): Likewise.
1590 (minimal_language_data): Likewise.
1591 * d-lang.c (d_language_data): Likewise.
1592 (d_language::parser): New member function.
1593 * f-lang.c (f_language_data): Delete la_parser initializer.
1594 (f_language::parser): New member function.
1595 * go-lang.c (go_language_data): Delete la_parser initializer.
1596 (go_language::parser): New member function.
1597 * language.c (unk_lang_parser): Delete.
1598 (language_defn::parser): Define new member function.
1599 (unknown_language_data): Delete la_parser initializer.
1600 (unknown_language::parser): New member function.
1601 (auto_language_data): Delete la_parser initializer.
1602 (auto_language::parser): New member function.
1603 * language.h (language_data): Delete la_parser field.
1604 (language_defn::parser): Declare new member function.
1605 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1606 (m2_language::parser): New member function.
1607 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1608 * opencl-lang.c (opencl_language_data): Likewise.
1609 * p-lang.c (pascal_language_data): Likewise.
1610 (pascal_language::parser): New member function.
1611 * parse.c (parse_exp_in_context): Update call to parser.
1612 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1613 (rust_language::parser): New member function.
1614
37825800
AB
16152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1616
1617 * top.c (print_gdb_configuration): Print --with-python-libdir
1618 configuration value.
1619
5b860c93
PW
16202020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1621
1622 * NEWS: Mention change to the alias command.
1623
cf00cd6f
PW
16242020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1625
1626 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1627 (alias_command_completer)
1628 (make_alias_options_def_group): New functions.
1629 (alias_opts, alias_option_defs): New struct and array.
1630 (alias_usage_error): Update usage.
1631 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1632 Use option framework.
1633 (_initialize_cli_cmds): Update alias command help.
1634 Update aliases command help.
1635 (show_user):
1636 Add NULL for new default_args lookup_cmd argument.
1637 (valid_command_p): Rename to validate_aliased_command.
1638 Add NULL for new default_args lookup_cmd argument. Verify that the
1639 aliased_command has no default args.
1640 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1641 (lookup_cmd_1, lookup_cmd): New argument default_args.
1642 (add_alias_cmd):
1643 Add NULL for new default_args lookup_cmd argument.
1644 (print_help_for_command): Show default args under the layout
1645 alias some_alias = some_aliased_cmd some_alias_default_arg.
1646 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1647 xfree default_args in destructor.
1648 * cli/cli-script.c (process_next_line, do_define_command):
1649 Add NULL for new default_args lookup_cmd argument.
1650 * command.h: Declare new default_args argument in lookup_cmd
1651 and lookup_cmd_1.
1652 * completer.c (complete_line_internal_1):
1653 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1654 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1655 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1656 Likewise.
1657 * infcmd.c (_initialize_infcmd): Likewise.
1658 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1659 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1660 * python/py-param.c (add_setshow_generic): Likewise.
1661 * remote.c (_initialize_remote): Likewise.
1662 * top.c (execute_command): Prepend default_args if command has some.
1663 (set_verbose):
1664 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1665 * tracepoint.c (validate_actionline, encode_actions_1):
1666 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1667
bd920864
TBA
16682020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1669
1670 * jit.c (jit_read_descriptor): Use bool as the return type.
1671 (jit_breakpoint_re_set_internal): Use bool as the return type.
1672 Invert the return value logic; return true if the jit breakpoint
1673 has been successfully initialized.
1674 (jit_inferior_init): Update the call to
1675 jit_breakpoint_re_set_internal.
1676
f8098322
PA
16772020-06-22 Pedro Alves <palves@redhat.com>
1678
1679 PR gdb/25939
1680 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1681 Use the current inferior instead. Don't return
1682 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1683 wait again.
1684 * sol-thread.c (sol_thread_target::wait): Don't reference
1685 inferior_ptid.
1686 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1687 (sol_update_thread_list_callback): Use the current inferior's pid
1688 instead of inferior_ptid.
1689
196535a6
RO
16902020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1691
1692 * procfs.c: Cleanup many comments.
1693
1694 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1695 (AFTER_WATCHFLAG): Replace by value.
1696
1697 (MAIN_PROC_NAME_FORMAT): Inline ...
1698 (create_procinfo): ... here.
1699
1700 (procfs_debug_inferior): Remove SYS_exec handling.
1701 (syscall_is_exec): Likewise.
1702 (procfs_set_exec_trap): Likewise.
1703
1704 (syscall_is_lwp_exit): Inline in callers.
1705 (syscall_is_exit): Likewise.
1706 (syscall_is_exec): Likewise.
1707 (syscall_is_lwp_create): Likewise.
1708
1709 (invalidate_cache): Remove #if 0 code.
1710
1711 (make_signal_thread_runnable): Remove.
1712 (procfs_target::resume): Remove #if 0 code.
1713
cf6f3e86
RO
17142020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1715
1716 PR gdb/25939
1717 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1718 call ...
1719 (procfs_target::create_inferior): ... here.
1720
48e9cc84
PW
17212020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1722
1723 * exec.c (validate_exec_file): Ensure the build-id is up to
1724 date by calling reopen_exec_file (that checks file timestamp
1725 to decide to re-read the file).
1726
3922b302
PA
17272020-06-18 Pedro Alves <palves@redhat.com>
1728
1729 PR gdb/25412
1730 * gdbthread.h (delete_thread, delete_thread_silent)
1731 (find_thread_ptid): Update comments.
1732 * thread.c (current_thread_): New global.
1733 (is_current_thread): Move higher, and reimplement.
1734 (inferior_thread): Reimplement.
1735 (set_thread_exited): Use bool. Add assertions.
1736 (add_thread_silent): Simplify thread-reuse handling by always
1737 calling delete_thread.
1738 (delete_thread): Remove intro comment.
1739 (find_thread_ptid): Skip exited threads.
1740 (switch_to_thread_no_regs): Write to current_thread_.
1741 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1742 INFERIOR_PTID. Clear current_thread_.
1743
6dbdab44
PA
17442020-06-18 Pedro Alves <palves@redhat.com>
1745
1746 * aix-thread.c (pd_update): Use switch_to_thread.
1747
2da4b788
PA
17482020-06-18 Pedro Alves <palves@redhat.com>
1749
1750 * ravenscar-thread.c (ravenscar_thread_target): Update.
1751 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1752 (ravenscar_thread_target::add_active_thread): ... this. Don't
1753 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1754 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1755
50838d1b
PA
17562020-06-18 Pedro Alves <palves@redhat.com>
1757
1758 * nat/windows-nat.c (current_windows_thread): Remove.
1759 * nat/windows-nat.h (current_windows_thread): Remove.
1760 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1761 Adjust.
1762 (display_selectors): Adjust to fetch the current
1763 windows_thread_info based on inferior_ptid.
1764 (fake_create_process): No longer write to current_windows_thread.
1765 (windows_nat_target::get_windows_debug_event):
1766 Don't set inferior_ptid or current_windows_thread.
1767 (windows_nat_target::wait): Adjust to not rely on
1768 current_windows_thread.
1769 (do_initial_windows_stuff): Now a method of windows_nat_target.
1770 Switch to the last_ptid thread.
1771 (windows_nat_target::attach): Adjust.
1772 (windows_nat_target::detach): Use switch_to_no_thread instead of
1773 writing to inferior_ptid directly.
1774 (windows_nat_target::create_inferior): Adjust.
1775
31ce04e9
PA
17762020-06-18 Pedro Alves <palves@redhat.com>
1777
1778 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1779
1ee1a363
PA
17802020-06-18 Pedro Alves <palves@redhat.com>
1781
1782 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1783 after creating it, instead of writing to inferior_ptid. Don't
1784 write to inferior_ptid.
1785
6d350754
PA
17862020-06-18 Pedro Alves <palves@redhat.com>
1787
1788 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1789
5d971d48
PA
17902020-06-18 Pedro Alves <palves@redhat.com>
1791
1792 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1793 it, instead of writing to inferior_ptid.
1794
86e57d1b
PA
17952020-06-18 Pedro Alves <palves@redhat.com>
1796
1797 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1798 to inferior_ptid.
1799
f2e1c129
PA
18002020-06-18 Pedro Alves <palves@redhat.com>
1801
1802 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1803 instead of writing to inferior_ptid directly.
1804
60db1b85
PA
18052020-06-18 Pedro Alves <palves@redhat.com>
1806
1807 * corelow.c (core_target::close): Use switch_to_no_thread instead
1808 of writing to inferior_ptid directly.
1809 (add_to_thread_list, core_target_open): Use switch_to_thread
1810 instead of writing to inferior_ptid directly.
1811
fe7d6a8d
PA
18122020-06-18 Pedro Alves <palves@redhat.com>
1813
1814 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1815 inferior_ptid.
1816 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1817 inferior_ptid.
1818 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1819 inferior_ptid directly.
1820 (darwin_nat_target::init_thread_list): Switch to thread, instead
1821 of writing to inferior_ptid.
1822 (darwin_nat_target::attach): Don't write to inferior_ptid.
1823 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1824
975f8708
PA
18252020-06-18 Pedro Alves <palves@redhat.com>
1826
1827 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1828 thread.
1829 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1830 Instead use switch_to_thread.
1831 (gnu_nat_target::detach): Use switch_to_no_thread
1832 instead of writing to inferior_ptid directly. Used passed-in
1833 inferior instead of looking up the inferior by pid.
1834
1a204730
PA
18352020-06-18 Pedro Alves <palves@redhat.com>
1836
1837 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1838 inferior_ptid.
1839
ebe84f23
PA
18402020-06-18 Pedro Alves <palves@redhat.com>
1841
1842 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1843 inferior_ptid.
1844 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1845 thread.
1846 (nto_procfs_target::detach): Avoid referencing
1847 inferior_ptid. Use switch_to_no_thread instead of writing to
1848 inferior_ptid directly.
1849 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1850 instead of writing to inferior_ptid directly.
1851 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1852 to thread.
1853
191f02e5
PA
18542020-06-18 Pedro Alves <palves@redhat.com>
1855
1856 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1857 after creating it, instead of writing to inferior_ptid.
1858 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1859 to inferior_ptid directly.
1860 (gdbsim_target::wait): Don't write to inferior_ptid.
1861
0ac55310
PA
18622020-06-18 Pedro Alves <palves@redhat.com>
1863
1864 * remote.c (remote_target::remote_notice_new_inferior): Use
1865 switch_to_thread instead of writing to inferior_ptid directly.
1866 (remote_target::add_current_inferior_and_thread): Use
1867 switch_to_no_thread instead of writing to inferior_ptid directly.
1868 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1869 and switch_to_thread instead of using set_current_inferior or
1870 writing to inferior_ptid directly.
1871
5233f39b
PA
18722020-06-18 Pedro Alves <palves@redhat.com>
1873
1874 * tracectf.c (ctf_target_open): Switch to added thread instead of
1875 writing to inferior_ptid directly.
1876 (ctf_target::close): Use switch_to_no_thread instead of writing to
1877 inferior_ptid directly.
1878
087e161b
PA
18792020-06-18 Pedro Alves <palves@redhat.com>
1880
1881 * tracefile-tfile.c (tfile_target_open): Don't write to
1882 inferior_ptid directly, instead switch to added thread.
1883 (tfile_target::close): Use switch_to_no_thread instead of writing
1884 to inferior_ptid directly.
1885
7fb43e53
PA
18862020-06-18 Pedro Alves <palves@redhat.com>
1887
1888 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1889 (procfs_target::detach): Use switch_to_no_thread
1890 instead of writing to inferior_ptid directly.
1891 (do_attach): Change return type to void. Switch to the added
1892 thread.
1893 (procfs_target::create_inferior): Switch to the added thread.
1894 (procfs_do_thread_registers): Don't write to inferior_ptid.
1895
18493a00
PA
18962020-06-18 Pedro Alves <palves@redhat.com>
1897
1898 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1899 of writing to inferior_ptid.
1900 (scoped_restore_exited_inferior): Delete.
1901 (handle_vfork_child_exec_or_exit): Simplify using
1902 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1903 instead of writing to inferior_ptid.
1904 (THREAD_STOPPED_BY): Delete.
1905 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1906 (thread_stopped_by_hw_breakpoint): Delete.
1907 (save_waitstatus): Use
1908 scoped_restore_current_thread+switch_to_thread, and call
1909 target_stopped_by_watchpoint instead of
1910 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1911 instead of thread_stopped_by_sw_breakpoint, and
1912 target_stopped_by_hw_breakpoint instead of
1913 thread_stopped_by_hw_breakpoint.
1914 (handle_inferior_event)
1915 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1916 inferior_ptid directly, nor
1917 set_current_inferior/set_current_program_space. Use
1918 switch_to_thread / switch_to_inferior_no_thread instead.
1919
a0776b13
PA
19202020-06-18 Pedro Alves <palves@redhat.com>
1921
1922 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1923 instead of writing to inferior_ptid.
1924
6155c136
PA
19252020-06-18 Pedro Alves <palves@redhat.com>
1926
1927 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1928 added thread.
1929 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1930 to the added thread.
1931 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1932 instead of writing to inferior_ptid.
1933
c5316fc6
PA
19342020-06-18 Pedro Alves <palves@redhat.com>
1935
1936 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1937 (register_to_value_test): Mock a program_space too. Heap-allocate
1938 the address space. Don't write to inferior_ptid. Use
1939 switch_to_thread instead.
1940
8df01799
PA
19412020-06-18 Pedro Alves <palves@redhat.com>
1942
1943 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1944 Delete.
1945 (find_signalled_thread()): New, factored out from
1946 linux_make_corefile_notes and adjusted to handle exited threads.
1947 (linux_make_corefile_notes): Adjust to use the new
1948 find_signalled_thread.
1949
41792d68
PA
19502020-06-18 Pedro Alves <palves@redhat.com>
1951
1952 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1953 of saving/restoring inferior_ptid.
1954
612f258a
TT
19552020-06-17 Tom Tromey <tom@tromey.com>
1956
1957 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1958 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1959 declare.
1960 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1961
efb763a5
SM
19622020-06-15 Simon Marchi <simon.marchi@efficios.com>
1963
1964 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1965 of partial symtabs.
1966
2951f6c0
SM
19672020-06-17 Simon Marchi <simon.marchi@efficios.com>
1968
1969 * regformats/reg-arm.dat: Remove.
1970 * regformats/reg-bfin.dat: Remove.
1971 * regformats/reg-cris.dat: Remove.
1972 * regformats/reg-crisv32.dat: Remove.
1973 * regformats/reg-m32r.dat: Remove.
1974 * regformats/reg-tilegx.dat: Remove.
1975 * regformats/reg-tilegx32.dat: Remove.
1976
7d458ea5
SM
19772020-06-17 Simon Marchi <simon.marchi@efficios.com>
1978
1979 * features/Makefile (WHICH): Remove arm files.
1980 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1981 * regformats/arm/arm-with-neon.dat: Remove.
1982 * regformats/arm/arm-with-vfpv2.dat: Remove.
1983 * regformats/arm/arm-with-vfpv3.dat: Remove.
1984
3af96c0d
SM
19852020-06-17 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * features/Makefile (XMLTOC): Remove rx.xml.
1988
b25e22fd
PA
19892020-06-17 Pedro Alves <palves@redhat.com>
1990
1991 * gdbthread.h (thread_control_state) <trap_expected> Update
1992 comments.
1993
a78a19b1
AB
19942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1995
1996 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1997 ada_language::lookup_symbol_nonlocal.
1998 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1999 (ada_language::lookup_symbol_nonlocal): New member function,
2000 implementation from ada_lookup_symbol_nonlocal.
2001 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2002 initializer.
2003 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2004 initializer.
2005 (cplus_language::lookup_symbol_nonlocal): New member function.
2006 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2007 (minimal_language_data) Likewise.
2008 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2009 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2010 initializer.
2011 (d_language::lookup_symbol_nonlocal): New member function.
2012 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2013 initializer.
2014 (f_language::lookup_symbol_nonlocal): New member function.
2015 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2016 initializer.
2017 * language.c (unknown_language_data): Likewise.
2018 (auto_language_data): Likewise.
2019 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2020 field.
2021 (language_defn::lookup_symbol_nonlocal): New member function.
2022 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2023 initializer.
2024 * objc-lang.c (objc_language_data): Likewise.
2025 * opencl-lang.c (opencl_language_data): Likewise.
2026 * p-lang.c (pascal_language_data): Likewise.
2027 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2028 rust_language::lookup_symbol_nonlocal.
2029 (rust_language_data): Delete la_lookup_symbol_nonlocal
2030 initializer.
2031 (rust_language::lookup_symbol_nonlocal): New member function,
2032 implementation from rust_lookup_symbol_nonlocal.
2033 * symtab.c (lookup_symbol_aux): Update call to
2034 lookup_symbol_nonlocal.
2035 (basic_lookup_symbol_nonlocal): Rename to...
2036 (language_defn::lookup_symbol_nonlocal): ...this, and update
2037 header comment. Remove language_defn parameter, and replace with
2038 uses of `this'.
2039 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2040
ebe2334e
AB
20412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2044 initializer.
2045 (ada_language::value_print_inner): New member function.
2046 * c-lang.c (c_language_data): Delete la_value_print_inner
2047 initializer.
2048 (cplus_language_data): Likewise.
2049 (asm_language_data): Likewise.
2050 (minimal_language_data): Likewise.
2051 * d-lang.c (d_language_data): Likewise.
2052 (d_language::value_print_inner): New member function.
2053 * f-lang.c (f_language_data): Delete la_value_print_inner
2054 initializer.
2055 (f_language::value_print_inner): New member function.
2056 * f-lang.h (f_value_print_innner): Rename to...
2057 (f_value_print_inner): ...this (note spelling of 'inner').
2058 * f-valprint.c (f_value_print_innner): Rename to...
2059 (f_value_print_inner): ...this (note spelling of 'inner').
2060 * go-lang.c (go_language_data): Delete la_value_print_inner
2061 initializer.
2062 (go_language::value_print_inner): New member function.
2063 * language.c (language_defn::value_print_inner): Define new member
2064 function.
2065 (unk_lang_value_print_inner): Delete.
2066 (unknown_language_data): Delete la_value_print_inner initializer.
2067 (unknown_language::value_print_inner): New member function.
2068 (auto_language_data): Delete la_value_print_inner initializer.
2069 (auto_language::value_print_inner): New member function.
2070 * language.h (language_data): Delete la_value_print_inner field.
2071 (language_defn::value_print_inner): Delcare new member function.
2072 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2073 initializer.
2074 (m2_language::value_print_inner): New member function.
2075 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2076 initializer.
2077 * opencl-lang.c (opencl_language_data): Likewise.
2078 * p-lang.c (pascal_language_data): Likewise.
2079 (pascal_language::value_print_inner): New member function.
2080 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2081 initializer.
2082 (rust_language::value_print_inner): New member function.
2083 * valprint.c (do_val_print): Update call to value_print_inner.
2084
a1d1fa3e
AB
20852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * ada-lang.c (ada_language_data): Delete la_value_print
2088 initializer.
2089 (ada_language::value_print): New member function.
2090 * c-lang.c (c_language_data): Delete la_value_print initializer.
2091 (cplus_language_data): Likewise.
2092 (asm_language_data): Likewise.
2093 (minimal_language_data): Likewise.
2094 * d-lang.c (d_language_data): Likewise.
2095 * f-lang.c (f_language_data): Likewise.
2096 * go-lang.c (go_language_data): Likewise.
2097 * language.c (unk_lang_value_print): Delete.
2098 (language_defn::value_print): Define new member function.
2099 (unknown_language_data): Delete la_value_print initializer.
2100 (unknown_language::value_print): New member function.
2101 (auto_language_data): Delete la_value_print initializer.
2102 (auto_language::value_print): New member function.
2103 * language.h (language_data): Delete la_value_print field.
2104 (language_defn::value_print): Declare new member function.
2105 (LA_VALUE_PRINT): Update call to value_print.
2106 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2107 * objc-lang.c (objc_language_data): Likewise.
2108 * opencl-lang.c (opencl_language_data): Likewise.
2109 * p-lang.c (pascal_language_data): Likewise.
2110 (pascal_language::value_print): New member function.
2111 * rust-lang.c (rust_language_data): Delete la_value_print
2112 initializer.
2113
f16a9f57
AB
21142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2115
2116 * ada-lang.c (ada_watch_location_expression): Rename to
2117 ada_language::watch_location_expression.
2118 (ada_language_data): Delete la_watch_location_expression
2119 initializer.
2120 (ada_language::watch_location_expression): New member function,
2121 implementation from ada_watch_location_expression.
2122 * breakpoint.c (watch_command_1): Update call to
2123 watch_location_expression.
2124 * c-lang.c (c_watch_location_expression): Rename to
2125 language_defn::watch_location_expression.
2126 (c_language_data): Delete la_watch_location_expression
2127 initializer.
2128 (cplus_language_data): Likewise.
2129 (asm_language_data): Likewise.
2130 (minimal_language_data): Likewise.
2131 * c-lang.h (c_watch_location_expression): Delete declaration.
2132 * d-lang.c (d_language_data): Delete la_watch_location_expression
2133 initializer.
2134 * f-lang.c (f_language_data): Likewise.
2135 * go-lang.c (go_language_data): Likewise.
2136 * language.c (language_defn::watch_location_expression): Member
2137 function implementation from c_watch_location_expression.
2138 (unknown_language_data): Delete la_watch_location_expression
2139 initializer.
2140 (auto_language_data): Likewise.
2141 * language.h (language_data): Delete la_watch_location_expression
2142 field.
2143 (language_defn::watch_location_expression): Declare new member
2144 function.
2145 * m2-lang.c (m2_language_data): Delete
2146 la_watch_location_expression initializer.
2147 * objc-lang.c (objc_language_data): Likewise.
2148 * opencl-lang.c (opencl_language_data): Likewise.
2149 * p-lang.c (pascal_language_data): Likewise.
2150 * rust-lang.c (rust_watch_location_expression): Rename to
2151 rust_language::watch_location_expression.
2152 (rust_language_data): Delete la_watch_location_expression
2153 initializer.
2154 (rust_language::watch_location_expression): New member function,
2155 implementation from rust_watch_location_expression.
2156
7e56227d
AB
21572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2160 ada_language::collect_symbol_completion_matches.
2161 (ada_language_data): Delete la_collect_symbol_completion_matches
2162 initializer.
2163 (ada_language::collect_symbol_completion_matches): New member
2164 function, implementation from
2165 ada_collect_symbol_completion_matches.
2166 * c-lang.c (c_language_data): Delete
2167 la_collect_symbol_completion_matches initializer.
2168 (cplus_language_data): Likewise.
2169 (asm_language_data): Likewise.
2170 (minimal_language_data): Likewise.
2171 * d-lang.c (d_language_data): Likewise.
2172 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2173 f_language::collect_symbol_completion_matches.
2174 (f_language_data): Delete la_collect_symbol_completion_matches
2175 initializer.
2176 (f_language::collect_symbol_completion_matches) New member
2177 function, implementation from f_collect_symbol_completion_matches.
2178 * go-lang.c (go_language_data): Delete
2179 la_collect_symbol_completion_matches initializer.
2180 * language.c (unknown_language_data): Likewise.
2181 (auto_language_data): Likewise.
2182 * language.h (language_data): Delete
2183 la_collect_symbol_completion_matches field.
2184 (language_defn::collect_symbol_completion_matches): New member
2185 function.
2186 * m2-lang.c (m2_language_data): Delete
2187 la_collect_symbol_completion_matches initializer.
2188 * objc-lang.c (objc_language_data): Likewise.
2189 * opencl-lang.c (opencl_language_data): Likewise.
2190 * p-lang.c (pascal_language_data): Likewise.
2191 * rust-lang.c (rust_language_data): Likewise.
2192 * symtab.c (default_collect_symbol_completion_matches): Delete.
2193 (collect_symbol_completion_matches): Update call to
2194 collect_symbol_completion_matches.
2195 (collect_symbol_completion_matches_type): Likewise.
2196 * symtab.h (default_collect_symbol_completion_matches): Delete
2197 declaration.
2198
53fc67f8
AB
21992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2200
2201 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2202 (ada_language_data): Delete la_word_break_characters initializer.
2203 (ada_language::word_break_characters): New member function.
2204 * c-lang.c (c_language_data): Delete la_word_break_characters
2205 initializer.
2206 (cplus_language_data): Likewise.
2207 (asm_language_data): Likewise.
2208 (minimal_language_data): Likewise.
2209 * completer.c: Update global comment.
2210 (advance_to_expression_complete_word_point): Update call to
2211 word_break_characters.
2212 (complete_files_symbols): Likewise.
2213 (complete_line_internal_1): Likewise.
2214 (default_completer_handle_brkchars): Likewise.
2215 (skip_quoted_chars): Likewise.
2216 * d-lang.c (d_language_data): Delete la_word_break_characters
2217 initializer.
2218 * f-lang.c (f_word_break_characters): Delete.
2219 (f_language_data): Delete la_word_break_characters initializer.
2220 (f_language::word_break_characters): New member function.
2221 * go-lang.c (go_language_data): Delete la_word_break_characters
2222 initializer.
2223 * language.c (unknown_language_data): Likewise.
2224 (auto_language_data): Likewise.
2225 * language.h (default_word_break_characters): Move declaration to
2226 earlier in the file.
2227 (language_data): Delete la_word_break_characters field.
2228 (language_defn::word_break_characters): New member function.
2229 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2230 initializer.
2231 * objc-lang.c (objc_language_data): Likewise.
2232 * opencl-lang.c (opencl_language_data): Likewise.
2233 * p-lang.c (pascal_language_data): Likewise.
2234 * rust-lang.c (rust_language_data): Likewise.
2235
c9debfb9
AB
22362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2237
2238 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2239 (ada_language_data): Delete la_get_symbol_name_matcher
2240 initializer.
2241 (language_defn::get_symbol_name_matcher_inner): New member
2242 function.
2243 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2244 initializer.
2245 (cplus_language_data): Likewise.
2246 (cplus_language::get_symbol_name_matcher_inner): New member
2247 function.
2248 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2249 (minimal_language_data): Likewise.
2250 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2251 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2252 initializer.
2253 * dictionary.c (iter_match_first_hashed): Update call to
2254 get_symbol_name_matcher.
2255 (iter_match_next_hashed): Likewise.
2256 (iter_match_next_linear): Likewise.
2257 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2258 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2259 initializer.
2260 (f_language::get_symbol_name_matcher_inner): New member function.
2261 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2262 initializer.
2263 * language.c (default_symbol_name_matcher): Update header comment,
2264 make static.
2265 (language_defn::get_symbol_name_matcher): New definition.
2266 (language_defn::get_symbol_name_matcher_inner): Likewise.
2267 (get_symbol_name_matcher): Delete.
2268 (unknown_language_data): Delete la_get_symbol_name_matcher
2269 initializer.
2270 (auto_language_data): Likewise.
2271 * language.h (language_data): Delete la_get_symbol_name_matcher
2272 field.
2273 (language_defn::get_symbol_name_matcher): New member function.
2274 (language_defn::get_symbol_name_matcher_inner): Likewise.
2275 (default_symbol_name_matcher): Delete declaration.
2276 * linespec.c (find_methods): Update call to
2277 get_symbol_name_matcher.
2278 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2279 initializer.
2280 * minsyms.c (lookup_minimal_symbol): Update call to
2281 get_symbol_name_matcher.
2282 (iterate_over_minimal_symbols): Likewise.
2283 * objc-lang.c (objc_language_data): Delete
2284 la_get_symbol_name_matcher initializer.
2285 * opencl-lang.c (opencl_language_data): Likewise.
2286 * p-lang.c (pascal_language_data): Likewise.
2287 * psymtab.c (psymbol_name_matches): Update call to
2288 get_symbol_name_matcher.
2289 * rust-lang.c (rust_language_data): Delete
2290 la_get_symbol_name_matcher initializer.
2291 * symtab.c (symbol_matches_search_name): Update call to
2292 get_symbol_name_matcher.
2293 (compare_symbol_name): Likewise.
2294
9a49ad8c
AB
22952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * ada-lang.c (ada_language_data): Delete la_compute_program
2298 initializer.
2299 * c-lang.c (c_language_data): Likewise.
2300 (c_language::compute_program): New member function.
2301 (cplus_language_data): Delete la_compute_program initializer.
2302 (cplus_language::compute_program): New member function.
2303 (asm_language_data): Delete la_compute_program initializer.
2304 (minimal_language_data): Likewise.
2305 * c-lang.h (c_compute_program): Update comment.
2306 (cplus_compute_program): Likewise.
2307 * compile/compile-c-support.c (c_compute_program): Likewise.
2308 (cplus_compute_program): Likewise.
2309 * compile/compile.c (compile_to_object): Update call to
2310 la_compute_program.
2311 * d-lang.c (d_language_data): Delete la_compute_program
2312 initializer.
2313 * f-lang.c (f_language_data): Likewise.
2314 * go-lang.c (go_language_data): Likewise.
2315 * language.c (unknown_language_data): Likewise.
2316 (auto_language_data): Likewise.
2317 * language.h (language_data): Delete la_compute_program field.
2318 (language_defn::compute_program): New member function.
2319 * m2-lang.c (m2_language_data): Delete la_compute_program
2320 initializer.
2321 * objc-lang.c (objc_language_data): Likewise.
2322 * opencl-lang.c (opencl_language_data): Likewise.
2323 * p-lang.c (pascal_language_data): Likewise.
2324 * rust-lang.c (rust_language_data): Likewise.
2325
eff93b4d
AB
23262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * ada-lang.c (ada_language_data) Delete
2329 la_class_name_from_physname initializer.
2330 * c-lang.c (c_language_data): Likewise.
2331 (cplus_language_data): Likewise.
2332 (cplus_language::class_name_from_physname): New member function.
2333 (asm_language_data): Delete la_class_name_from_physname
2334 initializer.
2335 (minimal_language_data): Likewise.
2336 * d-lang.c (d_language_data): Likewise.
2337 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2338 method on language_defn class.
2339 (guess_full_die_structure_name): Likewise.
2340 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2341 initializer.
2342 * go-lang.c (go_language_data): Likewise.
2343 * language.c (language_class_name_from_physname): Delete.
2344 (unk_lang_class_name): Delete.
2345 (unknown_language_data): Delete la_class_name_from_physname
2346 initializer.
2347 (auto_language_data): Likewise.
2348 * language.h (language_data): Delete la_class_name_from_physname
2349 field.
2350 (language_defn::class_name_from_physname): New function.
2351 (language_class_name_from_physname): Delete declaration.
2352 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2353 initializer.
2354 * objc-lang.c (objc_language_data): Likewise.
2355 * opencl-lang.c (opencl_language_data): Likewise.
2356 * p-lang.c (pascal_language_data): Likewise.
2357 * rust-lang.c (rust_language_data): Likewise.
2358
de543742
TT
23592020-06-16 Tom Tromey <tom@tromey.com>
2360
2361 * tui/tui-data.h (STATUS_NAME): New macro.
2362 * tui/tui-layout.c (tui_remove_some_windows)
2363 (initialize_known_windows, tui_register_window)
2364 (tui_layout_split::remove_windows, initialize_layouts)
2365 (tui_new_layout_command): Don't use hard-coded window names.
2366
a350efd4
TT
23672020-06-16 Tom Tromey <tom@tromey.com>
2368
2369 PR tui/25348:
2370 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2371 tui_initialize_readline. Only run once. Call rl_initialize.
2372 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2373 tui_initialize_readline.
2374 * tui/tui-io.c (tui_setup_io): Call
2375 tui_ensure_readline_initialized.
2376 * tui/tui-interp.c (tui_interp::init): Update.
2377
39ec0490
TT
23782020-06-16 Tom Tromey <tom@tromey.com>
2379
2380 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2381 Also preserve the status window.
2382
d2d1ea20
TT
23832020-06-16 Tom Tromey <tom@tromey.com>
2384
2385 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2386 where m_window==nullptr.
2387
66920317
TT
23882020-06-15 Tom Tromey <tromey@adacore.com>
2389
2390 * windows-nat.c (windows_nat::handle_output_debug_string):
2391 Update.
2392 (windows_nat::handle_ms_vc_exception): Update.
2393 * target.h (target_read_string): Change API.
2394 * target.c (target_read_string): Change API.
2395 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2396 Update.
2397 * solib-frv.c (frv_current_sos): Update.
2398 * solib-dsbt.c (dsbt_current_sos): Update.
2399 * solib-darwin.c (darwin_current_sos): Update.
2400 * linux-thread-db.c (inferior_has_bug): Update.
2401 * expprint.c (print_subexp_standard): Update.
2402 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2403 (ada_exception_message_1): Update.
2404
a5d871dd
TT
24052020-06-15 Tom Tromey <tromey@adacore.com>
2406
2407 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2408
670e35fa
TT
24092020-06-15 Tom Tromey <tromey@adacore.com>
2410
2411 * valprint.c (read_string): Update comment.
2412 * target.c (MIN): Remove.
2413 (target_read_string): Rewrite.
2414
f5272a3b
TT
24152020-06-15 Tom Tromey <tromey@adacore.com>
2416
2417 * corefile.c (read_memory_string): Remove.
2418 * ada-valprint.c (ada_value_print_ptr): Update.
2419 * ada-lang.h (ada_tag_name): Change return type.
2420 * ada-lang.c (type_from_tag): Update.
2421 (ada_tag_name_from_tsd): Change return type. Use
2422 target_read_string.
2423 (ada_tag_name): Likewise.
2424 * gdbcore.h (read_memory_string): Don't declare.
2425
2c074f49
HD
24262020-06-14 Hannes Domani <ssbssa@yahoo.de>
2427
2428 * symtab.c (rbreak_command): Ignore Windows drive colon.
2429
6a17d503
SM
24302020-06-12 Simon Marchi <simon.marchi@efficios.com>
2431
2432 * NEWS: Mention removed GDBserver host support.
2433
453c733f
NC
24342020-06-12 Nelson Chu <nelson.chu@sifive.com>
2435
2436 * features/riscv/rebuild-csr-xml.sh: Updated.
2437
2b4e6a3f
TT
24382020-06-11 Tom Tromey <tom@tromey.com>
2439
2440 PR gdb/18318:
2441 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2442
4412332f
JG
24432020-06-09 Jonny Grant <jg@jguk.org>
24442020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2445
2446 * main.c (captured_main_1): Don't print new line after help.
2447 (print_gdb_help): add mailing list and IRC channel information
2448 to --help. Add new lines between items in the footer. Remove
2449 quotes around bug url.
2450
2f33032a
KS
24512020-06-11 Keith Seitz <keiths@redhat.com>
2452
2453 PR gdb/21356
2454 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2455 Resolve typedefs for type length calculations.
2456
7ab96794
TV
24572020-06-10 Tom de Vries <tdevries@suse.de>
2458
2459 PR ada/24713
2460 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2461 (write_psymbols): Enable .gdb_index for ada.
2462 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2463 ada.
2464
e5f3ece2
TV
24652020-06-10 Tom de Vries <tdevries@suse.de>
2466
2467 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2468 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2469 namei" instead of "const char *name" argument.
2470 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2471 dw2_symtab_iter_init.
2472
940da03e
SM
24732020-06-08 Simon Marchi <simon.marchi@efficios.com>
2474
2475 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2476 to use type::field and field::type instead.
2477
b6cdac4b
SM
24782020-06-08 Simon Marchi <simon.marchi@efficios.com>
2479
2480 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2481 to use field::type instead.
2482
5d14b6e5
SM
24832020-06-08 Simon Marchi <simon.marchi@efficios.com>
2484
2485 * gdbtypes.h (struct field) <type, set_type>: New methods.
2486 Rename `type` field to...
2487 <m_type>: ... this. Change references throughout to use type or
2488 set_type methods.
2489 (FIELD_TYPE): Use field::type. Change call sites that modify
2490 the field's type to use field::set_type instead.
2491
3d967001
SM
24922020-06-08 Simon Marchi <simon.marchi@efficios.com>
2493
2494 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2495 to use type::index_type instead.
2496
262abc0d
SM
24972020-06-08 Simon Marchi <simon.marchi@efficios.com>
2498
2499 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2500 methods.
2501 (TYPE_INDEX_TYPE): Use type::index_type.
2502 * gdbtypes.c (create_array_type_with_stride): Likewise.
2503
82836c92
TT
25042020-06-07 Tom Tromey <tom@tromey.com>
2505
2506 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2507 parameter.
2508 (generic_value_print): Update.
2509
940dace9
AB
25102020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2511
2512 Revert commit 982a38f60b0.
2513 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2514
982a38f6
AB
25152020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2516
2517 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2518 avoid use after free.
2519
82f06518
TV
25202020-06-05 Tom de Vries <tdevries@suse.de>
2521
2522 * NEWS: Fix typos.
2523
f8c41851
SM
25242020-06-04 Simon Marchi <simon.marchi@efficios.com>
2525
2526 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2527 the per_bfd object.
2528 (dwarf2_read_debug_names): Likewise.
2529 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2530 object when re-using a per_bfd object with an index.
2531
f9b5d5ea
TV
25322020-06-03 Tom de Vries <tdevries@suse.de>
2533
2534 PR symtab/26046
2535 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2536 children for C++.
2537 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2538 DW_TAG_subprogram.
2539
f6eee2d0
AB
25402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * ada-lang.c (ada_language_data): Delete skip_trampoline
2543 initializer.
2544 * c-lang.c (c_language_data): Likewise.
2545 (cplus_language_data): Likewise.
2546 (cplus_language::skip_trampoline): New member function.
2547 (asm_language_data): Delete skip_trampoline initializer.
2548 (minimal_language_data): Likewise.
2549 * d-lang.c (d_language_data): Likewise.
2550 * f-lang.c (f_language_data): Likewise.
2551 * go-lang.c (go_language_data): Likewise.
2552 * language.c (unk_lang_trampoline): Delete function.
2553 (skip_language_trampoline): Update.
2554 (unknown_language_data): Delete skip_trampoline initializer.
2555 (auto_language_data): Likewise.
2556 * language.h (language_data): Delete skip_trampoline field.
2557 (language_defn::skip_trampoline): New function.
2558 * m2-lang.c (m2_language_data): Delete skip_trampoline
2559 initializer.
2560 * objc-lang.c (objc_skip_trampoline): Delete function, move
2561 implementation to objc_language::skip_trampoline.
2562 (objc_language_data): Delete skip_trampoline initializer.
2563 (objc_language::skip_trampoline): New member function with
2564 implementation from objc_skip_trampoline.
2565 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2566 initializer.
2567 * p-lang.c (pascal_language_data): Likewise.
2568 * rust-lang.c (rust_language_data): Likewise.
2569
0a50df5d
AB
25702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2573 (ada_language::demangle): New member function.
2574 * c-lang.c (c_language_data): Delete la_demangle initializer.
2575 (cplus_language_data): Delete la_demangle initializer.
2576 (cplus_language::demangle): New member function.
2577 (asm_language_data): Delete la_demangle initializer.
2578 (minimal_language_data): Delete la_demangle initializer.
2579 * d-lang.c (d_language_data): Delete la_demangle initializer.
2580 (d_language::demangle): New member function.
2581 * f-lang.c (f_language_data): Delete la_demangle initializer.
2582 (f_language::demangle): New member function.
2583 * go-lang.c (go_language_data): Delete la_demangle initializer.
2584 (go_language::demangle): New member function.
2585 * language.c (language_demangle): Update.
2586 (unk_lang_demangle): Delete.
2587 (unknown_language_data): Delete la_demangle initializer.
2588 (unknown_language::demangle): New member function.
2589 (auto_language_data): Delete la_demangle initializer.
2590 (auto_language::demangle): New member function.
2591 * language.h (language_data): Delete la_demangle field.
2592 (language_defn::demangle): New function.
2593 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2594 * objc-lang.c (objc_language_data): Delete la_demangle
2595 initializer.
2596 (objc_language::demangle): New member function.
2597 * opencl-lang.c (opencl_language_data): Delete la_demangle
2598 initializer.
2599 * p-lang.c (pascal_language_data): Likewise.
2600 * rust-lang.c (rust_language_data): Likewise.
2601 (rust_language::demangle): New member function.
2602
fbfb0a46
AB
26032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2604
2605 * ada-lang.c (ada_language_data): Delete la_print_type
2606 initializer.
2607 (ada_language::print_type): New member function.
2608 * c-lang.c (c_language_data): Delete la_print_type initializer.
2609 (c_language::print_type): New member function.
2610 (cplus_language_data): Delete la_print_type initializer.
2611 (cplus_language::print_type): New member function.
2612 (asm_language_data): Delete la_print_type initializer.
2613 (asm_language::print_type): New member function.
2614 (minimal_language_data): Delete la_print_type initializer.
2615 (minimal_language::print_type): New member function.
2616 * d-lang.c (d_language_data): Delete la_print_type initializer.
2617 (d_language::print_type): New member function.
2618 * f-lang.c (f_language_data): Delete la_print_type initializer.
2619 (f_language::print_type): New member function.
2620 * go-lang.c (go_language_data): Delete la_print_type initializer.
2621 (go_language::print_type): New member function.
2622 * language.c (unk_lang_print_type): Delete.
2623 (unknown_language_data): Delete la_print_type initializer.
2624 (unknown_language::print_type): New member function.
2625 (auto_language_data): Delete la_print_type initializer.
2626 (auto_language::print_type): New member function.
2627 * language.h (language_data): Delete la_print_type field.
2628 (language_defn::print_type): New function.
2629 (LA_PRINT_TYPE): Update.
2630 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2631 (m2_language::print_type): New member function.
2632 * objc-lang.c (objc_language_data): Delete la_print_type
2633 initializer.
2634 (objc_language::print_type): New member function.
2635 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2636 to opencl_language::print_type.
2637 (opencl_language_data): Delete la_print_type initializer.
2638 (opencl_language::print_type): New member function, implementation
2639 from opencl_print_type.
2640 * p-lang.c (pascal_language_data): Delete la_print_type
2641 initializer.
2642 (pascal_language::print_type): New member function.
2643 * rust-lang.c (rust_print_type): Delete, implementation moved to
2644 rust_language::print_type.
2645 (rust_language_data): Delete la_print_type initializer.
2646 (rust_language::print_type): New member function, implementation
2647 from rust_print_type.
2648
6f827019
AB
26492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2650
2651 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2652 implementation moves to...
2653 (ada_language::sniff_from_mangled_name): ...here. Update return
2654 type.
2655 (ada_language_data): Delete la_sniff_from_mangled_name
2656 initializer.
2657 * c-lang.c (c_language_data): Likewise.
2658 (cplus_language_data): Likewise.
2659 (cplus_language::sniff_from_mangled_name): New member function,
2660 implementation taken from gdb_sniff_from_mangled_name.
2661 (asm_language_data): Delete la_sniff_from_mangled_name
2662 initializer.
2663 (minimal_language_data): Likewise.
2664 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2665 implementation moves to cplus_language::sniff_from_mangled_name.
2666 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2667 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2668 moves to...
2669 (d_language::sniff_from_mangled_name): ...here.
2670 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2671 * f-lang.c (f_language_data): Likewise.
2672 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2673 moves to...
2674 (go_language::sniff_from_mangled_name): ...here.
2675 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2676 * language.c (language_sniff_from_mangled_name): Delete.
2677 (unknown_language_data): Delete la_sniff_from_mangled_name
2678 initializer.
2679 (auto_language_data): Likewise.
2680 * language.h (language_data): Delete la_sniff_from_mangled_name
2681 field.
2682 (language_defn::sniff_from_mangled_name): New function.
2683 (language_sniff_from_mangled_name): Delete declaration.
2684 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2685 field.
2686 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2687 implementation moves to...
2688 (objc_language::sniff_from_mangled_name): ...here.
2689 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2690 * opencl-lang.c (opencl_language_data): Likewise.
2691 * p-lang.c (pascal_language_data): Likewise.
2692 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2693 implementation moves to...
2694 (rust_language::sniff_from_mangled_name): ...here.
2695 (rust_language_data): Delete la_sniff_from_mangled_name
2696 initializer.
2697 * symtab.c (symbol_find_demangled_name): Call
2698 sniff_from_mangled_name member function.
2699
fb8006fd
AB
27002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2701
2702 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2703 initializer.
2704 * c-lang.c (c_language_data): Likewise.
2705 (cplus_language_data): Likewise.
2706 (cplus_language::search_name_hash): New member function.
2707 (asm_language_data): Delete la_search_name_hash initializer.
2708 (minimal_language_data): Likewise.
2709 * d-lang.c (d_language_data): Likewise.
2710 * dictionary.c (default_search_name_hash): Rename to...
2711 (language_defn::search_name_hash): ...this.
2712 * f-lang.c (f_language_data): Likewise.
2713 (f_language::search_name_hash): New member function.
2714 * go-lang.c (go_language_data): Delete la_search_name_hash
2715 initializer.
2716 * language.c (unknown_language_data): Likewise.
2717 (auto_language_data): Likewise.
2718 * language.h (struct language_data): Delete la_search_name_hash
2719 field.
2720 (language_defn::search_name_hash): Declare new member function.
2721 (default_search_name_hash): Delete declaration.
2722 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2723 initializer.
2724 * objc-lang.c (objc_language_data): Likewise.
2725 * opencl-lang.c (opencl_language_data): Likewise.
2726 * p-lang.c (pascal_language_data): Likewise.
2727 * rust-lang.c (rust_language_data): Likewise.
2728 * symtab.c (search_name_hash): Update call.
2729
8e25bafe
AB
27302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2733 initializer.
2734 * c-lang.c (class compile_instance): Declare.
2735 (c_language_data): Delete la_get_compile_instance initializer.
2736 (c_language::get_compile_instance): New member function.
2737 (cplus_language_data): Delete la_get_compile_instance initializer.
2738 (cplus_language::get_compile_instance): New member function.
2739 (asm_language_data): Delete la_get_compile_instance initializer.
2740 (minimal_language_data): Likewise.
2741 * c-lang.h (c_get_compile_context): Update comment.
2742 (cplus_get_compile_context): Update comment.
2743 * compile/compile.c (compile_to_object): Update calls, don't rely
2744 on function pointer being NULL.
2745 * d-lang.c (d_language_data): Delete la_get_compile_instance
2746 initializer.
2747 * f-lang.c (f_language_data): Likewise.
2748 * go-lang.c (go_language_data): Likewise.
2749 * language.c (unknown_language_data): Likewise.
2750 (auto_language_data): Likewise.
2751 * language.h (language_data): Delete la_get_compile_instance field.
2752 (language_defn::get_compile_instance): New member function.
2753 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2754 initializer.
2755 * objc-lang.c (objc_language_data): Likewise.
2756 * opencl-lang.c (opencl_language_data): Likewise.
2757 * p-lang.c (pascal_language_data): Likewise.
2758 * rust-lang.c (rust_language_data): Likewise.
2759
4009ee92
AB
27602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * ada-lang.c (ada_add_all_symbols): Update comment.
2763 (ada_iterate_over_symbols): Delete, move implementation to...
2764 (ada_language::iterate_over_symbols): ...here, a new member
2765 function, rewrite to use range based for loop.
2766 (ada_language_data): Delete la_iterate_over_symbols initializer.
2767 * c-lang.c (c_language_data): Likewise.
2768 (cplus_language_data): Likewise.
2769 (asm_language_data): Likewise.
2770 (minimal_language_data): Likewise.
2771 * d-lang.c (d_language_data): Likewise.
2772 * f-lang.c (f_language_data): Likewise.
2773 * go-lang.c (go_language_data): Likewise.
2774 * language.c (unknown_language_data): Likewise.
2775 (auto_language_data): Likewise.
2776 * language.h (language_data): Delete la_iterate_over_symbols field.
2777 (language_defn::iterate_over_symbols): New member function.
2778 (LA_ITERATE_OVER_SYMBOLS): Update.
2779 * linespec.c (iterate_over_all_matching_symtabs): Update.
2780 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2781 initializer.
2782 * objc-lang.c (objc_language_data): Likewise.
2783 * opencl-lang.c (opencl_language_data): Likewise.
2784 * p-lang.c (pascal_language_data): Likewise.
2785 * rust-lang.c (rust_language_data): Likewise.
2786
54f4ca46
AB
27872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2788
2789 * ada-lang.c (ada_language_data): Delete
2790 la_lookup_transparent_type initializer.
2791 * c-lang.c (c_language_data): Likewise.
2792 (cplus_language_data): Likewise.
2793 (cplus_language::lookup_transparent_type): New member function.
2794 (asm_language_data): Delete la_lookup_transparent_type
2795 initializer.
2796 (minimal_language_data): Likewise.
2797 * d-lang.c (d_language_data): Likewise.
2798 * f-lang.c (f_language_data): Likewise.
2799 * go-lang.c (go_language_data): Likewise.
2800 * language.c (unknown_language_data): Likewise.
2801 (auto_language_data): Likewise.
2802 * language.h (struct language_data): Delete
2803 la_lookup_transparent_type field.
2804 (language_defn::lookup_transparent_type): New member function.
2805 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2806 initializer.
2807 * objc-lang.c (objc_language_data): Likewise.
2808 * opencl-lang.c (opencl_language_data): Likewise.
2809 * p-lang.c (pascal_language_data): Likewise.
2810 * rust-lang.c (rust_language_data): Likewise.
2811 * symtab.c (symbol_matches_domain): Update call.
2812
1fb314aa
AB
28132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2814
2815 * ada-lang.c (ada_language_arch_info): Delete function, move
2816 implementation to...
2817 (ada_language::language_arch_info): ...here, a new member
2818 function.
2819 (ada_language_data): Delete la_language_arch_info.
2820 * c-lang.c (c_language_data): Likewise.
2821 (c_language::language_arch_info): New member function.
2822 (cplus_language_arch_info): Delete function, move
2823 implementation to...
2824 (cplus_language::language_arch_info): ...here, a new member
2825 function.
2826 (cplus_language_data): Delete la_language_arch_info.
2827 (asm_language_data): Likewise.
2828 (asm_language::language_arch_info): New member function.
2829 (minimal_language_data): Delete la_language_arch_info.
2830 (minimal_language::language_arch_info): New member function.
2831 * d-lang.c (d_language_arch_info): Delete function, move
2832 implementation to...
2833 (d_language::language_arch_info): ...here, a new member
2834 function.
2835 (d_language_data): Delete la_language_arch_info.
2836 * f-lang.c (f_language_arch_info): Delete function, move
2837 implementation to...
2838 (f_language::language_arch_info): ...here, a new member
2839 function.
2840 (f_language_data): Delete la_language_arch_info.
2841 * go-lang.c (go_language_arch_info): Delete function, move
2842 implementation to...
2843 (go_language::language_arch_info): ...here, a new member
2844 function.
2845 (go_language_data): Delete la_language_arch_info.
2846 * language.c (unknown_language_data): Likewise.
2847 (unknown_language::language_arch_info): New member function.
2848 (auto_language_data): Delete la_language_arch_info.
2849 (auto_language::language_arch_info): New member function.
2850 (language_gdbarch_post_init): Update call to
2851 la_language_arch_info.
2852 * language.h (language_data): Delete la_language_arch_info
2853 function pointer.
2854 (language_defn::language_arch_info): New function.
2855 * m2-lang.c (m2_language_arch_info): Delete function, move
2856 implementation to...
2857 (m2_language::language_arch_info): ...here, a new member
2858 function.
2859 (m2_language_data): Delete la_language_arch_info.
2860 * objc-lang.c (objc_language_arch_info): Delete function, move
2861 implementation to...
2862 (objc_language::language_arch_info): ...here, a new member
2863 function.
2864 (objc_language_data): Delete la_language_arch_info.
2865 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2866 implementation to...
2867 (opencl_language::language_arch_info): ...here, a new member
2868 function.
2869 (opencl_language_data): Delete la_language_arch_info.
2870 * p-lang.c (pascal_language_arch_info): Delete function, move
2871 implementation to...
2872 (pascal_language::language_arch_info): ...here, a new member
2873 function.
2874 (pascal_language_data): Delete la_language_arch_info.
2875 * rust-lang.c (rust_language_arch_info): Delete function, move
2876 implementation to...
2877 (rust_language::language_arch_info): ...here, a new member
2878 function.
2879 (rust_language_data): Delete la_language_arch_info.
2880
48448202
AB
28812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2882
2883 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2884 initializer.
2885 * c-lang.c (c_language_data): Likewise.
2886 (cplus_language_data): Likewise.
2887 (cplus_language::pass_by_reference_info): New method.
2888 (asm_language_data): Delete la_pass_by_reference initializer.
2889 (minimal_language_data): Likewise.
2890 * cp-abi.c (cp_pass_by_reference): Remove use of
2891 default_pass_by_reference.
2892 * d-lang.c (d_language_data): Likewise.
2893 * f-lang.c (f_language_data): Likewise.
2894 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2895 default_pass_by_reference.
2896 * go-lang.c (go_language_data): Likewise.
2897 * language.c (language_pass_by_reference): Update.
2898 (default_pass_by_reference): Delete.
2899 (unknown_language_data): Delete la_pass_by_reference
2900 initializer.
2901 (auto_language_data): Likewise.
2902 * language.h (struct language_data): Delete la_pass_by_reference
2903 field.
2904 (language_defn::pass_by_reference_info): New member function.
2905 (default_pass_by_reference): Delete declaration.
2906 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2907 initializer.
2908 * objc-lang.c (objc_language_data): Likewise.
2909 * opencl-lang.c (opencl_language_data): Likewise.
2910 * p-lang.c (pascal_language_data): Likewise.
2911 * rust-lang.c (rust_language_data): Likewise.
2912
15e5fd35
AB
29132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2914
2915 * ada-lang.c (ada_read_var_value): Delete function, move
2916 implementation to...
2917 (ada_language::read_var_value): ...here.
2918 (ada_language_data): Delete la_read_var_value initializer.
2919 * c-lang.c (c_language_data): Likewise.
2920 (cplus_language_data): Likewise.
2921 (minimal_language_data): Likewise.
2922 * d-lang.c (d_language_data): Likewise.
2923 * f-lang.c (f_language_data): Likewise.
2924 * findvar.c (default_read_var_value): Rename to...
2925 (language_defn::read_var_value): ...this.
2926 * findvar.c (read_var_value): Update header comment, and change to
2927 call member function instead of function pointer.
2928 * go-lang.c (go_language_data): Likewise.
2929 * language.c (unknown_language_data): Delete la_read_var_value
2930 initializer.
2931 (auto_language_data): Likewise.
2932 * language.h (struct language_data): Delete la_read_var_value
2933 field.
2934 (language_defn::read_var_value): New member function.
2935 (default_read_var_value): Delete declaration.
2936 * m2-lang.c (m2_language_data): Delete la_read_var_value
2937 initializer.
2938 * objc-lang.c (objc_language_data): Likewise.
2939 * opencl-lang.c (opencl_language_data): Likewise.
2940 * p-lang.c (pascal_language_data): Likewise.
2941 * rust-lang.c (rust_language_data): Likewise.
2942 * value.h (default_read_var_value): Delete declaration.
2943
5bd40f2a
AB
29442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2945
2946 * ada-lang.c (ada_print_array_index): Delete function, move
2947 implementation to...
2948 (ada_language::print_array_index): ...here.
2949 (ada_language_data): Delete la_print_array_index initializer.
2950 * c-lang.c (c_language_data): Likewise.
2951 (cplus_language_data): Likewise.
2952 (minimal_language_data): Likewise.
2953 * d-lang.c (d_language_data): Likewise.
2954 * f-lang.c (f_language_data): Likewise.
2955 * go-lang.c (go_language_data): Likewise.
2956 * language.c (default_print_array_index): Delete function, move
2957 implementation to...
2958 (language_defn::print_array_index): ...here.
2959 (unknown_language_data): Delete la_print_array_index initializer.
2960 (auto_language_data): Likewise.
2961 * language.h (struct language_data): Delete la_print_array_index
2962 field.
2963 (language_defn::print_array_index): New member function.
2964 (LA_PRINT_ARRAY_INDEX): Update.
2965 (default_print_array_index): Delete declaration.
2966 * m2-lang.c (m2_language_data): Delete la_print_array_index
2967 initializer.
2968 * objc-lang.c (objc_language_data): Likewise.
2969 * opencl-lang.c (opencl_language_data): Likewise.
2970 * p-lang.c (pascal_language_data): Likewise.
2971 * rust-lang.c (rust_language_data): Likewise.
2972
0874fd07
AB
29732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2974
2975 * gdb/ada-lang.c (ada_language_defn): Convert to...
2976 (ada_language_data): ...this.
2977 (class ada_language): New class.
2978 (ada_language_defn): New static global.
2979 * gdb/c-lang.c (c_language_defn): Convert to...
2980 (c_language_data): ...this.
2981 (class c_language): New class.
2982 (c_language_defn): New static global.
2983 (cplus_language_defn): Convert to...
2984 (cplus_language_data): ...this.
2985 (class cplus_language): New class.
2986 (cplus_language_defn): New static global.
2987 (asm_language_defn): Convert to...
2988 (asm_language_data): ...this.
2989 (class asm_language): New class.
2990 (asm_language_defn): New static global.
2991 (minimal_language_defn): Convert to...
2992 (minimal_language_data): ...this.
2993 (class minimal_language): New class.
2994 (minimal_language_defn): New static global.
2995 * gdb/d-lang.c (d_language_defn): Convert to...
2996 (d_language_data): ...this.
2997 (class d_language): New class.
2998 (d_language_defn): New static global.
2999 * gdb/f-lang.c (f_language_defn): Convert to...
3000 (f_language_data): ...this.
3001 (class f_language): New class.
3002 (f_language_defn): New static global.
3003 * gdb/go-lang.c (go_language_defn): Convert to...
3004 (go_language_data): ...this.
3005 (class go_language): New class.
3006 (go_language_defn): New static global.
3007 * gdb/language.c (unknown_language_defn): Remove declaration.
3008 (current_language): Initialize to nullptr, real initialization is
3009 moved to _initialize_language.
3010 (languages): Delete global.
3011 (language_defn::languages): Define.
3012 (set_language_command): Use language_defn::languages.
3013 (set_language): Likewise.
3014 (range_error): Likewise.
3015 (language_enum): Likewise.
3016 (language_def): Likewise.
3017 (add_set_language_command): Use language_def::languages for the
3018 language list, and language_def to lookup language pointers.
3019 (skip_language_trampoline): Use language_defn::languages.
3020 (unknown_language_defn): Convert to...
3021 (unknown_language_data): ...this.
3022 (class unknown_language): New class.
3023 (unknown_language_defn): New static global.
3024 (auto_language_defn): Convert to...
3025 (auto_language_data): ...this.
3026 (class auto_language): New class.
3027 (auto_language_defn): New static global.
3028 (language_gdbarch_post_init): Use language_defn::languages.
3029 (_initialize_language): Initialize current_language.
3030 * gdb/language.h (struct language_defn): Rename to...
3031 (struct language_data): ...this.
3032 (struct language_defn): New.
3033 (auto_language_defn): Delete.
3034 (unknown_language_defn): Delete.
3035 (minimal_language_defn): Delete.
3036 (ada_language_defn): Delete.
3037 (asm_language_defn): Delete.
3038 (c_language_defn): Delete.
3039 (cplus_language_defn): Delete.
3040 (d_language_defn): Delete.
3041 (f_language_defn): Delete.
3042 (go_language_defn): Delete.
3043 (m2_language_defn): Delete.
3044 (objc_language_defn): Delete.
3045 (opencl_language_defn): Delete.
3046 (pascal_language_defn): Delete.
3047 (rust_language_defn): Delete.
3048 * gdb/m2-lang.c (m2_language_defn): Convert to...
3049 (m2_language_data): ...this.
3050 (class m2_language): New class.
3051 (m2_language_defn): New static global.
3052 * gdb/objc-lang.c (objc_language_defn): Convert to...
3053 (objc_language_data): ...this.
3054 (class objc_language): New class.
3055 (objc_language_defn): New static global.
3056 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3057 (opencl_language_data): ...this.
3058 (class opencl_language): New class.
3059 (opencl_language_defn): New static global.
3060 * gdb/p-lang.c (pascal_language_defn): Convert to...
3061 (pascal_language_data): ...this.
3062 (class pascal_language): New class.
3063 (pascal_language_defn): New static global.
3064 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3065 language pointer, update comment format.
3066 * gdb/rust-lang.c (rust_language_defn): Convert to...
3067 (rust_language_data): ...this.
3068 (class rust_language): New class.
3069 (rust_language_defn): New static global.
3070
1313c56e
AB
30712020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3072
3073 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3074 member variable.
3075 <m_stmt_at_address>: New member variable.
3076 (lnp_state_machine::record_line): Don't record some lines, update
3077 tracking of is_stmt at the same address.
3078 (lnp_state_machine::lnp_state_machine): Initialise new member
3079 variables.
3080
b7ed9f3d
ST
30812020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3082
3083 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3084 "-include gnu-nat-mig.h".
3085 * gnu-nat-mig.h: New file.
3086 * gnu-nat.c: Include "gnu-nat-mig.h".
3087 (exc_server, msg_reply_server, notify_server,
3088 process_reply_server): Remove declarations.
3089
14a8ad62
ST
30902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3091
3092 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3093 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3094 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3095 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3096 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3097 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3098 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3099 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3100 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3101 to gnu_nat_target class.
3102 * gnu-nat.c: Likewise.
3103 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3104 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3105 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3106 object.
3107 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3108 instead of `gnu_target'.
3109
0af5e106
ST
31102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3111
3112 * i386-gnu-tdep.c: Include "gdbcore.h"
3113 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3114 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3115 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3116 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3117 i386_gnu_sigcontext_addr): New functions
3118 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3119 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3120 tdep.
3121
078f2fc9
ST
31222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3123
3124 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3125 before fork_inferior call. Avoid calling it if target_is_pushed returns
3126 true.
3127
53dff92c
ST
31282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3129
3130 * gnu-nat.h (gnu_target): New variable declaration.
3131 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3132 gnu_target.
3133 * gnu-nat.c (gnu_target): New variable.
3134 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3135 add_thread_silent, and add_thread calls.
3136 (gnu_nat_target::create_inferior): Pass gnu_target to
3137 add_thread_silent, thread_change_ptid call.
3138 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3139 call.
3140
5a8b8627
ST
31412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3142
3143 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3144 (gnu_nat_target::find_memory_regions): Remove unused
3145 `old_address' variable.
3146
366f550a
ST
31472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3148
3149 * gnu-nat.c: Include "gdbarch.h".
3150
f14871bf
ST
31512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3152
3153 * reply_mig_hack.awk (Error return): Cast function through
3154 void *, to bypass compiler function call check.
3155
c6887cfb
ST
31562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3157
3158 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3159 $(srcdir)/reply_mig_hack.awk.
3160
6930bffe
ST
31612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3162
3163 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3164
112c22ed
JG
31652020-05-30 Jonny Grant <jg@jguk.org>
3166
3167 * configure.ac (ACX_BUGURL): change bug URL to https.
3168
f68f85b5
PA
31692020-05-30 Pedro Alves <palves@redhat.com>
3170
3171 * cp-support.c (replace_typedefs_template): New.
3172 (replace_typedefs_qualified_name): Handle
3173 DEMANGLE_COMPONENT_TEMPLATE.
3174
976ca316
SM
31752020-05-29 Simon Marchi <simon.marchi@efficios.com>
3176
3177 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3178 dwarf2/index-cache.h, dwarf2/index-write.c,
3179 dwarf2/index-write.h, dwarf2/line-header.c,
3180 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3181 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3182 variables and fields from `dwarf2_per_objfile` to just
3183 `per_objfile` throughout.
3184
989ade05
SM
31852020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3186
3187 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3188 <push_dwarf_reg_entry_value>: Add comment.
3189
c47bae85
KB
31902020-05-28 Kevin Buettner <kevinb@redhat.com>
3191 Keith Seitz <keiths@redhat.com>
3192
3193 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3194 instead of PyEval_ReleaseLock.
3195 (class gdbpy_gil): Move to earlier in file.
3196 (finalize_python): Set gdb_python_initialized.
3197 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3198 when not initialized.
3199
44486dcf
SM
32002020-05-28 Simon Marchi <simon.marchi@efficios.com>
3201
3202 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3203 <push_dwarf_reg_entry_value>: Remove assert. Override
3204 per_objfile with caller_per_objfile.
3205
f030440d
TV
32062020-05-28 Tom de Vries <tdevries@suse.de>
3207
3208 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3209 PR gold/15646 workaround to symbol kind "type".
3210
f0fbb768
TT
32112020-05-27 Tom Tromey <tromey@adacore.com>
3212
3213 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3214
af0b2a3e
TT
32152020-05-27 Tom Tromey <tromey@adacore.com>
3216
3217 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3218 Use htab_find_with_hash.
3219 <add_abbrev>: Remove "abbrev_number" parameter.
3220 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3221 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3222 (hash_abbrev): Add comment.
3223 (abbrev_table::lookup_abbrev): Move to header file.
3224 (abbrev_table::read): Update.
3225
7d00ffec
TT
32262020-05-27 Tom Tromey <tromey@adacore.com>
3227
3228 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3229 method.
3230 <canonical_name>: New member.
3231 <raw_name>: Rename from "name".
3232 (partial_die_info): Initialize canonical_name.
3233 (scan_partial_symbols): Check raw_name.
3234 (partial_die_parent_scope, partial_die_full_name)
3235 (add_partial_symbol, add_partial_subprogram)
3236 (add_partial_enumeration, load_partial_dies): Use "name" method.
3237 (partial_die_info::name): New method.
3238 (partial_die_info::read, guess_partial_die_structure_name)
3239 (partial_die_info::fixup): Update.
3240
697bba18
TT
32412020-05-27 Tom Tromey <tromey@adacore.com>
3242
3243 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3244 <get_ref_die_offset>: Inline.
3245 <get_ref_die_offset_complaint>: New method.
3246 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3247 (attribute::get_ref_die_offset_complaint): Rename from
3248 get_ref_die_offset. Just issue complaint.
3249
c17ace43
HD
32502020-05-27 Hannes Domani <ssbssa@yahoo.de>
3251
3252 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3253
96445f0b
HD
32542020-05-27 Hannes Domani <ssbssa@yahoo.de>
3255
3256 * exec.c (exec_file_attach): Use errno value of first openp failure.
3257
ac637ec3
HD
32582020-05-27 Hannes Domani <ssbssa@yahoo.de>
3259
3260 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3261 Don't close thread handle.
3262
17ee85fc
TT
32632020-05-27 Tom Tromey <tom@tromey.com>
3264 Simon Marchi <simon.marchi@efficios.com>
3265
3266 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3267 shared_ptr.
3268 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3269 member.
3270 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3271 dwarf2_per_bfd_objfile_data_key>: New globals.
3272 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3273 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3274 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3275 shared.
3276 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3277 short-circuit when sharing.
3278 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3279 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3280
39b16f87
SM
32812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3282
3283 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3284 to...
3285 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3286 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3287
fcf23d5b
SM
32882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3289
3290 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3291 build_name_components, find_name_components_bounds>:
3292 Add per_objfile parameter.
3293 (struct mapped_index) <symbol_name_at>: Likewise.
3294 (struct mapped_debug_names): Remove constructor.
3295 <dwarf2_per_objfile>: Remove field.
3296 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3297 (mapped_index_base::find_name_components_bounds,
3298 mapped_index_base::build_name_components,
3299 dw2_expand_symtabs_matching_symbol): Likewise.
3300 (class mock_mapped_index) <symbol_name_at>: Likewise.
3301 (check_match): Likewise.
3302 (check_find_bounds_finds): Likewise.
3303 (test_mapped_index_find_name_component_bounds): Update.
3304 (CHECK_MATCH): Update.
3305 (dw2_expand_symtabs_matching): Update.
3306 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3307 per_objfile parameter.
3308 <find_vec_in_debug_names>: Likewise.
3309 <m_per_objfile>: New field.
3310 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3311 parameter.
3312 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3313 (dw2_debug_names_iterator::next): Update.
3314 (dw2_debug_names_lookup_symbol): Update.
3315 (dw2_debug_names_expand_symtabs_for_function): Update.
3316 (dw2_debug_names_map_matching_symbols): Update.
3317 (dw2_debug_names_expand_symtabs_matching): Update.
3318 (dwarf2_read_debug_names): Update.
3319
7188ed02
SM
33202020-05-27 Simon Marchi <simon.marchi@efficios.com>
3321
3322 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3323 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3324 move to dwarf2_per_objfile.
3325 <read_in_chain>: Remove.
3326 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3327 remove_all_cus, age_comp_units>: New methods.
3328 <m_dwarf2_cus>: New member.
3329 (struct dwarf2_per_cu_data) <cu>: Remove.
3330 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3331 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3332 moved to methods of dwarf2_per_objfile.
3333 (dwarf2_clear_marks): Remove.
3334 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3335 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3336 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3337 (dwarf2_per_objfile::remove_all_cus): New.
3338 (class free_cached_comp_units) <~free_cached_comp_units>:
3339 Update.
3340 (load_cu): Update.
3341 (dw2_do_instantiate_symtab): Adjust.
3342 (fill_in_sig_entry_from_dwo_entry): Adjust.
3343 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3344 (cutu_reader::cutu_reader): Likewise.
3345 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3346 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3347 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3348 and dwarf2_per_objfile::age_comp_units.
3349 (load_partial_comp_unit): Update.
3350 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3351 (process_queue): Likewise.
3352 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3353 backlink.
3354 (dwarf2_read_addr_index): Likewise.
3355 (follow_die_offset): Likewise.
3356 (dwarf2_fetch_die_loc_sect_off): Likewise.
3357 (dwarf2_fetch_constant_bytes): Likewise.
3358 (dwarf2_fetch_die_type_sect_off): Likewise.
3359 (follow_die_sig_1): Likewise.
3360 (load_full_type_unit): Likewise.
3361 (read_signatured_type): Likewise.
3362 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3363 (dwarf2_cu::~dwarf2_cu): Remove.
3364 (dwarf2_per_objfile::get_cu): New.
3365 (dwarf2_per_objfile::set_cu): New.
3366 (age_cached_comp_units): Rename to...
3367 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3368 to std::unordered_map.
3369 (free_one_cached_comp_unit): Rename to...
3370 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3371 to std::unordered_map.
3372 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3373 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3374 a dwarf2_per_objfile in data.
3375 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3376 (dwarf2_clear_marks): Remove.
3377
2e671100
SM
33782020-05-27 Simon Marchi <simon.marchi@efficios.com>
3379
3380 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3381 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3382 (init_tu_and_read_dwo_dies): Likewise.
3383 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3384 (cutu_reader::cutu_reader): Likewise.
3385 (load_partial_comp_unit): Likewise.
3386 (process_psymtab_comp_unit): Update.
3387 (build_type_psymtabs_1): Update.
3388 (process_skeletonless_type_unit): Update.
3389 (load_full_comp_unit): Update.
3390 (find_partial_die): Update.
3391 (dwarf2_read_addr_index): Update.
3392 (read_signatured_type): Update.
3393
2e6a9f79
SM
33942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3395
3396 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3397 m_header_read_in>: New fields.
3398 <get_header>: New method.
3399 * dwarf2/read.c (per_cu_header_read_in): Remove.
3400 (dwarf2_per_cu_data::get_header): New.
3401 (dwarf2_per_cu_data::addr_size): Update.
3402 (dwarf2_per_cu_data::offset_size): Update.
3403 (dwarf2_per_cu_data::ref_addr_size): Update.
3404
1b555f17
SM
34052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3406
3407 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3408 (dw2_do_instantiate_symtab): Update.
3409 (queue_and_load_all_dwo_tus): Change parameter from
3410 dwarf2_per_cu_data to dwarf2_cu.
3411 (dwarf2_fetch_die_loc_sect_off): Update.
3412 (dwarf2_fetch_constant_bytes): Update.
3413 (dwarf2_fetch_die_type_sect_off): Update.
3414
8fc0b21d
SM
34152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3416
3417 * dwarf2/read.c (process_full_comp_unit,
3418 process_full_type_unit): Remove per_cu, per_objfile paramters.
3419 Add dwarf2_cu parameter.
3420 (process_queue): Update.
3421
168c9250
SM
34222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3423
3424 * dwarf2/read.c (create_cu_from_index_list): Replace
3425 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3426 (create_cus_from_index_list): Likewise.
3427 (create_cus_from_index): Likewise.
3428 (create_signatured_type_table_from_index): Likewise.
3429 (create_cus_from_debug_names_list): Likewise.
3430 (create_cus_from_debug_names): Likewise.
3431 (dwarf2_read_gdb_index): Update.
3432 (dwarf2_read_debug_names): Update.
3433
e286671b
TT
34342020-05-27 Tom Tromey <tom@tromey.com>
3435 Simon Marchi <simon.marchi@efficios.com>
3436
3437 * dwarf2/read.h (struct dwarf2_per_objfile)
3438 <get_type_for_signatured_type, set_type_for_signatured_type>:
3439 New methods.
3440 <m_type_map>: New member.
3441 (struct signatured_type) <type>: Remove.
3442 * dwarf2/read.c
3443 (dwarf2_per_objfile::get_type_for_signatured_type,
3444 dwarf2_per_objfile::set_type_for_signatured_type): New.
3445 (get_signatured_type): Use new methods.
3446
8adb8487
TT
34472020-05-27 Tom Tromey <tom@tromey.com>
3448 Simon Marchi <simon.marchi@efficios.com>
3449
3450 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3451 (struct dwarf2_per_objfile) <type_units>: New member.
3452 <get_type_unit_group_unshareable>: New method.
3453 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3454 num_symtabs, symtabs>: Remove; move to
3455 type_unit_group_unshareable.
3456 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3457 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3458 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3459
127bbf4b
SM
34602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3461
3462 * dwarf2/read.h (struct dwarf2_per_cu_data):
3463 <dwarf2_per_objfile>: Remove.
3464 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3465 dwarf2_per_objfile.
3466 (create_signatured_type_table_from_index): Likewise.
3467 (create_signatured_type_table_from_debug_names): Likewise.
3468 (create_debug_type_hash_table): Likewise.
3469 (fill_in_sig_entry_from_dwo_entry): Likewise.
3470 (create_type_unit_group): Likewise.
3471 (read_comp_units_from_section): Likewise.
3472 (create_cus_hash_table): Likewise.
3473
f6e649dd
SM
34742020-05-27 Simon Marchi <simon.marchi@efficios.com>
3475
3476 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3477 dwarf2_per_cu_data::dwarf2_per_objfile.
3478 (compute_compunit_symtab_includes): Likewise.
3479 (dwarf2_cu::start_symtab): Likewise.
3480
aa66c379
SM
34812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3482
3483 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3484 parameter.
3485 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3486 (read_namespace_alias): Update.
3487 (lookup_die_type): Update.
3488 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3489 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3490 Update.
3491 (disassemble_dwarf_expression): Update.
3492
120ce1b5
SM
34932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3494
3495 * dwarf2/read.h (struct dwarf2_queue_item): Add
3496 dwarf2_per_objfile parameter, assign new parameter.
3497 <per_objfile>: New field.
3498 * dwarf2/read.c (free_one_cached_comp_unit): Add
3499 dwarf2_per_objfile parameter.
3500 (queue_comp_unit): Likewise.
3501 (dw2_do_instantiate_symtab): Update.
3502 (process_psymtab_comp_unit): Update.
3503 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3504 (process_imported_unit_die): Update.
3505 (queue_and_load_dwo_tu): Update.
3506 (follow_die_offset): Update.
3507 (follow_die_sig_1): Update.
3508
9f47c707
SM
35092020-05-27 Simon Marchi <simon.marchi@efficios.com>
3510
3511 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3512 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3513 (read_call_site_scope): Assign per_objfile.
3514 (dwarf2_per_cu_data::objfile): Remove.
3515 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3516 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3517 dwarf2_per_objfile parameter.
3518 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3519 dwarf2_per_objfile parameter.
3520 (dwarf_expr_reg_to_entry_parameter): Add output
3521 dwarf2_per_objfile parameter.
3522 (locexpr_get_frame_base): Update.
3523 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3524 <push_dwarf_reg_entry_value>: Update.
3525 <call_site_to_target_addr>: Update.
3526 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3527 parameter.
3528 (value_of_dwarf_reg_entry): Update.
3529 (rw_pieced_value): Update.
3530 (indirect_synthetic_pointer): Update.
3531 (dwarf2_evaluate_property): Update.
3532 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3533 parameter.
3534 (locexpr_read_variable): Update.
3535 (locexpr_get_symbol_read_needs): Update.
3536 (loclist_read_variable): Update.
3537
14095eb3
SM
35382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3539
3540 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3541 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3542 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3543 parameter.
3544 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3545 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3546 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3547 parameter.
3548 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3549 sect_variable_value): Add dwarf2_per_objfile parameter.
3550 (class dwarf_evaluate_loc_desc) <dwarf_call,
3551 dwarf_variable_value>: Update.
3552 (fetch_const_value_from_synthetic_pointer): Add
3553 dwarf2_per_objfile parameter.
3554 (fetch_const_value_from_synthetic_pointer): Update.
3555 (coerced_pieced_ref): Update.
3556 (class symbol_needs_eval_context) <dwarf_call,
3557 dwarf_variable_value>: Update.
3558 (dwarf2_compile_expr_to_ax): Update.
3559
3c3cd3d4
SM
35602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3561
3562 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3563 parameter.
3564 (dwarf2_evaluate_loc_desc_full): Update.
3565
82ca3f51
SM
35662020-05-27 Simon Marchi <simon.marchi@efficios.com>
3567
3568 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3569 parameter.
3570 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3571 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3572 dwarf2_per_objfile parameter.
3573 (decode_debug_loc_dwo_addresses): Likewise.
3574 (dwarf2_find_location_expression): Update.
3575 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3576 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3577 parameter.
3578 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3579 parameter.
3580 (locexpr_describe_location_1): Likewise.
3581 (locexpr_describe_location): Update.
3582
4b167ea1
SM
35832020-05-27 Simon Marchi <simon.marchi@efficios.com>
3584
3585 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3586 Remove.
3587 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3588 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3589 (dwarf2_compile_property_to_c): Update.
3590 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3591 use text offset from objfile.
3592 (locexpr_tracepoint_var_ref): Update.
3593 (locexpr_generate_c_location): Update.
3594 (loclist_describe_location): Update.
3595 (loclist_tracepoint_var_ref): Update.
3596 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3597 dwarf2_per_objfile parameter.
3598 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3599 use text offset from objfile.
3600 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3601
89b07335
SM
36022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3603
3604 * dwarf2/expr.h (struct dwarf_expr_context)
3605 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3606 <offset>: Remove.
3607 <per_objfile>: New member.
3608 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3609 dwarf2_per_objfile parameter. Don't set offset, set
3610 per_objfile.
3611 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3612 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3613 a dwarf2_per_objfile object instead of an offset.
3614 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3615 constructor.
3616 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3617 to dwarf2_expr_executor constructor. Don't set offset.
3618 (dwarf2_fetch_cfa_info): Update.
3619 (struct dwarf2_frame_cache) <text_offset>: Remove.
3620 <per_objfile>: New field.
3621 (dwarf2_frame_cache): Update.
3622 (dwarf2_frame_prev_register): Update.
3623 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3624 <dwarf_evaluate_loc_desc>: Add constructor.
3625 (dwarf2_evaluate_loc_desc_full): Update.
3626 (dwarf2_locexpr_baton_eval): Update.
3627 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3628 Add constructor.
3629 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3630
293e7e51
SM
36312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3632
3633 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3634 addr_sized_int_type>: Move to dwarf2_cu.
3635 <int_type>: Move to dwarf2_per_objfile.
3636 (struct dwarf2_per_objfile) <int_type>: Move here.
3637 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3638 addr_sized_int_type>: Move here.
3639 (read_func_scope): Update.
3640 (read_array_type): Update.
3641 (read_tag_string_type): Update.
3642 (attr_to_dynamic_prop): Update.
3643 (dwarf2_per_cu_data::int_type): Rename to...
3644 (dwarf2_per_objfile::int_type): ... this.
3645 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3646 (dwarf2_cu::addr_sized_int_type): ... this.
3647 (read_subrange_type): Update.
3648 (dwarf2_per_cu_data::addr_type): Rename to...
3649 (dwarf2_cu::addr_type): ... this.
3650 (set_die_type): Update.
3651
64874a40
SM
36522020-05-27 Simon Marchi <simon.marchi@efficios.com>
3653
3654 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3655 data through per_cu->cu.
3656
4ab09049
SM
36572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3658
3659 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3660 dwarf2_per_cu_data parameter fo dwarf2_cu.
3661 (lookup_dwo_type_unit): Likewise.
3662 (read_cutu_die_from_dwo): Likewise.
3663 (lookup_dwo_unit): Likewise.
3664 (open_and_init_dwo_file): Likewise.
3665 (lookup_dwo_cutu): Likewise.
3666 (lookup_dwo_comp_unit): Likewise.
3667 (lookup_dwo_type_unit): Likewise.
3668 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3669 (cutu_reader::cutu_reader): Update.
3670
47b14e86
SM
36712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3672
3673 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3674 parameter.
3675 (process_full_type_unit): Likewise.
3676 (process_queue): Update.
3677
43182c09
SM
36782020-05-27 Simon Marchi <simon.marchi@efficios.com>
3679
3680 * dwarf2/read.c (recursively_compute_inclusions): Add
3681 dwarf2_per_objfile parameter.
3682 (compute_compunit_symtab_includes): Likewise.
3683 (process_cu_includes): Update.
3684
7aa104c4
SM
36852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3686
3687 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3688 parameter.
3689 (create_type_unit_group): Update.
3690 (process_psymtab_comp_unit_reader): Update.
3691 (build_type_psymtabs_reader): Update.
3692
e3beb21d
SM
36932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3694
3695 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3696 object through m_this_cu->cu.
3697
d460f660
SM
36982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3699
3700 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3701 the info parameter.
3702 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3703
ab432490
SM
37042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3705
3706 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3707 per_objfile parameter.
3708 (load_full_type_unit): Add per_objfile parameter.
3709 (read_signatured_type): Likewise.
3710 (load_full_comp_unit): Likewise.
3711 (load_cu): Likewise.
3712 (dw2_do_instantiate_symtab): Likewise.
3713 (dw2_get_file_names): Likewise.
3714 (dw2_map_symtabs_matching_filename): Update.
3715 (dw_expand_symtabs_matching_file_matcher): Update.
3716 (dw2_map_symbol_filenames): Update.
3717 (process_psymtab_comp_unit): Add per_objfile parameter.
3718 (build_type_psymtabs_1): Update.
3719 (process_skeletonless_type_unit): Update.
3720 (dwarf2_build_psymtabs_hard): Update.
3721 (load_partial_comp_unit): Add per_objfile parameter.
3722 (scan_partial_symbols): Update.
3723 (load_full_comp_unit): Add per_objfile parameter.
3724 (process_imported_unit_die): Update.
3725 (create_cus_hash_table): Update.
3726 (find_partial_die): Update.
3727 (dwarf2_read_addr_index): Update.
3728 (follow_die_offset): Update.
3729 (dwarf2_fetch_die_loc_sect_off): Update.
3730 (dwarf2_fetch_constant_bytes): Update.
3731 (dwarf2_fetch_die_type_sect_off): Update.
3732 (follow_die_sig_1): Update.
3733 (load_full_type_unit): Add per_objfile parameter.
3734 (read_signatured_type): Likewise.
3735
313bad1b
SM
37362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3737
3738 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3739 of objfile_name.
3740
c3699833
SM
37412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3742
3743 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3744 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3745 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3746 field.
3747 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3748 (create_cus_from_index): Update.
3749 (dwarf2_read_gdb_index): Update.
3750 (create_cus_from_debug_names): Update.
3751 (dwarf2_read_debug_names): Update.
3752 (get_abbrev_section_for_cu): Update.
3753 (create_all_comp_units): Update.
3754 (read_attribute_value): Update.
3755 (get_debug_line_section): Update.
3756 * dwarf2/index-cache.c (index_cache::store): Update.
3757 * dwarf2/index-write.c (save_gdb_index_command): Update.
3758 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3759
1859c670
SM
37602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3761
3762 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3763 member.
3764 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3765 dwarf2_per_cu_data::per_bfd.
3766 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3767 (create_type_unit_group): Likewise.
3768 (queue_comp_unit): Remove reference to
3769 per_cu->dwarf2_per_objfile.
3770 (maybe_queue_comp_unit): Likewise.
3771 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3772 (create_cus_hash_table): Assign new field.
3773
5e22e966
SM
37742020-05-27 Simon Marchi <simon.marchi@efficios.com>
3775
3776 * dwarf2/read.c: Replace
3777 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3778 dwarf2_cu->per_objfile throughout.
3779
97a1449a
SM
37802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3781
3782 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3783 parameter, don't use per_cu->dwarf2_per_objfile.
3784 (dw2_instantiate_symtab): Likewise.
3785 (dw2_find_last_source_symtab): Update.
3786 (dw2_map_expand_apply): Update.
3787 (dw2_lookup_symbol): Update.
3788 (dw2_expand_symtabs_for_function): Update.
3789 (dw2_expand_all_symtabs): Update.
3790 (dw2_expand_symtabs_with_fullname): Update.
3791 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3792 don't use per_cu->dwarf2_per_objfile.
3793 (dw2_expand_marked_cus): Update.
3794 (dw2_find_pc_sect_compunit_symtab): Update.
3795 (dw2_debug_names_lookup_symbol): Update.
3796 (dw2_debug_names_expand_symtabs_for_function): Update.
3797 (dw2_debug_names_map_matching_symbols): Update.
3798 (dwarf2_psymtab::expand_psymtab): Update.
3799
9e021579
SM
38002020-05-27 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3803 <per_objfile>: New member.
3804 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3805 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3806 call to dwarf2_cu.
3807 (cutu_reader::cutu_reader): Update.
3808 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3809
ae090bdb
SM
38102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3811
3812 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3813 struct dwarf2_per_objfile.
3814 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3815 dwarf2_per_bfd.
3816 * dwarf2/read.c (set_die_type): Update.
3817 (get_die_type_at_offset): Update.
3818
af758d11
SM
38192020-05-27 Tom Tromey <tom@tromey.com>
3820 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3823 method.
3824 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3825 get_symtab, set_symtab>: New methods.
3826 <m_symtabs>: New field.
3827 (struct dwarf2_psymtab): Derive from partial_symtab.
3828 <readin_p, get_compunit_symtab>: Declare methods.
3829 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3830 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3831 New methods.
3832 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3833 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3834 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3835 (dw2_symtab_iter_next, dw2_print_stats)
3836 (dw2_expand_symtabs_with_fullname)
3837 (dw2_expand_symtabs_matching_one)
3838 (dw_expand_symtabs_matching_file_matcher)
3839 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3840 (dw2_debug_names_iterator::next)
3841 (dw2_debug_names_map_matching_symbols)
3842 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3843 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3844 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3845 New methods.
3846 (get_compunit_symtab, process_full_comp_unit)
3847 (process_full_type_unit): Update.
3848 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3849
5989a64e
SM
38502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3851
3852 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3853 then introduce a new dwarf2_per_objfile type.
3854 <read_line_string>: Move to the new dwarf2_per_objfile type.
3855 <objfile>: Likewise.
3856 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3857 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3858 dwarf2_per_objfile->per_bfd.
3859 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3860 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3861 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3862 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3863 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3864 (dwarf2_per_objfile::locate_sections): Rename to...
3865 (dwarf2_per_bfd::locate_sections): ... this.
3866 (dwarf2_per_objfile::get_cutu): Rename to...
3867 (dwarf2_per_bfd::get_cutu): ... this.
3868 (dwarf2_per_objfile::get_cu): Rename to...
3869 (dwarf2_per_bfd::get_cu): ... this.
3870 (dwarf2_per_objfile::get_tu): Rename to...
3871 (dwarf2_per_bfd::get_tu): ... this.
3872 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3873 (dwarf2_per_bfd::allocate_per_cu): ... this.
3874 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3875 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3876 (get_gdb_index_contents_ftype): Change parameter from
3877 dwarf2_per_objfile to dwarf2_per_bfd.
3878 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3879 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3880
a50264ba
TT
38812020-05-27 Tom Tromey <tom@tromey.com>
3882 Simon Marchi <simon.marchi@efficios.com>
3883
3884 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3885 (allocate_piece_closure): Set "per_objfile" member.
3886 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3887 (locexpr_describe_location, loclist_describe_location): Use new
3888 member.
3889 * dwarf2/read.c (read_call_site_scope)
3890 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3891 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3892 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3893 handle_data_member_location): Set per_objfile member.
3894 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3895 member.
3896 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3897
d3473f0c
TT
38982020-05-27 Tom Tromey <tom@tromey.com>
3899
3900 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3901 allocate_signatured_type>: Declare new methods.
3902 <m_num_psymtabs>: New member.
3903 (struct dwarf2_per_cu_data) <index>: New member.
3904 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3905 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3906 (create_cu_from_index_list): Use allocate_per_cu.
3907 (create_signatured_type_table_from_index)
3908 (create_signatured_type_table_from_debug_names)
3909 (create_debug_type_hash_table, add_type_unit)
3910 (read_comp_units_from_section): Use allocate_signatured_type.
3911
5717c425
TT
39122020-05-27 Tom Tromey <tom@tromey.com>
3913
3914 * psymtab.c (partial_map_expand_apply)
3915 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3916 (psym_lookup_global_symbol_language)
3917 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3918 (psym_print_stats, psym_expand_symtabs_for_function)
3919 (psym_map_symbol_filenames, psym_map_matching_symbols)
3920 (psym_expand_symtabs_matching)
3921 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3922 (maintenance_check_psymtabs): Update.
3923 * psympriv.h (struct partial_symtab) <readin_p,
3924 get_compunit_symtab>: Add objfile parameter.
3925 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3926 Likewise.
3927 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3928 get_compunit_symtab>: Likewise.
3929 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3930
45940949
TT
39312020-05-27 Tom Tromey <tom@tromey.com>
3932
3933 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3934 member.
3935 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3936 (create_cu_from_index_list)
3937 (create_signatured_type_table_from_index)
3938 (create_signatured_type_table_from_debug_names)
3939 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3940 (dwarf2_create_include_psymtab)
3941 (create_debug_type_hash_table, add_type_unit)
3942 (create_type_unit_group, read_comp_units_from_section)
3943 (dwarf2_compute_name, create_cus_hash_table)
3944 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3945 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3946 obstack.
3947 (dw2_get_real_path): Likewise. Change argument to
3948 dwarf2_per_objfile.
3949
f8c6d152
LM
39502020-05-27 Luis Machado <luis.machado@linaro.org>
3951
3952 PR tdep/26000
3953 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3954 for ldrd (immediate).
3955
e98d2e6d
PW
39562020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3957
3958 * command.h: Add comment giving the name of class_tui.
3959 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3960 create the fake command for the help for class_tui.
3961
53a47a3e
TT
39622020-05-26 Tom Tromey <tromey@adacore.com>
3963
3964 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3965 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3966 (val_atr): New function.
3967 (value_val_atr): Use it.
3968 * ada-valprint.c (print_optional_low_bound): Change low bound
3969 handling for enums.
3970 (val_print_packed_array_elements): Don't call discrete_position.
3971 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3972 discrete_position for enum types.
3973 * language.c (default_print_array_index): Change type.
3974 * language.h (struct language_defn) <la_print_array_index>: Add
3975 index_type parameter, change type of index_value.
3976 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3977 (default_print_array_index): Update.
3978 * valprint.c (maybe_print_array_index): Don't call
3979 value_from_longest. Update.
3980 (value_print_array_elements): Don't call discrete_position.
3981
0bc2354b
TT
39822020-05-26 Tom Tromey <tromey@adacore.com>
3983
3984 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3985 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3986
1218a4bf
CDA
39872020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3988
3989 PR gdb/13519
3990 * avr-tdep.c (avr_integer_to_address): Return data or code
3991 address accordingly to the second 'type' argument of the
3992 function.
3993
92651b1d
MW
39942020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3995
3996 * infcmd.c, inferior.h: (construct_inferior_arguments):
3997 Moved function from here to gdbsupport/common-inferior.{h,cc}
3998
0a4f5f8c
TT
39992020-05-23 Tom Tromey <tom@tromey.com>
4000
4001 Revert commit eca1f90c:
4002 * NEWS: Remove entry for completion styling.
4003 * completer.c (_rl_completion_prefix_display_length): Move
4004 declaration later.
4005 (gdb_fnprint): Revert.
4006 (gdb_display_match_list_1): Likewise.
4007 * cli/cli-style.c (completion_prefix_style)
4008 (completion_difference_style, completion_suffix_style): Remove.
4009 (_initialize_cli_style): Revert.
4010 * cli/cli-style.h (completion_prefix_style)
4011 (completion_difference_style, completion_suffix_style): Don't
4012 declare.
4013
e08bd6c5
PA
40142020-05-24 Pedro Alves <palves@redhat.com>
4015
4016 * symtab.c (completion_list_add_name): Return boolean indication
4017 of whether the symbol matched.
4018 (completion_list_add_symbol): Don't try to remove C++ aliases if
4019 the symbol didn't match in the first place.
4020 * symtab.h (completion_list_add_name): Return bool.
4021
ceacbf6e
SM
40222020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4023
4024 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4025 type::field.
4026
26f16254
JB
40272020-05-23 Joel Brobecker <brobecker@adacore.com>
4028
4029 GDB 9.2 released.
4030
eca1f90c
TT
40312020-05-23 Tom Tromey <tom@tromey.com>
4032
4033 * NEWS: Add entry for completion styling.
4034 * completer.c (_rl_completion_prefix_display_length): Move
4035 declaration earlier.
4036 (gdb_fnprint): Use completion_style.
4037 (gdb_display_match_list_1): Likewise.
4038 * cli/cli-style.c (completion_prefix_style)
4039 (completion_difference_style, completion_suffix_style): New
4040 globals.
4041 (_initialize_cli_style): Register new globals.
4042 * cli/cli-style.h (completion_prefix_style)
4043 (completion_difference_style, completion_suffix_style): Declare.
4044
51e2cfa2
PA
40452020-05-23 Pedro Alves <palves@redhat.com>
4046
4047 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4048 (parse_escape): Use ISDIGIT instead of isdigit.
4049 (puts_debug): Use gdb_isprint instead of isprint.
4050 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4051 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4052 ISSPACE instead of isspace.
4053 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4054 instead of isspace.
4055 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4056 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4057 instead of isxdigit and ISDIGIT instead of isdigit.
4058
80fc5e77
SM
40592020-05-22 Simon Marchi <simon.marchi@efficios.com>
4060
4061 * gdbtypes.h (struct type) <field>: New method.
4062 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4063 or type::field.
4064
3cabb6b0
SM
40652020-05-22 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4068 (TYPE_FIELDS): Use type::fields. Change all call sites that
4069 modify the propery to use type::set_fields instead.
4070
1f704f76
SM
40712020-05-22 Simon Marchi <simon.marchi@efficios.com>
4072
4073 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4074 type::num_fields instead.
4075
5e33d5f4
SM
40762020-05-22 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4079 methods.
4080 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4081 that modify the number of fields to use type::set_num_fields
4082 instead.
4083
9392ebb3
TT
40842020-05-22 Tom Tromey <tromey@adacore.com>
4085
4086 * compile/compile-object-load.h (munmap_list_free): Don't
4087 declare.
4088
7c13f4e8
AB
40892020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4090
4091 * annotate.c (annotate_source_line): Update return type, add call
4092 to update current symtab and line.
4093 * annotate.h (annotate_source_line): Update return type, and
4094 extend header comment.
4095 * source.c (info_line_command): Check annotation_level before
4096 calling annotate_source_line.
4097 * stack.c (print_frame_info): If calling annotate_source_line
4098 returns true, then don't print any other source line information.
4099
aa370940
SM
41002020-05-21 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4103
84d53fa9
SM
41042020-05-21 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * coffread.c (patch_type): Remove NULL check before xfree.
4107 * corefile.c (set_gnutarget): Likewise.
4108 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4109 * exec.c (build_section_table): Likewise.
4110 * remote.c (remote_target::pass_signals): Likewise.
4111 * utils.c (n_spaces): Likewise.
4112 * cli/cli-script.c (document_command): Likewise.
4113 * i386-windows-tdep.c (core_process_module_section): Likewise.
4114 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4115
9d428aae
SM
41162020-05-20 Simon Marchi <simon.marchi@efficios.com>
4117
4118 * symfile.c (reread_symbols): Clear objfile's section_offsets
4119 vector and section indices, re-compute them by calling
4120 sym_offsets.
4121
250106a7
TT
41222020-05-20 Tom Tromey <tromey@adacore.com>
4123
4124 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4125 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4126
9a0bacfb
TV
41272020-05-20 Tom de Vries <tdevries@suse.de>
4128
4129 PR symtab/25833
4130 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4131
7b958a48
AM
41322020-05-20 Alan Modra <amodra@gmail.com>
4133
4134 PR 25993
4135 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4136 bfd_set_filename.
4137 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4138 passed to bfd_set_filename.
4139 * symfile-mem.c (add_vsyscall_page): Likewise for string
4140 passed to symbol_file_add_from_memory.
4141 (symbol_file_add_from_memory): Make name param a const char* and
4142 don't strdup.
4143
c7e97679
AM
41442020-05-20 Alan Modra <amodra@gmail.com>
4145
4146 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4147 rather than accessing bfd->filename directly.
4148 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4149 and use bfd_section_name.
4150 * dwarf2/frame.c (decode_frame_entry): Likewise.
4151 * exec.c (exec_set_section_address): Likewise.
4152 * solib-aix.c (solib_aix_bfd_open): Likewise.
4153 * stap-probe.c (get_stap_base_address): Likewise.
4154 * symfile.c (reread_symbols): Likewise.
4155
563c591b
TT
41562020-05-19 Tom Tromey <tromey@adacore.com>
4157
4158 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4159
f408d82c
SM
41602020-05-19 Simon Marchi <simon.marchi@efficios.com>
4161
4162 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4163
98c59b52
PA
41642020-05-19 Pedro Alves <palves@redhat.com>
4165
4166 * NEWS (set exec-file-mismatch): Adjust entry.
4167 * exec.c: Include "build-id.h".
4168 (validate_exec_file): Try to match build IDs instead of filenames.
4169 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4170 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4171 and pass down 'warn_if_slow'.
4172 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4173 gdb_bfd_open_closure to pass it down.
4174 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4175
4111f652
PA
41762020-05-19 Pedro Alves <palves@redhat.com>
4177
4178 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4179 * target.c (target_fileio_open_1): Rename to target_fileio_open
4180 and make extern. Use bool.
4181 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4182 (target_fileio_read_alloc_1): Adjust.
4183 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4184 (target_fileio_open_warn_if_slow): Delete declaration.
4185
ad80db5b
PA
41862020-05-19 Pedro Alves <palves@redhat.com>
4187
4188 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4189 Adjust all callers.
4190
1d6ce4d3
YS
41912020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4192
4193 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4194 whether disp is negative.
4195
9005fbbb
SM
41962020-05-19 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * symfile.h (struct symfile_segment_data)
4199 <~symfile_segment_data>: Remove.
4200 <segment_info>: Change to std::vector.
4201 * symfile.c (default_symfile_segments): Update.
4202 * elfread.c (elf_symfile_segments): Update.
4203
68b888ff
SM
42042020-05-19 Simon Marchi <simon.marchi@efficios.com>
4205
4206 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4207 <segments>: New.
4208 <segment_bases, segment_sizes>: Remove.
4209 * symfile.c (default_symfile_segments): Update.
4210 * elfread.c (elf_symfile_segments): Update.
4211 * remote.c (remote_target::get_offsets): Update.
4212 * solib-target.c (solib_target_relocate_section_addresses):
4213 Update.
4214
62982abd
SM
42152020-05-19 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * symfile.h (struct symfile_segment_data): Initialize fields.
4218 <~symfile_segment_data>: Add.
4219 (symfile_segment_data_up): New.
4220 (struct sym_fns) <sym_segments>: Return a
4221 symfile_segment_data_up.
4222 (default_symfile_segments): Return a symfile_segment_data_up.
4223 (free_symfile_segment_data): Remove.
4224 (get_symfile_segment_data): Return a symfile_segment_data_up.
4225 * symfile.c (default_symfile_segments): Likewise.
4226 (get_symfile_segment_data): Likewise.
4227 (free_symfile_segment_data): Remove.
4228 (symfile_find_segment_sections): Update.
4229 * elfread.c (elf_symfile_segments): Return a
4230 symfile_segment_data_up.
4231 * remote.c (remote_target::get_offsets): Update.
4232 * solib-target.c (solib_target_relocate_section_addresses):
4233 Update.
4234 * symfile-debug.c (debug_sym_segments): Return a
4235 symfile_segment_data_up.
4236
7f204339
RO
42372020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4238
e52a0f1b
RO
4239 PR build/25981
4240 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4241 Hardcode register numbers.
4242
7f204339
RO
4243 PR build/25981
4244 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4245 procfs_find_LDT_entry): Remove.
4246 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4247 procfs_find_LDT_entry): Remove.
4248 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4249 Remove.
4250
7f32a4d5
PA
42512020-05-17 Pedro Alves <palves@redhat.com>
4252 Andrew Burgess <andrew.burgess@embecosm.com>
4253 Keno Fischer <keno@juliacomputing.com>
4254
4255 PR gdb/25741
4256 * breakpoint.c (build_target_condition_list): Update comments.
4257 (build_target_command_list): Update comments and skip matching
4258 locations.
4259 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4260 a separate function. Simplify "set breakpoint auto-hw off"
4261 handling.
4262 (insert_breakpoints): Update comment.
4263 (tracepoint_locations_match): New parameter. For breakpoints,
4264 compare location types too, if the caller wants to.
4265 (handle_automatic_hardware_breakpoints): New functions.
4266 (bp_location_is_less_than): Also sort by location type and
4267 hardware breakpoint length.
4268 (update_global_location_list): Handle "set breakpoint auto-hw on"
4269 here.
4270 (update_breakpoint_locations): Ask breakpoint_locations_match to
4271 ignore location types.
4272
7d93a1e0
SM
42732020-05-16 Simon Marchi <simon.marchi@efficios.com>
4274
4275 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4276 type::name instead.
4277
d0e39ea2
SM
42782020-05-16 Simon Marchi <simon.marchi@efficios.com>
4279
4280 * gdbtypes.h (struct type) <name, set_name>: New methods.
4281 (TYPE_CODE): Use type::name. Change all call sites used to set
4282 the name to use type::set_name instead.
4283
2dab0c7b
TT
42842020-05-16 Tom Tromey <tom@tromey.com>
4285
4286 * top.c (quit_force): Update.
4287 * infrun.c (handle_no_resumed): Update.
4288 * top.h (all_uis): New function.
4289 (ALL_UIS): Remove.
4290
59f7bd8d
SM
42912020-05-16 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4294
9bf058f0
PA
42952020-05-16 Pedro Alves <palves@redhat.com>
4296
4297 * ia64-linux-nat.c
4298 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4299 Declare method.
4300 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4301
8f86ae1a
SM
43022020-05-15 Simon Marchi <simon.marchi@efficios.com>
4303
4304 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4305 (sparc64_adi_info): Likewise.
4306
d6bc0792
TT
43072020-05-15 Tom Tromey <tom@tromey.com>
4308
4309 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4310 block_objfile.
4311 (lookup_objfile_from_block): Remove.
4312 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4313 (lookup_global_symbol): Use block_objfile.
4314 * symtab.h (lookup_objfile_from_block): Don't declare.
4315 * printcmd.c (clear_dangling_display_expressions): Use
4316 block_objfile.
4317 * parse.c (operator_check_standard): Use block_objfile.
4318
8c14c3a3
TT
43192020-05-15 Tom Tromey <tom@tromey.com>
4320
4321 * language.c (language_alloc_type_symbol): Set
4322 SYMBOL_SECTION.
4323 * symtab.c (initialize_objfile_symbol): Remove.
4324 (allocate_symbol): Remove.
4325 (allocate_template_symbol): Remove.
4326 * dwarf2/read.c (fixup_go_packaging): Use "new".
4327 (new_symbol): Use "new".
4328 (read_variable): Don't call initialize_objfile_symbol. Use
4329 "new".
4330 (read_func_scope): Use "new".
4331 * xcoffread.c (process_xcoff_symbol): Don't call
4332 initialize_objfile_symbol.
4333 (SYMBOL_DUP): Remove.
4334 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4335 "new".
4336 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4337 (allocate_template_symbol): Don't declare.
4338 (struct symbol): Add copy constructor. Change defaults.
4339 * jit.c (finalize_symtab): Use "new".
4340 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4341 Use "new".
4342 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4343 (common_block_end): Use "new".
4344 * mdebugread.c (parse_symbol): Use "new".
4345 (new_symbol): Likewise.
4346
5b4a1a8d
PW
43472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4348
4349 * NEWS: Mention changes to help and apropos.
4350
57b4f16e
PW
43512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4352
4353 * command.h (enum command_class): Improve comments, document
4354 that class_alias is for user-defined aliases, give the class
4355 name for each class, remove unused class_xdb.
4356 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4357 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4358 by a precise class.
4359 * infcmd.c (_initialize_infcmd): Likewise.
4360 * reverse.c (_initialize_reverse): Likewise.
4361 * stack.c (_initialize_stack): Likewise.
4362 * symfile.c (_initialize_symfile): Likewise.
4363 * tracepoint.c (_initialize_tracepoint): Likewise.
4364
7c05caf7
PW
43652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4366
4367 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4368 when their aliased command is traversed.
4369 (help_cmd): Add fput_command_names_styled call to
4370 output command name and aliases when command has an alias.
4371
3b3aaacb
PW
43722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4373
4374 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4375 * cli/cli-decode.c (help_cmd_list): Declare as static,
4376 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4377 a command together with the command.
4378 (fput_command_name_styled, fput_command_names_styled): New functions.
4379 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4380 fput_command_name_styled.
4381 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4382 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4383
7aa1b46f
PW
43842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4385
4386 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4387 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4388 * command.h (cmd_show_list): Likewise.
4389 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4390 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4391
89bcba74
PW
43922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4393
4394 * unittests/command-def-selftests.c (traverse_command_structure):
4395 Verify all commands of a list have the same prefix command and
4396 that only the top cmdlist commands have a null prefix.
4397
3f4d92eb
PW
43982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4399
4400 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4401 as prefix, not one of its aliases.
4402 (set_cmd_prefix): Remove.
4403 (do_add_cmd): Centralize the setting of the prefix of a command, when
4404 command is defined after its full chain of prefix commands.
4405 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4406 (add_setshow_cmd_full): Likewise.
4407 (update_prefix_field_of_prefixed_commands): New function.
4408 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4409 update_prefix_field_of_prefixed_commands.
4410 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4411 addresses of remote_set_cmdlist and remote_show_cmdlist given
4412 as argument, not the address of an argument.
4413 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4414 * gdb/remote.c (_initialize_remote): Likewise.
4415
0605465f
PW
44162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4417
4418 * cli/cli-cmds.c (alias_command): Check for an existing alias
4419 using lookup_cmd_composition, as valid_command_p is too strict
4420 and forbids aliases that are the prefix of an existing alias
4421 or command.
4422 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4423 command is properly recognised as a valid command.
4424
58e6ac70
PW
44252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4426
4427 * unittests/help-doc-selftests.c: Rename to
4428 unittests/command-def-selftests.c
4429 * unittests/command-def-selftests.c (help_doc_tests): Update some
4430 comments.
4431 (command_structure_tests, traverse_command_structure): New namespace
4432 and function.
4433 (command_structure_invariants_tests): New function.
4434 (_initialize_command_def_selftests) Renamed from
4435 _initialize_help_doc_selftests, register command_structure_invariants
4436 selftest.
4437
a7b9ceb8
PW
44382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4439
4440 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4441 an alias of 'show'.
4442
b2188a06
JB
44432020-05-15 Joel Brobecker <brobecker@adacore.com>
4444
4445 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4446 ada_is_fixed_point_type. Update all callers.
4447 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4448 all callers.
4449 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4450 Update all callers.
4451 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4452 print_fixed_point_type. Update all callers.
4453 * ada-valprint.c (ada_value_print_num): Replace call to
4454 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4455
a51951c2
KB
44562020-05-14 Kevin Buettner <kevinb@redhat.com>
4457
4458 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4459 processors.
4460 (cpu_supports_bts): Add CV_AMD case.
4461
29d6859f
LM
44622020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4463 Simon Marchi <simon.marchi@efficios.com>
4464
4465 * infrun.c (stop_all_threads): Collect multiple wait events at
4466 each pass.
4467
78134374
SM
44682020-05-14 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4471 type::code instead.
4472
67607e24
SM
44732020-05-14 Simon Marchi <simon.marchi@efficios.com>
4474
4475 * gdbtypes.h (struct type) <code, set_code>: New methods.
4476 (TYPE_CODE): Use type::code. Change all call sites used to set
4477 the code to use type::set_code instead.
4478
a05575d3
TBA
44792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4480 Tom de Vries <tdevries@suse.de>
4481 Pedro Alves <palves@redhat.com>
4482
4483 PR threads/25478
4484 * infrun.c (stop_all_threads): Do NOT ignore
4485 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4486 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4487 received.
4488 (handle_no_resumed): Remove code handling a live inferior with no
4489 threads.
4490 * remote.c (has_single_non_exited_thread): New.
4491 (remote_target::update_thread_list): Do not delete a thread if is
4492 the last thread of the process.
4493 * thread.c (thread_select): Call delete_exited_threads instead of
4494 prune_threads.
4495
6ad82919
TBA
44962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4497
4498 * infrun.c (stop_all_threads): Enable/disable thread events of all
4499 targets. Move a debug message denoting the end of the function
4500 into the SCOPED_EXIT block.
4501
d890404b
TBA
45022020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4503
4504 * process-stratum-target.h: Include <set>.
4505 (all_non_exited_process_targets, switch_to_target_no_thread): New
4506 function declarations.
4507 * process-stratum-target.c (all_non_exited_process_targets)
4508 (switch_to_target_no_thread): New function implementations.
4509
293b3ebc
TBA
45102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4511
4512 * infrun.c (handle_inferior_event): Extract out a piece of code
4513 into...
4514 (mark_non_executing_threads): ...this new function.
4515
7ca9b62a
TBA
45162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4517
4518 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4519 use.
4520
fc75c28b
TBA
45212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4522
4523 * regcache.c (regcache_read_pc_protected): New function
4524 implementation that returns 0 if the PC cannot read via
4525 'regcache_read_pc'.
4526 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4527 instead of 'regcache_read_pc'.
4528 (keep_going_pass_signal): Ditto.
4529
a89febbd
TT
45302020-05-13 Tom Tromey <tromey@adacore.com>
4531
4532 * ada-lang.c (align_value): Remove.
4533 (ada_template_to_fixed_record_type_1): Use align_up.
4534
f7e23710
TBA
45352020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4536
4537 * async-event.c: Update the copyright year.
4538 * async-event.h: Update the copyright year.
4539
02ff80c2
SM
45402020-05-12 Simon Marchi <simon.marchi@efficios.com>
4541
4542 * objfiles.h (is_addr_in_objfile,
4543 shared_objfile_contains_address_p): Return bool.
4544 * objfile.c (is_addr_in_objfile,
4545 shared_objfile_contains_address_p): Return bool.
4546
4fd6c7e8
TT
45472020-05-11 Tom Tromey <tromey@adacore.com>
4548
4549 * cli/cli-cmds.c (info_command): Restore.
4550 (_initialize_cli_cmds): Use add_prefix_command for "info".
4551 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4552
5eb68a39
TT
45532020-05-11 Tom Tromey <tromey@adacore.com>
4554
4555 * ada-lang.c (ada_value_primitive_field): Now public.
4556 * ada-lang.h (ada_value_primitive_field): Declare.
4557 * ada-valprint.c (print_field_values): Use
4558 ada_value_primitive_field for wrapper fields.
4559
7666722f
TV
45602020-05-11 Tom de Vries <tdevries@suse.de>
4561
4562 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4563 MODULE_DOMAIN.
4564
3ee6bb11
TV
45652020-05-11 Tom de Vries <tdevries@suse.de>
4566
4567 PR symtab/25941
4568 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4569 with length 0, if not gdb-produced.
4570 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4571
43434996
TV
45722020-05-09 Tom de Vries <tdevries@suse.de>
4573
4574 PR gdb/25955
4575 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4576 calculation.
4577
2f78cffc
TT
45782020-05-09 Tom Tromey <tom@tromey.com>
4579
4580 * top.c (server_command): Now bool.
4581 * top.h (server_command): Now bool.
4582
4f7bc5ed
TT
45832020-05-08 Tom Tromey <tromey@adacore.com>
4584
4585 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4586 already being processed.
4587
8be4b118
TT
45882020-05-08 Tom Tromey <tom@tromey.com>
4589
4590 * printcmd.c (struct display) <next>: Remove.
4591 <display>: New constructor.
4592 <exp_string>: Now a std::string.
4593 <enabled_p>: Now a bool.
4594 (display_number): Move definition earlier.
4595 (displays): Rename from display_chain. Now a std::vector.
4596 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4597 (display_command): Update.
4598 (do_one_display, disable_display)
4599 (enable_disable_display_command, do_enable_disable_display):
4600 Update.
4601 (free_display): Remove.
4602 (clear_displays): Rewrite.
4603 (delete_display): Update.
4604 (map_display_numbers): Use function_view. Remove "data"
4605 parameter. Update.
4606 (do_delete_display): Remove.
4607 (undisplay_command): Update.
4608 (do_one_display, do_displays, disable_display)
4609 (info_display_command): Update.
4610 (do_enable_disable_display): Remove.
4611 (enable_disable_display_command)
4612 (clear_dangling_display_expressions): Update.
4613
94c93c35
TT
46142020-05-08 Tom Tromey <tom@tromey.com>
4615
4616 * symtab.c (set_symbol_cache_size)
4617 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4618 (maintenance_print_symbol_cache_statistics): Update.
4619 * symmisc.c (print_symbol_bcache_statistics)
4620 (print_objfile_statistics, maintenance_print_objfiles)
4621 (maintenance_info_symtabs, maintenance_check_symtabs)
4622 (maintenance_expand_symtabs, maintenance_info_line_tables):
4623 Update.
4624 * symfile-debug.c (set_debug_symfile): Update.
4625 * source.c (forget_cached_source_info): Update.
4626 * python/python.c (gdbpy_progspaces): Update.
4627 * psymtab.c (maintenance_info_psymtabs): Update.
4628 * probe.c (parse_probes): Update.
4629 * linespec.c (iterate_over_all_matching_symtabs)
4630 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4631 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4632 * exec.c (exec_target::close): Update.
4633 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4634 * breakpoint.c (print_one_breakpoint_location)
4635 (create_longjmp_master_breakpoint)
4636 (create_std_terminate_master_breakpoint): Update.
4637 * progspace.c (program_spaces): Now a std::vector.
4638 (maybe_new_address_space): Update.
4639 (add_program_space): Remove.
4640 (program_space::program_space): Update.
4641 (remove_program_space): Update.
4642 (number_of_program_spaces): Remove.
4643 (print_program_space, update_address_spaces): Update.
4644 * progspace.h (program_spaces): Change type.
4645 (ALL_PSPACES): Remove.
4646 (number_of_program_spaces): Don't declare.
4647 (struct program_space) <next>: Remove.
4648
a1fd1ac9
TT
46492020-05-08 Tom Tromey <tom@tromey.com>
4650
4651 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4652 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4653 (enable_break): Update.
4654 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4655 (frv_fdpic_find_canonical_descriptor): Update.
4656 (frv_fetch_objfile_link_map): Update.
4657 * progspace.c (program_space::free_all_objfiles): Update.
4658 (program_space::solibs): New method.
4659 * progspace.h (struct program_space) <solibs>: New method.
4660 * solist.h (master_so_list): Don't declare.
4661 (ALL_SO_LIBS): Remove.
4662 * solib.h (so_list_head): Remove.
4663 (update_solib_list): Update comment.
4664 * solib.c (master_so_list): Remove.
4665 (solib_used, update_solib_list, solib_add)
4666 (info_sharedlibrary_command, clear_solib)
4667 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4668
38eae084
TT
46692020-05-08 Tom Tromey <tom@tromey.com>
4670
4671 * extension.c (extension_languages): Now a std::array.
4672 (ALL_EXTENSION_LANGUAGES): Remove.
4673 (get_ext_lang_defn, get_ext_lang_of_file)
4674 (eval_ext_lang_from_control_command): Update.
4675 (finish_ext_lang_initialization)
4676 (auto_load_ext_lang_scripts_for_objfile)
4677 (ext_lang_type_printers::ext_lang_type_printers)
4678 (apply_ext_lang_type_printers)
4679 (ext_lang_type_printers::~ext_lang_type_printers)
4680 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4681 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4682 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4683 (get_matching_xmethod_workers, ext_lang_colorize)
4684 (ext_lang_before_prompt): Update.
4685 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4686
596dc4ad
TT
46872020-05-08 Tom Tromey <tom@tromey.com>
4688
4689 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4690 overload.
4691 <swap_string, m_string>: Remove.
4692 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4693 Update.
4694 * stabsread.c (define_symbol, read_type): Update.
4695 * linespec.c (find_linespec_symbols): Update.
4696 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4697 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4698 * dbxread.c (read_dbx_symtab): Update.
4699 * cp-support.h (cp_canonicalize_string_full)
4700 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4701 Return unique_xmalloc_ptr.
4702 * cp-support.c (inspect_type): Update.
4703 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4704 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4705 Likewise.
4706 * c-typeprint.c (print_name_maybe_canonical): Update.
4707 * break-catch-throw.c (check_status_exception_catchpoint):
4708 Update.
4709
bf4cb9be
TV
47102020-05-08 Tom de Vries <tdevries@suse.de>
4711
4712 * infrun.c (follow_fork): Copy current_line and current_symtab to
4713 child thread.
4714
a1b68f28
SM
47152020-05-07 Simon Marchi <simon.marchi@efficios.com>
4716
4717 * async-event.c (struct async_signal_handler, struct
4718 async_event_handler): Reformat, remove typedef.
4719
98d48915
SM
47202020-05-07 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4723 access thistype->main_type->dyn_prop_list directly.
4724
7aa91313
SM
47252020-05-07 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4728 (remove_dyn_prop): Remove. Update all users to use
4729 type::remove_dyn_prop.
4730 * gdbtypes.c (remove_dyn_prop): Rename to...
4731 (type::remove_dyn_prop): ... this.
4732
5c54719c
SM
47332020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4734
4735 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4736 (add_dyn_prop): Remove. Update all users to use
4737 type::add_dyn_prop.
4738 * gdbtypes.c (add_dyn_prop): Rename to...
4739 (type::add_dyn_prop): ... this.
4740
24e99c6c
SM
47412020-05-07 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4744 (get_dyn_prop): Remove. Update all users to use
4745 type::dyn_prop.
4746 * gdbtypes.c (get_dyn_prop): Rename to...
4747 (type::dyn_prop): ... this.
4748
0d4bf016
SM
47492020-05-06 Simon Marchi <simon.marchi@efficios.com>
4750
4751 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4752
ac4a4f1c
SM
47532020-05-06 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4756 instruction, skip it if it's there.
4757
a3bbacc1
SM
47582020-05-05 Simon Marchi <simon.marchi@efficios.com>
4759
4760 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4761
c3236f84
SM
47622020-05-04 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4765 * gdbtypes.c (recursive_dump_type): Remove use of
4766 TYPE_INCOMPLETE.
4767
3b6acaee
TT
47682020-05-03 Tom Tromey <tom@tromey.com>
4769
4770 * breakpoint.c (catch_command, tcatch_command): Remove.
4771 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4772 add_show_prefix_cmd.
4773 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4774 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4775 Remove.
4776 (add_internal_problem_command): Use add_basic_prefix_cmd,
4777 add_show_prefix_cmd.
4778 * mips-tdep.c (set_mipsfpu_command): Remove.
4779 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4780 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4781 (_initialize_index_cache): Use add_basic_prefix_cmd.
4782 * memattr.c (dummy_cmd): Remove.
4783 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4784 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4785 (_initialize_tui_win): Use add_basic_prefix_cmd,
4786 add_show_prefix_cmd.
4787 * cli/cli-logging.c (set_logging_command): Remove.
4788 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4789 add_show_prefix_cmd.
4790 (show_logging_command): Remove.
4791 * target.c (target_command): Remove.
4792 (add_target): Use add_basic_prefix_cmd.
4793
a51119cd
HD
47942020-05-02 Hannes Domani <ssbssa@yahoo.de>
4795
4796 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4797
652fc23a 47982020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4799
652fc23a
PW
4800 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4801 info_command.
4802
117539e6
KR
48032020-04-30 Kamil Rytarowski <n54@gmx.com>
4804
4805 * nbsd-nat.c (nbsd_enable_proc_events)
4806 (nbsd_nat_target::post_startup_inferior): Add.
4807 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4808 (nbsd_nat_target::update_thread_list): Rewrite.
4809 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4810 "PTRACE_LWP_CREATE".
4811 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4812
102e38eb 48132020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4814
102e38eb
PW
4815 * stack.c (_initialize_stack): Remove duplicated creation
4816 of "frame" command and "f" alias.
4817
ee9d1e5f
HD
48182020-04-30 Hannes Domani <ssbssa@yahoo.de>
4819
4820 PR gdb/18706
4821 * gdbtypes.c (check_typedef): Calculate size of array of
4822 stubbed type.
4823
627c7fb8
HD
48242020-04-30 Hannes Domani <ssbssa@yahoo.de>
4825
4826 PR gdb/15559
4827 * i386-tdep.c (i386_push_dummy_call): Call
4828 i386_thiscall_push_dummy_call.
4829 (i386_thiscall_push_dummy_call): New function.
4830 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4831 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4832 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4833
ffc2844e
SM
48342020-04-29 Simon Marchi <simon.marchi@efficios.com>
4835
4836 * gdbarch.sh (do_read): Add shellcheck disable directive for
4837 warning SC2162.
4838
1207375d
SM
48392020-04-29 Simon Marchi <simon.marchi@efficios.com>
4840
4841 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4842 "referenced but not assigned" warning.
4843
9fdb2916
SM
48442020-04-29 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * gdbarch.sh: Remove code that sets fallbackdefault.
4847
759cea5e
SM
48482020-04-29 Simon Marchi <simon.marchi@efficios.com>
4849
4850 * gdbarch.sh: Use shell operators && and || instead of
4851 -a and -o.
4852
cb02ab24
SM
48532020-04-29 Simon Marchi <simon.marchi@efficios.com>
4854
4855 * gdbarch.sh: Use $(...) instead of `...`.
4856
a6fc5ffc
SM
48572020-04-29 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * gdbarch.sh: Use double quotes around variables.
4860
8d113d13
SM
48612020-04-29 Simon Marchi <simon.marchi@efficios.com>
4862
4863 * gdbarch.sh: Use %s with printf, instead of variables in the
4864 format string.
4865
ed6acedd
TT
48662020-04-29 Tom Tromey <tromey@adacore.com>
4867
4868 PR ada/25875:
4869 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4870 type fields here.
4871 (read_enumeration_type): Call
4872 update_enumeration_type_from_children later. Update comments.
4873 (process_enumeration_scope): Don't create type fields.
4874
b68b1b58
KR
48752020-04-29 Kamil Rytarowski <n54@gmx.com>
4876
4877 * nbsd-tdep.c: Include "xml-syscall.h".
4878 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4879
f94b2e03
KR
48802020-04-29 Kamil Rytarowski <n54@gmx.com>
4881
4882 * nbsd-nat.c: Include "sys/wait.h".
4883 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4884 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4885 (nbsd_nat_target::remove_exec_catchpoint)
4886 (nbsd_nat_target::set_syscall_catchpoint): Add.
4887 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4888 (nbsd_nat_target::insert_exec_catchpoint)
4889 (nbsd_nat_target::remove_exec_catchpoint)
4890 (nbsd_nat_target::set_syscall_catchpoint): Add.
4891 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4892 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4893 `nbsd_get_syscall_number'.
4894
fc49bc72
TT
48952020-04-29 Tom Tromey <tom@tromey.com>
4896
4897 * stack.c (print_block_frame_labels): Remove.
4898
d642b692
HD
48992020-04-29 Hannes Domani <ssbssa@yahoo.de>
4900
4901 PR gdb/17320
4902 * ada-valprint.c (val_print_packed_array_elements): Move array
4903 end bracket to new line.
4904 (ada_val_print_string): Remove extra spaces before first array
4905 element.
4906 * c-valprint.c (c_value_print_array): Likewise.
4907 * m2-valprint.c (m2_print_array_contents): Likewise.
4908 (m2_value_print_inner): Likewise.
4909 * p-valprint.c (pascal_value_print_inner): Likewise.
4910 * valprint.c (generic_val_print_array): Likewise.
4911 (value_print_array_elements): Move first array element and array
4912 end bracket to new line.
4913
ea90f227
TV
49142020-04-29 Tom de Vries <tdevries@suse.de>
4915
4916 PR symtab/25889
4917 * linespec.c (find_method): Fix ix calculation.
4918
4498ef4f
KR
49192020-04-28 Kamil Rytarowski <n54@gmx.com>
4920
4921 * syscalls/update-netbsd.sh: New file.
4922 * syscalls/netbsd.xml: Regenerate.
4923 * data-directory/Makefile.in: Register `netbsd.xml' in
4924 `SYSCALLS_FILES'.
4925
a55e30b5
SM
49262020-04-28 Simon Marchi <simon.marchi@efficios.com>
4927
4928 * syscalls/update-freebsd.sh: Add double quotes.
4929
2b2fbab8
TT
49302020-04-28 Tom Tromey <tom@tromey.com>
4931
4932 * NEWS: Update.
4933 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4934 (cmdpy_init): Allow class_tui.
4935
a65189c9
TV
49362020-04-28 Mark Williams <mark@myosotissp.com>
4937
4938 PR gdb/24480
4939 * dwarf2read.c: Add missing assingments to list_in_scope when
4940 start_symtab was already called.
4941
1b95cdb7
SM
49422020-04-28 Simon Marchi <simon.marchi@efficios.com>
4943
4944 PR gdb/25881
4945 * dwarf2/read.c (offset_map_type): Use
4946 gdb:hash_enum<sect_offset> as hash function.
4947
15cd93d0
TV
49482020-04-28 Tom de Vries <tdevries@suse.de>
4949
4950 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4951 with DW_AT_signature.
4952
1eb39914
SM
49532020-04-27 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * configure.ac: Remove check for fs_base/gs_base in
4956 user_regs_struct.
4957 * configure: Re-generate.
4958 * config.in: Re-generate.
4959 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4960 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4961 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4962
991a3e2e
LM
49632020-04-27 Luis Machado <luis.machado@linaro.org>
4964
4965 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4966 problematic inline frame unwinding situation.
4967 * frame.c (frame_id_computed_p): New function.
4968 * frame.h (frame_id_computed_p): New prototype.
4969
361ba0e8
TT
49702020-04-26 Tom Tromey <tom@tromey.com>
4971
4972 * command.h (enum command_class) <class_pseudo>: Remove.
4973
bc3609fd
PW
49742020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4975
4976 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4977 and whitespace.
4978
b9771db7
KR
49792020-04-25 Kamil Rytarowski <n54@gmx.com>
4980
ec16513e
SM
4981 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4982 `PT_GET_PROCESS_STATE' block.
b9771db7 4983
7151c1af
TT
49842020-04-24 Tom Tromey <tom@tromey.com>
4985
4986 * symtab.h (symbol_get_demangled_name): Don't declare.
4987 * symtab.c (symbol_get_demangled_name): Remove.
4988 (general_symbol_info::natural_name)
4989 (general_symbol_info::demangled_name): Update.
4990
906bb4c5
TT
49912020-04-24 Tom Tromey <tom@tromey.com>
4992
4993 PR rust/25025:
4994 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4995
bcfe6157
TT
49962020-04-24 Tom Tromey <tom@tromey.com>
4997
4998 PR symtab/12707:
4999 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5000 exists.
5001 (new_symbol): Likewise.
5002 * compile/compile-object-load.c (get_out_value_type): Use
5003 symbol_matches_search_name.
5004
f049a313
TT
50052020-04-24 Tom Tromey <tom@tromey.com>
5006
5007 * dwarf2/read.c (add_partial_symbol): Do not call
5008 compute_and_set_names.
5009
76e288d1
TT
50102020-04-24 Tom Tromey <tom@tromey.com>
5011
5012 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5013 overload.
5014
2467f4f6
TT
50152020-04-24 Tom Tromey <tom@tromey.com>
5016
5017 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5018 (add_psymbol_to_list): New overload. Make old overload call new
5019 one.
5020 * psympriv.h (add_psymbol_to_list): New overload.
5021
e61108c9
TT
50222020-04-24 Tom Tromey <tom@tromey.com>
5023
5024 * dwarf2/read.c (partial_die_info::read) <case
5025 DW_AT_linkage_name>: Use value_as_string.
5026 (dwarf2_string_attr): Use value_as_string.
5027 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5028 method.
5029 * dwarf2/attribute.c (attribute::value_as_string): New method.
5030
8c87a452
TT
50312020-04-24 Tom Tromey <tom@tromey.com>
5032
5033 * symtab.c (general_symbol_info::natural_name)
5034 (general_symbol_info::demangled_name): Check for language_rust.
5035
787de330
TT
50362020-04-24 Tom Tromey <tom@tromey.com>
5037
5038 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5039 (dwarf2_physname): ... from here.
5040 (partial_die_info::read): Add Rust "{" hack.
5041
ff985671
TT
50422020-04-24 Tom Tromey <tom@tromey.com>
5043
5044 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5045 method.
5046 (symbol_set_demangled_name): Don't declare.
5047 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5048 symbol_set_demangled_name.
5049 (general_symbol_info::set_language)
5050 (general_symbol_info::compute_and_set_names): Update.
5051 * minsyms.c (minimal_symbol_reader::install): Update.
5052 * dwarf2/read.c (new_symbol): Update.
5053
1acda803
TT
50542020-04-24 Tom Tromey <tromey@adacore.com>
5055
5056 PR python/23662:
5057 * python/py-type.c (convert_field): Handle
5058 FIELD_LOC_KIND_DWARF_BLOCK.
5059 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5060 (typy_get_dynamic): Nw function.
5061 (type_object_getset): Add "dynamic".
5062 * NEWS: Add entry.
5063
d656f129
TT
50642020-04-24 Tom Tromey <tromey@adacore.com>
5065
5066 * ada-typeprint.c (print_choices, print_variant_part)
5067 (print_record_field_types_dynamic): New functions.
5068 (print_record_field_types): Use print_record_field_types_dynamic.
5069
7d79de9a
TT
50702020-04-24 Tom Tromey <tromey@adacore.com>
5071
5072 * dwarf2/read.c (handle_data_member_location): New overload.
5073 (dwarf2_add_field): Use it.
5074 (decode_locdesc): Add "computed" parameter. Update comment.
5075 * gdbtypes.c (is_dynamic_type_internal): Also look for
5076 FIELD_LOC_KIND_DWARF_BLOCK.
5077 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5078 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5079 virtual base classes.
5080 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5081 FIELD_LOC_KIND_DWARF_BLOCK.
5082
f8e89861
TT
50832020-04-24 Tom Tromey <tromey@adacore.com>
5084
5085 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5086 * gdbtypes.c (is_dynamic_type_internal): Check
5087 TYPE_HAS_DYNAMIC_LENGTH.
5088 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5089 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5090 New macros.
5091 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5092 constant.
5093
9c6a1327
TT
50942020-04-24 Tom Tromey <tromey@adacore.com>
5095
5096 * dwarf2/read.c (struct variant_field): Rewrite.
5097 (struct variant_part_builder): New.
5098 (struct nextfield): Remove "variant" field. Add "offset".
5099 (struct field_info): Add "current_variant_part" and
5100 "variant_parts".
5101 (alloc_discriminant_info): Remove.
5102 (alloc_rust_variant): New function.
5103 (quirk_rust_enum): Update.
5104 (dwarf2_add_field): Set "offset" member. Don't handle
5105 DW_TAG_variant_part.
5106 (offset_map_type): New typedef.
5107 (convert_variant_range, create_one_variant)
5108 (create_one_variant_part, create_variant_parts)
5109 (add_variant_property): New functions.
5110 (dwarf2_attach_fields_to_type): Call add_variant_property.
5111 (read_structure_type): Don't handle DW_TAG_variant_part.
5112 (handle_variant_part, handle_variant): New functions.
5113 (handle_struct_member_die): Use them.
5114 (process_structure_scope): Don't handle variant parts.
5115 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5116 (struct discriminant_info): Remove.
5117 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5118 (struct main_type) <flag_discriminated_union>: Remove.
5119 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5120 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5121 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5122 Update.
5123 * valops.c (value_union_variant): Remove.
5124 * value.h (value_union_variant): Don't declare.
5125
b249d2c2
TT
51262020-04-24 Tom Tromey <tromey@adacore.com>
5127
5128 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5129 (ada_value_primitive_packed_val): Update.
5130 * ada-valprint.c (ada_value_print_1): Update.
5131 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5132 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5133 just an address. Use evaluate_for_locexpr_baton.
5134 (dwarf2_evaluate_property): Update.
5135 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5136 array_view.
5137 * findvar.c (default_read_var_value): Update.
5138 * gdbtypes.c (compute_variant_fields_inner)
5139 (resolve_dynamic_type_internal): Update.
5140 (resolve_dynamic_type): Change type of valaddr parameter.
5141 * gdbtypes.h (resolve_dynamic_type): Update.
5142 * valarith.c (value_subscripted_rvalue): Update.
5143 * value.c (value_from_contents_and_address): Update.
5144
61122aa9
TT
51452020-04-24 Tom Tromey <tromey@adacore.com>
5146
5147 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5148 "push_initial_value" parameter.
5149 (dwarf2_evaluate_property): Likewise.
5150 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5151
ef83a141
TT
51522020-04-24 Tom Tromey <tromey@adacore.com>
5153
5154 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5155 (variant::matches, compute_variant_fields_recurse)
5156 (compute_variant_fields_inner, compute_variant_fields): New
5157 functions.
5158 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5159 Use resolved_type after type is made.
5160 (operator==): Add new cases.
5161 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5162 (struct discriminant_range, struct variant, struct variant_part):
5163 New.
5164 (union dynamic_prop_data) <variant_parts, original_type>: New
5165 members.
5166 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5167 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5168 constants.
5169 * value.c (unpack_bits_as_long): Now public.
5170 * value.h (unpack_bits_as_long): Declare.
5171
675127ec
TT
51722020-04-24 Tom Tromey <tromey@adacore.com>
5173
5174 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5175 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5176
9852ceef
HD
51772020-04-24 Hannes Domani <ssbssa@yahoo.de>
5178
5179 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5180
7632c6ce
KR
51812020-04-24 Kamil Rytarowski <n54@gmx.com>
5182
5183 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5184 (remove_fork_catchpoint, post_startup_inferior)
5185 (post_attach): Move...
5186 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5187 (remove_fork_catchpoint, post_startup_inferior)
5188 (post_attach): ...here.
5189 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5190 (remove_fork_catchpoint, post_startup_inferior)
5191 (post_attach): Move...
5192 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5193 (remove_fork_catchpoint, post_startup_inferior)
5194 (post_attach): ...here.
5195
7be2bb4f
TT
51962020-04-24 Tom Tromey <tromey@adacore.com>
5197
5198 * nat/windows-nat.h (struct windows_thread_info)
5199 <pc_adjusted>: New member.
5200 * windows-nat.c (windows_fetch_one_register): Check
5201 pc_adjusted.
5202 (windows_nat_target::get_windows_debug_event)
5203 (windows_nat_target::wait): Set pc_adjusted.
5204
f80cb3b4
TV
52052020-04-24 Tom de Vries <tdevries@suse.de>
5206
5207 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5208 Run gdb-add-index inside temp dir.
5209
29514b87
TT
52102020-04-23 Tom Tromey <tromey@adacore.com>
5211
5212 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5213 in loop.
5214
5939967b
LM
52152020-04-23 Luis Machado <luis.machado@linaro.org>
5216
5217 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5218 get_frame_register instead of gdbarch_unwind_pc.
5219
70bc38f5
TV
52202020-04-23 Tom de Vries <tdevries@suse.de>
5221
5222 * symtab.c (lookup_global_symbol): Prefer def over decl.
5223
de82891c
TV
52242020-04-23 Tom de Vries <tdevries@suse.de>
5225
5226 PR symtab/25807
5227 * block.c (best_symbol, better_symbol): Promote to external.
5228 * block.h (best_symbol, better_symbol): Declare.
5229 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5230 decl.
5231
ecc6c606
TT
52322020-04-23 Tom Tromey <tromey@adacore.com>
5233
5234 PR ada/25837:
5235 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5236 "const char *", not a "const std::string &".
5237 <name_and_matcher::operator==>: Update.
5238 * unittests/lookup_name_info-selftests.c: Change type of
5239 "result".
5240
740480b8
TT
52412020-04-23 Tom Tromey <tom@tromey.com>
5242
5243 * inferior.h (iterate_over_inferiors): Don't declare.
5244 * inferior.c (iterate_over_inferiors): Remove.
5245 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5246 Remove.
5247 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5248 use iterate_over_inferiors.
5249 (darwin_resume_inferior_it)
5250 (struct resume_inferior_threads_param)
5251 (darwin_resume_inferior_threads_it): Remove.
5252 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5253
ae3ab1f0
TV
52542020-04-23 Tom de Vries <tdevries@suse.de>
5255
5256 * blockframe.c (find_pc_partial_function): Use
5257 find_pc_sect_compunit_symtab rather than
5258 objfile->sf->qf->find_pc_sect_compunit_symtab.
5259
317d2668
TV
52602020-04-22 Tom de Vries <tdevries@suse.de>
5261
5262 PR symtab/25764
5263 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5264 in psymtabs.
5265
eea9e357
TV
52662020-04-22 Tom de Vries <tdevries@suse.de>
5267
5268 PR symtab/25801
5269 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5270 symtabs.
5271
3d5afab3
TV
52722020-04-22 Tom de Vries <tdevries@suse.de>
5273
5274 PR symtab/25700
5275 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5276 CU if already created.
5277
d43b7a2d
TBA
52782020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5279
5280 * infrun.c (displaced_step_fixup): Switch to the event_thread
5281 before calling displaced_step_restore, not after.
5282
d89edf9b
MM
52832020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5284
5285 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5286 its inferior is not recorded by us.
5287 (record_btrace_target_open): Replace call to
5288 all_non_exited_threads () with call to current_inferior
5289 ()->non_exited_threads ().
5290 (record_btrace_target::stop_recording): Likewise.
5291 (record_btrace_target::close): Likewise.
5292 (record_btrace_target::wait): Likewise.
5293 (record_btrace_target::record_stop_replaying): Likewise.
5294
5897fd49
MM
52952020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5296
5297 * btrace.c (btrace_enable): Throw an error on double enables and
5298 when enabling recording fails.
5299 (btrace_disable): Throw an error if the thread is not recorded.
5300
1a476b6d
MM
53012020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5302
5303 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5304 request if we do not have a thread_info.
5305
4778a5f8
TV
53062020-04-21 Tom de Vries <tdevries@suse.de>
5307
5308 PR gdb/25471
5309 * thread.c
5310 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5311 exception in get_frame_id.
5312
0fa7617d
TT
53132020-04-20 Tom Tromey <tromey@adacore.com>
5314
5315 * python/python.c (struct gdbpy_event): Mark move constructor as
5316 noexcept.
5317 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5318 constructor as noexcept.
5319 * completer.h (struct completion_result): Mark move constructor as
5320 noexcept.
5321 * completer.c (completion_result::completion_result): Use
5322 initialization style. Don't call reset_match_list.
5323
ad23bda0
MS
53242020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5325
5326 * MAINTAINERS (Write After Approval): Add myself.
5327
45e1f031
TT
53282020-04-18 Tom Tromey <tom@tromey.com>
5329
5330 * windows-tdep.c (init_w32_command_list)
5331 (w32_prefix_command_valid): Restore.
5332 (_initialize_windows_tdep): Call init_w32_command_list.
5333
08feed99
TT
53342020-04-18 Tom Tromey <tom@tromey.com>
5335
5336 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5337 * value.c (value_fn_field): Update.
5338 * valops.c (find_function_in_inferior)
5339 (value_allocate_space_in_inferior): Update.
5340 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5341 Update.
5342 * tui/tui-source.c (tui_source_window::set_contents): Update.
5343 * symtab.c (lookup_global_or_static_symbol)
5344 (find_function_start_sal_1, skip_prologue_sal)
5345 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5346 * symmisc.c (dump_msymbols, dump_symtab_1)
5347 (maintenance_print_one_line_table): Update.
5348 * symfile.c (init_entry_point_info, section_is_mapped)
5349 (list_overlays_command, simple_read_overlay_table)
5350 (simple_overlay_update_1): Update.
5351 * stap-probe.c (handle_stap_probe): Update.
5352 * stabsread.c (dbx_init_float_type, define_symbol)
5353 (read_one_struct_field, read_enum_type, read_range_type): Update.
5354 * source.c (info_line_command): Update.
5355 * python/python.c (gdbpy_source_objfile_script)
5356 (gdbpy_execute_objfile_script): Update.
5357 * python/py-type.c (save_objfile_types): Update.
5358 * python/py-objfile.c (py_free_objfile): Update.
5359 * python/py-inferior.c (python_new_objfile): Update.
5360 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5361 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5362 (maintenance_check_psymtabs): Update.
5363 * printcmd.c (info_address_command): Update.
5364 * objfiles.h (struct objfile) <arch>: New method, from
5365 get_objfile_arch.
5366 (get_objfile_arch): Don't declare.
5367 * objfiles.c (get_objfile_arch): Remove.
5368 (filter_overlapping_sections): Update.
5369 * minsyms.c (msymbol_is_function): Update.
5370 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5371 (output_nondebug_symbol): Update.
5372 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5373 (mdebug_expand_psymtab): Update.
5374 * machoread.c (macho_add_oso_symfile): Update.
5375 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5376 Update.
5377 * linux-fork.c (checkpoint_command): Update.
5378 * linespec.c (convert_linespec_to_sals): Update.
5379 * jit.c (finalize_symtab): Update.
5380 * infrun.c (insert_exception_resume_from_probe): Update.
5381 * ia64-tdep.c (ia64_find_unwind_table): Update.
5382 * hppa-tdep.c (internalize_unwinds): Update.
5383 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5384 Update.
5385 * gcore.c (call_target_sbrk): Update.
5386 * elfread.c (record_minimal_symbol, elf_symtab_read)
5387 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5388 (elf_gnu_ifunc_resolve_by_got): Update.
5389 * dwarf2/read.c (create_addrmap_from_index)
5390 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5391 (read_debug_names_from_section)
5392 (process_psymtab_comp_unit_reader, add_partial_symbol)
5393 (add_partial_subprogram, process_full_comp_unit)
5394 (read_file_scope, read_func_scope, read_lexical_block_scope)
5395 (read_call_site_scope, dwarf2_ranges_read)
5396 (dwarf2_record_block_ranges, dwarf2_add_field)
5397 (mark_common_block_symbol_computed, read_tag_pointer_type)
5398 (read_tag_string_type, dwarf2_init_float_type)
5399 (dwarf2_init_complex_target_type, read_base_type)
5400 (partial_die_info::read, partial_die_info::read)
5401 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5402 (dwarf2_fetch_die_loc_sect_off): Update.
5403 * dwarf2/loc.c (dwarf2_find_location_expression)
5404 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5405 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5406 (dwarf2_loc_desc_get_symbol_read_needs)
5407 (locexpr_describe_location_piece, locexpr_describe_location_1)
5408 (loclist_describe_location): Update.
5409 * dwarf2/index-write.c (write_debug_names): Update.
5410 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5411 * dtrace-probe.c (dtrace_process_dof): Update.
5412 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5413 (process_one_symbol): Update.
5414 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5415 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5416 (coff_read_enum_type): Update.
5417 * cli/cli-cmds.c (edit_command, list_command): Update.
5418 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5419 * breakpoint.c (create_overlay_event_breakpoint)
5420 (create_longjmp_master_breakpoint)
5421 (create_std_terminate_master_breakpoint)
5422 (create_exception_master_breakpoint, get_sal_arch): Update.
5423 * block.c (block_gdbarch): Update.
5424 * annotate.c (annotate_source_line): Update.
5425
0743fc83
TT
54262020-04-17 Tom Tromey <tromey@adacore.com>
5427
5428 * auto-load.c (show_auto_load_cmd): Remove.
5429 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5430 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5431 (maintenance_print_arc_command): Remove.
5432 * tui/tui-win.c (tui_command): Remove.
5433 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5434 * tui/tui-layout.c (tui_layout_command): Remove.
5435 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5436 * python/python.c (user_set_python, user_show_python): Remove.
5437 (_initialize_python): Use add_basic_prefix_cmd,
5438 add_show_prefix_cmd.
5439 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5440 (install_gdb_commands): Use add_basic_prefix_cmd,
5441 add_show_prefix_cmd.
5442 (info_guile_command): Remove.
5443 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5444 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5445 add_show_prefix_cmd.
5446 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5447 Remove do_set and do_show parameters.
5448 * cli/cli-style.c (set_style, show_style): Remove.
5449 (_initialize_cli_style): Use add_basic_prefix_cmd,
5450 add_show_prefix_cmd.
5451 (cli_style_option::add_setshow_commands): Remove do_set and
5452 do_show parameters.
5453 (cli_style_option::add_setshow_commands): Use
5454 add_basic_prefix_cmd, add_show_prefix_cmd.
5455 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5456 (set_style_name): Remove.
5457 * cli/cli-dump.c (dump_command, append_command): Remove.
5458 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5459 (tekhex_dump_command, binary_dump_command)
5460 (binary_append_command): Remove.
5461 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5462 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5463 (init_w32_command_list): Remove; move into ...
5464 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5465 * valprint.c (set_print, show_print, set_print_raw)
5466 (show_print_raw): Remove.
5467 (_initialize_valprint): Use add_basic_prefix_cmd,
5468 add_show_prefix_cmd.
5469 * typeprint.c (set_print_type, show_print_type): Remove.
5470 (_initialize_typeprint): Use add_basic_prefix_cmd,
5471 add_show_prefix_cmd.
5472 * record.c (set_record_command, show_record_command): Remove.
5473 (_initialize_record): Use add_basic_prefix_cmd,
5474 add_show_prefix_cmd.
5475 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5476 add_show_prefix_cmd.
5477 (info_command, show_command, set_debug, show_debug): Remove.
5478 * top.h (set_history, show_history): Don't declare.
5479 * top.c (set_history, show_history): Remove.
5480 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5481 (unset_tdesc_cmd): Remove.
5482 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5483 add_show_prefix_cmd.
5484 * symtab.c (info_module_command): Remove.
5485 (_initialize_symtab): Use add_basic_prefix_cmd.
5486 * symfile.c (overlay_command): Remove.
5487 (_initialize_symfile): Use add_basic_prefix_cmd.
5488 * sparc64-tdep.c (info_adi_command): Remove.
5489 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5490 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5491 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5492 add_show_prefix_cmd.
5493 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5494 (_initialize_serial): Use add_basic_prefix_cmd,
5495 add_show_prefix_cmd.
5496 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5497 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5498 add_show_prefix_cmd.
5499 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5500 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5501 add_show_prefix_cmd.
5502 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5503 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5504 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5505 add_show_prefix_cmd.
5506 * remote.c (remote_command, set_remote_cmd): Remove.
5507 (_initialize_remote): Use add_basic_prefix_cmd.
5508 * record-full.c (set_record_full_command)
5509 (show_record_full_command): Remove.
5510 (_initialize_record_full): Use add_basic_prefix_cmd,
5511 add_show_prefix_cmd.
5512 * record-btrace.c (cmd_set_record_btrace)
5513 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5514 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5515 (cmd_show_record_btrace_pt): Remove.
5516 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5517 add_show_prefix_cmd.
5518 * ravenscar-thread.c (set_ravenscar_command)
5519 (show_ravenscar_command): Remove.
5520 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5521 add_show_prefix_cmd.
5522 * mips-tdep.c (show_mips_command, set_mips_command)
5523 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5524 add_show_prefix_cmd.
5525 * maint.c (maintenance_command, maintenance_info_command)
5526 (maintenance_check_command, maintenance_print_command)
5527 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5528 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5529 add_show_prefix_cmd.
5530 (show_per_command_cmd): Remove.
5531 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5532 Remove.
5533 (maintenance_show_test_settings_cmd): Remove.
5534 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5535 add_show_prefix_cmd.
5536 * maint-test-options.c (maintenance_test_options_command):
5537 Remove.
5538 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5539 * macrocmd.c (macro_command): Remove
5540 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5541 * language.c (set_check, show_check): Remove.
5542 (_initialize_language): Use add_basic_prefix_cmd,
5543 add_show_prefix_cmd.
5544 * infcmd.c (unset_command): Remove.
5545 (_initialize_infcmd): Use add_basic_prefix_cmd.
5546 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5547 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5548 add_show_prefix_cmd.
5549 * go32-nat.c (go32_info_dos_command): Remove.
5550 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5551 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5552 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5553 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5554 (_initialize_frame): Use add_basic_prefix_cmd,
5555 add_show_prefix_cmd.
5556 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5557 (_initialize_dcache): Use add_basic_prefix_cmd,
5558 add_show_prefix_cmd.
5559 * cp-support.c (maint_cplus_command): Remove.
5560 (_initialize_cp_support): Use add_basic_prefix_cmd.
5561 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5562 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5563 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5564 add_basic_prefix_cmd, add_show_prefix_cmd.
5565 * breakpoint.c (save_command): Remove.
5566 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5567 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5568 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5569 add_show_prefix_cmd.
5570 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5571 (set_ada_command, show_ada_command): Remove.
5572 (_initialize_ada_language): Use add_basic_prefix_cmd,
5573 add_show_prefix_cmd.
5574 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5575
3557f442
KR
55762020-04-16 Kamil Rytarowski <n54@gmx.com>
5577
5578 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5579 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5580
16197208
SM
55812020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5582
5583 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5584 warning messages.
5585
00ac85d3
SM
55862020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5587
5588 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5589 import table is not at beginning of .idata section.
5590
381ce63f
PA
55912020-04-16 Pedro Alves <palves@redhat.com>
5592
5593 * inferior.c (delete_inferior): Use delete operator directly
5594 instead of delete_program_space.
5595 * progspace.c (add_program_space): New, factored out from
5596 program_space::program_space.
5597 (remove_program_space): New, factored out from
5598 delete_program_space.
5599 (program_space::program_space): Remove intro comment. Rewrite.
5600 (program_space::~program_space): Remove intro comment. Call
5601 remove_program_space.
5602 (delete_program_space): Delete.
5603 * progspace.h (program_space::program_space): Make explicit. Move
5604 intro comment here, adjusted.
5605 (program_space::~program_space): Move intro comment here,
5606 adjusted.
5607 (delete_program_space): Remove.
5608
a010605f
TT
56092020-04-16 Tom Tromey <tromey@adacore.com>
5610
5611 * windows-nat.c (windows_nat::handle_access_violation): New
5612 function.
5613 * nat/windows-nat.h (handle_access_violation): Declare.
5614 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5615 windows-nat.c. Call handle_access_violation.
5616
efba5c23
TV
56172020-04-16 Tom de Vries <tdevries@suse.de>
5618
5619 PR symtab/25791
5620 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5621 CUs without psymtab.
5622
97ed802d
KB
56232020-04-16 Kevin Buettner <kevinb@redhat.com>
5624
5625 * python/python.c (do_start_initialization): Don't call
5626 PyEval_InitThreads for Python 3.9 and beyond.
5627
c7d64809
KR
56282020-04-15 Kamil Rytarowski <n54@gmx.com>
5629
5630 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5631 thread functions.
5632 (obsd_nat_target::wait): Likewise.
5633
ce127a96
TT
56342020-04-15 Tom Tromey <tromey@adacore.com>
5635
5636 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5637 (DEBUG_EXCEPT): Use debug_printf.
5638
99f1bc6a
AB
56392020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5640
5641 * completer.c (class completion_tracker::completion_hash_entry)
5642 <hash_name>: New member function.
5643 (completion_tracker::discard_completions): New callback to hash a
5644 completion_hash_entry, pass this to htab_create_alloc.
5645
a0e9b532
JT
56462016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5647
5648 * windows-nat.c (windows_make_so): Warn rather than stopping with
5649 an error if realpath() fails.
5650
06ca5dd4
KR
56512020-04-14 Kamil Rytarowski <n54@gmx.com>
5652
5653 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5654 (nbsd_nat_target::info_proc): Add do_status.
5655
194d088f
TV
56562020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5657 Tom de Vries <tdevries@suse.de>
5658
5659 PR symtab/25718
5660 * psympriv.h (struct partial_symtab::read_symtab)
5661 (struct partial_symtab::expand_psymtab)
5662 (struct partial_symtab::read_dependencies): Update comments.
5663 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5664 read_symtab for includer.
5665 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5666 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5667 (struct dwarf2_include_psymtab::m_readin): Remove.
5668 (struct dwarf2_include_psymtab::includer): New member function.
5669 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5670
c1a66c06
TV
56712020-04-14 Tom de Vries <tdevries@suse.de>
5672
5673 PR symtab/25720
5674 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5675 with NULL symbol_matcher and lookup_name.
5676 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5677 and lookup_name.
5678 * dwarf2/read.c (dw2_expand_symtabs_matching)
5679 (dw2_debug_names_expand_symtabs_matching): Same.
5680 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5681 Make lookup_name a pointer. Update comment.
5682 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5683 lookup_name being a pointer.
5684 * symfile.c (expand_symtabs_matching): Same.
5685 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5686 * linespec.c (iterate_over_all_matching_symtabs): Same.
5687
400b5eca
TT
56882020-04-13 Tom Tromey <tom@tromey.com>
5689
5690 * run-on-main-thread.c: Update include.
5691 * unittests/main-thread-selftests.c: Update include.
5692 * tui/tui-win.c: Update include.
5693 * tui/tui-io.c: Update include.
5694 * tui/tui-interp.c: Update include.
5695 * tui/tui-hooks.c: Update include.
5696 * top.h: Update include.
5697 * top.c: Update include.
5698 * ser-base.c: Update include.
5699 * remote.c: Update include.
5700 * remote-notif.c: Update include.
5701 * remote-fileio.c: Update include.
5702 * record-full.c: Update include.
5703 * record-btrace.c: Update include.
5704 * python/python.c: Update include.
5705 * posix-hdep.c: Update include.
5706 * mingw-hdep.c: Update include.
5707 * mi/mi-main.c: Update include.
5708 * mi/mi-interp.c: Update include.
5709 * main.c: Update include.
5710 * linux-nat.c: Update include.
5711 * interps.c: Update include.
5712 * infrun.c: Update include.
5713 * inf-loop.c: Update include.
5714 * event-top.c: Update include.
5715 * event-loop.c: Move to ../gdbsupport/.
5716 * event-loop.h: Move to ../gdbsupport/.
5717 * async-event.h: Update include.
5718 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5719
93b54c8e
TT
57202020-04-13 Tom Tromey <tom@tromey.com>
5721
5722 * tui/tui-win.c: Include async-event.h.
5723 * remote.c: Include async-event.h.
5724 * remote-notif.c: Include async-event.h.
5725 * record-full.c: Include async-event.h.
5726 * record-btrace.c: Include async-event.h.
5727 * infrun.c: Include async-event.h.
5728 * event-top.c: Include async-event.h.
5729 * event-loop.h: Move some declarations to async-event.h.
5730 * event-loop.c: Don't include ser-event.h or top.h. Move some
5731 code to async-event.c.
5732 * async-event.h: New file.
5733 * async-event.c: New file.
5734 * Makefile.in (COMMON_SFILES): Add async-event.c.
5735 (HFILES_NO_SRCDIR): Add async-event.h.
5736
c1cd3163
TT
57372020-04-13 Tom Tromey <tom@tromey.com>
5738
5739 * utils.c (flush_streams): New function.
5740 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5741
29f2bf4f
TT
57422020-04-13 Tom Tromey <tom@tromey.com>
5743
5744 * event-loop.c (handle_file_event): Use warning, not
5745 printf_unfiltered.
5746
98029d02
TT
57472020-04-13 Tom Tromey <tom@tromey.com>
5748
5749 * event-loop.c: Include <chrono>.
5750
06cc9596
TT
57512020-04-13 Tom Tromey <tom@tromey.com>
5752
5753 * gdb_select.h: Move to ../gdbsupport/.
5754 * event-loop.c: Update include path.
5755 * top.c: Update include path.
5756 * ser-base.c: Update include path.
5757 * ui-file.c: Update include path.
5758 * ser-tcp.c: Update include path.
5759 * guile/scm-ports.c: Update include path.
5760 * posix-hdep.c: Update include path.
5761 * ser-unix.c: Update include path.
5762 * gdb_usleep.c: Update include path.
5763 * mingw-hdep.c: Update include path.
5764 * inflow.c: Update include path.
5765 * infrun.c: Update include path.
5766 * event-top.c: Update include path.
5767
8ae8e197
TT
57682020-04-13 Tom Tromey <tom@tromey.com>
5769
5770 * configure: Rebuild.
5771 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5772
58cf28e8
TT
57732020-04-13 Tom Tromey <tom@tromey.com>
5774
5775 * event-loop.h (start_event_loop): Don't declare.
5776 * event-loop.c (start_event_loop): Move...
5777 * main.c (start_event_loop): ...here. Now static.
5778
b7f999ae
SDJ
57792020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5780
5781 * MAINTAINERS: Update my email address.
5782
1085dfd4
KR
57832020-04-12 Kamil Rytarowski <n54@gmx.com>
5784
5785 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5786 IP_ALL.
5787
49d1d1f5
KR
57882020-04-12 Kamil Rytarowski <n54@gmx.com>
5789
5790 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5791 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5792
b4848d2a
KR
57932020-04-12 Kamil Rytarowski <n54@gmx.com>
5794
5795 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5796 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5797
51c133d5
KR
57982020-04-12 Kamil Rytarowski <n54@gmx.com>
5799
5800 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5801
54b8cbd0
KR
58022020-04-11 Kamil Rytarowski <n54@gmx.com>
5803
5804 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5805 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5806 (nbsd_nat_target::info_proc): New functions.
5807 * nbsd-nat.c (kinfo_get_vmmap): New function.
5808 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5809 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5810 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5811 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5812 functions.
5813 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5814 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5815 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5816 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5817 (KINFO_VME_FLAG_GROWS_DOWN): New.
5818
cf83625d
AS
58192020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5820
5821 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5822 bit shift.
5823
0c4311ab
TT
58242020-04-10 Tom Tromey <tromey@adacore.com>
5825
5826 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5827
3e65b3e9
TT
58282020-04-10 Tom Tromey <tromey@adacore.com>
5829
5830 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5831 separate debug files.
5832
13302e95
HD
58332020-04-10 Hannes Domani <ssbssa@yahoo.de>
5834
5835 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5836 Move to...
5837 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5838 ... here.
5839 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5840 Check for STATUS_WX86_BREAKPOINT.
5841 (windows_nat_target::wait): Same.
5842
bdfc1e8a
TV
58432020-04-10 Tom de Vries <tdevries@suse.de>
5844
5845 PR cli/25808
5846 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5847
f4460aec
SM
58482020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5849
5850 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5851 (Write After Approval): Remove Tom de Vries.
5852
a25198bb
BE
58532020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5854
5855 revert partially:
5856 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5857
aac66a4c
SM
5858 * buildsym.c (record_line): Fix undefined behavior and preserve
5859 lines at eof.
a25198bb 5860
206c98a6
KR
58612020-04-09 Kamil Rytarowski <n54@gmx.com>
5862
5863 * auxv.h (svr4_auxv_parse): New.
5864 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5865 and generic_auxv_parse.
5866 (svr4_auxv_parse): Add.
5867 * obsd-tdep.c: Include "auxv.h".
5868 (obsd_auxv_parse): Remove.
5869 (obsd_init_abi): Remove comment.
5870 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5871 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5872 * nbsd-tdep.c: Include "auxv.h".
5873 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5874
71fbdbaf
TT
58752020-04-08 Tom Tromey <tromey@adacore.com>
5876
5877 * nat/windows-nat.h (last_wait_event): Don't declare.
5878 (wait_for_debug_event): Update comment.
5879 * nat/windows-nat.c (last_wait_event): Now static.
5880
2c1d95e8
TT
58812020-04-08 Tom Tromey <tromey@adacore.com>
5882
5883 * windows-nat.c (wait_for_debug_event): Move to
5884 nat/windows-nat.c.
5885 * nat/windows-nat.h (wait_for_debug_event): Declare.
5886 * nat/windows-nat.c (wait_for_debug_event): Move from
5887 windows-nat.c. No longer static.
5888
d2977bc4
TT
58892020-04-08 Tom Tromey <tromey@adacore.com>
5890
5891 * windows-nat.c (get_windows_debug_event): Use
5892 fetch_pending_stop.
5893 * nat/windows-nat.h (fetch_pending_stop): Declare.
5894 * nat/windows-nat.c (fetch_pending_stop): New function.
5895
e758e19c
TT
58962020-04-08 Tom Tromey <tromey@adacore.com>
5897
5898 * windows-nat.c (windows_continue): Use matching_pending_stop and
5899 continue_last_debug_event.
5900 * nat/windows-nat.h (matching_pending_stop)
5901 (continue_last_debug_event): Declare.
5902 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5903 (matching_pending_stop, continue_last_debug_event): New
5904 functions.
5905
8d30e395
TT
59062020-04-08 Tom Tromey <tromey@adacore.com>
5907
5908 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5909 (handle_exception_result): Move to nat/windows-nat.h.
5910 (DEBUG_EXCEPTION_SIMPLE): Remove.
5911 (windows_nat::handle_ms_vc_exception): New function.
5912 (handle_exception): Move to nat/windows-nat.c.
5913 (get_windows_debug_event): Update.
5914 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5915 nat/windows-nat.c.
5916 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5917 (handle_exception_result): Move from windows-nat.c.
5918 (handle_exception): Declare.
5919 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5920 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5921 windows-nat.c.
5922
29de418d
TT
59232020-04-08 Tom Tromey <tromey@adacore.com>
5924
5925 * windows-nat.c (exception_count, event_count): Remove.
5926 (handle_exception, get_windows_debug_event)
5927 (do_initial_windows_stuff): Update.
5928
a816ba18
TT
59292020-04-08 Tom Tromey <tromey@adacore.com>
5930
5931 * windows-nat.c (windows_nat::handle_load_dll)
5932 (windows_nat::handle_unload_dll): Rename. No longer static.
5933 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5934 Declare.
5935
a00caa12
TT
59362020-04-08 Tom Tromey <tromey@adacore.com>
5937
5938 * complaints.h (stop_whining): Declare at top-level.
5939 (complaint): Don't declare stop_whining.
5940
d41b524f
TT
59412020-04-08 Tom Tromey <tromey@adacore.com>
5942
5943 * windows-nat.c (windows_nat::handle_output_debug_string):
5944 Rename. No longer static.
5945 * nat/windows-nat.h (handle_output_debug_string): Declare.
5946
3c76026d
TT
59472020-04-08 Tom Tromey <tromey@adacore.com>
5948
5949 * windows-nat.c (current_process_handle, current_process_id)
5950 (main_thread_id, last_sig, current_event, last_wait_event)
5951 (current_windows_thread, desired_stop_thread_id, pending_stops)
5952 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5953 (display_selectors, fake_create_process)
5954 (get_windows_debug_event): Update.
5955 * nat/windows-nat.h (current_process_handle, current_process_id)
5956 (main_thread_id, last_sig, current_event, last_wait_event)
5957 (current_windows_thread, desired_stop_thread_id, pending_stops)
5958 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5959 * nat/windows-nat.c (current_process_handle, current_process_id)
5960 (main_thread_id, last_sig, current_event, last_wait_event)
5961 (current_windows_thread, desired_stop_thread_id, pending_stops)
5962 (siginfo_er): New globals. Move from windows-nat.c.
5963
9d8679cc
TT
59642020-04-08 Tom Tromey <tromey@adacore.com>
5965
5966 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5967 (handle_load_dll): Update.
5968 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5969
28688adf
TT
59702020-04-08 Tom Tromey <tromey@adacore.com>
5971
5972 * windows-nat.c (enum thread_disposition_type): Move to
5973 nat/windows-nat.h.
5974 (windows_nat::thread_rec): Rename from thread_rec. No longer
5975 static.
5976 (windows_add_thread, windows_nat_target::fetch_registers)
5977 (windows_nat_target::store_registers, handle_exception)
5978 (windows_nat_target::resume, get_windows_debug_event)
5979 (windows_nat_target::get_tib_address)
5980 (windows_nat_target::thread_name)
5981 (windows_nat_target::thread_alive): Update.
5982 * nat/windows-nat.h (enum thread_disposition_type): Move from
5983 windows-nat.c.
5984 (thread_rec): Declare.
5985
4834dad0
TT
59862020-04-08 Tom Tromey <tromey@adacore.com>
5987
5988 * windows-nat.c: Add "using namespace".
5989 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5990 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5991
65bafd5b
TT
59922020-04-08 Tom Tromey <tromey@adacore.com>
5993
5994 * nat/windows-nat.h (struct windows_thread_info): Declare
5995 destructor.
5996 * nat/windows-nat.c (~windows_thread_info): New.
5997
0a4afda3
TT
59982020-04-08 Tom Tromey <tromey@adacore.com>
5999
6000 PR gdb/22992
6001 * windows-nat.c (current_event): Update comment.
6002 (last_wait_event, desired_stop_thread_id): New globals.
6003 (struct pending_stop): New.
6004 (pending_stops): New global.
6005 (windows_nat_target) <stopped_by_sw_breakpoint>
6006 <supports_stopped_by_sw_breakpoint>: New methods.
6007 (windows_fetch_one_register): Add assertions. Adjust PC.
6008 (windows_continue): Handle pending stops. Suspend other threads
6009 when stepping. Use last_wait_event
6010 (wait_for_debug_event): New function.
6011 (get_windows_debug_event): Use wait_for_debug_event. Handle
6012 pending stops. Queue spurious stops.
6013 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6014 (windows_nat_target::kill): Use wait_for_debug_event.
6015 * nat/windows-nat.h (struct windows_thread_info)
6016 <stopped_at_software_breakpoint>: New field.
6017 * nat/windows-nat.c (windows_thread_info::resume): Clear
6018 stopped_at_software_breakpoint.
6019
8e61ebec
TT
60202020-04-08 Tom Tromey <tromey@adacore.com>
6021
6022 * windows-nat.c (enum thread_disposition_type): New.
6023 (thread_rec): Replace "get_context" parameter with "disposition";
6024 change type.
6025 (windows_add_thread, windows_nat_target::fetch_registers)
6026 (windows_nat_target::store_registers, handle_exception)
6027 (windows_nat_target::resume, get_windows_debug_event)
6028 (windows_nat_target::get_tib_address)
6029 (windows_nat_target::thread_name)
6030 (windows_nat_target::thread_alive): Update.
6031
98a03287
TT
60322020-04-08 Tom Tromey <tromey@adacore.com>
6033
6034 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6035 (windows_continue): Use windows_continue::resume.
6036 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6037 resume>: Declare new methods.
6038 * nat/windows-nat.c: New file.
6039 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6040
7c7411bc
TT
60412020-04-08 Tom Tromey <tromey@adacore.com>
6042
6043 * windows-nat.c (windows_add_thread, windows_delete_thread)
6044 (windows_nat_target::fetch_registers)
6045 (windows_nat_target::store_registers, fake_create_process)
6046 (windows_nat_target::resume, windows_nat_target::resume)
6047 (get_windows_debug_event, windows_nat_target::wait)
6048 (windows_nat_target::pid_to_str)
6049 (windows_nat_target::get_tib_address)
6050 (windows_nat_target::get_ada_task_ptid)
6051 (windows_nat_target::thread_name)
6052 (windows_nat_target::thread_alive): Use lwp, not tid.
6053
2950fdf7
TT
60542020-04-08 Tom Tromey <tromey@adacore.com>
6055
6056 * windows-nat.c (handle_exception)
6057 (windows_nat_target::thread_name): Update.
6058 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6059 <name>: Now unique_xmalloc_ptr.
6060
62fe396b
TT
60612020-04-08 Tom Tromey <tromey@adacore.com>
6062
6063 * windows-nat.c (thread_rec)
6064 (windows_nat_target::fetch_registers): Update.
6065 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6066 Update comment.
6067 <debug_registers_changed, reload_context>: Now bool.
6068
e9534bd2
TT
60692020-04-08 Tom Tromey <tromey@adacore.com>
6070
6071 * windows-nat.c (windows_add_thread): Use new.
6072 (windows_init_thread_list, windows_delete_thread): Use delete.
6073 (get_windows_debug_event): Update.
6074 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6075 destructor, and initializers.
6076
ae1f8880
TT
60772020-04-08 Tom Tromey <tromey@adacore.com>
6078
6079 * windows-nat.c (struct windows_thread_info): Remove.
6080 * nat/windows-nat.h: New file.
6081
55a1e039
TT
60822020-04-08 Tom Tromey <tromey@adacore.com>
6083
6084 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6085 (thread_rec, windows_add_thread, windows_delete_thread)
6086 (windows_continue): Update.
6087
93366324
TT
60882020-04-08 Tom Tromey <tromey@adacore.com>
6089
6090 * windows-nat.c (struct windows_thread_info): Remove typedef.
6091 (thread_head): Remove.
6092 (thread_list): New global.
6093 (thread_rec, windows_add_thread, windows_init_thread_list)
6094 (windows_delete_thread, windows_continue): Update.
6095
0f2265e2
SM
60962020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6097
6098 * windows-tdep.h (windows_init_abi): Add comment.
6099 (cygwin_init_abi): New declaration.
6100 * windows-tdep.c: Split signal enumeration in two, one for
6101 Windows and one for Cygwin.
6102 (windows_gdb_signal_to_target): Only deal with signal of the
6103 Windows OS ABI.
6104 (cygwin_gdb_signal_to_target): New function.
6105 (windows_init_abi): Rename to windows_init_abi_common, don't set
6106 gdb_signal_to_target gdbarch method. Add new new function with
6107 this name.
6108 (cygwin_init_abi): New function.
6109 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6110 comment. Don't call windows_init_abi.
6111 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6112 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6113 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6114 i386_windows_init_abi_common, don't call windows_init_abi. Add
6115 a new function of this name.
6116 (i386_cygwin_init_abi): New function.
6117 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6118 OS ABI Cygwin.
6119
3810f182
SM
61202020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6123 parameter.c.
6124 (dwarf2_read_gdb_index): Update.
6125
063f8e80
KR
61262020-04-07 Kamil Rytarowski <n54@gmx.com>
6127
6128 * nbsd-tdep.c: Include "objfiles.h".
6129 (nbsd_skip_solib_resolver): New.
6130 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6131
85a9510c 61322020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6133
6134 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6135 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6136 with DW_LLE_base_addressx are being emitted in DWARFv5.
6137 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6138 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6139 unsigned integer.
6140
9fc3eaae 61412020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6142
6143 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6144 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6145 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6146 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6147 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6148 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6149 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6150
6151
41144253 61522020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6153
6154 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6155 (read_loclist_index): New function definition.
6156 (lookup_loclist_base): New function definition.
6157 (read_loclist_header): New function definition.
6158 (dwarf2_cu): Add loclist_base and loclist_header field.
6159 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6160 (read_full_die_1): Read the value of DW_AT_loclists_base.
6161 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6162 (read_attribute_value): Handle DW_FORM_loclistx.
6163 (skip_one_die): Handle DW_FORM_loclistx.
6164 (loclist_header): New structure declaration.
6165 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6166
9f4e76a4
SM
61672020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6168
6169 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6170 constructor. Remove `addr` parameter from other constructor and
6171 add `per_cu` parameter.
6172 * dwarf2/read.c (create_partial_symtab): Update.
6173
25c11aca
TV
61742020-04-07 Tom de Vries <tdevries@suse.de>
6175
6176 PR symtab/25796
6177 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6178 (partial_die_info::fixup): Inherit has_const_value.
6179
5707e24b
TV
61802020-04-07 Tom de Vries <tdevries@suse.de>
6181
6182 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6183 symbols without address.
6184
05f00e22
KR
61852020-04-06 Kamil Rytarowski <n54@gmx.com>
6186
6187 * nbsd-nat.h (struct thread_info): Add forward declaration.
6188 (nbsd_nat_target::thread_alive): Add.
6189 (nbsd_nat_target::thread_name): Likewise.
6190 (nbsd_nat_target::update_thread_list): Likewise.
6191 (update_thread_list::post_attach): Likewise.
6192 (post_attach::pid_to_str): Likewise.
6193 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6194 (nbsd_thread_lister): Add.
6195 (nbsd_nat_target::thread_alive): Likewise.
6196 (nbsd_nat_target::thread_name): Likewise.
6197 (nbsd_add_threads): Likewise.
6198 (update_thread_list::post_attach): Likewise.
6199 (nbsd_nat_target::update_thread_list): Likewise.
6200 (post_attach::pid_to_str): Likewise.
6201
6ee448cc
TT
62022020-04-06 Tom Tromey <tromey@adacore.com>
6203
6204 * ada-valprint.c (print_variant_part): Extract the variant field.
6205 (print_field_values): Use the field as the outer value when
6206 recursing.
6207
dea34e8c
TT
62082020-04-06 Tom Tromey <tromey@adacore.com>
6209
6210 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6211 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6212 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6213 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6214 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6215
93689ce9
TT
62162020-04-06 Tom Tromey <tromey@adacore.com>
6217
6218 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6219 TYPE_CODE_ERROR.
6220
79743962
KR
62212020-04-06 Kamil Rytarowski <n54@gmx.com>
6222
6223 * nbsd-tdep.c: Include "gdbarch.h".
6224 Define enum with NetBSD signal numbers.
6225 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6226 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6227 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6228 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6229 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6230 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6231 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6232 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6233 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6234 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6235 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6236 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6237
9e7c9a03
HD
62382020-04-03 Hannes Domani <ssbssa@yahoo.de>
6239
6240 PR gdb/25325
6241 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6242
d9e49b61
TT
62432020-04-03 Tom Tromey <tromey@adacore.com>
6244
6245 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6246 Read constant block.
6247
e0fc5c3f
SM
62482020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6249
6250 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6251 (gdb_bfd_get_full_section_contents): New declaration.
6252 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6253 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6254 gdb_bfd_get_full_section_contents.
6255
e2ff18a0
SM
62562020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6257
6258 * exec.c (build_section_table): Replace internal_error with
6259 gdb_assert.
6260 (section_table_xfer_memory_partial): Likewise.
6261 * mdebugread.c (parse_partial_symbols): Likewise.
6262 * psymtab.c (lookup_partial_symbol): Likewise.
6263 * utils.c (wrap_here): Likewise.
6264
0830d301
TT
62652020-04-02 Tom Tromey <tromey@adacore.com>
6266
6267 * f-lang.c (build_fortran_types): Use arch_type to initialize
6268 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6269
e7da7f8f
TT
62702020-04-02 Tom Tromey <tromey@adacore.com>
6271
6272 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6273 of attributes.
6274
c90d28ac
AB
62752020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6276 Bernd Edlinger <bernd.edlinger@hotmail.de>
6277 Tom Tromey <tromey@adacore.com>
6278
6279 * buildsym.c (buildsym_compunit::record_line): Remove
6280 deduplication code.
6281
1aa98955
TV
62822020-04-02 Tom de Vries <tdevries@suse.de>
6283
6284 PR ada/24671
6285 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6286
d3214198
TV
62872020-04-02 Tom de Vries <tdevries@suse.de>
6288
6289 * dwarf2/read.c (dwarf2_gdb_index_functions,
6290 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6291 NULL.
6292 * psymtab.c (psym_lookup_global_symbol_language): New function.
6293 (psym_functions): Init psym_lookup_global_symbol_language with
6294 psym_lookup_global_symbol_language.
6295 * symfile-debug.c (debug_sym_quick_functions): Init
6296 lookup_global_symbol_language with NULL.
6297 * symfile.c (set_initial_language): Remove fixme comment.
6298 * symfile.h (struct quick_symbol_functions): Add
6299 lookup_global_symbol_language.
6300 * symtab.c (find_quick_global_symbol_language): New function.
6301 (find_main_name): Use find_quick_global_symbol_language.
6302
2836752f
SM
63032020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6304
6305 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6306
64dc2d4b
BE
63072020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6308
6309 * buildsym.c (record_line): Fix undefined behavior and preserve
6310 lines at eof.
6311
bbe3dc41
BE
63122020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6313
6314 * buildsym.c (record_line): Fix the resizing condition.
6315
6b4a335b
TT
63162020-04-01 Tom Tromey <tom@tromey.com>
6317
6318 * value.h (value_literal_complex): Add comment.
6319 * valops.c (value_literal_complex): Refer to value.h.
6320
3638a098
TT
63212020-04-01 Tom Tromey <tom@tromey.com>
6322
6323 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6324 (scalar_type): New rule, from typebase.
6325 (typebase): Use scalar_type. Recognize complex types.
6326 (field_name): Handle FLOAT_KEYWORD.
6327 (ident_tokens): Add _Complex and __complex__.
6328
c34e8714
TT
63292020-04-01 Tom Tromey <tom@tromey.com>
6330
6331 PR exp/25299:
6332 * valarith.c (promotion_type, complex_binop): New functions.
6333 (scalar_binop): Handle complex numbers. Use promotion_type.
6334 (value_pos, value_neg, value_complement): Handle complex numbers.
6335
fa649bb7
TT
63362020-04-01 Tom Tromey <tom@tromey.com>
6337
6338 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6339 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6340 (parse_number): Handle complex numbers.
6341
981c08ce
TT
63422020-04-01 Tom Tromey <tom@tromey.com>
6343
6344 * c-valprint.c (c_decorations): Change complex suffix to "i".
6345
4c99290d
TT
63462020-04-01 Tom Tromey <tom@tromey.com>
6347
6348 * valprint.c (generic_value_print_complex): Use accessors.
6349 * value.h (value_real_part, value_imaginary_part): Declare.
6350 * valops.c (value_real_part, value_imaginary_part): New
6351 functions.
6352 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6353
5b930b45
TT
63542020-04-01 Tom Tromey <tom@tromey.com>
6355
6356 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6357 (read_range_type): Update.
6358 * mdebugread.c (basic_type): Update.
6359 * go-lang.c (build_go_types): Use init_complex_type.
6360 * gdbtypes.h (struct main_type) <complex_type>: New member.
6361 (init_complex_type): Update.
6362 (arch_complex_type): Don't declare.
6363 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6364 Make name if none given. Use alloc_type_copy. Look for cached
6365 complex type.
6366 (arch_complex_type): Remove.
6367 (gdbtypes_post_init): Use init_complex_type.
6368 * f-lang.c (build_fortran_types): Use init_complex_type.
6369 * dwarf2/read.c (read_base_type): Update.
6370 * d-lang.c (build_d_types): Use init_complex_type.
6371 * ctfread.c (read_base_type): Update.
6372
53cccef1
TBA
63732020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6374
6375 * infrun.c (stop_all_threads): Update assertion, plus when
6376 stopping threads, take into account that we might be trying
6377 to stop an all-stop target.
6378 (stop_waiting): Call 'stop_all_threads' if there exists a
6379 non-stop target.
6380
a0714d30
TBA
63812020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6382
6383 * target.h (exists_non_stop_target): New function declaration.
6384 * target.c (exists_non_stop_target): New function.
6385
60e22c1e
HD
63862020-04-01 Hannes Domani <ssbssa@yahoo.de>
6387
6388 PR gdb/24789
6389 * eval.c (is_integral_or_integral_reference): New function.
6390 (evaluate_subexp_standard): Allow integer references in
6391 pointer arithmetic.
6392
e139a727
TBA
63932020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6394
6395 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6396 check for no ptid in the stop reply when the target is non-stop.
6397
e0802d59
TT
63982020-04-01 Tom Tromey <tromey@adacore.com>
6399
6400 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6401 "name" parameter to rvalue reference. Initialize m_name_holder.
6402 <lookup_name_info>: New overloads.
6403 <name>: Return gdb::string_view.
6404 <c_str>: New method.
6405 <make_ignore_params>: Update.
6406 <search_name_hash>: Update.
6407 <language_lookup_name>: Return const char *.
6408 <m_name>: Change type.
6409 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6410 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6411 (lookup_name_info::match_any): Update.
6412 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6413 Update.
6414 * minsyms.c (linkage_name_str): Update.
6415 * language.c (default_symbol_name_matcher): Update.
6416 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6417 Update.
6418 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6419 (ada_lookup_name_info::ada_lookup_name_info): Update.
6420 (literal_symbol_name_matcher): Update.
6421
8c072cb6
TT
64222020-04-01 Tom Tromey <tromey@adacore.com>
6423
6424 * psymtab.c (psymtab_search_name): Remove function.
6425 (psym_lookup_symbol): Create search name and lookup name here.
6426 (lookup_partial_symbol): Remove "name" parameter; add
6427 lookup_name.
6428 (psym_expand_symtabs_for_function): Update.
6429
6f29a534
TT
64302020-03-31 Joel Jones <joelkevinjones@gmail.com>
6431
6432 PR tui/25597:
6433 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6434
af62665e
TT
64352020-03-31 Tom Tromey <tromey@adacore.com>
6436
6437 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6438 memcpy.
6439
d1a89da5
NC
64402020-03-30 Nelson Chu <nelson.chu@sifive.com>
6441
6442 * features/riscv/32bit-csr.xml: Regenerated.
6443 * features/riscv/64bit-csr.xml: Regenerated.
6444
d8af9068
TT
64452020-03-30 Tom Tromey <tromey@adacore.com>
6446
6447 * ada-valprint.c (print_variant_part): Update.
6448 * ada-lang.h (ada_which_variant_applies): Update.
6449 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6450 outer_valaddr parameters; replace with "outer" value parameter.
6451 (to_fixed_variant_branch_type): Update.
6452
227c0bf4
PFC
64532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6454
6455 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6456 <list>. Remove inclusion of observable.h.
6457 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6458 (struct arch_lwp_info): New struct.
6459 (class ppc_linux_dreg_interface): New class.
6460 (struct ppc_linux_process_info): New struct.
6461 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6462 <low_new_clone, low_forget_process, low_prepare_to_resume>
6463 <copy_thread_dreg_state, mark_thread_stale>
6464 <mark_debug_registers_changed, register_hw_breakpoint>
6465 <clear_hw_breakpoint, register_wp, clear_wp>
6466 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6467 <num_memory_accesses, get_trigger_type>
6468 <create_watchpoint_request, hwdebug_point_cmp>
6469 <init_arch_lwp_info, get_arch_lwp_info>
6470 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6471 methods.
6472 <struct ptid_hash>: New inner struct.
6473 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6474 members.
6475 (saved_dabr_value, hwdebug_info, max_slots_number)
6476 (struct hw_break_tuple, struct thread_points, ppc_threads)
6477 (have_ptrace_hwdebug_interface)
6478 (hwdebug_find_thread_points_by_tid)
6479 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6480 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6481 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6482 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6483 use m_dreg_interface.
6484 (hwdebug_point_cmp): Change to...
6485 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6486 reference arguments instead of pointers.
6487 (ppc_linux_nat_target::ranged_break_num_registers): Use
6488 m_dreg_interface.
6489 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6490 m_dreg_interface. Call register_hw_breakpoint.
6491 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6492 m_dreg_interface. Call clear_hw_breakpoint.
6493 (get_trigger_type): Change to...
6494 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6495 comment.
6496 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6497 use m_dreg_interface. Call register_hw_breakpoint.
6498 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6499 use m_dreg_interface. Call clear_hw_breakpoint.
6500 (can_use_watchpoint_cond_accel): Change to...
6501 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6502 method. Update comment, use m_dreg_interface and
6503 m_process_info.
6504 (calculate_dvc): Change to...
6505 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6506 m_dreg_interface.
6507 (num_memory_accesses): Change to...
6508 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6509 (check_condition): Change to...
6510 (ppc_linux_nat_target::check_condition): ...this method.
6511 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6512 comment, use m_dreg_interface.
6513 (create_watchpoint_request): Change to...
6514 (ppc_linux_nat_target::create_watchpoint_request): ...this
6515 method. Use m_dreg_interface.
6516 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6517 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6518 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6519 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6520 (ppc_linux_nat_target::low_forget_process)
6521 (ppc_linux_nat_target::low_new_fork)
6522 (ppc_linux_nat_target::low_new_clone)
6523 (ppc_linux_nat_target::low_delete_thread)
6524 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6525 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6526 only call mark_thread_stale.
6527 (ppc_linux_thread_exit): Remove.
6528 (ppc_linux_nat_target::stopped_data_address): Change to...
6529 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6530 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6531 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6532 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6533 comment. Call low_stopped_data_address.
6534 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6535 m_dreg_interface.
6536 (ppc_linux_nat_target::masked_watch_num_registers): Use
6537 m_dreg_interface.
6538 (ppc_linux_nat_target::copy_thread_dreg_state)
6539 (ppc_linux_nat_target::mark_thread_stale)
6540 (ppc_linux_nat_target::mark_debug_registers_changed)
6541 (ppc_linux_nat_target::register_hw_breakpoint)
6542 (ppc_linux_nat_target::clear_hw_breakpoint)
6543 (ppc_linux_nat_target::register_wp)
6544 (ppc_linux_nat_target::clear_wp)
6545 (ppc_linux_nat_target::init_arch_lwp_info)
6546 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6547 (_initialize_ppc_linux_nat): Remove observer callback.
6548
4db10d8f
PFC
65492020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6550
6551 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6552 (ppc_linux_nat_target::auxv_parse)
6553 (ppc_linux_nat_target::read_description)
6554 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6555 Move up.
6556
1310c1b0
PFC
65572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6558
6559 * linux-nat.h (low_new_clone): New method.
6560 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6561
69b037c3
SM
65622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6563
6564 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6565 (dbx_expand_psymtab): ... this.
6566 (start_psymtab): Update.
6567 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6568 (mdebug_expand_psymtab): ... this.
6569 (parse_partial_symbols): Update.
6570 (new_psymtab): Update.
6571 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6572 (xcoff_expand_psymtab): ... this.
6573 (xcoff_start_psymtab): Update.
6574
48993951
SM
65752020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6576
6577 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6578 <expand_dependencies>: ... this.
6579 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6580 (partial_symtab::expand_dependencies): ... this.
6581 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6582 Update.
6583 (dwarf2_psymtab::expand_psymtab): Update.
6584 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6585 * mdebugread.c (psymtab_to_symtab_1): Update.
6586 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6587
3ad83046
SM
65882020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6589
6590 * psympriv.h (discard_psymtab): Remove.
6591 * dbxread.c (dbx_end_psymtab): Update.
6592 * xcoffread.c (xcoff_end_psymtab): Update.
6593
4d1b9ab6
TT
65942020-03-28 Tom Tromey <tom@tromey.com>
6595
6596 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6597 comment.
6598
f1749218
TT
65992020-03-28 Tom Tromey <tom@tromey.com>
6600
6601 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6602
ebea7626
HD
66032020-03-27 Hannes Domani <ssbssa@yahoo.de>
6604
6605 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6606
a879b4d5
JB
66072020-03-26 John Baldwin <jhb@FreeBSD.org>
6608
6609 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6610
0826b30a
TT
66112020-03-26 Tom Tromey <tom@tromey.com>
6612
6613 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6614 (mark_common_block_symbol_computed, read_tag_string_type)
6615 (attr_to_dynamic_prop, read_subrange_type): Update.
6616 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6617 to be methods on struct attribute.
6618 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6619 (read_call_site_scope, partial_die_info::read)
6620 (partial_die_info::read, lookup_die_type, follow_die_ref):
6621 Update.
6622 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6623 from dwarf2_get_ref_die_offset.
6624 (attribute::constant_value): New method, from
6625 dwarf2_get_attr_constant_value.
6626 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6627 Declare method.
6628 <constant_value>: New method.
6629
2b2558bf
TT
66302020-03-26 Tom Tromey <tom@tromey.com>
6631
6632 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6633 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6634 (dwarf_type_encoding_name): Move to stringify.c.
6635 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6636 * dwarf2/stringify.c: New file.
6637 * dwarf2/stringify.h: New file.
6638
eeb64781
TT
66392020-03-26 Tom Tromey <tom@tromey.com>
6640
6641 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6642 Rewrite.
6643
a39fdb41
TT
66442020-03-26 Tom Tromey <tom@tromey.com>
6645
6646 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6647 methods.
6648 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6649 (lookup_ranges_base): Likewise.
6650 (read_cutu_die_from_dwo, read_full_die_1): Update.
6651
436c571c
TT
66522020-03-26 Tom Tromey <tom@tromey.com>
6653
6654 * dwarf2/read.c (read_import_statement, read_file_scope)
6655 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6656 (read_lexical_block_scope, read_call_site_scope)
6657 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6658 (handle_struct_member_die, process_structure_scope)
6659 (update_enumeration_type_from_children)
6660 (process_enumeration_scope, read_array_type, read_common_block)
6661 (read_namespace, read_module, read_subroutine_type): Update.
6662 (sibling_die): Remove.
6663
052c8bb8
TT
66642020-03-26 Tom Tromey <tom@tromey.com>
6665
6666 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6667 (build_type_psymtabs_reader, read_structure_type)
6668 (read_enumeration_type, read_full_die_1): Update.
6669 (dwarf2_attr_no_follow): Move to die.h.
6670 * dwarf2/die.h (struct die_info) <attr>: New method.
6671
2b24b6e4
TT
66722020-03-26 Tom Tromey <tom@tromey.com>
6673
6674 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6675 <base_address>: Now an optional.
6676 (dwarf2_find_base_address, dwarf2_rnglists_process)
6677 (dwarf2_ranges_process, fill_in_loclist_baton)
6678 (dwarf2_symbol_mark_computed): Update.
6679
c2d50fd0
TT
66802020-03-26 Tom Tromey <tom@tromey.com>
6681
6682 * dwarf2/read.c (struct die_info): Move to die.h.
6683 * dwarf2/die.h: New file.
6684
0df7ad3a
TT
66852020-03-26 Tom Tromey <tom@tromey.com>
6686
6687 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6688 * dwarf2/read.c
6689 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6690 Move to line-header.c.
6691 (read_checked_initial_length_and_offset, read_formatted_entries):
6692 Likewise.
6693 (dwarf_decode_line_header): Split into two.
6694 * dwarf2/line-header.c
6695 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6696 Move from read.c.
6697 (read_checked_initial_length_and_offset, read_formatted_entries):
6698 Likewise.
6699 (dwarf_decode_line_header): New function, split from read.c.
6700
86c0bb4c
TT
67012020-03-26 Tom Tromey <tom@tromey.com>
6702
6703 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6704 Declare method.
6705 * dwarf2/read.c (read_attribute_value): Update.
6706 (dwarf2_per_objfile::read_line_string): Rename from
6707 read_indirect_line_string.
6708 (read_formatted_entries): Update.
6709
2ef46c2f
TT
67102020-03-26 Tom Tromey <tom@tromey.com>
6711
6712 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6713 variable.
6714
4f9c1eda
TT
67152020-03-26 Tom Tromey <tom@tromey.com>
6716
6717 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6718 const.
6719 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6720 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6721 parameter const.
6722
5a0e026f
TT
67232020-03-26 Tom Tromey <tom@tromey.com>
6724
6725 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6726 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6727 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6728 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6729
8844c11b
TT
67302020-03-26 Tom Tromey <tom@tromey.com>
6731
6732 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6733 file_names_size, file_full_name, file_file_name>: Use const.
6734 <file_name_at, file_names>: Add const overload.
6735 * dwarf2/line-header.c (line_header::file_file_name)
6736 (line_header::file_full_name): Update.
6737
c90ec28a
TT
67382020-03-26 Tom Tromey <tom@tromey.com>
6739
6740 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6741 (macro_start_file, consume_improper_spaces)
6742 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6743 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6744 (dwarf_decode_macros): Move to macro.c.
6745 * dwarf2/macro.c: New file.
6746 * dwarf2/macro.h: New file.
6747 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6748
4f44ae6c
TT
67492020-03-26 Tom Tromey <tom@tromey.com>
6750
6751 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6752 method.
6753 * dwarf2/section.c: New method. From
6754 read_indirect_string_at_offset_from.
6755 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6756 (read_indirect_string_at_offset_from): Move to section.c.
6757 (read_indirect_string_at_offset): Rewrite.
6758 (read_indirect_line_string_at_offset): Remove.
6759 (read_indirect_string, read_indirect_line_string)
6760 (dwarf_decode_macro_bytes): Update.
6761
a0194fa8
TT
67622020-03-26 Tom Tromey <tom@tromey.com>
6763
6764 * dwarf2/section.h (struct dwarf2_section_info)
6765 <overload_complaint>: Declare.
6766 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6767 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6768 Rename from dwarf2_section_buffer_overflow_complaint.
6769 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6770 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6771
3d27bbdb
TT
67722020-03-26 Tom Tromey <tom@tromey.com>
6773
6774 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6775 Declare.
6776 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6777 Move from read.c.
6778 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6779 to section.c.
6780
9eac9650
TT
67812020-03-26 Tom Tromey <tom@tromey.com>
6782
6783 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6784
bf80d710
TT
67852020-03-26 Tom Tromey <tom@tromey.com>
6786
6787 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6788 "builder".
6789 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6790 parameter.
6791 (dwarf_decode_macros): Update.
6792
0314b390
TT
67932020-03-26 Tom Tromey <tom@tromey.com>
6794
6795 * dwarf2/read.c (read_attribute_value): Update.
6796 (read_indirect_string_from_dwz): Move to dwz.c; change into
6797 method.
6798 (dwarf_decode_macro_bytes): Update.
6799 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6800 * dwarf2/dwz.c: New file.
6801 * Makefile.in (COMMON_SFILES): Add dwz.c.
6802
9fda78b6
TT
68032020-03-26 Tom Tromey <tom@tromey.com>
6804
6805 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6806 * dwarf2/read.c: Add include.
6807 * dwarf2/index-write.c: Add include.
6808 * dwarf2/index-cache.c: Add include.
6809 * dwarf2/dwz.h: New file.
6810
33aa3c10
TT
68112020-03-25 Tom Tromey <tom@tromey.com>
6812
6813 * compile/compile-object-load.c (get_out_value_type): Mention
6814 correct symbol name in error message.
6815
d503b685
HD
68162020-03-25 Hannes Domani <ssbssa@yahoo.de>
6817
6818 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6819
7b1eff95
TV
68202020-03-25 Tom de Vries <tdevries@suse.de>
6821
6822 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6823 * symmisc.c (dump_symtab_1): Print user and includes fields.
6824 (maintenance_info_symtabs): Same.
6825
dd895392
AB
68262020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6827
6828 PR gdb/25534
6829 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6830 (riscv_regcache_cooked_write): New function.
6831 (riscv_push_dummy_call): Use new function.
6832 (riscv_return_value): Likewise.
6833
5ab2fbf1
SM
68342020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6835
6836 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6837 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6838 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6839 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6840 * infrun.c (follow_fork): Likewise.
6841 (follow_fork_inferior): Likewise.
6842 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6843 * linux-nat.h (class linux_nat_target): Likewise.
6844 * remote.c (class remote_target) <follow_fork>: Likewise.
6845 (remote_target::follow_fork): Likewise.
6846 * target-delegates.c: Re-generate.
6847 * target.c (default_follow_fork): Likewise.
6848 (target_follow_fork): Likewise.
6849 * target.h (struct target_ops) <follow_fork>: Likewise.
6850 (target_follow_fork): Likewise.
6851
a64fafb5
TV
68522020-03-24 Tom de Vries <tdevries@suse.de>
6853
6854 * psymtab.c (maintenance_info_psymtabs): Print user field.
6855
fe26d3a3
TT
68562020-03-20 Tom Tromey <tromey@adacore.com>
6857
6858 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6859 const.
6860 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6861 const.
6862
c884cc46
SM
68632020-03-20 Simon Marchi <simon.marchi@efficios.com>
6864
6865 * ptrace.m4: Don't check for ptrace declaration.
6866 * config.in: Re-generate.
6867 * configure: Re-generate.
6868 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6869 not defined.
6870
1ff700c2
KR
68712020-03-20 Kamil Rytarowski <n54@gmx.com>
6872
6873 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6874 `PTRACE_TYPE_RET'.
6875 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6876 * sparc-nat.c (gdb_ptrace): Likewise.
6877 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6878
f7d4f0b1
TT
68792020-03-20 Tom Tromey <tromey@adacore.com>
6880
6881 * c-exp.y (lex_one_token): Fix assert.
6882
f67210ff
TT
68832020-03-20 Tom Tromey <tromey@adacore.com>
6884
6885 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6886 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6887 strncpy call.
6888
1773be9e
TT
68892020-03-20 Tom Tromey <tromey@adacore.com>
6890
6891 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6892
70304be9
TT
68932020-03-20 Tom Tromey <tromey@adacore.com>
6894
6895 * ada-valprint.c (print_variant_part): Remove parameters; switch
6896 to value-based API.
6897 (print_field_values): Likewise.
6898 (ada_val_print_struct_union): Likewise.
6899 (ada_value_print_1): Update.
6900
9faa006d
KR
69012020-03-20 Kamil Rytarowski <n54@gmx.com>
6902
6903 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6904 nbsd_nat_target instead of inf_ptrace_target.
6905 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6906 nbsd_nat_target.
6907
4a90f062
KR
69082020-03-20 Kamil Rytarowski <n54@gmx.com>
6909
6910 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6911 it to the ptrace call.
6912 * (store_registers): Likewise.
6913
69142020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6915
6916 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6917 it to the ptrace call.
6918 * (store_registers): Likewise.
6919
2d07da27
LM
69202020-03-19 Luis Machado <luis.machado@linaro.org>
6921
6922 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6923 valid, fetch vg value from ptrace.
6924
f09db380
KR
69252020-03-19 Kamil Rytarowski <n54@gmx.com>
6926 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6927 * inf-ptrace.c: Likewise.
6928 * (gdb_ptrace): Add.
6929 * (inf_ptrace_target::resume): Update.
6930 * (inf_ptrace_target::xfer_partial): Likewise.
6931 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6932 * (inf_ptrace_peek_poke): Update.
6933
fcc7376e
KR
69342020-03-19 Kamil Rytarowski <n54@gmx.com>
6935
6936 * x86-bsd-nat.c (gdb_ptrace): New.
6937 * (x86bsd_dr_set): Add new argument `ptid'.
6938 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6939 x86bsd_dr_set_addr): Update.
6940
cada5fc9
AB
69412020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6942
6943 * remote.c (remote_target::process_stop_reply): Handle events for
6944 all threads differently.
6945
19a2740f
AB
69462020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6947
6948 * completer.c (completion_tracker::remove_completion): Define new
6949 function.
6950 * completer.h (completion_tracker::remove_completion): Declare new
6951 function.
6952 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6953 when adding a C++ function symbol.
6954
724fd9ba
AB
69552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6956
6957 * completer.c (completion_tracker::completion_hash_entry): Define
6958 new class.
6959 (advance_to_filename_complete_word_point): Call
6960 recompute_lowest_common_denominator.
6961 (completion_tracker::completion_tracker): Call discard_completions
6962 to setup the hash table.
6963 (completion_tracker::discard_completions): Allow for being called
6964 from the constructor, pass new equal function, and element deleter
6965 when constructing the hash table. Initialise new class member
6966 variables.
6967 (completion_tracker::maybe_add_completion): Remove use of
6968 m_entries_vec, and store more information into m_entries_hash.
6969 (completion_tracker::recompute_lcd_visitor): New function, most
6970 content taken from...
6971 (completion_tracker::recompute_lowest_common_denominator):
6972 ...here, this now just visits each item in the hash calling the
6973 above visitor.
6974 (completion_tracker::build_completion_result): Remove use of
6975 m_entries_vec, call recompute_lowest_common_denominator.
6976 * completer.h (completion_tracker::have_completions): Remove use
6977 of m_entries_vec.
6978 (completion_tracker::completion_hash_entry): Declare new class.
6979 (completion_tracker::recompute_lowest_common_denominator): Change
6980 function signature.
6981 (completion_tracker::recompute_lcd_visitor): Declare new function.
6982 (completion_tracker::m_entries_vec): Delete.
6983 (completion_tracker::m_entries_hash): Initialize to NULL.
6984 (completion_tracker::m_lowest_common_denominator_valid): New
6985 member variable.
6986 (completion_tracker::m_lowest_common_denominator_max_length): New
6987 member variable.
6988
5a82b8a1
KR
69892020-03-17 Kamil Rytarowski <n54@gmx.com>
6990
6991 * regformats/regdef.h: Put reg in gdb namespace.
6992
fb516a69
KR
69932020-03-17 Kamil Rytarowski <n54@gmx.com>
6994
6995 * i386-bsd-nat.c (gdb_ptrace): New.
6996 * (i386bsd_fetch_inferior_registers,
6997 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6998 * (i386bsd_fetch_inferior_registers,
6999 i386bsd_store_inferior_registers) Use gdb_ptrace.
7000
1c0aa1fb
KR
70012020-03-17 Kamil Rytarowski <n54@gmx.com>
7002
7003 * amd64-bsd-nat.c (gdb_ptrace): New.
7004 * (amd64bsd_fetch_inferior_registers,
7005 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7006 * (amd64bsd_fetch_inferior_registers,
7007 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7008
5ccd2fb7
KR
70092020-03-17 Kamil Rytarowski <n54@gmx.com>
7010
7011 * user-regs.c (user_reg::read): Rename to...
7012 (user_reg::xread): ...this.
7013 * (append_user_reg): Rename argument `read' to `xread'.
7014 * (user_reg_add_builtin): Likewise.
7015 * (user_reg_add): Likewise.
7016 * (value_of_user_reg): Likewise.
7017
2108a63a
KR
70182020-03-17 Kamil Rytarowski <n54@gmx.com>
7019
7020 * sparc-nat.c (gdb_ptrace): New.
7021 * sparc-nat.c (sparc_fetch_inferior_registers)
7022 (sparc_store_inferior_registers) Remove obsolete comment.
7023 * sparc-nat.c (sparc_fetch_inferior_registers)
7024 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7025 * sparc-nat.c (sparc_fetch_inferior_registers)
7026 (sparc_store_inferior_registers) Use gdb_ptrace.
7027
a225c9a8
KR
70282020-03-17 Kamil Rytarowski <n54@gmx.com>
7029
7030 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7031 it to the ptrace call.
7032 * sh-nbsd-nat.c (store_registers): Likewise.
7033
98097623
KR
70342020-03-17 Kamil Rytarowski <n54@gmx.com>
7035
7036 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7037 nbsd_nat_target instead of inf_ptrace_target.
7038 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7039 nbsd_nat_target.
7040
9e38d619
KR
70412020-03-17 Kamil Rytarowski <n54@gmx.com>
7042
7043 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7044
a2ecbe9f
KR
70452020-03-17 Kamil Rytarowski <n54@gmx.com>
7046
7047 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7048 <sys/sysctl.h>.
7049 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7050
58990295
TV
70512020-03-17 Tom de Vries <tdevries@suse.de>
7052
7053 PR gdb/23710
7054 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7055 fields.
7056 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7057 fields.
7058 (process_imported_unit_die): Skip import of c++ CUs.
7059
771dd3a8
TT
70602020-03-16 Tom Tromey <tom@tromey.com>
7061
7062 * p-valprint.c (pascal_object_print_value): Initialize
7063 base_value.
7064
817a7585
AK
70652020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7066 Shahab Vahedi <shahab@synopsys.com>
7067
7068 * Makefile.in: Add arch/arc.o
7069 * configure.tgt: Likewise.
7070 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7071 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7072 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7073 * arc-tdep.h (arc_read_description): Add proto type.
7074 * arch/arc.c: New file.
7075 * arch/arc.h: Likewise.
7076 * features/Makefile: Replace old target descriptions with new.
7077 * features/arc-arcompact.c: Remove.
7078 * features/arc-arcompact.xml: Likewise.
7079 * features/arc-v2.c: Likewise
7080 * features/arc-v2.xml: Likewise
7081 * features/arc/aux-arcompact.xml: New file.
7082 * features/arc/aux-v2.xml: Likewise.
7083 * features/arc/core-arcompact.xml: Likewise.
7084 * features/arc/core-v2.xml: Likewise.
7085 * features/arc/aux-arcompact.c: Generate.
7086 * features/arc/aux-v2.c: Likewise.
7087 * features/arc/core-arcompact.c: Likewise.
7088 * features/arc/core-v2.c: Likewise.
7089 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7090
67430cd0
TT
70912020-03-16 Tom Tromey <tromey@adacore.com>
7092
7093 PR gdb/25663:
7094 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7095 putting value into bcache.
7096
30efb6c7
SM
70972020-03-16 Simon Marchi <simon.marchi@efficios.com>
7098
7099 PR gdb/21500
7100 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7101 to...
7102 (amd64_windows_init_abi_common): ... this. Don't set size of
7103 long type.
7104 (amd64_windows_init_abi): New function.
7105 (amd64_cygwin_init_abi): New function.
7106 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7107 the Cygwin OS ABI.
7108 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7109 comment.
7110
8db52437
SM
71112020-03-16 Simon Marchi <simon.marchi@efficios.com>
7112
7113 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7114 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7115 (pe_import_directory_entry): New struct type.
7116 (is_linked_with_cygwin_dll): New function.
7117 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7118 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7119 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7120
5982a56a
SM
71212020-03-16 Simon Marchi <simon.marchi@efficios.com>
7122
7123 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7124 i386_cygwin_core_osabi_sniffer.
7125
7a1998df
SM
71262020-03-16 Simon Marchi <simon.marchi@efficios.com>
7127
7128 * i386-cygwin-tdep.c: Rename to...
7129 * i386-windows-tdep.c: ... this.
7130 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7131 i386-windows-tdep.c.
7132 * configure.tgt: Likewise.
7133
053205cc
SM
71342020-03-16 Simon Marchi <simon.marchi@efficios.com>
7135
7136 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7137 * osabi.c (gdb_osabi_names): Add "Windows".
7138 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7139 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7140 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7141 i386_cygwin_osabi_sniffer.
7142 (_initialize_i386_cygwin_tdep): Register OS ABI
7143 GDB_OSABI_WINDOWS for i386.
7144 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7145 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7146 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7147 for x86-64.
7148 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7149 when the target matches '*-*-mingw*'.
7150
fe4b2ee6
SM
71512020-03-16 Simon Marchi <simon.marchi@efficios.com>
7152
7153 * defs.h (enum gdb_osabi): Move to...
7154 * osabi.h (enum gdb_osabi): ... here.
7155 * gdbarch.sh: Include osabi.h in gdbarch.h.
7156 * gdbarch.h: Re-generate.
7157
cb9b645d
SM
71582020-03-16 Simon Marchi <simon.marchi@efficios.com>
7159
7160 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7161 function.
7162 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7163
3293bbaf
TT
71642020-03-14 Tom Tromey <tom@tromey.com>
7165
7166 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7167 for C++.
7168 (c_type_print_modifier): Likewise. Add "language" parameter.
7169 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7170 (c_type_print_base_1): Update.
7171 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7172 constants.
7173 * type-stack.c (type_stack::insert): Handle tp_atomic and
7174 tp_restrict.
7175 (type_stack::follow_type_instance_flags): Likewise.
7176 (type_stack::follow_types): Likewise. Merge type-following code.
7177 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7178 (space_identifier, cv_with_space_id)
7179 (const_or_volatile_or_space_identifier_noopt)
7180 (const_or_volatile_or_space_identifier): Remove.
7181 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7182 rules.
7183 (ptr_operator, typebase): Update.
7184 (enum token_flag) <FLAG_C>: New constant.
7185 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7186 "_Atomic".
7187 (lex_one_token): Handle FLAG_C.
7188
154151a6
KR
71892020-03-14 Kamil Rytarowski <n54@gmx.com>
7190
7191 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7192 it to the ptrace call.
7193 * m68k-bsd-nat.c (store_registers): Likewise.
7194
bc107784
KR
71952020-03-14 Kamil Rytarowski <n54@gmx.com>
7196
7197 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7198 gdb_byte *.
7199 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7200 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7201 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7202
01a80117
KR
72032020-03-14 Kamil Rytarowski <n54@gmx.com>
7204
7205 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7206 nbsd_nat_target instead of inf_ptrace_target.
7207 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7208 nbsd_nat_target.
7209
f90280ca
KR
72102020-03-14 Kamil Rytarowski <n54@gmx.com>
7211
7212 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7213 register_t.
7214
6def66f1
KR
72152020-03-14 Kamil Rytarowski <n54@gmx.com>
7216
7217 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7218 it to the ptrace call.
7219 * alpha-bsd-nat.c (store_registers): Likewise.
7220
66eaca97
KR
72212020-03-14 Kamil Rytarowski <n54@gmx.com>
7222
7223 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7224 includes.
7225 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7226 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7227 fill_fpregset): Likewise.
7228
4fed520b
KR
72292020-03-14 Kamil Rytarowski <n54@gmx.com>
7230
7231 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7232 nbsd_nat_target instead of inf_ptrace_target.
7233 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7234 nbsd_nat_target.
7235
2190cf06
KR
72362020-03-14 Kamil Rytarowski <n54@gmx.com>
7237
7238 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7239 register_t.
7240
75c56d3d
KR
72412020-03-14 Kamil Rytarowski <n54@gmx.com>
7242
7243 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7244 it to the ptrace call.
7245 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7246 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7247 * arm-nbsd-nat.c (store_register): Likewise.
7248 * arm-nbsd-nat.c (store_regs): Likewise.
7249 * arm-nbsd-nat.c (store_fp_register): Likewise.
7250 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7251
6018d381
KR
72522020-03-14 Kamil Rytarowski <n54@gmx.com>
7253
7254 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7255 nbsd_nat_target instead of inf_ptrace_target.
7256 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7257 nbsd_nat_target.
7258
013f99f0
KR
72592020-03-14 Kamil Rytarowski <n54@gmx.com>
7260
7261 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7262 it to the ptrace call.
7263 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7264
12753073
KR
72652020-03-14 Kamil Rytarowski <n54@gmx.com>
7266
6227b330
KR
7267 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7268 it to the ptrace call.
7269 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7270
72712020-03-14 Kamil Rytarowski <n54@gmx.com>
7272
7273 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7274 gdb_byte *.
12753073
KR
7275 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7276
d5be5fa4
KR
72772020-03-14 Kamil Rytarowski <n54@gmx.com>
7278
7279 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7280 instead of inf_ptrace_target.
7281 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7282 nbsd_nat_target.
7283
8110f842
KR
72842020-03-14 Kamil Rytarowski <n54@gmx.com>
7285
7286 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7287 register_t.
7288
52feded7
KR
72892020-03-14 Kamil Rytarowski <n54@gmx.com>
7290
7291 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7292 register_t.
7293
25567eee
KR
72942020-03-14 Kamil Rytarowski <n54@gmx.com>
7295
7296 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7297 register_t.
7298
426a9c18
TT
72992020-03-13 Tom Tromey <tom@tromey.com>
7300
7301 * value.h (val_print): Don't declare.
7302 * valprint.h (val_print_array_elements)
7303 (val_print_scalar_formatted, generic_val_print): Don't declare.
7304 * valprint.c (generic_val_print_array): Take a struct value.
7305 (generic_val_print_ptr, generic_val_print_memberptr)
7306 (generic_val_print_bool, generic_val_print_int)
7307 (generic_val_print_char, generic_val_print_complex)
7308 (generic_val_print): Remove.
7309 (generic_value_print): Update.
7310 (do_val_print): Remove unused parameters. Don't call
7311 la_val_print.
7312 (val_print): Remove.
7313 (common_val_print): Update. Don't call value_check_printable.
7314 (val_print_scalar_formatted, val_print_array_elements): Remove.
7315 * rust-lang.c (rust_val_print): Remove.
7316 (rust_language_defn): Update.
7317 * p-valprint.c (pascal_val_print): Remove.
7318 (pascal_value_print_inner): Update.
7319 (pascal_object_print_val_fields, pascal_object_print_val):
7320 Remove.
7321 (pascal_object_print_static_field): Update.
7322 * p-lang.h (pascal_val_print): Don't declare.
7323 * p-lang.c (pascal_language_defn): Update.
7324 * opencl-lang.c (opencl_language_defn): Update.
7325 * objc-lang.c (objc_language_defn): Update.
7326 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7327 * m2-lang.h (m2_val_print): Don't declare.
7328 * m2-lang.c (m2_language_defn): Update.
7329 * language.h (struct language_defn) <la_val_print>: Remove.
7330 * language.c (unk_lang_value_print_inner): Rename. Change
7331 argument types.
7332 (unknown_language_defn, auto_language_defn): Update.
7333 * go-valprint.c (go_val_print): Remove.
7334 * go-lang.h (go_val_print): Don't declare.
7335 * go-lang.c (go_language_defn): Update.
7336 * f-valprint.c (f_val_print): Remove.
7337 * f-lang.h (f_value_print): Don't declare.
7338 * f-lang.c (f_language_defn): Update.
7339 * d-valprint.c (d_val_print): Remove.
7340 * d-lang.h (d_value_print): Don't declare.
7341 * d-lang.c (d_language_defn): Update.
7342 * cp-valprint.c (cp_print_value_fields)
7343 (cp_print_value_fields_rtti, cp_print_value): Remove.
7344 (cp_print_static_field): Update.
7345 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7346 (c_val_print_struct, c_val_print_union, c_val_print_int)
7347 (c_val_print_memberptr, c_val_print): Remove.
7348 * c-lang.h (c_val_print_array, cp_print_value_fields)
7349 (cp_print_value_fields_rtti): Don't declare.
7350 * c-lang.c (c_language_defn, cplus_language_defn)
7351 (asm_language_defn, minimal_language_defn): Update.
7352 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7353 (ada_val_print_enum): Take a struct value.
7354 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7355 (ada_val_print): Remove.
7356 (ada_value_print_1): Update.
7357 (printable_val_type): Remove.
7358 * ada-lang.h (ada_val_print): Don't declare.
7359 * ada-lang.c (ada_language_defn): Update.
7360
42331a1e
TT
73612020-03-13 Tom Tromey <tom@tromey.com>
7362
7363 * valprint.c (do_val_print): Update.
7364 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7365 a struct value.
7366 (value_to_value_object_no_release): Declare.
7367 * python/py-value.c (value_to_value_object_no_release): New
7368 function.
7369 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7370 struct value.
7371 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7372 function.
7373 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7374 a struct value.
7375 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7376 Declare.
7377 (gdbscm_apply_val_pretty_printer): Take a struct value.
7378 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7379 value.
7380 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7381 value.
7382 * extension-priv.h (struct extension_language_ops)
7383 <apply_val_pretty_printer>: Take a struct value.
7384 * cp-valprint.c (cp_print_value): Create a struct value.
7385 (cp_print_value): Update.
7386
3a916a97
TT
73872020-03-13 Tom Tromey <tom@tromey.com>
7388
7389 * ada-valprint.c (print_field_values): Call common_val_print.
7390
b59eac37
TT
73912020-03-13 Tom Tromey <tom@tromey.com>
7392
7393 * ada-valprint.c (val_print_packed_array_elements): Remove
7394 bitoffset and val parameters. Call common_val_print.
7395 (ada_val_print_string): Remove offset, address, and original_value
7396 parameters.
7397 (ada_val_print_array): Update.
7398 (ada_value_print_array): New function.
7399 (ada_value_print_1): Call it.
7400
03371129
TT
74012020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * ada-valprint.c (ada_value_print): Use common_val_print.
7404
2e088f8b
TT
74052020-03-13 Tom Tromey <tom@tromey.com>
7406
7407 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7408
39ef85a8
TT
74092020-03-13 Tom Tromey <tom@tromey.com>
7410
7411 * ada-valprint.c (ada_value_print_num): New function.
7412 (ada_value_print_1): Use it.
7413
b9fa6e07
TT
74142020-03-13 Tom Tromey <tom@tromey.com>
7415
7416 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7417
416595d6
TT
74182020-03-13 Tom Tromey <tom@tromey.com>
7419
7420 * ada-valprint.c (ada_value_print_ptr): New function.
7421 (ada_value_print_1): Use it.
7422
5b5e15ec
TT
74232020-03-13 Tom Tromey <tom@tromey.com>
7424
7425 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7426 call common_val_print.
7427 (ada_val_print_1): Update.
7428 (ada_value_print_1): New function.
7429 (ada_value_print_inner): Rewrite.
7430
fbf54e75
TT
74312020-03-13 Tom Tromey <tom@tromey.com>
7432
7433 * cp-valprint.c (cp_print_value_fields): Update.
7434 (cp_print_value): New function.
7435
64b653ca
TT
74362020-03-13 Tom Tromey <tom@tromey.com>
7437
7438 * m2-valprint.c (m2_value_print_inner): Use
7439 cp_print_value_fields.
7440 * cp-valprint.c (cp_print_value_fields): New function.
7441 * c-valprint.c (c_value_print_struct): New function.
7442 (c_value_print_inner): Use c_value_print_struct.
7443 * c-lang.h (cp_print_value_fields): Declare.
7444
6999f067
TT
74452020-03-13 Tom Tromey <tom@tromey.com>
7446
7447 * c-valprint.c (c_value_print_array): New function.
7448 (c_value_print_inner): Use it.
7449
ce80b8bd
TT
74502020-03-13 Tom Tromey <tom@tromey.com>
7451
7452 * c-valprint.c (c_value_print_memberptr): New function.
7453 (c_value_print_inner): Use it.
7454
2faac269
TT
74552020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * c-valprint.c (c_value_print_int): New function.
7458 (c_value_print_inner): Use it.
7459
da3e2c29
TT
74602020-03-13 Tom Tromey <tom@tromey.com>
7461
7462 * c-valprint.c (c_value_print_ptr): New function.
7463 (c_value_print_inner): Use it.
7464
50836231
TT
74652020-03-13 Tom Tromey <tom@tromey.com>
7466
7467 * c-valprint.c (c_value_print_inner): Rewrite.
7468
4f412b6e
TT
74692020-03-13 Tom Tromey <tom@tromey.com>
7470
7471 * valprint.c (generic_value_print_complex): New function.
7472 (generic_value_print): Use it.
7473
f5354008
TT
74742020-03-13 Tom Tromey <tom@tromey.com>
7475
7476 * valprint.c (generic_val_print_float): Don't call
7477 val_print_scalar_formatted.
7478 (generic_val_print, generic_value_print): Update.
7479
3eec3b05
TT
74802020-03-13 Tom Tromey <tom@tromey.com>
7481
7482 * valprint.c (generic_value_print_char): New function
7483 (generic_value_print): Use it.
7484
fdddfccb
TT
74852020-03-13 Tom Tromey <tom@tromey.com>
7486
7487 * valprint.c (generic_value_print_int): New function.
7488 (generic_value_print): Use it.
7489
6dde7521
TT
74902020-03-13 Tom Tromey <tom@tromey.com>
7491
7492 * valprint.c (generic_value_print_bool): New function.
7493 (generic_value_print): Use it.
7494
4112d2e6
TT
74952020-03-13 Tom Tromey <tom@tromey.com>
7496
7497 * valprint.c (generic_val_print_func): Simplify.
7498 (generic_val_print, generic_value_print): Update.
7499
65786af6
TT
75002020-03-13 Tom Tromey <tom@tromey.com>
7501
7502 * valprint.c (generic_val_print_flags): Remove.
7503 (generic_val_print, generic_value_print): Update.
7504 (val_print_type_code_flags): Add original_value parameter.
7505
40f3ce18
TT
75062020-03-13 Tom Tromey <tom@tromey.com>
7507
7508 * valprint.c (generic_val_print): Update.
7509 (generic_value_print): Update.
7510 * valprint.c (generic_val_print_enum): Don't call
7511 val_print_scalar_formatted.
7512
2a5b130b
TT
75132020-03-13 Tom Tromey <tom@tromey.com>
7514
7515 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7516 * valprint.c (generic_value_print_ptr): New function.
7517
abc66ce9
TT
75182020-03-13 Tom Tromey <tom@tromey.com>
7519
7520 * valprint.c (generic_value_print): Rewrite.
7521
07a32858
TT
75222020-03-13 Tom Tromey <tom@tromey.com>
7523
7524 * p-valprint.c (pascal_object_print_value_fields)
7525 (pascal_object_print_value): New functions.
7526
64d64d3a
TT
75272020-03-13 Tom Tromey <tom@tromey.com>
7528
7529 * p-valprint.c (pascal_value_print_inner): Rewrite.
7530
6a95a1f5
TT
75312020-03-13 Tom Tromey <tom@tromey.com>
7532
7533 * f-valprint.c (f_value_print_innner): Rewrite.
7534
59fcdac6
TT
75352020-03-13 Tom Tromey <tom@tromey.com>
7536
7537 * m2-valprint.c (m2_print_unbounded_array): New overload.
7538 (m2_print_unbounded_array): Update.
7539 (m2_print_array_contents): Take a struct value.
7540 (m2_value_print_inner): Rewrite.
7541
d133c3e1
TT
75422020-03-13 Tom Tromey <tom@tromey.com>
7543
7544 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7545 (d_value_print_inner): New function.
7546 * d-lang.h (d_value_print_inner): Declare.
7547 * d-lang.c (d_language_defn): Use d_value_print_inner.
7548
23b0f06b
TT
75492020-03-13 Tom Tromey <tom@tromey.com>
7550
7551 * go-valprint.c (go_value_print_inner): New function.
7552 * go-lang.h (go_value_print_inner): Declare.
7553 * go-lang.c (go_language_defn): Use go_value_print_inner.
7554
5f56f7cb
TT
75552020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7558 API.
7559 (rust_val_print): Rewrite.
7560 (rust_value_print_inner): New function, from rust_val_print.
7561 (rust_language_defn): Use rust_value_print_inner.
7562
26792ee0
TT
75632020-03-13 Tom Tromey <tom@tromey.com>
7564
7565 * ada-valprint.c (ada_value_print_inner): New function.
7566 * ada-lang.h (ada_value_print_inner): Declare.
7567 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7568
24051bbe
TT
75692020-03-13 Tom Tromey <tom@tromey.com>
7570
7571 * f-valprint.c (f_value_print_innner): New function.
7572 * f-lang.h (f_value_print_innner): Declare.
7573 * f-lang.c (f_language_defn): Use f_value_print_innner.
7574
c0941be6
TT
75752020-03-13 Tom Tromey <tom@tromey.com>
7576
7577 * p-valprint.c (pascal_value_print_inner): New function.
7578 * p-lang.h (pascal_value_print_inner): Declare.
7579 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7580
62c4663d
TT
75812020-03-13 Tom Tromey <tom@tromey.com>
7582
7583 * m2-valprint.c (m2_value_print_inner): New function.
7584 * m2-lang.h (m2_value_print_inner): Declare.
7585 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7586
62182190
TT
75872020-03-13 Tom Tromey <tom@tromey.com>
7588
7589 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7590 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7591 * c-valprint.c (c_value_print_inner): New function.
7592 * c-lang.h (c_value_print_inner): Declare.
7593 * c-lang.c (c_language_defn, cplus_language_defn)
7594 (asm_language_defn, minimal_language_defn): Use
7595 c_value_print_inner.
7596
1e592a8a
TT
75972020-03-13 Tom Tromey <tom@tromey.com>
7598
7599 * p-valprint.c (pascal_object_print_value_fields): Now static.
7600 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7601
7fe471e9
TT
76022020-03-13 Tom Tromey <tom@tromey.com>
7603
7604 * c-valprint.c (c_val_print_array): Simplify.
7605
d121c6ce
TT
76062020-03-13 Tom Tromey <tom@tromey.com>
7607
7608 * valprint.c (value_print_array_elements): New function.
7609 * valprint.h (value_print_array_elements): Declare.
7610
4dba70ee
TT
76112020-03-13 Tom Tromey <tom@tromey.com>
7612
7613 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7614 * mips-tdep.c (mips_print_register): Use
7615 value_print_scalar_formatted.
7616
4f9ae810
TT
76172020-03-13 Tom Tromey <tom@tromey.com>
7618
7619 * valprint.h (value_print_scalar_formatted): Declare.
7620 * valprint.c (value_print_scalar_formatted): New function.
7621
156bfec9
TT
76222020-03-13 Tom Tromey <tom@tromey.com>
7623
7624 * valprint.h (generic_value_print): Declare.
7625 * valprint.c (generic_value_print): New function.
7626
2b4e573d
TT
76272020-03-13 Tom Tromey <tom@tromey.com>
7628
7629 * valprint.c (do_val_print): Call la_value_print_inner, if
7630 available.
7631 * rust-lang.c (rust_language_defn): Update.
7632 * p-lang.c (pascal_language_defn): Update.
7633 * opencl-lang.c (opencl_language_defn): Update.
7634 * objc-lang.c (objc_language_defn): Update.
7635 * m2-lang.c (m2_language_defn): Update.
7636 * language.h (struct language_defn) <la_value_print_inner>: New
7637 member.
7638 * language.c (unknown_language_defn, auto_language_defn): Update.
7639 * go-lang.c (go_language_defn): Update.
7640 * f-lang.c (f_language_defn): Update.
7641 * d-lang.c (d_language_defn): Update.
7642 * c-lang.c (c_language_defn, cplus_language_defn)
7643 (asm_language_defn, minimal_language_defn): Update.
7644 * ada-lang.c (ada_language_defn): Update.
7645
a1f6a07c
TT
76462020-03-13 Tom Tromey <tom@tromey.com>
7647
7648 * c-valprint.c (c_value_print): Use common_val_print.
7649
410cf315
TT
76502020-03-13 Tom Tromey <tom@tromey.com>
7651
7652 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7653
72a45c93
TT
76542020-03-13 Tom Tromey <tom@tromey.com>
7655
7656 * f-valprint.c (f77_print_array_1, f_val_print): Use
7657 common_val_print.
7658
040f66bd
TT
76592020-03-13 Tom Tromey <tom@tromey.com>
7660
7661 * riscv-tdep.c (riscv_print_one_register_info): Use
7662 common_val_print.
7663
a6e05a6c
TT
76642020-03-13 Tom Tromey <tom@tromey.com>
7665
7666 * mi/mi-main.c (output_register): Use common_val_print.
7667
3444c526
TT
76682020-03-13 Tom Tromey <tom@tromey.com>
7669
7670 * infcmd.c (default_print_one_register_info): Use
7671 common_val_print.
7672
c2a44efe
TT
76732020-03-13 Tom Tromey <tom@tromey.com>
7674
7675 * valprint.h (common_val_print_checked): Declare.
7676 * valprint.c (common_val_print_checked): New function.
7677 * stack.c (print_frame_arg): Use common_val_print_checked.
7678
b0c26e99
TT
76792020-03-13 Tom Tromey <tom@tromey.com>
7680
7681 * valprint.c (do_val_print): New function, from val_print.
7682 (val_print): Use do_val_print.
7683 (common_val_print): Use do_val_print.
7684
ce3acbe9
TT
76852020-03-13 Tom Tromey <tom@tromey.com>
7686
7687 * valprint.c (value_print): Use scoped_value_mark.
7688
96c7f873
TV
76892020-03-13 Tom de Vries <tdevries@suse.de>
7690
7691 PR symtab/25646
7692 * psymtab.c (partial_symtab::partial_symtab): Don't set
7693 globals_offset and statics_offset. Push element onto
7694 current_global_psymbols and current_static_psymbols stacks.
7695 (concat): New function.
7696 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7697 element from current_global_psymbols and current_static_psymbols
7698 stacks. Concat popped elements to global_psymbols and
7699 static_symbols.
7700 (add_psymbol_to_list): Use current_global_psymbols and
7701 current_static_psymbols stacks.
7702 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7703 current_static_psymbols fields.
7704
6ba0a321
CB
77052020-03-12 Christian Biesinger <cbiesinger@google.com>
7706
7707 * corelow.c (sniff_core_bfd): Remove.
7708 (class core_target) <m_core_vec>: Remove.
7709 (core_target::core_target): Update.
7710 (core_file_fns): Remove.
7711 (deprecated_add_core_fns): Remove.
7712 (default_core_sniffer): Remove.
7713 (sniff_core_bfd): Remove.
7714 (default_check_format): Remove.
7715 (gdb_check_format): Remove.
7716 (core_target_open): Update.
7717 (core_target::get_core_register_section): Update.
7718 (get_core_registers_cb): Update.
7719 (core_target::fetch_registers): Update.
7720 * gdbcore.h (struct core_fns): Remove.
7721 (deprecated_add_core_fns): Remove.
7722 (default_core_sniffer): Remove.
7723 (default_check_format): Remove.
7724
227031b2
TT
77252020-03-12 Tom Tromey <tom@tromey.com>
7726
7727 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7728 CORE_ADDR.
7729 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7730
53807e9f
TT
77312020-03-12 Tom Tromey <tom@tromey.com>
7732
7733 * remote.c (remote_target::download_tracepoint)
7734 (remote_target::enable_tracepoint)
7735 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7736 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7737 sprintf_vma.
7738
64f25102
TT
77392020-03-12 Tom Tromey <tom@tromey.com>
7740
7741 * symfile-mem.c: Update CORE_ADDR size assert.
7742
272cd5a3
SM
77432020-03-12 Simon Marchi <simon.marchi@efficios.com>
7744
7745 * selftest.m4: Move to gdbsupport/.
7746 * acinclude.m4: Update path to selftest.m4.
7747
74cd3f9d
SM
77482020-03-12 Simon Marchi <simon.marchi@efficios.com>
7749
7750 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7751 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7752 gdbarch-selfselftests.c and selftest-arch.c.
7753 (SUBDIR_UNITTESTS_OBS): Rename to...
7754 (SELFTESTS_OBS): ... this.
7755 (COMMON_SFILES): Remove disasm-selftests.c and
7756 gdbarch-selftests.c.
7757 * configure.ac: Don't add selftest-arch.{c,o} to
7758 CONFIG_{SRCS,OBS}.
7759 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7760 preprocessor conditions.
7761
db6878ac
SM
77622020-03-12 Simon Marchi <simon.marchi@efficios.com>
7763
7764 * configure.ac: Don't source bfd/development.sh.
7765 * selftest.m4: Modify comment.
7766 * configure: Re-generate.
7767
4d696a5c
SM
77682020-03-12 Simon Marchi <simon.marchi@efficios.com>
7769
7770 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7771 not "true" or "false".
7772 * configure: Re-generate.
7773
8dd8e1c7
CB
77742020-03-12 Christian Biesinger <cbiesinger@google.com>
7775
7776 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7777 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7778 renamed to arm_nbsd_supply_gregset.
7779 (fetch_register): Update to call arm_nbsd_supply_gregset.
7780 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7781 (arm_netbsd_nat_target::fetch_registers): Update.
7782 (fetch_elfcore_registers): Removed.
7783 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7784 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7785 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7786 not require NetBSD system headers.
7787 (arm_nbsd_regset): New struct.
7788 (arm_nbsd_iterate_over_regset_sections): New function.
7789 (arm_netbsd_init_abi_common): Updated to call
7790 set_gdbarch_iterate_over_regset_sections.
7791 * arm-nbsd-tdep.h: New file.
7792
dd69bf7a
KB
77932020-03-11 Kevin Buettner <kevinb@redhat.com>
7794
7795 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7796 recursion.
7797
a0761e34
SM
77982020-03-11 Simon Marchi <simon.marchi@efficios.com>
7799
7800 * configure: Re-generate.
7801
e7a82140
TT
78022020-03-11 Tom Tromey <tromey@adacore.com>
7803
7804 * ada-typeprint.c (print_choices): Fix comment.
7805
dcc050c8
AB
78062020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7807
7808 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7809 previous item in the list, when the list has no items.
7810
1c33af77
TV
78112020-03-11 Tom de Vries <tdevries@suse.de>
7812
7813 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7814 PROP_LOCLIST handling code.
7815
8c95582d
AB
78162020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7817
7818 * buildsym-legacy.c (record_line): Pass extra parameter to
7819 record_line.
7820 * buildsym.c (buildsym_compunit::record_line): Take an extra
7821 parameter, reduce duplication in the line table, and record the
7822 is_stmt flag in the line table.
7823 * buildsym.h (buildsym_compunit::record_line): Add extra
7824 parameter.
7825 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7826 non-statement lines.
7827 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7828 this to the symtab builder.
7829 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7830 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7831 through to dwarf_record_line_1.
7832 * infrun.c (process_event_stop_test): When stepping, don't stop at
7833 a non-statement instruction, and only refresh the step info when
7834 we land in the middle of a line's range. Also add an extra
7835 comment.
7836 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7837 field.
7838 * record-btrace.c (btrace_find_line_range): Only record lines
7839 marked as is-statement.
7840 * stack.c (frame_show_address): Show the frame address if we are
7841 in a non-statement sal.
7842 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7843 (maintenance_print_one_line_table): Print a header for the is_stmt
7844 column, and include is_stmt information in the output.
7845 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7846 preference to non-statements.
7847 (find_pcs_for_symtab_line): Prefer is-statement entries.
7848 (find_line_common): Likewise.
7849 * symtab.h (struct linetable_entry): Add is_stmt field.
7850 (struct symtab_and_line): Likewise.
7851 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7852 arranging the line table.
7853
e4003a34
TV
78542020-03-07 Tom de Vries <tdevries@suse.de>
7855
7856 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7857 DIE.
7858
e8932576
TT
78592020-03-07 Tom Tromey <tom@tromey.com>
7860
7861 * valops.c (value_literal_complex): Remove obsolete comment.
7862 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7863 comment.
7864
29734269
SM
78652020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7866
7867 * infrun.h: Forward-declare thread_info.
7868 (set_step_info): Add thread_info parameter, add doc.
7869 * infrun.c (set_step_info): Add thread_info parameter, move doc
7870 to header.
7871 * infrun.c (process_event_stop_test): Pass thread to
7872 set_step_info call.
7873 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7874 set_step_info.
7875 (prepare_one_step): Add thread_info parameter, pass it to
7876 set_step_frame and prepare_one_step (recursive) call.
7877 (step_1): Pass thread to prepare_one_step call.
7878 (step_command_fsm::should_stop): Pass thread to
7879 prepare_one_step.
7880 (until_next_fsm): Pass thread to set_step_frame call.
7881 (finish_command): Pass thread to set_step_info call.
7882
b7d64b29
HD
78832020-03-06 Hannes Domani <ssbssa@yahoo.de>
7884
7885 * windows-tdep.c (windows_solib_create_inferior_hook):
7886 Check if inferior is running.
7887
09f2921c
TV
78882020-03-06 Tom de Vries <tdevries@suse.de>
7889
7890 * NEWS: Fix "the the".
7891 * ctfread.c: Same.
7892
fd760e79
TV
78932020-03-06 Tom de Vries <tdevries@suse.de>
7894
7895 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7896
20ea4a60
AB
78972020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7898
7899 * .dir-locals.el: Add a comment referencing the other copies of
7900 this file.
7901
0afbabf0
JB
79022020-03-05 John Baldwin <jhb@FreeBSD.org>
7903
7904 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7905 psargs.
7906
842806cb
TBA
79072020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7908
7909 * .gitattributes: New file.
7910
be1e3d3e
TT
79112020-03-04 Tom Tromey <tom@tromey.com>
7912
7913 * symmisc.c (print_symbol_bcache_statistics)
7914 (print_objfile_statistics): Update.
7915 * symfile.c (allocate_symtab): Use intern.
7916 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7917 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7918 macro_cache>: Remove.
7919 <string_cache>: New member.
7920 (struct objfile) <intern>: New methods.
7921 * elfread.c (elf_symtab_read): Use intern.
7922 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7923 (dwarf2_compute_name, dwarf2_physname)
7924 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7925 names.
7926 (guess_partial_die_structure_name): Update.
7927 (partial_die_info::fixup): Intern name.
7928 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7929 name.
7930 (dwarf2_name): Intern name. Update.
7931 * buildsym.c (buildsym_compunit::get_macro_table): Use
7932 string_cache.
7933
4e7625fd
TT
79342020-03-04 Tom Tromey <tom@tromey.com>
7935
7936 * jit.c (bfd_open_from_target_memory): Make "target" const.
7937 * corefile.c (gnutarget): Now const.
7938 * gdbcore.h (gnutarget): Now const.
7939
46f9f931
HD
79402020-03-04 Hannes Domani <ssbssa@yahoo.de>
7941
7942 * NEWS: Mention support for WOW64 processes.
7943 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7944 (amd64_windows_segment_register_p): Remove static.
7945 (_initialize_amd64_windows_nat): Update.
7946 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7947 * i386-windows-nat.c (context_offset): Update.
7948 (i386_mappings): Rename and remove static.
7949 (i386_windows_segment_register_p): Remove static.
7950 (_initialize_i386_windows_nat): Update.
7951 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7952 (STATUS_WX86_SINGLE_STEP): New macro.
7953 (EnumProcessModulesEx): New macro.
7954 (Wow64SuspendThread): New macro.
7955 (Wow64GetThreadContext): New macro.
7956 (Wow64SetThreadContext): New macro.
7957 (Wow64GetThreadSelectorEntry): New macro.
7958 (windows_set_context_register_offsets): Add static.
7959 (windows_set_segment_register_p): Likewise.
7960 (windows_add_thread): Adapt for WOW64 processes.
7961 (windows_fetch_one_register): Likewise.
7962 (windows_nat_target::fetch_registers): Likewise.
7963 (windows_store_one_register): Likewise.
7964 (display_selector): Likewise.
7965 (display_selectors): Likewise.
7966 (handle_exception): Likewise.
7967 (windows_continue): Likewise.
7968 (windows_nat_target::resume): Likewise.
7969 (windows_add_all_dlls): Likewise.
7970 (do_initial_windows_stuff): Likewise.
7971 (windows_nat_target::attach): Likewise.
7972 (windows_get_exec_module_filename): Likewise.
7973 (windows_nat_target::create_inferior): Likewise.
7974 (windows_xfer_siginfo): Likewise.
7975 (_initialize_loadable): Initialize Wow64SuspendThread,
7976 Wow64GetThreadContext, Wow64SetThreadContext,
7977 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7978 * windows-nat.h (windows_set_context_register_offsets):
7979 Remove declaration.
7980 (windows_set_segment_register_p): Likewise.
7981 (i386_windows_segment_register_p): Add declaration.
7982 (amd64_windows_segment_register_p): Likewise.
7983
440cf44e
LM
79842020-03-04 Luis Machado <luis.machado@linaro.org>
7985
7986 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7987 in "info registers" for AArch64/ARM.
7988
7989 The change caused "info registers" to not print GPR's.
7990
7991 gdb/ChangeLog:
7992
7993 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7994
7995 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7996 when reg->group is empty and reggroup is not.
7997
1009d92f
TT
79982020-03-03 Tom Tromey <tromey@adacore.com>
7999
8000 * dwarf2/frame.c (struct dwarf2_frame_cache)
8001 <checked_tailcall_bottom, entry_cfa_sp_offset,
8002 entry_cfa_sp_offset_p>: Remove members.
8003 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8004 (dwarf2_frame_prev_register): Don't call
8005 dwarf2_tailcall_sniffer_first.
8006 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8007 * frame-unwind.c (add_unwinder): New fuction.
8008 (frame_unwind_init): Use it. Add tailcall unwinder.
8009
5e5d66b6
AB
80102020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8011 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8012
8013 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8014 value should be printed as true.
8015
584cf46d
HD
80162020-03-03 Hannes Domani <ssbssa@yahoo.de>
8017
8018 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8019 (windows_init_abi): Set and use windows_so_ops.
8020
7b973adc
SDJ
80212020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8022
8023 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8024 when verifying if dealing with a convenience variable.
8025
bb7b70ab
LM
80262020-03-03 Luis Machado <luis.machado@linaro.org>
8027
8028 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8029
9822cb57
SM
80302020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8031
8032 * infrun.c (gdbarch_supports_displaced_stepping): New.
8033 (use_displaced_stepping): Break up conditions in smaller pieces.
8034 Use gdbarch_supports_displaced_stepping.
8035 (displaced_step_prepare_throw): Use
8036 gdbarch_supports_displaced_stepping.
8037
63e163f2
AB
80382020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8039
8040 * NEWS: Mention new behaviour of the history filename.
8041 * top.c (write_history_p): Add comment.
8042 (show_write_history_p): Add header comment, give a different
8043 message when history writing is on, but the history filename is
8044 empty.
8045 (history_filename): Add comment.
8046 (history_filename_empty): New function.
8047 (show_history_filename): Add header comment, give a different
8048 message when the filename is empty.
8049 (init_history): Compare history_filename against nullptr, and only
8050 read history if the filename is not empty.
8051 (set_history_filename): Add header comment, and only make
8052 non-empty filenames absolute.
8053 (init_main): Make the filename argument to 'set history filename'
8054 optional.
8055
81b86b97
CB
80562020-03-02 Christian Biesinger <cbiesinger@google.com>
8057
8058 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8059 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8060 (fetch_fp_register): Update.
8061 (fetch_fp_regs): Update.
8062 (store_fp_register): Update.
8063 (store_fp_regs): Update.
8064 (arm_netbsd_nat_target::read_description): New function.
8065 (fetch_elfcore_registers): Update.
8066
24ed6739
AB
80672020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8068
8069 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8070 general_thread if the stop reply is missing a thread-id.
8071 (remote_target::process_stop_reply): Use the first non-exited
8072 thread if the target didn't pass a thread-id.
8073 * infrun.c (do_target_wait): Move call to
8074 switch_to_inferior_no_thread to ....
8075 (do_target_wait_1): ... here.
8076
a84bb2a0
JT
80772020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8078
8079 * debuginfod-support.c: Include defs.h first.
8080
658dadf0
TV
80812020-02-28 Tom de Vries <tdevries@suse.de>
8082
8083 * symfile.c (set_initial_language): Use default language for lookup.
8084
4ebe4877
SM
80852020-02-28 Simon Marchi <simon.marchi@efficios.com>
8086
8087 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8088 reader variable, pass `this` to read_cutu_die_from_dwo.
8089
e5da1139
AM
80902020-02-27 Aaron Merey <amerey@redhat.com>
8091
8092 * source.c (open_source_file): Check for nullptr when computing
8093 srcpath.
8094
317f7127
TT
80952020-02-27 Tom Tromey <tromey@adacore.com>
8096
8097 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8098 member.
8099 (dwarf2_add_field): Don't update nfields.
8100 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8101
3104d9ee
AB
81022020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8103
8104 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8105 abs.
8106
b83470bf
TT
81072020-02-26 Tom Tromey <tom@tromey.com>
8108
8109 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8110 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8111 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8112 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8113 per_cu_data.
8114
edfe0a0c
TT
81152020-02-26 Tom Tromey <tom@tromey.com>
8116
8117 * dwarf2/index-write.c (psym_index_map): Change type.
8118 (add_address_entry_worker, write_one_signatured_type)
8119 (recursively_count_psymbols, recursively_write_psymbols)
8120 (class debug_names, psyms_seen_size, write_gdbindex)
8121 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8122
0d79cdc4
AM
81232020-02-26 Aaron Merey <amerey@redhat.com>
8124
8125 * Makefile.in: Handle optional debuginfod support.
8126 * NEWS: Update.
8127 * README: Add --with-debuginfod summary.
8128 * config.in: Regenerate.
8129 * configure: Regenerate.
8130 * configure.ac: Handle optional debuginfod support.
8131 * debuginfod-support.c: debuginfod helper functions.
8132 * debuginfod-support.h: Ditto.
8133 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8134 summary.
8135 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8136 when a dwz file cannot be found.
8137 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8138 debuginfo file cannot be found.
8139 * source.c (open_source_file): Query debuginfod servers when a
8140 source file cannot be found.
8141 * top.c (print_gdb_configuration): Include
8142 --{with,without}-debuginfod in the output.
8143
b65ce565
JG
81442020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8145
8146 * thread.c (thr_try_catch_cmd): Print thread name.
8147
d4c9a4f8
SM
81482020-02-26 Simon Marchi <simon.marchi@efficios.com>
8149
8150 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8151 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8152 dwarf2_fetch_die_type_sect_off): Move to...
8153 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8154 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8155 dwarf2_fetch_die_type_sect_off): ... here.
8156 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8157 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8158 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8159
0dce4280
TV
81602020-02-26 Tom de Vries <tdevries@suse.de>
8161
8162 PR gdb/25603
8163 * symfile.c (set_initial_language): Exit-early if
8164 language_mode == language_mode_manual.
8165
450a1bfc
SM
81662020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8167
8168 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8169 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8170 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8171
9e80cfa1
AB
81722020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * gdbtypes.c (create_array_type_with_stride): Handle negative
8175 array strides.
8176 * valarith.c (value_subscripted_rvalue): Likewise.
8177
09624f1f
LM
81782020-02-25 Luis Machado <luis.machado@linaro.org>
8179
8180 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8181
8cb5117c
SM
81822020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8183
8184 * loc.h (dwarf2_get_die_type): Move to...
8185 * read.h (dwarf2_get_die_type): ... here.
8186 * read.c (dwarf2_get_die_type): Move doc to header.
8187
c325c44e
JB
81882020-02-25 Joel Brobecker <brobecker@adacore.com>
8189
8190 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8191 'gnulib/Makefile.in' to the list.
8192
4ac93832
TT
81932020-02-24 Tom Tromey <tom@tromey.com>
8194
8195 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8196 Remove.
8197 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8198 XOBNEWVEC.
8199
197400e8
TT
82002020-02-24 Tom Tromey <tom@tromey.com>
8201
8202 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8203 New method.
8204 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8205 (dw2_do_instantiate_symtab, dw2_get_file_names)
8206 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8207
76935768
TT
82082020-02-24 Tom Tromey <tom@tromey.com>
8209
8210 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8211 make_scoped_restore.
8212 (dwarf2_psymtab::read_symtab): Don't clear
8213 reading_partial_symbols.
8214
a88ef40d
TV
82152020-02-24 Tom de Vries <tdevries@suse.de>
8216
8217 PR gdb/25592
8218 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8219
c9af6521
TV
82202020-02-24 Tom de Vries <tdevries@suse.de>
8221
8222 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8223 commands layout next/prev/regs.
8224
5707a07a
TT
82252020-02-22 Tom Tromey <tom@tromey.com>
8226
8227 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8228 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8229
3b0fb49e
TT
82302020-02-22 Tom Tromey <tom@tromey.com>
8231
8232 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8233
283be8bf
TT
82342020-02-22 Tom Tromey <tom@tromey.com>
8235
8236 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8237 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8238 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8239 * tui/tui.c (_initialize_tui): Add usage text.
8240
ca793b96
TT
82412020-02-22 Tom Tromey <tom@tromey.com>
8242
8243 * tui/tui-win.c (tui_set_focus_command)
8244 (tui_set_win_height_command): Use error_no_arg.
8245 (_initialize_tui_win): Update help text.
8246 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8247
432b5c40
TT
82482020-02-22 Tom Tromey <tom@tromey.com>
8249
8250 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8251 * tui/tui-disasm.h (struct tui_disasm_window)
8252 <display_start_addr>: Declare.
8253 * tui/tui-source.h (struct tui_source_window)
8254 <display_start_addr>: Declare.
8255 * tui/tui-winsource.h (struct tui_source_window_base)
8256 <show_source_line, display_start_addr>: New methods.
8257 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8258 Rename and move to protected section.
8259 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8260 (tui_source_window_base::do_erase_source_content): Update.
8261 (tui_source_window_base::show_source_line): Now a method.
8262 (tui_source_window_base::show_source_content)
8263 (tui_source_window_base::tui_source_window_base)
8264 (tui_source_window_base::rerender)
8265 (tui_source_window_base::refill)
8266 (tui_source_window_base::do_scroll_horizontal)
8267 (tui_source_window_base::set_is_exec_point_at)
8268 (tui_source_window_base::update_breakpoint_info)
8269 (tui_source_window_base::update_exec_info): Update.
8270 * tui/tui-source.c (tui_source_window::set_contents)
8271 (tui_source_window::showing_source_p)
8272 (tui_source_window::do_scroll_vertical)
8273 (tui_source_window::location_matches_p)
8274 (tui_source_window::line_is_displayed): Update.
8275 (tui_source_window::display_start_addr): New method.
8276 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8277 (tui_disasm_window::do_scroll_vertical)
8278 (tui_disasm_window::location_matches_p): Update.
8279 (tui_disasm_window::display_start_addr): New method.
8280
01b1af32
TT
82812020-02-22 Tom Tromey <tom@tromey.com>
8282
8283 * NEWS: Add entry for gdb.register_window_type.
8284 * tui/tui-layout.h (window_factory): New typedef.
8285 (tui_register_window): Declare.
8286 * tui/tui-layout.c (saved_tui_windows): New global.
8287 (tui_apply_current_layout): Use it.
8288 (tui_register_window): New function.
8289 * python/python.c (do_start_initialization): Call
8290 gdbpy_initialize_tui.
8291 (python_GdbMethods): Add "register_window_type" function.
8292 * python/python-internal.h (gdbpy_register_tui_window)
8293 (gdbpy_initialize_tui): Declare.
8294 * python/py-tui.c: New file.
8295 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8296
fc96d20b
TT
82972020-02-22 Tom Tromey <tom@tromey.com>
8298
8299 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8300
935c78c0
TT
83012020-02-22 Tom Tromey <tom@tromey.com>
8302
8303 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8304 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8305 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8306 (tui_set_win_focus_to): Move from tui-win.c.
8307
0240c8f1
TT
83082020-02-22 Tom Tromey <tom@tromey.com>
8309
8310 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8311 functions.
8312 (known_window_types): New global.
8313 (tui_get_window_by_name): Reimplement.
8314 (initialize_known_windows): New function.
8315 (validate_window_name): Rewrite.
8316 (_initialize_tui_layout): Call initialize_known_windows.
8317
fdb01f0c
TT
83182020-02-22 Tom Tromey <tom@tromey.com>
8319
8320 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8321 Remove constants.
8322 * tui/tui-winsource.h (struct tui_source_window_base)
8323 <tui_source_window_base>: Remove parameter.
8324 * tui/tui-winsource.c
8325 (tui_source_window_base::tui_source_window_base): Remove
8326 parameter.
8327 (tui_source_window_base::refill): Update.
8328 * tui/tui-stack.h (struct tui_locator_window)
8329 <tui_locator_window>: Update.
8330 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8331 Default the constructor.
8332 * tui/tui-regs.h (struct tui_data_item_window)
8333 <tui_data_item_window>: Default the constructor.
8334 (struct tui_data_window) <tui_data_window>: Likewise.
8335 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8336 Default the constructor.
8337 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8338 Default the constructor.
8339 <type>: Remove.
8340 (struct tui_win_info) <tui_win_info>: Default the constructor.
8341 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8342 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8343 Default the constructor.
8344
865a5aec
TT
83452020-02-22 Tom Tromey <tom@tromey.com>
8346
8347 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8348 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8349 * tui/tui-win.c (tui_resize_all): Don't call
8350 tui_delete_invisible_windows.
8351 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8352 done.
8353 (tui_set_layout): Update.
8354 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8355 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8356 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8357
e098d18c
TT
83582020-02-22 Tom Tromey <tom@tromey.com>
8359
8360 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8361 correctly.
8362
eb9c8874
TT
83632020-02-22 Tom Tromey <tom@tromey.com>
8364
8365 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8366
7eed1a8e
TT
83672020-02-22 Tom Tromey <tom@tromey.com>
8368
8369 * tui/tui-winsource.h (struct tui_source_window_iterator)
8370 <inner_iterator>: New etytypedef.
8371 <tui_source_window_iterator>: Take "end" parameter.
8372 <tui_source_window_iterator>: Take iterator.
8373 <operator*, advance>: Update.
8374 <m_iter>: Change type.
8375 <m_end>: New field.
8376 (struct tui_source_windows) <begin, end>: Update.
8377 * tui/tui-layout.c (tui_windows): New global.
8378 (tui_apply_current_layout): Clear tui_windows.
8379 (tui_layout_window::apply): Update tui_windows.
8380 * tui/tui-data.h (tui_windows): Declare.
8381 (all_tui_windows): Now inline function.
8382 (class tui_window_iterator, struct all_tui_windows): Remove.
8383
7c043ba6
TT
83842020-02-22 Tom Tromey <tom@tromey.com>
8385
8386 PR tui/17850:
8387 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8388 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8389 "height" argument.
8390 (class tui_layout_window) <get_sizes>: Likewise.
8391 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8392 argument.
8393 <get_sizes>: Add "height" argument.
8394 <m_vertical>: New field.
8395 * tui/tui-layout.c (tui_layout_split::clone): Update.
8396 (tui_layout_split::get_sizes): Add "height" argument.
8397 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8398 (tui_new_layout_command): Parse "-horizontal".
8399 (_initialize_tui_layout): Update help string.
8400 (tui_layout_split::specification): Add "-horizontal" when needed.
8401 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8402 argument.
8403 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8404 New methods.
8405
6bc56648
TT
84062020-02-22 Tom Tromey <tom@tromey.com>
8407
8408 * tui/tui-layout.h (enum tui_adjust_result): New.
8409 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8410 (class tui_layout_window) <adjust_size>: Return
8411 tui_adjust_result. Rewrite.
8412 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8413 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8414
c22fef7e
TT
84152020-02-22 Tom Tromey <tom@tromey.com>
8416
8417 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8418 parameter and return types.
8419 (class tui_layout_base) <specification>: Add "depth".
8420 (class tui_layout_window) <specification>: Add "depth".
8421 (class tui_layout_split) <specification>: Add "depth".
8422 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8423 and return types.
8424 (tui_new_layout_command): Parse sub-layouts.
8425 (_initialize_tui_layout): Update help string.
8426 (tui_layout_window::specification): Add "depth".
8427 (add_layout_command): Update.
8428
ee325b61
TT
84292020-02-22 Tom Tromey <tom@tromey.com>
8430
8431 * NEWS: Add "tui new-layout" item.
8432 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8433 Add new-layout command to help text.
8434 (validate_window_name): New function.
8435 (tui_new_layout_command): New function.
8436 (_initialize_tui_layout): Register "new-layout".
8437 (tui_layout_window::specification): New method.
8438 (tui_layout_window::specification): New method.
8439 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8440 method.
8441 (class tui_layout_window) <specification>: New method.
8442 (class tui_layout_split) <specification>: New method.
8443
416eb92d
TT
84442020-02-22 Tom Tromey <tom@tromey.com>
8445
8446 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8447 * tui/tui-win.c (window_name_completer): Update comment.
8448 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8449 Declare method.
8450 (class tui_layout_window) <replace_window>: Likewise.
8451 (class tui_layout_split) <replace_window>: Likewise.
8452 (tui_set_layout): Don't declare.
8453 (tui_set_initial_layout): Declare function.
8454 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8455 (asm_regs_layout): New globals.
8456 (tui_current_layout, show_layout): Remove.
8457 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8458 (find_layout, tui_apply_layout): New function.
8459 (layout_completer): Remove.
8460 (tui_next_layout): Reimplement.
8461 (tui_next_layout_command): New function.
8462 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8463 (tui_regs_layout): Reimplement.
8464 (tui_regs_layout_command): New function.
8465 (extract_display_start_addr): Rewrite.
8466 (next_layout, prev_layout): Remove.
8467 (tui_layout_window::replace_window): New method.
8468 (tui_layout_split::replace_window): New method.
8469 (destroy_layout): New function.
8470 (layout_list): New global.
8471 (add_layout_command): New function.
8472 (initialize_layouts): Update.
8473 (tui_layout_command): New function.
8474 (_initialize_tui_layout): Install "layout" commands.
8475 * tui/tui-data.h (enum tui_layout_type): Remove.
8476 (tui_current_layout): Don't declare.
8477
0dbc2fc7
TT
84782020-02-22 Tom Tromey <tom@tromey.com>
8479
8480 * tui/tui-regs.c (tui_reg_layout): Remove.
8481 (tui_reg_command): Use tui_regs_layout.
8482 * tui/tui-layout.h (tui_reg_command): Declare.
8483 * tui/tui-layout.c (tui_reg_command): New function.
8484
5afe342e
TT
84852020-02-22 Tom Tromey <tom@tromey.com>
8486
8487 * tui/tui.c (tui_rl_delete_other_windows): Call
8488 tui_remove_some_windows.
8489 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8490 Declare method.
8491 (class tui_layout_window) <remove_windows>: New method.
8492 (class tui_layout_split) <remove_windows>: Declare.
8493 (tui_remove_some_windows): Declare.
8494 * tui/tui-layout.c (tui_remove_some_windows): New function.
8495 (tui_layout_split::remove_windows): New method.
8496
427326a8
TT
84972020-02-22 Tom Tromey <tom@tromey.com>
8498
8499 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8500 * tui/tui-layout.h (tui_next_layout): Declare.
8501 * tui/tui-layout.c (tui_next_layout): New function.
8502
3fe12b6d
TT
85032020-02-22 Tom Tromey <tom@tromey.com>
8504
8505 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8506 correct coordinates.
8507
59b8b5d2
TT
85082020-02-22 Tom Tromey <tom@tromey.com>
8509
8510 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8511 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8512 DATA_WIN case.
8513
2a3d458b
TT
85142020-02-22 Tom Tromey <tom@tromey.com>
8515
8516 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8517 TUI_DISASM_WIN, not tui_win_list.
8518
3f0cbb04
TT
85192020-02-22 Tom Tromey <tom@tromey.com>
8520
8521 * valprint.c (generic_val_print_enum_1)
8522 (val_print_type_code_flags): Style member names.
8523 * rust-lang.c (val_print_struct, rust_print_enum)
8524 (rust_print_struct_def, rust_internal_print_type): Style member
8525 names.
8526 * p-valprint.c (pascal_object_print_value_fields): Style member
8527 names. Only call fprintf_symbol_filtered for static members.
8528 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8529 * f-valprint.c (f_val_print): Style member names.
8530 * f-typeprint.c (f_type_print_base): Style member names.
8531 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8532 call fprintf_symbol_filtered for static members.
8533 (cp_print_class_member): Style member names.
8534 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8535 member names.
8536 * ada-valprint.c (ada_print_scalar): Style enum names.
8537 (ada_val_print_enum): Likewise.
8538 * ada-typeprint.c (print_enum_type): Style enum names.
8539
d4d947ae
TT
85402020-02-21 Tom Tromey <tom@tromey.com>
8541
8542 * psympriv.h (struct partial_symtab): Update comment.
8543
e94e944b
TT
85442020-02-21 Tom Tromey <tromey@adacore.com>
8545
8546 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8547 type is CORE_ADDR.
8548
1eb73179
TV
85492020-02-21 Tom de Vries <tdevries@suse.de>
8550
8551 PR gdb/25534
8552 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8553 if dependencies[i]->user != NULL.
8554
4f180d53
AT
85552020-02-21 Ali Tamur <tamur@google.com>
8556
8557 * dwarf2/read.c (dwarf2_name): Add null check.
8558
22b6cd70
TT
85592020-02-20 Tom Tromey <tom@tromey.com>
8560
8561 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8562 ">=", in binary search.
8563 (dwarf2_find_containing_comp_unit): New overload.
8564 (run_test): New self-test.
8565 (_initialize_dwarf2_read): Register new test.
8566
bd0cf5a6
NC
85672020-02-20 Nelson Chu <nelson.chu@sifive.com>
8568
8569 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8570 * riscv-tdep.h: Likewise.
8571 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8572 rv32-only CSR.
8573 * features/riscv/64bit-csr.xml: Regenerated.
8574
3f702acd
SDJ
85752020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8576 Tom Tromey <tom@tromey.com>
8577
8578 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8579 of 'fputc_unfiltered'.
8580 (putchar_unfiltered): Call 'fputc_unfiltered'.
8581 (fputc_unfiltered): Call 'fputs_unfiltered'.
8582
d13c7322
AB
85832020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8584
8585 * config.in: Regenerate.
8586 * configure: Regenerate.
8587 * configure.ac: Add --with-python-libdir option.
8588 * main.c: Use WITH_PYTHON_LIBDIR.
8589
869d8950
TT
85902020-02-19 Tom Tromey <tom@tromey.com>
8591
8592 * symtab.c (general_symbol_info::compute_and_set_names): Use
8593 obstack_strndup. Simplify call to symbol_set_demangled_name.
8594
298e9637
SM
85952020-02-19 Simon Marchi <simon.marchi@efficios.com>
8596
8597 * dwarf2/read.c (allocate_signatured_type_table,
8598 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8599 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8600 Remove objfile parameter, update all callers.
8601
08410482
DE
86022020-02-19 Doug Evans <dje@google.com>
8603
8604 PR rust/25535
8605 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8606 rust_enum_variant calculation.
8607
dfdeeca1
TT
86082020-02-19 Tom Tromey <tromey@adacore.com>
8609
8610 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8611
2ef5453b
TT
86122020-02-19 Tom Tromey <tromey@adacore.com>
8613
8614 * ada-lang.c (cache_symbol): Use obstack_strdup.
8615
9f1528a1
AB
86162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8617
8618 * configure: Regenerate.
8619
d3c22fa8
TT
86202020-02-19 Tom Tromey <tromey@adacore.com>
8621
8622 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8623 NULL check.
8624
bf84f706
MR
86252020-02-19 Maciej W. Rozycki <macro@wdc.com>
8626
8627 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8628
d1c9b20f
AB
86292020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8630
8631 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8632 if GDBSERVER is not defined.
8633 (riscv_tdesc_cache): Likewise, also store const target_desc.
8634 (STATIC_IN_GDB): Define.
8635 (riscv_create_target_description): Update declaration with
8636 STATIC_IN_GDB.
8637 (riscv_lookup_target_description): New function, only define if
8638 GDBSERVER is not defined.
8639 * arch/riscv.h (riscv_create_target_description): Declare only
8640 when GDBSERVER is defined.
8641 (riscv_lookup_target_description): New declaration when GDBSERVER
8642 is not defined.
8643 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8644 (riscv_linux_read_features): ...this, and return
8645 riscv_gdbarch_features instead of target_desc.
8646 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8647 (riscv_linux_read_description): Rename to...
8648 (riscv_linux_read_features): ...this.
8649 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8650 Update to use riscv_gdbarch_features and
8651 riscv_lookup_target_description.
8652 * riscv-tdep.c (riscv_find_default_target_description): Use
8653 riscv_lookup_target_description instead of
8654 riscv_create_target_description.
8655
373d7ac0
SM
86562020-02-18 Simon Marchi <simon.marchi@efficios.com>
8657
8658 * valprint.c (generic_val_print_enum_1): When printing a flag
8659 enum with value 0 and there is no enumerator with value 0, print
8660 just "0" instead of "(unknown: 0x0)".
8661
b29a2df0
SM
86622020-02-18 Simon Marchi <simon.marchi@efficios.com>
8663
8664 * valprint.c (generic_val_print_enum_1): Print unknown part of
8665 flag enum in hex.
8666
6740f0cc
SM
86672020-02-18 Simon Marchi <simon.marchi@efficios.com>
8668
8669 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8670 flag enums to contain duplicate enumerators.
8671 * valprint.c (generic_val_print_enum_1): Update comment.
8672
edd45eb0
SM
86732020-02-18 Simon Marchi <simon.marchi@efficios.com>
8674
8675 * dwarf2/read.c: Include "count-one-bits.h".
8676 (update_enumeration_type_from_children): If an enumerator has
8677 multiple bits set, don't treat the enumeration as a "flag enum".
8678 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8679 of flag enums have 0 or 1 bit set.
8680
6d0cf446
BE
86812020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8682
8683 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8684 conversion.
8685 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8686 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8687 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8688 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8689 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8690
7001c1b7
SM
86912020-02-18 Simon Marchi <simon.marchi@efficios.com>
8692
8693 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8694
fdb61c6c
SM
86952020-02-14 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8698 displaced_step_closure_up.
8699 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8700 (struct displaced_step_closure_up):
8701 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8702 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8703 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8704 Likewise.
8705 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8706 * gdbarch.c, gdbarch.h: Re-generate.
8707 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8708 displaced_step_closure_up.
8709 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8710 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8711 * infrun.h (displaced_step_closure_up): New type alias.
8712 (struct displaced_step_inferior_state) <step_closure>: Change
8713 type to displaced_step_closure_up.
8714 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8715 displaced_step_closure_up.
8716 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8717
a4a38eb4
TT
87182020-02-14 Tom Tromey <tom@tromey.com>
8719
8720 * minidebug.c (gnu_debug_key): New global.
8721 (find_separate_debug_file_in_section): Use it.
8722
e8217e61
SM
87232020-02-14 Simon Marchi <simon.marchi@efficios.com>
8724
8725 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8726 std::unique_ptr.
8727 * gdbarch.c: Re-generate.
8728 * gdbarch.h: Re-generate.
8729 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8730 change.
8731 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8732 type to std::unique_ptr.
8733 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8734 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8735 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8736 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8737 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8738 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8739 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8740 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8741 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8742
d8d83535
SM
87432020-02-14 Simon Marchi <simon.marchi@efficios.com>
8744
8745 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8746 std::unique_ptr.
8747 (displaced_step_clear): Rename to...
8748 (displaced_step_reset): ... this. Just call displaced->reset ().
8749 (displaced_step_clear_cleanup): Rename to...
8750 (displaced_step_reset_cleanup): ... this.
8751 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8752 (displaced_step_fixup): Likewise.
8753 (resume_1): Likewise.
8754 (handle_inferior_event): Restore child's memory before calling
8755 displaced_step_fixup on the parent.
8756 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8757 to std::unique_ptr.
8758 <step_closure>: Change type to std::unique_ptr.
8759
5f661e03
SM
87602020-02-14 Simon Marchi <simon.marchi@efficios.com>
8761
8762 * arm-tdep.c: Include count-one-bits.h.
8763 (cleanup_block_store_pc): Use count_one_bits.
8764 (cleanup_block_load_pc): Use count_one_bits.
8765 (arm_copy_block_xfer): Use count_one_bits.
8766 (thumb2_copy_block_xfer): Use count_one_bits.
8767 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8768 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8769 (thumb_get_next_pcs_raw): Use count_one_bits.
8770 (arm_get_next_pcs_raw): Use count_one_bits_l.
8771 * arch/arm.c (bitcount): Remove.
8772 * arch/arm.h (bitcount): Remove.
8773
8084e579
TT
87742020-02-14 Tom Tromey <tromey@adacore.com>
8775
8776 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8777 Update.
8778 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8779 * dwarf2/loc.c (call_site_find_chain_1): Return
8780 unique_xmalloc_ptr.
8781 (call_site_find_chain): Likewise.
8782
258bf0ee
RB
87832020-02-14 Richard Biener <rguenther@suse.de>
8784
8785 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8786 on expression with division operators.
8787
f98a8458
AKS
87882020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8789
8790 * MAINTAINERS (Write After Approval): Adding myself.
8791
d1437c0e
TT
87922020-02-12 Tom Tromey <tom@tromey.com>
8793
8794 * event-loop.c (event_data, gdb_event, event_handler_func):
8795 Remove.
8796
3d4560f7
TT
87972020-02-12 Tom Tromey <tom@tromey.com>
8798
8799 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8800 (dwarf2_frame_objfile_data): Add comment.
8801 (find_comp_unit, set_comp_unit): New functions.
8802 (dwarf2_frame_find_fde): Use find_comp_unit.
8803 (dwarf2_build_frame_info): Use set_comp_unit.
8804
21982304
TT
88052020-02-12 Tom Tromey <tom@tromey.com>
8806
8807 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8808 (comp_unit): Don't initialize objfile.
8809 (execute_cfa_program): Add text_offset parameter.
8810 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8811 (dwarf2_frame_cache): Update.
8812 (dwarf2_build_frame_info): Don't set "objfile" member.
8813
4debb237
TT
88142020-02-12 Tom Tromey <tom@tromey.com>
8815
8816 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8817 (decode_frame_entry): Likewise.
8818 (dwarf2_build_frame_info): Update.
8819
0d404d44
TT
88202020-02-12 Tom Tromey <tom@tromey.com>
8821
8822 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8823 (decode_frame_entry_1): Use the comp_unit obstack.
8824
a7a3ae5c
TT
88252020-02-12 Tom Tromey <tom@tromey.com>
8826
8827 * dwarf2/frame.c (struct comp_unit): Add initializers and
8828 constructor.
8829 (dwarf2_frame_objfile_data): Store a comp_unit.
8830 (dwarf2_frame_find_fde): Update.
8831 (dwarf2_build_frame_info): Use "new".
8832
a9d65418
TT
88332020-02-12 Tom Tromey <tom@tromey.com>
8834
8835 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8836 (dwarf2_fde_table): Typedef for std::vector.
8837 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8838 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8839 (decode_frame_entry): Update.
8840 (dwarf2_build_frame_info): Use "new".
8841
7559c217
CB
88422020-02-12 Christian Biesinger <cbiesinger@google.com>
8843
8844 * arm-tdep.c (arm_gdbarch_init): Update.
8845 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8846 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8847 have_neon, is_m>: Change to bool.
8848
aeefc73c
CB
88492020-02-12 Christian Biesinger <cbiesinger@google.com>
8850
8851 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8852
d27b8e5f
TT
88532020-02-12 Tom Tromey <tom@tromey.com>
8854
8855 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8856
cd5900f3
HD
88572020-02-12 Hannes Domani <ssbssa@yahoo.de>
8858
8859 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8860 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8861
f056b22b
TT
88622020-02-11 Tom Tromey <tom@tromey.com>
8863
8864 * psymtab.h: Update comment.
8865
f92ff6b5
TT
88662020-02-11 Tom Tromey <tom@tromey.com>
8867
8868 * gdb_obstack.h (struct auto_obstack): Use
8869 DISABLE_COPY_AND_ASSIGN.
8870
3fd6912b
TT
88712020-02-11 Tom Tromey <tom@tromey.com>
8872
8873 * dwarf2/frame.h (struct objfile): Don't forward declare.
8874
69ed9b74
CB
88752020-02-11 Christian Biesinger <cbiesinger@google.com>
8876
8877 * cris-tdep.c (cris_supply_gregset): Change signature to match
8878 what struct regset expects.
8879 (cris_regset): New struct.
8880 (fetch_core_registers): Remove.
8881 (cris_iterate_over_regset_sections): New function.
8882 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8883 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8884
bda874f6
CB
88852020-02-11 Christian Biesinger <cbiesinger@google.com>
8886
8887 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8888 registers.
8889
754e1564
CB
88902020-02-11 Christian Biesinger <cbiesinger@google.com>
8891
8892 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8893
8ddd8e0e
SM
88942020-02-11 Simon Marchi <simon.marchi@efficios.com>
8895
8896 * configure: Re-generate.
8897
898e7f60
SM
88982020-02-11 Simon Marchi <simon.marchi@efficios.com>
8899
8900 * configure: Re-generate.
8901
58df732b
SM
89022020-02-11 Simon Marchi <simon.marchi@efficios.com>
8903
8904 * acinclude: Update warning.m4 path.
8905 * warning.m4: Move to gdbsupport.
8906
da5bd37e
TT
89072020-02-11 Tom Tromey <tromey@adacore.com>
8908
8909 * remote.c (remote_console_output): Update.
8910 * printcmd.c (printf_command): Update.
8911 * event-loop.c (gdb_wait_for_event): Update.
8912 * linux-nat.c (sigchld_handler): Update.
8913 * remote-sim.c (gdb_os_write_stdout): Update.
8914 (gdb_os_flush_stdout): Update.
8915 (gdb_os_flush_stderr): Update.
8916 (gdb_os_write_stderr): Update.
8917 * exceptions.c (print_exception): Update.
8918 * remote-fileio.c (remote_fileio_func_read): Update.
8919 (remote_fileio_func_write): Update.
8920 * tui/tui.c (tui_enable): Update.
8921 * tui/tui-interp.c (tui_interp::init): Update.
8922 * utils.c (init_page_info): Update.
8923 (putchar_unfiltered, fputc_unfiltered): Update.
8924 (gdb_flush): Update.
8925 (emit_style_escape): Update.
8926 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8927 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8928 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8929 (stderr_file::write): Update.
8930 (stderr_file::puts): Update.
8931 * ui-file.h (ui_file_isatty, ui_file_write)
8932 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8933 (ui_file_puts): Don't declare.
8934
85f0dd3c
TV
89352020-02-10 Tom de Vries <tdevries@suse.de>
8936
8937 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8938 sentinel to char *.
8939
2e927613
TV
89402020-02-09 Tom de Vries <tdevries@suse.de>
8941
8942 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8943 filename if it matches "<artificial>".
8944
6bafc845
HD
89452020-02-09 Hannes Domani <ssbssa@yahoo.de>
8946
8947 * windows-tdep.c (struct enum_value_name): New struct.
8948 (create_enum): New function.
8949 (windows_get_siginfo_type): Create and use enum types.
8950
7928d571
HD
89512020-02-09 Hannes Domani <ssbssa@yahoo.de>
8952
8953 * NEWS: Mention $_siginfo support for Windows.
8954 * windows-nat.c (handle_exception): Set siginfo_er.
8955 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8956 (windows_xfer_siginfo): New function.
8957 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8958 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8959 (init_windows_gdbarch_data): New function.
8960 (get_windows_gdbarch_data): New function.
8961 (windows_get_siginfo_type): New function.
8962 (windows_init_abi): Register windows_get_siginfo_type.
8963 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8964
6751ebae
TT
89652020-02-08 Tom Tromey <tom@tromey.com>
8966
8967 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8968 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8969 <keep>: Declare method.
8970 <m_keep>: Remove member.
8971 <~cutu_reader>: Remove.
8972 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8973 (cutu_reader::cutu_reader): Update.
8974 (cutu_reader::keep): Rename from ~cutu_reader.
8975 (process_psymtab_comp_unit, build_type_psymtabs_1)
8976 (process_skeletonless_type_unit, load_partial_comp_unit)
8977 (load_full_comp_unit, dwarf2_read_addr_index)
8978 (read_signatured_type): Update.
8979
135f5437
TT
89802020-02-08 Tom Tromey <tom@tromey.com>
8981
8982 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8983 "want_partial_unit" parameter.
8984 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8985 Inline check for DW_TAG_partial_unit.
8986 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8987
9f66ff1c
TT
89882020-02-08 Tom Tromey <tom@tromey.com>
8989
8990 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8991 read.c.
8992 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8993 read.c.
8994
c8a7a66f
TT
89952020-02-08 Tom Tromey <tom@tromey.com>
8996
8997 * dwarf2/read.c (read_address): Move to comp-unit.c.
8998 (dwarf2_rnglists_process, dwarf2_ranges_process)
8999 (read_attribute_value, dwarf_decode_lines_1)
9000 (var_decode_location, decode_locdesc): Update.
9001 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9002 read.c. Remove "cu" parameter.
9003 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9004 method.
9005
8266302d
TT
90062020-02-08 Tom Tromey <tom@tromey.com>
9007
9008 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9009 (read_indirect_line_string): Update.
9010 * dwarf2/comp-unit.c (read_offset): Remove.
9011 (read_comp_unit_head): Update.
9012 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9013 method.
9014 (read_offset): Don't declare.
9015
4057dfde
TT
90162020-02-08 Tom Tromey <tom@tromey.com>
9017
9018 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9019 * dwarf2/read.c (struct comp_unit_head): Move to
9020 dwarf2/comp-unit.h.
9021 (enum class rcuh_kind): Move to comp-unit.h.
9022 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9023 (read_comp_unit_head, error_check_comp_unit_head)
9024 (read_and_check_comp_unit_head): Move to comp-unit.c.
9025 (read_offset, dwarf_unit_type_name): Likewise.
9026 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9027 (cutu_reader::cutu_reader, read_call_site_scope)
9028 (find_partial_die, follow_die_offset): Update.
9029 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9030
24aa364d
TT
90312020-02-08 Tom Tromey <tom@tromey.com>
9032
9033 * dwarf2/read.c (read_offset_1): Move to leb.c.
9034 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9035 (dwarf_decode_macro_bytes): Update.
9036 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9037 * dwarf2/leb.h (read_offset): Declare.
9038
2c7d5afc
TT
90392020-02-08 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/read.c (dwarf2_section_size): Remove.
9042 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9043 Update.
9044 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9045
4075cb26
TT
90462020-02-08 Tom Tromey <tom@tromey.com>
9047
9048 * dwarf2/read.c (read_initial_length): Move to leb.c.
9049 * dwarf2/leb.h (read_initial_length): Declare.
9050 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9051 handle_nonstd parameter.
9052 * dwarf2/frame.c (read_initial_length): Remove.
9053 (decode_frame_entry_1): Update.
9054
09ba997f
TT
90552020-02-08 Tom Tromey <tom@tromey.com>
9056
9057 * dwarf2/loc.c (dwarf2_find_location_expression)
9058 (dwarf_evaluate_loc_desc::get_tls_address)
9059 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9060 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9061 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9062 (dwarf2_compile_property_to_c)
9063 (dwarf2_loc_desc_get_symbol_read_needs)
9064 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9065 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9066 (loclist_describe_location, loclist_tracepoint_var_ref)
9067 (loclist_generate_c_location): Update.
9068 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9069 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9070 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9071 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9072 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9073 (dwarf2_per_cu_data::addr_size)
9074 (dwarf2_per_cu_data::ref_addr_size)
9075 (dwarf2_per_cu_data::text_offset)
9076 (dwarf2_per_cu_data::addr_type): Now methods.
9077 (per_cu_header_read_in): Make per_cu "const".
9078 (dwarf2_version): Remove.
9079 (dwarf2_per_cu_data::int_type): Now a method.
9080 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9081 (set_die_type, read_array_type, read_subrange_index_type)
9082 (read_tag_string_type, read_subrange_type): Update.
9083 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9084 offset_size, ref_addr_size, text_offset, addr_type, version,
9085 objfile, int_type, addr_sized_int_type>: Declare methods.
9086
96c738c0
TT
90872020-02-08 Tom Tromey <tom@tromey.com>
9088
9089 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9090 Move earlier.
9091
8fdd972c
TT
90922020-02-08 Tom Tromey <tom@tromey.com>
9093
9094 * dwarf2/read.h (dwarf_line_debug): Declare.
9095 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9096 * dwarf2/read.c: Move line_header code to new files.
9097 (dwarf_line_debug): No longer static.
9098 * dwarf2/line-header.c: New file.
9099 * dwarf2/line-header.h: New file.
9100
03075812
TT
91012020-02-08 Tom Tromey <tom@tromey.com>
9102
9103 * dwarf2/read.c (struct line_header) <file_full_name,
9104 file_file_name>: Return unique_xmalloc_ptr.
9105 (line_header::file_file_name): Update.
9106 (line_header::file_full_name): Update.
9107 (dw2_get_file_names_reader): Update.
9108 (macro_start_file): Update.
9109
bb822404
TT
91102020-02-08 Tom Tromey <tom@tromey.com>
9111
9112 * dwarf2/read.c (struct line_header) <file_full_name,
9113 file_file_name>: Declare methods.
9114 (dw2_get_file_names_reader): Update.
9115 (file_file_name): Now a method.
9116 (file_full_name): Likewise.
9117 (macro_start_file): Update.
9118
009b64fc
TT
91192020-02-08 Tom Tromey <tom@tromey.com>
9120
9121 * dwarf2/read.c (dwarf_always_disassemble)
9122 (show_dwarf_always_disassemble): Move to loc.c.
9123 (_initialize_dwarf2_read): Move "always-disassemble" registration
9124 to loc.c.
9125 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9126 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9127 static.
9128 (show_dwarf_always_disassemble): Move from read.c.
9129 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9130
5895093f
TT
91312020-02-08 Tom Tromey <tom@tromey.com>
9132
9133 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9134 (create_quick_file_names_table): Return htab_up.
9135 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9136 Update.
9137 * dwarf2/read.h (struct dwarf2_per_objfile)
9138 <quick_file_names_table>: Now htab_up.
9139
b3b32279
TT
91402020-02-08 Tom Tromey <tom@tromey.com>
9141
9142 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9143
1d33d811
TT
91442020-02-08 Tom Tromey <tom@tromey.com>
9145
9146 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9147 Rewrite.
9148 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9149 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9150 (abbrev_table::abbrev_table): No longer inline.
9151 (ABBREV_HASH_SIZE): Remove.
9152 (abbrev_table::m_abbrevs): Now an htab_up.
9153
86de1d91
TT
91542020-02-08 Tom Tromey <tom@tromey.com>
9155
9156 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9157 (cutu_reader): Update.
9158 (build_type_psymtabs_1): Update.
9159 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9160 (abbrev_table::alloc_abbrev): Update.
9161 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9162 (abbrev_table::read): New static method, renamed from
9163 abbrev_table_read_table.
9164 (abbrev_table::alloc_abbrev)
9165 (abbrev_table::add_abbrev): Now private.
9166 (abbrev_table::abbrev_table): Now private.
9167 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9168
0335378b
TT
91692020-02-08 Tom Tromey <tom@tromey.com>
9170
9171 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9172 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9173 htab_up.
9174
48b490f2
TT
91752020-02-08 Tom Tromey <tom@tromey.com>
9176
9177 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9178 htab_up.
9179 (lookup_dwo_unit_in_dwp): Update.
9180 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9181 on obstack.
9182
bc68fb19
TT
91832020-02-08 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9186 obstack.
9187
d15acc42
TT
91882020-02-08 Tom Tromey <tom@tromey.com>
9189
9190 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9191 line_header_hash.
9192 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9193 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9194 Change type to htab_up.
9195
eaa5fa8b
TT
91962020-02-08 Tom Tromey <tom@tromey.com>
9197
9198 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9199 htab_up. Don't allocate on obstack.
9200 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9201 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9202 Change type to htab_up.
9203
b0b6a987
TT
92042020-02-08 Tom Tromey <tom@tromey.com>
9205
9206 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9207 Change type to htab_up.
9208 * dwarf2/read.c (create_signatured_type_table_from_index)
9209 (create_signatured_type_table_from_debug_names)
9210 (create_all_type_units, add_type_unit)
9211 (lookup_dwo_signatured_type, lookup_signatured_type)
9212 (process_skeletonless_type_unit): Update.
9213 (create_debug_type_hash_table, create_debug_types_hash_table):
9214 Change type of types_htab.
9215 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9216 htab_up. Don't allocate on obstack.
9217 (create_cus_hash_table): Change type of cus_htab parameter.
9218 (struct dwo_file) <cus, tus>: Now htab_up.
9219 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9220 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9221 (queue_and_load_all_dwo_tus): Update.
9222 * dwarf2/index-write.c (write_gdbindex): Update.
9223 (write_debug_names): Update.
9224
39856def
TT
92252020-02-08 Tom Tromey <tom@tromey.com>
9226
9227 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9228 dwarf2/read.c. Remove "next" member. Add constructor ntad
9229 destructor.
9230 (struct dwarf2_per_objfile) <queue>: New member.
9231 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9232 dwarf2/read.h.
9233 (dwarf2_queue, dwarf2_queue_tail): Remove.
9234 (class dwarf2_queue_guard): Add parameter to constructor. Use
9235 DISABLE_COPY_AND_ASSIGN.
9236 <m_per_objfile>: New member.
9237 <~dwarf2_queue_guard>: Rewrite.
9238 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9239 Update.
9240 (~dwarf2_queue_item): New.
9241
3e225074
TT
92422020-02-08 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2/read.c (struct die_info) <has_children>: New member.
9245 (dw2_get_file_names_reader): Remove has_children.
9246 (dw2_get_file_names): Update.
9247 (read_cutu_die_from_dwo): Remove has_children.
9248 (cutu_reader::init_tu_and_read_dwo_dies)
9249 (cutu_reader::cutu_reader): Update.
9250 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9251 Remove has_children.
9252 (build_type_psymtabs_1, process_skeletonless_type_unit)
9253 (load_partial_comp_unit, load_full_comp_unit): Update.
9254 (create_dwo_cu_reader): Remove has_children.
9255 (create_cus_hash_table, read_die_and_children): Update.
9256 (read_full_die_1,read_full_die): Remove has_children.
9257 (read_signatured_type): Update.
9258 (class cutu_reader) <has_children>: Remove.
9259
82ca8957
TT
92602020-02-08 Tom Tromey <tom@tromey.com>
9261
9262 * dwarf2/expr.c: Rename from dwarf2expr.c.
9263 * dwarf2/expr.h: Rename from dwarf2expr.h.
9264 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9265 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9266 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9267 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9268 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9269 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9270 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9271 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9272 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9273 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9274 * dwarf2/loc.c: Rename from dwarf2loc.c.
9275 * dwarf2/loc.h: Rename from dwarf2loc.h.
9276 * dwarf2/read.c: Rename from dwarf2read.c.
9277 * dwarf2/read.h: Rename from dwarf2read.h.
9278 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9279 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9280 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9281 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9282 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9283 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9284 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9285 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9286 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9287 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9288 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9289 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9290 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9291 Update.
9292 * Makefile.in (COMMON_SFILES): Update.
9293 (HFILES_NO_SRCDIR): Update.
9294
9e35d499
TT
92952020-02-08 Tom Tromey <tom@tromey.com>
9296
9297 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9298 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9299
1eba2311
TT
93002020-02-08 Tom Tromey <tom@tromey.com>
9301
9302 * dwarf2read.h (struct die_info): Don't declare.
9303
e41c2da2
TT
93042020-02-08 Tom Tromey <tom@tromey.com>
9305
9306 * dwarf2read.h (die_info_ptr): Remove typedef.
9307
4fc6c0d5
TT
93082020-02-08 Tom Tromey <tom@tromey.com>
9309
9310 * dwarf2read.c (read_call_site_scope)
9311 (handle_data_member_location, dwarf2_add_member_fn)
9312 (mark_common_block_symbol_computed, read_common_block)
9313 (attr_to_dynamic_prop, partial_die_info::read)
9314 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9315 (dwarf2_symbol_mark_computed, set_die_type): Update.
9316 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9317 method.
9318 (attr_form_is_block): Don't declare.
9319 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9320
cd6c91b4
TT
93212020-02-08 Tom Tromey <tom@tromey.com>
9322
9323 * dwarf2read.c (dwarf2_find_base_address, )
9324 (read_call_site_scope, rust_containing_type)
9325 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9326 (handle_data_member_location, dwarf2_add_member_fn)
9327 (get_alignment, read_structure_type, process_structure_scope)
9328 (mark_common_block_symbol_computed, read_common_block)
9329 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9330 (partial_die_info::read, read_attribute_value, new_symbol)
9331 (lookup_die_type, dwarf2_get_ref_die_offset)
9332 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9333 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9334 (dwarf2_symbol_mark_computed): Update.
9335 * dwarf2/attribute.h (struct attribute) <value_as_address,
9336 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9337 methods.
9338 (value_as_address, attr_form_is_section_offset)
9339 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9340 * dwarf2/attribute.c (attribute::value_as_address)
9341 (attribute::form_is_section_offset, attribute::form_is_constant)
9342 (attribute::form_is_ref): Now methods.
9343
162dce55
TT
93442020-02-08 Tom Tromey <tom@tromey.com>
9345
9346 * dwarf2read.c (struct attribute, DW_STRING)
9347 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9348 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9349 (attr_form_is_block, attr_form_is_section_offset)
9350 (attr_form_is_constant, attr_form_is_ref): Move.
9351 * dwarf2/attribute.h: New file.
9352 * dwarf2/attribute.c: New file, from dwarf2read.c.
9353 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9354
3054dd54
TT
93552020-02-08 Tom Tromey <tom@tromey.com>
9356
9357 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9358 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9359 Move.
9360 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9361 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9362 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9363 abbrev.c.
9364 * dwarf2/abbrev.h: New file.
9365 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9366 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9367
96b79293
TT
93682020-02-08 Tom Tromey <tom@tromey.com>
9369
9370 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9371 (dwarf2_section_size, dwarf2_get_section_info)
9372 (create_signatured_type_table_from_debug_names)
9373 (create_addrmap_from_aranges, read_debug_names_from_section)
9374 (get_gdb_index_contents_from_section, read_comp_unit_head)
9375 (error_check_comp_unit_head, read_abbrev_offset)
9376 (create_debug_type_hash_table, init_cu_die_reader)
9377 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9378 (read_comp_units_from_section, create_cus_hash_table)
9379 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9380 (create_dwp_v2_section, dwarf2_rnglists_process)
9381 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9382 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9383 (read_indirect_string_from_dwz, read_addr_index_1)
9384 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9385 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9386 (fill_in_loclist_baton): Update.
9387 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9388 get_containing_section, get_bfd_owner, get_bfd_section,
9389 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9390 (dwarf2_read_section, get_section_name, get_section_file_name)
9391 (get_containing_section, get_section_bfd_owner)
9392 (get_section_bfd_section, get_section_name, get_section_file_name)
9393 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9394 declare.
9395 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9396 (dwarf2_section_info::get_bfd_owner)
9397 (dwarf2_section_info::get_bfd_section)
9398 (dwarf2_section_info::get_name)
9399 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9400 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9401 (dwarf2_section_info::read): Now methods.
9402 * dwarf-index-write.c (class debug_names): Update.
9403
2c86cff9
TT
94042020-02-08 Tom Tromey <tom@tromey.com>
9405
9406 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9407 Move to dwarf2/section.h.
9408 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9409 (get_section_bfd_section, get_section_name)
9410 (get_section_file_name, get_section_id, get_section_flags)
9411 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9412 dwarf2/section.c.
9413 * dwarf2/section.h: New file.
9414 * dwarf2/section.c: New file, from dwarf2read.c.
9415 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9416
f4382c45
TT
94172020-02-08 Tom Tromey <tom@tromey.com>
9418
9419 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9420 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9421 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9422 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9423 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9424 * dwarf2/leb.h: New file, from dwarf2read.c.
9425 * dwarf2/leb.c: New file, from dwarf2read.c.
9426 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9427 Remove.
9428 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9429 (COMMON_SFILES): Add dwarf2/leb.c.
9430
01840b7a
JB
94312020-02-08 Joel Brobecker <brobecker@adacore.com>
9432
9433 GDB 9.1 released.
9434
dfcb27e4
IB
94352020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9436
9437 PR gdb/25190:
aac66a4c
SM
9438 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9439 * gdb/remote.c (remote_console_output): Update.
9440 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9441 (ui_file_puts): ...this.
9442 * gdb/ui-file.h (ui_file_puts): Add declaration.
9443 * gdb/utils.c (emit_style_escape): Update.
9444 (flush_wrap_buffer): Update.
9445 (fputs_maybe_filtered): Update.
9446 (fputs_unfiltered): Add function.
dfcb27e4 9447
faa17681
IB
94482020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9449
aac66a4c
SM
9450 * gdb/event-loop.c (gdb_wait_for_event): Update.
9451 * gdb/printcmd.c (printf_command): Update.
9452 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9453 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9454 (gdb_os_flush_stderr): Update.
9455 * gdb/remote.c (remote_console_output): Update.
9456 * gdb/ui-file.c (gdb_flush): Rename to...
9457 (ui_file_flush): ...this.
9458 (stderr_file::write): Update.
9459 (stderr_file::puts): Update.
9460 * gdb/ui-file.h (gdb_flush): Rename to...
9461 (ui_file_flush): ...this.
9462 * gdb/utils.c (gdb_flush): Add function.
9463 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9464
5abbbe1d
TT
94652020-02-07 Tom Tromey <tromey@adacore.com>
9466
9467 PR breakpoints/24915:
9468 * source.c (find_and_open_source): Do not check basenames_may_differ.
9469
919adfe8
TT
94702020-02-07 Tom Tromey <tom@tromey.com>
9471
9472 * README: Update gdbserver documentation.
9473 * gdbserver: Move to top level.
9474 * configure.tgt (build_gdbserver): Remove.
9475 * configure.ac: Remove --enable-gdbserver.
9476 * configure: Rebuild.
9477 * Makefile.in (distclean): Don't mention gdbserver.
9478
1d5d29e7
SV
94792020-02-06 Shahab Vahedi <shahab@synopsys.com>
9480
9481 * source-cache.c (source_cache::ensure): Surround
9482 get_plain_source_lines with a try/catch.
9483 (source_cache::get_line_charpos): Get rid of try/catch
9484 and only check for the return value of "ensure".
9485 * tui/tui-source.c (tui_source_window::set_contents):
9486 Simplify "nlines" calculation.
9487
6eb1129c
SV
94882020-02-06 Shahab Vahedi <shahab@synopsys.com>
9489
9490 * MAINTAINERS (Write After Approval): Add myself.
9491
c6a42d11
CB
94922020-02-05 Christian Biesinger <cbiesinger@google.com>
9493
9494 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9495 function call.
9496
c8ecdda6
CB
94972020-02-05 Christian Biesinger <cbiesinger@google.com>
9498
9499 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9500
f6480e70
MR
95012020-02-05 Maciej W. Rozycki <macro@wdc.com>
9502
9503 * nat/riscv-linux-tdesc.h: New file.
9504 * nat/riscv-linux-tdesc.c: New file, taking code from...
9505 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9506 ... here.
9507 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9508 NATDEPFILES.
9509
dcc9fbc6
AB
95102020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9511
9512 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9513 we don't set the fake simulator ptid to the null_ptid.
9514
719546c4
SM
95152020-02-03 Simon Marchi <simon.marchi@efficios.com>
9516
9517 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9518 * gdbthread.h (class thread_info) <resumed>: Likewise.
9519 * infrun.c (resume_1): Likewise.
9520 (proceed): Likewise.
9521 (infrun_thread_stop_requested): Likewise.
9522 (stop_all_threads): Likewise.
9523 (handle_inferior_event): Likewise.
9524 (restart_threads): Likewise.
9525 (finish_step_over): Likewise.
9526 (keep_going_stepped_thread): Likewise.
9527 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9528 (linux_handle_extended_wait): Likewise.
9529 * record-btrace.c (get_thread_current_frame_id): Likewise.
9530 * record-full.c (record_full_wait_1): Likewise.
9531 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9532 * target.c (target_resume): Likewise.
9533 * thread.c (set_running_thread): Likewise.
9534
e409c542
AKS
95352020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9536
9537 * f-valprint.c (f77_print_array_1): Changed datatype of index
9538 variable to LONGEST from int to enable it to contain bound
9539 values correctly.
9540
ee98c0da
MR
95412020-02-03 Maciej W. Rozycki <macro@wdc.com>
9542
9543 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9544 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9545 offsets according to FLEN determined.
9546 (riscv_linux_nat_target::read_description): Determine FLEN
9547 dynamically.
9548 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9549 according to FLEN determined.
9550 (riscv_linux_nat_target::store_registers): Likewise.
9551
aa66aac4
SV
95522020-02-01 Shahab Vahedi <shahab@synopsys.com>
9553
9554 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9555 when reg->group is empty and reggroup is not.
9556
fd9faca8
TT
95572020-01-31 Tom Tromey <tromey@adacore.com>
9558
9559 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9560 Call beneath target's mourn_inferior after unpushing.
9561
42330a68
AB
95622020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9563
9564 PR tui/9765
9565 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9566 have enough lines to fill the screen, still return the lowest
9567 address we found.
9568
7a27a45b
AB
95692020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9570
9571 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9572 '-', '<', and '>' commands.
9573
c47f70e2
PA
95742020-01-29 Pedro Alves <palves@redhat.com>
9575 Sergio Durigan Junior <sergiodj@redhat.com>
9576
9577 * infcmd.c (construct_inferior_arguments): Assert that
9578 'argc' is greater than 0.
9579
5133a315
LM
95802020-01-29 Luis Machado <luis.machado@linaro.org>
9581
9582 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9583 (BRK_INSN_MASK): Define to 0xd4200000.
9584 (aarch64_program_breakpoint_here_p): New function.
9585 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9586 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9587 breakpoint.c.
9588 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9589 breakpoint.h
9590 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9591 call gdbarch_program_breakpoint_here_p.
9592 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9593 default_program_breakpoint_here_p, changed return type to bool and
9594 simplified.
9595 * breakpoint.h (program_breakpoint_here): Moved prototype to
9596 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9597 return type to bool.
9598 * gdbarch.c: Regenerate.
9599 * gdbarch.h: Regenerate.
9600 * gdbarch.sh (program_breakpoint_here_p): New method.
9601 * infrun.c (handle_signal_stop): Call
9602 gdbarch_program_breakpoint_here_p.
9603
168f8c6b
TT
96042020-01-26 Tom Tromey <tom@tromey.com>
9605
9606 * ctfread.c (struct ctf_fp_info): Reindent.
9607 (_initialize_ctfread): Remove.
9608
128a391f
TT
96092020-01-26 Tom Tromey <tom@tromey.com>
9610
9611 * psymtab.c (partial_map_expand_apply)
9612 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9613 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9614 (psym_print_stats, psym_expand_symtabs_for_function)
9615 (psym_map_symbol_filenames, psym_map_matching_symbols)
9616 (psym_expand_symtabs_matching)
9617 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9618 (maintenance_check_psymtabs): Use new methods.
9619 * psympriv.h (struct partial_symtab) <readin_p,
9620 get_compunit_symtab>: New methods.
9621 <readin, compunit_symtab>: Remove members.
9622 (struct standard_psymtab): New.
9623 (struct legacy_psymtab): Derive from standard_psymtab.
9624 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9625 standard_psymtab.
9626 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9627
0494dbec
TT
96282020-01-26 Tom Tromey <tom@tromey.com>
9629
9630 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9631 read_dependencies. Add assert.
9632 * psymtab.c (partial_symtab::read_dependencies): New method.
9633 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9634 method.
9635 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9636 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9637 read_dependencies.
9638 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9639 Add assert.
9640
8566b89b
TT
96412020-01-26 Tom Tromey <tom@tromey.com>
9642
9643 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9644 Call expand_psymtab.
9645 (xcoff_read_symtab): Call expand_psymtab.
9646 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9647 legacy_expand_psymtab.
9648 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9649 method.
9650 (struct legacy_psymtab) <expand_psymtab>: Implement.
9651 <legacy_expand_psymtab>: New member.
9652 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9653 (parse_partial_symbols): Set legacy_expand_psymtab.
9654 (psymtab_to_symtab_1): Change argument order. Call
9655 expand_psymtab.
9656 (new_psymtab): Set legacy_expand_psymtab.
9657 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9658 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9659 expand_psymtab.
9660 (dwarf2_psymtab::expand_psymtab): Rename from
9661 psymtab_to_symtab_1. Call expand_psymtab.
9662 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9663 (dbx_end_psymtab): Likewise.
9664 (dbx_psymtab_to_symtab_1): Change argument order. Call
9665 expand_psymtab.
9666 (dbx_read_symtab): Call expand_psymtab.
9667 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9668 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9669 (ctf_psymtab::read_symtab): Call expand_psymtab.
9670
077cbab2
TT
96712020-01-26 Tom Tromey <tom@tromey.com>
9672
9673 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9674 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9675 messages.
9676 * mdebugread.c (mdebug_read_symtab): Remove prints.
9677 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9678 assert.
9679 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9680
891813be
TT
96812020-01-26 Tom Tromey <tom@tromey.com>
9682
9683 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9684 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9685 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9686 legacy_symtab.
9687 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9688 * psymtab.c (psymtab_to_symtab): Call method.
9689 (dump_psymtab): Update.
9690 * psympriv.h (struct partial_symtab): Add virtual destructor.
9691 <read_symtab>: New method.
9692 (struct legacy_symtab): New.
9693 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9694 (struct pst_map) <pst>: Now a legacy_psymtab.
9695 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9696 (new_psymtab): Use legacy_psymtab.
9697 * dwarf2read.h (struct dwarf2_psymtab): New.
9698 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9699 * dwarf2read.c (dwarf2_create_include_psymtab)
9700 (dwarf2_build_include_psymtabs, create_type_unit_group)
9701 (create_partial_symtab, process_psymtab_comp_unit_reader)
9702 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9703 (set_partial_user): Use dwarf2_psymtab.
9704 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9705 (psymtab_to_symtab_1, process_full_comp_unit)
9706 (process_full_type_unit, dwarf2_ranges_read)
9707 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9708 (dwarf_decode_lines): Use dwarf2_psymtab.
9709 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9710 (add_address_entry_worker, write_one_signatured_type)
9711 (recursively_count_psymbols, recursively_write_psymbols)
9712 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9713 (write_debug_names): Likewise.
9714 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9715 <pst>: Now a legacy_psymtab.
9716 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9717 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9718 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9719 * ctfread.c (struct ctf_psymtab): New.
9720 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9721 ctf_psymtab.
9722 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9723 (create_partial_symtab): Return a ctf_psymtab.
9724 (scan_partial_symbols): Update.
9725
c3693a1d
TT
97262020-01-26 Tom Tromey <tom@tromey.com>
9727
9728 * xcoffread.c (xcoff_start_psymtab): Use new.
9729 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9730 renamed from start_psymtab_common.
9731 * psympriv.h (struct partial_symtab): Add new constructor.
9732 (start_psymtab_common): Don't declare.
9733 * mdebugread.c (parse_partial_symbols): Use new.
9734 * dwarf2read.c (create_partial_symtab): Use new.
9735 * dbxread.c (start_psymtab): Use new.
9736 * ctfread.c (create_partial_symtab): Use new.
9737
32caafd0
TT
97382020-01-26 Tom Tromey <tom@tromey.com>
9739
9740 * xcoffread.c (xcoff_end_psymtab): Use new.
9741 * psymtab.c (start_psymtab_common): Use new.
9742 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9743 Update.
9744 * psympriv.h (struct partial_symtab): Add parameters to
9745 constructor. Don't inline.
9746 (allocate_psymtab): Don't declare.
9747 * mdebugread.c (new_psymtab): Use new.
9748 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9749 * dbxread.c (dbx_end_psymtab): Use new.
9750
abaa2f23
TT
97512020-01-26 Tom Tromey <tom@tromey.com>
9752
9753 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9754 allocate_psymtab. Update documentation.
9755 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9756 allocate_psymtab. Do not use new.
9757 (allocate_psymtab): Use new. Update.
9758
6d94535f
TT
97592020-01-26 Tom Tromey <tom@tromey.com>
9760
9761 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9762 * psymtab.c (psym_print_stats): Update.
9763 * psympriv.h (struct partial_symtab) <readin,
9764 psymtabs_addrmap_supported, anonymous>: Now bool.
9765 * mdebugread.c (psymtab_to_symtab_1): Update.
9766 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9767 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9768 (process_full_comp_unit, process_full_type_unit): Update.
9769 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9770 * ctfread.c (psymtab_to_symtab): Update.
9771
6f17252b
TT
97722020-01-26 Tom Tromey <tom@tromey.com>
9773
9774 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9775 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9776 * psymtab.c (psymtab_storage): Delete psymtabs.
9777 (psymtab_storage::allocate_psymtab): Use new.
9778 (psymtab_storage::discard_psymtab): Use delete.
9779 * psympriv.h (struct partial_symtab): Add constructor and
9780 initializers.
9781
f6f1cebc
TT
97822020-01-26 Tom Tromey <tom@tromey.com>
9783
9784 * machoread.c: Do not include psympriv.h.
9785
e47e48f6
PW
97862020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9787
9788 * NEWS: Mention the new option and the set/show commands.
9789
a2fedca9
PW
97902020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9791
9792 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9793 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9794 (validate_exec_file): New variables, enums, functions.
9795 (exec_file_locate_attach, print_section_info): Style the filenames.
9796 (_initialize_exec): Install show_exec_file_mismatch_command and
9797 set_exec_file_mismatch_command.
9798 * gdbcore.h (validate_exec_file): Declare.
9799 * infcmd.c (attach_command): Call validate_exec_file.
9800 * remote.c ( remote_target::remote_add_inferior): Likewise.
9801
7ffa82e1
AB
98022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9803
9804 * frame.c (find_frame_sal): Move call to get_next_frame into more
9805 inner scope.
9806 * inline-frame.c (inilne_state) <inline_state>: Update argument
9807 types.
9808 (inilne_state) <skipped_symbol>: Rename to...
9809 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9810 (skip_inline_frames): Build vector of skipped symbols and use this
9811 to reate the inline_state.
9812 (inline_skipped_symbol): Add a comment and some assertions, fetch
9813 skipped symbol from the list.
9814
3d92a3e3
AB
98152020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9816
9817 * buildsym.c (lte_is_less_than): Delete.
9818 (buildsym_compunit::end_symtab_with_blockvector): Create local
9819 lambda function to sort line table entries, and use
9820 std::stable_sort instead of std::sort.
9821 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9822 markers when looking for a previous line.
9823
94a72be7
AB
98242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9825
9826 * dwarf2read.c (lnp_state_machine::record_line): Include
9827 end_sequence parameter in debug print out. Record the line if we
9828 are at an end_sequence marker even if it's not the start of a
9829 statement.
9830 * symmisc.c (maintenance_print_one_line_table): Print end of
9831 sequence markers with 'END' not '0'.
9832
53af73bf
PA
98332020-01-24 Pedro Alves <palves@redhat.com>
9834
9835 PR gdb/25410
9836 * thread.c (scoped_restore_current_thread::restore): Use
9837 switch_to_inferior_no_thread.
9838 * exec.c: Include "progspace-and-thread.h".
9839 (add_target_sections, remove_target_sections):
9840 scoped_restore_current_pspace_and_thread instead of
9841 scoped_restore_current_thread.
9842 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9843 and aspace to the inferior before calling clone_program_space.
9844 Remove stale comment.
9845
3050c6f4
CB
98462020-01-24 Christian Biesinger <cbiesinger@google.com>
9847
9848 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9849 (arm_netbsd_nat_target::fetch_registers): ...this.
9850 (arm_nbsd_nat_target::store_registers): Rename to...
9851 (arm_netbsd_nat_target::store_registers): ...this.
9852
73685c7e
CB
98532020-01-24 Christian Biesinger <cbiesinger@google.com>
9854
9855 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9856 register_t.
9857
89203d40
CB
98582020-01-24 Christian Biesinger <cbiesinger@google.com>
9859
9860 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9861 Update comment.
9862 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9863 Likewise.
9864 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9865 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9866 the correct replacement (iterate_over_regset_sections).
9867 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9868 Update comment.
9869
1ba1ac88
AB
98702020-01-24 Graham Markall <graham.markall@embecosm.com>
9871
9872 PR gdb/23718
9873 * gdb/python/python.c (execute_gdb_command): Call
9874 async_enable_stdin in catch block.
9875
f3364a6d
AB
98762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9877
9878 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9879 SWITCH_THRU_ALL_UIS.
9880
733d0a67
AB
98812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9882
9883 PR tui/9765
9884 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9885 comment, add extra parameter, and update to store previous symbol
9886 when appropriate.
9887 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9888 add extra parameter.
9889 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9890 remove unneeded parameter, add try/catch around gdb_print_insn,
9891 rewrite to add items to asm_lines vector.
9892 (tui_find_backward_disassembly_start_address): New function.
9893 (tui_find_disassembly_address): Updated throughout.
9894 (tui_disasm_window::set_contents): Update for changes to
9895 tui_disassemble.
9896 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9897 number of lines to scroll.
9898
b3b3bada
SM
98992020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9900
9901 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9902 (SECT_OFF_DATA): Likewise.
9903 (SECT_OFF_RODATA): Likewise.
9904 (SECT_OFF_TEXT): Likewise.
9905 (SECT_OFF_BSS): Likewise.
9906 (struct objfile) <text_section_offset, data_section_offset>: New
9907 methods.
9908 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9909 objfile::text_section_offset.
9910 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9911 * coffread.c (coff_symtab_read): Likewise.
9912 (enter_linenos): Likewise.
9913 (process_coff_symbol): Likewise.
9914 * ctfread.c (get_objfile_text_range): Likewise.
9915 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9916 Use objfile::data_section_offset.
9917 * dwarf2-frame.c (execute_cfa_program): Use
9918 objfile::text_section_offset.
9919 (dwarf2_frame_find_fde): Likewise.
9920 * dwarf2read.c (create_addrmap_from_index): Likewise.
9921 (create_addrmap_from_aranges): Likewise.
9922 (dw2_find_pc_sect_compunit_symtab): Likewise.
9923 (process_psymtab_comp_unit_reader): Likewise.
9924 (add_partial_symbol): Likewise.
9925 (add_partial_subprogram): Likewise.
9926 (process_full_comp_unit): Likewise.
9927 (read_file_scope): Likewise.
9928 (read_func_scope): Likewise.
9929 (read_lexical_block_scope): Likewise.
9930 (read_call_site_scope): Likewise.
9931 (dwarf2_rnglists_process): Likewise.
9932 (dwarf2_ranges_process): Likewise.
9933 (dwarf2_ranges_read): Likewise.
9934 (dwarf_decode_lines_1): Likewise.
9935 (new_symbol): Likewise.
9936 (dwarf2_fetch_die_loc_sect_off): Likewise.
9937 (dwarf2_per_cu_text_offset): Likewise.
9938 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9939 * hppa-tdep.c (read_unwind_info): Likewise.
9940 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9941 * psympriv.h (struct partial_symtab): Likewise.
9942 * psymtab.c (find_pc_sect_psymtab): Likewise.
9943 * solib-svr4.c (enable_break): Likewise.
9944 * stap-probe.c (relocate_address): Use
9945 objfile::data_section_offset.
9946 * xcoffread.c (enter_line_range): Use
9947 objfile::text_section_offset.
9948 (read_xcoff_symtab): Likewise.
9949
ab53f382
SM
99502020-01-23 Simon Marchi <simon.marchi@efficios.com>
9951
9952 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9953 declaration to narrower scopes.
9954
e7eee665
SM
99552020-01-23 Simon Marchi <simon.marchi@efficios.com>
9956
9957 * darwin-nat.h (struct darwin_exception_msg, enum
9958 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9959 Move up.
9960 (class darwin_nat_target) <wait_1, check_new_threads,
9961 decode_exception_message, decode_message, stop_inferior,
9962 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9963 * darwin-nat.c (darwin_check_new_threads): Rename to...
9964 (darwin_nat_target::check_new_threads): ... this.
9965 (darwin_suspend_inferior_it): Remove.
9966 (darwin_decode_exception_message): Rename to...
9967 (darwin_nat_target::decode_exception_message): ... this.
9968 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9969 (darwin_decode_message): Rename to...
9970 (darwin_nat_target::decode_message): ... this.
9971 (cancel_breakpoint): Rename to...
9972 (darwin_nat_target::cancel_breakpoint): ... this.
9973 (darwin_wait): Rename to...
9974 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9975 instead of iterate_over_inferiors.
9976 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9977 (darwin_stop_inferior): Rename to...
9978 (darwin_nat_target::stop_inferior): ... this.
9979 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9980 (darwin_init_thread_list): Rename to...
9981 (darwin_nat_target::init_thread_list): ... this.
9982 (darwin_ptrace_him): Rename to...
9983 (darwin_nat_target::ptrace_him): ... this.
9984 (darwin_nat_target::create_inferior): Pass lambda function to
9985 fork_inferior.
9986 (darwin_nat_target::detach): Call stop_inferior instead of
9987 darwin_stop_inferior.
9988 * fork-inferior.h (fork_inferior): Change init_trace_fun
9989 parameter to gdb::function_view.
9990 * fork-inferior.c (fork_inferior): Likewise.
9991
c162ed3e
HD
99922020-01-23 Hannes Domani <ssbssa@yahoo.de>
9993
9994 * i386-cygwin-tdep.c (core_process_module_section): Update.
9995 * windows-nat.c (struct lm_info_windows): Add text_offset.
9996 (windows_xfer_shared_libraries): Update.
9997 * windows-tdep.c (windows_xfer_shared_library):
9998 Add text_offset_cached argument.
9999 * windows-tdep.h (windows_xfer_shared_library): Update.
10000
a1237872
SM
100012020-01-21 Simon Marchi <simon.marchi@efficios.com>
10002
10003 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10004
b3ee6dd9
SM
100052020-01-21 Simon Marchi <simon.marchi@efficios.com>
10006
10007 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10008 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10009 replace with range-based for.
10010 (gdbsim_interrupt_inferior): Remove.
10011 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10012 with a range-based for. Inline code from
10013 gdbsim_interrupt_inferior.
10014
f9fac3c8
SM
100152020-01-21 Simon Marchi <simon.marchi@efficios.com>
10016
10017 * infrun.c (proceed): Fix indentation.
10018
f6474de9
TT
100192020-01-21 Tom Tromey <tromey@adacore.com>
10020
10021 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10022 * python/python.c (python_extension_ops): Update.
10023 (gdbpy_colorize): New function.
10024 * python/lib/gdb/__init__.py (colorize): New function.
10025 * extension.h (ext_lang_colorize): Declare.
10026 * extension.c (ext_lang_colorize): New function.
10027 * extension-priv.h (struct extension_language_ops) <colorize>: New
10028 member.
10029 * cli/cli-style.c (_initialize_cli_style): Update help text.
10030
f0c702d4
LM
100312020-01-21 Luis Machado <luis.machado@linaro.org>
10032
10033 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10034 <cond>: Change type to bool.
10035 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10036 (aarch64_displaced_step_cb): Likewise.
10037 (aarch64_displaced_step_tb): Likewise.
10038
1ab139e5
LM
100392020-01-21 Luis Machado <luis.machado@linaro.org>
10040
10041 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10042 output.
10043
0c271889
LM
100442020-01-21 Luis Machado <luis.machado@linaro.org>
10045
10046 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10047 <pc_adjust>: Adjust the documentation.
10048 (aarch64_displaced_step_fixup): Check if PC really moved before
10049 adjusting it.
10050
4d89c1c7
TT
100512020-01-19 Tom Tromey <tom@tromey.com>
10052
10053 * disasm.c (~gdb_disassembler): New destructor.
10054 (gdb_buffered_insn_length): Call disassemble_free_target.
10055 * disasm.h (class gdb_disassembler): Declare destructor. Use
10056 DISABLE_COPY_AND_ASSIGN.
10057
c0ab21c2
TT
100582020-01-19 Tom Tromey <tom@tromey.com>
10059
10060 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10061 (die_reader_func_ftype): Remove.
10062 (cutu_reader): New class.
10063 (dw2_get_file_names_reader): Remove "data" parameter.
10064 (dw2_get_file_names): Use cutu_reader.
10065 (create_debug_type_hash_table): Update.
10066 (read_cutu_die_from_dwo): Update comment.
10067 (lookup_dwo_unit): Add dwo_name parameter.
10068 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10069 die_reader_func_ftype and data parameters.
10070 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10071 Remove die_reader_func_ftype and data parameters.
10072 (~cutu_reader): New; from init_cutu_and_read_dies.
10073 (cutu_reader::cutu_reader): Rename from
10074 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10075 and data parameters.
10076 (init_cutu_and_read_dies_simple): Remove.
10077 (struct process_psymtab_comp_unit_data): Remove.
10078 (process_psymtab_comp_unit_reader): Remove data parameter; add
10079 want_partial_unit and pretend_language parameters.
10080 (process_psymtab_comp_unit): Use cutu_reader.
10081 (build_type_psymtabs_reader): Remove data parameter.
10082 (build_type_psymtabs_1): Use cutu_reader.
10083 (process_skeletonless_type_unit): Likewise.
10084 (load_partial_comp_unit_reader): Remove.
10085 (load_partial_comp_unit): Use cutu_reader.
10086 (load_full_comp_unit_reader): Remove.
10087 (load_full_comp_unit): Use cutu_reader.
10088 (struct create_dwo_cu_data): Remove.
10089 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10090 dwo_unit parameters.
10091 (create_cus_hash_table): Use cutu_reader.
10092 (struct dwarf2_read_addr_index_data): Remove.
10093 (dwarf2_read_addr_index_reader): Remove.
10094 (dwarf2_read_addr_index): Use cutu_reader.
10095 (read_signatured_type_reader): Remove.
10096 (read_signatured_type): Use cutu_reader.
10097
45bbae5c
TT
100982020-01-19 Tom Tromey <tom@tromey.com>
10099
10100 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10101 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10102 (tui_wrefresh): Declare.
10103 * tui/tui-wingeneral.c (suppress_output): New global.
10104 (tui_suppress_output, ~tui_suppress_output): New constructor and
10105 destructor.
10106 (tui_wrefresh): New function.
10107 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10108 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10109 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10110 method.
10111 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10112 tui_wrefresh.
10113 (tui_data_window::no_refresh): New method.
10114 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10115 (tui_reg_command): Use tui_suppress_output
10116 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10117 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10118 method.
10119 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10120
4f13c1c0
TT
101212020-01-19 Tom Tromey <tom@tromey.com>
10122
10123 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10124 Handle case where symtab is null.
10125
fa47e446
SM
101262020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10127
10128 * linux-fork.c (one_fork_p): Simplify.
10129
26f42329
SM
101302020-01-17 Simon Marchi <simon.marchi@efficios.com>
10131
10132 * top.c (struct qt_args): Remove.
10133 (kill_or_detach): Change return type to void, replace `void *`
10134 parameter with a proper one.
10135 (print_inferior_quit_action): Likewise.
10136 (quit_confirm): Use range-based for loop to iterate over inferiors.
10137 (quit_force): Likewise.
10138
a9ac81b1
SM
101392020-01-17 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10142 `void *` parameter with proper parameters.
10143 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10144 (print_one_inferior): Change return type to void, replace `void *`
10145 parameter with proper parameters.
10146 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10147 inferiors.
10148 (get_other_inferior): Remove.
10149 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10150 inferiors.
10151
788eca49
SM
101522020-01-17 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * mi/mi-interp.c (report_initial_inferior): Remove.
10155 (mi_interp::init): Use range-based for to iterate over inferiors.
10156
d9bc85b6
SM
101572020-01-17 Simon Marchi <simon.marchi@efficios.com>
10158
10159 * python/py-inferior.c (build_inferior_list): Remove.
10160 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10161
40c94099
CB
101622020-01-16 Christian Biesinger <cbiesinger@google.com>
10163
10164 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10165 (btrace_stitch_trace): Likewise.
10166 * charset.c (intermediate_encoding): Likewise (vaild).
10167 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10168 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10169 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10170
e0cdfe3c
HD
101712020-01-16 Hannes Domani <ssbssa@yahoo.de>
10172
10173 * windows-tdep.c (windows_get_tlb_type):
10174 Add rtl_user_process_parameters type.
10175
790f1718 101762020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10177 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10178
10179 PR build/24805
10180 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10181 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10182 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10183 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10184 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10185 (ps_plog): Redeclare exported functions with default visibility.
10186
3112ed97
NA
101872020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10188
10189 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10190 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10191
8dc3273e
SM
101922020-01-15 Simon Marchi <simon.marchi@efficios.com>
10193
10194 * infcmd.c (post_create_inferior): Use get_thread_regcache
10195 instead of get_current_regcache.
10196
ff47f4f0
TT
101972020-01-14 Tom Tromey <tom@tromey.com>
10198
10199 PR symtab/12535:
10200 * python/python.c (gdbpy_decode_line): Treat empty string the same
10201 as no argument.
10202
975f45b7
TT
102032020-01-14 Tom Tromey <tom@tromey.com>
10204
10205 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10206
25e57356
TT
102072020-01-14 Tom Tromey <tom@tromey.com>
10208
10209 * nat/linux-btrace.c: Don't include <config.h>.
10210 * nat/linux-ptrace.c: Don't include <config.h>.
10211 * nat/x86-linux-dregs.c: Don't include <config.h>.
10212
05ea2a05
TT
102132020-01-14 Tom Tromey <tom@tromey.com>
10214
10215 * configure: Rebuild.
10216 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10217
01027315
TT
102182020-01-14 Tom Tromey <tom@tromey.com>
10219
10220 * nat/x86-linux-dregs.c: Include configh.h.
10221 * nat/linux-ptrace.c: Include configh.h.
10222 * nat/linux-btrace.c: Include configh.h.
10223 * defs.h: Include config.h, bfd.h.
10224 * configure.ac: Don't source common.host.
10225 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10226 * configure: Rebuild.
10227 * acinclude.m4: Update path.
10228 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10229 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10230 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10231 (CLIBS): Add LIBSUPPORT.
10232 (CDEPS): Likewise.
10233 (COMMON_SFILES): Remove gdbsupport files.
10234 (HFILES_NO_SRCDIR): Likewise.
10235 (stamp-version): Update path to create-version.sh.
10236 (ALLDEPFILES): Remove gdbsupport files.
10237
b2ceabe8
TT
102382020-01-14 Tom Tromey <tom@tromey.com>
10239
10240 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10241 USE_WIN32API when needed.
10242 * configure.ac (USE_WIN32API): Don't define.
10243 (WIN32LIBS): Use WIN32APILIBS.
10244 * configure: Rebuild.
10245
25c51f71
TT
102462020-01-14 Tom Tromey <tom@tromey.com>
10247
10248 * configure: Rebuild.
10249 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10250
717c684d
BE
102512020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10252
10253 * skip.c (skip_function_command): Make skip w/o arguments use the
10254 name of the inlined function if pc is inside any inlined function.
10255
7da6a5b9
LM
102562020-01-14 Luis Machado <luis.machado@linaro.org>
10257
10258 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10259 * infrun.c (resume_1): Likewise.
10260 (handle_inferior_event): Remove stale comment.
10261 * linux-nat.c (linux_nat_target::resume): Update comments.
10262 (save_stop_reason): Likewise.
10263 (linux_nat_filter_event): Likewise.
10264 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10265
44e4c775
AB
102662020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10267
10268 * elfread.c (record_minimal_symbol): Set section index to 0 for
10269 non-allocatable sections.
10270
18a8505e
AT
10271
102722020-01-13 Ali Tamur <tamur@google.com>
10273
10274 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10275 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10276 to gdb::optional. Update comments.
10277 (dwo_file): Update comments.
10278 (read_attribute): Update API to take an additional out parameter,
10279 need_reprocess. This is used to mark attributes that need other
10280 attributes (e.g. str_offsets_base) for correct computation which may not
10281 have been read yet.
10282 (read_attribute_reprocess): New function declaration.
10283 (read_addr_index): Likewise.
10284 (read_dwo_str_index): Likewise.
10285 (read_stub_str_index): Likewise.
10286 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10287 (lookup_addr_base): New function definition.
10288 (lookup_ranges_base): Likewise.
10289 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10290 lookup_ranges_base.
10291 (init_cutu_and_read_dies): Update comments.
10292 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10293 unit. This is used to inherit parent's str_offsets_base and addr_base.
10294 Update comments.
10295 (init_cutu_and_read_dies_simple): Reflect API changes.
10296 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10297 (create_cus_hash_table): Change API to take parent compile unit.
10298 Reflect API changes.
10299 (open_and_init_dwo_file): Reflect API changes.
10300 (dwarf2_get_pc_bounds): Update comments.
10301 (dwarf2_record_block_ranges): Likewise.
10302 (read_full_die_1): Change implementation to reprocess attributes that
10303 need str_offsets_base and addr_base.
10304 (partial_die_info::read): Likewise.
10305 (read_attribute_reprocess): New function definition.
10306 (read_attribute_value): Change API to take an additional out parameter,
10307 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10308 when a non-dwo compile unit has index based attributes.
10309 (read_attribute): Reflect API changes.
10310 (read_addr_index_1): Reflect API changes. Update comments.
10311 (dwarf2_read_addr_index_data): Reflect API changes.
10312 (dwarf2_read_addr_index): Likewise.
10313 (read_str_index): Change API and implementation. This becomes a helper
10314 to be used by the new string index related methods. Update error
10315 message and comments.
10316 (read_dwo_str_index): New function definition.
10317 (read_stub_str_index): Likewise.
10318 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10319 * symfile.h (dwarf2_debug_sections): Likewise.
10320 * xcoffread.c (dwarf2_debug_sections): Likewise.
10321
0cac9354
SM
103222020-01-13 Simon Marchi <simon.marchi@efficios.com>
10323
10324 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10325 core_reg_sect type to gdb_byte *.
10326 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10327 * cris-tdep.c (fetch_core_registers): Likewise.
10328 * corelow.c (core_target::get_core_register_section): Change
10329 type of `contents` to gdb::byte_vector.
10330
9a6d629c
AB
103312020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10332
10333 * tui/tui-wingeneral.c (box_win): Position the title in the center
10334 of the border.
10335
d8b2f9e3
SM
103362020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10337
10338 * corelow.c (core_target::get_core_register_section): Use
10339 std::vector instead of alloca.
10340
bb564c58
SM
103412020-01-13 Simon Marchi <simon.marchi@efficios.com>
10342
10343 * warning.m4: Add -Wmissing-declarations to build_warnings.
10344 * configure: Re-generate.
10345
6b366111
SM
103462020-01-13 Simon Marchi <simon.marchi@efficios.com>
10347
10348 * python/python.c (init__gdb_module): Add declaration.
10349
6c265988
SM
103502020-01-13 Simon Marchi <simon.marchi@efficios.com>
10351
10352 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10353 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10354 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10355 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10356 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10357 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10358 * ada-exp.y (_initialize_ada_exp): Add declaration.
10359 * ada-lang.c (_initialize_ada_language): Add declaration.
10360 * ada-tasks.c (_initialize_tasks): Add declaration.
10361 * agent.c (_initialize_agent): Add declaration.
10362 * aix-thread.c (_initialize_aix_thread): Add declaration.
10363 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10364 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10365 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10366 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10367 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10368 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10369 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10370 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10371 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10372 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10373 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10374 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10375 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10376 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10377 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10378 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10379 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10380 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10381 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10382 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10383 * annotate.c (_initialize_annotate): Add declaration.
10384 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10385 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10386 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10387 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10388 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10389 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10390 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10391 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10392 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10393 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10394 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10395 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10396 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10397 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10398 * auto-load.c (_initialize_auto_load): Add declaration.
10399 * auxv.c (_initialize_auxv): Add declaration.
10400 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10401 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10402 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10403 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10404 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10405 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10406 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10407 * breakpoint.c (_initialize_breakpoint): Add declaration.
10408 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10409 * btrace.c (_initialize_btrace): Add declaration.
10410 * charset.c (_initialize_charset): Add declaration.
10411 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10412 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10413 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10414 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10415 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10416 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10417 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10418 * coffread.c (_initialize_coffread): Add declaration.
10419 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10420 * compile/compile.c (_initialize_compile): Add declaration.
10421 * complaints.c (_initialize_complaints): Add declaration.
10422 * completer.c (_initialize_completer): Add declaration.
10423 * copying.c (_initialize_copying): Add declaration.
10424 * corefile.c (_initialize_core): Add declaration.
10425 * corelow.c (_initialize_corelow): Add declaration.
10426 * cp-abi.c (_initialize_cp_abi): Add declaration.
10427 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10428 * cp-support.c (_initialize_cp_support): Add declaration.
10429 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10430 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10431 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10432 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10433 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10434 * ctfread.c (_initialize_ctfread): Add declaration.
10435 * d-lang.c (_initialize_d_language): Add declaration.
10436 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10437 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10438 * dbxread.c (_initialize_dbxread): Add declaration.
10439 * dcache.c (_initialize_dcache): Add declaration.
10440 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10441 * disasm.c (_initialize_disasm): Add declaration.
10442 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10443 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10444 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10445 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10446 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10447 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10448 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10449 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10450 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10451 * elfread.c (_initialize_elfread): Add declaration.
10452 * exec.c (_initialize_exec): Add declaration.
10453 * extension.c (_initialize_extension): Add declaration.
10454 * f-lang.c (_initialize_f_language): Add declaration.
10455 * f-valprint.c (_initialize_f_valprint): Add declaration.
10456 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10457 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10458 * filesystem.c (_initialize_filesystem): Add declaration.
10459 * findcmd.c (_initialize_mem_search): Add declaration.
10460 * findvar.c (_initialize_findvar): Add declaration.
10461 * fork-child.c (_initialize_fork_child): Add declaration.
10462 * frame-base.c (_initialize_frame_base): Add declaration.
10463 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10464 * frame.c (_initialize_frame): Add declaration.
10465 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10466 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10467 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10468 * gcore.c (_initialize_gcore): Add declaration.
10469 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10470 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10471 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10472 * gdbarch.c (_initialize_gdbarch): Add declaration.
10473 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10474 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10475 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10476 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10477 * go-lang.c (_initialize_go_language): Add declaration.
10478 * go32-nat.c (_initialize_go32_nat): Add declaration.
10479 * guile/guile.c (_initialize_guile): Add declaration.
10480 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10481 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10482 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10483 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10484 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10485 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10486 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10487 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10488 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10489 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10490 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10491 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10492 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10493 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10494 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10495 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10496 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10497 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10498 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10499 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10500 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10501 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10502 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10503 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10504 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10505 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10506 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10507 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10508 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10509 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10510 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10511 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10512 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10513 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10514 * infcall.c (_initialize_infcall): Add declaration.
10515 * infcmd.c (_initialize_infcmd): Add declaration.
10516 * inflow.c (_initialize_inflow): Add declaration.
10517 * infrun.c (_initialize_infrun): Add declaration.
10518 * interps.c (_initialize_interpreter): Add declaration.
10519 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10520 * jit.c (_initialize_jit): Add declaration.
10521 * language.c (_initialize_language): Add declaration.
10522 * linux-fork.c (_initialize_linux_fork): Add declaration.
10523 * linux-nat.c (_initialize_linux_nat): Add declaration.
10524 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10525 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10526 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10527 * m2-lang.c (_initialize_m2_language): Add declaration.
10528 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10529 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10530 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10531 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10532 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10533 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10534 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10535 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10536 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10537 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10538 * machoread.c (_initialize_machoread): Add declaration.
10539 * macrocmd.c (_initialize_macrocmd): Add declaration.
10540 * macroscope.c (_initialize_macroscope): Add declaration.
10541 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10542 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10543 * maint.c (_initialize_maint_cmds): Add declaration.
10544 * mdebugread.c (_initialize_mdebugread): Add declaration.
10545 * memattr.c (_initialize_mem): Add declaration.
10546 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10547 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10548 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10549 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10550 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10551 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10552 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10553 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10554 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10555 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10556 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10557 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10558 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10559 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10560 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10561 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10562 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10563 * mipsread.c (_initialize_mipsread): Add declaration.
10564 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10565 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10566 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10567 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10568 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10569 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10570 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10571 * nto-procfs.c (_initialize_procfs): Add declaration.
10572 * objc-lang.c (_initialize_objc_language): Add declaration.
10573 * observable.c (_initialize_observer): Add declaration.
10574 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10575 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10576 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10577 * osabi.c (_initialize_gdb_osabi): Add declaration.
10578 * osdata.c (_initialize_osdata): Add declaration.
10579 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10580 * parse.c (_initialize_parse): Add declaration.
10581 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10582 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10583 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10584 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10585 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10586 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10587 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10588 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10589 * printcmd.c (_initialize_printcmd): Add declaration.
10590 * probe.c (_initialize_probe): Add declaration.
10591 * proc-api.c (_initialize_proc_api): Add declaration.
10592 * proc-events.c (_initialize_proc_events): Add declaration.
10593 * proc-service.c (_initialize_proc_service): Add declaration.
10594 * procfs.c (_initialize_procfs): Add declaration.
10595 * producer.c (_initialize_producer): Add declaration.
10596 * psymtab.c (_initialize_psymtab): Add declaration.
10597 * python/python.c (_initialize_python): Add declaration.
10598 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10599 * record-btrace.c (_initialize_record_btrace): Add declaration.
10600 * record-full.c (_initialize_record_full): Add declaration.
10601 * record.c (_initialize_record): Add declaration.
10602 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10603 * regcache.c (_initialize_regcache): Add declaration.
10604 * reggroups.c (_initialize_reggroup): Add declaration.
10605 * remote-notif.c (_initialize_notif): Add declaration.
10606 * remote-sim.c (_initialize_remote_sim): Add declaration.
10607 * remote.c (_initialize_remote): Add declaration.
10608 * reverse.c (_initialize_reverse): Add declaration.
10609 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10610 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10611 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10612 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10613 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10614 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10615 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10616 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10617 Add declaration.
10618 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10619 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10620 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10621 * rust-exp.y (_initialize_rust_exp): Add declaration.
10622 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10623 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10624 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10625 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10626 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10627 * score-tdep.c (_initialize_score_tdep): Add declaration.
10628 * ser-go32.c (_initialize_ser_dos): Add declaration.
10629 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10630 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10631 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10632 * ser-uds.c (_initialize_ser_socket): Add declaration.
10633 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10634 * serial.c (_initialize_serial): Add declaration.
10635 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10636 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10637 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10638 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10639 * skip.c (_initialize_step_skip): Add declaration.
10640 * sol-thread.c (_initialize_sol_thread): Add declaration.
10641 * solib-aix.c (_initialize_solib_aix): Add declaration.
10642 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10643 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10644 * solib-frv.c (_initialize_frv_solib): Add declaration.
10645 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10646 * solib-target.c (_initialize_solib_target): Add declaration.
10647 * solib.c (_initialize_solib): Add declaration.
10648 * source-cache.c (_initialize_source_cache): Add declaration.
10649 * source.c (_initialize_source): Add declaration.
10650 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10651 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10652 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10653 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10654 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10655 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10656 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10657 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10658 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10659 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10660 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10661 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10662 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10663 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10664 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10665 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10666 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10667 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10668 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10669 * stabsread.c (_initialize_stabsread): Add declaration.
10670 * stack.c (_initialize_stack): Add declaration.
10671 * stap-probe.c (_initialize_stap_probe): Add declaration.
10672 * std-regs.c (_initialize_frame_reg): Add declaration.
10673 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10674 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10675 * symfile.c (_initialize_symfile): Add declaration.
10676 * symmisc.c (_initialize_symmisc): Add declaration.
10677 * symtab.c (_initialize_symtab): Add declaration.
10678 * target.c (_initialize_target): Add declaration.
10679 * target-connection.c (_initialize_target_connection): Add
10680 declaration.
10681 * target-dcache.c (_initialize_target_dcache): Add declaration.
10682 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10683 * thread.c (_initialize_thread): Add declaration.
10684 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10685 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10686 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10687 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10688 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10689 * tracectf.c (_initialize_ctf): Add declaration.
10690 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10691 * tracefile.c (_initialize_tracefile): Add declaration.
10692 * tracepoint.c (_initialize_tracepoint): Add declaration.
10693 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10694 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10695 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10696 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10697 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10698 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10699 * tui/tui.c (_initialize_tui): Add declaration.
10700 * typeprint.c (_initialize_typeprint): Add declaration.
10701 * ui-style.c (_initialize_ui_style): Add declaration.
10702 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10703 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10704 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10705 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10706 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10707 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10708 * unittests/filtered_iterator-selftests.c
10709 (_initialize_filtered_iterator_selftests): Add declaration.
10710 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10711 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10712 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10713 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10714 * unittests/main-thread-selftests.c
10715 (_initialize_main_thread_selftests): Add declaration.
10716 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10717 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10718 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10719 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10720 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10721 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10722 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10723 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10724 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10725 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10726 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10727 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10728 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10729 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10730 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10731 declaration.
10732 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10733 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10734 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10735 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10736 * user-regs.c (_initialize_user_regs): Add declaration.
10737 * utils.c (_initialize_utils): Add declaration.
10738 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10739 * valops.c (_initialize_valops): Add declaration.
10740 * valprint.c (_initialize_valprint): Add declaration.
10741 * value.c (_initialize_values): Add declaration.
10742 * varobj.c (_initialize_varobj): Add declaration.
10743 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10744 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10745 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10746 * windows-nat.c (_initialize_windows_nat): Add declaration.
10747 (_initialize_check_for_gdb_ini): Add declaration.
10748 (_initialize_loadable): Add declaration.
10749 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10750 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10751 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10752 * xcoffread.c (_initialize_xcoffread): Add declaration.
10753 * xml-support.c (_initialize_xml_support): Add declaration.
10754 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10755 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10756 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10757 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10758
e2de1eec
SM
107592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10760
10761 * regformats/regdat.sh: Generate declaration for init function.
10762
e0037b4c
SM
107632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10764
10765 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10766 up.
10767 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10768 close_one_inferior>: New methods.
10769 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10770 pass down target to find_inferior_pid.
10771 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10772 Pass down target to find_inferior_ptid.
10773 (gdbsim_target::create_inferior): Pass down target to
10774 add_thread_silent.
10775 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10776 target down to find_inferior_ptid and switch_to_thread.
10777 (gdbsim_target::close): Update to call close_one_inferior.
10778 (struct resume_data): Remove.
10779 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10780 directly, rather than through a void pointer.
10781 (gdbsim_target::resume): Update to call resume_one_inferior.
10782
58920b5b
SM
107832020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10784
10785 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10786
4ec89149
PA
107872020-01-12 Pedro Alves <palves@redhat.com>
10788
10789 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10790 directly for the current inferior instead of
10791 discard_all_inferiors.
10792 (discard_all_inferiors): Delete.
10793
7c392d1d
TT
107942020-01-11 Tom Tromey <tom@tromey.com>
10795
10796 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10797 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10798 deprecated_safe_get_selected_frame.
10799
d9ebdab7
TBA
108002020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10801
10802 * inferior.c (print_inferior): Switch inferior before printing it.
10803
f3c469b9
PA
108042020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10805 Pedro Alves <palves@redhat.com>
10806
10807 * progspace-and-thread.c (switch_to_program_space_and_thread):
10808 Assert there's an inferior for PSPACE. Use
10809 switch_to_inferior_no_thread to switch the inferior too.
10810 * progspace.c (program_space::~program_space): Call
10811 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10812 (program_space::free_all_objfiles): Don't call clear_symtab_users
10813 here.
10814 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10815
65c574f6
PA
108162020-01-10 Pedro Alves <palves@redhat.com>
10817
10818 * NEWS: Mention multi-target debugging, "info connections", and
10819 "add-inferior -no-connection".
10820
2f4fcf00
PA
108212020-01-10 Pedro Alves <palves@redhat.com>
10822
10823 * infrun.c: Include "target-connection.h".
10824 (check_multi_target_resumption): New.
10825 (proceed): Call it.
10826 * target-connection.c (make_target_connection_string): Make
10827 extern.
10828 * target-connection.h (make_target_connection_string): Declare.
10829
121b3efd
PA
108302020-01-10 Pedro Alves <palves@redhat.com>
10831
10832 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10833 * inferior.c (uiout_field_connection): New function.
10834 (print_inferior): Add new "connection-id" column.
10835 (add_inferior_command): Show connection number/string of added
10836 inferior.
10837 * process-stratum-target.h
10838 (process_stratum_target::connection_string): New virtual method.
10839 (process_stratum_target::connection_number): New field.
10840 * remote.c (remote_target::connection_string): New override.
10841 * target-connection.c: New file.
10842 * target-connection.h: New file.
10843 * target.c (decref_target): Remove process_stratum targets from
10844 the connection list.
10845 (target_stack::push): Add process_stratum targets to the
10846 connection list.
10847
4f837581
PA
108482020-01-10 Pedro Alves <palves@redhat.com>
10849
10850 Revert:
10851 2016-04-12 Pedro Alves <palves@redhat.com>
10852 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10853 Remove references to name.
10854 * serial.h (struct serial) <name>: Delete.
10855
f4ec508e
PA
108562020-01-10 Pedro Alves <palves@redhat.com>
10857
10858 * gdbarch-selftests.c (register_to_value_test): Remove "target
10859 already pushed" check.
10860
5b6d1e4f
PA
108612020-01-10 Pedro Alves <palves@redhat.com>
10862 John Baldwin <jhb@FreeBSD.org>
10863
10864 * aarch64-linux-nat.c
10865 (aarch64_linux_nat_target::thread_architecture): Adjust.
10866 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10867 (task_command_1): Likewise.
10868 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10869 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10870 (aix_thread_target::store_registers)
10871 (aix_thread_target::thread_alive): Adjust.
10872 * amd64-fbsd-tdep.c: Include "inferior.h".
10873 (amd64fbsd_get_thread_local_address): Pass down target.
10874 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10875 thread's gdbarch instead of target_gdbarch.
10876 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10877 get_last_target_status.
10878 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10879 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10880 inferiors.
10881 (update_inserted_breakpoint_locations): Skip if inferiors with no
10882 execution.
10883 (update_global_location_list): When handling moribund locations,
10884 find representative inferior for location's pspace, and use thread
10885 count of its process_stratum target.
10886 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10887 * bsd-uthread.c (bsd_uthread_target::wait): Use
10888 as_process_stratum_target and adjust thread_change_ptid and
10889 add_thread calls.
10890 (bsd_uthread_target::update_thread_list): Use
10891 as_process_stratum_target and adjust find_thread_ptid,
10892 thread_change_ptid and add_thread calls.
10893 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10894 find_thread_ptid call.
10895 * corelow.c (add_to_thread_list): Adjust add_thread call.
10896 (core_target_open): Adjust add_thread_silent and thread_count
10897 calls.
10898 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10899 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10900 * event-top.c (async_disconnect): Pop targets from all inferiors.
10901 * exec.c (add_target_sections): Push exec target on all inferiors
10902 sharing the program space.
10903 (remove_target_sections): Remove the exec target from all
10904 inferiors sharing the program space.
10905 (exec_on_vfork): New.
10906 * exec.h (exec_on_vfork): Declare.
10907 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10908 Pass it down.
10909 (fbsd_nat_target::update_thread_list): Adjust.
10910 (fbsd_nat_target::resume): Adjust.
10911 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10912 down.
10913 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10914 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10915 get_thread_arch_regcache call.
10916 * fork-child.c (gdb_startup_inferior): Pass target down to
10917 startup_inferior and set_executing.
10918 * gdbthread.h (struct process_stratum_target): Forward declare.
10919 (add_thread, add_thread_silent, add_thread_with_info)
10920 (in_thread_list): Add process_stratum_target parameter.
10921 (find_thread_ptid(inferior*, ptid_t)): New overload.
10922 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10923 parameter.
10924 (all_threads()): Delete overload.
10925 (all_threads, all_non_exited_threads): Add process_stratum_target
10926 parameter.
10927 (all_threads_safe): Use brace initialization.
10928 (thread_count): Add process_stratum_target parameter.
10929 (set_resumed, set_running, set_stop_requested, set_executing)
10930 (threads_are_executing, finish_thread_state): Add
10931 process_stratum_target parameter.
10932 (switch_to_thread): Use is_current_thread.
10933 * i386-fbsd-tdep.c: Include "inferior.h".
10934 (i386fbsd_get_thread_local_address): Pass down target.
10935 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10936 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10937 have_inferiors check.
10938 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10939 (inf_ptrace_target::attach): Adjust.
10940 * infcall.c (run_inferior_call): Adjust.
10941 * infcmd.c (run_command_1): Pass target to
10942 scoped_finish_thread_state.
10943 (proceed_thread_callback): Skip inferiors with no execution.
10944 (continue_command): Rename 'all_threads' local to avoid hiding
10945 'all_threads' function. Adjust get_last_target_status call.
10946 (prepare_one_step): Adjust set_running call.
10947 (signal_command): Use user_visible_resume_target. Compare thread
10948 pointers instead of inferior_ptid.
10949 (info_program_command): Adjust to pass down target.
10950 (attach_command): Mark target's 'thread_executing' flag.
10951 (stop_current_target_threads_ns): New, factored out from ...
10952 (interrupt_target_1): ... this. Switch inferior before making
10953 target calls.
10954 * inferior-iter.h
10955 (struct all_inferiors_iterator, struct all_inferiors_range)
10956 (struct all_inferiors_safe_range)
10957 (struct all_non_exited_inferiors_range): Filter on
10958 process_stratum_target too. Remove explicit.
10959 * inferior.c (inferior::inferior): Push dummy target on target
10960 stack.
10961 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10962 Add process_stratum_target parameter, and pass it down.
10963 (have_live_inferiors): Adjust.
10964 (switch_to_inferior_and_push_target): New.
10965 (add_inferior_command, clone_inferior_command): Handle
10966 "-no-connection" parameter. Use
10967 switch_to_inferior_and_push_target.
10968 (_initialize_inferior): Mention "-no-connection" option in
10969 the help of "add-inferior" and "clone-inferior" commands.
10970 * inferior.h: Include "process-stratum-target.h".
10971 (interrupt_target_1): Use bool.
10972 (struct inferior) <push_target, unpush_target, target_is_pushed,
10973 find_target_beneath, top_target, process_target, target_at,
10974 m_stack>: New.
10975 (discard_all_inferiors): Delete.
10976 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10977 (all_inferiors, all_non_exited_inferiors): Add
10978 process_stratum_target parameter.
10979 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10980 (target_last_proc_target): New global.
10981 (follow_fork_inferior): Push target on new inferior. Pass target
10982 to add_thread_silent. Call exec_on_vfork. Handle target's
10983 reference count.
10984 (follow_fork): Adjust get_last_target_status call. Also consider
10985 target.
10986 (follow_exec): Push target on new inferior.
10987 (struct execution_control_state) <target>: New field.
10988 (user_visible_resume_target): New.
10989 (do_target_resume): Call target_async.
10990 (resume_1): Set target's threads_executing flag. Consider resume
10991 target.
10992 (commit_resume_all_targets): New.
10993 (proceed): Also consider resume target. Skip threads of inferiors
10994 with no execution. Commit resumtion in all targets.
10995 (start_remote): Pass current inferior to wait_for_inferior.
10996 (infrun_thread_stop_requested): Consider target as well. Pass
10997 thread_info pointer to clear_inline_frame_state instead of ptid.
10998 (infrun_thread_thread_exit): Consider target as well.
10999 (random_pending_event_thread): New inferior parameter. Use it.
11000 (do_target_wait): Rename to ...
11001 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11002 down.
11003 (threads_are_resumed_pending_p, do_target_wait): New.
11004 (prepare_for_detach): Adjust calls.
11005 (wait_for_inferior): New inferior parameter. Handle it. Use
11006 do_target_wait_1 instead of do_target_wait.
11007 (fetch_inferior_event): Adjust. Switch to representative
11008 inferior. Pass target down.
11009 (set_last_target_status): Add process_stratum_target parameter.
11010 Save target in global.
11011 (get_last_target_status): Add process_stratum_target parameter and
11012 handle it.
11013 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11014 (context_switch): Check inferior_ptid == null_ptid before calling
11015 inferior_thread().
11016 (get_inferior_stop_soon): Pass down target.
11017 (wait_one): Rename to ...
11018 (poll_one_curr_target): ... this.
11019 (struct wait_one_event): New.
11020 (wait_one): New.
11021 (stop_all_threads): Adjust.
11022 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11023 event's target.
11024 (switch_back_to_stepped_thread): Also consider target.
11025 (print_stop_event): Update.
11026 (normal_stop): Update. Also consider the resume target.
11027 * infrun.h (wait_for_inferior): Remove declaration.
11028 (user_visible_resume_target): New declaration.
11029 (get_last_target_status, set_last_target_status): New
11030 process_stratum_target parameter.
11031 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11032 process_stratum_target parameter, and use it.
11033 (clear_inline_frame_state (thread_info*)): New.
11034 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11035 process_stratum_target parameter.
11036 (clear_inline_frame_state (thread_info*)): Declare.
11037 * linux-fork.c (delete_checkpoint_command): Pass target down to
11038 find_thread_ptid.
11039 (checkpoint_command): Adjust.
11040 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11041 instead of just tweaking inferior_ptid.
11042 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11043 (exit_lwp): Pass target down to find_thread_ptid.
11044 (attach_proc_task_lwp_callback): Pass target down to
11045 add_thread/set_running/set_executing.
11046 (linux_nat_target::attach): Pass target down to
11047 thread_change_ptid.
11048 (get_detach_signal): Pass target down to find_thread_ptid.
11049 Consider last target status's target.
11050 (linux_resume_one_lwp_throw, resume_lwp)
11051 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11052 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11053 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11054 (linux_nat_target::async_wait_fd): New.
11055 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11056 target down.
11057 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11058 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11059 * linux-thread-db.c (struct thread_db_info::process_target): New
11060 field.
11061 (add_thread_db_info): Save target.
11062 (get_thread_db_info): New process_stratum_target parameter. Also
11063 match target.
11064 (delete_thread_db_info): New process_stratum_target parameter.
11065 Also match target.
11066 (thread_from_lwp): Adjust to pass down target.
11067 (thread_db_notice_clone): Pass down target.
11068 (check_thread_db_callback): Pass down target.
11069 (try_thread_db_load_1): Always push the thread_db target.
11070 (try_thread_db_load, record_thread): Pass target down.
11071 (thread_db_target::detach): Pass target down. Always unpush the
11072 thread_db target.
11073 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11074 target down. Always unpush the thread_db target.
11075 (find_new_threads_callback, thread_db_find_new_threads_2)
11076 (thread_db_target::update_thread_list): Pass target down.
11077 (thread_db_target::pid_to_str): Pass current inferior down.
11078 (thread_db_target::get_thread_local_address): Pass target down.
11079 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11080 target down.
11081 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11082 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11083 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11084 (procfs_init_inferior): Rename to ...
11085 (procfs_target::procfs_init_inferior): ... this and adjust.
11086 (procfs_target::create_inferior, procfs_notice_thread)
11087 (procfs_do_thread_registers): Adjust.
11088 * ppc-fbsd-tdep.c: Include "inferior.h".
11089 (ppcfbsd_get_thread_local_address): Pass down target.
11090 * proc-service.c (ps_xfer_memory): Switch current inferior and
11091 program space as well.
11092 (get_ps_regcache): Pass target down.
11093 * process-stratum-target.c
11094 (process_stratum_target::thread_address_space)
11095 (process_stratum_target::thread_architecture): Pass target down.
11096 * process-stratum-target.h
11097 (process_stratum_target::threads_executing): New field.
11098 (as_process_stratum_target): New.
11099 * ravenscar-thread.c
11100 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11101 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11102 down.
11103 * record-btrace.c (record_btrace_target::info_record): Adjust.
11104 (record_btrace_target::record_method)
11105 (record_btrace_target::record_is_replaying)
11106 (record_btrace_target::fetch_registers)
11107 (get_thread_current_frame_id, record_btrace_target::resume)
11108 (record_btrace_target::wait, record_btrace_target::stop): Pass
11109 target down.
11110 * record-full.c (record_full_wait_1): Switch to event thread.
11111 Pass target down.
11112 * regcache.c (regcache::regcache)
11113 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11114 process_stratum_target parameter and handle it.
11115 (current_thread_target): New global.
11116 (get_thread_regcache): Add process_stratum_target parameter and
11117 handle it. Switch inferior before calling target method.
11118 (get_thread_regcache): Pass target down.
11119 (get_thread_regcache_for_ptid): Pass target down.
11120 (registers_changed_ptid): Add process_stratum_target parameter and
11121 handle it.
11122 (registers_changed_thread, registers_changed): Pass target down.
11123 (test_get_thread_arch_aspace_regcache): New.
11124 (current_regcache_test): Define a couple local test_target_ops
11125 instances and use them for testing.
11126 (readwrite_regcache): Pass process_stratum_target parameter.
11127 (cooked_read_test, cooked_write_test): Pass mock_target down.
11128 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11129 (get_thread_arch_aspace_regcache): Add process_stratum_target
11130 parameter.
11131 (regcache::target): New method.
11132 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11133 (regcache::registers_changed_ptid): Add process_stratum_target
11134 parameter.
11135 (regcache::m_target): New field.
11136 (registers_changed_ptid): Add process_stratum_target parameter.
11137 * remote.c (remote_state::supports_vCont_probed): New field.
11138 (remote_target::async_wait_fd): New method.
11139 (remote_unpush_and_throw): Add remote_target parameter.
11140 (get_current_remote_target): Adjust.
11141 (remote_target::remote_add_inferior): Push target.
11142 (remote_target::remote_add_thread)
11143 (remote_target::remote_notice_new_inferior)
11144 (get_remote_thread_info): Pass target down.
11145 (remote_target::update_thread_list): Skip threads of inferiors
11146 bound to other targets. (remote_target::close): Don't discard
11147 inferiors. (remote_target::add_current_inferior_and_thread)
11148 (remote_target::process_initial_stop_replies)
11149 (remote_target::start_remote)
11150 (remote_target::remote_serial_quit_handler): Pass down target.
11151 (remote_target::remote_unpush_target): New remote_target
11152 parameter. Unpush the target from all inferiors.
11153 (remote_target::remote_unpush_and_throw): New remote_target
11154 parameter. Pass it down.
11155 (remote_target::open_1): Check whether the current inferior has
11156 execution instead of checking whether any inferior is live. Pass
11157 target down.
11158 (remote_target::remote_detach_1): Pass down target. Use
11159 remote_unpush_target.
11160 (extended_remote_target::attach): Pass down target.
11161 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11162 (remote_target::append_resumption): Pass down target.
11163 (remote_target::append_pending_thread_resumptions)
11164 (remote_target::remote_resume_with_hc, remote_target::resume)
11165 (remote_target::commit_resume): Pass down target.
11166 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11167 (remote_target::interrupt_query)
11168 (remote_target::remove_new_fork_children)
11169 (remote_target::check_pending_events_prevent_wildcard_vcont)
11170 (remote_target::remote_parse_stop_reply)
11171 (remote_target::process_stop_reply): Pass down target.
11172 (first_remote_resumed_thread): New remote_target parameter. Pass
11173 it down.
11174 (remote_target::wait_as): Pass down target.
11175 (unpush_and_perror): New remote_target parameter. Pass it down.
11176 (remote_target::readchar, remote_target::remote_serial_write)
11177 (remote_target::getpkt_or_notif_sane_1)
11178 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11179 down target.
11180 (remote_target::mourn_inferior): Pass down target. Use
11181 remote_unpush_target.
11182 (remote_target::core_of_thread)
11183 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11184 (remote_target::pid_to_exec_file)
11185 (remote_target::thread_handle_to_thread_info): Pass down target.
11186 (remote_target::async_wait_fd): New.
11187 * riscv-fbsd-tdep.c: Include "inferior.h".
11188 (riscv_fbsd_get_thread_local_address): Pass down target.
11189 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11190 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11191 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11192 Adjust.
11193 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11194 * solib-svr4.c (enable_break): Pass down target.
11195 * spu-multiarch.c (parse_spufs_run): Pass down target.
11196 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11197 * target-delegates.c: Regenerate.
11198 * target.c (g_target_stack): Delete.
11199 (current_top_target): Return the current inferior's top target.
11200 (target_has_execution_1): Refer to the passed-in inferior's top
11201 target.
11202 (target_supports_terminal_ours): Check whether the initial
11203 inferior was already created.
11204 (decref_target): New.
11205 (target_stack::push): Incref/decref the target.
11206 (push_target, push_target, unpush_target): Adjust.
11207 (target_stack::unpush): Defref target.
11208 (target_is_pushed): Return bool. Adjust to refer to the current
11209 inferior's target stack.
11210 (dispose_inferior): Delete, and inline parts ...
11211 (target_preopen): ... here. Only dispose of the current inferior.
11212 (target_detach): Hold strong target reference while detaching.
11213 Pass target down.
11214 (target_thread_name): Add assertion.
11215 (target_resume): Pass down target.
11216 (target_ops::beneath, find_target_at): Adjust to refer to the
11217 current inferior's target stack.
11218 (get_dummy_target): New.
11219 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11220 has a thread running.
11221 (initialize_targets): Rename to ...
11222 (_initialize_target): ... this.
11223 * target.h: Include "gdbsupport/refcounted-object.h".
11224 (struct target_ops): Inherit refcounted_object.
11225 (target_ops::shortname, target_ops::longname): Make const.
11226 (target_ops::async_wait_fd): New method.
11227 (decref_target): Declare.
11228 (struct target_ops_ref_policy): New.
11229 (target_ops_ref): New typedef.
11230 (get_dummy_target): Declare function.
11231 (target_is_pushed): Return bool.
11232 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11233 (all_matching_threads_iterator::all_matching_threads_iterator):
11234 Handle filter target.
11235 * thread-iter.h (struct all_matching_threads_iterator, struct
11236 all_matching_threads_range, class all_non_exited_threads_range):
11237 Filter by target too. Remove explicit.
11238 * thread.c (threads_executing): Delete.
11239 (inferior_thread): Pass down current inferior.
11240 (clear_thread_inferior_resources): Pass down thread pointer
11241 instead of ptid_t.
11242 (add_thread_silent, add_thread_with_info, add_thread): Add
11243 process_stratum_target parameter. Use it for thread and inferior
11244 searches.
11245 (is_current_thread): New.
11246 (thread_info::deletable): Use it.
11247 (find_thread_ptid, thread_count, in_thread_list)
11248 (thread_change_ptid, set_resumed, set_running): New
11249 process_stratum_target parameter. Pass it down.
11250 (set_executing): New process_stratum_target parameter. Pass it
11251 down. Adjust reference to 'threads_executing'.
11252 (threads_are_executing): New process_stratum_target parameter.
11253 Adjust reference to 'threads_executing'.
11254 (set_stop_requested, finish_thread_state): New
11255 process_stratum_target parameter. Pass it down.
11256 (switch_to_thread): Also match inferior.
11257 (switch_to_thread): New process_stratum_target parameter. Pass it
11258 down.
11259 (update_threads_executing): Reimplement.
11260 * top.c (quit_force): Pop targets from all inferior.
11261 (gdb_init): Don't call initialize_targets.
11262 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11263 Declare.
11264 (windows_add_thread, windows_delete_thread): Adjust.
11265 (get_windows_debug_event): Rename to ...
11266 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11267 * tracefile-tfile.c (tfile_target_open): Pass down target.
11268 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11269 Forward declare.
11270 (switch_to_thread): Add process_stratum_target parameter.
11271 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11272 parameter. Use it.
11273 (mi_on_resume): Pass target down.
11274 * nat/fork-inferior.c (startup_inferior): Add
11275 process_stratum_target parameter. Pass it down.
11276 * nat/fork-inferior.h (startup_inferior): Add
11277 process_stratum_target parameter.
11278 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11279
75c6c844
PA
112802020-01-10 Pedro Alves <palves@redhat.com>
11281
11282 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11283 directly. Instead find the first thread in the thread list and
11284 use switch_to_thread.
11285
78f2c40a
PA
112862020-01-10 Pedro Alves <palves@redhat.com>
11287
11288 * remote.c (remote_target::remote_add_inferior): Don't bind a
11289 process to the current inferior if the current inferior is already
11290 bound to a process.
11291
e7af6c70
TBA
112922020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11293 Pedro Alves <palves@redhat.com>
11294
11295 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11296 If no process is specified, return null_ptid instead of
11297 inferior_ptid.
11298 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11299 TARGET_WAITKIND_SIGNALLED with no pid.
11300
31ba933e
PA
113012020-01-10 Pedro Alves <palves@redhat.com>
11302
11303 * remote.c (first_remote_resumed_thread): New.
11304 (remote_target::wait_as): Use it as default event_ptid instead of
11305 inferior_ptid.
11306
735fc2ca
PA
113072020-01-10 Pedro Alves <palves@redhat.com>
11308
11309 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11310
c17e02e1
PA
113112020-01-10 Pedro Alves <palves@redhat.com>
11312
11313 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11314 not -1.
11315
ab1ddbcf
PA
113162020-01-10 Pedro Alves <palves@redhat.com>
11317
11318 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11319 ptid to get_last_target_status.
11320 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11321 ptid to get_last_target_status.
11322 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11323 get_last_target_status.
11324 (info_program_command): Don't pass a target_waitstatus to
11325 get_last_target_status.
11326 * infrun.c (init_wait_for_inferior): Use
11327 nullify_last_target_wait_ptid.
11328 (get_last_target_status): Handle nullptr arguments.
11329 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11330 (print_stop_event): Don't pass a ptid to get_last_target_status.
11331 (normal_stop): Don't pass a ptid to get_last_target_status.
11332 * infrun.h (get_last_target_status, set_last_target_status): Move
11333 comments here and update.
11334 (nullify_last_target_wait_ptid): Declare.
11335 * linux-fork.c (fork_load_infrun_state): Remove local extern
11336 declaration of nullify_last_target_wait_ptid.
11337 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11338 to get_last_target_status.
11339
f3f8ece4
PA
113402020-01-10 Pedro Alves <palves@redhat.com>
11341
11342 * gdbthread.h (scoped_restore_current_thread)
11343 <dont_restore, restore, m_dont_restore>: Declare.
11344 * thread.c (thread_alive): Add assertion. Return bool.
11345 (switch_to_thread_if_alive): New.
11346 (prune_threads): Switch inferior/thread.
11347 (print_thread_info_1): Switch thread before calling target methods.
11348 (scoped_restore_current_thread::restore): New, factored out from
11349 ...
11350 (scoped_restore_current_thread::~scoped_restore_current_thread):
11351 ... this.
11352 (scoped_restore_current_thread::scoped_restore_current_thread):
11353 Add assertion.
11354 (thread_apply_all_command, thread_select): Use
11355 switch_to_thread_if_alive.
11356 * infrun.c (proceed, restart_threads, handle_signal_stop)
11357 (switch_back_to_stepped_thread): Switch current thread before
11358 calling target methods.
11359
db2d40f7
PA
113602020-01-10 Pedro Alves <palves@redhat.com>
11361
11362 * inferior.c (switch_to_inferior_no_thread): New function,
11363 factored out from ...
11364 (inferior_command): ... here.
11365 * inferior.h (switch_to_inferior_no_thread): Declare.
11366 * mi/mi-main.c (run_one_inferior): Use
11367 switch_to_inferior_no_thread.
11368
bd420a2d
PA
113692020-01-10 Pedro Alves <palves@redhat.com>
11370
11371 * infcmd.c (kill_command): Remove dead code.
11372
ddf5db90
PA
113732020-01-10 Pedro Alves <palves@redhat.com>
11374
11375 * remote.c (remote_target::mourn_inferior): No longer check
11376 whether the target is running.
11377
5018ce90
PA
113782020-01-10 Pedro Alves <palves@redhat.com>
11379
11380 * corelow.c (core_target::has_execution): Change parameter type to
11381 inferior pointer.
11382 * inferior.c (number_of_live_inferiors): Use
11383 inferior::has_execution instead of target_has_execution_1.
11384 * inferior.h (inferior::has_execution): New.
11385 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11386 inferior::has_execution instead of target_has_execution_1.
11387 * process-stratum-target.c
11388 (process_stratum_target::has_execution): Change parameter type to
11389 inferior pointer. Check the inferior's PID instead of
11390 inferior_ptid.
11391 * process-stratum-target.h
11392 (process_stratum_target::has_execution): Change parameter type to
11393 inferior pointer.
11394 * record-full.c (record_full_core_target::has_execution): Change
11395 parameter type to inferior pointer.
11396 * target.c (target_has_execution_1): Change parameter type to
11397 inferior pointer.
11398 (target_has_execution_current): Adjust.
11399 * target.h (target_ops::has_execution): Change parameter type to
11400 inferior pointer.
11401 (target_has_execution_1): Change parameter type to inferior
11402 pointer. Change return type to bool.
11403 * tracefile.h (tracefile_target::has_execution): Change parameter
11404 type to inferior pointer.
11405
74375d18
PA
114062020-01-10 Pedro Alves <palves@redhat.com>
11407
11408 * exceptions.c (print_flush): Remove current_top_target() check.
11409
acdf84a6
PA
114102020-01-10 Pedro Alves <palves@redhat.com>
11411
11412 * remote.c (show_remote_exec_file): Show the current inferior's
11413 exec-file instead of the command variable's value.
11414
ec506636
PA
114152020-01-10 Pedro Alves <palves@redhat.com>
11416
11417 * record-full.c (record_full_resume_ptid): New global.
11418 (record_full_target::resume): Set it.
11419 (record_full_wait_1): Use record_full_resume_ptid instead of
11420 inferior_ptid.
11421
873657b9
PA
114222020-01-10 Pedro Alves <palves@redhat.com>
11423
11424 * gdbthread.h (scoped_restore_current_thread)
11425 <dont_restore, restore, m_dont_restore>: Declare.
11426 * thread.c (thread_alive): Add assertion. Return bool.
11427 (switch_to_thread_if_alive): New.
11428 (prune_threads): Switch inferior/thread.
11429 (print_thread_info_1): Switch thread before calling target methods.
11430 (scoped_restore_current_thread::restore): New, factored out from
11431 ...
11432 (scoped_restore_current_thread::~scoped_restore_current_thread):
11433 ... this.
11434 (scoped_restore_current_thread::scoped_restore_current_thread):
11435 Add assertion.
11436 (thread_apply_all_command, thread_select): Use
11437 switch_to_thread_if_alive.
11438
7f0ae84c
GB
114392020-01-10 George Barrett <bob@bob131.so>
11440
11441 * stap-probe.c (stap_modify_semaphore): Don't check for null
11442 semaphores.
11443 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11444 for null semaphores.
11445
f5a7c406
AB
114462020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11447
11448 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11449 all source windows, and maintain horizontal scroll status while
11450 doing so.
11451
9ae6bf64
TT
114522020-01-09 Tom Tromey <tom@tromey.com>
11453
11454 PR tui/18932:
11455 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11456 update_source_window, not print_source_lines.
11457
b2efe70c
AB
114582020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11459
11460 * tui/tui.c (tui_enable): Register tui hooks after calling
11461 tui_display_main.
11462
5f23a082
CB
114632020-01-09 Christian Biesinger <cbiesinger@google.com>
11464
11465 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11466
3061113b
SM
114672020-01-08 Simon Marchi <simon.marchi@efficios.com>
11468
11469 * thread.c (print_thread_info_1): Fix indentation.
11470
57d75002
CB
114712020-01-09 Christian Biesinger <cbiesinger@google.com>
11472
11473 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11474 unique_xmalloc_ptr outside the if to always free the demangled name.
11475
6a053cb1
TT
114762020-01-08 Tom Tromey <tromey@adacore.com>
11477
11478 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11479 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11480 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11481 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11482 Remove.
11483 (section_offsets): New typedef.
11484 * symtab.c (fixup_section, get_msymbol_address): Update.
11485 * symmisc.c (dump_msymbols): Update.
11486 * symfile.h (relative_addr_info_to_section_offsets)
11487 (symfile_map_offsets_to_segments): Update.
11488 * symfile.c (build_section_addr_info_from_objfile)
11489 (init_objfile_sect_indices): Update.
11490 (struct place_section_arg): Change type of "offsets".
11491 (place_section): Update.
11492 (relative_addr_info_to_section_offsets): Change type of
11493 "section_offsets". Remove "num_sections" parameter.
11494 (default_symfile_offsets, syms_from_objfile_1)
11495 (set_objfile_default_section_offset): Update.
11496 (reread_symbols): No need to preserve section offsets by hand.
11497 (symfile_map_offsets_to_segments): Change type of "offsets".
11498 * stap-probe.c (relocate_address): Update.
11499 * stabsread.h (process_one_symbol): Update.
11500 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11501 (solib_target_relocate_section_addresses): Update.
11502 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11503 Update.
11504 * solib-frv.c (frv_relocate_main_executable): Update.
11505 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11506 * solib-aix.c (solib_aix_get_section_offsets): Change return
11507 type.
11508 (solib_aix_solib_create_inferior_hook): Update.
11509 * remote.c (remote_target::get_offsets): Update.
11510 * psymtab.c (find_pc_sect_psymtab): Update.
11511 * psympriv.h (struct partial_symbol) <address, text_low,
11512 text_high>: Update.
11513 * objfiles.h (obj_section_offset): Update.
11514 (struct objfile) <section_offsets>: Change type.
11515 <num_sections>: Remove.
11516 (objfile_relocate): Update.
11517 * objfiles.c (entry_point_address_query): Update
11518 (relocate_one_symbol): Change type of "section_offsets".
11519 (objfile_relocate1, objfile_relocate1): Change type of
11520 "new_offsets".
11521 (objfile_rebase1): Update.
11522 * mipsread.c (mipscoff_symfile_read): Update.
11523 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11524 parameter.
11525 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11526 (parse_external, psymtab_to_symtab_1): Update.
11527 * machoread.c (macho_symfile_offsets): Update.
11528 * ia64-tdep.c (ia64_find_unwind_table): Update.
11529 * hppa-tdep.c (read_unwind_info): Update.
11530 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11531 * dwarf2read.c (create_addrmap_from_index)
11532 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11533 (process_psymtab_comp_unit_reader, add_partial_symbol)
11534 (add_partial_subprogram, process_full_comp_unit)
11535 (read_file_scope, read_func_scope, read_lexical_block_scope)
11536 (read_call_site_scope, dwarf2_rnglists_process)
11537 (dwarf2_ranges_process, dwarf2_ranges_read)
11538 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11539 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11540 Update.
11541 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11542 Update.
11543 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11544 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11545 (process_one_symbol): Change type of "section_offsets".
11546 * ctfread.c (get_objfile_text_range): Update.
11547 * coffread.c (coff_symtab_read, enter_linenos)
11548 (process_coff_symbol): Update.
11549 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11550 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11551
456e800a
TT
115522020-01-08 Tom Tromey <tromey@adacore.com>
11553
11554 * dwarf2read.c (parse_macro_definition): Use std::string.
11555 (parse_macro_definition): Likewise.
11556
6dfa2fc2
TT
115572020-01-08 Tom Tromey <tromey@adacore.com>
11558
11559 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11560 (ATTR_ALLOC_CHUNK): Remove.
11561
421d1616
TT
115622020-01-08 Tom Tromey <tromey@adacore.com>
11563
11564 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11565
43816ebc
TT
115662020-01-08 Tom Tromey <tromey@adacore.com>
11567
11568 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11569 (dwarf2_compute_name, open_dwo_file): Likewise.
11570 (process_enumeration_scope): Use std::vector.
11571 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11572 (partial_die_info::fixup, dwarf2_start_subfile)
11573 (guess_full_die_structure_name, dwarf2_name): Likewise.
11574 (determine_prefix): Update.
11575 (guess_full_die_structure_name): Make return type const.
11576 (partial_die_full_name): Return unique_xmalloc_ptr.
11577 (DW_FIELD_ALLOC_CHUNK): Remove.
11578
4212d509
TT
115792020-01-07 Tom Tromey <tromey@adacore.com>
11580
11581 PR build/24937:
11582 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11583
06a6207a
JT
115842020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11585
11586 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11587
153d79c4
AB
115882020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11589
11590 * stack.c (print_frame_info): Move disassemble_next_line code
11591 inside source_print block.
11592
66182876
EZ
115932020-01-06 Eli Zaretskii <eliz@gnu.org>
11594
11595 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11596 gdb/signals.h, as we are now using native signal symbols.
11597
cbfa8581
SV
115982020-01-06 Shahab Vahedi <shahab@synopsys.com>
11599
11600 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11601 overflow by an early check of content vs threshold.
aac66a4c 11602 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11603 Likewise.
11604
3f602821
EZ
116052020-01-06 Eli Zaretskii <eliz@gnu.org>
11606
11607 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11608
a08c904d
JT
116092020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11610
11611 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11612 export table if no section contains it's RVA.
11613
89a65580
EZ
116142020-01-06 Eli Zaretskii <eliz@gnu.org>
11615
11616 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11617
8b7fcda2
HD
116182020-01-06 Hannes Domani <ssbssa@yahoo.de>
11619
11620 * source.c (print_source_lines_base): Set last_line_listed.
11621
a61b4f69
SV
116222020-01-06 Shahab Vahedi <shahab@synopsys.com>
11623
11624 * tui/tui-disasm.c: Remove trailing spaces.
11625
559e7e50
EZ
116262020-01-06 Eli Zaretskii <eliz@gnu.org>
11627 Pedro Alves <palves@redhat.com>
11628
11629 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11630 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11631 (windows_gdb_signal_to_target): New function, uses the above
11632 enumeration to convert GDB internal signal codes to equivalent
11633 Windows codes.
11634 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11635 * windows-nat.c: Include "gdb_wait.h".
11636 (get_windows_debug_event): Extract the fatal exception from the
11637 exit status and convert to the equivalent Posix signal number.
11638 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11639 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11640 * gdbsupport/gdb_wait.c: New file, implements
11641 windows_status_to_termsig.
11642 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11643 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11644
f2302a34
AB
116452020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11646
11647 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11648 show_layout.
11649
6a5206eb
LM
116502020-01-05 Luis Machado <luis.machado@linaro.org>
11651
11652 * aarch64-linux-nat.c
11653 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11654 and bfd_mach_aarch64.
11655
6ec1d75e
PW
116562020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11657
11658 * ui-file.c (stdio_file::can_emit_style_escape)
11659 (tee_file::can_emit_style_escape): Ensure style is used also on
11660 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11661 to gdb_stdout.
11662 * main.c (set_gdb_data_directory): Use file style to output the
11663 warning that the given pathname is not a directory.
11664 * top.c (show_history_filename, gdb_safe_append_history)
11665 (show_gdb_datadir): Use file style.
11666
44f81a76
HD
116672020-01-03 Hannes Domani <ssbssa@yahoo.de>
11668
11669 * solib-target.c (struct lm_info_target):
11670 Change offsets to be a unique_xmalloc_ptr.
11671 (solib_target_relocate_section_addresses): Update.
11672
25057eb0
HD
116732020-01-03 Hannes Domani <ssbssa@yahoo.de>
11674
11675 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11676
6e2118f5
BE
116772020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11678
11679 * MAINTAINERS (Write After Approval): Add myself.
11680
8133c7dc
LM
116812020-01-02 Luis Machado <luis.machado@linaro.org>
11682
11683 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11684 Cell BE architecture.
11685 * target.h (struct target_ops) <thread_architecture>: Likewise.
11686
48189bec
HD
116872020-01-01 Hannes Domani <ssbssa@yahoo.de>
11688
11689 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11690
ead1063b
HD
116912020-01-01 Hannes Domani <ssbssa@yahoo.de>
11692
11693 * MAINTAINERS (Write After Approval): Add myself.
11694
e5d78223
JB
116952020-01-01 Joel Brobecker <brobecker@adacore.com>
11696
11697 * gdbarch.sh: Update copyright year range of generated files.
11698
b811d2c2
JB
116992020-01-01 Joel Brobecker <brobecker@adacore.com>
11700
11701 Update copyright year range in all GDB files.
11702
5f4def5c
JB
117032020-01-01 Joel Brobecker <brobecker@adacore.com>
11704
11705 * copyright.py: Convert to Python 3.
11706
51fd4002
JB
117072020-01-01 Joel Brobecker <brobecker@adacore.com>
11708
11709 * copyright.py: Adapt after move of gnulib directory from gdb
11710 directory to toplevel directory.
11711
5fb651f2
JB
117122020-01-01 Joel Brobecker <brobecker@adacore.com>
11713
11714 * copyright.py (main): Exit if run from the wrong directory.
11715
5dd8bf88
JB
117162020-01-01 Joel Brobecker <brobecker@adacore.com>
11717
11718 * top.c (print_gdb_version): Change copyright year to 2020.
11719
9f71dacb 117202020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11721
9f71dacb 11722 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11723
9f71dacb 11724For older changes see ChangeLog-2019.
c906108c
SS
11725\f
11726Local Variables:
11727mode: change-log
11728left-margin: 8
11729fill-column: 74
11730version-control: never
57da7796 11731coding: utf-8
c906108c 11732End: