]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Update FreeBSD system calls for 13.0-CURRENT.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5d6356e9
JB
12020-08-03 John Baldwin <jhb@FreeBSD.org>
2
3 * syscalls/freebsd.xml: Regenerate.
4
0cf82b81
JB
52020-08-03 John Baldwin <jhb@FreeBSD.org>
6
7 * syscalls/update-freebsd.sh: Fix usage and year range.
8
8f34b746
TV
92020-08-03 Tom de Vries <tdevries@suse.de>
10
11 PR symtab/26333
12 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
13 DW_LNE_lo_user/DW_LNE_hi_user range.
14
5e500d33
SM
152020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
16
17 PR ada/26318
18 * ada-lang.c (ada_modulus): Return 0 if property is not of const
19 kind.
20
78319c15
TBA
212020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
22
23 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
24
4c55e970
TBA
252020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
26
27 * breakpoint.c (set_breakpoint_condition): Update the condition
28 expressions after checking that the input condition string parses
29 successfully and does not contain junk at the end.
30
1e620590
TBA
312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
32
33 * breakpoint.c (set_breakpoint_condition): Update the
34 condition string after parsing the new condition successfully.
35
c8693053
RO
362020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37
38 * proc-api.c (_STRUCTURED_PROC): Don't define.
39 * proc-events.c: Likewise.
40 * proc-flags.c: Likewise.
41 * proc-why.c: Likewise.
42 * procfs.c: Likewise.
43
44 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
45 * configure, config.in: Regenerate.
46
5a99adb8
TV
472020-07-30 Tom de Vries <tdevries@suse.de>
48
49 PR build/26320
50 * ui-style.h (struct ui_file_style::color): Wrap m_value and
51 m_red/m_green/m_blue in a union.
52
8ba83e91
TV
532020-07-29 Tom de Vries <tdevries@suse.de>
54
55 PR tdep/26280
56 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
57
f75a0693
AB
582020-07-28 Tom Tromey <tromey@adacore.com>
59
60 PR symtab/26270:
61 * symtab.h (find_pc_partial_function_sym): Declare.
62 * cli/cli-cmds.c (disassemble_command): Use
63 find_pc_partial_function_sym. Check asm_demangle.
64 * blockframe.c (cache_pc_function_sym): New global.
65 (cache_pc_function_name): Remove.
66 (clear_pc_function_cache): Update.
67 (find_pc_partial_function_sym): New function, from
68 find_pc_partial_function.
69 (find_pc_partial_function): Rewrite using
70 find_pc_partial_function_sym.
71
16f3242c
TT
722020-07-28 Tom Tromey <tromey@adacore.com>
73
74 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
75 help. Add usage.
76
4888741a
TT
772020-07-28 Tom Tromey <tromey@adacore.com>
78
79 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
80 <DW_OP_GNU_variable_value>: Cast to address type.
81
4d46f402
KR
822020-07-28 Kamil Rytarowski <n54@gmx.com>
83
84 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
85 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
86 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
87 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
88 (nbsd_get_siginfo_type): New.
89 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
90 (_initialize_nbsd_tdep): New.
91
d70f978b
L
922020-07-28 H.J. Lu <hongjiu.lu@intel.com>
93
94 PR binutils/26301
95 * configure: Regenerated.
96
377170fa
L
972020-07-28 H.J. Lu <hongjiu.lu@intel.com>
98
99 PR binutils/26301
100 * configure: Regenerated.
101
43d5901d
AB
1022020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
103
104 * python/py-frame.c: Remove 'user-regs.h' include.
105 (frapy_read_register): Rewrite to make use of
106 gdbpy_parse_register_id.
107 * python/py-registers.c (gdbpy_parse_register_id): New function,
108 moved here from python/py-unwind.c. Updated the return type, and
109 also accepts register descriptor objects.
110 * python/py-unwind.c: Remove 'user-regs.h' include.
111 (pyuw_parse_register_id): Moved to python/py-registers.c.
112 (unwind_infopy_add_saved_register): Update to use
113 gdbpy_parse_register_id.
114 (pending_framepy_read_register): Likewise.
115 * python/python-internal.h (gdbpy_parse_register_id): Declare.
116
14fa8fb3
AB
1172020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
118
119 * python/py-registers.c: Add 'user-regs.h' include.
120 (register_descriptor_iter_find): New function.
121 (register_descriptor_iterator_object_methods): New static global
122 methods array.
123 (register_descriptor_iterator_object_type): Add pointer to methods
124 array.
125
ddce1758
JB
1262020-07-27 John Baldwin <jhb@FreeBSD.org>
127
128 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
129 for all architectures on FreeBSD 11.3 and later.
130
a4089f52
TT
1312020-07-27 Tom Tromey <tromey@adacore.com>
132
133 * gcore.h (load_corefile): Don't declare.
134
95420d30
TV
1352020-07-27 Tom de Vries <tdevries@suse.de>
136
137 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
138 * config.in: Regenerate.
139 * configure: Regenerate.
140
05a6b8c2
EZ
1412020-07-26 Eli Zaretskii <eliz@gnu.org>
142
143 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
144 ws2tcpip.h. When checking whether socklen_t type is defined, use
145 ws2tcpip.h if it is available and sys/socket.h isn't.
146 * configure: Regenerate.
147 * config.in: Regenerate.
148
e79eb02f
AB
1492020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
150
151 PR fortran/23051
152 PR fortran/26139
153 * valops.c (value_ind): Pass address to
154 readjust_indirect_value_type.
155 * value.c (readjust_indirect_value_type): Make parameter
156 non-const, and add extra address parameter. Resolve original type
157 before using it.
158 * value.h (readjust_indirect_value_type): Update function
159 signature and comment.
160
876518dd
TV
1612020-07-25 Tom de Vries <tdevries@suse.de>
162
163 PR symtab/26243
164 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
165 entries.
166
f6720b1c
AM
1672020-07-24 Aaron Merey <amerey@redhat.com>
168
169 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
170 * configure: Rebuild.
171
513487e1
KB
1722020-07-23 Kevin Buettner <kevinb@redhat.com>
173
174 PR corefiles/26294
175 * corelow.c (_initialize_corelow): Add period to help text
176 for "maintenance print core-file-backed-mappings".
177
e7bc9db8
PA
1782020-07-23 Pedro Alves <pedro@palves.net>
179
180 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
181 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
182 meanwhile.
183 * frame.c (frame_cache_generation, get_frame_cache_generation):
184 New.
185 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
186 (get_prev_frame_if_no_cycle): On exception, don't touch
187 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
188 * frame.h (get_frame_cache_generation): Declare.
189
90fcc466
TV
1902020-07-23 Tom de Vries <tdevries@suse.de>
191
192 PR tui/26282
193 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
194 New default constructor.
195
78344df7
AB
1962020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
197
198 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
199 exclude non-statement entries.
200
b089853a
KB
2012020-07-22 Kevin Buettner <kevinb@redhat.com>
202
203 * NEWS (New commands): Mention new command
204 "maintenance print core-file-backed-mappings".
205
09c2f5d4
KB
2062020-07-22 Kevin Buettner <kevinb@redhat.com>
207
208 * corelow.c (gdbcmd.h): Include.
209 (core_target::info_proc_mappings): New method.
210 (get_current_core_target): New function.
211 (maintenance_print_core_file_backed_mappings): New function.
212 (_initialize_corelow): Add core-file-backed-mappings to
213 "maint print" commands.
214
9c5ec5c2
KB
2152020-07-22 Kevin Buettner <kevinb@redhat.com>
216
217 * linux-tdep.c (dump_note_entry_p): New function.
218 (linux_dump_mapping_p_ftype): New typedef.
219 (linux_find_memory_regions_full): Add new parameter,
220 should_dump_mapping_p.
221 (linux_find_memory_regions): Adjust call to
222 linux_find_memory_regions_full.
223 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
224 call to linux_find_memory_regions_full.
225
db082f59
KB
2262020-07-22 Kevin Buettner <kevinb@redhat.com>
227
228 * corelow.c (solist.h, unordered_map): Include.
229 (class core_target): Add field m_core_file_mappings and
230 method build_file_mappings.
231 (core_target::core_target): Call build_file_mappings.
232 (core_target::~core_target): Free memory associated with
233 m_core_file_mappings.
234 (core_target::build_file_mappings): New method.
235 (core_target::xfer_partial): Use m_core_file_mappings
236 for memory transfers.
237 * linux-tdep.c (linux_read_core_file_mappings): New
238 function.
239 (linux_core_info_proc_mappings): Rewrite to use
240 linux_read_core_file_mappings.
241 (linux_init_abi): Register linux_read_core_file_mappings.
242
7e183d27
KB
2432020-07-22 Kevin Buettner <kevinb@redhat.com>
244
245 * arch-utils.c (default_read_core_file_mappings): New function.
246 * arch-utils.c (default_read_core_file_mappings): Declare.
247 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
248 * gdbarch.h, gdbarch.c: Regenerate.
249
2735d421
KB
2502020-07-22 Kevin Buettner <kevinb@redhat.com>
251
252 PR corefiles/25631
253 * corelow.c (core_target:xfer_partial): Revise
254 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
255 case after first checking the stratum beneath the core
256 target.
257 (has_all_memory): Return true.
258 * target.c (raw_memory_xfer_partial): Revise comment
259 regarding use of has_all_memory.
260
e56cb451
KB
2612020-07-22 Kevin Buettner <kevinb@redhat.com>
262
263 * exec.h (section_table_xfer_memory): Revise declaration,
264 replacing section name parameter with an optional callback
265 predicate.
266 * exec.c (section_table_xfer_memory): Likewise.
267 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
268 of section_table_xfer_memory.
269
32fa152e
TT
2702020-07-22 Tom Tromey <tromey@adacore.com>
271
272 * mi/mi-cmd-stack.c (list_args_or_locals): Use
273 lookup_symbol_search_name.
274
a67a1c41
AB
2752020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
276
277 * python/py-registers.c (gdbpy_register_object_data_init): Remove
278 redundant local variable.
279 (gdbpy_get_register_descriptor): Extract descriptor vector as a
280 reference, not pointer, update code accordingly.
281
a7b4ff4f
SM
2822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
283 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
284
285 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
286 * jit.c (jit_breakpoint_re_set_internal): Use the
287 `skip_jit_symbol_lookup` field.
288
2340e834
SM
2892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
290 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
291
292 * jit.c (jit_read_descriptor): Define the descriptor address once,
293 use twice.
294 (jit_breakpoint_deleted): Move the declaration of the loop variable
295 `iter` into the loop header.
296 (jit_breakpoint_re_set_internal): Move the declaration of the local
297 variable `objf_data` to the first point of definition.
298 (jit_event_handler): Move the declaration of local variables
299 `code_entry`, `entry_addr`, and `objf` to their first point of use.
300 Rename `objf` to `jited`.
301
c1072906
SM
3022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
303
304 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
305 Remove.
306 * jit.c (get_jiter_objfile_data): Update.
307
c8474dc3
TBA
3082020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
309 Simon Marchi <simon.marchi@polymtl.ca>
310
311 * jit.c (struct jit_program_space_data): Remove.
312 (jit_program_space_key): Remove.
313 (jiter_objfile_data::~jiter_objfile_data): Remove program space
314 stuff.
315 (get_jit_program_space_data): Remove.
316 (jit_breakpoint_deleted): Iterate on all of the program space's
317 objfiles.
318 (jit_inferior_init): Likewise.
319 (jit_breakpoint_re_set_internal): Likewise. Also change return
320 type to void.
321 (jit_breakpoint_re_set): Pass current_program_space to
322 jit_breakpoint_re_set_internal.
323
77208eb7
SM
3242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
325
326 * jit.h (struct jiter_objfile_data) <cached_code_address,
327 jit_breakpoint>: Move to here from ...
328 * jit.c (jit_program_space_data): ... here.
329 (jiter_objfile_data::~jiter_objfile_data): Update.
330 (jit_breakpoint_deleted): Update.
331 (jit_breakpoint_re_set_internal): Update.
332
8c1c720f
SM
3332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
334
335 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
336 checks.
337 (jit_read_descriptor): Remove NULL check.
338 (jit_event_handler): Add an assertion.
339
0e74a041
SM
3402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * jit.h (struct jit_objfile_data): Split into...
343 (struct jiter_objfile_data): ... this ...
344 (struct jited_objfile_data): ... and this.
345 * objfiles.h (struct objfile) <jit_data>: Remove.
346 <jiter_data, jited_data>: New fields.
347 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
348 (jiter_objfile_data::~jiter_objfile_data): ... this.
349 (get_jit_objfile_data): Rename to ...
350 (get_jiter_objfile_data): ... this.
351 (add_objfile_entry): Update.
352 (jit_read_descriptor): Use get_jiter_objfile_data.
353 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
354 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
355 (jit_inferior_exit_hook): Use objfile's jited_data field.
356
238b5c9f
SM
3572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
358
359 * jit.h: Forward-declare `struct minimal_symbol`.
360 (struct jit_objfile_data): Migrate to here from jit.c; also add a
361 constructor, destructor, and an objfile* field.
362 * jit.c (jit_objfile_data): Remove.
363 (struct jit_objfile_data): Migrate from here to jit.h.
364 (jit_objfile_data::~jit_objfile_data): New destructor
365 implementation with code moved from free_objfile_data.
366 (free_objfile_data): Delete.
367 (get_jit_objfile_data): Update to use the jit_data field of objfile.
368 (jit_find_objf_with_entry_addr): Ditto.
369 (jit_inferior_exit_hook): Ditto.
370 (_initialize_jit): Remove the call to
371 register_objfile_data_with_cleanup.
372 * objfiles.h (struct objfile) <jit_data>: New field.
373
fe053b9e
TBA
3742020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
375
376 * jit.h: Forward-declare `struct objfile`.
377 (jit_event_handler): Add a second parameter, the JITer objfile.
378 * jit.c (jit_read_descriptor): Change the signature to take the
379 JITer objfile as an argument instead of the jit_program_space_data.
380 (jit_inferior_init): Update the call to jit_read_descriptor.
381 (jit_event_handler): Use the new JITer objfile argument when calling
382 jit_read_descriptor.
383 * breakpoint.c (handle_jit_event): Update the call to
384 jit_event_handler to pass the JITer objfile.
385
4cec0c66
JB
3862020-07-21 John Baldwin <jhb@FreeBSD.org>
387
388 * gdbarch.c: Regenerate.
389 * gdbarch.h: Regenerate.
390 * gdbarch.sh (handle_segmentation_fault): Remove method.
391 * infrun.c (handle_segmentation_fault): Remove.
392 (print_signal_received_reason): Remove call to
393 handle_segmentation_fault.
394
0e42f66a
JB
3952020-07-21 John Baldwin <jhb@FreeBSD.org>
396
397 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
398 Rename to sparc64_linux_report_signal_info and add siggnal
399 argument.
400 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
401 instead of sparc64_linux_handle_segmentation_fault.
402
77bdfeb2
JB
4032020-07-21 John Baldwin <jhb@FreeBSD.org>
404
405 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
406 i386_linux_report_signal_info instead of
407 i386_linux_handle_segmentation_fault.
408 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
409 to i386_linux_report_signal_info and add siggnal argument.
410 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
411 of i386_linux_handle_segmentation_fault.
412 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
413 to i386_linux_report_signal_info and add siggnal argument.
414
ad97bfc5
JB
4152020-07-21 John Baldwin <jhb@FreeBSD.org>
416
417 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
418 hook if present.
419
272bb05c
JB
4202020-07-21 John Baldwin <jhb@FreeBSD.org>
421
422 * gdbarch.c: Regenerate.
423 * gdbarch.h: Regenerate.
424 * gdbarch.sh (report_signal_info): New method.
425 * infrun.c (print_signal_received_reason): Invoke gdbarch
426 report_signal_info hook if present.
427
baf8791e
AB
4282020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * python/py-registers.c : Add 'unordered_map' include.
431 (gdbpy_new_reggroup): Renamed to...
432 (gdbpy_get_reggroup): ...this. Update to only create register
433 group descriptors when needed.
434 (gdbpy_reggroup_iter_next): Update.
435
f7306dac
AB
4362020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
437
438 * python/py-registers.c (gdbpy_register_object_data): New static
439 global.
440 (gdbpy_register_object_data_init): New function.
441 (gdbpy_new_register_descriptor): Renamed to...
442 (gdbpy_get_register_descriptor): ...this, and update to reuse
443 existing register descriptors where possible.
444 (gdbpy_register_descriptor_iter_next): Update.
445 (gdbpy_initialize_registers): Register new gdbarch data.
446
05c309a8
SM
4472020-07-21 Simon Marchi <simon.marchi@efficios.com>
448
449 * linux-nat.c (stopped_pids): Make static.
450
d1fd641e
SM
4512020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
452
453 PR ada/26235
454 * gdbtypes.c (ada_discrete_type_low_bound,
455 ada_discrete_type_high_bound): Handle undefined bounds.
456
1de14d77
KR
4572020-07-21 Kamil Rytarowski <n54@gmx.com>
458
459 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
460 declaration.
461 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
462 function.
463
ed810cc7
JB
4642020-07-20 John Baldwin <jhb@FreeBSD.org>
465
466 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
467 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
468 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
469 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
470 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
471 method.
472
ae5369e7
LC
4732020-07-20 Ludovic Courtès <ludo@gnu.org>
474
475 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
476 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
477 which are deprecated in Guile 3.0.
478 * configure.ac (try_guile_versions): Add "guile-3.0".
479 * configure (try_guile_versions): Regenerate.
480 * NEWS: Update entry.
481
68cf161c
LC
4822020-07-20 Ludovic Courtès <ludo@gnu.org>
483 Doug Evans <dje@google.com>
484
485 PR gdb/21104
486 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
487 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
488 USING_GUILE_BEFORE_2_2.
489 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
490 Change type to 'scm_t_port_type *'.
491 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
492 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
493 parameter and honor it. Update callers.
494 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
495 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
496 functions.
497 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
498 USING_GUILE_BEFORE_2_2.
499 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
500 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
501 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
502 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
503 and 'SCM_PORT_TYPE'.
504 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
505 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
506 (gdbscm_memory_port_read, gdbscm_memory_port_write)
507 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
508 [!USING_GUILE_BEFORE_2_2]: New functions.
509 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
510 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
511 'gdbscm_memory_port_read'.
512 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
513 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
514 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
515 function.
516 (ioscm_init_memory_port): Remove.
517 (ioscm_init_memory_port_stream): New function
518 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
519 function.
520 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
521 Return scm_from_uint (0).
522 (gdbscm_set_memory_port_read_buffer_size_x)
523 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
524 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
525 Return scm_from_uint (0).
526 (gdbscm_set_memory_port_write_buffer_size_x)
527 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
528 * configure.ac (try_guile_versions): Add "guile-2.2".
529 * configure: Regenerate.
530 * NEWS: Add entry.
531
aee91db3
TT
5322020-07-18 Tom Tromey <tom@tromey.com>
533
534 * linux-nat.c (linux_multi_process): Remove.
535 (linux_nat_target::supports_multi_process): Return true.
536
0e267416
AB
5372020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
538
539 * arch/riscv.c (riscv_tdesc_cache): Change map type.
540 (riscv_lookup_target_description): Return pointer out of
541 unique_ptr.
542 * target-descriptions.c (allocate_target_description): Add
543 comment.
544 (target_desc_deleter::operator()): Likewise.
545 * target-descriptions.h (struct target_desc_deleter): Moved to
546 gdbsupport/tdesc.h.
547 (target_desc_up): Likewise.
548
f80c8ec4
TT
5492020-07-17 Tom Tromey <tromey@adacore.com>
550
551 * linux-nat.c (linux_nat_target::supports_non_stop)
552 (linux_nat_target::always_non_stop_p): Use "true".
553 (linux_nat_target::supports_disable_randomization): Use "true" and
554 "false".
555
d0ce17d8
CT
5562020-07-16 Caroline Tice <cmtice@google.com>
557
558 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
559 (RNGLIST_HEADER_SIZE64): New constant definition.
560 (struct dwop_section_names): Add rnglists_dwo.
561 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
562 (struct loclist_header): Rename to 'loclists_rnglists_header'.
563 (struct dwo_sections): Add rnglists field.
564 (read_attribut_reprocess): Add tag parameter.
565 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
566 (cu_debug_rnglists_section): New function (decl & definition).
567 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
568 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
569 die whose range is being checked; get rnglist section from
570 cu_debug_rnglists_section, to get from either objfile or dwo file as
571 appropriate. Add cases for DW_RLE_base_addressx,
572 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
573 the base address to DW_RLE_offset_pairs (not to all ranges), moving
574 test inside if-condition and updating complaint message.
575 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
576 dwarf2_rnglists_process.
577 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
578 dwarf2_ranges_process.
579 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
580 need_ranges_base and update comment appropriately. Also pass die tag
581 to dwarf2_ranges_read.
582 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
583 need_ranges_base and update comment appropriately. Also pass die tag
584 to dwarf2_ranges_process.
585 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
586 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
587 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
588 need_ranges_base and update comment appropriately. Also pass die tag
589 to read_attribute_reprocess and dwarf2_ranges_read.
590 (read_loclist_header): Rename function to read_loclists_rnglists_header,
591 and update function comment appropriately.
592 (read_loclist_index): Call read_loclists_rnglists_header instead of
593 read_loclist_header.
594 (read_rnglist_index): New function.
595 (read_attribute_reprocess): Add tag parameter. Add code for
596 DW_FORM_rnglistx, passing tag to read_rnglist_index.
597 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
598
3dcc261c
AB
5992020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
600
601 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
602 being resolved.
603
ccb9eba6
AB
6042020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * arch-utils.c (show_architecture): Update formatting of messages.
607
cf88be68
SM
6082020-07-12 Simon Marchi <simon.marchi@efficios.com>
609
610 * gdbtypes.h (struct type) <bounds>: Handle array and string
611 types.
612 * ada-lang.c (assign_aggregate): Use type::bounds on
613 array/string type.
614 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
615 * c-varobj.c (c_number_of_children): Likewise.
616 (c_describe_child): Likewise.
617 * eval.c (evaluate_subexp_for_sizeof): Likewise.
618 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
619 (f_type_print_base): Likewise.
620 * f-valprint.c (f77_array_offset_tbl): Likewise.
621 (f77_get_upperbound): Likewise.
622 (f77_print_array_1): Likewise.
623 * guile/scm-type.c (gdbscm_type_range): Likewise.
624 * m2-typeprint.c (m2_array): Likewise.
625 (m2_is_long_set_of_type): Likewise.
626 * m2-valprint.c (get_long_set_bounds): Likewise.
627 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
628 * python/py-type.c (typy_range): Likewise.
629 * rust-lang.c (rust_internal_print_type): Likewise.
630 * type-stack.c (type_stack::follow_types): Likewise.
631 * valarith.c (value_subscripted_rvalue): Likewise.
632 * valops.c (value_cast): Likewise.
633
509971ae
SM
6342020-07-12 Simon Marchi <simon.marchi@efficios.com>
635
636 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
637 callers to use the equivalent accessor methods.
638
107406b7
SM
6392020-07-12 Simon Marchi <simon.marchi@efficios.com>
640
641 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
642 (struct type) <bit_stride>: New method.
643 (TYPE_BIT_STRIDE): Remove.
644 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
645
bb789949
SM
6462020-07-12 Simon Marchi <simon.marchi@efficios.com>
647
648 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
649 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
650 callers to use the equivalent accessor methods instead.
651
39498edb
SM
6522020-07-12 Simon Marchi <simon.marchi@efficios.com>
653
654 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
655 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
656 callers to use the equivalent accessor methods instead.
657
3b606f38
SM
6582020-07-12 Simon Marchi <simon.marchi@efficios.com>
659
660 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
661 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
662 to use dynamic_prop::kind.
663
064d9cb9
SM
6642020-07-12 Simon Marchi <simon.marchi@efficios.com>
665
666 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
667 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
668 to get the bound property's kind and check against
669 PROP_UNDEFINED.
670
5537ddd0
SM
6712020-07-12 Simon Marchi <simon.marchi@efficios.com>
672
673 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
674 all callers to use type::range_bounds followed by
675 dynamic_prop::{low,high}.
676
8c2e4e06
SM
6772020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
680 const_val, set_const_val, baton, set_locexpr, set_loclist,
681 set_addr_offset, variant_parts, set_variant_parts,
682 original_type, set_original_type>: New methods.
683 <kind>: Rename to...
684 <m_kind>: ... this. Update all users to use the new methods
685 instead.
686 <data>: Rename to...
687 <m_data>: ... this. Update all users to use the new methods
688 instead.
689
7c6f2712
SM
6902020-07-12 Simon Marchi <simon.marchi@efficios.com>
691
692 * gdbtypes.c (get_discrete_bounds): Return failure if
693 the range type's bounds are not both defined and constant
694 values.
695 (get_array_bounds): Update comment. Remove undefined bound check.
696
599088e3
SM
6972020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
698
699 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
700 the type::bounds method directly.
701
c4dfcb36
SM
7022020-07-12 Simon Marchi <simon.marchi@efficios.com>
703
704 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
705 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
706 are used to set the range type's bounds to use set_bounds.
707
0a278aa7
PW
7082020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
709
710 * exec.c (_initialize_exec): Update exec-file-mismatch help.
711
cce20f10
PA
7122020-07-10 Pedro Alves <pedro@palves.net>
713
714 * gdbthread.h (inferior_ref): Define.
715 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
716 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
717 * thread.c
718 (scoped_restore_current_thread::restore):
719 Adjust to gdb::ref_ptr.
720 (scoped_restore_current_thread::~scoped_restore_current_thread):
721 Remove manual decref handling.
722 (scoped_restore_current_thread::scoped_restore_current_thread):
723 Adjust to use
724 inferior_ref::new_reference/thread_info_ref::new_reference.
725 Incref the thread before calling get_frame_id instead of after.
726 Let TARGET_CLOSE_ERROR propagate.
727
6d7aa592
PA
7282020-07-10 Pedro Alves <pedro@palves.net>
729
730 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
731 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
732 NOT_AVAILABLE_ERROR.
733 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
734 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
735
b3e3a4c1
SM
7362020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
737 Pedro Alves <pedro@palves.net>
738
739 PR gdb/26199
740 * infrun.c (threads_are_resumed_pending_p): Delete.
741 (do_target_wait): Remove threads_are_executing and
742 threads_are_resumed_pending_p checks from the inferior_matches
743 lambda. Update comments.
744
d6cc5d98
PA
7452020-07-10 Pedro Alves <pedro@palves.net>
746
747 PR gdb/26199
748 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
749 executing threads.
750
7d3badc6
PA
7512020-07-10 Pedro Alves <pedro@palves.net>
752
753 PR gdb/26199
754 * infrun.c (handle_no_resumed): Handle multiple targets.
755
42bd97a6
PA
7562020-07-10 Pedro Alves <pedro@palves.net>
757
758 PR gdb/26199
759 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
760 target_is_async_p.
761
43667cc6
PA
7622020-07-10 Pedro Alves <pedro@palves.net>
763
764 PR gdb/26199
765 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
766 threads, not all threads.
767
96118d11
PA
7682020-07-10 Pedro Alves <pedro@palves.net>
769
770 PR gdb/26199
771 * remote.c (remote_target::open_1): Pass remote target pointer as
772 data to create_async_event_handler.
773 (remote_async_inferior_event_handler): Mark async event handler
774 before returning if the remote target still has either pending
775 events or unacknowledged notifications.
776
54904d81
JB
7772020-07-10 John Baldwin <jhb@FreeBSD.org>
778
779 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
780 declaration.
781 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
782 function.
783
f37e5866
JB
7842020-07-09 John Baldwin <jhb@FreeBSD.org>
785
786 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
787 inferior_ptid.
788
fc238d4a
JB
7892020-07-09 John Baldwin <jhb@FreeBSD.org>
790
791 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
792 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
793 AT_FREEBSD_PS_STRINGS.
794
6e2469ff
HD
7952020-07-08 Hannes Domani <ssbssa@yahoo.de>
796
797 * auto-load.c (auto_load_objfile_script_1): Convert drive part
798 of debugfile path on Windows.
799
d1076c41
JB
8002020-07-08 John Baldwin <jhb@FreeBSD.org>
801
802 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
803 argument to 'data'.
804
15f3b077
TT
8052020-07-08 Tom Tromey <tromey@adacore.com>
806
807 * ada-lang.c (ada_exception_message_1): Use read_memory.
808
9fc501fd
AB
8092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
810
811 PR python/22748
812 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
813 special handling for inline frames.
814 * findvar.c (value_of_register_lazy): Skip inline frames when
815 creating lazy register values.
816 * frame.c (frame_id_computed_p): Delete definition.
817 * frame.h (frame_id_computed_p): Delete declaration.
818
64cb3757
AB
8192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
820
821 * NEWS: Mention additions to Python API.
822 * python/py-arch.c (archpy_register_groups): New function.
823 (arch_object_methods): Add 'register_groups' method.
824 * python/py-registers.c (reggroup_iterator_object): New struct.
825 (reggroup_object): New struct.
826 (gdbpy_new_reggroup): New function.
827 (gdbpy_reggroup_to_string): New function.
828 (gdbpy_reggroup_name): New function.
829 (gdbpy_reggroup_iter): New function.
830 (gdbpy_reggroup_iter_next): New function.
831 (gdbpy_new_reggroup_iterator): New function
832 (gdbpy_initialize_registers): Register new types.
833 (reggroup_iterator_object_type): Define new Python type.
834 (gdbpy_reggroup_getset): New static global.
835 (reggroup_object_type): Define new Python type.
836 * python/python-internal.h
837
0f767f94
AB
8382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
839
840 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
841 * python/py-arch.c (archpy_registers): New function.
842 (arch_object_methods): Add 'registers' method.
843 * python/py-registers.c: New file.
844 * python/python-internal.h
845 (gdbpy_new_register_descriptor_iterator): Declare.
846 (gdbpy_initialize_registers): Declare.
847 * python/python.c (do_start_initialization): Call
848 gdbpy_initialize_registers.
849 * NEWS: Mention additions to the Python API.
850
87dbc774
AB
8512020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
852
853 * NEWS: Mention new Python API method.
854 * python/py-unwind.c (pending_framepy_architecture): New function.
855 (pending_frame_object_methods): Add architecture method.
856
3bc98c0c
AB
8572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * gdbarch.c: Regenerate.
860 * gdbarch.h: Regenerate.
861 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
862 (gdbarch_data): Use internal_error for the case where
863 deprecated_set_gdbarch_data was originally needed.
864 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
865 and use passed in obstack.
866 (libunwind_frame_set_descr): Should no longer get back NULL from
867 gdbarch_data.
868 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
869 type.
870 * user-regs.c (user_regs_init): Update parameters, and use passed
871 in obstack.
872 (user_reg_add): Should no longer get back NULL from gdbarch_data.
873 (_initialize_user_regs): Register as a pre-init gdbarch data type.
874
d8cc8af6
TV
8752020-07-06 Tom de Vries <tdevries@suse.de>
876
877 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
878 End-Of-Sequence in lte_is_less_than.
879 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
880 "gdb: Don't reorder line table entries too much when sorting".
881
947f7597
TV
8822020-07-06 Tom de Vries <tdevries@suse.de>
883
884 PR tui/26205
885 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
886
1e7c1b22
TV
8872020-07-05 Tom de Vries <tdevries@suse.de>
888
889 PR build/26187
890 * inferior.h (struct infcall_suspend_state_deleter): If available, use
891 std::uncaught_exceptions instead of deprecated
892 std::uncaught_exception.
893
a36158ec
SM
8942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * macroexp.h (macro_stringify): Return
897 gdb::unique_xmalloc_ptr<char>.
898 * macroexp.c (macro_stringify): Likewise.
899 * macrotab.c (fixup_definition): Update.
900
14d960c8
SM
9012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
902
903 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
904 (lex_one_token): Update.
905 * macroexp.c (struct macro_buffer) <release>: Return
906 gdb::unique_xmalloc_ptr<char>.
907 (macro_stringify): Update.
908 (macro_expand): Update.
909 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
910 * macroexp.h (macro_expand_next): Likewise.
911
211d5b1c
SM
9122020-07-02 Simon Marchi <simon.marchi@efficios.com>
913
914 * macroexp.h (macro_lookup_ftype): Remove.
915 (macro_expand, macro_expand_once, macro_expand_next): Remove
916 lookup function parameters, add scope parameter.
917 * macroexp.c (scan, substitute_args, expand, maybe_expand,
918 macro_expand, macro_expand_once, macro_expand_next): Likewise.
919 * macroscope.h (standard_macro_lookup): Change parameter type
920 to macro_scope.
921 * macroscope.c (standard_macro_lookup): Likewise.
922 * c-exp.y (lex_one_token): Update.
923 * macrocmd.c (macro_expand_command): Likewise.
924 (macro_expand_once_command): Likewise.
925
b1a35af2
SM
9262020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
927
928 * inf-loop.c (inferior_event_handler): Remove client_data param.
929 * inf-loop.h (inferior_event_handler): Likewise.
930 * infcmd.c (step_1): Adjust.
931 * infrun.c (proceed): Adjust.
932 (fetch_inferior_event): Remove client_data param.
933 (infrun_async_inferior_event_handler): Adjust.
934 * infrun.h (fetch_inferior_event): Remove `void *` param.
935 * linux-nat.c (handle_target_event): Adjust.
936 * record-btrace.c (record_btrace_handle_async_inferior_event):
937 Adjust.
938 * record-full.c (record_full_async_inferior_event_handler):
939 Adjust.
940 * remote.c (remote_async_inferior_event_handler): Adjust.
941
1cdf9e33
TT
9422020-07-01 Tom Tromey <tom@tromey.com>
943
944 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
945 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
946
32c1e210
TT
9472020-07-01 Tom Tromey <tom@tromey.com>
948
949 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
950 tui_gen_win_info.
951 (tui_win_info::make_window): Merge with
952 tui_gen_win_info::make_window.
953 (tui_win_info::make_visible): Move from tui_gen_win_info.
954 * tui/tui-win.c (tui_win_info::max_width): Move from
955 tui_gen_win_info.
956 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
957 type.
958 <window_factory>: Likewise.
959 * tui/tui-layout.c (tui_win_info::resize): Move from
960 tui_gen_win_info.
961 (make_standard_window): Change return type.
962 (get_locator_window, tui_get_window_by_name): Likewise.
963 (tui_layout_window::apply): Remove a cast.
964 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
965 (struct tui_win_info): Merge with tui_gen_win_info.
966 (struct tui_gen_win_info): Remove.
967
a30cb6da
TT
9682020-07-01 Tom Tromey <tom@tromey.com>
969
970 * tui/tui-stack.h (struct tui_locator_window): Derive from
971 tui_win_info.
972 <do_scroll_horizontal, do_scroll_vertical>: New methods.
973 <can_box>: New method.
974
1eb2161f
TT
9752020-07-01 Tom Tromey <tom@tromey.com>
976
977 * tui/tui-stack.h (struct tui_locator_window): Remove body.
978
7134f2eb
TT
9792020-07-01 Tom Tromey <tom@tromey.com>
980
981 * tui/tui-regs.c (tui_data_window::display_registers_from)
982 (tui_data_window::display_registers_from)
983 (tui_data_window::first_data_item_displayed)
984 (tui_data_window::delete_data_content_windows): Update.
985 (tui_data_window::refresh_window, tui_data_window::no_refresh):
986 Remove.
987 (tui_data_window::check_register_values): Update.
988 (tui_data_item_window::rerender): Add parameters. Update.
989 (tui_data_item_window::refresh_window): Remove.
990 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
991 virtual.
992 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
993 tui_gen_win_info.
994 <refresh_window, max_height, min_height>: Remove.
995 <rerender>: Add parameters.
996 <x, y, visible>: New members.
997 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
998 <m_item_width>: New member.
999
22b7b041
TT
10002020-07-01 Tom Tromey <tom@tromey.com>
1001
1002 * tui/tui-regs.c (tui_data_window::show_register_group)
1003 (tui_data_window::check_register_values): Update.
1004 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1005 from item_no.
1006
c9753adb
TT
10072020-07-01 Tom Tromey <tom@tromey.com>
1008
1009 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1010 useless "if".
1011
9ab26b4a
TT
10122020-07-01 Tom Tromey <tom@tromey.com>
1013
1014 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1015 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1016
e555083f
TT
10172020-07-01 Tom Tromey <tom@tromey.com>
1018
1019 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1020 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1021 (struct tui_line_or_address): Move from tui-data.h.
1022 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1023 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1024 (tui_cmd_window, tui_source_window_base, tui_source_window)
1025 (tui_disasm_window): Don't declare.
1026 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1027 to tui-winsource.h.
1028 (SINGLE_KEY): Move to tui-stack.c.
1029
7a02bab7
TT
10302020-07-01 Tom Tromey <tom@tromey.com>
1031
1032 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1033 std::string.
1034 * tui/tui-regs.c (class tab_expansion_file): New.
1035 (tab_expansion_file::write): New method.
1036 (tui_register_format): Change return type. Use
1037 tab_expansion_file.
1038 (tui_get_register, tui_data_window::display_registers_from)
1039 (tui_data_item_window::rerender): Update.
1040 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1041 * tui/tui-io.c (tui_expand_tabs): Remove.
1042
ea68593b
TT
10432020-07-01 Tom Tromey <tom@tromey.com>
1044
1045 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1046
a8caed5d
FS
10472020-07-01 Fangrui Song <maskray@google.com>
1048
1049 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1050
9cdf9820
AKS
10512020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1052
1053 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1054 forms for DW_AT_associated and DW_AT_allocated attributes,
1055 which is already checked in function attr_to_dynamic_prop.
1056
a1520ad8
TT
10572020-06-30 Tom Tromey <tromey@adacore.com>
1058
1059 * dwarf2/read.c (quirk_rust_enum): Correctly call
1060 alloc_rust_variant for default-less enum.
1061
5ac58899
TT
10622020-06-30 Tom Tromey <tromey@adacore.com>
1063
1064 PR build/26183:
1065 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1066 gdb::to_string.
1067
19b187a9
SM
10682020-06-29 Simon Marchi <simon.marchi@efficios.com>
1069
1070 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1071 * gdbarch.h: Re-generate.
1072
cd4c4c07
TT
10732020-06-28 Tom Tromey <tom@tromey.com>
1074
1075 * command.h (cmd_types): Remove.
1076 (cmd_type): Don't declare.
1077 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1078 typedef.
1079 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1080 * cli/cli-decode.c (cmd_type): Remove.
1081
05779d57
PA
10822020-06-27 Pedro Alves <palves@redhat.com>
1083
1084 * fork-child.c (prefork_hook): Adjust.
1085 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1086 Delete.
1087 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1088 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1089 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1090 Remove declarations.
1091 (struct inferior) <set_tty, tty>: New methods.
1092 (struct inferior) <terminal>: Rename to ...
1093 (struct inferior) <m_terminal>: ... this and make private.
1094 * main.c (captured_main_1): Adjust.
1095 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1096 (mi_cmd_inferior_tty_show): Adjust.
1097 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1098 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1099
1776e3e5
NA
11002020-06-26 Nick Alcock <nick.alcock@oracle.com>
1101
1102 * configure.ac: Add --enable-libctf: handle --disable-static
1103 properly.
1104 * acinclude.m4: sinclude ../config/enable.m4.
1105 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1106 (LIBCTF): Substitute in.
1107 (CTF_DEPS): New, likewise.
1108 (CLIBS): libctf needs symbols from libbfd: move earlier.
1109 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1110 flags.
1111 * ctfread.c: Surround in ENABLE_LIBCTF.
1112 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1113 * configure: Regenerate.
1114 * config.in: Likewise.
1115
58373b80
SM
11162020-06-25 Simon Marchi <simon.marchi@efficios.com>
1117
1118 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1119
277474ee
SM
11202020-06-25 Simon Marchi <simon.marchi@efficios.com>
1121
1122 * inferior.h (struct inferior) <terminal>: Change type to
1123 gdb::unique_xmalloc_ptr<char>.
1124 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1125 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1126 field, adjust to unique pointer.
1127 (get_inferior_io_terminal): Adjust to unique pointer.
1128
6d74da72
AB
11292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1132 registers, not just the known core set of registers.
1133
2e52d038
AB
11342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1137 fflags, frm, and fcsr registers.
1138 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1139 restore groups.
1140 (riscv_tdesc_unknown_reg): New function.
1141 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1142 tdesc_use_registers.
1143 * riscv-tdep.h (struct gdbarch_tdep): Add
1144 unknown_csrs_first_regnum, unknown_csrs_count,
1145 duplicate_fflags_regnum, duplicate_frm_regnum, and
1146 duplicate_fcsr_regnum fields.
1147
be64fd07
AB
11482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1151 callback, use the callback (when not null) to help number unknown
1152 registers.
1153 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1154 (tdesc_use_registers): Add extra parameter to declaration.
1155
3b9fce96
AB
11562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1157
1158 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1159 in the file.
1160 (class riscv_pending_register_alias): Likewise.
1161 (riscv_register_feature::register_info): Change 'required_p' field
1162 to 'required', and change its type. Add 'check' member function.
1163 (riscv_register_feature::register_info::check): Define new member
1164 function.
1165 (riscv_xreg_feature): Change initialisation of 'required' field.
1166 (riscv_freg_feature): Likewise.
1167 (riscv_virtual_feature): Likewise.
1168 (riscv_csr_feature): Likewise.
1169 (riscv_check_tdesc_feature): Take extra parameter, the csr
1170 tdesc_feature, rewrite the function to use the new
1171 riscv_register_feature::register_info::check function.
1172 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1173
865bad26
AB
11742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1175
1176 * features/Makefile: Remove all references to the deleted files
1177 below.
1178 * features/riscv/32bit-csr.c: Deleted.
1179 * features/riscv/32bit-csr.xml: Deleted.
1180 * features/riscv/64bit-csr.c: Deleted.
1181 * features/riscv/64bit-csr.xml: Deleted.
1182 * features/riscv/rebuild-csr-xml.sh: Deleted.
1183
ed69cbc8
AB
11842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1187 whitespace error for declaration of names member variable.
1188 (struct riscv_register_feature): Add new prefer_first_name member
1189 variable, and fix whitespace error in declaration of registers.
1190 (riscv_xreg_feature): Initialize prefer_first_name field.
1191 (riscv_freg_feature): Likewise.
1192 (riscv_virtual_feature): Likewise.
1193 (riscv_csr_feature): Likewise.
1194 (riscv_register_name): Expand on comments. Remove register name
1195 modifications for CSR and virtual registers.
1196
4445e8f5
AB
11972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1200 errors.
1201
767a879e
AB
12022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1205 riscv-opc.h.
1206 (class riscv_pending_register_alias): New class.
1207 (riscv_check_tdesc_feature): Take vector of pending aliases and
1208 populate it as appropriate.
1209 (riscv_setup_register_aliases): Delete.
1210 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1211 to riscv_check_tdesc_feature in all cases. Use the vector to
1212 create the register aliases.
1213
bb6e55f3
RO
12142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1215
1216 * sol2-tdep.c (sol2_static_transform_name): Remove.
1217 (sol2_init_abi): Don't register it.
1218 * gdbarch.sh (static_transform_name): Remove.
1219 * gdbarch.c, gdbarch.h: Regenerate.
1220
1221 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1222 gdbarch_static_transform_name.
1223 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1224 * stabsread.c (define_symbol) <'X'>: Remove.
1225 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1226 handling.
1227 <'V'>: Likewise.
1228 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1229 <'S'>: Remove call to gdbarch_static_transform_name.
1230
c6d36836
RO
12312020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1232
1233 * procfs.c (procfs_pre_trace): New function.
1234 (procfs_target::create_inferior): Pass it to fork_inferior.
1235
a7e6196b
RO
12362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1237
1238 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1239 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1240 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1241 sol2-tdep.o, sparc-sol2-tdep.o.
1242 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1243 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1244 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1245 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1246
d412e696
RO
12472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1248
1249 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1250 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1251 Call sol2_init_abi.
1252 Remove calls to set_gdbarch_skip_solib_resolver,
1253 set_gdbarch_core_pid_to_str.
1254 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1255 (i386_sol2_static_transform_name): Remove.
1256 (i386_sol2_init_abi): Call sol2_init_abi.
1257 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1258 set_gdbarch_static_transform_name,
1259 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1260 Use sol2_sigtramp_p.
1261 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1262 (sol2_sigtramp_p): New function.
1263 (sol2_static_transform_name): New function.
1264 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1265 (sol2_init_abi): New function.
1266 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1267 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1268 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1269 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1270 (sparc_sol2_static_transform_name): Remove.
1271 (sparc32_sol2_init_abi): Call sol2_init_abi.
1272 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1273 set_gdbarch_static_transform_name,
1274 set_gdbarch_skip_solib_resolver,
1275 set_gdbarch_core_pid_to_str.
1276 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1277 (sparc_sol2_static_transform_name): Remove
1278 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1279 call sol2_sigtramp_p.
1280 (sparc64_sol2_init_abi): Call sol2_init_abi.
1281 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1282 set_gdbarch_static_transform_name,
1283 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1284
a8654e7d
PW
12852020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1286
1287 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1288 * exec.c (validate_exec_file): If from_tty, set both
1289 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1290 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1291 and from_tty, unconditionally ask a confirmation.
1292
caa7fd04
AB
12932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1294
1295 * target-descriptions.c (tdesc_architecture_name): Protect against
1296 NULL pointer dereference.
1297 (maint_print_xml_tdesc_cmd): New function.
1298 (_initialize_target_descriptions): Register new 'maint print
1299 xml-tdesc' command and give it the filename completer.
1300 * NEWS: Mention new 'maint print xml-tdesc' command.
1301
fbf42f4e
AB
13022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1303
1304 * target-descriptions.c (class tdesc_compatible_info): New class.
1305 (struct target_desc): Change type of compatible vector.
1306 (tdesc_compatible_p): Update for change in type of
1307 target_desc::compatible.
1308 (tdesc_compatible_info_list): New function.
1309 (tdesc_compatible_info_arch_name): New function.
1310 (tdesc_add_compatible): Update for change in type of
1311 target_desc::compatible.
1312 (print_c_tdesc::visit_pre): Likewise.
1313
20821f4e
AB
13142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1317 whitespace to underscore.
1318 (maint_print_c_tdesc_cmd): Use fake filename for target
1319 descriptions that came from the target.
1320 (_initialize_target_descriptions): Add filename command completion
1321 for 'maint print c-tdesc'.
1322
1fb5ee62
SM
13232020-06-23 Simon Marchi <simon.marchi@efficios.com>
1324
1325 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1326 lines.
1327
fc3ecb3e
SM
13282020-06-23 Simon Marchi <simon.marchi@efficios.com>
1329
1330 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1331 lines.
1332 (dwarf2_find_location_expression): Likewise.
1333 (call_site_parameter_matches): Likewise.
1334 (dwarf2_compile_expr_to_ax): Likewise.
1335 (disassemble_dwarf_expression): Likewise.
1336 (loclist_describe_location): Likewise.
1337
236ef034
PA
13382020-06-23 Pedro Alves <palves@redhat.com>
1339
1340 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1341 progspace-and-thread.h. Include scoped-mock-context.h instead.
1342 (register_to_value_test): Use scoped_mock_context.
1343 * regcache.c: Include "scoped-mock-context.h".
1344 (cooked_read_test): Don't error out if a target is already pushed.
1345 Use scoped_mock_context. Adjust.
1346 * scoped-mock-context.h: New file.
1347
39e7ecca
AB
13482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1349
1350 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1351 initializer.
1352 (ada_language::is_string_type_p): New member function.
1353 * c-lang.c (c_language_data): Delete la_is_string_type_p
1354 initializer.
1355 (cplus_language_data): Likewise.
1356 (asm_language_data): Likewise.
1357 (minimal_language_data): Likewise.
1358 * d-lang.c (d_language_data): Likewise.
1359 * f-lang.c (f_is_string_type_p): Delete function, implementation
1360 moved to f_language::is_string_type_p.
1361 (f_language_data): Delete la_is_string_type_p initializer.
1362 (f_language::is_string_type_p): New member function,
1363 implementation from f_is_string_type_p.
1364 * go-lang.c (go_is_string_type_p): Delete function, implementation
1365 moved to go_language::is_string_type_p.
1366 (go_language_data): Delete la_is_string_type_p initializer.
1367 (go_language::is_string_type_p): New member function,
1368 implementation from go_is_string_type_p.
1369 * language.c (language_defn::is_string_type_p): Define new member
1370 function.
1371 (default_is_string_type_p): Make static, add comment copied from
1372 header file.
1373 (unknown_language_data): Delete la_is_string_type_p initializer.
1374 (unknown_language::is_string_type_p): New member function.
1375 (auto_language_data): Delete la_is_string_type_p initializer.
1376 (auto_language::is_string_type_p): New member function.
1377 * language.h (language_data): Delete la_is_string_type_p field.
1378 (language_defn::is_string_type_p): Declare new function.
1379 (default_is_string_type_p): Delete desclaration, move comment to
1380 definition.
1381 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1382 moved to m2_language::is_string_type_p.
1383 (m2_language_data): Delete la_is_string_type_p initializer.
1384 (m2_language::is_string_type_p): New member function,
1385 implementation from m2_is_string_type_p.
1386 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1387 initializer.
1388 * opencl-lang.c (opencl_language_data): Likewise.
1389 * p-lang.c (pascal_is_string_type_p): Delete function,
1390 implementation moved to pascal_language::is_string_type_p.
1391 (pascal_language_data): Delete la_is_string_type_p initializer.
1392 (pascal_language::is_string_type_p): New member function,
1393 implementation from pascal_is_string_type_p.
1394 * rust-lang.c (rust_is_string_type_p): Delete function,
1395 implementation moved to rust_language::is_string_type_p.
1396 (rust_language_data): Delete la_is_string_type_p initializer.
1397 (rust_language::is_string_type_p): New member function,
1398 implementation from rust_is_string_type_p.
1399 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1400 is_string_type_p.
1401
4ffc13fb
AB
14022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * ada-lang.c (ada_language_data): Delete la_print_typedef
1405 initializer.
1406 (ada_language::print_typedef): New member function.
1407 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1408 (cplus_language_data): Likewise.
1409 (asm_language_data): Likewise.
1410 (minimal_language_data): Likewise.
1411 * d-lang.c (d_language_data): Likewise.
1412 * f-lang.c (f_language_data): Likewise.
1413 (f_language::print_typedef): New member function.
1414 * go-lang.c (go_language_data): Delete la_print_typedef
1415 initializer.
1416 * language.c (language_defn::print_typedef): Define member
1417 function.
1418 (unknown_language_data): Delete la_print_typedef initializer.
1419 (unknown_language::print_typedef): New member function.
1420 (auto_language_data): Delete la_print_typedef initializer.
1421 (auto_language::print_typedef): New member function.
1422 * language.h (language_data): Delete la_print_typedef field.
1423 (language_defn::print_typedef): Declare new member function.
1424 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1425 (default_print_typedef): Delete declaration.
1426 * m2-lang.c (m2_language_data): Delete la_print_typedef
1427 initializer.
1428 (m2_language::print_typedef): New member function.
1429 * objc-lang.c (objc_language_data): Delete la_print_typedef
1430 initializer.
1431 * opencl-lang.c (opencl_language_data): Likewise.
1432 * p-lang.c (pascal_language_data): Likewise.
1433 (pascal_language::print_typedef): New member function.
1434 * rust-lang.c (rust_print_typedef): Delete function,
1435 implementation moved to rust_language::print_typedef.
1436 (rust_language): Delete la_print_typedef initializer.
1437 (rust_language::print_typedef): New member function,
1438 implementation from rust_print_typedef.
1439 * typeprint.c (default_print_typedef): Delete.
1440
d711ee67
AB
14412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1442
1443 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1444 (ada_language::printstr): New member function.
1445 * c-lang.c (c_language_data): Delete la_printstr initializer.
1446 (cplus_language_data): Likewise.
1447 (asm_language_data): Likewise.
1448 (minimal_language_data): Likewise.
1449 * d-lang.c (d_language_data): Likewise.
1450 * f-lang.c (f_printstr): Rename to f_language::printstr.
1451 (f_language_data): Delete la_printstr initializer.
1452 (f_language::printstr): New member function, implementation from
1453 f_printstr.
1454 * go-lang.c (go_language_data): Delete la_printstr initializer.
1455 * language.c (language_defn::printstr): Define new member
1456 function.
1457 (unk_lang_printstr): Delete.
1458 (unknown_language_data): Delete la_printstr initializer.
1459 (unknown_language::printstr): New member function.
1460 (auto_language_data): Delete la_printstr initializer.
1461 (auto_language::printstr): New member function.
1462 * language.h (language_data): Delete la_printstr field.
1463 (language_defn::printstr): Declare new member function.
1464 (LA_PRINT_STRING): Update call to printstr.
1465 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1466 (m2_language_data): Delete la_printstr initializer.
1467 (m2_language::printstr): New member function, implementation from
1468 m2_printstr.
1469 * objc-lang.c (objc_language_data): Delete la_printstr
1470 initializer.
1471 * opencl-lang.c (opencl_language_data): Likewise.
1472 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1473 (pascal_language_data): Delete la_printstr initializer.
1474 (pascal_language::printstr): New member function, implementation
1475 from pascal_printstr.
1476 * p-lang.h (pascal_printstr): Delete declaration.
1477 * rust-lang.c (rust_printstr): Update header comment.
1478 (rust_language_data): Delete la_printstr initializer.
1479 (rust_language::printstr): New member function.
1480
52b50f2c
AB
14812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1484 (ada_language::printchar): New member function.
1485 * c-lang.c (c_language_data): Delete la_printchar initializer.
1486 (cplus_language_data): Likewise.
1487 (asm_language_data): Likewise.
1488 (minimal_language_data): Likewise.
1489 * d-lang.c (d_language_data): Likewise.
1490 * f-lang.c (f_printchar): Rename to f_language::printchar.
1491 (f_language_data): Delete la_printchar initializer.
1492 (f_language::printchar): New member function, implementation from
1493 f_printchar.
1494 * go-lang.c (go_language_data): Delete la_printchar initializer.
1495 * language.c (unk_lang_printchar): Delete.
1496 (language_defn::printchar): Define new member function.
1497 (unknown_language_data): Delete la_printchar initializer.
1498 (unknown_language::printchar): New member function.
1499 (auto_language_data): Delete la_printchar initializer.
1500 (auto_language::printchar): New member function.
1501 * language.h (language_data): Delete la_printchar field.
1502 (language_defn::printchar): Declare new member function.
1503 (LA_PRINT_CHAR): Update call to printchar.
1504 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1505 (m2_language::printchar): New member function.
1506 * objc-lang.c (objc_language_data): Delete la_printchar
1507 initializer.
1508 * opencl-lang.c (opencl_language_data): Likewise.
1509 * p-lang.c (pascal_language_data): Delete la_printchar
1510 initializer.
1511 (pascal_language::printchar): New member function.
1512 * rust-lang.c (rust_printchar): Rename to
1513 rust_language::printchar.
1514 (rust_language_data): Delete la_printchar initializer.
1515 (rust_language::printchar): New member function, implementation
1516 from rust_printchar.
1517
ec8cec5b
AB
15182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1519
1520 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1521 (ada_language_data): Delete la_emitchar initializer.
1522 (ada_language::emitchar): New member function, implementation from
1523 emit_char.
1524 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1525 (cplus_language_data): Likewise.
1526 (asm_language_data): Likewise.
1527 (minimal_language_data): Likewise.
1528 * d-lang.c (d_language_data): Likewise.
1529 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1530 (f_language_data): Delete la_emitchar initializer.
1531 (f_language::emitchar): New member function, implementation from
1532 f_emit_char.
1533 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1534 * language.c (unk_lang_emit_char): Delete.
1535 (language_defn::emitchar): New member function definition.
1536 (unknown_language_data): Delete la_emitchar initializer.
1537 (unknown_language::emitchar): New member function.
1538 (auto_language_data): Delete la_emitchar initializer.
1539 (auto_language::emitchar): New member function.
1540 * language.h (language_data): Delete la_emitchar field.
1541 (language_defn::emitchar): New member field declaration.
1542 (LA_EMIT_CHAR): Update call to emitchar.
1543 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1544 (m2_language_data): Delete la_emitchar initializer.
1545 (m2_language::emitchar): New member function, implementation from
1546 m2_emit_char.
1547 * objc-lang.c (objc_language_data): Delete la_emitchar
1548 initializer.
1549 * opencl-lang.c (opencl_language_data): Likewise.
1550 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1551 (pascal_language_data): Delete la_emitchar initializer.
1552 (pascal_language::emitchar): New member function, implementation
1553 from pascal_emit_char.
1554 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1555 (rust_language_data): Delete la_emitchar initializer.
1556 (rust_language::emitchar): New member function, implementation
1557 from rust_emitchar.
1558
1bf9c363
AB
15592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1560
1561 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1562 (ada_language_data): Delete la_post_parser initializer.
1563 (ada_language::post_parser): New member function.
1564 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1565 (cplus_language_data): Likewise.
1566 (asm_language_data): Likewise.
1567 (minimal_language_data): Likewise.
1568 * d-lang.c (d_language_data): Likewise.
1569 * f-lang.c (f_language_data): Likewise.
1570 * go-lang.c (go_language_data): Likewise.
1571 * language.c (unknown_language_data): Likewise.
1572 (auto_language_data): Likewise.
1573 * language.h (language_data): Delete la_post_parser field.
1574 (language_defn::post_parser): New member function.
1575 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1576 * objc-lang.c (objc_language_data): Likewise.
1577 * opencl-lang.c (opencl_language_data): Likewise.
1578 * p-lang.c (pascal_language_data): Likewise.
1579 * parse.c (parse_exp_in_context): Update call to post_parser.
1580 (null_post_parser): Delete definition.
1581 * parser-defs.h (null_post_parser): Delete declaration.
1582 * rust-lang.c (rust_language_data): Delete la_post_parser
1583 initializer.
1584
87afa652
AB
15852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * ada-lang.c (parse): Rename to ada_language::parser.
1588 (ada_language_data): Delete la_parser initializer.
1589 (ada_language::parser): New member function, implementation from
1590 parse.
1591 * c-lang.c (c_language_data): Delete la_parser initializer.
1592 (cplus_language_data): Likewise.
1593 (asm_language_data): Likewise.
1594 (minimal_language_data): Likewise.
1595 * d-lang.c (d_language_data): Likewise.
1596 (d_language::parser): New member function.
1597 * f-lang.c (f_language_data): Delete la_parser initializer.
1598 (f_language::parser): New member function.
1599 * go-lang.c (go_language_data): Delete la_parser initializer.
1600 (go_language::parser): New member function.
1601 * language.c (unk_lang_parser): Delete.
1602 (language_defn::parser): Define new member function.
1603 (unknown_language_data): Delete la_parser initializer.
1604 (unknown_language::parser): New member function.
1605 (auto_language_data): Delete la_parser initializer.
1606 (auto_language::parser): New member function.
1607 * language.h (language_data): Delete la_parser field.
1608 (language_defn::parser): Declare new member function.
1609 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1610 (m2_language::parser): New member function.
1611 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1612 * opencl-lang.c (opencl_language_data): Likewise.
1613 * p-lang.c (pascal_language_data): Likewise.
1614 (pascal_language::parser): New member function.
1615 * parse.c (parse_exp_in_context): Update call to parser.
1616 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1617 (rust_language::parser): New member function.
1618
37825800
AB
16192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * top.c (print_gdb_configuration): Print --with-python-libdir
1622 configuration value.
1623
5b860c93
PW
16242020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1625
1626 * NEWS: Mention change to the alias command.
1627
cf00cd6f
PW
16282020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1629
1630 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1631 (alias_command_completer)
1632 (make_alias_options_def_group): New functions.
1633 (alias_opts, alias_option_defs): New struct and array.
1634 (alias_usage_error): Update usage.
1635 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1636 Use option framework.
1637 (_initialize_cli_cmds): Update alias command help.
1638 Update aliases command help.
1639 (show_user):
1640 Add NULL for new default_args lookup_cmd argument.
1641 (valid_command_p): Rename to validate_aliased_command.
1642 Add NULL for new default_args lookup_cmd argument. Verify that the
1643 aliased_command has no default args.
1644 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1645 (lookup_cmd_1, lookup_cmd): New argument default_args.
1646 (add_alias_cmd):
1647 Add NULL for new default_args lookup_cmd argument.
1648 (print_help_for_command): Show default args under the layout
1649 alias some_alias = some_aliased_cmd some_alias_default_arg.
1650 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1651 xfree default_args in destructor.
1652 * cli/cli-script.c (process_next_line, do_define_command):
1653 Add NULL for new default_args lookup_cmd argument.
1654 * command.h: Declare new default_args argument in lookup_cmd
1655 and lookup_cmd_1.
1656 * completer.c (complete_line_internal_1):
1657 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1658 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1659 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1660 Likewise.
1661 * infcmd.c (_initialize_infcmd): Likewise.
1662 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1663 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1664 * python/py-param.c (add_setshow_generic): Likewise.
1665 * remote.c (_initialize_remote): Likewise.
1666 * top.c (execute_command): Prepend default_args if command has some.
1667 (set_verbose):
1668 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1669 * tracepoint.c (validate_actionline, encode_actions_1):
1670 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1671
bd920864
TBA
16722020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1673
1674 * jit.c (jit_read_descriptor): Use bool as the return type.
1675 (jit_breakpoint_re_set_internal): Use bool as the return type.
1676 Invert the return value logic; return true if the jit breakpoint
1677 has been successfully initialized.
1678 (jit_inferior_init): Update the call to
1679 jit_breakpoint_re_set_internal.
1680
f8098322
PA
16812020-06-22 Pedro Alves <palves@redhat.com>
1682
1683 PR gdb/25939
1684 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1685 Use the current inferior instead. Don't return
1686 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1687 wait again.
1688 * sol-thread.c (sol_thread_target::wait): Don't reference
1689 inferior_ptid.
1690 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1691 (sol_update_thread_list_callback): Use the current inferior's pid
1692 instead of inferior_ptid.
1693
196535a6
RO
16942020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1695
1696 * procfs.c: Cleanup many comments.
1697
1698 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1699 (AFTER_WATCHFLAG): Replace by value.
1700
1701 (MAIN_PROC_NAME_FORMAT): Inline ...
1702 (create_procinfo): ... here.
1703
1704 (procfs_debug_inferior): Remove SYS_exec handling.
1705 (syscall_is_exec): Likewise.
1706 (procfs_set_exec_trap): Likewise.
1707
1708 (syscall_is_lwp_exit): Inline in callers.
1709 (syscall_is_exit): Likewise.
1710 (syscall_is_exec): Likewise.
1711 (syscall_is_lwp_create): Likewise.
1712
1713 (invalidate_cache): Remove #if 0 code.
1714
1715 (make_signal_thread_runnable): Remove.
1716 (procfs_target::resume): Remove #if 0 code.
1717
cf6f3e86
RO
17182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1719
1720 PR gdb/25939
1721 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1722 call ...
1723 (procfs_target::create_inferior): ... here.
1724
48e9cc84
PW
17252020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1726
1727 * exec.c (validate_exec_file): Ensure the build-id is up to
1728 date by calling reopen_exec_file (that checks file timestamp
1729 to decide to re-read the file).
1730
3922b302
PA
17312020-06-18 Pedro Alves <palves@redhat.com>
1732
1733 PR gdb/25412
1734 * gdbthread.h (delete_thread, delete_thread_silent)
1735 (find_thread_ptid): Update comments.
1736 * thread.c (current_thread_): New global.
1737 (is_current_thread): Move higher, and reimplement.
1738 (inferior_thread): Reimplement.
1739 (set_thread_exited): Use bool. Add assertions.
1740 (add_thread_silent): Simplify thread-reuse handling by always
1741 calling delete_thread.
1742 (delete_thread): Remove intro comment.
1743 (find_thread_ptid): Skip exited threads.
1744 (switch_to_thread_no_regs): Write to current_thread_.
1745 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1746 INFERIOR_PTID. Clear current_thread_.
1747
6dbdab44
PA
17482020-06-18 Pedro Alves <palves@redhat.com>
1749
1750 * aix-thread.c (pd_update): Use switch_to_thread.
1751
2da4b788
PA
17522020-06-18 Pedro Alves <palves@redhat.com>
1753
1754 * ravenscar-thread.c (ravenscar_thread_target): Update.
1755 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1756 (ravenscar_thread_target::add_active_thread): ... this. Don't
1757 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1758 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1759
50838d1b
PA
17602020-06-18 Pedro Alves <palves@redhat.com>
1761
1762 * nat/windows-nat.c (current_windows_thread): Remove.
1763 * nat/windows-nat.h (current_windows_thread): Remove.
1764 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1765 Adjust.
1766 (display_selectors): Adjust to fetch the current
1767 windows_thread_info based on inferior_ptid.
1768 (fake_create_process): No longer write to current_windows_thread.
1769 (windows_nat_target::get_windows_debug_event):
1770 Don't set inferior_ptid or current_windows_thread.
1771 (windows_nat_target::wait): Adjust to not rely on
1772 current_windows_thread.
1773 (do_initial_windows_stuff): Now a method of windows_nat_target.
1774 Switch to the last_ptid thread.
1775 (windows_nat_target::attach): Adjust.
1776 (windows_nat_target::detach): Use switch_to_no_thread instead of
1777 writing to inferior_ptid directly.
1778 (windows_nat_target::create_inferior): Adjust.
1779
31ce04e9
PA
17802020-06-18 Pedro Alves <palves@redhat.com>
1781
1782 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1783
1ee1a363
PA
17842020-06-18 Pedro Alves <palves@redhat.com>
1785
1786 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1787 after creating it, instead of writing to inferior_ptid. Don't
1788 write to inferior_ptid.
1789
6d350754
PA
17902020-06-18 Pedro Alves <palves@redhat.com>
1791
1792 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1793
5d971d48
PA
17942020-06-18 Pedro Alves <palves@redhat.com>
1795
1796 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1797 it, instead of writing to inferior_ptid.
1798
86e57d1b
PA
17992020-06-18 Pedro Alves <palves@redhat.com>
1800
1801 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1802 to inferior_ptid.
1803
f2e1c129
PA
18042020-06-18 Pedro Alves <palves@redhat.com>
1805
1806 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1807 instead of writing to inferior_ptid directly.
1808
60db1b85
PA
18092020-06-18 Pedro Alves <palves@redhat.com>
1810
1811 * corelow.c (core_target::close): Use switch_to_no_thread instead
1812 of writing to inferior_ptid directly.
1813 (add_to_thread_list, core_target_open): Use switch_to_thread
1814 instead of writing to inferior_ptid directly.
1815
fe7d6a8d
PA
18162020-06-18 Pedro Alves <palves@redhat.com>
1817
1818 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1819 inferior_ptid.
1820 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1821 inferior_ptid.
1822 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1823 inferior_ptid directly.
1824 (darwin_nat_target::init_thread_list): Switch to thread, instead
1825 of writing to inferior_ptid.
1826 (darwin_nat_target::attach): Don't write to inferior_ptid.
1827 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1828
975f8708
PA
18292020-06-18 Pedro Alves <palves@redhat.com>
1830
1831 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1832 thread.
1833 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1834 Instead use switch_to_thread.
1835 (gnu_nat_target::detach): Use switch_to_no_thread
1836 instead of writing to inferior_ptid directly. Used passed-in
1837 inferior instead of looking up the inferior by pid.
1838
1a204730
PA
18392020-06-18 Pedro Alves <palves@redhat.com>
1840
1841 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1842 inferior_ptid.
1843
ebe84f23
PA
18442020-06-18 Pedro Alves <palves@redhat.com>
1845
1846 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1847 inferior_ptid.
1848 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1849 thread.
1850 (nto_procfs_target::detach): Avoid referencing
1851 inferior_ptid. Use switch_to_no_thread instead of writing to
1852 inferior_ptid directly.
1853 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1854 instead of writing to inferior_ptid directly.
1855 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1856 to thread.
1857
191f02e5
PA
18582020-06-18 Pedro Alves <palves@redhat.com>
1859
1860 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1861 after creating it, instead of writing to inferior_ptid.
1862 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1863 to inferior_ptid directly.
1864 (gdbsim_target::wait): Don't write to inferior_ptid.
1865
0ac55310
PA
18662020-06-18 Pedro Alves <palves@redhat.com>
1867
1868 * remote.c (remote_target::remote_notice_new_inferior): Use
1869 switch_to_thread instead of writing to inferior_ptid directly.
1870 (remote_target::add_current_inferior_and_thread): Use
1871 switch_to_no_thread instead of writing to inferior_ptid directly.
1872 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1873 and switch_to_thread instead of using set_current_inferior or
1874 writing to inferior_ptid directly.
1875
5233f39b
PA
18762020-06-18 Pedro Alves <palves@redhat.com>
1877
1878 * tracectf.c (ctf_target_open): Switch to added thread instead of
1879 writing to inferior_ptid directly.
1880 (ctf_target::close): Use switch_to_no_thread instead of writing to
1881 inferior_ptid directly.
1882
087e161b
PA
18832020-06-18 Pedro Alves <palves@redhat.com>
1884
1885 * tracefile-tfile.c (tfile_target_open): Don't write to
1886 inferior_ptid directly, instead switch to added thread.
1887 (tfile_target::close): Use switch_to_no_thread instead of writing
1888 to inferior_ptid directly.
1889
7fb43e53
PA
18902020-06-18 Pedro Alves <palves@redhat.com>
1891
1892 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1893 (procfs_target::detach): Use switch_to_no_thread
1894 instead of writing to inferior_ptid directly.
1895 (do_attach): Change return type to void. Switch to the added
1896 thread.
1897 (procfs_target::create_inferior): Switch to the added thread.
1898 (procfs_do_thread_registers): Don't write to inferior_ptid.
1899
18493a00
PA
19002020-06-18 Pedro Alves <palves@redhat.com>
1901
1902 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1903 of writing to inferior_ptid.
1904 (scoped_restore_exited_inferior): Delete.
1905 (handle_vfork_child_exec_or_exit): Simplify using
1906 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1907 instead of writing to inferior_ptid.
1908 (THREAD_STOPPED_BY): Delete.
1909 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1910 (thread_stopped_by_hw_breakpoint): Delete.
1911 (save_waitstatus): Use
1912 scoped_restore_current_thread+switch_to_thread, and call
1913 target_stopped_by_watchpoint instead of
1914 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1915 instead of thread_stopped_by_sw_breakpoint, and
1916 target_stopped_by_hw_breakpoint instead of
1917 thread_stopped_by_hw_breakpoint.
1918 (handle_inferior_event)
1919 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1920 inferior_ptid directly, nor
1921 set_current_inferior/set_current_program_space. Use
1922 switch_to_thread / switch_to_inferior_no_thread instead.
1923
a0776b13
PA
19242020-06-18 Pedro Alves <palves@redhat.com>
1925
1926 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1927 instead of writing to inferior_ptid.
1928
6155c136
PA
19292020-06-18 Pedro Alves <palves@redhat.com>
1930
1931 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1932 added thread.
1933 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1934 to the added thread.
1935 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1936 instead of writing to inferior_ptid.
1937
c5316fc6
PA
19382020-06-18 Pedro Alves <palves@redhat.com>
1939
1940 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1941 (register_to_value_test): Mock a program_space too. Heap-allocate
1942 the address space. Don't write to inferior_ptid. Use
1943 switch_to_thread instead.
1944
8df01799
PA
19452020-06-18 Pedro Alves <palves@redhat.com>
1946
1947 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1948 Delete.
1949 (find_signalled_thread()): New, factored out from
1950 linux_make_corefile_notes and adjusted to handle exited threads.
1951 (linux_make_corefile_notes): Adjust to use the new
1952 find_signalled_thread.
1953
41792d68
PA
19542020-06-18 Pedro Alves <palves@redhat.com>
1955
1956 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1957 of saving/restoring inferior_ptid.
1958
612f258a
TT
19592020-06-17 Tom Tromey <tom@tromey.com>
1960
1961 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1962 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1963 declare.
1964 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1965
efb763a5
SM
19662020-06-15 Simon Marchi <simon.marchi@efficios.com>
1967
1968 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1969 of partial symtabs.
1970
2951f6c0
SM
19712020-06-17 Simon Marchi <simon.marchi@efficios.com>
1972
1973 * regformats/reg-arm.dat: Remove.
1974 * regformats/reg-bfin.dat: Remove.
1975 * regformats/reg-cris.dat: Remove.
1976 * regformats/reg-crisv32.dat: Remove.
1977 * regformats/reg-m32r.dat: Remove.
1978 * regformats/reg-tilegx.dat: Remove.
1979 * regformats/reg-tilegx32.dat: Remove.
1980
7d458ea5
SM
19812020-06-17 Simon Marchi <simon.marchi@efficios.com>
1982
1983 * features/Makefile (WHICH): Remove arm files.
1984 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1985 * regformats/arm/arm-with-neon.dat: Remove.
1986 * regformats/arm/arm-with-vfpv2.dat: Remove.
1987 * regformats/arm/arm-with-vfpv3.dat: Remove.
1988
3af96c0d
SM
19892020-06-17 Simon Marchi <simon.marchi@efficios.com>
1990
1991 * features/Makefile (XMLTOC): Remove rx.xml.
1992
b25e22fd
PA
19932020-06-17 Pedro Alves <palves@redhat.com>
1994
1995 * gdbthread.h (thread_control_state) <trap_expected> Update
1996 comments.
1997
a78a19b1
AB
19982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1999
2000 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2001 ada_language::lookup_symbol_nonlocal.
2002 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2003 (ada_language::lookup_symbol_nonlocal): New member function,
2004 implementation from ada_lookup_symbol_nonlocal.
2005 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2006 initializer.
2007 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2008 initializer.
2009 (cplus_language::lookup_symbol_nonlocal): New member function.
2010 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2011 (minimal_language_data) Likewise.
2012 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2013 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2014 initializer.
2015 (d_language::lookup_symbol_nonlocal): New member function.
2016 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2017 initializer.
2018 (f_language::lookup_symbol_nonlocal): New member function.
2019 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2020 initializer.
2021 * language.c (unknown_language_data): Likewise.
2022 (auto_language_data): Likewise.
2023 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2024 field.
2025 (language_defn::lookup_symbol_nonlocal): New member function.
2026 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2027 initializer.
2028 * objc-lang.c (objc_language_data): Likewise.
2029 * opencl-lang.c (opencl_language_data): Likewise.
2030 * p-lang.c (pascal_language_data): Likewise.
2031 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2032 rust_language::lookup_symbol_nonlocal.
2033 (rust_language_data): Delete la_lookup_symbol_nonlocal
2034 initializer.
2035 (rust_language::lookup_symbol_nonlocal): New member function,
2036 implementation from rust_lookup_symbol_nonlocal.
2037 * symtab.c (lookup_symbol_aux): Update call to
2038 lookup_symbol_nonlocal.
2039 (basic_lookup_symbol_nonlocal): Rename to...
2040 (language_defn::lookup_symbol_nonlocal): ...this, and update
2041 header comment. Remove language_defn parameter, and replace with
2042 uses of `this'.
2043 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2044
ebe2334e
AB
20452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2046
2047 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2048 initializer.
2049 (ada_language::value_print_inner): New member function.
2050 * c-lang.c (c_language_data): Delete la_value_print_inner
2051 initializer.
2052 (cplus_language_data): Likewise.
2053 (asm_language_data): Likewise.
2054 (minimal_language_data): Likewise.
2055 * d-lang.c (d_language_data): Likewise.
2056 (d_language::value_print_inner): New member function.
2057 * f-lang.c (f_language_data): Delete la_value_print_inner
2058 initializer.
2059 (f_language::value_print_inner): New member function.
2060 * f-lang.h (f_value_print_innner): Rename to...
2061 (f_value_print_inner): ...this (note spelling of 'inner').
2062 * f-valprint.c (f_value_print_innner): Rename to...
2063 (f_value_print_inner): ...this (note spelling of 'inner').
2064 * go-lang.c (go_language_data): Delete la_value_print_inner
2065 initializer.
2066 (go_language::value_print_inner): New member function.
2067 * language.c (language_defn::value_print_inner): Define new member
2068 function.
2069 (unk_lang_value_print_inner): Delete.
2070 (unknown_language_data): Delete la_value_print_inner initializer.
2071 (unknown_language::value_print_inner): New member function.
2072 (auto_language_data): Delete la_value_print_inner initializer.
2073 (auto_language::value_print_inner): New member function.
2074 * language.h (language_data): Delete la_value_print_inner field.
2075 (language_defn::value_print_inner): Delcare new member function.
2076 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2077 initializer.
2078 (m2_language::value_print_inner): New member function.
2079 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2080 initializer.
2081 * opencl-lang.c (opencl_language_data): Likewise.
2082 * p-lang.c (pascal_language_data): Likewise.
2083 (pascal_language::value_print_inner): New member function.
2084 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2085 initializer.
2086 (rust_language::value_print_inner): New member function.
2087 * valprint.c (do_val_print): Update call to value_print_inner.
2088
a1d1fa3e
AB
20892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * ada-lang.c (ada_language_data): Delete la_value_print
2092 initializer.
2093 (ada_language::value_print): New member function.
2094 * c-lang.c (c_language_data): Delete la_value_print initializer.
2095 (cplus_language_data): Likewise.
2096 (asm_language_data): Likewise.
2097 (minimal_language_data): Likewise.
2098 * d-lang.c (d_language_data): Likewise.
2099 * f-lang.c (f_language_data): Likewise.
2100 * go-lang.c (go_language_data): Likewise.
2101 * language.c (unk_lang_value_print): Delete.
2102 (language_defn::value_print): Define new member function.
2103 (unknown_language_data): Delete la_value_print initializer.
2104 (unknown_language::value_print): New member function.
2105 (auto_language_data): Delete la_value_print initializer.
2106 (auto_language::value_print): New member function.
2107 * language.h (language_data): Delete la_value_print field.
2108 (language_defn::value_print): Declare new member function.
2109 (LA_VALUE_PRINT): Update call to value_print.
2110 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2111 * objc-lang.c (objc_language_data): Likewise.
2112 * opencl-lang.c (opencl_language_data): Likewise.
2113 * p-lang.c (pascal_language_data): Likewise.
2114 (pascal_language::value_print): New member function.
2115 * rust-lang.c (rust_language_data): Delete la_value_print
2116 initializer.
2117
f16a9f57
AB
21182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2119
2120 * ada-lang.c (ada_watch_location_expression): Rename to
2121 ada_language::watch_location_expression.
2122 (ada_language_data): Delete la_watch_location_expression
2123 initializer.
2124 (ada_language::watch_location_expression): New member function,
2125 implementation from ada_watch_location_expression.
2126 * breakpoint.c (watch_command_1): Update call to
2127 watch_location_expression.
2128 * c-lang.c (c_watch_location_expression): Rename to
2129 language_defn::watch_location_expression.
2130 (c_language_data): Delete la_watch_location_expression
2131 initializer.
2132 (cplus_language_data): Likewise.
2133 (asm_language_data): Likewise.
2134 (minimal_language_data): Likewise.
2135 * c-lang.h (c_watch_location_expression): Delete declaration.
2136 * d-lang.c (d_language_data): Delete la_watch_location_expression
2137 initializer.
2138 * f-lang.c (f_language_data): Likewise.
2139 * go-lang.c (go_language_data): Likewise.
2140 * language.c (language_defn::watch_location_expression): Member
2141 function implementation from c_watch_location_expression.
2142 (unknown_language_data): Delete la_watch_location_expression
2143 initializer.
2144 (auto_language_data): Likewise.
2145 * language.h (language_data): Delete la_watch_location_expression
2146 field.
2147 (language_defn::watch_location_expression): Declare new member
2148 function.
2149 * m2-lang.c (m2_language_data): Delete
2150 la_watch_location_expression initializer.
2151 * objc-lang.c (objc_language_data): Likewise.
2152 * opencl-lang.c (opencl_language_data): Likewise.
2153 * p-lang.c (pascal_language_data): Likewise.
2154 * rust-lang.c (rust_watch_location_expression): Rename to
2155 rust_language::watch_location_expression.
2156 (rust_language_data): Delete la_watch_location_expression
2157 initializer.
2158 (rust_language::watch_location_expression): New member function,
2159 implementation from rust_watch_location_expression.
2160
7e56227d
AB
21612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2162
2163 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2164 ada_language::collect_symbol_completion_matches.
2165 (ada_language_data): Delete la_collect_symbol_completion_matches
2166 initializer.
2167 (ada_language::collect_symbol_completion_matches): New member
2168 function, implementation from
2169 ada_collect_symbol_completion_matches.
2170 * c-lang.c (c_language_data): Delete
2171 la_collect_symbol_completion_matches initializer.
2172 (cplus_language_data): Likewise.
2173 (asm_language_data): Likewise.
2174 (minimal_language_data): Likewise.
2175 * d-lang.c (d_language_data): Likewise.
2176 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2177 f_language::collect_symbol_completion_matches.
2178 (f_language_data): Delete la_collect_symbol_completion_matches
2179 initializer.
2180 (f_language::collect_symbol_completion_matches) New member
2181 function, implementation from f_collect_symbol_completion_matches.
2182 * go-lang.c (go_language_data): Delete
2183 la_collect_symbol_completion_matches initializer.
2184 * language.c (unknown_language_data): Likewise.
2185 (auto_language_data): Likewise.
2186 * language.h (language_data): Delete
2187 la_collect_symbol_completion_matches field.
2188 (language_defn::collect_symbol_completion_matches): New member
2189 function.
2190 * m2-lang.c (m2_language_data): Delete
2191 la_collect_symbol_completion_matches initializer.
2192 * objc-lang.c (objc_language_data): Likewise.
2193 * opencl-lang.c (opencl_language_data): Likewise.
2194 * p-lang.c (pascal_language_data): Likewise.
2195 * rust-lang.c (rust_language_data): Likewise.
2196 * symtab.c (default_collect_symbol_completion_matches): Delete.
2197 (collect_symbol_completion_matches): Update call to
2198 collect_symbol_completion_matches.
2199 (collect_symbol_completion_matches_type): Likewise.
2200 * symtab.h (default_collect_symbol_completion_matches): Delete
2201 declaration.
2202
53fc67f8
AB
22032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2204
2205 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2206 (ada_language_data): Delete la_word_break_characters initializer.
2207 (ada_language::word_break_characters): New member function.
2208 * c-lang.c (c_language_data): Delete la_word_break_characters
2209 initializer.
2210 (cplus_language_data): Likewise.
2211 (asm_language_data): Likewise.
2212 (minimal_language_data): Likewise.
2213 * completer.c: Update global comment.
2214 (advance_to_expression_complete_word_point): Update call to
2215 word_break_characters.
2216 (complete_files_symbols): Likewise.
2217 (complete_line_internal_1): Likewise.
2218 (default_completer_handle_brkchars): Likewise.
2219 (skip_quoted_chars): Likewise.
2220 * d-lang.c (d_language_data): Delete la_word_break_characters
2221 initializer.
2222 * f-lang.c (f_word_break_characters): Delete.
2223 (f_language_data): Delete la_word_break_characters initializer.
2224 (f_language::word_break_characters): New member function.
2225 * go-lang.c (go_language_data): Delete la_word_break_characters
2226 initializer.
2227 * language.c (unknown_language_data): Likewise.
2228 (auto_language_data): Likewise.
2229 * language.h (default_word_break_characters): Move declaration to
2230 earlier in the file.
2231 (language_data): Delete la_word_break_characters field.
2232 (language_defn::word_break_characters): New member function.
2233 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2234 initializer.
2235 * objc-lang.c (objc_language_data): Likewise.
2236 * opencl-lang.c (opencl_language_data): Likewise.
2237 * p-lang.c (pascal_language_data): Likewise.
2238 * rust-lang.c (rust_language_data): Likewise.
2239
c9debfb9
AB
22402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2243 (ada_language_data): Delete la_get_symbol_name_matcher
2244 initializer.
2245 (language_defn::get_symbol_name_matcher_inner): New member
2246 function.
2247 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2248 initializer.
2249 (cplus_language_data): Likewise.
2250 (cplus_language::get_symbol_name_matcher_inner): New member
2251 function.
2252 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2253 (minimal_language_data): Likewise.
2254 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2255 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2256 initializer.
2257 * dictionary.c (iter_match_first_hashed): Update call to
2258 get_symbol_name_matcher.
2259 (iter_match_next_hashed): Likewise.
2260 (iter_match_next_linear): Likewise.
2261 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2262 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2263 initializer.
2264 (f_language::get_symbol_name_matcher_inner): New member function.
2265 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2266 initializer.
2267 * language.c (default_symbol_name_matcher): Update header comment,
2268 make static.
2269 (language_defn::get_symbol_name_matcher): New definition.
2270 (language_defn::get_symbol_name_matcher_inner): Likewise.
2271 (get_symbol_name_matcher): Delete.
2272 (unknown_language_data): Delete la_get_symbol_name_matcher
2273 initializer.
2274 (auto_language_data): Likewise.
2275 * language.h (language_data): Delete la_get_symbol_name_matcher
2276 field.
2277 (language_defn::get_symbol_name_matcher): New member function.
2278 (language_defn::get_symbol_name_matcher_inner): Likewise.
2279 (default_symbol_name_matcher): Delete declaration.
2280 * linespec.c (find_methods): Update call to
2281 get_symbol_name_matcher.
2282 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2283 initializer.
2284 * minsyms.c (lookup_minimal_symbol): Update call to
2285 get_symbol_name_matcher.
2286 (iterate_over_minimal_symbols): Likewise.
2287 * objc-lang.c (objc_language_data): Delete
2288 la_get_symbol_name_matcher initializer.
2289 * opencl-lang.c (opencl_language_data): Likewise.
2290 * p-lang.c (pascal_language_data): Likewise.
2291 * psymtab.c (psymbol_name_matches): Update call to
2292 get_symbol_name_matcher.
2293 * rust-lang.c (rust_language_data): Delete
2294 la_get_symbol_name_matcher initializer.
2295 * symtab.c (symbol_matches_search_name): Update call to
2296 get_symbol_name_matcher.
2297 (compare_symbol_name): Likewise.
2298
9a49ad8c
AB
22992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2300
2301 * ada-lang.c (ada_language_data): Delete la_compute_program
2302 initializer.
2303 * c-lang.c (c_language_data): Likewise.
2304 (c_language::compute_program): New member function.
2305 (cplus_language_data): Delete la_compute_program initializer.
2306 (cplus_language::compute_program): New member function.
2307 (asm_language_data): Delete la_compute_program initializer.
2308 (minimal_language_data): Likewise.
2309 * c-lang.h (c_compute_program): Update comment.
2310 (cplus_compute_program): Likewise.
2311 * compile/compile-c-support.c (c_compute_program): Likewise.
2312 (cplus_compute_program): Likewise.
2313 * compile/compile.c (compile_to_object): Update call to
2314 la_compute_program.
2315 * d-lang.c (d_language_data): Delete la_compute_program
2316 initializer.
2317 * f-lang.c (f_language_data): Likewise.
2318 * go-lang.c (go_language_data): Likewise.
2319 * language.c (unknown_language_data): Likewise.
2320 (auto_language_data): Likewise.
2321 * language.h (language_data): Delete la_compute_program field.
2322 (language_defn::compute_program): New member function.
2323 * m2-lang.c (m2_language_data): Delete la_compute_program
2324 initializer.
2325 * objc-lang.c (objc_language_data): Likewise.
2326 * opencl-lang.c (opencl_language_data): Likewise.
2327 * p-lang.c (pascal_language_data): Likewise.
2328 * rust-lang.c (rust_language_data): Likewise.
2329
eff93b4d
AB
23302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * ada-lang.c (ada_language_data) Delete
2333 la_class_name_from_physname initializer.
2334 * c-lang.c (c_language_data): Likewise.
2335 (cplus_language_data): Likewise.
2336 (cplus_language::class_name_from_physname): New member function.
2337 (asm_language_data): Delete la_class_name_from_physname
2338 initializer.
2339 (minimal_language_data): Likewise.
2340 * d-lang.c (d_language_data): Likewise.
2341 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2342 method on language_defn class.
2343 (guess_full_die_structure_name): Likewise.
2344 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2345 initializer.
2346 * go-lang.c (go_language_data): Likewise.
2347 * language.c (language_class_name_from_physname): Delete.
2348 (unk_lang_class_name): Delete.
2349 (unknown_language_data): Delete la_class_name_from_physname
2350 initializer.
2351 (auto_language_data): Likewise.
2352 * language.h (language_data): Delete la_class_name_from_physname
2353 field.
2354 (language_defn::class_name_from_physname): New function.
2355 (language_class_name_from_physname): Delete declaration.
2356 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2357 initializer.
2358 * objc-lang.c (objc_language_data): Likewise.
2359 * opencl-lang.c (opencl_language_data): Likewise.
2360 * p-lang.c (pascal_language_data): Likewise.
2361 * rust-lang.c (rust_language_data): Likewise.
2362
de543742
TT
23632020-06-16 Tom Tromey <tom@tromey.com>
2364
2365 * tui/tui-data.h (STATUS_NAME): New macro.
2366 * tui/tui-layout.c (tui_remove_some_windows)
2367 (initialize_known_windows, tui_register_window)
2368 (tui_layout_split::remove_windows, initialize_layouts)
2369 (tui_new_layout_command): Don't use hard-coded window names.
2370
a350efd4
TT
23712020-06-16 Tom Tromey <tom@tromey.com>
2372
2373 PR tui/25348:
2374 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2375 tui_initialize_readline. Only run once. Call rl_initialize.
2376 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2377 tui_initialize_readline.
2378 * tui/tui-io.c (tui_setup_io): Call
2379 tui_ensure_readline_initialized.
2380 * tui/tui-interp.c (tui_interp::init): Update.
2381
39ec0490
TT
23822020-06-16 Tom Tromey <tom@tromey.com>
2383
2384 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2385 Also preserve the status window.
2386
d2d1ea20
TT
23872020-06-16 Tom Tromey <tom@tromey.com>
2388
2389 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2390 where m_window==nullptr.
2391
66920317
TT
23922020-06-15 Tom Tromey <tromey@adacore.com>
2393
2394 * windows-nat.c (windows_nat::handle_output_debug_string):
2395 Update.
2396 (windows_nat::handle_ms_vc_exception): Update.
2397 * target.h (target_read_string): Change API.
2398 * target.c (target_read_string): Change API.
2399 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2400 Update.
2401 * solib-frv.c (frv_current_sos): Update.
2402 * solib-dsbt.c (dsbt_current_sos): Update.
2403 * solib-darwin.c (darwin_current_sos): Update.
2404 * linux-thread-db.c (inferior_has_bug): Update.
2405 * expprint.c (print_subexp_standard): Update.
2406 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2407 (ada_exception_message_1): Update.
2408
a5d871dd
TT
24092020-06-15 Tom Tromey <tromey@adacore.com>
2410
2411 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2412
670e35fa
TT
24132020-06-15 Tom Tromey <tromey@adacore.com>
2414
2415 * valprint.c (read_string): Update comment.
2416 * target.c (MIN): Remove.
2417 (target_read_string): Rewrite.
2418
f5272a3b
TT
24192020-06-15 Tom Tromey <tromey@adacore.com>
2420
2421 * corefile.c (read_memory_string): Remove.
2422 * ada-valprint.c (ada_value_print_ptr): Update.
2423 * ada-lang.h (ada_tag_name): Change return type.
2424 * ada-lang.c (type_from_tag): Update.
2425 (ada_tag_name_from_tsd): Change return type. Use
2426 target_read_string.
2427 (ada_tag_name): Likewise.
2428 * gdbcore.h (read_memory_string): Don't declare.
2429
2c074f49
HD
24302020-06-14 Hannes Domani <ssbssa@yahoo.de>
2431
2432 * symtab.c (rbreak_command): Ignore Windows drive colon.
2433
6a17d503
SM
24342020-06-12 Simon Marchi <simon.marchi@efficios.com>
2435
2436 * NEWS: Mention removed GDBserver host support.
2437
453c733f
NC
24382020-06-12 Nelson Chu <nelson.chu@sifive.com>
2439
2440 * features/riscv/rebuild-csr-xml.sh: Updated.
2441
2b4e6a3f
TT
24422020-06-11 Tom Tromey <tom@tromey.com>
2443
2444 PR gdb/18318:
2445 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2446
4412332f
JG
24472020-06-09 Jonny Grant <jg@jguk.org>
24482020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * main.c (captured_main_1): Don't print new line after help.
2451 (print_gdb_help): add mailing list and IRC channel information
2452 to --help. Add new lines between items in the footer. Remove
2453 quotes around bug url.
2454
2f33032a
KS
24552020-06-11 Keith Seitz <keiths@redhat.com>
2456
2457 PR gdb/21356
2458 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2459 Resolve typedefs for type length calculations.
2460
7ab96794
TV
24612020-06-10 Tom de Vries <tdevries@suse.de>
2462
2463 PR ada/24713
2464 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2465 (write_psymbols): Enable .gdb_index for ada.
2466 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2467 ada.
2468
e5f3ece2
TV
24692020-06-10 Tom de Vries <tdevries@suse.de>
2470
2471 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2472 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2473 namei" instead of "const char *name" argument.
2474 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2475 dw2_symtab_iter_init.
2476
940da03e
SM
24772020-06-08 Simon Marchi <simon.marchi@efficios.com>
2478
2479 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2480 to use type::field and field::type instead.
2481
b6cdac4b
SM
24822020-06-08 Simon Marchi <simon.marchi@efficios.com>
2483
2484 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2485 to use field::type instead.
2486
5d14b6e5
SM
24872020-06-08 Simon Marchi <simon.marchi@efficios.com>
2488
2489 * gdbtypes.h (struct field) <type, set_type>: New methods.
2490 Rename `type` field to...
2491 <m_type>: ... this. Change references throughout to use type or
2492 set_type methods.
2493 (FIELD_TYPE): Use field::type. Change call sites that modify
2494 the field's type to use field::set_type instead.
2495
3d967001
SM
24962020-06-08 Simon Marchi <simon.marchi@efficios.com>
2497
2498 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2499 to use type::index_type instead.
2500
262abc0d
SM
25012020-06-08 Simon Marchi <simon.marchi@efficios.com>
2502
2503 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2504 methods.
2505 (TYPE_INDEX_TYPE): Use type::index_type.
2506 * gdbtypes.c (create_array_type_with_stride): Likewise.
2507
82836c92
TT
25082020-06-07 Tom Tromey <tom@tromey.com>
2509
2510 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2511 parameter.
2512 (generic_value_print): Update.
2513
940dace9
AB
25142020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 Revert commit 982a38f60b0.
2517 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2518
982a38f6
AB
25192020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2520
2521 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2522 avoid use after free.
2523
82f06518
TV
25242020-06-05 Tom de Vries <tdevries@suse.de>
2525
2526 * NEWS: Fix typos.
2527
f8c41851
SM
25282020-06-04 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2531 the per_bfd object.
2532 (dwarf2_read_debug_names): Likewise.
2533 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2534 object when re-using a per_bfd object with an index.
2535
f9b5d5ea
TV
25362020-06-03 Tom de Vries <tdevries@suse.de>
2537
2538 PR symtab/26046
2539 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2540 children for C++.
2541 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2542 DW_TAG_subprogram.
2543
f6eee2d0
AB
25442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2545
2546 * ada-lang.c (ada_language_data): Delete skip_trampoline
2547 initializer.
2548 * c-lang.c (c_language_data): Likewise.
2549 (cplus_language_data): Likewise.
2550 (cplus_language::skip_trampoline): New member function.
2551 (asm_language_data): Delete skip_trampoline initializer.
2552 (minimal_language_data): Likewise.
2553 * d-lang.c (d_language_data): Likewise.
2554 * f-lang.c (f_language_data): Likewise.
2555 * go-lang.c (go_language_data): Likewise.
2556 * language.c (unk_lang_trampoline): Delete function.
2557 (skip_language_trampoline): Update.
2558 (unknown_language_data): Delete skip_trampoline initializer.
2559 (auto_language_data): Likewise.
2560 * language.h (language_data): Delete skip_trampoline field.
2561 (language_defn::skip_trampoline): New function.
2562 * m2-lang.c (m2_language_data): Delete skip_trampoline
2563 initializer.
2564 * objc-lang.c (objc_skip_trampoline): Delete function, move
2565 implementation to objc_language::skip_trampoline.
2566 (objc_language_data): Delete skip_trampoline initializer.
2567 (objc_language::skip_trampoline): New member function with
2568 implementation from objc_skip_trampoline.
2569 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2570 initializer.
2571 * p-lang.c (pascal_language_data): Likewise.
2572 * rust-lang.c (rust_language_data): Likewise.
2573
0a50df5d
AB
25742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2577 (ada_language::demangle): New member function.
2578 * c-lang.c (c_language_data): Delete la_demangle initializer.
2579 (cplus_language_data): Delete la_demangle initializer.
2580 (cplus_language::demangle): New member function.
2581 (asm_language_data): Delete la_demangle initializer.
2582 (minimal_language_data): Delete la_demangle initializer.
2583 * d-lang.c (d_language_data): Delete la_demangle initializer.
2584 (d_language::demangle): New member function.
2585 * f-lang.c (f_language_data): Delete la_demangle initializer.
2586 (f_language::demangle): New member function.
2587 * go-lang.c (go_language_data): Delete la_demangle initializer.
2588 (go_language::demangle): New member function.
2589 * language.c (language_demangle): Update.
2590 (unk_lang_demangle): Delete.
2591 (unknown_language_data): Delete la_demangle initializer.
2592 (unknown_language::demangle): New member function.
2593 (auto_language_data): Delete la_demangle initializer.
2594 (auto_language::demangle): New member function.
2595 * language.h (language_data): Delete la_demangle field.
2596 (language_defn::demangle): New function.
2597 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2598 * objc-lang.c (objc_language_data): Delete la_demangle
2599 initializer.
2600 (objc_language::demangle): New member function.
2601 * opencl-lang.c (opencl_language_data): Delete la_demangle
2602 initializer.
2603 * p-lang.c (pascal_language_data): Likewise.
2604 * rust-lang.c (rust_language_data): Likewise.
2605 (rust_language::demangle): New member function.
2606
fbfb0a46
AB
26072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2608
2609 * ada-lang.c (ada_language_data): Delete la_print_type
2610 initializer.
2611 (ada_language::print_type): New member function.
2612 * c-lang.c (c_language_data): Delete la_print_type initializer.
2613 (c_language::print_type): New member function.
2614 (cplus_language_data): Delete la_print_type initializer.
2615 (cplus_language::print_type): New member function.
2616 (asm_language_data): Delete la_print_type initializer.
2617 (asm_language::print_type): New member function.
2618 (minimal_language_data): Delete la_print_type initializer.
2619 (minimal_language::print_type): New member function.
2620 * d-lang.c (d_language_data): Delete la_print_type initializer.
2621 (d_language::print_type): New member function.
2622 * f-lang.c (f_language_data): Delete la_print_type initializer.
2623 (f_language::print_type): New member function.
2624 * go-lang.c (go_language_data): Delete la_print_type initializer.
2625 (go_language::print_type): New member function.
2626 * language.c (unk_lang_print_type): Delete.
2627 (unknown_language_data): Delete la_print_type initializer.
2628 (unknown_language::print_type): New member function.
2629 (auto_language_data): Delete la_print_type initializer.
2630 (auto_language::print_type): New member function.
2631 * language.h (language_data): Delete la_print_type field.
2632 (language_defn::print_type): New function.
2633 (LA_PRINT_TYPE): Update.
2634 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2635 (m2_language::print_type): New member function.
2636 * objc-lang.c (objc_language_data): Delete la_print_type
2637 initializer.
2638 (objc_language::print_type): New member function.
2639 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2640 to opencl_language::print_type.
2641 (opencl_language_data): Delete la_print_type initializer.
2642 (opencl_language::print_type): New member function, implementation
2643 from opencl_print_type.
2644 * p-lang.c (pascal_language_data): Delete la_print_type
2645 initializer.
2646 (pascal_language::print_type): New member function.
2647 * rust-lang.c (rust_print_type): Delete, implementation moved to
2648 rust_language::print_type.
2649 (rust_language_data): Delete la_print_type initializer.
2650 (rust_language::print_type): New member function, implementation
2651 from rust_print_type.
2652
6f827019
AB
26532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2654
2655 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2656 implementation moves to...
2657 (ada_language::sniff_from_mangled_name): ...here. Update return
2658 type.
2659 (ada_language_data): Delete la_sniff_from_mangled_name
2660 initializer.
2661 * c-lang.c (c_language_data): Likewise.
2662 (cplus_language_data): Likewise.
2663 (cplus_language::sniff_from_mangled_name): New member function,
2664 implementation taken from gdb_sniff_from_mangled_name.
2665 (asm_language_data): Delete la_sniff_from_mangled_name
2666 initializer.
2667 (minimal_language_data): Likewise.
2668 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2669 implementation moves to cplus_language::sniff_from_mangled_name.
2670 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2671 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2672 moves to...
2673 (d_language::sniff_from_mangled_name): ...here.
2674 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2675 * f-lang.c (f_language_data): Likewise.
2676 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2677 moves to...
2678 (go_language::sniff_from_mangled_name): ...here.
2679 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2680 * language.c (language_sniff_from_mangled_name): Delete.
2681 (unknown_language_data): Delete la_sniff_from_mangled_name
2682 initializer.
2683 (auto_language_data): Likewise.
2684 * language.h (language_data): Delete la_sniff_from_mangled_name
2685 field.
2686 (language_defn::sniff_from_mangled_name): New function.
2687 (language_sniff_from_mangled_name): Delete declaration.
2688 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2689 field.
2690 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2691 implementation moves to...
2692 (objc_language::sniff_from_mangled_name): ...here.
2693 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2694 * opencl-lang.c (opencl_language_data): Likewise.
2695 * p-lang.c (pascal_language_data): Likewise.
2696 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2697 implementation moves to...
2698 (rust_language::sniff_from_mangled_name): ...here.
2699 (rust_language_data): Delete la_sniff_from_mangled_name
2700 initializer.
2701 * symtab.c (symbol_find_demangled_name): Call
2702 sniff_from_mangled_name member function.
2703
fb8006fd
AB
27042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2705
2706 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2707 initializer.
2708 * c-lang.c (c_language_data): Likewise.
2709 (cplus_language_data): Likewise.
2710 (cplus_language::search_name_hash): New member function.
2711 (asm_language_data): Delete la_search_name_hash initializer.
2712 (minimal_language_data): Likewise.
2713 * d-lang.c (d_language_data): Likewise.
2714 * dictionary.c (default_search_name_hash): Rename to...
2715 (language_defn::search_name_hash): ...this.
2716 * f-lang.c (f_language_data): Likewise.
2717 (f_language::search_name_hash): New member function.
2718 * go-lang.c (go_language_data): Delete la_search_name_hash
2719 initializer.
2720 * language.c (unknown_language_data): Likewise.
2721 (auto_language_data): Likewise.
2722 * language.h (struct language_data): Delete la_search_name_hash
2723 field.
2724 (language_defn::search_name_hash): Declare new member function.
2725 (default_search_name_hash): Delete declaration.
2726 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2727 initializer.
2728 * objc-lang.c (objc_language_data): Likewise.
2729 * opencl-lang.c (opencl_language_data): Likewise.
2730 * p-lang.c (pascal_language_data): Likewise.
2731 * rust-lang.c (rust_language_data): Likewise.
2732 * symtab.c (search_name_hash): Update call.
2733
8e25bafe
AB
27342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2735
2736 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2737 initializer.
2738 * c-lang.c (class compile_instance): Declare.
2739 (c_language_data): Delete la_get_compile_instance initializer.
2740 (c_language::get_compile_instance): New member function.
2741 (cplus_language_data): Delete la_get_compile_instance initializer.
2742 (cplus_language::get_compile_instance): New member function.
2743 (asm_language_data): Delete la_get_compile_instance initializer.
2744 (minimal_language_data): Likewise.
2745 * c-lang.h (c_get_compile_context): Update comment.
2746 (cplus_get_compile_context): Update comment.
2747 * compile/compile.c (compile_to_object): Update calls, don't rely
2748 on function pointer being NULL.
2749 * d-lang.c (d_language_data): Delete la_get_compile_instance
2750 initializer.
2751 * f-lang.c (f_language_data): Likewise.
2752 * go-lang.c (go_language_data): Likewise.
2753 * language.c (unknown_language_data): Likewise.
2754 (auto_language_data): Likewise.
2755 * language.h (language_data): Delete la_get_compile_instance field.
2756 (language_defn::get_compile_instance): New member function.
2757 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2758 initializer.
2759 * objc-lang.c (objc_language_data): Likewise.
2760 * opencl-lang.c (opencl_language_data): Likewise.
2761 * p-lang.c (pascal_language_data): Likewise.
2762 * rust-lang.c (rust_language_data): Likewise.
2763
4009ee92
AB
27642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2765
2766 * ada-lang.c (ada_add_all_symbols): Update comment.
2767 (ada_iterate_over_symbols): Delete, move implementation to...
2768 (ada_language::iterate_over_symbols): ...here, a new member
2769 function, rewrite to use range based for loop.
2770 (ada_language_data): Delete la_iterate_over_symbols initializer.
2771 * c-lang.c (c_language_data): Likewise.
2772 (cplus_language_data): Likewise.
2773 (asm_language_data): Likewise.
2774 (minimal_language_data): Likewise.
2775 * d-lang.c (d_language_data): Likewise.
2776 * f-lang.c (f_language_data): Likewise.
2777 * go-lang.c (go_language_data): Likewise.
2778 * language.c (unknown_language_data): Likewise.
2779 (auto_language_data): Likewise.
2780 * language.h (language_data): Delete la_iterate_over_symbols field.
2781 (language_defn::iterate_over_symbols): New member function.
2782 (LA_ITERATE_OVER_SYMBOLS): Update.
2783 * linespec.c (iterate_over_all_matching_symtabs): Update.
2784 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2785 initializer.
2786 * objc-lang.c (objc_language_data): Likewise.
2787 * opencl-lang.c (opencl_language_data): Likewise.
2788 * p-lang.c (pascal_language_data): Likewise.
2789 * rust-lang.c (rust_language_data): Likewise.
2790
54f4ca46
AB
27912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2792
2793 * ada-lang.c (ada_language_data): Delete
2794 la_lookup_transparent_type initializer.
2795 * c-lang.c (c_language_data): Likewise.
2796 (cplus_language_data): Likewise.
2797 (cplus_language::lookup_transparent_type): New member function.
2798 (asm_language_data): Delete la_lookup_transparent_type
2799 initializer.
2800 (minimal_language_data): Likewise.
2801 * d-lang.c (d_language_data): Likewise.
2802 * f-lang.c (f_language_data): Likewise.
2803 * go-lang.c (go_language_data): Likewise.
2804 * language.c (unknown_language_data): Likewise.
2805 (auto_language_data): Likewise.
2806 * language.h (struct language_data): Delete
2807 la_lookup_transparent_type field.
2808 (language_defn::lookup_transparent_type): New member function.
2809 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2810 initializer.
2811 * objc-lang.c (objc_language_data): Likewise.
2812 * opencl-lang.c (opencl_language_data): Likewise.
2813 * p-lang.c (pascal_language_data): Likewise.
2814 * rust-lang.c (rust_language_data): Likewise.
2815 * symtab.c (symbol_matches_domain): Update call.
2816
1fb314aa
AB
28172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2818
2819 * ada-lang.c (ada_language_arch_info): Delete function, move
2820 implementation to...
2821 (ada_language::language_arch_info): ...here, a new member
2822 function.
2823 (ada_language_data): Delete la_language_arch_info.
2824 * c-lang.c (c_language_data): Likewise.
2825 (c_language::language_arch_info): New member function.
2826 (cplus_language_arch_info): Delete function, move
2827 implementation to...
2828 (cplus_language::language_arch_info): ...here, a new member
2829 function.
2830 (cplus_language_data): Delete la_language_arch_info.
2831 (asm_language_data): Likewise.
2832 (asm_language::language_arch_info): New member function.
2833 (minimal_language_data): Delete la_language_arch_info.
2834 (minimal_language::language_arch_info): New member function.
2835 * d-lang.c (d_language_arch_info): Delete function, move
2836 implementation to...
2837 (d_language::language_arch_info): ...here, a new member
2838 function.
2839 (d_language_data): Delete la_language_arch_info.
2840 * f-lang.c (f_language_arch_info): Delete function, move
2841 implementation to...
2842 (f_language::language_arch_info): ...here, a new member
2843 function.
2844 (f_language_data): Delete la_language_arch_info.
2845 * go-lang.c (go_language_arch_info): Delete function, move
2846 implementation to...
2847 (go_language::language_arch_info): ...here, a new member
2848 function.
2849 (go_language_data): Delete la_language_arch_info.
2850 * language.c (unknown_language_data): Likewise.
2851 (unknown_language::language_arch_info): New member function.
2852 (auto_language_data): Delete la_language_arch_info.
2853 (auto_language::language_arch_info): New member function.
2854 (language_gdbarch_post_init): Update call to
2855 la_language_arch_info.
2856 * language.h (language_data): Delete la_language_arch_info
2857 function pointer.
2858 (language_defn::language_arch_info): New function.
2859 * m2-lang.c (m2_language_arch_info): Delete function, move
2860 implementation to...
2861 (m2_language::language_arch_info): ...here, a new member
2862 function.
2863 (m2_language_data): Delete la_language_arch_info.
2864 * objc-lang.c (objc_language_arch_info): Delete function, move
2865 implementation to...
2866 (objc_language::language_arch_info): ...here, a new member
2867 function.
2868 (objc_language_data): Delete la_language_arch_info.
2869 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2870 implementation to...
2871 (opencl_language::language_arch_info): ...here, a new member
2872 function.
2873 (opencl_language_data): Delete la_language_arch_info.
2874 * p-lang.c (pascal_language_arch_info): Delete function, move
2875 implementation to...
2876 (pascal_language::language_arch_info): ...here, a new member
2877 function.
2878 (pascal_language_data): Delete la_language_arch_info.
2879 * rust-lang.c (rust_language_arch_info): Delete function, move
2880 implementation to...
2881 (rust_language::language_arch_info): ...here, a new member
2882 function.
2883 (rust_language_data): Delete la_language_arch_info.
2884
48448202
AB
28852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2888 initializer.
2889 * c-lang.c (c_language_data): Likewise.
2890 (cplus_language_data): Likewise.
2891 (cplus_language::pass_by_reference_info): New method.
2892 (asm_language_data): Delete la_pass_by_reference initializer.
2893 (minimal_language_data): Likewise.
2894 * cp-abi.c (cp_pass_by_reference): Remove use of
2895 default_pass_by_reference.
2896 * d-lang.c (d_language_data): Likewise.
2897 * f-lang.c (f_language_data): Likewise.
2898 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2899 default_pass_by_reference.
2900 * go-lang.c (go_language_data): Likewise.
2901 * language.c (language_pass_by_reference): Update.
2902 (default_pass_by_reference): Delete.
2903 (unknown_language_data): Delete la_pass_by_reference
2904 initializer.
2905 (auto_language_data): Likewise.
2906 * language.h (struct language_data): Delete la_pass_by_reference
2907 field.
2908 (language_defn::pass_by_reference_info): New member function.
2909 (default_pass_by_reference): Delete declaration.
2910 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2911 initializer.
2912 * objc-lang.c (objc_language_data): Likewise.
2913 * opencl-lang.c (opencl_language_data): Likewise.
2914 * p-lang.c (pascal_language_data): Likewise.
2915 * rust-lang.c (rust_language_data): Likewise.
2916
15e5fd35
AB
29172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * ada-lang.c (ada_read_var_value): Delete function, move
2920 implementation to...
2921 (ada_language::read_var_value): ...here.
2922 (ada_language_data): Delete la_read_var_value initializer.
2923 * c-lang.c (c_language_data): Likewise.
2924 (cplus_language_data): Likewise.
2925 (minimal_language_data): Likewise.
2926 * d-lang.c (d_language_data): Likewise.
2927 * f-lang.c (f_language_data): Likewise.
2928 * findvar.c (default_read_var_value): Rename to...
2929 (language_defn::read_var_value): ...this.
2930 * findvar.c (read_var_value): Update header comment, and change to
2931 call member function instead of function pointer.
2932 * go-lang.c (go_language_data): Likewise.
2933 * language.c (unknown_language_data): Delete la_read_var_value
2934 initializer.
2935 (auto_language_data): Likewise.
2936 * language.h (struct language_data): Delete la_read_var_value
2937 field.
2938 (language_defn::read_var_value): New member function.
2939 (default_read_var_value): Delete declaration.
2940 * m2-lang.c (m2_language_data): Delete la_read_var_value
2941 initializer.
2942 * objc-lang.c (objc_language_data): Likewise.
2943 * opencl-lang.c (opencl_language_data): Likewise.
2944 * p-lang.c (pascal_language_data): Likewise.
2945 * rust-lang.c (rust_language_data): Likewise.
2946 * value.h (default_read_var_value): Delete declaration.
2947
5bd40f2a
AB
29482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2949
2950 * ada-lang.c (ada_print_array_index): Delete function, move
2951 implementation to...
2952 (ada_language::print_array_index): ...here.
2953 (ada_language_data): Delete la_print_array_index initializer.
2954 * c-lang.c (c_language_data): Likewise.
2955 (cplus_language_data): Likewise.
2956 (minimal_language_data): Likewise.
2957 * d-lang.c (d_language_data): Likewise.
2958 * f-lang.c (f_language_data): Likewise.
2959 * go-lang.c (go_language_data): Likewise.
2960 * language.c (default_print_array_index): Delete function, move
2961 implementation to...
2962 (language_defn::print_array_index): ...here.
2963 (unknown_language_data): Delete la_print_array_index initializer.
2964 (auto_language_data): Likewise.
2965 * language.h (struct language_data): Delete la_print_array_index
2966 field.
2967 (language_defn::print_array_index): New member function.
2968 (LA_PRINT_ARRAY_INDEX): Update.
2969 (default_print_array_index): Delete declaration.
2970 * m2-lang.c (m2_language_data): Delete la_print_array_index
2971 initializer.
2972 * objc-lang.c (objc_language_data): Likewise.
2973 * opencl-lang.c (opencl_language_data): Likewise.
2974 * p-lang.c (pascal_language_data): Likewise.
2975 * rust-lang.c (rust_language_data): Likewise.
2976
0874fd07
AB
29772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * gdb/ada-lang.c (ada_language_defn): Convert to...
2980 (ada_language_data): ...this.
2981 (class ada_language): New class.
2982 (ada_language_defn): New static global.
2983 * gdb/c-lang.c (c_language_defn): Convert to...
2984 (c_language_data): ...this.
2985 (class c_language): New class.
2986 (c_language_defn): New static global.
2987 (cplus_language_defn): Convert to...
2988 (cplus_language_data): ...this.
2989 (class cplus_language): New class.
2990 (cplus_language_defn): New static global.
2991 (asm_language_defn): Convert to...
2992 (asm_language_data): ...this.
2993 (class asm_language): New class.
2994 (asm_language_defn): New static global.
2995 (minimal_language_defn): Convert to...
2996 (minimal_language_data): ...this.
2997 (class minimal_language): New class.
2998 (minimal_language_defn): New static global.
2999 * gdb/d-lang.c (d_language_defn): Convert to...
3000 (d_language_data): ...this.
3001 (class d_language): New class.
3002 (d_language_defn): New static global.
3003 * gdb/f-lang.c (f_language_defn): Convert to...
3004 (f_language_data): ...this.
3005 (class f_language): New class.
3006 (f_language_defn): New static global.
3007 * gdb/go-lang.c (go_language_defn): Convert to...
3008 (go_language_data): ...this.
3009 (class go_language): New class.
3010 (go_language_defn): New static global.
3011 * gdb/language.c (unknown_language_defn): Remove declaration.
3012 (current_language): Initialize to nullptr, real initialization is
3013 moved to _initialize_language.
3014 (languages): Delete global.
3015 (language_defn::languages): Define.
3016 (set_language_command): Use language_defn::languages.
3017 (set_language): Likewise.
3018 (range_error): Likewise.
3019 (language_enum): Likewise.
3020 (language_def): Likewise.
3021 (add_set_language_command): Use language_def::languages for the
3022 language list, and language_def to lookup language pointers.
3023 (skip_language_trampoline): Use language_defn::languages.
3024 (unknown_language_defn): Convert to...
3025 (unknown_language_data): ...this.
3026 (class unknown_language): New class.
3027 (unknown_language_defn): New static global.
3028 (auto_language_defn): Convert to...
3029 (auto_language_data): ...this.
3030 (class auto_language): New class.
3031 (auto_language_defn): New static global.
3032 (language_gdbarch_post_init): Use language_defn::languages.
3033 (_initialize_language): Initialize current_language.
3034 * gdb/language.h (struct language_defn): Rename to...
3035 (struct language_data): ...this.
3036 (struct language_defn): New.
3037 (auto_language_defn): Delete.
3038 (unknown_language_defn): Delete.
3039 (minimal_language_defn): Delete.
3040 (ada_language_defn): Delete.
3041 (asm_language_defn): Delete.
3042 (c_language_defn): Delete.
3043 (cplus_language_defn): Delete.
3044 (d_language_defn): Delete.
3045 (f_language_defn): Delete.
3046 (go_language_defn): Delete.
3047 (m2_language_defn): Delete.
3048 (objc_language_defn): Delete.
3049 (opencl_language_defn): Delete.
3050 (pascal_language_defn): Delete.
3051 (rust_language_defn): Delete.
3052 * gdb/m2-lang.c (m2_language_defn): Convert to...
3053 (m2_language_data): ...this.
3054 (class m2_language): New class.
3055 (m2_language_defn): New static global.
3056 * gdb/objc-lang.c (objc_language_defn): Convert to...
3057 (objc_language_data): ...this.
3058 (class objc_language): New class.
3059 (objc_language_defn): New static global.
3060 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3061 (opencl_language_data): ...this.
3062 (class opencl_language): New class.
3063 (opencl_language_defn): New static global.
3064 * gdb/p-lang.c (pascal_language_defn): Convert to...
3065 (pascal_language_data): ...this.
3066 (class pascal_language): New class.
3067 (pascal_language_defn): New static global.
3068 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3069 language pointer, update comment format.
3070 * gdb/rust-lang.c (rust_language_defn): Convert to...
3071 (rust_language_data): ...this.
3072 (class rust_language): New class.
3073 (rust_language_defn): New static global.
3074
1313c56e
AB
30752020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3076
3077 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3078 member variable.
3079 <m_stmt_at_address>: New member variable.
3080 (lnp_state_machine::record_line): Don't record some lines, update
3081 tracking of is_stmt at the same address.
3082 (lnp_state_machine::lnp_state_machine): Initialise new member
3083 variables.
3084
b7ed9f3d
ST
30852020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3086
3087 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3088 "-include gnu-nat-mig.h".
3089 * gnu-nat-mig.h: New file.
3090 * gnu-nat.c: Include "gnu-nat-mig.h".
3091 (exc_server, msg_reply_server, notify_server,
3092 process_reply_server): Remove declarations.
3093
14a8ad62
ST
30942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3095
3096 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3097 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3098 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3099 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3100 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3101 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3102 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3103 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3104 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3105 to gnu_nat_target class.
3106 * gnu-nat.c: Likewise.
3107 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3108 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3109 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3110 object.
3111 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3112 instead of `gnu_target'.
3113
0af5e106
ST
31142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3115
3116 * i386-gnu-tdep.c: Include "gdbcore.h"
3117 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3118 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3119 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3120 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3121 i386_gnu_sigcontext_addr): New functions
3122 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3123 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3124 tdep.
3125
078f2fc9
ST
31262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3127
3128 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3129 before fork_inferior call. Avoid calling it if target_is_pushed returns
3130 true.
3131
53dff92c
ST
31322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3133
3134 * gnu-nat.h (gnu_target): New variable declaration.
3135 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3136 gnu_target.
3137 * gnu-nat.c (gnu_target): New variable.
3138 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3139 add_thread_silent, and add_thread calls.
3140 (gnu_nat_target::create_inferior): Pass gnu_target to
3141 add_thread_silent, thread_change_ptid call.
3142 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3143 call.
3144
5a8b8627
ST
31452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3146
3147 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3148 (gnu_nat_target::find_memory_regions): Remove unused
3149 `old_address' variable.
3150
366f550a
ST
31512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3152
3153 * gnu-nat.c: Include "gdbarch.h".
3154
f14871bf
ST
31552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3156
3157 * reply_mig_hack.awk (Error return): Cast function through
3158 void *, to bypass compiler function call check.
3159
c6887cfb
ST
31602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3161
3162 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3163 $(srcdir)/reply_mig_hack.awk.
3164
6930bffe
ST
31652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3166
3167 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3168
112c22ed
JG
31692020-05-30 Jonny Grant <jg@jguk.org>
3170
3171 * configure.ac (ACX_BUGURL): change bug URL to https.
3172
f68f85b5
PA
31732020-05-30 Pedro Alves <palves@redhat.com>
3174
3175 * cp-support.c (replace_typedefs_template): New.
3176 (replace_typedefs_qualified_name): Handle
3177 DEMANGLE_COMPONENT_TEMPLATE.
3178
976ca316
SM
31792020-05-29 Simon Marchi <simon.marchi@efficios.com>
3180
3181 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3182 dwarf2/index-cache.h, dwarf2/index-write.c,
3183 dwarf2/index-write.h, dwarf2/line-header.c,
3184 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3185 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3186 variables and fields from `dwarf2_per_objfile` to just
3187 `per_objfile` throughout.
3188
989ade05
SM
31892020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3190
3191 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3192 <push_dwarf_reg_entry_value>: Add comment.
3193
c47bae85
KB
31942020-05-28 Kevin Buettner <kevinb@redhat.com>
3195 Keith Seitz <keiths@redhat.com>
3196
3197 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3198 instead of PyEval_ReleaseLock.
3199 (class gdbpy_gil): Move to earlier in file.
3200 (finalize_python): Set gdb_python_initialized.
3201 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3202 when not initialized.
3203
44486dcf
SM
32042020-05-28 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3207 <push_dwarf_reg_entry_value>: Remove assert. Override
3208 per_objfile with caller_per_objfile.
3209
f030440d
TV
32102020-05-28 Tom de Vries <tdevries@suse.de>
3211
3212 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3213 PR gold/15646 workaround to symbol kind "type".
3214
f0fbb768
TT
32152020-05-27 Tom Tromey <tromey@adacore.com>
3216
3217 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3218
af0b2a3e
TT
32192020-05-27 Tom Tromey <tromey@adacore.com>
3220
3221 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3222 Use htab_find_with_hash.
3223 <add_abbrev>: Remove "abbrev_number" parameter.
3224 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3225 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3226 (hash_abbrev): Add comment.
3227 (abbrev_table::lookup_abbrev): Move to header file.
3228 (abbrev_table::read): Update.
3229
7d00ffec
TT
32302020-05-27 Tom Tromey <tromey@adacore.com>
3231
3232 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3233 method.
3234 <canonical_name>: New member.
3235 <raw_name>: Rename from "name".
3236 (partial_die_info): Initialize canonical_name.
3237 (scan_partial_symbols): Check raw_name.
3238 (partial_die_parent_scope, partial_die_full_name)
3239 (add_partial_symbol, add_partial_subprogram)
3240 (add_partial_enumeration, load_partial_dies): Use "name" method.
3241 (partial_die_info::name): New method.
3242 (partial_die_info::read, guess_partial_die_structure_name)
3243 (partial_die_info::fixup): Update.
3244
697bba18
TT
32452020-05-27 Tom Tromey <tromey@adacore.com>
3246
3247 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3248 <get_ref_die_offset>: Inline.
3249 <get_ref_die_offset_complaint>: New method.
3250 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3251 (attribute::get_ref_die_offset_complaint): Rename from
3252 get_ref_die_offset. Just issue complaint.
3253
c17ace43
HD
32542020-05-27 Hannes Domani <ssbssa@yahoo.de>
3255
3256 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3257
96445f0b
HD
32582020-05-27 Hannes Domani <ssbssa@yahoo.de>
3259
3260 * exec.c (exec_file_attach): Use errno value of first openp failure.
3261
ac637ec3
HD
32622020-05-27 Hannes Domani <ssbssa@yahoo.de>
3263
3264 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3265 Don't close thread handle.
3266
17ee85fc
TT
32672020-05-27 Tom Tromey <tom@tromey.com>
3268 Simon Marchi <simon.marchi@efficios.com>
3269
3270 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3271 shared_ptr.
3272 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3273 member.
3274 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3275 dwarf2_per_bfd_objfile_data_key>: New globals.
3276 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3277 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3278 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3279 shared.
3280 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3281 short-circuit when sharing.
3282 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3283 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3284
39b16f87
SM
32852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3286
3287 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3288 to...
3289 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3290 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3291
fcf23d5b
SM
32922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3293
3294 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3295 build_name_components, find_name_components_bounds>:
3296 Add per_objfile parameter.
3297 (struct mapped_index) <symbol_name_at>: Likewise.
3298 (struct mapped_debug_names): Remove constructor.
3299 <dwarf2_per_objfile>: Remove field.
3300 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3301 (mapped_index_base::find_name_components_bounds,
3302 mapped_index_base::build_name_components,
3303 dw2_expand_symtabs_matching_symbol): Likewise.
3304 (class mock_mapped_index) <symbol_name_at>: Likewise.
3305 (check_match): Likewise.
3306 (check_find_bounds_finds): Likewise.
3307 (test_mapped_index_find_name_component_bounds): Update.
3308 (CHECK_MATCH): Update.
3309 (dw2_expand_symtabs_matching): Update.
3310 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3311 per_objfile parameter.
3312 <find_vec_in_debug_names>: Likewise.
3313 <m_per_objfile>: New field.
3314 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3315 parameter.
3316 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3317 (dw2_debug_names_iterator::next): Update.
3318 (dw2_debug_names_lookup_symbol): Update.
3319 (dw2_debug_names_expand_symtabs_for_function): Update.
3320 (dw2_debug_names_map_matching_symbols): Update.
3321 (dw2_debug_names_expand_symtabs_matching): Update.
3322 (dwarf2_read_debug_names): Update.
3323
7188ed02
SM
33242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3325
3326 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3327 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3328 move to dwarf2_per_objfile.
3329 <read_in_chain>: Remove.
3330 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3331 remove_all_cus, age_comp_units>: New methods.
3332 <m_dwarf2_cus>: New member.
3333 (struct dwarf2_per_cu_data) <cu>: Remove.
3334 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3335 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3336 moved to methods of dwarf2_per_objfile.
3337 (dwarf2_clear_marks): Remove.
3338 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3339 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3340 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3341 (dwarf2_per_objfile::remove_all_cus): New.
3342 (class free_cached_comp_units) <~free_cached_comp_units>:
3343 Update.
3344 (load_cu): Update.
3345 (dw2_do_instantiate_symtab): Adjust.
3346 (fill_in_sig_entry_from_dwo_entry): Adjust.
3347 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3348 (cutu_reader::cutu_reader): Likewise.
3349 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3350 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3351 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3352 and dwarf2_per_objfile::age_comp_units.
3353 (load_partial_comp_unit): Update.
3354 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3355 (process_queue): Likewise.
3356 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3357 backlink.
3358 (dwarf2_read_addr_index): Likewise.
3359 (follow_die_offset): Likewise.
3360 (dwarf2_fetch_die_loc_sect_off): Likewise.
3361 (dwarf2_fetch_constant_bytes): Likewise.
3362 (dwarf2_fetch_die_type_sect_off): Likewise.
3363 (follow_die_sig_1): Likewise.
3364 (load_full_type_unit): Likewise.
3365 (read_signatured_type): Likewise.
3366 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3367 (dwarf2_cu::~dwarf2_cu): Remove.
3368 (dwarf2_per_objfile::get_cu): New.
3369 (dwarf2_per_objfile::set_cu): New.
3370 (age_cached_comp_units): Rename to...
3371 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3372 to std::unordered_map.
3373 (free_one_cached_comp_unit): Rename to...
3374 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3375 to std::unordered_map.
3376 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3377 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3378 a dwarf2_per_objfile in data.
3379 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3380 (dwarf2_clear_marks): Remove.
3381
2e671100
SM
33822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3385 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3386 (init_tu_and_read_dwo_dies): Likewise.
3387 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3388 (cutu_reader::cutu_reader): Likewise.
3389 (load_partial_comp_unit): Likewise.
3390 (process_psymtab_comp_unit): Update.
3391 (build_type_psymtabs_1): Update.
3392 (process_skeletonless_type_unit): Update.
3393 (load_full_comp_unit): Update.
3394 (find_partial_die): Update.
3395 (dwarf2_read_addr_index): Update.
3396 (read_signatured_type): Update.
3397
2e6a9f79
SM
33982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3399
3400 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3401 m_header_read_in>: New fields.
3402 <get_header>: New method.
3403 * dwarf2/read.c (per_cu_header_read_in): Remove.
3404 (dwarf2_per_cu_data::get_header): New.
3405 (dwarf2_per_cu_data::addr_size): Update.
3406 (dwarf2_per_cu_data::offset_size): Update.
3407 (dwarf2_per_cu_data::ref_addr_size): Update.
3408
1b555f17
SM
34092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3410
3411 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3412 (dw2_do_instantiate_symtab): Update.
3413 (queue_and_load_all_dwo_tus): Change parameter from
3414 dwarf2_per_cu_data to dwarf2_cu.
3415 (dwarf2_fetch_die_loc_sect_off): Update.
3416 (dwarf2_fetch_constant_bytes): Update.
3417 (dwarf2_fetch_die_type_sect_off): Update.
3418
8fc0b21d
SM
34192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3420
3421 * dwarf2/read.c (process_full_comp_unit,
3422 process_full_type_unit): Remove per_cu, per_objfile paramters.
3423 Add dwarf2_cu parameter.
3424 (process_queue): Update.
3425
168c9250
SM
34262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3427
3428 * dwarf2/read.c (create_cu_from_index_list): Replace
3429 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3430 (create_cus_from_index_list): Likewise.
3431 (create_cus_from_index): Likewise.
3432 (create_signatured_type_table_from_index): Likewise.
3433 (create_cus_from_debug_names_list): Likewise.
3434 (create_cus_from_debug_names): Likewise.
3435 (dwarf2_read_gdb_index): Update.
3436 (dwarf2_read_debug_names): Update.
3437
e286671b
TT
34382020-05-27 Tom Tromey <tom@tromey.com>
3439 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * dwarf2/read.h (struct dwarf2_per_objfile)
3442 <get_type_for_signatured_type, set_type_for_signatured_type>:
3443 New methods.
3444 <m_type_map>: New member.
3445 (struct signatured_type) <type>: Remove.
3446 * dwarf2/read.c
3447 (dwarf2_per_objfile::get_type_for_signatured_type,
3448 dwarf2_per_objfile::set_type_for_signatured_type): New.
3449 (get_signatured_type): Use new methods.
3450
8adb8487
TT
34512020-05-27 Tom Tromey <tom@tromey.com>
3452 Simon Marchi <simon.marchi@efficios.com>
3453
3454 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3455 (struct dwarf2_per_objfile) <type_units>: New member.
3456 <get_type_unit_group_unshareable>: New method.
3457 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3458 num_symtabs, symtabs>: Remove; move to
3459 type_unit_group_unshareable.
3460 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3461 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3462 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3463
127bbf4b
SM
34642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * dwarf2/read.h (struct dwarf2_per_cu_data):
3467 <dwarf2_per_objfile>: Remove.
3468 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3469 dwarf2_per_objfile.
3470 (create_signatured_type_table_from_index): Likewise.
3471 (create_signatured_type_table_from_debug_names): Likewise.
3472 (create_debug_type_hash_table): Likewise.
3473 (fill_in_sig_entry_from_dwo_entry): Likewise.
3474 (create_type_unit_group): Likewise.
3475 (read_comp_units_from_section): Likewise.
3476 (create_cus_hash_table): Likewise.
3477
f6e649dd
SM
34782020-05-27 Simon Marchi <simon.marchi@efficios.com>
3479
3480 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3481 dwarf2_per_cu_data::dwarf2_per_objfile.
3482 (compute_compunit_symtab_includes): Likewise.
3483 (dwarf2_cu::start_symtab): Likewise.
3484
aa66c379
SM
34852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3486
3487 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3488 parameter.
3489 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3490 (read_namespace_alias): Update.
3491 (lookup_die_type): Update.
3492 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3493 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3494 Update.
3495 (disassemble_dwarf_expression): Update.
3496
120ce1b5
SM
34972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * dwarf2/read.h (struct dwarf2_queue_item): Add
3500 dwarf2_per_objfile parameter, assign new parameter.
3501 <per_objfile>: New field.
3502 * dwarf2/read.c (free_one_cached_comp_unit): Add
3503 dwarf2_per_objfile parameter.
3504 (queue_comp_unit): Likewise.
3505 (dw2_do_instantiate_symtab): Update.
3506 (process_psymtab_comp_unit): Update.
3507 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3508 (process_imported_unit_die): Update.
3509 (queue_and_load_dwo_tu): Update.
3510 (follow_die_offset): Update.
3511 (follow_die_sig_1): Update.
3512
9f47c707
SM
35132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3514
3515 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3516 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3517 (read_call_site_scope): Assign per_objfile.
3518 (dwarf2_per_cu_data::objfile): Remove.
3519 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3520 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3521 dwarf2_per_objfile parameter.
3522 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3523 dwarf2_per_objfile parameter.
3524 (dwarf_expr_reg_to_entry_parameter): Add output
3525 dwarf2_per_objfile parameter.
3526 (locexpr_get_frame_base): Update.
3527 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3528 <push_dwarf_reg_entry_value>: Update.
3529 <call_site_to_target_addr>: Update.
3530 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3531 parameter.
3532 (value_of_dwarf_reg_entry): Update.
3533 (rw_pieced_value): Update.
3534 (indirect_synthetic_pointer): Update.
3535 (dwarf2_evaluate_property): Update.
3536 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3537 parameter.
3538 (locexpr_read_variable): Update.
3539 (locexpr_get_symbol_read_needs): Update.
3540 (loclist_read_variable): Update.
3541
14095eb3
SM
35422020-05-27 Simon Marchi <simon.marchi@efficios.com>
3543
3544 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
3549 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3550 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3551 parameter.
3552 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3553 sect_variable_value): Add dwarf2_per_objfile parameter.
3554 (class dwarf_evaluate_loc_desc) <dwarf_call,
3555 dwarf_variable_value>: Update.
3556 (fetch_const_value_from_synthetic_pointer): Add
3557 dwarf2_per_objfile parameter.
3558 (fetch_const_value_from_synthetic_pointer): Update.
3559 (coerced_pieced_ref): Update.
3560 (class symbol_needs_eval_context) <dwarf_call,
3561 dwarf_variable_value>: Update.
3562 (dwarf2_compile_expr_to_ax): Update.
3563
3c3cd3d4
SM
35642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3565
3566 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3567 parameter.
3568 (dwarf2_evaluate_loc_desc_full): Update.
3569
82ca3f51
SM
35702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3573 parameter.
3574 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3575 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3576 dwarf2_per_objfile parameter.
3577 (decode_debug_loc_dwo_addresses): Likewise.
3578 (dwarf2_find_location_expression): Update.
3579 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3580 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3581 parameter.
3582 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3583 parameter.
3584 (locexpr_describe_location_1): Likewise.
3585 (locexpr_describe_location): Update.
3586
4b167ea1
SM
35872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3588
3589 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3590 Remove.
3591 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3592 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3593 (dwarf2_compile_property_to_c): Update.
3594 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3595 use text offset from objfile.
3596 (locexpr_tracepoint_var_ref): Update.
3597 (locexpr_generate_c_location): Update.
3598 (loclist_describe_location): Update.
3599 (loclist_tracepoint_var_ref): Update.
3600 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3601 dwarf2_per_objfile parameter.
3602 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3603 use text offset from objfile.
3604 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3605
89b07335
SM
36062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3607
3608 * dwarf2/expr.h (struct dwarf_expr_context)
3609 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3610 <offset>: Remove.
3611 <per_objfile>: New member.
3612 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3613 dwarf2_per_objfile parameter. Don't set offset, set
3614 per_objfile.
3615 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3616 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3617 a dwarf2_per_objfile object instead of an offset.
3618 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3619 constructor.
3620 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3621 to dwarf2_expr_executor constructor. Don't set offset.
3622 (dwarf2_fetch_cfa_info): Update.
3623 (struct dwarf2_frame_cache) <text_offset>: Remove.
3624 <per_objfile>: New field.
3625 (dwarf2_frame_cache): Update.
3626 (dwarf2_frame_prev_register): Update.
3627 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3628 <dwarf_evaluate_loc_desc>: Add constructor.
3629 (dwarf2_evaluate_loc_desc_full): Update.
3630 (dwarf2_locexpr_baton_eval): Update.
3631 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3632 Add constructor.
3633 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3634
293e7e51
SM
36352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3636
3637 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3638 addr_sized_int_type>: Move to dwarf2_cu.
3639 <int_type>: Move to dwarf2_per_objfile.
3640 (struct dwarf2_per_objfile) <int_type>: Move here.
3641 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3642 addr_sized_int_type>: Move here.
3643 (read_func_scope): Update.
3644 (read_array_type): Update.
3645 (read_tag_string_type): Update.
3646 (attr_to_dynamic_prop): Update.
3647 (dwarf2_per_cu_data::int_type): Rename to...
3648 (dwarf2_per_objfile::int_type): ... this.
3649 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3650 (dwarf2_cu::addr_sized_int_type): ... this.
3651 (read_subrange_type): Update.
3652 (dwarf2_per_cu_data::addr_type): Rename to...
3653 (dwarf2_cu::addr_type): ... this.
3654 (set_die_type): Update.
3655
64874a40
SM
36562020-05-27 Simon Marchi <simon.marchi@efficios.com>
3657
3658 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3659 data through per_cu->cu.
3660
4ab09049
SM
36612020-05-27 Simon Marchi <simon.marchi@efficios.com>
3662
3663 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3664 dwarf2_per_cu_data parameter fo dwarf2_cu.
3665 (lookup_dwo_type_unit): Likewise.
3666 (read_cutu_die_from_dwo): Likewise.
3667 (lookup_dwo_unit): Likewise.
3668 (open_and_init_dwo_file): Likewise.
3669 (lookup_dwo_cutu): Likewise.
3670 (lookup_dwo_comp_unit): Likewise.
3671 (lookup_dwo_type_unit): Likewise.
3672 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3673 (cutu_reader::cutu_reader): Update.
3674
47b14e86
SM
36752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3676
3677 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3678 parameter.
3679 (process_full_type_unit): Likewise.
3680 (process_queue): Update.
3681
43182c09
SM
36822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3683
3684 * dwarf2/read.c (recursively_compute_inclusions): Add
3685 dwarf2_per_objfile parameter.
3686 (compute_compunit_symtab_includes): Likewise.
3687 (process_cu_includes): Update.
3688
7aa104c4
SM
36892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3690
3691 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3692 parameter.
3693 (create_type_unit_group): Update.
3694 (process_psymtab_comp_unit_reader): Update.
3695 (build_type_psymtabs_reader): Update.
3696
e3beb21d
SM
36972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3698
3699 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3700 object through m_this_cu->cu.
3701
d460f660
SM
37022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3703
3704 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3705 the info parameter.
3706 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3707
ab432490
SM
37082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3709
3710 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3711 per_objfile parameter.
3712 (load_full_type_unit): Add per_objfile parameter.
3713 (read_signatured_type): Likewise.
3714 (load_full_comp_unit): Likewise.
3715 (load_cu): Likewise.
3716 (dw2_do_instantiate_symtab): Likewise.
3717 (dw2_get_file_names): Likewise.
3718 (dw2_map_symtabs_matching_filename): Update.
3719 (dw_expand_symtabs_matching_file_matcher): Update.
3720 (dw2_map_symbol_filenames): Update.
3721 (process_psymtab_comp_unit): Add per_objfile parameter.
3722 (build_type_psymtabs_1): Update.
3723 (process_skeletonless_type_unit): Update.
3724 (dwarf2_build_psymtabs_hard): Update.
3725 (load_partial_comp_unit): Add per_objfile parameter.
3726 (scan_partial_symbols): Update.
3727 (load_full_comp_unit): Add per_objfile parameter.
3728 (process_imported_unit_die): Update.
3729 (create_cus_hash_table): Update.
3730 (find_partial_die): Update.
3731 (dwarf2_read_addr_index): Update.
3732 (follow_die_offset): Update.
3733 (dwarf2_fetch_die_loc_sect_off): Update.
3734 (dwarf2_fetch_constant_bytes): Update.
3735 (dwarf2_fetch_die_type_sect_off): Update.
3736 (follow_die_sig_1): Update.
3737 (load_full_type_unit): Add per_objfile parameter.
3738 (read_signatured_type): Likewise.
3739
313bad1b
SM
37402020-05-27 Simon Marchi <simon.marchi@efficios.com>
3741
3742 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3743 of objfile_name.
3744
c3699833
SM
37452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3746
3747 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3748 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3749 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3750 field.
3751 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3752 (create_cus_from_index): Update.
3753 (dwarf2_read_gdb_index): Update.
3754 (create_cus_from_debug_names): Update.
3755 (dwarf2_read_debug_names): Update.
3756 (get_abbrev_section_for_cu): Update.
3757 (create_all_comp_units): Update.
3758 (read_attribute_value): Update.
3759 (get_debug_line_section): Update.
3760 * dwarf2/index-cache.c (index_cache::store): Update.
3761 * dwarf2/index-write.c (save_gdb_index_command): Update.
3762 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3763
1859c670
SM
37642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3765
3766 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3767 member.
3768 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3769 dwarf2_per_cu_data::per_bfd.
3770 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3771 (create_type_unit_group): Likewise.
3772 (queue_comp_unit): Remove reference to
3773 per_cu->dwarf2_per_objfile.
3774 (maybe_queue_comp_unit): Likewise.
3775 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3776 (create_cus_hash_table): Assign new field.
3777
5e22e966
SM
37782020-05-27 Simon Marchi <simon.marchi@efficios.com>
3779
3780 * dwarf2/read.c: Replace
3781 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3782 dwarf2_cu->per_objfile throughout.
3783
97a1449a
SM
37842020-05-27 Simon Marchi <simon.marchi@efficios.com>
3785
3786 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3787 parameter, don't use per_cu->dwarf2_per_objfile.
3788 (dw2_instantiate_symtab): Likewise.
3789 (dw2_find_last_source_symtab): Update.
3790 (dw2_map_expand_apply): Update.
3791 (dw2_lookup_symbol): Update.
3792 (dw2_expand_symtabs_for_function): Update.
3793 (dw2_expand_all_symtabs): Update.
3794 (dw2_expand_symtabs_with_fullname): Update.
3795 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3796 don't use per_cu->dwarf2_per_objfile.
3797 (dw2_expand_marked_cus): Update.
3798 (dw2_find_pc_sect_compunit_symtab): Update.
3799 (dw2_debug_names_lookup_symbol): Update.
3800 (dw2_debug_names_expand_symtabs_for_function): Update.
3801 (dw2_debug_names_map_matching_symbols): Update.
3802 (dwarf2_psymtab::expand_psymtab): Update.
3803
9e021579
SM
38042020-05-27 Simon Marchi <simon.marchi@efficios.com>
3805
3806 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3807 <per_objfile>: New member.
3808 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3809 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3810 call to dwarf2_cu.
3811 (cutu_reader::cutu_reader): Update.
3812 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3813
ae090bdb
SM
38142020-05-27 Simon Marchi <simon.marchi@efficios.com>
3815
3816 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3817 struct dwarf2_per_objfile.
3818 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3819 dwarf2_per_bfd.
3820 * dwarf2/read.c (set_die_type): Update.
3821 (get_die_type_at_offset): Update.
3822
af758d11
SM
38232020-05-27 Tom Tromey <tom@tromey.com>
3824 Simon Marchi <simon.marchi@efficios.com>
3825
3826 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3827 method.
3828 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3829 get_symtab, set_symtab>: New methods.
3830 <m_symtabs>: New field.
3831 (struct dwarf2_psymtab): Derive from partial_symtab.
3832 <readin_p, get_compunit_symtab>: Declare methods.
3833 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3834 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3835 New methods.
3836 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3837 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3838 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3839 (dw2_symtab_iter_next, dw2_print_stats)
3840 (dw2_expand_symtabs_with_fullname)
3841 (dw2_expand_symtabs_matching_one)
3842 (dw_expand_symtabs_matching_file_matcher)
3843 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3844 (dw2_debug_names_iterator::next)
3845 (dw2_debug_names_map_matching_symbols)
3846 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3847 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3848 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3849 New methods.
3850 (get_compunit_symtab, process_full_comp_unit)
3851 (process_full_type_unit): Update.
3852 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3853
5989a64e
SM
38542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3855
3856 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3857 then introduce a new dwarf2_per_objfile type.
3858 <read_line_string>: Move to the new dwarf2_per_objfile type.
3859 <objfile>: Likewise.
3860 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3861 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3862 dwarf2_per_objfile->per_bfd.
3863 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3864 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3865 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3866 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3867 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3868 (dwarf2_per_objfile::locate_sections): Rename to...
3869 (dwarf2_per_bfd::locate_sections): ... this.
3870 (dwarf2_per_objfile::get_cutu): Rename to...
3871 (dwarf2_per_bfd::get_cutu): ... this.
3872 (dwarf2_per_objfile::get_cu): Rename to...
3873 (dwarf2_per_bfd::get_cu): ... this.
3874 (dwarf2_per_objfile::get_tu): Rename to...
3875 (dwarf2_per_bfd::get_tu): ... this.
3876 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3877 (dwarf2_per_bfd::allocate_per_cu): ... this.
3878 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3879 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3880 (get_gdb_index_contents_ftype): Change parameter from
3881 dwarf2_per_objfile to dwarf2_per_bfd.
3882 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3883 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3884
a50264ba
TT
38852020-05-27 Tom Tromey <tom@tromey.com>
3886 Simon Marchi <simon.marchi@efficios.com>
3887
3888 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3889 (allocate_piece_closure): Set "per_objfile" member.
3890 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3891 (locexpr_describe_location, loclist_describe_location): Use new
3892 member.
3893 * dwarf2/read.c (read_call_site_scope)
3894 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3895 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3896 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3897 handle_data_member_location): Set per_objfile member.
3898 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3899 member.
3900 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3901
d3473f0c
TT
39022020-05-27 Tom Tromey <tom@tromey.com>
3903
3904 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3905 allocate_signatured_type>: Declare new methods.
3906 <m_num_psymtabs>: New member.
3907 (struct dwarf2_per_cu_data) <index>: New member.
3908 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3909 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3910 (create_cu_from_index_list): Use allocate_per_cu.
3911 (create_signatured_type_table_from_index)
3912 (create_signatured_type_table_from_debug_names)
3913 (create_debug_type_hash_table, add_type_unit)
3914 (read_comp_units_from_section): Use allocate_signatured_type.
3915
5717c425
TT
39162020-05-27 Tom Tromey <tom@tromey.com>
3917
3918 * psymtab.c (partial_map_expand_apply)
3919 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3920 (psym_lookup_global_symbol_language)
3921 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3922 (psym_print_stats, psym_expand_symtabs_for_function)
3923 (psym_map_symbol_filenames, psym_map_matching_symbols)
3924 (psym_expand_symtabs_matching)
3925 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3926 (maintenance_check_psymtabs): Update.
3927 * psympriv.h (struct partial_symtab) <readin_p,
3928 get_compunit_symtab>: Add objfile parameter.
3929 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3930 Likewise.
3931 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3932 get_compunit_symtab>: Likewise.
3933 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3934
45940949
TT
39352020-05-27 Tom Tromey <tom@tromey.com>
3936
3937 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3938 member.
3939 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3940 (create_cu_from_index_list)
3941 (create_signatured_type_table_from_index)
3942 (create_signatured_type_table_from_debug_names)
3943 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3944 (dwarf2_create_include_psymtab)
3945 (create_debug_type_hash_table, add_type_unit)
3946 (create_type_unit_group, read_comp_units_from_section)
3947 (dwarf2_compute_name, create_cus_hash_table)
3948 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3949 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3950 obstack.
3951 (dw2_get_real_path): Likewise. Change argument to
3952 dwarf2_per_objfile.
3953
f8c6d152
LM
39542020-05-27 Luis Machado <luis.machado@linaro.org>
3955
3956 PR tdep/26000
3957 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3958 for ldrd (immediate).
3959
e98d2e6d
PW
39602020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3961
3962 * command.h: Add comment giving the name of class_tui.
3963 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3964 create the fake command for the help for class_tui.
3965
53a47a3e
TT
39662020-05-26 Tom Tromey <tromey@adacore.com>
3967
3968 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3969 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3970 (val_atr): New function.
3971 (value_val_atr): Use it.
3972 * ada-valprint.c (print_optional_low_bound): Change low bound
3973 handling for enums.
3974 (val_print_packed_array_elements): Don't call discrete_position.
3975 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3976 discrete_position for enum types.
3977 * language.c (default_print_array_index): Change type.
3978 * language.h (struct language_defn) <la_print_array_index>: Add
3979 index_type parameter, change type of index_value.
3980 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3981 (default_print_array_index): Update.
3982 * valprint.c (maybe_print_array_index): Don't call
3983 value_from_longest. Update.
3984 (value_print_array_elements): Don't call discrete_position.
3985
0bc2354b
TT
39862020-05-26 Tom Tromey <tromey@adacore.com>
3987
3988 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3989 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3990
1218a4bf
CDA
39912020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3992
3993 PR gdb/13519
3994 * avr-tdep.c (avr_integer_to_address): Return data or code
3995 address accordingly to the second 'type' argument of the
3996 function.
3997
92651b1d
MW
39982020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3999
4000 * infcmd.c, inferior.h: (construct_inferior_arguments):
4001 Moved function from here to gdbsupport/common-inferior.{h,cc}
4002
0a4f5f8c
TT
40032020-05-23 Tom Tromey <tom@tromey.com>
4004
4005 Revert commit eca1f90c:
4006 * NEWS: Remove entry for completion styling.
4007 * completer.c (_rl_completion_prefix_display_length): Move
4008 declaration later.
4009 (gdb_fnprint): Revert.
4010 (gdb_display_match_list_1): Likewise.
4011 * cli/cli-style.c (completion_prefix_style)
4012 (completion_difference_style, completion_suffix_style): Remove.
4013 (_initialize_cli_style): Revert.
4014 * cli/cli-style.h (completion_prefix_style)
4015 (completion_difference_style, completion_suffix_style): Don't
4016 declare.
4017
e08bd6c5
PA
40182020-05-24 Pedro Alves <palves@redhat.com>
4019
4020 * symtab.c (completion_list_add_name): Return boolean indication
4021 of whether the symbol matched.
4022 (completion_list_add_symbol): Don't try to remove C++ aliases if
4023 the symbol didn't match in the first place.
4024 * symtab.h (completion_list_add_name): Return bool.
4025
ceacbf6e
SM
40262020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4027
4028 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4029 type::field.
4030
26f16254
JB
40312020-05-23 Joel Brobecker <brobecker@adacore.com>
4032
4033 GDB 9.2 released.
4034
eca1f90c
TT
40352020-05-23 Tom Tromey <tom@tromey.com>
4036
4037 * NEWS: Add entry for completion styling.
4038 * completer.c (_rl_completion_prefix_display_length): Move
4039 declaration earlier.
4040 (gdb_fnprint): Use completion_style.
4041 (gdb_display_match_list_1): Likewise.
4042 * cli/cli-style.c (completion_prefix_style)
4043 (completion_difference_style, completion_suffix_style): New
4044 globals.
4045 (_initialize_cli_style): Register new globals.
4046 * cli/cli-style.h (completion_prefix_style)
4047 (completion_difference_style, completion_suffix_style): Declare.
4048
51e2cfa2
PA
40492020-05-23 Pedro Alves <palves@redhat.com>
4050
4051 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4052 (parse_escape): Use ISDIGIT instead of isdigit.
4053 (puts_debug): Use gdb_isprint instead of isprint.
4054 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4055 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4056 ISSPACE instead of isspace.
4057 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4058 instead of isspace.
4059 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4060 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4061 instead of isxdigit and ISDIGIT instead of isdigit.
4062
80fc5e77
SM
40632020-05-22 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * gdbtypes.h (struct type) <field>: New method.
4066 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4067 or type::field.
4068
3cabb6b0
SM
40692020-05-22 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4072 (TYPE_FIELDS): Use type::fields. Change all call sites that
4073 modify the propery to use type::set_fields instead.
4074
1f704f76
SM
40752020-05-22 Simon Marchi <simon.marchi@efficios.com>
4076
4077 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4078 type::num_fields instead.
4079
5e33d5f4
SM
40802020-05-22 Simon Marchi <simon.marchi@efficios.com>
4081
4082 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4083 methods.
4084 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4085 that modify the number of fields to use type::set_num_fields
4086 instead.
4087
9392ebb3
TT
40882020-05-22 Tom Tromey <tromey@adacore.com>
4089
4090 * compile/compile-object-load.h (munmap_list_free): Don't
4091 declare.
4092
7c13f4e8
AB
40932020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4094
4095 * annotate.c (annotate_source_line): Update return type, add call
4096 to update current symtab and line.
4097 * annotate.h (annotate_source_line): Update return type, and
4098 extend header comment.
4099 * source.c (info_line_command): Check annotation_level before
4100 calling annotate_source_line.
4101 * stack.c (print_frame_info): If calling annotate_source_line
4102 returns true, then don't print any other source line information.
4103
aa370940
SM
41042020-05-21 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4107
84d53fa9
SM
41082020-05-21 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * coffread.c (patch_type): Remove NULL check before xfree.
4111 * corefile.c (set_gnutarget): Likewise.
4112 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4113 * exec.c (build_section_table): Likewise.
4114 * remote.c (remote_target::pass_signals): Likewise.
4115 * utils.c (n_spaces): Likewise.
4116 * cli/cli-script.c (document_command): Likewise.
4117 * i386-windows-tdep.c (core_process_module_section): Likewise.
4118 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4119
9d428aae
SM
41202020-05-20 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * symfile.c (reread_symbols): Clear objfile's section_offsets
4123 vector and section indices, re-compute them by calling
4124 sym_offsets.
4125
250106a7
TT
41262020-05-20 Tom Tromey <tromey@adacore.com>
4127
4128 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4129 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4130
9a0bacfb
TV
41312020-05-20 Tom de Vries <tdevries@suse.de>
4132
4133 PR symtab/25833
4134 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4135
7b958a48
AM
41362020-05-20 Alan Modra <amodra@gmail.com>
4137
4138 PR 25993
4139 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4140 bfd_set_filename.
4141 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4142 passed to bfd_set_filename.
4143 * symfile-mem.c (add_vsyscall_page): Likewise for string
4144 passed to symbol_file_add_from_memory.
4145 (symbol_file_add_from_memory): Make name param a const char* and
4146 don't strdup.
4147
c7e97679
AM
41482020-05-20 Alan Modra <amodra@gmail.com>
4149
4150 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4151 rather than accessing bfd->filename directly.
4152 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4153 and use bfd_section_name.
4154 * dwarf2/frame.c (decode_frame_entry): Likewise.
4155 * exec.c (exec_set_section_address): Likewise.
4156 * solib-aix.c (solib_aix_bfd_open): Likewise.
4157 * stap-probe.c (get_stap_base_address): Likewise.
4158 * symfile.c (reread_symbols): Likewise.
4159
563c591b
TT
41602020-05-19 Tom Tromey <tromey@adacore.com>
4161
4162 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4163
f408d82c
SM
41642020-05-19 Simon Marchi <simon.marchi@efficios.com>
4165
4166 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4167
98c59b52
PA
41682020-05-19 Pedro Alves <palves@redhat.com>
4169
4170 * NEWS (set exec-file-mismatch): Adjust entry.
4171 * exec.c: Include "build-id.h".
4172 (validate_exec_file): Try to match build IDs instead of filenames.
4173 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4174 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4175 and pass down 'warn_if_slow'.
4176 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4177 gdb_bfd_open_closure to pass it down.
4178 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4179
4111f652
PA
41802020-05-19 Pedro Alves <palves@redhat.com>
4181
4182 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4183 * target.c (target_fileio_open_1): Rename to target_fileio_open
4184 and make extern. Use bool.
4185 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4186 (target_fileio_read_alloc_1): Adjust.
4187 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4188 (target_fileio_open_warn_if_slow): Delete declaration.
4189
ad80db5b
PA
41902020-05-19 Pedro Alves <palves@redhat.com>
4191
4192 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4193 Adjust all callers.
4194
1d6ce4d3
YS
41952020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4196
4197 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4198 whether disp is negative.
4199
9005fbbb
SM
42002020-05-19 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * symfile.h (struct symfile_segment_data)
4203 <~symfile_segment_data>: Remove.
4204 <segment_info>: Change to std::vector.
4205 * symfile.c (default_symfile_segments): Update.
4206 * elfread.c (elf_symfile_segments): Update.
4207
68b888ff
SM
42082020-05-19 Simon Marchi <simon.marchi@efficios.com>
4209
4210 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4211 <segments>: New.
4212 <segment_bases, segment_sizes>: Remove.
4213 * symfile.c (default_symfile_segments): Update.
4214 * elfread.c (elf_symfile_segments): Update.
4215 * remote.c (remote_target::get_offsets): Update.
4216 * solib-target.c (solib_target_relocate_section_addresses):
4217 Update.
4218
62982abd
SM
42192020-05-19 Simon Marchi <simon.marchi@efficios.com>
4220
4221 * symfile.h (struct symfile_segment_data): Initialize fields.
4222 <~symfile_segment_data>: Add.
4223 (symfile_segment_data_up): New.
4224 (struct sym_fns) <sym_segments>: Return a
4225 symfile_segment_data_up.
4226 (default_symfile_segments): Return a symfile_segment_data_up.
4227 (free_symfile_segment_data): Remove.
4228 (get_symfile_segment_data): Return a symfile_segment_data_up.
4229 * symfile.c (default_symfile_segments): Likewise.
4230 (get_symfile_segment_data): Likewise.
4231 (free_symfile_segment_data): Remove.
4232 (symfile_find_segment_sections): Update.
4233 * elfread.c (elf_symfile_segments): Return a
4234 symfile_segment_data_up.
4235 * remote.c (remote_target::get_offsets): Update.
4236 * solib-target.c (solib_target_relocate_section_addresses):
4237 Update.
4238 * symfile-debug.c (debug_sym_segments): Return a
4239 symfile_segment_data_up.
4240
7f204339
RO
42412020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4242
e52a0f1b
RO
4243 PR build/25981
4244 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4245 Hardcode register numbers.
4246
7f204339
RO
4247 PR build/25981
4248 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4249 procfs_find_LDT_entry): Remove.
4250 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4251 procfs_find_LDT_entry): Remove.
4252 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4253 Remove.
4254
7f32a4d5
PA
42552020-05-17 Pedro Alves <palves@redhat.com>
4256 Andrew Burgess <andrew.burgess@embecosm.com>
4257 Keno Fischer <keno@juliacomputing.com>
4258
4259 PR gdb/25741
4260 * breakpoint.c (build_target_condition_list): Update comments.
4261 (build_target_command_list): Update comments and skip matching
4262 locations.
4263 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4264 a separate function. Simplify "set breakpoint auto-hw off"
4265 handling.
4266 (insert_breakpoints): Update comment.
4267 (tracepoint_locations_match): New parameter. For breakpoints,
4268 compare location types too, if the caller wants to.
4269 (handle_automatic_hardware_breakpoints): New functions.
4270 (bp_location_is_less_than): Also sort by location type and
4271 hardware breakpoint length.
4272 (update_global_location_list): Handle "set breakpoint auto-hw on"
4273 here.
4274 (update_breakpoint_locations): Ask breakpoint_locations_match to
4275 ignore location types.
4276
7d93a1e0
SM
42772020-05-16 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4280 type::name instead.
4281
d0e39ea2
SM
42822020-05-16 Simon Marchi <simon.marchi@efficios.com>
4283
4284 * gdbtypes.h (struct type) <name, set_name>: New methods.
4285 (TYPE_CODE): Use type::name. Change all call sites used to set
4286 the name to use type::set_name instead.
4287
2dab0c7b
TT
42882020-05-16 Tom Tromey <tom@tromey.com>
4289
4290 * top.c (quit_force): Update.
4291 * infrun.c (handle_no_resumed): Update.
4292 * top.h (all_uis): New function.
4293 (ALL_UIS): Remove.
4294
59f7bd8d
SM
42952020-05-16 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4298
9bf058f0
PA
42992020-05-16 Pedro Alves <palves@redhat.com>
4300
4301 * ia64-linux-nat.c
4302 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4303 Declare method.
4304 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4305
8f86ae1a
SM
43062020-05-15 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4309 (sparc64_adi_info): Likewise.
4310
d6bc0792
TT
43112020-05-15 Tom Tromey <tom@tromey.com>
4312
4313 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4314 block_objfile.
4315 (lookup_objfile_from_block): Remove.
4316 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4317 (lookup_global_symbol): Use block_objfile.
4318 * symtab.h (lookup_objfile_from_block): Don't declare.
4319 * printcmd.c (clear_dangling_display_expressions): Use
4320 block_objfile.
4321 * parse.c (operator_check_standard): Use block_objfile.
4322
8c14c3a3
TT
43232020-05-15 Tom Tromey <tom@tromey.com>
4324
4325 * language.c (language_alloc_type_symbol): Set
4326 SYMBOL_SECTION.
4327 * symtab.c (initialize_objfile_symbol): Remove.
4328 (allocate_symbol): Remove.
4329 (allocate_template_symbol): Remove.
4330 * dwarf2/read.c (fixup_go_packaging): Use "new".
4331 (new_symbol): Use "new".
4332 (read_variable): Don't call initialize_objfile_symbol. Use
4333 "new".
4334 (read_func_scope): Use "new".
4335 * xcoffread.c (process_xcoff_symbol): Don't call
4336 initialize_objfile_symbol.
4337 (SYMBOL_DUP): Remove.
4338 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4339 "new".
4340 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4341 (allocate_template_symbol): Don't declare.
4342 (struct symbol): Add copy constructor. Change defaults.
4343 * jit.c (finalize_symtab): Use "new".
4344 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4345 Use "new".
4346 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4347 (common_block_end): Use "new".
4348 * mdebugread.c (parse_symbol): Use "new".
4349 (new_symbol): Likewise.
4350
5b4a1a8d
PW
43512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4352
4353 * NEWS: Mention changes to help and apropos.
4354
57b4f16e
PW
43552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4356
4357 * command.h (enum command_class): Improve comments, document
4358 that class_alias is for user-defined aliases, give the class
4359 name for each class, remove unused class_xdb.
4360 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4361 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4362 by a precise class.
4363 * infcmd.c (_initialize_infcmd): Likewise.
4364 * reverse.c (_initialize_reverse): Likewise.
4365 * stack.c (_initialize_stack): Likewise.
4366 * symfile.c (_initialize_symfile): Likewise.
4367 * tracepoint.c (_initialize_tracepoint): Likewise.
4368
7c05caf7
PW
43692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4370
4371 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4372 when their aliased command is traversed.
4373 (help_cmd): Add fput_command_names_styled call to
4374 output command name and aliases when command has an alias.
4375
3b3aaacb
PW
43762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4377
4378 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4379 * cli/cli-decode.c (help_cmd_list): Declare as static,
4380 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4381 a command together with the command.
4382 (fput_command_name_styled, fput_command_names_styled): New functions.
4383 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4384 fput_command_name_styled.
4385 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4386 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4387
7aa1b46f
PW
43882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4389
4390 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4391 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4392 * command.h (cmd_show_list): Likewise.
4393 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4394 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4395
89bcba74
PW
43962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4397
4398 * unittests/command-def-selftests.c (traverse_command_structure):
4399 Verify all commands of a list have the same prefix command and
4400 that only the top cmdlist commands have a null prefix.
4401
3f4d92eb
PW
44022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4403
4404 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4405 as prefix, not one of its aliases.
4406 (set_cmd_prefix): Remove.
4407 (do_add_cmd): Centralize the setting of the prefix of a command, when
4408 command is defined after its full chain of prefix commands.
4409 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4410 (add_setshow_cmd_full): Likewise.
4411 (update_prefix_field_of_prefixed_commands): New function.
4412 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4413 update_prefix_field_of_prefixed_commands.
4414 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4415 addresses of remote_set_cmdlist and remote_show_cmdlist given
4416 as argument, not the address of an argument.
4417 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4418 * gdb/remote.c (_initialize_remote): Likewise.
4419
0605465f
PW
44202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4421
4422 * cli/cli-cmds.c (alias_command): Check for an existing alias
4423 using lookup_cmd_composition, as valid_command_p is too strict
4424 and forbids aliases that are the prefix of an existing alias
4425 or command.
4426 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4427 command is properly recognised as a valid command.
4428
58e6ac70
PW
44292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4430
4431 * unittests/help-doc-selftests.c: Rename to
4432 unittests/command-def-selftests.c
4433 * unittests/command-def-selftests.c (help_doc_tests): Update some
4434 comments.
4435 (command_structure_tests, traverse_command_structure): New namespace
4436 and function.
4437 (command_structure_invariants_tests): New function.
4438 (_initialize_command_def_selftests) Renamed from
4439 _initialize_help_doc_selftests, register command_structure_invariants
4440 selftest.
4441
a7b9ceb8
PW
44422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4443
4444 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4445 an alias of 'show'.
4446
b2188a06
JB
44472020-05-15 Joel Brobecker <brobecker@adacore.com>
4448
4449 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4450 ada_is_fixed_point_type. Update all callers.
4451 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4452 all callers.
4453 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4454 Update all callers.
4455 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4456 print_fixed_point_type. Update all callers.
4457 * ada-valprint.c (ada_value_print_num): Replace call to
4458 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4459
a51951c2
KB
44602020-05-14 Kevin Buettner <kevinb@redhat.com>
4461
4462 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4463 processors.
4464 (cpu_supports_bts): Add CV_AMD case.
4465
29d6859f
LM
44662020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4467 Simon Marchi <simon.marchi@efficios.com>
4468
4469 * infrun.c (stop_all_threads): Collect multiple wait events at
4470 each pass.
4471
78134374
SM
44722020-05-14 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4475 type::code instead.
4476
67607e24
SM
44772020-05-14 Simon Marchi <simon.marchi@efficios.com>
4478
4479 * gdbtypes.h (struct type) <code, set_code>: New methods.
4480 (TYPE_CODE): Use type::code. Change all call sites used to set
4481 the code to use type::set_code instead.
4482
a05575d3
TBA
44832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4484 Tom de Vries <tdevries@suse.de>
4485 Pedro Alves <palves@redhat.com>
4486
4487 PR threads/25478
4488 * infrun.c (stop_all_threads): Do NOT ignore
4489 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4490 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4491 received.
4492 (handle_no_resumed): Remove code handling a live inferior with no
4493 threads.
4494 * remote.c (has_single_non_exited_thread): New.
4495 (remote_target::update_thread_list): Do not delete a thread if is
4496 the last thread of the process.
4497 * thread.c (thread_select): Call delete_exited_threads instead of
4498 prune_threads.
4499
6ad82919
TBA
45002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4501
4502 * infrun.c (stop_all_threads): Enable/disable thread events of all
4503 targets. Move a debug message denoting the end of the function
4504 into the SCOPED_EXIT block.
4505
d890404b
TBA
45062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4507
4508 * process-stratum-target.h: Include <set>.
4509 (all_non_exited_process_targets, switch_to_target_no_thread): New
4510 function declarations.
4511 * process-stratum-target.c (all_non_exited_process_targets)
4512 (switch_to_target_no_thread): New function implementations.
4513
293b3ebc
TBA
45142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4515
4516 * infrun.c (handle_inferior_event): Extract out a piece of code
4517 into...
4518 (mark_non_executing_threads): ...this new function.
4519
7ca9b62a
TBA
45202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4521
4522 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4523 use.
4524
fc75c28b
TBA
45252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4526
4527 * regcache.c (regcache_read_pc_protected): New function
4528 implementation that returns 0 if the PC cannot read via
4529 'regcache_read_pc'.
4530 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4531 instead of 'regcache_read_pc'.
4532 (keep_going_pass_signal): Ditto.
4533
a89febbd
TT
45342020-05-13 Tom Tromey <tromey@adacore.com>
4535
4536 * ada-lang.c (align_value): Remove.
4537 (ada_template_to_fixed_record_type_1): Use align_up.
4538
f7e23710
TBA
45392020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4540
4541 * async-event.c: Update the copyright year.
4542 * async-event.h: Update the copyright year.
4543
02ff80c2
SM
45442020-05-12 Simon Marchi <simon.marchi@efficios.com>
4545
4546 * objfiles.h (is_addr_in_objfile,
4547 shared_objfile_contains_address_p): Return bool.
4548 * objfile.c (is_addr_in_objfile,
4549 shared_objfile_contains_address_p): Return bool.
4550
4fd6c7e8
TT
45512020-05-11 Tom Tromey <tromey@adacore.com>
4552
4553 * cli/cli-cmds.c (info_command): Restore.
4554 (_initialize_cli_cmds): Use add_prefix_command for "info".
4555 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4556
5eb68a39
TT
45572020-05-11 Tom Tromey <tromey@adacore.com>
4558
4559 * ada-lang.c (ada_value_primitive_field): Now public.
4560 * ada-lang.h (ada_value_primitive_field): Declare.
4561 * ada-valprint.c (print_field_values): Use
4562 ada_value_primitive_field for wrapper fields.
4563
7666722f
TV
45642020-05-11 Tom de Vries <tdevries@suse.de>
4565
4566 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4567 MODULE_DOMAIN.
4568
3ee6bb11
TV
45692020-05-11 Tom de Vries <tdevries@suse.de>
4570
4571 PR symtab/25941
4572 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4573 with length 0, if not gdb-produced.
4574 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4575
43434996
TV
45762020-05-09 Tom de Vries <tdevries@suse.de>
4577
4578 PR gdb/25955
4579 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4580 calculation.
4581
2f78cffc
TT
45822020-05-09 Tom Tromey <tom@tromey.com>
4583
4584 * top.c (server_command): Now bool.
4585 * top.h (server_command): Now bool.
4586
4f7bc5ed
TT
45872020-05-08 Tom Tromey <tromey@adacore.com>
4588
4589 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4590 already being processed.
4591
8be4b118
TT
45922020-05-08 Tom Tromey <tom@tromey.com>
4593
4594 * printcmd.c (struct display) <next>: Remove.
4595 <display>: New constructor.
4596 <exp_string>: Now a std::string.
4597 <enabled_p>: Now a bool.
4598 (display_number): Move definition earlier.
4599 (displays): Rename from display_chain. Now a std::vector.
4600 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4601 (display_command): Update.
4602 (do_one_display, disable_display)
4603 (enable_disable_display_command, do_enable_disable_display):
4604 Update.
4605 (free_display): Remove.
4606 (clear_displays): Rewrite.
4607 (delete_display): Update.
4608 (map_display_numbers): Use function_view. Remove "data"
4609 parameter. Update.
4610 (do_delete_display): Remove.
4611 (undisplay_command): Update.
4612 (do_one_display, do_displays, disable_display)
4613 (info_display_command): Update.
4614 (do_enable_disable_display): Remove.
4615 (enable_disable_display_command)
4616 (clear_dangling_display_expressions): Update.
4617
94c93c35
TT
46182020-05-08 Tom Tromey <tom@tromey.com>
4619
4620 * symtab.c (set_symbol_cache_size)
4621 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4622 (maintenance_print_symbol_cache_statistics): Update.
4623 * symmisc.c (print_symbol_bcache_statistics)
4624 (print_objfile_statistics, maintenance_print_objfiles)
4625 (maintenance_info_symtabs, maintenance_check_symtabs)
4626 (maintenance_expand_symtabs, maintenance_info_line_tables):
4627 Update.
4628 * symfile-debug.c (set_debug_symfile): Update.
4629 * source.c (forget_cached_source_info): Update.
4630 * python/python.c (gdbpy_progspaces): Update.
4631 * psymtab.c (maintenance_info_psymtabs): Update.
4632 * probe.c (parse_probes): Update.
4633 * linespec.c (iterate_over_all_matching_symtabs)
4634 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4635 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4636 * exec.c (exec_target::close): Update.
4637 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4638 * breakpoint.c (print_one_breakpoint_location)
4639 (create_longjmp_master_breakpoint)
4640 (create_std_terminate_master_breakpoint): Update.
4641 * progspace.c (program_spaces): Now a std::vector.
4642 (maybe_new_address_space): Update.
4643 (add_program_space): Remove.
4644 (program_space::program_space): Update.
4645 (remove_program_space): Update.
4646 (number_of_program_spaces): Remove.
4647 (print_program_space, update_address_spaces): Update.
4648 * progspace.h (program_spaces): Change type.
4649 (ALL_PSPACES): Remove.
4650 (number_of_program_spaces): Don't declare.
4651 (struct program_space) <next>: Remove.
4652
a1fd1ac9
TT
46532020-05-08 Tom Tromey <tom@tromey.com>
4654
4655 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4656 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4657 (enable_break): Update.
4658 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4659 (frv_fdpic_find_canonical_descriptor): Update.
4660 (frv_fetch_objfile_link_map): Update.
4661 * progspace.c (program_space::free_all_objfiles): Update.
4662 (program_space::solibs): New method.
4663 * progspace.h (struct program_space) <solibs>: New method.
4664 * solist.h (master_so_list): Don't declare.
4665 (ALL_SO_LIBS): Remove.
4666 * solib.h (so_list_head): Remove.
4667 (update_solib_list): Update comment.
4668 * solib.c (master_so_list): Remove.
4669 (solib_used, update_solib_list, solib_add)
4670 (info_sharedlibrary_command, clear_solib)
4671 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4672
38eae084
TT
46732020-05-08 Tom Tromey <tom@tromey.com>
4674
4675 * extension.c (extension_languages): Now a std::array.
4676 (ALL_EXTENSION_LANGUAGES): Remove.
4677 (get_ext_lang_defn, get_ext_lang_of_file)
4678 (eval_ext_lang_from_control_command): Update.
4679 (finish_ext_lang_initialization)
4680 (auto_load_ext_lang_scripts_for_objfile)
4681 (ext_lang_type_printers::ext_lang_type_printers)
4682 (apply_ext_lang_type_printers)
4683 (ext_lang_type_printers::~ext_lang_type_printers)
4684 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4685 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4686 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4687 (get_matching_xmethod_workers, ext_lang_colorize)
4688 (ext_lang_before_prompt): Update.
4689 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4690
596dc4ad
TT
46912020-05-08 Tom Tromey <tom@tromey.com>
4692
4693 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4694 overload.
4695 <swap_string, m_string>: Remove.
4696 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4697 Update.
4698 * stabsread.c (define_symbol, read_type): Update.
4699 * linespec.c (find_linespec_symbols): Update.
4700 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4701 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4702 * dbxread.c (read_dbx_symtab): Update.
4703 * cp-support.h (cp_canonicalize_string_full)
4704 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4705 Return unique_xmalloc_ptr.
4706 * cp-support.c (inspect_type): Update.
4707 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4708 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4709 Likewise.
4710 * c-typeprint.c (print_name_maybe_canonical): Update.
4711 * break-catch-throw.c (check_status_exception_catchpoint):
4712 Update.
4713
bf4cb9be
TV
47142020-05-08 Tom de Vries <tdevries@suse.de>
4715
4716 * infrun.c (follow_fork): Copy current_line and current_symtab to
4717 child thread.
4718
a1b68f28
SM
47192020-05-07 Simon Marchi <simon.marchi@efficios.com>
4720
4721 * async-event.c (struct async_signal_handler, struct
4722 async_event_handler): Reformat, remove typedef.
4723
98d48915
SM
47242020-05-07 Simon Marchi <simon.marchi@efficios.com>
4725
4726 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4727 access thistype->main_type->dyn_prop_list directly.
4728
7aa91313
SM
47292020-05-07 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4732 (remove_dyn_prop): Remove. Update all users to use
4733 type::remove_dyn_prop.
4734 * gdbtypes.c (remove_dyn_prop): Rename to...
4735 (type::remove_dyn_prop): ... this.
4736
5c54719c
SM
47372020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4738
4739 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4740 (add_dyn_prop): Remove. Update all users to use
4741 type::add_dyn_prop.
4742 * gdbtypes.c (add_dyn_prop): Rename to...
4743 (type::add_dyn_prop): ... this.
4744
24e99c6c
SM
47452020-05-07 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4748 (get_dyn_prop): Remove. Update all users to use
4749 type::dyn_prop.
4750 * gdbtypes.c (get_dyn_prop): Rename to...
4751 (type::dyn_prop): ... this.
4752
0d4bf016
SM
47532020-05-06 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4756
ac4a4f1c
SM
47572020-05-06 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4760 instruction, skip it if it's there.
4761
a3bbacc1
SM
47622020-05-05 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4765
c3236f84
SM
47662020-05-04 Simon Marchi <simon.marchi@efficios.com>
4767
4768 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4769 * gdbtypes.c (recursive_dump_type): Remove use of
4770 TYPE_INCOMPLETE.
4771
3b6acaee
TT
47722020-05-03 Tom Tromey <tom@tromey.com>
4773
4774 * breakpoint.c (catch_command, tcatch_command): Remove.
4775 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4776 add_show_prefix_cmd.
4777 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4778 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4779 Remove.
4780 (add_internal_problem_command): Use add_basic_prefix_cmd,
4781 add_show_prefix_cmd.
4782 * mips-tdep.c (set_mipsfpu_command): Remove.
4783 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4784 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4785 (_initialize_index_cache): Use add_basic_prefix_cmd.
4786 * memattr.c (dummy_cmd): Remove.
4787 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4788 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4789 (_initialize_tui_win): Use add_basic_prefix_cmd,
4790 add_show_prefix_cmd.
4791 * cli/cli-logging.c (set_logging_command): Remove.
4792 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4793 add_show_prefix_cmd.
4794 (show_logging_command): Remove.
4795 * target.c (target_command): Remove.
4796 (add_target): Use add_basic_prefix_cmd.
4797
a51119cd
HD
47982020-05-02 Hannes Domani <ssbssa@yahoo.de>
4799
4800 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4801
652fc23a 48022020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4803
652fc23a
PW
4804 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4805 info_command.
4806
117539e6
KR
48072020-04-30 Kamil Rytarowski <n54@gmx.com>
4808
4809 * nbsd-nat.c (nbsd_enable_proc_events)
4810 (nbsd_nat_target::post_startup_inferior): Add.
4811 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4812 (nbsd_nat_target::update_thread_list): Rewrite.
4813 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4814 "PTRACE_LWP_CREATE".
4815 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4816
102e38eb 48172020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4818
102e38eb
PW
4819 * stack.c (_initialize_stack): Remove duplicated creation
4820 of "frame" command and "f" alias.
4821
ee9d1e5f
HD
48222020-04-30 Hannes Domani <ssbssa@yahoo.de>
4823
4824 PR gdb/18706
4825 * gdbtypes.c (check_typedef): Calculate size of array of
4826 stubbed type.
4827
627c7fb8
HD
48282020-04-30 Hannes Domani <ssbssa@yahoo.de>
4829
4830 PR gdb/15559
4831 * i386-tdep.c (i386_push_dummy_call): Call
4832 i386_thiscall_push_dummy_call.
4833 (i386_thiscall_push_dummy_call): New function.
4834 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4835 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4836 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4837
ffc2844e
SM
48382020-04-29 Simon Marchi <simon.marchi@efficios.com>
4839
4840 * gdbarch.sh (do_read): Add shellcheck disable directive for
4841 warning SC2162.
4842
1207375d
SM
48432020-04-29 Simon Marchi <simon.marchi@efficios.com>
4844
4845 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4846 "referenced but not assigned" warning.
4847
9fdb2916
SM
48482020-04-29 Simon Marchi <simon.marchi@efficios.com>
4849
4850 * gdbarch.sh: Remove code that sets fallbackdefault.
4851
759cea5e
SM
48522020-04-29 Simon Marchi <simon.marchi@efficios.com>
4853
4854 * gdbarch.sh: Use shell operators && and || instead of
4855 -a and -o.
4856
cb02ab24
SM
48572020-04-29 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * gdbarch.sh: Use $(...) instead of `...`.
4860
a6fc5ffc
SM
48612020-04-29 Simon Marchi <simon.marchi@efficios.com>
4862
4863 * gdbarch.sh: Use double quotes around variables.
4864
8d113d13
SM
48652020-04-29 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * gdbarch.sh: Use %s with printf, instead of variables in the
4868 format string.
4869
ed6acedd
TT
48702020-04-29 Tom Tromey <tromey@adacore.com>
4871
4872 PR ada/25875:
4873 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4874 type fields here.
4875 (read_enumeration_type): Call
4876 update_enumeration_type_from_children later. Update comments.
4877 (process_enumeration_scope): Don't create type fields.
4878
b68b1b58
KR
48792020-04-29 Kamil Rytarowski <n54@gmx.com>
4880
4881 * nbsd-tdep.c: Include "xml-syscall.h".
4882 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4883
f94b2e03
KR
48842020-04-29 Kamil Rytarowski <n54@gmx.com>
4885
4886 * nbsd-nat.c: Include "sys/wait.h".
4887 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4888 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4889 (nbsd_nat_target::remove_exec_catchpoint)
4890 (nbsd_nat_target::set_syscall_catchpoint): Add.
4891 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4892 (nbsd_nat_target::insert_exec_catchpoint)
4893 (nbsd_nat_target::remove_exec_catchpoint)
4894 (nbsd_nat_target::set_syscall_catchpoint): Add.
4895 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4896 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4897 `nbsd_get_syscall_number'.
4898
fc49bc72
TT
48992020-04-29 Tom Tromey <tom@tromey.com>
4900
4901 * stack.c (print_block_frame_labels): Remove.
4902
d642b692
HD
49032020-04-29 Hannes Domani <ssbssa@yahoo.de>
4904
4905 PR gdb/17320
4906 * ada-valprint.c (val_print_packed_array_elements): Move array
4907 end bracket to new line.
4908 (ada_val_print_string): Remove extra spaces before first array
4909 element.
4910 * c-valprint.c (c_value_print_array): Likewise.
4911 * m2-valprint.c (m2_print_array_contents): Likewise.
4912 (m2_value_print_inner): Likewise.
4913 * p-valprint.c (pascal_value_print_inner): Likewise.
4914 * valprint.c (generic_val_print_array): Likewise.
4915 (value_print_array_elements): Move first array element and array
4916 end bracket to new line.
4917
ea90f227
TV
49182020-04-29 Tom de Vries <tdevries@suse.de>
4919
4920 PR symtab/25889
4921 * linespec.c (find_method): Fix ix calculation.
4922
4498ef4f
KR
49232020-04-28 Kamil Rytarowski <n54@gmx.com>
4924
4925 * syscalls/update-netbsd.sh: New file.
4926 * syscalls/netbsd.xml: Regenerate.
4927 * data-directory/Makefile.in: Register `netbsd.xml' in
4928 `SYSCALLS_FILES'.
4929
a55e30b5
SM
49302020-04-28 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * syscalls/update-freebsd.sh: Add double quotes.
4933
2b2fbab8
TT
49342020-04-28 Tom Tromey <tom@tromey.com>
4935
4936 * NEWS: Update.
4937 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4938 (cmdpy_init): Allow class_tui.
4939
a65189c9
TV
49402020-04-28 Mark Williams <mark@myosotissp.com>
4941
4942 PR gdb/24480
4943 * dwarf2read.c: Add missing assingments to list_in_scope when
4944 start_symtab was already called.
4945
1b95cdb7
SM
49462020-04-28 Simon Marchi <simon.marchi@efficios.com>
4947
4948 PR gdb/25881
4949 * dwarf2/read.c (offset_map_type): Use
4950 gdb:hash_enum<sect_offset> as hash function.
4951
15cd93d0
TV
49522020-04-28 Tom de Vries <tdevries@suse.de>
4953
4954 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4955 with DW_AT_signature.
4956
1eb39914
SM
49572020-04-27 Simon Marchi <simon.marchi@efficios.com>
4958
4959 * configure.ac: Remove check for fs_base/gs_base in
4960 user_regs_struct.
4961 * configure: Re-generate.
4962 * config.in: Re-generate.
4963 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4964 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4965 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4966
991a3e2e
LM
49672020-04-27 Luis Machado <luis.machado@linaro.org>
4968
4969 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4970 problematic inline frame unwinding situation.
4971 * frame.c (frame_id_computed_p): New function.
4972 * frame.h (frame_id_computed_p): New prototype.
4973
361ba0e8
TT
49742020-04-26 Tom Tromey <tom@tromey.com>
4975
4976 * command.h (enum command_class) <class_pseudo>: Remove.
4977
bc3609fd
PW
49782020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4979
4980 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4981 and whitespace.
4982
b9771db7
KR
49832020-04-25 Kamil Rytarowski <n54@gmx.com>
4984
ec16513e
SM
4985 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4986 `PT_GET_PROCESS_STATE' block.
b9771db7 4987
7151c1af
TT
49882020-04-24 Tom Tromey <tom@tromey.com>
4989
4990 * symtab.h (symbol_get_demangled_name): Don't declare.
4991 * symtab.c (symbol_get_demangled_name): Remove.
4992 (general_symbol_info::natural_name)
4993 (general_symbol_info::demangled_name): Update.
4994
906bb4c5
TT
49952020-04-24 Tom Tromey <tom@tromey.com>
4996
4997 PR rust/25025:
4998 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4999
bcfe6157
TT
50002020-04-24 Tom Tromey <tom@tromey.com>
5001
5002 PR symtab/12707:
5003 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5004 exists.
5005 (new_symbol): Likewise.
5006 * compile/compile-object-load.c (get_out_value_type): Use
5007 symbol_matches_search_name.
5008
f049a313
TT
50092020-04-24 Tom Tromey <tom@tromey.com>
5010
5011 * dwarf2/read.c (add_partial_symbol): Do not call
5012 compute_and_set_names.
5013
76e288d1
TT
50142020-04-24 Tom Tromey <tom@tromey.com>
5015
5016 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5017 overload.
5018
2467f4f6
TT
50192020-04-24 Tom Tromey <tom@tromey.com>
5020
5021 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5022 (add_psymbol_to_list): New overload. Make old overload call new
5023 one.
5024 * psympriv.h (add_psymbol_to_list): New overload.
5025
e61108c9
TT
50262020-04-24 Tom Tromey <tom@tromey.com>
5027
5028 * dwarf2/read.c (partial_die_info::read) <case
5029 DW_AT_linkage_name>: Use value_as_string.
5030 (dwarf2_string_attr): Use value_as_string.
5031 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5032 method.
5033 * dwarf2/attribute.c (attribute::value_as_string): New method.
5034
8c87a452
TT
50352020-04-24 Tom Tromey <tom@tromey.com>
5036
5037 * symtab.c (general_symbol_info::natural_name)
5038 (general_symbol_info::demangled_name): Check for language_rust.
5039
787de330
TT
50402020-04-24 Tom Tromey <tom@tromey.com>
5041
5042 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5043 (dwarf2_physname): ... from here.
5044 (partial_die_info::read): Add Rust "{" hack.
5045
ff985671
TT
50462020-04-24 Tom Tromey <tom@tromey.com>
5047
5048 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5049 method.
5050 (symbol_set_demangled_name): Don't declare.
5051 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5052 symbol_set_demangled_name.
5053 (general_symbol_info::set_language)
5054 (general_symbol_info::compute_and_set_names): Update.
5055 * minsyms.c (minimal_symbol_reader::install): Update.
5056 * dwarf2/read.c (new_symbol): Update.
5057
1acda803
TT
50582020-04-24 Tom Tromey <tromey@adacore.com>
5059
5060 PR python/23662:
5061 * python/py-type.c (convert_field): Handle
5062 FIELD_LOC_KIND_DWARF_BLOCK.
5063 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5064 (typy_get_dynamic): Nw function.
5065 (type_object_getset): Add "dynamic".
5066 * NEWS: Add entry.
5067
d656f129
TT
50682020-04-24 Tom Tromey <tromey@adacore.com>
5069
5070 * ada-typeprint.c (print_choices, print_variant_part)
5071 (print_record_field_types_dynamic): New functions.
5072 (print_record_field_types): Use print_record_field_types_dynamic.
5073
7d79de9a
TT
50742020-04-24 Tom Tromey <tromey@adacore.com>
5075
5076 * dwarf2/read.c (handle_data_member_location): New overload.
5077 (dwarf2_add_field): Use it.
5078 (decode_locdesc): Add "computed" parameter. Update comment.
5079 * gdbtypes.c (is_dynamic_type_internal): Also look for
5080 FIELD_LOC_KIND_DWARF_BLOCK.
5081 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5082 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5083 virtual base classes.
5084 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5085 FIELD_LOC_KIND_DWARF_BLOCK.
5086
f8e89861
TT
50872020-04-24 Tom Tromey <tromey@adacore.com>
5088
5089 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5090 * gdbtypes.c (is_dynamic_type_internal): Check
5091 TYPE_HAS_DYNAMIC_LENGTH.
5092 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5093 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5094 New macros.
5095 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5096 constant.
5097
9c6a1327
TT
50982020-04-24 Tom Tromey <tromey@adacore.com>
5099
5100 * dwarf2/read.c (struct variant_field): Rewrite.
5101 (struct variant_part_builder): New.
5102 (struct nextfield): Remove "variant" field. Add "offset".
5103 (struct field_info): Add "current_variant_part" and
5104 "variant_parts".
5105 (alloc_discriminant_info): Remove.
5106 (alloc_rust_variant): New function.
5107 (quirk_rust_enum): Update.
5108 (dwarf2_add_field): Set "offset" member. Don't handle
5109 DW_TAG_variant_part.
5110 (offset_map_type): New typedef.
5111 (convert_variant_range, create_one_variant)
5112 (create_one_variant_part, create_variant_parts)
5113 (add_variant_property): New functions.
5114 (dwarf2_attach_fields_to_type): Call add_variant_property.
5115 (read_structure_type): Don't handle DW_TAG_variant_part.
5116 (handle_variant_part, handle_variant): New functions.
5117 (handle_struct_member_die): Use them.
5118 (process_structure_scope): Don't handle variant parts.
5119 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5120 (struct discriminant_info): Remove.
5121 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5122 (struct main_type) <flag_discriminated_union>: Remove.
5123 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5124 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5125 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5126 Update.
5127 * valops.c (value_union_variant): Remove.
5128 * value.h (value_union_variant): Don't declare.
5129
b249d2c2
TT
51302020-04-24 Tom Tromey <tromey@adacore.com>
5131
5132 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5133 (ada_value_primitive_packed_val): Update.
5134 * ada-valprint.c (ada_value_print_1): Update.
5135 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5136 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5137 just an address. Use evaluate_for_locexpr_baton.
5138 (dwarf2_evaluate_property): Update.
5139 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5140 array_view.
5141 * findvar.c (default_read_var_value): Update.
5142 * gdbtypes.c (compute_variant_fields_inner)
5143 (resolve_dynamic_type_internal): Update.
5144 (resolve_dynamic_type): Change type of valaddr parameter.
5145 * gdbtypes.h (resolve_dynamic_type): Update.
5146 * valarith.c (value_subscripted_rvalue): Update.
5147 * value.c (value_from_contents_and_address): Update.
5148
61122aa9
TT
51492020-04-24 Tom Tromey <tromey@adacore.com>
5150
5151 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5152 "push_initial_value" parameter.
5153 (dwarf2_evaluate_property): Likewise.
5154 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5155
ef83a141
TT
51562020-04-24 Tom Tromey <tromey@adacore.com>
5157
5158 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5159 (variant::matches, compute_variant_fields_recurse)
5160 (compute_variant_fields_inner, compute_variant_fields): New
5161 functions.
5162 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5163 Use resolved_type after type is made.
5164 (operator==): Add new cases.
5165 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5166 (struct discriminant_range, struct variant, struct variant_part):
5167 New.
5168 (union dynamic_prop_data) <variant_parts, original_type>: New
5169 members.
5170 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5171 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5172 constants.
5173 * value.c (unpack_bits_as_long): Now public.
5174 * value.h (unpack_bits_as_long): Declare.
5175
675127ec
TT
51762020-04-24 Tom Tromey <tromey@adacore.com>
5177
5178 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5179 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5180
9852ceef
HD
51812020-04-24 Hannes Domani <ssbssa@yahoo.de>
5182
5183 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5184
7632c6ce
KR
51852020-04-24 Kamil Rytarowski <n54@gmx.com>
5186
5187 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5188 (remove_fork_catchpoint, post_startup_inferior)
5189 (post_attach): Move...
5190 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5191 (remove_fork_catchpoint, post_startup_inferior)
5192 (post_attach): ...here.
5193 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5194 (remove_fork_catchpoint, post_startup_inferior)
5195 (post_attach): Move...
5196 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5197 (remove_fork_catchpoint, post_startup_inferior)
5198 (post_attach): ...here.
5199
7be2bb4f
TT
52002020-04-24 Tom Tromey <tromey@adacore.com>
5201
5202 * nat/windows-nat.h (struct windows_thread_info)
5203 <pc_adjusted>: New member.
5204 * windows-nat.c (windows_fetch_one_register): Check
5205 pc_adjusted.
5206 (windows_nat_target::get_windows_debug_event)
5207 (windows_nat_target::wait): Set pc_adjusted.
5208
f80cb3b4
TV
52092020-04-24 Tom de Vries <tdevries@suse.de>
5210
5211 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5212 Run gdb-add-index inside temp dir.
5213
29514b87
TT
52142020-04-23 Tom Tromey <tromey@adacore.com>
5215
5216 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5217 in loop.
5218
5939967b
LM
52192020-04-23 Luis Machado <luis.machado@linaro.org>
5220
5221 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5222 get_frame_register instead of gdbarch_unwind_pc.
5223
70bc38f5
TV
52242020-04-23 Tom de Vries <tdevries@suse.de>
5225
5226 * symtab.c (lookup_global_symbol): Prefer def over decl.
5227
de82891c
TV
52282020-04-23 Tom de Vries <tdevries@suse.de>
5229
5230 PR symtab/25807
5231 * block.c (best_symbol, better_symbol): Promote to external.
5232 * block.h (best_symbol, better_symbol): Declare.
5233 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5234 decl.
5235
ecc6c606
TT
52362020-04-23 Tom Tromey <tromey@adacore.com>
5237
5238 PR ada/25837:
5239 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5240 "const char *", not a "const std::string &".
5241 <name_and_matcher::operator==>: Update.
5242 * unittests/lookup_name_info-selftests.c: Change type of
5243 "result".
5244
740480b8
TT
52452020-04-23 Tom Tromey <tom@tromey.com>
5246
5247 * inferior.h (iterate_over_inferiors): Don't declare.
5248 * inferior.c (iterate_over_inferiors): Remove.
5249 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5250 Remove.
5251 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5252 use iterate_over_inferiors.
5253 (darwin_resume_inferior_it)
5254 (struct resume_inferior_threads_param)
5255 (darwin_resume_inferior_threads_it): Remove.
5256 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5257
ae3ab1f0
TV
52582020-04-23 Tom de Vries <tdevries@suse.de>
5259
5260 * blockframe.c (find_pc_partial_function): Use
5261 find_pc_sect_compunit_symtab rather than
5262 objfile->sf->qf->find_pc_sect_compunit_symtab.
5263
317d2668
TV
52642020-04-22 Tom de Vries <tdevries@suse.de>
5265
5266 PR symtab/25764
5267 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5268 in psymtabs.
5269
eea9e357
TV
52702020-04-22 Tom de Vries <tdevries@suse.de>
5271
5272 PR symtab/25801
5273 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5274 symtabs.
5275
3d5afab3
TV
52762020-04-22 Tom de Vries <tdevries@suse.de>
5277
5278 PR symtab/25700
5279 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5280 CU if already created.
5281
d43b7a2d
TBA
52822020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5283
5284 * infrun.c (displaced_step_fixup): Switch to the event_thread
5285 before calling displaced_step_restore, not after.
5286
d89edf9b
MM
52872020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5288
5289 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5290 its inferior is not recorded by us.
5291 (record_btrace_target_open): Replace call to
5292 all_non_exited_threads () with call to current_inferior
5293 ()->non_exited_threads ().
5294 (record_btrace_target::stop_recording): Likewise.
5295 (record_btrace_target::close): Likewise.
5296 (record_btrace_target::wait): Likewise.
5297 (record_btrace_target::record_stop_replaying): Likewise.
5298
5897fd49
MM
52992020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5300
5301 * btrace.c (btrace_enable): Throw an error on double enables and
5302 when enabling recording fails.
5303 (btrace_disable): Throw an error if the thread is not recorded.
5304
1a476b6d
MM
53052020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5306
5307 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5308 request if we do not have a thread_info.
5309
4778a5f8
TV
53102020-04-21 Tom de Vries <tdevries@suse.de>
5311
5312 PR gdb/25471
5313 * thread.c
5314 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5315 exception in get_frame_id.
5316
0fa7617d
TT
53172020-04-20 Tom Tromey <tromey@adacore.com>
5318
5319 * python/python.c (struct gdbpy_event): Mark move constructor as
5320 noexcept.
5321 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5322 constructor as noexcept.
5323 * completer.h (struct completion_result): Mark move constructor as
5324 noexcept.
5325 * completer.c (completion_result::completion_result): Use
5326 initialization style. Don't call reset_match_list.
5327
ad23bda0
MS
53282020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5329
5330 * MAINTAINERS (Write After Approval): Add myself.
5331
45e1f031
TT
53322020-04-18 Tom Tromey <tom@tromey.com>
5333
5334 * windows-tdep.c (init_w32_command_list)
5335 (w32_prefix_command_valid): Restore.
5336 (_initialize_windows_tdep): Call init_w32_command_list.
5337
08feed99
TT
53382020-04-18 Tom Tromey <tom@tromey.com>
5339
5340 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5341 * value.c (value_fn_field): Update.
5342 * valops.c (find_function_in_inferior)
5343 (value_allocate_space_in_inferior): Update.
5344 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5345 Update.
5346 * tui/tui-source.c (tui_source_window::set_contents): Update.
5347 * symtab.c (lookup_global_or_static_symbol)
5348 (find_function_start_sal_1, skip_prologue_sal)
5349 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5350 * symmisc.c (dump_msymbols, dump_symtab_1)
5351 (maintenance_print_one_line_table): Update.
5352 * symfile.c (init_entry_point_info, section_is_mapped)
5353 (list_overlays_command, simple_read_overlay_table)
5354 (simple_overlay_update_1): Update.
5355 * stap-probe.c (handle_stap_probe): Update.
5356 * stabsread.c (dbx_init_float_type, define_symbol)
5357 (read_one_struct_field, read_enum_type, read_range_type): Update.
5358 * source.c (info_line_command): Update.
5359 * python/python.c (gdbpy_source_objfile_script)
5360 (gdbpy_execute_objfile_script): Update.
5361 * python/py-type.c (save_objfile_types): Update.
5362 * python/py-objfile.c (py_free_objfile): Update.
5363 * python/py-inferior.c (python_new_objfile): Update.
5364 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5365 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5366 (maintenance_check_psymtabs): Update.
5367 * printcmd.c (info_address_command): Update.
5368 * objfiles.h (struct objfile) <arch>: New method, from
5369 get_objfile_arch.
5370 (get_objfile_arch): Don't declare.
5371 * objfiles.c (get_objfile_arch): Remove.
5372 (filter_overlapping_sections): Update.
5373 * minsyms.c (msymbol_is_function): Update.
5374 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5375 (output_nondebug_symbol): Update.
5376 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5377 (mdebug_expand_psymtab): Update.
5378 * machoread.c (macho_add_oso_symfile): Update.
5379 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5380 Update.
5381 * linux-fork.c (checkpoint_command): Update.
5382 * linespec.c (convert_linespec_to_sals): Update.
5383 * jit.c (finalize_symtab): Update.
5384 * infrun.c (insert_exception_resume_from_probe): Update.
5385 * ia64-tdep.c (ia64_find_unwind_table): Update.
5386 * hppa-tdep.c (internalize_unwinds): Update.
5387 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5388 Update.
5389 * gcore.c (call_target_sbrk): Update.
5390 * elfread.c (record_minimal_symbol, elf_symtab_read)
5391 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5392 (elf_gnu_ifunc_resolve_by_got): Update.
5393 * dwarf2/read.c (create_addrmap_from_index)
5394 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5395 (read_debug_names_from_section)
5396 (process_psymtab_comp_unit_reader, add_partial_symbol)
5397 (add_partial_subprogram, process_full_comp_unit)
5398 (read_file_scope, read_func_scope, read_lexical_block_scope)
5399 (read_call_site_scope, dwarf2_ranges_read)
5400 (dwarf2_record_block_ranges, dwarf2_add_field)
5401 (mark_common_block_symbol_computed, read_tag_pointer_type)
5402 (read_tag_string_type, dwarf2_init_float_type)
5403 (dwarf2_init_complex_target_type, read_base_type)
5404 (partial_die_info::read, partial_die_info::read)
5405 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5406 (dwarf2_fetch_die_loc_sect_off): Update.
5407 * dwarf2/loc.c (dwarf2_find_location_expression)
5408 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5409 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5410 (dwarf2_loc_desc_get_symbol_read_needs)
5411 (locexpr_describe_location_piece, locexpr_describe_location_1)
5412 (loclist_describe_location): Update.
5413 * dwarf2/index-write.c (write_debug_names): Update.
5414 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5415 * dtrace-probe.c (dtrace_process_dof): Update.
5416 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5417 (process_one_symbol): Update.
5418 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5419 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5420 (coff_read_enum_type): Update.
5421 * cli/cli-cmds.c (edit_command, list_command): Update.
5422 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5423 * breakpoint.c (create_overlay_event_breakpoint)
5424 (create_longjmp_master_breakpoint)
5425 (create_std_terminate_master_breakpoint)
5426 (create_exception_master_breakpoint, get_sal_arch): Update.
5427 * block.c (block_gdbarch): Update.
5428 * annotate.c (annotate_source_line): Update.
5429
0743fc83
TT
54302020-04-17 Tom Tromey <tromey@adacore.com>
5431
5432 * auto-load.c (show_auto_load_cmd): Remove.
5433 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5434 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5435 (maintenance_print_arc_command): Remove.
5436 * tui/tui-win.c (tui_command): Remove.
5437 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5438 * tui/tui-layout.c (tui_layout_command): Remove.
5439 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5440 * python/python.c (user_set_python, user_show_python): Remove.
5441 (_initialize_python): Use add_basic_prefix_cmd,
5442 add_show_prefix_cmd.
5443 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5444 (install_gdb_commands): Use add_basic_prefix_cmd,
5445 add_show_prefix_cmd.
5446 (info_guile_command): Remove.
5447 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5448 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5449 add_show_prefix_cmd.
5450 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5451 Remove do_set and do_show parameters.
5452 * cli/cli-style.c (set_style, show_style): Remove.
5453 (_initialize_cli_style): Use add_basic_prefix_cmd,
5454 add_show_prefix_cmd.
5455 (cli_style_option::add_setshow_commands): Remove do_set and
5456 do_show parameters.
5457 (cli_style_option::add_setshow_commands): Use
5458 add_basic_prefix_cmd, add_show_prefix_cmd.
5459 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5460 (set_style_name): Remove.
5461 * cli/cli-dump.c (dump_command, append_command): Remove.
5462 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5463 (tekhex_dump_command, binary_dump_command)
5464 (binary_append_command): Remove.
5465 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5466 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5467 (init_w32_command_list): Remove; move into ...
5468 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5469 * valprint.c (set_print, show_print, set_print_raw)
5470 (show_print_raw): Remove.
5471 (_initialize_valprint): Use add_basic_prefix_cmd,
5472 add_show_prefix_cmd.
5473 * typeprint.c (set_print_type, show_print_type): Remove.
5474 (_initialize_typeprint): Use add_basic_prefix_cmd,
5475 add_show_prefix_cmd.
5476 * record.c (set_record_command, show_record_command): Remove.
5477 (_initialize_record): Use add_basic_prefix_cmd,
5478 add_show_prefix_cmd.
5479 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5480 add_show_prefix_cmd.
5481 (info_command, show_command, set_debug, show_debug): Remove.
5482 * top.h (set_history, show_history): Don't declare.
5483 * top.c (set_history, show_history): Remove.
5484 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5485 (unset_tdesc_cmd): Remove.
5486 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5487 add_show_prefix_cmd.
5488 * symtab.c (info_module_command): Remove.
5489 (_initialize_symtab): Use add_basic_prefix_cmd.
5490 * symfile.c (overlay_command): Remove.
5491 (_initialize_symfile): Use add_basic_prefix_cmd.
5492 * sparc64-tdep.c (info_adi_command): Remove.
5493 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5494 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5495 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5496 add_show_prefix_cmd.
5497 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5498 (_initialize_serial): Use add_basic_prefix_cmd,
5499 add_show_prefix_cmd.
5500 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5501 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5502 add_show_prefix_cmd.
5503 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5504 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5505 add_show_prefix_cmd.
5506 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5507 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5508 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5509 add_show_prefix_cmd.
5510 * remote.c (remote_command, set_remote_cmd): Remove.
5511 (_initialize_remote): Use add_basic_prefix_cmd.
5512 * record-full.c (set_record_full_command)
5513 (show_record_full_command): Remove.
5514 (_initialize_record_full): Use add_basic_prefix_cmd,
5515 add_show_prefix_cmd.
5516 * record-btrace.c (cmd_set_record_btrace)
5517 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5518 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5519 (cmd_show_record_btrace_pt): Remove.
5520 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5521 add_show_prefix_cmd.
5522 * ravenscar-thread.c (set_ravenscar_command)
5523 (show_ravenscar_command): Remove.
5524 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5525 add_show_prefix_cmd.
5526 * mips-tdep.c (show_mips_command, set_mips_command)
5527 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5528 add_show_prefix_cmd.
5529 * maint.c (maintenance_command, maintenance_info_command)
5530 (maintenance_check_command, maintenance_print_command)
5531 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5532 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5533 add_show_prefix_cmd.
5534 (show_per_command_cmd): Remove.
5535 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5536 Remove.
5537 (maintenance_show_test_settings_cmd): Remove.
5538 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5539 add_show_prefix_cmd.
5540 * maint-test-options.c (maintenance_test_options_command):
5541 Remove.
5542 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5543 * macrocmd.c (macro_command): Remove
5544 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5545 * language.c (set_check, show_check): Remove.
5546 (_initialize_language): Use add_basic_prefix_cmd,
5547 add_show_prefix_cmd.
5548 * infcmd.c (unset_command): Remove.
5549 (_initialize_infcmd): Use add_basic_prefix_cmd.
5550 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5551 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5552 add_show_prefix_cmd.
5553 * go32-nat.c (go32_info_dos_command): Remove.
5554 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5555 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5556 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5557 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5558 (_initialize_frame): Use add_basic_prefix_cmd,
5559 add_show_prefix_cmd.
5560 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5561 (_initialize_dcache): Use add_basic_prefix_cmd,
5562 add_show_prefix_cmd.
5563 * cp-support.c (maint_cplus_command): Remove.
5564 (_initialize_cp_support): Use add_basic_prefix_cmd.
5565 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5566 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5567 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5568 add_basic_prefix_cmd, add_show_prefix_cmd.
5569 * breakpoint.c (save_command): Remove.
5570 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5571 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5572 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5573 add_show_prefix_cmd.
5574 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5575 (set_ada_command, show_ada_command): Remove.
5576 (_initialize_ada_language): Use add_basic_prefix_cmd,
5577 add_show_prefix_cmd.
5578 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5579
3557f442
KR
55802020-04-16 Kamil Rytarowski <n54@gmx.com>
5581
5582 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5583 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5584
16197208
SM
55852020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5586
5587 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5588 warning messages.
5589
00ac85d3
SM
55902020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5591
5592 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5593 import table is not at beginning of .idata section.
5594
381ce63f
PA
55952020-04-16 Pedro Alves <palves@redhat.com>
5596
5597 * inferior.c (delete_inferior): Use delete operator directly
5598 instead of delete_program_space.
5599 * progspace.c (add_program_space): New, factored out from
5600 program_space::program_space.
5601 (remove_program_space): New, factored out from
5602 delete_program_space.
5603 (program_space::program_space): Remove intro comment. Rewrite.
5604 (program_space::~program_space): Remove intro comment. Call
5605 remove_program_space.
5606 (delete_program_space): Delete.
5607 * progspace.h (program_space::program_space): Make explicit. Move
5608 intro comment here, adjusted.
5609 (program_space::~program_space): Move intro comment here,
5610 adjusted.
5611 (delete_program_space): Remove.
5612
a010605f
TT
56132020-04-16 Tom Tromey <tromey@adacore.com>
5614
5615 * windows-nat.c (windows_nat::handle_access_violation): New
5616 function.
5617 * nat/windows-nat.h (handle_access_violation): Declare.
5618 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5619 windows-nat.c. Call handle_access_violation.
5620
efba5c23
TV
56212020-04-16 Tom de Vries <tdevries@suse.de>
5622
5623 PR symtab/25791
5624 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5625 CUs without psymtab.
5626
97ed802d
KB
56272020-04-16 Kevin Buettner <kevinb@redhat.com>
5628
5629 * python/python.c (do_start_initialization): Don't call
5630 PyEval_InitThreads for Python 3.9 and beyond.
5631
c7d64809
KR
56322020-04-15 Kamil Rytarowski <n54@gmx.com>
5633
5634 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5635 thread functions.
5636 (obsd_nat_target::wait): Likewise.
5637
ce127a96
TT
56382020-04-15 Tom Tromey <tromey@adacore.com>
5639
5640 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5641 (DEBUG_EXCEPT): Use debug_printf.
5642
99f1bc6a
AB
56432020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5644
5645 * completer.c (class completion_tracker::completion_hash_entry)
5646 <hash_name>: New member function.
5647 (completion_tracker::discard_completions): New callback to hash a
5648 completion_hash_entry, pass this to htab_create_alloc.
5649
a0e9b532
JT
56502016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5651
5652 * windows-nat.c (windows_make_so): Warn rather than stopping with
5653 an error if realpath() fails.
5654
06ca5dd4
KR
56552020-04-14 Kamil Rytarowski <n54@gmx.com>
5656
5657 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5658 (nbsd_nat_target::info_proc): Add do_status.
5659
194d088f
TV
56602020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5661 Tom de Vries <tdevries@suse.de>
5662
5663 PR symtab/25718
5664 * psympriv.h (struct partial_symtab::read_symtab)
5665 (struct partial_symtab::expand_psymtab)
5666 (struct partial_symtab::read_dependencies): Update comments.
5667 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5668 read_symtab for includer.
5669 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5670 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5671 (struct dwarf2_include_psymtab::m_readin): Remove.
5672 (struct dwarf2_include_psymtab::includer): New member function.
5673 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5674
c1a66c06
TV
56752020-04-14 Tom de Vries <tdevries@suse.de>
5676
5677 PR symtab/25720
5678 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5679 with NULL symbol_matcher and lookup_name.
5680 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5681 and lookup_name.
5682 * dwarf2/read.c (dw2_expand_symtabs_matching)
5683 (dw2_debug_names_expand_symtabs_matching): Same.
5684 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5685 Make lookup_name a pointer. Update comment.
5686 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5687 lookup_name being a pointer.
5688 * symfile.c (expand_symtabs_matching): Same.
5689 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5690 * linespec.c (iterate_over_all_matching_symtabs): Same.
5691
400b5eca
TT
56922020-04-13 Tom Tromey <tom@tromey.com>
5693
5694 * run-on-main-thread.c: Update include.
5695 * unittests/main-thread-selftests.c: Update include.
5696 * tui/tui-win.c: Update include.
5697 * tui/tui-io.c: Update include.
5698 * tui/tui-interp.c: Update include.
5699 * tui/tui-hooks.c: Update include.
5700 * top.h: Update include.
5701 * top.c: Update include.
5702 * ser-base.c: Update include.
5703 * remote.c: Update include.
5704 * remote-notif.c: Update include.
5705 * remote-fileio.c: Update include.
5706 * record-full.c: Update include.
5707 * record-btrace.c: Update include.
5708 * python/python.c: Update include.
5709 * posix-hdep.c: Update include.
5710 * mingw-hdep.c: Update include.
5711 * mi/mi-main.c: Update include.
5712 * mi/mi-interp.c: Update include.
5713 * main.c: Update include.
5714 * linux-nat.c: Update include.
5715 * interps.c: Update include.
5716 * infrun.c: Update include.
5717 * inf-loop.c: Update include.
5718 * event-top.c: Update include.
5719 * event-loop.c: Move to ../gdbsupport/.
5720 * event-loop.h: Move to ../gdbsupport/.
5721 * async-event.h: Update include.
5722 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5723
93b54c8e
TT
57242020-04-13 Tom Tromey <tom@tromey.com>
5725
5726 * tui/tui-win.c: Include async-event.h.
5727 * remote.c: Include async-event.h.
5728 * remote-notif.c: Include async-event.h.
5729 * record-full.c: Include async-event.h.
5730 * record-btrace.c: Include async-event.h.
5731 * infrun.c: Include async-event.h.
5732 * event-top.c: Include async-event.h.
5733 * event-loop.h: Move some declarations to async-event.h.
5734 * event-loop.c: Don't include ser-event.h or top.h. Move some
5735 code to async-event.c.
5736 * async-event.h: New file.
5737 * async-event.c: New file.
5738 * Makefile.in (COMMON_SFILES): Add async-event.c.
5739 (HFILES_NO_SRCDIR): Add async-event.h.
5740
c1cd3163
TT
57412020-04-13 Tom Tromey <tom@tromey.com>
5742
5743 * utils.c (flush_streams): New function.
5744 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5745
29f2bf4f
TT
57462020-04-13 Tom Tromey <tom@tromey.com>
5747
5748 * event-loop.c (handle_file_event): Use warning, not
5749 printf_unfiltered.
5750
98029d02
TT
57512020-04-13 Tom Tromey <tom@tromey.com>
5752
5753 * event-loop.c: Include <chrono>.
5754
06cc9596
TT
57552020-04-13 Tom Tromey <tom@tromey.com>
5756
5757 * gdb_select.h: Move to ../gdbsupport/.
5758 * event-loop.c: Update include path.
5759 * top.c: Update include path.
5760 * ser-base.c: Update include path.
5761 * ui-file.c: Update include path.
5762 * ser-tcp.c: Update include path.
5763 * guile/scm-ports.c: Update include path.
5764 * posix-hdep.c: Update include path.
5765 * ser-unix.c: Update include path.
5766 * gdb_usleep.c: Update include path.
5767 * mingw-hdep.c: Update include path.
5768 * inflow.c: Update include path.
5769 * infrun.c: Update include path.
5770 * event-top.c: Update include path.
5771
8ae8e197
TT
57722020-04-13 Tom Tromey <tom@tromey.com>
5773
5774 * configure: Rebuild.
5775 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5776
58cf28e8
TT
57772020-04-13 Tom Tromey <tom@tromey.com>
5778
5779 * event-loop.h (start_event_loop): Don't declare.
5780 * event-loop.c (start_event_loop): Move...
5781 * main.c (start_event_loop): ...here. Now static.
5782
b7f999ae
SDJ
57832020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5784
5785 * MAINTAINERS: Update my email address.
5786
1085dfd4
KR
57872020-04-12 Kamil Rytarowski <n54@gmx.com>
5788
5789 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5790 IP_ALL.
5791
49d1d1f5
KR
57922020-04-12 Kamil Rytarowski <n54@gmx.com>
5793
5794 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5795 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5796
b4848d2a
KR
57972020-04-12 Kamil Rytarowski <n54@gmx.com>
5798
5799 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5800 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5801
51c133d5
KR
58022020-04-12 Kamil Rytarowski <n54@gmx.com>
5803
5804 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5805
54b8cbd0
KR
58062020-04-11 Kamil Rytarowski <n54@gmx.com>
5807
5808 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5809 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5810 (nbsd_nat_target::info_proc): New functions.
5811 * nbsd-nat.c (kinfo_get_vmmap): New function.
5812 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5813 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5814 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5815 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5816 functions.
5817 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5818 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5819 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5820 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5821 (KINFO_VME_FLAG_GROWS_DOWN): New.
5822
cf83625d
AS
58232020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5824
5825 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5826 bit shift.
5827
0c4311ab
TT
58282020-04-10 Tom Tromey <tromey@adacore.com>
5829
5830 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5831
3e65b3e9
TT
58322020-04-10 Tom Tromey <tromey@adacore.com>
5833
5834 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5835 separate debug files.
5836
13302e95
HD
58372020-04-10 Hannes Domani <ssbssa@yahoo.de>
5838
5839 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5840 Move to...
5841 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5842 ... here.
5843 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5844 Check for STATUS_WX86_BREAKPOINT.
5845 (windows_nat_target::wait): Same.
5846
bdfc1e8a
TV
58472020-04-10 Tom de Vries <tdevries@suse.de>
5848
5849 PR cli/25808
5850 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5851
f4460aec
SM
58522020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5853
5854 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5855 (Write After Approval): Remove Tom de Vries.
5856
a25198bb
BE
58572020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5858
5859 revert partially:
5860 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5861
aac66a4c
SM
5862 * buildsym.c (record_line): Fix undefined behavior and preserve
5863 lines at eof.
a25198bb 5864
206c98a6
KR
58652020-04-09 Kamil Rytarowski <n54@gmx.com>
5866
5867 * auxv.h (svr4_auxv_parse): New.
5868 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5869 and generic_auxv_parse.
5870 (svr4_auxv_parse): Add.
5871 * obsd-tdep.c: Include "auxv.h".
5872 (obsd_auxv_parse): Remove.
5873 (obsd_init_abi): Remove comment.
5874 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5875 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5876 * nbsd-tdep.c: Include "auxv.h".
5877 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5878
71fbdbaf
TT
58792020-04-08 Tom Tromey <tromey@adacore.com>
5880
5881 * nat/windows-nat.h (last_wait_event): Don't declare.
5882 (wait_for_debug_event): Update comment.
5883 * nat/windows-nat.c (last_wait_event): Now static.
5884
2c1d95e8
TT
58852020-04-08 Tom Tromey <tromey@adacore.com>
5886
5887 * windows-nat.c (wait_for_debug_event): Move to
5888 nat/windows-nat.c.
5889 * nat/windows-nat.h (wait_for_debug_event): Declare.
5890 * nat/windows-nat.c (wait_for_debug_event): Move from
5891 windows-nat.c. No longer static.
5892
d2977bc4
TT
58932020-04-08 Tom Tromey <tromey@adacore.com>
5894
5895 * windows-nat.c (get_windows_debug_event): Use
5896 fetch_pending_stop.
5897 * nat/windows-nat.h (fetch_pending_stop): Declare.
5898 * nat/windows-nat.c (fetch_pending_stop): New function.
5899
e758e19c
TT
59002020-04-08 Tom Tromey <tromey@adacore.com>
5901
5902 * windows-nat.c (windows_continue): Use matching_pending_stop and
5903 continue_last_debug_event.
5904 * nat/windows-nat.h (matching_pending_stop)
5905 (continue_last_debug_event): Declare.
5906 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5907 (matching_pending_stop, continue_last_debug_event): New
5908 functions.
5909
8d30e395
TT
59102020-04-08 Tom Tromey <tromey@adacore.com>
5911
5912 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5913 (handle_exception_result): Move to nat/windows-nat.h.
5914 (DEBUG_EXCEPTION_SIMPLE): Remove.
5915 (windows_nat::handle_ms_vc_exception): New function.
5916 (handle_exception): Move to nat/windows-nat.c.
5917 (get_windows_debug_event): Update.
5918 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5919 nat/windows-nat.c.
5920 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5921 (handle_exception_result): Move from windows-nat.c.
5922 (handle_exception): Declare.
5923 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5924 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5925 windows-nat.c.
5926
29de418d
TT
59272020-04-08 Tom Tromey <tromey@adacore.com>
5928
5929 * windows-nat.c (exception_count, event_count): Remove.
5930 (handle_exception, get_windows_debug_event)
5931 (do_initial_windows_stuff): Update.
5932
a816ba18
TT
59332020-04-08 Tom Tromey <tromey@adacore.com>
5934
5935 * windows-nat.c (windows_nat::handle_load_dll)
5936 (windows_nat::handle_unload_dll): Rename. No longer static.
5937 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5938 Declare.
5939
a00caa12
TT
59402020-04-08 Tom Tromey <tromey@adacore.com>
5941
5942 * complaints.h (stop_whining): Declare at top-level.
5943 (complaint): Don't declare stop_whining.
5944
d41b524f
TT
59452020-04-08 Tom Tromey <tromey@adacore.com>
5946
5947 * windows-nat.c (windows_nat::handle_output_debug_string):
5948 Rename. No longer static.
5949 * nat/windows-nat.h (handle_output_debug_string): Declare.
5950
3c76026d
TT
59512020-04-08 Tom Tromey <tromey@adacore.com>
5952
5953 * windows-nat.c (current_process_handle, current_process_id)
5954 (main_thread_id, last_sig, current_event, last_wait_event)
5955 (current_windows_thread, desired_stop_thread_id, pending_stops)
5956 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5957 (display_selectors, fake_create_process)
5958 (get_windows_debug_event): Update.
5959 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5963 * nat/windows-nat.c (current_process_handle, current_process_id)
5964 (main_thread_id, last_sig, current_event, last_wait_event)
5965 (current_windows_thread, desired_stop_thread_id, pending_stops)
5966 (siginfo_er): New globals. Move from windows-nat.c.
5967
9d8679cc
TT
59682020-04-08 Tom Tromey <tromey@adacore.com>
5969
5970 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5971 (handle_load_dll): Update.
5972 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5973
28688adf
TT
59742020-04-08 Tom Tromey <tromey@adacore.com>
5975
5976 * windows-nat.c (enum thread_disposition_type): Move to
5977 nat/windows-nat.h.
5978 (windows_nat::thread_rec): Rename from thread_rec. No longer
5979 static.
5980 (windows_add_thread, windows_nat_target::fetch_registers)
5981 (windows_nat_target::store_registers, handle_exception)
5982 (windows_nat_target::resume, get_windows_debug_event)
5983 (windows_nat_target::get_tib_address)
5984 (windows_nat_target::thread_name)
5985 (windows_nat_target::thread_alive): Update.
5986 * nat/windows-nat.h (enum thread_disposition_type): Move from
5987 windows-nat.c.
5988 (thread_rec): Declare.
5989
4834dad0
TT
59902020-04-08 Tom Tromey <tromey@adacore.com>
5991
5992 * windows-nat.c: Add "using namespace".
5993 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5994 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5995
65bafd5b
TT
59962020-04-08 Tom Tromey <tromey@adacore.com>
5997
5998 * nat/windows-nat.h (struct windows_thread_info): Declare
5999 destructor.
6000 * nat/windows-nat.c (~windows_thread_info): New.
6001
0a4afda3
TT
60022020-04-08 Tom Tromey <tromey@adacore.com>
6003
6004 PR gdb/22992
6005 * windows-nat.c (current_event): Update comment.
6006 (last_wait_event, desired_stop_thread_id): New globals.
6007 (struct pending_stop): New.
6008 (pending_stops): New global.
6009 (windows_nat_target) <stopped_by_sw_breakpoint>
6010 <supports_stopped_by_sw_breakpoint>: New methods.
6011 (windows_fetch_one_register): Add assertions. Adjust PC.
6012 (windows_continue): Handle pending stops. Suspend other threads
6013 when stepping. Use last_wait_event
6014 (wait_for_debug_event): New function.
6015 (get_windows_debug_event): Use wait_for_debug_event. Handle
6016 pending stops. Queue spurious stops.
6017 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6018 (windows_nat_target::kill): Use wait_for_debug_event.
6019 * nat/windows-nat.h (struct windows_thread_info)
6020 <stopped_at_software_breakpoint>: New field.
6021 * nat/windows-nat.c (windows_thread_info::resume): Clear
6022 stopped_at_software_breakpoint.
6023
8e61ebec
TT
60242020-04-08 Tom Tromey <tromey@adacore.com>
6025
6026 * windows-nat.c (enum thread_disposition_type): New.
6027 (thread_rec): Replace "get_context" parameter with "disposition";
6028 change type.
6029 (windows_add_thread, windows_nat_target::fetch_registers)
6030 (windows_nat_target::store_registers, handle_exception)
6031 (windows_nat_target::resume, get_windows_debug_event)
6032 (windows_nat_target::get_tib_address)
6033 (windows_nat_target::thread_name)
6034 (windows_nat_target::thread_alive): Update.
6035
98a03287
TT
60362020-04-08 Tom Tromey <tromey@adacore.com>
6037
6038 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6039 (windows_continue): Use windows_continue::resume.
6040 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6041 resume>: Declare new methods.
6042 * nat/windows-nat.c: New file.
6043 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6044
7c7411bc
TT
60452020-04-08 Tom Tromey <tromey@adacore.com>
6046
6047 * windows-nat.c (windows_add_thread, windows_delete_thread)
6048 (windows_nat_target::fetch_registers)
6049 (windows_nat_target::store_registers, fake_create_process)
6050 (windows_nat_target::resume, windows_nat_target::resume)
6051 (get_windows_debug_event, windows_nat_target::wait)
6052 (windows_nat_target::pid_to_str)
6053 (windows_nat_target::get_tib_address)
6054 (windows_nat_target::get_ada_task_ptid)
6055 (windows_nat_target::thread_name)
6056 (windows_nat_target::thread_alive): Use lwp, not tid.
6057
2950fdf7
TT
60582020-04-08 Tom Tromey <tromey@adacore.com>
6059
6060 * windows-nat.c (handle_exception)
6061 (windows_nat_target::thread_name): Update.
6062 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6063 <name>: Now unique_xmalloc_ptr.
6064
62fe396b
TT
60652020-04-08 Tom Tromey <tromey@adacore.com>
6066
6067 * windows-nat.c (thread_rec)
6068 (windows_nat_target::fetch_registers): Update.
6069 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6070 Update comment.
6071 <debug_registers_changed, reload_context>: Now bool.
6072
e9534bd2
TT
60732020-04-08 Tom Tromey <tromey@adacore.com>
6074
6075 * windows-nat.c (windows_add_thread): Use new.
6076 (windows_init_thread_list, windows_delete_thread): Use delete.
6077 (get_windows_debug_event): Update.
6078 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6079 destructor, and initializers.
6080
ae1f8880
TT
60812020-04-08 Tom Tromey <tromey@adacore.com>
6082
6083 * windows-nat.c (struct windows_thread_info): Remove.
6084 * nat/windows-nat.h: New file.
6085
55a1e039
TT
60862020-04-08 Tom Tromey <tromey@adacore.com>
6087
6088 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6089 (thread_rec, windows_add_thread, windows_delete_thread)
6090 (windows_continue): Update.
6091
93366324
TT
60922020-04-08 Tom Tromey <tromey@adacore.com>
6093
6094 * windows-nat.c (struct windows_thread_info): Remove typedef.
6095 (thread_head): Remove.
6096 (thread_list): New global.
6097 (thread_rec, windows_add_thread, windows_init_thread_list)
6098 (windows_delete_thread, windows_continue): Update.
6099
0f2265e2
SM
61002020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6101
6102 * windows-tdep.h (windows_init_abi): Add comment.
6103 (cygwin_init_abi): New declaration.
6104 * windows-tdep.c: Split signal enumeration in two, one for
6105 Windows and one for Cygwin.
6106 (windows_gdb_signal_to_target): Only deal with signal of the
6107 Windows OS ABI.
6108 (cygwin_gdb_signal_to_target): New function.
6109 (windows_init_abi): Rename to windows_init_abi_common, don't set
6110 gdb_signal_to_target gdbarch method. Add new new function with
6111 this name.
6112 (cygwin_init_abi): New function.
6113 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6114 comment. Don't call windows_init_abi.
6115 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6116 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6117 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6118 i386_windows_init_abi_common, don't call windows_init_abi. Add
6119 a new function of this name.
6120 (i386_cygwin_init_abi): New function.
6121 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6122 OS ABI Cygwin.
6123
3810f182
SM
61242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6125
6126 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6127 parameter.c.
6128 (dwarf2_read_gdb_index): Update.
6129
063f8e80
KR
61302020-04-07 Kamil Rytarowski <n54@gmx.com>
6131
6132 * nbsd-tdep.c: Include "objfiles.h".
6133 (nbsd_skip_solib_resolver): New.
6134 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6135
85a9510c 61362020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6137
6138 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6139 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6140 with DW_LLE_base_addressx are being emitted in DWARFv5.
6141 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6142 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6143 unsigned integer.
6144
9fc3eaae 61452020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6146
6147 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6148 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6149 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6150 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6151 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6152 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6153 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6154
6155
41144253 61562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6157
6158 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6159 (read_loclist_index): New function definition.
6160 (lookup_loclist_base): New function definition.
6161 (read_loclist_header): New function definition.
6162 (dwarf2_cu): Add loclist_base and loclist_header field.
6163 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6164 (read_full_die_1): Read the value of DW_AT_loclists_base.
6165 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6166 (read_attribute_value): Handle DW_FORM_loclistx.
6167 (skip_one_die): Handle DW_FORM_loclistx.
6168 (loclist_header): New structure declaration.
6169 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6170
9f4e76a4
SM
61712020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6172
6173 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6174 constructor. Remove `addr` parameter from other constructor and
6175 add `per_cu` parameter.
6176 * dwarf2/read.c (create_partial_symtab): Update.
6177
25c11aca
TV
61782020-04-07 Tom de Vries <tdevries@suse.de>
6179
6180 PR symtab/25796
6181 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6182 (partial_die_info::fixup): Inherit has_const_value.
6183
5707e24b
TV
61842020-04-07 Tom de Vries <tdevries@suse.de>
6185
6186 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6187 symbols without address.
6188
05f00e22
KR
61892020-04-06 Kamil Rytarowski <n54@gmx.com>
6190
6191 * nbsd-nat.h (struct thread_info): Add forward declaration.
6192 (nbsd_nat_target::thread_alive): Add.
6193 (nbsd_nat_target::thread_name): Likewise.
6194 (nbsd_nat_target::update_thread_list): Likewise.
6195 (update_thread_list::post_attach): Likewise.
6196 (post_attach::pid_to_str): Likewise.
6197 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6198 (nbsd_thread_lister): Add.
6199 (nbsd_nat_target::thread_alive): Likewise.
6200 (nbsd_nat_target::thread_name): Likewise.
6201 (nbsd_add_threads): Likewise.
6202 (update_thread_list::post_attach): Likewise.
6203 (nbsd_nat_target::update_thread_list): Likewise.
6204 (post_attach::pid_to_str): Likewise.
6205
6ee448cc
TT
62062020-04-06 Tom Tromey <tromey@adacore.com>
6207
6208 * ada-valprint.c (print_variant_part): Extract the variant field.
6209 (print_field_values): Use the field as the outer value when
6210 recursing.
6211
dea34e8c
TT
62122020-04-06 Tom Tromey <tromey@adacore.com>
6213
6214 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6215 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6216 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6217 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6218 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6219
93689ce9
TT
62202020-04-06 Tom Tromey <tromey@adacore.com>
6221
6222 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6223 TYPE_CODE_ERROR.
6224
79743962
KR
62252020-04-06 Kamil Rytarowski <n54@gmx.com>
6226
6227 * nbsd-tdep.c: Include "gdbarch.h".
6228 Define enum with NetBSD signal numbers.
6229 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6230 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6231 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6232 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6233 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6234 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6235 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6236 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6237 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6238 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6239 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6240 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6241
9e7c9a03
HD
62422020-04-03 Hannes Domani <ssbssa@yahoo.de>
6243
6244 PR gdb/25325
6245 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6246
d9e49b61
TT
62472020-04-03 Tom Tromey <tromey@adacore.com>
6248
6249 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6250 Read constant block.
6251
e0fc5c3f
SM
62522020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6253
6254 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6255 (gdb_bfd_get_full_section_contents): New declaration.
6256 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6257 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6258 gdb_bfd_get_full_section_contents.
6259
e2ff18a0
SM
62602020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * exec.c (build_section_table): Replace internal_error with
6263 gdb_assert.
6264 (section_table_xfer_memory_partial): Likewise.
6265 * mdebugread.c (parse_partial_symbols): Likewise.
6266 * psymtab.c (lookup_partial_symbol): Likewise.
6267 * utils.c (wrap_here): Likewise.
6268
0830d301
TT
62692020-04-02 Tom Tromey <tromey@adacore.com>
6270
6271 * f-lang.c (build_fortran_types): Use arch_type to initialize
6272 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6273
e7da7f8f
TT
62742020-04-02 Tom Tromey <tromey@adacore.com>
6275
6276 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6277 of attributes.
6278
c90d28ac
AB
62792020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6280 Bernd Edlinger <bernd.edlinger@hotmail.de>
6281 Tom Tromey <tromey@adacore.com>
6282
6283 * buildsym.c (buildsym_compunit::record_line): Remove
6284 deduplication code.
6285
1aa98955
TV
62862020-04-02 Tom de Vries <tdevries@suse.de>
6287
6288 PR ada/24671
6289 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6290
d3214198
TV
62912020-04-02 Tom de Vries <tdevries@suse.de>
6292
6293 * dwarf2/read.c (dwarf2_gdb_index_functions,
6294 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6295 NULL.
6296 * psymtab.c (psym_lookup_global_symbol_language): New function.
6297 (psym_functions): Init psym_lookup_global_symbol_language with
6298 psym_lookup_global_symbol_language.
6299 * symfile-debug.c (debug_sym_quick_functions): Init
6300 lookup_global_symbol_language with NULL.
6301 * symfile.c (set_initial_language): Remove fixme comment.
6302 * symfile.h (struct quick_symbol_functions): Add
6303 lookup_global_symbol_language.
6304 * symtab.c (find_quick_global_symbol_language): New function.
6305 (find_main_name): Use find_quick_global_symbol_language.
6306
2836752f
SM
63072020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6308
6309 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6310
64dc2d4b
BE
63112020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6312
6313 * buildsym.c (record_line): Fix undefined behavior and preserve
6314 lines at eof.
6315
bbe3dc41
BE
63162020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6317
6318 * buildsym.c (record_line): Fix the resizing condition.
6319
6b4a335b
TT
63202020-04-01 Tom Tromey <tom@tromey.com>
6321
6322 * value.h (value_literal_complex): Add comment.
6323 * valops.c (value_literal_complex): Refer to value.h.
6324
3638a098
TT
63252020-04-01 Tom Tromey <tom@tromey.com>
6326
6327 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6328 (scalar_type): New rule, from typebase.
6329 (typebase): Use scalar_type. Recognize complex types.
6330 (field_name): Handle FLOAT_KEYWORD.
6331 (ident_tokens): Add _Complex and __complex__.
6332
c34e8714
TT
63332020-04-01 Tom Tromey <tom@tromey.com>
6334
6335 PR exp/25299:
6336 * valarith.c (promotion_type, complex_binop): New functions.
6337 (scalar_binop): Handle complex numbers. Use promotion_type.
6338 (value_pos, value_neg, value_complement): Handle complex numbers.
6339
fa649bb7
TT
63402020-04-01 Tom Tromey <tom@tromey.com>
6341
6342 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6343 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6344 (parse_number): Handle complex numbers.
6345
981c08ce
TT
63462020-04-01 Tom Tromey <tom@tromey.com>
6347
6348 * c-valprint.c (c_decorations): Change complex suffix to "i".
6349
4c99290d
TT
63502020-04-01 Tom Tromey <tom@tromey.com>
6351
6352 * valprint.c (generic_value_print_complex): Use accessors.
6353 * value.h (value_real_part, value_imaginary_part): Declare.
6354 * valops.c (value_real_part, value_imaginary_part): New
6355 functions.
6356 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6357
5b930b45
TT
63582020-04-01 Tom Tromey <tom@tromey.com>
6359
6360 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6361 (read_range_type): Update.
6362 * mdebugread.c (basic_type): Update.
6363 * go-lang.c (build_go_types): Use init_complex_type.
6364 * gdbtypes.h (struct main_type) <complex_type>: New member.
6365 (init_complex_type): Update.
6366 (arch_complex_type): Don't declare.
6367 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6368 Make name if none given. Use alloc_type_copy. Look for cached
6369 complex type.
6370 (arch_complex_type): Remove.
6371 (gdbtypes_post_init): Use init_complex_type.
6372 * f-lang.c (build_fortran_types): Use init_complex_type.
6373 * dwarf2/read.c (read_base_type): Update.
6374 * d-lang.c (build_d_types): Use init_complex_type.
6375 * ctfread.c (read_base_type): Update.
6376
53cccef1
TBA
63772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6378
6379 * infrun.c (stop_all_threads): Update assertion, plus when
6380 stopping threads, take into account that we might be trying
6381 to stop an all-stop target.
6382 (stop_waiting): Call 'stop_all_threads' if there exists a
6383 non-stop target.
6384
a0714d30
TBA
63852020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6386
6387 * target.h (exists_non_stop_target): New function declaration.
6388 * target.c (exists_non_stop_target): New function.
6389
60e22c1e
HD
63902020-04-01 Hannes Domani <ssbssa@yahoo.de>
6391
6392 PR gdb/24789
6393 * eval.c (is_integral_or_integral_reference): New function.
6394 (evaluate_subexp_standard): Allow integer references in
6395 pointer arithmetic.
6396
e139a727
TBA
63972020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6398
6399 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6400 check for no ptid in the stop reply when the target is non-stop.
6401
e0802d59
TT
64022020-04-01 Tom Tromey <tromey@adacore.com>
6403
6404 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6405 "name" parameter to rvalue reference. Initialize m_name_holder.
6406 <lookup_name_info>: New overloads.
6407 <name>: Return gdb::string_view.
6408 <c_str>: New method.
6409 <make_ignore_params>: Update.
6410 <search_name_hash>: Update.
6411 <language_lookup_name>: Return const char *.
6412 <m_name>: Change type.
6413 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6414 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6415 (lookup_name_info::match_any): Update.
6416 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6417 Update.
6418 * minsyms.c (linkage_name_str): Update.
6419 * language.c (default_symbol_name_matcher): Update.
6420 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6421 Update.
6422 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6423 (ada_lookup_name_info::ada_lookup_name_info): Update.
6424 (literal_symbol_name_matcher): Update.
6425
8c072cb6
TT
64262020-04-01 Tom Tromey <tromey@adacore.com>
6427
6428 * psymtab.c (psymtab_search_name): Remove function.
6429 (psym_lookup_symbol): Create search name and lookup name here.
6430 (lookup_partial_symbol): Remove "name" parameter; add
6431 lookup_name.
6432 (psym_expand_symtabs_for_function): Update.
6433
6f29a534
TT
64342020-03-31 Joel Jones <joelkevinjones@gmail.com>
6435
6436 PR tui/25597:
6437 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6438
af62665e
TT
64392020-03-31 Tom Tromey <tromey@adacore.com>
6440
6441 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6442 memcpy.
6443
d1a89da5
NC
64442020-03-30 Nelson Chu <nelson.chu@sifive.com>
6445
6446 * features/riscv/32bit-csr.xml: Regenerated.
6447 * features/riscv/64bit-csr.xml: Regenerated.
6448
d8af9068
TT
64492020-03-30 Tom Tromey <tromey@adacore.com>
6450
6451 * ada-valprint.c (print_variant_part): Update.
6452 * ada-lang.h (ada_which_variant_applies): Update.
6453 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6454 outer_valaddr parameters; replace with "outer" value parameter.
6455 (to_fixed_variant_branch_type): Update.
6456
227c0bf4
PFC
64572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6458
6459 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6460 <list>. Remove inclusion of observable.h.
6461 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6462 (struct arch_lwp_info): New struct.
6463 (class ppc_linux_dreg_interface): New class.
6464 (struct ppc_linux_process_info): New struct.
6465 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6466 <low_new_clone, low_forget_process, low_prepare_to_resume>
6467 <copy_thread_dreg_state, mark_thread_stale>
6468 <mark_debug_registers_changed, register_hw_breakpoint>
6469 <clear_hw_breakpoint, register_wp, clear_wp>
6470 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6471 <num_memory_accesses, get_trigger_type>
6472 <create_watchpoint_request, hwdebug_point_cmp>
6473 <init_arch_lwp_info, get_arch_lwp_info>
6474 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6475 methods.
6476 <struct ptid_hash>: New inner struct.
6477 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6478 members.
6479 (saved_dabr_value, hwdebug_info, max_slots_number)
6480 (struct hw_break_tuple, struct thread_points, ppc_threads)
6481 (have_ptrace_hwdebug_interface)
6482 (hwdebug_find_thread_points_by_tid)
6483 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6484 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6485 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6486 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6487 use m_dreg_interface.
6488 (hwdebug_point_cmp): Change to...
6489 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6490 reference arguments instead of pointers.
6491 (ppc_linux_nat_target::ranged_break_num_registers): Use
6492 m_dreg_interface.
6493 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6494 m_dreg_interface. Call register_hw_breakpoint.
6495 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6496 m_dreg_interface. Call clear_hw_breakpoint.
6497 (get_trigger_type): Change to...
6498 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6499 comment.
6500 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6501 use m_dreg_interface. Call register_hw_breakpoint.
6502 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6503 use m_dreg_interface. Call clear_hw_breakpoint.
6504 (can_use_watchpoint_cond_accel): Change to...
6505 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6506 method. Update comment, use m_dreg_interface and
6507 m_process_info.
6508 (calculate_dvc): Change to...
6509 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6510 m_dreg_interface.
6511 (num_memory_accesses): Change to...
6512 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6513 (check_condition): Change to...
6514 (ppc_linux_nat_target::check_condition): ...this method.
6515 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6516 comment, use m_dreg_interface.
6517 (create_watchpoint_request): Change to...
6518 (ppc_linux_nat_target::create_watchpoint_request): ...this
6519 method. Use m_dreg_interface.
6520 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6521 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6522 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6523 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6524 (ppc_linux_nat_target::low_forget_process)
6525 (ppc_linux_nat_target::low_new_fork)
6526 (ppc_linux_nat_target::low_new_clone)
6527 (ppc_linux_nat_target::low_delete_thread)
6528 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6529 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6530 only call mark_thread_stale.
6531 (ppc_linux_thread_exit): Remove.
6532 (ppc_linux_nat_target::stopped_data_address): Change to...
6533 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6534 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6535 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6536 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6537 comment. Call low_stopped_data_address.
6538 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6539 m_dreg_interface.
6540 (ppc_linux_nat_target::masked_watch_num_registers): Use
6541 m_dreg_interface.
6542 (ppc_linux_nat_target::copy_thread_dreg_state)
6543 (ppc_linux_nat_target::mark_thread_stale)
6544 (ppc_linux_nat_target::mark_debug_registers_changed)
6545 (ppc_linux_nat_target::register_hw_breakpoint)
6546 (ppc_linux_nat_target::clear_hw_breakpoint)
6547 (ppc_linux_nat_target::register_wp)
6548 (ppc_linux_nat_target::clear_wp)
6549 (ppc_linux_nat_target::init_arch_lwp_info)
6550 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6551 (_initialize_ppc_linux_nat): Remove observer callback.
6552
4db10d8f
PFC
65532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6554
6555 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6556 (ppc_linux_nat_target::auxv_parse)
6557 (ppc_linux_nat_target::read_description)
6558 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6559 Move up.
6560
1310c1b0
PFC
65612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6562
6563 * linux-nat.h (low_new_clone): New method.
6564 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6565
69b037c3
SM
65662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6567
6568 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6569 (dbx_expand_psymtab): ... this.
6570 (start_psymtab): Update.
6571 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6572 (mdebug_expand_psymtab): ... this.
6573 (parse_partial_symbols): Update.
6574 (new_psymtab): Update.
6575 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6576 (xcoff_expand_psymtab): ... this.
6577 (xcoff_start_psymtab): Update.
6578
48993951
SM
65792020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6580
6581 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6582 <expand_dependencies>: ... this.
6583 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6584 (partial_symtab::expand_dependencies): ... this.
6585 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6586 Update.
6587 (dwarf2_psymtab::expand_psymtab): Update.
6588 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6589 * mdebugread.c (psymtab_to_symtab_1): Update.
6590 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6591
3ad83046
SM
65922020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6593
6594 * psympriv.h (discard_psymtab): Remove.
6595 * dbxread.c (dbx_end_psymtab): Update.
6596 * xcoffread.c (xcoff_end_psymtab): Update.
6597
4d1b9ab6
TT
65982020-03-28 Tom Tromey <tom@tromey.com>
6599
6600 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6601 comment.
6602
f1749218
TT
66032020-03-28 Tom Tromey <tom@tromey.com>
6604
6605 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6606
ebea7626
HD
66072020-03-27 Hannes Domani <ssbssa@yahoo.de>
6608
6609 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6610
a879b4d5
JB
66112020-03-26 John Baldwin <jhb@FreeBSD.org>
6612
6613 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6614
0826b30a
TT
66152020-03-26 Tom Tromey <tom@tromey.com>
6616
6617 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6618 (mark_common_block_symbol_computed, read_tag_string_type)
6619 (attr_to_dynamic_prop, read_subrange_type): Update.
6620 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6621 to be methods on struct attribute.
6622 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6623 (read_call_site_scope, partial_die_info::read)
6624 (partial_die_info::read, lookup_die_type, follow_die_ref):
6625 Update.
6626 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6627 from dwarf2_get_ref_die_offset.
6628 (attribute::constant_value): New method, from
6629 dwarf2_get_attr_constant_value.
6630 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6631 Declare method.
6632 <constant_value>: New method.
6633
2b2558bf
TT
66342020-03-26 Tom Tromey <tom@tromey.com>
6635
6636 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6637 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6638 (dwarf_type_encoding_name): Move to stringify.c.
6639 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6640 * dwarf2/stringify.c: New file.
6641 * dwarf2/stringify.h: New file.
6642
eeb64781
TT
66432020-03-26 Tom Tromey <tom@tromey.com>
6644
6645 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6646 Rewrite.
6647
a39fdb41
TT
66482020-03-26 Tom Tromey <tom@tromey.com>
6649
6650 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6651 methods.
6652 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6653 (lookup_ranges_base): Likewise.
6654 (read_cutu_die_from_dwo, read_full_die_1): Update.
6655
436c571c
TT
66562020-03-26 Tom Tromey <tom@tromey.com>
6657
6658 * dwarf2/read.c (read_import_statement, read_file_scope)
6659 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6660 (read_lexical_block_scope, read_call_site_scope)
6661 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6662 (handle_struct_member_die, process_structure_scope)
6663 (update_enumeration_type_from_children)
6664 (process_enumeration_scope, read_array_type, read_common_block)
6665 (read_namespace, read_module, read_subroutine_type): Update.
6666 (sibling_die): Remove.
6667
052c8bb8
TT
66682020-03-26 Tom Tromey <tom@tromey.com>
6669
6670 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6671 (build_type_psymtabs_reader, read_structure_type)
6672 (read_enumeration_type, read_full_die_1): Update.
6673 (dwarf2_attr_no_follow): Move to die.h.
6674 * dwarf2/die.h (struct die_info) <attr>: New method.
6675
2b24b6e4
TT
66762020-03-26 Tom Tromey <tom@tromey.com>
6677
6678 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6679 <base_address>: Now an optional.
6680 (dwarf2_find_base_address, dwarf2_rnglists_process)
6681 (dwarf2_ranges_process, fill_in_loclist_baton)
6682 (dwarf2_symbol_mark_computed): Update.
6683
c2d50fd0
TT
66842020-03-26 Tom Tromey <tom@tromey.com>
6685
6686 * dwarf2/read.c (struct die_info): Move to die.h.
6687 * dwarf2/die.h: New file.
6688
0df7ad3a
TT
66892020-03-26 Tom Tromey <tom@tromey.com>
6690
6691 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6692 * dwarf2/read.c
6693 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6694 Move to line-header.c.
6695 (read_checked_initial_length_and_offset, read_formatted_entries):
6696 Likewise.
6697 (dwarf_decode_line_header): Split into two.
6698 * dwarf2/line-header.c
6699 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6700 Move from read.c.
6701 (read_checked_initial_length_and_offset, read_formatted_entries):
6702 Likewise.
6703 (dwarf_decode_line_header): New function, split from read.c.
6704
86c0bb4c
TT
67052020-03-26 Tom Tromey <tom@tromey.com>
6706
6707 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6708 Declare method.
6709 * dwarf2/read.c (read_attribute_value): Update.
6710 (dwarf2_per_objfile::read_line_string): Rename from
6711 read_indirect_line_string.
6712 (read_formatted_entries): Update.
6713
2ef46c2f
TT
67142020-03-26 Tom Tromey <tom@tromey.com>
6715
6716 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6717 variable.
6718
4f9c1eda
TT
67192020-03-26 Tom Tromey <tom@tromey.com>
6720
6721 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6722 const.
6723 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6724 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6725 parameter const.
6726
5a0e026f
TT
67272020-03-26 Tom Tromey <tom@tromey.com>
6728
6729 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6730 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6731 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6732 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6733
8844c11b
TT
67342020-03-26 Tom Tromey <tom@tromey.com>
6735
6736 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6737 file_names_size, file_full_name, file_file_name>: Use const.
6738 <file_name_at, file_names>: Add const overload.
6739 * dwarf2/line-header.c (line_header::file_file_name)
6740 (line_header::file_full_name): Update.
6741
c90ec28a
TT
67422020-03-26 Tom Tromey <tom@tromey.com>
6743
6744 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6745 (macro_start_file, consume_improper_spaces)
6746 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6747 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6748 (dwarf_decode_macros): Move to macro.c.
6749 * dwarf2/macro.c: New file.
6750 * dwarf2/macro.h: New file.
6751 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6752
4f44ae6c
TT
67532020-03-26 Tom Tromey <tom@tromey.com>
6754
6755 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6756 method.
6757 * dwarf2/section.c: New method. From
6758 read_indirect_string_at_offset_from.
6759 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6760 (read_indirect_string_at_offset_from): Move to section.c.
6761 (read_indirect_string_at_offset): Rewrite.
6762 (read_indirect_line_string_at_offset): Remove.
6763 (read_indirect_string, read_indirect_line_string)
6764 (dwarf_decode_macro_bytes): Update.
6765
a0194fa8
TT
67662020-03-26 Tom Tromey <tom@tromey.com>
6767
6768 * dwarf2/section.h (struct dwarf2_section_info)
6769 <overload_complaint>: Declare.
6770 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6771 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6772 Rename from dwarf2_section_buffer_overflow_complaint.
6773 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6774 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6775
3d27bbdb
TT
67762020-03-26 Tom Tromey <tom@tromey.com>
6777
6778 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6779 Declare.
6780 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6781 Move from read.c.
6782 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6783 to section.c.
6784
9eac9650
TT
67852020-03-26 Tom Tromey <tom@tromey.com>
6786
6787 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6788
bf80d710
TT
67892020-03-26 Tom Tromey <tom@tromey.com>
6790
6791 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6792 "builder".
6793 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6794 parameter.
6795 (dwarf_decode_macros): Update.
6796
0314b390
TT
67972020-03-26 Tom Tromey <tom@tromey.com>
6798
6799 * dwarf2/read.c (read_attribute_value): Update.
6800 (read_indirect_string_from_dwz): Move to dwz.c; change into
6801 method.
6802 (dwarf_decode_macro_bytes): Update.
6803 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6804 * dwarf2/dwz.c: New file.
6805 * Makefile.in (COMMON_SFILES): Add dwz.c.
6806
9fda78b6
TT
68072020-03-26 Tom Tromey <tom@tromey.com>
6808
6809 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6810 * dwarf2/read.c: Add include.
6811 * dwarf2/index-write.c: Add include.
6812 * dwarf2/index-cache.c: Add include.
6813 * dwarf2/dwz.h: New file.
6814
33aa3c10
TT
68152020-03-25 Tom Tromey <tom@tromey.com>
6816
6817 * compile/compile-object-load.c (get_out_value_type): Mention
6818 correct symbol name in error message.
6819
d503b685
HD
68202020-03-25 Hannes Domani <ssbssa@yahoo.de>
6821
6822 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6823
7b1eff95
TV
68242020-03-25 Tom de Vries <tdevries@suse.de>
6825
6826 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6827 * symmisc.c (dump_symtab_1): Print user and includes fields.
6828 (maintenance_info_symtabs): Same.
6829
dd895392
AB
68302020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6831
6832 PR gdb/25534
6833 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6834 (riscv_regcache_cooked_write): New function.
6835 (riscv_push_dummy_call): Use new function.
6836 (riscv_return_value): Likewise.
6837
5ab2fbf1
SM
68382020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6839
6840 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6841 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6842 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6843 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6844 * infrun.c (follow_fork): Likewise.
6845 (follow_fork_inferior): Likewise.
6846 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6847 * linux-nat.h (class linux_nat_target): Likewise.
6848 * remote.c (class remote_target) <follow_fork>: Likewise.
6849 (remote_target::follow_fork): Likewise.
6850 * target-delegates.c: Re-generate.
6851 * target.c (default_follow_fork): Likewise.
6852 (target_follow_fork): Likewise.
6853 * target.h (struct target_ops) <follow_fork>: Likewise.
6854 (target_follow_fork): Likewise.
6855
a64fafb5
TV
68562020-03-24 Tom de Vries <tdevries@suse.de>
6857
6858 * psymtab.c (maintenance_info_psymtabs): Print user field.
6859
fe26d3a3
TT
68602020-03-20 Tom Tromey <tromey@adacore.com>
6861
6862 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6863 const.
6864 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6865 const.
6866
c884cc46
SM
68672020-03-20 Simon Marchi <simon.marchi@efficios.com>
6868
6869 * ptrace.m4: Don't check for ptrace declaration.
6870 * config.in: Re-generate.
6871 * configure: Re-generate.
6872 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6873 not defined.
6874
1ff700c2
KR
68752020-03-20 Kamil Rytarowski <n54@gmx.com>
6876
6877 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6878 `PTRACE_TYPE_RET'.
6879 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6880 * sparc-nat.c (gdb_ptrace): Likewise.
6881 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6882
f7d4f0b1
TT
68832020-03-20 Tom Tromey <tromey@adacore.com>
6884
6885 * c-exp.y (lex_one_token): Fix assert.
6886
f67210ff
TT
68872020-03-20 Tom Tromey <tromey@adacore.com>
6888
6889 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6890 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6891 strncpy call.
6892
1773be9e
TT
68932020-03-20 Tom Tromey <tromey@adacore.com>
6894
6895 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6896
70304be9
TT
68972020-03-20 Tom Tromey <tromey@adacore.com>
6898
6899 * ada-valprint.c (print_variant_part): Remove parameters; switch
6900 to value-based API.
6901 (print_field_values): Likewise.
6902 (ada_val_print_struct_union): Likewise.
6903 (ada_value_print_1): Update.
6904
9faa006d
KR
69052020-03-20 Kamil Rytarowski <n54@gmx.com>
6906
6907 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6908 nbsd_nat_target instead of inf_ptrace_target.
6909 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6910 nbsd_nat_target.
6911
4a90f062
KR
69122020-03-20 Kamil Rytarowski <n54@gmx.com>
6913
6914 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6915 it to the ptrace call.
6916 * (store_registers): Likewise.
6917
69182020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6919
6920 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6921 it to the ptrace call.
6922 * (store_registers): Likewise.
6923
2d07da27
LM
69242020-03-19 Luis Machado <luis.machado@linaro.org>
6925
6926 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6927 valid, fetch vg value from ptrace.
6928
f09db380
KR
69292020-03-19 Kamil Rytarowski <n54@gmx.com>
6930 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6931 * inf-ptrace.c: Likewise.
6932 * (gdb_ptrace): Add.
6933 * (inf_ptrace_target::resume): Update.
6934 * (inf_ptrace_target::xfer_partial): Likewise.
6935 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6936 * (inf_ptrace_peek_poke): Update.
6937
fcc7376e
KR
69382020-03-19 Kamil Rytarowski <n54@gmx.com>
6939
6940 * x86-bsd-nat.c (gdb_ptrace): New.
6941 * (x86bsd_dr_set): Add new argument `ptid'.
6942 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6943 x86bsd_dr_set_addr): Update.
6944
cada5fc9
AB
69452020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6946
6947 * remote.c (remote_target::process_stop_reply): Handle events for
6948 all threads differently.
6949
19a2740f
AB
69502020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6951
6952 * completer.c (completion_tracker::remove_completion): Define new
6953 function.
6954 * completer.h (completion_tracker::remove_completion): Declare new
6955 function.
6956 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6957 when adding a C++ function symbol.
6958
724fd9ba
AB
69592020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6960
6961 * completer.c (completion_tracker::completion_hash_entry): Define
6962 new class.
6963 (advance_to_filename_complete_word_point): Call
6964 recompute_lowest_common_denominator.
6965 (completion_tracker::completion_tracker): Call discard_completions
6966 to setup the hash table.
6967 (completion_tracker::discard_completions): Allow for being called
6968 from the constructor, pass new equal function, and element deleter
6969 when constructing the hash table. Initialise new class member
6970 variables.
6971 (completion_tracker::maybe_add_completion): Remove use of
6972 m_entries_vec, and store more information into m_entries_hash.
6973 (completion_tracker::recompute_lcd_visitor): New function, most
6974 content taken from...
6975 (completion_tracker::recompute_lowest_common_denominator):
6976 ...here, this now just visits each item in the hash calling the
6977 above visitor.
6978 (completion_tracker::build_completion_result): Remove use of
6979 m_entries_vec, call recompute_lowest_common_denominator.
6980 * completer.h (completion_tracker::have_completions): Remove use
6981 of m_entries_vec.
6982 (completion_tracker::completion_hash_entry): Declare new class.
6983 (completion_tracker::recompute_lowest_common_denominator): Change
6984 function signature.
6985 (completion_tracker::recompute_lcd_visitor): Declare new function.
6986 (completion_tracker::m_entries_vec): Delete.
6987 (completion_tracker::m_entries_hash): Initialize to NULL.
6988 (completion_tracker::m_lowest_common_denominator_valid): New
6989 member variable.
6990 (completion_tracker::m_lowest_common_denominator_max_length): New
6991 member variable.
6992
5a82b8a1
KR
69932020-03-17 Kamil Rytarowski <n54@gmx.com>
6994
6995 * regformats/regdef.h: Put reg in gdb namespace.
6996
fb516a69
KR
69972020-03-17 Kamil Rytarowski <n54@gmx.com>
6998
6999 * i386-bsd-nat.c (gdb_ptrace): New.
7000 * (i386bsd_fetch_inferior_registers,
7001 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7002 * (i386bsd_fetch_inferior_registers,
7003 i386bsd_store_inferior_registers) Use gdb_ptrace.
7004
1c0aa1fb
KR
70052020-03-17 Kamil Rytarowski <n54@gmx.com>
7006
7007 * amd64-bsd-nat.c (gdb_ptrace): New.
7008 * (amd64bsd_fetch_inferior_registers,
7009 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7010 * (amd64bsd_fetch_inferior_registers,
7011 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7012
5ccd2fb7
KR
70132020-03-17 Kamil Rytarowski <n54@gmx.com>
7014
7015 * user-regs.c (user_reg::read): Rename to...
7016 (user_reg::xread): ...this.
7017 * (append_user_reg): Rename argument `read' to `xread'.
7018 * (user_reg_add_builtin): Likewise.
7019 * (user_reg_add): Likewise.
7020 * (value_of_user_reg): Likewise.
7021
2108a63a
KR
70222020-03-17 Kamil Rytarowski <n54@gmx.com>
7023
7024 * sparc-nat.c (gdb_ptrace): New.
7025 * sparc-nat.c (sparc_fetch_inferior_registers)
7026 (sparc_store_inferior_registers) Remove obsolete comment.
7027 * sparc-nat.c (sparc_fetch_inferior_registers)
7028 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7029 * sparc-nat.c (sparc_fetch_inferior_registers)
7030 (sparc_store_inferior_registers) Use gdb_ptrace.
7031
a225c9a8
KR
70322020-03-17 Kamil Rytarowski <n54@gmx.com>
7033
7034 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7035 it to the ptrace call.
7036 * sh-nbsd-nat.c (store_registers): Likewise.
7037
98097623
KR
70382020-03-17 Kamil Rytarowski <n54@gmx.com>
7039
7040 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7041 nbsd_nat_target instead of inf_ptrace_target.
7042 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7043 nbsd_nat_target.
7044
9e38d619
KR
70452020-03-17 Kamil Rytarowski <n54@gmx.com>
7046
7047 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7048
a2ecbe9f
KR
70492020-03-17 Kamil Rytarowski <n54@gmx.com>
7050
7051 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7052 <sys/sysctl.h>.
7053 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7054
58990295
TV
70552020-03-17 Tom de Vries <tdevries@suse.de>
7056
7057 PR gdb/23710
7058 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7059 fields.
7060 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7061 fields.
7062 (process_imported_unit_die): Skip import of c++ CUs.
7063
771dd3a8
TT
70642020-03-16 Tom Tromey <tom@tromey.com>
7065
7066 * p-valprint.c (pascal_object_print_value): Initialize
7067 base_value.
7068
817a7585
AK
70692020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7070 Shahab Vahedi <shahab@synopsys.com>
7071
7072 * Makefile.in: Add arch/arc.o
7073 * configure.tgt: Likewise.
7074 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7075 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7076 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7077 * arc-tdep.h (arc_read_description): Add proto type.
7078 * arch/arc.c: New file.
7079 * arch/arc.h: Likewise.
7080 * features/Makefile: Replace old target descriptions with new.
7081 * features/arc-arcompact.c: Remove.
7082 * features/arc-arcompact.xml: Likewise.
7083 * features/arc-v2.c: Likewise
7084 * features/arc-v2.xml: Likewise
7085 * features/arc/aux-arcompact.xml: New file.
7086 * features/arc/aux-v2.xml: Likewise.
7087 * features/arc/core-arcompact.xml: Likewise.
7088 * features/arc/core-v2.xml: Likewise.
7089 * features/arc/aux-arcompact.c: Generate.
7090 * features/arc/aux-v2.c: Likewise.
7091 * features/arc/core-arcompact.c: Likewise.
7092 * features/arc/core-v2.c: Likewise.
7093 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7094
67430cd0
TT
70952020-03-16 Tom Tromey <tromey@adacore.com>
7096
7097 PR gdb/25663:
7098 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7099 putting value into bcache.
7100
30efb6c7
SM
71012020-03-16 Simon Marchi <simon.marchi@efficios.com>
7102
7103 PR gdb/21500
7104 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7105 to...
7106 (amd64_windows_init_abi_common): ... this. Don't set size of
7107 long type.
7108 (amd64_windows_init_abi): New function.
7109 (amd64_cygwin_init_abi): New function.
7110 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7111 the Cygwin OS ABI.
7112 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7113 comment.
7114
8db52437
SM
71152020-03-16 Simon Marchi <simon.marchi@efficios.com>
7116
7117 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7118 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7119 (pe_import_directory_entry): New struct type.
7120 (is_linked_with_cygwin_dll): New function.
7121 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7122 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7123 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7124
5982a56a
SM
71252020-03-16 Simon Marchi <simon.marchi@efficios.com>
7126
7127 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7128 i386_cygwin_core_osabi_sniffer.
7129
7a1998df
SM
71302020-03-16 Simon Marchi <simon.marchi@efficios.com>
7131
7132 * i386-cygwin-tdep.c: Rename to...
7133 * i386-windows-tdep.c: ... this.
7134 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7135 i386-windows-tdep.c.
7136 * configure.tgt: Likewise.
7137
053205cc
SM
71382020-03-16 Simon Marchi <simon.marchi@efficios.com>
7139
7140 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7141 * osabi.c (gdb_osabi_names): Add "Windows".
7142 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7143 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7144 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7145 i386_cygwin_osabi_sniffer.
7146 (_initialize_i386_cygwin_tdep): Register OS ABI
7147 GDB_OSABI_WINDOWS for i386.
7148 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7149 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7150 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7151 for x86-64.
7152 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7153 when the target matches '*-*-mingw*'.
7154
fe4b2ee6
SM
71552020-03-16 Simon Marchi <simon.marchi@efficios.com>
7156
7157 * defs.h (enum gdb_osabi): Move to...
7158 * osabi.h (enum gdb_osabi): ... here.
7159 * gdbarch.sh: Include osabi.h in gdbarch.h.
7160 * gdbarch.h: Re-generate.
7161
cb9b645d
SM
71622020-03-16 Simon Marchi <simon.marchi@efficios.com>
7163
7164 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7165 function.
7166 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7167
3293bbaf
TT
71682020-03-14 Tom Tromey <tom@tromey.com>
7169
7170 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7171 for C++.
7172 (c_type_print_modifier): Likewise. Add "language" parameter.
7173 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7174 (c_type_print_base_1): Update.
7175 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7176 constants.
7177 * type-stack.c (type_stack::insert): Handle tp_atomic and
7178 tp_restrict.
7179 (type_stack::follow_type_instance_flags): Likewise.
7180 (type_stack::follow_types): Likewise. Merge type-following code.
7181 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7182 (space_identifier, cv_with_space_id)
7183 (const_or_volatile_or_space_identifier_noopt)
7184 (const_or_volatile_or_space_identifier): Remove.
7185 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7186 rules.
7187 (ptr_operator, typebase): Update.
7188 (enum token_flag) <FLAG_C>: New constant.
7189 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7190 "_Atomic".
7191 (lex_one_token): Handle FLAG_C.
7192
154151a6
KR
71932020-03-14 Kamil Rytarowski <n54@gmx.com>
7194
7195 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7196 it to the ptrace call.
7197 * m68k-bsd-nat.c (store_registers): Likewise.
7198
bc107784
KR
71992020-03-14 Kamil Rytarowski <n54@gmx.com>
7200
7201 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7202 gdb_byte *.
7203 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7204 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7205 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7206
01a80117
KR
72072020-03-14 Kamil Rytarowski <n54@gmx.com>
7208
7209 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7210 nbsd_nat_target instead of inf_ptrace_target.
7211 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7212 nbsd_nat_target.
7213
f90280ca
KR
72142020-03-14 Kamil Rytarowski <n54@gmx.com>
7215
7216 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7217 register_t.
7218
6def66f1
KR
72192020-03-14 Kamil Rytarowski <n54@gmx.com>
7220
7221 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7222 it to the ptrace call.
7223 * alpha-bsd-nat.c (store_registers): Likewise.
7224
66eaca97
KR
72252020-03-14 Kamil Rytarowski <n54@gmx.com>
7226
7227 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7228 includes.
7229 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7230 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7231 fill_fpregset): Likewise.
7232
4fed520b
KR
72332020-03-14 Kamil Rytarowski <n54@gmx.com>
7234
7235 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7236 nbsd_nat_target instead of inf_ptrace_target.
7237 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7238 nbsd_nat_target.
7239
2190cf06
KR
72402020-03-14 Kamil Rytarowski <n54@gmx.com>
7241
7242 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7243 register_t.
7244
75c56d3d
KR
72452020-03-14 Kamil Rytarowski <n54@gmx.com>
7246
7247 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7248 it to the ptrace call.
7249 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7250 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7251 * arm-nbsd-nat.c (store_register): Likewise.
7252 * arm-nbsd-nat.c (store_regs): Likewise.
7253 * arm-nbsd-nat.c (store_fp_register): Likewise.
7254 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7255
6018d381
KR
72562020-03-14 Kamil Rytarowski <n54@gmx.com>
7257
7258 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7259 nbsd_nat_target instead of inf_ptrace_target.
7260 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7261 nbsd_nat_target.
7262
013f99f0
KR
72632020-03-14 Kamil Rytarowski <n54@gmx.com>
7264
7265 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7266 it to the ptrace call.
7267 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7268
12753073
KR
72692020-03-14 Kamil Rytarowski <n54@gmx.com>
7270
6227b330
KR
7271 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7272 it to the ptrace call.
7273 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7274
72752020-03-14 Kamil Rytarowski <n54@gmx.com>
7276
7277 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7278 gdb_byte *.
12753073
KR
7279 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7280
d5be5fa4
KR
72812020-03-14 Kamil Rytarowski <n54@gmx.com>
7282
7283 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7284 instead of inf_ptrace_target.
7285 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7286 nbsd_nat_target.
7287
8110f842
KR
72882020-03-14 Kamil Rytarowski <n54@gmx.com>
7289
7290 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7291 register_t.
7292
52feded7
KR
72932020-03-14 Kamil Rytarowski <n54@gmx.com>
7294
7295 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7296 register_t.
7297
25567eee
KR
72982020-03-14 Kamil Rytarowski <n54@gmx.com>
7299
7300 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7301 register_t.
7302
426a9c18
TT
73032020-03-13 Tom Tromey <tom@tromey.com>
7304
7305 * value.h (val_print): Don't declare.
7306 * valprint.h (val_print_array_elements)
7307 (val_print_scalar_formatted, generic_val_print): Don't declare.
7308 * valprint.c (generic_val_print_array): Take a struct value.
7309 (generic_val_print_ptr, generic_val_print_memberptr)
7310 (generic_val_print_bool, generic_val_print_int)
7311 (generic_val_print_char, generic_val_print_complex)
7312 (generic_val_print): Remove.
7313 (generic_value_print): Update.
7314 (do_val_print): Remove unused parameters. Don't call
7315 la_val_print.
7316 (val_print): Remove.
7317 (common_val_print): Update. Don't call value_check_printable.
7318 (val_print_scalar_formatted, val_print_array_elements): Remove.
7319 * rust-lang.c (rust_val_print): Remove.
7320 (rust_language_defn): Update.
7321 * p-valprint.c (pascal_val_print): Remove.
7322 (pascal_value_print_inner): Update.
7323 (pascal_object_print_val_fields, pascal_object_print_val):
7324 Remove.
7325 (pascal_object_print_static_field): Update.
7326 * p-lang.h (pascal_val_print): Don't declare.
7327 * p-lang.c (pascal_language_defn): Update.
7328 * opencl-lang.c (opencl_language_defn): Update.
7329 * objc-lang.c (objc_language_defn): Update.
7330 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7331 * m2-lang.h (m2_val_print): Don't declare.
7332 * m2-lang.c (m2_language_defn): Update.
7333 * language.h (struct language_defn) <la_val_print>: Remove.
7334 * language.c (unk_lang_value_print_inner): Rename. Change
7335 argument types.
7336 (unknown_language_defn, auto_language_defn): Update.
7337 * go-valprint.c (go_val_print): Remove.
7338 * go-lang.h (go_val_print): Don't declare.
7339 * go-lang.c (go_language_defn): Update.
7340 * f-valprint.c (f_val_print): Remove.
7341 * f-lang.h (f_value_print): Don't declare.
7342 * f-lang.c (f_language_defn): Update.
7343 * d-valprint.c (d_val_print): Remove.
7344 * d-lang.h (d_value_print): Don't declare.
7345 * d-lang.c (d_language_defn): Update.
7346 * cp-valprint.c (cp_print_value_fields)
7347 (cp_print_value_fields_rtti, cp_print_value): Remove.
7348 (cp_print_static_field): Update.
7349 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7350 (c_val_print_struct, c_val_print_union, c_val_print_int)
7351 (c_val_print_memberptr, c_val_print): Remove.
7352 * c-lang.h (c_val_print_array, cp_print_value_fields)
7353 (cp_print_value_fields_rtti): Don't declare.
7354 * c-lang.c (c_language_defn, cplus_language_defn)
7355 (asm_language_defn, minimal_language_defn): Update.
7356 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7357 (ada_val_print_enum): Take a struct value.
7358 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7359 (ada_val_print): Remove.
7360 (ada_value_print_1): Update.
7361 (printable_val_type): Remove.
7362 * ada-lang.h (ada_val_print): Don't declare.
7363 * ada-lang.c (ada_language_defn): Update.
7364
42331a1e
TT
73652020-03-13 Tom Tromey <tom@tromey.com>
7366
7367 * valprint.c (do_val_print): Update.
7368 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7369 a struct value.
7370 (value_to_value_object_no_release): Declare.
7371 * python/py-value.c (value_to_value_object_no_release): New
7372 function.
7373 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7374 struct value.
7375 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7376 function.
7377 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7378 a struct value.
7379 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7380 Declare.
7381 (gdbscm_apply_val_pretty_printer): Take a struct value.
7382 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7383 value.
7384 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7385 value.
7386 * extension-priv.h (struct extension_language_ops)
7387 <apply_val_pretty_printer>: Take a struct value.
7388 * cp-valprint.c (cp_print_value): Create a struct value.
7389 (cp_print_value): Update.
7390
3a916a97
TT
73912020-03-13 Tom Tromey <tom@tromey.com>
7392
7393 * ada-valprint.c (print_field_values): Call common_val_print.
7394
b59eac37
TT
73952020-03-13 Tom Tromey <tom@tromey.com>
7396
7397 * ada-valprint.c (val_print_packed_array_elements): Remove
7398 bitoffset and val parameters. Call common_val_print.
7399 (ada_val_print_string): Remove offset, address, and original_value
7400 parameters.
7401 (ada_val_print_array): Update.
7402 (ada_value_print_array): New function.
7403 (ada_value_print_1): Call it.
7404
03371129
TT
74052020-03-13 Tom Tromey <tom@tromey.com>
7406
7407 * ada-valprint.c (ada_value_print): Use common_val_print.
7408
2e088f8b
TT
74092020-03-13 Tom Tromey <tom@tromey.com>
7410
7411 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7412
39ef85a8
TT
74132020-03-13 Tom Tromey <tom@tromey.com>
7414
7415 * ada-valprint.c (ada_value_print_num): New function.
7416 (ada_value_print_1): Use it.
7417
b9fa6e07
TT
74182020-03-13 Tom Tromey <tom@tromey.com>
7419
7420 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7421
416595d6
TT
74222020-03-13 Tom Tromey <tom@tromey.com>
7423
7424 * ada-valprint.c (ada_value_print_ptr): New function.
7425 (ada_value_print_1): Use it.
7426
5b5e15ec
TT
74272020-03-13 Tom Tromey <tom@tromey.com>
7428
7429 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7430 call common_val_print.
7431 (ada_val_print_1): Update.
7432 (ada_value_print_1): New function.
7433 (ada_value_print_inner): Rewrite.
7434
fbf54e75
TT
74352020-03-13 Tom Tromey <tom@tromey.com>
7436
7437 * cp-valprint.c (cp_print_value_fields): Update.
7438 (cp_print_value): New function.
7439
64b653ca
TT
74402020-03-13 Tom Tromey <tom@tromey.com>
7441
7442 * m2-valprint.c (m2_value_print_inner): Use
7443 cp_print_value_fields.
7444 * cp-valprint.c (cp_print_value_fields): New function.
7445 * c-valprint.c (c_value_print_struct): New function.
7446 (c_value_print_inner): Use c_value_print_struct.
7447 * c-lang.h (cp_print_value_fields): Declare.
7448
6999f067
TT
74492020-03-13 Tom Tromey <tom@tromey.com>
7450
7451 * c-valprint.c (c_value_print_array): New function.
7452 (c_value_print_inner): Use it.
7453
ce80b8bd
TT
74542020-03-13 Tom Tromey <tom@tromey.com>
7455
7456 * c-valprint.c (c_value_print_memberptr): New function.
7457 (c_value_print_inner): Use it.
7458
2faac269
TT
74592020-03-13 Tom Tromey <tom@tromey.com>
7460
7461 * c-valprint.c (c_value_print_int): New function.
7462 (c_value_print_inner): Use it.
7463
da3e2c29
TT
74642020-03-13 Tom Tromey <tom@tromey.com>
7465
7466 * c-valprint.c (c_value_print_ptr): New function.
7467 (c_value_print_inner): Use it.
7468
50836231
TT
74692020-03-13 Tom Tromey <tom@tromey.com>
7470
7471 * c-valprint.c (c_value_print_inner): Rewrite.
7472
4f412b6e
TT
74732020-03-13 Tom Tromey <tom@tromey.com>
7474
7475 * valprint.c (generic_value_print_complex): New function.
7476 (generic_value_print): Use it.
7477
f5354008
TT
74782020-03-13 Tom Tromey <tom@tromey.com>
7479
7480 * valprint.c (generic_val_print_float): Don't call
7481 val_print_scalar_formatted.
7482 (generic_val_print, generic_value_print): Update.
7483
3eec3b05
TT
74842020-03-13 Tom Tromey <tom@tromey.com>
7485
7486 * valprint.c (generic_value_print_char): New function
7487 (generic_value_print): Use it.
7488
fdddfccb
TT
74892020-03-13 Tom Tromey <tom@tromey.com>
7490
7491 * valprint.c (generic_value_print_int): New function.
7492 (generic_value_print): Use it.
7493
6dde7521
TT
74942020-03-13 Tom Tromey <tom@tromey.com>
7495
7496 * valprint.c (generic_value_print_bool): New function.
7497 (generic_value_print): Use it.
7498
4112d2e6
TT
74992020-03-13 Tom Tromey <tom@tromey.com>
7500
7501 * valprint.c (generic_val_print_func): Simplify.
7502 (generic_val_print, generic_value_print): Update.
7503
65786af6
TT
75042020-03-13 Tom Tromey <tom@tromey.com>
7505
7506 * valprint.c (generic_val_print_flags): Remove.
7507 (generic_val_print, generic_value_print): Update.
7508 (val_print_type_code_flags): Add original_value parameter.
7509
40f3ce18
TT
75102020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * valprint.c (generic_val_print): Update.
7513 (generic_value_print): Update.
7514 * valprint.c (generic_val_print_enum): Don't call
7515 val_print_scalar_formatted.
7516
2a5b130b
TT
75172020-03-13 Tom Tromey <tom@tromey.com>
7518
7519 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7520 * valprint.c (generic_value_print_ptr): New function.
7521
abc66ce9
TT
75222020-03-13 Tom Tromey <tom@tromey.com>
7523
7524 * valprint.c (generic_value_print): Rewrite.
7525
07a32858
TT
75262020-03-13 Tom Tromey <tom@tromey.com>
7527
7528 * p-valprint.c (pascal_object_print_value_fields)
7529 (pascal_object_print_value): New functions.
7530
64d64d3a
TT
75312020-03-13 Tom Tromey <tom@tromey.com>
7532
7533 * p-valprint.c (pascal_value_print_inner): Rewrite.
7534
6a95a1f5
TT
75352020-03-13 Tom Tromey <tom@tromey.com>
7536
7537 * f-valprint.c (f_value_print_innner): Rewrite.
7538
59fcdac6
TT
75392020-03-13 Tom Tromey <tom@tromey.com>
7540
7541 * m2-valprint.c (m2_print_unbounded_array): New overload.
7542 (m2_print_unbounded_array): Update.
7543 (m2_print_array_contents): Take a struct value.
7544 (m2_value_print_inner): Rewrite.
7545
d133c3e1
TT
75462020-03-13 Tom Tromey <tom@tromey.com>
7547
7548 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7549 (d_value_print_inner): New function.
7550 * d-lang.h (d_value_print_inner): Declare.
7551 * d-lang.c (d_language_defn): Use d_value_print_inner.
7552
23b0f06b
TT
75532020-03-13 Tom Tromey <tom@tromey.com>
7554
7555 * go-valprint.c (go_value_print_inner): New function.
7556 * go-lang.h (go_value_print_inner): Declare.
7557 * go-lang.c (go_language_defn): Use go_value_print_inner.
7558
5f56f7cb
TT
75592020-03-13 Tom Tromey <tom@tromey.com>
7560
7561 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7562 API.
7563 (rust_val_print): Rewrite.
7564 (rust_value_print_inner): New function, from rust_val_print.
7565 (rust_language_defn): Use rust_value_print_inner.
7566
26792ee0
TT
75672020-03-13 Tom Tromey <tom@tromey.com>
7568
7569 * ada-valprint.c (ada_value_print_inner): New function.
7570 * ada-lang.h (ada_value_print_inner): Declare.
7571 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7572
24051bbe
TT
75732020-03-13 Tom Tromey <tom@tromey.com>
7574
7575 * f-valprint.c (f_value_print_innner): New function.
7576 * f-lang.h (f_value_print_innner): Declare.
7577 * f-lang.c (f_language_defn): Use f_value_print_innner.
7578
c0941be6
TT
75792020-03-13 Tom Tromey <tom@tromey.com>
7580
7581 * p-valprint.c (pascal_value_print_inner): New function.
7582 * p-lang.h (pascal_value_print_inner): Declare.
7583 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7584
62c4663d
TT
75852020-03-13 Tom Tromey <tom@tromey.com>
7586
7587 * m2-valprint.c (m2_value_print_inner): New function.
7588 * m2-lang.h (m2_value_print_inner): Declare.
7589 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7590
62182190
TT
75912020-03-13 Tom Tromey <tom@tromey.com>
7592
7593 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7594 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7595 * c-valprint.c (c_value_print_inner): New function.
7596 * c-lang.h (c_value_print_inner): Declare.
7597 * c-lang.c (c_language_defn, cplus_language_defn)
7598 (asm_language_defn, minimal_language_defn): Use
7599 c_value_print_inner.
7600
1e592a8a
TT
76012020-03-13 Tom Tromey <tom@tromey.com>
7602
7603 * p-valprint.c (pascal_object_print_value_fields): Now static.
7604 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7605
7fe471e9
TT
76062020-03-13 Tom Tromey <tom@tromey.com>
7607
7608 * c-valprint.c (c_val_print_array): Simplify.
7609
d121c6ce
TT
76102020-03-13 Tom Tromey <tom@tromey.com>
7611
7612 * valprint.c (value_print_array_elements): New function.
7613 * valprint.h (value_print_array_elements): Declare.
7614
4dba70ee
TT
76152020-03-13 Tom Tromey <tom@tromey.com>
7616
7617 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7618 * mips-tdep.c (mips_print_register): Use
7619 value_print_scalar_formatted.
7620
4f9ae810
TT
76212020-03-13 Tom Tromey <tom@tromey.com>
7622
7623 * valprint.h (value_print_scalar_formatted): Declare.
7624 * valprint.c (value_print_scalar_formatted): New function.
7625
156bfec9
TT
76262020-03-13 Tom Tromey <tom@tromey.com>
7627
7628 * valprint.h (generic_value_print): Declare.
7629 * valprint.c (generic_value_print): New function.
7630
2b4e573d
TT
76312020-03-13 Tom Tromey <tom@tromey.com>
7632
7633 * valprint.c (do_val_print): Call la_value_print_inner, if
7634 available.
7635 * rust-lang.c (rust_language_defn): Update.
7636 * p-lang.c (pascal_language_defn): Update.
7637 * opencl-lang.c (opencl_language_defn): Update.
7638 * objc-lang.c (objc_language_defn): Update.
7639 * m2-lang.c (m2_language_defn): Update.
7640 * language.h (struct language_defn) <la_value_print_inner>: New
7641 member.
7642 * language.c (unknown_language_defn, auto_language_defn): Update.
7643 * go-lang.c (go_language_defn): Update.
7644 * f-lang.c (f_language_defn): Update.
7645 * d-lang.c (d_language_defn): Update.
7646 * c-lang.c (c_language_defn, cplus_language_defn)
7647 (asm_language_defn, minimal_language_defn): Update.
7648 * ada-lang.c (ada_language_defn): Update.
7649
a1f6a07c
TT
76502020-03-13 Tom Tromey <tom@tromey.com>
7651
7652 * c-valprint.c (c_value_print): Use common_val_print.
7653
410cf315
TT
76542020-03-13 Tom Tromey <tom@tromey.com>
7655
7656 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7657
72a45c93
TT
76582020-03-13 Tom Tromey <tom@tromey.com>
7659
7660 * f-valprint.c (f77_print_array_1, f_val_print): Use
7661 common_val_print.
7662
040f66bd
TT
76632020-03-13 Tom Tromey <tom@tromey.com>
7664
7665 * riscv-tdep.c (riscv_print_one_register_info): Use
7666 common_val_print.
7667
a6e05a6c
TT
76682020-03-13 Tom Tromey <tom@tromey.com>
7669
7670 * mi/mi-main.c (output_register): Use common_val_print.
7671
3444c526
TT
76722020-03-13 Tom Tromey <tom@tromey.com>
7673
7674 * infcmd.c (default_print_one_register_info): Use
7675 common_val_print.
7676
c2a44efe
TT
76772020-03-13 Tom Tromey <tom@tromey.com>
7678
7679 * valprint.h (common_val_print_checked): Declare.
7680 * valprint.c (common_val_print_checked): New function.
7681 * stack.c (print_frame_arg): Use common_val_print_checked.
7682
b0c26e99
TT
76832020-03-13 Tom Tromey <tom@tromey.com>
7684
7685 * valprint.c (do_val_print): New function, from val_print.
7686 (val_print): Use do_val_print.
7687 (common_val_print): Use do_val_print.
7688
ce3acbe9
TT
76892020-03-13 Tom Tromey <tom@tromey.com>
7690
7691 * valprint.c (value_print): Use scoped_value_mark.
7692
96c7f873
TV
76932020-03-13 Tom de Vries <tdevries@suse.de>
7694
7695 PR symtab/25646
7696 * psymtab.c (partial_symtab::partial_symtab): Don't set
7697 globals_offset and statics_offset. Push element onto
7698 current_global_psymbols and current_static_psymbols stacks.
7699 (concat): New function.
7700 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7701 element from current_global_psymbols and current_static_psymbols
7702 stacks. Concat popped elements to global_psymbols and
7703 static_symbols.
7704 (add_psymbol_to_list): Use current_global_psymbols and
7705 current_static_psymbols stacks.
7706 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7707 current_static_psymbols fields.
7708
6ba0a321
CB
77092020-03-12 Christian Biesinger <cbiesinger@google.com>
7710
7711 * corelow.c (sniff_core_bfd): Remove.
7712 (class core_target) <m_core_vec>: Remove.
7713 (core_target::core_target): Update.
7714 (core_file_fns): Remove.
7715 (deprecated_add_core_fns): Remove.
7716 (default_core_sniffer): Remove.
7717 (sniff_core_bfd): Remove.
7718 (default_check_format): Remove.
7719 (gdb_check_format): Remove.
7720 (core_target_open): Update.
7721 (core_target::get_core_register_section): Update.
7722 (get_core_registers_cb): Update.
7723 (core_target::fetch_registers): Update.
7724 * gdbcore.h (struct core_fns): Remove.
7725 (deprecated_add_core_fns): Remove.
7726 (default_core_sniffer): Remove.
7727 (default_check_format): Remove.
7728
227031b2
TT
77292020-03-12 Tom Tromey <tom@tromey.com>
7730
7731 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7732 CORE_ADDR.
7733 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7734
53807e9f
TT
77352020-03-12 Tom Tromey <tom@tromey.com>
7736
7737 * remote.c (remote_target::download_tracepoint)
7738 (remote_target::enable_tracepoint)
7739 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7740 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7741 sprintf_vma.
7742
64f25102
TT
77432020-03-12 Tom Tromey <tom@tromey.com>
7744
7745 * symfile-mem.c: Update CORE_ADDR size assert.
7746
272cd5a3
SM
77472020-03-12 Simon Marchi <simon.marchi@efficios.com>
7748
7749 * selftest.m4: Move to gdbsupport/.
7750 * acinclude.m4: Update path to selftest.m4.
7751
74cd3f9d
SM
77522020-03-12 Simon Marchi <simon.marchi@efficios.com>
7753
7754 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7755 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7756 gdbarch-selfselftests.c and selftest-arch.c.
7757 (SUBDIR_UNITTESTS_OBS): Rename to...
7758 (SELFTESTS_OBS): ... this.
7759 (COMMON_SFILES): Remove disasm-selftests.c and
7760 gdbarch-selftests.c.
7761 * configure.ac: Don't add selftest-arch.{c,o} to
7762 CONFIG_{SRCS,OBS}.
7763 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7764 preprocessor conditions.
7765
db6878ac
SM
77662020-03-12 Simon Marchi <simon.marchi@efficios.com>
7767
7768 * configure.ac: Don't source bfd/development.sh.
7769 * selftest.m4: Modify comment.
7770 * configure: Re-generate.
7771
4d696a5c
SM
77722020-03-12 Simon Marchi <simon.marchi@efficios.com>
7773
7774 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7775 not "true" or "false".
7776 * configure: Re-generate.
7777
8dd8e1c7
CB
77782020-03-12 Christian Biesinger <cbiesinger@google.com>
7779
7780 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7781 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7782 renamed to arm_nbsd_supply_gregset.
7783 (fetch_register): Update to call arm_nbsd_supply_gregset.
7784 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7785 (arm_netbsd_nat_target::fetch_registers): Update.
7786 (fetch_elfcore_registers): Removed.
7787 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7788 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7789 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7790 not require NetBSD system headers.
7791 (arm_nbsd_regset): New struct.
7792 (arm_nbsd_iterate_over_regset_sections): New function.
7793 (arm_netbsd_init_abi_common): Updated to call
7794 set_gdbarch_iterate_over_regset_sections.
7795 * arm-nbsd-tdep.h: New file.
7796
dd69bf7a
KB
77972020-03-11 Kevin Buettner <kevinb@redhat.com>
7798
7799 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7800 recursion.
7801
a0761e34
SM
78022020-03-11 Simon Marchi <simon.marchi@efficios.com>
7803
7804 * configure: Re-generate.
7805
e7a82140
TT
78062020-03-11 Tom Tromey <tromey@adacore.com>
7807
7808 * ada-typeprint.c (print_choices): Fix comment.
7809
dcc050c8
AB
78102020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7813 previous item in the list, when the list has no items.
7814
1c33af77
TV
78152020-03-11 Tom de Vries <tdevries@suse.de>
7816
7817 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7818 PROP_LOCLIST handling code.
7819
8c95582d
AB
78202020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7821
7822 * buildsym-legacy.c (record_line): Pass extra parameter to
7823 record_line.
7824 * buildsym.c (buildsym_compunit::record_line): Take an extra
7825 parameter, reduce duplication in the line table, and record the
7826 is_stmt flag in the line table.
7827 * buildsym.h (buildsym_compunit::record_line): Add extra
7828 parameter.
7829 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7830 non-statement lines.
7831 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7832 this to the symtab builder.
7833 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7834 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7835 through to dwarf_record_line_1.
7836 * infrun.c (process_event_stop_test): When stepping, don't stop at
7837 a non-statement instruction, and only refresh the step info when
7838 we land in the middle of a line's range. Also add an extra
7839 comment.
7840 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7841 field.
7842 * record-btrace.c (btrace_find_line_range): Only record lines
7843 marked as is-statement.
7844 * stack.c (frame_show_address): Show the frame address if we are
7845 in a non-statement sal.
7846 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7847 (maintenance_print_one_line_table): Print a header for the is_stmt
7848 column, and include is_stmt information in the output.
7849 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7850 preference to non-statements.
7851 (find_pcs_for_symtab_line): Prefer is-statement entries.
7852 (find_line_common): Likewise.
7853 * symtab.h (struct linetable_entry): Add is_stmt field.
7854 (struct symtab_and_line): Likewise.
7855 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7856 arranging the line table.
7857
e4003a34
TV
78582020-03-07 Tom de Vries <tdevries@suse.de>
7859
7860 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7861 DIE.
7862
e8932576
TT
78632020-03-07 Tom Tromey <tom@tromey.com>
7864
7865 * valops.c (value_literal_complex): Remove obsolete comment.
7866 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7867 comment.
7868
29734269
SM
78692020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7870
7871 * infrun.h: Forward-declare thread_info.
7872 (set_step_info): Add thread_info parameter, add doc.
7873 * infrun.c (set_step_info): Add thread_info parameter, move doc
7874 to header.
7875 * infrun.c (process_event_stop_test): Pass thread to
7876 set_step_info call.
7877 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7878 set_step_info.
7879 (prepare_one_step): Add thread_info parameter, pass it to
7880 set_step_frame and prepare_one_step (recursive) call.
7881 (step_1): Pass thread to prepare_one_step call.
7882 (step_command_fsm::should_stop): Pass thread to
7883 prepare_one_step.
7884 (until_next_fsm): Pass thread to set_step_frame call.
7885 (finish_command): Pass thread to set_step_info call.
7886
b7d64b29
HD
78872020-03-06 Hannes Domani <ssbssa@yahoo.de>
7888
7889 * windows-tdep.c (windows_solib_create_inferior_hook):
7890 Check if inferior is running.
7891
09f2921c
TV
78922020-03-06 Tom de Vries <tdevries@suse.de>
7893
7894 * NEWS: Fix "the the".
7895 * ctfread.c: Same.
7896
fd760e79
TV
78972020-03-06 Tom de Vries <tdevries@suse.de>
7898
7899 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7900
20ea4a60
AB
79012020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7902
7903 * .dir-locals.el: Add a comment referencing the other copies of
7904 this file.
7905
0afbabf0
JB
79062020-03-05 John Baldwin <jhb@FreeBSD.org>
7907
7908 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7909 psargs.
7910
842806cb
TBA
79112020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7912
7913 * .gitattributes: New file.
7914
be1e3d3e
TT
79152020-03-04 Tom Tromey <tom@tromey.com>
7916
7917 * symmisc.c (print_symbol_bcache_statistics)
7918 (print_objfile_statistics): Update.
7919 * symfile.c (allocate_symtab): Use intern.
7920 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7921 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7922 macro_cache>: Remove.
7923 <string_cache>: New member.
7924 (struct objfile) <intern>: New methods.
7925 * elfread.c (elf_symtab_read): Use intern.
7926 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7927 (dwarf2_compute_name, dwarf2_physname)
7928 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7929 names.
7930 (guess_partial_die_structure_name): Update.
7931 (partial_die_info::fixup): Intern name.
7932 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7933 name.
7934 (dwarf2_name): Intern name. Update.
7935 * buildsym.c (buildsym_compunit::get_macro_table): Use
7936 string_cache.
7937
4e7625fd
TT
79382020-03-04 Tom Tromey <tom@tromey.com>
7939
7940 * jit.c (bfd_open_from_target_memory): Make "target" const.
7941 * corefile.c (gnutarget): Now const.
7942 * gdbcore.h (gnutarget): Now const.
7943
46f9f931
HD
79442020-03-04 Hannes Domani <ssbssa@yahoo.de>
7945
7946 * NEWS: Mention support for WOW64 processes.
7947 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7948 (amd64_windows_segment_register_p): Remove static.
7949 (_initialize_amd64_windows_nat): Update.
7950 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7951 * i386-windows-nat.c (context_offset): Update.
7952 (i386_mappings): Rename and remove static.
7953 (i386_windows_segment_register_p): Remove static.
7954 (_initialize_i386_windows_nat): Update.
7955 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7956 (STATUS_WX86_SINGLE_STEP): New macro.
7957 (EnumProcessModulesEx): New macro.
7958 (Wow64SuspendThread): New macro.
7959 (Wow64GetThreadContext): New macro.
7960 (Wow64SetThreadContext): New macro.
7961 (Wow64GetThreadSelectorEntry): New macro.
7962 (windows_set_context_register_offsets): Add static.
7963 (windows_set_segment_register_p): Likewise.
7964 (windows_add_thread): Adapt for WOW64 processes.
7965 (windows_fetch_one_register): Likewise.
7966 (windows_nat_target::fetch_registers): Likewise.
7967 (windows_store_one_register): Likewise.
7968 (display_selector): Likewise.
7969 (display_selectors): Likewise.
7970 (handle_exception): Likewise.
7971 (windows_continue): Likewise.
7972 (windows_nat_target::resume): Likewise.
7973 (windows_add_all_dlls): Likewise.
7974 (do_initial_windows_stuff): Likewise.
7975 (windows_nat_target::attach): Likewise.
7976 (windows_get_exec_module_filename): Likewise.
7977 (windows_nat_target::create_inferior): Likewise.
7978 (windows_xfer_siginfo): Likewise.
7979 (_initialize_loadable): Initialize Wow64SuspendThread,
7980 Wow64GetThreadContext, Wow64SetThreadContext,
7981 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7982 * windows-nat.h (windows_set_context_register_offsets):
7983 Remove declaration.
7984 (windows_set_segment_register_p): Likewise.
7985 (i386_windows_segment_register_p): Add declaration.
7986 (amd64_windows_segment_register_p): Likewise.
7987
440cf44e
LM
79882020-03-04 Luis Machado <luis.machado@linaro.org>
7989
7990 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7991 in "info registers" for AArch64/ARM.
7992
7993 The change caused "info registers" to not print GPR's.
7994
7995 gdb/ChangeLog:
7996
7997 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7998
7999 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8000 when reg->group is empty and reggroup is not.
8001
1009d92f
TT
80022020-03-03 Tom Tromey <tromey@adacore.com>
8003
8004 * dwarf2/frame.c (struct dwarf2_frame_cache)
8005 <checked_tailcall_bottom, entry_cfa_sp_offset,
8006 entry_cfa_sp_offset_p>: Remove members.
8007 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8008 (dwarf2_frame_prev_register): Don't call
8009 dwarf2_tailcall_sniffer_first.
8010 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8011 * frame-unwind.c (add_unwinder): New fuction.
8012 (frame_unwind_init): Use it. Add tailcall unwinder.
8013
5e5d66b6
AB
80142020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8015 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8016
8017 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8018 value should be printed as true.
8019
584cf46d
HD
80202020-03-03 Hannes Domani <ssbssa@yahoo.de>
8021
8022 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8023 (windows_init_abi): Set and use windows_so_ops.
8024
7b973adc
SDJ
80252020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8026
8027 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8028 when verifying if dealing with a convenience variable.
8029
bb7b70ab
LM
80302020-03-03 Luis Machado <luis.machado@linaro.org>
8031
8032 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8033
9822cb57
SM
80342020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8035
8036 * infrun.c (gdbarch_supports_displaced_stepping): New.
8037 (use_displaced_stepping): Break up conditions in smaller pieces.
8038 Use gdbarch_supports_displaced_stepping.
8039 (displaced_step_prepare_throw): Use
8040 gdbarch_supports_displaced_stepping.
8041
63e163f2
AB
80422020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8043
8044 * NEWS: Mention new behaviour of the history filename.
8045 * top.c (write_history_p): Add comment.
8046 (show_write_history_p): Add header comment, give a different
8047 message when history writing is on, but the history filename is
8048 empty.
8049 (history_filename): Add comment.
8050 (history_filename_empty): New function.
8051 (show_history_filename): Add header comment, give a different
8052 message when the filename is empty.
8053 (init_history): Compare history_filename against nullptr, and only
8054 read history if the filename is not empty.
8055 (set_history_filename): Add header comment, and only make
8056 non-empty filenames absolute.
8057 (init_main): Make the filename argument to 'set history filename'
8058 optional.
8059
81b86b97
CB
80602020-03-02 Christian Biesinger <cbiesinger@google.com>
8061
8062 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8063 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8064 (fetch_fp_register): Update.
8065 (fetch_fp_regs): Update.
8066 (store_fp_register): Update.
8067 (store_fp_regs): Update.
8068 (arm_netbsd_nat_target::read_description): New function.
8069 (fetch_elfcore_registers): Update.
8070
24ed6739
AB
80712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8072
8073 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8074 general_thread if the stop reply is missing a thread-id.
8075 (remote_target::process_stop_reply): Use the first non-exited
8076 thread if the target didn't pass a thread-id.
8077 * infrun.c (do_target_wait): Move call to
8078 switch_to_inferior_no_thread to ....
8079 (do_target_wait_1): ... here.
8080
a84bb2a0
JT
80812020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8082
8083 * debuginfod-support.c: Include defs.h first.
8084
658dadf0
TV
80852020-02-28 Tom de Vries <tdevries@suse.de>
8086
8087 * symfile.c (set_initial_language): Use default language for lookup.
8088
4ebe4877
SM
80892020-02-28 Simon Marchi <simon.marchi@efficios.com>
8090
8091 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8092 reader variable, pass `this` to read_cutu_die_from_dwo.
8093
e5da1139
AM
80942020-02-27 Aaron Merey <amerey@redhat.com>
8095
8096 * source.c (open_source_file): Check for nullptr when computing
8097 srcpath.
8098
317f7127
TT
80992020-02-27 Tom Tromey <tromey@adacore.com>
8100
8101 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8102 member.
8103 (dwarf2_add_field): Don't update nfields.
8104 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8105
3104d9ee
AB
81062020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8107
8108 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8109 abs.
8110
b83470bf
TT
81112020-02-26 Tom Tromey <tom@tromey.com>
8112
8113 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8114 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8115 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8116 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8117 per_cu_data.
8118
edfe0a0c
TT
81192020-02-26 Tom Tromey <tom@tromey.com>
8120
8121 * dwarf2/index-write.c (psym_index_map): Change type.
8122 (add_address_entry_worker, write_one_signatured_type)
8123 (recursively_count_psymbols, recursively_write_psymbols)
8124 (class debug_names, psyms_seen_size, write_gdbindex)
8125 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8126
0d79cdc4
AM
81272020-02-26 Aaron Merey <amerey@redhat.com>
8128
8129 * Makefile.in: Handle optional debuginfod support.
8130 * NEWS: Update.
8131 * README: Add --with-debuginfod summary.
8132 * config.in: Regenerate.
8133 * configure: Regenerate.
8134 * configure.ac: Handle optional debuginfod support.
8135 * debuginfod-support.c: debuginfod helper functions.
8136 * debuginfod-support.h: Ditto.
8137 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8138 summary.
8139 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8140 when a dwz file cannot be found.
8141 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8142 debuginfo file cannot be found.
8143 * source.c (open_source_file): Query debuginfod servers when a
8144 source file cannot be found.
8145 * top.c (print_gdb_configuration): Include
8146 --{with,without}-debuginfod in the output.
8147
b65ce565
JG
81482020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8149
8150 * thread.c (thr_try_catch_cmd): Print thread name.
8151
d4c9a4f8
SM
81522020-02-26 Simon Marchi <simon.marchi@efficios.com>
8153
8154 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8155 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8156 dwarf2_fetch_die_type_sect_off): Move to...
8157 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8158 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8159 dwarf2_fetch_die_type_sect_off): ... here.
8160 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8161 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8162 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8163
0dce4280
TV
81642020-02-26 Tom de Vries <tdevries@suse.de>
8165
8166 PR gdb/25603
8167 * symfile.c (set_initial_language): Exit-early if
8168 language_mode == language_mode_manual.
8169
450a1bfc
SM
81702020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8171
8172 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8173 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8174 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8175
9e80cfa1
AB
81762020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8177
8178 * gdbtypes.c (create_array_type_with_stride): Handle negative
8179 array strides.
8180 * valarith.c (value_subscripted_rvalue): Likewise.
8181
09624f1f
LM
81822020-02-25 Luis Machado <luis.machado@linaro.org>
8183
8184 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8185
8cb5117c
SM
81862020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8187
8188 * loc.h (dwarf2_get_die_type): Move to...
8189 * read.h (dwarf2_get_die_type): ... here.
8190 * read.c (dwarf2_get_die_type): Move doc to header.
8191
c325c44e
JB
81922020-02-25 Joel Brobecker <brobecker@adacore.com>
8193
8194 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8195 'gnulib/Makefile.in' to the list.
8196
4ac93832
TT
81972020-02-24 Tom Tromey <tom@tromey.com>
8198
8199 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8200 Remove.
8201 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8202 XOBNEWVEC.
8203
197400e8
TT
82042020-02-24 Tom Tromey <tom@tromey.com>
8205
8206 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8207 New method.
8208 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8209 (dw2_do_instantiate_symtab, dw2_get_file_names)
8210 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8211
76935768
TT
82122020-02-24 Tom Tromey <tom@tromey.com>
8213
8214 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8215 make_scoped_restore.
8216 (dwarf2_psymtab::read_symtab): Don't clear
8217 reading_partial_symbols.
8218
a88ef40d
TV
82192020-02-24 Tom de Vries <tdevries@suse.de>
8220
8221 PR gdb/25592
8222 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8223
c9af6521
TV
82242020-02-24 Tom de Vries <tdevries@suse.de>
8225
8226 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8227 commands layout next/prev/regs.
8228
5707a07a
TT
82292020-02-22 Tom Tromey <tom@tromey.com>
8230
8231 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8232 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8233
3b0fb49e
TT
82342020-02-22 Tom Tromey <tom@tromey.com>
8235
8236 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8237
283be8bf
TT
82382020-02-22 Tom Tromey <tom@tromey.com>
8239
8240 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8241 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8242 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8243 * tui/tui.c (_initialize_tui): Add usage text.
8244
ca793b96
TT
82452020-02-22 Tom Tromey <tom@tromey.com>
8246
8247 * tui/tui-win.c (tui_set_focus_command)
8248 (tui_set_win_height_command): Use error_no_arg.
8249 (_initialize_tui_win): Update help text.
8250 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8251
432b5c40
TT
82522020-02-22 Tom Tromey <tom@tromey.com>
8253
8254 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8255 * tui/tui-disasm.h (struct tui_disasm_window)
8256 <display_start_addr>: Declare.
8257 * tui/tui-source.h (struct tui_source_window)
8258 <display_start_addr>: Declare.
8259 * tui/tui-winsource.h (struct tui_source_window_base)
8260 <show_source_line, display_start_addr>: New methods.
8261 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8262 Rename and move to protected section.
8263 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8264 (tui_source_window_base::do_erase_source_content): Update.
8265 (tui_source_window_base::show_source_line): Now a method.
8266 (tui_source_window_base::show_source_content)
8267 (tui_source_window_base::tui_source_window_base)
8268 (tui_source_window_base::rerender)
8269 (tui_source_window_base::refill)
8270 (tui_source_window_base::do_scroll_horizontal)
8271 (tui_source_window_base::set_is_exec_point_at)
8272 (tui_source_window_base::update_breakpoint_info)
8273 (tui_source_window_base::update_exec_info): Update.
8274 * tui/tui-source.c (tui_source_window::set_contents)
8275 (tui_source_window::showing_source_p)
8276 (tui_source_window::do_scroll_vertical)
8277 (tui_source_window::location_matches_p)
8278 (tui_source_window::line_is_displayed): Update.
8279 (tui_source_window::display_start_addr): New method.
8280 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8281 (tui_disasm_window::do_scroll_vertical)
8282 (tui_disasm_window::location_matches_p): Update.
8283 (tui_disasm_window::display_start_addr): New method.
8284
01b1af32
TT
82852020-02-22 Tom Tromey <tom@tromey.com>
8286
8287 * NEWS: Add entry for gdb.register_window_type.
8288 * tui/tui-layout.h (window_factory): New typedef.
8289 (tui_register_window): Declare.
8290 * tui/tui-layout.c (saved_tui_windows): New global.
8291 (tui_apply_current_layout): Use it.
8292 (tui_register_window): New function.
8293 * python/python.c (do_start_initialization): Call
8294 gdbpy_initialize_tui.
8295 (python_GdbMethods): Add "register_window_type" function.
8296 * python/python-internal.h (gdbpy_register_tui_window)
8297 (gdbpy_initialize_tui): Declare.
8298 * python/py-tui.c: New file.
8299 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8300
fc96d20b
TT
83012020-02-22 Tom Tromey <tom@tromey.com>
8302
8303 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8304
935c78c0
TT
83052020-02-22 Tom Tromey <tom@tromey.com>
8306
8307 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8308 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8309 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8310 (tui_set_win_focus_to): Move from tui-win.c.
8311
0240c8f1
TT
83122020-02-22 Tom Tromey <tom@tromey.com>
8313
8314 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8315 functions.
8316 (known_window_types): New global.
8317 (tui_get_window_by_name): Reimplement.
8318 (initialize_known_windows): New function.
8319 (validate_window_name): Rewrite.
8320 (_initialize_tui_layout): Call initialize_known_windows.
8321
fdb01f0c
TT
83222020-02-22 Tom Tromey <tom@tromey.com>
8323
8324 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8325 Remove constants.
8326 * tui/tui-winsource.h (struct tui_source_window_base)
8327 <tui_source_window_base>: Remove parameter.
8328 * tui/tui-winsource.c
8329 (tui_source_window_base::tui_source_window_base): Remove
8330 parameter.
8331 (tui_source_window_base::refill): Update.
8332 * tui/tui-stack.h (struct tui_locator_window)
8333 <tui_locator_window>: Update.
8334 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8335 Default the constructor.
8336 * tui/tui-regs.h (struct tui_data_item_window)
8337 <tui_data_item_window>: Default the constructor.
8338 (struct tui_data_window) <tui_data_window>: Likewise.
8339 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8340 Default the constructor.
8341 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8342 Default the constructor.
8343 <type>: Remove.
8344 (struct tui_win_info) <tui_win_info>: Default the constructor.
8345 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8346 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8347 Default the constructor.
8348
865a5aec
TT
83492020-02-22 Tom Tromey <tom@tromey.com>
8350
8351 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8352 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8353 * tui/tui-win.c (tui_resize_all): Don't call
8354 tui_delete_invisible_windows.
8355 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8356 done.
8357 (tui_set_layout): Update.
8358 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8359 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8360 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8361
e098d18c
TT
83622020-02-22 Tom Tromey <tom@tromey.com>
8363
8364 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8365 correctly.
8366
eb9c8874
TT
83672020-02-22 Tom Tromey <tom@tromey.com>
8368
8369 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8370
7eed1a8e
TT
83712020-02-22 Tom Tromey <tom@tromey.com>
8372
8373 * tui/tui-winsource.h (struct tui_source_window_iterator)
8374 <inner_iterator>: New etytypedef.
8375 <tui_source_window_iterator>: Take "end" parameter.
8376 <tui_source_window_iterator>: Take iterator.
8377 <operator*, advance>: Update.
8378 <m_iter>: Change type.
8379 <m_end>: New field.
8380 (struct tui_source_windows) <begin, end>: Update.
8381 * tui/tui-layout.c (tui_windows): New global.
8382 (tui_apply_current_layout): Clear tui_windows.
8383 (tui_layout_window::apply): Update tui_windows.
8384 * tui/tui-data.h (tui_windows): Declare.
8385 (all_tui_windows): Now inline function.
8386 (class tui_window_iterator, struct all_tui_windows): Remove.
8387
7c043ba6
TT
83882020-02-22 Tom Tromey <tom@tromey.com>
8389
8390 PR tui/17850:
8391 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8392 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8393 "height" argument.
8394 (class tui_layout_window) <get_sizes>: Likewise.
8395 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8396 argument.
8397 <get_sizes>: Add "height" argument.
8398 <m_vertical>: New field.
8399 * tui/tui-layout.c (tui_layout_split::clone): Update.
8400 (tui_layout_split::get_sizes): Add "height" argument.
8401 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8402 (tui_new_layout_command): Parse "-horizontal".
8403 (_initialize_tui_layout): Update help string.
8404 (tui_layout_split::specification): Add "-horizontal" when needed.
8405 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8406 argument.
8407 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8408 New methods.
8409
6bc56648
TT
84102020-02-22 Tom Tromey <tom@tromey.com>
8411
8412 * tui/tui-layout.h (enum tui_adjust_result): New.
8413 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8414 (class tui_layout_window) <adjust_size>: Return
8415 tui_adjust_result. Rewrite.
8416 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8417 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8418
c22fef7e
TT
84192020-02-22 Tom Tromey <tom@tromey.com>
8420
8421 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8422 parameter and return types.
8423 (class tui_layout_base) <specification>: Add "depth".
8424 (class tui_layout_window) <specification>: Add "depth".
8425 (class tui_layout_split) <specification>: Add "depth".
8426 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8427 and return types.
8428 (tui_new_layout_command): Parse sub-layouts.
8429 (_initialize_tui_layout): Update help string.
8430 (tui_layout_window::specification): Add "depth".
8431 (add_layout_command): Update.
8432
ee325b61
TT
84332020-02-22 Tom Tromey <tom@tromey.com>
8434
8435 * NEWS: Add "tui new-layout" item.
8436 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8437 Add new-layout command to help text.
8438 (validate_window_name): New function.
8439 (tui_new_layout_command): New function.
8440 (_initialize_tui_layout): Register "new-layout".
8441 (tui_layout_window::specification): New method.
8442 (tui_layout_window::specification): New method.
8443 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8444 method.
8445 (class tui_layout_window) <specification>: New method.
8446 (class tui_layout_split) <specification>: New method.
8447
416eb92d
TT
84482020-02-22 Tom Tromey <tom@tromey.com>
8449
8450 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8451 * tui/tui-win.c (window_name_completer): Update comment.
8452 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8453 Declare method.
8454 (class tui_layout_window) <replace_window>: Likewise.
8455 (class tui_layout_split) <replace_window>: Likewise.
8456 (tui_set_layout): Don't declare.
8457 (tui_set_initial_layout): Declare function.
8458 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8459 (asm_regs_layout): New globals.
8460 (tui_current_layout, show_layout): Remove.
8461 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8462 (find_layout, tui_apply_layout): New function.
8463 (layout_completer): Remove.
8464 (tui_next_layout): Reimplement.
8465 (tui_next_layout_command): New function.
8466 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8467 (tui_regs_layout): Reimplement.
8468 (tui_regs_layout_command): New function.
8469 (extract_display_start_addr): Rewrite.
8470 (next_layout, prev_layout): Remove.
8471 (tui_layout_window::replace_window): New method.
8472 (tui_layout_split::replace_window): New method.
8473 (destroy_layout): New function.
8474 (layout_list): New global.
8475 (add_layout_command): New function.
8476 (initialize_layouts): Update.
8477 (tui_layout_command): New function.
8478 (_initialize_tui_layout): Install "layout" commands.
8479 * tui/tui-data.h (enum tui_layout_type): Remove.
8480 (tui_current_layout): Don't declare.
8481
0dbc2fc7
TT
84822020-02-22 Tom Tromey <tom@tromey.com>
8483
8484 * tui/tui-regs.c (tui_reg_layout): Remove.
8485 (tui_reg_command): Use tui_regs_layout.
8486 * tui/tui-layout.h (tui_reg_command): Declare.
8487 * tui/tui-layout.c (tui_reg_command): New function.
8488
5afe342e
TT
84892020-02-22 Tom Tromey <tom@tromey.com>
8490
8491 * tui/tui.c (tui_rl_delete_other_windows): Call
8492 tui_remove_some_windows.
8493 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8494 Declare method.
8495 (class tui_layout_window) <remove_windows>: New method.
8496 (class tui_layout_split) <remove_windows>: Declare.
8497 (tui_remove_some_windows): Declare.
8498 * tui/tui-layout.c (tui_remove_some_windows): New function.
8499 (tui_layout_split::remove_windows): New method.
8500
427326a8
TT
85012020-02-22 Tom Tromey <tom@tromey.com>
8502
8503 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8504 * tui/tui-layout.h (tui_next_layout): Declare.
8505 * tui/tui-layout.c (tui_next_layout): New function.
8506
3fe12b6d
TT
85072020-02-22 Tom Tromey <tom@tromey.com>
8508
8509 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8510 correct coordinates.
8511
59b8b5d2
TT
85122020-02-22 Tom Tromey <tom@tromey.com>
8513
8514 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8515 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8516 DATA_WIN case.
8517
2a3d458b
TT
85182020-02-22 Tom Tromey <tom@tromey.com>
8519
8520 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8521 TUI_DISASM_WIN, not tui_win_list.
8522
3f0cbb04
TT
85232020-02-22 Tom Tromey <tom@tromey.com>
8524
8525 * valprint.c (generic_val_print_enum_1)
8526 (val_print_type_code_flags): Style member names.
8527 * rust-lang.c (val_print_struct, rust_print_enum)
8528 (rust_print_struct_def, rust_internal_print_type): Style member
8529 names.
8530 * p-valprint.c (pascal_object_print_value_fields): Style member
8531 names. Only call fprintf_symbol_filtered for static members.
8532 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8533 * f-valprint.c (f_val_print): Style member names.
8534 * f-typeprint.c (f_type_print_base): Style member names.
8535 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8536 call fprintf_symbol_filtered for static members.
8537 (cp_print_class_member): Style member names.
8538 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8539 member names.
8540 * ada-valprint.c (ada_print_scalar): Style enum names.
8541 (ada_val_print_enum): Likewise.
8542 * ada-typeprint.c (print_enum_type): Style enum names.
8543
d4d947ae
TT
85442020-02-21 Tom Tromey <tom@tromey.com>
8545
8546 * psympriv.h (struct partial_symtab): Update comment.
8547
e94e944b
TT
85482020-02-21 Tom Tromey <tromey@adacore.com>
8549
8550 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8551 type is CORE_ADDR.
8552
1eb73179
TV
85532020-02-21 Tom de Vries <tdevries@suse.de>
8554
8555 PR gdb/25534
8556 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8557 if dependencies[i]->user != NULL.
8558
4f180d53
AT
85592020-02-21 Ali Tamur <tamur@google.com>
8560
8561 * dwarf2/read.c (dwarf2_name): Add null check.
8562
22b6cd70
TT
85632020-02-20 Tom Tromey <tom@tromey.com>
8564
8565 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8566 ">=", in binary search.
8567 (dwarf2_find_containing_comp_unit): New overload.
8568 (run_test): New self-test.
8569 (_initialize_dwarf2_read): Register new test.
8570
bd0cf5a6
NC
85712020-02-20 Nelson Chu <nelson.chu@sifive.com>
8572
8573 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8574 * riscv-tdep.h: Likewise.
8575 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8576 rv32-only CSR.
8577 * features/riscv/64bit-csr.xml: Regenerated.
8578
3f702acd
SDJ
85792020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8580 Tom Tromey <tom@tromey.com>
8581
8582 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8583 of 'fputc_unfiltered'.
8584 (putchar_unfiltered): Call 'fputc_unfiltered'.
8585 (fputc_unfiltered): Call 'fputs_unfiltered'.
8586
d13c7322
AB
85872020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8588
8589 * config.in: Regenerate.
8590 * configure: Regenerate.
8591 * configure.ac: Add --with-python-libdir option.
8592 * main.c: Use WITH_PYTHON_LIBDIR.
8593
869d8950
TT
85942020-02-19 Tom Tromey <tom@tromey.com>
8595
8596 * symtab.c (general_symbol_info::compute_and_set_names): Use
8597 obstack_strndup. Simplify call to symbol_set_demangled_name.
8598
298e9637
SM
85992020-02-19 Simon Marchi <simon.marchi@efficios.com>
8600
8601 * dwarf2/read.c (allocate_signatured_type_table,
8602 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8603 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8604 Remove objfile parameter, update all callers.
8605
08410482
DE
86062020-02-19 Doug Evans <dje@google.com>
8607
8608 PR rust/25535
8609 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8610 rust_enum_variant calculation.
8611
dfdeeca1
TT
86122020-02-19 Tom Tromey <tromey@adacore.com>
8613
8614 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8615
2ef5453b
TT
86162020-02-19 Tom Tromey <tromey@adacore.com>
8617
8618 * ada-lang.c (cache_symbol): Use obstack_strdup.
8619
9f1528a1
AB
86202020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8621
8622 * configure: Regenerate.
8623
d3c22fa8
TT
86242020-02-19 Tom Tromey <tromey@adacore.com>
8625
8626 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8627 NULL check.
8628
bf84f706
MR
86292020-02-19 Maciej W. Rozycki <macro@wdc.com>
8630
8631 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8632
d1c9b20f
AB
86332020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8634
8635 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8636 if GDBSERVER is not defined.
8637 (riscv_tdesc_cache): Likewise, also store const target_desc.
8638 (STATIC_IN_GDB): Define.
8639 (riscv_create_target_description): Update declaration with
8640 STATIC_IN_GDB.
8641 (riscv_lookup_target_description): New function, only define if
8642 GDBSERVER is not defined.
8643 * arch/riscv.h (riscv_create_target_description): Declare only
8644 when GDBSERVER is defined.
8645 (riscv_lookup_target_description): New declaration when GDBSERVER
8646 is not defined.
8647 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8648 (riscv_linux_read_features): ...this, and return
8649 riscv_gdbarch_features instead of target_desc.
8650 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8651 (riscv_linux_read_description): Rename to...
8652 (riscv_linux_read_features): ...this.
8653 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8654 Update to use riscv_gdbarch_features and
8655 riscv_lookup_target_description.
8656 * riscv-tdep.c (riscv_find_default_target_description): Use
8657 riscv_lookup_target_description instead of
8658 riscv_create_target_description.
8659
373d7ac0
SM
86602020-02-18 Simon Marchi <simon.marchi@efficios.com>
8661
8662 * valprint.c (generic_val_print_enum_1): When printing a flag
8663 enum with value 0 and there is no enumerator with value 0, print
8664 just "0" instead of "(unknown: 0x0)".
8665
b29a2df0
SM
86662020-02-18 Simon Marchi <simon.marchi@efficios.com>
8667
8668 * valprint.c (generic_val_print_enum_1): Print unknown part of
8669 flag enum in hex.
8670
6740f0cc
SM
86712020-02-18 Simon Marchi <simon.marchi@efficios.com>
8672
8673 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8674 flag enums to contain duplicate enumerators.
8675 * valprint.c (generic_val_print_enum_1): Update comment.
8676
edd45eb0
SM
86772020-02-18 Simon Marchi <simon.marchi@efficios.com>
8678
8679 * dwarf2/read.c: Include "count-one-bits.h".
8680 (update_enumeration_type_from_children): If an enumerator has
8681 multiple bits set, don't treat the enumeration as a "flag enum".
8682 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8683 of flag enums have 0 or 1 bit set.
8684
6d0cf446
BE
86852020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8686
8687 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8688 conversion.
8689 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8690 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8691 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8692 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8693 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8694
7001c1b7
SM
86952020-02-18 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8698
fdb61c6c
SM
86992020-02-14 Simon Marchi <simon.marchi@efficios.com>
8700
8701 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8702 displaced_step_closure_up.
8703 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8704 (struct displaced_step_closure_up):
8705 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8706 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8707 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8708 Likewise.
8709 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8710 * gdbarch.c, gdbarch.h: Re-generate.
8711 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8712 displaced_step_closure_up.
8713 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8714 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8715 * infrun.h (displaced_step_closure_up): New type alias.
8716 (struct displaced_step_inferior_state) <step_closure>: Change
8717 type to displaced_step_closure_up.
8718 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8719 displaced_step_closure_up.
8720 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8721
a4a38eb4
TT
87222020-02-14 Tom Tromey <tom@tromey.com>
8723
8724 * minidebug.c (gnu_debug_key): New global.
8725 (find_separate_debug_file_in_section): Use it.
8726
e8217e61
SM
87272020-02-14 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8730 std::unique_ptr.
8731 * gdbarch.c: Re-generate.
8732 * gdbarch.h: Re-generate.
8733 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8734 change.
8735 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8736 type to std::unique_ptr.
8737 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8738 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8739 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8740 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8741 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8742 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8743 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8744 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8745 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8746
d8d83535
SM
87472020-02-14 Simon Marchi <simon.marchi@efficios.com>
8748
8749 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8750 std::unique_ptr.
8751 (displaced_step_clear): Rename to...
8752 (displaced_step_reset): ... this. Just call displaced->reset ().
8753 (displaced_step_clear_cleanup): Rename to...
8754 (displaced_step_reset_cleanup): ... this.
8755 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8756 (displaced_step_fixup): Likewise.
8757 (resume_1): Likewise.
8758 (handle_inferior_event): Restore child's memory before calling
8759 displaced_step_fixup on the parent.
8760 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8761 to std::unique_ptr.
8762 <step_closure>: Change type to std::unique_ptr.
8763
5f661e03
SM
87642020-02-14 Simon Marchi <simon.marchi@efficios.com>
8765
8766 * arm-tdep.c: Include count-one-bits.h.
8767 (cleanup_block_store_pc): Use count_one_bits.
8768 (cleanup_block_load_pc): Use count_one_bits.
8769 (arm_copy_block_xfer): Use count_one_bits.
8770 (thumb2_copy_block_xfer): Use count_one_bits.
8771 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8772 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8773 (thumb_get_next_pcs_raw): Use count_one_bits.
8774 (arm_get_next_pcs_raw): Use count_one_bits_l.
8775 * arch/arm.c (bitcount): Remove.
8776 * arch/arm.h (bitcount): Remove.
8777
8084e579
TT
87782020-02-14 Tom Tromey <tromey@adacore.com>
8779
8780 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8781 Update.
8782 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8783 * dwarf2/loc.c (call_site_find_chain_1): Return
8784 unique_xmalloc_ptr.
8785 (call_site_find_chain): Likewise.
8786
258bf0ee
RB
87872020-02-14 Richard Biener <rguenther@suse.de>
8788
8789 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8790 on expression with division operators.
8791
f98a8458
AKS
87922020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8793
8794 * MAINTAINERS (Write After Approval): Adding myself.
8795
d1437c0e
TT
87962020-02-12 Tom Tromey <tom@tromey.com>
8797
8798 * event-loop.c (event_data, gdb_event, event_handler_func):
8799 Remove.
8800
3d4560f7
TT
88012020-02-12 Tom Tromey <tom@tromey.com>
8802
8803 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8804 (dwarf2_frame_objfile_data): Add comment.
8805 (find_comp_unit, set_comp_unit): New functions.
8806 (dwarf2_frame_find_fde): Use find_comp_unit.
8807 (dwarf2_build_frame_info): Use set_comp_unit.
8808
21982304
TT
88092020-02-12 Tom Tromey <tom@tromey.com>
8810
8811 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8812 (comp_unit): Don't initialize objfile.
8813 (execute_cfa_program): Add text_offset parameter.
8814 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8815 (dwarf2_frame_cache): Update.
8816 (dwarf2_build_frame_info): Don't set "objfile" member.
8817
4debb237
TT
88182020-02-12 Tom Tromey <tom@tromey.com>
8819
8820 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8821 (decode_frame_entry): Likewise.
8822 (dwarf2_build_frame_info): Update.
8823
0d404d44
TT
88242020-02-12 Tom Tromey <tom@tromey.com>
8825
8826 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8827 (decode_frame_entry_1): Use the comp_unit obstack.
8828
a7a3ae5c
TT
88292020-02-12 Tom Tromey <tom@tromey.com>
8830
8831 * dwarf2/frame.c (struct comp_unit): Add initializers and
8832 constructor.
8833 (dwarf2_frame_objfile_data): Store a comp_unit.
8834 (dwarf2_frame_find_fde): Update.
8835 (dwarf2_build_frame_info): Use "new".
8836
a9d65418
TT
88372020-02-12 Tom Tromey <tom@tromey.com>
8838
8839 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8840 (dwarf2_fde_table): Typedef for std::vector.
8841 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8842 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8843 (decode_frame_entry): Update.
8844 (dwarf2_build_frame_info): Use "new".
8845
7559c217
CB
88462020-02-12 Christian Biesinger <cbiesinger@google.com>
8847
8848 * arm-tdep.c (arm_gdbarch_init): Update.
8849 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8850 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8851 have_neon, is_m>: Change to bool.
8852
aeefc73c
CB
88532020-02-12 Christian Biesinger <cbiesinger@google.com>
8854
8855 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8856
d27b8e5f
TT
88572020-02-12 Tom Tromey <tom@tromey.com>
8858
8859 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8860
cd5900f3
HD
88612020-02-12 Hannes Domani <ssbssa@yahoo.de>
8862
8863 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8864 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8865
f056b22b
TT
88662020-02-11 Tom Tromey <tom@tromey.com>
8867
8868 * psymtab.h: Update comment.
8869
f92ff6b5
TT
88702020-02-11 Tom Tromey <tom@tromey.com>
8871
8872 * gdb_obstack.h (struct auto_obstack): Use
8873 DISABLE_COPY_AND_ASSIGN.
8874
3fd6912b
TT
88752020-02-11 Tom Tromey <tom@tromey.com>
8876
8877 * dwarf2/frame.h (struct objfile): Don't forward declare.
8878
69ed9b74
CB
88792020-02-11 Christian Biesinger <cbiesinger@google.com>
8880
8881 * cris-tdep.c (cris_supply_gregset): Change signature to match
8882 what struct regset expects.
8883 (cris_regset): New struct.
8884 (fetch_core_registers): Remove.
8885 (cris_iterate_over_regset_sections): New function.
8886 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8887 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8888
bda874f6
CB
88892020-02-11 Christian Biesinger <cbiesinger@google.com>
8890
8891 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8892 registers.
8893
754e1564
CB
88942020-02-11 Christian Biesinger <cbiesinger@google.com>
8895
8896 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8897
8ddd8e0e
SM
88982020-02-11 Simon Marchi <simon.marchi@efficios.com>
8899
8900 * configure: Re-generate.
8901
898e7f60
SM
89022020-02-11 Simon Marchi <simon.marchi@efficios.com>
8903
8904 * configure: Re-generate.
8905
58df732b
SM
89062020-02-11 Simon Marchi <simon.marchi@efficios.com>
8907
8908 * acinclude: Update warning.m4 path.
8909 * warning.m4: Move to gdbsupport.
8910
da5bd37e
TT
89112020-02-11 Tom Tromey <tromey@adacore.com>
8912
8913 * remote.c (remote_console_output): Update.
8914 * printcmd.c (printf_command): Update.
8915 * event-loop.c (gdb_wait_for_event): Update.
8916 * linux-nat.c (sigchld_handler): Update.
8917 * remote-sim.c (gdb_os_write_stdout): Update.
8918 (gdb_os_flush_stdout): Update.
8919 (gdb_os_flush_stderr): Update.
8920 (gdb_os_write_stderr): Update.
8921 * exceptions.c (print_exception): Update.
8922 * remote-fileio.c (remote_fileio_func_read): Update.
8923 (remote_fileio_func_write): Update.
8924 * tui/tui.c (tui_enable): Update.
8925 * tui/tui-interp.c (tui_interp::init): Update.
8926 * utils.c (init_page_info): Update.
8927 (putchar_unfiltered, fputc_unfiltered): Update.
8928 (gdb_flush): Update.
8929 (emit_style_escape): Update.
8930 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8931 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8932 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8933 (stderr_file::write): Update.
8934 (stderr_file::puts): Update.
8935 * ui-file.h (ui_file_isatty, ui_file_write)
8936 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8937 (ui_file_puts): Don't declare.
8938
85f0dd3c
TV
89392020-02-10 Tom de Vries <tdevries@suse.de>
8940
8941 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8942 sentinel to char *.
8943
2e927613
TV
89442020-02-09 Tom de Vries <tdevries@suse.de>
8945
8946 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8947 filename if it matches "<artificial>".
8948
6bafc845
HD
89492020-02-09 Hannes Domani <ssbssa@yahoo.de>
8950
8951 * windows-tdep.c (struct enum_value_name): New struct.
8952 (create_enum): New function.
8953 (windows_get_siginfo_type): Create and use enum types.
8954
7928d571
HD
89552020-02-09 Hannes Domani <ssbssa@yahoo.de>
8956
8957 * NEWS: Mention $_siginfo support for Windows.
8958 * windows-nat.c (handle_exception): Set siginfo_er.
8959 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8960 (windows_xfer_siginfo): New function.
8961 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8962 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8963 (init_windows_gdbarch_data): New function.
8964 (get_windows_gdbarch_data): New function.
8965 (windows_get_siginfo_type): New function.
8966 (windows_init_abi): Register windows_get_siginfo_type.
8967 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8968
6751ebae
TT
89692020-02-08 Tom Tromey <tom@tromey.com>
8970
8971 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8972 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8973 <keep>: Declare method.
8974 <m_keep>: Remove member.
8975 <~cutu_reader>: Remove.
8976 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8977 (cutu_reader::cutu_reader): Update.
8978 (cutu_reader::keep): Rename from ~cutu_reader.
8979 (process_psymtab_comp_unit, build_type_psymtabs_1)
8980 (process_skeletonless_type_unit, load_partial_comp_unit)
8981 (load_full_comp_unit, dwarf2_read_addr_index)
8982 (read_signatured_type): Update.
8983
135f5437
TT
89842020-02-08 Tom Tromey <tom@tromey.com>
8985
8986 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8987 "want_partial_unit" parameter.
8988 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8989 Inline check for DW_TAG_partial_unit.
8990 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8991
9f66ff1c
TT
89922020-02-08 Tom Tromey <tom@tromey.com>
8993
8994 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8995 read.c.
8996 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8997 read.c.
8998
c8a7a66f
TT
89992020-02-08 Tom Tromey <tom@tromey.com>
9000
9001 * dwarf2/read.c (read_address): Move to comp-unit.c.
9002 (dwarf2_rnglists_process, dwarf2_ranges_process)
9003 (read_attribute_value, dwarf_decode_lines_1)
9004 (var_decode_location, decode_locdesc): Update.
9005 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9006 read.c. Remove "cu" parameter.
9007 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9008 method.
9009
8266302d
TT
90102020-02-08 Tom Tromey <tom@tromey.com>
9011
9012 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9013 (read_indirect_line_string): Update.
9014 * dwarf2/comp-unit.c (read_offset): Remove.
9015 (read_comp_unit_head): Update.
9016 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9017 method.
9018 (read_offset): Don't declare.
9019
4057dfde
TT
90202020-02-08 Tom Tromey <tom@tromey.com>
9021
9022 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9023 * dwarf2/read.c (struct comp_unit_head): Move to
9024 dwarf2/comp-unit.h.
9025 (enum class rcuh_kind): Move to comp-unit.h.
9026 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9027 (read_comp_unit_head, error_check_comp_unit_head)
9028 (read_and_check_comp_unit_head): Move to comp-unit.c.
9029 (read_offset, dwarf_unit_type_name): Likewise.
9030 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9031 (cutu_reader::cutu_reader, read_call_site_scope)
9032 (find_partial_die, follow_die_offset): Update.
9033 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9034
24aa364d
TT
90352020-02-08 Tom Tromey <tom@tromey.com>
9036
9037 * dwarf2/read.c (read_offset_1): Move to leb.c.
9038 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9039 (dwarf_decode_macro_bytes): Update.
9040 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9041 * dwarf2/leb.h (read_offset): Declare.
9042
2c7d5afc
TT
90432020-02-08 Tom Tromey <tom@tromey.com>
9044
9045 * dwarf2/read.c (dwarf2_section_size): Remove.
9046 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9047 Update.
9048 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9049
4075cb26
TT
90502020-02-08 Tom Tromey <tom@tromey.com>
9051
9052 * dwarf2/read.c (read_initial_length): Move to leb.c.
9053 * dwarf2/leb.h (read_initial_length): Declare.
9054 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9055 handle_nonstd parameter.
9056 * dwarf2/frame.c (read_initial_length): Remove.
9057 (decode_frame_entry_1): Update.
9058
09ba997f
TT
90592020-02-08 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/loc.c (dwarf2_find_location_expression)
9062 (dwarf_evaluate_loc_desc::get_tls_address)
9063 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9064 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9065 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9066 (dwarf2_compile_property_to_c)
9067 (dwarf2_loc_desc_get_symbol_read_needs)
9068 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9069 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9070 (loclist_describe_location, loclist_tracepoint_var_ref)
9071 (loclist_generate_c_location): Update.
9072 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9073 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9074 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9075 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9076 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9077 (dwarf2_per_cu_data::addr_size)
9078 (dwarf2_per_cu_data::ref_addr_size)
9079 (dwarf2_per_cu_data::text_offset)
9080 (dwarf2_per_cu_data::addr_type): Now methods.
9081 (per_cu_header_read_in): Make per_cu "const".
9082 (dwarf2_version): Remove.
9083 (dwarf2_per_cu_data::int_type): Now a method.
9084 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9085 (set_die_type, read_array_type, read_subrange_index_type)
9086 (read_tag_string_type, read_subrange_type): Update.
9087 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9088 offset_size, ref_addr_size, text_offset, addr_type, version,
9089 objfile, int_type, addr_sized_int_type>: Declare methods.
9090
96c738c0
TT
90912020-02-08 Tom Tromey <tom@tromey.com>
9092
9093 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9094 Move earlier.
9095
8fdd972c
TT
90962020-02-08 Tom Tromey <tom@tromey.com>
9097
9098 * dwarf2/read.h (dwarf_line_debug): Declare.
9099 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9100 * dwarf2/read.c: Move line_header code to new files.
9101 (dwarf_line_debug): No longer static.
9102 * dwarf2/line-header.c: New file.
9103 * dwarf2/line-header.h: New file.
9104
03075812
TT
91052020-02-08 Tom Tromey <tom@tromey.com>
9106
9107 * dwarf2/read.c (struct line_header) <file_full_name,
9108 file_file_name>: Return unique_xmalloc_ptr.
9109 (line_header::file_file_name): Update.
9110 (line_header::file_full_name): Update.
9111 (dw2_get_file_names_reader): Update.
9112 (macro_start_file): Update.
9113
bb822404
TT
91142020-02-08 Tom Tromey <tom@tromey.com>
9115
9116 * dwarf2/read.c (struct line_header) <file_full_name,
9117 file_file_name>: Declare methods.
9118 (dw2_get_file_names_reader): Update.
9119 (file_file_name): Now a method.
9120 (file_full_name): Likewise.
9121 (macro_start_file): Update.
9122
009b64fc
TT
91232020-02-08 Tom Tromey <tom@tromey.com>
9124
9125 * dwarf2/read.c (dwarf_always_disassemble)
9126 (show_dwarf_always_disassemble): Move to loc.c.
9127 (_initialize_dwarf2_read): Move "always-disassemble" registration
9128 to loc.c.
9129 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9130 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9131 static.
9132 (show_dwarf_always_disassemble): Move from read.c.
9133 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9134
5895093f
TT
91352020-02-08 Tom Tromey <tom@tromey.com>
9136
9137 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9138 (create_quick_file_names_table): Return htab_up.
9139 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9140 Update.
9141 * dwarf2/read.h (struct dwarf2_per_objfile)
9142 <quick_file_names_table>: Now htab_up.
9143
b3b32279
TT
91442020-02-08 Tom Tromey <tom@tromey.com>
9145
9146 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9147
1d33d811
TT
91482020-02-08 Tom Tromey <tom@tromey.com>
9149
9150 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9151 Rewrite.
9152 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9153 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9154 (abbrev_table::abbrev_table): No longer inline.
9155 (ABBREV_HASH_SIZE): Remove.
9156 (abbrev_table::m_abbrevs): Now an htab_up.
9157
86de1d91
TT
91582020-02-08 Tom Tromey <tom@tromey.com>
9159
9160 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9161 (cutu_reader): Update.
9162 (build_type_psymtabs_1): Update.
9163 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9164 (abbrev_table::alloc_abbrev): Update.
9165 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9166 (abbrev_table::read): New static method, renamed from
9167 abbrev_table_read_table.
9168 (abbrev_table::alloc_abbrev)
9169 (abbrev_table::add_abbrev): Now private.
9170 (abbrev_table::abbrev_table): Now private.
9171 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9172
0335378b
TT
91732020-02-08 Tom Tromey <tom@tromey.com>
9174
9175 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9176 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9177 htab_up.
9178
48b490f2
TT
91792020-02-08 Tom Tromey <tom@tromey.com>
9180
9181 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9182 htab_up.
9183 (lookup_dwo_unit_in_dwp): Update.
9184 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9185 on obstack.
9186
bc68fb19
TT
91872020-02-08 Tom Tromey <tom@tromey.com>
9188
9189 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9190 obstack.
9191
d15acc42
TT
91922020-02-08 Tom Tromey <tom@tromey.com>
9193
9194 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9195 line_header_hash.
9196 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9197 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9198 Change type to htab_up.
9199
eaa5fa8b
TT
92002020-02-08 Tom Tromey <tom@tromey.com>
9201
9202 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9203 htab_up. Don't allocate on obstack.
9204 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9205 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9206 Change type to htab_up.
9207
b0b6a987
TT
92082020-02-08 Tom Tromey <tom@tromey.com>
9209
9210 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9211 Change type to htab_up.
9212 * dwarf2/read.c (create_signatured_type_table_from_index)
9213 (create_signatured_type_table_from_debug_names)
9214 (create_all_type_units, add_type_unit)
9215 (lookup_dwo_signatured_type, lookup_signatured_type)
9216 (process_skeletonless_type_unit): Update.
9217 (create_debug_type_hash_table, create_debug_types_hash_table):
9218 Change type of types_htab.
9219 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9220 htab_up. Don't allocate on obstack.
9221 (create_cus_hash_table): Change type of cus_htab parameter.
9222 (struct dwo_file) <cus, tus>: Now htab_up.
9223 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9224 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9225 (queue_and_load_all_dwo_tus): Update.
9226 * dwarf2/index-write.c (write_gdbindex): Update.
9227 (write_debug_names): Update.
9228
39856def
TT
92292020-02-08 Tom Tromey <tom@tromey.com>
9230
9231 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9232 dwarf2/read.c. Remove "next" member. Add constructor ntad
9233 destructor.
9234 (struct dwarf2_per_objfile) <queue>: New member.
9235 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9236 dwarf2/read.h.
9237 (dwarf2_queue, dwarf2_queue_tail): Remove.
9238 (class dwarf2_queue_guard): Add parameter to constructor. Use
9239 DISABLE_COPY_AND_ASSIGN.
9240 <m_per_objfile>: New member.
9241 <~dwarf2_queue_guard>: Rewrite.
9242 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9243 Update.
9244 (~dwarf2_queue_item): New.
9245
3e225074
TT
92462020-02-08 Tom Tromey <tom@tromey.com>
9247
9248 * dwarf2/read.c (struct die_info) <has_children>: New member.
9249 (dw2_get_file_names_reader): Remove has_children.
9250 (dw2_get_file_names): Update.
9251 (read_cutu_die_from_dwo): Remove has_children.
9252 (cutu_reader::init_tu_and_read_dwo_dies)
9253 (cutu_reader::cutu_reader): Update.
9254 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9255 Remove has_children.
9256 (build_type_psymtabs_1, process_skeletonless_type_unit)
9257 (load_partial_comp_unit, load_full_comp_unit): Update.
9258 (create_dwo_cu_reader): Remove has_children.
9259 (create_cus_hash_table, read_die_and_children): Update.
9260 (read_full_die_1,read_full_die): Remove has_children.
9261 (read_signatured_type): Update.
9262 (class cutu_reader) <has_children>: Remove.
9263
82ca8957
TT
92642020-02-08 Tom Tromey <tom@tromey.com>
9265
9266 * dwarf2/expr.c: Rename from dwarf2expr.c.
9267 * dwarf2/expr.h: Rename from dwarf2expr.h.
9268 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9269 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9270 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9271 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9272 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9273 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9274 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9275 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9276 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9277 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9278 * dwarf2/loc.c: Rename from dwarf2loc.c.
9279 * dwarf2/loc.h: Rename from dwarf2loc.h.
9280 * dwarf2/read.c: Rename from dwarf2read.c.
9281 * dwarf2/read.h: Rename from dwarf2read.h.
9282 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9283 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9284 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9285 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9286 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9287 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9288 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9289 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9290 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9291 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9292 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9293 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9294 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9295 Update.
9296 * Makefile.in (COMMON_SFILES): Update.
9297 (HFILES_NO_SRCDIR): Update.
9298
9e35d499
TT
92992020-02-08 Tom Tromey <tom@tromey.com>
9300
9301 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9302 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9303
1eba2311
TT
93042020-02-08 Tom Tromey <tom@tromey.com>
9305
9306 * dwarf2read.h (struct die_info): Don't declare.
9307
e41c2da2
TT
93082020-02-08 Tom Tromey <tom@tromey.com>
9309
9310 * dwarf2read.h (die_info_ptr): Remove typedef.
9311
4fc6c0d5
TT
93122020-02-08 Tom Tromey <tom@tromey.com>
9313
9314 * dwarf2read.c (read_call_site_scope)
9315 (handle_data_member_location, dwarf2_add_member_fn)
9316 (mark_common_block_symbol_computed, read_common_block)
9317 (attr_to_dynamic_prop, partial_die_info::read)
9318 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9319 (dwarf2_symbol_mark_computed, set_die_type): Update.
9320 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9321 method.
9322 (attr_form_is_block): Don't declare.
9323 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9324
cd6c91b4
TT
93252020-02-08 Tom Tromey <tom@tromey.com>
9326
9327 * dwarf2read.c (dwarf2_find_base_address, )
9328 (read_call_site_scope, rust_containing_type)
9329 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9330 (handle_data_member_location, dwarf2_add_member_fn)
9331 (get_alignment, read_structure_type, process_structure_scope)
9332 (mark_common_block_symbol_computed, read_common_block)
9333 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9334 (partial_die_info::read, read_attribute_value, new_symbol)
9335 (lookup_die_type, dwarf2_get_ref_die_offset)
9336 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9337 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9338 (dwarf2_symbol_mark_computed): Update.
9339 * dwarf2/attribute.h (struct attribute) <value_as_address,
9340 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9341 methods.
9342 (value_as_address, attr_form_is_section_offset)
9343 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9344 * dwarf2/attribute.c (attribute::value_as_address)
9345 (attribute::form_is_section_offset, attribute::form_is_constant)
9346 (attribute::form_is_ref): Now methods.
9347
162dce55
TT
93482020-02-08 Tom Tromey <tom@tromey.com>
9349
9350 * dwarf2read.c (struct attribute, DW_STRING)
9351 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9352 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9353 (attr_form_is_block, attr_form_is_section_offset)
9354 (attr_form_is_constant, attr_form_is_ref): Move.
9355 * dwarf2/attribute.h: New file.
9356 * dwarf2/attribute.c: New file, from dwarf2read.c.
9357 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9358
3054dd54
TT
93592020-02-08 Tom Tromey <tom@tromey.com>
9360
9361 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9362 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9363 Move.
9364 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9365 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9366 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9367 abbrev.c.
9368 * dwarf2/abbrev.h: New file.
9369 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9370 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9371
96b79293
TT
93722020-02-08 Tom Tromey <tom@tromey.com>
9373
9374 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9375 (dwarf2_section_size, dwarf2_get_section_info)
9376 (create_signatured_type_table_from_debug_names)
9377 (create_addrmap_from_aranges, read_debug_names_from_section)
9378 (get_gdb_index_contents_from_section, read_comp_unit_head)
9379 (error_check_comp_unit_head, read_abbrev_offset)
9380 (create_debug_type_hash_table, init_cu_die_reader)
9381 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9382 (read_comp_units_from_section, create_cus_hash_table)
9383 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9384 (create_dwp_v2_section, dwarf2_rnglists_process)
9385 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9386 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9387 (read_indirect_string_from_dwz, read_addr_index_1)
9388 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9389 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9390 (fill_in_loclist_baton): Update.
9391 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9392 get_containing_section, get_bfd_owner, get_bfd_section,
9393 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9394 (dwarf2_read_section, get_section_name, get_section_file_name)
9395 (get_containing_section, get_section_bfd_owner)
9396 (get_section_bfd_section, get_section_name, get_section_file_name)
9397 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9398 declare.
9399 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9400 (dwarf2_section_info::get_bfd_owner)
9401 (dwarf2_section_info::get_bfd_section)
9402 (dwarf2_section_info::get_name)
9403 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9404 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9405 (dwarf2_section_info::read): Now methods.
9406 * dwarf-index-write.c (class debug_names): Update.
9407
2c86cff9
TT
94082020-02-08 Tom Tromey <tom@tromey.com>
9409
9410 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9411 Move to dwarf2/section.h.
9412 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9413 (get_section_bfd_section, get_section_name)
9414 (get_section_file_name, get_section_id, get_section_flags)
9415 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9416 dwarf2/section.c.
9417 * dwarf2/section.h: New file.
9418 * dwarf2/section.c: New file, from dwarf2read.c.
9419 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9420
f4382c45
TT
94212020-02-08 Tom Tromey <tom@tromey.com>
9422
9423 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9424 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9425 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9426 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9427 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9428 * dwarf2/leb.h: New file, from dwarf2read.c.
9429 * dwarf2/leb.c: New file, from dwarf2read.c.
9430 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9431 Remove.
9432 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9433 (COMMON_SFILES): Add dwarf2/leb.c.
9434
01840b7a
JB
94352020-02-08 Joel Brobecker <brobecker@adacore.com>
9436
9437 GDB 9.1 released.
9438
dfcb27e4
IB
94392020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9440
9441 PR gdb/25190:
aac66a4c
SM
9442 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9443 * gdb/remote.c (remote_console_output): Update.
9444 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9445 (ui_file_puts): ...this.
9446 * gdb/ui-file.h (ui_file_puts): Add declaration.
9447 * gdb/utils.c (emit_style_escape): Update.
9448 (flush_wrap_buffer): Update.
9449 (fputs_maybe_filtered): Update.
9450 (fputs_unfiltered): Add function.
dfcb27e4 9451
faa17681
IB
94522020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9453
aac66a4c
SM
9454 * gdb/event-loop.c (gdb_wait_for_event): Update.
9455 * gdb/printcmd.c (printf_command): Update.
9456 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9457 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9458 (gdb_os_flush_stderr): Update.
9459 * gdb/remote.c (remote_console_output): Update.
9460 * gdb/ui-file.c (gdb_flush): Rename to...
9461 (ui_file_flush): ...this.
9462 (stderr_file::write): Update.
9463 (stderr_file::puts): Update.
9464 * gdb/ui-file.h (gdb_flush): Rename to...
9465 (ui_file_flush): ...this.
9466 * gdb/utils.c (gdb_flush): Add function.
9467 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9468
5abbbe1d
TT
94692020-02-07 Tom Tromey <tromey@adacore.com>
9470
9471 PR breakpoints/24915:
9472 * source.c (find_and_open_source): Do not check basenames_may_differ.
9473
919adfe8
TT
94742020-02-07 Tom Tromey <tom@tromey.com>
9475
9476 * README: Update gdbserver documentation.
9477 * gdbserver: Move to top level.
9478 * configure.tgt (build_gdbserver): Remove.
9479 * configure.ac: Remove --enable-gdbserver.
9480 * configure: Rebuild.
9481 * Makefile.in (distclean): Don't mention gdbserver.
9482
1d5d29e7
SV
94832020-02-06 Shahab Vahedi <shahab@synopsys.com>
9484
9485 * source-cache.c (source_cache::ensure): Surround
9486 get_plain_source_lines with a try/catch.
9487 (source_cache::get_line_charpos): Get rid of try/catch
9488 and only check for the return value of "ensure".
9489 * tui/tui-source.c (tui_source_window::set_contents):
9490 Simplify "nlines" calculation.
9491
6eb1129c
SV
94922020-02-06 Shahab Vahedi <shahab@synopsys.com>
9493
9494 * MAINTAINERS (Write After Approval): Add myself.
9495
c6a42d11
CB
94962020-02-05 Christian Biesinger <cbiesinger@google.com>
9497
9498 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9499 function call.
9500
c8ecdda6
CB
95012020-02-05 Christian Biesinger <cbiesinger@google.com>
9502
9503 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9504
f6480e70
MR
95052020-02-05 Maciej W. Rozycki <macro@wdc.com>
9506
9507 * nat/riscv-linux-tdesc.h: New file.
9508 * nat/riscv-linux-tdesc.c: New file, taking code from...
9509 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9510 ... here.
9511 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9512 NATDEPFILES.
9513
dcc9fbc6
AB
95142020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9515
9516 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9517 we don't set the fake simulator ptid to the null_ptid.
9518
719546c4
SM
95192020-02-03 Simon Marchi <simon.marchi@efficios.com>
9520
9521 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9522 * gdbthread.h (class thread_info) <resumed>: Likewise.
9523 * infrun.c (resume_1): Likewise.
9524 (proceed): Likewise.
9525 (infrun_thread_stop_requested): Likewise.
9526 (stop_all_threads): Likewise.
9527 (handle_inferior_event): Likewise.
9528 (restart_threads): Likewise.
9529 (finish_step_over): Likewise.
9530 (keep_going_stepped_thread): Likewise.
9531 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9532 (linux_handle_extended_wait): Likewise.
9533 * record-btrace.c (get_thread_current_frame_id): Likewise.
9534 * record-full.c (record_full_wait_1): Likewise.
9535 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9536 * target.c (target_resume): Likewise.
9537 * thread.c (set_running_thread): Likewise.
9538
e409c542
AKS
95392020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9540
9541 * f-valprint.c (f77_print_array_1): Changed datatype of index
9542 variable to LONGEST from int to enable it to contain bound
9543 values correctly.
9544
ee98c0da
MR
95452020-02-03 Maciej W. Rozycki <macro@wdc.com>
9546
9547 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9548 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9549 offsets according to FLEN determined.
9550 (riscv_linux_nat_target::read_description): Determine FLEN
9551 dynamically.
9552 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9553 according to FLEN determined.
9554 (riscv_linux_nat_target::store_registers): Likewise.
9555
aa66aac4
SV
95562020-02-01 Shahab Vahedi <shahab@synopsys.com>
9557
9558 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9559 when reg->group is empty and reggroup is not.
9560
fd9faca8
TT
95612020-01-31 Tom Tromey <tromey@adacore.com>
9562
9563 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9564 Call beneath target's mourn_inferior after unpushing.
9565
42330a68
AB
95662020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9567
9568 PR tui/9765
9569 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9570 have enough lines to fill the screen, still return the lowest
9571 address we found.
9572
7a27a45b
AB
95732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9574
9575 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9576 '-', '<', and '>' commands.
9577
c47f70e2
PA
95782020-01-29 Pedro Alves <palves@redhat.com>
9579 Sergio Durigan Junior <sergiodj@redhat.com>
9580
9581 * infcmd.c (construct_inferior_arguments): Assert that
9582 'argc' is greater than 0.
9583
5133a315
LM
95842020-01-29 Luis Machado <luis.machado@linaro.org>
9585
9586 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9587 (BRK_INSN_MASK): Define to 0xd4200000.
9588 (aarch64_program_breakpoint_here_p): New function.
9589 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9590 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9591 breakpoint.c.
9592 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9593 breakpoint.h
9594 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9595 call gdbarch_program_breakpoint_here_p.
9596 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9597 default_program_breakpoint_here_p, changed return type to bool and
9598 simplified.
9599 * breakpoint.h (program_breakpoint_here): Moved prototype to
9600 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9601 return type to bool.
9602 * gdbarch.c: Regenerate.
9603 * gdbarch.h: Regenerate.
9604 * gdbarch.sh (program_breakpoint_here_p): New method.
9605 * infrun.c (handle_signal_stop): Call
9606 gdbarch_program_breakpoint_here_p.
9607
168f8c6b
TT
96082020-01-26 Tom Tromey <tom@tromey.com>
9609
9610 * ctfread.c (struct ctf_fp_info): Reindent.
9611 (_initialize_ctfread): Remove.
9612
128a391f
TT
96132020-01-26 Tom Tromey <tom@tromey.com>
9614
9615 * psymtab.c (partial_map_expand_apply)
9616 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9617 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9618 (psym_print_stats, psym_expand_symtabs_for_function)
9619 (psym_map_symbol_filenames, psym_map_matching_symbols)
9620 (psym_expand_symtabs_matching)
9621 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9622 (maintenance_check_psymtabs): Use new methods.
9623 * psympriv.h (struct partial_symtab) <readin_p,
9624 get_compunit_symtab>: New methods.
9625 <readin, compunit_symtab>: Remove members.
9626 (struct standard_psymtab): New.
9627 (struct legacy_psymtab): Derive from standard_psymtab.
9628 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9629 standard_psymtab.
9630 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9631
0494dbec
TT
96322020-01-26 Tom Tromey <tom@tromey.com>
9633
9634 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9635 read_dependencies. Add assert.
9636 * psymtab.c (partial_symtab::read_dependencies): New method.
9637 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9638 method.
9639 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9640 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9641 read_dependencies.
9642 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9643 Add assert.
9644
8566b89b
TT
96452020-01-26 Tom Tromey <tom@tromey.com>
9646
9647 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9648 Call expand_psymtab.
9649 (xcoff_read_symtab): Call expand_psymtab.
9650 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9651 legacy_expand_psymtab.
9652 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9653 method.
9654 (struct legacy_psymtab) <expand_psymtab>: Implement.
9655 <legacy_expand_psymtab>: New member.
9656 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9657 (parse_partial_symbols): Set legacy_expand_psymtab.
9658 (psymtab_to_symtab_1): Change argument order. Call
9659 expand_psymtab.
9660 (new_psymtab): Set legacy_expand_psymtab.
9661 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9662 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9663 expand_psymtab.
9664 (dwarf2_psymtab::expand_psymtab): Rename from
9665 psymtab_to_symtab_1. Call expand_psymtab.
9666 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9667 (dbx_end_psymtab): Likewise.
9668 (dbx_psymtab_to_symtab_1): Change argument order. Call
9669 expand_psymtab.
9670 (dbx_read_symtab): Call expand_psymtab.
9671 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9672 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9673 (ctf_psymtab::read_symtab): Call expand_psymtab.
9674
077cbab2
TT
96752020-01-26 Tom Tromey <tom@tromey.com>
9676
9677 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9678 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9679 messages.
9680 * mdebugread.c (mdebug_read_symtab): Remove prints.
9681 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9682 assert.
9683 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9684
891813be
TT
96852020-01-26 Tom Tromey <tom@tromey.com>
9686
9687 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9688 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9689 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9690 legacy_symtab.
9691 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9692 * psymtab.c (psymtab_to_symtab): Call method.
9693 (dump_psymtab): Update.
9694 * psympriv.h (struct partial_symtab): Add virtual destructor.
9695 <read_symtab>: New method.
9696 (struct legacy_symtab): New.
9697 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9698 (struct pst_map) <pst>: Now a legacy_psymtab.
9699 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9700 (new_psymtab): Use legacy_psymtab.
9701 * dwarf2read.h (struct dwarf2_psymtab): New.
9702 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9703 * dwarf2read.c (dwarf2_create_include_psymtab)
9704 (dwarf2_build_include_psymtabs, create_type_unit_group)
9705 (create_partial_symtab, process_psymtab_comp_unit_reader)
9706 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9707 (set_partial_user): Use dwarf2_psymtab.
9708 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9709 (psymtab_to_symtab_1, process_full_comp_unit)
9710 (process_full_type_unit, dwarf2_ranges_read)
9711 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9712 (dwarf_decode_lines): Use dwarf2_psymtab.
9713 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9714 (add_address_entry_worker, write_one_signatured_type)
9715 (recursively_count_psymbols, recursively_write_psymbols)
9716 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9717 (write_debug_names): Likewise.
9718 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9719 <pst>: Now a legacy_psymtab.
9720 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9721 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9722 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9723 * ctfread.c (struct ctf_psymtab): New.
9724 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9725 ctf_psymtab.
9726 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9727 (create_partial_symtab): Return a ctf_psymtab.
9728 (scan_partial_symbols): Update.
9729
c3693a1d
TT
97302020-01-26 Tom Tromey <tom@tromey.com>
9731
9732 * xcoffread.c (xcoff_start_psymtab): Use new.
9733 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9734 renamed from start_psymtab_common.
9735 * psympriv.h (struct partial_symtab): Add new constructor.
9736 (start_psymtab_common): Don't declare.
9737 * mdebugread.c (parse_partial_symbols): Use new.
9738 * dwarf2read.c (create_partial_symtab): Use new.
9739 * dbxread.c (start_psymtab): Use new.
9740 * ctfread.c (create_partial_symtab): Use new.
9741
32caafd0
TT
97422020-01-26 Tom Tromey <tom@tromey.com>
9743
9744 * xcoffread.c (xcoff_end_psymtab): Use new.
9745 * psymtab.c (start_psymtab_common): Use new.
9746 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9747 Update.
9748 * psympriv.h (struct partial_symtab): Add parameters to
9749 constructor. Don't inline.
9750 (allocate_psymtab): Don't declare.
9751 * mdebugread.c (new_psymtab): Use new.
9752 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9753 * dbxread.c (dbx_end_psymtab): Use new.
9754
abaa2f23
TT
97552020-01-26 Tom Tromey <tom@tromey.com>
9756
9757 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9758 allocate_psymtab. Update documentation.
9759 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9760 allocate_psymtab. Do not use new.
9761 (allocate_psymtab): Use new. Update.
9762
6d94535f
TT
97632020-01-26 Tom Tromey <tom@tromey.com>
9764
9765 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9766 * psymtab.c (psym_print_stats): Update.
9767 * psympriv.h (struct partial_symtab) <readin,
9768 psymtabs_addrmap_supported, anonymous>: Now bool.
9769 * mdebugread.c (psymtab_to_symtab_1): Update.
9770 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9771 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9772 (process_full_comp_unit, process_full_type_unit): Update.
9773 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9774 * ctfread.c (psymtab_to_symtab): Update.
9775
6f17252b
TT
97762020-01-26 Tom Tromey <tom@tromey.com>
9777
9778 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9779 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9780 * psymtab.c (psymtab_storage): Delete psymtabs.
9781 (psymtab_storage::allocate_psymtab): Use new.
9782 (psymtab_storage::discard_psymtab): Use delete.
9783 * psympriv.h (struct partial_symtab): Add constructor and
9784 initializers.
9785
f6f1cebc
TT
97862020-01-26 Tom Tromey <tom@tromey.com>
9787
9788 * machoread.c: Do not include psympriv.h.
9789
e47e48f6
PW
97902020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9791
9792 * NEWS: Mention the new option and the set/show commands.
9793
a2fedca9
PW
97942020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9795
9796 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9797 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9798 (validate_exec_file): New variables, enums, functions.
9799 (exec_file_locate_attach, print_section_info): Style the filenames.
9800 (_initialize_exec): Install show_exec_file_mismatch_command and
9801 set_exec_file_mismatch_command.
9802 * gdbcore.h (validate_exec_file): Declare.
9803 * infcmd.c (attach_command): Call validate_exec_file.
9804 * remote.c ( remote_target::remote_add_inferior): Likewise.
9805
7ffa82e1
AB
98062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9807
9808 * frame.c (find_frame_sal): Move call to get_next_frame into more
9809 inner scope.
9810 * inline-frame.c (inilne_state) <inline_state>: Update argument
9811 types.
9812 (inilne_state) <skipped_symbol>: Rename to...
9813 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9814 (skip_inline_frames): Build vector of skipped symbols and use this
9815 to reate the inline_state.
9816 (inline_skipped_symbol): Add a comment and some assertions, fetch
9817 skipped symbol from the list.
9818
3d92a3e3
AB
98192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9820
9821 * buildsym.c (lte_is_less_than): Delete.
9822 (buildsym_compunit::end_symtab_with_blockvector): Create local
9823 lambda function to sort line table entries, and use
9824 std::stable_sort instead of std::sort.
9825 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9826 markers when looking for a previous line.
9827
94a72be7
AB
98282020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9829
9830 * dwarf2read.c (lnp_state_machine::record_line): Include
9831 end_sequence parameter in debug print out. Record the line if we
9832 are at an end_sequence marker even if it's not the start of a
9833 statement.
9834 * symmisc.c (maintenance_print_one_line_table): Print end of
9835 sequence markers with 'END' not '0'.
9836
53af73bf
PA
98372020-01-24 Pedro Alves <palves@redhat.com>
9838
9839 PR gdb/25410
9840 * thread.c (scoped_restore_current_thread::restore): Use
9841 switch_to_inferior_no_thread.
9842 * exec.c: Include "progspace-and-thread.h".
9843 (add_target_sections, remove_target_sections):
9844 scoped_restore_current_pspace_and_thread instead of
9845 scoped_restore_current_thread.
9846 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9847 and aspace to the inferior before calling clone_program_space.
9848 Remove stale comment.
9849
3050c6f4
CB
98502020-01-24 Christian Biesinger <cbiesinger@google.com>
9851
9852 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9853 (arm_netbsd_nat_target::fetch_registers): ...this.
9854 (arm_nbsd_nat_target::store_registers): Rename to...
9855 (arm_netbsd_nat_target::store_registers): ...this.
9856
73685c7e
CB
98572020-01-24 Christian Biesinger <cbiesinger@google.com>
9858
9859 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9860 register_t.
9861
89203d40
CB
98622020-01-24 Christian Biesinger <cbiesinger@google.com>
9863
9864 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9865 Update comment.
9866 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9867 Likewise.
9868 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9869 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9870 the correct replacement (iterate_over_regset_sections).
9871 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9872 Update comment.
9873
1ba1ac88
AB
98742020-01-24 Graham Markall <graham.markall@embecosm.com>
9875
9876 PR gdb/23718
9877 * gdb/python/python.c (execute_gdb_command): Call
9878 async_enable_stdin in catch block.
9879
f3364a6d
AB
98802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9881
9882 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9883 SWITCH_THRU_ALL_UIS.
9884
733d0a67
AB
98852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9886
9887 PR tui/9765
9888 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9889 comment, add extra parameter, and update to store previous symbol
9890 when appropriate.
9891 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9892 add extra parameter.
9893 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9894 remove unneeded parameter, add try/catch around gdb_print_insn,
9895 rewrite to add items to asm_lines vector.
9896 (tui_find_backward_disassembly_start_address): New function.
9897 (tui_find_disassembly_address): Updated throughout.
9898 (tui_disasm_window::set_contents): Update for changes to
9899 tui_disassemble.
9900 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9901 number of lines to scroll.
9902
b3b3bada
SM
99032020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9904
9905 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9906 (SECT_OFF_DATA): Likewise.
9907 (SECT_OFF_RODATA): Likewise.
9908 (SECT_OFF_TEXT): Likewise.
9909 (SECT_OFF_BSS): Likewise.
9910 (struct objfile) <text_section_offset, data_section_offset>: New
9911 methods.
9912 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9913 objfile::text_section_offset.
9914 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9915 * coffread.c (coff_symtab_read): Likewise.
9916 (enter_linenos): Likewise.
9917 (process_coff_symbol): Likewise.
9918 * ctfread.c (get_objfile_text_range): Likewise.
9919 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9920 Use objfile::data_section_offset.
9921 * dwarf2-frame.c (execute_cfa_program): Use
9922 objfile::text_section_offset.
9923 (dwarf2_frame_find_fde): Likewise.
9924 * dwarf2read.c (create_addrmap_from_index): Likewise.
9925 (create_addrmap_from_aranges): Likewise.
9926 (dw2_find_pc_sect_compunit_symtab): Likewise.
9927 (process_psymtab_comp_unit_reader): Likewise.
9928 (add_partial_symbol): Likewise.
9929 (add_partial_subprogram): Likewise.
9930 (process_full_comp_unit): Likewise.
9931 (read_file_scope): Likewise.
9932 (read_func_scope): Likewise.
9933 (read_lexical_block_scope): Likewise.
9934 (read_call_site_scope): Likewise.
9935 (dwarf2_rnglists_process): Likewise.
9936 (dwarf2_ranges_process): Likewise.
9937 (dwarf2_ranges_read): Likewise.
9938 (dwarf_decode_lines_1): Likewise.
9939 (new_symbol): Likewise.
9940 (dwarf2_fetch_die_loc_sect_off): Likewise.
9941 (dwarf2_per_cu_text_offset): Likewise.
9942 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9943 * hppa-tdep.c (read_unwind_info): Likewise.
9944 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9945 * psympriv.h (struct partial_symtab): Likewise.
9946 * psymtab.c (find_pc_sect_psymtab): Likewise.
9947 * solib-svr4.c (enable_break): Likewise.
9948 * stap-probe.c (relocate_address): Use
9949 objfile::data_section_offset.
9950 * xcoffread.c (enter_line_range): Use
9951 objfile::text_section_offset.
9952 (read_xcoff_symtab): Likewise.
9953
ab53f382
SM
99542020-01-23 Simon Marchi <simon.marchi@efficios.com>
9955
9956 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9957 declaration to narrower scopes.
9958
e7eee665
SM
99592020-01-23 Simon Marchi <simon.marchi@efficios.com>
9960
9961 * darwin-nat.h (struct darwin_exception_msg, enum
9962 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9963 Move up.
9964 (class darwin_nat_target) <wait_1, check_new_threads,
9965 decode_exception_message, decode_message, stop_inferior,
9966 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9967 * darwin-nat.c (darwin_check_new_threads): Rename to...
9968 (darwin_nat_target::check_new_threads): ... this.
9969 (darwin_suspend_inferior_it): Remove.
9970 (darwin_decode_exception_message): Rename to...
9971 (darwin_nat_target::decode_exception_message): ... this.
9972 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9973 (darwin_decode_message): Rename to...
9974 (darwin_nat_target::decode_message): ... this.
9975 (cancel_breakpoint): Rename to...
9976 (darwin_nat_target::cancel_breakpoint): ... this.
9977 (darwin_wait): Rename to...
9978 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9979 instead of iterate_over_inferiors.
9980 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9981 (darwin_stop_inferior): Rename to...
9982 (darwin_nat_target::stop_inferior): ... this.
9983 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9984 (darwin_init_thread_list): Rename to...
9985 (darwin_nat_target::init_thread_list): ... this.
9986 (darwin_ptrace_him): Rename to...
9987 (darwin_nat_target::ptrace_him): ... this.
9988 (darwin_nat_target::create_inferior): Pass lambda function to
9989 fork_inferior.
9990 (darwin_nat_target::detach): Call stop_inferior instead of
9991 darwin_stop_inferior.
9992 * fork-inferior.h (fork_inferior): Change init_trace_fun
9993 parameter to gdb::function_view.
9994 * fork-inferior.c (fork_inferior): Likewise.
9995
c162ed3e
HD
99962020-01-23 Hannes Domani <ssbssa@yahoo.de>
9997
9998 * i386-cygwin-tdep.c (core_process_module_section): Update.
9999 * windows-nat.c (struct lm_info_windows): Add text_offset.
10000 (windows_xfer_shared_libraries): Update.
10001 * windows-tdep.c (windows_xfer_shared_library):
10002 Add text_offset_cached argument.
10003 * windows-tdep.h (windows_xfer_shared_library): Update.
10004
a1237872
SM
100052020-01-21 Simon Marchi <simon.marchi@efficios.com>
10006
10007 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10008
b3ee6dd9
SM
100092020-01-21 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10012 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10013 replace with range-based for.
10014 (gdbsim_interrupt_inferior): Remove.
10015 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10016 with a range-based for. Inline code from
10017 gdbsim_interrupt_inferior.
10018
f9fac3c8
SM
100192020-01-21 Simon Marchi <simon.marchi@efficios.com>
10020
10021 * infrun.c (proceed): Fix indentation.
10022
f6474de9
TT
100232020-01-21 Tom Tromey <tromey@adacore.com>
10024
10025 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10026 * python/python.c (python_extension_ops): Update.
10027 (gdbpy_colorize): New function.
10028 * python/lib/gdb/__init__.py (colorize): New function.
10029 * extension.h (ext_lang_colorize): Declare.
10030 * extension.c (ext_lang_colorize): New function.
10031 * extension-priv.h (struct extension_language_ops) <colorize>: New
10032 member.
10033 * cli/cli-style.c (_initialize_cli_style): Update help text.
10034
f0c702d4
LM
100352020-01-21 Luis Machado <luis.machado@linaro.org>
10036
10037 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10038 <cond>: Change type to bool.
10039 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10040 (aarch64_displaced_step_cb): Likewise.
10041 (aarch64_displaced_step_tb): Likewise.
10042
1ab139e5
LM
100432020-01-21 Luis Machado <luis.machado@linaro.org>
10044
10045 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10046 output.
10047
0c271889
LM
100482020-01-21 Luis Machado <luis.machado@linaro.org>
10049
10050 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10051 <pc_adjust>: Adjust the documentation.
10052 (aarch64_displaced_step_fixup): Check if PC really moved before
10053 adjusting it.
10054
4d89c1c7
TT
100552020-01-19 Tom Tromey <tom@tromey.com>
10056
10057 * disasm.c (~gdb_disassembler): New destructor.
10058 (gdb_buffered_insn_length): Call disassemble_free_target.
10059 * disasm.h (class gdb_disassembler): Declare destructor. Use
10060 DISABLE_COPY_AND_ASSIGN.
10061
c0ab21c2
TT
100622020-01-19 Tom Tromey <tom@tromey.com>
10063
10064 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10065 (die_reader_func_ftype): Remove.
10066 (cutu_reader): New class.
10067 (dw2_get_file_names_reader): Remove "data" parameter.
10068 (dw2_get_file_names): Use cutu_reader.
10069 (create_debug_type_hash_table): Update.
10070 (read_cutu_die_from_dwo): Update comment.
10071 (lookup_dwo_unit): Add dwo_name parameter.
10072 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10073 die_reader_func_ftype and data parameters.
10074 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10075 Remove die_reader_func_ftype and data parameters.
10076 (~cutu_reader): New; from init_cutu_and_read_dies.
10077 (cutu_reader::cutu_reader): Rename from
10078 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10079 and data parameters.
10080 (init_cutu_and_read_dies_simple): Remove.
10081 (struct process_psymtab_comp_unit_data): Remove.
10082 (process_psymtab_comp_unit_reader): Remove data parameter; add
10083 want_partial_unit and pretend_language parameters.
10084 (process_psymtab_comp_unit): Use cutu_reader.
10085 (build_type_psymtabs_reader): Remove data parameter.
10086 (build_type_psymtabs_1): Use cutu_reader.
10087 (process_skeletonless_type_unit): Likewise.
10088 (load_partial_comp_unit_reader): Remove.
10089 (load_partial_comp_unit): Use cutu_reader.
10090 (load_full_comp_unit_reader): Remove.
10091 (load_full_comp_unit): Use cutu_reader.
10092 (struct create_dwo_cu_data): Remove.
10093 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10094 dwo_unit parameters.
10095 (create_cus_hash_table): Use cutu_reader.
10096 (struct dwarf2_read_addr_index_data): Remove.
10097 (dwarf2_read_addr_index_reader): Remove.
10098 (dwarf2_read_addr_index): Use cutu_reader.
10099 (read_signatured_type_reader): Remove.
10100 (read_signatured_type): Use cutu_reader.
10101
45bbae5c
TT
101022020-01-19 Tom Tromey <tom@tromey.com>
10103
10104 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10105 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10106 (tui_wrefresh): Declare.
10107 * tui/tui-wingeneral.c (suppress_output): New global.
10108 (tui_suppress_output, ~tui_suppress_output): New constructor and
10109 destructor.
10110 (tui_wrefresh): New function.
10111 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10112 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10113 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10114 method.
10115 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10116 tui_wrefresh.
10117 (tui_data_window::no_refresh): New method.
10118 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10119 (tui_reg_command): Use tui_suppress_output
10120 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10121 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10122 method.
10123 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10124
4f13c1c0
TT
101252020-01-19 Tom Tromey <tom@tromey.com>
10126
10127 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10128 Handle case where symtab is null.
10129
fa47e446
SM
101302020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10131
10132 * linux-fork.c (one_fork_p): Simplify.
10133
26f42329
SM
101342020-01-17 Simon Marchi <simon.marchi@efficios.com>
10135
10136 * top.c (struct qt_args): Remove.
10137 (kill_or_detach): Change return type to void, replace `void *`
10138 parameter with a proper one.
10139 (print_inferior_quit_action): Likewise.
10140 (quit_confirm): Use range-based for loop to iterate over inferiors.
10141 (quit_force): Likewise.
10142
a9ac81b1
SM
101432020-01-17 Simon Marchi <simon.marchi@efficios.com>
10144
10145 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10146 `void *` parameter with proper parameters.
10147 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10148 (print_one_inferior): Change return type to void, replace `void *`
10149 parameter with proper parameters.
10150 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10151 inferiors.
10152 (get_other_inferior): Remove.
10153 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10154 inferiors.
10155
788eca49
SM
101562020-01-17 Simon Marchi <simon.marchi@efficios.com>
10157
10158 * mi/mi-interp.c (report_initial_inferior): Remove.
10159 (mi_interp::init): Use range-based for to iterate over inferiors.
10160
d9bc85b6
SM
101612020-01-17 Simon Marchi <simon.marchi@efficios.com>
10162
10163 * python/py-inferior.c (build_inferior_list): Remove.
10164 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10165
40c94099
CB
101662020-01-16 Christian Biesinger <cbiesinger@google.com>
10167
10168 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10169 (btrace_stitch_trace): Likewise.
10170 * charset.c (intermediate_encoding): Likewise (vaild).
10171 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10172 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10173 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10174
e0cdfe3c
HD
101752020-01-16 Hannes Domani <ssbssa@yahoo.de>
10176
10177 * windows-tdep.c (windows_get_tlb_type):
10178 Add rtl_user_process_parameters type.
10179
790f1718 101802020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10181 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10182
10183 PR build/24805
10184 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10185 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10186 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10187 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10188 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10189 (ps_plog): Redeclare exported functions with default visibility.
10190
3112ed97
NA
101912020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10192
10193 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10194 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10195
8dc3273e
SM
101962020-01-15 Simon Marchi <simon.marchi@efficios.com>
10197
10198 * infcmd.c (post_create_inferior): Use get_thread_regcache
10199 instead of get_current_regcache.
10200
ff47f4f0
TT
102012020-01-14 Tom Tromey <tom@tromey.com>
10202
10203 PR symtab/12535:
10204 * python/python.c (gdbpy_decode_line): Treat empty string the same
10205 as no argument.
10206
975f45b7
TT
102072020-01-14 Tom Tromey <tom@tromey.com>
10208
10209 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10210
25e57356
TT
102112020-01-14 Tom Tromey <tom@tromey.com>
10212
10213 * nat/linux-btrace.c: Don't include <config.h>.
10214 * nat/linux-ptrace.c: Don't include <config.h>.
10215 * nat/x86-linux-dregs.c: Don't include <config.h>.
10216
05ea2a05
TT
102172020-01-14 Tom Tromey <tom@tromey.com>
10218
10219 * configure: Rebuild.
10220 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10221
01027315
TT
102222020-01-14 Tom Tromey <tom@tromey.com>
10223
10224 * nat/x86-linux-dregs.c: Include configh.h.
10225 * nat/linux-ptrace.c: Include configh.h.
10226 * nat/linux-btrace.c: Include configh.h.
10227 * defs.h: Include config.h, bfd.h.
10228 * configure.ac: Don't source common.host.
10229 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10230 * configure: Rebuild.
10231 * acinclude.m4: Update path.
10232 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10233 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10234 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10235 (CLIBS): Add LIBSUPPORT.
10236 (CDEPS): Likewise.
10237 (COMMON_SFILES): Remove gdbsupport files.
10238 (HFILES_NO_SRCDIR): Likewise.
10239 (stamp-version): Update path to create-version.sh.
10240 (ALLDEPFILES): Remove gdbsupport files.
10241
b2ceabe8
TT
102422020-01-14 Tom Tromey <tom@tromey.com>
10243
10244 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10245 USE_WIN32API when needed.
10246 * configure.ac (USE_WIN32API): Don't define.
10247 (WIN32LIBS): Use WIN32APILIBS.
10248 * configure: Rebuild.
10249
25c51f71
TT
102502020-01-14 Tom Tromey <tom@tromey.com>
10251
10252 * configure: Rebuild.
10253 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10254
717c684d
BE
102552020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10256
10257 * skip.c (skip_function_command): Make skip w/o arguments use the
10258 name of the inlined function if pc is inside any inlined function.
10259
7da6a5b9
LM
102602020-01-14 Luis Machado <luis.machado@linaro.org>
10261
10262 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10263 * infrun.c (resume_1): Likewise.
10264 (handle_inferior_event): Remove stale comment.
10265 * linux-nat.c (linux_nat_target::resume): Update comments.
10266 (save_stop_reason): Likewise.
10267 (linux_nat_filter_event): Likewise.
10268 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10269
44e4c775
AB
102702020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10271
10272 * elfread.c (record_minimal_symbol): Set section index to 0 for
10273 non-allocatable sections.
10274
18a8505e
AT
10275
102762020-01-13 Ali Tamur <tamur@google.com>
10277
10278 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10279 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10280 to gdb::optional. Update comments.
10281 (dwo_file): Update comments.
10282 (read_attribute): Update API to take an additional out parameter,
10283 need_reprocess. This is used to mark attributes that need other
10284 attributes (e.g. str_offsets_base) for correct computation which may not
10285 have been read yet.
10286 (read_attribute_reprocess): New function declaration.
10287 (read_addr_index): Likewise.
10288 (read_dwo_str_index): Likewise.
10289 (read_stub_str_index): Likewise.
10290 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10291 (lookup_addr_base): New function definition.
10292 (lookup_ranges_base): Likewise.
10293 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10294 lookup_ranges_base.
10295 (init_cutu_and_read_dies): Update comments.
10296 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10297 unit. This is used to inherit parent's str_offsets_base and addr_base.
10298 Update comments.
10299 (init_cutu_and_read_dies_simple): Reflect API changes.
10300 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10301 (create_cus_hash_table): Change API to take parent compile unit.
10302 Reflect API changes.
10303 (open_and_init_dwo_file): Reflect API changes.
10304 (dwarf2_get_pc_bounds): Update comments.
10305 (dwarf2_record_block_ranges): Likewise.
10306 (read_full_die_1): Change implementation to reprocess attributes that
10307 need str_offsets_base and addr_base.
10308 (partial_die_info::read): Likewise.
10309 (read_attribute_reprocess): New function definition.
10310 (read_attribute_value): Change API to take an additional out parameter,
10311 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10312 when a non-dwo compile unit has index based attributes.
10313 (read_attribute): Reflect API changes.
10314 (read_addr_index_1): Reflect API changes. Update comments.
10315 (dwarf2_read_addr_index_data): Reflect API changes.
10316 (dwarf2_read_addr_index): Likewise.
10317 (read_str_index): Change API and implementation. This becomes a helper
10318 to be used by the new string index related methods. Update error
10319 message and comments.
10320 (read_dwo_str_index): New function definition.
10321 (read_stub_str_index): Likewise.
10322 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10323 * symfile.h (dwarf2_debug_sections): Likewise.
10324 * xcoffread.c (dwarf2_debug_sections): Likewise.
10325
0cac9354
SM
103262020-01-13 Simon Marchi <simon.marchi@efficios.com>
10327
10328 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10329 core_reg_sect type to gdb_byte *.
10330 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10331 * cris-tdep.c (fetch_core_registers): Likewise.
10332 * corelow.c (core_target::get_core_register_section): Change
10333 type of `contents` to gdb::byte_vector.
10334
9a6d629c
AB
103352020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10336
10337 * tui/tui-wingeneral.c (box_win): Position the title in the center
10338 of the border.
10339
d8b2f9e3
SM
103402020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10341
10342 * corelow.c (core_target::get_core_register_section): Use
10343 std::vector instead of alloca.
10344
bb564c58
SM
103452020-01-13 Simon Marchi <simon.marchi@efficios.com>
10346
10347 * warning.m4: Add -Wmissing-declarations to build_warnings.
10348 * configure: Re-generate.
10349
6b366111
SM
103502020-01-13 Simon Marchi <simon.marchi@efficios.com>
10351
10352 * python/python.c (init__gdb_module): Add declaration.
10353
6c265988
SM
103542020-01-13 Simon Marchi <simon.marchi@efficios.com>
10355
10356 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10357 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10358 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10359 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10360 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10361 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10362 * ada-exp.y (_initialize_ada_exp): Add declaration.
10363 * ada-lang.c (_initialize_ada_language): Add declaration.
10364 * ada-tasks.c (_initialize_tasks): Add declaration.
10365 * agent.c (_initialize_agent): Add declaration.
10366 * aix-thread.c (_initialize_aix_thread): Add declaration.
10367 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10368 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10369 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10370 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10371 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10372 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10373 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10374 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10375 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10376 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10377 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10378 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10379 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10380 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10381 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10382 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10383 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10384 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10385 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10386 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10387 * annotate.c (_initialize_annotate): Add declaration.
10388 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10389 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10390 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10391 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10392 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10393 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10394 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10395 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10396 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10397 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10398 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10399 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10400 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10401 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10402 * auto-load.c (_initialize_auto_load): Add declaration.
10403 * auxv.c (_initialize_auxv): Add declaration.
10404 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10405 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10406 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10407 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10408 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10409 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10410 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10411 * breakpoint.c (_initialize_breakpoint): Add declaration.
10412 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10413 * btrace.c (_initialize_btrace): Add declaration.
10414 * charset.c (_initialize_charset): Add declaration.
10415 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10416 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10417 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10418 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10419 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10420 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10421 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10422 * coffread.c (_initialize_coffread): Add declaration.
10423 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10424 * compile/compile.c (_initialize_compile): Add declaration.
10425 * complaints.c (_initialize_complaints): Add declaration.
10426 * completer.c (_initialize_completer): Add declaration.
10427 * copying.c (_initialize_copying): Add declaration.
10428 * corefile.c (_initialize_core): Add declaration.
10429 * corelow.c (_initialize_corelow): Add declaration.
10430 * cp-abi.c (_initialize_cp_abi): Add declaration.
10431 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10432 * cp-support.c (_initialize_cp_support): Add declaration.
10433 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10434 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10435 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10436 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10437 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10438 * ctfread.c (_initialize_ctfread): Add declaration.
10439 * d-lang.c (_initialize_d_language): Add declaration.
10440 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10441 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10442 * dbxread.c (_initialize_dbxread): Add declaration.
10443 * dcache.c (_initialize_dcache): Add declaration.
10444 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10445 * disasm.c (_initialize_disasm): Add declaration.
10446 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10447 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10448 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10449 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10450 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10451 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10452 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10453 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10454 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10455 * elfread.c (_initialize_elfread): Add declaration.
10456 * exec.c (_initialize_exec): Add declaration.
10457 * extension.c (_initialize_extension): Add declaration.
10458 * f-lang.c (_initialize_f_language): Add declaration.
10459 * f-valprint.c (_initialize_f_valprint): Add declaration.
10460 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10461 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10462 * filesystem.c (_initialize_filesystem): Add declaration.
10463 * findcmd.c (_initialize_mem_search): Add declaration.
10464 * findvar.c (_initialize_findvar): Add declaration.
10465 * fork-child.c (_initialize_fork_child): Add declaration.
10466 * frame-base.c (_initialize_frame_base): Add declaration.
10467 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10468 * frame.c (_initialize_frame): Add declaration.
10469 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10470 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10471 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10472 * gcore.c (_initialize_gcore): Add declaration.
10473 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10474 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10475 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10476 * gdbarch.c (_initialize_gdbarch): Add declaration.
10477 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10478 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10479 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10480 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10481 * go-lang.c (_initialize_go_language): Add declaration.
10482 * go32-nat.c (_initialize_go32_nat): Add declaration.
10483 * guile/guile.c (_initialize_guile): Add declaration.
10484 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10485 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10486 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10487 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10488 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10489 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10490 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10491 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10492 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10493 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10494 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10495 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10496 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10497 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10498 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10499 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10500 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10501 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10502 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10503 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10504 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10505 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10506 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10507 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10508 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10509 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10510 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10511 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10512 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10513 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10514 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10515 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10516 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10517 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10518 * infcall.c (_initialize_infcall): Add declaration.
10519 * infcmd.c (_initialize_infcmd): Add declaration.
10520 * inflow.c (_initialize_inflow): Add declaration.
10521 * infrun.c (_initialize_infrun): Add declaration.
10522 * interps.c (_initialize_interpreter): Add declaration.
10523 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10524 * jit.c (_initialize_jit): Add declaration.
10525 * language.c (_initialize_language): Add declaration.
10526 * linux-fork.c (_initialize_linux_fork): Add declaration.
10527 * linux-nat.c (_initialize_linux_nat): Add declaration.
10528 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10529 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10530 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10531 * m2-lang.c (_initialize_m2_language): Add declaration.
10532 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10533 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10534 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10535 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10536 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10537 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10538 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10539 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10540 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10541 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10542 * machoread.c (_initialize_machoread): Add declaration.
10543 * macrocmd.c (_initialize_macrocmd): Add declaration.
10544 * macroscope.c (_initialize_macroscope): Add declaration.
10545 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10546 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10547 * maint.c (_initialize_maint_cmds): Add declaration.
10548 * mdebugread.c (_initialize_mdebugread): Add declaration.
10549 * memattr.c (_initialize_mem): Add declaration.
10550 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10551 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10552 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10553 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10554 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10555 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10556 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10557 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10558 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10559 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10560 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10561 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10562 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10563 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10564 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10565 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10566 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10567 * mipsread.c (_initialize_mipsread): Add declaration.
10568 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10569 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10570 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10571 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10572 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10573 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10574 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10575 * nto-procfs.c (_initialize_procfs): Add declaration.
10576 * objc-lang.c (_initialize_objc_language): Add declaration.
10577 * observable.c (_initialize_observer): Add declaration.
10578 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10579 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10580 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10581 * osabi.c (_initialize_gdb_osabi): Add declaration.
10582 * osdata.c (_initialize_osdata): Add declaration.
10583 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10584 * parse.c (_initialize_parse): Add declaration.
10585 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10586 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10587 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10588 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10589 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10590 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10591 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10592 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10593 * printcmd.c (_initialize_printcmd): Add declaration.
10594 * probe.c (_initialize_probe): Add declaration.
10595 * proc-api.c (_initialize_proc_api): Add declaration.
10596 * proc-events.c (_initialize_proc_events): Add declaration.
10597 * proc-service.c (_initialize_proc_service): Add declaration.
10598 * procfs.c (_initialize_procfs): Add declaration.
10599 * producer.c (_initialize_producer): Add declaration.
10600 * psymtab.c (_initialize_psymtab): Add declaration.
10601 * python/python.c (_initialize_python): Add declaration.
10602 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10603 * record-btrace.c (_initialize_record_btrace): Add declaration.
10604 * record-full.c (_initialize_record_full): Add declaration.
10605 * record.c (_initialize_record): Add declaration.
10606 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10607 * regcache.c (_initialize_regcache): Add declaration.
10608 * reggroups.c (_initialize_reggroup): Add declaration.
10609 * remote-notif.c (_initialize_notif): Add declaration.
10610 * remote-sim.c (_initialize_remote_sim): Add declaration.
10611 * remote.c (_initialize_remote): Add declaration.
10612 * reverse.c (_initialize_reverse): Add declaration.
10613 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10614 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10615 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10616 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10617 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10618 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10619 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10620 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10621 Add declaration.
10622 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10623 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10624 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10625 * rust-exp.y (_initialize_rust_exp): Add declaration.
10626 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10627 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10628 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10629 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10630 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10631 * score-tdep.c (_initialize_score_tdep): Add declaration.
10632 * ser-go32.c (_initialize_ser_dos): Add declaration.
10633 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10634 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10635 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10636 * ser-uds.c (_initialize_ser_socket): Add declaration.
10637 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10638 * serial.c (_initialize_serial): Add declaration.
10639 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10640 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10641 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10642 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10643 * skip.c (_initialize_step_skip): Add declaration.
10644 * sol-thread.c (_initialize_sol_thread): Add declaration.
10645 * solib-aix.c (_initialize_solib_aix): Add declaration.
10646 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10647 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10648 * solib-frv.c (_initialize_frv_solib): Add declaration.
10649 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10650 * solib-target.c (_initialize_solib_target): Add declaration.
10651 * solib.c (_initialize_solib): Add declaration.
10652 * source-cache.c (_initialize_source_cache): Add declaration.
10653 * source.c (_initialize_source): Add declaration.
10654 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10655 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10656 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10657 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10658 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10659 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10660 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10661 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10662 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10663 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10664 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10665 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10666 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10667 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10668 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10669 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10670 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10671 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10672 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10673 * stabsread.c (_initialize_stabsread): Add declaration.
10674 * stack.c (_initialize_stack): Add declaration.
10675 * stap-probe.c (_initialize_stap_probe): Add declaration.
10676 * std-regs.c (_initialize_frame_reg): Add declaration.
10677 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10678 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10679 * symfile.c (_initialize_symfile): Add declaration.
10680 * symmisc.c (_initialize_symmisc): Add declaration.
10681 * symtab.c (_initialize_symtab): Add declaration.
10682 * target.c (_initialize_target): Add declaration.
10683 * target-connection.c (_initialize_target_connection): Add
10684 declaration.
10685 * target-dcache.c (_initialize_target_dcache): Add declaration.
10686 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10687 * thread.c (_initialize_thread): Add declaration.
10688 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10689 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10690 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10691 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10692 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10693 * tracectf.c (_initialize_ctf): Add declaration.
10694 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10695 * tracefile.c (_initialize_tracefile): Add declaration.
10696 * tracepoint.c (_initialize_tracepoint): Add declaration.
10697 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10698 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10699 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10700 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10701 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10702 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10703 * tui/tui.c (_initialize_tui): Add declaration.
10704 * typeprint.c (_initialize_typeprint): Add declaration.
10705 * ui-style.c (_initialize_ui_style): Add declaration.
10706 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10707 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10708 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10709 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10710 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10711 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10712 * unittests/filtered_iterator-selftests.c
10713 (_initialize_filtered_iterator_selftests): Add declaration.
10714 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10715 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10716 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10717 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10718 * unittests/main-thread-selftests.c
10719 (_initialize_main_thread_selftests): Add declaration.
10720 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10721 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10722 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10723 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10724 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10725 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10726 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10727 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10728 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10729 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10730 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10731 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10732 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10733 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10734 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10735 declaration.
10736 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10737 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10738 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10739 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10740 * user-regs.c (_initialize_user_regs): Add declaration.
10741 * utils.c (_initialize_utils): Add declaration.
10742 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10743 * valops.c (_initialize_valops): Add declaration.
10744 * valprint.c (_initialize_valprint): Add declaration.
10745 * value.c (_initialize_values): Add declaration.
10746 * varobj.c (_initialize_varobj): Add declaration.
10747 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10748 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10749 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10750 * windows-nat.c (_initialize_windows_nat): Add declaration.
10751 (_initialize_check_for_gdb_ini): Add declaration.
10752 (_initialize_loadable): Add declaration.
10753 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10754 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10755 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10756 * xcoffread.c (_initialize_xcoffread): Add declaration.
10757 * xml-support.c (_initialize_xml_support): Add declaration.
10758 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10759 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10760 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10761 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10762
e2de1eec
SM
107632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10764
10765 * regformats/regdat.sh: Generate declaration for init function.
10766
e0037b4c
SM
107672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10768
10769 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10770 up.
10771 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10772 close_one_inferior>: New methods.
10773 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10774 pass down target to find_inferior_pid.
10775 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10776 Pass down target to find_inferior_ptid.
10777 (gdbsim_target::create_inferior): Pass down target to
10778 add_thread_silent.
10779 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10780 target down to find_inferior_ptid and switch_to_thread.
10781 (gdbsim_target::close): Update to call close_one_inferior.
10782 (struct resume_data): Remove.
10783 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10784 directly, rather than through a void pointer.
10785 (gdbsim_target::resume): Update to call resume_one_inferior.
10786
58920b5b
SM
107872020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10788
10789 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10790
4ec89149
PA
107912020-01-12 Pedro Alves <palves@redhat.com>
10792
10793 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10794 directly for the current inferior instead of
10795 discard_all_inferiors.
10796 (discard_all_inferiors): Delete.
10797
7c392d1d
TT
107982020-01-11 Tom Tromey <tom@tromey.com>
10799
10800 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10801 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10802 deprecated_safe_get_selected_frame.
10803
d9ebdab7
TBA
108042020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10805
10806 * inferior.c (print_inferior): Switch inferior before printing it.
10807
f3c469b9
PA
108082020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10809 Pedro Alves <palves@redhat.com>
10810
10811 * progspace-and-thread.c (switch_to_program_space_and_thread):
10812 Assert there's an inferior for PSPACE. Use
10813 switch_to_inferior_no_thread to switch the inferior too.
10814 * progspace.c (program_space::~program_space): Call
10815 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10816 (program_space::free_all_objfiles): Don't call clear_symtab_users
10817 here.
10818 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10819
65c574f6
PA
108202020-01-10 Pedro Alves <palves@redhat.com>
10821
10822 * NEWS: Mention multi-target debugging, "info connections", and
10823 "add-inferior -no-connection".
10824
2f4fcf00
PA
108252020-01-10 Pedro Alves <palves@redhat.com>
10826
10827 * infrun.c: Include "target-connection.h".
10828 (check_multi_target_resumption): New.
10829 (proceed): Call it.
10830 * target-connection.c (make_target_connection_string): Make
10831 extern.
10832 * target-connection.h (make_target_connection_string): Declare.
10833
121b3efd
PA
108342020-01-10 Pedro Alves <palves@redhat.com>
10835
10836 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10837 * inferior.c (uiout_field_connection): New function.
10838 (print_inferior): Add new "connection-id" column.
10839 (add_inferior_command): Show connection number/string of added
10840 inferior.
10841 * process-stratum-target.h
10842 (process_stratum_target::connection_string): New virtual method.
10843 (process_stratum_target::connection_number): New field.
10844 * remote.c (remote_target::connection_string): New override.
10845 * target-connection.c: New file.
10846 * target-connection.h: New file.
10847 * target.c (decref_target): Remove process_stratum targets from
10848 the connection list.
10849 (target_stack::push): Add process_stratum targets to the
10850 connection list.
10851
4f837581
PA
108522020-01-10 Pedro Alves <palves@redhat.com>
10853
10854 Revert:
10855 2016-04-12 Pedro Alves <palves@redhat.com>
10856 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10857 Remove references to name.
10858 * serial.h (struct serial) <name>: Delete.
10859
f4ec508e
PA
108602020-01-10 Pedro Alves <palves@redhat.com>
10861
10862 * gdbarch-selftests.c (register_to_value_test): Remove "target
10863 already pushed" check.
10864
5b6d1e4f
PA
108652020-01-10 Pedro Alves <palves@redhat.com>
10866 John Baldwin <jhb@FreeBSD.org>
10867
10868 * aarch64-linux-nat.c
10869 (aarch64_linux_nat_target::thread_architecture): Adjust.
10870 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10871 (task_command_1): Likewise.
10872 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10873 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10874 (aix_thread_target::store_registers)
10875 (aix_thread_target::thread_alive): Adjust.
10876 * amd64-fbsd-tdep.c: Include "inferior.h".
10877 (amd64fbsd_get_thread_local_address): Pass down target.
10878 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10879 thread's gdbarch instead of target_gdbarch.
10880 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10881 get_last_target_status.
10882 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10883 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10884 inferiors.
10885 (update_inserted_breakpoint_locations): Skip if inferiors with no
10886 execution.
10887 (update_global_location_list): When handling moribund locations,
10888 find representative inferior for location's pspace, and use thread
10889 count of its process_stratum target.
10890 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10891 * bsd-uthread.c (bsd_uthread_target::wait): Use
10892 as_process_stratum_target and adjust thread_change_ptid and
10893 add_thread calls.
10894 (bsd_uthread_target::update_thread_list): Use
10895 as_process_stratum_target and adjust find_thread_ptid,
10896 thread_change_ptid and add_thread calls.
10897 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10898 find_thread_ptid call.
10899 * corelow.c (add_to_thread_list): Adjust add_thread call.
10900 (core_target_open): Adjust add_thread_silent and thread_count
10901 calls.
10902 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10903 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10904 * event-top.c (async_disconnect): Pop targets from all inferiors.
10905 * exec.c (add_target_sections): Push exec target on all inferiors
10906 sharing the program space.
10907 (remove_target_sections): Remove the exec target from all
10908 inferiors sharing the program space.
10909 (exec_on_vfork): New.
10910 * exec.h (exec_on_vfork): Declare.
10911 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10912 Pass it down.
10913 (fbsd_nat_target::update_thread_list): Adjust.
10914 (fbsd_nat_target::resume): Adjust.
10915 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10916 down.
10917 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10918 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10919 get_thread_arch_regcache call.
10920 * fork-child.c (gdb_startup_inferior): Pass target down to
10921 startup_inferior and set_executing.
10922 * gdbthread.h (struct process_stratum_target): Forward declare.
10923 (add_thread, add_thread_silent, add_thread_with_info)
10924 (in_thread_list): Add process_stratum_target parameter.
10925 (find_thread_ptid(inferior*, ptid_t)): New overload.
10926 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10927 parameter.
10928 (all_threads()): Delete overload.
10929 (all_threads, all_non_exited_threads): Add process_stratum_target
10930 parameter.
10931 (all_threads_safe): Use brace initialization.
10932 (thread_count): Add process_stratum_target parameter.
10933 (set_resumed, set_running, set_stop_requested, set_executing)
10934 (threads_are_executing, finish_thread_state): Add
10935 process_stratum_target parameter.
10936 (switch_to_thread): Use is_current_thread.
10937 * i386-fbsd-tdep.c: Include "inferior.h".
10938 (i386fbsd_get_thread_local_address): Pass down target.
10939 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10940 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10941 have_inferiors check.
10942 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10943 (inf_ptrace_target::attach): Adjust.
10944 * infcall.c (run_inferior_call): Adjust.
10945 * infcmd.c (run_command_1): Pass target to
10946 scoped_finish_thread_state.
10947 (proceed_thread_callback): Skip inferiors with no execution.
10948 (continue_command): Rename 'all_threads' local to avoid hiding
10949 'all_threads' function. Adjust get_last_target_status call.
10950 (prepare_one_step): Adjust set_running call.
10951 (signal_command): Use user_visible_resume_target. Compare thread
10952 pointers instead of inferior_ptid.
10953 (info_program_command): Adjust to pass down target.
10954 (attach_command): Mark target's 'thread_executing' flag.
10955 (stop_current_target_threads_ns): New, factored out from ...
10956 (interrupt_target_1): ... this. Switch inferior before making
10957 target calls.
10958 * inferior-iter.h
10959 (struct all_inferiors_iterator, struct all_inferiors_range)
10960 (struct all_inferiors_safe_range)
10961 (struct all_non_exited_inferiors_range): Filter on
10962 process_stratum_target too. Remove explicit.
10963 * inferior.c (inferior::inferior): Push dummy target on target
10964 stack.
10965 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10966 Add process_stratum_target parameter, and pass it down.
10967 (have_live_inferiors): Adjust.
10968 (switch_to_inferior_and_push_target): New.
10969 (add_inferior_command, clone_inferior_command): Handle
10970 "-no-connection" parameter. Use
10971 switch_to_inferior_and_push_target.
10972 (_initialize_inferior): Mention "-no-connection" option in
10973 the help of "add-inferior" and "clone-inferior" commands.
10974 * inferior.h: Include "process-stratum-target.h".
10975 (interrupt_target_1): Use bool.
10976 (struct inferior) <push_target, unpush_target, target_is_pushed,
10977 find_target_beneath, top_target, process_target, target_at,
10978 m_stack>: New.
10979 (discard_all_inferiors): Delete.
10980 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10981 (all_inferiors, all_non_exited_inferiors): Add
10982 process_stratum_target parameter.
10983 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10984 (target_last_proc_target): New global.
10985 (follow_fork_inferior): Push target on new inferior. Pass target
10986 to add_thread_silent. Call exec_on_vfork. Handle target's
10987 reference count.
10988 (follow_fork): Adjust get_last_target_status call. Also consider
10989 target.
10990 (follow_exec): Push target on new inferior.
10991 (struct execution_control_state) <target>: New field.
10992 (user_visible_resume_target): New.
10993 (do_target_resume): Call target_async.
10994 (resume_1): Set target's threads_executing flag. Consider resume
10995 target.
10996 (commit_resume_all_targets): New.
10997 (proceed): Also consider resume target. Skip threads of inferiors
10998 with no execution. Commit resumtion in all targets.
10999 (start_remote): Pass current inferior to wait_for_inferior.
11000 (infrun_thread_stop_requested): Consider target as well. Pass
11001 thread_info pointer to clear_inline_frame_state instead of ptid.
11002 (infrun_thread_thread_exit): Consider target as well.
11003 (random_pending_event_thread): New inferior parameter. Use it.
11004 (do_target_wait): Rename to ...
11005 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11006 down.
11007 (threads_are_resumed_pending_p, do_target_wait): New.
11008 (prepare_for_detach): Adjust calls.
11009 (wait_for_inferior): New inferior parameter. Handle it. Use
11010 do_target_wait_1 instead of do_target_wait.
11011 (fetch_inferior_event): Adjust. Switch to representative
11012 inferior. Pass target down.
11013 (set_last_target_status): Add process_stratum_target parameter.
11014 Save target in global.
11015 (get_last_target_status): Add process_stratum_target parameter and
11016 handle it.
11017 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11018 (context_switch): Check inferior_ptid == null_ptid before calling
11019 inferior_thread().
11020 (get_inferior_stop_soon): Pass down target.
11021 (wait_one): Rename to ...
11022 (poll_one_curr_target): ... this.
11023 (struct wait_one_event): New.
11024 (wait_one): New.
11025 (stop_all_threads): Adjust.
11026 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11027 event's target.
11028 (switch_back_to_stepped_thread): Also consider target.
11029 (print_stop_event): Update.
11030 (normal_stop): Update. Also consider the resume target.
11031 * infrun.h (wait_for_inferior): Remove declaration.
11032 (user_visible_resume_target): New declaration.
11033 (get_last_target_status, set_last_target_status): New
11034 process_stratum_target parameter.
11035 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11036 process_stratum_target parameter, and use it.
11037 (clear_inline_frame_state (thread_info*)): New.
11038 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11039 process_stratum_target parameter.
11040 (clear_inline_frame_state (thread_info*)): Declare.
11041 * linux-fork.c (delete_checkpoint_command): Pass target down to
11042 find_thread_ptid.
11043 (checkpoint_command): Adjust.
11044 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11045 instead of just tweaking inferior_ptid.
11046 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11047 (exit_lwp): Pass target down to find_thread_ptid.
11048 (attach_proc_task_lwp_callback): Pass target down to
11049 add_thread/set_running/set_executing.
11050 (linux_nat_target::attach): Pass target down to
11051 thread_change_ptid.
11052 (get_detach_signal): Pass target down to find_thread_ptid.
11053 Consider last target status's target.
11054 (linux_resume_one_lwp_throw, resume_lwp)
11055 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11056 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11057 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11058 (linux_nat_target::async_wait_fd): New.
11059 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11060 target down.
11061 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11062 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11063 * linux-thread-db.c (struct thread_db_info::process_target): New
11064 field.
11065 (add_thread_db_info): Save target.
11066 (get_thread_db_info): New process_stratum_target parameter. Also
11067 match target.
11068 (delete_thread_db_info): New process_stratum_target parameter.
11069 Also match target.
11070 (thread_from_lwp): Adjust to pass down target.
11071 (thread_db_notice_clone): Pass down target.
11072 (check_thread_db_callback): Pass down target.
11073 (try_thread_db_load_1): Always push the thread_db target.
11074 (try_thread_db_load, record_thread): Pass target down.
11075 (thread_db_target::detach): Pass target down. Always unpush the
11076 thread_db target.
11077 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11078 target down. Always unpush the thread_db target.
11079 (find_new_threads_callback, thread_db_find_new_threads_2)
11080 (thread_db_target::update_thread_list): Pass target down.
11081 (thread_db_target::pid_to_str): Pass current inferior down.
11082 (thread_db_target::get_thread_local_address): Pass target down.
11083 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11084 target down.
11085 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11086 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11087 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11088 (procfs_init_inferior): Rename to ...
11089 (procfs_target::procfs_init_inferior): ... this and adjust.
11090 (procfs_target::create_inferior, procfs_notice_thread)
11091 (procfs_do_thread_registers): Adjust.
11092 * ppc-fbsd-tdep.c: Include "inferior.h".
11093 (ppcfbsd_get_thread_local_address): Pass down target.
11094 * proc-service.c (ps_xfer_memory): Switch current inferior and
11095 program space as well.
11096 (get_ps_regcache): Pass target down.
11097 * process-stratum-target.c
11098 (process_stratum_target::thread_address_space)
11099 (process_stratum_target::thread_architecture): Pass target down.
11100 * process-stratum-target.h
11101 (process_stratum_target::threads_executing): New field.
11102 (as_process_stratum_target): New.
11103 * ravenscar-thread.c
11104 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11105 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11106 down.
11107 * record-btrace.c (record_btrace_target::info_record): Adjust.
11108 (record_btrace_target::record_method)
11109 (record_btrace_target::record_is_replaying)
11110 (record_btrace_target::fetch_registers)
11111 (get_thread_current_frame_id, record_btrace_target::resume)
11112 (record_btrace_target::wait, record_btrace_target::stop): Pass
11113 target down.
11114 * record-full.c (record_full_wait_1): Switch to event thread.
11115 Pass target down.
11116 * regcache.c (regcache::regcache)
11117 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11118 process_stratum_target parameter and handle it.
11119 (current_thread_target): New global.
11120 (get_thread_regcache): Add process_stratum_target parameter and
11121 handle it. Switch inferior before calling target method.
11122 (get_thread_regcache): Pass target down.
11123 (get_thread_regcache_for_ptid): Pass target down.
11124 (registers_changed_ptid): Add process_stratum_target parameter and
11125 handle it.
11126 (registers_changed_thread, registers_changed): Pass target down.
11127 (test_get_thread_arch_aspace_regcache): New.
11128 (current_regcache_test): Define a couple local test_target_ops
11129 instances and use them for testing.
11130 (readwrite_regcache): Pass process_stratum_target parameter.
11131 (cooked_read_test, cooked_write_test): Pass mock_target down.
11132 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11133 (get_thread_arch_aspace_regcache): Add process_stratum_target
11134 parameter.
11135 (regcache::target): New method.
11136 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11137 (regcache::registers_changed_ptid): Add process_stratum_target
11138 parameter.
11139 (regcache::m_target): New field.
11140 (registers_changed_ptid): Add process_stratum_target parameter.
11141 * remote.c (remote_state::supports_vCont_probed): New field.
11142 (remote_target::async_wait_fd): New method.
11143 (remote_unpush_and_throw): Add remote_target parameter.
11144 (get_current_remote_target): Adjust.
11145 (remote_target::remote_add_inferior): Push target.
11146 (remote_target::remote_add_thread)
11147 (remote_target::remote_notice_new_inferior)
11148 (get_remote_thread_info): Pass target down.
11149 (remote_target::update_thread_list): Skip threads of inferiors
11150 bound to other targets. (remote_target::close): Don't discard
11151 inferiors. (remote_target::add_current_inferior_and_thread)
11152 (remote_target::process_initial_stop_replies)
11153 (remote_target::start_remote)
11154 (remote_target::remote_serial_quit_handler): Pass down target.
11155 (remote_target::remote_unpush_target): New remote_target
11156 parameter. Unpush the target from all inferiors.
11157 (remote_target::remote_unpush_and_throw): New remote_target
11158 parameter. Pass it down.
11159 (remote_target::open_1): Check whether the current inferior has
11160 execution instead of checking whether any inferior is live. Pass
11161 target down.
11162 (remote_target::remote_detach_1): Pass down target. Use
11163 remote_unpush_target.
11164 (extended_remote_target::attach): Pass down target.
11165 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11166 (remote_target::append_resumption): Pass down target.
11167 (remote_target::append_pending_thread_resumptions)
11168 (remote_target::remote_resume_with_hc, remote_target::resume)
11169 (remote_target::commit_resume): Pass down target.
11170 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11171 (remote_target::interrupt_query)
11172 (remote_target::remove_new_fork_children)
11173 (remote_target::check_pending_events_prevent_wildcard_vcont)
11174 (remote_target::remote_parse_stop_reply)
11175 (remote_target::process_stop_reply): Pass down target.
11176 (first_remote_resumed_thread): New remote_target parameter. Pass
11177 it down.
11178 (remote_target::wait_as): Pass down target.
11179 (unpush_and_perror): New remote_target parameter. Pass it down.
11180 (remote_target::readchar, remote_target::remote_serial_write)
11181 (remote_target::getpkt_or_notif_sane_1)
11182 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11183 down target.
11184 (remote_target::mourn_inferior): Pass down target. Use
11185 remote_unpush_target.
11186 (remote_target::core_of_thread)
11187 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11188 (remote_target::pid_to_exec_file)
11189 (remote_target::thread_handle_to_thread_info): Pass down target.
11190 (remote_target::async_wait_fd): New.
11191 * riscv-fbsd-tdep.c: Include "inferior.h".
11192 (riscv_fbsd_get_thread_local_address): Pass down target.
11193 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11194 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11195 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11196 Adjust.
11197 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11198 * solib-svr4.c (enable_break): Pass down target.
11199 * spu-multiarch.c (parse_spufs_run): Pass down target.
11200 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11201 * target-delegates.c: Regenerate.
11202 * target.c (g_target_stack): Delete.
11203 (current_top_target): Return the current inferior's top target.
11204 (target_has_execution_1): Refer to the passed-in inferior's top
11205 target.
11206 (target_supports_terminal_ours): Check whether the initial
11207 inferior was already created.
11208 (decref_target): New.
11209 (target_stack::push): Incref/decref the target.
11210 (push_target, push_target, unpush_target): Adjust.
11211 (target_stack::unpush): Defref target.
11212 (target_is_pushed): Return bool. Adjust to refer to the current
11213 inferior's target stack.
11214 (dispose_inferior): Delete, and inline parts ...
11215 (target_preopen): ... here. Only dispose of the current inferior.
11216 (target_detach): Hold strong target reference while detaching.
11217 Pass target down.
11218 (target_thread_name): Add assertion.
11219 (target_resume): Pass down target.
11220 (target_ops::beneath, find_target_at): Adjust to refer to the
11221 current inferior's target stack.
11222 (get_dummy_target): New.
11223 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11224 has a thread running.
11225 (initialize_targets): Rename to ...
11226 (_initialize_target): ... this.
11227 * target.h: Include "gdbsupport/refcounted-object.h".
11228 (struct target_ops): Inherit refcounted_object.
11229 (target_ops::shortname, target_ops::longname): Make const.
11230 (target_ops::async_wait_fd): New method.
11231 (decref_target): Declare.
11232 (struct target_ops_ref_policy): New.
11233 (target_ops_ref): New typedef.
11234 (get_dummy_target): Declare function.
11235 (target_is_pushed): Return bool.
11236 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11237 (all_matching_threads_iterator::all_matching_threads_iterator):
11238 Handle filter target.
11239 * thread-iter.h (struct all_matching_threads_iterator, struct
11240 all_matching_threads_range, class all_non_exited_threads_range):
11241 Filter by target too. Remove explicit.
11242 * thread.c (threads_executing): Delete.
11243 (inferior_thread): Pass down current inferior.
11244 (clear_thread_inferior_resources): Pass down thread pointer
11245 instead of ptid_t.
11246 (add_thread_silent, add_thread_with_info, add_thread): Add
11247 process_stratum_target parameter. Use it for thread and inferior
11248 searches.
11249 (is_current_thread): New.
11250 (thread_info::deletable): Use it.
11251 (find_thread_ptid, thread_count, in_thread_list)
11252 (thread_change_ptid, set_resumed, set_running): New
11253 process_stratum_target parameter. Pass it down.
11254 (set_executing): New process_stratum_target parameter. Pass it
11255 down. Adjust reference to 'threads_executing'.
11256 (threads_are_executing): New process_stratum_target parameter.
11257 Adjust reference to 'threads_executing'.
11258 (set_stop_requested, finish_thread_state): New
11259 process_stratum_target parameter. Pass it down.
11260 (switch_to_thread): Also match inferior.
11261 (switch_to_thread): New process_stratum_target parameter. Pass it
11262 down.
11263 (update_threads_executing): Reimplement.
11264 * top.c (quit_force): Pop targets from all inferior.
11265 (gdb_init): Don't call initialize_targets.
11266 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11267 Declare.
11268 (windows_add_thread, windows_delete_thread): Adjust.
11269 (get_windows_debug_event): Rename to ...
11270 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11271 * tracefile-tfile.c (tfile_target_open): Pass down target.
11272 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11273 Forward declare.
11274 (switch_to_thread): Add process_stratum_target parameter.
11275 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11276 parameter. Use it.
11277 (mi_on_resume): Pass target down.
11278 * nat/fork-inferior.c (startup_inferior): Add
11279 process_stratum_target parameter. Pass it down.
11280 * nat/fork-inferior.h (startup_inferior): Add
11281 process_stratum_target parameter.
11282 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11283
75c6c844
PA
112842020-01-10 Pedro Alves <palves@redhat.com>
11285
11286 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11287 directly. Instead find the first thread in the thread list and
11288 use switch_to_thread.
11289
78f2c40a
PA
112902020-01-10 Pedro Alves <palves@redhat.com>
11291
11292 * remote.c (remote_target::remote_add_inferior): Don't bind a
11293 process to the current inferior if the current inferior is already
11294 bound to a process.
11295
e7af6c70
TBA
112962020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11297 Pedro Alves <palves@redhat.com>
11298
11299 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11300 If no process is specified, return null_ptid instead of
11301 inferior_ptid.
11302 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11303 TARGET_WAITKIND_SIGNALLED with no pid.
11304
31ba933e
PA
113052020-01-10 Pedro Alves <palves@redhat.com>
11306
11307 * remote.c (first_remote_resumed_thread): New.
11308 (remote_target::wait_as): Use it as default event_ptid instead of
11309 inferior_ptid.
11310
735fc2ca
PA
113112020-01-10 Pedro Alves <palves@redhat.com>
11312
11313 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11314
c17e02e1
PA
113152020-01-10 Pedro Alves <palves@redhat.com>
11316
11317 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11318 not -1.
11319
ab1ddbcf
PA
113202020-01-10 Pedro Alves <palves@redhat.com>
11321
11322 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11323 ptid to get_last_target_status.
11324 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11325 ptid to get_last_target_status.
11326 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11327 get_last_target_status.
11328 (info_program_command): Don't pass a target_waitstatus to
11329 get_last_target_status.
11330 * infrun.c (init_wait_for_inferior): Use
11331 nullify_last_target_wait_ptid.
11332 (get_last_target_status): Handle nullptr arguments.
11333 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11334 (print_stop_event): Don't pass a ptid to get_last_target_status.
11335 (normal_stop): Don't pass a ptid to get_last_target_status.
11336 * infrun.h (get_last_target_status, set_last_target_status): Move
11337 comments here and update.
11338 (nullify_last_target_wait_ptid): Declare.
11339 * linux-fork.c (fork_load_infrun_state): Remove local extern
11340 declaration of nullify_last_target_wait_ptid.
11341 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11342 to get_last_target_status.
11343
f3f8ece4
PA
113442020-01-10 Pedro Alves <palves@redhat.com>
11345
11346 * gdbthread.h (scoped_restore_current_thread)
11347 <dont_restore, restore, m_dont_restore>: Declare.
11348 * thread.c (thread_alive): Add assertion. Return bool.
11349 (switch_to_thread_if_alive): New.
11350 (prune_threads): Switch inferior/thread.
11351 (print_thread_info_1): Switch thread before calling target methods.
11352 (scoped_restore_current_thread::restore): New, factored out from
11353 ...
11354 (scoped_restore_current_thread::~scoped_restore_current_thread):
11355 ... this.
11356 (scoped_restore_current_thread::scoped_restore_current_thread):
11357 Add assertion.
11358 (thread_apply_all_command, thread_select): Use
11359 switch_to_thread_if_alive.
11360 * infrun.c (proceed, restart_threads, handle_signal_stop)
11361 (switch_back_to_stepped_thread): Switch current thread before
11362 calling target methods.
11363
db2d40f7
PA
113642020-01-10 Pedro Alves <palves@redhat.com>
11365
11366 * inferior.c (switch_to_inferior_no_thread): New function,
11367 factored out from ...
11368 (inferior_command): ... here.
11369 * inferior.h (switch_to_inferior_no_thread): Declare.
11370 * mi/mi-main.c (run_one_inferior): Use
11371 switch_to_inferior_no_thread.
11372
bd420a2d
PA
113732020-01-10 Pedro Alves <palves@redhat.com>
11374
11375 * infcmd.c (kill_command): Remove dead code.
11376
ddf5db90
PA
113772020-01-10 Pedro Alves <palves@redhat.com>
11378
11379 * remote.c (remote_target::mourn_inferior): No longer check
11380 whether the target is running.
11381
5018ce90
PA
113822020-01-10 Pedro Alves <palves@redhat.com>
11383
11384 * corelow.c (core_target::has_execution): Change parameter type to
11385 inferior pointer.
11386 * inferior.c (number_of_live_inferiors): Use
11387 inferior::has_execution instead of target_has_execution_1.
11388 * inferior.h (inferior::has_execution): New.
11389 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11390 inferior::has_execution instead of target_has_execution_1.
11391 * process-stratum-target.c
11392 (process_stratum_target::has_execution): Change parameter type to
11393 inferior pointer. Check the inferior's PID instead of
11394 inferior_ptid.
11395 * process-stratum-target.h
11396 (process_stratum_target::has_execution): Change parameter type to
11397 inferior pointer.
11398 * record-full.c (record_full_core_target::has_execution): Change
11399 parameter type to inferior pointer.
11400 * target.c (target_has_execution_1): Change parameter type to
11401 inferior pointer.
11402 (target_has_execution_current): Adjust.
11403 * target.h (target_ops::has_execution): Change parameter type to
11404 inferior pointer.
11405 (target_has_execution_1): Change parameter type to inferior
11406 pointer. Change return type to bool.
11407 * tracefile.h (tracefile_target::has_execution): Change parameter
11408 type to inferior pointer.
11409
74375d18
PA
114102020-01-10 Pedro Alves <palves@redhat.com>
11411
11412 * exceptions.c (print_flush): Remove current_top_target() check.
11413
acdf84a6
PA
114142020-01-10 Pedro Alves <palves@redhat.com>
11415
11416 * remote.c (show_remote_exec_file): Show the current inferior's
11417 exec-file instead of the command variable's value.
11418
ec506636
PA
114192020-01-10 Pedro Alves <palves@redhat.com>
11420
11421 * record-full.c (record_full_resume_ptid): New global.
11422 (record_full_target::resume): Set it.
11423 (record_full_wait_1): Use record_full_resume_ptid instead of
11424 inferior_ptid.
11425
873657b9
PA
114262020-01-10 Pedro Alves <palves@redhat.com>
11427
11428 * gdbthread.h (scoped_restore_current_thread)
11429 <dont_restore, restore, m_dont_restore>: Declare.
11430 * thread.c (thread_alive): Add assertion. Return bool.
11431 (switch_to_thread_if_alive): New.
11432 (prune_threads): Switch inferior/thread.
11433 (print_thread_info_1): Switch thread before calling target methods.
11434 (scoped_restore_current_thread::restore): New, factored out from
11435 ...
11436 (scoped_restore_current_thread::~scoped_restore_current_thread):
11437 ... this.
11438 (scoped_restore_current_thread::scoped_restore_current_thread):
11439 Add assertion.
11440 (thread_apply_all_command, thread_select): Use
11441 switch_to_thread_if_alive.
11442
7f0ae84c
GB
114432020-01-10 George Barrett <bob@bob131.so>
11444
11445 * stap-probe.c (stap_modify_semaphore): Don't check for null
11446 semaphores.
11447 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11448 for null semaphores.
11449
f5a7c406
AB
114502020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11451
11452 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11453 all source windows, and maintain horizontal scroll status while
11454 doing so.
11455
9ae6bf64
TT
114562020-01-09 Tom Tromey <tom@tromey.com>
11457
11458 PR tui/18932:
11459 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11460 update_source_window, not print_source_lines.
11461
b2efe70c
AB
114622020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11463
11464 * tui/tui.c (tui_enable): Register tui hooks after calling
11465 tui_display_main.
11466
5f23a082
CB
114672020-01-09 Christian Biesinger <cbiesinger@google.com>
11468
11469 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11470
3061113b
SM
114712020-01-08 Simon Marchi <simon.marchi@efficios.com>
11472
11473 * thread.c (print_thread_info_1): Fix indentation.
11474
57d75002
CB
114752020-01-09 Christian Biesinger <cbiesinger@google.com>
11476
11477 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11478 unique_xmalloc_ptr outside the if to always free the demangled name.
11479
6a053cb1
TT
114802020-01-08 Tom Tromey <tromey@adacore.com>
11481
11482 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11483 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11484 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11485 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11486 Remove.
11487 (section_offsets): New typedef.
11488 * symtab.c (fixup_section, get_msymbol_address): Update.
11489 * symmisc.c (dump_msymbols): Update.
11490 * symfile.h (relative_addr_info_to_section_offsets)
11491 (symfile_map_offsets_to_segments): Update.
11492 * symfile.c (build_section_addr_info_from_objfile)
11493 (init_objfile_sect_indices): Update.
11494 (struct place_section_arg): Change type of "offsets".
11495 (place_section): Update.
11496 (relative_addr_info_to_section_offsets): Change type of
11497 "section_offsets". Remove "num_sections" parameter.
11498 (default_symfile_offsets, syms_from_objfile_1)
11499 (set_objfile_default_section_offset): Update.
11500 (reread_symbols): No need to preserve section offsets by hand.
11501 (symfile_map_offsets_to_segments): Change type of "offsets".
11502 * stap-probe.c (relocate_address): Update.
11503 * stabsread.h (process_one_symbol): Update.
11504 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11505 (solib_target_relocate_section_addresses): Update.
11506 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11507 Update.
11508 * solib-frv.c (frv_relocate_main_executable): Update.
11509 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11510 * solib-aix.c (solib_aix_get_section_offsets): Change return
11511 type.
11512 (solib_aix_solib_create_inferior_hook): Update.
11513 * remote.c (remote_target::get_offsets): Update.
11514 * psymtab.c (find_pc_sect_psymtab): Update.
11515 * psympriv.h (struct partial_symbol) <address, text_low,
11516 text_high>: Update.
11517 * objfiles.h (obj_section_offset): Update.
11518 (struct objfile) <section_offsets>: Change type.
11519 <num_sections>: Remove.
11520 (objfile_relocate): Update.
11521 * objfiles.c (entry_point_address_query): Update
11522 (relocate_one_symbol): Change type of "section_offsets".
11523 (objfile_relocate1, objfile_relocate1): Change type of
11524 "new_offsets".
11525 (objfile_rebase1): Update.
11526 * mipsread.c (mipscoff_symfile_read): Update.
11527 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11528 parameter.
11529 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11530 (parse_external, psymtab_to_symtab_1): Update.
11531 * machoread.c (macho_symfile_offsets): Update.
11532 * ia64-tdep.c (ia64_find_unwind_table): Update.
11533 * hppa-tdep.c (read_unwind_info): Update.
11534 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11535 * dwarf2read.c (create_addrmap_from_index)
11536 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11537 (process_psymtab_comp_unit_reader, add_partial_symbol)
11538 (add_partial_subprogram, process_full_comp_unit)
11539 (read_file_scope, read_func_scope, read_lexical_block_scope)
11540 (read_call_site_scope, dwarf2_rnglists_process)
11541 (dwarf2_ranges_process, dwarf2_ranges_read)
11542 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11543 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11544 Update.
11545 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11546 Update.
11547 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11548 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11549 (process_one_symbol): Change type of "section_offsets".
11550 * ctfread.c (get_objfile_text_range): Update.
11551 * coffread.c (coff_symtab_read, enter_linenos)
11552 (process_coff_symbol): Update.
11553 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11554 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11555
456e800a
TT
115562020-01-08 Tom Tromey <tromey@adacore.com>
11557
11558 * dwarf2read.c (parse_macro_definition): Use std::string.
11559 (parse_macro_definition): Likewise.
11560
6dfa2fc2
TT
115612020-01-08 Tom Tromey <tromey@adacore.com>
11562
11563 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11564 (ATTR_ALLOC_CHUNK): Remove.
11565
421d1616
TT
115662020-01-08 Tom Tromey <tromey@adacore.com>
11567
11568 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11569
43816ebc
TT
115702020-01-08 Tom Tromey <tromey@adacore.com>
11571
11572 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11573 (dwarf2_compute_name, open_dwo_file): Likewise.
11574 (process_enumeration_scope): Use std::vector.
11575 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11576 (partial_die_info::fixup, dwarf2_start_subfile)
11577 (guess_full_die_structure_name, dwarf2_name): Likewise.
11578 (determine_prefix): Update.
11579 (guess_full_die_structure_name): Make return type const.
11580 (partial_die_full_name): Return unique_xmalloc_ptr.
11581 (DW_FIELD_ALLOC_CHUNK): Remove.
11582
4212d509
TT
115832020-01-07 Tom Tromey <tromey@adacore.com>
11584
11585 PR build/24937:
11586 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11587
06a6207a
JT
115882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11589
11590 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11591
153d79c4
AB
115922020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11593
11594 * stack.c (print_frame_info): Move disassemble_next_line code
11595 inside source_print block.
11596
66182876
EZ
115972020-01-06 Eli Zaretskii <eliz@gnu.org>
11598
11599 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11600 gdb/signals.h, as we are now using native signal symbols.
11601
cbfa8581
SV
116022020-01-06 Shahab Vahedi <shahab@synopsys.com>
11603
11604 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11605 overflow by an early check of content vs threshold.
aac66a4c 11606 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11607 Likewise.
11608
3f602821
EZ
116092020-01-06 Eli Zaretskii <eliz@gnu.org>
11610
11611 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11612
a08c904d
JT
116132020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11614
11615 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11616 export table if no section contains it's RVA.
11617
89a65580
EZ
116182020-01-06 Eli Zaretskii <eliz@gnu.org>
11619
11620 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11621
8b7fcda2
HD
116222020-01-06 Hannes Domani <ssbssa@yahoo.de>
11623
11624 * source.c (print_source_lines_base): Set last_line_listed.
11625
a61b4f69
SV
116262020-01-06 Shahab Vahedi <shahab@synopsys.com>
11627
11628 * tui/tui-disasm.c: Remove trailing spaces.
11629
559e7e50
EZ
116302020-01-06 Eli Zaretskii <eliz@gnu.org>
11631 Pedro Alves <palves@redhat.com>
11632
11633 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11634 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11635 (windows_gdb_signal_to_target): New function, uses the above
11636 enumeration to convert GDB internal signal codes to equivalent
11637 Windows codes.
11638 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11639 * windows-nat.c: Include "gdb_wait.h".
11640 (get_windows_debug_event): Extract the fatal exception from the
11641 exit status and convert to the equivalent Posix signal number.
11642 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11643 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11644 * gdbsupport/gdb_wait.c: New file, implements
11645 windows_status_to_termsig.
11646 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11647 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11648
f2302a34
AB
116492020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11650
11651 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11652 show_layout.
11653
6a5206eb
LM
116542020-01-05 Luis Machado <luis.machado@linaro.org>
11655
11656 * aarch64-linux-nat.c
11657 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11658 and bfd_mach_aarch64.
11659
6ec1d75e
PW
116602020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11661
11662 * ui-file.c (stdio_file::can_emit_style_escape)
11663 (tee_file::can_emit_style_escape): Ensure style is used also on
11664 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11665 to gdb_stdout.
11666 * main.c (set_gdb_data_directory): Use file style to output the
11667 warning that the given pathname is not a directory.
11668 * top.c (show_history_filename, gdb_safe_append_history)
11669 (show_gdb_datadir): Use file style.
11670
44f81a76
HD
116712020-01-03 Hannes Domani <ssbssa@yahoo.de>
11672
11673 * solib-target.c (struct lm_info_target):
11674 Change offsets to be a unique_xmalloc_ptr.
11675 (solib_target_relocate_section_addresses): Update.
11676
25057eb0
HD
116772020-01-03 Hannes Domani <ssbssa@yahoo.de>
11678
11679 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11680
6e2118f5
BE
116812020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11682
11683 * MAINTAINERS (Write After Approval): Add myself.
11684
8133c7dc
LM
116852020-01-02 Luis Machado <luis.machado@linaro.org>
11686
11687 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11688 Cell BE architecture.
11689 * target.h (struct target_ops) <thread_architecture>: Likewise.
11690
48189bec
HD
116912020-01-01 Hannes Domani <ssbssa@yahoo.de>
11692
11693 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11694
ead1063b
HD
116952020-01-01 Hannes Domani <ssbssa@yahoo.de>
11696
11697 * MAINTAINERS (Write After Approval): Add myself.
11698
e5d78223
JB
116992020-01-01 Joel Brobecker <brobecker@adacore.com>
11700
11701 * gdbarch.sh: Update copyright year range of generated files.
11702
b811d2c2
JB
117032020-01-01 Joel Brobecker <brobecker@adacore.com>
11704
11705 Update copyright year range in all GDB files.
11706
5f4def5c
JB
117072020-01-01 Joel Brobecker <brobecker@adacore.com>
11708
11709 * copyright.py: Convert to Python 3.
11710
51fd4002
JB
117112020-01-01 Joel Brobecker <brobecker@adacore.com>
11712
11713 * copyright.py: Adapt after move of gnulib directory from gdb
11714 directory to toplevel directory.
11715
5fb651f2
JB
117162020-01-01 Joel Brobecker <brobecker@adacore.com>
11717
11718 * copyright.py (main): Exit if run from the wrong directory.
11719
5dd8bf88
JB
117202020-01-01 Joel Brobecker <brobecker@adacore.com>
11721
11722 * top.c (print_gdb_version): Change copyright year to 2020.
11723
9f71dacb 117242020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11725
9f71dacb 11726 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11727
9f71dacb 11728For older changes see ChangeLog-2019.
c906108c
SS
11729\f
11730Local Variables:
11731mode: change-log
11732left-margin: 8
11733fill-column: 74
11734version-control: never
57da7796 11735coding: utf-8
c906108c 11736End: